"use strict";this.default_kevlar_base=this.default_kevlar_base||{};(function(_){var window=this;
try{
_._F_toggles_initialize=function(X){(typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:this)._F_toggles_default_kevlar_base=X||[]};
(0,_._F_toggles_initialize)([0x4000000, 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 Xhm,Hyl,oNW,byh,UWO,$WL,Hh,Rzy,hzZ,bb,Fmm,Rk,B8W,qyZ,py,Sl,sky,MlO,uON,ny,xN,Vll,Pbl,DL,Sy8,xWW,Wmm,gN8,Zym,iyW,QkK,mWZ,vNy,cyh,JyW,Lmz,ILW,bF,UG,hQ,FH,H_l,V9,Pz,l6k,kQ,b_k,UvN,GY,a_,wz8,qGl,s_N,Q9,eCl,yQL,Vqz,jq,PFO,f6O,SGL,pzO,zCy,L_,Mqz,X5,nQy,Dvy,GYL,ye,a6y,Z_k,ey,WDk,MZ,EQz,gQy,Ntz,cQO,j_l,rQl,JQL,LDh,xU,AQy,I6h,XpO,Hdb,lAy,bdZ,UZk,Rly,Cxz,hly,BYW,sCO,Vyl,fAy,Pxm,vp,ppm,DZk,m$,tyN,EUm,Zd8,GZb,idy,aAy,TZ,oUZ,cp,jy,JN,vUL,Ld,QCW,OdL,mZK,lR,TYy,NYN,jCO,JNb,rNb,L$N,Yal,IAO,X9,XuZ,lrN,bXy,$a8,
hb,Ruy,day,qa,Boy,MAz,wub,u9l,yby,VAm,k2y,puZ,Da8,WzK,EnN,G2L,arb,OXN,mal,Nok,j$b,LzW,IrK,Abm,HJh,omz,Ulk,CQk,qwy,Zr,MiW,eny,yrO,Na,cu,ro,HJ,bQ,Uw,kSZ,BJ,Dll,Emb,GSy,a3y,ZJW,Vb,iJk,pJ,Si,zS,nJ,OJN,mlW,QDm,Try,NrO,jDN,rrh,Jry,L5m,I38,WJ,tr,ArK,X1W,H$O,oYz,lYO,b$k,Ubm,$bh,Qb,TS,Nl,cJ,rr,Rry,Jr,w1m,qHL,ID,soK,MNW,uP8,XP,erL,yn8,VNh,H1,p1W,oo,nYk,k8W,b1,DbZ,xbZ,tNZ,W4l,EYL,gYh,K$,G8O,aYb,Ro,Z$y,i$m,C$,dX,hn,FP,vYZ,mbz,O$W,B1,TXz,NXO,cnN,sH,u1,eN,yh,Vh,f$,joy,rny,L4h,YHW,AnZ,HYb,XbO,lem,oOb,bY8,Uzb,$zN,
SN,KZy,RmZ,wbm,xY,dzy,hmm,FZL,B9K,q_N,sZb,W1,gX,MPy,ao,ZY,uvz,VPl,PBm,feK,S_h,zm8,nOz,tPl,WZz,EOO,gOk,GpK,aeO,ZYk,mzK,OH,QZO,T9y,N9k,jZZ,JjN,Jn,Y_8,Iey,Ajz,lMl,UFO,$FN,KKy,RBK,CIh,dFZ,fML,pEk,ST8,kBO,xFb,w9,DFb,Eey,aMl,Z8L,i8l,veW,O8z,mF8,QAl,Tvb,coh,jAm,geO,ro8,JoL,LKl,YTl,IMN,Aoy,XgO,HWy,l1N,$sk,bWh,CLW,KXh,RJk,hJy,FXN,BfN,wgz,s5l,dsZ,uUW,zp,eJO,nY,De,y1O,PL8,f1m,zJK,a1l,kGO,n3N,DsZ,WXO,xsO,Q58,v3y,Tfk,Nfy,c1k,j5W,r18,LX8,J1h,Y2m,I1y,A1L,X$N,lRk,bfb,Uk8,$kK,ROL,KuZ,yRL,g9,VJW,fRN,p$l,Stz,zOy,nyy,
xky,Dkh,tJm,mZ,Qo,Wuh,Nz,ifk,jP,Ofy,r9,Nxb,j0b,or8,IZ,$dN,KPy,ddm,C0b,wQ8,oA,hfk,FPh,qZy,sFz,Mvm,uBy,efy,yly,Vvy,fth,wv,pQZ,dv,BE,kTK,uI,Ery,WPk,aty,VW,p8,itb,vrm,OtW,mdy,QFy,SO,LPh,Jlk,ke,YZL,DM,WE,XBy,HUy,lSy,bUl,$KN,UKb,KQN,TB,swW,Msk,jO,S4k,PMZ,zVW,L8,DKZ,Ye,IA,tsz,WQL,Gdh,iUy,vVN,OUO,Ao,QwW,mKz,JVy,LQN,ISN,lqy,b2y,Uph,$pb,KF8,Ckb,wDW,h2m,FFW,BU8,o5,sLK,CW,ulk,e2b,ySO,Pkk,Mhk,qAy,Vhl,U2,pDZ,k38,z2z,thz,WFm,E2l,G3k,aqN,Z2y,i2O,v2k,s2,mpZ,O2y,QLy,h3Z,eI,Bwk,smb,Pg,pW,fW,Vab,yhy,qLy,z3y,Wc8,GXl,
gHy,iib,D1,Oib,m0z,NwZ,chy,GG,rhz,Z1,iL,YLZ,Xfm,l9W,oEy,$9Z,KIL,ReO,Cgy,vg,d9y,hek,FIL,BVl,sKy,MBy,uQO,eek,Q3,cg,Pgb,f9y,pfk,nEy,kwy,x9Z,a98,Zrm,EEh,vEO,Orb,m9b,H$,lj,o0,bj,cBW,jKL,$y,rB8,JBy,LIk,Yey,ABK,Xiy,HNh,lvy,I9N,ouN,dx,UGk,wiN,hR,CTy,dGy,bNl,h0h,B$,BZO,qcl,spl,M7y,e0k,u6m,y$Z,fvy,V7m,pih,DGm,WeL,guk,ZNl,avh,GPz,iNb,vuz,mGh,TZZ,Qpl,NZy,pf,jpy,r$b,J$l,Lel,YcL,A$W,IvO,XKN,HAy,$Jy,bAk,UJW,R4W,CHO,wKZ,h4Z,dJl,FSN,BcL,sOz,uSy,VFm,fib,PHZ,Nk,pK8,MFb,tFb,EBk,gB8,Lf,Guh,ZAO,OAZ,Tcy,QOb,rY8,JYK,LSL,
Yfy,AYb,bTy,XFy,l8y,oMO,UoW,$oy,RPy,K1l,wFh,C58,Ct,doK,F1y,BRW,uek,Md,u0,ev,ePW,y0O,yl,f8k,Sv,zT,nt,nMy,kr,DoN,tl,t0m,W1y,EMz,gMb,gL,Gck,a8N,ZTl,vMm,mok,NRL,jHy,Nd,r0N,J0k,L1K,Y9m,I8Z,A0Z,XMy,Hel,rL,be8,UwK,$wZ,KhN,RKy,C$y,wMm,dwy,hK8,FhW,BuZ,qib,s6N,ow,kWL,xwN,bM,U4,$V,Dwl,t4z,Whh,Ehz,ghh,GWK,ack,mw8,Q6m,TuL,Nuk,c2l,wn,hV,F$,BB,MK,uM,es,r2b,Vi,Lhy,PB,YiZ,Icy,fU,A28,Xcz,Hcy,wck,h_b,MLK,VLz,yFh,dRZ,P9l,Sqz,ic8,tLb,TT8,EDZ,mR8,NTy,xV,jil,WB,JFh,LrL,IVy,AFh,X5O,lpN,Gd,bql,Uqy,$ql,KaN,Rom,Cvb,w5m,oly,
Faz,BCL,qlO,ZS,Vwz,Pvz,yaZ,p5y,Slz,nlL,k0Z,zol,G0Z,vl8,mqN,js,Jay,j1y,ral,XSO,lHO,ojy,blh,UnO,$nK,Ky8,lk,sql,u8K,Bdy,FyO,M2m,CEz,ywm,t2O,fHK,pSm,Smz,mnO,TdZ,Olz,JwW,vjy,Ril,rwk,PEy,Dnz,Qqz,eiy,dnm,wSl,hi8,qmZ,ily,f2,w6y,hhK,FCW,Bjl,qsl,p6z,xhK,Dhb,EA,WCL,GeN,v$O,iSy,mhy,Qsm,Njy,c5h,jsh,r5b,LCy,J5K,mF,oqL,lsy,HGy,K98,bGk,RZO,$fy,CD8,wxh,BWZ,hZ8,F9l,sBb,uck,eZy,PDW,fsy,pxW,SFL,nqz,krh,JS,Dfm,Y2,tgO,gqh,W9h,GrL,vqy,OGb,TWN,cGz,UL,$H,L9b,YFl,Ki,Rm,Is8,Ci,ww,AGO,dw,X8N,hh,H9k,lFZ,Bj,oib,b9N,UVk,$Vz,KiZ,
Cpz,REy,dVm,Bky,FiZ,qJN,sJO,w8k,MYz,yvm,eEW,hEm,VYb,PpL,ea,fFW,SJh,p8y,zEK,niy,xVy,ko8,DVW,VL,Wih,Eih,tYy,Goz,aFK,Z9m,mVm,Nkm,Lil,XCm,Pj,ogN,bj8,fi,U7m,ni,kH,d7b,Sa,th,hGy,Fqz,qC8,sVh,u0y,yCO,V5O,Pez,fUK,zGh,t5W,x7y,SCl,Wqb,EgK,GX,D7W,ggL,iz,Gby,aUz,ZjO,ijk,QVO,vgy,m7k,jVL,rCm,ACl,IUy,lOz,RIz,CKl,dOZ,FLl,B1N,s4y,MHh,uKy,yfy,VHb,PKN,SQz,xOy,DOW,zIW,WL8,goO,EoW,tHO,Gal,ZxZ,ix8,voZ,OxK,mOy,T1h,Q48,cfk,YQZ,rfb,j4h,Afm,YH,Im,Ah,XRm,HuK,lNb,o1Z,Kr,Kxl,RR8,CiK,wRz,RK,dV,BBy,suk,M1K,eRh,PiL,FQ,Bf,fNN,q9,
zRN,n1h,kjz,ug,E1Z,Zuy,v1m,Ou8,mQm,TBb,NBO,c8m,J8Z,Vt,LxW,A8l,Pf,Xtl,b5y,fr,KTW,pr,nr,kE,Rvh,wtK,CZO,hv8,FTy,Bzy,qdk,dSy,yPZ,Vzm,fdK,Sd8,xSl,kqz,DSW,WTO,EPk,gPb,Gqz,adL,Z5k,i5O,mSW,vPZ,gV,Tz8,Gw,Nz8,Z9,ig,cPK,jMO,rPO,JPz,LTK,vf,Ydy,IdN,APN,XGl,lK8,o7O,bFZ,UDN,$DL,RMK,KYb,Oe,wGL,hMW,FYk,BbO,q1l,unl,yJm,N9,Pwb,pGL,S1z,zMN,n7m,kH8,xDh,DDh,teh,eM8,Vey,WYO,E7k,ZFy,iFl,v7l,OFk,lgK,U6k,$6O,KAW,bRy,FAy,seL,Bsy,MfW,ysb,Pdh,pAy,kVO,nw8,WAK,Hi,EwK,gwl,lT,GVW,op,agN,ZRb,iRh,ORl,vwz,m6y,QeW,Tsy,NsK,IgL,X9l,lDb,
H7Z,JsZ,jeb,b7W,$8b,d8y,hpm,q7K,VcL,fDy,KN,p9b,zpy,nsK,x8Z,Esh,aDl,vsZ,O7L,m8y,QSb,rIL,TMk,IDO,AIz,XXO,lzK,dZ,o8b,UIh,$Iz,KRk,R6b,Cyh,wXz,dIb,FRW,Bg8,qG,qbk,scZ,uCm,MG,MRy,yiy,pX8,yX,SbL,z6y,n8N,DIL,tRK,kIy,E8K,ZkK,ikh,v8h,zP,Okl,Ngy,cil,Wi,Jih,jcy,riK,IzK,Ai8,XWZ,Hgh,vi,UgN,$gk,KWl,RdK,CCz,FWh,sy8,q6b,BDZ,M3b,edm,yOh,S6l,V3Z,zdl,kNZ,npN,gpy,Zgz,vpZ,mgO,LWN,BK,I7N,lEK,bDk,hY,PK,wrm,BhO,FsO,sEh,Mjh,eqL,uV8,yxO,Vjy,fA,uhO,dU8,qKy,hqO,yP,prl,SKk,zqy,nvN,Ef,khm,xUZ,DUy,tjl,Wsm,iH,Evk,aEy,iDm,vvy,jEy,
JxK,LsO,YKZ,Axl,XPy,LA,loZ,oSO,bLm,UyK,$ym,KGy,CUN,dyW,FGb,BIZ,yLL,uXK,VZy,pPZ,SRy,oH,zHy,nS8,klK,tZz,ESZ,WGy,Gly,ZL8,KT,vSy,OLy,iLb,myz,Qhy,NIZ,jhz,cLW,rLy,TIO,JLy,LGL,YRy,IoK,ALk,XOK,H0y,l$l,oWN,$jh,Ujy,KjW,CfL,Rgl,RH,wOh,FjZ,MnO,dj8,yWz,VnW,PfN,f$8,zgN,EWh,gWy,a$W,Z0y,VR,mjy,cWZ,JWW,PF,AWO,Ljl,Yvy,I$y,Xmy,EXO,S0,gXl,G4m,ZVy,iVN,vXZ,OVb,Q2y,T3O,ATh,JTb,YIL,Hn8,XUm,lZy,oGy,UXh,Kfz,Cuy,dXz,hNy,BFy,pUZ,nGm,xXk,DXN,tDz,Wfm,EGk,Giz,aZb,vGl,Ony,mXK,QXm,TF8,NFl,ckZ,jXk,Lfb,Akz,Z8,i5,vF,Xam,HBy,QR,oRy,
hay,ugz,srN,gRK,Ggz,awm,UCy,dCk,Ram,iBm,vRy,OBz,mCW,Bem,QrO,NeN,jrN,Lkk,YOb,A0,$tz,R1h,wNN,dtL,FUZ,h1b,sYl,u7y,Shl,fyl,ygy,pNy,V68,z1y,Dtk,si,Mw,iHy,GtW,OHy,mtb,Tyy,NyL,e4,cgO,Jgy,LU8,YhW,Iyy,UxZ,bhL,kh,dxW,Ei,FJy,B7K,q0K,sgy,M9K,upN,exb,yuy,V9y,PVy,f_b,GW,pnb,S0y,zxm,n5Z,k5h,xxZ,Dxm,t9O,Zc,WJm,E5l,g5O,G5O,a_Z,Zhy,ihk,v5W,Oh8,mxZ,QgW,T7K,N7m,vM,jgO,Jub,Y0l,XTN,oIb,bzy,U$l,Kny,CmW,wTb,d$m,ru,slN,BGz,Mxm,uLN,eFl,Pml,fGm,pTO,zFy,$D,kyl,b9,D$8,txZ,Kc,Wny,EIy,gIN,Gyy,Cc,vIK,m$m,jly,cdb,JdK,LnW,MR,YzW,
IGy,X3m,ll8,oKW,UHz,$Hy,H3k,KdN,hAW,snk,MtL,u9,umy,eAh,p3z,y_8,Psz,flZ,DHy,zAN,Wdy,gKy,alb,Z3y,i3h,vKK,O3z,mHL,Tm8,Nmy,c_h,jn8,r_Z,Ldb,IlZ,HIm,U3y,Rcy,wlz,FNb,SL,Bq8,qBy,sWK,MGm,uwz,yqL,VGO,P7y,fBl,plW,SBN,zcz,nTy,kLk,x3K,D3L,WNl,tGy,GLy,ZIh,DV,iIy,m3y,OIZ,Nqk,cqb,jWm,LNk,AqL,IBW,Jqh,lh8,HZO,Kgb,o6y,ai,UeZ,B5m,wLl,deb,hsy,FgK,qoN,Mmk,sjm,ZV,i9,pLZ,esZ,fhh,P6m,yZO,Vmy,n6O,xe8,tmz,DeK,WgN,ahN,G6N,iZb,mel,T5Z,OZZ,N5k,jjb,cZm,JZ8,Ihm,Tx,AZh,XIh,H6y,Uiy,dil,cc,FBl,qny,Ii,uZK,sfN,MUW,YD,PYl,eLO,y9y,fJl,
SnZ,pIN,kRm,xiz,tUO,WBZ,E4K,g4Z,GRk,Z6Z,i6O,wC,O6b,T6L,N6y,B5,c9z,r9m,okN,ew,IJl,l5l,A9m,XZb,Kly,$uO,dub,RDZ,hDL,Flb,P5,B$b,qjO,sUm,Sw,MM8,fq,y4N,VMb,PWL,f5b,pZy,zDh,DuO,tMO,gkz,GDK,ZPZ,OPN,iPm,vky,muk,T$K,N$y,c4l,jUl,r4N,LlN,I5N,A4b,HO8,XdN,luL,obb,U5h,$58,qxO,F0z,ufz,eb8,SxW,zb8,nbb,kky,x58,D5l,EbN,gbl,GkW,aul,iOL,vby,OOy,m5Z,Qxz,TQz,cHZ,jxm,c5,Yx8,L0y,JH8,rHy,AHm,lTZ,XoK,bEL,Ucy,K2l,RX8,CqO,wo8,dcy,svN,hXy,F2h,BKk,Moz,u2h,eXh,qgy,Lq,PqO,poW,fTy,I1,SgN,nCy,k_y,xcK,zXO,DcL,toh,W2y,ECb,gCy,aTN,ZEL,
iEk,vCm,Qvy,mc8,rDh,OE8,X8,JDl,TKy,jvz,YgZ,ITy,ADk,X7m,Hab,oay,bam,UBK,KMy,RQl,w78,hQb,Mpk,qMz,s88,BlL,FMy,udh,hw,eQZ,F8,yUK,Vpk,zQm,ksW,xBO,DBW,tpK,WMh,Eay,e2,yY,ia8,Gsl,gaN,aab,YMb,rUb,Za8,j8N,oxO,bKh,Umb,$mL,K6O,w2N,hty,BHO,s78,MdZ,uuK,PNl,Vdy,fQO,Sky,Om,kQy,xmN,Dmk,tdZ,W6y,Exy,gxy,QY,TE,aQm,ZKh,vxb,Q7N,Jzk,X_m,Azm,HsO,oFh,bsy,Ury,$rz,Kpy,R8k,Ll,ClL,sdy,MVO,FpO,h8z,qry,BEK,PlK,fPz,p_8,Srm,z8N,nFm,Drh,xry,kMz,vFz,Zs8,Osy,Qdm,mrZ,NE8,rpy,LpZ,cpy,jdb,bvZ,$2y,R9y,wHk,h9N,BAl,uYb,e9y,y6h,fky,PAz,Vrm,
pH8,S3L,z9O,nZO,kA8,x2y,D2h,trk,W3h,EZZ,GAm,ak8,ZvO,ivL,vZz,OvZ,QtK,TAL,NAN,c6h,jtW,r6y,IkN,A6Z,Hpy,oJl,l0O,bpz,wj,UEy,$Ey,Ktb,RSk,dEN,wvO,hSL,FtO,Bpy,qSy,szm,M_y,uTy,eSZ,yXz,V_N,PhZ,f0z,pvW,SSO,zSN,kvz,nJy,xEy,DEb,t_O,Wt8,EJz,gJL,Gvl,a0y,yE,ip8,vJk,OpW,mEy,QzL,NpZ,cXk,jzh,rXk,JXm,Lty,YSK,AXb,Xyl,lX8,pS,U4b,wyO,R5Z,Kol,$4W,C38,Fob,B_k,qDm,sGy,u_y,e5k,y7y,P3L,VXN,fXN,pyy,SDm,k1y,x4Z,D4y,tXl,WoO,E_l,aXk,ZbO,gj,QGh,T_k,c78,J7W,r7O,Lom,YDh,Ge,ZI,A7b,Os,mC,ozz,Xwl,H4y,$Ay,KEO,Rjl,Cal,FEh,q5L,say,Mkz,uDb,
ejy,Vky,Pab,fnZ,pwk,S5N,zjL,nzK,Nh,kzy,xAy,ju,DAL,tkL,WEW,Ezy,gzz,GzO,J5,LS,anW,Z4b,Y$,i4l,vzb,O4k,mAm,TPl,NPN,jaL,Ach,Y5h,LE8,X4h,HMy,R7l,bM8,UNO,$NZ,oLk,K_N,COZ,w48,h7N,F_l,A5,sb8,MCK,uGK,e7K,yey,POy,p4y,nLy,tCO,xNy,Xc,kn8,Gny,ZMZ,Hx,iMb,vLm,OMZ,mN8,Qby,NON,ceK,rem,JeL,YEZ,I2h,lxZ,bmO,$_z,U_b,RTO,CXO,wsy,d_z,Fvb,B0Z,qPW,sQz,M$h,uoh,eTO,yAL,V$Z,fxO,ps8,x_k,D_y,t$K,Wv8,Ecz,gcy,dW,ZmO,vcm,OmN,m_y,QQy,T0l,cAl,jQK,rAK,JAy,YPz,IxN,AAm,Bx,XkK,HwK,bwk,UYO,qf,sF,RUy,$YZ,CSZ,hUW,wky,F7W,quZ,yU,sTK,MQy,uMh,
VQh,ffl,VU,Sub,zUO,nfb,kOW,xYK,DY8,tQy,W7l,Efy,ZwK,iwm,QTO,vfy,mYy,T4N,N4O,cth,JtZ,L7y,YuO,Atz,XVL,$TK,UTy,dTb,BaW,EF,qNh,sNh,Pjl,gW,MTb,uNK,yMm,f4N,pVz,tTy,W88,Edy,gdy,Gfl,a4Z,vdK,O1y,QNk,cML,mTk,NaK,rML,jNZ,L8N,AMb,YNh,XYO,Hom,ljO,oAy,boO,U1W,KHm,$1k,d1N,Bi8,hwy,qpk,s9k,MWy,Tr,uyW,ewy,cx,VWb,ymW,PGb,pYh,fjO,kmZ,x1l,tWy,JG,EAk,gAW,GmZ,ajz,vAZ,m1l,Nim,TiN,cmK,j9k,rmz,Ijy,RW8,lWy,wel,dLy,FbK,BSL,sPN,M8y,uqy,eWy,y38,V8m,pel,SWO,zWL,n9y,DLK,Wbz,E9K,t8O,G9y,g9y,OCz,mLN,QPm,TSy,NSz,c3O,jPk,J3y,IWL,A3Z,
XqN,o0y,lbm,$MK,R$k,wqb,dMy,h$m,FOy,BNK,s3y,qXm,u18,fby,z$m,SXy,n0b,k$K,xMl,tSN,B8,E0O,MV,G$Z,ZQy,iQN,TNk,cE8,LOl,Iby,AEW,Hyq,lLH,oNv,UWH,Km6,RzG,whq,FmD,hz9,dWC,VC,qy9,B8v,skG,MlH,uOQ,ezG,yyF,Vlq,Pbq,ph_,Syt,zzQ,nNQ,kKF,xWv,DWY,tl6,WmD,ENF,GK_,aLD,ZyD,iyv,vN_,mW9,QkY,T8H,jkH,ki,XzH,ry_,l6_,b__,dvv,hCF,FDY,Btv,DF,PFH,cE,tv,EJ,f6H,pzH,nQG,xvq,kY9,Go,DvQ,tq_,WD_,EQC;Xhm=function(){var X,H;return typeof CSS!=="undefined"&&((H=(X=CSS).supports)==null?void 0:H.call(X,"selector(:has(*))"))};
Hyl=function(X){return X.visibility!=="hidden"&&X.display!=="none"};
oNW=function(X){if(Xhm()||X.tagName!=="DETAILS"?!X.matches(lLO):X.querySelector("summary")!==null)return-1;X=X.getAttribute("tabindex")||"0";return Number(X)};
byh=function(X){return X.some(function(H){return oNW(H)>0})};
UWO=function(X){if(X.textContent||X.ariaLabel)return!0;if(X instanceof HTMLInputElement){if(!X.labels)return!1;X=_.C(X.labels);for(var H=X.next();!H.done;H=X.next())if(H.value.textContent)return!0}return!1};
$WL=function(X){return X.sort(function(H,l){return oNW(l)-oNW(H)})};
_.KmL=function(X){X=Array.from(X.querySelectorAll(lLO)).filter(function(H){return(Hyl(H.style)?Hyl(window.getComputedStyle(H)):!1)&&UWO(H)});
return byh(X)?$WL(X):X};
_.XO=function(X,H){if(Error.captureStackTrace)Error.captureStackTrace(this,_.XO);else{var l=Error().stack;l&&(this.stack=l)}X&&(this.message=String(X));H!==void 0&&(this.cause=H)};
Hh=function(){throw Error("F");};
Rzy=function(X,H){H=String.fromCharCode.apply(null,H);return X==null?H:X+H};
hzZ=function(X){var H=!1;H=H===void 0?!1:H;if(Cby){if(H&&(whl?!X.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(X)))throw Error("G");X=(dWz||(dWz=new TextEncoder)).encode(X)}else{for(var l=0,b=new Uint8Array(3*X.length),U=0;U<X.length;U++){var K=X.charCodeAt(U);if(K<128)b[l++]=K;else{if(K<2048)b[l++]=K>>6|192;else{if(K>=55296&&K<=57343){if(K<=56319&&U<X.length){var w=X.charCodeAt(++U);if(w>=56320&&w<=57343){K=(K-55296)*1024+w-56320+65536;b[l++]=K>>18|
240;b[l++]=K>>12&63|128;b[l++]=K>>6&63|128;b[l++]=K&63|128;continue}else U--}if(H)throw Error("G");K=65533}b[l++]=K>>12|224;b[l++]=K>>6&63|128}b[l++]=K&63|128}}X=l===b.length?b:b.subarray(0,l)}return X};
bb=function(X){_.ok.setTimeout(function(){throw X;},0)};
_.$N=function(X){for(var H=[],l=0,b=0;b<X.length;b++){var U=X.charCodeAt(b);U<128?H[l++]=U:(U<2048?H[l++]=U>>6|192:((U&64512)==55296&&b+1<X.length&&(X.charCodeAt(b+1)&64512)==56320?(U=65536+((U&1023)<<10)+(X.charCodeAt(++b)&1023),H[l++]=U>>18|240,H[l++]=U>>12&63|128):H[l++]=U>>12|224,H[l++]=U>>6&63|128),H[l++]=U&63|128)}return H};
Fmm=function(X){for(var H=[],l=0,b=0;l<X.length;){var U=X[l++];if(U<128)H[b++]=String.fromCharCode(U);else if(U>191&&U<224){var K=X[l++];H[b++]=String.fromCharCode((U&31)<<6|K&63)}else if(U>239&&U<365){K=X[l++];var w=X[l++],d=X[l++];U=((U&7)<<18|(K&63)<<12|(w&63)<<6|d&63)-65536;H[b++]=String.fromCharCode(55296+(U>>10));H[b++]=String.fromCharCode(56320+(U&1023))}else K=X[l++],w=X[l++],H[b++]=String.fromCharCode((U&15)<<12|(K&63)<<6|w&63)}return H.join("")};
_.Ky=function(X,H){return X.lastIndexOf(H,0)==0};
Rk=function(X,H){var l=X.length-H.length;return l>=0&&X.indexOf(H,l)==l};
_.w8=function(X){return/^[\s\xa0]*$/.test(X)};
_.hy=function(X,H){return X.indexOf(H)!=-1};
_.Bh=function(X,H){return _.hy(X.toLowerCase(),H.toLowerCase())};
_.el=function(X,H){var l=0;X=qW(String(X)).split(".");H=qW(String(H)).split(".");for(var b=Math.max(X.length,H.length),U=0;l==0&&U<b;U++){var K=X[U]||"",w=H[U]||"";do{K=/(\d*)(\D*)(.*)/.exec(K)||["","","",""];w=/(\d*)(\D*)(.*)/.exec(w)||["","","",""];if(K[0].length==0&&w[0].length==0)break;l=B8W(K[1].length==0?0:parseInt(K[1],10),w[1].length==0?0:parseInt(w[1],10))||B8W(K[2].length==0,w[2].length==0)||B8W(K[2],w[2]);K=K[3];w=w[3]}while(l==0)}return l};
B8W=function(X,H){return X<H?-1:X>H?1:0};
_.yZ=function(){var X=_.ok.navigator;return X&&(X=X.userAgent)?X:""};
qyZ=function(X){if(!Ph||!fy)return!1;for(var H=0;H<fy.brands.length;H++){var l=fy.brands[H].brand;if(l&&_.hy(l,X))return!0}return!1};
py=function(X){return _.hy(_.yZ(),X)};
Sl=function(){return Ph?!!fy&&fy.brands.length>0:!1};
sky=function(){return Sl()?!1:py("Opera")};
MlO=function(){return Sl()?!1:py("Trident")||py("MSIE")};
uON=function(){return Sl()?qyZ("Microsoft Edge"):py("Edg/")};
ny=function(){return py("Firefox")||py("FxiOS")};
_.ezy=function(){return py("Safari")&&!(xN()||(Sl()?0:py("Coast"))||sky()||(Sl()?0:py("Edge"))||uON()||(Sl()?qyZ("Opera"):py("OPR"))||ny()||py("Silk")||py("Android"))};
xN=function(){return Sl()?qyZ("Chromium"):(py("Chrome")||py("CriOS"))&&!(Sl()?0:py("Edge"))||py("Silk")};
_.yyb=function(){return py("Android")&&!(xN()||ny()||sky()||py("Silk"))};
Vll=function(X){var H={};X.forEach(function(l){H[l[0]]=l[1]});
return function(l){return H[l.find(function(b){return b in H})]||""}};
Pbl=function(X){var H=_.yZ();if(X==="Internet Explorer"){if(MlO())if((X=/rv: *([\d\.]*)/.exec(H))&&X[1])H=X[1];else{X="";var l=/MSIE +([\d\.]+)/.exec(H);if(l&&l[1])if(H=/Trident\/(\d.\d)/.exec(H),l[1]=="7.0")if(H&&H[1])switch(H[1]){case "4.0":X="8.0";break;case "5.0":X="9.0";break;case "6.0":X="10.0";break;case "7.0":X="11.0"}else X="7.0";else X=l[1];H=X}else H="";return H}var b=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");l=[];for(var U;U=b.exec(H);)l.push([U[1],U[2],U[3]||void 0]);
H=Vll(l);switch(X){case "Opera":if(sky())return H(["Version","Opera"]);if(Sl()?qyZ("Opera"):py("OPR"))return H(["OPR"]);break;case "Microsoft Edge":if(Sl()?0:py("Edge"))return H(["Edge"]);if(uON())return H(["Edg"]);break;case "Chromium":if(xN())return H(["Chrome","CriOS","HeadlessChrome"])}return X==="Firefox"&&ny()||X==="Safari"&&_.ezy()||X==="Android Browser"&&_.yyb()||X==="Silk"&&py("Silk")?(H=l[2])&&H[1]||"":""};
_.fLz=function(X){if(Sl()&&X!=="Silk"){var H=fy.brands.find(function(l){return l.brand===X});
if(!H||!H.version)return NaN;H=H.version.split(".")}else{H=Pbl(X);if(H==="")return NaN;H=H.split(".")}return H.length===0?NaN:Number(H[0])};
DL=function(){return Ph?!!fy&&!!fy.platform:!1};
_.phy=function(){return DL()?fy.platform==="Android":py("Android")};
Sy8=function(){return py("iPhone")&&!py("iPod")&&!py("iPad")};
_.ty=function(){return Sy8()||py("iPad")||py("iPod")};
_.zzy=function(){return DL()?fy.platform==="macOS":py("Macintosh")};
_.nNN=function(){return DL()?fy.platform==="Windows":py("Windows")};
_.kKb=function(){return DL()?fy.platform==="Chrome OS":py("CrOS")};
_.Wh=function(X){return X[X.length-1]};
xWW=function(X){for(var H=_.GK,l=typeof X==="string"?X.split(""):X,b=X.length-1;b>=0;b--)if(b in l&&H.call(void 0,l[b],b,X))return b;return-1};
_.vh=function(X,H){return _.ak(X,H)>=0};
_.DWK=function(X,H){_.vh(X,H)||X.push(H)};
_.Oy=function(X,H){H=_.ak(X,H);var l;(l=H>=0)&&_.tlL(X,H);return l};
_.tlL=function(X,H){Array.prototype.splice.call(X,H,1)};
_.NW=function(X){var H=X.length;if(H>0){for(var l=Array(H),b=0;b<H;b++)l[b]=X[b];return l}return[]};
_.jl=function(X,H){for(var l=1;l<arguments.length;l++){var b=arguments[l];if(_.ch(b)){var U=X.length||0,K=b.length||0;X.length=U+K;for(var w=0;w<K;w++)X[U+w]=b[w]}else X.push(b)}};
_.ENb=function(X,H,l,b){Array.prototype.splice.apply(X,Wmm(arguments,1))};
Wmm=function(X,H,l){return arguments.length<=2?Array.prototype.slice.call(X,H):Array.prototype.slice.call(X,H,l)};
gN8=function(X,H){H=H||X;for(var l=0,b=0,U={};b<X.length;){var K=X[b++],w=_.r8(K)?"o"+_.Ly(K):(typeof K).charAt(0)+K;Object.prototype.hasOwnProperty.call(U,w)||(U[w]=!0,H[l++]=K)}H.length=l};
_.aLm=function(X,H,l){l=l||_.GKy;for(var b=0,U=X.length,K;b<U;){var w=b+(U-b>>>1);var d=l(H,X[w]);d>0?b=w+1:(U=w,K=!d)}return K?b:-b-1};
_.YN=function(X,H,l){if(!_.ch(X)||!_.ch(H)||X.length!=H.length)return!1;var b=X.length;l=l||Zym;for(var U=0;U<b;U++)if(!l(X[U],H[U]))return!1;return!0};
_.GKy=function(X,H){return X>H?1:X<H?-1:0};
Zym=function(X,H){return X===H};
iyW=function(X,H,l){H=Array.prototype.splice.call(X,H,1);Array.prototype.splice.call(X,l,0,H[0])};
_.Ik=function(X,H){H===void 0&&(H=0);vNy();H=Oyh[H];for(var l=Array(Math.floor(X.length/3)),b=H[64]||"",U=0,K=0;U<X.length-2;U+=3){var w=X[U],d=X[U+1],B=X[U+2],q=H[w>>2];w=H[(w&3)<<4|d>>4];d=H[(d&15)<<2|B>>6];B=H[B&63];l[K++]=q+w+d+B}q=0;B=b;switch(X.length-U){case 2:q=X[U+1],B=H[(q&15)<<2]||b;case 1:X=X[U],l[K]=H[X>>2]+H[(X&3)<<4|q>>4]+B+b}return l.join("")};
QkK=function(X){var H="";mWZ(X,function(l){H+=String.fromCharCode(l)});
return H};
_.T8O=function(X){var H=[];mWZ(X,function(l){H.push(l)});
return H};
_.Ay=function(X){var H=X.length,l=H*3/4;l%3?l=Math.floor(l):_.hy("=.",X[H-1])&&(l=_.hy("=.",X[H-2])?l-2:l-1);var b=new Uint8Array(l),U=0;mWZ(X,function(K){b[U++]=K});
return U!==l?b.subarray(0,U):b};
mWZ=function(X,H){function l(B){for(;b<X.length;){var q=X.charAt(b++),u=Hz[q];if(u!=null)return u;if(!_.w8(q))throw Error("I`"+q);}return B}
vNy();for(var b=0;;){var U=l(-1),K=l(0),w=l(64),d=l(64);if(d===64&&U===-1)break;H(U<<2|K>>4);w!=64&&(H(K<<4&240|w>>2),d!=64&&H(w<<6&192|d))}};
vNy=function(){if(!Hz){Hz={};for(var X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),H=["+/=","+/","-_=","-_.","-_"],l=0;l<5;l++){var b=X.concat(H[l].split(""));Oyh[l]=b;for(var U=0;U<b.length;U++){var K=b[U];Hz[K]===void 0&&(Hz[K]=U)}}}};
cyh=function(X){return N8h[X]||""};
JyW=function(X){if(!jkO)return _.Ay(X);X=ryk.test(X)?X.replace(ryk,cyh):X;X=atob(X);for(var H=new Uint8Array(X.length),l=0;l<X.length;l++)H[l]=X.charCodeAt(l);return H};
Lmz=function(X,H){X.__closure__error__context__984382||(X.__closure__error__context__984382={});X.__closure__error__context__984382.severity=H};
_.lF=function(X){X=Error(X);Lmz(X,"warning");return X};
ILW=function(X,H){if(X!=null){var l;var b=(l=YyW)!=null?l:YyW={};l=b[X]||0;l>=H||(b[X]=l+1,X=Error(),Lmz(X,"incident"),bb(X))}};
bF=function(){return typeof BigInt==="function"};
UG=function(X,H,l){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(l===void 0?0:l)&&Symbol.for&&X?Symbol.for(X):X!=null?Symbol(X):Symbol():H};
hQ=function(X,H){$Q||_.K_ in X||Ayh(X,XzO);X[_.K_]|=H};
FH=function(X,H){$Q||_.K_ in X||Ayh(X,XzO);X[_.K_]=H};
H_l=function(X){if(4&X)return 512&X?512:1024&X?1024:0};
V9=function(X){hQ(X,34);return X};
Pz=function(X){hQ(X,8192);return X};
l6k=function(X){hQ(X,32);return X};
kQ=function(X,H){return H===void 0?X.copyOnWrite!==n_&&!!(2&(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.K_]|0)):!!(2&H)&&X.copyOnWrite!==n_};
_.EG=function(X,H){if(X!=null)if(typeof X==="string")X=X?new D6(X,tQ):_.Wz();else if(X.constructor!==D6)if(oQN&&X!=null&&X instanceof Uint8Array)X=X.length?new D6(new Uint8Array(X),tQ):_.Wz();else{if(!H)throw Error();X=void 0}return X};
b_k=function(X,H){if(typeof H!=="number"||H<0||H>=X.length)throw Error();};
UvN=function(X,H,l){var b=H&128?0:-1,U=X.length,K;if(K=!!U)K=X[U-1],K=K!=null&&typeof K==="object"&&K.constructor===Object;var w=U+(K?-1:0);for(H=H&128?1:0;H<w;H++)l(H-b,X[H]);if(K){X=X[U-1];for(var d in X)!isNaN(d)&&l(+d,X[d])}};
GY=function(X){return X&128?gt:void 0};
_.RCl=function(X){var H=$vL;if(!KDL(X)){var l,b;H=(b=(l=typeof H==="function"?H():H)==null?void 0:l.concat("\n"))!=null?b:"";throw Error("L`"+H+"`"+String(X));}};
a_=function(X){X.isGuard_doNotManuallySetPrettyPlease=!0;return X};
wz8=function(){var X=CFh;return a_(function(H){for(var l in X)if(H===X[l]&&!/^[0-9]+$/.test(l))return!0;return!1})};
_.Z6=function(X){var H=X;if(dvW(H)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(H))throw Error(String(H));}else if(hCb(H)&&!Number.isSafeInteger(H))throw Error(String(H));return FDK?BigInt(X):X=BtW(X)?X?"1":"0":dvW(X)?X.trim()||"0":String(X)};
qGl=function(X,H){if(X.length>H.length)return!1;if(X.length<H.length||X===H)return!0;for(var l=0;l<X.length;l++){var b=X[l],U=H[l];if(b>U)return!1;if(b<U)return!0}};
s_N=function(X){var H=X>>>0;iF=H;vz=(X-H)/4294967296>>>0};
Q9=function(X){if(X<0){s_N(-X);var H=_.C(Mqz(iF,vz));X=H.next().value;H=H.next().value;iF=X>>>0;vz=H>>>0}else s_N(X)};
eCl=function(X){var H=uHz||(uHz=new DataView(new ArrayBuffer(8)));H.setFloat32(0,+X,!0);vz=0;iF=H.getUint32(0,!0)};
yQL=function(X,H){var l=H*4294967296+(X>>>0);return Number.isSafeInteger(l)?l:_.Nv(X,H)};
Vqz=function(X,H){return _.Z6(bF()?BigInt.asUintN(64,(BigInt(H>>>0)<<BigInt(32))+BigInt(X>>>0)):_.Nv(X,H))};
jq=function(X,H){var l=H&2147483648;l&&(X=~X+1>>>0,H=~H>>>0,X==0&&(H=H+1>>>0));X=yQL(X,H);return typeof X==="number"?l?-X:X:l?"-"+X:X};
PFO=function(X,H){return bF()?_.Z6(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(H))<<BigInt(32))+BigInt.asUintN(32,BigInt(X)))):_.Z6(_.JQ(X,H))};
f6O=function(X){var H=iF,l=vz,b=l>>31;l=(l<<1|H>>>31)^b;X(H<<1^b,l)};
SGL=function(X,H){return pzO(X,H,jq)};
pzO=function(X,H,l){var b=-(X&1);X=(X>>>1|H<<31)^b;H=H>>>1^b;return l(X,H)};
_.Nv=function(X,H){H>>>=0;X>>>=0;if(H<=2097151)var l=""+(4294967296*H+X);else bF()?l=""+(BigInt(H)<<BigInt(32)|BigInt(X)):(l=(X>>>24|H<<8)&16777215,H=H>>16&65535,X=(X&16777215)+l*6777216+H*6710656,l+=H*8147497,H*=2,X>=1E7&&(l+=X/1E7>>>0,X%=1E7),l>=1E7&&(H+=l/1E7>>>0,l%=1E7),l=H+zCy(l)+zCy(X));return l};
zCy=function(X){X=String(X);return"0000000".slice(X.length)+X};
_.JQ=function(X,H){H&2147483648?bF()?X=""+(BigInt(H|0)<<BigInt(32)|BigInt(X>>>0)):(H=_.C(Mqz(X,H)),X=H.next().value,H=H.next().value,X="-"+_.Nv(X,H)):X=_.Nv(X,H);return X};
L_=function(X){if(X.length<16)Q9(Number(X));else if(bF())X=BigInt(X),iF=Number(X&BigInt(4294967295))>>>0,vz=Number(X>>BigInt(32)&BigInt(4294967295));else{var H=+(X[0]==="-");vz=iF=0;for(var l=X.length,b=H,U=(l-H)%6+H;U<=l;b=U,U+=6)b=Number(X.slice(b,U)),vz*=1E6,iF=iF*1E6+b,iF>=4294967296&&(vz+=Math.trunc(iF/4294967296),vz>>>=0,iF>>>=0);H&&(H=_.C(Mqz(iF,vz)),X=H.next().value,H=H.next().value,iF=X,vz=H)}};
Mqz=function(X,H){H=~H;X?X=~X+1:H+=1;return[X,H]};
X5=function(X){return Array.prototype.slice.call(X)};
_.Hp=function(X,H){throw Error(H===void 0?"unexpected value "+X+"!":H);};
_.lx=function(X){if(X!=null&&typeof X!=="number")throw Error("M`"+typeof X+"`"+X);return X};
_.oC=function(X){if(X==null||typeof X==="number")return X;if(X==="NaN"||X==="Infinity"||X==="-Infinity")return Number(X)};
nQy=function(X){if(X!=null&&typeof X!=="boolean")throw Error("N`"+_.bx(X)+"`"+X);return X};
_.kYZ=function(X){if(X==null||typeof X==="boolean")return X;if(typeof X==="number")return!!X};
_.Kd=function(X){switch(typeof X){case "bigint":return!0;case "number":return Ua(X);case "string":return xvl.test(X);default:return!1}};
_.Cd=function(X){if(!Ua(X))throw _.lF("enum");return X|0};
_.wY=function(X){return X==null?X:Ua(X)?X|0:void 0};
Dvy=function(X){if(typeof X!=="number")throw _.lF("int32");if(!Ua(X))throw _.lF("int32");return X|0};
_.dY=function(X){return X==null?X:Dvy(X)};
_.hN=function(X){if(X==null)return X;if(typeof X==="string"&&X)X=+X;else if(typeof X!=="number")return;return Ua(X)?X|0:void 0};
_.tqy=function(X){if(X==null)return X;if(typeof X==="string"&&X)X=+X;else if(typeof X!=="number")return;return Ua(X)?X>>>0:void 0};
GYL=function(X){var H=void 0;H!=null||(H=_.Bp?1024:0);if(!_.Kd(X))throw _.lF("int64");var l=typeof X;switch(H){case 512:switch(l){case "string":return MZ(X);case "bigint":return String(ux(64,X));default:return WDk(X)}case 1024:switch(l){case "string":return EQz(X);case "bigint":return _.Z6(ux(64,X));default:return gQy(X)}case 0:switch(l){case "string":return MZ(X);case "bigint":return _.Z6(ux(64,X));default:return ey(X)}default:return _.Hp(H,"Unknown format requested type for int64")}};
ye=function(X){return X==null?X:GYL(X)};
a6y=function(X){var H=X.length;if(X[0]==="-"?H<20||H===20&&X<="-9223372036854775808":H<19||H===19&&X<="9223372036854775807")return X;L_(X);return _.JQ(iF,vz)};
Z_k=function(X){if(X[0]==="-")var H=!1;else H=X.length,H=H<20?!0:H===20&&X<="18446744073709551615";if(H)return X;L_(X);return _.Nv(iF,vz)};
ey=function(X){X=Ve(X);fd(X)||(Q9(X),X=jq(iF,vz));return X};
_.i_K=function(X){X=Ve(X);X>=0&&fd(X)||(Q9(X),X=yQL(iF,vz));return X};
WDk=function(X){X=Ve(X);fd(X)?X=String(X):(Q9(X),X=_.JQ(iF,vz));return X};
_.vQk=function(X){X=Ve(X);X>=0&&fd(X)?X=String(X):(Q9(X),X=_.Nv(iF,vz));return X};
MZ=function(X){var H=Ve(Number(X));if(fd(H))return String(H);H=X.indexOf(".");H!==-1&&(X=X.substring(0,H));return a6y(X)};
EQz=function(X){var H=Ve(Number(X));if(fd(H))return _.Z6(H);H=X.indexOf(".");H!==-1&&(X=X.substring(0,H));return bF()?_.Z6(ux(64,BigInt(X))):_.Z6(a6y(X))};
gQy=function(X){return fd(X)?_.Z6(ey(X)):_.Z6(WDk(X))};
_.O_8=function(X){return fd(X)?_.Z6(_.i_K(X)):_.Z6(_.vQk(X))};
_.mvZ=function(X){var H=Ve(Number(X));if(fd(H)&&H>=0)return String(H);H=X.indexOf(".");H!==-1&&(X=X.substring(0,H));return Z_k(X)};
_.Q_L=function(X){var H=Ve(Number(X));if(fd(H)&&H>=0)return _.Z6(H);H=X.indexOf(".");H!==-1&&(X=X.substring(0,H));return bF()?_.Z6((0,_.pd)(64,BigInt(X))):_.Z6(Z_k(X))};
Ntz=function(X){if(X==null)return X;if(typeof X==="bigint")return Tty(X)?X=Number(X):(X=ux(64,X),X=Tty(X)?Number(X):String(X)),X;if(_.Kd(X))return typeof X==="number"?ey(X):MZ(X)};
cQO=function(X,H){H=H===void 0?!1:H;var l=typeof X;if(X==null)return X;if(l==="bigint")return String(ux(64,X));if(_.Kd(X))return l==="string"?MZ(X):H?WDk(X):ey(X)};
j_l=function(X){var H=typeof X;if(X==null)return X;if(H==="bigint")return _.Z6(ux(64,X));if(_.Kd(X))return H==="string"?EQz(X):gQy(X)};
rQl=function(X){var H=typeof X;if(X==null)return X;if(H==="bigint")return _.Z6((0,_.pd)(64,X));if(_.Kd(X))return H==="string"?_.Q_L(X):_.O_8(X)};
JQL=function(X){if(X==null)return X;var H=typeof X;if(H==="bigint")return String(ux(64,X));if(_.Kd(X)){if(H==="string")return MZ(X);if(H==="number")return ey(X)}};
LDh=function(X){if(X==null)return X;var H=typeof X;if(H==="bigint")return String((0,_.pd)(64,X));if(_.Kd(X)){if(H==="string")return _.mvZ(X);if(H==="number")return _.i_K(X)}};
_.zZ=function(X){if(typeof X!=="string")throw Error();return X};
xU=function(X){if(X!=null&&typeof X!=="string")throw Error();return X};
_.DA=function(X){return X==null||typeof X==="string"?X:void 0};
AQy=function(X,H,l,b){if(X!=null&&X[Wp]===Ea)return X;if(!Array.isArray(X))return l?b&2?H[YGN]||(H[YGN]=I6h(H)):new H:void 0;l=X[_.K_]|0;b=l|b&32|b&2;b!==l&&FH(X,b);return new H(X)};
I6h=function(X){X=new X;V9(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return X};
XpO=function(X,H,l){X=H?Dvy(X):_.hN(X);return X==null?l?0:void 0:X|0};
Hdb=function(X){return X};
lAy=function(X){return X};
bdZ=function(X,H,l,b,U,K){X=AQy(X,b,l,K);U&&(X=oUZ(X));return X};
UZk=function(X){return[X,this.get(X)]};
Rly=function(){return $Zz||($Zz=new gY(V9([]),void 0,void 0,void 0,K$Z))};
Cxz=function(X){var H=ZA(ix);return H?X[H]:void 0};
hly=function(X,H){var l=l===void 0?!1:l;if(ZA(wpL)&&ZA(ix)&&void 0===wpL){var b=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=b[ix];if(!U)return;if(U=U.reviveUnknownFields)try{U(b,H,dZL);return}catch(K){bb(K)}}l&&(X=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(l=ZA(ix))&&l in X&&(X=X[l])&&delete X[H])};
BYW=function(X,H){var l=ZA(ix),b;$Q&&l&&((b=X[l])==null?void 0:b[H])!=null&&ILW(F$b,3)};
sCO=function(X,H){H<100||ILW(qal,1)};
Vyl=function(X,H,l,b){var U=b!==void 0;b=!!b;var K=ZA(ix),w;!U&&$Q&&K&&(w=X[K])&&Myb(w,sCO);K=[];var d=X.length;w=4294967295;var B=!1,q=!!(H&64),u=q?H&128?0:-1:void 0;if(!(H&1)){var e=d&&X[d-1];e!=null&&typeof e==="object"&&e.constructor===Object?(d--,w=d):e=void 0;if(q&&!(H&128)&&!U){B=!0;var y;w=((y=u5y)!=null?y:Hdb)(w-u,u,X,e,void 0)+u}}H=void 0;for(y=0;y<d;y++){var V=X[y];if(V!=null&&(V=l(V,b))!=null)if(q&&y>=w){var p=y-u,z=void 0;((z=H)!=null?z:H={})[p]=V}else K[y]=V}if(e)for(var t in e)d=e[t],
d!=null&&(d=l(d,b))!=null&&(y=+t,V=void 0,q&&!Number.isNaN(y)&&(V=y+u)<w?K[V]=d:(y=void 0,((y=H)!=null?y:H={})[t]=d));H&&(B?K.push(H):K[w]=H);U&&ZA(ix)&&(X=Cxz(X))&&X instanceof elZ&&(K[ix]=yNl(X));return K};
fAy=function(X){X[0]=Pxm(X[0]);X[1]=Pxm(X[1]);return X};
Pxm=function(X){switch(typeof X){case "number":return Number.isFinite(X)?X:""+X;case "bigint":return Tty(X)?Number(X):""+X;case "boolean":return X?1:0;case "object":if(Array.isArray(X)){var H=X[_.K_]|0;return X.length===0&&H&1?void 0:Vyl(X,H,Pxm)}if(X!=null&&X[Wp]===Ea)return ppm(X);if(X instanceof D6){H=X.JSC$9130_value_;if(H==null)X="";else if(typeof H==="string")X=H;else{if(jkO){for(var l="",b=0,U=H.length-10240;b<U;)l+=String.fromCharCode.apply(null,H.subarray(b,b+=10240));l+=String.fromCharCode.apply(null,
b?H.subarray(b):H);H=btoa(l)}else H=_.Ik(H);X=X.JSC$9130_value_=H}return X}if(X instanceof gY)return X=X.size!==0?Saz(X,fAy):void 0,X;return}return X};
vp=function(X,H){if(H){u5y=H==null||H===Hdb||H[zl8]!==nUy?Hdb:H;try{return ppm(X)}finally{u5y=void 0}}return ppm(X)};
ppm=function(X){X=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Vyl(X,X[_.K_]|0,Pxm)};
DZk=function(X){switch(typeof X){case "boolean":return kZZ||(kZZ=[0,void 0,!0]);case "number":return X>0?void 0:X===0?xZZ||(xZZ=[0,void 0]):[-X,void 0];case "string":return[0,X];case "object":return X}};
m$=function(X,H){return tyN(X,H[0],H[1])};
_.Qe=function(X,H,l){return tyN(X,H,l,2048)};
tyN=function(X,H,l,b){b=b===void 0?0:b;if(X==null){var U=32;l?(X=[l],U|=128):X=[];H&&(U=U&-16760833|(H&1023)<<14)}else{if(!Array.isArray(X))throw Error("P");U=X[_.K_]|0;if(W$Z&&1&U)throw Error("Q");2048&U&&!(2&U)&&EUm();if(U&256)throw Error("R");if(U&64)return(U|b)!==U&&FH(X,U|b),X;if(l&&(U|=128,l!==X[0]))throw Error("S");a:{l=X;U|=64;var K=l.length;if(K){var w=K-1,d=l[w];if(d!=null&&typeof d==="object"&&d.constructor===Object){H=U&128?0:-1;w-=H;if(w>=1024)throw Error("U");for(var B in d)K=+B,K<w&&
(l[K+H]=d[B],delete d[B]);U=U&-16760833|(w&1023)<<14;break a}}if(H){B=Math.max(H,K-(U&128?0:-1));if(B>1024)throw Error("V");U=U&-16760833|(B&1023)<<14}}}FH(X,U|64|b);return X};
EUm=function(){if(W$Z)throw Error("T");ILW(gU8,5)};
Zd8=function(X,H){if(typeof X!=="object")return X;if(Array.isArray(X)){var l=X[_.K_]|0;return X.length===0&&l&1?void 0:GZb(X,l,H)}if(X!=null&&X[Wp]===Ea)return aAy(X);if(X instanceof gY){H=X.arrayState;if(H&2)return X;if(!X.size)return;l=V9(Saz(X));if(X.valueCtor)for(X=0;X<l.length;X++){var b=l[X],U=b[1];U==null||typeof U!=="object"?U=void 0:U!=null&&U[Wp]===Ea?U=aAy(U):Array.isArray(U)?U=GZb(U,U[_.K_]|0,!!(H&32)):U=void 0;b[1]=U}return l}if(X instanceof D6)return X};
GZb=function(X,H,l){if(H&2)return X;!l||4096&H||16&H?X=TZ(X,H,!1,l&&!(H&16)):(hQ(X,34),H&4&&Object.freeze(X));return X};
idy=function(X,H,l){X=new X.constructor(H);l&&(X.copyOnWrite=n_);X.noLegacyNull=n_;return X};
aAy=function(X){var H=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=H[_.K_]|0;return kQ(X,l)?X:vUL(X,H,l)?idy(X,H):TZ(H,l)};
TZ=function(X,H,l,b){b!=null||(b=!!(34&H));X=Vyl(X,H,Zd8,b);b=32;l&&(b|=2);H=H&16769217|b;FH(X,H);return X};
oUZ=function(X){var H=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=H[_.K_]|0;return kQ(X,l)?vUL(X,H,l)?idy(X,H,!0):new X.constructor(TZ(H,l,!1)):X};
cp=function(X){if(X.copyOnWrite!==n_)return!1;var H=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;H=TZ(H,H[_.K_]|0);hQ(H,2048);X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=H;X.copyOnWrite=void 0;X.noLegacyNull=void 0;return!0};
jy=function(X){if(!cp(X)&&kQ(X,X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.K_]|0))throw Error();};
JN=function(X,H){H===void 0&&(H=X[_.K_]|0);H&32&&!(H&4096)&&FH(X,H|4096)};
vUL=function(X,H,l){return l&2?!0:l&32&&!(l&4096)?(FH(H,l|2),X.copyOnWrite=n_,!0):!1};
Ld=function(X,H,l,b,U){var K=l+(U?0:-1),w=X.length-1;if(w>=1+(U?0:-1)&&K>=w){var d=X[w];if(d!=null&&typeof d==="object"&&d.constructor===Object)return d[l]=b,H}if(K<=w)return X[K]=b,H;if(b!==void 0){var B;w=((B=H)!=null?B:H=X[_.K_]|0)>>14&1023||536870912;l>=w?b!=null&&(K={},X[w+(U?0:-1)]=(K[l]=b,K)):X[K]=b}return H};
_.Hu=function(X,H,l,b,U){var K=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=K[_.K_]|0;b=kQ(X,w)?1:b;U=!!U||b===3;b===2&&cp(X)&&(K=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=K[_.K_]|0);X=OdL(K,H);var d=X===YU?7:X[_.K_]|0,B=mZK(d,w);var q=4&B?!1:!0;if(q){4&B&&(X=X5(X),d=0,B=X9(B,w),w=Ld(K,w,H,X));for(var u=0,e=0;u<X.length;u++){var y=l(X[u]);y!=null&&(X[e++]=y)}e<u&&(X.length=e);l=(B|4)&-513;B=l&=-1025;B&=-4097}B!==d&&(FH(X,B),2&B&&Object.freeze(X));return X=QCW(X,B,K,
w,H,b,q,U)};
QCW=function(X,H,l,b,U,K,w,d){var B=H;K===1||(K!==4?0:2&H||!(16&H)&&32&b)?lR(H)||(H|=!X.length||w&&!(4096&H)||32&b&&!(4096&H||16&H)?2:256,H!==B&&FH(X,H),Object.freeze(X)):(K===2&&lR(H)&&(X=X5(X),B=0,H=X9(H,b),b=Ld(l,b,U,X)),lR(H)||(d||(H|=16),H!==B&&FH(X,H)));2&H||!(4096&H||16&H)||JN(l,b);return X};
OdL=function(X,H,l){X=o$(X,H,l);return Array.isArray(X)?X:YU};
mZK=function(X,H){2&H&&(X|=2);return X|1};
lR=function(X){return!!(2&X)&&!!(4&X)||!!(256&X)};
TYy=function(X){return _.EG(X,!0)};
NYN=function(X){X=X5(X);for(var H=0;H<X.length;H++){var l=X[H]=X5(X[H]);Array.isArray(l[1])&&(l[1]=V9(l[1]))}return Pz(X)};
_.cNK=function(X,H,l,b,U){var K=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=K[_.K_]|0;var d=kQ(X,w);a:{!d&&cp(X)&&(K=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,w=K[_.K_]|0);var B=o$(K,H);X=!1;if(B==null){if(d){H=Rly();break a}B=[]}else if(B.constructor===gY)if(B.arrayState&2&&!d)B=Saz(B);else{H=B;break a}else Array.isArray(B)?X=!!((B[_.K_]|0)&2):B=[];if(d){if(!B.length){H=Rly();break a}X||(X=!0,V9(B))}else X&&(X=!1,Pz(B),B=NYN(B));!X&&w&32&&l6k(B);b=new gY(B,l,b,U);w=
Ld(K,w,H,b);X||JN(K,w);H=b}!d&&l&&(H.callToMutableOnAccess=!0);return H};
_.bR=function(X,H,l,b){jy(X);var U=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=U[_.K_]|0;if(l==null)return Ld(U,K,H),X;var w=l===YU?7:l[_.K_]|0,d=w,B=lR(w),q=B||Object.isFrozen(l);B||(w=0);q||(l=X5(l),d=0,w=X9(w,K),q=!1);w|=5;var u;B=(u=H_l(w))!=null?u:_.Bp?1024:0;w|=B;for(u=0;u<l.length;u++){var e=l[u],y=b(e,B);Object.is(e,y)||(q&&(l=X5(l),d=0,w=X9(w,K),q=!1),l[u]=y)}w!==d&&(q&&(l=X5(l),w=X9(w,K)),FH(l,w));Ld(U,K,H,l);return X};
_.$n=function(X,H,l,b,U){jy(X);var K=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Ld(K,K[_.K_]|0,H,(b==="0"?Number(l)===0:l===b)?void 0:l,U);return X};
_.KX=function(X,H,l){if(H&2)throw Error();var b=GY(H),U=OdL(X,l,b),K=U===YU?7:U[_.K_]|0,w=mZK(K,H);if(2&w||lR(w)||16&w)w===K||lR(w)||FH(U,w),U=X5(U),K=0,w=X9(w,H),Ld(X,H,l,U,b);w&=-13;w!==K&&FH(U,w);return U};
jCO=function(X){if($Q){var H;return(H=X[CX])!=null?H:X[CX]=new Map}if(CX in X)return X[CX];H=new Map;Object.defineProperty(X,CX,{value:H});return H};
JNb=function(X,H,l,b,U){var K=jCO(X),w=rNb(K,X,H,l,U);w!==b&&(w&&(H=Ld(X,H,w,void 0,U)),K.set(l,b));return H};
rNb=function(X,H,l,b,U){var K=X.get(b);if(K!=null)return K;for(var w=K=0;w<b.length;w++){var d=b[w];o$(H,d,U)!=null&&(K!==0&&(l=Ld(H,l,K,void 0,U)),K=d)}X.set(b,K);return K};
L$N=function(X,H,l,b,U){var K=!1;b=o$(X,b,U,function(w){var d=AQy(w,l,!1,H);K=d!==w&&d!=null;return d});
if(b!=null)return K&&!kQ(b)&&JN(X,H),b};
Yal=function(X,H,l,b,U,K,w,d){var B=kQ(X,l);K=B?1:K;w=!!w||K===3;B=d&&!B;(K===2||B)&&cp(X)&&(H=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l=H[_.K_]|0);X=OdL(H,U);var q=X===YU?7:X[_.K_]|0,u=mZK(q,l);if(d=!(4&u)){var e=X,y=l,V=!!(2&u);V&&(y|=2);for(var p=!V,z=!0,t=0,W=0;t<e.length;t++){var G=AQy(e[t],b,!1,y);if(G instanceof b){if(!V){var r=kQ(G);p&&(p=!r);z&&(z=r)}e[W++]=G}}W<t&&(e.length=W);u|=4;u=z?u&-4097:u|4096;u=p?u|8:u&-9}u!==q&&(FH(X,u),2&u&&Object.freeze(X));if(B&&!(8&u||!X.length&&
(K===1||(K!==4?0:2&u||!(16&u)&&32&l)))){lR(u)&&(X=X5(X),u=X9(u,l),l=Ld(H,l,U,X));b=X;B=u;for(q=0;q<b.length;q++)e=b[q],u=oUZ(e),e!==u&&(b[q]=u);B|=8;u=B=b.length?B|4096:B&-4097;FH(X,u)}return X=QCW(X,u,H,l,U,K,d,w)};
IAO=function(X){X==null&&(X=void 0);return X};
X9=function(X,H){return X=(2&H?X|2:X&-3)&-273};
_.ANk=function(X,H,l,b,U){jy(X);H=_.Hu(X,H,U,2,!0);var K;U=(K=H_l(H===YU?7:H[_.K_]|0))!=null?K:_.Bp?1024:0;H.push(l(b,U));return X};
XuZ=function(X,H,l,b,U,K,w){jy(X);var d=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;X=Yal(X,d,d[_.K_]|0,l,H,2,!0);if(K&&w)U!=null||(U=X.length-1),b_k(X,U),X.splice(U,K),X.length||(X[_.K_]&=-4097);else{if(K){if(typeof U!=="number"||U<0||U>X.length)throw Error();}else b=b!=null?b:new l;U!=void 0?X.splice(U,K,b):X.push(b);U=l=X===YU?7:X[_.K_]|0;(b=kQ(b))?(l&=-9,X.length===1&&(l&=-4097)):l|=4096;l!==U&&FH(X,l);b||JN(d)}};
lrN=function(X,H){if(typeof X==="string")return new wo(JyW(X),H);if(Array.isArray(X))return new wo(new Uint8Array(X),H);if(X.constructor===Uint8Array)return new wo(X,!1);if(X.constructor===ArrayBuffer)return X=new Uint8Array(X),new wo(X,!1);if(X.constructor===D6)return H=HXN(X)||new Uint8Array(0),new wo(H,!0,X);if(X instanceof Uint8Array)return X=X.constructor===Uint8Array?X:new Uint8Array(X.buffer,X.byteOffset,X.byteLength),new wo(X,!1);throw Error();};
bXy=function(X){switch(typeof X){case "string":on8(X)}};
$a8=function(X){switch(typeof X){case "string":UaO(X)}};
hb=function(){var X=function(){throw Error();};
Object.setPrototypeOf(X,X.prototype);return X};
Ruy=function(X,H){var l=l===void 0?Kzk:l;return new F9(X,H,l)};
day=function(X,H,l,b,U){CRy(X,l,wub(H,b),U)};
qa=function(X,H,l,b){var U=b[X];if(U)return U;U={};U.binaryFields=b;U.messageMetadata=DZk(b[0]);var K=b[1],w=1;K&&K.constructor===Object&&(U.extensions=K,K=b[++w],typeof K==="function"&&(U.isMessageSet=!0,huy!=null||(huy=K),Fz8!=null||(Fz8=b[w+1]),K=b[w+=2]));for(var d={};K&&Boy(K);){for(var B=0;B<K.length;B++)d[K[B]]=K;K=b[++w]}for(B=1;K!==void 0;){typeof K==="number"&&(B+=K,K=b[++w]);var q=void 0;if(K instanceof F9)var u=K;else u=qUb,w--;K=void 0;if((K=u)==null?0:K.$$isMsg){K=b[++w];q=b;var e=w;
typeof K==="function"&&(K=K(),q[e]=K);q=K}K=b[++w];e=B+1;typeof K==="number"&&K<0&&(e-=K,K=b[++w]);for(;B<e;B++){var y=d[B];q?l(U,B,u,q,y):H(U,B,u,y)}}return b[X]=U};
Boy=function(X){return Array.isArray(X)&&!!X.length&&typeof X[0]==="number"&&X[0]>0};
MAz=function(X){return Array.isArray(X)?X[0]instanceof F9?X:[s$N,X]:[X,void 0]};
wub=function(X,H){if(X instanceof _.sU)return X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(X))return m$(X,H)};
u9l=function(X,H,l,b){var U=l.$$binaryReaderFn;X[H]=b?function(K,w,d){return U(K,w,d,b)}:U};
yby=function(X,H,l,b,U){var K=l.$$binaryReaderFn,w,d;X[H]=function(B,q,u){return K(B,q,u,d||(d=qa(euN,u9l,yby,b).messageMetadata),w||(w=VAm(b)),U)}};
VAm=function(X){var H=X[PRK];if(H!=null)return H;var l=qa(euN,u9l,yby,X);H=l.isMessageSet?function(b,U){return huy(b,U,l)}:function(b,U){for(;frk(U)&&U.nextWireType_!=4;){var K=U.nextField_,w=l[K];
if(w==null){var d=l.extensions;d&&(d=d[K])&&(d=puZ(d),d!=null&&(w=l[K]=d))}if(w==null||!w(U,b,K)){d=U;w=d.fieldCursor_;SUk(d);if(d.discardUnknownFields)var B=void 0;else{var q=d.decoder_.cursor_-w;d.decoder_.cursor_=w;B=zub(d.decoder_,q)}q=d=w=void 0;var u=b;B&&((w=(d=(q=u[ix])!=null?q:u[ix]=new elZ)[K])!=null?w:d[K]=[]).push(B)}}if(b=Cxz(b))b.reviveUnknownFields=l.binaryFields[nnL];return!0};
X[PRK]=H;X[nnL]=k2y.bind(X);return H};
k2y=function(X,H,l,b){var U=this[euN],K=this[PRK],w=m$(void 0,U.messageMetadata),d=Cxz(X);if(d){var B=!1,q=U.extensions;if(q){U=function(p,z,t){if(t.length!==0)if(q[z])for(p=_.C(t),z=p.next();!z.done;z=p.next()){z=xay(z.value);try{B=!0,K(w,z)}finally{z.free()}}else b==null||b(X,z,t)};
if(H==null)Myb(d,U);else if(d!=null){var u=d[H];u&&U(d,H,u)}if(B){var e=X[_.K_]|0;if(e&2&&e&2048&&(l==null||!l.reviveIntoImmutable))throw Error();var y=GY(e),V=function(p,z){if(o$(X,p,y)!=null)switch(l==null?void 0:l.resolutionBehavior){case 1:return;default:throw Error();}z!=null&&(e=Ld(X,e,p,z,y));delete d[p]};
H==null?UvN(w,w[_.K_]|0,function(p,z){V(p,z)}):V(H,o$(w,H,y))}}}};
puZ=function(X){X=MAz(X);var H=X[0].$$binaryReaderFn;if(X=X[1]){var l=VAm(X),b=qa(euN,u9l,yby,X).messageMetadata;return function(U,K,w){return H(U,K,w,b,l)}}return H};
Da8=function(X,H,l){X[H]=l.$$binaryWriterFn};
WzK=function(X,H,l,b){var U,K,w=l.$$binaryWriterFn;X[H]=function(d,B,q){return w(d,B,q,K||(K=qa(tAk,Da8,WzK,b).messageMetadata),U||(U=EnN(b)))}};
EnN=function(X){var H=X[gnh];if(!H){var l=qa(tAk,Da8,WzK,X);H=function(b,U){return G2L(b,U,l)};
X[gnh]=H}return H};
G2L=function(X,H,l){UvN(X,X[_.K_]|0,function(b,U){if(U!=null){var K=arb(l,b);K?K(H,U,b):b<500||ILW(ZXO,3)}});
(X=Cxz(X))&&Myb(X,function(b,U,K){Ma(H,H.encoder_.end());for(b=0;b<K.length;b++)Ma(H,HXN(K[b])||new Uint8Array(0))})};
arb=function(X,H){var l=X[H];if(l)return l;if(l=X.extensions)if(l=l[H]){l=MAz(l);var b=l[0].$$binaryWriterFn;if(l=l[1]){var U=EnN(l),K=qa(tAk,Da8,WzK,l).messageMetadata;l=X.isMessageSet?Fz8(K,U):function(w,d,B){return b(w,d,B,K,U)}}else l=b;
return X[H]=l}};
_.iXm=function(X,H,l){if(Array.isArray(H)){var b=H[_.K_]|0;if(b&4)return H;for(var U=0,K=0;U<H.length;U++){var w=X(H[U]);w!=null&&(H[K++]=w)}K<U&&(H.length=K);X=b|1;l&&(X=(X|4)&-1537);X!==b&&FH(H,X);l&&X&2&&Object.freeze(H);return H}};
_.uR=function(X,H,l){return new F9(X,H,l)};
_.vnz=function(X,H,l){return new F9(X,H,l)};
_.eA=function(X,H,l){Ld(X,X[_.K_]|0,H,l,GY(X[_.K_]|0))};
OXN=function(X,H,l){H=_.oC(H);H!=null&&(_.y2(X,l,1),X=X.encoder_,l=uHz||(uHz=new DataView(new ArrayBuffer(8))),l.setFloat64(0,+H,!0),iF=l.getUint32(0,!0),vz=l.getUint32(4,!0),_.V2(X,iF),_.V2(X,vz))};
mal=function(X,H,l){H=_.oC(H);H!=null&&(_.y2(X,l,5),X=X.encoder_,eCl(H),_.V2(X,iF))};
_.fX=function(X,H,l){H=JQL(H);if(H!=null&&(bXy(H),H!=null))switch(_.y2(X,l,0),typeof H){case "number":X=X.encoder_;Q9(H);Pu(X,iF,vz);break;case "bigint":l=BigInt.asUintN(64,H);l=new Q$N(Number(l&BigInt(4294967295)),Number(l>>BigInt(32)));Pu(X.encoder_,l.JSC$9173_lo,l.JSC$9173_hi);break;default:l=on8(H),Pu(X.encoder_,l.JSC$9173_lo,l.JSC$9173_hi)}};
Nok=function(X,H,l){H=LDh(H);if(H!=null&&($a8(H),H!=null))switch(_.y2(X,l,0),typeof H){case "number":X=X.encoder_;Q9(H);Pu(X,iF,vz);break;case "bigint":l=Toy(H);Pu(X.encoder_,l.JSC$9171_lo,l.JSC$9171_hi);break;default:l=UaO(H),Pu(X.encoder_,l.JSC$9171_lo,l.JSC$9171_hi)}};
j$b=function(X,H,l){H=_.hN(H);H!=null&&H!=null&&(_.y2(X,l,0),_.cbh(X.encoder_,H))};
_.Jbb=function(X,H,l){rbW(X,l,LDh(H))};
LzW=function(X,H,l){H=_.kYZ(H);H!=null&&(_.y2(X,l,0),X.encoder_.JSC$9175_buffer_.push(H?1:0))};
IrK=function(X,H,l){H=_.DA(H);H!=null&&YUZ(X,l,hzZ(H))};
Abm=function(X,H,l,b,U){CRy(X,l,wub(H,b),U)};
_.XJy=function(X,H,l){H=H==null||typeof H=="string"||H instanceof D6?H:void 0;H!=null&&YUZ(X,l,lrN(H,!0).buffer)};
HJh=function(X,H,l){H=_.tqy(H);H!=null&&H!=null&&(_.y2(X,l,0),SA(X.encoder_,H))};
_.l3N=function(X,H,l){H=_.hN(H);H!=null&&(H=parseInt(H,10),_.y2(X,l,0),_.cbh(X.encoder_,H))};
omz=function(X,H,l){if(X.nextWireType_!==0)return!1;_.eA(H,l,_.z2(X.decoder_,PFO));return!0};
_.bJZ=function(X,H,l,b){if(X.nextWireType_!==0)return!1;_.nX(H,l,b,_.z2(X.decoder_,PFO));return!0};
Ulk=function(X,H,l){if(X.nextWireType_!==0)return!1;_.eA(H,l,_.z2(X.decoder_,Vqz));return!0};
_.K5l=function(X,H,l){if(X.nextWireType_!==1)return!1;_.eA(H,l,$lZ(X.decoder_));return!0};
_.xn=function(X,H){return function(l,b){var U={treatNewDataAsImmutable:!0};b&&Object.assign(U,b);l=xay(l,void 0,void 0,U);try{var K=new X,w=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;VAm(H)(w,l);var d=K}finally{l.free()}return d}};
_.tb=function(X){return function(H){return Rny(H,X)}};
CQk=function(X){return function(){return Rny(this,X)}};
_.wJb=function(X){return a_(function(H){return H instanceof X&&!kQ(H)})};
_.Wu=function(X){return function(H){return dlh(X,H)}};
qwy=function(X,H){return hnl({child:X,origin:H||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:F5y,getPayloadCase:function(l){return l.getPayloadCase()},
createInitMessage:function(l){var b=new EU,U=new BrO;l=_.go(U,1,l);return _.G2(b,5,a$,l)}})};
Zr=function(X){return{valueOf:X}.valueOf()};
MiW=function(){var X=null;if(!sDy)return X;try{var H=function(l){return l};
X=sDy.createPolicy("goog#html",{createHTML:H,createScript:H,createScriptURL:H})}catch(l){}return X};
eny=function(){u3b===void 0&&(u3b=MiW());return u3b};
_.vu=function(X){var H=eny();X=H?H.createScriptURL(X):X;return new iR(X)};
_.OU=function(X){if(X instanceof iR)return X.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("$");};
_.mz=function(X){return Object.isFrozen(X)&&Object.isFrozen(X.raw)};
yrO=function(X){return X.toString().indexOf("`")===-1};
Na=function(X){return new _.T2(ViK,X)};
cu=function(X){return X instanceof _.T2};
_.jA=function(X){if(cu(X))return X.privateDoNotAccessOrElseWrappedUrl;throw Error("$");};
ro=function(X){return new PQ8(function(H){return H.substr(0,X.length+1).toLowerCase()===X+":"})};
_.Jb=function(X,H){H=H===void 0?f3y:H;if(cu(X))return X;for(var l=0;l<H.length;++l){var b=H[l];if(b instanceof PQ8&&b.isValid(X))return Na(X)}};
_.Yn=function(X,H){H=H===void 0?f3y:H;return _.Jb(X,H)||LX};
_.I$=function(X){var H=window;if(typeof MediaSource!=="undefined"&&X instanceof MediaSource||typeof H.ManagedMediaSource!=="undefined"&&X instanceof H.ManagedMediaSource)return Na(URL.createObjectURL(X));H=X.type;H.toLowerCase()==="application/octet-stream"?H=!0:(H=H.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),H=(H==null?void 0:H.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(H[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(H[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(H[1])||/^font\/[\w-]+$/i.test(H[1])));if(!H)throw Error("$");return Na(URL.createObjectURL(X))};
_.pJK=function(X){for(var H=_.Ab.apply(1,arguments),l=[X[0]],b=0;b<H.length;b++)l.push(String(H[b])),l.push(X[b+1]);return Na(l.join(""))};
_.zny=function(X){if(!SwO){a:{var H=document.createElement("a");try{H.href=X}catch(l){X=void 0;break a}X=H.protocol;X=X===":"||X===""?"https:":X}return X}try{H=new URL(X)}catch(l){return"https:"}return H.protocol};
_.X3=function(X){X instanceof _.T2?X=_.jA(X):X=nmO.test(X)?X:void 0;return X};
HJ=function(X,H){H=_.X3(H);H!==void 0&&(X.href=H)};
bQ=function(X){var H=eny();X=H?H.createHTML(X):X;return new lQ(X)};
Uw=function(X){if(X instanceof lQ)return X.privateDoNotAccessOrElseWrappedHtml;throw Error("$");};
_.RD=function(X,H){X.src=_.OU(H).toString()};
kSZ=function(X,H){X.setAttribute("sandbox","");for(var l=0;l<H.length;l++)X.sandbox.supports&&!X.sandbox.supports(H[l])||X.sandbox.add(H[l])};
_.CJ=function(X,H,l){X.removeAttribute("srcdoc");switch(H){case 0:if(l instanceof iR)throw new xlz("TrustedResourceUrl",0);kSZ(X,[]);H=_.X3(l);H!==void 0&&(X.src=H);break;case 1:if(!(l instanceof iR))throw new xlz(typeof l,1);kSZ(X,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.RD(X,l);break;case 2:if(l instanceof iR)throw new xlz("TrustedResourceUrl",2);kSZ(X,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
H=_.X3(l);H!==void 0&&(X.src=H);break;default:_.Hp(H)}};
_.wr=function(X,H,l,b){H=_.X3(H);return H!==void 0?X.open(H,l,b):null};
_.dr=function(X){X=X===void 0?document:X;var H,l;X=(l=(H=X).querySelector)==null?void 0:l.call(H,"script[nonce]");return X==null?"":X.nonce||X.getAttribute("nonce")||""};
_.F3=function(X){var H=eny();X=H?H.createScript(X):X;return new _.hr(X)};
BJ=function(X){if(X instanceof _.hr)return X.privateDoNotAccessOrElseWrappedScript;throw Error("$");};
Dll=function(X){var H=_.dr(X.ownerDocument);H&&X.setAttribute("nonce",H)};
_.ql=function(X,H){X.textContent=BJ(H);Dll(X)};
_.sw=function(X,H){X.src=_.OU(H);Dll(X)};
_.Ml=function(X,H){if(X.nodeType===1&&/^(script|style)$/i.test(X.tagName))throw Error("$");X.innerHTML=Uw(H)};
_.uQ=function(X,H,l,b){if(X.length===0)throw Error("$");X=X.map(function(K){if(K instanceof tim)K=K.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("$");return K});
var U=l.toLowerCase();if(X.every(function(K){return U.indexOf(K)!==0}))throw Error("ba`"+l);
H.setAttribute(l,b)};
_.ei=function(X,H,l){if(H instanceof iR)X.href=_.OU(H).toString(),X.rel=l;else{if(W5L.indexOf(l)===-1)throw Error("ca`"+l);H=_.X3(H);H!==void 0&&(X.href=H,X.rel=l)}};
Emb=function(X){if(X instanceof yb)return X.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("$");};
_.gmN=function(X,H){H=_.X3(H);H!==void 0&&(X.href=H)};
GSy=function(X){return new Worker(_.OU(X),void 0)};
a3y=function(X){return _.vu(X)};
ZJW=function(X,H){X&&(H=X.indexOf(H),0<=H&&X.splice(H,1))};
Vb=function(X){return typeof X==="function"};
iJk=function(X){return X instanceof fJ||X&&"closed"in X&&Vb(X.remove)&&Vb(X.add)&&Vb(X.unsubscribe)};
pJ=function(){};
Si=function(X){vmy(function(){throw X;})};
zS=function(X){return X};
nJ=function(){return OJN(_.Ab.apply(0,arguments))};
OJN=function(X){return X.length===0?zS:X.length===1?X[0]:function(H){return X.reduce(function(l,b){return b(l)},H)}};
mlW=function(X){var H;return(H=X!=null?X:void 0)!=null?H:Promise};
QDm=function(X,H){return new km(function(l){var b=0;return H.schedule(function(){b===X.length?l.complete():(l.next(X[b++]),l.closed||this.schedule())})})};
Try=function(X,H){if(!X)throw Error("da");return new km(function(l){var b=new fJ;b.add(H.schedule(function(){var U=X[Symbol.asyncIterator]();b.add(H.schedule(function(){var K=this;U.next().then(function(w){w.done?l.complete():(l.next(w.value),K.schedule())})}))}));
return b})};
NrO=function(X,H,l){H=H.schedule(function(){try{l.call(this)}catch(b){X.error(b)}},0);
X.add(H)};
jDN=function(X,H){return new km(function(l){var b;l.add(H.schedule(function(){b=X[crO]();NrO(l,H,function(){var U=b.next(),K=U.value;U.done?l.complete():(l.next(K),this.schedule())})}));
return function(){var U;return Vb((U=b)==null?void 0:U.return)&&b.return()}})};
rrh=function(X,H){return new km(function(l){var b=new fJ;b.add(H.schedule(function(){var U=X[xm]();b.add(U.subscribe({next:function(K){b.add(H.schedule(function(){return l.next(K)}))},
error:function(K){b.add(H.schedule(function(){return l.error(K)}))},
complete:function(){b.add(H.schedule(function(){return l.complete()}))}}))}));
return b})};
Jry=function(X,H){return new km(function(l){return H.schedule(function(){return X.then(function(b){l.add(H.schedule(function(){l.next(b);l.add(H.schedule(function(){return l.complete()}))}))},function(b){l.add(H.schedule(function(){return l.error(b)}))})})})};
L5m=function(X){return new TypeError("ea`"+(X!==null&&typeof X==="object"?"an invalid object":"'"+X+"'"))};
I38=function(X,H){if(X!=null){if(Vb(X[xm]))return rrh(X,H);if(YwW(X))return QDm(X,H);if(Vb(X==null?void 0:X.then))return Jry(X,H);if(Symbol.asyncIterator&&Vb(X==null?void 0:X[Symbol.asyncIterator]))return Try(X,H);if(Vb(X==null?void 0:X[crO]))return jDN(X,H)}throw L5m(X);};
WJ=function(X,H){return H?I38(X,H):tr(X)};
tr=function(X){if(X instanceof km)return X;if(X!=null){if(Vb(X[xm]))return ArK(X);if(YwW(X))return X1W(X);if(Vb(X==null?void 0:X.then))return H$O(X);if(Symbol.asyncIterator&&Vb(X==null?void 0:X[Symbol.asyncIterator]))return lYO(X);if(Vb(X==null?void 0:X[crO]))return oYz(X)}throw L5m(X);};
ArK=function(X){return new km(function(H){var l=X[xm]();if(Vb(l.subscribe))return l.subscribe(H);throw new TypeError("fa");})};
X1W=function(X){return new km(function(H){for(var l=0;l<X.length&&!H.closed;l++)H.next(X[l]);H.complete()})};
H$O=function(X){return new km(function(H){X.then(function(l){H.closed||(H.next(l),H.complete())},function(l){return H.error(l)}).then(null,Si)})};
oYz=function(X){return new km(function(H){for(var l=X[crO]();!H.closed;){var b=l.next(),U=b.value;b.done?H.complete():H.next(U)}return function(){return Vb(l==null?void 0:l.return)&&l.return()}})};
lYO=function(X){return new km(function(H){b$k(X,H).catch(function(l){return H.error(l)})})};
b$k=function(X,H){var l,b,U,K,w,d;return _.h(function(B){switch(B.nextAddress){case 1:_.Ew(B,2,3),K=_.gr(X);case 5:return B.yield(K.next(),8);case 8:b=B.yieldResult;if(b.done){B.jumpTo(3);break}w=b.value;H.next(w);B.jumpTo(5);break;case 3:_.GS(B);_.iQ(B,9);if(!b||b.done||!(U=K.return)){B.jumpTo(9);break}return B.yield(U.call(K),9);case 9:_.GS(B,0,0,1);if(l)throw l.error;_.vJ(B,10,1);break;case 10:_.vJ(B,4);break;case 2:d=_.Ow(B);l={error:d};B.jumpTo(3);break;case 4:H.complete(),_.m5(B)}})};
Ubm=function(X,H){return H?QDm(X,H):X1W(X)};
$bh=function(X){return Vb(X[X.length-1])?X.pop():void 0};
Qb=function(X){var H=X[X.length-1];return H&&Vb(H.schedule)?X.pop():void 0};
TS=function(){var X=_.Ab.apply(0,arguments),H=Qb(X);return H?QDm(X,H):Ubm(X)};
Nl=function(X){var H=Vb(X)?X:function(){return X};
return new km(function(l){return l.error(H())})};
cJ=function(X){return function(H){if(Vb(H==null?void 0:H.lift))return H.lift(function(l){try{return X(l,this)}catch(b){this.error(b)}});
throw new TypeError("ga");}};
rr=function(){return cJ(function(X,H){var l=null;X._refCount++;var b=new ji(H,void 0,void 0,void 0,function(){if(!X||X._refCount<=0||0<--X._refCount)l=null;else{var U=X._connection,K=l;l=null;!U||K&&U!==K||U.unsubscribe();H.unsubscribe()}});
X.subscribe(b);b.closed||(l=X.connect())})};
Rry=function(){var X=K4y;var H=H===void 0?0:H;return cJ(function(l,b){b.add(X.schedule(function(){return l.subscribe(b)},H))})};
Jr=function(X){return cJ(function(H,l){var b=0;H.subscribe(new ji(l,function(U){l.next(X.call(void 0,U,b++))}))})};
w1m=function(X){return Jr(function(H){return C1h(H)?X.apply(null,_.LJ(H)):X(H)})};
qHL=function(X){if(X.length===1){var H=X[0];if(dbm(H))return{args:H,keys:null};if(H&&typeof H==="object"&&hrN(H)===F4K)return X=BXy(H),{args:X.map(function(l){return H[l]}),
keys:X}}return{args:X,keys:null}};
ID=function(){var X=_.Ab.apply(0,arguments),H=Qb(X),l=$bh(X);X=qHL(X);var b=X.args,U=X.keys;if(b.length===0)return WJ([],H);H=new km(soK(b,H,U?function(K){for(var w={},d=0;d<K.length;d++)w[U[d]]=K[d];return w}:zS));
return l?H.pipe(w1m(l)):H};
soK=function(X,H,l){l=l===void 0?zS:l;return function(b){MNW(H,function(){for(var U=X.length,K=Array(U),w=U,d=X.map(function(){return!1}),B=!0,q={i$jscomp$220:0};q.i$jscomp$220<U;q={i$jscomp$220:q.i$jscomp$220},q.i$jscomp$220++)MNW(H,function(u){return function(){WJ(X[u.i$jscomp$220],H).subscribe(new Ar(b,function(e){K[u.i$jscomp$220]=e;
B&&(d[u.i$jscomp$220]=!0,B=!d.every(zS));B||b.next(l(K.slice()))},function(){return--w===0}))}}(q),b)},b)}};
MNW=function(X,H,l){X?l.add(X.schedule(H)):H()};
uP8=function(X,H,l,b){var U=[],K=0,w=0,d=!1,B=function(q){K++;tr(l(q,w++)).subscribe(new ji(H,function(u){H.next(u)},void 0,function(){K--;
for(var u={};U.length&&K<b;u={bufferedValue:void 0})u.bufferedValue=U.shift(),B(u.bufferedValue);!d||U.length||K||H.complete()}))};
X.subscribe(new ji(H,function(q){return K<b?B(q):U.push(q)},void 0,function(){d=!0;
!d||U.length||K||H.complete()}));
return function(){U=null}};
XP=function(X,H){var l=l===void 0?Infinity:l;if(Vb(H))return XP(function(b,U){return Jr(function(K,w){return H(b,K,U,w)})(tr(X(b,U)))},l);
typeof H==="number"&&(l=H);return cJ(function(b,U){return uP8(b,U,X,l)})};
erL=function(X){X=X===void 0?Infinity:X;return XP(zS,X)};
yn8=function(){var X=_.Ab.apply(0,arguments);return erL(1)(Ubm(X,Qb(X)))};
VNh=function(X){return new km(function(H){tr(X()).subscribe(H)})};
H1=function(X,H,l){if(Vb(l)){var b=l;l=void 0}if(b)return H1(X,H,l).pipe(w1m(b));b=_.C(Vb(X.addEventListener)&&Vb(X.removeEventListener)?P1b.map(function(w){return function(d){return X[w](H,d,l)}}):Vb(X.addListener)&&Vb(X.removeListener)?fYO.map(p1W(X,H)):Vb(X.on)&&Vb(X.off)?SHW.map(p1W(X,H)):[]);
var U=b.next().value,K=b.next().value;return!U&&YwW(X)?XP(function(w){return H1(w,H,l)})(Ubm(X)):new km(function(w){if(!U)throw new TypeError("ha");
var d=function(){var B=_.Ab.apply(0,arguments);return w.next(1<B.length?B:B[0])};
U(d);return function(){return K(d)}})};
p1W=function(X,H){return function(l){return function(b){return X[l](H,b)}}};
oo=function(){var X=_.Ab.apply(0,arguments),H=Qb(X);var l=typeof X[X.length-1]==="number"?X.pop():Infinity;return X.length?X.length===1?tr(X[0]):erL(l)(Ubm(X,H)):l1};
nYk=function(X){return X.length===1&&zrO(X[0])?X[0]:X};
k8W=function(){var X=nYk(_.Ab.apply(0,arguments));return cJ(function(H,l){var b=[H].concat(_.LJ(X)),U=function(){if(!l.closed)if(b.length>0){try{var K=tr(b.shift())}catch(d){U();return}var w=new ji(l,void 0,pJ,pJ);l.add(K.subscribe(w));w.add(U)}else l.complete()};
U()})};
b1=function(X){return cJ(function(H,l){var b=0;H.subscribe(new ji(l,function(U){return X.call(void 0,U,b++)&&l.next(U)}))})};
DbZ=function(){var X=_.Ab.apply(0,arguments);X=nYk(X);return X.length===1?tr(X[0]):new km(xbZ(X))};
xbZ=function(X){return function(H){for(var l=[],b={i$jscomp$223:0};l&&!H.closed&&b.i$jscomp$223<X.length;b={i$jscomp$223:b.i$jscomp$223},b.i$jscomp$223++)l.push(tr(X[b.i$jscomp$223]).subscribe(new ji(H,function(U){return function(K){if(l){for(var w=0;w<l.length;w++)w!==U.i$jscomp$223&&l[w].unsubscribe();l=null}H.next(K)}}(b))))}};
tNZ=function(){var X=_.Ab.apply(0,arguments),H=$bh(X),l=nYk(X);return l.length?new km(function(b){var U=l.map(function(){return[]}),K=l.map(function(){return!1});
b.add(function(){U=K=null});
for(var w={sourceIndex$jscomp$1:0};!b.closed&&w.sourceIndex$jscomp$1<l.length;w={sourceIndex$jscomp$1:w.sourceIndex$jscomp$1},w.sourceIndex$jscomp$1++)tr(l[w.sourceIndex$jscomp$1]).subscribe(new ji(b,function(d){return function(B){U[d.sourceIndex$jscomp$1].push(B);U.every(function(q){return q.length})&&(B=U.map(function(q){return q.shift()}),b.next(H?H.apply(null,_.LJ(B)):B),U.some(function(q,u){return!q.length&&K[u]})&&b.complete())}}(w),void 0,function(d){return function(){K[d.sourceIndex$jscomp$1]=
!0;
!U[d.sourceIndex$jscomp$1].length&&b.complete()}}(w)));
return function(){U=K=null}}):l1};
W4l=function(X){var H,l,b;return!!X&&typeof X.active==="boolean"&&typeof((H=X.clock)==null?void 0:H.now)==="function"&&((l=X.clock)==null?void 0:l.timeline)!==void 0&&!((b=X.lastMeasurement)==null||!b.timestamp)&&typeof X.equivalentTo==="function"&&typeof X.extrapolateToNow==="function"&&typeof X.extrapolateToTime==="function"&&typeof X.map==="function"&&typeof X.joinWith==="function"};
EYL=function(X){function H(l){return typeof l==="boolean"||typeof l==="string"||typeof l==="number"||l===void 0||l===null}
return H(X)?!0:Array.isArray(X)?X.every(H):typeof X==="object"?Object.keys(X).every(function(l){return typeof l==="string"})&&Object.values(X).every(function(l){return Array.isArray(l)?l.every(H):H(l)}):!1};
gYh=function(X){if(EYL(X))return X;if(W4l(X))return{lastMeasurement:{value:gYh(X.lastMeasurement.value),timestamp:UH(X.lastMeasurement.timestamp,new $Y(0,X.lastMeasurement.timestamp.timeline))},active:X.active};try{return JSON.parse(JSON.stringify(X))}catch(H){}return String(X)};
K$=function(X,H){return function(l){return new km(function(b){return l.subscribe(function(U){X.timeExecution(H,function(){b.next(U)})()},function(U){X.timeExecution(H,function(){b.error(U)})()},function(){X.timeExecution(H,function(){b.complete()})()})})}};
G8O=function(X,H){var l=!1;return new km(function(b){var U=X.setTimeout(function(){l=!0;b.next(!0);b.complete()},H);
return function(){l||X.clearTimeout(U)}})};
aYb=function(X){X=X.global;if(X.fetchLater)return X.fetchLater.bind(X)};
Ro=function(X){return cJ(function(H,l){var b=null,U=!1,K;b=H.subscribe(new ji(l,void 0,function(w){K=tr(X(w,Ro(X)(H)));b?(b.unsubscribe(),b=null,K.subscribe(l)):U=!0}));
U&&(b.unsubscribe(),b=null,K.subscribe(l))})};
Z$y=function(X,H,l){return function(b,U){var K=l,w=H,d=0;b.subscribe(new ji(U,function(B){var q=d++;w=K?X(w,B,q):(K=!0,B);U.next(w)},void 0,void 0))}};
i$m=function(X){X=X===void 0?null:X;return cJ(function(H,l){var b=!1;H.subscribe(new ji(l,function(U){b=!0;l.next(U)},void 0,function(){b||l.next(X);
l.complete()}))})};
C$=function(){return cJ(function(X,H){X.subscribe(new ji(H,pJ))})};
dX=function(X){return cJ(function(H,l){H.subscribe(new ji(l,function(){return l.next(X)}))})};
hn=function(X){return X<=0?function(){return l1}:cJ(function(H,l){var b=0;
H.subscribe(new ji(l,function(U){++b<=X&&(l.next(U),X<=b&&l.complete())}))})};
FP=function(X){var H=H===void 0?zS:H;var l;X=(l=X)!=null?l:vYZ;return cJ(function(b,U){var K,w=!0;b.subscribe(new ji(U,function(d){var B=H(d);if(w||!X(K,B))w=!1,K=B,U.next(d)}))})};
vYZ=function(X,H){return X===H};
mbz=function(X){X=X===void 0?O$W:X;return cJ(function(H,l){var b=!1;H.subscribe(new ji(l,function(U){b=!0;l.next(U)},void 0,function(){return b?l.complete():l.error(X())}))})};
O$W=function(){return new Qoz};
B1=function(){var X=_.Ab.apply(0,arguments);return function(H){return yn8(H,TS.apply(null,_.LJ(X)))}};
TXz=function(X){return cJ(function(H,l){var b=0;H.subscribe(new ji(l,function(U){X.call(void 0,U,b++,H)||(l.next(!1),l.complete())},void 0,function(){l.next(!0);
l.complete()}))})};
NXO=function(){return cJ(function(X,H){var l=[];X.subscribe(new ji(H,function(b){l.push(b);1<l.length&&l.shift()},void 0,function(){for(var b=_.C(l),U=b.next();!U.done;U=b.next())H.next(U.value);
H.complete()},function(){l=null}))})};
cnN=function(X,H){var l=arguments.length>=2;return function(b){return b.pipe(X?b1(function(U,K){return X(U,K,b)}):zS,NXO(),l?i$m(H):mbz(function(){return new Qoz}))}};
sH=function(X){var H=Vb(X)?X:function(){return X};
return Vb()?cJ(function(l,b){var U=H();(void 0)(U).subscribe(b).add(l.subscribe(U))}):function(l){var b=new qb(l,H);
Vb(l==null?void 0:l.lift)&&(b.lift=l.lift);b.source=l;b.subjectFactory=H;return b}};
u1=function(X){var H=new Mb(X,void 0,void 0);return function(l){return sH(function(){return H})(l)}};
eN=function(X,H){return cJ(Z$y(X,H,arguments.length>=2))};
yh=function(){var X=_.Ab.apply(0,arguments),H=Qb(X);return cJ(function(l,b){(H?yn8(X,l,H):yn8(X,l)).subscribe(b)})};
Vh=function(X){return cJ(function(H,l){var b=null,U=0,K=!1;H.subscribe(new ji(l,function(w){var d;(d=b)==null||d.unsubscribe();d=U++;tr(X(w,d)).subscribe(b=new ji(l,function(B){return l.next(B)},void 0,function(){b=null;
K&&!b&&l.complete()}))},void 0,function(){(K=!0,!b)&&l.complete()}))})};
f$=function(X,H){H=H===void 0?!1:H;return cJ(function(l,b){var U=0;l.subscribe(new ji(b,function(K){var w=X(K,U++);(w||H)&&b.next(K);!w&&b.complete()}))})};
joy=function(X,H,l){var b=Vb(X)||H||l?{next:X,error:H,complete:l}:X;return b?cJ(function(U,K){U.subscribe(new ji(K,function(w){var d;(d=b.next)==null||d.call(b,w);K.next(w)},function(w){var d;
(d=b.error)==null||d.call(b,w);K.error(w)},function(){var w;
(w=b.complete)==null||w.call(b);K.complete()}))}):zS};
rny=function(){var X=_.Ab.apply(0,arguments),H=$bh(X);return cJ(function(l,b){for(var U=X.length,K=Array(U),w=X.map(function(){return!1}),d=!1,B={i$jscomp$233:0};B.i$jscomp$233<U;B={i$jscomp$233:B.i$jscomp$233},B.i$jscomp$233++)tr(X[B.i$jscomp$233]).subscribe(new ji(b,function(q){return function(u){K[q.i$jscomp$233]=u;
d||w[q.i$jscomp$233]||(w[q.i$jscomp$233]=!0,(d=w.every(zS))&&(w=null))}}(B),void 0,pJ));
l.subscribe(new ji(b,function(q){d&&(q=[q].concat(_.LJ(K)),b.next(H?H.apply(null,_.LJ(q)):q))}))})};
L4h=function(X){var H=Jnm;if(H)for(var l in H)Object.prototype.hasOwnProperty.call(H,l)&&X(H[l],l,H)};
YHW=function(){var X=[];L4h(function(H){X.push(H)});
return X};
AnZ=function(X){try{return!!X&&X.location.href!=null&&IYy(X,"foo")}catch(H){return!1}};
HYb=function(){return Ph&&fy?fy.mobile:!XbO()&&(py("iPod")||py("iPhone")||py("Android")||py("IEMobile"))};
XbO=function(){return Ph&&fy?!fy.mobile&&(py("iPad")||py("Android")||py("Silk")):py("iPad")||py("Android")&&!py("Mobile")||py("Silk")};
_.p$=function(X){return new tim(X[0].toLowerCase())};
lem=function(X){for(var H=_.Ab.apply(1,arguments),l=X[0],b=0;b<X.length-1;b++)l+=String(H[b]),l+=X[b+1];H=document.implementation.createHTMLDocument("");b=H.createElement("style");H.head.appendChild(b);H=b.sheet;H.insertRule(l,0);if(H.cssRules.length===1&&(l=H.cssRules[0],l instanceof CSSStyleRule))return new yb(l.cssText.replace(/</g,"\\3C "))};
oOb=function(X){try{return new URL(X,window.document.baseURI)}catch(H){return new URL("about:invalid")}};
bY8=function(X,H){var l=H.createRange();l.selectNode(H.body);X=bQ(X);return l.createContextualFragment(Uw(X))};
Uzb=function(X){X=X.nodeName;return typeof X==="string"?X:"FORM"};
$zN=function(X){X=X.nodeType;return X===1||typeof X!=="number"};
SN=function(X,H,l){X.setAttribute(H,l)};
KZy=function(X){return X.parts.map(function(H){var l=H.descriptor;return""+H.url+(l?" "+l:"")}).join(" , ")};
_.z8=function(X){var H=_.Ab.apply(1,arguments);if(H.length===0)return _.vu(X[0]);for(var l=X[0],b=0;b<H.length;b++)l+=encodeURIComponent(H[b])+X[b+1];return _.vu(l)};
_.n$=function(X,H){X=_.OU(X).toString();var l=X.split(/[?#]/),b=/[?]/.test(X)?"?"+l[1]:"";return RmZ(l[0],b,/[#]/.test(X)?"#"+(b?l[2]:l[1]):"",H)};
RmZ=function(X,H,l,b){function U(w,d){w!=null&&(Array.isArray(w)?w.forEach(function(B){return U(B,d)}):(H+=K+encodeURIComponent(d)+"="+encodeURIComponent(w),K="&"))}
var K=H.length?"&":"?";b.constructor===Object&&(b=Object.entries(b));Array.isArray(b)?b.forEach(function(w){return U(w[1],w[0])}):b.forEach(U);
return _.vu(X+H+l)};
wbm=function(){var X=BJ(CBm).toString();return _.vu(URL.createObjectURL(new Blob([X],{type:"text/javascript"})))};
_.kY=function(X,H,l){return Math.min(Math.max(X,H),l)};
xY=function(X,H,l){return X+l*(H-X)};
_.DY=function(X,H){this.x=X!==void 0?X:0;this.y=H!==void 0?H:0};
_.tn=function(X,H){this.width=X;this.height=H};
dzy=function(X){var H=[],l=0,b;for(b in X)H[l++]=b;return H};
hmm=function(X,H){for(var l in X)if(X[l]==H)return!0;return!1};
FZL=function(X,H,l){for(var b in X)if(H.call(l,X[b],b,X))return b};
B9K=function(X){if(!X||typeof X!=="object")return X;if(typeof X.clone==="function")return X.clone();if(typeof Map!=="undefined"&&X instanceof Map)return new Map(X);if(typeof Set!=="undefined"&&X instanceof Set)return new Set(X);if(X instanceof Date)return new Date(X.getTime());var H=Array.isArray(X)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(X)||X instanceof DataView?{}:new X.constructor(X.length),l;for(l in X)H[l]=B9K(X[l]);return H};
q_N=function(X){var H=arguments.length;if(H==1&&Array.isArray(arguments[0]))return q_N.apply(null,arguments[0]);if(H%2)throw Error("na");for(var l={},b=0;b<H;b+=2)l[arguments[b]]=arguments[b+1];return l};
sZb=function(X){var H=arguments.length;if(H==1&&Array.isArray(arguments[0]))return sZb.apply(null,arguments[0]);for(var l={},b=0;b<H;b++)l[arguments[b]]=!0;return l};
W1=function(X,H,l,b){this.top=X;this.right=H;this.bottom=l;this.left=b};
gX=function(X,H,l,b){this.left=X;this.top=H;this.width=l;this.height=b};
MPy=function(X){X=X.global;if(X.PendingGetBeacon)return X.PendingGetBeacon};
ao=function(X){return function(H){return H.pipe(uvz(X,sH(new G8)))}};
ZY=function(X){return function(H){return H.pipe(uvz(X,u1(1)))}};
uvz=function(X,H){function l(b){return new km(function(U){return b.subscribe(function(K){i1(X,function(){return void U.next(K)},3)},function(K){i1(X,function(){return void U.error(K)},3)},function(){i1(X,function(){return void U.complete()},3)})})}
return nJ(l,Rry(),H,rr(),l)};
VPl=function(X){var H=emm(X);return H===null?new v1(null):H.pipe(Jr(function(l){l=l.serialize();if(yjZ)l=_.ok.btoa(l);else{for(var b=[],U=0,K=0;K<l.length;K++){var w=l.charCodeAt(K);w>255&&(b[U++]=w&255,w>>=8);b[U++]=w}l=_.Ik(b)}return l}),hn(1),ZY(X.queue))};
PBm=function(X){var H=H===void 0?{}:H;if(typeof Event==="function")return new Event(X,H);if(typeof document!=="undefined"){var l=document.createEvent("CustomEvent");l.initCustomEvent(X,H.bubbles||!1,H.cancelable||!1,H.detail);return l}throw Error();};
feK=function(X){return typeof X==="string"?document.getElementById(X):X};
S_h=function(X){var H=!1;H=H===void 0?!1:H;if(X.tagName==="IMG"){if(X.complete&&(!X.naturalWidth||!X.naturalHeight))return!0;var l;if(H&&((l=X.style)==null?void 0:l.display)==="none")return!0}var b,U;return pbz.test((b=X.getAttribute("width"))!=null?b:"")&&pbz.test((U=X.getAttribute("height"))!=null?U:"")};
zm8=function(X,H){if(X.tagName==="IMG")return X.naturalWidth&&X.naturalHeight?!0:!1;try{if(X.readyState)var l=X.readyState;else{var b,U;l=(b=X.contentWindow)==null?void 0:(U=b.document)==null?void 0:U.readyState}return l==="complete"}catch(K){return H===void 0?!1:H}};
nOz=function(X){X||(X=function(H,l,b){H.addEventListener(l,b)});
return X};
tPl=function(X,H){var l=kpW();l=l===void 0?new xz8:l;if(X=feK(X)){var b=nOz(b);for(var U=!1,K=function(t){U||(U=!0,H(t))},w,d=2,B=0;B<DzL.length;++B)if(DzL[B]===X.tagName){d=3;
w=[X];break}w||(w=X.querySelectorAll(DzL.join(",")));var q=0,u=0,e=!0,y=X=!1;B={};for(var V=0;V<w.length;B={isImg:void 0},V++){var p=w[V];if(!S_h(p))if(B.isImg=p.tagName==="IMG",zm8(p,l.crossDomainLoadedDefault))X=!0,B.isImg&&(e=!0);else{q++;var z=function(t){return function(W){q--;!q&&e&&K(d);t.isImg&&(W=W&&W.type==="error",u--,W||(e=!0),!u&&y&&e&&K(d))}}(B);
b(p,"load",z);B.isImg&&(u++,b(p,"error",z))}}u===0&&(e=!0);w=null;w=_.ok.document.readyState==="complete";if(q===0&&!X&&w)d=5;else if(q||!X){b(_.ok,"load",function(){!l.pendingImagesBlockLoad||!u&&e?K(4):y=!0});
return}K(d)}};
WZz=function(X,H,l){if(X)for(var b=0;X!=null&&b<500&&!l(X);++b)X=H(X)};
EOO=function(X,H){WZz(X,function(l){try{return l===l.parent?null:l.parent}catch(b){}return null},H)};
gOk=function(X,H){if(X.tagName=="IFRAME")H(X);else{X=X.querySelectorAll("IFRAME");for(var l=0;l<X.length&&!H(X[l]);++l);}};
GpK=function(X){return(X=X.ownerDocument)&&(X.parentWindow||X.defaultView)||null};
aeO=function(X,H,l){try{var b=JSON.parse(l.data)}catch(w){}if(typeof b==="object"&&b&&b.type==="creativeLoad"){var U=GpK(X);if(l.source&&U){var K;EOO(l.source,function(w){try{if(w.parent===U)return K=w,!0}catch(d){}});
K&&gOk(X,function(w){if(w.contentWindow===K)return H(b),!0})}}};
ZYk=function(X){return typeof X==="string"?document.getElementById(X):X};
mzK=function(){var X={};return X[0]=_.z8(iYh,"current"),X[1]=_.z8(vON),X[2]=_.z8(OYZ),X};
OH=function(X,H){return X.left===H.left&&X.top===H.top&&X.width===H.width&&X.height===H.height};
QZO=function(X,H){return{left:Math.max(X.left,H.left),top:Math.max(X.top,H.top),width:Math.max(0,Math.min(X.left+X.width,H.left+H.width)-Math.max(X.left,H.left)),height:Math.max(0,Math.min(X.top+X.height,H.top+H.height)-Math.max(X.top,H.top))}};
T9y=function(X,H){return{left:Math.round(X.left+H.x),top:Math.round(X.top+H.y),width:X.width,height:X.height}};
N9k=function(X,H,l,b,U,K,w){var d="";X&&(d+=X+":");l&&(d+="//",H&&(d+=H+"@"),d+=l,b&&(d+=":"+b));U&&(d+=U);K&&(d+="?"+K);w&&(d+="#"+w);return d};
_.Qh=function(X){return X.match(cjb)};
_.T8=function(X,H){return X?H?decodeURI(X):decodeURIComponent(X):X};
jZZ=function(X){X=_.Qh(X)[1]||null;!X&&_.ok.self&&_.ok.self.location&&(X=_.ok.self.location.protocol.slice(0,-1));return X?X.toLowerCase():""};
_.Nb=function(X){return _.T8(_.Qh(X)[3]||null,!0)};
_.c1=function(X){return _.T8(_.Qh(X)[5]||null,!0)};
_.rjZ=function(X){var H=X.indexOf("#");return H<0?null:X.slice(H+1)};
JjN=function(X){X=_.Qh(X);return N9k(X[1],X[2],X[3],X[4])};
_.LZK=function(X){X=_.Qh(X);return N9k(X[1],null,X[3],X[4])};
_.jN=function(X){X=_.Qh(X);return N9k(null,null,null,null,X[5],X[6],X[7])};
_.rX=function(X){var H=X.indexOf("#");return H<0?X:X.slice(0,H)};
Jn=function(X,H){X=_.Qh(X);H=_.Qh(H);return X[3]==H[3]&&X[1]==H[1]&&X[4]==H[4]};
Y_8=function(X,H){if(X){X=X.split("&");for(var l=0;l<X.length;l++){var b=X[l].indexOf("="),U=null;if(b>=0){var K=X[l].substring(0,b);U=X[l].substring(b+1)}else K=X[l];H(K,U?L$(U):"")}}};
Iey=function(X){var H=X.indexOf("#");H<0&&(H=X.length);var l=X.indexOf("?");if(l<0||l>H){l=H;var b=""}else b=X.substring(l+1,H);return[X.slice(0,l),b,X.slice(H)]};
Ajz=function(X,H){return H?X?X+"&"+H:H:X};
_.XEK=function(X,H){if(!H)return X;X=Iey(X);X[1]=Ajz(X[1],H);return X[0]+(X[1]?"?"+X[1]:"")+X[2]};
_.H88=function(X,H,l){if(Array.isArray(H))for(var b=0;b<H.length;b++)_.H88(X,String(H[b]),l);else H!=null&&l.push(X+(H===""?"":"="+_.YY(H)))};
_.Io=function(X){var H=[],l;for(l in X)_.H88(l,X[l],H);return H.join("&")};
_.An=function(X,H){H=_.Io(H);return _.XEK(X,H)};
_.Xv=function(X,H,l){l=l!=null?"="+_.YY(l):"";return _.XEK(X,H+l)};
lMl=function(X,H,l,b){for(var U=l.length;(H=X.indexOf(l,H))>=0&&H<b;){var K=X.charCodeAt(H-1);if(K==38||K==63)if(K=X.charCodeAt(H+U),!K||K==61||K==38||K==35)return H;H+=U+1}return-1};
_.Hb=function(X,H){var l=X.search(oey),b=lMl(X,0,H,l);if(b<0)return null;var U=X.indexOf("&",b);if(U<0||U>l)U=l;b+=H.length+1;return L$(X.slice(b,U!==-1?U:0))};
_.lB=function(X,H){for(var l=X.search(oey),b=0,U,K=[];(U=lMl(X,b,H,l))>=0;)K.push(X.substring(b,U)),b=Math.min(X.indexOf("&",U)+1||l,l);K.push(X.slice(b));return K.join("").replace(b8K,"$1")};
_.oZ=function(X,H,l){return _.Xv(_.lB(X,H),H,l)};
UFO=function(X){var H=Iey(window.location.href),l=H[1],b=[];l&&l.split("&").forEach(function(U){var K=U.indexOf("=");K=K>=0?U.slice(0,K):U;X.hasOwnProperty(K)||b.push(U)});
H[1]=Ajz(b.join("&"),_.Io(X));return H[0]+(H[1]?"?"+H[1]:"")+H[2]};
$FN=function(X,H,l){if(X&&H!==null&&H!=H.top){if(!H.top)return new _.tn(-12245933,-12245933);H=H.top}try{return(l===void 0?0:l)?(new _.tn(H.innerWidth,H.innerHeight)).round():_.bB(H).round()}catch(b){return new _.tn(-12245933,-12245933)}};
KKy=function(X,H,l){try{if(X){if(!H.top)return new W1(-12245933,-12245933,-12245933,-12245933);H=H.top}var b=$FN(X,H,l),U=b.height,K=b.width;if(K===-12245933)return new W1(K,K,K,K);var w=U_($O(H.document)),d=w.x,B=w.y;return new W1(B,d+K,B+U,d)}catch(q){return new W1(-12245933,-12245933,-12245933,-12245933)}};
RBK=function(X){var H;return(H=X.google_tag_data)!=null?H:X.google_tag_data={}};
CIh=function(X){var H,l;return typeof((H=X.navigator)==null?void 0:(l=H.userAgentData)==null?void 0:l.getHighEntropyValues)==="function"};
dFZ=function(X){if(!CIh(X))return null;var H=RBK(X);if(H.uach_promise)return H.uach_promise;X=X.navigator.userAgentData.getHighEntropyValues(wEz).then(function(l){H.uach!=null||(H.uach=l);return l});
return H.uach_promise=X};
fML=function(X){var H;return hBm(FKk(Bvy(qTm(sAL(MOW(uJ8(eBy(yoy(new VO8,X.architecture||""),X.bitness||""),X.mobile||!1),X.model||""),X.platform||""),X.platformVersion||""),X.uaFullVersion||""),((H=X.fullVersionList)==null?void 0:H.map(function(l){var b=new PIk;b=_.KY(b,1,l.brand);return _.KY(b,2,l.version)}))||[]),X.wow64||!1)};
pEk=function(X){var H,l;return(l=(H=dFZ(X))==null?void 0:H.then(function(b){return fML(b)}))!=null?l:null};
ST8=function(X,H){return new km(function(l){var b=!1,U=Array(H.length);U.fill(void 0);var K=new Set,w=new Set,d=function(e,y){X.running?(U[y]=e,K.add(y),b||(b=!0,i1(X,function(){b=!1;l.next(_.NW(U))},1))):l.error(new CY(y))},B=function(e,y){w.add(y);
K.add(y);i1(X,function(){l.error(e)},1)},q=function(e){w.add(e);
i1(X,function(){w.size===H.length&&l.complete()},1)},u=H.map(function(e,y){return e.subscribe(function(V){return void d(V,y)},function(V){return void B(V,y)},function(){return void q(y)})});
return function(){u.forEach(function(e){return void e.unsubscribe()})}})};
kBO=function(X,H,l){function b(){if(H.debugChannel){var t=H.debugChannel,W=t.next;var G={creativeId:H.debugNames.getName(l),requiredSignals:U,signals:Object.assign({},K),hasPrematurelyCompleted:w,errorMessage:d,erroredSignalKey:B};G={specMajor:2,specMinor:0,specPatch:0,timestamp:UH(H.timeProvider.now(),new $Y(0,H.timeProvider.timeline)),instanceId:H.debugNames.getName(H.symbol),creativeState:G};W.call(t,G)}}
for(var U=Object.keys(X),K={},w=!1,d=null,B=null,q={},u=new Set,e=[],y=[],V=_.C(U),p=V.next(),z={};!p.done;z={key$jscomp$396:void 0},p=V.next())z.key$jscomp$396=p.value,p=X[z.key$jscomp$396],p instanceof v1?(q[z.key$jscomp$396]=p.value,u.add(z.key$jscomp$396),H.debugChannel&&(K[String(z.key$jscomp$396)]=gYh(p.value))):(p=p.pipe(FP(function(t,W){return W4l(t)||W4l(W)?!1:t===W}),Jr(function(t){return function(W){H.debugChannel&&(K[String(t.key$jscomp$396)]=gYh(W),b());
var G={};return G[t.key$jscomp$396]=W,G}}(z)),Ro(function(t){return function(W){if(W instanceof CY)throw new zBy(String(t.key$jscomp$396));
throw W;}}(z)),joy(function(t){return function(){u.add(t.key$jscomp$396)}}(z),function(t){return function(W){B=String(t.key$jscomp$396);
d=String(W);b()}}(z),function(t){return function(){u.has(t.key$jscomp$396)||(w=!0,b())}}(z))),y.push(z.key$jscomp$396),e.push(p));
(X=Object.keys(K).length>0)&&b();V=ST8(H.queue,e).pipe(Ro(function(t){if(t instanceof CY)throw new nem(String(y[t.inputObservableIndex]));throw t;}),Jr(function(t){return Object.freeze(Object.assign.apply(Object,[{},
q].concat(_.LJ(t))))}));
return(e=e.length>0)&&X?oo(TS(Object.freeze(q)),V):e?V:TS(Object.freeze(q))};
xFb=function(X,H,l,b,U){return X.performanceMonitor.timeExecution.bind(X.performanceMonitor)(733,function(){var K={};try{return H.pipe(Ro(function(w){b(Object.assign({},K,{error:w}));return l1}),XP(function(w){try{var d=l(X,w)}catch(q){return b(Object.assign({},K,{error:q instanceof Error?q:String(q)})),l1}var B={};
return kBO(d,X,w.symbol).pipe(joy(function(q){B=q}),u1(1),rr()).pipe(U,Ro(function(q){b(Object.assign({},B,{error:q}));
return l1}),B1(void 0),Jr(function(){return!0}))})).pipe(eN(function(w){return w+1},0),Ro(function(w){b(Object.assign({},K,{error:w}));
return l1}))}catch(w){return b(Object.assign({},K,{error:w})),l1}})()};
w9=function(X){var H=new Map;if(typeof X!=="object"||X===null)return H;Object.values(X).forEach(function(l){l&&typeof l.extrapolateToNow==="function"&&(H.has(l.clock.timeline)||H.set(l.clock.timeline,l.clock.now()))});
return H};
DFb=function(X,H){return typeof X==="string"?encodeURIComponent(X):typeof X==="number"?String(X):Array.isArray(X)?X.map(function(l){return DFb(l,H)}).join(","):X instanceof $Y?X.toString():X&&typeof X.extrapolateToNow==="function"?DFb(X.extrapolateUsingTimestampMap(H).value,H):X===!0?"1":X===!1?"0":X===void 0||X===null?null:X instanceof tOh?WKy(X):[X.top,
X.left,X.top+X.height,X.left+X.width].join()};
Eey=function(X,H){X=Object.entries(X).map(function(l){var b=_.C(l);l=b.next().value;b=b.next().value;b=DFb(b,H);return b===null?"":l+"="+b}).filter(function(l){return l!==""});
return X.length?X.join("&"):""};
aMl=function(X,H){var l=geO,b=GBK;H=H===void 0?.01:H;return function(U){H>0&&Math.random()<=H&&(X.global.HTMLFencedFrameElement&&X.global.fence&&typeof X.global.fence.reportEvent==="function"&&X.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),U=Object.assign({},U,{errorMessage:U.error instanceof Error&&U.error.message?U.error.message:String(U.error),errorStack:U.error instanceof Error&&U.error.stack?String(U.error.stack):null,errorName:U.error instanceof
Error&&U.error.name?String(U.error.name):null,errorContext:String(X.performanceMonitor.timedFunctionContext),errorEscapedQueryId:U.escapedQueryId}),l(Object.assign({},U,{payloadMapper:function(){return function(K){try{return b(Object.assign({},K))}catch(w){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),w9(U)).forEach(function(K){X.beaconFactory.makeBeacon(K).sendNow()}))}};
Z8L=function(){var X=_.Ab.apply(0,arguments);return function(H){var l=H.pipe(u1(1),rr());H=X.map(function(b){return l.pipe(b,B1(!0))});
return ID(H).pipe(hn(1),C$())}};
i8l=function(){var X=_.Ab.apply(0,arguments);return function(H){var l=H.pipe(u1(1),rr());H=X.map(function(b){return l.pipe(b,B1(!0))});
return oo.apply(null,_.LJ(H)).pipe(hn(1),C$())}};
veW=function(X,H){return function(l){var b=l.pipe(u1(1),rr());l=b.pipe(X,B1(!0));b=b.pipe(nJ(H,u1(),rr()),B1(!0));l=ID([l,b]);return DbZ(l,b).pipe(hn(1),C$())}};
O8z=function(X,H,l){l(!0)};
mF8=function(X,H){return nJ(Vh(function(l){var b=X(l),U=H(l),K={};return b&&U&&K?new km(function(w){U(b,K,function(d){w.next(Object.assign({},l,{canEmit:d}));w.complete()});
return function(){}}):d9}),b1(function(l){return l.canEmit}))};
QAl=function(X){var H={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(l){return l.pipe(Vh(function(b){return new km(function(U){function K(){d.disconnect();B.unsubscribe()}
var w=X.MutationObserver;if(w&&b.ref!==void 0){var d=new w(function(q){U.next(q)});
d.observe(b.ref,H);var B=b.JSC$9670_released.subscribe(K);return K}})}))}};
Tvb=function(X){if(X.measurementDeferralState===3)return null;if(X.timeOnScreenReason!==void 0){var H=X.creativeFound===!1?"n":null;if(H!==null)return H}return X.geometricMeasurementErrors instanceof hj?"msf":X.contextValidationErrors instanceof Fv?"c":X.contextVisibilityKnown===!1?"pv":X.geometricMeasurementErrors||X.contextValidationErrors?"x":null};
coh=function(X,H){return X.replace(NvL,function(l,b){try{var U=_.Bb.get(H,b);if(U==null||U.toString()==null)return l;U=U.toString();if(U==""||!_.w8(U==null?"":String(U)))return encodeURIComponent(U).replace(/%2C/g,",")}catch(K){}return l})};
jAm=function(X,H){var l=Object.assign({},X),b=X.userAgentClientHints;l=(delete l.userAgentClientHints,l);l=X.payloadMapper(l);var U=Eey(l,H);return _.qz(X.urlPrefixes,function(K){var w="";typeof b==="string"&&(w="&"+Eey({uach:b},H));var d={};return coh(K,(d.VIEWABILITY=U,d))+w})};
geO=function(X,H){var l=X.payloadMapper(X),b=Eey(l,H);return b?_.qz(X.urlPrefixes,function(U){U=U.indexOf("?")>=0?U:U+"?";U="?&".indexOf(U.slice(-1))>=0?U:U+"&";return U+b}):X.urlPrefixes};
ro8=function(){return nJ(b1(function(X){return X!==void 0}),Jr(function(X){return X}))};
JoL=function(X){return nJ(Jr(function(){return!0}),yh(!1),ZY(X))};
LKl=function(X){return X.length<=0?l1:ID(X.map(function(H){var l=0;return H.pipe(Jr(function(b){return{index:l++,value:b}}))})).pipe(b1(function(H){return H.every(function(l){return l.index===H[0].index})}),Jr(function(H){return H.map(function(l){return l.value})}))};
YTl=function(X,H){X.currentState&&(X.previousState=X.currentState);X.currentState=H;X.previousState&&X.previousState.value?(H=Math.max(0,UH(H.timestamp,X.previousState.timestamp)),X.totalTime+=H,X.consecutiveTime+=H):X.consecutiveTime=0;return X};
IMN=function(){return nJ(eN(YTl,{totalTime:0,consecutiveTime:0}),Jr(function(X){return X.totalTime}))};
Aoy=function(){return nJ(eN(YTl,{totalTime:0,consecutiveTime:0}),Jr(function(X){return X.consecutiveTime}))};
XgO=function(X,H){return function(l){return LKl(H.map(function(b){return l.pipe(X(b))}))}};
HWy=function(){var X;return nJ(joy(function(H){return void(X=H.timestamp)}),Aoy(),Jr(function(H){return{timestamp:X,
value:Math.round(H)}}))};
l1N=function(X,H){return OH(X.topWindowViewportExternalGeometry,H.topWindowViewportExternalGeometry)&&OH(X.elementGeometry,H.elementGeometry)&&OH(X.exposedViewportLocalGeometry,H.exposedViewportLocalGeometry)&&OH(X.intersectionGeometry,H.intersectionGeometry)&&X.elementGeometrySourceName===H.elementGeometrySourceName&&X.measurementRequests===H.measurementRequests&&X.viewportGeometrySourceName===H.viewportGeometrySourceName&&X.viewportLocalAppOffset.x===H.viewportLocalAppOffset.x&&X.viewportLocalAppOffset.y===
H.viewportLocalAppOffset.y};
$sk=function(X,H){return function(l){return function(b){var U=b.pipe(sH(new G8),rr());b=l.element.pipe(FP());U=U.pipe(Jr(function(K){return K.value}));
return ID([b,U,H]).pipe(Jr(function(K){var w=_.C(K);K=w.next().value;var d=w.next().value;w=w.next().value;if(K.ref===void 0)var B={top:0,left:0,width:0,height:0};else{B=K.ref.getBoundingClientRect();var q=K.ref,u=X.global,e=new _.DY(0,0),y=Mz(_.uB(q));if(IYy(y,"parent")){do{if(y==u)var V=_.eP(q);else V=o3K(q),V=new _.DY(V.left,V.top);e.x+=V.x;e.y+=V.y}while(y&&y!=u&&y!=y.parent&&(q=y.frameElement)&&(y=y.parent))}B={top:e.y,left:e.x,width:B.width,height:B.height}}B=T9y(B,d.viewportLocalAppOffset);
u=QZO(B,d.exposedViewportLocalGeometry);e=X.timeProvider.now();y=Object;q=y.assign;if(w!==2||X.inCrossDomainIframe||u.width<=0||u.height<=0)var p=!1;else try{var z=X.document.elementFromPoint(u.left+u.width/2,u.top+u.height/2);p=z?!bWh(z,K):!1}catch(t){p=!1}return{timestamp:e,value:q.call(y,{},d,{elementGeometrySourceName:"geo",intersectionGeometry:p?Usm.intersectionGeometry:u,elementGeometry:B})}}),ao(X.queue))}}};
bWh=function(X,H,l){l=l===void 0?0:l;return X.ref===void 0||H.ref===void 0?!1:X.ref===H.ref||_.yo(H.ref,function(b){return b===X.ref})?!0:H.ref.ownerDocument&&H.ref.ownerDocument.defaultView&&H.ref.ownerDocument.defaultView===H.ref.ownerDocument.defaultView.top?!1:l<10&&H.ref.ownerDocument&&H.ref.ownerDocument.defaultView&&H.ref.ownerDocument.defaultView.frameElement?bWh(X,new Vo(H.ref.ownerDocument.defaultView.frameElement),l+1):!0};
CLW=function(X){return function(H){return H.pipe(X.ResizeObserver?KXh(X):RJk(X),u1(1),rr())}};
KXh=function(X){return function(H){return H.pipe(Vh(function(l){var b=X.ResizeObserver;if(!b||l.ref===void 0)return TS(Usm.elementGeometry);var U=(new km(function(K){function w(){l.ref!==void 0&&d.unobserve(l.ref);d.disconnect();B.unsubscribe()}
if(l.ref===void 0)return K.complete(),function(){};
var d=new b(function(q){q.forEach(function(u){K.next(u)})});
d.observe(l.ref);var B=l.JSC$9670_released.subscribe(w);return w})).pipe(K$(X.performanceMonitor,736),Jr(function(K){return K.contentRect}));
return oo(TS(l.ref.getBoundingClientRect()),U)}),FP(OH))}};
RJk=function(X){return function(H){var l=H.pipe(QAl(X)),b=X.onResize;l=oo(H.pipe(Jr(function(){return PBm("resize")})),l,b);
return ID(H,l).pipe(K$(X.performanceMonitor,737),Jr(function(U){U=_.C(U).next().value;return U.ref===void 0?void 0:U.ref.getBoundingClientRect()}),ro8(),FP(OH))}};
hJy=function(X,H){var l=wgz(X,H).pipe(u1(1),rr());return function(b){return function(U){U=U.pipe(Vh(function(K){return K.element}),FP());
return ID([l,U]).pipe(Vh(function(K){var w=_.C(K);K=w.next().value;w=w.next().value;return dsZ(X,K.intersectionObserver,CLW(X),K.observations,b,K.flushRecords,w)}),ao(X.queue))}}};
FXN=function(X){return Jr(function(H){return H.value.viewportGeometrySourceName!=="nio"?H:Object.assign({},H,{value:Object.assign({},H.value,{exposedViewportLocalGeometry:Pb(X,!0),topWindowViewportExternalGeometry:Pb(X,!0)})})})};
BfN=function(X,H){return TS(H).pipe(X,Jr(function(){return H}))};
wgz=function(X,H){return X.timeProvider.timeline!==q2k?Nl(new hj(2)):X.MutationObserver?typeof IntersectionObserver==="undefined"?Nl(new hj(0)):(new km(function(l){var b=new G8,U=new fY(b.next.bind(b),{threshold:[].concat(_.LJ(H))});l.next({observations:b.pipe(K$(X.performanceMonitor,735)),intersectionObserver:U,flushRecords:function(K){K=U.takeRecords(K);K.length>0&&b.next(K)}})})).pipe(hn(1),u1(1),rr()):Nl(new hj(1))};
s5l=function(X){return I38(X.sort(function(H,l){return H.time-l.time}),K4y)};
dsZ=function(X,H,l,b,U,K,w){return new km(function(d){function B(){p||(p=!0,w.ref!==void 0&&H.unobserve(U,w.ref),u.unsubscribe(),V.unsubscribe(),y.unsubscribe(),z.unsubscribe())}
if(w.ref!==void 0){MIb(H,U);H.observe(U,w.ref);var q=new pY({timestamp:X.timeProvider.now(),value:Object.assign({},Usm,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),u=b.pipe(XP(function(t){return s5l(t)}),b1(function(t){return t.target===w.ref}),Jr(function(t){return{timestamp:new $Y(t.time,q2k),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:t.rootBounds||SP,topWindowViewportExternalGeometry:t.rootBounds||Pb(X,!0),measurementRequests:e,elementGeometrySourceName:"nio",intersectionGeometry:t.intersectionRect,elementGeometry:t.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:t.isIntersecting,isV2Visible:t.isVisible}}}),sH(q),rr()).subscribe(d),e=new G8,y=e.subscribe(function(){K(U);
d.next({timestamp:X.timeProvider.now(),value:q.value.value});w.ref!==void 0&&(H.unobserve(U,w.ref),H.observe(U,w.ref))}),V=BfN(l,w).subscribe(function(){e.next()}),p=!1,z=w.JSC$9670_released.subscribe(function(){return B()});
return B}})};
uUW=function(X,H){var l=X.getOnBackgrounded().pipe(Jr(function(){return"b"}));
return DbZ(H,l).pipe(hn(1),ZY(X.queue))};
zp=function(X){return function(H){var l;return H.pipe(joy(function(b){return void(l=b.timestamp)}),Jr(function(b){return b.value}),X,Jr(function(b){return{timestamp:l,
value:b}}))}};
eJO=function(X){return X.intersectionGeometry.width*X.intersectionGeometry.height/(X.elementGeometry.width*X.elementGeometry.height)};
nY=function(X,H,l){l=l===void 0?function(b,U){return b===U}:l;
return X.timestamp.equals(H.timestamp)&&l(X.value,H.value)};
De=function(X,H){return H.pipe(Jr(function(l){return new kO(X.timeProvider,{timestamp:X.timeProvider.now(),value:l})}))};
y1O=function(X){return function(H){return H.pipe(rny(X),Jr(function(l){var b=_.C(l);l=b.next().value;b=b.next().value;var U=l.value;return{timestamp:l.timestamp,value:U>=1?!0:U<=0?!1:U>=b}}))}};
PL8=function(){return nJ(b1(function(X,H){return H>0}),VIZ,yh(-1),FP())};
f1m=function(X,H,l){return X?ID([H,l]).pipe(b1(function(b){var U=_.C(b);b=U.next().value;U=U.next().value;return b.timestamp.equals(U.timestamp)}),Jr(function(b){var U=_.C(b);
b=U.next().value;U=U.next().value;return b.value>U.value?b:U})):H};
zJK=function(X){return function(H){var l=H.pipe(pgk),b=H.pipe(S2K);return X instanceof km?X.pipe(Vh(function(U){return f1m(U,l,b)})):f1m(X.value,l,b)}};
a1l=function(X,H,l,b){var U=b.geometryIsOccluded,K=b.exposureThreshold,w=b.wasLargeAdAtRender,d=b.allowLargeAdThreshold,B=b.largeAdExposureThreshold,q=b.mayUseViewportShareExposure,u=b.hasMeasurementStarted;b=b.useIntersectionObserverV2;H=n3N(X,l,H);l=kGO(X,l);b=xsO(H,b);var e=DsZ(X,U,q,H),y=e.pipe(Jr(function(v){return v.value}),FP(),ZY(X),eN(function(v,J){return Math.max(v,J)},0)),V=e.pipe(Jr(function(v){return v.value}),PL8(),ZY(X)),p=H.pipe(tIy,Jr(function(v){return v.value}),hn(2),FP(),ZY(X));
w=WXO(X,H,w,d);var z=w.pipe(yh(!1),FP(),Jr(function(v){return v?B:K}));
d=e.pipe(y1O(z),FP(),ZY(X));var t=ID([d,H]).pipe(b1(function(v){var J=_.C(v);v=J.next().value;J=J.next().value;return v.timestamp.equals(J.timestamp)}),Jr(function(v){var J=_.C(v);
v=J.next().value;J=J.next().value;return{visible:v.value,geometry:J.value.elementGeometry}}),eN(function(v,J){return!J.visible&&v.visible?v:J},{visible:!1,
geometry:SP}),Jr(function(v){return v.geometry}),yh(SP),ZY(X),FP(OH));
q=q instanceof km?q.pipe(FP(),dX()):d9;z=ID([q,z]).pipe(dX());var W=H.pipe(b1(function(v){return v.value.viewportGeometrySourceName!=="ns"&&v.value.elementGeometrySourceName!=="ns"}),eN(function(v){return v+1},0),yh(0),ZY(X)),G=l.pipe(dX(!0),yh(!1),ZY(X));
G=ID([u,G]).pipe(Jr(function(v){var J=_.C(v);v=J.next().value;J=J.next().value;return v&&!J}),ZY(X));
var r=H.pipe(E3y,FP()),Q=r.pipe(Jr(function(v){return v.value}),eN(function(v,J){return Math.max(v,J)},0),FP(),ZY(X));
X=r.pipe(Jr(function(v){return v.value}),PL8(),ZY(X));
return{shouldResetExposureSignals:q,shouldResetViewabilitySignals:z,geometrySignals:{readyGeometryWithDefault:H,measurementStrategy:H.pipe(g3l),creativePosition:t.pipe(FP(OH)),visible:d.pipe(FP(nY)),timestampedExposure:e.pipe(FP(nY)),maximumExposure:y,minimumExposure:V,browserSize:H.pipe(GGb,FP(_.YN)),timestampedScreenShare:r,maxScreenShare:Q,minScreenShare:X,geometricMeasurementErrors:l,measurementRequests:H.pipe(Jr(function(v){return v.value.measurementRequests})),
isLargeAd:w,geometryIsOccluded:U,hasMeasurementStarted:u,geometryMeasurable:G,validMeasurementCount:W,loadTimeExposure:p,v2VisibilityBitVector:b}}};
kGO=function(X,H){return H.pipe(b1(function(){return!1}),Jr(function(l){return l}),Ro(function(l){return tj(new v1(l),X)}))};
n3N=function(X,H,l){return H.pipe(k8W(d9),ZY(X)).pipe(FP(function(b,U){return nY(b,U,l1N)}),yh({timestamp:l.now(),
value:Usm}),ZY(X))};
DsZ=function(X,H,l,b){l=b.pipe(zJK(l),zp(Jr(function(U){return Math.round(U*100)/100})),ZY(X));
return H instanceof v1?l:ID([l,H]).pipe(Jr(function(U){var K=_.C(U);U=K.next().value;K=K.next().value;return{timestamp:K.timestamp.maximum(U.timestamp),value:K.value?0:U.value}}),FP(nY),ZY(X))};
WXO=function(X,H,l,b){H=[H.pipe(Jr(function(U){return U.value.elementGeometry.width*U.value.elementGeometry.height>=242500}))];
l instanceof km&&H.push(l.pipe(Jr(function(U){return!!U})));
l=ID(H);return b?l.pipe(Jr(function(U){return U.some(function(K){return K})}),yh(!1),FP(),ZY(X)):tj(new v1(!1),X)};
xsO=function(X,H){X=ID([X,H]).pipe(Jr(function(U){var K=_.C(U);U=K.next().value;if(K.next().value&&U.value.isIntersecting)return U.value.isV2Visible}),FP());
var l=X.pipe(Jr(function(U){return U===void 0?!0:U}),eN(function(U,K){return U||!K},!1)),b=X.pipe(eN(function(U,K){return K===void 0?U:K?!1:U!=null?U:!0},void 0),Jr(function(U){return!!U}));
return ID([H,tNZ(X,l,b)]).pipe(Jr(function(U){var K=_.C(U);U=K.next().value;var w=_.C(K.next().value);K=w.next().value;var d=w.next().value;w=w.next().value;var B=0;if(!U)return 0;if(K===void 0)return 16;K&&(B|=1);K||(B|=2);d&&(B|=4);w&&(B|=8);return B}))};
Q58=function(X,H,l,b,U){var K=ZWm.timeThresholdMs;var w=w===void 0?new iWm(H,b):w;return(new km(function(d){var B=l.pipe(yh(void 0),Vh(function(){return v3y(U)})).pipe(Jr(function(q){var u=q.value;
q=q.timestamp;var e=u.visible;u=u.consecutiveViewTime;var y=u>=K;y||!e?OWy(w):(q=Math.max(0,UH(H.now(),q)),msh(w,Math.max(0,K-u-q)));return y}),eN(function(q,u){return u||q},!1),FP()).subscribe(d);
return function(){w.dispose();B.unsubscribe()}})).pipe(f$(function(d){return!d},!0),ZY(X))};
v3y=function(X){return LKl([X,X.pipe(HWy())]).pipe(Jr(function(H){var l=_.C(H);H=l.next().value;l=l.next().value;return{timestamp:H.timestamp,value:{visible:H.value,consecutiveViewTime:l.value}}}),FP(function(H,l){return nY(H,l,function(b,U){return b.consecutiveViewTime===U.consecutiveViewTime&&b.visible===U.visible})}))};
Tfk=function(){return nJ(Aoy(),eN(function(X,H){return Math.max(X,H)},0),Jr(function(X){return Math.round(X)}))};
Nfy=function(X){return nJ(y1O(TS(X)),Tfk())};
c1k=function(X,H){return H instanceof km?H.pipe(Vh(function(l){return(l=l?15:null)?Nl(new hj(l)):X})):(H=H.value?15:null)?Nl(new hj(H)):X};
j5W=function(X){var H=new hj(13);if(X.length<1)return{chain:l1,capturedErrors:l1};var l=new G8,b=X[0];return{chain:X.slice(1).reduce(function(U,K){return U.pipe(Ro(function(w){l.next(w);return K}))},b).pipe(Ro(function(U){l.next(U);
return Nl(H)}),sH(new G8),rr()),
capturedErrors:l}};
r18=function(X,H){var l=X.pipe(sH(new G8),rr());return Vh(function(b){return l.pipe(H(b))})};
LX8=function(X,H){if(X.inCrossDomainIframe)return Nl(new hj(6));var l=new G8;return oo(TS({}),H,l).pipe(Jr(function(){return{timestamp:X.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:J1h(X),topWindowViewportExternalGeometry:Pb(X,!0),measurementRequests:l,viewportLocalAppOffset:{x:0,y:0}}}}),ao(X.queue))};
J1h=function(X){var H=Pb(X,!1);if(!X.inIframe||!AnZ(X.global.parent)||X.global.parent===X.global)return H;var l=new Wb(X.global.parent,X.debugChannel);l.beaconFactory=X.beaconFactory;l=J1h(l);X=X.global.frameElement.getBoundingClientRect();return QZO(T9y(QZO(l,X),{x:H.left-X.left,y:H.top-X.top}),H)};
Y2m=function(X){if(X.prerendering)return 3;var H;return(H={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[X.visibilityState||X.webkitVisibilityState||X.mozVisibilityState||""])!=null?H:0};
I1y=function(X){return X.document.JSC$9681_onVisibilityChange.pipe(Jr(function(H){return H==="visible"}),FP(),ZY(X.queue))};
A1L=function(X,H,l){var b;return H.pipe(FP(),Vh(function(U){return l.pipe(Jr(function(){if(!b){b=!0;try{U.next()}finally{b=!1}}return!0}))}),yh(!1),ZY(X.queue))};
X$N=function(X){return nJ(zp(Jr(function(H){return H>=1?!0:H<=0?!1:H>=X})),IMN(),Jr(function(H){return Math.round(H)}))};
lRk=function(X,H,l,b,U){var K=Hfb;if(K.length>1)for(var w=0;w<K.length-1;w++)if(K[w]<K[w+1])throw Error();w=U.pipe(yh(void 0),Vh(function(){return l.pipe(HWy())}),FP(),ZY(X));
U=U.pipe(yh(void 0),Vh(function(){return l.pipe(Tfk())}),FP(),ZY(X));
return{totalMeasurementTime:b.pipe(yh(void 0),Vh(function(){return H.pipe(Jr(function(d){return{timestamp:d.timestamp,value:!0}}),IMN())}),FP(),ZY(X)),
totalUnviewedTime:b.pipe(yh(void 0),Vh(function(){return H.pipe(Jr(function(d){return{timestamp:d.timestamp,value:d.value===0}}),IMN())}),FP(),ZY(X)),
maxTimeOnScreen:b.pipe(yh(void 0),Vh(function(){return H.pipe(XgO(Nfy,K))}),FP(_.YN),ZY(X)),
timeOnScreen:b.pipe(yh(void 0),Vh(function(){return H.pipe(XgO(X$N,K),Jr(function(d){return d.map(function(B,q){return q>0?B-d[q-1]:B})}))}),FP(_.YN),ZY(X)),
maxConsecutiveViewTime:U,consecutiveViewTime:w.pipe(FP(nY),ZY(X))}};
bfb=function(X){var H=!0;H=H===void 0?!1:H;return nJ(Vh(function(l){return oyO(X.document,l,H)}),ZY(X.queue))};
Uk8=function(X,H,l){var b=l.pipe(Jr(function(U){return{value:U,timestamp:X.timeProvider.now()}}),FP(nY));
return H instanceof km?H.pipe(FP(),Vh(function(U){return U?tj(new v1({value:!1,timestamp:X.timeProvider.now()}),X.queue):b})):H.value===!1?b:new v1(!1)};
$kK=function(X,H,l,b,U,K,w){var d=ZWm;H=H instanceof km?H.pipe(yh(!1),FP()):H;var B=!X.isMobile();l=Uk8(X,l,b);X=w.measurableCreative.pipe(JoL(X.queue));return Object.assign({},d,{geometryIsOccluded:l,wasLargeAdAtRender:U,allowLargeAdThreshold:B,mayUseViewportShareExposure:H,hasMeasurementStarted:X,useIntersectionObserverV2:K})};
ROL=function(X,H,l,b,U,K){var w=1;K=K===void 0?!0:K;w=w===void 0?.01:w;var d=d===void 0?X.timeProvider.intervalObservable(100).pipe(ZY(X.queue)):d;return X.performanceMonitor.timeExecution(916,function(){return KuZ(X,H.pipe(ao(X.queue)),l.pipe(ao(X.queue)),b,U,K,w,d)})()};
KuZ=function(X,H,l,b,U,K,w,d){var B=I1y(X).pipe(Jr(function(u){return!u})),q=new CjN(X,[new w$K(X,Hfb),
new dky(X,d)]);d=Z8L(hOy,Fuz);return xFb(X,H,function(u,e){var y=tj(new v1(e.element),u.queue).pipe(bfb(u),ZY(u.queue)),V={loadedElement:y,shouldMeasure:y.pipe(dX(!0)),measurableCreative:y.pipe(Jr(function(v){var J=J===void 0?Symbol():J;return Object.freeze({symbol:J,element:tj(new v1(v),u.queue)})})),
creativeSearchResult:tj(new v1("mue"),u.queue)},p=new v1(!1),z=new v1(!1),t=new v1(17),W=new v1(!1),G=new v1(!1),r=tj(E_,u.queue);p=q.buildGeometrySource(V,{inApp:p,useV2:!1,requestSource:tj(t,u.queue)}).geometrySource;V=$kK(u,W,z,B,G,r,V);z=a1l(u.queue,u.timeProvider,p,V);V=z.geometrySignals;W=z.shouldResetViewabilitySignals;z=lRk(u.queue,V.timestampedExposure,V.visible,z.shouldResetExposureSignals,W);W=Q58(u.queue,u.timeProvider,W,V.measurementRequests,V.visible);G=l.pipe(b1(function(v){return v===
e.element.ref}),Jr(function(){return"ur"}));
r=G8O(u.timeProvider,U).pipe(dX("t"));G=uUW(u,oo(G,r));r=A1L(u,V.measurementRequests,G.pipe(b1(function(v){return v!==null})));
p=G.pipe(b1(function(v){return v!==null}),Jr(function(){return Y2m(u.global.document)===1}));
var Q=Bxl(u.document);return Object.assign({},{beaconFactory:new v1(u.beaconFactory),context:new v1(u),inferredPingId:new v1("lidar2"),timeOnScreenPingId:new v1("lidartos"),binaryContext:new v1(17),binaryVersion:new v1(b),requestSource:t,contextValidationErrors:new v1(u.validate()?null:new Fv),contextVisibilityKnown:new v1(Q),payloadMapper:new v1(GBK),endOfSessionReason:G,timeOnScreenReason:G,requestMeasurementOnEndOfSession:r,hasImpressionFired:qtK,crossDomainIframeState:new v1(u.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:E_,inFetchLaterBeaconExperiment:E_,isTurtlex:E_,turtlexReportEventData:new v1(""),reportFencedFrameEvent:d9,isViewableAttributionEnabled:E_,inViewableAttributionExperiment:new v1(0),fetchBeaconFactory:d9,supportsPendingBeacon:E_,supportsFetchLater:E_,emit:new v1(O8z),beginToRenderEvent:new v1(Symbol()),activeViewUnmeasurableEvent:new v1(Symbol()),activeViewViewableEvent:new v1(Symbol()),creativeFound:qtK,immediateUrlPrefixes:new v1(e.immediateUrls),timeOnScreenUrlPrefixes:new v1(e.timeOnScreenUrls),
cpmavUrls:d9,viewableRelayUrls:d9,measurementDeferralState:new v1(2),urlSerializer:new v1(jAm),viewUrlSerializer:new v1(s08),isCreativeLoaded:y.pipe(JoL(u.queue)),pageVisible:B.pipe(Jr(function(v){return!v})),
eosPageVisible:p,timestampedExposureHistory:V.timestampedExposure.pipe(eN(function(v,J){v.push(J);return v},[]))},V,{viewable:De(u,W),
maxTimeOnScreen:De(u,z.maxTimeOnScreen),timeOnScreen:De(u,z.timeOnScreen),maxConsecutiveViewTime:De(u,z.maxConsecutiveViewTime),consecutiveViewTime:z.consecutiveViewTime.pipe(Jr(function(v){return new kO(u.timeProvider,v)})),
totalMeasurementTime:De(u,z.totalMeasurementTime),totalUnviewedTime:De(u,z.totalUnviewedTime),userAgentClientHints:VPl(u),clientOrderPingCounter:new v1(new tOh)})},aMl(X,w),i8l(K?veW(d,MJW):veW(d,uiZ),eO8))};
yRL=function(X){var H=_.Ab.apply(1,arguments).filter(Boolean).join("&");if(!H)return X;var l=X.match(/[?&]adurl=/);return l?X.slice(0,l.index+1)+H+"&"+X.slice(l.index+1):X+(X.indexOf("?")<0?"?":"&")+H};
g9=function(X,H){return H?"&"+X+"="+encodeURIComponent(H):""};
VJW=function(){try{var X,H;return!!((X=window)==null?0:(H=X.top)==null?0:H.location.href)&&!1}catch(l){return!0}};
_.Gp=function(X){X&&typeof X.dispose=="function"&&X.dispose()};
_.aZ=function(X){for(var H=0,l=arguments.length;H<l;++H){var b=arguments[H];_.ch(b)?_.aZ.apply(null,b):_.Gp(b)}};
fRN=function(){var X=Pjl();X=X===void 0?"bevasrsg":X;return new Promise(function(H){var l=window===window.top?window:VJW()?window:window.top,b=l[X],U;((U=b)==null?0:U.bevasrs)?H(new Ze(b.bevasrs)):(b||(b={},b=(b.nqfbel=[],b),l[X]=b),b.nqfbel.push(function(K){H(new Ze(K))}))})};
p$l=function(X){var H={c:X.hL,e:X.jov,mc:X.hqo,me:X.gLf};X.sT&&(H.co={c:X.sT.akm,a:X.sT.j8j,s:X.sT.eQa});return H};
Stz=function(X){var H,l,b={hL:X.c,jov:X.e,hqo:(H=X.mc)!=null?H:!1,gLf:(l=X.me)!=null?l:!1};X.co&&(b.sT={akm:X.co.c,j8j:X.co.a,eQa:X.co.s});return b};
zOy=function(X){return function(){var H;return _.h(function(l){if(l.nextAddress==1)return l.yield(X(),2);H=l.yieldResult;return l.return({f:function(){return H.viT()},
c:function(b){return H.aQ6(b)},
m:function(b){return H.be(Stz(b))},
mws:function(b){return H.t0m(Stz(b))}})})}};
nyy=function(X,H){var l=Pjl();l=l===void 0?"bevasrsg":l;H={s:function(K){var w;return X.snapshot(Object.assign({},K.c&&{hL:K.c},K.s&&{kgX:K.s},{xDB:(w=K.p)!=null?w:!0}))},
e:function(K){var w;return void((w=X.e5m)==null?void 0:w.call(X,K))},
c:function(K,w){return X.mkB(K,w)},
p:X.flU,l:function(){return X.sav()},
wpc:H?zOy(H):void 0};var b=window===window.top?window:VJW()?window:window.top,U=b[l];if(U){U.bevasrs=H;if(U.nqfbel!==void 0)for(l=_.C(U.nqfbel),b=l.next();!b.done;b=l.next())b=b.value,b(H);U.nqfbel=void 0}else U={},U=(U.bevasrs=H,U.nqfbel=void 0,U),b[l]=U};
xky=function(X){var H=H===void 0?53:H;var l=[];_.iB(X,k78,6,_.vb()).forEach(function(b){_.O_(b,2)<=H&&l.push(_.O_(b,1))});
return l};
Dkh=function(X){var H=H===void 0?53:H;var l=[];_.iB(X,k78,6,_.vb()).forEach(function(b){_.O_(b,2)>H&&l.push(_.O_(b,1))});
return l};
tJm=function(X){X.then(function(){},function(){})};
mZ=function(X){return{fieldType:1,fieldName:X}};
Qo=function(X){return{fieldType:2,fieldName:X}};
_.Tp=function(X){return{fieldType:3,fieldName:X}};
Wuh=function(){function X(){U[0]=1732584193;U[1]=4023233417;U[2]=2562383102;U[3]=271733878;U[4]=3285377520;u=q=0}
function H(e){for(var y=w,V=0;V<64;V+=4)y[V/4]=e[V]<<24|e[V+1]<<16|e[V+2]<<8|e[V+3];for(V=16;V<80;V++)e=y[V-3]^y[V-8]^y[V-14]^y[V-16],y[V]=(e<<1|e>>>31)&4294967295;e=U[0];var p=U[1],z=U[2],t=U[3],W=U[4];for(V=0;V<80;V++){if(V<40)if(V<20){var G=t^p&(z^t);var r=1518500249}else G=p^z^t,r=1859775393;else V<60?(G=p&z|t&(p|z),r=2400959708):(G=p^z^t,r=3395469782);G=((e<<5|e>>>27)&4294967295)+G+W+r+y[V]&4294967295;W=t;t=z;z=(p<<30|p>>>2)&4294967295;p=e;e=G}U[0]=U[0]+e&4294967295;U[1]=U[1]+p&4294967295;U[2]=
U[2]+z&4294967295;U[3]=U[3]+t&4294967295;U[4]=U[4]+W&4294967295}
function l(e,y){if(typeof e==="string"){e=unescape(encodeURIComponent(e));for(var V=[],p=0,z=e.length;p<z;++p)V.push(e.charCodeAt(p));e=V}y||(y=e.length);V=0;if(q==0)for(;V+64<y;)H(e.slice(V,V+64)),V+=64,u+=64;for(;V<y;)if(K[q++]=e[V++],u++,q==64)for(q=0,H(K);V+64<y;)H(e.slice(V,V+64)),V+=64,u+=64}
function b(){var e=[],y=u*8;q<56?l(d,56-q):l(d,64-(q-56));for(var V=63;V>=56;V--)K[V]=y&255,y>>>=8;H(K);for(V=y=0;V<5;V++)for(var p=24;p>=0;p-=8)e[y++]=U[V]>>p&255;return e}
for(var U=[],K=[],w=[],d=[128],B=1;B<64;++B)d[B]=0;var q,u;X();return{reset:X,update:l,digest:b,digestString:function(){for(var e=b(),y="",V=0;V<e.length;V++)y+="0123456789ABCDEF".charAt(Math.floor(e[V]/16))+"0123456789ABCDEF".charAt(e[V]%16);return y}}};
Nz=function(X){this.JSC$9928_document_=X||{cookie:""}};
ifk=function(X,H){H=H===void 0?EyN:H;if(!gyL){var l;X=(l=X.navigator)==null?void 0:l.userAgentData;if(!X||typeof X.getHighEntropyValues!=="function"||X.brands&&typeof X.brands.map!=="function")return Promise.reject(Error("va"));G7l((X.brands||[]).map(function(U){var K=new aRm;K=_.KY(K,1,U.brand);return _.KY(K,2,U.version)}));
typeof X.mobile==="boolean"&&_.cb(Zfy,2,X.mobile);gyL=X.getHighEntropyValues(H)}var b=new Set(H);return gyL.then(function(U){var K=Zfy.clone();b.has("platform")&&_.KY(K,3,U.platform);b.has("platformVersion")&&_.KY(K,4,U.platformVersion);b.has("architecture")&&_.KY(K,5,U.architecture);b.has("model")&&_.KY(K,6,U.model);b.has("uaFullVersion")&&_.KY(K,7,U.uaFullVersion);return K.serialize()}).catch(function(){return Zfy.serialize()})};
jP=function(X,H,l,b){this.initialValue_=X;this.maxValue_=H;this.currBaseValue_=this.currValue_=X;this.randomFactor_=l||0;this.backoffFactor_=b||2};
Ofy=function(X,H,l,b,U){this.listener=X;this.proxy=null;this.src=H;this.type=l;this.capture=!!b;this.handler=U;this.key=++vyz;this.removed=this.callOnce=!1};
r9=function(X){this.src=X;this.listeners={};this.typeCount_=0};
Nxb=function(){for(var X;X=mkO.remove();){try{X.fn.call(X.scope)}catch(H){bb(H)}Q0m.put(X)}Txy=!1};
_.cRK=function(X){switch(X){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}};
j0b=function(X){switch(X){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""}};
_.rRy=function(){};
or8=function(X,H,l,b){X=JRL(LuL(Yt8(new _.Jj(1828,"0"),X),new IRL)).disableWithCredentials();H.length&&ARz(X,XQb(new Htl,H));b!==void 0&&(X.destinationUrl=b);var U=new ltK(1828,"","",!1,"",X.build());_.LY(U,X);var K=new YO({flush:function(w){try{U.flush(w)}catch(d){l(d)}}});
K.addOnDisposeCallback(function(){setTimeout(function(){try{K.snapshotAndFlush()}finally{U.dispose()}})});
K.invocationLimit=1E5;K.flushInterval=3E4;K.JSC$10097_flushTimer.setInterval(3E4);return K};
IZ=function(){var X,H,l;return(l=(X=globalThis.performance)==null?void 0:(H=X.now)==null?void 0:H.call(X))!=null?l:Date.now()};
$dN=function(X,H){if(X.disable)return new btm;H=H?xky(H):[];X={wx:X.wx,dNB:X.haX,n8j:X.u7Q,destinationUrl:X.destinationUrl,yY8:X.yY8,aTz:X.aTz};H=H===void 0?[]:H;return new Udk(X,H)};
KPy=function(X){if(!X)return null;X=_.Aj(X,2);return X===null||X===void 0?null:bQ(X)};
_.Rfk=function(X){if(!X)return null;X=_.Aj(X,4);return X===null||X===void 0?null:_.vu(X)};
ddm=function(X,H){return H?C0b(H):X?wQ8(X):Promise.resolve()};
C0b=function(X){return new Promise(function(H,l){var b=_.XJ("SCRIPT"),U=_.Rfk(X);_.sw(b,U);b.onload=function(){_.HE(b);H()};
b.onerror=function(){_.HE(b);l(Error("Ga"))};
(lI("HEAD")[0]||document.documentElement).appendChild(b)})};
wQ8=function(X){return new Promise(function(H){var l=_.XJ("SCRIPT");if(X){var b=_.Aj(X,6);b=b===null||b===void 0?null:_.F3(b)}else b=null;_.ql(l,b);(lI("HEAD")[0]||document.documentElement).appendChild(l);_.HE(l);H()})};
oA=function(X,H,l){var b,U=new Promise(function(K){b=setTimeout(K,H)});
return Promise.race([X.finally(function(){return void clearTimeout(b)}),
U.then(l)])};
hfk=function(X,H){try{return globalThis.sessionStorage.setItem(X,H),!0}catch(l){return!1}};
FPh=function(X,H,l,b){H=H===void 0?0:H;l=l===void 0?X.length:l;var U=0;for(b&&(U=FPh(b));H<l;H++)b=typeof X==="string"?X.charCodeAt(H):X[H],U=BLh(31,U)+b|0;return U};
qZy=function(X,H){return[FPh(X,0,X.length>>1,H),FPh(X,X.length>>1)]};
sFz=function(X){var H=_.C(qZy(X,UT));X=H.next().value;H=H.next().value;return X.toString(16)+H.toString(16)};
Mvm=function(X,H){var l=qZy(H);X=new Uint32Array(X.buffer);H=X[0];var b=_.C(l);l=b.next().value;b=b.next().value;for(var U=1;U<X.length;U+=2){for(var K=H,w=U,d=l,B=b,q=0;q<22;q++)w=w>>>8|w<<24,w+=K|0,w^=d+38293,K=K<<3|K>>>29,K^=w,B=B>>>8|B<<24,B+=d|0,B^=q+38293,d=d<<3|d>>>29,d^=B;K=[K,w];X[U]^=K[0];U+1<X.length&&(X[U+1]^=K[1])}};
uBy=function(X,H,l,b,U){var K=(4-(UT.length+l.length)%4)%4,w=new Uint8Array(4+K+UT.length+4+l.length),d=new DataView(w.buffer),B=0;d.setUint32(B,Math.random()*4294967295);B=B+4+K;w.set(UT,B);B+=UT.length;d.setUint32(B,U);w.set(l,B+4);Mvm(w,b);return X.insert(H,function(q){return void globalThis.sessionStorage.removeItem(q)})?hfk(H,_.Ik(w))?"s":"t":"i"};
efy=function(X,H){var l=globalThis.sessionStorage.getItem(X);if(!l)return["m"];try{var b=_.Ay(l);Mvm(b,H)}catch(U){return globalThis.sessionStorage.removeItem(X),["c"]}for(H=4;H<7&&b[H]===0;)H++;for(l=0;l<UT.length;l++)if(b[H++]!==UT[l])return globalThis.sessionStorage.removeItem(X),["d"];l=(new DataView(b.buffer)).getUint32(H);return Math.floor(Date.now()/1E3)>=l?(globalThis.sessionStorage.removeItem(X),["e"]):["a",new Uint8Array(b.buffer,H+4)]};
yly=function(X){return globalThis.TextEncoder?(new TextEncoder).encode(X):_.$N(X)};
Vvy=function(X){var H=X,l;return function(){if(H){var b=H;H=void 0;l=b.apply(this,arguments)}return l}};
fth=function(X){return a_(function(H){if(H instanceof X)return!0;var l,b,U=H==null?void 0:(l=H.ownerDocument)==null?void 0:(b=l.defaultView)==null?void 0:b[X.name];return P0y(U)&&H instanceof U})};
_.RA=function(X,H,l){_.$e.call(this);this.JSC$10311_listener_=X;this.JSC$10311_interval_=H||0;this.handler_=l;this.callback_=(0,_.K8)(this.JSC$10313_doAction_,this)};
_.C8=function(X){_.$e.call(this);this.handler_=X;this.JSC$10314_keys_={}};
wv=function(){_.$e.call(this);this.services_={}};
pQZ=function(){for(var X=10,H="";X-- >0;)H+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(Math.random()*62));return H};
dv=function(X){_.$e.call(this);this.JSC$10334_domHelper_=X||$O()};
BE=function(X,H,l,b,U){dv.call(this,l);this.JSC$10337_channel_=X;this.protocolVersion_=U||2;this.peerHostname_=H||"*";this.JSC$10337_eventHandler_=new _.C8(this);this.maybeAttemptToConnectTimer_=new _.ho(100,this.getWindow());this.oneSidedHandshake_=!!b;this.setupAckReceived_=new FJ;this.setupAckSent_=new FJ;this.JSC$10337_connected_=new FJ;this.endpointId_=pQZ();this.peerEndpointId_=null;this.oneSidedHandshake_?SZy(this.JSC$10337_channel_)==1?zfy(this.JSC$10337_connected_,this.setupAckReceived_):
zfy(this.JSC$10337_connected_,this.setupAckSent_):(zfy(this.JSC$10337_connected_,this.setupAckReceived_),this.protocolVersion_==2&&zfy(this.JSC$10337_connected_,this.setupAckSent_));nrk(this.JSC$10337_connected_,this.notifyConnected_,this);this.JSC$10337_connected_.callback(!0);this.JSC$10337_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.qF=function(X){X=kTK(X);return _.vu(X)};
kTK=function(X){return X===null?"null":X===void 0?"undefined":X};
uI=function(X,H){wv.call(this);for(var l=0,b;b=xdO[l];l++)if(b in X&&!/^https?:\/\//.test(X[b]))throw Error("Sa`"+X[b]+"`"+b);this.cfg_=X;this.name=this.cfg_.cn||pQZ();this.JSC$10338_domHelper_=H||$O();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.C8(this);X.lpu=X.lpu||JjN(this.JSC$10338_domHelper_.getWindow().location.href)+"/robots.txt";X.ppu=X.ppu||JjN(X.pu||"")+"/robots.txt";sT[this.name]=this;Ddm(window,"unload",tvy)||MF(window,"unload",tvy)};
Ery=function(X){if(X&&X.focus)if(X!==document.activeElement)X.focus();else return WPk(function(){return _.h(function(H){document.activeElement&&document.activeElement.blur();return H.return(WPk(function(){X.focus()}))})})};
_.grk=function(X){var H=H===void 0?5:H;setTimeout(function(){var l;return _.h(function(b){b.nextAddress==1&&(l=document.activeElement);if(b.nextAddress!=5)return(document.activeElement===l||document.activeElement===document.body)&&H>=0&&X?b.yield(Ery(X),5):b.jumpTo(0);if(document.activeElement===X)return b.return();X=X.parentElement;--H;return b.jumpTo(2)})},15)};
WPk=function(X){return new Promise(function(H){requestAnimationFrame(function(){H(X())})})};
aty=function(X){if(_.eO)X(_.eO);else{var H;((H=GTm)!=null?H:GTm=[]).push(X)}};
VW=function(){!_.eO&&_.yW&&_.Zth(_.yW());return _.eO};
_.Zth=function(X){_.eO=X;var H;(H=GTm)==null||H.forEach(aty);GTm=void 0};
_.PE=function(X){_.eO&&_.eO.beforeLoadModuleCode(X)};
_.f8=function(){_.eO&&_.eO.JSC$11375_setLoaded()};
p8=function(X){return Tty(X)?Number(X):String(X)};
itb=function(X){this.action=X;this.wfv=!1};
vrm=function(){};
OtW=function(X,H){itb.call(this,"set-drive-options");this.appId=X;this.appOrigin=H};
mdy=function(X){itb.call(this,"visibility");this.visible=X};
QFy=function(X,H){H?X.setAttribute("role",H):X.removeAttribute("role")};
SO=function(X,H,l){Array.isArray(l)&&(l=l.join(" "));var b="aria-"+H;l===""||l==void 0?(TLy||(l={},TLy=(l.atomic=!1,l.autocomplete="none",l.dropeffect="none",l.haspopup=!1,l.live="off",l.multiline=!1,l.multiselectable=!1,l.orientation="vertical",l.readonly=!1,l.relevant="additions text",l.required=!1,l.sort="none",l.busy=!1,l.disabled=!1,l.hidden=!1,l.invalid="false",l)),l=TLy,H in l?X.setAttribute(b,l[H]):X.removeAttribute(b)):X.setAttribute(b,l)};
LPh=function(X,H){var l=NLy++,b={measureTask:{id:l,fn:X.measure,context:H},mutateTask:{id:l,fn:X.mutate,context:H},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(b.args||(b.args=[]),b.args.length=0,b.args.push.apply(b.args,arguments),b.args.push(b.state)):b.args&&b.args.length!=0?(b.args[0]=b.state,b.args.length=1):b.args=[b.state];b.isScheduled||(b.isScheduled=!0,clZ[jFz].push(b));rlN||(rlN=!0,window.requestAnimationFrame(Jlk))}};
Jlk=function(){rlN=!1;var X=clZ[jFz],H=X.length;jFz=(jFz+1)%2;for(var l,b=0;b<H;++b){l=X[b];var U=l.measureTask;l.isScheduled=!1;U.fn&&U.fn.apply(U.context,l.args)}for(b=0;b<H;++b)l=X[b],U=l.mutateTask,l.isScheduled=!1,U.fn&&U.fn.apply(U.context,l.args),l.state={};X.length=0};
ke=function(X){_.zB.call(this);this.JSC$10470_element_=X;this.listenKeyIn_=_.n8(this.JSC$10470_element_,"focus",this,!0);this.listenKeyOut_=_.n8(this.JSC$10470_element_,"blur",this,!0)};
YZL=function(X,H){this.JSC$10473_element_=X;this.JSC$10473_dom_=H};
DM=function(X,H){xe.call(this,H);this.useIframeMask_=!!X;this.lastFocus_=null;this.resizeBackgroundTask_=LPh({mutate:this.resizeBackground_},this);LPh({mutate:this.updateModalAndBackground_},this)};
WE=function(X,H,l){DM.call(this,H,l);this.JSC$10483_class_=X||"modal-dialog";this.buttons_=(new to).addButton(ItW,!0).addButton(Alh,!1,!0)};
XBy=function(X,H,l){WE.call(this,X,H,l)};
HUy=function(X){ET.call(this,X)};
lSy=function(X){X=X&&X.getWindow()||window;return X.gadgets&&X.gadgets.rpc};
bUl=function(X,H){var l=H&&H.getWindow()||window;if(lSy(H))X();else if(oVN)oVN.push(X);else var b=oVN=[X],U=l.setInterval(function(){if(lSy(H)){l.clearInterval(U);for(var K=0;K<b.length;K++)b[K]();oVN=null}},100)};
$KN=function(X,H){var l=new gv(X);_.LY(H,l);var b={passive:!1};H.listen(l,"mousewheel",function(U){return void UKb(X,U)},b).listen(X,"scroll",function(U){return void UKb(X,U)},b)};
UKb=function(X,H){var l;a:{for(l=H.target;l;){if(l.nodeType==1){var b=_.GB(l,"overflowY");if(b=="auto"||b=="scroll")break a}l=l.parentNode}l=null}if(!l||!_.aA(X,l)||l.scrollHeight==l.clientHeight||H.deltaY>0&&Math.abs(l.scrollTop-(l.scrollHeight-l.clientHeight))<=1||H.deltaY<0&&l.scrollTop==0)H.preventDefault(),H.stopPropagation()};
KQN=function(){var X;if(X=X===void 0?window:X)return X!==X.parent&&X.hasOwnProperty("pangolinIframeGlobals");var H=Error("gb");setTimeout(function(){throw H;},1);
return!1};
TB=function(X,H,l,b,U,K,w,d,B,q){d=d===void 0?!1:d;B=B===void 0?!1:B;q=q===void 0?!1:q;WE.call(this,void 0,void 0,void 0);WE.call(this,K?K+" picker modal-dialog":"picker modal-dialog",!0,l);_.Hb(X,"protocol");this.iframeManager_=new RVm;this.targetId_=ZM();this.rpcToken_=ZM();X=_.iI(X);_.vE(X,"hostId");this.useGapi_=!B&&!KQN();d&&_.OT(X,"fv2","true");this.setUrl(X.toString());this.preferredDialogWidth_=b;this.preferredDialogHeight_=U;b!==void 0||U!==void 0?b=!0:(b=_.vE(_.iI(X.toString()),"hostId"),
CMb||(CMb=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),b=!CMb.has(b));this.autoSizeDialog_=b;this.JSC$10501_gadgetsDomHelper_=w||this.JSC$10452_dom_;this.JSC$10501_enablePopover_=q;H&&(w=this.JSC$10501_gadgetsDomHelper_,H=_.vE(_.iI(this.JSC$10503_url_),"grugl")=="true"?wBb:dKK,lSy(w)||(w=w||$O(document),q=w.createElement("SCRIPT"),_.sw(q,H),q.type="text/javascript",w.JSC$9636_document_.body.appendChild(q)));
X=X.toString();H=null;w=X.indexOf("/picker?");w>-1?H=X.substring(0,w+8-1):Rk(X,"/picker")&&(H=X);H&&this.setRelayUrl(H+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(X=this.buttons_,X.JSC$10486_element_=this.buttonEl_,X.render()):_.Ml(this.buttonEl_,hVk),_.mK(this.buttonEl_,!!this.buttons_))};
swW=function(X,H){X.name!==void 0?(this.name=X.name,this.code=FQK[X.name]):(this.code=X=X.code,this.name=BnN(X));_.XO.call(this,q48("%s %s",this.name,H))};
Msk=function(X,H){_.NF.call(this,X.type,H);this.event_=X};
_.Vsk=function(X){var H=H===void 0?u$8:H;var l=_.Ly(X),b=function(K){K=_.C(K);K.next();K=cE(K);return H(l,K)},U=function(K){var w=_.C(K);
K=w.next().value;w=cE(w);return X.apply(K,w)};
return function(){var K=_.Ab.apply(0,arguments),w=this||_.ok,d=eVl.get(w);d||(d={},eVl.set(w,d));return yVy(d,[this].concat(_.LJ(K)),U,b)}};
jO=function(X){var H={};X=X.replace(/\r/g,"").split("\n");for(var l=0;l<X.length;l++){var b=X[l],U=b.indexOf(":");U<0||(H[b.substring(0,U)]=b.substring(U+2,b.length))}return H};
S4k=function(X,H){H.id||(H.id="ow"+_.Ly(H));X.setAttribute("jsowner",H.id);X.__owner=H;var l=_.yo(H,PMZ);l&&(fSL.has(l)||fSL.set(l,[]),fSL.get(l).push(X));(l=pBb.get(H))||pBb.set(H,l=[]);l.includes(X)||l.push(X);H.setAttribute("__IS_OWNER",!0)};
PMZ=function(X){return _.rv(X)?X.getAttribute("jsname")==="coFSxe":!1};
zVW=function(X,H,l){l=l===void 0?function(){}:l;
return X?H():l()};
_.kdl=function(X){var H;return((H=nV8.documentOverride)!=null?H:X).__wizdispatcher};
L8=function(X){var H=Jo;Jo=X;return H};
DKZ=function(X){return X===xKL||(X==null?void 0:X.name)==="\u0275NotFound"};
Ye=function(X,H){var l;if((l=X)==null?0:l.isDisposed)throw Error("lb`"+String(X.debugName));for(;X!==void 0;){l=X;if(l.retrieve)return l.retrieve(H,{optional:!0});X=X.parent}return xKL};
IA=function(X){return{"\u0275prov":{providedIn:"root",token:Symbol(X),factory:void 0,value:void 0}}};
tsz=function(X){var H=Jo;if(!H){switch(X===void 0?3:X){case 0:X=Error("kb");break;case 1:X=Error("mb");break;case 2:X=Error("nb");break;default:X=Error("ob")}throw X;}return H};
WQL=function(X){var H=L8(X);X={};return X[Symbol.dispose]=function(){L8(H)},X};
Gdh=function(){var X=tsz(1),H=Ye(X,EVK);if(!DKZ(H))return H;X=Ye(X,gVO);if(!DKZ(X))return X.getOptionalAppContext()};
iUy=function(){var X=tsz(1);X=Ye(X,aSz);if(!(DKZ(X)||X[ZU8]&&!X.__hasBeenSet))return X.value};
vVN=function(X,H){H.nextDisposable=void 0;X.tailDisposable?X.tailDisposable.nextDisposable=H:X.childDisposable=H;X.tailDisposable=H};
OUO=function(X,H){var l={};vVN(X,(l[Symbol.dispose]=H,l))};
Ao=function(X){var H=Jo;H&&!H.isDisposed&&(vVN(H,X),X.parent=H)};
QwW=function(X){for(var H=X.childDisposable;H;){var l=H.nextDisposable;mKz(H);H=l}X.childDisposable=void 0;X.tailDisposable=void 0};
mKz=function(X){if(!X.isDisposed){X.isDisposed=!0;var H;(H=X[Symbol.dispose])==null||H.call(X);delete X.parent;QwW(X)}};
JVy=function(X){var H={retrieve:function(l){switch(l.\u0275prov.token){case TnW.\u0275prov.token:var b=X.asyncDeps;break;case aSz.\u0275prov.token:b=X.rootElement;break;case Nny.\u0275prov.token:b=X.modelRootElement;break;case EVK.\u0275prov.token:b=X.appContext;break;case cV8.\u0275prov.token:b=X.rendererData;break;case jwZ.\u0275prov.token:b=X.injectingConstructor;break;case gVO.\u0275prov.token:b=X.dispatcher}if(b)l=b;else a:{for(b=H.parent;b;){var U=b;if(U.retrieve){l=U.retrieve(l);break a}b=
b.parent}b=l.\u0275prov.token;U=rVy[b];U!==void 0?l=U:(U=l.\u0275prov.providedIn,l.\u0275prov.factory?(l=l.\u0275prov.factory(),b&&U==="root"&&(rVy[b]=l)):l=xKL)}return l}};
Ao(H);return H};
LQN=function(X){if(typeof document!=="undefined"&&document&&document.getElementById&&(X=document.getElementById(X))){var H=X.tagName.toUpperCase();if(H=="SCRIPT"||H=="LINK")return X}return null};
ISN=function(X,H){if((X=X===void 0?"":X)&&H)throw Error("ub");var l="";var b=_.ok._F_jsUrl;(X=H||LQN(X))&&(l=X.src?X.src:X.getAttribute("href"));if(b&&l){if(b!=l)throw Error("vb`"+b+"`"+l);l=b}else l=b||l;if(!Y4k(l))throw Error("wb");return l};
lqy=function(){if(!AVK){AVK=!0;try{var X=ISN(_.ok._F_jsUrl?"":"base-js")}catch(b){return}var H=XDW(H28(X)),l=Object.keys(H);l.length!==0&&aty(function(b){for(var U=_.C(l),K=U.next();!K.done;K=U.next()){K=K.value;for(var w=_.C(Object.keys(H[K])),d=w.next();!d.done;d=w.next())b.addExtraEdge(K,d.value)}})}};
b2y=function(){var X=Object.assign({},o2Z);Object.getOwnPropertyNames(o2Z).forEach(function(H){XU[H]!==void 0&&(X[H]=XU[H])});
return X};
Uph=function(X,H){if(XU.enablePerformanceTiming){var l,b;(b=(l=performance).mark)==null||b.call(l,X+"Start__"+H)}};
$pb=function(X,H){if(XU.enablePerformanceTiming){var l,b;(b=(l=performance).measure)==null||b.call(l,X+"__"+H,X+"Start__"+H)}};
KF8=function(X,H,l){var b;return X&&H?X+"__"+H:(b=X!=null?X:H)!=null?b:l};
Ckb=function(X){var H=Object.create(R2y);H.debugName=X;!Jo||Ao(H);return H};
wDW=function(X,H){var l=Ckb(H);H=L8(l);try{X(l)}finally{L8(H)}return function(){return void mKz(l)}};
h2m=function(X){return Hg(X)&&dpZ in X};
FFW=function(X){for(X=X===void 0?Jo:X;X;){if(h2m(X))return X;var H=void 0;X=(H=X.parent)!=null?H:null}return null};
BU8=function(X,H){return Object.is(X,H)};
o5=function(X){var H=lL;lL=X;return H};
sLK=function(X){if(bL)throw Error("$");if(lL!==null){var H=lL.producersTail;if(H===void 0||H.producer!==X){var l=void 0,b=lL.recomputing;if(b&&(l=H!==void 0?H.nextProducer:lL.producers,l!==void 0&&l.producer===X)){lL.producersTail=l;l.lastReadVersion=X.version;return}var U=X.consumersTail,K;if(!(K=U===void 0||U.consumer!==lL)){if(b){a:{K=lL;b=K.producersTail;if(b!==void 0){K=K.producers;do{if(K===U){b=!0;break a}if(K===b)break;K=K.nextProducer}while(K!==void 0)}b=!1}b=!b}K=b}K&&(b=U2(lL),l={producer:X,
consumer:lL,nextProducer:l,prevConsumer:U,lastReadVersion:X.version,nextConsumer:void 0},lL.producersTail=l,H!==void 0?H.nextProducer=l:lL.producers=l,b&&qAy(X,l))}}};
CW=function(X){if(!U2(X)||X.dirty)if(X.dirty||X.lastCleanEpoch!==R5)(X.producerMustRecompute(X)||Mhk(X))&&X.producerRecomputeValue(X),X.dirty=!1,X.lastCleanEpoch=R5};
ulk=function(X){if(X.consumers!==void 0){var H=bL;bL=!0;try{for(var l=X.consumers;l!==void 0;l=l.nextConsumer){var b=l.consumer;b.dirty||(X=void 0,b.dirty=!0,ulk(b),(X=b.consumerMarkedDirty)==null||X.call(b,b))}}finally{bL=H}}};
e2b=function(){var X;return((X=lL)==null?void 0:X.consumerAllowSignalWrites)!==!1};
ySO=function(X){X&&(X.producersTail=void 0,X.recomputing=!0);return o5(X)};
Pkk=function(X){X.recomputing=!1;var H=X.producersTail,l=H!==void 0?H.nextProducer:X.producers;if(l!==void 0){if(U2(X)){do l=Vhl(l);while(l!==void 0)}H!==void 0?H.nextProducer=void 0:X.producers=void 0}};
Mhk=function(X){for(X=X.producers;X!==void 0;X=X.nextProducer){var H=X.producer,l=X.lastReadVersion;if(l!==H.version)return!0;CW(H);if(l!==H.version)return!0}return!1};
qAy=function(X,H){var l=X.consumersTail,b=U2(X);l!==void 0?(H.nextConsumer=l.nextConsumer,l.nextConsumer=H):(H.nextConsumer=void 0,X.consumers=H);H.prevConsumer=l;X.consumersTail=H;if(!b)for(X=X.producers;X!==void 0;X=X.nextProducer)qAy(X.producer,X)};
Vhl=function(X){var H=X.producer,l=X.nextProducer,b=X.nextConsumer,U=X.prevConsumer;X.nextConsumer=void 0;X.prevConsumer=void 0;b!==void 0?b.prevConsumer=U:H.consumersTail=U;if(U!==void 0)U.nextConsumer=b;else if(H.consumers=b,!U2(H))for(X=H.producers;X!==void 0;)X=Vhl(X);return l};
U2=function(X){return X.consumerIsAlwaysLive||X.consumers!==void 0};
pDZ=function(X){var H=Object.create(fqy);H.computation=X;X=function(){CW(H);sLK(H);if(H.value===wf)throw H.error;return H.value};
X[df]=H;return X};
k38=function(X,H){var l=Object.create(SAL);l.value=X;H!==void 0&&(l.equal=H);X=function(){sLK(l);return l.value};
X[df]=l;return[X,function(b){return z2z(l,b)},
function(b){e2b()||n2y(l);z2z(l,b(l.value))}]};
z2z=function(X,H){e2b()||n2y(X);if(!X.equal(X.value,H)){X.value=H;X.version++;R5++;ulk(X);var l;(l=xpy)==null||l(X)}};
thz=function(X,H,l){var b=Object.create(DpK);b.source=X;b.computation=H;l!=void 0&&(b.equal=l);X=function(){CW(b);sLK(b);if(b.value===wf)throw b.error;return b.value};
X[df]=b;return X};
_.h1=function(X){var H=o5(null);try{return X()}finally{o5(H)}};
WFm=function(X,H){Uph("signalSet",H.debugName);try{X()}finally{$pb("signalSet",H.debugName)}};
E2l=function(X,H,l){X=k38(X,H.equals);var b=X[0],U=b[df];U.debugName=KF8(H.debugName,l,"[signal]");if(!XU.enablePerformanceTiming)return X;var K=X[1],w=X[2];return[b,function(d){WFm(function(){return void K(d)},U)},
function(d){WFm(function(){return void w(d)},U)}]};
_.FU=function(X,H,l){return E2l(X,H!=null?H:{},l===void 0?"":l)};
G3k=function(X,H){var l=_.C(_.FU(X,void 0,"cPpJzc"));X=l.next().value;l=l.next().value;X[g2Z]=l;X[Bg]=H;return X};
aqN=function(X){return!!X&&typeof X==="object"&&Object.getPrototypeOf(X)===Object.prototype};
Z2y=function(X){return typeof X==="function"&&g2Z in X&&typeof X[g2Z]==="function"};
i2O=function(X){if(qs(X))return X.map(function(U){return i2O(U)});
if(aqN(X)){var H={};X=_.C(Object.entries(X));for(var l=X.next();!l.done;l=X.next()){var b=_.C(l.value);l=b.next().value;b=b.next().value;H[l]=i2O(b)}return H}return Z2y(X)?X():X};
v2k=function(X,H){Object.defineProperty(X,Bg,{get:function(){return H}})};
s2=function(X,H){if(qs(X)){var l=X.map(function(K){return s2(K,H)});
v2k(l,H);return l}if(aqN(X)){l={};X=_.C(Object.entries(X));for(var b=X.next();!b.done;b=X.next()){var U=_.C(b.value);b=U.next().value;U=U.next().value;l[b]=s2(U,H)}v2k(l,H);return l}return G3k(X,H)};
mpZ=function(){var X={height:0,width:0};if(!aqN(X))throw Error("Lb");var H=Symbol("Mb");return[s2(X,H),function(l,b){if(l[Bg]===H)if(typeof b==="function"){var U=[].concat(_.LJ(i2O(l)));b=b(U)||U;O2y(l,[].concat(_.LJ(b)))}else O2y(l,b);else throw Error("Nb");}]};
O2y=function(X,H){if(Z2y(X))X[g2Z](H);else if(qs(X)&&qs(H))H=s2(H,X[Bg]),X.length=0,X.push.apply(X,_.LJ(H));else if((aqN(X)||qs(X))&&(qs(H)||typeof H==="object"&&H!==null)){H=_.C(Object.entries(H));for(var l=H.next();!l.done;l=H.next()){var b=_.C(l.value);l=b.next().value;b=b.next().value;var U=X,K=U[l];Object.hasOwn(X,l)?O2y(K,b):U[l]=s2(b,X[Bg])}}else throw Error("Ob");};
QLy=function(X){return Object.create(Object.assign({},Ms,X))};
h3Z=function(){var X;return(X=TUl)!=null?X:TUl=QLy({consumerAllowSignalWrites:!0})};
_.uL=function(X,H,l){l=l===void 0?"":l;X=pDZ(X);var b=X[df];b.debugName=KF8(H==null?void 0:H.debugName,l,"[computed]");(H==null?void 0:H.equals)!=null&&(b.equal=H.equals);return X};
eI=function(X){var H=o5(FcK);try{X()}finally{o5(H)}};
Bwk=function(X){return Hg(X)&&X.name!==void 0&&X.isReactive!==void 0&&X.parent!==void 0};
smb=function(X,H,l){var b=qLy(X);y3={name:l?b+" ("+l+")":b,isReactive:X.componentType!==V3,parent:y3};X=H();y3=y3.parent;return X};
Pg=function(){var X=y3;return X?X.isReactive:!1};
pW=function(X,H,l){var b=y3;H&&(y3=H);try{return l==null?X():X.call(l)}catch(K){X=K;fW(X,y3);if(X!==May){uFN=y3;H=[];for(l=Jo;l;){var U=void 0;H.push((U=l.debugName)!=null?U:"[context]");U=void 0;l=(U=l.parent)!=null?U:null}e38=H.reverse()}May=X;throw X;}finally{y3=b}};
fW=function(X,H){try{var l=yhy(H);if(l&&!X.componentStack&&(X.componentStack=l,XU.enableComponentStacksInErrorMessages)){var b=X.message+"\n\nComponent stack: "+l;X.stack&&(X.stack=X.stack.replace(X.message,b));X.message=b}}catch(U){}};
Vab=function(X){for(var H=0,l="";H<20&&X;)l+="$$XID:"+X.name+"$$ > ",X=X.parent,H++;return l.slice(0,-3)};
yhy=function(X){return Bwk(X)||X===null?Vab(X):XU.enableContextBasedComponentStacks?FFW(X).getComponentStack().slice(0,20).map(function(H){return"$$XID:"+H+"$$"}).join(" > "):""};
qLy=function(X){return X.debugName||X.name||"[component]"};
z3y=function(X){switch(X.onInitType){case Pzm:fCy.schedule(X);break;case pjh:XU.enableQueueEffectAndOnInitInitialRuns?SLZ.enqueue(X):SLZ.schedule(X);break;default:_.Hp(X.onInitType)}};
Wc8=function(X){if(!X.isDisposed)switch(X.effectType){case SI:nHb.schedule(X);break;case kXh:x0k.schedule(X);break;case D08:XU.enableQueueEffectAndOnInitInitialRuns||X.version!==0?tak.enqueue(X):tak.schedule(X);break;default:_.Hp(X.effectType)}};
GXl=function(){if(zG>0)XU.flushRenderEffectsDuringRender&&nHb.flush();else{for(var X=_.C(EHO),H=X.next();!H.done;H=X.next())H.value.flush();gHy()}};
gHy=function(){_.h(function(X){if(X.nextAddress==1)return X.yield(Promise.resolve(),2);for(var H=_.C(aCZ),l=H.next();!l.done;l=H.next())l.value.flush();_.m5(X)})};
iib=function(X){x3=!0;try{for(var H=_.C(X),l=H.next();!l.done;l=H.next()){for(var b=l.value,U=[b],K=b;K.parent!==void 0;)K=K.parent,Zib(K)&&X.has(K)&&U.push(K);for(;U.length>0;){var w=U.pop();X.delete(w);w.run()}}}finally{x3=!1}};
D1=function(X){zG--;if(X){X=_.C(vHK);for(var H=X.next();!H.done;H=X.next())H.value.clear()}else zG>0||x3&&!XU.flushRenderEffectsDuringRender||GXl()};
Oib=function(X,H,l){X=Object.create(X);H&&(X.fn=H);l&&(X.debugName=l);Ao(X);X.componentStack=y3;return X};
m0z=function(X){if(!X.isDisposed){if(bL)throw Error("Sb");var H=L8(X);Uph("effectRun",X.debugName);try{pW(function(){X.dirty=!1;if(!(X.version>0)||Mhk(X)){X.version++;var l=ySO(X);try{X.cleanup(),X.fn()}finally{o5(l),X&&Pkk(X)}}},X.componentStack,X)}catch(l){throw XU.enableContextBasedComponentStacks&&fW(l),l;
}finally{$pb("effectRun",X.debugName),L8(H)}}};
_.t1=function(X,H){X=Oib(Qmz,X,H);Wc8(X)};
_.Wg=function(X,H){X=Oib(TwW,X,H);Wc8(X)};
NwZ=function(X){return X};
chy=function(X,H,l){function b(){return U()}
l=l===void 0?"":l;var U=typeof X==="function"?thz(X,NwZ,H==null?void 0:H.equals):thz(X.source,X.computation,H==null?void 0:H.equals);var K=U[df];K.debugName=KF8(H==null?void 0:H.debugName,l,"[linkedSignal]");b[df]=K;return[b,function(w){WFm(function(){CW(K);z2z(K,w);K.dirty=!1;K.lastCleanEpoch=R5},K)},
function(w){WFm(function(){CW(K);e2b()||n2y(K);z2z(K,w(K.value));K.dirty=!1;K.lastCleanEpoch=R5},K)}]};
_.E2=function(X){var H=Jo;if(H){var l=y3;OUO(H,function(){var b=o5(h3Z());try{pW(function(){return void X()},l)}catch(U){throw XU.enableContextBasedComponentStacks&&fW(U),U;
}finally{o5(b)}})}};
GG=function(X,H){var l={};(H===void 0||H)&&Ao(l);H=L8(l);try{X(l)}finally{L8(H)}return function(){return void mKz(l)}};
_.a5=function(X){return typeof X==="function"?X():(X==null?0:X[jmO])?X.get():X};
rhz=function(X){if(Jo)throw Error("pb");GG(X,!1)};
Z1=function(X,H){X=L8(X);try{return _.h1(H)}finally{L8(X)}};
iL=function(X,H){var l=yhy(uFN),b,U;var K=(U=(b=e38)==null?void 0:b.slice())!=null?U:[];H={componentStack:l,contextTrace:K,errorSeverity:3,featureFlags:b2y(),tagName:H};return[X,H]};
YLZ=function(X,H,l){if(Object.hasOwnProperty.call(Jh8,X)&&(X=Jh8[X],Object.hasOwnProperty.call(X,H)&&(X=X[H],X instanceof Array))){for(var b=null,U=!1,K=0,w=X.length;K<w;++K){var d=X[K],B=d.contingentAttribute;if(!B)return d.contract;b===null&&(b={});B=Object.hasOwnProperty.call(b,B)?b[B]:b[B]=l(B);if(B===d.requiredValue)return d.contract;B==null&&(U=!0)}if(U)return null}H=Lcy[H];return typeof H==="number"?H:null};
Xfm=function(X,H,l){var b=null;(X=ICO[X])&&(b=X[H]);return typeof b!=="number"&&((X=ICO["*"])&&(b=X[H]),typeof b!=="number")?!1:!0===AhZ[b][String(l).toLowerCase()]};
l9W=function(X,H){H=YLZ(X.toLowerCase(),H,function(){var b;(b=XU.handleError)==null||b.call.apply(b,[XU].concat(_.LJ(iL(Error("Vb"),X.toLowerCase()))))});
if(H===null)return null;var l;return(l=HrZ[H])!=null?l:null};
oEy=function(X,H,l){if(l===null||l===void 0)return l;H=H.toLowerCase();X=l9W(X,H);return X===null?l:X(H,l)};
$9Z=function(X){var H=brz,l=X,b="",U="",K=1;X<0&&(X=-X);if(X===Infinity)X=(Infinity*Math.sign(l)).toString();else{for(var w=0;w<U9m.length;w++){var d=U9m[w];K=H[d];if(X>=K||K<=1&&X>.1*K){b=d;break}}b?(b+="B",U=" "):K=1;X=Math.round(l/K*10)/10+U+b}return X};
KIL=function(){};
ReO=function(X,H){for(;X.length>H;)X.pop()};
Cgy=function(X){X=Array(X);ReO(X,0);return X};
vg=function(X,H,l){if(l==null)X.removeAttribute(H);else{var b;(b=H.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":H.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?X.setAttributeNS(b,H,l):X.setAttribute(H,l)}};
d9y=function(X,H,l){X=X.style;if(typeof l==="string")X.cssText=l;else{X.cssText="";for(var b in l)if(wfN.call(l,b)){H=X;var U=b,K=l[b];U.indexOf("-")>=0?H.setProperty(U,K):H[U]=K}}};
hek=function(X,H,l){var b=typeof l;b==="object"||b==="function"?X[H]=l:vg(X,H,l)};
FIL=function(){var X=new KIL;X[O2.default]=hek;X.style=d9y;return X};
BVl=function(X,H,l,b){(b[H]||b[O2.default])(X,H,l)};
sKy=function(X,H,l){H=new qeW(H,l);return X.__incrementalDOMData=H};
MBy=function(X,H){if(X.__incrementalDOMData)return X.__incrementalDOMData;var l=X.nodeType===1?X.localName:X.nodeName,b=X.nodeType===1?X.getAttribute("key"):null;H=sKy(X,l,X.nodeType===1?b||H:null);if(X.nodeType===1&&(X=X.attributes,l=X.length)){b=H._attrsArr||(H._attrsArr=Cgy(l*2));for(var U=0,K=0;U<l;U+=1,K+=2){var w=X[U],d=w.value;b[K]=w.name;b[K+1]=d}}return H};
uQO=function(X,H,l,b,U){return H==l&&b==U};
eek=function(X){for(var H=mX,l=Q3();l!==X;){var b=l.nextSibling;H.removeChild(l);TG.deleted.push(l);l=b}};
Q3=function(){return Ns?Ns.nextSibling:mX.firstChild};
cg=function(){Ns=Q3()};
Pgb=function(X,H){cg();var l;a:{if(l=Ns){do{var b=l,U=X,K=H,w=MBy(b,K);if(yBZ(b,U,w.nameOrCtor,K,w.key))break a}while(H&&(l=l.nextSibling))}l=null}l||(X==="#text"?(X=jI.createTextNode(""),sKy(X,"#text",null)):(l=jI,b=mX,typeof X==="function"?l=new X:l=(b=X==="svg"?"http://www.w3.org/2000/svg":X==="math"?"http://www.w3.org/1998/Math/MathML":b==null||MBy(b).nameOrCtor==="foreignObject"?null:b.namespaceURI)?l.createElementNS(b,X):l.createElement(X),sKy(l,X,H),X=l),TG.created.push(X),l=X);X=l;if(X!==
Ns){if(VBZ.indexOf(X)>=0)for(H=mX,l=X.nextSibling,b=Ns;b!==null&&b!==X;)U=b.nextSibling,H.insertBefore(b,l),b=U;else mX.insertBefore(X,Ns);Ns=X}};
f9y=function(X,H){Pgb(X,H);mX=Ns;Ns=null;return mX};
pfk=function(){eek(null);Ns=mX;mX=mX.parentNode};
nEy=function(X,H){H=H===void 0?{}:H;var l=H.matches===void 0?uQO:H.matches;return function(b,U,K){var w=TG,d=jI,B=VBZ,q=rf,u=Ns,e=mX,y=yBZ;jI=b.ownerDocument;TG=new SeL(b);yBZ=l;rf=[];Ns=null;var V=mX=b.parentNode,p,z=zeb.call(b);if((p=z.nodeType===11||z.nodeType===9?z.activeElement:null)&&b.contains(p)){for(z=[];p!==V;)z.push(p),p=p.parentNode||(V?p.host:null);V=z}else V=[];VBZ=V;try{return X(b,U,K)}finally{b=TG,J1&&b.deleted.length>0&&J1(b.deleted),jI=d,TG=w,yBZ=y,rf=q,Ns=u,mX=e,VBZ=B}}};
kwy=function(X,H,l,b){LW.push(BVl);LW.push(X);LW.push(H);LW.push(l);LW.push(b)};
x9Z=function(X){Pgb("#text",null);var H=Ns;var l=MBy(H);if(l.text!==X){l=l.text=X;for(var b=1;b<arguments.length;b+=1)l=(0,arguments[b])(l);H.data!==l&&(H.data=l)}};
a98=function(X,H,l){if(l===!1&&D9y.has(H))vg(X,H,null);else if(H!=="idomKey"&&H!=="skip"&&H!=="skipchildren"&&H!=="children"&&H!=="el")if(H.startsWith("on")){if(H[2]!==":")throw Error("Ub`"+H);if(l===void 0||l===null){var b;(b=XU.handleError)==null||b.call.apply(b,[XU].concat(_.LJ(iL(Error("Zb`"+H),X.tagName))));X[H]=void 0}else{var U=H.slice(3);b=Pg();if(U==="jsaction"){l=Array.isArray(l)?l:[l];l=_.C(l);for(var K=l.next();!K.done;K=l.next()){K=K.value;if(typeof K!=="object"||K===null||typeof K.selfReg!==
"function")throw Error("bc`"+H);K.selfReg(0,X,b?_.E2:function(){})}}else{if(typeof l!=="object"||l===null)throw Error("$b`"+H+"`"+typeof l);
if(typeof l.getFn!=="function")throw Error("ac`"+H+"`"+Object.keys(l));if(l.selfReg)l.selfReg(0,X,U,b?_.E2:function(){});
else if(b&&X["on"+U]===void 0){var w=l.getFn(0);X.addEventListener(U,w);_.E2(function(){return void X.removeEventListener(U,w)})}else if(b||!tB8.includes(U))X["on"+U]=l.getFn(0)}}}else{if(H.startsWith("data-")&&typeof l==="string")try{l=WIz(l)}catch(d){l="zSoyz"}typeof l!=="function"||X._disposeEffects!=null?((b=H.startsWith("prop:"))&&(H=H.slice(5)),XU.enableAttributeSanitization&&(b&&EEh(X.tagName)||(l=oEy(X.tagName,H,l))),H==="style"?("function"==typeof _.Y3&&l instanceof _.Y3&&(l=l.toString()),
gEy(X,H,l)):b?X[H]=l:Gwl(X,H,l)):(X._signalProps||(X._signalProps=[]),X._signalValues||(X._signalValues=[]),X._signalProps.push(H))}};
Zrm=function(X,H,l){l=(l===void 0?{}:l).isReactive;if(H==null?0:H.el){var b=H.el,U;(U=b.onRender)==null||U.call(b,X);X._disposeRef||(X._disposeRef=function(){var K;(K=b.onUnmount)==null||K.call(b);delete X._disposeRef},l&&_.E2(function(){var K;
(K=X._disposeRef)==null||K.call(X)}))}};
EEh=function(X){return X.length>0&&X.includes("-")&&!irl.includes(X.toLowerCase())};
vEO=function(X){return Hg(X)&&I5 in X};
Orb=function(X){return vEO(X)?X[I5].flattened:X};
m9b=function(X,H){var l=_.Ab.apply(2,arguments),b;H=(b=H)!=null?b:{};b={};return b.type=X,b.props=H,b.children=l,b[A1]=!0,b};
_.Xi=function(X){return X.children};
H$=function(X){var H=QKb!==m9b;QKb=X?TVO:m9b;return H};
lj=function(X){return _.r8(X)?"nodeType"in X:!1};
o0=function(){return document.createTextNode("")};
bj=function(X){X=document.createTextNode(String(X));X._isSignalTextNode=!0;return X};
cBW=function(X){return X!=null&&X.contentKind===Ut||X instanceof lQ||NVL(X)};
jKL=function(X){var H=document.createElement("div");if(NVL(X)&&KPy(X))_.Ml(H,KPy(X));else if(X instanceof lQ)_.Ml(H,X);else if(X!=null&&X.contentKind===Ut){if(X.contentKind!==Ut)throw Error("Yb");X=bQ(X.toString());_.Ml(H,X)}X=_.C(H.childNodes);for(var l=X.next();!l.done;l=X.next())l.value._isSafeOrSanitizedHtmlNode=!0;return H};
$y=function(X){X=typeof X;return X==="string"||X==="number"||X==="boolean"};
rB8=function(X){return X instanceof iR||cu(X)||X instanceof yb||"function"==typeof _.Y3&&X instanceof _.Y3};
JBy=function(X,H){var l=X.parentElement;if(!l)return H;l.replaceChild(H,X);return H};
LIk=function(X,H){var l=X[0].parentElement;if(l)if(X[0].previousSibling||X[X.length-1].nextSibling){l.insertBefore(H,X[0]);for(var b=X.length-1;b>=0;b--)l.removeChild(X[b])}else l.textContent="",l.appendChild(H);return H};
Yey=function(X,H){if(X[0].parentElement)for(var l=X[0].parentElement,b=H.length,U=X.length,K=b,w=0,d=0,B=X[U-1].nextSibling,q=null;w<U||d<K;)if(X[w]===H[d])w++,d++;else{for(;X[U-1]===H[K-1];)U--,K--;if(U===w)for(var u=K<b?d?H[d-1].nextSibling:H[K-d]:B;d<K;){var e=H[d++];l.insertBefore(e,u)}else if(K===d)for(;w<U;)u=X[w],q&&q.has(u)||l.removeChild(u),w++;else if(X[w]===H[K-1]&&H[d]===X[U-1])u=X[--U].nextSibling,l.insertBefore(H[d++],X[w++].nextSibling),l.insertBefore(H[--K],u),X[U]=H[K];else{if(!q)for(q=
new Map,u=d;u<K;)q.set(H[u],u++);u=q.get(X[w]);if(u==null)l.removeChild(X[w]),w++;else if(d<u&&u<K){e=w;for(var y=1,V=void 0;++e<U&&e<K&&(V=q.get(X[e]))!=null&&V===u+y;)y++;if(y>u-d)for(e=X[w];d<u;)l.insertBefore(H[d++],e);else l.replaceChild(H[d++],X[w++])}else w++}}return H};
ABK=function(X){if(Array.isArray(X)){if(X.length>1)throw Error("lc`"+X.length+"`"+X.map(I9N).join(", "));X=X[0]}if(X==null)return null;if(!(X instanceof _.hr)){var H,l;if((H=window)==null?0:(l=H.trustedTypes)==null?0:l.isScript(X))throw Error("kc");if(String(X).trim().length===0)return null;throw Error("mc`"+I9N(X));}return X};
Xiy=function(X,H){H=ABK(H);H!==null&&_.ql(X,H)};
HNh=function(X){if(Array.isArray(X)){if(X.length>1)throw Error("nc`"+X.length+"`"+X.map(I9N).join(", "));X=X[0]}if(X==null)return null;if(!(X instanceof yb)){if(String(X).trim().length===0)return null;throw Error("oc`"+I9N(X));}return X};
lvy=function(X,H){H=HNh(H);H!==null&&(X.textContent=Emb(H))};
I9N=function(X){return"("+typeof X+") "+(X!=null&&typeof X==="object"?X.constructor.name:typeof X)+" "+X};
ouN=function(){};
dx=function(X,H){H=H===void 0?{}:H;var l=bNl(),b=!0,U,K=!!XU.legacyTriggerSoyRendererEvents;K&&(U=Gdh());_.t1(function(){var w=!b&&H.isControlFlowComponent&&K,d=w?l[I5].flattened[0].parentElement:void 0;b=!1;Cf.setUp();H.isControlFlowComponent&&zG++;var B=l[0],q=l[I5].flattened,u=H$(!0);try{var e=X(),y=UGk(B,e,l);Array.isArray(y)||(l[I5].flattened=[y]);var V=l[I5].flattened;if(q&&(!Array.isArray(q)||q.length!==0)){var p=Array.isArray(q)?q[0]:q,z=p[wx],t=p._disposeEffects;p._disposeEffects=void 0;
p=Array.isArray(V)?V[0]:V;p[wx]=z;p[wx]&&(p[wx].numNodes=p===V?1:V.length);p._disposeEffects=t}l[0]=y;H.isControlFlowComponent&&D1(!1)}catch(W){throw H.isControlFlowComponent&&D1(!0),W;}finally{H$(u),Cf.tearDown()}w&&(w=U,w!=null||(w=_.kdl(document).getAppContext()),w.get($GL).JSC$30119_getEventTarget().dispatchEvent(new Kek(R0W,d,Ut)))},H.debugName);
return l};
UGk=function(X,H,l){for(;typeof H==="function";)H=H();if(H!=null&&H[A1]){var b,U,K;(K=XU.handleError)==null||K.call.apply(K,[XU].concat(_.LJ(iL(Error("pc`"+((b=H.type)==null?void 0:b.TAG_NAME)),(U=H.type)==null?void 0:U.TAG_NAME))))}if(X==null)return H==null?o0():$y(H)?bj(H):rB8(H)?bj(H.toString()):lj(H)?H:H.length===0?o0():CTy(H,l);if(lj(X)){if(H==null)return JBy(X,o0());if($y(H))return wiN(X,H);if(rB8(H))return wiN(X,H.toString());if(lj(H))return JBy(X,H);if(H.length===0)return JBy(X,o0());H=CTy(H,
l);Yey([X],l[I5].flattened);return H}X=hR(X);if(H==null)return LIk(X,o0());if($y(H))return LIk(X,bj(H));if(rB8(H))return LIk(X,bj(H.toString()));if(lj(H))return Yey(X,[H])[0];if(H.length===0)return LIk(X,o0());H=CTy(H,l);Yey(X,l[I5].flattened);return H};
wiN=function(X,H){X.nodeType===Node.TEXT_NODE?X.textContent!==String(H)&&(X.textContent=String(H)):X=JBy(X,bj(H));return X};
hR=function(X,H,l){return dGy(X,H!=null?H:[],l===void 0?!1:l)};
CTy=function(X,H){var l=hR(X,void 0,!0);if(l.length===0)return o0();H[I5].flattened=l;return X};
dGy=function(X,H,l,b,U){H=H===void 0?[]:H;l=l===void 0?!1:l;U=U===void 0?-1:U;if(X==null)return H;if(X instanceof Fi){var K=X.render();return dGy(K,H,l,b,U)}if(lj(H)&&H.nodeType===Node.ELEMENT_NODE)switch(H.tagName){case "SCRIPT":Xiy(H,X);return;case "STYLE":lvy(H,X);return}$y(X)&&(X=bj(X),b&&l&&(b[U]=X));if(cBW(X)){l=jKL(X);l=Array.from(l.childNodes);l=_.C(l);for(K=l.next();!K.done;K=l.next())h0h(H,K.value);return H}rB8(X)&&(X=bj(X.toString()),b&&l&&(b[U]=X));if(lj(X))return h0h(H,X);if(Array.isArray(X)){for(K=
0;K<X.length;K++)dGy(X[K],H,l,X,K);return H}if(typeof X==="function"){K=dx(function(){var d=X();return d!=null&&!$y(d)&&cBW(d)?(d=jKL(d),Array.from(d.childNodes)):d},{debugName:"qmF2ne",
debugFn:X})[0];if(Array.isArray(K)){l=_.C(K);for(K=l.next();!K.done;K=l.next())h0h(H,K.value);return H}b&&l&&(b[U]=K);return h0h(H,K)}if(X!=null&&X[A1]){b=X;U=H$(!0);var w=QKb;try{K=w.apply(null,[b.type,b.props].concat(_.LJ(b.children)))}finally{H$(U)}return dGy(K,H,l)}(w=XU.handleError)==null||w.call.apply(w,[XU].concat(_.LJ(iL(Error("qc")))));return H};
bNl=function(X){var H={};H=Object.assign([],(H[I5]={flattened:[]},H));if(!X)return H;H[0]=CTy(X,H);return H};
h0h=function(X,H){Array.isArray(X)?X.push(H):X.appendChild(H);return X};
B$=function(X){if(!XU.enableLazyTsx)return X;if(Array.isArray(X)){for(var H=0;H<X.length;H++)X[H]=B$(X[H]);return X}return X instanceof Fi?(X=X.render(),B$(X)):X};
BZO=function(X,H){var l,b,U=qLy(X),K=function(V){b=V;V=H$(!0);var p=o5(qk);Uph("render",U);try{l=B$(X(H))}finally{$pb("render",U),o5(p),H$(V)}};
K=XU.enableContextPerComponent?wDW(K,U):GG(K,XU.alwaysTrackContexts||!!Jo);h2m(b);if(!H.renderedFromIdom){var w=L8(b);try{return Feb(X,H,l),l}finally{L8(w)}}!vEO(l)&&Array.isArray(l)&&(l=bNl(l));var d=Orb(l);w=Array.isArray(d)?d[0]:d;var B=!1;if(w){var q,u=(q=H==null?void 0:H.idomKey)!=null?q:X;q=d!==w;w._disposeEffects=K;var e=w[wx]||{},y=vEO(l)?l:e.sourceDynamicRange;Object.assign(e,{key:u,numNodes:q?d.length:1,context:b,higherOrder:!!w[wx],sourceDynamicRange:y});w[wx]=e}else B=!0;(function(){var V=
L8(b);try{Feb(X,H,d)}finally{L8(V)}})();
B&&K();return l};
qcl=function(X){var H={},l;for(l in X)H={prev$jscomp$24:void 0,next$jscomp$34:void 0},H.prev$jscomp$24=st[l],H.next$jscomp$34=X[l],st[l]=function(b){return function(){var U=_.Ab.apply(0,arguments);b.prev$jscomp$24.apply(null,_.LJ(U));b.next$jscomp$34.apply(null,_.LJ(U))}}(H)};
spl=function(){if(Pg())throw Error("rc");return Mk};
M7y=function(X,H){if(!X.__unmounted&&H){X.__unmounted=!0;try{X.didUnmount()}catch(U){var l,b;(b=XU.handleError)==null||b.call.apply(b,[XU].concat(_.LJ(iL(U,(l=X.__type)==null?void 0:l.TAG_NAME))))}st.didUnmount(X);X.el=null;H.__instance&&delete H.__instance}};
e0k=function(X,H,l){X._signalProps!=null&&X._disposeEffects==null&&((l===void 0?0:l)?X._disposeEffects=GG(function(){return void u6m(X,H)},XU.alwaysTrackContexts||!!Jo):u6m(X,H))};
u6m=function(X,H){_.t1(function(){for(var l=X._signalProps,b=X._signalValues,U=0;U<l.length;U++){var K=l[U],w=H[K]();b[U]!==w&&(b[U]=w,a98(X,K,w))}},"e3YVbb")};
y$Z=function(X,H,l){var b,U=[];X._disposeEffects=GG(function(){_.t1(function(){var K=l();if(K===null||K===void 0)K="";if($y(K)||K===null)b!=null||(b=document.createTextNode("")),b.parentNode!==X&&(b._isSignalTextNode=!0,X.insertBefore(b,H)),b.textContent=String(K);else if(cBW(K)){for(var w=U.length>0?U[U.length-1].nextSibling:H,d=_.C(U),B=d.next();!B.done;B=d.next())X.removeChild(B.value);K=jKL(K);U=Array.from(K.childNodes);K=_.C(U);for(d=K.next();!d.done;d=K.next())X.insertBefore(d.value,w)}else throw B=
(d=(w=y3)==null?void 0:w.name)!=null?d:"unknown",Error("gc`"+B+"`"+typeof K);},"VvDgC")},XU.alwaysTrackContexts||!!Jo)};
fvy=function(X,H){var l=_.Ab.apply(2,arguments);H!=null||(H={});return!XU.enableLazyTsx||y3!=null&&!Pg()?V7m(X,H,l):new PTb(X,H,l)};
V7m=function(X,H,l){if(X===_.Xi)return l;if(typeof X==="function")return y3&&!Pg()&&(H.renderedFromIdom=!0),smb(X,function(){l.length>0&&(H.children=l.length===1?l[0]:l);if(X.componentType===V3){var K;wDW(function(){var w=H;if(X.componentType!==V3)K=!1;else{w||(w={});var d=new uj(w,X),B=o5(qk);try{var q=d.render(w)}finally{o5(B)}q instanceof HTMLElement?(q.__instance=d,d.el=q,d.__type=X,X.TAG_NAME=q.tagName.toLowerCase(),st.didPatch(d),K=q):K=q}},X.name);
if(K)return K}return BZO(X,H)},H.debugInstance);
var b=pih(X,H),U;for(U in H)a98(b,U,H[U]);e0k(b,H);hR(l,b);Zrm(b,H,{isReactive:!0});Scy(b,H);return b};
pih=function(X,H){X=(z0W.has(X.toLowerCase())?0:nuL.has(X.startsWith("svg:")?X.replace("svg:",""):X))?document.createElementNS("http://www.w3.org/2000/svg",X.startsWith("svg:")?X.replace("svg:",""):X):kP8(X,H)||document.createElement(X);X[xGZ]=!0;return X};
DGm=function(X){if(X){var H;(H=X._disposeRef)==null||H.call(X);var l;(l=X._disposeEffects)==null||l.call(X);X.__instance&&X.__instance instanceof eJ&&(H=X.__instance,M7y(H,X),H instanceof uj&&H.disposeEffects());for(H=0;H<X.childNodes.length;H++)DGm(X.childNodes[H])}};
WeL=function(X){t7m.push(X)===1&&requestAnimationFrame(function(){setTimeout(function(){var H=[].concat(_.LJ(t7m));t7m=[];H=_.C(H);for(var l=H.next();!l.done;l=H.next()){l=l.value;try{for(var b=0;b<l.length;b++)DGm(l[b])}catch(U){b=l=void 0,(b=(l=XU).handleError)==null||b.call.apply(b,[l].concat(_.LJ(iL(U))))}}})})};
_.F=function(X,H){return QKb.apply(null,[X,H].concat(_.LJ(_.Ab.apply(2,arguments))))};
_.yO=function(X){return X};
_.VO=function(X){return{isDefault:!0,children:X.children}};
_.M=function(X){var H=X.cond;if(H===void 0)return X.else&&X.else();var l=_.uL(function(){return!!H()},void 0,"JHVi8"),b=function(){var K=H();
if(!K){var w;(w=XU.handleError)==null||w.call.apply(w,[XU].concat(_.LJ(iL(Euy.nonNullableCondIsNull()))))}return K},U;
return dx(function(){var K=l(),w;GG(function(){var d=o5(qk);try{w=B$(K?X.then(b):X.else&&X.else())}finally{o5(d)}},!0);
return w},{debugName:(U=X.debugInstance)!=null?U:"RlDudd",
debugFn:X.then,isControlFlowComponent:!0})};
guk=function(X){return _.M(X)};
_.P$=function(X){return X.keyBy==="INDEX"?GPz(X):avh(X)};
ZNl=function(X){X=_.C(X);for(var H=X.next();!H.done;H=X.next()){var l=void 0;(l=H.value)==null||l()}};
avh=function(X){var H=X.keyBy===void 0||X.keyBy==="REFERENCE",l=H?function(e){return e}:X.keyBy,b=[],U=[],K=[],w=[],d=[],B=[],q=!0;
_.E2(function(){ZNl(w)});
var u;return dx(function(){var e=iNb(X),y=e.length;if(y===0){if(b.length===0&&!q)return K;ZNl(w);b=e;U=[];for(e=0;e<b.length;e++)U.push(l(b[e]));K=[];w=[];d=[];B=[];X.fallback&&(w[0]=vuz(function(){K[0]=B$(X.fallback())}));
q=!1;return K}for(var V=new ONl,p=b.length-1;p>=0;p--)V.push(U[p],p);p=Array(y);for(var z=Array(y),t=Array(y),W=Array(y),G=Array(H?0:y),r={i$jscomp$453:0};r.i$jscomp$453<y;r={i$jscomp$453:r.i$jscomp$453,item$jscomp$104:void 0,key$jscomp$565:void 0},r.i$jscomp$453++){r.item$jscomp$104=e[r.i$jscomp$453];r.key$jscomp$565=l(r.item$jscomp$104);var Q=V.pop(r.key$jscomp$565);Q!=null?(t[r.i$jscomp$453]=K[Q],z[r.i$jscomp$453]=U[Q],p[r.i$jscomp$453]=w[Q],W[r.i$jscomp$453]=d[Q],H||(G[r.i$jscomp$453]=B[Q]),eI(function(v){return function(){W[v.i$jscomp$453](v.i$jscomp$453);
if(!H)G[v.i$jscomp$453](v.item$jscomp$104)}}(r)),delete w[Q]):p[r.i$jscomp$453]=vuz(function(v){return function(){var J=_.C(_.FU(v.i$jscomp$453,void 0,"Fqk1zd")),Y=J.next().value;
J=J.next().value;W[v.i$jscomp$453]=J;z[v.i$jscomp$453]=v.key$jscomp$565;if(H)t[v.i$jscomp$453]=B$(X.children(v.item$jscomp$104,Y));else{var Uy=_.C(_.FU(v.item$jscomp$104,void 0,"GBj5de"));J=Uy.next().value;Uy=Uy.next().value;G[v.i$jscomp$453]=Uy;t[v.i$jscomp$453]=B$(X.children(J,Y))}}}(r))}ZNl(w);
b=e;U=z;K=t;w=p;d=W;B=G;q=!1;return t},{debugName:(u=X.debugInstance)!=null?u:"nsTGHd",
debugFn:X.each,isControlFlowComponent:!0})};
GPz=function(X){var H=[],l=[],b=[],U=[],K=!1;_.E2(function(){ZNl(U)});
var w;return dx(function(){var d=iNb(X);K&&d.length>0&&(U.pop()(),H.pop(),K=!1);for(var B=Array(d.length),q={i$jscomp$454:0};q.i$jscomp$454<d.length;q={i$jscomp$454:q.i$jscomp$454},q.i$jscomp$454++)if(q.i$jscomp$454<H.length)H[q.i$jscomp$454]!==d[q.i$jscomp$454]&&(eI(function(e){return function(){return void l[e.i$jscomp$454](d[e.i$jscomp$454])}}(q)),H[q.i$jscomp$454]=d[q.i$jscomp$454]),B[q.i$jscomp$454]=b[q.i$jscomp$454];
else{var u=vuz(function(e){return function(){H[e.i$jscomp$454]=d[e.i$jscomp$454];var y=_.C(_.FU(d[e.i$jscomp$454],void 0,"JMMLmd")),V=y.next().value;y=y.next().value;l[e.i$jscomp$454]=y;B[e.i$jscomp$454]=B$(X.children(V,e.i$jscomp$454))}}(q));
U[q.i$jscomp$454]=u}for(;H.length>d.length;)H.pop(),U.pop()(),l.pop();d.length===0&&!K&&X.fallback&&(q=vuz(function(){B[0]=B$(X.fallback())}),U[0]=q,K=!0);
return b=B},{debugName:(w=X.debugInstance)!=null?w:"nsTGHd",
isControlFlowComponent:!0})};
iNb=function(X){X=X.each();return Array.isArray(X)?X:Array.from(X)};
vuz=function(X){var H=Jo;return GG(function(l){var b=o5(qk);try{l.parent=H,X(l)}finally{o5(b)}},!1)};
_.ff=function(X){var H=mGh(X),l=_.uL(function(){return Qpl(H)},void 0,"F1PF4"),b;
return dx(function(){var U=l(),K;GG(function(){var w=o5(qk);try{K=B$(U())}finally{o5(w)}});
return K},{debugName:(b=X.debugInstance)!=null?b:"vI1rtf",
isControlFlowComponent:!0})};
mGh=function(X){X=X.children;return Array.isArray(X)?X:[X]};
TZZ=function(X){var H=X.props;X=X.getChildren()[0];return H.when?{when:H.when,children:X}:{isDefault:!0,children:X}};
Qpl=function(X){var H=function(){return null};
X=_.C(X);for(var l=X.next();!l.done;l=X.next())if(l=l.value,l!=null&&l[A1]&&(l=l.type===_.VO?{isDefault:!0,children:l.children[0]}:{when:l.props.when,children:l.children[0]}),l instanceof Fi&&(l=TZZ(l)),l.isDefault)H=l.children;else if(l.when())return l.children;return H};
NZy=function(X){var H=null,l,b={get value(){var K,w;(w=(K=U).validateGetValue)==null||w.call(K);return U.__value},set value(K){var w,d;(d=(w=U).validateSetValue)==null||d.call(w,K);U.__value=K;U.__hasBeenSet=!0}},U=(b.__value=null,b.__hasBeenSet=!1,b.__hasErrored=!1,b.onRender=function(K){if(l&&K!==l){l._disposeRef=void 0;var w;(w=H)==null||w()}l=K;H=X(K)||null},b.onUnmount=function(){var K;
(K=H)==null||K();H=U.value=null},b[ZU8]=!0,b);
return U};
pf=function(X){return typeof X==="symbol"};
jpy=function(X){var H=spl();if(H==null)throw c$y.PRIMITIVE_INVALID_HOOK_CALL();var l=H.hookCounter++;H.hooks||(H.hooks=[]);var b=H.hooks;b[l]||(b[l]={key:X,host:H});if(X!==b[l].key){if(H.__type){var U;X=(U=H.__type)==null?void 0:U.name}else X=H instanceof uj?qLy(H.functionComponent):"<"+H.el.tagName.toLowerCase()+">";throw c$y.OUT_OF_ORDER_HOOK_CALL(X);}return b[l]};
r$b=function(X,H){return!X||X.length!==(H==null?void 0:H.length)||X.some(function(l,b){return l!==H[b]})};
J$l=function(X,H){if(Pg())return X();var l=jpy("useMemoInternal");r$b(l.deps,H)&&(l.deps=H,l.value=X());return l.value};
Lel=function(X,H){return J$l(X,H)};
_.SJ=function(X,H){return YcL(X,!1,H)};
_.z7=function(X,H){return YcL(X,!0,H)};
YcL=function(X,H,l){return Pg()?IvO(X,H,l):A$W(X,H,l)};
A$W=function(X,H,l){return J$l(function(){return IvO(X,H,l)},[])};
IvO=function(X,H,l){var b=NZy(function(U){b.value=U;var K=function(){var w=o5(null);try{return l==null?void 0:l(U)}finally{o5(w)}}();
return function(){K==null||K()}});
b.__expectedTagName=X;b.__optional=H;b.isIdom=!Pg();return b};
XKN=function(X,H){var l;H=GG(function(){var b=H$(!0);zG++;try{l=hR(X()),D1(!1)}catch(U){throw D1(!0),U;}finally{H$(b)}},H===void 0?!1:H);
return[l,H]};
_.ky=function(X,H,l){l!=null||(l={});l=l.appContext;var b=!!XU.legacyTriggerSoyRendererEvents;Cf.setUp();try{var U=HAy(X,H,l);b&&(H=l,H!=null||(H=_.kdl(document).getAppContext()),H.get($GL).JSC$30119_getEventTarget().dispatchEvent(new Kek(lih,X,Ut)));Cf.log(X);return U}finally{Cf.tearDown()}};
HAy=function(X,H,l){var b=pW(function(){var U=o5(qk);try{return GG(function(){var K=_.kdl(_.uB(X)),w;var d=JVy({rootElement:{value:X},appContext:l||(K==null?void 0:(w=K.getOptionalAppContext)==null?void 0:w.call(K)),dispatcher:K});K=L8(d);d=H$(!0);zG++;try{hR(H(),X),D1(!1)}catch(B){throw D1(!0),B;}finally{H$(d),L8(K)}},!1)}catch(K){throw XU.enableContextBasedComponentStacks&&fW(K),K;
}finally{o5(U)}});
X[oB8]=!0;return function(){X.textContent="";b();X[oB8]=!1}};
_.xy=function(X){if(Zib(lL)){var H;(H=XU.handleError)==null||H.call.apply(H,[XU].concat(_.LJ(iL(Error("fc")))))}var l=Jo,b=y3;z3y({onInitType:pjh,run:function(){if(l&&!l.isDisposed){var U=L8(l);try{pW(function(){return void X()},b)}catch(K){throw XU.enableContextBasedComponentStacks&&fW(K),K;
}finally{L8(U)}}}})};
$Jy=function(X){var H=tsz(2),l=new Set;_.E2(function(){return void l.forEach(function(b){return void b()})});
return function(b){var U=L8(H);try{var K=bAk(UJW(X),b);l.add(K);return function(){K();l.delete(K)}}finally{L8(U)}}};
_.KSL=function(X){var H=X.children;var l=X.root;_.xy(function(){var b=$Jy(l)(H);_.E2(b)});
return document.createTextNode("")};
bAk=function(X,H){var l=R4W(X);(X=iUy())&&S4k(l,X);Cf.setUp();H=_.C(XKN(H,!0));X=H.next().value;var b=H.next().value;H=_.C(X);for(X=H.next();!X.done;X=H.next())l.appendChild(X.value);Cf.log(l);Cf.tearDown();return function(){b();l.remove()}};
UJW=function(X){if(typeof X==="string")return X=document.querySelector(X),_.RCl(X),X;if(lj(X)&&X.nodeType===Node.ELEMENT_NODE)return X;if(!X.__value&&!X.__optional){var H=c$y.USE_ELEMENT_NOT_ASSIGNED(X.__expectedTagName);X.__hasErrored=!0;throw H;}return X.value};
R4W=function(X){var H=document.createElementNS(X.namespaceURI,X.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");return X.appendChild(H)};
CHO=function(X,H){var l=jpy("onChange"),b=spl();r$b(l.deps,H)&&(l.deps=H,l.pendingEffect=X,b.__syncEffects||(b.__syncEffects=[]),b.__syncEffects.push(l))};
wKZ=function(X,H){CHO(function(){return _.h1(X)},H)};
_.DR=function(X){Pg()?_.xy(function(){_.h1(X)}):CHO(function(){return _.h1(X)},[])};
h4Z=function(X){var H=[].concat(_.LJ(X));X.length=0;X=_.C(H);for(H=X.next();!H.done;H=X.next()){H=H.value;dJl(H);var l=H.pendingEffect;H.pendingEffect=null;if(l=l==null?void 0:l())H.pendingCleanup=l}};
dJl=function(X){var H=X.pendingCleanup;X.pendingCleanup=null;H==null||H()};
FSN=function(X){return J$l(function(){return{value:X}},[])};
_.tR=function(X,H){if(!X)return null;X=Object.keys(X);X=_.C(X);for(var l=X.next();!l.done;l=X.next()){l=l.value;var b=l.toLowerCase();if(b.indexOf(H,b.length-H.length)>-1)return l}return null};
_.Et=function(){var X=arguments,H=_.W$;X.length>1?H[X[0]]=X[1]:X.length===1&&Object.assign(H,X[0])};
_.gx=function(X,H){return X in _.W$?_.W$[X]:H};
_.G7=function(X,H){return!!_.gx(X,H)};
BcL=function(X){var H=_.W$.EXPERIMENT_FLAGS;return H?H[X]:void 0};
sOz=function(X){qfm.forEach(function(H){return H(X)})};
_.ZR=function(X){return X&&window.yterr?function(){try{return X.apply(this,arguments)}catch(H){_.a0(H)}}:X};
_.a0=function(X){var H=_.ij("yt.logging.errors.log");H?H(X,"ERROR",void 0,void 0,void 0,void 0,void 0):(H=_.gx("ERRORS",[]),H.push([X,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Et("ERRORS",H));sOz(X)};
_.v$=function(X,H,l,b,U){var K=_.ij("yt.logging.errors.log");K?K(X,"WARNING",H,l,b,void 0,U):(K=_.gx("ERRORS",[]),K.push([X,"WARNING",H,l,b,void 0,U]),_.Et("ERRORS",K))};
uSy=function(X,H){H=X.split(H);for(var l={},b=0,U=H.length;b<U;b++){var K=H[b].split("=");if(K.length===1&&K[0]||K.length===2)try{var w=MFb(K[0]||""),d=MFb(K[1]||"");if(w in l){var B=l[w];Array.isArray(B)?_.jl(B,d):l[w]=[B,d]}else l[w]=d}catch(y){var q=y,u=K[0],e=String(uSy);q.args=[{key:u,value:K[1],query:X,method:e4y===e?"unchanged":e}];yYL.hasOwnProperty(u)||_.v$(q)}}return l};
VFm=function(X){var H=[];_.Bb.forEach(X,function(l,b){var U=_.YY(b);l=Array.isArray(l)?l:[l];_.Ot(l,function(K){K==""?H.push(U):H.push(U+"="+_.YY(K))})});
return H.join("&")};
_.mu=function(X){X.charAt(0)==="?"&&(X=X.substring(1));return uSy(X,"&")};
_.QO=function(X){return X.indexOf("?")!==-1?(X=(X||"").split("#")[0],X=X.split("?",2),_.mu(X.length>1?X[1]:X[0])):{}};
_.T7=function(X,H){return PHZ(X,H||{},!0)};
fib=function(X,H){return PHZ(X,H||{},!1)};
PHZ=function(X,H,l){var b=X.split("#",2);X=b[0];b=b.length>1?"#"+b[1]:"";var U=X.split("?",2);X=U[0];U=_.mu(U[1]||"");for(var K in H)if(l||!_.Bb.containsKey(U,K))U[K]=H[K];return _.An(X,U)+b};
Nk=function(X){if(!H)var H=window.location.href;var l=_.Qh(X)[1]||null,b=_.Nb(X);return l&&b?Jn(X,H):b?_.Nb(H)===b&&(Number(_.Qh(H)[4]||null)||null)===(Number(_.Qh(X)[4]||null)||null):!0};
_.SfZ=function(X){X=pK8(X);return X===null?!1:X[0]==="com"&&X[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
pK8=function(X){X=_.Nb(X);return X!==null?X.split(".").reverse():null};
MFb=function(X){return X&&X.match(z4y)?X:L$(X)};
_.c$=function(X){return new nBk(X)};
_.jJ=function(){kub||(kub=new xJK);return kub};
tFb=function(){var X=DJy;return function(){var H=_.jJ();if(!H.resolve(_.c$(X))){var l={};H.addProvider((l.provide=X,l.useClass=X,l[rx]=void 0,l))}return H.resolve(X)}};
_.JR=function(X,H){var l,b;_.h(function(U){l=_.jJ();return(b=l.resolve(_.c$(X)))?(H(b),U.return(Promise.resolve(b))):U.return(l.resolve(new WSk(X)).then(function(K){H(K);return K}))})};
_.P=function(X){X=Lf(X);return typeof X==="string"&&X==="false"?!1:!!X};
_.Yy=function(X,H){X=Lf(X);return X===void 0&&H!==void 0?H:Number(X||0)};
EBk=function(X){X=Lf(X);return Array.isArray(X)?_.qz(X,function(H){return Number(H||0)}):[Number(X||0)]};
_.I0=function(X){X=Lf(X);return X!==void 0?String(X):""};
_.l0=function(X){X=Lf(X);return Array.isArray(X)?_.qz(X,function(H){return String(H||"")}):[String(X||"")]};
gB8=function(){return _.gx("EXPERIMENTS_TOKEN","")};
Lf=function(X){return _.gx("EXPERIMENT_FLAGS",{})[X]};
Guh=function(){for(var X=[],H=_.gx("EXPERIMENTS_FORCED_FLAGS",{}),l=_.C(Object.keys(H)),b=l.next();!b.done;b=l.next())b=b.value,X.push({key:b,value:String(H[b])});l=_.gx("EXPERIMENT_FLAGS",{});b=_.C(Object.keys(l));for(var U=b.next();!U.done;U=b.next())U=U.value,U.startsWith("force_")&&H[U]===void 0&&X.push({key:U,value:String(l[U])});return X};
ZAO=function(){if(!aiz)return null;var X=aiz();return"open"in X?X:null};
_.iAy=function(X){switch(_.oF(X)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.oF=function(X){return X&&"status"in X?X.status:-1};
_.b0=function(X,H){typeof X==="function"&&(X=_.ZR(X));return window.setTimeout(X,H)};
_.UZ=function(X,H){typeof X==="function"&&(X=_.ZR(X));return window.setInterval(X,H)};
_.$r=function(X){window.clearTimeout(X)};
OAZ=function(X){X=_.QO(X);for(var H=_.C(vBN),l=H.next();!l.done;l=H.next())if(X[l.value]!==void 0)return!0;return!1};
Tcy=function(X,H,l,b,U,K,w,d,B){l=l===void 0?"GET":l;b=b===void 0?"":b;d=d===void 0?!1:d;var q=ZAO();if(!q)return null;var u=function(){(q&&"readyState"in q?q.readyState:0)===4&&H&&_.ZR(H)(q)};
"onloadend"in q?q.addEventListener("loadend",u,!1):q.onreadystatechange=u;_.P("debug_forward_web_query_parameters")&&(X=mJK(X,window.location.search));q.open(l,X,!0);K&&(q.responseType=K);w&&(q.withCredentials=!0);l=l==="POST"&&(window.FormData===void 0||!(b instanceof FormData));if(U=QOb(X,U))for(var e in U)q.setRequestHeader(e,U[e]),"content-type"===e.toLowerCase()&&(l=!1);l&&q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");B&&"onprogress"in q&&(q.onprogress=function(){B(q.responseText)});
if(d&&"setAttributionReporting"in XMLHttpRequest.prototype){X={eventSourceEligible:!0,triggerEligible:!1};try{q.setAttributionReporting(X)}catch(y){_.v$(y)}}q.send(b);return q};
QOb=function(X,H){H=H===void 0?{}:H;var l=Nk(X),b=_.gx("INNERTUBE_CLIENT_NAME"),U=_.P("web_ajax_ignore_global_headers_if_set"),K;for(K in Ncz){var w=_.gx(Ncz[K]),d=K==="X-Goog-AuthUser"||K==="X-Goog-PageId";K!=="X-Goog-Visitor-Id"||w||(w=_.gx("VISITOR_DATA"));var B;if(!(B=!w)){if(!(B=l||(_.Nb(X)?!1:!0))){B=X;var q;if(q=_.P("add_auth_headers_to_remarketing_google_dot_com_ping")&&K==="Authorization"&&(b==="TVHTML5"||b==="TVHTML5_UNPLUGGED"||b==="TVHTML5_SIMPLY"))q=pK8(B),q=q===null?!1:q[1]==="google"?
!0:q[2]==="google"?q[0]==="au"&&q[1]==="com"?!0:q[0]==="uk"&&q[1]==="co"?!0:!1:!1;q&&(B=_.c1(B)||"",B=B.split("/"),B="/"+(B.length>1?B[1]:""),q=B==="/pagead");B=q?!0:!1}B=!B}B||U&&H[K]!==void 0||b==="TVHTML5_UNPLUGGED"&&d||(H[K]=w)}"X-Goog-EOM-Visitor-Id"in H&&"X-Goog-Visitor-Id"in H&&delete H["X-Goog-Visitor-Id"];if(l||!_.Nb(X))H["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(l||!_.Nb(X)){try{var u=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(e){}u&&(H["X-YouTube-Time-Zone"]=
u)}document.location.hostname.endsWith("youtubeeducation.com")||!l&&_.Nb(X)||(H["X-YouTube-Ad-Signals"]=VFm(cYW()));return H};
_.jOy=function(X,H){var l=_.Nb(X);_.P("debug_handle_relative_url_for_query_forward_killswitch")||!l&&Nk(X)&&(l=document.location.hostname);var b=_.c1(X);b=(l=l&&(l.endsWith("youtube.com")||l.endsWith("youtube-nocookie.com")))&&b&&b.startsWith("/api/");if(!l||b)return X;var U=_.mu(H),K={};_.Ot(vBN,function(w){U[w]&&(K[w]=U[w])});
return fib(X,K)};
rY8=function(X,H){H.method="POST";H.postParams||(H.postParams={});return _.Kt(X,H)};
JYK=function(X,H){var l=_.gx("XSRF_FIELD_NAME"),b;H.headers&&(b=H.headers["Content-Type"]);return!H.excludeXsrf&&(!_.Nb(X)||H.withCredentials||_.Nb(X)===document.location.hostname)&&H.method==="POST"&&(!b||b==="application/x-www-form-urlencoded")&&!(H.postParams&&H.postParams[l])};
_.Kt=function(X,H){var l=H.format||"JSON";X=LSL(X,H);var b=Yfy(X,H),U=!1,K=IiK(X,function(B){if(!U){U=!0;d&&_.$r(d);var q=_.iAy(B),u=null,e=400<=B.status&&B.status<500,y=500<=B.status&&B.status<600;if(q||e||y)u=AYb(X,l,B,H.convertToSafeHtml);q&&(q=XFy(l,B,u));u=u||{};e=H.context||_.ok;q?H.onSuccess&&H.onSuccess.call(e,B,u):H.onError&&H.onError.call(e,B,u);H.onFinish&&H.onFinish.call(e,B,u)}},H.method,b,H.headers,H.responseType,H.withCredentials,!1,H.onProgress);
b=H.timeout||0;if(H.onTimeout&&b>0){var w=H.onTimeout;var d=_.b0(function(){U||(U=!0,K.abort(),_.$r(d),w.call(H.context||_.ok,K))},b)}return K};
LSL=function(X,H){H.includeDomain&&(X=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+X);var l=_.gx("XSRF_FIELD_NAME");if(H=H.urlParams)H[l]&&delete H[l],X=_.T7(X,H);return X};
Yfy=function(X,H){var l=_.gx("XSRF_FIELD_NAME"),b=_.gx("XSRF_TOKEN"),U=H.postBody||"",K=H.postParams;JYK(X,H)&&(K||(K={}),K[l]=b);(_.P("ajax_parse_query_data_only_when_filled")&&K&&Object.keys(K).length>0||K)&&typeof U==="string"&&(U=_.mu(U),_.Bb.extend(U,K),U=H.postBodyFormat&&H.postBodyFormat==="JSON"?JSON.stringify(U):_.Io(U));K=U||K&&!_.Bb.isEmpty(K);!HTh&&K&&H.method!=="POST"&&(HTh=!0,_.a0(Error("Lc")));return U};
AYb=function(X,H,l,b){var U=null;switch(H){case "JSON":try{var K=l.responseText}catch(w){throw b=Error("Mc"),b.params=X,_.v$(b),w;}X=l.getResponseHeader("Content-Type")||"";K&&X.indexOf("json")>=0&&(K.substring(0,5)===")]}'\n"&&(K=K.substring(5)),U=JSON.parse(K));break;case "XML":if(X=(X=l.responseXML)?l8y(X):null)U={},_.Ot(X.getElementsByTagName("*"),function(w){U[w.tagName]=oMO(w)})}b&&bTy(U);
return U};
bTy=function(X){if(_.r8(X))for(var H in X)H==="html_content"||Rk(H,"_html")?X[H]=bQ(X[H]):bTy(X[H])};
XFy=function(X,H,l){if(H&&H.status===204)return!0;switch(X){case "JSON":return!!l;case "XML":return Number(l&&l.return_code)===0;case "RAW":return!0;default:return!!l}};
l8y=function(X){return X?(X=("responseXML"in X?X.responseXML:X).getElementsByTagName("root"))&&X.length>0?X[0]:null:null};
oMO=function(X){var H="";_.Ot(X.childNodes,function(l){H+=l.nodeValue});
return H};
UoW=function(X){if(X.name==="JavaException")return!0;X=X.stack;return X.includes("chrome://")||X.includes("-extension://")||X.includes("webkit-masked-url://")};
$oy=function(X){if(!X.stack)return!0;var H=!X.stack.includes("\n");return H&&X.stack.includes("ErrorType: ")||H&&X.stack.includes("Anonymous function (Unknown script")||X.stack.toLowerCase()==="not available"||X.fileName==="user-script"||X.fileName.startsWith("user-script:")?!0:!1};
_.RF=function(X){_.$e.call(this);this.JSC$10837_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!X};
RPy=function(X,H){var l=X.length,b=0,U=function(){return X.charCodeAt(b++)};
do{var K=K1l(U);if(K===Infinity)break;var w=K>>3;switch(K&7){case 0:K=K1l(U);if(w===H)return K;break;case 1:if(w===H)return;b+=8;break;case 2:K=K1l(U);if(w===H)return X.substr(b,K);b+=K;break;case 5:if(w===H)return;b+=4;break;default:return}}while(b<l)};
K1l=function(X){var H=X(),l=H&127;if(H<128)return l;H=X();l|=(H&127)<<7;if(H<128)return l;H=X();l|=(H&127)<<14;if(H<128)return l;H=X();return H<128?l|(H&127)<<21:Infinity};
wFh=function(X,H,l,b){if(X)if(Array.isArray(X)){var U=b;for(b=0;b<X.length&&!(X[b]&&(U+=C58(b,X[b],H,l),U>500));b++);b=U}else if(typeof X==="object")for(U in X){if(X[U]){var K=U;var w=X[U],d=H,B=l;K=typeof w!=="string"||K!=="clickTrackingParams"&&K!=="trackingParams"?0:(w=RPy(atob(w.replace(/-/g,"+").replace(/_/g,"/")),2))?C58(K+".ve",w,d,B):0;b+=K;b+=C58(U,X[U],H,l);if(b>500)break}}else l[H]=Ct(X),b+=l[H].length;else l[H]=Ct(X),b+=l[H].length;return b};
C58=function(X,H,l,b){l+="."+X;X=Ct(H);b[l]=X;return l.length+X.length};
Ct=function(X){try{return(typeof X==="string"?X:String(JSON.stringify(X))).substr(0,500)}catch(H){return"unable to serialize "+typeof X+" ("+H.message+")"}};
doK=function(X){switch(X){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}};
_.dL=function(X,H,l,b,U){_.wL.set(X,H,{maxAge:l,path:"/",domain:b===void 0?"youtube.com":b,secure:U===void 0?!1:U})};
_.hPZ=function(X,H,l){_.wL.remove(X,H===void 0?"/":H,l===void 0?"youtube.com":l)};
_.hl=function(){if(_.P("embeds_web_enable_cookie_detection_fix")){if(!_.ok.navigator.cookieEnabled)return!1}else if(!_.wL.isEnabled())return!1;if(!_.wL.isEmpty())return!0;_.P("embeds_web_enable_cookie_detection_fix")?_.wL.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.wL.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.wL.get("TESTCOOKIESENABLED")!=="1")return!1;_.wL.remove("TESTCOOKIESENABLED");return!0};
F1y=function(){var X=_.ok.navigator;return X?X.connection:void 0};
BRW=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(X){}};
_.sHO=function(){var X=F1y();if(X){var H=q9L[X.type||"unknown"]||"CONN_UNKNOWN";X=q9L[X.effectiveType||"unknown"]||"CONN_UNKNOWN";H==="CONN_CELLULAR_UNKNOWN"&&X!=="CONN_UNKNOWN"&&(H=X);if(H!=="CONN_UNKNOWN")return H;if(X!=="CONN_UNKNOWN")return X}};
uek=function(){var X=F1y();if(X!=null&&X.effectiveType)return M0L.hasOwnProperty(X.effectiveType)?M0L[X.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.BQ=function(){try{return _.FB(),!0}catch(X){return!1}};
_.FB=function(X){if(_.gx("DATASYNC_ID")!==void 0)return _.gx("DATASYNC_ID");throw new _.qd("Datasync ID not set",X===void 0?"unknown":X);};
_.sZ=function(X){this.mechanism=X};
Md=function(X){this.mechanism=X};
u0=function(X){this.mechanism=X};
ev=function(X){this.storage_=X;this.cachedIsStorageAvailable_=null};
ePW=function(){var X=null;try{X=_.ok.localStorage||null}catch(H){}ev.call(this,X)};
y0O=function(){var X=null;try{X=_.ok.sessionStorage||null}catch(H){}ev.call(this,X)};
yl=function(X,H){this.mechanism_=X;this.JSC$10940_prefix_=H+"::"};
_.Vl=function(X){var H=new ePW;return H.isAvailable()?X?new yl(H,X):H:null};
_.V0l=function(X){var H=new y0O;return H.isAvailable()?X?new yl(H,X):H:null};
f8k=function(){var X;return(X=P5b())==null?void 0:X.get("LAST_RESULT_ENTRY_KEY",!0)};
_.pt=function(X){pFy||(_.PQ?_.PQ.logError(X):(_.ft.push({type:"ERROR",payload:X}),_.ft.length>10&&_.ft.shift()))};
Sv=function(X,H){pFy||(_.PQ?_.PQ.logEvent(X,H):(_.ft.push({type:"EVENT",eventType:X,payload:H}),_.ft.length>10&&_.ft.shift()))};
zT=function(X){if(X.indexOf(":")>=0)throw Error("Tc");};
nt=function(X){return X.substr(0,X.indexOf(":"))||X};
nMy=function(){return(S9K||zPl)&&kr("applewebkit")&&!kr("version")&&(!kr("safari")||kr("gsa/"))};
kr=function(X){var H=_.yZ();return H?H.toLowerCase().indexOf(X)>=0:!1};
DoN=function(X,H,l,b){H=nt(H);var U=X instanceof Error?X:Error("Uc`"+X);if(U instanceof xr)return U;X={objectStoreNames:l,dbName:H,dbVersion:b};if(U.name==="QuotaExceededError")return new xr("QUOTA_EXCEEDED",X);if(_.Dt&&U.name==="UnknownError")return new xr("QUOTA_MAYBE_EXCEEDED",X);if(U instanceof kcO)return new xr("MISSING_INDEX",Object.assign({},X,{objectStore:U.objectStore,index:U.index}));if(U.name==="InvalidStateError"&&xom.some(function(K){return U.message.includes(K)}))return new xr("EXECUTE_TRANSACTION_ON_CLOSED_DB",
X);
if(U.name==="AbortError")return new xr("UNKNOWN_ABORT",X,U.message);U.args=[Object.assign({},X,{name:"IdbError",originalName:U.name})];U.level="WARNING";return U};
tl=function(X,H,l){var b=f8k();return new xr("IDB_NOT_SUPPORTED",{context:{caller:X,publicName:H,version:l,hasSucceededOnce:b==null?void 0:b.hasSucceededOnce}})};
t0m=function(X){if(!X)throw Error();throw X;};
W1y=function(X){return X};
EMz=function(X,H,l){var b=function(){try{X.removeEventListener("success",U),X.removeEventListener("error",K)}catch(w){}},U=function(){H(X.result);
b()},K=function(){l(X.error);
b()};
X.addEventListener("success",U);X.addEventListener("error",K)};
gMb=function(X){return new Promise(function(H,l){EMz(X,H,l)})};
gL=function(X){return new WQ(new EZ(function(H,l){EMz(X,H,l)}))};
Gck=function(X,H){return new WQ(new EZ(function(l,b){var U=function(){var K=X?H(X):null;K?K.then(function(w){X=w;U()},b):l()};
U()}))};
a8N=function(X,H,l){return new Promise(function(b,U){var K=H!==void 0?self.indexedDB.open(X,H):self.indexedDB.open(X);var w=l.blocked,d=l.blocking,B=l.terminated,q=l.upgrade,u=l.closed,e,y=function(){e||(e=new GT(K.result,{closed:u}));return e};
K.addEventListener("upgradeneeded",function(V){try{if(V.newVersion===null)throw Error("Zc");if(K.transaction===null)throw Error("$c");V.dataLoss&&V.dataLoss!=="none"&&Sv("IDB_DATA_CORRUPTED",{reason:V.dataLossMessage||"unknown reason",dbName:nt(X)});var p=y(),z=new aF(K.transaction);q&&q(p,function(t){return V.oldVersion<t&&V.newVersion>=t},z);
z.done.catch(function(t){U(t)})}catch(t){U(t)}});
K.addEventListener("success",function(){var V=K.result;d&&V.addEventListener("versionchange",function(){d(y())});
V.addEventListener("close",function(){Sv("IDB_UNEXPECTEDLY_CLOSED",{dbName:nt(X),dbVersion:V.version});B&&B()});
b(y())});
K.addEventListener("error",function(){U(K.error)});
w&&K.addEventListener("blocked",function(){w()})})};
ZTl=function(X,H,l){l=l===void 0?{}:l;return a8N(X,H,l)};
_.i0=function(X,H){H=H===void 0?{}:H;var l,b,U,K;return _.h(function(w){if(w.nextAddress==1)return _.Ew(w,2),l=self.indexedDB.deleteDatabase(X),b=H,(U=b.blocked)&&l.addEventListener("blocked",function(){U()}),w.yield(gMb(l),4);
if(w.nextAddress!=2)return _.Zt(w,0);K=_.Ow(w);throw DoN(K,X,"",-1);})};
vMm=function(X,H){var l;return _.h(function(b){if(b.nextAddress==1)return b.yield(_.vQ(iTb,H),2);l=b.yieldResult;return b.return(_.OZ(l,["databases"],{enableRetries:!0,mode:"readwrite"},function(U){var K=U.objectStore("databases");return K.get(X.actualName).then(function(w){if(w?X.actualName!==w.actualName||X.publicName!==w.publicName||X.userIdentifier!==w.userIdentifier:1)return K.put(X).then(function(){})})}))})};
_.mP=function(X,H){var l;return _.h(function(b){if(b.nextAddress==1)return X?b.yield(_.vQ(iTb,H),2):b.return();l=b.yieldResult;return b.return(l.delete("databases",X))})};
_.OTK=function(X,H){var l,b;return _.h(function(U){return U.nextAddress==1?(l=[],U.yield(_.vQ(iTb,H),2)):U.nextAddress!=3?(b=U.yieldResult,U.yield(_.OZ(b,["databases"],{enableRetries:!0,mode:"readonly"},function(K){l.length=0;return Ql(K.objectStore("databases"),{},function(w){X(w.getValue())&&l.push(w.getValue());return w.continue()})}),3)):U.return(l)})};
mok=function(X,H){return _.OTK(function(l){return l.publicName===X&&l.userIdentifier!==void 0},H)};
NRL=function(){var X,H,l,b;return _.h(function(U){switch(U.nextAddress){case 1:X=f8k();if((H=X)==null?0:H.hasSucceededOnce)return U.return(!0);var K;if(K=QHO)K=/WebKit\/([0-9]+)/.exec(_.yZ()),K=!!(K&&parseInt(K[1],10)>=600);K&&(K=/WebKit\/([0-9]+)/.exec(_.yZ()),K=!(K&&parseInt(K[1],10)>=602));if(K||TT)return U.return(!1);try{if(l=self,!(l.indexedDB&&l.IDBIndex&&l.IDBKeyRange&&l.IDBObjectStore))return U.return(!1)}catch(w){return U.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return U.return(!1);
_.Ew(U,2);b={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return U.yield(vMm(b,TRy),4);case 4:return U.yield(_.mP("yt-idb-test-do-not-use",TRy),5);case 5:return U.return(!0);case 2:return _.Ow(U),U.return(!1)}})};
jHy=function(){if(c0K!==void 0)return c0K;pFy=!0;return c0K=NRL().then(function(X){pFy=!1;var H;if((H=P5b())!=null&&H.hasLocalStorage()){var l;H={hasSucceededOnce:((l=f8k())==null?void 0:l.hasSucceededOnce)||X};var b;(b=P5b())==null||b.set("LAST_RESULT_ENTRY_KEY",H,2592E3,!0)}return X})};
Nd=function(){return _.ij("ytglobal.idbToken_")||void 0};
_.jv=function(){var X=Nd();return X?Promise.resolve(X):jHy().then(function(H){(H=H?TRy:void 0)&&_.cQ("ytglobal.idbToken_",H);return H})};
r0N=function(X){if(!_.BQ())throw X=new xr("AUTH_INVALID",{dbName:X}),_.pt(X),X;var H=_.FB();return{actualName:X+":"+H,publicName:X,userIdentifier:H}};
J0k=function(X,H,l,b){var U,K,w,d,B,q;return _.h(function(u){switch(u.nextAddress){case 1:return K=(U=Error().stack)!=null?U:"",u.yield(_.jv(),2);case 2:w=u.yieldResult;if(!w)throw d=tl("openDbImpl",X,H),_.P("ytidb_async_stack_killswitch")||(d.stack=d.stack+"\n"+K.substring(K.indexOf("\n")+1)),_.pt(d),d;zT(X);B=l?{actualName:X,publicName:X,userIdentifier:void 0}:r0N(X);_.Ew(u,3);return u.yield(vMm(B,w),5);case 5:return u.yield(ZTl(B.actualName,H,b),6);case 6:return u.return(u.yieldResult);case 3:return q=
_.Ow(u),_.Ew(u,7),u.yield(_.mP(B.actualName,w),9);case 9:_.Zt(u,8);break;case 7:_.Ow(u);case 8:throw q;}})};
L1K=function(X,H,l){l=l===void 0?{}:l;return J0k(X,H,!1,l)};
Y9m=function(X,H,l){l=l===void 0?{}:l;return J0k(X,H,!0,l)};
I8Z=function(X,H){H=H===void 0?{}:H;var l,b;return _.h(function(U){if(U.nextAddress==1)return U.yield(_.jv(),2);if(U.nextAddress!=3){l=U.yieldResult;if(!l)return U.return();zT(X);b=r0N(X);return U.yield(_.i0(b.actualName,H),3)}return U.yield(_.mP(b.actualName,l),0)})};
A0Z=function(X,H,l){X=X.map(function(b){return _.h(function(U){return U.nextAddress==1?U.yield(_.i0(b.actualName,H),2):U.yield(_.mP(b.actualName,l),0)})});
return Promise.all(X).then(function(){})};
XMy=function(X){var H=H===void 0?{}:H;var l,b;return _.h(function(U){if(U.nextAddress==1)return U.yield(_.jv(),2);if(U.nextAddress!=3){l=U.yieldResult;if(!l)return U.return();zT(X);return U.yield(mok(X,l),3)}b=U.yieldResult;return U.yield(A0Z(b,H,l),0)})};
Hel=function(X,H){H=H===void 0?{}:H;var l;return _.h(function(b){if(b.nextAddress==1)return b.yield(_.jv(),2);if(b.nextAddress!=3){l=b.yieldResult;if(!l)return b.return();zT(X);return b.yield(_.i0(X,H),3)}return b.yield(_.mP(X,l),0)})};
rL=function(X,H){return lc8(X,H)};
be8=function(X){return _.vQ(ohK(),X)};
UwK=function(X,H,l,b){var U,K,w;return _.h(function(d){switch(d.nextAddress){case 1:return U={config:X,hashData:H,timestamp:b!==void 0?b:(0,_.Jl)()},d.yield(be8(l),2);case 2:return K=d.yieldResult,d.yield(K.clear("hotConfigStore"),3);case 3:return d.yield(K.put("hotConfigStore",U),4);case 4:return w=d.yieldResult,d.return(w)}})};
$wZ=function(X,H,l,b,U){var K,w,d;return _.h(function(B){switch(B.nextAddress){case 1:return K={config:X,hashData:H,configData:l,timestamp:U!==void 0?U:(0,_.Jl)()},B.yield(be8(b),2);case 2:return w=B.yieldResult,B.yield(w.clear("coldConfigStore"),3);case 3:return B.yield(w.put("coldConfigStore",K),4);case 4:return d=B.yieldResult,B.return(d)}})};
KhN=function(X){var H,l;return _.h(function(b){return b.nextAddress==1?b.yield(be8(X),2):b.nextAddress!=3?(H=b.yieldResult,l=void 0,b.yield(_.OZ(H,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(U){return _.Lt(U.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(K){l=K.getValue()})}),3)):b.return(l)})};
RKy=function(X){var H,l;return _.h(function(b){return b.nextAddress==1?b.yield(be8(X),2):b.nextAddress!=3?(H=b.yieldResult,l=void 0,b.yield(_.OZ(H,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(U){return _.Lt(U.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(K){l=K.getValue()})}),3)):b.return(l)})};
C$y=function(){return _.h(function(X){return X.yield(XMy("ytGcfConfig"),0)})};
wMm=function(){return"INNERTUBE_API_KEY"in _.W$&&"INNERTUBE_API_VERSION"in _.W$};
_.IF=function(){return{innertubeApiKey:_.gx("INNERTUBE_API_KEY"),innertubeApiVersion:_.gx("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.gx("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.gx("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.gx("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.gx("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.gx("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.gx("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.gx("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.G7("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.G7("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.gx("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.M4m=function(X){var H={client:{hl:X.innertubeContextHostLanguage,gl:X.innertubeContextGeoLocation,clientName:X.innertubeContextClientName,clientVersion:X.innertubeContextClientVersion,configInfo:X.innertubeContextClientConfigInfo}};navigator.userAgent&&(H.client.userAgent=String(navigator.userAgent));var l=_.ok.devicePixelRatio;l&&l!=1&&(H.client.screenDensityFloat=String(l));l=gB8();l!==""&&(H.client.experimentsToken=l);l=Guh();l.length>0&&(H.request={internalExperimentFlags:l});dwy(X,void 0,H);
hK8(void 0,H);FhW(void 0,H);BuZ(X,void 0,H);qib(void 0,H);_.P("start_client_gcf")&&s6N(void 0,H);_.gx("DELEGATED_SESSION_ID")&&!_.P("pageid_as_header_web")&&(H.user={onBehalfOfUser:_.gx("DELEGATED_SESSION_ID")});!_.P("fill_delegate_context_in_gel_killswitch")&&(X=_.gx("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(H.user=Object.assign({},H.user,{serializedDelegationContext:X}));X=_.gx("INNERTUBE_CONTEXT");var b;if(_.P("enable_persistent_device_token")&&(X==null?0:(b=X.client)==null?0:b.rolloutToken)){var U;
H.client.rolloutToken=X==null?void 0:(U=X.client)==null?void 0:U.rolloutToken}b=Object;U=b.assign;X=H.client;l={};for(var K=_.C(Object.entries(_.mu(_.gx("DEVICE","")))),w=K.next();!w.done;w=K.next()){var d=_.C(w.value);w=d.next().value;d=d.next().value;w==="cbrand"?l.deviceMake=d:w==="cmodel"?l.deviceModel=d:w==="cbr"?l.browserName=d:w==="cbrver"?l.browserVersion=d:w==="cos"?l.osName=d:w==="cosver"?l.osVersion=d:w==="cplatform"&&(l.platform=d)}H.client=U.call(b,X,l);return H};
dwy=function(X,H,l){X=X.innertubeContextClientName;if(X==="WEB"||X==="MWEB"||X===1||X===2)if(H){l=_.Al(H,usm,96)||new usm;var b=eKz();b=Object.keys(y2K).indexOf(b);b=b===-1?null:b;b!==null&&_.X$(l,3,b);_.go(H,96,l)}else l&&(l.client.mainAppWebInfo=(b=l.client.mainAppWebInfo)!=null?b:{},l.client.mainAppWebInfo.webDisplayMode=eKz())};
hK8=function(X,H){var l=_.ij("yt.embedded_player.embed_url");l&&(X?(H=_.Al(X,V4W,7)||new V4W,_.KY(H,4,l),_.go(X,7,H)):H&&(H.thirdParty={embedUrl:l}))};
FhW=function(X,H){var l;if(_.P("web_log_memory_total_kbytes")&&((l=_.ok.navigator)==null?0:l.deviceMemory)){var b;l=(b=_.ok.navigator)==null?void 0:b.deviceMemory;X?_.HB(X,95,ye(l*1E6)):H&&(H.client.memoryTotalKbytes=""+l*1E6)}};
BuZ=function(X,H,l){if(X.appInstallData)if(H){var b;l=(b=_.Al(H,lM,62))!=null?b:new lM;_.KY(l,6,X.appInstallData);_.go(H,62,l)}else l&&(l.client.configInfo=l.client.configInfo||{},l.client.configInfo.appInstallData=X.appInstallData)};
qib=function(X,H){var l=_.sHO();l&&(X?_.X$(X,61,P$k[l]):H&&(H.client.connectionType=l));_.P("web_log_effective_connection_type")&&(l=uek())&&(X?_.X$(X,94,fcy[l]):H&&(H.client.effectiveConnectionType=l))};
_.zKK=function(X,H,l){l=l===void 0?{}:l;var b={};_.gx("EOM_VISITOR_DATA")?b={"X-Goog-EOM-Visitor-Id":_.gx("EOM_VISITOR_DATA")}:b={"X-Goog-Visitor-Id":l.visitorData||_.gx("VISITOR_DATA","")};if(H&&H.includes("www.youtube-nocookie.com"))return b;H=l.authorization||_.gx("AUTHORIZATION");H||(X?H="Bearer "+_.ij("gapi.auth.getToken")().access_token:(pMb.instance||(pMb.instance=new pMb),X=SiO(),_.P("pageid_as_header_web")||delete X["X-Goog-PageId"],b=Object.assign({},b,X)));H&&(b.Authorization=H);return b};
s6N=function(X,H){var l=nhl();if(l){var b=l.coldConfigData,U=l.coldHashData;l=l.hotHashData;if(X){var K;H=(K=_.Al(X,lM,62))!=null?K:new lM;b=_.KY(H,1,b);_.KY(b,3,U).setHotHashData(l);_.go(X,62,H)}else H&&(H.client.configInfo=H.client.configInfo||{},b&&(H.client.configInfo.coldConfigData=b),U&&(H.client.configInfo.coldHashData=U),l&&(H.client.configInfo.hotHashData=l))}};
ow=function(X){for(var H=X.length;--H>=0;)X[H]=0};
kWL=function(X,H,l,b,U){this.static_tree=X;this.extra_bits=H;this.extra_base=l;this.elems=b;this.max_length=U;this.has_stree=X&&X.length};
xwN=function(X,H){this.dyn_tree=X;this.max_code=0;this.stat_desc=H};
bM=function(X,H){X.pending_buf[X.pending++]=H&255;X.pending_buf[X.pending++]=H>>>8&255};
U4=function(X,H,l){X.bi_valid>16-l?(X.bi_buf|=H<<X.bi_valid&65535,bM(X,X.bi_buf),X.bi_buf=H>>16-X.bi_valid,X.bi_valid+=l-16):(X.bi_buf|=H<<X.bi_valid&65535,X.bi_valid+=l)};
$V=function(X,H,l){U4(X,l[H*2],l[H*2+1])};
Dwl=function(X,H){var l=0;do l|=X&1,X>>>=1,l<<=1;while(--H>0);return l>>>1};
t4z=function(X,H,l){var b=Array(16),U=0,K;for(K=1;K<=15;K++)b[K]=U=U+l[K-1]<<1;for(l=0;l<=H;l++)U=X[l*2+1],U!==0&&(X[l*2]=Dwl(b[U]++,U))};
Whh=function(X){var H;for(H=0;H<286;H++)X.dyn_ltree[H*2]=0;for(H=0;H<30;H++)X.dyn_dtree[H*2]=0;for(H=0;H<19;H++)X.bl_tree[H*2]=0;X.dyn_ltree[512]=1;X.opt_len=X.static_len=0;X.last_lit=X.matches=0};
Ehz=function(X){X.bi_valid>8?bM(X,X.bi_buf):X.bi_valid>0&&(X.pending_buf[X.pending++]=X.bi_buf);X.bi_buf=0;X.bi_valid=0};
ghh=function(X,H,l){Ehz(X);bM(X,l);bM(X,~l);KU.arraySet(X.pending_buf,X.window,H,l,X.pending);X.pending+=l};
GWK=function(X,H,l,b){var U=H*2,K=l*2;return X[U]<X[K]||X[U]===X[K]&&b[H]<=b[l]};
ack=function(X,H,l){for(var b=X.heap[l],U=l<<1;U<=X.heap_len;){U<X.heap_len&&GWK(H,X.heap[U+1],X.heap[U],X.depth)&&U++;if(GWK(H,b,X.heap[U],X.depth))break;X.heap[l]=X.heap[U];l=U;U<<=1}X.heap[l]=b};
mw8=function(X,H,l){var b=0;if(X.last_lit!==0){do{var U=X.pending_buf[X.d_buf+b*2]<<8|X.pending_buf[X.d_buf+b*2+1];var K=X.pending_buf[X.l_buf+b];b++;if(U===0)$V(X,K,H);else{var w=Rw[K];$V(X,w+256+1,H);var d=Zey[w];d!==0&&(K-=ieW[w],U4(X,K,d));U--;w=U<256?CU[U]:CU[256+(U>>>7)];$V(X,w,l);d=vhK[w];d!==0&&(U-=OeW[w],U4(X,U,d))}}while(b<X.last_lit)}$V(X,256,H)};
Q6m=function(X,H){var l=H.dyn_tree,b=H.stat_desc.static_tree,U=H.stat_desc.has_stree,K=H.stat_desc.elems,w,d=-1;X.heap_len=0;X.heap_max=573;for(w=0;w<K;w++)l[w*2]!==0?(X.heap[++X.heap_len]=d=w,X.depth[w]=0):l[w*2+1]=0;for(;X.heap_len<2;){var B=X.heap[++X.heap_len]=d<2?++d:0;l[B*2]=1;X.depth[B]=0;X.opt_len--;U&&(X.static_len-=b[B*2+1])}H.max_code=d;for(w=X.heap_len>>1;w>=1;w--)ack(X,l,w);B=K;do w=X.heap[1],X.heap[1]=X.heap[X.heap_len--],ack(X,l,1),b=X.heap[1],X.heap[--X.heap_max]=w,X.heap[--X.heap_max]=
b,l[B*2]=l[w*2]+l[b*2],X.depth[B]=(X.depth[w]>=X.depth[b]?X.depth[w]:X.depth[b])+1,l[w*2+1]=l[b*2+1]=B,X.heap[1]=B++,ack(X,l,1);while(X.heap_len>=2);X.heap[--X.heap_max]=X.heap[1];w=H.dyn_tree;B=H.max_code;b=H.stat_desc.static_tree;U=H.stat_desc.has_stree;K=H.stat_desc.extra_bits;var q=H.stat_desc.extra_base,u=H.stat_desc.max_length,e,y=0;for(e=0;e<=15;e++)X.bl_count[e]=0;w[X.heap[X.heap_max]*2+1]=0;for(H=X.heap_max+1;H<573;H++){var V=X.heap[H];e=w[w[V*2+1]*2+1]+1;e>u&&(e=u,y++);w[V*2+1]=e;if(!(V>
B)){X.bl_count[e]++;var p=0;V>=q&&(p=K[V-q]);var z=w[V*2];X.opt_len+=z*(e+p);U&&(X.static_len+=z*(b[V*2+1]+p))}}if(y!==0){do{for(e=u-1;X.bl_count[e]===0;)e--;X.bl_count[e]--;X.bl_count[e+1]+=2;X.bl_count[u]--;y-=2}while(y>0);for(e=u;e!==0;e--)for(V=X.bl_count[e];V!==0;)b=X.heap[--H],b>B||(w[b*2+1]!==e&&(X.opt_len+=(e-w[b*2+1])*w[b*2],w[b*2+1]=e),V--)}t4z(l,d,X.bl_count)};
TuL=function(X,H,l){var b,U=-1,K=H[1],w=0,d=7,B=4;K===0&&(d=138,B=3);H[(l+1)*2+1]=65535;for(b=0;b<=l;b++){var q=K;K=H[(b+1)*2+1];++w<d&&q===K||(w<B?X.bl_tree[q*2]+=w:q!==0?(q!==U&&X.bl_tree[q*2]++,X.bl_tree[32]++):w<=10?X.bl_tree[34]++:X.bl_tree[36]++,w=0,U=q,K===0?(d=138,B=3):q===K?(d=6,B=3):(d=7,B=4))}};
Nuk=function(X,H,l){var b,U=-1,K=H[1],w=0,d=7,B=4;K===0&&(d=138,B=3);for(b=0;b<=l;b++){var q=K;K=H[(b+1)*2+1];if(!(++w<d&&q===K)){if(w<B){do $V(X,q,X.bl_tree);while(--w!==0)}else q!==0?(q!==U&&($V(X,q,X.bl_tree),w--),$V(X,16,X.bl_tree),U4(X,w-3,2)):w<=10?($V(X,17,X.bl_tree),U4(X,w-3,3)):($V(X,18,X.bl_tree),U4(X,w-11,7));w=0;U=q;K===0?(d=138,B=3):q===K?(d=6,B=3):(d=7,B=4)}}};
c2l=function(X){var H=4093624447,l;for(l=0;l<=31;l++,H>>>=1)if(H&1&&X.dyn_ltree[l*2]!==0)return 0;if(X.dyn_ltree[18]!==0||X.dyn_ltree[20]!==0||X.dyn_ltree[26]!==0)return 1;for(l=32;l<256;l++)if(X.dyn_ltree[l*2]!==0)return 1;return 0};
wn=function(X,H,l){X.pending_buf[X.d_buf+X.last_lit*2]=H>>>8&255;X.pending_buf[X.d_buf+X.last_lit*2+1]=H&255;X.pending_buf[X.l_buf+X.last_lit]=l&255;X.last_lit++;H===0?X.dyn_ltree[l*2]++:(X.matches++,H--,X.dyn_ltree[(Rw[l]+256+1)*2]++,X.dyn_dtree[(H<256?CU[H]:CU[256+(H>>>7)])*2]++);return X.last_lit===X.lit_bufsize-1};
hV=function(X,H){X.msg=dn[H];return H};
F$=function(X){for(var H=X.length;--H>=0;)X[H]=0};
BB=function(X){var H=X.state,l=H.pending;l>X.avail_out&&(l=X.avail_out);l!==0&&(KU.arraySet(X.output,H.pending_buf,H.pending_out,l,X.next_out),X.next_out+=l,H.pending_out+=l,X.total_out+=l,X.avail_out-=l,H.pending-=l,H.pending===0&&(H.pending_out=0))};
MK=function(X,H){var l=X.block_start>=0?X.block_start:-1,b=X.strstart-X.block_start,U=0;if(X.level>0){X.strm.data_type===2&&(X.strm.data_type=c2l(X));Q6m(X,X.l_desc);Q6m(X,X.d_desc);TuL(X,X.dyn_ltree,X.l_desc.max_code);TuL(X,X.dyn_dtree,X.d_desc.max_code);Q6m(X,X.bl_desc);for(U=18;U>=3&&X.bl_tree[j6b[U]*2+1]===0;U--);X.opt_len+=3*(U+1)+5+5+4;var K=X.opt_len+3+7>>>3;var w=X.static_len+3+7>>>3;w<=K&&(K=w)}else K=w=b+5;if(b+4<=K&&l!==-1)U4(X,H?1:0,3),ghh(X,l,b);else if(X.strategy===4||w===K)U4(X,2+(H?
1:0),3),mw8(X,qK,s4);else{U4(X,4+(H?1:0),3);l=X.l_desc.max_code+1;b=X.d_desc.max_code+1;U+=1;U4(X,l-257,5);U4(X,b-1,5);U4(X,U-4,4);for(K=0;K<U;K++)U4(X,X.bl_tree[j6b[K]*2+1],3);Nuk(X,X.dyn_ltree,l-1);Nuk(X,X.dyn_dtree,b-1);mw8(X,X.dyn_ltree,X.dyn_dtree)}Whh(X);H&&Ehz(X);X.block_start=X.strstart;BB(X.strm)};
uM=function(X,H){X.pending_buf[X.pending++]=H};
es=function(X,H){X.pending_buf[X.pending++]=H>>>8&255;X.pending_buf[X.pending++]=H&255};
r2b=function(X,H){var l=X.max_chain_length,b=X.strstart,U=X.prev_length,K=X.nice_match,w=X.strstart>X.w_size-262?X.strstart-(X.w_size-262):0,d=X.window,B=X.w_mask,q=X.prev,u=X.strstart+258,e=d[b+U-1],y=d[b+U];X.prev_length>=X.good_match&&(l>>=2);K>X.lookahead&&(K=X.lookahead);do{var V=H;if(d[V+U]===y&&d[V+U-1]===e&&d[V]===d[b]&&d[++V]===d[b+1]){b+=2;for(V++;d[++b]===d[++V]&&d[++b]===d[++V]&&d[++b]===d[++V]&&d[++b]===d[++V]&&d[++b]===d[++V]&&d[++b]===d[++V]&&d[++b]===d[++V]&&d[++b]===d[++V]&&b<u;);
V=258-(u-b);b=u-258;if(V>U){X.match_start=H;U=V;if(V>=K)break;e=d[b+U-1];y=d[b+U]}}}while((H=q[H&B])>w&&--l!==0);return U<=X.lookahead?U:X.lookahead};
Vi=function(X){var H=X.w_size,l;do{var b=X.window_size-X.lookahead-X.strstart;if(X.strstart>=H+(H-262)){KU.arraySet(X.window,X.window,H,H,0);X.match_start-=H;X.strstart-=H;X.block_start-=H;var U=l=X.hash_size;do{var K=X.head[--U];X.head[U]=K>=H?K-H:0}while(--l);U=l=H;do K=X.prev[--U],X.prev[U]=K>=H?K-H:0;while(--l);b+=H}if(X.strm.avail_in===0)break;U=X.strm;l=X.window;K=X.strstart+X.lookahead;var w=U.avail_in;w>b&&(w=b);w===0?l=0:(U.avail_in-=w,KU.arraySet(l,U.input,U.next_in,w,K),U.state.wrap===
1?U.adler=J2y(U.adler,l,w,K):U.state.wrap===2&&(U.adler=yi(U.adler,l,w,K)),U.next_in+=w,U.total_in+=w,l=w);X.lookahead+=l;if(X.lookahead+X.insert>=3)for(b=X.strstart-X.insert,X.ins_h=X.window[b],X.ins_h=(X.ins_h<<X.hash_shift^X.window[b+1])&X.hash_mask;X.insert&&!(X.ins_h=(X.ins_h<<X.hash_shift^X.window[b+3-1])&X.hash_mask,X.prev[b&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=b,b++,X.insert--,X.lookahead+X.insert<3););}while(X.lookahead<262&&X.strm.avail_in!==0)};
Lhy=function(X,H){for(var l;;){if(X.lookahead<262){Vi(X);if(X.lookahead<262&&H===0)return 1;if(X.lookahead===0)break}l=0;X.lookahead>=3&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+3-1])&X.hash_mask,l=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart);l!==0&&X.strstart-l<=X.w_size-262&&(X.match_length=r2b(X,l));if(X.match_length>=3)if(l=wn(X,X.strstart-X.match_start,X.match_length-3),X.lookahead-=X.match_length,X.match_length<=X.max_lazy_match&&X.lookahead>=3){X.match_length--;
do X.strstart++,X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+3-1])&X.hash_mask,X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart;while(--X.match_length!==0);X.strstart++}else X.strstart+=X.match_length,X.match_length=0,X.ins_h=X.window[X.strstart],X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+1])&X.hash_mask;else l=wn(X,0,X.window[X.strstart]),X.lookahead--,X.strstart++;if(l&&(MK(X,!1),X.strm.avail_out===0))return 1}X.insert=X.strstart<2?X.strstart:2;return H===4?(MK(X,
!0),X.strm.avail_out===0?3:4):X.last_lit&&(MK(X,!1),X.strm.avail_out===0)?1:2};
PB=function(X,H){for(var l,b;;){if(X.lookahead<262){Vi(X);if(X.lookahead<262&&H===0)return 1;if(X.lookahead===0)break}l=0;X.lookahead>=3&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+3-1])&X.hash_mask,l=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart);X.prev_length=X.match_length;X.prev_match=X.match_start;X.match_length=2;l!==0&&X.prev_length<X.max_lazy_match&&X.strstart-l<=X.w_size-262&&(X.match_length=r2b(X,l),X.match_length<=5&&(X.strategy===1||X.match_length===3&&
X.strstart-X.match_start>4096)&&(X.match_length=2));if(X.prev_length>=3&&X.match_length<=X.prev_length){b=X.strstart+X.lookahead-3;l=wn(X,X.strstart-1-X.prev_match,X.prev_length-3);X.lookahead-=X.prev_length-1;X.prev_length-=2;do++X.strstart<=b&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+3-1])&X.hash_mask,X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart);while(--X.prev_length!==0);X.match_available=0;X.match_length=2;X.strstart++;if(l&&(MK(X,!1),X.strm.avail_out===0))return 1}else if(X.match_available){if((l=
wn(X,0,X.window[X.strstart-1]))&&MK(X,!1),X.strstart++,X.lookahead--,X.strm.avail_out===0)return 1}else X.match_available=1,X.strstart++,X.lookahead--}X.match_available&&(wn(X,0,X.window[X.strstart-1]),X.match_available=0);X.insert=X.strstart<2?X.strstart:2;return H===4?(MK(X,!0),X.strm.avail_out===0?3:4):X.last_lit&&(MK(X,!1),X.strm.avail_out===0)?1:2};
YiZ=function(X,H){for(var l,b,U,K=X.window;;){if(X.lookahead<=258){Vi(X);if(X.lookahead<=258&&H===0)return 1;if(X.lookahead===0)break}X.match_length=0;if(X.lookahead>=3&&X.strstart>0&&(b=X.strstart-1,l=K[b],l===K[++b]&&l===K[++b]&&l===K[++b])){for(U=X.strstart+258;l===K[++b]&&l===K[++b]&&l===K[++b]&&l===K[++b]&&l===K[++b]&&l===K[++b]&&l===K[++b]&&l===K[++b]&&b<U;);X.match_length=258-(U-b);X.match_length>X.lookahead&&(X.match_length=X.lookahead)}X.match_length>=3?(l=wn(X,1,X.match_length-3),X.lookahead-=
X.match_length,X.strstart+=X.match_length,X.match_length=0):(l=wn(X,0,X.window[X.strstart]),X.lookahead--,X.strstart++);if(l&&(MK(X,!1),X.strm.avail_out===0))return 1}X.insert=0;return H===4?(MK(X,!0),X.strm.avail_out===0?3:4):X.last_lit&&(MK(X,!1),X.strm.avail_out===0)?1:2};
Icy=function(X,H){for(var l;;){if(X.lookahead===0&&(Vi(X),X.lookahead===0)){if(H===0)return 1;break}X.match_length=0;l=wn(X,0,X.window[X.strstart]);X.lookahead--;X.strstart++;if(l&&(MK(X,!1),X.strm.avail_out===0))return 1}X.insert=0;return H===4?(MK(X,!0),X.strm.avail_out===0?3:4):X.last_lit&&(MK(X,!1),X.strm.avail_out===0)?1:2};
fU=function(X,H,l,b,U){this.good_length=X;this.max_lazy=H;this.nice_length=l;this.max_chain=b;this.func=U};
A28=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 KU.Buf16(1146);this.dyn_dtree=new KU.Buf16(122);this.bl_tree=new KU.Buf16(78);F$(this.dyn_ltree);F$(this.dyn_dtree);F$(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new KU.Buf16(16);this.heap=new KU.Buf16(573);F$(this.heap);this.heap_max=this.heap_len=0;this.depth=new KU.Buf16(573);F$(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};
Xcz=function(X,H){if(!X||!X.state||H>5||H<0)return X?hV(X,-2):-2;var l=X.state;if(!X.output||!X.input&&X.avail_in!==0||l.status===666&&H!==4)return hV(X,X.avail_out===0?-5:-2);l.strm=X;var b=l.last_flush;l.last_flush=H;if(l.status===42)if(l.wrap===2)X.adler=0,uM(l,31),uM(l,139),uM(l,8),l.gzhead?(uM(l,(l.gzhead.text?1:0)+(l.gzhead.hcrc?2:0)+(l.gzhead.extra?4:0)+(l.gzhead.name?8:0)+(l.gzhead.comment?16:0)),uM(l,l.gzhead.time&255),uM(l,l.gzhead.time>>8&255),uM(l,l.gzhead.time>>16&255),uM(l,l.gzhead.time>>
24&255),uM(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),uM(l,l.gzhead.os&255),l.gzhead.extra&&l.gzhead.extra.length&&(uM(l,l.gzhead.extra.length&255),uM(l,l.gzhead.extra.length>>8&255)),l.gzhead.hcrc&&(X.adler=yi(X.adler,l.pending_buf,l.pending,0)),l.gzindex=0,l.status=69):(uM(l,0),uM(l,0),uM(l,0),uM(l,0),uM(l,0),uM(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),uM(l,3),l.status=113);else{var U=8+(l.w_bits-8<<4)<<8;U|=(l.strategy>=2||l.level<2?0:l.level<6?1:l.level===6?2:3)<<6;l.strstart!==0&&(U|=
32);l.status=113;es(l,U+(31-U%31));l.strstart!==0&&(es(l,X.adler>>>16),es(l,X.adler&65535));X.adler=1}if(l.status===69)if(l.gzhead.extra){for(U=l.pending;l.gzindex<(l.gzhead.extra.length&65535)&&(l.pending!==l.pending_buf_size||(l.gzhead.hcrc&&l.pending>U&&(X.adler=yi(X.adler,l.pending_buf,l.pending-U,U)),BB(X),U=l.pending,l.pending!==l.pending_buf_size));)uM(l,l.gzhead.extra[l.gzindex]&255),l.gzindex++;l.gzhead.hcrc&&l.pending>U&&(X.adler=yi(X.adler,l.pending_buf,l.pending-U,U));l.gzindex===l.gzhead.extra.length&&
(l.gzindex=0,l.status=73)}else l.status=73;if(l.status===73)if(l.gzhead.name){U=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>U&&(X.adler=yi(X.adler,l.pending_buf,l.pending-U,U)),BB(X),U=l.pending,l.pending===l.pending_buf_size)){var K=1;break}K=l.gzindex<l.gzhead.name.length?l.gzhead.name.charCodeAt(l.gzindex++)&255:0;uM(l,K)}while(K!==0);l.gzhead.hcrc&&l.pending>U&&(X.adler=yi(X.adler,l.pending_buf,l.pending-U,U));K===0&&(l.gzindex=0,l.status=91)}else l.status=91;if(l.status===
91)if(l.gzhead.comment){U=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>U&&(X.adler=yi(X.adler,l.pending_buf,l.pending-U,U)),BB(X),U=l.pending,l.pending===l.pending_buf_size)){K=1;break}K=l.gzindex<l.gzhead.comment.length?l.gzhead.comment.charCodeAt(l.gzindex++)&255:0;uM(l,K)}while(K!==0);l.gzhead.hcrc&&l.pending>U&&(X.adler=yi(X.adler,l.pending_buf,l.pending-U,U));K===0&&(l.status=103)}else l.status=103;l.status===103&&(l.gzhead.hcrc?(l.pending+2>l.pending_buf_size&&BB(X),
l.pending+2<=l.pending_buf_size&&(uM(l,X.adler&255),uM(l,X.adler>>8&255),X.adler=0,l.status=113)):l.status=113);if(l.pending!==0){if(BB(X),X.avail_out===0)return l.last_flush=-1,0}else if(X.avail_in===0&&(H<<1)-(H>4?9:0)<=(b<<1)-(b>4?9:0)&&H!==4)return hV(X,-5);if(l.status===666&&X.avail_in!==0)return hV(X,-5);if(X.avail_in!==0||l.lookahead!==0||H!==0&&l.status!==666){b=l.strategy===2?Icy(l,H):l.strategy===3?YiZ(l,H):pU[l.level].func(l,H);if(b===3||b===4)l.status=666;if(b===1||b===3)return X.avail_out===
0&&(l.last_flush=-1),0;if(b===2&&(H===1?(U4(l,2,3),$V(l,256,qK),l.bi_valid===16?(bM(l,l.bi_buf),l.bi_buf=0,l.bi_valid=0):l.bi_valid>=8&&(l.pending_buf[l.pending++]=l.bi_buf&255,l.bi_buf>>=8,l.bi_valid-=8)):H!==5&&(U4(l,0,3),ghh(l,0,0),H===3&&(F$(l.head),l.lookahead===0&&(l.strstart=0,l.block_start=0,l.insert=0))),BB(X),X.avail_out===0))return l.last_flush=-1,0}if(H!==4)return 0;if(l.wrap<=0)return 1;l.wrap===2?(uM(l,X.adler&255),uM(l,X.adler>>8&255),uM(l,X.adler>>16&255),uM(l,X.adler>>24&255),uM(l,
X.total_in&255),uM(l,X.total_in>>8&255),uM(l,X.total_in>>16&255),uM(l,X.total_in>>24&255)):(es(l,X.adler>>>16),es(l,X.adler&65535));BB(X);l.wrap>0&&(l.wrap=-l.wrap);return l.pending!==0?0:1};
Hcy=function(X){if(!(this instanceof Hcy))return new Hcy(X);X=this.options=KU.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},X||{});X.raw&&X.windowBits>0?X.windowBits=-X.windowBits:X.gzip&&X.windowBits>0&&X.windowBits<16&&(X.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new lVy;this.strm.avail_out=0;var H=this.strm;var l=X.level,b=X.method,U=X.windowBits,K=X.memLevel,w=X.strategy;if(H){var d=1;l===-1&&(l=6);U<0?(d=0,U=-U):U>15&&
(d=2,U-=16);if(K<1||K>9||b!==8||U<8||U>15||l<0||l>9||w<0||w>4)H=hV(H,-2);else{U===8&&(U=9);var B=new A28;H.state=B;B.strm=H;B.wrap=d;B.gzhead=null;B.w_bits=U;B.w_size=1<<B.w_bits;B.w_mask=B.w_size-1;B.hash_bits=K+7;B.hash_size=1<<B.hash_bits;B.hash_mask=B.hash_size-1;B.hash_shift=~~((B.hash_bits+3-1)/3);B.window=new KU.Buf8(B.w_size*2);B.head=new KU.Buf16(B.hash_size);B.prev=new KU.Buf16(B.w_size);B.lit_bufsize=1<<K+6;B.pending_buf_size=B.lit_bufsize*4;B.pending_buf=new KU.Buf8(B.pending_buf_size);
B.d_buf=B.lit_bufsize;B.l_buf=3*B.lit_bufsize;B.level=l;B.strategy=w;B.method=b;if(H&&H.state){H.total_in=H.total_out=0;H.data_type=2;l=H.state;l.pending=0;l.pending_out=0;l.wrap<0&&(l.wrap=-l.wrap);l.status=l.wrap?42:113;H.adler=l.wrap===2?0:1;l.last_flush=0;if(!oDK){b=Array(16);for(K=w=0;K<28;K++)for(ieW[K]=w,U=0;U<1<<Zey[K];U++)Rw[w++]=K;Rw[w-1]=K;for(K=w=0;K<16;K++)for(OeW[K]=w,U=0;U<1<<vhK[K];U++)CU[w++]=K;for(w>>=7;K<30;K++)for(OeW[K]=w<<7,U=0;U<1<<vhK[K]-7;U++)CU[256+w++]=K;for(U=0;U<=15;U++)b[U]=
0;for(U=0;U<=143;)qK[U*2+1]=8,U++,b[8]++;for(;U<=255;)qK[U*2+1]=9,U++,b[9]++;for(;U<=279;)qK[U*2+1]=7,U++,b[7]++;for(;U<=287;)qK[U*2+1]=8,U++,b[8]++;t4z(qK,287,b);for(U=0;U<30;U++)s4[U*2+1]=5,s4[U*2]=Dwl(U,5);bcm=new kWL(qK,Zey,257,286,15);URh=new kWL(s4,vhK,0,30,15);$Ry=new kWL([],KrK,0,19,7);oDK=!0}l.l_desc=new xwN(l.dyn_ltree,bcm);l.d_desc=new xwN(l.dyn_dtree,URh);l.bl_desc=new xwN(l.bl_tree,$Ry);l.bi_buf=0;l.bi_valid=0;Whh(l);l=0}else l=hV(H,-2);l===0&&(H=H.state,H.window_size=2*H.w_size,F$(H.head),
H.max_lazy_match=pU[H.level].max_lazy,H.good_match=pU[H.level].good_length,H.nice_match=pU[H.level].nice_length,H.max_chain_length=pU[H.level].max_chain,H.strstart=0,H.block_start=0,H.lookahead=0,H.insert=0,H.match_length=H.prev_length=2,H.match_available=0,H.ins_h=0);H=l}}else H=-2;if(H!==0)throw Error(dn[H]);X.header&&(H=this.strm)&&H.state&&H.state.wrap===2&&(H.state.gzhead=X.header);if(X.dictionary){var q;typeof X.dictionary==="string"?q=R_z(X.dictionary):C9b.call(X.dictionary)==="[object ArrayBuffer]"?
q=new Uint8Array(X.dictionary):q=X.dictionary;X=this.strm;K=q;w=K.length;if(X&&X.state)if(q=X.state,H=q.wrap,H===2||H===1&&q.status!==42||q.lookahead)H=-2;else{H===1&&(X.adler=J2y(X.adler,K,w,0));q.wrap=0;w>=q.w_size&&(H===0&&(F$(q.head),q.strstart=0,q.block_start=0,q.insert=0),l=new KU.Buf8(q.w_size),KU.arraySet(l,K,w-q.w_size,q.w_size,0),K=l,w=q.w_size);l=X.avail_in;b=X.next_in;U=X.input;X.avail_in=w;X.next_in=0;X.input=K;for(Vi(q);q.lookahead>=3;){K=q.strstart;w=q.lookahead-2;do q.ins_h=(q.ins_h<<
q.hash_shift^q.window[K+3-1])&q.hash_mask,q.prev[K&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=K,K++;while(--w);q.strstart=K;q.lookahead=2;Vi(q)}q.strstart+=q.lookahead;q.block_start=q.strstart;q.insert=q.lookahead;q.lookahead=0;q.match_length=q.prev_length=2;q.match_available=0;X.next_in=b;X.input=U;X.avail_in=l;q.wrap=H;H=0}else H=-2;if(H!==0)throw Error(dn[H]);this._dict_set=!0}};
wck=function(X,H){H=H||{};H.gzip=!0;H=new Hcy(H);H.push(X,!0);if(H.err)throw H.msg||dn[H.err];return H.result};
h_b=function(X,H){var l=dRZ();l&&l.publish.call(l,X.toString(),X,H)};
MLK=function(X,H,l){var b=dRZ();if(!b)return 0;var U=b.subscribe(X.toString(),function(K,w){var d=_.ij("ytPubsub2Pubsub2SkipSubKey");d&&d==U||(d=function(){if(Frz[U])try{if(w&&X instanceof BTy&&X!=K)try{var B=X.dataClass,q=w;if(!q.args||!q.version)throw Error("bd");try{if(!B.version_){var u=new B;B.version_=u.version}var e=B.version_}catch(y){}if(!e||q.version!=e)throw Error("cd");try{w=Reflect.construct(B,_.NW(q.args))}catch(y){throw y.message="yt.pubsub2.Data.deserialize(): "+y.message,y;}}catch(y){throw y.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+X.toString()+": "+y.message,y;}H.call(l||window,w)}catch(y){_.a0(y)}},qqh[X.toString()]?_.ij("yt.scheduler.instance")?_.Ss.addLowPriorityJob(d):_.b0(d,0):d())});
Frz[U]=!0;si8[X.toString()]||(si8[X.toString()]=[]);si8[X.toString()].push(U);return U};
VLz=function(){var X=uhO,H=MLK(e_y,function(l){X.apply(void 0,arguments);yFh(H)});
return H};
yFh=function(X){var H=dRZ();H&&(typeof X==="number"&&(X=[X]),_.Ot(X,function(l){H.unsubscribeByKey(l);delete Frz[l]}))};
dRZ=function(){return _.ij("ytPubsub2Pubsub2Instance")};
P9l=function(X,H,l){l=l===void 0?{sampleRate:.1}:l;Math.random()<Math.min(.02,l.sampleRate/100)&&h_b("meta_logging_csi_event",{timerName:X,timelineData:H})};
_.fVz=function(X){return X?(X=X.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.F3(X):null:null};
_.zd=function(X){return X?(X=X.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.vu(X):null:null};
Sqz=function(){pc8||(pc8=_.zd(_.gx("WORKER_SERIALIZATION_URL")));return pc8||void 0};
_.nDZ=function(){var X=Sqz();z_y||X===void 0||(z_y=GSy(X));return z_y};
_.kxO=function(){return typeof Worker==="function"&&Sqz()?!0:!1};
_.WrO=function(){if(_.kxO()&&!xRm){var X=function(l){l=l.data;if(l.op==="gzippedGelBatch"){var b=DRh.get(l.key);b&&(tLb(l.gzippedBatch,b.latencyPayload,b.url,b.options,b.sendFn),DRh.delete(l.key))}},H=_.nDZ();
H&&(H.addEventListener("message",X),H.onerror=function(){DRh.clear()},xRm=!0)}};
ic8=function(X,H,l,b,U){U=U===void 0?!1:U;var K={startTime:(0,_.Jl)(),ticks:{},infos:{}};if(nU)try{var w=EDZ(H);if(w!=null&&(w>gDb||w<Gxy))b(X,l);else{if(_.P("gzip_gel_with_worker")){xRm||_.WrO();var d=_.nDZ();if(d&&!U){DRh.set(aVz,{latencyPayload:K,url:X,options:l,sendFn:b});d.postMessage({op:"gelBatchToGzip",serializedBatch:H,key:aVz});aVz++;return}}var B=wck(Zc8(H));tLb(B,K,X,l,b)}}catch(q){_.v$(q),b(X,l)}else b(X,l)};
tLb=function(X,H,l,b,U){var K=(0,_.Jl)();H.ticks.gelc=K;kV++;_.P("disable_compression_due_to_performance_degredation")&&K-H.startTime>=vDL&&(OcK++,nU=!1);mR8(H);b.headers||(b.headers={});b.headers["Content-Encoding"]="gzip";b.postBody=X;b.postParams=void 0;U(l,b)};
TT8=function(X){var H=H===void 0?!1:H;var l=l===void 0?!1:l;var b=(0,_.Jl)(),U={startTime:b,ticks:{},infos:{}},K=H?_.ij("yt.logging.gzipForFetch",!1):!0;if(nU&&K){if(!X.body)return X;try{var w=l?X.body:typeof X.body==="string"?X.body:JSON.stringify(X.body);K=w;if(!l&&typeof w==="string"){var d=EDZ(w);if(d!=null&&(d>gDb||d<Gxy))return X;l=H?{level:1}:void 0;K=wck(Zc8(w),l);var B=(0,_.Jl)();U.ticks.gelc=B;if(H){kV++;if((_.P("disable_compression_due_to_performance_degredation")||_.P("disable_compression_due_to_performance_degradation_lr"))&&
B-b>=vDL)if(OcK++,_.P("abandon_compression_after_N_slow_zips_lr")){H=OcK/kV;var q=QiN/_.Yy("compression_disable_point");kV>0&&kV%_.Yy("compression_disable_point")===0&&H>=q&&(nU=!1)}else nU=!1;mR8(U)}}X.headers=Object.assign({},{"Content-Encoding":"gzip"},X.headers||{});X.body=K;return X}catch(u){return _.v$(u),X}}else return X};
EDZ=function(X){try{return(new Blob(X.split(""))).size}catch(H){return _.v$(H),null}};
mR8=function(X){_.P("gel_compression_csi_killswitch")||!_.P("log_gel_compression_latency")&&!_.P("log_gel_compression_latency_lr")||P9l("gel_compression",X,{sampleRate:.1})};
NTy=function(){this.blockSize=-1};
xV=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var X=1;X<this.blockSize;++X)this.pad_[X]=0;this.total_=this.inbuf_=0;this.reset()};
jil=function(X){X=Object.assign({},X);delete X.Authorization;var H=_.cFh();if(H){var l=new xV;l.update(_.gx("INNERTUBE_API_KEY"));l.update(H);X.hash=_.Ik(l.digest(),3)}return X};
WB=function(){rFy||(rFy=new _.DS("yt.innertube"));return rFy};
JFh=function(X,H,l,b){if(b)return null;b=WB().get("nextId",!0)||1;var U=WB().get("requests",!0)||{};U[b]={method:X,request:H,authState:jil(l),requestTime:Math.round((0,_.Jl)())};WB().set("nextId",b+1,86400,!0);WB().set("requests",U,86400,!0);return b};
LrL=function(X){var H=WB().get("requests",!0)||{};delete H[X];WB().set("requests",H,86400,!0)};
IVy=function(X){var H=WB().get("requests",!0);if(H){for(var l in H){var b=H[l];if(!(Math.round((0,_.Jl)())-b.requestTime<6E4)){var U=b.authState,K=jil(_.zKK(!1));_.Bb.equals(U,K)&&(U=b.request,"requestTimeMs"in U&&(U.requestTimeMs=Math.round((0,_.Jl)())),YqZ(X,b.method,U,{}));delete H[l]}}WB().set("requests",H,86400,!0)}};
AFh=function(X){var H;return(X=X==null?void 0:(H=X.error)==null?void 0:H.code)&&X>=400&&X<=599?!1:!0};
X5O=function(X){var H;X=X==null?void 0:(H=X.error)==null?void 0:H.code;return!(X!==400&&X!==415)};
lpN=function(){if(HqO)return HqO();var X={};HqO=rL("LogsDatabaseV2",{objectStores:(X.LogsRequestsStore={addedAtVersion:2},X),shared:!1,upgrade:function(H,l,b){l(2)&&E4(H,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});l(3);l(5)&&(b=b.objectStore("LogsRequestsStore"),b.JSC$10999_wrapped.indexNames.contains("newRequest")&&b.JSC$10999_wrapped.deleteIndex("newRequest"),gn(b,"newRequestV2",["status","interface","timestamp"]));l(7)&&H.JSC$10984_wrapped.objectStoreNames.contains("sapisid")&&H.JSC$10984_wrapped.deleteObjectStore("sapisid");
l(9)&&H.JSC$10984_wrapped.objectStoreNames.contains("SWHealthLog")&&H.JSC$10984_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return HqO()};
Gd=function(X){return _.vQ(lpN(),X)};
bql=function(X,H){var l,b,U,K;return _.h(function(w){if(w.nextAddress==1)return l={startTime:(0,_.Jl)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},w.yield(Gd(H),2);if(w.nextAddress!=3)return b=w.yieldResult,U=Object.assign({},X,{options:JSON.parse(JSON.stringify(X.options)),interface:_.gx("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),w.yield(b.put("LogsRequestsStore",U),3);K=w.yieldResult;l.ticks.tc=(0,_.Jl)();oly(l);return w.return(K)})};
Uqy=function(X,H){var l,b,U,K,w,d,B,q,u;return _.h(function(e){if(e.nextAddress==1)return l={startTime:(0,_.Jl)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},e.yield(Gd(H),2);if(e.nextAddress!=3)return b=e.yieldResult,U=_.gx("INNERTUBE_CONTEXT_CLIENT_NAME",0),K=[X,U,0],w=[X,U,(0,_.Jl)()],d=IDBKeyRange.bound(K,w),B="prev",_.P("use_fifo_for_networkless")&&(B="next"),q=void 0,u=X==="NEW"?"readwrite":"readonly",_.P("use_readonly_for_get_most_recent_by_status_killswitch")&&(u="readwrite"),
e.yield(_.OZ(b,["LogsRequestsStore"],{mode:u,enableRetries:!0},function(y){return _.Lt(y.objectStore("LogsRequestsStore").index("newRequestV2"),{query:d,direction:B},function(V){V.getValue()&&(q=V.getValue(),X==="NEW"&&(q.status="QUEUED",V.update(q)))})}),3);
l.ticks.tc=(0,_.Jl)();oly(l);return e.return(q)})};
$ql=function(X,H){var l;return _.h(function(b){if(b.nextAddress==1)return b.yield(Gd(H),2);l=b.yieldResult;return b.return(_.OZ(l,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(U){var K=U.objectStore("LogsRequestsStore");return K.get(X).then(function(w){if(w)return w.status="QUEUED",K.put(w).then(function(){return w})})}))})};
KaN=function(X,H,l,b){l=l===void 0?!0:l;var U;return _.h(function(K){if(K.nextAddress==1)return K.yield(Gd(H),2);U=K.yieldResult;return K.return(_.OZ(U,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(w){var d=w.objectStore("LogsRequestsStore");return d.get(X).then(function(B){return B?(B.status="NEW",l&&(B.sendCount+=1),b!==void 0&&(B.options.compress=b),d.put(B).then(function(){return B})):WQ.resolve(void 0)})}))})};
Rom=function(X,H){var l;return _.h(function(b){if(b.nextAddress==1)return b.yield(Gd(H),2);l=b.yieldResult;return b.return(l.delete("LogsRequestsStore",X))})};
Cvb=function(X){var H,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(Gd(X),2);H=b.yieldResult;l=(0,_.Jl)()-2592E6;return b.yield(_.OZ(H,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(U){return Ql(U.objectStore("LogsRequestsStore"),{},function(K){if(K.getValue().timestamp<=l)return K.delete().then(function(){return K.continue()})})}),0)})};
w5m=function(){_.h(function(X){return X.yield(XMy("LogsDatabaseV2"),0)})};
oly=function(X){_.P("nwl_csi_killswitch")||P9l("networkless_performance",X,{sampleRate:1})};
_.hoK=function(X){return _.vQ(dqy(),X)};
Faz=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return b.yield(_.hoK(X),2);H=b.yieldResult;l=(0,_.Jl)()-2592E6;return b.yield(_.OZ(H,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(U){return Ql(U.objectStore("SWHealthLog"),{},function(K){if(K.getValue().timestamp<=l)return K.delete().then(function(){return K.continue()})})}),0)})};
BCL=function(X){var H;return _.h(function(l){if(l.nextAddress==1)return l.yield(_.hoK(X),2);H=l.yieldResult;return l.yield(H.clear("SWHealthLog"),0)})};
_.aw=function(X,H,l,b,U,K,w){U=U===void 0?"":U;K=K===void 0?!1:K;w=w===void 0?!1:w;if(X)if(l&&!kr("cobalt"))_.v$(new _.qd("Legacy referrer-scrubbed ping detected")),X&&qlO(X,void 0,{scrubReferrer:!0});else if(U)Tcy(X,H,"POST",U,b);else if(_.gx("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||b||w)Tcy(X,H,"GET","",b,void 0,K,w);else{b:{try{c:{var d=new s18({url:X});if(d.urlParamValues_.dsh==="1")var B=null;else{var q=d.urlParamValues_.ae;if(q==="1"){var u=d.urlParamValues_.adurl;if(u)try{B={version:3,directUrl:decodeURIComponent(u),
asyncUrl:yRL(d.JSC$9786_url_,"act=1","ri=1",MwO(d))};break c}catch(p){}}B=q==="2"?{version:4,directUrl:yRL(d.JSC$9786_url_,"dct=1","suid="+d.suid_,"ri=1"),asyncUrl:yRL(d.JSC$9786_url_,"act=1","ri=1","suid="+d.suid_)}:null}}if(B){var e=_.c1(X);var y=!(!e||!e.endsWith("/aclk")||_.Hb(X,"ri")!=="1");break b}}catch(p){}y=!1}if(y){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(X,"")){var V=!0;break b}}catch(p){}V=!1}V?(H&&H(),l=!0):l=!1}else l=!1;l||qlO(X,H)}};
qlO=function(X,H,l){l=l===void 0?{}:l;var b=new Image,U=""+uR8++;eoL[U]=b;b.onload=b.onerror=function(){H&&eoL[U]&&H();delete eoL[U]};
l.scrubReferrer&&(b.referrerPolicy="no-referrer");b.src=X};
ZS=function(X,H){yaZ(X,H==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
Vwz=function(X){var H;return((H=document.featurePolicy)==null?0:H.allowedFeatures().includes("attribution-reporting"))?X+"&nis=6":X+"&nis=5"};
Pvz=function(X){if(!X)return!1;try{var H;if(((H=_.mu(X))==null?void 0:H.asm)==="4")return!0}catch(l){_.a0(l)}return!1};
yaZ=function(X,H){H?(X=Vwz(X),_.aw(X,void 0,void 0,void 0,"",!0,!0)):_.aw(X)};
p5y=function(){fpy||(fpy=new _.DS("yt.offline"));return fpy};
Slz=function(X){if(_.P("offline_error_handling")){var H=p5y().get("errors",!0)||{};H[X.message]={name:X.name,stack:X.stack};X.level&&(H[X.message].level=X.level);p5y().set("errors",H,2592E3,!0)}};
nlL=function(X,H,l,b){b=b===void 0?!1:b;H=_.P("web_fp_via_jspb")?Object.assign({},H):H;_.P("use_cfr_monitor")&&zol(X,H);if(_.P("use_request_time_ms_header"))H.headers&&Nk(X)&&(H.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Jl)())));else{var U;if((U=H.postParams)==null?0:U.requestTimeMs)H.postParams.requestTimeMs=Math.round((0,_.Jl)())}l&&Object.keys(H).length===0?_.aw(X):H.compress?H.postBody?(typeof H.postBody!=="string"&&(H.postBody=JSON.stringify(H.postBody)),ic8(X,H.postBody,
H,_.Kt,b)):ic8(X,JSON.stringify(H.postParams),H,rY8,b):_.Kt(X,H)};
k0Z=function(X,H){_.P("use_event_time_ms_header")&&Nk(X)&&(H.headers||(H.headers={}),H.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Jl)())));return H};
_.Dqk=function(){xqy||(xqy=new _.iM({logOfflineErrors:!0,enablePolling:!0}));return xqy};
zol=function(X,H){var l=H.onError?H.onError:function(){};
H.onError=function(U,K){vB().requestComplete(X,!1);l(U,K)};
var b=H.onSuccess?H.onSuccess:function(){};
H.onSuccess=function(U,K){vB().requestComplete(X,!0);b(U,K)}};
_.twz=function(){return _.Nb(document.location.toString())!=="www.youtube-nocookie.com"};
_.glO=function(){return _.ij("ytNetworklessLoggingInitializationOptions")?_.Way.isNwlInitialized:_.Ely};
G0Z=function(X,H){if(_.P("polymer_on_demand_shady_dom")){var l;var b=(l=X.__shady_native_firstElementChild)!=null?l:X.firstElementChild}else b=X.firstElementChild;for(;b;){if(X=H(b)?b:G0Z(b,H))return X;b=b.nextElementSibling}return null};
_.Zqm=function(){var X=document;if("visibilityState"in X)return X.visibilityState;var H=apb+"VisibilityState";if(H in X)return X[H]};
_.iqy=function(X,H){var l;O4(X,function(b){l=H[b];return!!l});
return l};
_.Qi=function(X){var H=vl8(X);H?H.focus(void 0):_.mQ(X)};
vl8=function(X){return(X=G0Z(X,function(H){return _.rv(H)?Oqb(H)&&!!H.offsetParent:!1}))?X:null};
_.mQ=function(X,H){X.hasAttribute("tabindex")||X.setAttribute("tabindex","-1");X.focus(H)};
mqN=function(X,H,l,b){b=b===void 0?{}:b;X.addEventListener&&(H!="mouseenter"||"onmouseenter"in document?H!="mouseleave"||"onmouseenter"in document?H=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(H="MozMousePixelScroll"):H="mouseout":H="mouseover");return _.Bb.findKey(Td,function(U){var K=typeof U[4]==="boolean"&&U[4]==!!b,w=_.r8(U[4])&&_.r8(b)&&_.Bb.equals(U[4],b);return!!U.length&&U[0]==X&&U[1]==H&&U[2]==l&&(K||w)})};
_.cB=function(X,H,l,b){b=b===void 0?{}:b;if(!X||!X.addEventListener&&!X.attachEvent)return"";var U=mqN(X,H,l,b);if(U)return U;U=++Q1y.count+"";var K=!(H!="mouseenter"&&H!="mouseleave"||!X.addEventListener||"onmouseenter"in document);var w=K?function(d){d=new NK(d);if(!_.yo(d.relatedTarget,function(B){return B==X},!0))return d.currentTarget=X,d.type=H,l.call(X,d)}:function(d){d=new NK(d);
d.currentTarget=X;return l.call(X,d)};
w=_.ZR(w);X.addEventListener?(H=="mouseenter"&&K?H="mouseover":H=="mouseleave"&&K?H="mouseout":H=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(H="MozMousePixelScroll"),TC8()||typeof b==="boolean"?X.addEventListener(H,w,b):X.addEventListener(H,w,!!b.capture)):X.attachEvent("on"+H,w);Td[U]=[X,H,l,w,b];return U};
_.cay=function(X,H,l){var b=b===void 0?{}:b;var U=_.cB(X,H,function(){_.NCy(U);l.apply(X,arguments)},b)};
_.NCy=function(X){X&&(typeof X=="string"&&(X=[X]),_.Ot(X,function(H){if(H in Td){var l=Td[H],b=l[0],U=l[1],K=l[3];l=l[4];b.removeEventListener?TC8()||typeof l==="boolean"?b.removeEventListener(U,K,l):b.removeEventListener(U,K,!!l.capture):b.detachEvent&&b.detachEvent("on"+U,K);delete Td[H]}}))};
js=function(X){this.callback_=X;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(X=0;X<4;X++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.cB(window,"mousemove",(0,_.K8)(this.onMouseMove_,this));this.timerId_=_.UZ((0,_.K8)(this.checkPosition_,this),25)};
Jay=function(){var X={};var H=X.preferMobileEvents===void 0?!1:X.preferMobileEvents;X=X.enableScrollEventListener===void 0?!0:X.enableScrollEventListener;if(_.ij("_lact",window)==null){var l=parseInt(_.gx("LACT"),10);l=isFinite(l)?Date.now()-Math.max(l,0):-1;_.cQ("_lact",l,window);_.cQ("_fact",l,window);l==-1&&_.rn();j1y(window,H,X);new js(function(){ral("mouse",100)})}};
j1y=function(X,H,l){H=H===void 0?!1:H;l=l===void 0?!0:l;_.cB(X.document,"keydown",_.rn);_.cB(X.document,"keyup",_.rn);_.cB(X.document,"mousedown",_.rn);_.cB(X.document,"mouseup",_.rn);H?_.cB(X,"touchmove",function(){ral("touchmove",200)},{passive:!0}):(_.cB(X,"resize",function(){ral("resize",200)}),l&&_.cB(X,"scroll",function(){ral("scroll",200)}));
_.cB(X.document,"touchstart",_.rn,{passive:!0});_.cB(X.document,"touchend",_.rn,{passive:!0})};
ral=function(X,H){Lab[X]||(Lab[X]=!0,_.Ss.addLowPriorityJob(function(){_.rn();Lab[X]=!1},H))};
_.rn=function(){_.ij("_lact",window)==null&&Jay();var X=Date.now();_.cQ("_lact",X,window);_.ij("_fact",window)==-1&&_.cQ("_fact",X,window);(X=_.ij("ytglobal.ytUtilActivityCallback_"))&&X()};
_.JV=function(){var X=_.ij("_lact",window);return X==null?-1:Math.max(Date.now()-X,0)};
_.AV=function(X,H,l){var b=_.LU();if(b&&H){var U=b.subscribe(X,function(){var K=arguments,w=function(){YV[U]&&H.apply&&typeof H.apply=="function"&&H.apply(l||window,K)};
try{_.Yly[X]?w():_.b0(w,0)}catch(d){_.a0(d)}},l);
YV[U]=!0;Iw[X]||(Iw[X]=[]);Iw[X].push(U);return U}return 0};
_.Ipk=function(X){var H=_.LU();H&&(typeof X==="number"?X=[X]:typeof X==="string"&&(X=[parseInt(X,10)]),_.Ot(X,function(l){H.unsubscribeByKey(l);delete YV[l]}))};
_.AaN=function(X,H){var l=_.LU();l&&l.publish.apply(l,arguments)};
_.Hlk=function(X){var H=_.LU();if(H)if(H.clear(X),X)XSO(X);else for(var l in Iw)XSO(l)};
_.LU=function(){return _.ok.ytPubsubPubsubInstance};
XSO=function(X){Iw[X]&&(X=Iw[X],_.Ot(X,function(H){YV[H]&&delete YV[H]}),X.length=0)};
lHO=function(){var X,H;return"h5vcc"in Xl&&((X=Xl.h5vcc.traceEvent)==null?0:X.traceBegin)&&((H=Xl.h5vcc.traceEvent)==null?0:H.traceEnd)?1:"performance"in Xl&&Xl.performance.mark&&Xl.performance.measure?2:0};
ojy=function(X){var H=lHO();switch(H){case 1:Xl.h5vcc.traceEvent.traceBegin("YTLR",X);break;case 2:Xl.performance.mark(X+"-start");break;case 0:break;default:_.Hp(H,"unknown trace type")}};
blh=function(X){var H=lHO();switch(H){case 1:Xl.h5vcc.traceEvent.traceEnd("YTLR",X);break;case 2:H=X+"-start";var l=X+"-end";Xl.performance.mark(l);Xl.performance.measure(X,H,l);break;case 0:break;default:_.Hp(H,"unknown trace type")}};
UnO=function(X){var H,l;(l=(H=window).onerror)==null||l.call(H,X.message,"",0,0,X)};
$nK=function(X){if(_.P("web_lifecycle_error_handling_killswitch"))return X();try{return X()}catch(H){UnO(H)}};
Ky8=function(X){return[X.auth===void 0?"undefined":X.auth,X.isJspb===void 0?"undefined":X.isJspb,X.cttAuthInfo===void 0?"undefined":X.cttAuthInfo,X.tier===void 0?"undefined":X.tier].join("/")};
_.f=function(X,H){if(X)return X[H.name]};
lk=function(){var X=_.ij("yt.logging.ims");X||(X=new HD,_.cQ("yt.logging.ims",X));return X};
sql=function(X,H){if(X.endpoint==="log_event"){Ril(X);var l=CEz(X),b=wSl(X.payload)||"",U=dnm(b),K=200;if(U){if(U.enabled===!1&&!_.P("web_payload_policy_disabled_killswitch"))return;K=hi8(U.tier);if(K===400){FyO(X,H);return}}oL[l]=!0;l={cttAuthInfo:l,isJspb:!1,tier:K};lk().storePayload(l,X.payload);Bdy(H,!1,l,qmZ(b))}};
u8K=function(X,H,l){if(H.endpoint==="log_event"){Ril(void 0,H);var b=CEz(H,!0),U=dnm(X),K=200;if(U){if(U.enabled===!1&&!_.P("web_payload_policy_disabled_killswitch"))return;K=hi8(U.tier);if(K===400){M2m(X,H,l);return}}oL[b]=!0;b={cttAuthInfo:b,isJspb:!0,tier:K};lk().storePayload(b,vp(H.payload));Bdy(l,!0,b,qmZ(X))}};
Bdy=function(X,H,l,b){H=H===void 0?!1:H;b=b===void 0?!1:b;X&&(bk=new X);X=_.Yy("tvhtml5_logging_max_batch_ads_fork")||_.Yy("tvhtml5_logging_max_batch")||_.Yy("web_logging_max_batch")||100;var U=(0,_.Jl)(),K=eiy(H,l.tier),w=K.lastDebounceQueueFromLogTimeMs;b&&(K.useVideoStatsEndPoint=!0);b=0;l&&(b=lk().getSequenceCount(l));var d=function(){ywm({writeThenSend:!0},H,l.tier)};
b>=1E3?d():b>=X?V2b||(V2b=PEy(function(){d();V2b=void 0},0)):U-w>=10&&(fHK(H,l.tier),K.lastDebounceQueueFromLogTimeMs=U)};
FyO=function(X,H){if(X.endpoint==="log_event"){_.P("more_accurate_gel_parser")&&lk().storePayload({isJspb:!1},X.payload);Ril(X);var l=CEz(X),b=new Map;b.set(l,[X.payload]);var U=wSl(X.payload)||"";H&&(bk=new H);return new _.UA(function(K,w){bk&&bk.isReady()?pSm(b,bk,K,w,{bypassNetworkless:!0},!0,qmZ(U)):K()})}};
M2m=function(X,H,l){if(H.endpoint==="log_event"){Ril(void 0,H);var b=CEz(H,!0),U=new Map;U.set(b,[vp(H.payload)]);l&&(bk=new l);return new _.UA(function(K){bk&&bk.isReady()?Smz(U,bk,K,{bypassNetworkless:!0},!0,qmZ(X)):K()})}};
CEz=function(X,H){var l="";if(X.dangerousLogToVisitorSession)l="visitorOnlyApprovedKey";else if(X.cttAuthInfo){if(H===void 0?0:H){H=X.cttAuthInfo.token;l=X.cttAuthInfo;var b=new zik;l.videoId?b.setVideoId(l.videoId):l.playlistId&&$2(b,2,njL,xU(l.playlistId));kEy[H]=b}else H=X.cttAuthInfo,l={},H.videoId?l.videoId=H.videoId:H.playlistId&&(l.playlistId=H.playlistId),xnZ[X.cttAuthInfo.token]=l;l=X.cttAuthInfo.token}return l};
ywm=function(X,H,l){X=X===void 0?{}:X;H=H===void 0?!1:H;new _.UA(function(b,U){var K=eiy(H,l),w=K.useVideoStatsEndPoint;K.useVideoStatsEndPoint=!1;Dnz(K.queueTimer);Dnz(K.queueMaxTimer);K.queueMaxTimer=0;bk&&bk.isReady()?l===void 0&&_.P("enable_web_tiered_gel")?t2O(b,U,X,H,300,w):t2O(b,U,X,H,l,w):(fHK(H,l),b())})};
t2O=function(X,H,l,b,U,K){var w=bk;l=l===void 0?{}:l;b=b===void 0?!1:b;U=U===void 0?200:U;K=K===void 0?!1:K;var d=new Map,B=new Map,q={isJspb:b,cttAuthInfo:void 0,tier:U},u={isJspb:b,cttAuthInfo:void 0};if(b){H=_.C(Object.keys(oL));for(U=H.next();!U.done;U=H.next())U=U.value,B=_.P("enable_web_tiered_gel")?lk().smartExtractMatchingEntries({keys:[q,u],sizeLimit:1E3}):lk().extractMatchingEntries({isJspb:!0,cttAuthInfo:U}),B.length>0&&d.set(U,B),(_.P("web_fp_via_jspb_and_json")&&l.writeThenSend||!_.P("web_fp_via_jspb_and_json"))&&
delete oL[U];Smz(d,w,X,l,!1,K)}else{d=_.C(Object.keys(oL));for(q=d.next();!q.done;q=d.next())q=q.value,u=_.P("enable_web_tiered_gel")?lk().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:q,tier:U},{isJspb:!1,cttAuthInfo:q}],sizeLimit:1E3}):lk().extractMatchingEntries({isJspb:!1,cttAuthInfo:q}),u.length>0&&B.set(q,u),(_.P("web_fp_via_jspb_and_json")&&l.writeThenSend||!_.P("web_fp_via_jspb_and_json"))&&delete oL[q];pSm(B,w,X,H,l,!1,K)}};
fHK=function(X,H){X=X===void 0?!1:X;H=H===void 0?200:H;var l=function(){ywm({writeThenSend:!0},X,H)},b=eiy(X,H),U=b===WyZ||b===Ejh?5E3:gjL;
_.P("web_gel_timeout_cap")&&!b.queueMaxTimer&&(U=PEy(function(){l()},U),b.queueMaxTimer=U);
Dnz(b.queueTimer);U=_.gx("LOGGING_BATCH_TIMEOUT",_.Yy("web_gel_debounce_ms",1E4));_.P("shorten_initial_gel_batch_timeout")&&GEN&&(U=aHl);U=PEy(function(){_.Yy("gel_min_batch_size")>0?lk().getSequenceCount({cttAuthInfo:void 0,isJspb:X,tier:H})>=Zly&&l():l()},U);
b.queueTimer=U};
pSm=function(X,H,l,b,U,K,w){U=U===void 0?{}:U;var d=Math.round((0,_.Jl)()),B=X.size,q=ily(w);X=_.C(X);var u=X.next();for(w={};!u.done;w={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},u=X.next()){var e=_.C(u.value);u=e.next().value;e=e.next().value;w.batchRequest=_.Bb.unsafeClone({context:_.M4m(H.config_||_.IF())});if(!_.ch(e)&&!_.P("throw_err_when_logevent_malformed_killswitch")){b();break}w.batchRequest.events=e;
(e=xnZ[u])&&vjy(w.batchRequest,u,e);delete xnZ[u];w.dangerousLogToVisitorSession=u==="visitorOnlyApprovedKey";Olz(w.batchRequest,d,w.dangerousLogToVisitorSession);mnO(U);w.onSuccess$jscomp$3=function(y){_.P("start_client_gcf")&&_.Ss.addLowPriorityJob(function(){return _.h(function(V){return V.yield(Qqz(y),0)})});
B--;B||l()};
w.networkFailures=0;w.onError$jscomp$5=function(y){return function(){y.networkFailures++;if(U.bypassNetworkless&&y.networkFailures===1)try{YqZ(H,q,y.batchRequest,TdZ({writeThenSend:!0},y.dangerousLogToVisitorSession,y.onSuccess$jscomp$3,y.onError$jscomp$5,K)),GEN=!1}catch(V){_.a0(V),b()}B--;B||l()}}(w);
try{YqZ(H,q,w.batchRequest,TdZ(U,w.dangerousLogToVisitorSession,w.onSuccess$jscomp$3,w.onError$jscomp$5,K)),GEN=!1}catch(y){_.a0(y),b()}}};
Smz=function(X,H,l,b,U,K){b=b===void 0?{}:b;var w=Math.round((0,_.Jl)()),d={value:X.size},B=new Map([].concat(_.LJ(X)));B=_.C(B);for(var q=B.next();!q.done;q=B.next()){var u=_.C(q.value).next().value,e=X.get(u);q=new K2;var y=H.config_||_.IF(),V=new RL,p=new Ndm;_.KY(p,1,y.innertubeContextHostLanguage);_.KY(p,2,y.innertubeContextGeoLocation);_.X$(p,16,y.innertubeContextClientNameFieldNumber);_.KY(p,17,y.innertubeContextClientVersion);if(y.innertubeContextClientConfigInfo){var z=y.innertubeContextClientConfigInfo,
t=new lM;z.coldConfigData&&_.KY(t,1,z.coldConfigData);z.appInstallData&&_.KY(t,6,z.appInstallData);z.coldHashData&&_.KY(t,3,z.coldHashData);z.hotHashData&&t.setHotHashData(z.hotHashData);_.go(p,62,t)}(z=_.ok.devicePixelRatio)&&z!=1&&_.HB(p,65,_.lx(z));z=gB8();z!==""&&_.KY(p,54,z);z=Guh();if(z.length>0){t=new cwh;for(var W=0;W<z.length;W++){var G=new C2;G.setKey(z[W].key);$2(G,2,jqh,xU(z[W].value));wU(t,15,C2,G)}_.go(V,5,t)}dwy(y,p);hK8(V);FhW(p);BuZ(y,p);qib(p);_.P("start_client_gcf")&&s6N(p);_.gx("DELEGATED_SESSION_ID")&&
!_.P("pageid_as_header_web")&&(y=new dU,_.KY(y,3,_.gx("DELEGATED_SESSION_ID")));!_.P("fill_delegate_context_in_gel_killswitch")&&(z=_.gx("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(t=_.Al(V,dU,3)||new dU,y=V,z=_.KY(t,18,z),_.go(y,3,z));y=p;z=_.C(Object.entries(_.mu(_.gx("DEVICE",""))));for(t=z.next();!t.done;t=z.next())W=_.C(t.value),t=W.next().value,W=W.next().value,t==="cbrand"?_.KY(y,12,W):t==="cmodel"?_.KY(y,13,W):t==="cbr"?_.KY(y,87,W):t==="cbrver"?_.KY(y,88,W):t==="cos"?_.KY(y,18,
W):t==="cosver"?_.KY(y,19,W):t==="cplatform"&&_.X$(y,42,doK(W));V.setClient(p);_.go(q,1,V);if(p=kEy[u])a:{if(_.Aj(p,Fl(p,njL,1)))V=1;else if(p.getPlaylistId())V=2;else break a;_.go(q,4,p);p=q.getContext()||new RL;y=_.Al(p,dU,3)||new dU;z=new BD;z.setToken(u);_.X$(z,1,V);wU(y,12,BD,z);_.go(p,3,y)}delete kEy[u];u=u==="visitorOnlyApprovedKey";rwk()||_.qp(q,2,w);!u&&(V=_.gx("EVENT_ID"))&&(p=JwW(),y=new Lyy,_.KY(y,1,V),_.qp(y,2,p),_.go(q,5,y));mnO(b);if(_.P("jspb_serialize_with_worker")&&(V=_.nDZ())&&
b.writeThenSend){_.Ymk.set(IHy,{client:H,resolve:l,networklessOptions:b,isIsolated:U,useVSSEndpoint:K,dangerousLogToVisitorSession:u,requestsOutstanding:d});V.postMessage({op:"gelBatchToSerialize",batchRequest:vp(q),clientEvents:e,key:IHy});IHy++;break}if(e){V=[];for(p=0;p<e.length;p++)try{V.push(new uk(e[p]))}catch(r){_.a0(new _.qd("Transport failed to deserialize "+String(e[p])))}e=V}else e=[];e=_.C(e);for(V=e.next();!V.done;V=e.next())wU(q,3,uk,V.value);e={startTime:(0,_.Jl)(),ticks:{},infos:{}};
q=q.serialize();e.ticks.geljspc=(0,_.Jl)();_.P("log_jspb_serialize_latency")&&P9l("gel_jspb_serialize",e,{sampleRate:.1});_.Awl(q,H,l,b,U,K,u,d)}};
_.Awl=function(X,H,l,b,U,K,w,d){b=b===void 0?{}:b;d=d===void 0?{value:0}:d;K=ily(K);b=TdZ(b,w,function(B){_.P("start_client_gcf")&&_.Ss.addLowPriorityJob(function(){return _.h(function(q){return q.yield(Qqz(B),0)})});
d.value--;d.value||l()},function(){d.value--;
d.value||l()},U);
b.headers["Content-Type"]="application/json+protobuf";b.postBodyFormat="JSPB";b.postBody=X;YqZ(H,K,"",b);GEN=!1};
mnO=function(X){_.P("always_send_and_write")&&(X.writeThenSend=!1)};
TdZ=function(X,H,l,b,U){X={retry:!0,onSuccess:l,onError:b,networklessOptions:X,dangerousLogToVisitorSession:H,bypassMonitoring:!!U,headers:{},postBodyFormat:"",postBody:"",compress:_.P("compress_gel")||_.P("compress_gel_lr")};rwk()&&(X.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Jl)())));return X};
Olz=function(X,H,l){rwk()||(X.requestTimeMs=String(H));_.P("unsplit_gel_payloads_in_logs")&&(X.unsplitGelPayloadsInLogs=!0);!l&&(H=_.gx("EVENT_ID"))&&(l=JwW(),X.serializedClientEventId={serializedEventId:H,clientCounter:String(l)})};
JwW=function(){var X=_.gx("BATCH_CLIENT_COUNTER")||0;X||(X=Math.floor(Math.random()*65535/2));X++;X>65535&&(X=1);_.Et("BATCH_CLIENT_COUNTER",X);return X};
vjy=function(X,H,l){if(l.videoId)var b="VIDEO";else if(l.playlistId)b="PLAYLIST";else return;X.credentialTransferTokenTargetId=l;X.context=X.context||{};X.context.user=X.context.user||{};X.context.user.credentialTransferTokens=[{token:H,scope:b}]};
Ril=function(X,H){var l=_.I0("il_payload_scraping")==="enable_il_payload_scraping";if(!_.ij("yt.logging.transport.enableScrapingForTest"))if(l)X6z=[],_.cQ("yt.logging.transport.enableScrapingForTest",!0),_.cQ("yt.logging.transport.scrapedPayloadsForTesting",X6z),_.cQ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.cQ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.cQ("yt.logging.transport.scrapeClientEvent",!0);else return;l=_.ij("yt.logging.transport.scrapedPayloadsForTesting");var b=_.ij("yt.logging.transport.payloadToScrape");H&&(H=_.ij("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(H.payload)())&&l.push(H);H=_.ij("yt.logging.transport.scrapeClientEvent");if(b&&b.length>=1)for(var U=0;U<b.length;U++)if(X&&X.payload[b[U]])if(H)l.push(X.payload);else{var K=void 0;l.push(((K=X)==null?void 0:K.payload)[b[U]])}_.cQ("yt.logging.transport.scrapedPayloadsForTesting",
l)};
rwk=function(){return _.P("use_request_time_ms_header")||_.P("lr_use_request_time_ms_header")};
PEy=function(X,H){return _.P("transport_use_scheduler")===!1?_.b0(X,H):_.P("logging_avoid_blocking_during_navigation")||_.P("lr_logging_avoid_blocking_during_navigation")?_.eh(_.Ss,function(){if(_.HSk().currentState==="none")X();else{var l={};_.HSk().install((l.none={callback:X},l))}},H):_.eh(_.Ss,X,H)};
Dnz=function(X){_.P("transport_use_scheduler")?_.Ss.cancelJob(X):_.$r(X)};
Qqz=function(X){var H,l,b,U,K,w,d,B,q,u,e,y,V,p,z;return _.h(function(t){if(t.nextAddress==1)return b=(H=X)==null?void 0:(l=H.responseContext)==null?void 0:l.globalConfigGroup,U=_.f(b,lIK),w=(K=b)==null?void 0:K.hotHashData,d=_.f(b,o$l),q=(B=b)==null?void 0:B.coldHashData,(u=_.jJ().resolve(_.c$(yJ)))?w?U?t.yield(bSm(u,w,U),3):t.yield(bSm(u,w),3):t.jumpTo(3):t.jumpTo(2);if(t.nextAddress!=2)return q?d?t.yield(UhZ(u,q,d),2):t.yield(UhZ(u,q),2):t.jumpTo(2);y=(e=b)==null?void 0:e.rawFinchStaticConfigGroup;
p=(V=b)==null?void 0:V.finchStaticHashData;if(!p)return y&&_.v$(new _.qd("Finch config data is present, but hash is missing.")),t.return();z=_.jJ().resolve(_.c$($hO));return z?t.yield(z.processAndSetFinchConfig({config:y||{},configHash:p||""}),0):((y||p)&&_.v$(new _.qd("FinchConfigManagerService is not present, but Finch config data is present.")),t.jumpTo(0))})};
eiy=function(X,H){H=H===void 0?200:H;return X?H===300?WyZ:KCL:H===300?Ejh:Rhz};
dnm=function(X){if(_.P("enable_web_tiered_gel")){X=C4y[X||""];var H,l,b,U=_.jJ().resolve(_.c$(yJ))==null?void 0:(H=VJ())==null?void 0:(l=H.loggingHotConfig)==null?void 0:(b=l.eventLoggingConfig)==null?void 0:b.payloadPolicies;if(U)for(H=0;H<U.length;H++)if(U[H].payloadNumber===X)return U[H]}};
wSl=function(X){X=Object.keys(X);X=_.C(X);for(var H=X.next();!H.done;H=X.next())if(H=H.value,C4y[H])return H};
hi8=function(X){switch(X){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}};
qmZ=function(X){return X==="gelDebuggingEvent"};
ily=function(X){return(X===void 0?0:X)&&_.P("vss_through_gel_video_stats")?"video_stats":"log_event"};
f2=function(X,H,l,b){b=b===void 0?{}:b;var U={},K=Math.round(b.timestamp||(0,_.Jl)());U.eventTimeMs=K<Number.MAX_SAFE_INTEGER?K:0;U[X]=H;X=_.JV();U.context={lastActivityMs:String(b.timestamp||!isFinite(X)?-1:X)};b.sequenceGroup&&!_.P("web_gel_sequence_info_killswitch")&&(X=U.context,H=b.sequenceGroup,H={index:w6y(H),groupKey:H},X.sequence=H,b.endOfSequence&&delete PD[b.sequenceGroup]);_.P("web_tag_automated_log_events")&&(U.context.automatedLogEventSource=b.automatedLogEventSource);(b.sendIsolatedPayload?
FyO:sql)({endpoint:"log_event",payload:U,cttAuthInfo:b.cttAuthInfo,dangerousLogToVisitorSession:b.dangerousLogToVisitorSession},l)};
w6y=function(X){PD[X]=X in PD?PD[X]+1:0;return PD[X]};
_.Sh=function(X,H,l){l=l===void 0?{}:l;var b=p2;_.G7("ytLoggingEventsDefaultDisabled",!1)&&p2===p2&&(b=null);f2(X,H,b,l)};
_.z3=function(){if(_.P("web_fp_via_jspb")){var X=!0;X=X===void 0?!1:X;var H=dhh;dhh=[];if(H){H=_.C(H);for(var l=H.next();!l.done;l=H.next())l=l.value,X?f2(l.payloadName,l.payload,p2,l.options):_.Sh(l.payloadName,l.payload,l.options)}ywm(void 0,!0);if(!_.P("web_fp_via_jspb_and_json"))return}ywm(void 0,!1)};
hhK=function(X,H){var l;if((l=H)==null?0:l.componentStack)return H;if(X=X.componentStack)H||(H={}),H.componentStack=X;return H};
FCW=function(){_.Ot(_.gx("ERRORS")||[],function(X){_.n2.apply(null,X)});
_.Et("ERRORS",[])};
_.k2=function(X){_.n2(X)};
_.x2=function(X){_.n2(X,"WARNING")};
Bjl=function(X){X instanceof Error?_.n2(X):(X=_.r8(X)?JSON.stringify(X):String(X),X=new _.qd(X),X.name="RejectedPromiseError",_.x2(X))};
qsl=function(X,H,l,b,U,K){H=H===void 0?"Unknown file":H;l=l===void 0?0:l;var w=!1,d=BcL("log_window_onerror_fraction");if(d&&Math.random()<d)w=!0;else{d=document.getElementsByTagName("script");for(var B=0,q=d.length;B<q;B++)if(d[B].src.indexOf("/debug-")>0){w=!0;break}}w&&(w=!1,U?w=!0:(typeof X==="string"?d=X:ErrorEvent&&X instanceof ErrorEvent?(w=!0,d=X.message,H=X.filename,l=X.lineno,b=X.colno):(d="Unknown error",H="Unknown file",l=0),U=new _.qd(d),U.name="UnhandledWindowError",U.message=d,U.fileName=
H,U.lineNumber=l,isNaN(b)?delete U.columnNumber:U.columnNumber=b),_.P("wiz_enable_component_stack_propagation_killswitch")||(K=hhK(U,K)),K&&_.Dq(U,K),w?_.n2(U):_.x2(U))};
_.n2=function(X,H,l,b,U,K,w,d){K=K===void 0?{}:K;K.name=l||_.gx("INNERTUBE_CONTEXT_CLIENT_NAME",1);K.version=b||_.gx("INNERTUBE_CONTEXT_CLIENT_VERSION");l=K;H=H===void 0?"ERROR":H;w=w===void 0?!1:w;H=H===void 0?"ERROR":H;w=w===void 0?!1:w;if(X&&(X.hasOwnProperty("level")&&X.level&&(H=X.level),_.P("console_log_js_exceptions")&&(b=[],b.push("Name: "+X.name),b.push("Message: "+X.message),X.hasOwnProperty("params")&&b.push("Error Params: "+JSON.stringify(X.params)),X.hasOwnProperty("args")&&b.push("Error args: "+
JSON.stringify(X.args)),b.push("File name: "+X.fileName),b.push("Stacktrace: "+X.stack),b=b.join("\n"),window.console.log(b,X)),!(ssk>=5))){b=[];U=_.C(Muk);for(K=U.next();!K.done;K=U.next()){K=K.value;try{K()&&b.push(K())}catch(t){}}b=[].concat(_.LJ(uAy),_.LJ(b));var B=ehW(X);U=B.message||"Unknown Error";K=B.name||"UnknownError";var q=B.stack||X.stacktrace||"Not available";if(q.startsWith(K+": "+U)){var u=q.split("\n");u.shift();q=u.join("\n")}u=B.lineNumber||"Not available";B=B.fileName||"Not available";
var e=0;if(X.hasOwnProperty("args")&&X.args&&X.args.length)for(var y=0;y<X.args.length&&!(e=wFh(X.args[y],"params."+y,l,e),e>=500);y++);else if(X.hasOwnProperty("params")&&X.params){var V=X.params;if(typeof X.params==="object")for(y in V){if(V[y]){var p="params."+y,z=Ct(V[y]);l[p]=z;e+=p.length+z.length;if(e>500)break}}else l.params=Ct(V)}if(b.length)for(y=0;y<b.length&&!(e=wFh(b[y],"params.context."+y,l,e),e>=500);y++);navigator.vendor&&!l.hasOwnProperty("vendor")&&(l["device.vendor"]=navigator.vendor);
y={message:U,name:K,lineNumber:u,fileName:B,stack:q,params:l,sampleWeight:1};l=Number(X.columnNumber);isNaN(l)||(y.lineNumber=y.lineNumber+":"+l);if(X.level==="IGNORED")X=0;else a:{X=y5y();l=_.C(X.messageWeights);for(b=l.next();!b.done;b=l.next())if(b=b.value,y.message&&y.message.match(b.messageRegExp)){X=b.weight;break a}X=_.C(X.callbackWeights);for(l=X.next();!l.done;l=X.next())if(l=l.value,l.callback(y)){X=l.weight;break a}X=1}y.sampleWeight=X;X=_.C(VuK);for(l=X.next();!l.done;l=X.next())if(l=
l.value,l.patternsForType[y.name])for(U=_.C(l.patternsForType[y.name]),b=U.next();!b.done;b=U.next())if(K=b.value,b=y.message.match(K.regexp)){y.params["params.error.original"]=b[0];U=K.groups;K={};for(u=0;u<U.length;u++)K[U[u]]=b[u+1],y.params["params.error."+U[u]]=b[u+1];y.message=l.messageFn(K);break}y.params||(y.params={});X=y5y();y.params["params.errorServiceSignature"]="msg="+X.messageWeights.length+"&cb="+X.callbackWeights.length;y.params["params.serviceWorker"]="false";_.ok.document&&_.ok.document.querySelectorAll&&
(y.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new tS(P4z,"sample")).constructor!==tS&&(y.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(y);if(y.sampleWeight!==0&&!fIy.has(y.message)){if(w)p6z(H===void 0?"ERROR":H,y);else{H=H===void 0?"ERROR":H;H==="ERROR"?(WD.publish("handleError",y),_.P("record_app_crashed_web")&&Ssh===0&&y.sampleWeight===1&&(Ssh++,w={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.P("report_client_error_with_app_crash_ks")||
(w.systemHealth={crashData:{clientError:{logMessage:{message:y.message}}}}),_.Sh("appCrashed",w)),zhy++):H==="WARNING"&&WD.publish("handleWarning",y);if(_.P("kevlar_gel_error_routing")){w=H;d=d===void 0?{}:d;b:{X=_.C(n$z);for(l=X.next();!l.done;l=X.next())if(kr(l.value.toLowerCase())){X=!0;break b}X=!1}if(X)d=void 0;else{l={stackTrace:y.stack};y.fileName&&(l.filename=y.fileName);X=y.lineNumber&&y.lineNumber.split?y.lineNumber.split(":"):[];X.length!==0&&(X.length!==1||isNaN(Number(X[0]))?X.length!==
2||isNaN(Number(X[0]))||isNaN(Number(X[1]))||(l.lineNumber=Number(X[0]),l.columnNumber=Number(X[1])):l.lineNumber=Number(X[0]));X={level:"ERROR_LEVEL_UNKNOWN",message:y.message,errorClassName:y.name,sampleWeight:y.sampleWeight};w==="ERROR"?X.level="ERROR_LEVEL_ERROR":w==="WARNING"&&(X.level="ERROR_LEVEL_WARNNING");l={isObfuscated:!0,browserStackInfo:l};d.pageUrl=window.location.href;d.kvPairs=[];_.gx("FEXP_EXPERIMENTS")&&(d.experimentIds=_.gx("FEXP_EXPERIMENTS"));b=_.gx("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!BcL("web_disable_gel_stp_ecatcher_killswitch")&&b)for(U=_.C(Object.keys(b)),K=U.next();!K.done;K=U.next())K=K.value,d.kvPairs.push({key:K,value:String(b[K])});if(b=y.params)for(U=_.C(Object.keys(b)),K=U.next();!K.done;K=U.next())K=K.value,d.kvPairs.push({key:"client."+K,value:String(b[K])});b=_.gx("SERVER_NAME");U=_.gx("SERVER_VERSION");b&&U&&(d.kvPairs.push({key:"server.name",value:b}),d.kvPairs.push({key:"server.version",value:U}));d={errorMetadata:d,stackTrace:l,logMessage:X}}d&&(_.Sh("clientError",
d),(w==="ERROR"||_.P("errors_flush_gel_always_killswitch"))&&_.z3())}_.P("suppress_error_204_logging")||p6z(H,y)}try{fIy.add(y.message)}catch(t){}ssk++}}};
p6z=function(X,H){var l=H.params||{};X={urlParams:{a:"logerror",t:"jserror",type:H.name,msg:H.message.substr(0,250),line:H.lineNumber,level:X,"client.name":l.name},postParams:{url:_.gx("PAGE_NAME",window.location.href),file:H.fileName},method:"POST"};l.version&&(X["client.version"]=l.version);if(X.postParams){H.stack&&(X.postParams.stack=H.stack);H=_.C(Object.keys(l));for(var b=H.next();!b.done;b=H.next())b=b.value,X.postParams["client."+b]=l[b];if(l=_.gx("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(H=
_.C(Object.keys(l)),b=H.next();!b.done;b=H.next())b=b.value,X.postParams[b]=l[b];(l=_.gx("LAVA_VERSION"))&&(X.postParams["lava.version"]=l);l=_.gx("SERVER_NAME");H=_.gx("SERVER_VERSION");l&&H&&(X.postParams["server.name"]=l,X.postParams["server.version"]=H)}_.Kt(_.gx("ECATCHER_REPORT_HOST","")+"/error_204",X)};
_.keb=function(X,H){H=H===void 0?"ERROR":H;var l=l===void 0?{}:l;var b=_.ij("ytbin.polymer.shared.lib.tampering.info");b&&(b=b())&&(l["params.tamperingInfo"]=b.sort().join(","));_.n2(X,H,void 0,void 0,!0,l)};
_.Dq=function(X){var H=_.Ab.apply(1,arguments);X.args||(X.args=[]);Array.isArray(X.args)&&X.args.push.apply(X.args,_.LJ(H))};
xhK=function(X){X.level="IGNORED"};
Dhb=function(X,H){uAy.push(X);H();uAy.pop()};
EA=function(X,H){for(var l in H)H.hasOwnProperty(l)&&(X=_.oZ(X,l,H[l]));return X};
_.tuL=function(X,H,l){l=l===void 0?!1:l;if(!X)return null;if(X.adInfoDialogEndpoint||X.backstageImageUploadEndpoint||X.confirmDialogEndpoint||X.clientActionEndpoint||X.createBackstagePostDialogEndpoint||X.createCommentReplyDialogEndpoint||X.flowEndpoint||X.guideBuilderEndpoint||X.liveChatDialogEndpoint||X.modalEndpoint||X.openPopupAction||X.shareEndpoint||X.shareEntityEndpoint||X.showLiveChatItemEndpoint||X.subscriptionManagerEndpoint||X.unlimitedCreateFamilyEndpoint||X.unlimitedFamilyFlowEndpoint||
X.updateCommentDialogEndpoint||X.updateCommentReplyDialogEndpoint||X.userFeedbackEndpoint||X.videoEditorEndpoint||X.ypcCancelSurveyEndpoint)return H=_.Yy("polymer_report_client_url_requested_rate"),!l&&Math.random()<H&&_.x2(new _.qd("urlForEndpoint used on client endpoint",X)),null;var b=_.Yy("polymer_report_missing_web_navigation_endpoint_rate");if(X.liveChatEndpoint||X.liveChatReplayEndpoint)b=0;if(!X.commandMetadata&&!X.clickTrackingParams&&Math.random()<b){var U={},K;for(K in X)U[K]="1";_.x2(new _.qd("Missing navigation data",
U))}U="";if(X.commandMetadata&&X.commandMetadata.webCommandMetadata&&X.commandMetadata.webCommandMetadata.url)U=X.commandMetadata.webCommandMetadata.url;else if(X.searchEndpoint)Math.random()<b&&_.x2(new _.qd("Should not manually handle search",X)),U="/results?search_query="+encodeURIComponent(X.searchEndpoint.query).replace(/%20/g,"+"),X.searchEndpoint.params&&(U+="&sp="+X.searchEndpoint.params);else if(X.watchEndpoint)Math.random()<b&&_.x2(new _.qd("Should not manually handle watch",X)),U="/watch?v="+
X.watchEndpoint.videoId,X.watchEndpoint.playlistId&&(U+="&list="+X.watchEndpoint.playlistId),X.watchEndpoint.index&&(U+="&index="+X.watchEndpoint.index),X.watchEndpoint.startTimeSeconds&&(U+="&t="+X.watchEndpoint.startTimeSeconds);else if(X.browseEndpoint)b=X.browseEndpoint.browseId,(K=X.browseEndpoint.canonicalBaseUrl)?U=K:b&&(U=b.substr(0,2),U=U==="FE"?b==="FEwhat_to_watch"?"/":b==="FEmy_videos"?"/my_videos":"/feed/"+b.substr(2):U==="VL"?"/playlist?list="+b.substr(2):"/channel/"+b),U&&X.browseEndpoint.query&&
(U=EA(U+"/search",{query:X.browseEndpoint.query})),U&&X.browseEndpoint.params&&(U=EA(U,{params:X.browseEndpoint.params}));else{if(X.urlEndpoint)return X.urlEndpoint.url;X.signInEndpoint?(U="https://accounts.google.com/ServiceLogin",b={},_.Bb.extend(b,H||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),H=b):X.uploadEndpoint?U="//www.youtube.com/upload":X.liveChatEndpoint?(U=X.liveChatEndpoint,b=_.Bb.clone(U),_.r8(U.continuation)&&(K=Object.keys(U.continuation)[0],
b.continuation=U.continuation[K].continuation),U=EA("/youtubei/v1/live_chat/get_live_chat",b)):X.liveChatReplayEndpoint?(U=_.Bb.clone(X.liveChatReplayEndpoint),U.currentPlayerState&&(_.Bb.extend(U,U.currentPlayerState),delete U.currentPlayerState),U=EA("/youtubei/v1/live_chat/get_live_chat_replay",U)):X.liveChatItemContextMenuEndpoint?U=EA("/youtubei/v1/live_chat/get_item_context_menu",X.liveChatItemContextMenuEndpoint):X.liveChatPurchaseMessageEndpoint?U=EA("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
X.liveChatPurchaseMessageEndpoint):X.openSuperStickerBuyFlowCommand?U=EA("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",X.openSuperStickerBuyFlowCommand):X.videoEditEndpoint?U=EA("/edit",{video_id:X.videoEditEndpoint.videoId}):X.liveDashboardEndpoint?U=X.liveDashboardEndpoint.videoId?EA("/live_dashboard",{v:X.liveDashboardEndpoint.videoId}):"/live_dashboard":X.signalNavigationEndpoint&&X.signalNavigationEndpoint.signal&&X.signalNavigationEndpoint.signal==="WEBCAM"?U="/webcam":X.getPdgBuyFlowCommand&&
(U=EA(X.getPdgBuyFlowCommand.buyflowApiPath,{params:X.getPdgBuyFlowCommand.params}))}return U||l?EA(U,H||{}):(_.x2(new _.qd("Error: Can't construct url for endpoint","keys:"+Object.keys(X).sort().join(","),X)),null)};
WCL=function(X){if(X){if(X.browseEndpoint)return!!X.browseEndpoint.nofollow;if(X.watchEndpoint)return!!X.watchEndpoint.nofollow;if(X.urlEndpoint)return!!X.urlEndpoint.nofollow}return!1};
_.g$m=function(X,H){var l=H+X,b=E$z.get(l);if(b)return b;X=H+"-"+X.replace(/([A-Z])/g,"-$1").toLowerCase();E$z.set(l,X);return X};
GeN=function(X){var H=_.tR(X,"action")||_.tR(X,"command")||_.tR(X,"endpoint");if(!H)return null;H=_.g$m(H,"yt");_.f(X,_.gU)&&(H+="-"+_.f(X,_.gU).signal.toLowerCase().replace(/_/g,"-"));return H};
v$O=function(X){try{var H=Object.keys(X)}catch(U){return[]}for(var l=0;l<H.length;l++){var b=H[l];if(aIh.test(b)||ZSK.test(b))return iSy(X[b])}return[]};
iSy=function(X){return X.command?[X.command]:X.onExecutionAction?[X.onExecutionAction]:X.onResponseReceivedCommand?[X.onResponseReceivedCommand]:X.updateFlowCommand?[X.updateFlowCommand]:X.clientActions?X.clientActions:X.action?[X.action]:X.actions||X.commands||X.onResponseReceivedActions||X.onResponseReceivedCommands||X.onResponseReceivedEndpoints||[]};
mhy=function(X,H){H=H===void 0?!1:H;var l=_.jJ().resolve(_.c$(G3));l||(l=new OSy,_.jJ().addProvider({provide:G3,useValue:l}));return l&&X&&!_.Bb.isEmpty(X)?l.getUrl(X,H):""};
Qsm=function(X,H,l){l=l===void 0?"":l;if(H){X.data=H;var b=mhy(H);b?(HJ(X,b),WCL(H)||!Nk(b)?X.rel="nofollow":X.removeAttribute("rel"),_.f(H,_.aL)&&_.f(H,_.aL).target==="TARGET_NEW_WINDOW"?X.target="_blank":l?X.target=l:X.removeAttribute("target")):(X.removeAttribute("href"),X.removeAttribute("rel"),X.removeAttribute("target"))}};
_.OA=function(X,H){var l=Jo;if(Pg())Tjk(X,function(){var K=_.Ab.apply(0,arguments);Z1(l,function(){H.apply(null,_.LJ(K))})});
else{var b=_.Zq.getInstance(),U=FSN(H);CHO(function(){U.value=H});
_.DR(function(){var K={},w=_.ik(b,(K[X]=function(){var d=_.Ab.apply(0,arguments);Z1(l,function(){U.value.apply(U,_.LJ(d))})},K));
return function(){var d={};_.vD(b,(d[X]="",d),w)}})}};
Njy=function(X){var H=Jo,l=y3;return{getFn:function(){return function(b){if(!H.isDisposed){var U=function(){return X(b)};
pW(function(){return _.h1(U)},l)!==!0&&b.stopPropagation()}}}}};
c5h=function(X){if(typeof X.children==="function")return X.children(),null;X=_.C(X.children);for(var H=X.next();!H.done;H=X.next())H=H.value,H();return null};
jsh=function(X){var H;return((H=X.prototype)==null?void 0:H.render)===void 0};
r5b=function(X){var H=Array.isArray(X.items)?X.items:Array.from(X.items);X=X.children;return(Array.isArray(H)?H:Array.from(H)).map(X)};
LCy=function(X,H,l){l=l===void 0?!1:l;pW(function(){return J5K(X,H,l)})};
J5K=function(X,H,l){var b=null;zG++;l=(l===void 0?0:l)?Ysz:IIK;try{b=l(X,function(){mF(H)}),D1(!1)}catch(U){throw D1(!0),U;
}return b===null?X:b};
mF=function(X){if(X!==void 0&&X!==null)if(X instanceof Fi)for(var H=mX;Q3()!=null&&xGZ in Q3()&&H.contains(Q3());)cg();else if(Array.isArray(X))for(H=_.C(X),X=H.next();!X.done;X=H.next())mF(X.value);else if(X instanceof iR||X instanceof yb||"function"==typeof _.Y3&&X instanceof _.Y3)x9Z(X.toString());else if(lj(X)){if(Q3()!==X){var l,b;H=(b=(l=y3)==null?void 0:l.name)!=null?b:"unknown";throw Error("jc`"+X.tagName+"`"+H);}cg()}else if(X!=null&&X.contentKind===Ut||X instanceof lQ||NVL(X))for(H=jKL(X),
H=Array.from(H.childNodes),H=_.C(H),X=H.next();!X.done;X=H.next())mX.appendChild(X.value),cg();else if(cu(X)&&(X=X.toString()),l=typeof X,l==="boolean"||l==="number"||l==="string")x9Z(X);else if(typeof X==="function"){H=mX;var U=Q3();U&&(U._isSignalTextNode||U._isSafeOrSanitizedHtmlNode)||y$Z(H,U,X);cg()}else if(X.type===r5b)mF(X.type(Object.assign({},X.props,{children:X.children[0]})));else{if(typeof X.type==="string"){a:{X.__open||f9y(X.type,X.props.idomKey);U=mX;for(var K in X.props)if(X.props[K]!==
A5b){var w=X.props[K];l=rf;l.push(K);l.push(w)}K=XU.attributes;K=K===void 0?QJ:K;w=mX;b=MBy(w);l=K;K=rf;b=b._attrsArr||(b._attrsArr=Cgy(K.length));for(var d=!b.length||!1,B=0;B<K.length;B+=2){var q=K[B];if(d)b[B]=q;else if(b[B]!==q)break;var u=K[B+1];if(d||b[B+1]!==u)b[B+1]=u,kwy(w,q,u,l)}if(B<K.length||B<b.length){for(B=d=B;B<b.length;B+=2)T3[b[B]]=b[B+1];for(B=d;B<K.length;B+=2)d=K[B],q=K[B+1],T3[d]!==q&&kwy(w,d,q,l),b[B]=d,b[B+1]=q,delete T3[d];ReO(b,K.length);for(H in T3)kwy(w,H,void 0,l),delete T3[H]}H=
Xxy;Xxy=w=LW.length;for(l=H;l<w;l+=5)(0,LW[l])(LW[l+1],LW[l+2],LW[l+3],LW[l+4]);Xxy=H;ReO(LW,H);ReO(K,0);e0k(U,X.props,!0);if((X.props.skip||X.props.skipchildren)&&mX.hasChildNodes())Ns=mX.lastChild;else{if(X.type==="style"&&HNh(X.children)===null){Ns=mX.lastChild;H=void 0;break a}mF(X.children)}pfk();X.__open&&(X.__open=!1);Zrm(U,X.props);H=U}return H}if(X.type===_.Xi)mF(X.children);else if(!HGy(X)){H=X;try{lsy(H)}catch(e){X=e,(w=XU.handleError)==null||w.call.apply(w,[XU].concat(_.LJ(iL(X,(U=H.type)==
null?void 0:U.TAG_NAME))))}H.__open&&(pfk(),H.__open=!1)}}};
oqL=function(X,H){var l;jsh(X)?l=new uj(H,X):l=new X(H);l.__type=X;l.__updateContext={nextState:l.state,isForced:!1};return l};
lsy=function(X){var H=X.type,l=H.TAG_NAME;if(H===c5h)X.props.children=X.children,H(X.props);else{X.children.length>0&&(X.props.children=X.children);var b;(b=X.props).idomKey||(b.idomKey=H);if(l){var U=f9y(l,X.props.idomKey);X.__open=!0;var K=U.__instance}K||(K=oqL(H,X.props),K.props=null,U&&(U.__instance=K,K.el=U));var w;l=((w=K.__updateContext)!=null?w:{nextState:K.state,isForced:!1}).nextState;K.__updateContext=void 0;H.getDerivedStateFromProps&&(l=H.getDerivedStateFromProps(X.props,l));K.props=
X.props;K.state=l;w=function(){var d=K;st.beforeRender(d);var B=d.render(d.props);B?(d.props.idomKey&&(B.props.idomKey=d.props.idomKey),d=B):d=void 0;if(B=d)if(B.__open=X.__open,d=mF(B),X.__open=B.__open,!H.TAG_NAME)if(d)H.TAG_NAME=d.tagName.toLowerCase(),d.__instance=K,K.el=d;else{var q;if((q=K.hooks)==null?0:q.length){var u;(u=XU.handleError)==null||u.call.apply(u,[XU].concat(_.LJ(iL(Error("pd")))))}}K.didPatch();st.didPatch(K)};
(l=K.functionComponent)?smb(l,w,K.props.debugInstance):w()}};
HGy=function(X){var H=X.type;if(!jsh(H)||H===c5h||H.componentType===V3)return!1;X.props.children=X.children.length>1?X.children:X.children[0];var l,b=(l=X.props.idomKey)!=null?l:X.type,U;if(Q3()&&((U=Q3()[wx])==null?void 0:U.key)===b){var K=Q3(),w=K[wx];if(!w)throw Error("ic`"+K.tagName);var d;(d=w.updateSignalsFromIdomProps)==null||d.call(w,X.props);bGk(w);return!0}if(Ufh.has(H.name))throw d=H.name,H=(w=(K=y3)==null?void 0:K.name)!=null?w:"unknown",Error("hc`"+d+"`"+H);X.props.renderedFromIdom=!0;
(d=smb(X.type,function(){return BZO(X.type,X.props)},X.props.debugInstance))&&$fy(d);
return!0};
K98=function(X){for(var H=0;H<hR(X).length;H++)cg()};
bGk=function(X){var H=RZO();if(H)K98(H);else for(var l=0;l<X.numNodes;l++)(H=RZO())?K98(H):cg()};
RZO=function(){var X;return(X=Q3()[wx])==null?void 0:X.sourceDynamicRange};
$fy=function(X){X=Orb(X);X=Array.isArray(X)?X:[X];X=_.C(X);for(var H=X.next();!H.done;H=X.next())mX.insertBefore(H.value,Q3()),cg()};
CD8=function(){var X=spl(),H=J$l(function(){return{value:0}},[]);
return[H.value,function(l){if(Mk!==null){var b;(b=XU.handleError)==null||b.call.apply(b,[XU].concat(_.LJ(iL(Error("qd")))))}H.value=typeof l==="function"?l(H.value):l;X.__updateContext={nextState:X.state,isForced:!0};l=L8(X.effectContext);b=H$(!1);try{if(X.el){var U,K={},w=(K.props=X.props,K.type=X.__type,K.children=(U=X.props.children)!=null?U:[],K[A1]=!0,K);try{LCy(X.el,w,!0)}catch(q){var d,B;(B=XU.handleError)==null||B.call.apply(B,[XU].concat(_.LJ(iL(q,(d=X.__type)==null?void 0:d.TAG_NAME))))}}}finally{H$(b),
L8(l)}}]};
_.Np=function(X,H){var l=Jo,b=function(U){Z1(l,function(){H(U)})};
window.addEventListener(X,b,void 0);_.E2(function(){window.removeEventListener(X,b,void 0)})};
_.jh=function(X){var H=Jo;return function(l){var b,U=(b=X.observer)!=null?b:_.jJ().resolve(cD);b=wxh(l);var K=[];X.showOption&&K.push(U.observe(l,function(){Z1(H,function(){X.visibilityCallback(!0,l)})},X.showOption));
X.hideOption&&K.push(U.observe(l,function(){Z1(H,function(){X.visibilityCallback(!1,l)})},X.hideOption));
X.prescanOption&&X.prescanCallback&&K.push(U.observe(l,function(){Z1(H,function(){X.prescanCallback()})},X.prescanOption));
var w;b.visibilityMonitorKeys=((w=b.visibilityMonitorKeys)!=null?w:[]).concat(K)}};
wxh=function(X){var H;return(H=X.polymerController)!=null?H:X};
BWZ=function(X,H){var l=dfN;return _.F(_.Xi,null,zVW(XU.enableLazyTsx,function(){return _.F(hZ8,{id:l,value:X,children:H})},function(){var b=F9l(l,X);
Ao(b);b=L8(b);try{return H()}finally{L8(b)}}))};
hZ8=function(X){var H=X.children;X=F9l(X.id,X.value);Ao(X);X=L8(X);try{return _.F(_.Xi,null,B$(H()))}finally{L8(X)}};
F9l=function(X,H){return Object.assign(Object.create(qFW),{id:X,contextValue:H})};
sBb=function(X){var H,l=Jo;_.t1(function(){var b=L8(l),U=H$(!H);try{if(H)LCy(H,X.children(),!0);else if(H=B$(X.children()),!(H instanceof Element))throw Error("rd");}finally{H$(U),L8(b)}},"i");
return H};
uck=function(X){var H=new Mgz;H.abort(X);return H.signal};
eZy=function(){if(this.aborted){var X;throw(X=this.reason)!=null?X:new DOMException("signal is aborted without reason","AbortError");}};
PDW=function(X){var H=new Mgz;X=_.C(X);for(var l=X.next();!l.done;l=X.next())if(l=l.value,l.aborted){H.abort(l.reason);break}else yGk.set(H.signal,H),VgW.add(l,H.signal);return H.signal};
fsy=function(){for(var X=_.C(VgW.get(this)),H=X.next();!H.done;H=X.next())yGk.get(H.value).abort(this.reason)};
pxW=function(X){var H=new Mgz;setTimeout(function(){H.abort(new DOMException("signal timed out","TimeoutError"))},X);
return H.signal};
SFL=function(){var X,H;return{promise:new Promise(function(l,b){X=l;H=b}),
resolve:X,reject:H}};
nqz=function(X){var H=SFL(),l=H.promise;zZZ.set(X,{promise:l,resolve:H.resolve,reject:H.reject});rU||(rU=[],queueMicrotask(function(){var b=[].concat(_.LJ(rU));rU=null;var U=VW().loadMultiple(b);b=_.C(b);for(var K=b.next();!K.done;K=b.next())K=K.value,U[K].then(zZZ.get(K).resolve,zZZ.get(K).reject)}));
rU.push(X);return l};
krh=function(X,H){this.fn_=X;this.handler_=H};
JS=function(X,H){_.$e.call(this);this.deps_=X;this.JSC$11362_id_=H;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
Dfm=function(X){X=X.buf.charCodeAt(X.pos++);return xfm[X]};
Y2=function(X){var H=0,l=0;do{var b=Dfm(X);H|=(b&31)<<l;l+=5}while(b&32);return H<0?H+4294967296:H};
tgO=function(X,H,l,b){var U=!0;U=U===void 0?!1:U;H=H===void 0?!1:H;b=b===void 0?{}:b;var K=b.cssRowKey||"",w=b.combinedSignature||"";!K&&window&&window._F_cssRowKey&&(K=window._F_cssRowKey,!w&&window._F_combinedSignature&&(w=window._F_combinedSignature));if(K&&typeof window._F_installCss!=="function")throw Error("Bd");var d=b.loaderClass||_.IL;X=LQN(X===void 0?"base-js":X);H=new d(a3y(ISN("",X)),K,w,U,H);U=b.useCors||X&&X.hasAttribute("crossorigin");X=b.corsMode||X&&X.getAttribute("crossorigin");
U&&(H.useCors_=U);X&&(H.corsMode_=X);b.urlMaxLength&&(H.urlMaxLength=b.urlMaxLength);l&&(H.insertPos=l);b.fetchPriority&&(H.fetchPriority=b.fetchPriority);var B=VW();B.JSC$10364_loader_=H;B.setBatchModeEnabled(!0);_.AS=b.batchingStrategy==="BATCH"?nqz:function(q){return Promise.resolve(B.load(q))}};
gqh=function(X,H,l){W9h(X,H);X[H][EqO].unshift(l)};
W9h=function(X,H){if(!X[H]||!X[H][EqO]){var l=X[H],b=l?[l]:[];X[H]=function(){for(var U=_.C(b),K=U.next();!K.done;K=U.next())K.value.apply(this,arguments)};
X[H][EqO]=b}};
GrL=function(X){if(!X)return[];var H=[];X=_.C(X);for(var l=X.next();!l.done;l=X.next())l=l.value,Array.isArray(l)?H.push.apply(H,_.LJ(GrL(l))):H.push(l);return H};
_.Hj=function(X,H){if(X&&ash.test(X)||X==="//")return X;if(ZGh===void 0){ZGh=!1;try{var l=new URL("b","http://a");l.pathname="c%20d";ZGh=l.href==="http://a/c%20d"}catch(b){}}H||(H=document.baseURI||window.location.href);if(ZGh)try{return(new URL(X,H)).href}catch(b){return X}XF||(XF=document.implementation.createHTMLDocument("temp"),XF.base=XF.createElement("base"),XF.head.appendChild(XF.base),XF.anchor=XF.createElement("a"),XF.body.appendChild(XF.anchor));XF.base.href=H;XF.anchor.href=X;return XF.anchor.href||
X};
vqy=function(X,H){return X.replace(iGZ,function(l,b,U,K){return b+"'"+_.Hj(U.replace(/["']/g,""),H)+"'"+K})};
OGb=function(X){return X.substring(0,X.lastIndexOf("/")+1)};
TWN=function(){mfm=!1;for(var X=lz.length,H=0;H<X;H++){var l=lz[H];if(l)try{l()}catch(b){setTimeout(function(){throw b;})}}lz.splice(0,X);
QB8+=X};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(X){console.log("["+X.is+"]: registered")};
cGz=function(X){NWO.push(X)};
UL=function(X){return jBy[X]||(jBy[X]=X.indexOf("-")<0?X:X.replace(rGN,function(H){return H[1].toUpperCase()}))};
$H=function(X){return jBy[X]||(jBy[X]=X.replace(JGb,"-$1").toLowerCase())};
L9b=function(X,H){var l=H.parentInfo&&L9b(X,H.parentInfo);if(l)for(X=l.firstChild,l=0;X;X=X.nextSibling){if(H.parentIndex===l++)return X}else return X};
YFl=function(X,H){X=X._methodHost||X;return function(l){if(X[H])X[H](l,l.detail);else console.warn("listener method `"+H+"` not defined")}};
Ki=function(X){return X.indexOf(".")>=0};
Rm=function(X){var H=X.indexOf(".");return H===-1?X:X.slice(0,H)};
Is8=function(X,H){return X.indexOf(H+".")===0};
Ci=function(X,H){return H.indexOf(X+".")===0};
ww=function(X,H,l){return H+l.slice(X.length)};
AGO=function(X,H){return X===H||Is8(X,H)||Ci(X,H)};
dw=function(X){if(Array.isArray(X)){for(var H=[],l=0;l<X.length;l++)for(var b=X[l].toString().split("."),U=0;U<b.length;U++)H.push(b[U]);return H.join(".")}return X};
X8N=function(X){return Array.isArray(X)?dw(X).split("."):X.toString().split(".")};
hh=function(X,H,l){H=X8N(H);for(var b=0;b<H.length;b++){if(!X)return;X=X[H[b]]}l&&(l.path=H.join("."));return X};
H9k=function(X,H,l){var b=X8N(H),U=b[b.length-1];if(b.length>1){for(H=0;H<b.length-1;H++)if(X=X[b[H]],!X)return;X[U]=l}else X[H]=l;return b.join(".")};
lFZ=function(X,H,l){var b=X[H];if(!b)b=X[H]={};else if(!X.hasOwnProperty(H)&&(b=X[H]=Object.create(X[H]),l))for(var U in b)for(X=b[U],H=b[U]=Array(X.length),l=0;l<X.length;l++)H[l]=X[l];return b};
Bj=function(X,H,l,b,U,K){if(H){var w=!1,d=FF++,B;for(B in l){var q=U?Rm(B):B;if(q=H[q])for(var u=0,e=q.length,y=void 0;u<e&&(y=q[u]);u++)y.info&&y.info.lastRun===d||U&&!oib(B,y.trigger)||(y.info&&(y.info.lastRun=d),y.fn(X,B,l,b,y.info,U,K),w=!0)}return w}return!1};
oib=function(X,H){if(H){var l=H.name;return l==X||!(!H.structured||!Is8(l,X))||!(!H.wildcard||!Ci(l,X))}return!0};
b9N=function(X,H,l,b,U){H=typeof U.method==="string"?X[U.method]:U.method;l=U.property;H?H.call(X,X.__data[l],b[l]):U.dynamicFn||console.warn("observer method `"+U.method+"` not defined")};
UVk=function(X,H,l,b){l={value:l,queueProperty:!0};b&&(l.path=b);(0,_.q0)(X).dispatchEvent(new CustomEvent(H,{detail:l}))};
$Vz=function(X,H,l,b,U,K){K=(b=(K?Rm(H):H)!=H?H:null)?hh(X,b):X.__data[H];b&&K===void 0&&(K=l[H]);UVk(X,U.eventName,K,b)};
KiZ=function(X,H,l,b,U){l=X.__data[H];sL&&(l=sL(l,U.attrName,"attribute",X));X._propertyToAttribute(H,U.attrName,l)};
Cpz=function(X){var H=X.constructor.__orderedComputedDeps;if(!H){H=new Map;for(var l=X.__computeEffects,b=REy(X),U=b.counts,K=b.ready,w=b.total;b=K.shift();)H.set(b,H.size),(b=l[b])&&b.forEach(function(d){d=d.info.methodInfo;--w;--U[d]===0&&K.push(d)});
w!==0&&console.warn("Computed graph for "+X.localName+" incomplete; circular?");X.constructor.__orderedComputedDeps=H}return H};
REy=function(X){var H=X.__computeInfo,l={};X=X.__computeEffects;var b=[],U=0,K;for(K in H){var w=H[K];U+=l[K]=w.args.filter(function(B){return!B.literal}).length+(w.dynamicFn?1:0)}for(var d in X)H[d]||b.push(d);
return{counts:l,ready:b,total:U}};
dVm=function(X,H,l,b,U){H=w8k(X,H,l,b,U);if(H===M0)return!1;U=U.methodInfo;if(X.__dataHasAccessor&&X.__dataHasAccessor[U])return X._setPendingProperty(U,H,!0);X[U]=H;return!1};
Bky=function(X,H,l,b,U,K,w){l.bindings=l.bindings||[];b={kind:b,target:U,parts:K,literal:w,isCompound:K.length!==1};l.bindings.push(b);b.target&&b.kind!="attribute"&&b.kind!="text"&&!b.isCompound&&b.parts[0].mode==="{"&&(l=b.parts[0],K=l.negate,b.listenerEvent=l.event||$H(U)+"-changed",b.listenerNegate=K);U=H.nodeInfoList.length;for(l=0;l<b.parts.length;l++){var d=b.parts[l];d.compoundIndex=l;K=X;w=H;var B=b,q=d,u=U;if(!q.literal)if(B.kind==="attribute"&&B.target[0]==="-")console.warn("Cannot set attribute "+
B.target+' because "-" is not a valid attribute starting character');else for(d=q.dependencies,B={index:u,binding:B,part:q,evaluator:K},q=0;q<d.length;q++)u=d[q],typeof u=="string"&&(u=hEm(u),u.wildcard=!0),K._addTemplatePropertyEffect(w,u.rootProperty,{fn:FiZ,info:B,trigger:u})}};
FiZ=function(X,H,l,b,U,K,w){w=w[U.index];var d=U.binding,B=U.part;K&&B.source&&H.length>B.source.length&&d.kind=="property"&&!d.isCompound&&w.__isPropertyEffectsClient&&w.__dataHasAccessor&&w.__dataHasAccessor[d.target]?(l=l[H],H=ww(B.source,d.target,H),w._setPendingPropertyOrPath(H,l,!1,!0)&&X._enqueueClient(w)):(H=U.evaluator._evaluateBinding(X,B,H,l,b,K),H!==M0&&(d.isCompound&&(l=w.__dataCompoundStorage[d.target],l[B.compoundIndex]=H,H=l.join("")),d.kind==="attribute"||d.target!=="textContent"&&
(d.target!=="value"||w.localName!=="input"&&w.localName!=="textarea")||(H=H==void 0?"":H),B=H,sL&&(B=sL(B,d.target,d.kind,w)),d.kind=="attribute"?X._valueToNodeAttribute(w,B,d.target):(d=d.target,w.__isPropertyEffectsClient&&w.__dataHasAccessor&&w.__dataHasAccessor[d]?w.__readOnly&&w.__readOnly[d]||w._setPendingProperty(d,B)&&X._enqueueClient(w):X._setUnmanagedPropertyToNode(w,d,B))))};
qJN=function(X,H,l){if(l.listenerEvent){var b=l.parts[0];X.addEventListener(l.listenerEvent,function(U){var K=l.target,w=b.source,d=b.negate,B=U.detail,q=B&&B.path;q?(w=ww(K,w,q),U=B&&B.value):U=U.currentTarget[K];H.__readOnly&&H.__readOnly[w]||!H._setPendingPropertyOrPath(w,d?!U:U,!0,!!q)||B&&B.queueProperty||H._invalidateProperties()})}};
sJO=function(X,H,l,b,U,K){K=H.static||K&&(typeof K!=="object"||K[H.methodName]);U={methodName:H.methodName,args:H.args,methodInfo:U,dynamicFn:K};for(var w=0,d=void 0;w<H.args.length&&(d=H.args[w]);w++)d.literal||X._addPropertyEffect(d.rootProperty,l,{fn:b,info:U,trigger:d});K&&X._addPropertyEffect(H.methodName,l,{fn:b,info:U});return U};
w8k=function(X,H,l,b,U){b=X._methodHost||X;var K=b[U.methodName];if(K)return X=X._marshalArgs(U.args,H,l),X===M0?M0:K.apply(b,X);U.dynamicFn||console.warn("method `"+U.methodName+"` not defined")};
MYz=function(X){for(var H="",l=0;l<X.length;l++)H+=X[l].literal||"";return H};
yvm=function(X){if(X=X.match(/([^\s]+?)\(([\s\S]*)\)/)){var H={methodName:X[1],static:!0,args:ukO};return X[2].trim()?eEW(X[2].replace(/\\,/g,"&comma;").split(","),H):H}return null};
eEW=function(X,H){H.args=X.map(function(l){l=hEm(l);l.literal||(H.static=!1);return l},this);
return H};
hEm=function(X){X=X.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var H={name:X,value:"",literal:!1},l=X[0];l==="-"&&(l=X[1]);l>="0"&&l<="9"&&(l="#");switch(l){case "'":case '"':H.value=X.slice(1,-1);H.literal=!0;break;case "#":H.value=Number(X),H.literal=!0}H.literal||(H.rootProperty=Rm(X),H.structured=Ki(X),H.structured&&(H.wildcard=X.slice(-2)==".*",H.wildcard&&(H.name=X.slice(0,-2))));return H};
VYb=function(X,H,l){X=hh(X,l);X===void 0&&(X=H[l]);return X};
PpL=function(X,H,l,b){b={indexSplices:b};uz&&!X._overrideLegacyUndefined&&(H.splices=b);X.notifyPath(l+".splices",b);X.notifyPath(l+".length",H.length);uz&&!X._overrideLegacyUndefined&&(b.indexSplices=[])};
ea=function(X,H,l,b,U,K){PpL(X,H,l,[{index:b,addedCount:U,removed:K,object:H,type:"splice"}])};
fFW=function(X){X=vqy((X.body?X.body:X).textContent,X.baseURI);var H=document.createElement("style");H.textContent=X;return H};
SJh=function(X){X=X.trim().split(/\s+/);for(var H=[],l=0;l<X.length;l++)H.push.apply(H,_.LJ(p8y(X[l])));return H};
p8y=function(X){var H=yL.import(X);if(!H)return console.warn("Could not find style data in module named",X),[];if(H._styles===void 0){X=[];X.push.apply(X,_.LJ(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H)));var l=H.querySelector("template");l&&X.push.apply(X,_.LJ(zEK(l,H.assetpath)));H._styles=X}return H._styles};
zEK=function(X,H){if(!X._styles){for(var l=[],b=X.content.querySelectorAll("style"),U=0;U<b.length;U++){var K=b[U],w=K.getAttribute("include");w&&l.push.apply(l,_.LJ(SJh(w).filter(function(d,B,q){return q.indexOf(d)===B})));
H&&(K.textContent=vqy(K.textContent,H));l.push(K)}X._styles=l}return X._styles};
niy=function(X){return(X=yL.import(X))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(X):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(X){var H=[];X=X.querySelectorAll("link[rel=import][type~=css]");for(var l=0;l<X.length;l++){var b=X[l];if(b.import){var U=b.import;if((b=b.hasAttribute("shady-unscoped"))&&!U._unscopedStyle){var K=fFW(U);K.setAttribute("shady-unscoped","");U._unscopedStyle=K}else U._style||(U._style=fFW(U));H.push(b?U._unscopedStyle:U._style)}}return H};
xVy=function(X){X=X.trim().split(/\s+/);for(var H="",l=0;l<X.length;l++)H+=ko8(X[l]);return H};
ko8=function(X){var H=yL.import(X);if(H&&H._cssText===void 0){var l=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(H),b=H.querySelector("template");b&&(l+=DVW(b,H.assetpath));H._cssText=l||null}H||console.warn("Could not find style data in module named",X);return H&&H._cssText||""};
DVW=function(X,H){var l="";X=zEK(X,H);for(H=0;H<X.length;H++){var b=X[H];b.parentNode&&b.parentNode.removeChild(b);l+=b.textContent}return l};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(X){var H="";X=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(X);for(var l=0;l<X.length;l++)H+=X[l].textContent;return H};
VL=function(X,H){return{index:X,removed:[],addedCount:H}};
Wih=function(X,H,l,b){var U=0,K=0,w=0,d=0,B=Math.min(H-U,b-K);if(U==0&&K==0)a:{for(w=0;w<B;w++)if(X[w]!==l[w])break a;w=B}if(H==X.length&&b==l.length){d=X.length;for(var q=l.length,u=0;u<B-w&&tYy(X[--d],l[--q]);)u++;d=u}U+=w;K+=w;H-=d;b-=d;if(H-U==0&&b-K==0)return[];if(U==H){for(H=VL(U,0);K<b;)H.removed.push(l[K++]);return[H]}if(K==b)return[VL(U,H-U)];B=U;w=K;b=b-w+1;d=H-B+1;H=Array(b);for(q=0;q<b;q++)H[q]=Array(d),H[q][0]=q;for(q=0;q<d;q++)H[0][q]=q;for(q=1;q<b;q++)for(u=1;u<d;u++)if(X[B+u-1]===
l[w+q-1])H[q][u]=H[q-1][u-1];else{var e=H[q-1][u]+1,y=H[q][u-1]+1;H[q][u]=e<y?e:y}B=H.length-1;w=H[0].length-1;b=H[B][w];for(X=[];B>0||w>0;)B==0?(X.push(2),w--):w==0?(X.push(3),B--):(d=H[B-1][w-1],q=H[B-1][w],u=H[B][w-1],e=q<u?q<d?q:d:u<d?u:d,e==d?(d==b?X.push(0):(X.push(1),b=d),B--,w--):e==q?(X.push(3),B--,b=q):(X.push(2),w--,b=u));X.reverse();H=void 0;B=[];for(w=0;w<X.length;w++)switch(X[w]){case 0:H&&(B.push(H),H=void 0);U++;K++;break;case 1:H||(H=VL(U,0));H.addedCount++;U++;H.removed.push(l[K]);
K++;break;case 2:H||(H=VL(U,0));H.addedCount++;U++;break;case 3:H||(H=VL(U,0)),H.removed.push(l[K]),K++}H&&B.push(H);return B};
Eih=function(X,H){return Wih(X,X.length,H,H.length)};
tYy=function(X,H){return X===H};
Goz=function(X){if(X instanceof giy)return X.value;throw Error("Jd`"+X);};
aFK=function(X,H){for(var l in H)l===null?X.style.removeProperty(l):X.style.setProperty(l,H[l])};
Z9m=function(X,H){return(X=window.getComputedStyle(X).getPropertyValue(H))?X.trim():""};
mVm=function(X){requestAnimationFrame(function(){i9b?i9b(X):(vi8||(vi8=new Promise(function(H){O9Z=H}),document.readyState==="complete"?O9Z():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&O9Z()})),vi8.then(function(){X&&X()}))})};
Nkm=function(X){QJy=X&&X.shimcssproperties?!1:Tky||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
Lil=function(X){if(!(cvO.indexOf(X)>-1)&&X!=="touchend"&&jJh&&rvO&&Jvh)return{passive:!0}};
XCm=function(X){for(var H=YJK?["click"]:cvO,l=0,b;l<H.length;l++)b=H[l],X?(IFy.length=0,document.addEventListener(b,AvZ,!0)):document.removeEventListener(b,AvZ,!0)};
Pj=function(X){var H=X.type;return cvO.indexOf(H)>-1?H==="mousemove"?(H=X.buttons===void 0?1:X.buttons,X instanceof window.MouseEvent&&!Hjy&&(H=lU8[X.which]||0),!!(H&1)):(X.button===void 0?0:X.button)===0:!1};
ogN=function(X){if(X.type==="click"){if(X.detail===0)return!0;var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X);if(!H.nodeType||H.nodeType!==Node.ELEMENT_NODE)return!0;H=H.getBoundingClientRect();var l=X.pageX;X=X.pageY;return!(l>=H.left&&l<=H.right&&X>=H.top&&X<=H.bottom)}return!1};
bj8=function(X,H,l){X.movefn=H;X.upfn=l;document.addEventListener("mousemove",H);document.addEventListener("mouseup",l)};
fi=function(X){document.removeEventListener("mousemove",X.movefn);document.removeEventListener("mouseup",X.upfn);X.movefn=null;X.upfn=null};
U7m=function(X,H){for(var l=document.elementFromPoint(X,H),b=l;b&&b.shadowRoot&&!window.ShadyDOM;){var U=b;b=b.shadowRoot.elementFromPoint(X,H);if(U===b)break;b&&(l=b)}return l};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X){var H=$7W(X);return H.length>0?H[0]:X.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X){var H=X.type,l=X.currentTarget.__polymerGestures;if(l&&(l=l[H])){if(!X.__polymerGesturesHandled&&(X.__polymerGesturesHandled={},H.slice(0,5)==="touch")){var b=X.changedTouches[0];H==="touchstart"&&X.touches.length===1&&(Kq8=b.identifier);if(Kq8!==b.identifier)return;jJh||(H==="touchstart"||H==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X)}b=
X.__polymerGesturesHandled;if(!b.skip){for(var U=0,K;U<pi.length;U++)K=pi[U],l[K.name]&&!b[K.name]&&K.flow&&K.flow.start.indexOf(X.type)>-1&&K.reset&&K.reset();for(U=0;U<pi.length;U++)K=pi[U],l[K.name]&&!b[K.name]&&(b[K.name]=!0,K[H](X))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X){var H=X.changedTouches[0],l=X.type;if(l==="touchstart")RGl=H.clientX,Cel=H.clientY,wCy=!1;else if(l==="touchmove"&&!wCy){wCy=!0;l="auto";for(var b=$7W(X),U=0,K;U<b.length;U++)if(K=b[U],K.__polymerGesturesTouchAction){l=K.__polymerGesturesTouchAction;break}b=!1;U=Math.abs(RGl-H.clientX);H=Math.abs(Cel-H.clientY);X.cancelable&&(l==="none"?b=!0:l==="pan-x"?b=H>U:l==="pan-y"&&(b=U>H));b?X.preventDefault():
Sa("track")}};
ni=function(X,H,l){return zX[H]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X,H,l),!0):!1};
kH=function(X,H,l){return zX[H]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X,H,l),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X,H,l){var b=zX[H],U=b.deps,K=b.name,w=X.__polymerGestures;w||(X.__polymerGestures=w={});for(var d=0,B,q;d<U.length;d++)B=U[d],YJK&&cvO.indexOf(B)>-1&&B!=="click"||((q=w[B])||(w[B]=q={_count:0}),q._count===0&&X.addEventListener(B,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Lil(B)),q[K]=(q[K]||0)+1,q._count=(q._count||0)+1);X.addEventListener(H,l);b.touchAction&&_.xH(X,b.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X,H,l){var b=zX[H],U=b.deps;b=b.name;var K=X.__polymerGestures;if(K)for(var w=0,d,B;w<U.length;w++)d=U[w],(B=K[d])&&B[b]&&(B[b]=(B[b]||1)-1,B._count=(B._count||1)-1,B._count===0&&X.removeEventListener(d,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Lil(d)));X.removeEventListener(H,l)};
d7b=function(X){pi.push(X);for(var H=0;H<X.emits.length;H++)zX[X.emits[H]]=X};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X){for(var H=0,l;H<pi.length;H++){l=pi[H];for(var b=0,U;b<l.emits.length;b++)if(U=l.emits[b],U===X)return l}return null};
_.xH=function(X,H){jJh&&X instanceof HTMLElement&&DC.run(function(){X.style.touchAction=H});
X.__polymerGesturesTouchAction=H};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(X,H,l){H=new Event(H,{bubbles:!0,cancelable:!0,composed:!0});H.detail=l;(0,_.q0)(X).dispatchEvent(H);H.defaultPrevented&&(X=l.preventer||l.sourceEvent)&&X.preventDefault&&X.preventDefault()};
Sa=function(X){X=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X);X.info&&(X.info.prevent=!0)};
th=function(X,H,l,b){H&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,X,{x:l.clientX,y:l.clientY,sourceEvent:l,preventer:b,prevent:function(U){return Sa(U)}})};
hGy=function(X,H,l){if(X.prevent)return!1;if(X.started)return!0;l=Math.abs(X.y-l);return Math.abs(X.x-H)>=5||l>=5};
Fqz=function(X,H,l){if(H){var b=X.moves[X.moves.length-2],U=X.moves[X.moves.length-1],K=U.x-X.x,w=U.y-X.y,d=0;if(b){var B=U.x-b.x;d=U.y-b.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H,"track",{state:X.state,x:l.clientX,y:l.clientY,dx:K,dy:w,ddx:B,ddy:d,sourceEvent:l,hover:function(){return U7m(l.clientX,l.clientY)}})}};
qC8=function(X,H,l){var b=Math.abs(H.clientX-X.x),U=Math.abs(H.clientY-X.y),K=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(l||H);!K||BJy[K.localName]&&K.hasAttribute("disabled")||!(isNaN(b)||isNaN(U)||b<=25&&U<=25||ogN(H))||X.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K,"tap",{x:H.clientX,y:H.clientY,sourceEvent:H,preventer:l})};
sVh=function(X,H,l,b,U){var K;U&&(K=typeof l==="object"&&l!==null)&&(b=X.__dataTemp[H]);b=b!==l&&(b===b||l===l);K&&b&&(X.__dataTemp[H]=l);return b};
u0y=function(){if(Wj&&!EL){if(!M5W){M5W=!0;var X=document.createElement("style");X.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(X)}return!0}return!1};
yCO=function(){return eGb};
V5O=function(X,H){eGb=X;Object.setPrototypeOf(X,H.prototype);new H;eGb=null};
Pez=function(X,H){for(var l=0;l<H.length;l++){var b=H[l];if(!!X!=!!b.__hideTemplateChildren__)if(b.nodeType===Node.TEXT_NODE)X?(b.__polymerTextContent__=b.textContent,b.textContent=""):b.textContent=b.__polymerTextContent__;else if(b.localName==="slot")if(X)b.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.q0)((0,_.q0)(b).parentNode).replaceChild(b.__polymerReplaced__,b);else{var U=b.__polymerReplaced__;U&&(0,_.q0)((0,_.q0)(U).parentNode).replaceChild(b,U)}else b.style&&(X?(b.__polymerDisplay__=
b.style.display,b.style.display="none"):b.style.display=b.__polymerDisplay__);b.__hideTemplateChildren__=X;b._showHideChildren&&b._showHideChildren(X)}};
fUK=function(X){return(X=X.__dataHost)&&X._methodHost||X};
zGh=function(X,H,l){var b=l.mutableData?pCK:gw;GX.mixin&&(b=GX.mixin(b));var U=function(){return b.apply(this,arguments)||this};
_.S(U,b);U.prototype.__templatizeOptions=l;U.prototype._bindTemplate(X);SCl(U,X,H,l);return U};
t5W=function(X,H,l,b){var U=l.forwardHostProp;if(U&&H.hasHostProps){var K=X.localName=="template",w=H.templatizeTemplateClass;if(!w){if(K){var d=l.mutableData?ngO:kby;w=function(){return d.apply(this,arguments)||this};
_.S(w,d);w=H.templatizeTemplateClass=w}else{var B=X.constructor;w=function(){return B.apply(this,arguments)||this};
_.S(w,B);w=H.templatizeTemplateClass=w}var q=H.hostProps,u;for(u in q)w.prototype._addPropertyEffect("_host_"+u,w.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:x7y(U)}),w.prototype._createNotifyingProperty("_host_"+u);am&&b&&D7W(H,l,b)}X.__dataProto&&Object.assign(X.__data,X.__dataProto);if(K)V5O(X,w),X.__dataTemp={},X.__dataPending=null,X.__dataOld=null,X._enableProperties();else{Object.setPrototypeOf(X,w.prototype);H=H.hostProps;for(var e in H)e="_host_"+e,e in X&&(H=X[e],delete X[e],X.__data[e]=
H)}}};
x7y=function(X){return function(H,l,b){X.call(H.__templatizeOwner,l.substring(6),b[l])}};
SCl=function(X,H,l,b){var U=l.hostProps||{},K;for(K in b.instanceProps){delete U[K];var w=b.notifyInstanceProp;w&&X.prototype._addPropertyEffect(K,X.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Wqb(w)})}if(b.forwardHostProp&&H.__dataHost)for(var d in U)l.hasHostProps||(l.hasHostProps=!0),X.prototype._addPropertyEffect(d,X.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:EgK()})};
Wqb=function(X){return function(H,l,b){X.call(H.__templatizeOwner,H,l,b[l])}};
EgK=function(){return function(X,H,l){X.__dataHost._setPendingPropertyOrPath("_host_"+H,l[H],!0,!0)}};
GX=function(X,H,l){if(ZC&&!fUK(X))throw Error("Pd");l=l||{};if(X.__templatizeOwner)throw Error("Qd");X.__templatizeOwner=H;var b=(H?H.constructor:gw)._parseTemplate(X),U=b.templatizeInstanceClass;U||(U=zGh(X,b,l),b.templatizeInstanceClass=U);var K=fUK(X);t5W(X,b,l,K);l=function(){return U.apply(this,arguments)||this};
_.S(l,U);l.prototype._methodHost=K;l.prototype.__dataHost=X;l.prototype.__templatizeOwner=H;l.prototype.__hostProps=b.hostProps;return l};
D7W=function(X,H,l){l=l.constructor._properties;X=X.propertyEffects;H=H.instanceProps;for(var b in X)if(!(l[b]||H&&H[b]))for(var U=X[b],K=0;K<U.length;K++){var w=U[K].info.part;if(!w.signature||!w.signature.static){console.warn("Property '"+b+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
ggL=function(X,H){for(var l;H;)if(l=H.__dataHost?H:H.__templatizeInstance)if(l.__dataHost!=X)H=l.__dataHost;else return l;else H=(0,_.q0)(H).parentNode;return null};
iz=function(X){return X.localName==="slot"};
Gby=function(){for(var X=vj.prototype,H="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),l={},b=0;b<H.length;l={method$jscomp$33:void 0},b++)l.method$jscomp$33=H[b],X[l.method$jscomp$33]=function(U){return function(){return this.node[U.method$jscomp$33].apply(this.node,arguments)}}(l)};
aUz=function(X,H){for(var l={},b=0;b<H.length;l={name$jscomp$450:void 0},b++)l.name$jscomp$450=H[b],Object.defineProperty(X,l.name$jscomp$450,{get:function(U){return function(){return this.node[U.name$jscomp$450]}}(l),
configurable:!0})};
ZjO=function(){for(var X=vj.prototype,H=["textContent","innerHTML","className"],l={},b=0;b<H.length;l={name$jscomp$451:void 0},b++)l.name$jscomp$451=H[b],Object.defineProperty(X,l.name$jscomp$451,{get:function(U){return function(){return this.node[U.name$jscomp$451]}}(l),
set:function(U){return function(K){this.node[U.name$jscomp$451]=K}}(l),
configurable:!0})};
ijk=function(){OL=document.documentElement.getAttribute("dir");OL=document.documentElement.getAttribute("dir");for(var X=0;X<mc.length;X++){var H=mc[X];H.__autoDirOptOut||H.setAttribute("dir",OL)}};
QVO=function(){QL=!0;requestAnimationFrame(function(){QL=!1;vgy(Ojy);setTimeout(function(){for(var X=0,H=TX.length;X<H;X++)m7k(TX.shift())})})};
vgy=function(X){for(;X.length;)m7k(X.shift())};
m7k=function(X){var H=X[0],l=X[1];X=X[2];try{l.apply(H,X)}catch(b){setTimeout(function(){throw b;})}};
_.TJK=function(X,H,l){QL||QVO();Ojy.push([X,H,l])};
_.N0=function(X,H,l){QL||QVO();TX.push([X,H,l])};
jVL=function(X,H){H=H===void 0?!1:H;if(!NJy||!cCm||!NJy.handlesDynamicScoping)return null;var l=cCm.ScopingShim;if(!l)return null;var b=l.scopeForNode(X),U=(0,_.q0)(X).getRootNode(),K=function(w){if((0,_.q0)(w).getRootNode()===U){var d=Array.from(NJy.nativeMethods.querySelectorAll.call(w,"*"));d.push(w);for(w=0;w<d.length;w++){var B=d[w];if((0,_.q0)(B).getRootNode()===U){var q=l.currentScopeForNode(B);q!==b&&(q!==""&&l.unscopeNode(B,q),l.scopeNode(B,b))}}}};
K(X);return H?(H=new MutationObserver(function(w){for(var d=0;d<w.length;d++)for(var B=w[d],q=0;q<B.addedNodes.length;q++){var u=B.addedNodes[q];u.nodeType===Node.ELEMENT_NODE&&K(u)}}),H.observe(X,{childList:!0,
subtree:!0}),H):null};
rCm=function(){document.body.removeAttribute("unresolved")};
ACl=function(X){var H=X=X.replace(JCO,"").replace(Lqk,""),l=new YCy;l.start=0;l.end=H.length;for(var b=l,U=0,K=H.length;U<K;U++)if(H[U]==="{"){b.rules||(b.rules=[]);var w=b,d=w.rules[w.rules.length-1]||null;b=new YCy;b.start=U+1;b.parent=w;b.previous=d;w.rules.push(b)}else H[U]==="}"&&(b.end=U+1,b=b.parent||l);return IUy(l,X)};
IUy=function(X,H){var l=H.substring(X.start,X.end-1);X.parsedCssText=X.cssText=l.trim();X.parent&&(l=H.substring(X.previous?X.previous.end:X.parent.start,X.start-1),l=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(l),l=l.replace(X0y," "),l=l.substring(l.lastIndexOf(";")+1),l=X.parsedSelector=X.selector=l.trim(),X.atRule=l.indexOf("@")===0,X.atRule?l.indexOf("@media")===0?X.type=4:l.match(Hx8)&&(X.type=7,X.keyframesName=X.selector.split(X0y).pop()):l.indexOf("--")===
0?X.type=1E3:X.type=1);if(l=X.rules)for(var b=0,U=l.length,K=void 0;b<U&&(K=l[b]);b++)IUy(K,H);return X};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(X){return X.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var H=arguments[1],l=6-H.length;l--;)H="0"+H;return"\\"+H})};
lOz=function(X,H,l){l=l===void 0?"":l;var b="";if(X.cssText||X.rules){var U=X.rules;if(U&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(U))for(var K=0,w=U.length,d=void 0;K<w&&(d=U[K]);K++)b=lOz(d,H,b);else H?H=X.cssText:(H=X.cssText,H=H.replace(oob,"").replace(bxm,""),H=H.replace(UOy,"").replace($Oh,"")),(b=H.trim())&&(b="  "+b+"\n")}b&&(X.selector&&(l+=X.selector+" {\n"),l+=b,X.selector&&(l+="}\n\n"));return l};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(X){X=X[0];return!!X&&!!X.selector&&X.selector.indexOf("--")===0};
RIz=function(X){if(X=KLh[X])X._applyShimCurrentVersion=X._applyShimCurrentVersion||0,X._applyShimValidatingVersion=X._applyShimValidatingVersion||0,X._applyShimNextVersion=(X._applyShimNextVersion||0)+1};
CKl=function(X){return X._applyShimCurrentVersion===X._applyShimNextVersion};
dOZ=function(X){X._applyShimValidatingVersion=X._applyShimNextVersion;X._validating||(X._validating=!0,w0K.then(function(){X._applyShimCurrentVersion=X._applyShimNextVersion;X._validating=!1}))};
FLl=function(X){if(!X)return"";typeof X==="string"&&(X=ACl(X));return lOz(X,hIb)};
B1N=function(X){!X.__cssRules&&X.textContent&&(X.__cssRules=ACl(X.textContent));return X.__cssRules||null};
s4y=function(X,H,l,b){if(X){var U=!1,K=X.type;if(b&&K===4){var w=X.selector.match(qQZ);w&&(window.matchMedia(w[1]).matches||(U=!0))}K===1?H(X):l&&K===7?l(X):K===1E3&&(U=!0);if((X=X.rules)&&!U)for(U=0,K=X.length,w=void 0;U<K&&(w=X[U]);U++)s4y(w,H,l,b)}};
MHh=function(X,H){var l=X.indexOf("var(");if(l===-1)return H(X,"","","");a:{var b=0;var U=l+3;for(var K=X.length;U<K;U++)if(X[U]==="(")b++;else if(X[U]===")"&&--b===0)break a;U=-1}b=X.substring(l+4,U);l=X.substring(0,l);X=MHh(X.substring(U+1),H);K=b.indexOf(",");if(K===-1)return H(l,b.trim(),"",X);U=b.substring(0,K).trim();b=b.substring(K+1).trim();return H(l,U,b,X)};
uKy=function(X){if(cj!==void 0)return cj;if(X.__cssBuild===void 0){var H=X.getAttribute("css-build");if(H)X.__cssBuild=H;else{a:{H=X.localName==="template"?X.content.firstChild:X.firstChild;if(H instanceof Comment&&(H=H.textContent.trim().split(":"),H[0]==="css-build")){H=H[1];break a}H=""}if(H!==""){var l=X.localName==="template"?X.content.firstChild:X.firstChild;l.parentNode.removeChild(l)}X.__cssBuild=H}}return X.__cssBuild||""};
yfy=function(X,H,l,b){for(var U=H._noAccessors,K=Object.getOwnPropertyNames(H),w=0;w<K.length;w++){var d=K[w];if(!(d in b))if(U)X[d]=H[d];else{var B=Object.getOwnPropertyDescriptor(H,d);B&&(B.configurable=!0,Object.defineProperty(X,d,B))}}for(var q in eIy)H[q]&&(l[q]=l[q]||[],l[q].push(H[q]))};
VHb=function(X,H,l){H=H||[];for(var b=X.length-1;b>=0;b--){var U=X[b];U?Array.isArray(U)?VHb(U,H):H.indexOf(U)<0&&(!l||l.indexOf(U)<0)&&H.unshift(U):console.warn("behavior is null, check for missing or 404 import")}return H};
PKN=function(X,H){for(var l in H){var b=X[l],U=H[l];X[l]=!("value"in U)&&b&&"value"in b?Object.assign({value:b.value},U):U}};
SQz=function(X,H,l){var b={},U=function(){return H.apply(this,arguments)||this};
_.S(U,H);U._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(w)for(var B=0,q;B<w.length;B++)q=w[B],q.properties&&this.createProperties(q.properties),q.observers&&this.createObservers(q.observers,q.properties);X.properties&&this.createProperties(X.properties);X.observers&&this.createObservers(X.observers,X.properties);this._prepareTemplate()}else H._finalizeClass.call(this)};
U.prototype.created=function(){H.prototype.created.call(this);var B=b.created;if(B)for(var q=0;q<B.length;q++)B[q].call(this)};
U.prototype._registered=function(){var B=U.prototype;if(!B.hasOwnProperty("__hasRegisterFinished")){B.__hasRegisterFinished=!0;H.prototype._registered.call(this);Wj&&d(B);B=Object.getPrototypeOf(this);var q=b.beforeRegister;if(q)for(var u=0;u<q.length;u++)q[u].call(B);if(q=b.registered)for(u=0;u<q.length;u++)q[u].call(B)}};
U.prototype._applyListeners=function(){H.prototype._applyListeners.call(this);var B=b.listeners;if(B)for(var q=0;q<B.length;q++){var u=B[q];if(u)for(var e in u)this._addMethodEventListenerToNode(this,e,u[e])}};
U.prototype._ensureAttributes=function(){var B=b.hostAttributes;if(B)for(var q=B.length-1;q>=0;q--){var u=B[q],e;for(e in u)this._ensureAttribute(e,u[e])}H.prototype._ensureAttributes.call(this)};
U.prototype.ready=function(){H.prototype.ready.call(this);var B=b.ready;if(B)for(var q=0;q<B.length;q++)B[q].call(this)};
U.prototype.attached=function(){H.prototype.attached.call(this);var B=b.attached;if(B)for(var q=0;q<B.length;q++)B[q].call(this)};
U.prototype.detached=function(){H.prototype.detached.call(this);var B=b.detached;if(B)for(var q=0;q<B.length;q++)B[q].call(this)};
U.prototype.attributeChanged=function(B,q,u){H.prototype.attributeChanged.call(this);var e=b.attributeChanged;if(e)for(var y=0;y<e.length;y++)e[y].call(this,B,q,u)};
_.ja.Object.defineProperties(U,{properties:{configurable:!0,enumerable:!0,get:function(){var B={};if(w)for(var q=0;q<w.length;q++)PKN(B,w[q].properties);PKN(B,X.properties);return B}},
observers:{configurable:!0,enumerable:!0,get:function(){var B=[];if(w)for(var q=0,u;q<w.length;q++)u=w[q],u.observers&&(B=B.concat(u.observers));X.observers&&(B=B.concat(X.observers));return B}}});
if(l){Array.isArray(l)||(l=[l]);var K=H.prototype.behaviors;var w=VHb(l,null,K);U.prototype.behaviors=K?K.concat(l):w}var d=function(B){if(w)for(var q=w,u=0;u<q.length;u++)yfy(B,q[u],b,fON);yfy(B,X,b,p0K)};
Wj||d(U.prototype);U.generatedFrom=X;return U};
xOy=function(X){var H=typeof X!=="string"?X:{is:X,notifyObserversOnUndefined:!0};H.fastInit===void 0&&(H.fastInit=!0);return function(l){if(!H.disableInheritanceCheck&&Object.getPrototypeOf(l.prototype).constructor!==_.rw)throw Error("Ud");var b=l.prototype;b.is=H.is;gqh(b,"created",function(){this.hostElement=this;this.polymerController=this});
zIW(b,l,H.fastInit);H.notifyObserversOnUndefined&&(b._overrideLegacyUndefined=!0);if(no8)for(var U=_.C(Object.getOwnPropertyNames(b)),K=U.next();!K.done;K=U.next()){K=K.value;var w=Object.getOwnPropertyDescriptor(b,K);w.enumerable===!1&&(w.enumerable=!0,Object.defineProperty(b,K,w))}if("template"in l)var d=function(){return l.template};
else H.template!==void 0&&(d=H.template);if(d!==void 0){var B;Object.defineProperty(b,"_template",{get:function(){B===void 0&&(B=d());return B},
set:function(q){B=q},
configurable:!0,enumerable:!0})}Polymer(b);l[kay]=b}};
DOW=function(X){X=X===void 0?{}:X;X.fastInit===void 0&&(X.fastInit=!0);return function(H){if(!X.disableInheritanceCheck&&Object.getPrototypeOf(H.prototype).constructor!==Jh)throw Error("Vd");zIW(H.prototype,H,X.fastInit)}};
zIW=function(X,H,l){l=l===void 0?!1:l;tHO(H);l?gqh(X,"created",function(){this.disableEnforceFastDefaultValuesCheck||WL8(H,this)}):gqh(X,"ready",function(){for(var b={},U=_.C(GrL(this.behaviors)),K=U.next();!K.done;K=U.next())K=K.value,K.properties&&Object.assign(b,EoW(this,K.properties));
Object.assign(b,EoW(this,this.properties));WL8(H,this);U=_.C(Object.keys(b));for(K=U.next();!K.done;K=U.next())K=K.value,this[K]=b[K]})};
WL8=function(X,H){if(no8){X=new X;for(var l=_.C(Object.getOwnPropertyNames(X)),b=l.next();!b.done;b=l.next())b=b.value,H[b]=X[b];for(l=H;l&&l!==Object.prototype;l=Object.getPrototypeOf(l)){b=_.C(Object.getOwnPropertyNames(l));for(var U=b.next();!U.done;U=b.next())U=U.value,X.hasOwnProperty(U)||Object.defineProperty(X,U,goO(H,U))}}else X.apply(H)};
goO=function(X,H){return{get:function(){var l=X[H];return l instanceof Function?l.bind(X):l},
set:function(l){X[H]=l}}};
EoW=function(X,H){if(!H)return{};for(var l={},b=_.C(Object.keys(H)),U=b.next();!U.done;U=b.next())if(U=U.value,!H[U].readOnly){var K=X[U];K!==void 0&&(l[U]=K)}return l};
tHO=function(X){var H=new X;X=X.prototype.properties||{};for(var l=_.C(Object.keys(X)),b=l.next();!b.done;b=l.next())if(b=b.value,H.hasOwnProperty(b)){var U=X[b];typeof U==="function"&&(X[b]=U={type:U});H[b]!=null&&U.type===Object&&(U.type=Gal(H[b].constructor))}};
Gal=function(X){for(var H=_.C(aOL),l=H.next();!l.done;l=H.next())if(l=l.value,X===l)return l;return Object};
ZxZ=function(X){return function(H,l){H.behaviors=H.behaviors||[];H.behaviors.push(X||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",H,l).prototype:void 0));Object.defineProperty(H,l,{get:function(){return this},
enumerable:!0,configurable:!0})}};
ix8=function(X){X=X===void 0?{}:X;return function(H,l){H.properties=H.properties||{};X.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?X.type=Gal(Reflect.getMetadata("design:type",H,l)):X.type=String);var b=X,U=H.properties[l];H.properties[l]=U?Object.assign({},U,b):b}};
voZ=function(X){return function(H,l){H.listeners=H.listeners||{};H.listeners[X]=l}};
OxK=function(){var X=_.Ab.apply(0,arguments);if(X.length===0)throw Error("Wd");return function(H,l){H.observers=H.observers||[];H.observers.push(l+"("+X.join(",")+")")}};
mOy=function(){var X=_.Ab.apply(0,arguments);return function(H,l,b){var U=Object.getOwnPropertyDescriptor(H,l).get,K="__compute__"+l;Object.defineProperty(H,K,{value:U,enumerable:!0});H.properties=H.properties||{};U=H.properties[l];U||(U={},H.properties[l]=U);U.computed=K+"("+X.join(",")+")";b.get=void 0}};
_.Li=function(X,H,l){_.$e.call(this);this.JSC$11631_id_=null;this.usingListeners_=!1;this.JSC$11631_listener_=X;this.handler_=l;this.JSC$11631_win_=H||window;this.callback_=(0,_.K8)(this.JSC$11633_doAction_,this)};
T1h=function(X){var H=Q48(X);if(!H)throw Error("Xd`"+X);return H};
Q48=function(X){var H={};X=String(X);var l=X.charAt(0)=="#"?X:"#"+X;if(N1K.test(l))return H.hex=cfk(l),H.type="hex",H;l=j4h(X);return l.length?(H.hex=rfb(l[0],l[1],l[2]),H.type="rgb",H):JfK&&(X=JfK[X.toLowerCase()])?(H.hex=X,H.type="named",H):null};
cfk=function(X){if(!N1K.test(X))throw Error("Zd`"+X);X.length==4&&(X=X.replace(LLN,"#$1$1$2$2$3$3"));return X.toLowerCase()};
YQZ=function(X){X=cfk(X);X=parseInt(X.slice(1),16);return[X>>16,X>>8&255,X&255]};
rfb=function(X,H,l){X=Number(X);H=Number(H);l=Number(l);if(X!=(X&255)||H!=(H&255)||l!=(l&255))throw Error("$d`"+X+"`"+H+"`"+l);H=X<<16|H<<8|l;return X<16?"#"+(16777216|H).toString(16).slice(1):"#"+H.toString(16)};
j4h=function(X){var H=X.match(IOy);if(H){X=Number(H[1]);var l=Number(H[2]);H=Number(H[3]);if(X>=0&&X<=255&&l>=0&&l<=255&&H>=0&&H<=255)return[X,l,H]}return[]};
Afm=function(){};
YH=function(X){this.range_=X};
Im=function(X){this.range_=X};
Ah=function(X){this.range_=X};
XRm=function(X){return _.XQ?new Ah(X):_.Hf?new Im(X):new YH(X)};
HuK=function(){var X=$O().JSC$9636_document_;return!!(X.webkitIsFullScreen||X.mozFullScreen||X.msFullscreenElement||X.fullscreenElement)};
_.lg=function(){var X=window.getSelection();return X&&lNb(X)};
lNb=function(X){var H=!1;if(X.createRange)try{var l=X.createRange()}catch(U){return null}else if(X.rangeCount){if(X.rangeCount>1){l=new oK;H=X.rangeCount;for(var b=0;b<H;b++)l.browserRanges_.push(X.getRangeAt(b));return l}l=X.getRangeAt(0);H=o1Z(X.anchorNode,X.anchorOffset,X.focusNode,X.focusOffset)}else return null;return buZ(XRm(l),H)};
_.Ue=function(X,H){return _.bg(X,H,X,H)};
_.$E=function(X,H,l,b){return _.bg(X,H,l,b)};
o1Z=function(X,H,l,b){if(X==l)return b<H;var U;if(X.nodeType==1&&H)if(U=X.childNodes[H])X=U,H=0;else if(_.aA(X,l))return!0;if(l.nodeType==1&&b)if(U=l.childNodes[b])l=U,b=0;else if(_.aA(l,X))return!1;return(UQW(X,l)||H-b)>0};
Kr=function(X,H,l){_.$e.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=X;this.scrollTimer_=new _.ho(50);this.JSC$11710_eventHandler_=new _.C8(this);this.scrollDelta_=new _.DY;this.containerIsActuallyContent_=X.tagName==="BODY"||X.tagName==="HTML";this.containerBounds_=$Qb(X);this.containerIsActuallyContent_&&(X=_.bB(),this.containerBounds_.height=X.height,this.containerBounds_.width=X.width);this.margin_=H||0;if(H){if(H=this.containerBounds_.clone(),X=this.margin_){var b=
Math.min(X,H.height*.25);H.top+=b;H.height-=2*b;X=Math.min(X,H.width*.25);H.left+=X;H.width-=2*X}}else H=this.containerBounds_;this.scrollBounds_=H;l||this.JSC$11710_eventHandler_.listen(_.uB(this.containerNode_),"mousemove",this.JSC$11712_onMouseMove);this.JSC$11710_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11712_onTick_)};
Kxl=function(){};
RR8=function(X){return X%10==1&&X%100!=11?"one":X%10==2&&X%100!=12?"two":X%10==3&&X%100!=13?"few":"other"};
CiK=function(X,H){var l=X|0;if(void 0===H){H=Math;var b=H.min,U=X+"",K=U.indexOf(".");H=b.call(H,K===-1?0:U.length-K-1,3)}b=Math.pow(10,H);X={v:H,f:(X*b|0)%b};return l==1&&X.v==0?"one":"other"};
wRz=function(X,H,l,b,U,K,w,d){this.x0=X;this.y0=H;this.x1=l;this.y1=b;this.x2=U;this.y2=K;this.x3=w;this.y3=d};
RK=function(){_.zB.call(this);this.JSC$11793_name_="closure_frame"+dQh++;this.iframesForDisposal_=[];hRZ[this.JSC$11793_name_]=this};
_.Cr=function(X){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_=!(!X||!X.deliverMessageAsRawString)};
_.wV=function(X){this.mechanism=X};
dV=function(X,H){this.JSC$11804_key_=X;this.JSC$11804_value_=H};
_.hB=function(X,H){this.JSC$11810_map_={};this.JSC$11810_keys_=[];this.version_=this.size=0;var l=arguments.length;if(l>1){if(l%2)throw Error("na");for(var b=0;b<l;b+=2)this.set(arguments[b],arguments[b+1])}else X&&this.addAll(X)};
BBy=function(){this.JSC$11813_map_=new _.hB;this.JSC$11813_head_=new FxL("");this.JSC$11813_head_.next=this.JSC$11813_head_.prev=this.JSC$11813_head_};
suk=function(X){if(X>=55296&&X<=57343||X>1114111)return"\ufffd";X in q$N&&(X=q$N[X]);var H="";X>65535&&(X-=65536,H+=String.fromCharCode(X>>>10&1023|55296),X=56320|X&1023);return H+=String.fromCharCode(X)};
M1K=function(X,H){return X<H?1:-1};
eRh=function(){return function(X){return X.charAt(1)==="#"?X.charAt(2)==="X"||X.charAt(2)==="x"?suk(parseInt(X.substr(3),16)):suk(parseInt(X.substr(2),10)):uEy[X.slice(1,-1)]}};
PiL=function(X){return X.slice(1,X.length-1).trim().replace(y8y,function(H){return V1l[H]||" "})};
FQ=function(X){return X===32||X===9};
Bf=function(X,H){return H<X.length?X.charCodeAt(H):-1};
fNN=function(X){for(;X;){if(X._lastLineBlank)return!0;var H=X.type;if(H==="list"||H==="item")X=X._lastChild;else break}return!1};
q9=function(X){if(pRy.test(X)){var H=1,l=0,b=0;for(X[l]=="|"&&l++;l<X.length;){switch(X[l]){case "|":b=1;break;case " ":break;case "\t":break;default:b&&(b=0,H++)}l++}return S$O.test(X)?-H:H}return 0};
zRN=function(X){return X=="table"||X=="row"||X=="cell"};
n1h=function(){return new se("document",[[1,1],[0,0]])};
kjz=function(){};
ug=function(){var X={safe:!1};X=X||{};X.softbreak=X.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=X};
E1Z=function(X,H){var l="";if(X)if(X=X.toLowerCase(),X===" "||xQy.test(X))l="space";else if(DQz.test(X))l="esc";else if(X.length==1){if(!H||t1l.test(X))l=X}else l=WxO.test(X)?X.replace("arrow",""):X=="multiply"?"*":X;return l};
Zuy=function(X,H){var l=X.hasModifiers;if(H.key)l=E1Z(H.key,l);else if(H.detail&&H.detail.key)l=E1Z(H.detail.key,l);else{l=H.keyIdentifier;var b="";l&&(l in g1L?b=g1L[l]:GjL.test(l)?(l=parseInt(l.replace("U+","0x"),16),b=String.fromCharCode(l).toLowerCase()):b=l.toLowerCase());(l=b)||(l=H.keyCode,b="",Number(l)&&(l>=65&&l<=90?b=String.fromCharCode(32+l):l>=112&&l<=123?b="f"+(l-112+1):l>=48&&l<=57?b=String(l-48):l>=96&&l<=105?b=String(l-96):b=aNh[l]),l=b);l=l||""}return l===X.key&&(!X.hasModifiers||
!!H.shiftKey===!!X.shiftKey&&!!H.ctrlKey===!!X.ctrlKey&&!!H.altKey===!!X.altKey&&!!H.metaKey===!!X.metaKey)};
v1m=function(X){return X.length===1?{combo:X,key:X,event:"keydown"}:X.split("+").reduce(function(H,l){var b=l.split(":");l=b[0];b=b[1];l in iuK?(H[iuK[l]]=!0,H.hasModifiers=!0):(H.key=l,H.event=b||"keydown");return H},{combo:X.split(":").shift()})};
Ou8=function(X){return X.trim().split(" ").map(function(H){return v1m(H)})};
mQm=function(X,H){if(X&&X.fn){var l=X.fn;X.fn=function(){try{l.apply(this,arguments)}catch(b){if(b instanceof eB)console.warn("Argument '"+b.arg+"'"+(H?" for method '"+H+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw b;}}}return X};
TBb=function(){var X=[],H;var l=l||_.QuZ.length;for(H=0;H<8;H++)X[H]=_.QuZ[0|Math.random()*l];return X.join("")};
NBO=function(){var X=_.Ab.apply(0,arguments);return X.length===0?function(H){return H}:X.length===1?X[0]:X.reduce(function(H,l){return function(){return H(l.apply(null,_.LJ(_.Ab.apply(0,arguments))))}})};
c8m=function(){var X=_.Ab.apply(0,arguments);return function(H){return function(l,b){l=H(l,b);var U=function(){throw Error("Ge");},K={getState:l.getState,
dispatch:function(w){return U.apply(null,[w].concat(_.LJ(_.Ab.apply(1,arguments))))}};
b=X.map(function(w){return w(K)});
U=NBO.apply(null,_.LJ(b))(l.dispatch);return Object.assign({},l,{dispatch:U})}}};
J8Z=function(X){Object.keys(X).forEach(function(H){var l=X[H];if(typeof l(void 0,{type:jum})==="undefined")throw Error("He`"+H);if(typeof l(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+r8y()})==="undefined")throw Error("Ie`"+H+"`"+jum);})};
Vt=function(X){for(var H=Object.keys(X),l={},b=0;b<H.length;b++){var U=H[b];typeof X[U]==="function"&&(l[U]=X[U])}var K=Object.keys(l);try{J8Z(l)}catch(d){var w=d}return function(d,B){d=d===void 0?{}:d;if(w)throw w;for(var q=!1,u={},e=0;e<K.length;e++){var y=K[e],V=d[y],p=(0,l[y])(V,B);if(typeof p==="undefined")throw d=B&&B.type,Error("Je`"+(d?'"'+String(d)+'"':"(unknown type)")+"`"+y);u[y]=p;q=q||p!==V}return(q=q||K.length!==Object.keys(d).length)?u:d}};
LxW=function(X,H,l){function b(){if(u)throw Error("Ke");return d}
function U(V){if(typeof V!=="function")throw Error("Le`"+typeof V);if(u)throw Error("Me");var p=!0;q===B&&(q=B.slice());q.push(V);return function(){if(p){if(u)throw Error("Ne");p=!1;q===B&&(q=B.slice());var z=q.indexOf(V);q.splice(z,1);B=null}}}
function K(V){if(typeof V!=="object"||V===null)var p=!1;else{for(p=V;Object.getPrototypeOf(p)!==null;)p=Object.getPrototypeOf(p);p=Object.getPrototypeOf(V)===p}if(!p)throw Error("Oe`"+typeof V);if(typeof V.type==="undefined")throw Error("Pe");if(u)throw Error("Qe");try{u=!0,d=w(d,V)}finally{u=!1}p=B=q;for(var z=0;z<p.length;z++)(0,p[z])();return V}
if(typeof H==="function"&&typeof l==="function"||typeof l==="function"&&typeof arguments[3]==="function")throw Error("Re");typeof H==="function"&&typeof l==="undefined"&&(l=H,H=void 0);if(typeof l!=="undefined"){if(typeof l!=="function")throw Error("Se`"+typeof l);return l(LxW)(X,H)}if(typeof X!=="function")throw Error("Te`"+typeof X);var w=X,d=H,B=[],q=B,u=!1;K({type:jum});var e={},y=(e.dispatch=K,e.subscribe=U,e.getState=b,e.replaceReducer=function(V){if(typeof V!=="function")throw Error("Ue`"+
typeof V);w=V;K({type:Y$k});return y},e[INm]=function(){var V={};
return V.subscribe=function(p){function z(){p.next&&p.next(b())}
if(typeof p!=="object"||p===null)throw new TypeError("Ve`"+typeof p);z();return{unsubscribe:U(z)}},V[INm]=function(){return this},V},e);
return y};
A8l=function(X){function H(){U&&(U=!1,X());K&&b()}
function l(){requestAnimationFrame(H)}
function b(){var d=Date.now();if(U){if(d-w<2)return;K=!0}else U=!0,K=!1,setTimeout(l,20);w=d}
var U=!1,K=!1,w=0;return b};
Pf=function(X){return typeof X==="number"?X:parseFloat(X)||0};
Xtl=function(X){return _.Ab.apply(1,arguments).reduce(function(H,l){return H+Pf(X["border-"+l+"-width"])},0)};
b5y=function(X){if(H5b[X])return H5b[X];var H=globalThis[X],l=H.prototype,b=X in ldK?ldK[X]:void 0;b=!(!b||!b.every(function(B){var q,u;return!!((q=Object.getOwnPropertyDescriptor(l,B))==null?0:(u=q.get)==null?0:u.toString().includes("[native code]"))}));
var U=X in oPZ?oPZ[X]:void 0;U=!(!U||!U.every(function(B){var q;return typeof l[B]==="function"&&((q=l[B])==null?void 0:q.toString().includes("[native code]"))}));
if(b&&U&&!globalThis.Zone)return H5b[X]=H.prototype;try{var K=document.createElement("iframe");document.body.appendChild(K);var w=K.contentWindow;if(!w)return H.prototype;var d=w[X].prototype;document.body.removeChild(K);return d?H5b[X]=d:l}catch(B){return l}};
fr=function(X,H,l){var b=X+"."+String(l);if(USO[b])return USO[b].call(H);X=b5y(X);var U;X=(U=Object.getOwnPropertyDescriptor(X,l))==null?void 0:U.get;if(!X)return H[l];USO[b]=X;return X.call(H)};
KTW=function(X,H){var l="Node."+String(H);if($Sk[l])return $Sk[l].bind(X);var b=b5y("Node")[H];if(typeof b!=="function")return X[H];$Sk[l]=b;return b.bind(X)};
pr=function(X,H,l){try{if(!(H in X))return function(){};
var b=X[H],U=l(b);typeof U==="function"&&(U.prototype=U.prototype||{},Object.defineProperties(U,{__rrweb_original__:{enumerable:!1,value:b}}));X[H]=U;return function(){X[H]=b}}catch(K){return function(){}}};
nr=function(X){var H=X&&"host"in X&&"mode"in X&&SB(X)||null;return!!(H&&"shadowRoot"in H&&zw(H)===X)};
kE=function(X){return Object.prototype.toString.call(X)==="[object ShadowRoot]"};
Rvh=function(X){X.includes(" background-clip: text;")&&!X.includes(" -webkit-background-clip: text;")&&(X=X.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return X};
wtK=function(X){try{var H=X.rules||X.cssRules;if(!H)return null;var l=X.href;!l&&X.ownerNode&&(l=X.ownerNode.baseURI);var b=Array.from(H,function(U){return CZO(U,l)}).join("");
return Rvh(b)}catch(U){return null}};
CZO=function(X,H){if("styleSheet"in X){try{var l;if(!(l=wtK(X.styleSheet))){var b=X.cssText;if(b.split('"').length<3)l=b;else{var U=["@import","url("+JSON.stringify(X.href)+")"];X.layerName===""?U.push("layer"):X.layerName&&U.push("layer("+X.layerName+")");X.supportsText&&U.push("supports("+X.supportsText+")");X.media.length&&U.push(X.media.mediaText);l=U.join(" ")+";"}}var K=l}catch(w){K=X.cssText}return X.styleSheet.href?dSy(K,X.styleSheet.href):K}K=X.cssText;"selectorText"in X&&X.selectorText.includes(":")&&
(K=K.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return H?dSy(K,H):K};
hv8=function(X){var H=X.element;var l=X.maskInputOptions;var b=X.tagName;var U=X.type;var K=X.value;X=X.maskInputFn;K=K||"";U=U&&U.toLowerCase();if(l[b.toLowerCase()]||U&&l[U])K=X?X(K,H):"*".repeat(K.length);return K};
FTy=function(X){var H=X.getContext("2d");if(!H)return!0;for(var l=0;l<X.width;l+=50)for(var b=0;b<X.height;b+=50){var U=H.getImageData;if((new Uint32Array(("__rrweb_original__"in U?U.__rrweb_original__:U).call(H,l,b,Math.min(50,X.width-l),Math.min(50,X.height-b)).data.buffer)).some(function(K){return K!==0}))return!1}return!0};
Bzy=function(X){var H=X.type;return X.hasAttribute("data-rr-is-password")?"password":H?H.toLowerCase():null};
qdk=function(X){try{var H=new URL(X,window.location.href)}catch(U){return null}var l,b;return(b=(l=H.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:l[1])!=null?b:null};
dSy=function(X,H){return(X||"").replace(sMN,function(l,b,U,K,w,d){U=U||w||d;b=b||K||"";if(!U)return l;if(Mzy.test(U)||ual.test(U)||evy.test(U))return"url("+b+U+b+")";if(U[0]==="/")return l=H.indexOf("//")>-1?H.split("/").slice(0,3).join("/"):H.split("/")[0],l=l.split("?")[0],"url("+b+(l+U)+b+")";l=H.split("/");K=U.split("/");l.pop();K=_.C(K);for(U=K.next();!U.done;U=K.next())U=U.value,U!=="."&&(U===".."?l.pop():l.push(U));return"url("+b+l.join("/")+b+")"})};
yPZ=function(X,H){return(H=H===void 0?!1:H)?X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):X.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
Vzm=function(X,H){var l=l===void 0?!1:l;H=Array.from(H.childNodes);var b=[],U=0;if(H.length>1&&X&&typeof X==="string")for(var K=yPZ(X,l),w=K.length/X.length,d=1;d<H.length;d++)if(H[d].textContent&&typeof H[d].textContent==="string"){for(var B=yPZ(H[d].textContent,l),q=3;q<B.length&&(B[q].match(/[a-zA-Z0-9]/)||B.indexOf(B.substring(0,q),1)!==-1);q++);for(;q<B.length;q++){var u=B.substring(0,q),e=K.split(u),y=-1;if(e.length===2)y=e[0].length;else if(e.length>2&&e[0]===""&&H[d-1].textContent!=="")y=
K.indexOf(u,1);else if(e.length===1){u=u.substring(0,u.length-1);e=K.split(u);if(e.length<=1)return b.push(X),b;q=101}else q===B.length-1&&(y=K.indexOf(u));if(e.length>=2&&q>100){var V=H[d-1].textContent;V&&typeof V==="string"&&(y=K.indexOf(u,yPZ(V).length));y===-1&&(y=e[0].length)}if(y!==-1){for(B=Math.floor(y/w);B>0&&B<X.length;){U+=1;if(U>50*H.length)return b.push(X),b;q=yPZ(X.substring(0,B),l);if(q.length===y){b.push(X.substring(0,B));X=X.substring(B);K=K.substring(y);break}else B=q.length<y?
B+Math.max(1,Math.floor((y-q.length)/w)):B-Math.max(1,Math.floor((q.length-y)*w))}break}}}b.push(X);return b};
fdK=function(){return PZO++};
Sd8=function(X){if(X instanceof HTMLFormElement)return"form";X=X.tagName.toLowerCase();return ptN.test(X)?"div":X};
xSl=function(X,H){function l(q){return(q=q.exec(H.substring(b)))?(q=q[0],b+=q.length,q):""}
if(H.trim()==="")return H;for(var b=0,U=[];;){l(zvN);if(b>=H.length)break;var K=l(nPl);if(K.slice(-1)===",")K=kqz(X,K.substring(0,K.length-1)),U.push(K);else{var w="";K=kqz(X,K);for(var d=!1;;){var B=H.charAt(b);if(B===""){U.push((K+w).trim());break}else if(d)B===")"&&(d=!1);else if(B===","){b+=1;U.push((K+w).trim());break}else B==="("&&(d=!0);w+=B;b+=1}}}return U.join(", ")};
kqz=function(X,H){return H&&H.trim()!==""?DSW(X,H):H};
DSW=function(X,H){var l=tzy.get(X);l||(l=X.createElement("a"),tzy.set(X,l));if(!H)H="";else if(H.startsWith("blob:")||H.startsWith("data:"))return H;HJ(l,H);return l.href};
WTO=function(X,H,l,b){return b?l==="src"||l==="href"&&(H!=="use"||b[0]!=="#")||l==="xlink:href"&&b[0]!=="#"||l==="background"&&(H==="table"||H==="td"||H==="th")?kqz(X,b):l==="srcset"?xSl(X,b):l==="style"?dSy(b,DSW(X)):H==="object"&&l==="data"?kqz(X,b):b:b};
EPk=function(X,H){return(X==="video"||X==="audio")&&H==="autoplay"};
gPb=function(X,H,l){try{if(typeof H==="string"){if(X.classList.contains(H))return!0}else for(var b=X.classList.length;b--;)if(H.test(X.classList[b]))return!0;if(l)return X.matches(l)}catch(U){}return!1};
Gqz=function(X,H,l){if(!X)return!1;if(X.nodeType!==X.ELEMENT_NODE)return l?Gqz(xE(X),H,l):!1;for(var b=X.classList.length;b--;)if(H.test(X.classList[b]))return!0;return l?Gqz(xE(X),H,l):!1};
adL=function(X,H,l,b){if(X.nodeType===X.ELEMENT_NODE){if(!tB(X).length)return!1}else{if(Wf(X)===null)return!1;X=Wf(X)}try{if(typeof H==="string")if(b){if(X.closest("."+H))return!0}else{if(X.classList.contains(H))return!0}else if(Gqz(X,H,b))return!0;if(l)if(b){if(X.closest(l))return!0}else if(X.matches(l))return!0}catch(U){}return!1};
Z5k=function(X,H,l){var b=X.contentWindow;if(b){var U=!1;try{var K=b.document.readyState}catch(d){return}if(K!=="complete"){var w=setTimeout(function(){U||(H(),U=!0)},l);
X.addEventListener("load",function(){clearTimeout(w);U=!0;H()})}else b.location.href==="about:blank"&&X.src!=="about:blank"&&X.src!==""||setTimeout(H,0),X.addEventListener("load",H)}};
i5O=function(X,H,l){var b=!1;try{var U=X.sheet}catch(w){return}if(!U){var K=setTimeout(function(){b||(H(),b=!0)},l);
X.addEventListener("load",function(){clearTimeout(K);b=!0;H()})}};
mSW=function(X,H){var l=H.doc,b=H.blockClass,U=H.blockSelector,K=H.needsMask,w=H.inlineStylesheet,d=H.maskInputOptions===void 0?{}:H.maskInputOptions,B=H.maskTextFn,q=H.maskInputFn,u=H.dataURLOptions===void 0?{}:H.dataURLOptions,e=H.inlineImages,y=H.recordCanvas,V=H.keepIframeSrcFn,p=H.newlyAddedElement===void 0?!1:H.newlyAddedElement,z=H.cssCaptured===void 0?!1:H.cssCaptured;H=H.mirror;H.nodeMetaMap.has(l)?(H=H.getId(l),H=H===1?void 0:H):H=void 0;switch(X.nodeType){case X.DOCUMENT_NODE:return X.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:X.compatMode}:{type:0,childNodes:[]};case X.DOCUMENT_TYPE_NODE:return{type:1,name:X.name,publicId:X.publicId,systemId:X.systemId,rootId:H};case X.ELEMENT_NODE:return vPZ(X,{doc:l,blockClass:b,blockSelector:U,inlineStylesheet:w,maskInputOptions:d,maskInputFn:q,dataURLOptions:u,inlineImages:e,recordCanvas:y,keepIframeSrcFn:V,newlyAddedElement:p,rootId:H});case X.TEXT_NODE:return w=(b=xE(X))&&b.tagName,b="",U=w==="STYLE"?!0:void 0,(w=w==="SCRIPT"?!0:void 0)?
b="SCRIPT_PLACEHOLDER":z||(b=O5y(X),U&&b&&(b=dSy(b,DSW(l)))),!U&&!w&&b&&K&&(b=B?B(b,Wf(X)):b.replace(/[\S]/g,"*")),{type:3,textContent:b||"",rootId:H};case X.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:H};case X.COMMENT_NODE:return{type:5,textContent:O5y(X)||"",rootId:H};default:return!1}};
vPZ=function(X,H){var l=H.doc,b=H.inlineStylesheet,U=H.maskInputOptions===void 0?{}:H.maskInputOptions,K=H.maskInputFn,w=H.dataURLOptions===void 0?{}:H.dataURLOptions,d=H.inlineImages,B=H.recordCanvas,q=H.keepIframeSrcFn,u=H.newlyAddedElement===void 0?!1:H.newlyAddedElement,e=H.rootId;H=gPb(X,H.blockClass,H.blockSelector);for(var y=Sd8(X),V={},p=X.attributes.length,z=0;z<p;z++){var t=X.attributes[z];EPk(y,t.name)||(V[t.name]=WTO(l,y,t.name.toLowerCase(),t.value))}y==="link"&&b&&(b=Array.from(l.styleSheets).find(function(v){return v.href===
X.href}),p=null,b&&(p=wtK(b)),p&&(delete V.rel,delete V.href,V._cssText=p));
y==="style"&&X.sheet&&(b=wtK(X.sheet))&&(X.childNodes.length>1&&(b=Vzm(b,X).join("/* rr_split */")),V._cssText=b);if(y==="input"||y==="textarea"||y==="select")b=X.value,p=X.checked,V.type!=="radio"&&V.type!=="checkbox"&&V.type!=="submit"&&V.type!=="button"&&b?V.value=hv8({element:X,type:Bzy(X),tagName:y,value:b,maskInputOptions:U,maskInputFn:K}):p&&(V.checked=p);y==="option"&&(X.selected&&!U.select?V.selected=!0:delete V.selected);y==="dialog"&&X.open&&(V.rr_open_mode=X.matches("dialog:modal")?"modal":
"non-modal");y==="canvas"&&B&&(X.__context==="2d"?FTy(X)||(V.rr_dataURL=X.toDataURL(w.type,w.quality)):"__context"in X||(U=X.toDataURL(w.type,w.quality),K=l.createElement("canvas"),K.width=X.width,K.height=X.height,K=K.toDataURL(w.type,w.quality),U!==K&&(V.rr_dataURL=U)));if(y==="img"&&d){Ee||(Ee=l.createElement("canvas"),QMl=Ee.getContext("2d"));var W=X.currentSrc||X.getAttribute("src")||"<unknown-src>",G=X.crossOrigin,r=function(){X.removeEventListener("load",r);try{Ee.width=X.naturalWidth,Ee.height=
X.naturalHeight,QMl.drawImage(X,0,0),V.rr_dataURL=Ee.toDataURL(w.type,w.quality)}catch(v){if(X.crossOrigin!=="anonymous"){X.crossOrigin="anonymous";X.complete&&X.naturalWidth!==0?r():X.addEventListener("load",r);return}console.warn("Cannot inline img src="+W+"! Error: "+v)}X.crossOrigin==="anonymous"&&(G?V.crossOrigin=G:X.removeAttribute("crossorigin"))};
X.complete&&X.naturalWidth!==0?r():X.addEventListener("load",r)}if(y==="audio"||y==="video")l=V,l.rr_mediaState=X.paused?"paused":"played",l.rr_mediaCurrentTime=X.currentTime,l.rr_mediaPlaybackRate=X.playbackRate,l.rr_mediaMuted=X.muted,l.rr_mediaLoop=X.loop,l.rr_mediaVolume=X.volume;u||(X.scrollLeft&&(V.rr_scrollLeft=X.scrollLeft),X.scrollTop&&(V.rr_scrollTop=X.scrollTop));H&&(u=X.getBoundingClientRect(),V={class:V.class,rr_width:u.width+"px",rr_height:u.height+"px"});y!=="iframe"||q(V.src)||(X.contentDocument||
(V.rr_src=V.src),delete V.src);var Q;try{customElements.get(y)&&(Q=!0)}catch(v){}return{type:2,tagName:y,attributes:V,childNodes:[],isSVG:!(X.tagName!=="svg"&&!X.ownerSVGElement)||void 0,needBlock:H,rootId:e,isCustom:Q}};
gV=function(X){return X===void 0||X===null?"":X.toLowerCase()};
Tz8=function(X,H){return H.comment&&X.type===5||X.type===2&&(H.script&&(X.tagName==="script"||X.tagName==="link"&&(X.attributes.rel==="preload"&&X.attributes.as==="script"||X.attributes.rel==="modulepreload")||X.tagName==="link"&&X.attributes.rel==="prefetch"&&typeof X.attributes.href==="string"&&qdk(X.attributes.href)==="js")||H.headFavicon&&(X.tagName==="link"&&X.attributes.rel==="shortcut icon"||X.tagName==="meta"&&(gV(X.attributes.name).match(/^msapplication-tile(image|color)$/)||gV(X.attributes.name)===
"application-name"||gV(X.attributes.rel)==="icon"||gV(X.attributes.rel)==="apple-touch-icon"||gV(X.attributes.rel)==="shortcut icon"))||X.tagName==="meta"&&(H.headMetaDescKeywords&&gV(X.attributes.name).match(/^description|keywords$/)||H.headMetaSocial&&(gV(X.attributes.property).match(/^(og|twitter|fb):/)||gV(X.attributes.name).match(/^(og|twitter):/)||gV(X.attributes.name)==="pinterest")||H.headMetaRobots&&(gV(X.attributes.name)==="robots"||gV(X.attributes.name)==="googlebot"||gV(X.attributes.name)===
"bingbot")||H.headMetaHttpEquiv&&X.attributes["http-equiv"]!==void 0||H.headMetaAuthorship&&(gV(X.attributes.name)==="author"||gV(X.attributes.name)==="generator"||gV(X.attributes.name)==="framework"||gV(X.attributes.name)==="publisher"||gV(X.attributes.name)==="progid"||gV(X.attributes.property).match(/^article:/)||gV(X.attributes.property).match(/^product:/))||H.headMetaVerification&&(gV(X.attributes.name)==="google-site-verification"||gV(X.attributes.name)==="yandex-verification"||gV(X.attributes.name)===
"csrf-token"||gV(X.attributes.name)==="p:domain_verify"||gV(X.attributes.name)==="verify-v1"||gV(X.attributes.name)==="verification"||gV(X.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
Gw=function(X,H){var l=H.doc,b=H.mirror,U=H.blockClass,K=H.blockSelector,w=H.maskTextClass,d=H.maskTextSelector,B=H.skipChild===void 0?!1:H.skipChild,q=H.inlineStylesheet===void 0?!0:H.inlineStylesheet,u=H.maskInputOptions===void 0?{}:H.maskInputOptions,e=H.maskTextFn,y=H.maskInputFn,V=H.slimDOMOptions,p=H.dataURLOptions===void 0?{}:H.dataURLOptions,z=H.inlineImages===void 0?!1:H.inlineImages,t=H.recordCanvas===void 0?!1:H.recordCanvas,W=H.onSerialize,G=H.onIframeLoad,r=H.iframeLoadTimeout===void 0?
5E3:H.iframeLoadTimeout,Q=H.onStylesheetLoad,v=H.stylesheetLoadTimeout===void 0?5E3:H.stylesheetLoadTimeout,J=H.keepIframeSrcFn===void 0?function(){return!1}:H.keepIframeSrcFn,Y=H.newlyAddedElement===void 0?!1:H.newlyAddedElement,Uy=H.cssCaptured===void 0?!1:H.cssCaptured,Cy=H.needsMask,sy=H.preserveWhiteSpace===void 0?!0:H.preserveWhiteSpace;
Cy||(Cy=adL(X,w,d,Cy===void 0));var FO=mSW(X,{doc:l,mirror:b,blockClass:U,blockSelector:K,needsMask:Cy,inlineStylesheet:q,maskInputOptions:u,maskTextFn:e,maskInputFn:y,dataURLOptions:p,inlineImages:z,recordCanvas:t,keepIframeSrcFn:J,newlyAddedElement:Y,cssCaptured:Uy});if(!FO)return console.warn(X,"not serialized"),null;Y=b.nodeMetaMap.has(X)?b.getId(X):Tz8(FO,V)||!sy&&FO.type===3&&!FO.textContent.replace(/^\s+|\s+$/gm,"").length?-2:PZO++;H=Object.assign(FO,{id:Y});b.add(X,H);if(Y===-2)return null;
W&&W(X);Y=!B;H.type===2&&(Y=Y&&!H.needBlock,delete H.needBlock,(Uy=zw(X))&&kE(Uy)&&(H.isShadowHost=!0));if((H.type===0||H.type===2)&&Y){V.headWhitespace&&H.type===2&&H.tagName==="head"&&(sy=!1);B={doc:l,mirror:b,blockClass:U,blockSelector:K,needsMask:Cy,maskTextClass:w,maskTextSelector:d,skipChild:B,inlineStylesheet:q,maskInputOptions:u,maskTextFn:e,maskInputFn:y,slimDOMOptions:V,dataURLOptions:p,inlineImages:z,recordCanvas:t,preserveWhiteSpace:sy,onSerialize:W,onIframeLoad:G,iframeLoadTimeout:r,
onStylesheetLoad:Q,stylesheetLoadTimeout:v,keepIframeSrcFn:J,cssCaptured:!1};if(H.type!==2||H.tagName!=="textarea"||H.attributes.value===void 0)for(H.type===2&&H.attributes._cssText!==void 0&&typeof H.attributes._cssText==="string"&&(B.cssCaptured=!0),Y=_.C(Array.from(tB(X))),Uy=Y.next();!Uy.done;Uy=Y.next())(Uy=Gw(Uy.value,B))&&H.childNodes.push(Uy);Y=null;if(X.nodeType===X.ELEMENT_NODE&&(Y=zw(X))){Uy=_.C(Array.from(tB(Y)));for(var ub=Uy.next();!ub.done;ub=Uy.next())if(ub=Gw(ub.value,B))kE(Y)&&(ub.isShadow=
!0),H.childNodes.push(ub)}}(B=xE(X))&&nr(B)&&kE(B)&&(H.isShadow=!0);H.type===2&&H.tagName==="iframe"&&Z5k(X,function(){var g8=X.contentDocument;g8&&G&&(g8=Gw(g8,{doc:g8,mirror:b,blockClass:U,blockSelector:K,needsMask:Cy,maskTextClass:w,maskTextSelector:d,skipChild:!1,inlineStylesheet:q,maskInputOptions:u,maskTextFn:e,maskInputFn:y,slimDOMOptions:V,dataURLOptions:p,inlineImages:z,recordCanvas:t,preserveWhiteSpace:sy,onSerialize:W,onIframeLoad:G,iframeLoadTimeout:r,onStylesheetLoad:Q,stylesheetLoadTimeout:v,
keepIframeSrcFn:J}))&&G(X,g8)},r);
H.type===2&&H.tagName==="link"&&typeof H.attributes.rel==="string"&&(H.attributes.rel==="stylesheet"||H.attributes.rel==="preload"&&typeof H.attributes.href==="string"&&qdk(H.attributes.href)==="css")&&i5O(X,function(){if(Q){var g8=Gw(X,{doc:l,mirror:b,blockClass:U,blockSelector:K,needsMask:Cy,maskTextClass:w,maskTextSelector:d,skipChild:!1,inlineStylesheet:q,maskInputOptions:u,maskTextFn:e,maskInputFn:y,slimDOMOptions:V,dataURLOptions:p,inlineImages:z,recordCanvas:t,preserveWhiteSpace:sy,onSerialize:W,
onIframeLoad:G,iframeLoadTimeout:r,onStylesheetLoad:Q,stylesheetLoadTimeout:v,keepIframeSrcFn:J});g8&&Q(X,g8)}},v);
return H};
Nz8=function(X){var H=document;X=X||{};var l=X.maskAllInputs===void 0?!1:X.maskAllInputs,b=X.slimDOM===void 0?!1:X.slimDOM;return Gw(H,{doc:H,mirror:X.mirror===void 0?new aK:X.mirror,blockClass:X.blockClass===void 0?"rr-block":X.blockClass,blockSelector:X.blockSelector===void 0?null:X.blockSelector,maskTextClass:X.maskTextClass===void 0?"rr-mask":X.maskTextClass,maskTextSelector:X.maskTextSelector===void 0?null:X.maskTextSelector,skipChild:!1,inlineStylesheet:X.inlineStylesheet===void 0?!0:X.inlineStylesheet,
maskInputOptions:l===!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}:l===!1?{password:!0}:l,maskTextFn:X.maskTextFn,maskInputFn:X.maskInputFn,slimDOMOptions:b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:b==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:b===!1?{}:b,dataURLOptions:X.dataURLOptions,
inlineImages:X.inlineImages===void 0?!1:X.inlineImages,recordCanvas:X.recordCanvas===void 0?!1:X.recordCanvas,preserveWhiteSpace:X.preserveWhiteSpace,onSerialize:X.onSerialize,onIframeLoad:X.onIframeLoad,iframeLoadTimeout:X.iframeLoadTimeout,onStylesheetLoad:X.onStylesheetLoad,stylesheetLoadTimeout:X.stylesheetLoadTimeout,keepIframeSrcFn:X.keepIframeSrcFn===void 0?function(){return!1}:X.keepIframeSrcFn,
newlyAddedElement:!1})};
Z9=function(X,H,l){l=l===void 0?document:l;var b={capture:!0,passive:!0};l.addEventListener(X,H,b);return function(){return l.removeEventListener(X,H,b)}};
ig=function(X,H,l){l=l===void 0?{}:l;var b=null,U=0;return function(){var K=_.Ab.apply(0,arguments),w=Date.now();U||l.leading!==!1||(U=w);var d=H-(w-U),B=this;d<=0||d>H?(b&&(clearTimeout(b),b=null),U=w,X.apply(B,K)):b||l.trailing===!1||(b=setTimeout(function(){U=l.leading===!1?0:Date.now();b=null;X.apply(B,K)},d))}};
cPK=function(X,H,l,b,U){U=U===void 0?window:U;var K=U.Object.getOwnPropertyDescriptor(X,H);U.Object.defineProperty(X,H,b?l:{set:function(w){var d=this;setTimeout(function(){l.set.call(d,w)},0);
K&&K.set&&K.set.call(this,w)}});
return function(){return cPK(X,H,K||{},!0)}};
jMO=function(X){var H=X.document,l,b,U,K;return{left:H.scrollingElement?H.scrollingElement.scrollLeft:X.pageXOffset!==void 0?X.pageXOffset:H.documentElement.scrollLeft||(H==null?void 0:H.body)&&((l=Wf(H.body))==null?void 0:l.scrollLeft)||(H==null?void 0:(b=H.body)==null?void 0:b.scrollLeft)||0,top:H.scrollingElement?H.scrollingElement.scrollTop:X.pageYOffset!==void 0?X.pageYOffset:(H==null?void 0:H.documentElement.scrollTop)||(H==null?void 0:H.body)&&((U=Wf(H.body))==null?void 0:U.scrollTop)||(H==
null?void 0:(K=H.body)==null?void 0:K.scrollTop)||0}};
rPO=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
JPz=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
LTK=function(X){return X?X.nodeType===X.ELEMENT_NODE?X:Wf(X):null};
vf=function(X,H,l,b){if(!X)return!1;X=LTK(X);if(!X)return!1;try{if(typeof H==="string"){if(X.classList.contains(H)||b&&X.closest("."+H)!==null)return!0}else if(Gqz(X,H,b))return!0}catch(U){}return l&&(X.matches(l)||b&&X.closest(l)!==null)?!0:!1};
Ydy=function(X,H,l){return X.tagName==="TITLE"&&l.headTitleMutations?!0:H.getId(X)===-2};
IdN=function(X,H){if(nr(X))return!1;var l=H.getId(X);return H.has(l)?(l=xE(X))&&l.nodeType===X.DOCUMENT_NODE?!1:l?IdN(l,H):!0:!0};
APN=function(){var X=X===void 0?window:X;"NodeList"in X&&!X.NodeList.prototype.forEach&&(X.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in X&&!X.DOMTokenList.prototype.forEach&&(X.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
XGl=function(X,H){return!(X.nodeName!=="LINK"||X.nodeType!==X.ELEMENT_NODE||!X.getAttribute||X.getAttribute("rel")!=="stylesheet"||!H.nodeMetaMap.get(X))};
lK8=function(X){var H=null,l;"getRootNode"in X&&((l=HFh(X))==null?void 0:l.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&SB(HFh(X))&&(H=SB(HFh(X)));return H};
o7O=function(X){var H=X.ownerDocument;if(H){if(!(H=KTW(H,"contains")(X)))if(H=X.ownerDocument){for(var l;l=lK8(X);)X=l;H=KTW(H,"contains")(X)}else H=!1}else H=!1;return H};
bFZ=function(X,H){X.delete(H);tB(H).forEach(function(l){return bFZ(X,l)})};
UDN=function(X,H){for(var l=[X];l.length;)X=l.pop(),H.has(X)||(H.add(X),tB(X).forEach(function(b){return l.push(b)}))};
$DL=function(X,H){X.size===0?X=!1:X=(H=xE(H))?X.has(H):!1;return X};
RMK=function(X,H){return X.size===0?!1:KYb(X,H)};
KYb=function(X,H){return(H=xE(H))?X.has(H)?!0:KYb(X,H):!1};
Oe=function(X){try{if("composedPath"in X){var H=X.composedPath();if(H.length)return H[0]}else if("path"in X&&X.path.length)return X.path[0]}catch(l){}return X&&X.target};
wGL=function(X,H){var l=new Cwl;mI.push(l);l.init(X);X=new (b5y("MutationObserver").constructor)(Qt(l.processMutations.bind(l)));X.observe(H,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return X};
hMW=function(X){var H=X.mousemoveCb;var l=X.sampling;var b=X.doc;var U=X.mirror;if(l.mousemove===!1)return function(){};
var K=[],w,d=ig(Qt(function(q){var u=Date.now()-w;H(K.map(function(e){e.timeOffset-=u;return e}),q);
K=[];w=null}),typeof l.mousemoveCallback==="number"?l.mousemoveCallback:500);
X=Qt(ig(Qt(function(q){var u=Oe(q),e=q.changedTouches?q.changedTouches[0]:q,y=e.clientX;e=e.clientY;w||(w=dDK());K.push({x:y,y:e,id:U.getId(u),timeOffset:dDK()-w});d(typeof DragEvent!=="undefined"&&q instanceof DragEvent?12:q instanceof MouseEvent?1:6)}),typeof l.mousemove==="number"?l.mousemove:50,{trailing:!1}));
var B=[Z9("mousemove",X,b),Z9("touchmove",X,b),Z9("drag",X,b)];return Qt(function(){B.forEach(function(q){return q()})})};
FYk=function(X){var H=X.mouseInteractionCb;var l=X.doc;var b=X.mirror;var U=X.blockClass;var K=X.blockSelector;X=X.sampling;if(X.mouseInteraction===!1)return function(){};
var w=X.mouseInteraction===!0||X.mouseInteraction===void 0?{}:X.mouseInteraction,d=[],B=null,q=function(u){return function(e){var y=Oe(e);if(!vf(y,U,K,!0)){var V=null,p=u;if("pointerType"in e){switch(e.pointerType){case "mouse":V=0;break;case "touch":V=2;break;case "pen":V=1}V===2&&(Tw[u]===1?p="TouchStart":Tw[u]===0&&(p="TouchEnd"))}else e.changedTouches&&(V=2);if(V!==null){if(B=V,p.startsWith("Touch")&&V===2||p.startsWith("Mouse")&&V===0)V=null}else Tw[u]===2&&(V=B,B=null);if(e=e.changedTouches?
e.changedTouches[0]:e)y=b.getId(y),Qt(H)(Object.assign({},{type:Tw[p],id:y,x:e.clientX,y:e.clientY},V!==null&&{pointerType:V}))}}};
Object.keys(Tw).filter(function(u){return Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&w[u]!==!1}).forEach(function(u){var e=u.toLowerCase(),y=q(u);
if(window.PointerEvent)switch(Tw[u]){case 1:case 0:e=e.replace("mouse","pointer");break;case 7:case 9:return}d.push(Z9(e,y,l))});
return Qt(function(){d.forEach(function(u){return u()})})};
BbO=function(X){var H=X.scrollCb;var l=X.doc;var b=X.mirror;var U=X.blockClass;var K=X.blockSelector;return Z9("scroll",Qt(ig(Qt(function(w){var d=Oe(w);d&&!vf(d,U,K,!0)&&(w=b.getId(d),d===l&&l.defaultView?(d=jMO(l.defaultView),H({id:w,x:d.left,y:d.top})):H({id:w,x:d.scrollLeft,y:d.scrollTop}))}),X.sampling.scroll||100)),l)};
q1l=function(X,H){var l=X.viewportResizeCb;var b=-1,U=-1;return Z9("resize",Qt(ig(Qt(function(){var K=rPO(),w=JPz();if(b!==K||U!==w)l({width:Number(w),height:Number(K)}),b=K,U=w}),200)),H.win)};
unl=function(X){function H(t){var W=Oe(t),G=t.isTrusted,r=W&&W.tagName;W&&r==="OPTION"&&(W=Wf(W));if(!(!W||!r||sRl.indexOf(r)<0||vf(W,w,d,!0)||W.classList.contains(B)||q&&W.matches(q))){var Q=W.value,v=!1;t=Bzy(W)||"";if(t==="radio"||t==="checkbox")v=W.checked;else if(u[r.toLowerCase()]||u[t])Q=hv8({element:W,maskInputOptions:u,tagName:r,type:t,value:Q,maskInputFn:e});l(W,V?{text:Q,isChecked:v,userTriggered:G}:{text:Q,isChecked:v});G=W.name;t==="radio"&&G&&v&&U.querySelectorAll('input[type="radio"][name="'+
G+'"]').forEach(function(J){if(J!==W){var Y=J.value;l(J,V?{text:Y,isChecked:!v,userTriggered:!1}:{text:Y,isChecked:!v})}})}}
function l(t,W){var G=Mel.get(t);G&&G.text===W.text&&G.isChecked===W.isChecked||(Mel.set(t,W),t=K.getId(t),Qt(b)(Object.assign({},W,{id:t})))}
var b=X.inputCb;var U=X.doc;var K=X.mirror;var w=X.blockClass;var d=X.blockSelector;var B=X.ignoreClass;var q=X.ignoreSelector;var u=X.maskInputOptions;var e=X.maskInputFn;var y=X.sampling;var V=X.userTriggeredOnInput;var p=(y.input==="last"?["change"]:["input","change"]).map(function(t){return Z9(t,Qt(H),U)}),z=U.defaultView;
if(!z)return function(){p.forEach(function(t){return t()})};
X=z.Object.getOwnPropertyDescriptor(z.HTMLInputElement.prototype,"value");y=[[z.HTMLInputElement.prototype,"value"],[z.HTMLInputElement.prototype,"checked"],[z.HTMLSelectElement.prototype,"value"],[z.HTMLTextAreaElement.prototype,"value"],[z.HTMLSelectElement.prototype,"selectedIndex"],[z.HTMLOptionElement.prototype,"selected"]];X&&X.set&&p.push.apply(p,_.LJ(y.map(function(t){return cPK(t[0],t[1],{set:function(){Qt(H)({target:this,isTrusted:!1})}},!1,z)})));
return Qt(function(){p.forEach(function(t){return t()})})};
yJm=function(X){var H=[],l,b,U,K;eM8("CSSGroupingRule")&&((l=X.parentRule)==null?void 0:(b=l.constructor)==null?void 0:b.name)==="CSSGroupingRule"||eM8("CSSMediaRule")&&X.parentRule instanceof CSSMediaRule||eM8("CSSSupportsRule")&&X.parentRule instanceof CSSSupportsRule||eM8("CSSConditionRule")&&((U=X.parentRule)==null?void 0:(K=U.constructor)==null?void 0:K.name)==="CSSConditionRule"?(X=Array.from(X.parentRule.cssRules).indexOf(X),H.unshift(X)):X.parentStyleSheet&&(X=Array.from(X.parentStyleSheet.cssRules).indexOf(X),
H.unshift(X));return H};
N9=function(X,H,l){var b,U;if(!X)return{};X.ownerNode?b=H.getId(X.ownerNode):U=l.getId(X);return{styleId:U,id:b}};
Pwb=function(X,H){var l=X.styleSheetRuleCb;var b=X.mirror;var U=X.stylesheetManager;var K=H.win;if(!K.CSSStyleSheet||!K.CSSStyleSheet.prototype)return function(){};
var w=K.CSSStyleSheet.prototype.insertRule;K.CSSStyleSheet.prototype.insertRule=new cf(w,{apply:Qt(function(y,V,p){var z=_.C(p),t=z.next().value;z=z.next().value;var W=N9(V,b,U.styleMirror),G=W.id;W=W.styleId;(G&&G!==-1||W&&W!==-1)&&l({id:G,styleId:W,adds:[{rule:t,index:z}]});return y.apply(V,p)})});
K.CSSStyleSheet.prototype.addRule=function(y,V,p){p=p===void 0?this.cssRules.length:p;return K.CSSStyleSheet.prototype.insertRule.apply(this,[y+" { "+V+" }",p])};
var d=K.CSSStyleSheet.prototype.deleteRule;K.CSSStyleSheet.prototype.deleteRule=new cf(d,{apply:Qt(function(y,V,p){var z=_.C(p).next().value,t=N9(V,b,U.styleMirror),W=t.id;t=t.styleId;(W&&W!==-1||t&&t!==-1)&&l({id:W,styleId:t,removes:[{index:z}]});return y.apply(V,p)})});
K.CSSStyleSheet.prototype.removeRule=function(y){return K.CSSStyleSheet.prototype.deleteRule.apply(this,[y])};
if(K.CSSStyleSheet.prototype.replace){var B=K.CSSStyleSheet.prototype.replace;K.CSSStyleSheet.prototype.replace=new cf(B,{apply:Qt(function(y,V,p){var z=_.C(p).next().value,t=N9(V,b,U.styleMirror),W=t.id;t=t.styleId;(W&&W!==-1||t&&t!==-1)&&l({id:W,styleId:t,replace:z});return y.apply(V,p)})})}if(K.CSSStyleSheet.prototype.replaceSync){var q=K.CSSStyleSheet.prototype.replaceSync;
K.CSSStyleSheet.prototype.replaceSync=new cf(q,{apply:Qt(function(y,V,p){var z=_.C(p).next().value,t=N9(V,b,U.styleMirror),W=t.id;t=t.styleId;(W&&W!==-1||t&&t!==-1)&&l({id:W,styleId:t,replaceSync:z});return y.apply(V,p)})})}var u={};
Vey("CSSGroupingRule")?u.CSSGroupingRule=K.CSSGroupingRule:(Vey("CSSMediaRule")&&(u.CSSMediaRule=K.CSSMediaRule),Vey("CSSConditionRule")&&(u.CSSConditionRule=K.CSSConditionRule),Vey("CSSSupportsRule")&&(u.CSSSupportsRule=K.CSSSupportsRule));var e={};Object.entries(u).forEach(function(y){var V=_.C(y);y=V.next().value;V=V.next().value;e[y]={insertRule:V.prototype.insertRule,deleteRule:V.prototype.deleteRule};V.prototype.insertRule=new cf(e[y].insertRule,{apply:Qt(function(p,z,t){var W=_.C(t),G=W.next().value;
W=W.next().value;var r=N9(z.parentStyleSheet,b,U.styleMirror),Q=r.id;r=r.styleId;(Q&&Q!==-1||r&&r!==-1)&&l({id:Q,styleId:r,adds:[{rule:G,index:[].concat(_.LJ(yJm(z)),[W||0])}]});return p.apply(z,t)})});
V.prototype.deleteRule=new cf(e[y].deleteRule,{apply:Qt(function(p,z,t){var W=_.C(t).next().value,G=N9(z.parentStyleSheet,b,U.styleMirror),r=G.id;G=G.styleId;(r&&r!==-1||G&&G!==-1)&&l({id:r,styleId:G,removes:[{index:[].concat(_.LJ(yJm(z)),[W])}]});return p.apply(z,t)})})});
return Qt(function(){K.CSSStyleSheet.prototype.insertRule=w;K.CSSStyleSheet.prototype.deleteRule=d;B&&(K.CSSStyleSheet.prototype.replace=B);q&&(K.CSSStyleSheet.prototype.replaceSync=q);Object.entries(u).forEach(function(y){var V=_.C(y);y=V.next().value;V=V.next().value;V.prototype.insertRule=e[y].insertRule;V.prototype.deleteRule=e[y].deleteRule})})};
pGL=function(X,H){var l=X.mirror;var b=X.stylesheetManager;var U=null;U=H.nodeName==="#document"?l.getId(H):l.getId(SB(H));var K,w,d;X=H.nodeName==="#document"?(K=H.defaultView)==null?void 0:K.Document:(w=H.ownerDocument)==null?void 0:(d=w.defaultView)==null?void 0:d.ShadowRoot;var B=(X==null?0:X.prototype)?Object.getOwnPropertyDescriptor(X==null?void 0:X.prototype,"adoptedStyleSheets"):void 0;if(U===null||U===-1||!X||!B)return function(){};
Object.defineProperty(H,"adoptedStyleSheets",{configurable:B.configurable,enumerable:B.enumerable,get:function(){var q;return(q=B.get)==null?void 0:q.call(this)},
set:function(q){var u,e=(u=B.set)==null?void 0:u.call(this,q);if(U!==null&&U!==-1)try{fKW(b,q,U)}catch(y){}return e}});
return Qt(function(){Object.defineProperty(H,"adoptedStyleSheets",{configurable:B.configurable,enumerable:B.enumerable,get:B.get,set:B.set})})};
S1z=function(X,H){var l=X.styleDeclarationCb;var b=X.mirror;var U=X.ignoreCSSAttributes;var K=X.stylesheetManager;var w=H.win;var d=w.CSSStyleDeclaration.prototype.setProperty;w.CSSStyleDeclaration.prototype.setProperty=new cf(d,{apply:Qt(function(q,u,e){var y=_.C(e),V=y.next().value,p=y.next().value;y=y.next().value;if(U.has(V))return d.apply(u,[V,p,y]);var z,t=N9((z=u.parentRule)==null?void 0:z.parentStyleSheet,b,K.styleMirror);z=t.id;t=t.styleId;(z&&z!==-1||t&&t!==-1)&&l({id:z,styleId:t,set:{property:V,
value:p,priority:y},index:yJm(u.parentRule)});return q.apply(u,e)})});
var B=w.CSSStyleDeclaration.prototype.removeProperty;w.CSSStyleDeclaration.prototype.removeProperty=new cf(B,{apply:Qt(function(q,u,e){var y=_.C(e).next().value;if(U.has(y))return B.apply(u,[y]);var V,p=N9((V=u.parentRule)==null?void 0:V.parentStyleSheet,b,K.styleMirror);V=p.id;p=p.styleId;(V&&V!==-1||p&&p!==-1)&&l({id:V,styleId:p,remove:{property:y},index:yJm(u.parentRule)});return q.apply(u,e)})});
return Qt(function(){w.CSSStyleDeclaration.prototype.setProperty=d;w.CSSStyleDeclaration.prototype.removeProperty=B})};
zMN=function(X){var H=X.mediaInteractionCb;var l=X.blockClass;var b=X.blockSelector;var U=X.mirror;var K=X.sampling;X=X.doc;var w=Qt(function(B){return ig(Qt(function(q){if((q=Oe(q))&&!vf(q,l,b,!0)){var u=q.currentTime,e=q.volume,y=q.muted,V=q.playbackRate,p=q.loop;H({type:B,id:U.getId(q),currentTime:u,volume:e,muted:y,playbackRate:V,loop:p})}}),K.media||500)}),d=[Z9("play",w(0),X),
Z9("pause",w(1),X),Z9("seeked",w(2),X),Z9("volumechange",w(3),X),Z9("ratechange",w(4),X)];return Qt(function(){d.forEach(function(B){return B()})})};
n7m=function(X){var H=X.fontCb;X=X.doc;var l=X.defaultView;if(!l)return function(){};
var b=[],U=new WeakMap,K=l.FontFace;l.FontFace=function(w,d,B){var q=new K(w,d,B);U.set(q,{family:w,buffer:typeof d!=="string",descriptors:B,fontSource:typeof d==="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))});return q};
X=pr(X.fonts,"add",function(w){return function(d){setTimeout(Qt(function(){var B=U.get(d);B&&(H(B),U.delete(d))}),0);
return w.apply(this,[d])}});
b.push(function(){l.FontFace=K});
b.push(X);return Qt(function(){b.forEach(function(w){return w()})})};
kH8=function(X){var H=X.doc,l=X.mirror,b=X.blockClass,U=X.blockSelector,K=X.selectionCb,w=!0;X=Qt(function(){var d=H.getSelection();if(d&&!(w&&(d==null?0:d.isCollapsed))){w=d.isCollapsed||!1;for(var B=[],q=d.rangeCount||0,u=0;u<q;u++){var e=d.getRangeAt(u),y=e.startContainer,V=e.startOffset,p=e.endContainer;e=e.endOffset;vf(y,b,U,!0)||vf(p,b,U,!0)||B.push({start:l.getId(y),startOffset:V,end:l.getId(p),endOffset:e})}K({ranges:B})}});
X();return Z9("selectionchange",X)};
xDh=function(X){var H=X.doc;var l=X.customElementCb;return(X=H.defaultView)&&X.customElements?pr(X.customElements,"define",function(b){return function(U,K,w){try{l({define:{name:U}})}catch(d){console.warn("Custom element callback failed for "+U)}return b.apply(this,[U,K,w])}}):function(){}};
DDh=function(X,H){var l=X.mutationCb,b=X.mousemoveCb,U=X.mouseInteractionCb,K=X.scrollCb,w=X.viewportResizeCb,d=X.inputCb,B=X.mediaInteractionCb,q=X.styleSheetRuleCb,u=X.styleDeclarationCb,e=X.canvasMutationCb,y=X.fontCb,V=X.selectionCb,p=X.customElementCb;X.mutationCb=function(){var z=_.Ab.apply(0,arguments);H.mutation&&H.mutation.apply(H,_.LJ(z));l.apply(null,_.LJ(z))};
X.mousemoveCb=function(){var z=_.Ab.apply(0,arguments);H.mousemove&&H.mousemove.apply(H,_.LJ(z));b.apply(null,_.LJ(z))};
X.mouseInteractionCb=function(){var z=_.Ab.apply(0,arguments);H.mouseInteraction&&H.mouseInteraction.apply(H,_.LJ(z));U.apply(null,_.LJ(z))};
X.scrollCb=function(){var z=_.Ab.apply(0,arguments);H.scroll&&H.scroll.apply(H,_.LJ(z));K.apply(null,_.LJ(z))};
X.viewportResizeCb=function(){var z=_.Ab.apply(0,arguments);H.viewportResize&&H.viewportResize.apply(H,_.LJ(z));w.apply(null,_.LJ(z))};
X.inputCb=function(){var z=_.Ab.apply(0,arguments);H.input&&H.input.apply(H,_.LJ(z));d.apply(null,_.LJ(z))};
X.mediaInteractionCb=function(){var z=_.Ab.apply(0,arguments);H.mediaInteaction&&H.mediaInteaction.apply(H,_.LJ(z));B.apply(null,_.LJ(z))};
X.styleSheetRuleCb=function(){var z=_.Ab.apply(0,arguments);H.styleSheetRule&&H.styleSheetRule.apply(H,_.LJ(z));q.apply(null,_.LJ(z))};
X.styleDeclarationCb=function(){var z=_.Ab.apply(0,arguments);H.styleDeclaration&&H.styleDeclaration.apply(H,_.LJ(z));u.apply(null,_.LJ(z))};
X.canvasMutationCb=function(){var z=_.Ab.apply(0,arguments);H.canvasMutation&&H.canvasMutation.apply(H,_.LJ(z));e.apply(null,_.LJ(z))};
X.fontCb=function(){var z=_.Ab.apply(0,arguments);H.font&&H.font.apply(H,_.LJ(z));y.apply(null,_.LJ(z))};
X.selectionCb=function(){var z=_.Ab.apply(0,arguments);H.selection&&H.selection.apply(H,_.LJ(z));V.apply(null,_.LJ(z))};
X.customElementCb=function(){var z=_.Ab.apply(0,arguments);H.customElement&&H.customElement.apply(H,_.LJ(z));p.apply(null,_.LJ(z))}};
teh=function(X,H){H=H===void 0?{}:H;var l=X.doc.defaultView;if(!l)return function(){};
DDh(X,H);var b;X.recordDOM&&(b=wGL(X,X.doc));var U=hMW(X),K=FYk(X),w=BbO(X),d=q1l(X,{win:l}),B=unl(X),q=zMN(X),u=function(){},e=function(){},y=function(){},V=function(){};
X.recordDOM&&(u=Pwb(X,{win:l}),e=pGL(X,X.doc),y=S1z(X,{win:l}),X.collectFonts&&(V=n7m(X)));var p=kH8(X),z=xDh(X),t=[];X=_.C(X.plugins);for(H=X.next();!H.done;H=X.next())H=H.value,t.push(H.observer(H.callback,l,H.options));return Qt(function(){mI.forEach(function(G){return G.reset()});
var W;(W=b)==null||W.disconnect();U();K();w();d();B();q();u();e();y();V();p();z();t.forEach(function(G){return G()})})};
eM8=function(X){return typeof window[X]!=="undefined"};
Vey=function(X){return!!(typeof window[X]!=="undefined"&&window[X].prototype&&"insertRule"in window[X].prototype&&"deleteRule"in window[X].prototype)};
WYO=function(X){X=new Uint8Array(X);for(var H="",l=0;l<X.byteLength;l++)H+=String.fromCharCode(X[l]);return btoa(H)};
E7k=function(X,H,l){if(X instanceof Array)return X.map(function(U){return E7k(U,H,l)});
if(X!==null){if(X instanceof Float32Array||X instanceof Float64Array||X instanceof Int32Array||X instanceof Uint32Array||X instanceof Uint8Array||X instanceof Uint16Array||X instanceof Int16Array||X instanceof Int8Array||X instanceof Uint8ClampedArray)return{rr_type:X.constructor.name,args:[Object.values(X)]};if(X instanceof ArrayBuffer){var b=X.constructor.name;X=WYO(X);return{rr_type:b,base64:X}}if(X instanceof DataView)return{rr_type:X.constructor.name,args:[E7k(X.buffer,H,l),X.byteOffset,X.byteLength]};
if(X instanceof HTMLImageElement)return{rr_type:X.constructor.name,src:X.src};if(X instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:X.toDataURL()};if(X instanceof ImageData)return{rr_type:X.constructor.name,args:[E7k(X.data,H,l),X.width,X.height]};if(g7b(X,H)||typeof X==="object")return b=X.constructor.name,X=GHy(X,H,l),{rr_type:b,index:X}}return X};
ZFy=function(X,H,l,b){for(var U=[],K=_.C(Object.getOwnPropertyNames(H.CanvasRenderingContext2D.prototype)),w=K.next(),d={};!w.done;d={prop$jscomp$58:void 0},w=K.next()){d.prop$jscomp$58=w.value;try{if(typeof H.CanvasRenderingContext2D.prototype[d.prop$jscomp$58]==="function"){var B=pr(H.CanvasRenderingContext2D.prototype,d.prop$jscomp$58,function(q){return function(u){return function(){var e=_.Ab.apply(0,arguments),y=this;vf(this.canvas,l,b,!0)||setTimeout(function(){var V=aKl(e,H,y);X(y.canvas,{type:jB["2D"],
property:q.prop$jscomp$58,args:V})},0);
return u.apply(this,e)}}}(d));
U.push(B)}}catch(q){w=cPK(H.CanvasRenderingContext2D.prototype,d.prop$jscomp$58,{set:function(u){return function(e){X(this.canvas,{type:jB["2D"],property:u.prop$jscomp$58,args:[e],setter:!0})}}(d)}),U.push(w)}}return function(){U.forEach(function(q){return q()})}};
iFl=function(X,H,l,b){var U=[];try{var K=pr(X.HTMLCanvasElement.prototype,"getContext",function(w){return function(d){var B=_.Ab.apply(1,arguments);if(!vf(this,H,l,!0)){var q=d==="experimental-webgl"?"webgl":d;"__context"in this||(this.__context=q);b&&["webgl","webgl2"].includes(q)&&(B[0]&&typeof B[0]==="object"?(q=B[0],q.preserveDrawingBuffer||(q.preserveDrawingBuffer=!0)):B.splice(0,1,{preserveDrawingBuffer:!0}))}return w.apply(this,[d].concat(_.LJ(B)))}});
U.push(K)}catch(w){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){U.forEach(function(w){return w()})}};
v7l=function(X,H,l,b,U,K){for(var w=[],d=_.C(Object.getOwnPropertyNames(X)),B=d.next(),q={};!B.done;q={prop$jscomp$59:void 0},B=d.next())if(q.prop$jscomp$59=B.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(q.prop$jscomp$59))try{if(typeof X[q.prop$jscomp$59]==="function"){var u=pr(X,q.prop$jscomp$59,function(e){return function(y){return function(){var V=_.Ab.apply(0,arguments),p=y.apply(this,V);GHy(p,K,this);"tagName"in this.canvas&&!vf(this.canvas,b,U,!0)&&(V=
aKl(V,K,this),l(this.canvas,{type:H,property:e.prop$jscomp$59,args:V}));return p}}}(q));
w.push(u)}}catch(e){B=cPK(X,q.prop$jscomp$59,{set:function(y){return function(V){l(this.canvas,{type:H,property:y.prop$jscomp$59,args:[V],setter:!0})}}(q)}),w.push(B)}return w};
OFk=function(X,H,l,b){var U=[];U.push.apply(U,_.LJ(v7l(H.WebGLRenderingContext.prototype,1,X,l,b,H)));typeof H.WebGL2RenderingContext!=="undefined"&&U.push.apply(U,_.LJ(v7l(H.WebGL2RenderingContext.prototype,2,X,l,b,H)));return function(){U.forEach(function(K){return K()})}};
lgK=function(X){var H=X=X===void 0?{}:X,l=H.emit,b=H.checkoutEveryNms,U=H.checkoutEveryNth,K=H.blockClass===void 0?"rr-block":H.blockClass,w=H.blockSelector===void 0?null:H.blockSelector,d=H.ignoreClass===void 0?"rr-ignore":H.ignoreClass,B=H.ignoreSelector===void 0?null:H.ignoreSelector,q=H.maskTextClass===void 0?"rr-mask":H.maskTextClass,u=H.maskTextSelector===void 0?null:H.maskTextSelector,e=H.inlineStylesheet===void 0?!0:H.inlineStylesheet,y=H.maskAllInputs,V=H.maskInputOptions,p=H.slimDOMOptions,
z=H.maskInputFn,t=H.maskTextFn,W=H.hooks,G=H.packFn,r=H.sampling===void 0?{}:H.sampling,Q=H.dataURLOptions===void 0?{}:H.dataURLOptions,v=H.mousemoveWait,J=H.recordDOM===void 0?!0:H.recordDOM,Y=H.recordCanvas===void 0?!1:H.recordCanvas,Uy=H.recordCrossOriginIframes===void 0?!1:H.recordCrossOriginIframes,Cy=H.recordAfter===void 0?X.recordAfter==="DOMContentLoaded"?X.recordAfter:"load":H.recordAfter,sy=H.userTriggeredOnInput===void 0?!1:H.userTriggeredOnInput,FO=H.collectFonts===void 0?!1:H.collectFonts,
ub=H.inlineImages===void 0?!1:H.inlineImages,g8=H.plugins,mm=H.keepIframeSrcFn===void 0?function(){return!1}:H.keepIframeSrcFn,QZ=H.ignoreCSSAttributes===void 0?new Set([]):H.ignoreCSSAttributes;
rV=H.errorHandler;var Bz=Uy?window.parent===window:!0,dt=!1;if(!Bz)try{window.parent.document&&(dt=!1)}catch(TY){dt=!0}if(Bz&&!l)throw Error("af");if(!Bz&&!dt)return function(){};
v!==void 0&&r.mousemove===void 0&&(r.mousemove=v);JB.reset();var TK=y===!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}:V!==void 0?V:{password:!0},sG=p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:p==="all",headMetaDescKeywords:p==="all",headTitleMutations:p==="all"}:
p?p:{};APN();var f_,Mv=0,nd=function(TY){for(var NZ=_.C(g8||[]),C_=NZ.next();!C_.done;C_=NZ.next())C_=C_.value,C_.eventProcessor&&(TY=C_.eventProcessor(TY));G&&!dt&&(TY=G(TY));return TY};
Lr=function(TY,NZ){TY.timestamp=dDK();var C_;((C_=mI[0])==null?0:C_.isFrozen())&&TY.type!==2&&(TY.type!==3||TY.data.source!==0)&&mI.forEach(function(qZ){return qZ.unfreeze()});
Bz?l==null||l(nd(TY),NZ):dt&&(NZ={type:"rrweb",event:nd(TY),origin:window.location.origin,isCheckout:NZ},window.parent.postMessage(NZ,"*"));TY.type===2?(f_=TY,Mv=0):TY.type!==3||TY.data.source===0&&TY.data.isAttachIframe||(Mv++,TY=b&&TY.timestamp-f_.timestamp>b,(U&&Mv>=U||TY)&&mDO(!0))};
var $U=function(TY){Lr({type:3,data:Object.assign({},{source:0},TY)})},MW=function(TY){return Lr({type:3,
data:Object.assign({},{source:3},TY)})},ZL=function(TY){return Lr({type:3,
data:Object.assign({},{source:9},TY)})},uF=new QRz({mutationCb:$U,
adoptedStyleSheetCb:function(TY){return Lr({type:3,data:Object.assign({},{source:15},TY)})}}),rt=new TbW({mirror:JB,
mutationCb:$U,stylesheetManager:uF,recordCrossOriginIframes:Uy,wrappedEmit:Lr});X=_.C(g8||[]);for(H=X.next();!H.done;H=X.next())H=H.value,H.getMirror&&H.getMirror({nodeMirror:JB,crossOriginIframeMirror:rt.crossOriginIframeMirror,crossOriginIframeStyleMirror:rt.crossOriginIframeStyleMirror});var xQ=new NbK;cJh=new jRh({recordCanvas:Y,mutationCb:ZL,win:window,blockClass:K,blockSelector:w,mirror:JB,sampling:r.canvas,dataURLOptions:Q});var AQ=new rJK({mutationCb:$U,scrollCb:MW,bypassOptions:{blockClass:K,
blockSelector:w,maskTextClass:q,maskTextSelector:u,inlineStylesheet:e,maskInputOptions:TK,dataURLOptions:Q,maskTextFn:t,maskInputFn:z,recordCanvas:Y,inlineImages:ub,sampling:r,slimDOMOptions:sG,iframeManager:rt,stylesheetManager:uF,canvasManager:cJh,keepIframeSrcFn:mm,processedNodeManager:xQ},mirror:JB});mDO=function(TY){TY=TY===void 0?!1:TY;if(J){Lr({type:4,data:{href:window.location.href,width:JPz(),height:rPO()}},TY);uF.reset();AQ.init();mI.forEach(function(C_){return C_.lock()});
var NZ=Nz8({mirror:JB,blockClass:K,blockSelector:w,maskTextClass:q,maskTextSelector:u,inlineStylesheet:e,maskAllInputs:TK,maskTextFn:t,maskInputFn:z,slimDOM:sG,dataURLOptions:Q,recordCanvas:Y,inlineImages:ub,onSerialize:function(C_){C_.nodeName==="IFRAME"&&JB.nodeMetaMap.get(C_)&&JJL(rt,C_);XGl(C_,JB)&&LYN(uF,C_);C_&&zw(C_)&&Y1l(AQ,zw(C_),document)},
onIframeLoad:function(C_,qZ){IKN(rt,C_,qZ);C_.contentWindow&&C_.contentDocument&&AJy(AQ,C_.contentWindow.Element,C_.contentDocument)},
onStylesheetLoad:function(C_,qZ){XAz(uF,C_,qZ)},
keepIframeSrcFn:mm});NZ?(Lr({type:2,data:{node:NZ,initialOffset:jMO(window)}},TY),mI.forEach(function(C_){return C_.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fKW(uF,document.adoptedStyleSheets,JB.getId(document))):console.warn("Failed to snapshot the document")}};
try{var D3=[],YQ=function(TY){var NZ;return Qt(teh)({mutationCb:$U,mousemoveCb:function(C_,qZ){return Lr({type:3,data:{source:qZ,positions:C_}})},
mouseInteractionCb:function(C_){return Lr({type:3,data:Object.assign({},{source:2},C_)})},
scrollCb:MW,viewportResizeCb:function(C_){return Lr({type:3,data:Object.assign({},{source:4},C_)})},
inputCb:function(C_){return Lr({type:3,data:Object.assign({},{source:5},C_)})},
mediaInteractionCb:function(C_){return Lr({type:3,data:Object.assign({},{source:7},C_)})},
styleSheetRuleCb:function(C_){return Lr({type:3,data:Object.assign({},{source:8},C_)})},
styleDeclarationCb:function(C_){return Lr({type:3,data:Object.assign({},{source:13},C_)})},
canvasMutationCb:ZL,fontCb:function(C_){return Lr({type:3,data:Object.assign({},{source:10},C_)})},
selectionCb:function(C_){Lr({type:3,data:Object.assign({},{source:14},C_)})},
customElementCb:function(C_){Lr({type:3,data:Object.assign({},{source:16},C_)})},
blockClass:K,ignoreClass:d,ignoreSelector:B,maskTextClass:q,maskTextSelector:u,maskInputOptions:TK,inlineStylesheet:e,sampling:r,recordDOM:J,recordCanvas:Y,inlineImages:ub,userTriggeredOnInput:sy,collectFonts:FO,doc:TY,maskInputFn:z,maskTextFn:t,keepIframeSrcFn:mm,blockSelector:w,slimDOMOptions:sG,dataURLOptions:Q,mirror:JB,iframeManager:rt,stylesheetManager:uF,shadowDomManager:AQ,processedNodeManager:xQ,canvasManager:cJh,ignoreCSSAttributes:QZ,plugins:(g8==null?void 0:(NZ=g8.filter(function(C_){return C_.observer}))==
null?void 0:NZ.map(function(C_){return{observer:C_.observer,
options:C_.options,callback:function(qZ){return Lr({type:6,data:{plugin:C_.name,payload:qZ}})}}}))||[]},W)};
HR8(rt,function(TY){try{D3.push(YQ(TY.contentDocument))}catch(NZ){console.warn(NZ)}});
var F5=function(){mDO();D3.push(YQ(document))};
document.readyState==="interactive"||document.readyState==="complete"?F5():(D3.push(Z9("DOMContentLoaded",function(){Lr({type:0,data:{}});Cy==="DOMContentLoaded"&&F5()})),D3.push(Z9("load",function(){Lr({type:1,
data:{}});Cy==="load"&&F5()},window)));
return function(){D3.forEach(function(TY){try{TY()}catch(NZ){String(NZ).toLowerCase().includes("cross-origin")||console.warn(NZ)}});
xQ.destroy();rV=void 0}}catch(TY){console.warn(TY)}};
_.n=function(X,H){H=Uw(bQ(H));X.innerHTML=H};
U6k=function(X){var H=owZ;H||(H=bRy(),H=owZ=_.Bb.transpose(H));H=H[X];return typeof H==="string"?H:_.YE(X)};
$6O=function(X){X=String(X).toLowerCase();var H=bRy()[X];return typeof H==="string"?H:_.IK(X)};
KAW=function(X){X=X.toLowerCase();X=bRy()[X];return typeof X==="string"?X:null};
bRy=function(){if(!Rkh){for(var X=Object.assign({},CdZ),H=_.C(wAW),l=H.next();!l.done;l=H.next())l=l.value,X[l.toLowerCase()]=l;Rkh=X}return Rkh};
FAy=function(X,H){var l=window.customElements;return l&&l.get(X)||d68[X]===!0?2:H.name==="HTMLUnknownElement"?1:H.name==="HTMLElement"&&hkN.test(X)?3:0};
seL=function(X,H){switch(H){case "innerHTML":return Bsy(X)===1?2:null;case "textContent":return X=Bsy(X),X===1||X===6?1:null;default:var l,b;return(b=(l=q8k[X.localName])==null?void 0:l[H])!=null?b:null}};
Bsy=function(X){var H=X.localName,l=FAy(H,X.constructor);switch(l){case 0:case 1:return MfW(H,X);case 3:case 2:return 1;default:_.Hp(l,"got an unknown element classification")}};
MfW=function(X,H){var l=Object.hasOwnProperty.call(uIO,X)?uIO[X]:null;return l!==null?l:Object.hasOwnProperty.call(eky,X)&&H instanceof SVGElement?eky[X]:null};
ysb=function(X,H){return H};
Pdh=function(X){return(X=X.split(Vfy,2))?{url:X[0],metadata:X[1]}:null};
pAy=function(X){var H=String(X.url).replace(fgh,encodeURIComponent);if(X=X.metadata){fgh.lastIndex=0;if(fgh.test(X))return null;H+=" "+X}return H};
kVO=function(X){function H(q){var u=q.localName;if(!q.getAttribute("is")&&FAy(u,q.constructor)===2){var e;return(e=B)!=null?e:B=document.createElement("polyresinuncustomized")}(q=d[u])||(q=d[u]=document.createElement(u));return q}
var l=X.reportHandler||void 0,b=X.safeTypesBridge||S8W,U=/^$/;if(X=X.allowedIdentifierPrefixes){X=_.C(X);for(var K=X.next();!K.done;K=X.next())U=new RegExp(U.source+"|^"+_.zkl(K.value))}l&&l(!1,"initResin",null);var w=nw8(U,b,l),d={},B=null;return function(q,u,e){var y=q.nodeType;if(y!==Node.ELEMENT_NODE){if(y===Node.TEXT_NODE){u=q.parentElement;e=!u;if(u&&u.nodeType===Node.ELEMENT_NODE){y=u.localName;var V=FAy(y,u.constructor);switch(V){case 0:case 1:u=MfW(y,u);e=u===1||u===6;break;case 3:case 2:e=
!0;break;default:_.Hp(V,"got an unknown element classification")}}if(e)return function(W){return""+b(W,"STRING",W)}}return function(W){if(!W&&W!==document.all)return W;
l&&l(!0,"Failed to sanitize "+(q.parentElement&&q.parentElement.nodeName)+" #text node to value "+W,q.parentElement);return AB}}var p=q.localName;
y=H(q);var z=null;switch(e){case "attribute":if($6O(u)in y)break;return function(W){return W};
case "property":if(u in y){z=seL(y,u);break}if((V=KAW(u))&&V in y)break;return function(W){return W};
default:_.Hp(e,"got an unknown resin type, expected either 'property' or 'attribute'")}var t=e==="attribute"?u.toLowerCase():U6k(u);z||(z=YLZ(p,t,function(W){var G=q.getAttribute(W);return!G||/[\[\{]/.test(W)?null:G}));
return function(W){var G=X6,r=null;if(!W&&W!==document.all)return W;if(z!=null){var Q=w[z],v=Q.safeType;r=Q.safeReplacement;v&&(G=b(W,v,X6));G===X6&&(Q.filterString?(G=String(b(W,"STRING",W)),G=Q.filterString(p,t,G)):Q.filterRaw&&(G=Q.filterRaw(p,t,W,q)),G===r&&(G=X6))}G===X6&&(G=r||AB,l&&l(!0,"Failed to sanitize attribute of <"+p+">: <"+p+" "+t+'="'+W+'">',q));return G}}};
nw8=function(X,H,l){return[,{filterRaw:function(b,U,K){return K},
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:x6y,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:x6y,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:AB,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:D6b,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(b,U,K){K=
String(K).toLowerCase();return Xfm(b,U,K)?K:AB},
safeReplacement:AB,safeType:void 0},,{filterRaw:void 0,filterString:function(b,U,K){return X.test(K)?K:AB},
safeReplacement:AB,safeType:"CONSTANT"},{filterRaw:function(b,U,K,w){if(typeof K==="string")var d=(d=K.match(tfW))?d.map(Pdh).filter(Boolean):[];else if(Array.isArray(K))d=K;else return x6y;var B=d;d=[];var q=[],u={};if(Array.isArray(B))for(var e=0,y=B.length;e<y;++e){var V=B[e],p=V&&V.url;if(p){var z=H(p,"URL",u);if(z){var t=z!==u;(t?d:q).push({url:t?z:p,metadata:V.metadata})}}}else q.push(B);B=q.length?JSON.stringify(q):null;q=X6;if(d.length){if(!Array.isArray(d))throw Error();q=d.map(pAy).filter(Boolean).join(" , ")||
X6}B&&l&&l(!0,"Failed to sanitize attribute value of <"+b+">: <"+b+" "+U+'="'+K+'">: '+B,w);return q===X6?x6y:q},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
WAK=function(X){var H=kVO(X);return function(l,b,U,K){return K||K===document.all?H(l,b,U)(K):K}};
Hi=function(X,H){function l(){function U(d,B,q){for(B=Reflect.getMetadata("parameters",d)||[];B.length<=q;)B.push(null);B[q]=B[q]||[];B[q].push(w);Reflect.defineMetadata(B,d);return d}
var K=_.Ab.apply(0,arguments);if(this instanceof l)return b.apply(this,K),this;var w=new (Function.prototype.bind.apply(l,[null].concat(_.LJ(K))));U.annotation=w;return U}
var b=EwK(H);l.prototype.toString=function(){return"@"+X};
return l.annotationCls=l};
EwK=function(X){return function(){var H=_.Ab.apply(0,arguments),l=this;X.forEach(function(b,U){U=H[U];if(Array.isArray(b))l[b[0]]=U&&U!==void 0?U:b[1];else for(var K in b)l[K]=U&&U[K]!==void 0?U[K]:b[K]})}};
gwl=function(X){return X!==void 0&&X!==null};
lT=function(X){if(typeof X==="string")return X;if(X===void 0||X===null)return""+X;if(X.overriddenName)return X.overriddenName;if(X.name)return X.name;X=X.toString();var H=X.indexOf("\n");return H===-1?X:X.substring(0,H)};
GVW=function(X){X.__forward_ref__=GVW;X.toString=function(){return lT(this())};
return X};
op=function(X){return typeof X==="function"&&X.hasOwnProperty("__forward_ref__")&&X.__forward_ref__===GVW?X():X};
agN=function(X){return X?X.map(function(H){return new (Function.prototype.bind.apply(H.type.annotationCls,[null].concat(_.LJ(H.args?H.args:[]))))}):[]};
ZRb=function(X){for(var H=[],l=0;l<X.length;++l){if(H.indexOf(X[l])>-1){H.push(X[l]);break}H.push(X[l])}return H};
iRh=function(X){return X.length>1?" ("+ZRb(X.slice().reverse()).map(function(H){return lT(H.token)}).join(" -> ")+")":""};
ORl=function(X,H,l,b){if(b){var U=Error("df``"+(b instanceof Error?b.message:b));U.ngOriginalError=b}else U=Error();U.addKey=vwz;U.keys=[H];U.injectors=[X];U.constructResolvingMessage=l;U.message=U.constructResolvingMessage();U.ngOriginalError=b;return U};
vwz=function(X,H){this.injectors.push(X);this.keys.push(H);this.message=this.constructResolvingMessage()};
m6y=function(X,H){return ORl(X,H,function(){return"No provider for "+lT(this.keys[0].token)+"!"+iRh(this.keys)})};
QeW=function(X,H){return ORl(X,H,function(){return"Cannot instantiate cyclic dependency!"+iRh(this.keys)})};
Tsy=function(X,H,l){return ORl(X,l,function(){var b=lT(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+b+"!"+iRh(this.keys)+"."},H)};
NsK=function(X,H){for(var l=[],b=0,U=H.length;b<U;b++){var K=H[b];K&&K.length!=0?l.push(K.map(lT).join(" ")):l.push("?")}return Error("hf`"+lT(X)+"`"+l.join(", ")+"`"+lT(X))};
IgL=function(X){var H=void 0,l=void 0;if(X&&X.useClass!==void 0){H=X.useClass;var b=op(X.useClass);var U=cs8.factory(b);b=jeb(b)}else X&&X.useExisting!==void 0?(U=function(K){return K},b=[rsy(bT.get(op(X.useExisting)))]):X&&X.useFactory!==void 0?(U=X.useFactory,b=JsZ(X.useFactory,X.deps)):(l=X.useValue,U=function(){return X.useValue},b=LAh);
return new Y8N(U,b,H,l)};
X9l=function(X){return new Asl(bT.get(op(X.provide)),[IgL(X)],X.multi)};
lDb=function(X){X=H7Z(X,[]).map(X9l);for(var H=new Map,l=0;l<X.length;l++){var b=X[l],U=H.get(b.key.id);if(U){if(b.multiProvider!==U.multiProvider)throw Error("kf`"+U+"`"+b);if(b.multiProvider)for(var K=0;K<b.resolvedFactories.length;K++)U.resolvedFactories.push(b.resolvedFactories[K]);else H.set(b.key.id,b)}else U=void 0,b.multiProvider?U=new Asl(b.key,b.resolvedFactories.slice(),b.multiProvider):U=b,H.set(b.key.id,U)}return Array.from(H.values())};
H7Z=function(X,H){X.forEach(function(l){if(l instanceof osy)H.push({provide:l,useClass:l});else if(l&&typeof l=="object"&&l.provide!==void 0)H.push(l);else if(l instanceof Array)H7Z(l,H);else throw Error("gf`"+l);});
return H};
JsZ=function(X,H){if(H){var l=H.map(function(b){return[b]});
return H.map(function(b){return b7W(X,b,l)})}return jeb(X)};
jeb=function(X){var H=cs8.parameters(X);if(!H)return[];if(H.some(function(l){return l==null}))throw NsK(X,H);
return H.map(function(l){return b7W(X,l,H)})};
b7W=function(X,H,l){var b=null,U=!1;if(!Array.isArray(H))return H instanceof U8h?$8b(H.token,U,null):$8b(H,U,null);for(var K=null,w=0;w<H.length;++w){var d=H[w];if(d instanceof osy)b=d;else if(d instanceof U8h)b=d.token;else if(d instanceof KVZ)U=!0;else if(d instanceof Rpl||d instanceof CcO)K=d}b=op(b);if(b!=null)return $8b(b,U,K);throw NsK(X,l);};
$8b=function(X,H,l){return new w9Z(bT.get(op(X)),H,l)};
d8y=function(X,H){for(var l=Array(X.providers.length),b=0;b<X.providers.length;++b){var U=b;if(b<0||b>=X.providers.length)throw Error("jf`"+b);l[U]=H(X.providers[b])}return l};
hpm=function(X){return typeof X==="function"&&cs8.parameters(X).every(function(H){return!!H})};
q7K=function(X){var H=FVl;BMh.get(X)||BMh.set(X,new H);return BMh.get(X)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(X)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(X)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X,H){var l,b;if(X.contains(H))return!0;X=_.Uc(X).querySelectorAll("content,slot");for(l=0;l<X.length;++l){var U=_.Uc(X[l]).getDistributedNodes();for(b=0;b<U.length;++b)if(U[b].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(U[b],H))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X){X.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(X)&&X.preventDefault();X.targetTouches&&(X=X.targetTouches[0],sSy=X.pageX,Mck=X.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 X=0,H=$u.length;X<H;X++)document.addEventListener($u[X],_._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 X=0,H=$u.length;X<H;X++)document.removeEventListener($u[X],_._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(X){var H=_.Uc(X).rootTarget;X.type!=="touchmove"&&uW8!==H&&(uW8=H,eph=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Uc(X).path));if(!eph.length)return!0;if(X.type==="touchstart")return!1;X=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(X);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(eph,X.deltaX,X.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X){for(var H=[],l=X.indexOf(yI8),b=0;b<=l;b++)if(X[b].nodeType===Node.ELEMENT_NODE){var U=X[b],K=U.style;K.overflow!=="scroll"&&K.overflow!=="auto"&&(K=window.getComputedStyle(U));K.overflow!=="scroll"&&K.overflow!=="auto"||H.push(U)}return H};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X,H,l){if(H||l)for(var b=Math.abs(l)>=Math.abs(H),U=0;U<X.length;U++){var K=X[U];if(b?l<0?K.scrollTop>0:K.scrollTop<K.scrollHeight-K.clientHeight:H<0?K.scrollLeft>0:K.scrollLeft<K.scrollWidth-K.clientWidth)return K}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(X){var H={deltaX:X.deltaX,deltaY:X.deltaY};"deltaX"in X||("wheelDeltaX"in X&&"wheelDeltaY"in X?(H.deltaX=-X.wheelDeltaX,H.deltaY=-X.wheelDeltaY):"wheelDelta"in X?(H.deltaX=0,H.deltaY=-X.wheelDelta):"axis"in X?(H.deltaX=X.axis===1?X.detail:0,H.deltaY=X.axis===2?X.detail:0):X.targetTouches&&(X=X.targetTouches[0],H.deltaX=sSy-X.pageX,H.deltaY=Mck-X.pageY));return H};
VcL=function(X){this.element=X;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
fDy=function(X){this.element=X;this.color=window.getComputedStyle(X).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");_.Uc(this.waveContainer).appendChild(this.wave);Pc8(this)};
KN=function(X,H){for(var l in X)if(l.toLowerCase()===H.toLowerCase())return X[l]};
p9b=function(X,H){for(var l in X)if(l.toLowerCase()===H.toLowerCase()){delete X[l];break}};
zpy=function(X){X=_.Bb.clone(X);for(var H=0;H<S7Z.length;++H){var l=S7Z[H],b=KN(X,l);b&&(X["X-Goog-Upload-Header-"+l]=b,p9b(X,l))}return X};
nsK=function(X){X=_.Bb.clone(X);p9b(X,"X-Goog-Upload-Status")};
x8Z=function(X){return kUy.some(function(H){return H.test(X)})};
Esh=function(X,H){var l;var b=(l=X.formContent)==null?void 0:l.locale;l=b==null?void 0:b.split("-")[0];b=b&&D8N.includes(b)?b:l&&D8N.includes(l)?l:void 0;b=(b!=null?b:"en").replaceAll("-","_").toLowerCase();var U;X=((U=X.initializationData)==null?0:U.useNightlyRelease)?"nightly":"live";var K;return(H==null?0:(K=H.getEnableAlohaBinarySplit)==null?0:K.call(H))?_.z8(tcy,X):_.z8(WV8,X,b)};
aDl=function(X,H,l,b){if(gsm&&GUL===H)return gsm;GUL=H;var U=Esh(X,b);return gsm=H.feedbackV2GlobalObject?Promise.resolve(H.feedbackV2GlobalObject):new Promise(function(K,w){var d=_.XJ("SCRIPT");_.sw(d,U);d.onload=function(){H.feedbackV2GlobalObject?K(H.feedbackV2GlobalObject):w(Error("nf"))};
d.onerror=function(){w(Error("of`"+U.toString()))};
l.body.appendChild(d)})};
vsZ=function(X,H,l,b){if(Z7l&&i7k===H)return Z7l;i7k=H;var U=Esh(X,b);return Z7l=H.feedbackV2GlobalObject?Promise.resolve(H.feedbackV2GlobalObject):new Promise(function(K,w){var d=_.XJ("SCRIPT");_.sw(d,U);d.onload=function(){H.feedbackV2GlobalObject?K(H.feedbackV2GlobalObject):w(Error("nf"))};
d.onerror=function(){w(Error("of`"+U.toString()))};
l.body.appendChild(d)})};
O7L=function(X,H,l,b,U){U=U===void 0?!0:U;var K,w,d,B,q;return _.h(function(u){switch(u.nextAddress){case 1:return K=Date.now(),u.yield(aDl(X,l,b,H),2);case 2:w=u.yieldResult;if(!(U||((B=X.initializationData)==null?0:B.useNightlyRelease)||((q=X.initializationData)==null?0:q.isLocalServer))){d=w.initializeFeedbackClient(X,K,H);u.jumpTo(3);break}return u.yield(w.initializeFeedbackClientAsync(X,K,H),4);case 4:d=u.yieldResult;case 3:return d.initiateAloha(),u.return(d)}})};
m8y=function(X,H,l,b){var U,K,w;return _.h(function(d){if(d.nextAddress==1)return U=Date.now(),d.yield(vsZ(X,l,b.document,H),2);if(d.nextAddress!=3)return K=d.yieldResult,d.yield(K.initializeFeedbackClientAsync(X,U,H,b),3);w=d.yieldResult;w.initiateAloha();return d.return(w)})};
QSb=function(X,H,l){var b=!0;b=b===void 0?!0:b;var U,K,w,d,B,q,u,e;return _.h(function(y){U=l||_.ok;if((K=H)==null?0:(d=(w=K).getEnableAlohaBinarySplit)==null?0:d.call(w)){B=U;if(B.isFormOpened)throw new Rp;B.isFormOpened=!0;X.callbacks=X.callbacks||{};q=X.callbacks.onClose||function(){};
X.callbacks.onClose=function(V){B.isFormOpened=!1;q(V)};
try{return y.return(m8y(X,H,B,U))}catch(V){throw B.isFormOpened=!1,V;}}else{u=U;if(u.isFormOpened)throw new Rp;u.isFormOpened=!0;X.callbacks=X.callbacks||{};e=X.callbacks.onClose||function(){};
X.callbacks.onClose=function(V){u.isFormOpened=!1;e(V)};
try{return y.return(O7L(X,H,u,U.document,b))}catch(V){throw u.isFormOpened=!1,V;}}_.m5(y)})};
rIL=function(X,H){return _.h(function(l){return l.return(new Promise(function(b,U){Number.isInteger(Number(X))&&Number(X)>0?(U=TMk(H!=null?H:"")+"/aloha_form_properties?productId="+X,NMl(U,function(K){K=K.target;var w=null;try{var d=JSON,B=d.stringify;if(K.JSC$10106_xhr_){var q=K.JSC$10106_xhr_.responseText;q.indexOf(")]}'\n")==0&&(q=q.substring(5));var u=_.CN(q)}else u=void 0;w=dlh(cIZ,B.call(d,u))}catch(e){B=new cIZ,u=jSh(),u=_.wZ(u,13,!1),u=_.wZ(u,14,!0),u=_.wZ(u,15,!0),u=_.wZ(u,20,!1),w=_.go(B,
1,u)}b(w)},"GET","",{},2E3,!0)):U(Error("pf`"+X))}))})};
TMk=function(X){return x8Z(X)?X:"https://www.google.com/tools/feedback"};
IDO=function(X){X=X.match(new RegExp(JIK,"gi"))||[];X=_.C(X);for(var H=X.next();!H.done;H=X.next()){H=H.value;a:{var l=_.C(LVO);for(var b=l.next();!b.done;b=l.next())if(b.value.test(H)){l=!1;break a}l=!0}if(!l)a:{l=_.C(Y7W);for(b=l.next();!b.done;b=l.next())if(b.value.test(H)){l=!0;break a}l=!1}if(l)return!0}return!1};
AIz=function(X,H){var l={},b=Object.keys(X);b=_.C(b);for(var U=b.next();!U.done;U=b.next())U=U.value,l[U]=H(U,X[U]);return l};
XXO=function(X){switch(X){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"}};
lzK=function(X){if(window.crypto&&window.crypto.getRandomValues)try{var H=Array(X),l=new Uint8Array(X);window.crypto.getRandomValues(l);for(var b=0;b<H.length;b++)H[b]=l[b];return H}catch(K){}H=Array(X);for(l=0;l<X;l++){b=Date.now();for(var U=0;U<b%23;U++)H[l]=Math.random();H[l]=Math.floor(Math.random()*256)}if(Hkk)for(l=1,b=0;b<Hkk.length;b++)H[l%X]^=H[(l-1)%X]/4^Hkk.charCodeAt(b),l++;return H};
dZ=function(X){X=lzK(X);for(var H=[],l=0;l<X.length;l++)H.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(X[l]&63));return H.join("")};
o8b=function(){var X=_.ok.ytLoggingDocDocumentNonce_;X||(X=dZ(16),_.cQ("ytLoggingDocDocumentNonce_",X));return X};
UIh=function(X){X&&_.Sh("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:bky,clientScreenNonce:X})};
$Iz=function(X){return _.gx("client-screen-nonce-store",{})[X===void 0?0:X]};
KRk=function(X,H){H=H===void 0?0:H;var l=_.gx("client-screen-nonce-store");l||(l={},_.Et("client-screen-nonce-store",l));l[H]=X};
R6b=function(X){X=X===void 0?0:X;return X===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+X};
Cyh=function(X){return _.gx(R6b(X===void 0?0:X))};
_.F6=function(X){return(X=Cyh(X===void 0?0:X))?new _.h$({veType:X,youtubeData:void 0,jspbYoutubeData:void 0}):null};
wXz=function(){var X=_.gx("csn-to-ctt-auth-info");X||(X={},_.Et("csn-to-ctt-auth-info",X));return X};
dIb=function(){return Object.values(_.gx("client-screen-nonce-store",{})).filter(function(X){return X!==void 0})};
_.Bi=function(X){X=$Iz(X===void 0?0:X);if(!X&&!_.G7("USE_CSN_FALLBACK",!0))return null;X||(X="UNDEFINED_CSN");return X?X:null};
FRW=function(X){for(var H=_.C(Object.values(h6b)),l=H.next();!l.done;l=H.next())if(_.Bi(l.value)===X)return!0;return!1};
Bg8=function(X,H,l){var b=wXz();(l=_.Bi(l))&&delete b[l];H&&(b[X]=H)};
qG=function(X){return wXz()[X]};
_.sc=function(X,H,l,b){l=l===void 0?0:l;if(X!==$Iz(l)||H!==_.gx(R6b(l)))if(Bg8(X,b,l),KRk(X,l),_.Et(R6b(l),H),H=function(){setTimeout(function(){UIh(X)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(H)}catch(U){H()}else H()};
qbk=function(X,H){H=H===void 0?"":H;var l=[],b;for(b in X)if(X.hasOwnProperty(b)){var U=H!==""?H+"."+b:b;typeof X[b]==="object"?l.push.apply(l,_.LJ(qbk(X[b],U))):l.push([U,X[b]])}l.sort();return l};
_.uT=function(X){var H=_.Ab.apply(1,arguments);if(!MG(X)||H.some(function(b){return!MG(b)}))throw Error("qf");
H=_.C(H);for(var l=H.next();!l.done;l=H.next())scZ(X,l.value)};
scZ=function(X,H){for(var l in H)if(MG(H[l])){if(l in X&&!MG(X[l]))throw Error("rf");l in X||(X[l]={});scZ(X[l],H[l])}else if(MRy(H[l])){if(l in X&&!MRy(X[l]))throw Error("sf");l in X||(X[l]=[]);uCm(X[l],H[l])}else X[l]=H[l];return X};
uCm=function(X,H){H=_.C(H);for(var l=H.next();!l.done;l=H.next())l=l.value,MG(l)?X.push(scZ({},l)):MRy(l)?X.push(uCm([],l)):X.push(l);return X};
MG=function(X){return typeof X==="object"&&!Array.isArray(X)};
MRy=function(X){return typeof X==="object"&&Array.isArray(X)};
yiy=function(X){for(var H=_.C(Object.entries(e6W)),l=H.next();!l.done;l=H.next())if(l=_.C(l.value),l.next(),l=l.next().value,l==="SLI_STATUS_"+X)return l;return"SLI_STATUS_UNKNOWN"};
_.e7=function(X,H,l,b){return VRZ(X,H,function(){return new _.Pyk(X,H,l,b)})};
_.fzk=function(){return _.e7("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
pX8=function(){return _.e7("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
yX=function(){return _.e7("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
SbL=function(){return _.e7("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
z6y=function(){return _.e7("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
n8N=function(){return _.e7("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
DIL=function(X){X&&(X.dataset?X.dataset[kIy()]="true":_.uQ([_.p$(xIh)],X,"data-loaded","true".toString()))};
tRK=function(X){return X?X.dataset?X.dataset[kIy()]:X.getAttribute("data-loaded"):null};
kIy=function(){return WRb.loaded||(WRb.loaded="loaded".replace(/\-([a-z])/g,function(X,H){return H.toUpperCase()}))};
_.VX=function(X,H,l){E8K(X,H,l===void 0?null:l)};
_.GIk=function(X,H){X&&H&&(X=""+_.Ly(H),(X=g8l[X])&&_.Ipk(X))};
E8K=function(X,H,l){l=l===void 0?null:l;var b=_.azk(typeof X==="string"?X:X.toString()),U=document.getElementById(b),K=U&&tRK(U),w=U&&!K;K?H&&H():(H&&(K=_.AV(b,H),H=""+_.Ly(H),g8l[H]=K),w||(U=ZkK(X,b,function(){tRK(U)||(DIL(U),_.AaN(b),_.b0(function(){_.Hlk(b)},0))},l)))};
ZkK=function(X,H,l,b){b=b===void 0?null:b;var U=_.XJ("SCRIPT");U.id=H;U.onload=function(){l&&setTimeout(l,0)};
U.onreadystatechange=function(){switch(U.readyState){case "loaded":case "complete":U.onload()}};
b&&U.setAttribute("nonce",b);_.sw(U,typeof X==="string"?_.qF(X):X);X=document.getElementsByTagName("head")[0]||document.body;X.insertBefore(U,X.firstChild);return U};
_.azk=function(X){var H=document.createElement("a");HJ(H,X);return"js-"+Pi(H.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
ikh=function(X){var H=_.gx("INNERTUBE_HOST_OVERRIDE");H&&(X=String(H)+String(_.jN(X)));return X};
v8h=function(X){var H={};_.P("json_condensed_response")&&(H.prettyPrint="false");return X=fib(X,H)};
_.pN=function(X){return Nk(X)?"same-origin":"include"};
_.S7=function(X){return Nk(X)?"same-origin":"cors"};
zP=function(X,H,l){l=l===void 0?{}:l;X={method:H===void 0?"POST":H,mode:_.S7(X),credentials:_.pN(X)};H={};for(var b=_.C(Object.keys(l)),U=b.next();!U.done;U=b.next())U=U.value,l[U]&&(H[U]=l[U]);Object.keys(H).length>0&&(X.headers=H);return X};
_.nN=function(X,H){H=H===void 0?{}:H;return"service:"+X+"/"+Object.keys(H).sort().map(function(l){return l+":"+H[l]}).join("/")};
Okl=function(X){var H,l,b,U;X=(H=_.f(X,_.ku))==null?void 0:(l=H.watchEndpointSupportedOnesieConfig)==null?void 0:(b=l.html5PlaybackOnesieConfig)==null?void 0:(U=b.commonConfig)==null?void 0:U.url;if(!X)return[];H=new _.xu(X);return H.JSC$10342_domain_?["https://"+H.JSC$10342_domain_+"/generate_204"]:[]};
_.Tgy=function(){return mIK()||nMy()||QcK&&kr("version/")?!0:_.gx("EOM_VISITOR_DATA")?!1:!0};
Ngy=function(X){var H=X.docid||X.video_id||X.videoId||X.id;if(H)return H;H=X.raw_player_response;H||(X=X.player_response)&&(H=JSON.parse(X));return H&&H.videoDetails&&H.videoDetails.videoId||null};
cil=function(X){return X.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Wi=function(X){return!isNaN(Number(X))&&!_.w8(X)};
_.Ec=function(X,H,l,b){b=b===void 0?!0:b;var U=_.gx("VALID_SESSION_TEMPDATA_DOMAINS",[]),K=_.Nb(window.location.href);K&&U.push(K);K=_.Nb(X);if(_.vh(U,K)||!K&&_.Ky(X,"/"))if(U=document.createElement("a"),HJ(U,X),X=U.href)if(X=_.jN(X),X=_.rX(X))b&&!H.csn&&(H.itct||H.ved)&&(H=Object.assign({csn:_.Bi()},H)),l?(l=parseInt(l,10),isFinite(l)&&l>0&&jcy(X,H,l)):jcy(X,H)};
Jih=function(X){var H=_.gx("VALID_SESSION_TEMPDATA_DOMAINS",[]),l=_.Nb(window.location.href);l&&H.push(l);l=_.Nb(X);if(!(_.vh(H,l)||!l&&_.Ky(X,"/")))return null;X=_.jN(X);(X=_.rX(X))?(X=riK(X),X=(X=_.wL.get(X,void 0)||null)?_.mu(X):{}):X=null;return X};
jcy=function(X,H,l){X=riK(X);H=H?_.Io(H):"";l=l||5;_.Tgy()&&_.dL(X,H,l)};
riK=function(X){for(var H=_.C(LRN),l=H.next();!l.done;l=H.next())X=_.lB(X,l.value);return"ST-"+Pi(X).toString(36)};
_.YbN=function(X){if(X.requestFullscreen)X=X.requestFullscreen(void 0);else if(X.webkitRequestFullscreen)X=X.webkitRequestFullscreen();else if(X.mozRequestFullScreen)X=X.mozRequestFullScreen();else if(X.msRequestFullscreen)X=X.msRequestFullscreen();else if(X.webkitEnterFullscreen)X=X.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return X instanceof Promise?X:Promise.resolve()};
_.GP=function(X){var H;_.iqy(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.gZ()==X&&(H=document):H=X;if(H&&(X=_.iqy(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],H))){X.call(H)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.gZ=function(){var X=X===void 0?!1:X;var H=_.iqy(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(X)for(;H&&H.shadowRoot;)H=H.shadowRoot.fullscreenElement;return H?H:null};
_.ap=function(X,H){H=H===void 0?!0:H;X.addEventListener("wheel",IzK);X.overscrollConfig={cooldown:H}};
_.Zv=function(X){X.overscrollConfig=void 0;X.removeEventListener("wheel",IzK)};
IzK=function(X){var H=X.deltaY,l=X.target,b=null;if(window.Polymer&&window.Polymer.Element){if(l=X.path||X.composedPath&&X.composedPath()){l=_.C(l);for(var U=l.next();!U.done&&(U=U.value,!Ai8(U,H));U=l.next())if(U.overscrollConfig){b=U;break}}}else for(;l&&!Ai8(l,H);){if(l.overscrollConfig){b=l;break}l=l.parentElement}b&&(H=b.overscrollConfig,H.cooldown?(b=X.deltaY,l=H.lastDeltaY||0,H.lastDeltaY=b,U=H.lastStopped||0,l&&U&&l>0==b>0?Math.abs(l)>=Math.abs(b)?(b=U+1200,l=!1):(b=U+600,l=!0):(b=Date.now()+
600,l=!0),b>Date.now()&&(X.preventDefault(),l&&(H.lastStopped=Date.now()))):X.preventDefault())};
Ai8=function(X,H){return H<0&&X.scrollTop>0||H>0&&X.scrollTop<X.scrollHeight-X.clientHeight-1?(X=getComputedStyle(X).overflowY,X=="auto"||X=="scroll"):!1};
XWZ=function(X){iT.initialized=!0;iT.sessionId=X.sessionId||"";iT.enabledSpans=X.enabledSpans;X.shouldSampleFn!=null&&(iT.shouldSampleFn=X.shouldSampleFn)};
Hgh=function(X){iT.processors.push(X)};
vi=function(X){return iT.initialized?iT.enabledSpans?iT.enabledSpans[X]:!0:!1};
UgN=function(X,H,l){return vi(X)&&iT.shouldSampleFn(X,H,l78)?new opl(X,H,l):bgW};
_.Oc=function(X,H,l){if(typeof l==="function"){var b=l;l=void 0}var U=UgN(X,H,l),K;if(((K=l)==null?void 0:K.endTime)!=null)return b&&_.x2(Error("Df")),U;var w;U!==bgW&&((w=l)==null?void 0:w.active)!==!1&&iT.stack.push(U);if(!b)return U;if(U===bgW)return b(U);try{var d=b(U);if(d instanceof Promise)return d.then(function(B){U.end();return B},function(B){U.end("SPAN_STATUS_ERROR");
throw B;});
U.end();return d}catch(B){throw U.end("SPAN_STATUS_ERROR"),B;}};
$gk=function(){WD.subscribe("handleError",function(X){try{for(var H in me)try{var l=me[H];typeof me[H]==="function"&&(l=l());X.params[H]=typeof me[H]==="object"?JSON.stringify(l):String(l)}catch(b){_.x2(b)}}catch(b){_.x2(b)}})};
KWl=function(){};
RdK=function(X){var H=X.nodeName;if(X.id)return H+="#"+X.id;if(X.classList)for(var l=_.C(X.classList),b=l.next();!b.done;b=l.next())H+="."+b.value;X.parentElement&&(H=RdK(X.parentElement)+" > "+H);return H};
_.QX=function(X,H,l,b){b||(b={bubbles:!0,cancelable:!1,composed:!0});l!==null&&l!==void 0&&(b.detail=l);var U=new CustomEvent(H,b);_.P("untrack_fire_custom_event_killswitch")?X.dispatchEvent(U):_.h1(function(){return void X.dispatchEvent(U)});
return U};
CCz=function(X){var H=window,l=function(b){H.removeEventListener("yt-navigate-start",l);return X.call(H,b)};
H.addEventListener("yt-navigate-start",l,void 0)};
_.TP=function(X,H,l,b){b=b===void 0?!1:b;return _.Oc("ytAction",{name:H,nodepath:RdK(X)},function(){var U=new wWZ(H,!!b,l);_.QX(X,"yt-action",U);return U.returnValue})};
_.NG=function(X,H,l){return _.TP(X,H,l,!0)};
_.j7=function(X,H,l,b){H&&H.length&&H.forEach(function(U){var K=GeN(U);K&&(_.P("handle_service_request_actions")&&U.commandMetadata&&U.commandMetadata.webCommandMetadata&&U.commandMetadata.webCommandMetadata.sendPost?_.ci(l?l:X,[U]):_.NG(X,K,[U,l,b]))})};
_.ci=function(X,H){var l=[X];H&&l.push.apply(l,H);H=_.TP(X,"yt-service-request",l);return H.length>0&&(H=H[0],_.QX(X,"yt-service-request-sent",H),H&&H.ajaxPromise)?(H.ajaxPromise.then(function(b){_.QX(X,"yt-service-request-completed",b)},function(b){_.QX(X,"yt-service-request-error",{error:b,
params:l})},X),H.ajaxPromise):_.rZ()};
_.LN=function(X,H){if(_.P("handle_service_request_actions"))_.j7(H,X,H);else{X=_.C(X);for(var l=X.next();!l.done;l=X.next()){l=l.value;var b=void 0;((b=_.f(l,_.J$))==null?0:b.commands)?_.LN(_.f(l,_.J$).commands,H):(b=void 0,((b=_.f(l,_.Yu))==null?0:b.actions)?_.LN(_.f(l,_.Yu).actions,H):(b=void 0,((b=_.f(l.commandMetadata,_.Ip))==null?0:b.sendPost)?_.ci(H,[l]):_.j7(H,[l],H)))}}};
_.hdL=function(X,H,l){H=H===void 0?{}:H;typeof H==="function"&&(H={callback:H});l||H._c&&H._c.jsl&&H._c.jsl.h||_.Bb.extend(H,{_c:{jsl:{h:_.gx("GAPI_HINT_PARAMS")}}});(H.gapiHintOverride||_.gx("GAPI_HINT_OVERRIDE"))&&(l=_.QO(document.location.href).gapi_jsh)&&_.Bb.extend(H,{_c:{jsl:{h:l}}});dgy(X,H)};
_.XS=function(X,H,l){H=H===void 0?{}:H;X=(X=X in A$?A$[X]:l)||"";l={};for(var b in H){l={key$jscomp$855:l.key$jscomp$855};l.key$jscomp$855=b;var U=function(K){return function(){return String(H[K.key$jscomp$855])}}(l);
X=X.replace(new RegExp("\\$\\{"+l.key$jscomp$855+"\\}","gi"),U);X=X.replace(new RegExp("\\$"+l.key$jscomp$855,"gi"),U)}return X};
_.HK=function(X,H){return FWh(X in A$?A$[X]:{},H)};
FWh=function(X,H){var l=_.gx("I18N_PLURAL_RULES");l||(l=function(b){return b==1?"one":"other"});
return(X=X["case"+H]||X[l(H)])?X.replace("#",H.toString()):H+""};
sy8=function(X){var H=BDZ(X),l=document.getElementById(H),b=l&&tRK(l);b||l&&!b||(l=q6b(X,H,function(){if(!tRK(l)){DIL(l);_.AaN(H);var U=_.lH(_.Hlk,H);_.b0(U,0)}}))};
q6b=function(X,H,l){var b=document.createElement("link");b.id=H;b.onload=function(){l&&setTimeout(l,0)};
X=_.qF(X);_.ei(b,X,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(b);return b};
BDZ=function(X){var H=_.XJ("A");HJ(H,Na(X));return"css-"+Pi(H.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.utN=function(X){var H=M3b();X!==H&&(H=_.oO(),!_.P("web_autonav_allow_off_by_default")&&X||_.bH(0,141,!0),_.bH(0,140,!X),H.save())};
M3b=function(){var X=_.oO();return _.P("web_autonav_allow_off_by_default")&&!X.getFlag(141)&&_.gx("AUTONAV_OFF_BY_DEFAULT")?!1:!X.getFlag(140)};
edm=function(X,H){var l,b;X=((l=X.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(b=l.videoAuthorizationToken)==null?void 0:b.credentialTransferTokens)||[];for(l=0;l<X.length;++l)if(X[l].scope===H)return X[l].token||void 0};
yOh=function(X){for(var H=0,l=0;l<X.length;l++)H=H*31+X.charCodeAt(l),l<X.length-1&&(H%=0x800000000000);return H%1E5};
_.Uf=function(X){return _.ij("ytcsi."+(X||"")+"data_")||V3Z(X)};
_.PCN=function(X){X=_.Uf(X);X.metadata||(X.metadata={});return X.metadata};
_.f7b=function(X){X=_.Uf(X);X.tick||(X.tick={});return X.tick};
_.$B=function(X){X=_.Uf(X);if(X.gel){var H=X.gel;H.gelInfos||(H.gelInfos={});H.gelTicks||(H.gelTicks={})}else X.gel={gelTicks:{},gelInfos:{}};return X.gel};
_.pWz=function(X){X=_.$B(X);X.gelInfos||(X.gelInfos={});return X.gelInfos};
S6l=function(X){var H=_.Uf(X).nonce;H||(H=dZ(16),_.Uf(X).nonce=H);return H};
V3Z=function(X){var H={tick:{},info:{}};_.cQ("ytcsi."+(X||"")+"data_",H);return H};
zdl=function(){var X=_.ij("ytcsi.debug");X||(X=[],_.cQ("ytcsi.debug",X),_.cQ("ytcsi.reference",{}));return X};
_.KA=function(X){X=X||"";var H=npN();if(H[X])return H[X];var l=zdl(),b={timerName:X,info:{},tick:{},span:{},jspbInfo:[]};l.push(b);return H[X]=b};
kNZ=function(X){X=X||"";var H=npN();H[X]&&delete H[X];var l=zdl(),b={timerName:X,info:{},tick:{},span:{},jspbInfo:[]};l.push(b);H[X]=b};
npN=function(){var X=_.ij("ytcsi.reference");if(X)return X;zdl();return _.ij("ytcsi.reference")};
_.Dgk=function(X){return xgh[X]||"LATENCY_ACTION_UNKNOWN"};
gpy=function(X,H,l){l=l===void 0?{}:l;var b=!1;_.G7("ytLoggingEventsDefaultDisabled",!1)&&(b=!0);b=b?null:p2;l=l===void 0?{}:l;var U=Math.round(l.timestamp||(0,_.Jl)());_.qp(H,1,U<Number.MAX_SAFE_INTEGER?U:0);U=new t3k;if(l.lact)_.qp(U,1,isFinite(l.lact)?l.lact:-1);else if(l.timestamp)_.qp(U,1,-1);else{var K=_.JV();_.qp(U,1,isFinite(K)?K:-1)}if(l.sequenceGroup&&!_.P("web_gel_sequence_info_killswitch")){K=l.sequenceGroup;var w=w6y(K),d=new WW8;_.qp(d,2,w);_.KY(d,1,K);_.go(U,3,d);l.endOfSequence&&delete Epz[l.sequenceGroup]}_.go(H,
33,U);(l.sendIsolatedPayload?M2m:u8K)(X,{endpoint:"log_event",payload:H,cttAuthInfo:l.cttAuthInfo,dangerousLogToVisitorSession:l.dangerousLogToVisitorSession},b)};
_.GNO=function(X,H){_.RO("_start",X,H)};
_.CA=function(X,H){if(!_.P("web_csi_action_sampling_enabled")||!_.Uf(H).actionDisabled){var l=_.KA(H||"");_.uT(l.info,X);X.loadType&&(l=X.loadType,_.PCN(H).loadType=l);_.uT(_.pWz(H),X);l=S6l(H);H=_.Uf(H).cttAuthInfo;a7y().info(X,l,H)}};
Zgz=function(){var X,H,l,b;return((b=_.jJ().resolve(_.c$(yJ))==null?void 0:(X=VJ())==null?void 0:(H=X.loggingHotConfig)==null?void 0:(l=H.csiConfig)==null?void 0:l.debugTicks)!=null?b:[]).map(function(U){return Object.values(U)[0]})};
_.RO=function(X,H,l){if(!_.P("web_csi_action_sampling_enabled")||!_.Uf(l).actionDisabled){var b=S6l(l),U;if(U=_.P("web_csi_debug_sample_enabled")&&b){(_.jJ().resolve(_.c$(yJ))==null?0:VJ())&&!igy&&(igy=!0,_.RO("gcfl",(0,_.Jl)(),l));var K,w,d;U=(_.jJ().resolve(_.c$(yJ))==null?void 0:(K=VJ())==null?void 0:(w=K.loggingHotConfig)==null?void 0:(d=w.csiConfig)==null?void 0:d.debugSampleWeight)||0;if(K=U!==0)b:{K=Zgz();if(K.length>0)for(w=0;w<K.length;w++)if(X===K[w]){K=!0;break b}K=!1}K?(U=yOh(b)%U!==0,
_.Uf(l).debugTicksExcludedLogged||(K={},K.debugTicksExcluded=U,_.CA(K,l)),_.Uf(l).debugTicksExcludedLogged=!0):U=!1}if(!U){X[0]!=="_"&&vpZ(X,l,H);U=_.KA(l||"");U.tick[X]=H||(0,_.Jl)();if(U.callback&&U.callback[X])for(U=_.C(U.callback[X]),K=U.next();!K.done;K=U.next())K=K.value,K();U=_.$B(l);U.gelTicks&&(U.gelTicks[X]=!0);K=_.f7b(l);U=H||(0,_.Jl)();K[X]=U;K=_.Uf(l).cttAuthInfo;X==="_start"?a7y().baseline(b,H,K):a7y().tick(X,b,H,K);_.OgN(l);return U}}};
vpZ=function(X,H,l){if(_.wc.mark)if(X.startsWith("mark_")||(X="mark_"+X),H&&(X+=" ("+H+")"),l===void 0||_.P("web_csi_disable_alt_time_performance_mark"))_.wc.mark(X);else{l=_.P("csi_use_performance_navigation_timing")?l-_.wc.timeOrigin:l-(_.wc.timeOrigin||_.wc.timing.navigationStart);try{_.wc.mark(X,{startTime:l})}catch(b){}}};
mgO=function(){var X,H=(X=_.wc.getEntriesByType)==null?void 0:X.call(_.wc,"mark");H&&H.forEach(function(l){if(l.name.startsWith("mark_")){var b;(b=_.wc.clearMarks)==null||b.call(_.wc,l.name)}})};
_.Qyl=function(X){var H={},l=function(K,w,d){w=w.match("_rid")?w.split("_rid")[0]:w;typeof d==="number"&&(d=JSON.stringify(d));K.requestIds?K.requestIds.push({endpoint:w,id:d}):K.requestIds=[{endpoint:w,id:d}]};
X=_.C(Object.entries(X));for(var b=X.next();!b.done;b=X.next()){var U=_.C(b.value);b=U.next().value;U=U.next().value;switch(b){case "GetBrowse_rid":l(H,b,U);break;case "GetGuide_rid":l(H,b,U);break;case "GetHome_rid":l(H,b,U);break;case "GetPlayer_rid":l(H,b,U);break;case "GetSearch_rid":l(H,b,U);break;case "GetSettings_rid":l(H,b,U);break;case "GetTrending_rid":l(H,b,U);break;case "GetWatchNext_rid":l(H,b,U);break;case "yt_red":H.isRedSubscriber=!!U;break;case "yt_ad":H.isMonetized=!!U}}return H};
_.TDL=function(X){var H=_.dc("aft",X);if(H)return H;H=_.gx((X||"")+"TIMING_AFT_KEYS",["ol"]);for(var l=H.length,b=0;b<l;b++){var U=_.dc(H[b],X);if(U)return U}return NaN};
_.NDm=function(X,H){_.cQ("ytglobal.timing"+(H||"")+"ready_",X)};
_.dc=function(X,H){if(X=_.f7b(H)[X])return typeof X==="number"?X:X[X.length-1]};
_.OgN=function(X){var H=_.dc("_start",X),l=_.TDL(X),b=!cOy;H&&l&&b&&(h_b(jyK,new rOO(Math.round(l-H),X)),cOy=!0)};
LWN=function(X){V3Z(X);JOy();mgO();X||(_.gx("TIMING_ACTION")&&_.Et("PREVIOUS_ACTION",_.gx("TIMING_ACTION")),_.Et("TIMING_ACTION",""))};
_.Y6N=function(X){X=X===void 0?{}:X;_.ZR(function(){hY();kNZ();LWN();_.NDm(!1);X.cttAuthInfo&&(_.Uf().cttAuthInfo=X.cttAuthInfo);_.Et("TIMING_AFT_KEYS",[]);X.isHot?_.FS({loadType:"hot"}):_.FS({loadType:"warm"});_.Et("TIMING_ACTION","");delete _.gx("TIMING_INFO",{}).yt_lt;_.ZR(_.GNO)(X.startTime,void 0)})()};
_.qJ=function(X,H,l,b){H=H===void 0?{}:H;_.ZR(function(){var U=l?l:X;BK(U);var K=H.sampleRate;if(!_.P("web_csi_action_sampling_enabled")||K===void 0||K<=1)K=!1;else{var w=S6l(U);K=yOh(w)%K!==0}K&&(_.Uf(U).actionDisabled=!0);_.KA(U||"").info.actionType=X;H.cttAuthInfo&&(_.Uf(U).cttAuthInfo=H.cttAuthInfo);_.Et(U+"TIMING_ACTION",X);_.ZR(_.GNO)(H.startTime,U);K={actionType:b||_.Dgk(X)};H.logPreviousAction&&(K.previousAction=_.Dgk(_.gx("TIMING_ACTION")));(w=_.Bi())&&w!=="UNDEFINED_CSN"&&(K.clientScreenNonce=
w);_.FS(K,U);_.NDm(!0,U)})()};
BK=function(X){_.ZR(function(){hY(X);kNZ(X);LWN(X)})()};
I7N=function(){_.ZR(function(){var X=[],H;for(H in _.ij("ytcsi.".slice(0,-1)))H.endsWith("data_")&&X.push(H.slice(0,-5));X=_.C(X);for(H=X.next();!H.done;H=X.next())BK(H.value);hY()})()};
_.Xrk=function(X){return _.ZR(function(){return _.AOz("_start",X)})()};
_.FS=function(X,H,l){_.ZR(_.CA)(X,H,l===void 0?!1:l)};
_.sf=function(X,H,l){return _.ZR(_.RO)(X,H,l)};
_.AOz=function(X,H){return _.ZR(function(){var l=_.f7b(H);return X in l})()};
lEK=function(X){if(!_.P("universal_csi_network_ticks"))return"";X=_.c1(X)||"";for(var H=Object.keys(HDO),l=0;l<H.length;l++){var b=H[l];if(X.includes(b))return b}return""};
bDk=function(X){if(!_.P("universal_csi_network_ticks"))return function(){};
var H=HDO[X];return H?(_.MJ(H),function(){var l=_.P("universal_csi_network_ticks")?(l=ovy[X])?_.MJ(l):!1:!1;return l}):function(){}};
_.MJ=function(X,H,l){return _.ZR(function(){if(_.AOz(X,l))return!1;_.sf(X,H,l);return!0})()};
_.uH=function(X,H,l){_.ZR(function(){if(!_.Xrk(l)||_.AOz(X,l))return!1;_.sf(X,H,l);return!0})()};
_.eF=function(X){return _.ZR(_.dc)(X,void 0)};
hY=function(X){_.Xrk(X)&&_.sf("aa",void 0,X)};
_.CJy=function(X,H,l,b,U,K,w,d,B,q){var u=UUK();K=new _.h$({veType:H,youtubeData:K,jspbYoutubeData:d});q=yP({automatedLogEventSource:q},u);U&&(q.cttAuthInfo=U);U={csn:u,pageVe:K.getAsJson()};_.P("expectation_logging")&&B&&B.screenCreatedLoggingExpectations&&(U.screenCreatedLoggingExpectations=B.screenCreatedLoggingExpectations);l&&l.visualElement?(U.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()},w&&(U.implicitGesture.gestureType=w)):l&&_.x2(new _.qd("newScreen() parent element does not have a VE - rootVe",
H));b&&(U.cloneCsn=b);X?f2("screenCreated",U,X,q):_.Sh("screenCreated",U,q);h_b(e_y,new $Uz(u));VP.clear();KsK.clear();RqN.clear();return u};
PK=function(X,H,l,b,U,K){K=K===void 0?{}:K;wrm(X,H,l,[b],U===void 0?!1:U,K)};
wrm=function(X,H,l,b,U,K){U=U===void 0?!1:U;K=K===void 0?{}:K;Object.assign(K,yP({cttAuthInfo:qG(H)||void 0},H));for(var w=_.C(b),d=w.next();!d.done;d=w.next()){d=d.value;var B=d.getAsJson();(_.Bb.isEmpty(B)||!B.trackingParams&&!B.veType)&&_.x2(Error("Ff"));if(_.P("no_client_ve_attach_unless_shown")){var q=dU8(d,H);if(B.veType&&!KsK.has(q)&&!RqN.has(q)&&!U){if(!_.P("il_attach_cache_limit")||VP.size<1E3){VP.set(q,[X,H,l,d]);return}_.P("il_attach_cache_limit")&&VP.size>1E3&&_.x2(new _.qd("IL Attach cache exceeded limit"))}d=
dU8(l,H);VP.has(d)?hqO(l,H):RqN.set(d,!0)}}b=b.filter(function(u){u.csn!==H?(u.csn=H,u=!0):u=!1;return u});
l={csn:H,parentVe:l.getAsJson(),childVes:_.qz(b,function(u){return u.getAsJson()})};
H==="UNDEFINED_CSN"?fA("visualElementAttached",K,l):X?f2("visualElementAttached",l,X,K):_.Sh("visualElementAttached",l,K)};
BhO=function(X,H,l,b,U,K,w){FsO(X,H,l,U,w)};
FsO=function(X,H,l,b,U){qKy(l,H);U=yP({cttAuthInfo:qG(H)||void 0,automatedLogEventSource:U},H);l={csn:H,ve:l.getAsJson(),eventType:1};b&&(l.clientData=b);H==="UNDEFINED_CSN"?fA("visualElementShown",U,l):X?f2("visualElementShown",l,X,U):_.Sh("visualElementShown",l,U)};
sEh=function(X,H,l,b){qKy(l,H);var U=yP({cttAuthInfo:qG(H)||void 0,automatedLogEventSource:void 0},H);l={csn:H,ve:l.getAsJson(),eventType:4};b&&(l.clientData=b);H==="UNDEFINED_CSN"?fA("visualElementShown",U,l):X?f2("visualElementShown",l,X,U):_.Sh("visualElementShown",l,U)};
Mjh=function(X,H,l,b,U,K){var w=(b=b===void 0?!1:b)?16:8;b=yP({cttAuthInfo:qG(H)||void 0,endOfSequence:b,automatedLogEventSource:K},H);l={csn:H,ve:l.getAsJson(),eventType:w};U&&(l.clientData=U);H==="UNDEFINED_CSN"?fA("visualElementHidden",b,l):X?f2("visualElementHidden",l,X,b):_.Sh("visualElementHidden",l,b)};
eqL=function(X,H,l,b,U,K){uV8(X,H,l,void 0,b,U,K)};
uV8=function(X,H,l,b,U,K,w){qKy(l,H);b=b||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";K=yP({cttAuthInfo:qG(H)||void 0,automatedLogEventSource:w},H);l={csn:H,ve:l.getAsJson(),gestureType:b};U&&(l.clientData=U);H==="UNDEFINED_CSN"?fA("visualElementGestured",K,l):X?f2("visualElementGestured",l,X,K):_.Sh("visualElementGestured",l,K)};
yxO=function(X,H,l,b){var U=yP({cttAuthInfo:qG(H)||void 0},H);l={csn:H,ve:l.getAsJson(),clientData:b};H==="UNDEFINED_CSN"?fA("visualElementStateChanged",U,l):X?f2("visualElementStateChanged",l,X,U):_.Sh("visualElementStateChanged",l,U)};
Vjy=function(){var X=lzK(16);for(var H=[],l=0;l<X.length;l++)H.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(X[l]&63));return H.join("")};
fA=function(X,H,l){PJz.push({payloadName:X,payload:l,jspbPayload:void 0,options:H});fEm||(fEm=VLz())};
uhO=function(X){if(PJz){for(var H=_.C(PJz),l=H.next();!l.done;l=H.next())l=l.value,l.payload&&(l.payload.csn=X.csn,_.Sh(l.payloadName,l.payload,l.options));PJz.length=0}fEm=0};
dU8=function(X,H){return""+X.getAsJson().veType+X.getAsJson().veCounter+H};
qKy=function(X,H){if(_.P("no_client_ve_attach_unless_shown")){var l=dU8(X,H);KsK.set(l,!0);hqO(X,H)}};
hqO=function(X,H){X=dU8(X,H);VP.has(X)&&(H=VP.get(X)||[],PK(H[0],H[1],H[2],H[3],!0),VP.delete(X))};
yP=function(X,H){_.P("log_sequence_info_on_gel_web")&&(X.sequenceGroup=H);return X};
_.pA=function(X,H,l){_.ZR(PK)(void 0,X,H,l)};
_.SF=function(X,H,l){_.ZR(wrm)(void 0,X,H,l)};
_.zu=function(X,H){_.ZR(BhO)(void 0,X,H,void 0,void 0,void 0)};
_.nA=function(X,H,l){_.ZR(function(){_.Ot(H,function(b){sEh(void 0,X,b,l)})})()};
_.kB=function(X,H,l,b){_.ZR(function(){_.Ot(H,function(U){Mjh(void 0,X,U,l,b)})})()};
_.xB=function(X,H,l){_.ZR(eqL)(void 0,X,H,l,void 0)};
_.Di=function(X,H,l,b){_.ZR(uV8)(void 0,X,H,l,b,void 0)};
_.tY=function(X,H,l){_.ZR(yxO)(void 0,X,H,l,void 0)};
prl=function(X,H){WK.set(X,H)};
SKk=function(X,H){var l=Object.keys(X);X=new _.qd("[Command Handler] "+H,{filteredCommandNames:l,originalCommand:X});_.n2(X)};
zqy=function(X,H){SKk(X,H+" was called but not set")};
nvN=function(X){return function(){return new X}};
Ef=function(X){return function(){return _.jJ().resolve(X)}};
khm=function(X,H){var l=_.f(X,_.gU);if(l&&(l=H[l.signal]))return l();X=_.C(Object.keys(X));for(l=X.next();!l.done;l=X.next())if(l=l.value,H[l]&&(l=H[l]))return l()};
_.Gu=function(X,H,l,b){return{browseEndpoint:{browseId:X},commandMetadata:{webCommandMetadata:{url:H,rootVe:l,webPageType:b===void 0?"WEB_PAGE_TYPE_BROWSE":b}}}};
xUZ=function(X,H,l){var b=H=H===void 0?0:H;l=l===void 0?0:l;var U=l-b;return _.aO(X,"PPSV",void 0,void 0,(U>600?0:U<60||l<=0||b/l>.9)?0:H)};
_.aO=function(X,H,l,b,U){var K="/watch?v="+X;X={videoId:X};H&&(X.playlistId=H,K+="&list="+H);b&&(K+="&pp="+b);U&&(X.startTimeSeconds=U,K+="&t="+U+"s");H={watchEndpoint:X,commandMetadata:{webCommandMetadata:{url:K,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};l&&(H.clickTrackingParams=l);b&&(_.f(H,_.ku).playerParams=b);return H};
DUy=function(X){return{browseEndpoint:{browseId:"VL"+X},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+X,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
tjl=function(X){if(X){var H;if(X){var l=(H=_.f(X.commandMetadata,_.Ip))==null?void 0:H.url;H=!(!l||l==="/service_ajax")}else H=!1;if(H)return X;var b;if(X=(b=_.f(X,_.J$))==null?void 0:b.commands)for(b=_.C(X),X=b.next();!X.done;X=b.next())if(X=tjl(X.value))return X}};
_.Zi=function(X){return{runs:[{text:X}]}};
Wsm=function(X,H){return X&&H?{runs:[{text:X,navigationEndpoint:H}]}:void 0};
iH=function(X){return X?_.Zi(X):void 0};
_.vK=function(X){return X?{simpleText:X}:void 0};
_.Of=function(X){var H=X.type;X=X.payload;H={type:H};X!==void 0&&(H.payload=X);return H};
Evk=function(X,H,l){for(var b=Object.assign({},X),U=_.C(Object.keys(H)),K=U.next();!K.done;K=U.next()){K=K.value;var w=X[K],d=H[K];if(d===void 0)delete b[K];else if(w===void 0)b[K]=d;else if(Array.isArray(d)&&Array.isArray(w))b[K]=l?[].concat(_.LJ(w),_.LJ(d)):d;else if(!Array.isArray(d)&&_.r8(d)&&!Array.isArray(w)&&_.r8(w))b[K]=Evk(w,d,l);else if(typeof d===typeof w)b[K]=d;else return H=new _.qd("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:K,originalValue:w,updateValue:d}),
_.n2(H),X}return b};
aEy=function(X){if(!X.length)return"";try{if(gvy)return gvy.decode(X);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(X)}catch(w){}for(var H=0,l=[],b=X.length;H<b;){for(var U=0;U<1024&&H<b;){var K=X[H++];if(K<128)GhW[U++]=K;else{if(K<224)K=(K&31)<<6|X[H++]&63;else if(K<240)K=(K&15)<<12|(X[H++]&63)<<6|X[H++]&63;else{if(U+1===1024){--H;break}K=(K&7)<<18|(X[H++]&63)<<12|(X[H++]&63)<<6|X[H++]&63;K-=65536;GhW[U++]=55296|K>>10;K=56320|K&1023}GhW[U++]=K}}K=String.fromCharCode.apply(String,
GhW);U<1024&&(K=K.substring(0,U));l.push(K)}return l.join("")};
iDm=function(X,H){var l;if((l=ZDz)==null?0:l.encodeInto)return H=ZDz.encodeInto(X,H),H.read<X.length?X.length*4:H.written;for(var b=l=0;b<X.length;b++){var U=X.charCodeAt(b);U<128?H[l++]=U:(U<2048?H[l++]=U>>6|192:((U&64512)===55296&&b+1<X.length&&(X.charCodeAt(b+1)&64512)===56320?(U=65536+((U&1023)<<10)+(X.charCodeAt(++b)&1023),H[l++]=U>>18|240,H[l++]=U>>12&63|128):H[l++]=U>>12|224,H[l++]=U>>6&63|128),H[l++]=U&63|128)}return l};
vvy=function(X,H,l){if(H&&l&&l.buffer===H.exports.memory.buffer){var b=H.realloc(l.byteOffset,X);if(b)return new Uint8Array(H.exports.memory.buffer,b,X)}X=H?new Uint8Array(H.exports.memory.buffer,H.malloc(X),X):new Uint8Array(X);l&&X.set(l);return X};
_.NJ=function(X){X=new ODb(new mUy([_.Ay(decodeURIComponent(X))]));if(QEy(X,2)){var H=mS(X);var l=X.pos;var b=X.arrayView;l=l===void 0?0:l;var U=H===void 0?-1:H;l=l===void 0?0:l;U=U===void 0?-1:U;if(b.totalLength&&U){U<0&&(U=b.totalLength-l);b.focus(l);if(!(l-b.arrayPos+U<=b.arrays[b.arrayIdx].length)){var K=b.arrayIdx,w=b.arrayPos;b.focus(l+U-1);w=new Uint8Array(b.arrayPos+b.arrays[b.arrayIdx].length-w);for(var d=0,B=K;B<=b.arrayIdx;B++)w.set(b.arrays[B],d),d+=b.arrays[B].length;b.arrays.splice(K,
b.arrayIdx-K+1,w);b.arrayIdx=0;b.arrayPos=0;b.focus(l)}K=b.arrays[b.arrayIdx];b=new DataView(K.buffer,K.byteOffset+l-b.arrayPos,U)}else b=new DataView(new ArrayBuffer(0));b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength);X.pos+=H;H=b}else H=void 0;H=H?aEy(H):void 0;X=QEy(X,4)?mS(X):void 0;b=Thy[X];if(typeof b==="undefined")throw X=new _.qd("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:X}),_.n2(X),X;return{entityTypeFieldNumber:X,entityType:b,entityId:H}};
_.rc=function(X,H,l){l=l===void 0?0:l;var b=new NhL;if(ZDz)X=ZDz.encode(X);else{var U=new Uint8Array(Math.ceil(X.length*1.2)),K=iDm(X,U);U.length<K&&(U=new Uint8Array(K),K=iDm(X,U));U.length>K&&(U=U.subarray(0,K));X=U}X!==void 0&&(cK(b,18),U=X.length,cK(b,U),jF(b,U),b.buf.set(X,b.pos),b.pos+=U);X=cxz[H];if(typeof X==="undefined")throw l=new _.qd("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:H}),_.n2(l),l;X!==void 0&&(cK(b,32),cK(b,X));cK(b,40);cK(b,1);H=new Uint8Array(b.buf.buffer,
b.buf.byteOffset,b.pos);return encodeURIComponent(_.Ik(H,l))};
jEy=function(X){X=X.key||X.id;if(!X)throw Error("If");return X};
JxK=function(X,H){X=X===void 0?{}:X;return rxN(X,H)};
LsO=function(X,H,l,b){if(b===void 0)return b=Object.assign({},X[H]||{}),l=(delete b[l],b),b={},Object.assign({},X,(b[H]=l,b));var U={},K={};return Object.assign({},X,(K[H]=Object.assign({},X[H],(U[l]=b,U)),K))};
YKZ=function(X,H,l,b,U){var K=X[H];if(K==null||!K[l])return X;b=Evk(K[l],b,U==="REPEATED_FIELDS_MERGE_OPTION_APPEND");U={};K={};return Object.assign({},X,(K[H]=Object.assign({},X[H],(U[l]=b,U)),K))};
_.JY=function(X,H,l){return X[H]?X[H][l]||null:null};
Axl=function(){if(IEz)return IEz();var X={};IEz=rL("PersistentEntityStoreDb",{objectStores:(X.EntityStore={addedAtVersion:1},X.EntityAssociationStore={addedAtVersion:2},X),shared:!1,upgrade:function(H,l){l(1)&&gn(E4(H,"EntityStore",{keyPath:"key"}),"entityType","entityType");l(2)&&(H=E4(H,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),gn(H,"byParentEntityKey","parentEntityKey"),gn(H,"byChildEntityKey","childEntityKey"))},
version:3});return IEz()};
XPy=function(X){return _.vQ(Axl(),X)};
LA=function(X){return window.Int32Array?new Int32Array(X):Array(X)};
loZ=function(X){return _.vQ(HLy(),X)};
oSO=function(X){return new YB("WRONG_DATA_TYPE",{encoderVersion:X})};
bLm=function(X){return X instanceof Error?new YB("UNKNOWN_ENCODE_ERROR",{originalMessage:X.message}):new YB("UNKNOWN_ENCODE_ERROR")};
UyK=function(X){return X instanceof Error?new YB("UNKNOWN_DECODE_ERROR",{originalMessage:X.message}):new YB("UNKNOWN_DECODE_ERROR")};
$ym=function(X,H){X=X instanceof YB?X:H(X);_.n2(X);throw X;};
KGy=function(X){X=(new TextEncoder).encode(X).subarray(0,16);var H=new Uint8Array(16);H.set(X);return H};
CUN=function(X){var H=RHy[X];if(H)return H;_.x2(new _.qd("Entity model not found.",{entityType:X}))};
_.IO=function(){wPL||(wPL=dyW());return wPL};
dyW=function(){var X,H,l;return _.h(function(b){if(b.nextAddress==1)return _.Ew(b,2),b.yield(_.jv(),4);if(b.nextAddress!=2){X=b.yieldResult;if(!X||!_.BQ()||typeof _.ok.BroadcastChannel==="undefined")return b.return();H=new hHm;return b.return(new AY(X,H))}l=_.Ow(b);l instanceof Error&&_.n2(l);return b.return()})};
_.Xe=function(X,H){var l;return _.h(function(b){if(b.nextAddress==1){l=X.mutations;if(!l||l.length<=0)return b.return();H&&H.dispatch(_.Of({type:"ENTITY_LOADED",payload:l}));return b.yield(FGb(l),2)}l.length=0;_.m5(b)})};
FGb=function(X){var H;return _.h(function(l){return l.nextAddress==1?l.yield(_.IO(),2):(H=l.yieldResult)?l.yield(_.HF(H,"readwrite",function(b){for(var U={},K=_.C(X),w=K.next(),d={};!w.done;d={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},w=K.next())d.mutation$jscomp$8=w.value,d.mutation$jscomp$8.entityKey&&BIZ(d.mutation$jscomp$8)&&(d.mutationEntityType$jscomp$3=(0,_.Bb.getAnyKey)(d.mutation$jscomp$8.payload),w=void 0,d.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(w=function(B){return function(){return _.qR8(b,
B.mutation$jscomp$8.payload[B.mutationEntityType$jscomp$3],B.mutationEntityType$jscomp$3)}}(d)),d.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(w=function(B){return function(){return shh(b,B.mutation$jscomp$8.entityKey)}}(d)),d.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(w=function(B){return function(){return MZL(b,B.mutation$jscomp$8.entityKey,B.mutation$jscomp$8.payload[B.mutationEntityType$jscomp$3],B.mutationEntityType$jscomp$3)}}(d)),w&&(U[d.mutation$jscomp$8.entityKey]=
U[d.mutation$jscomp$8.entityKey]?U[d.mutation$jscomp$8.entityKey].then(w):w()));
return WQ.all(Object.values(U))}),0):l.return()})};
BIZ=function(X){var H;X=(H=X.options)==null?void 0:H.persistenceOption;return X==="ENTITY_PERSISTENCE_OPTION_PERSIST"||X==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
yLL=function(X,H){var l,b;_.h(function(U){if(U.nextAddress==1)return U.yield(_.IO(),2);if(U.nextAddress!=3)return(l=U.yieldResult)?U.yield(_.HF(l,"readonly",function(K){var w={},d=Object.keys(H).map(function(B){var q=H[B]?[].concat(_.LJ(H[B])):[];return uXK(K,B,q,w)});
return WQ.all(d).then(function(){return w})}),3):U.return();
b=U.yieldResult;Object.keys(b).length>0&&X.dispatch(eHO(b));_.m5(U)})};
uXK=function(X,H,l,b){return l5(X,H,l).then(function(U){b[H]=VZy(l,U)})};
VZy=function(X,H){if(H.length!==X.length)throw Error("Lf");return H.reduce(function(l,b,U){l[X[U]]=b;return l},{})};
pPZ=function(X){var H=X.filter(function(U){var K;return(U==null?void 0:(K=U.transferEntity)==null?void 0:K.transferState)==="TRANSFER_STATE_COMPLETE"}).length,l=X.filter(function(U){var K;
return(U==null?void 0:(K=U.transferEntity)==null?void 0:K.transferState)==="TRANSFER_STATE_FAILED"}).length,b=X.filter(function(U){var K;
return(U==null?void 0:(K=U.transferEntity)==null?void 0:K.transferState)&&PUy.includes(U.transferEntity.transferState)});
if(!(H||b!=null&&b.length))return 0;H=_.foy(b)+H;X=X.length-l;return X===0?0:Math.round(H*100/X)/100};
_.foy=function(X){var H=[];H=H.concat.apply(H,_.LJ(X.filter(function(K){return K.streamEntity}).map(function(K){var w=Object.assign({},K.streamEntity),d,B=(d=K.transferEntity)==null?void 0:d.transferState;
w.streamsProgress=w.streamsProgress||[];w.streamsProgress=w.streamsProgress.map(function(q){var u=Object.assign({},q);u.numBytesDownloaded=B==="TRANSFER_STATE_COMPLETE"?q.numTotalBytes:q.numBytesDownloaded;return u});
return w}).map(function(K){return K.streamsProgress})));
var l=X=0;H=_.C(H);for(var b=H.next();!b.done;b=H.next()){var U=b.value;b=Number(U.numBytesDownloaded);U=Number(U.numTotalBytes);l+=isNaN(b)?0:b;X+=isNaN(U)?0:U}return X===0?0:Math.round(l*100/X)/100};
SRy=function(X){if(!X||!X.expirationTimestamp||!X.action)return!1;var H=(0,_.Jl)()/1E3;return Number(X.expirationTimestamp)>=H};
oH=function(X){return X&&X.expirationTimestamp&&X.action?SRy(X)&&X.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.b5=function(X){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(X||"TRANSFER_STATE_UNKNOWN")};
zHy=function(X){var H=new NhL;if(X!==void 0){var l=Math.ceil(Math.log2(X.length*4+2)/7);l=l===void 0?2:l;cK(H,10);H.submessagePosStack.push(H.pos);H.submessagePosStack.push(l);H.pos+=l;jF(H,X.length*1.2);l=iDm(X,H.buf.subarray(H.pos));H.pos+l>H.buf.length&&(jF(H,l),l=iDm(X,H.buf.subarray(H.pos)));H.pos+=l;X=H.submessagePosStack.pop();l=H.submessagePosStack.pop();for(var b=H.pos-l-X;X--;){var U=X?128:0;H.view.setUint8(l++,b&127|U);b>>=7}}H=new Uint8Array(H.buf.buffer,H.buf.byteOffset,H.pos);return(new TextDecoder("utf-8")).decode(H)};
_.U9=function(X){var H=0;X=_.C(X);for(var l=X.next(),b={};!l.done;b={transferState$jscomp$3:void 0},l=X.next()){var U=l.value,K=void 0;l=(K=U.streamEntity)!=null?K:{};K=void 0;b.transferState$jscomp$3=(K=U.transferEntity)==null?void 0:K.transferState;K=U=void 0;((U=l)==null?0:(K=U.streamsProgress)==null?0:K.length)&&l.streamsProgress.forEach(function(w){return function(d){d=Number(w.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?d.numTotalBytes:d.numBytesDownloaded);isFinite(d)&&(H+=d)}}(b))}return H};
nS8=function(X){return X.some(function(H){var l;if(!(H==null?0:(l=H.transferEntity)==null?0:l.transferState)){var b;return!(H==null?0:(b=H.policyEntity)==null?0:b.action)||H.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return PUy.includes(H.transferEntity.transferState)})};
klK=function(X,H){if(!H)return!1;if(_.P("of_pb_en_po_ks"))return!0;var l;X=(l=_.JY(X,"offlineVideoPolicy",_.rc(H,"offlineVideoPolicy")))!=null?l:void 0;return!!X&&oH(X)};
_.Dyy=function(X){var H=["TRANSFER_STATE_COMPLETE"];H=H===void 0?xyk:H;return X.filter(function(l){var b,U;return H.includes((U=(b=l.transferEntity)==null?void 0:b.transferState)!=null?U:"TRANSFER_STATE_UNKNOWN")})};
tZz=function(X,H){if(H){var l,b=(l=_.JY(X,"playbackData",_.rc(H,"playbackData")))!=null?l:null,U;l=(U=_.JY(X,"transfer",_.rc(H,"transfer")))!=null?U:null;var K;U=(K=_.JY(X,"offlineVideoStreams",_.rc(H,"offlineVideoStreams")))!=null?K:null;var w;X=(w=_.JY(X,"offlineVideoPolicy",_.rc(H,"offlineVideoPolicy")))!=null?w:null;if(b||l||U||X)return{playbackDataEntity:b,transferEntity:l,streamEntity:U,policyEntity:X}}};
_.$M=function(X){var H=X.playbackData;if(!H)return[];var l=[];H=_.C(Object.keys(H));for(var b=H.next();!b.done;b=H.next()){var U=b.value;if(!WGy(X,_.NJ(U).entityId)&&(b=tZz(X,_.NJ(U).entityId))){var K=void 0,w=void 0;U=(w=Number((K=_.JY(X,"playbackData",U))==null?void 0:K.streamDownloadTimestampSeconds))!=null?w:(0,_.Jl)();l.push({entity:b,streamDownloadTimestamp:U})}}return l.sort(function(d,B){var q=d.streamDownloadTimestamp,u=B.streamDownloadTimestamp;return u===q?d.entity.streamEntity&&!B.entity.streamEntity?
1:-1:u-q}).map(function(d){return d.entity})};
ESZ=function(X){return _.Dyy(_.$M(X))};
_.gSy=function(X){return _.$M(X).filter(function(H){var l;if(((l=H.policyEntity)==null?0:l.action)&&H.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var b;if((b=H.transferEntity)==null?0:b.transferState){var U;return PUy.includes((U=H.transferEntity)==null?void 0:U.transferState)}return!0})};
WGy=function(X,H){var l;return((l=_.JY(X,"downloadStatusEntity",_.rc(H,"downloadStatusEntity")))==null?void 0:l.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Gly=function(X){var H;if(X==null?0:(H=X.playbackDataEntity)==null?0:H.key)return _.NJ(X.playbackDataEntity.key).entityId;var l;if(X==null?0:(l=X.transferEntity)==null?0:l.key)return _.NJ(X.transferEntity.key).entityId;var b;if(X==null?0:(b=X.streamEntity)==null?0:b.key)return _.NJ(X.streamEntity.key).entityId;var U;if(X==null?0:(U=X.policyEntity)==null?0:U.key)return _.NJ(X.policyEntity.key).entityId};
ZL8=function(X){var H=new Set,l;X=(l=X.mainDownloadsListEntity)==null?void 0:l[aol];var b;if(!(X==null?0:(b=X.downloads)==null?0:b.length))return H;var U;X==null||(U=X.downloads)==null||U.forEach(function(K){(K==null?0:K.videoItem)&&H.add(K.videoItem)});
return H};
KT=function(X,H){if(H){var l=_.JY(X,"mainVideoEntity",_.rc(H,"mainVideoEntity")),b=_.JY(X,"downloadStatusEntity",_.rc(H,"downloadStatusEntity")),U=_.JY(X,"ytMainChannelEntity",_.rc(H,"ytMainChannelEntity")),K={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};X=tZz(X,H);b=(b==null?void 0:b.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.P("woffle_render_failed_download_state_ks")&&(b==null?void 0:b.downloadState)==="DOWNLOAD_STATE_FAILED";!X&&b&&(X=K);if(X&&l&&
U)return Object.assign({},{videoEntity:l,channelEntity:U},X)}};
vSy=function(X,H){return iLb(X,H)==="TRANSFER_STATE_COMPLETE"&&klK(X,H)};
OLy=function(X,H){if(!H)return!1;var l;X=(l=_.JY(X,"playbackData",_.rc(H,"playbackData")))!=null?l:void 0;return!!X&&!!X.playerResponseJson};
iLb=function(X,H){if(!H)return"TRANSFER_STATE_UNKNOWN";var l=_.JY(X,"transfer",_.rc(H,"transfer"));if(l){var b;return(b=l.transferState)!=null?b:"TRANSFER_STATE_UNKNOWN"}l=_.JY(X,"offlineOrchestrationActionWrapperEntity",_.rc(H,"offlineOrchestrationActionWrapperEntity"));X=_.JY(X,"mainVideoEntity",_.rc(H,"mainVideoEntity"));return l||X?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
myz=function(X,H){if(!H)return"TRANSFER_STATE_UNKNOWN";if(X=_.JY(X,"transfer",_.rc(H,"transfer"))){var l;return(l=X.transferState)!=null?l:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Qhy=function(X,H){return H&&(X=_.JY(X,"videoPlaybackPositionEntity",_.rc(H,"videoPlaybackPositionEntity")),X==null?0:X.lastPlaybackPositionSeconds)?Number(X.lastPlaybackPositionSeconds):0};
NIZ=function(X,H){return TIO(X).some(function(l){var b;return(l==null?void 0:(b=l.mainPlaylistEntity)==null?void 0:b.playlistId)===H})};
jhz=function(X,H,l){var b=cLW(X,H);if(!b.length)return[];H=[];b=_.C(b);for(var U=b.next();!U.done;U=b.next()){U=U.value;var K=KT(X,U);l&&iLb(X,U)!=="TRANSFER_STATE_COMPLETE"||K&&H.push(K)}return H};
cLW=function(X,H){if(!H)return[];var l=_.rc(H,"mainPlaylistEntity"),b;H=(b=X.mainPlaylistEntity)==null?void 0:b[l];b=[];if(H==null||!H.videos)return b;H=_.C(H.videos);for(l=H.next();!l.done;l=H.next()){l=l.value;var U=void 0,K=void 0,w=void 0,d=(U=X)==null?void 0:(K=U.mainPlaylistVideoEntity)==null?void 0:(w=K[l])==null?void 0:w.video;d&&(l=_.NJ(d).entityId)&&b.push(l)}return b};
rLy=function(X,H){if(H){var l=_.JY(X,"mainPlaylistEntity",_.rc(H,"mainPlaylistEntity")),b=_.JY(X,"mainPlaylistDownloadStateEntity",_.rc(H,"mainPlaylistDownloadStateEntity"));X=_.JY(X,"ytMainChannelEntity",_.rc(H,"ytMainChannelEntity"));if(b&&l)return Object.assign({},{mainPlaylistEntity:l,mainPlaylistDownloadStateEntity:b},!!X&&{channelEntity:X})}};
TIO=function(X){return JLy(X).sort(function(H,l){return l.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return H.downloadedPlaylistEntities})};
JLy=function(X){var H=X.mainPlaylistDownloadStateEntity,l=[];if(!H)return l;for(var b=_.C(Object.keys(H)),U=b.next();!U.done;U=b.next()){var K=U.value;U=rLy(X,_.NJ(K).entityId);var w=void 0;K=Number((w=H[K])==null?void 0:w.addedTimestampMillis);w=isNaN(K)?(0,_.Jl)():K;U!==void 0&&l.push({downloadedPlaylistEntities:U,addedTimestampMillis:w})}return l};
LGL=function(X){var H,l=(H=X.mainPlaylistVideoEntity)!=null?H:{};return new Set(TIO(X).reduce(function(b,U){b=b===void 0?[]:b;var K,w;U==null||(K=U.mainPlaylistEntity)==null||(w=K.videos)==null||w.forEach(function(d){var B;(d=(B=l[d])==null?void 0:B.video)&&b.push(d)});
return b},[]))};
YRy=function(X){return"downloadedMusicPlaylistEntities"in X};
IoK=function(X){return"mainPlaylistEntity"in X&&"mainPlaylistDownloadStateEntity"in X};
ALk=function(X){return"videoEntity"in X&&"channelEntity"in X};
XOK=function(X){var H=X.musicPlaylistDownloadMetadataEntity,l=[];if(!H)return l;for(var b=_.C(Object.keys(H)),U=b.next();!U.done;U=b.next()){U=U.value;a:{var K=X,w=_.NJ(U).entityId;if(w){var d=_.JY(K,"musicPlaylist",_.rc(w,"musicPlaylist"));K=_.JY(K,"musicPlaylistDownloadMetadataEntity",_.rc(w,"musicPlaylistDownloadMetadataEntity"));if(d&&K){d={musicPlaylistEntity:d,musicPlaylistDownloadStateEntity:K};break a}}d=void 0}K=void 0;U=Number((K=H[U])==null?void 0:K.addedTimestampMillis);U=isNaN(U)?(0,_.Jl)():
U;d!==void 0&&l.push({downloadedMusicPlaylistEntities:d,addedTimestampMillis:U})}return l};
H0y=function(X){var H=new Set;X=_.C(X);for(var l=X.next();!l.done;l=X.next())if(l=l.value,"musicPlaylistEntity"in l&&"musicPlaylistDownloadStateEntity"in l){l=_.C(l.musicPlaylistEntity.tracks);for(var b=l.next();!b.done;b=l.next())H.add(b.value)}return H};
l$l=function(X,H){if(H){var l=_.JY(X,"musicTrack",_.rc(H,"musicTrack")),b=_.JY(X,"musicArtist",_.rc(H,"musicArtist"))||{};if((X=tZz(X,H))&&l&&b)return Object.assign({},{musicTrackEntity:l,musicArtistEntity:b},X)}};
oWN=function(X){var H=X.musicTrackDownloadMetadataEntity,l=[];if(!H)return[];H=_.C(Object.keys(H));for(var b=H.next();!b.done;b=H.next()){var U=b.value;b=l$l(X,_.NJ(U).entityId);var K=void 0;U=Number((K=_.JY(X,"musicTrackDownloadMetadataEntity",U))==null?void 0:K.addedTimestampMillis);K=isNaN(U)?(0,_.Jl)():U;b!==void 0&&l.push({downloadedMusicEntities:b,addedTimestampMillis:K})}return l};
$jh=function(X,H){if(!H)return[];if(Object.values(b0b).includes(H))return Ujy(X,H);H=_.rc(H,"musicPlaylist");var l;X=(l=X.musicPlaylist)==null?void 0:l[H];l=[];if(X==null||!X.tracks)return l;X=_.C(X.tracks);for(H=X.next();!H.done;H=X.next())(H=_.NJ(H.value).entityId)&&l.push(H);return l};
Ujy=function(X,H){var l=new Set,b=XOK(X).map(function(K){return K.downloadedMusicPlaylistEntities});
b=H0y(b);b=_.C(b);for(var U=b.next();!U.done;U=b.next())(U=_.NJ(U.value).entityId)&&l.add(U);return KjW(X).downloadedMusicEntities.filter(function(K){var w;if((w=K.musicTrackEntity)!=null&&w.videoId){K=K.musicTrackEntity;if(w=H==="PPOM"?!0:!l.has(K.videoId))b:switch(K=K.musicVideoType,H){case "PPSE":w=K==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:w=K!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}K=w}else K=!1;return K}).map(function(K){var w;
return(w=K.musicTrackEntity)==null?void 0:w.videoId})};
KjW=function(X){var H=oWN(X).sort(function(l,b){return b.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return"downloadedMusicEntities"in l?l.downloadedMusicEntities:YRy(l)?l.downloadedMusicPlaylistEntities:{}});
X=XOK(X).sort(function(l,b){return b.addedTimestampMillis-l.addedTimestampMillis}).map(function(l){return"downloadedMusicEntities"in l?l.downloadedMusicEntities:YRy(l)?l.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:H,downloadedMusicPlaylistEntities:X}};
CfL=function(X,H){H=_.gx("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?$jh(X,H):cLW(X,H);if(!H.length)return"TRANSFER_STATE_UNKNOWN";H=H.map(function(l){return myz(X,l)});
return Rgl(H)};
Rgl=function(X){var H=new Set(X);if(H.has("TRANSFER_STATE_FAILED")&&H.size===1)return"TRANSFER_STATE_FAILED";H.delete("TRANSFER_STATE_FAILED");if(H.has("TRANSFER_STATE_UNKNOWN")&&H.size===1)return"TRANSFER_STATE_PRE_TRANSFER";H.delete("TRANSFER_STATE_UNKNOWN");if(H.has("TRANSFER_STATE_PRE_TRANSFER")&&H.size===1||H.size===0)return"TRANSFER_STATE_PRE_TRANSFER";X=H.has("TRANSFER_STATE_TRANSFERRING");H=H.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return X||H?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
RH=function(X){var H=X.mainVideoDownloadStateEntity,l=[];if(!H)return[];H=_.C(Object.keys(H));for(var b=H.next();!b.done;b=H.next()){var U=b.value;if(!WGy(X,_.NJ(U).entityId)){b=KT(X,_.NJ(U).entityId);var K=void 0,w=void 0;U=(w=Number((K=_.JY(X,"mainVideoDownloadStateEntity",U))==null?void 0:K.addedTimestampMillis))!=null?w:(0,_.Jl)();b!==void 0&&l.push({downloadedVideoEntities:b,addedTimestampMillis:U})}}return l};
wOh=function(X){return RH(X).sort(function(H,l){return l.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return H.downloadedVideoEntities})};
_.hgm=function(X){var H=LGL(X),l=_.CT(X),b=ZL8(X),U=RH(X).filter(function(w){var d,B;if((w==null?void 0:(d=w.downloadedVideoEntities)==null?void 0:(B=d.transferEntity)==null?void 0:B.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var q,u;w=w==null?void 0:(q=w.downloadedVideoEntities)==null?void 0:(u=q.videoEntity)==null?void 0:u.key;return _.P("kevlar_use_library_entity")?w&&(b.has(w)||l[w]):w&&!H.has(w)}),K=JLy(X).filter(function(w){return CfL(X,w.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.LJ(U),_.LJ(K)).sort(function(w,d){return d.addedTimestampMillis-w.addedTimestampMillis}).map(function(w){return dj8(w)})};
FjZ=function(X,H){if(H&&klK(X,H)){var l,b,U=(b=(l=_.JY(X,"playbackData",_.rc(H,"playbackData")))!=null?l:void 0)==null?void 0:b.playerResponseJson;if(U){try{var K=JSON.parse(U);var w=_.JY(X,"transfer",_.rc(H,"transfer")),d=Qhy(X,H);d&&(K=Object.assign({},K,{playerConfig:Object.assign({},K.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+d*1E3}}})}));K.cotn=w==null?void 0:w.cotn}catch(B){}return K}}};
_.qvk=function(X){var H,l,b;X=(b=(l=((H=X.downloadsPageViewConfigurationEntity)!=null?H:{})[_.wR])==null?void 0:l.smartDownloadsOptInBannerVisibility)!=null?b:{};var U;return(U=_.f(X,B2Z))!=null?U:{}};
_.CT=function(X){var H,l,b;X=(b=(l=((H=X.mainDownloadsListEntity)!=null?H:{})[_.sIz])==null?void 0:l.downloads)!=null?b:[];H={};l=_.C(X);for(b=l.next();!b.done;b=l.next())X=void 0,H[(X=b.value.videoItem)!=null?X:""]=!0;return H};
MnO=function(X){var H=_.CT(X);if(Object.keys(H).length===0)return!1;var l=X.mainVideoEntity;if(!l)return!0;l=_.C(Object.keys(l));for(var b=l.next();!b.done;b=l.next()){b=b.value;var U=_.NJ(b).entityId;if(H[b]&&!WGy(X,U))return!1}return!0};
_.dR=function(X){var H=_.CT(X);return RH(X).sort(function(l,b){return l.addedTimestampMillis-b.addedTimestampMillis}).map(function(l){return l.downloadedVideoEntities}).filter(function(l){var b;
return(l=l==null?void 0:(b=l.videoEntity)==null?void 0:b.key)&&!!H[l]})};
_.egL=function(X){var H,l,b;X=(b=(l=((H=X.downloadsPageViewConfigurationEntity)!=null?H:{})[_.wR])==null?void 0:l.downloadsUpsellBannerVisibility)!=null?b:{};var U;return(U=_.f(X,ujb))!=null?U:{}};
dj8=function(X){return"downloadedVideoEntities"in X?X.downloadedVideoEntities:"downloadedPlaylistEntities"in X?X.downloadedPlaylistEntities:{}};
yWz=function(X){var H=_.CT(X),l=LGL(X),b=RH(X).filter(function(U){var K,w;return(U=U==null?void 0:(K=U.downloadedVideoEntities)==null?void 0:(w=K.videoEntity)==null?void 0:w.key)&&!H[U]&&!l.has(U)});
X=JLy(X);return[].concat(_.LJ(b),_.LJ(X)).sort(function(U,K){return K.addedTimestampMillis-U.addedTimestampMillis}).map(function(U){return dj8(U)})};
_.h0=function(X){if(!_.P("kevlar_use_library_entity"))return yWz(X);var H=RH(X).filter(function(b){var U,K;if(U=b=b==null?void 0:(U=b.downloadedVideoEntities)==null?void 0:(K=U.videoEntity)==null?void 0:K.key){var w,d,B;U=((d=(w=X.mainDownloadsListEntity)==null?void 0:w[aol])==null?0:(B=d.downloads)==null?0:B.length)?ZL8(X).has(b):!1}return U}),l=JLy(X);
return[].concat(_.LJ(H),_.LJ(l)).sort(function(b,U){return U.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return dj8(b)})};
VnW=function(X){var H=_.CT(X),l=LGL(X);return wOh(X).filter(function(b){var U;return(b=b==null?void 0:(U=b.videoEntity)==null?void 0:U.key)&&!H[b]&&!l.has(b)})};
PfN=function(X){if(!_.P("kevlar_use_library_entity"))return VnW(X);var H=_.CT(X),l=ZL8(X);return wOh(X).filter(function(b){var U;return(b=b==null?void 0:(U=b.videoEntity)==null?void 0:U.key)&&!H[b]&&l.has(b)})};
f$8=function(X,H){H=_.rc(H,"settingEntity");var l,b,U;return!!((U=(b=((l=X.settingEntity)!=null?l:{})[H])==null?void 0:b.settingOptionValue)!=null?U:{}).boolValue};
_.Fe=function(X){var H=_.dR(X);if(nS8(H))return 0;var l=[];H=_.C(H);for(var b=H.next();!b.done;b=H.next()){b=b.value;var U=void 0,K=void 0;if((U=b)==null?0:(K=U.videoEntity)==null?0:K.key)U=_.NJ(b.videoEntity.key).entityId,b=X,U=_.rc(U,"mainVideoDownloadStateEntity"),b=_.JY(b,"mainVideoDownloadStateEntity",U),(b=Number(b==null?void 0:b.addedTimestampMillis))&&l.push(b)}return Math.max.apply(Math,_.LJ(l))};
_.BF=function(X){return X.ui.richGridMiniMode};
_.qo=function(X){return X.ui.richGridItemsPerRow};
_.pOW=function(X){return X.ui.richGridSlimItemsPerRow};
_.Svh=function(X){return X.ui.guideIsExpanded};
_.s9=function(X){return X.ui.miniplayerIsActive};
zgN=function(X){return X.ui.singleOptionSurveyIsActive};
_.Mo=function(X){var H;return((H=X.ui)==null?void 0:H.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.nWN=function(X){return _.Mo(X)==="WEB_PAGE_TYPE_WATCH"};
_.kCb=function(X){return _.Mo(X)==="WEB_PAGE_TYPE_SHORTS"};
_.xjZ=function(X){return X.ui.inlinePreviewIsActive};
_.DjN=function(X){return X.ui.inlinePreviewIsEnabled};
_.tn8=function(X){return X.ui.miniplayerPlaybackState};
_.u5=function(X){return X.ui.isOnline};
_.Wjh=function(X){return X.ui.frostedGlassMode};
_.e0=function(X,H){return iLb(X.entities,H)};
_.yR=function(X,H){return CfL(X.entities,H)};
EWh=function(X,H){var l;if(H){var b;X=(b=_.JY(X.entities,"offlineVideoPolicy",_.rc(H,"offlineVideoPolicy")))==null?void 0:b.action}else X=void 0;return(l=X)!=null?l:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
gWy=function(X,H){var l;H?(X=_.JY(X.entities,"offlineVideoPolicy",_.rc(H,"offlineVideoPolicy")),X=Number(X==null?void 0:X.expirationTimestamp)):X=void 0;return(l=X)!=null?l:0};
_.GCN=function(X){return _.$M(X.entities).length};
a$W=function(X,H){return KT(X.entities,H)};
Z0y=function(X,H){return rLy(X.entities,H)};
VR=function(X,H){return(X=KT(X.entities,H))?_.foy([X]):0};
_.i0K=function(X,H){var l=_.gx("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(l){var b=X.entities;var U=$jh(b,H);if(U.length){var K=[];U=_.C(U);for(var w=U.next();!w.done;w=U.next())(w=l$l(b,w.value))&&K.push(w);b=K}else b=[]}else b=jhz(X.entities,H);var d;if(l){var B=X.entities;H?(H=_.rc(H,"musicPlaylist"),B=(d=B.musicPlaylist)==null?void 0:d[H],d=B!=null&&B.tracks?B.tracks.length:0):d=0}else d=X.entities,H?(H=_.rc(H,"mainPlaylistEntity"),d=(B=d.mainPlaylistEntity)==null?void 0:B[H],d=d!=null&&d.videos?
d.videos.length:0):d=0;return b.length!==d?0:b?pPZ(b):0};
_.vWL=function(X){return X.download.isLeaderTab};
_.O0y=function(X,H,l){if(!H&&l){var b=X.entities;if(l){var U=zHy(l),K,w;H=(w=(K=_.JY(b,"offlineabilityEntity",_.rc(U,"offlineabilityEntity")))==null?void 0:K.addToOfflineButtonState)!=null?w:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else H="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else K=X.entities,H?(w=zHy(H),H=(U=(b=_.JY(K,"offlineabilityEntity",_.rc(w,"offlineabilityEntity")))==null?void 0:b.addToOfflineButtonState)!=null?U:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):H="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return H};
mjy=function(X,H){X=X.entities;if(H){H=zHy(H);var l,b;H=(b=(l=_.JY(X,"offlineabilityEntity",_.rc(H,"offlineabilityEntity")))==null?void 0:l.addToOfflineButtonState)!=null?b:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else H="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return H};
_.QIm=function(X){var H=X.entities;X=_.u5(X);var l=f$8(H,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.P("kevlar_modern_downloads_page")&&l)var b=!1;else{var U,K;H=(K=(U=((b=H.downloadsPageViewConfigurationEntity)!=null?b:{})[_.wR])==null?void 0:U.smartDownloadsOptInBannerVisibility)!=null?K:{};b=X?!!H.visibleWithConnection:!!H.visibleWithoutConnection}return b};
_.T28=function(X){return f$8(X.entities,"SMART_DOWNLOADS_ENABLED")};
_.N2m=function(X){return MnO(X.entities)};
cWZ=function(X){return _.dR(X.entities).every(function(H){var l;return(H==null?void 0:(l=H.transferEntity)==null?void 0:l.transferState)&&!PUy.includes(H.transferEntity.transferState)})};
_.jIZ=function(X){var H,l,b,U=(b=(l=((H=X.entities.downloadsPageViewConfigurationEntity)!=null?H:{})[_.wR])==null?void 0:l.downloadsUpsellBannerVisibility)!=null?b:{};return _.u5(X)?!!U.visibleWithConnection:!!U.visibleWithoutConnection};
_.rWm=function(X,H){return WGy(X.entities,H)};
JWW=function(X,H){if(H){var l,b;X=(b=(l=_.JY(X.entities,"downloadStatusEntity",_.rc(H,"downloadStatusEntity")))==null?void 0:l.downloadState)!=null?b:"DOWNLOAD_STATE_UNKNOWN"}else X="DOWNLOAD_STATE_UNKNOWN";return X};
PF=function(X,H){return Qhy(X.entities,H)};
AWO=function(X){X=Ljl(X);var H=X.hours===void 0?0:X.hours,l=X.minutes===void 0?0:X.minutes,b=X.seconds===void 0?0:X.seconds,U=H>0;X=[];U&&(H=Yvy(H),X.push(H));H=U;H=H===void 0?!1:H;l=(["af","be","lt"].includes(fT)||H)&&l<10?I$y().format(l):(new Intl.NumberFormat("en-u-nu-latn")).format(l);X.push(l);l=I$y().format(b);X.push(l);l=":";"da fi id si sr sr-Latn".split(" ").includes(fT)&&(l=".");return X.join(l)};
_.k4N=function(X){X=Ljl(X);var H=X.hours===void 0?0:X.hours,l=X.minutes===void 0?0:X.minutes,b=X.seconds===void 0?0:X.seconds;X=[];if(H>0){var U=Xmy().format({hours:H});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(fT)||H>9999)U=U.replace(H.toString(),Yvy(H)),fT==="km"&&(U=U.replace(".",","));X.push(U)}l>0&&X.push(Xmy().format({minutes:l}));b>0&&X.push(Xmy().format({seconds:b}));H="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");l=fT=="am"?"{0}\u1363 ":fT=="fa"?"{0}\u060c\u200f ":
fT=="my"?"{0} - ":fT=="th"?"{0} ":fT=="ur"?"{0}\u060c ":fT=="ar"||fT=="ar-XB"?"{0} \u0648":fT=="ja"||fT=="zh-CN"||fT=="zh-HK"||fT=="zh-TW"?"{0}\u3001":"{0}, ";b=fT=="am"?"\u1363 ":fT=="fa"?"\u060c\u200f ":fT=="my"?" - ":fT=="th"?" ":fT=="ur"?"\u060c ":fT=="ar"||fT=="ar-XB"?" \u0648":fT=="ja"||fT=="zh-CN"||fT=="zh-HK"||fT=="zh-TW"?"\u3001":", ";U=fT=="am"?" \u12a5\u1293 {0}":fT=="as"?" \u0986\u09f0\u09c1 {0}":fT=="az"?" v\u0259 {0}":fT=="bn"?" \u098f\u09ac\u0982 {0}":fT=="cs"?" a\u00a0{0}":fT=="de"?
" und {0}":fT=="el"?" \u03ba\u03b1\u03b9 {0}":fT=="eu"?" eta {0}":fT=="fa"?"\u060c \u0648 {0}":fT=="fil"?", at {0}":fT=="gu"?" \u0a85\u0aa8\u0ac7 {0}":fT=="hi"?", \u0914\u0930 {0}":fT=="hu"?" \u00e9s {0}":fT=="hy"?" \u0587 {0}":fT=="id"?", dan {0}":fT=="iw"?" \u05d5-{0}":fT=="ja"?"\u3001{0}":fT=="ka"?" \u10d3\u10d0 {0}":fT=="km"?" \u1793\u17b7\u1784 {0}":fT=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":fT=="ko"?" \ubc0f {0}":fT=="ky"?" \u0436\u0430\u043d\u0430 {0}":fT=="lt"?" ir {0}":fT=="lv"?" un {0}":
fT=="mr"?" \u0906\u0923\u093f {0}":fT=="ms"?" dan {0}":fT=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":fT=="ne"?" \u0930 {0}":fT=="or"?", \u0b13 {0}":fT=="pa"?" \u0a05\u0a24\u0a47 {0}":fT=="ro"?" \u0219i {0}":fT=="si"?", \u0dc3\u0dc4 {0}":fT=="sk"?" a {0}":fT=="sl"?" in {0}":fT=="sq"?" dhe {0}":fT=="sv"?" och {0}":fT=="sw"?" na {0}":fT=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":fT=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":fT=="th"?" \u0e41\u0e25\u0e30{0}":fT=="tr"?" ve {0}":fT=="ur"?
"\u060c \u0627\u0648\u0631 {0}":fT=="uz"?" va {0}":fT=="vi"?" v\u00e0 {0}":fT=="zh-HK"?"\u53ca{0}":fT=="zu"?", ne-{0}":fT=="af"||fT=="nl"?" en {0}":fT=="ar"||fT=="ar-XB"?" \u0648{0}":fT=="be"||fT=="uk"?" \u0456 {0}":fT=="en-GB"||fT=="en-IN"?" and {0}":fT=="en"||fT=="en-XA"?", and {0}":fT=="et"||fT=="fi"?" ja {0}":fT=="fr"||fT=="fr-CA"?" et {0}":fT=="zh-CN"||fT=="zh-TW"?"\u548c{0}":fT=="da"||fT=="is"||fT=="no"?" og {0}":fT=="es"||fT=="es-419"||fT=="es-US"?" y {0}":fT=="bg"||fT=="mk"||fT=="ru"||fT==
"sr"?" \u0438 {0}":fT=="gl"||fT=="it"||fT=="pt-BR"||fT=="pt-PT"?" e {0}":fT=="kk"||fT=="lo"||fT=="ml"||fT=="mn"?", {0}":" i {0}";var K=fT=="am"?"{0} \u12a5\u1293 {1}":fT=="as"?"{0} \u0986\u09f0\u09c1 {1}":fT=="az"?"{0} v\u0259 {1}":fT=="bn"?"{0} \u098f\u09ac\u0982 {1}":fT=="de"?"{0} und {1}":fT=="el"?"{0} \u03ba\u03b1\u03b9 {1}":fT=="eu"?"{0} eta {1}":fT=="fa"?"{0} \u0648 {1}":fT=="fil"?"{0} at {1}":fT=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":fT=="hi"?"{0} \u0914\u0930 {1}":fT=="hu"?"{0} \u00e9s {1}":fT==
"hy"?"{0} \u0587 {1}":fT=="iw"?"{0} \u05d5-{1}":fT=="ja"?"{0}\u3001{1}":fT=="ka"?"{0} \u10d3\u10d0 {1}":fT=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":fT=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":fT=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":fT=="ko"?"{0} \ubc0f {1}":fT=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":fT=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":fT=="lt"?"{0} ir {1}":fT=="lv"?"{0} un {1}":fT=="mr"?"{0} \u0906\u0923\u093f {1}":fT=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":fT=="ne"?"{0} \u0930 {1}":
fT=="or"?"{0} \u0b13 {1}":fT=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":fT=="ro"?"{0} \u0219i {1}":fT=="si"?"{0} \u0dc3\u0dc4 {1}":fT=="sl"?"{0} in {1}":fT=="sq"?"{0} dhe {1}":fT=="sv"?"{0} och {1}":fT=="sw"?"{0} na {1}":fT=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":fT=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":fT=="th"?"{0}\u0e41\u0e25\u0e30{1}":fT=="tr"?"{0} ve {1}":fT=="ur"?"{0} \u0627\u0648\u0631 {1}":fT=="uz"?"{0} va {1}":fT=="vi"?"{0} v\u00e0 {1}":fT=="zh-HK"?"{0}\u53ca{1}":fT==
"zu"?"{0} ne-{1}":fT=="af"||fT=="nl"?"{0} en {1}":fT=="ar"||fT=="ar-XB"?"{0} \u0648{1}":fT=="be"||fT=="uk"?"{0} \u0456 {1}":fT=="cs"||fT=="sk"?"{0} a\u00a0{1}":fT=="et"||fT=="fi"?"{0} ja {1}":fT=="fr"||fT=="fr-CA"?"{0} et {1}":fT=="id"||fT=="ms"?"{0} dan {1}":fT=="ml"||fT=="mn"?"{0}, {1}":fT=="zh-CN"||fT=="zh-TW"?"{0}\u548c{1}":fT=="da"||fT=="is"||fT=="no"?"{0} og {1}":fT=="es"||fT=="es-419"||fT=="es-US"?"{0} y {1}":fT=="bg"||fT=="mk"||fT=="ru"||fT=="sr"?"{0} \u0438 {1}":fT=="en"||fT=="en-GB"||fT==
"en-IN"||fT=="en-XA"?"{0} and {1}":fT=="gl"||fT=="it"||fT=="pt-BR"||fT=="pt-PT"?"{0} e {1}":"{0} i {1}";fT==="sq"?(U=U.replace("dhe","e"),K=K.replace("dhe","e")):fT==="th"?(b=b.replace("{0}"," {0}"),K=K.replace("{0}","{0} "),K=K.replace("{1}"," {1}")):fT==="ne"?b=",":fT==="zh-CN"?b="":H.includes(fT)&&(b=" ");return X.length<2?X.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(fT)?
X.length===2?K.replace("{0}",X[0]).replace("{1}",X[1]):l.replace("{0}",X[0])+X.slice(1,-1).join(b)+U.replace("{0}",X[X.length-1]):X.join(b)};
Ljl=function(X){var H=X.hours||0,l=X.minutes||0,b=X.seconds||0;H=b+l*60+H*3600+(X.days||0)*86400+(X.weeks||0)*604800+(X.months||0)*2629800+(X.years||0)*31557600;if(H<=0)return{hours:0,minutes:0,seconds:0};X=H;H=Math.floor(X/3600);X%=3600;l=Math.floor(X/60);b=Math.floor(X%60);return{hours:H,minutes:l,seconds:b}};
Yvy=function(X){X=(new Intl.NumberFormat("en-u-nu-latn")).format(X);var H=["fr"],l="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(fT)?X.replace(",","\u00a0"):H.includes(fT)?X.replace(",","\u202f"):l.includes(fT)?X.replace(",","."):X};
I$y=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
Xmy=function(){xPN||(DPL=tbh,xPN=new WwL);return xPN};
EXO=function(X){try{return(new _.pT(5)).format(X)}catch(H){}};
S0=function(X){return{thumbnailOverlayDownloadingRenderer:{state:X}}};
gXl=function(){var X=_.XS("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Zi(X),icon:{iconType:"PLAY_ALL"}}}};
G4m=function(X){X=_.zc(X,2);return fT!=="ru"&&fT!=="es_419"&&fT!=="es-419"&&fT!=="es"&&fT!=="es_US"&&fT!=="es-US"&&fT!=="fr"&&fT!=="pl"&&fT!=="it"&&fT!=="nl"&&fT!=="uk"&&fT!=="fr_CA"&&fT!=="fr-CA"||X===""?X:X[0].toLocaleUpperCase()+X.substring(1)};
ZVy=function(X){return function(H){var l=X(),b=_.zc(H,l.dateFormat);H=_.zc(H,l.timeFormat);var U=am8.DATETIMEFORMATS[l.joinerStyle];U=U.replace(/'(?!')/g,"");U=U.replace("{0}",H);U=U.replace("{1}",b);return l.capitalize(U)}};
iVN=function(X){return X?typeof X.seconds==="string"&&(X.nanos===void 0||typeof X.nanos==="number"):!1};
vXZ=function(X){return new Date(Number(X.seconds)*1E3+(X.nanos||0)*1E-6)};
_.zc=function(X,H){if(typeof X.getTime==="function")X={date:X};else if(iVN(X))X={date:vXZ(X)};else if(typeof iVN(X.timestamp)&&typeof X.i18nInternalSecondsEastOfUtc==="number")X={date:vXZ(X.timestamp),timeZone:nT(-X.i18nInternalSecondsEastOfUtc/60)};else throw Error("Mf`"+JSON.stringify(X));var l=X;X=l.date;l=l.timeZone;H=OVb(H).format(X,l);fT==="zh-TW"&&(X=l?Number(OVb("H").format(X,l)):X.getHours(),H=X<5?H.replace("\u4e0a\u5348","\u51cc\u6668"):X<8?H.replace("\u4e0a\u5348","\u65e9\u4e0a"):X<12?
H.replace("\u4e0a\u5348","\u4e0a\u5348"):X<13?H.replace("\u4e0b\u5348","\u4e2d\u5348"):X<19?H.replace("\u4e0b\u5348","\u4e0b\u5348"):H.replace("\u4e0b\u5348","\u665a\u4e0a"));return H};
OVb=function(X){if(mPN.has(X))return mPN.get(X);var H=Q2y(X);H=T3O(H);N3k!==!0&&(N3k=!0);cTN=!0;cTN=!1;H=new kM(H,am8);mPN.set(X,H);return H};
Q2y=function(X){return(new kM(X,am8)).patternParts_.map(function(H){return H.type===0?"'"+H.text+"'":H.text}).join("")};
T3O=function(X){return fT==="en"||fT==="es_US"||fT==="es-US"?X:X.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(H,l,b){return"H".repeat(l.length)+b})};
ATh=function(X,H){j2h||(DPL=tbh,j2h=new rTZ);var l=j2h;a:if(X=JTb(X),H=JTb(H||new Date),X>H)l=X.getTime()-H.getTime()>6048E5?_.zc(X,1):Lwh(X);else{for(var b=0;YIL(X,12*(b+1))<H;)++b;if(b>0)l=l.format(-b,0);else{for(b=0;YIL(X,b+1)<H;)++b;if(b>0)l=l.format(-b,2);else{X=H.getTime()-X.getTime();H=_.C(ImW);for(b=H.next();!b.done;b=H.next()){b=b.value;var U=b.unit,K=Math.floor(X/b.unitDuration);if(K>=(b.threshold===void 0?1:b.threshold)){l=l.format(-K,U);break a}}l=l.format(-0,7)}}}return l};
JTb=function(X){if(typeof X.getTime==="function")return X;if(iVN(X))return vXZ(X);throw Error("Nf`"+JSON.stringify(X));};
YIL=function(X,H){for(var l=0,b;;++l)if(b=new Date(X.getFullYear(),X.getMonth()+H,X.getDate()-l,X.getHours(),X.getMinutes(),X.getSeconds()),b.getMonth()===(X.getMonth()+H)%12)return b};
_.xM=function(X){return{runs:[{text:X}]}};
_.D8=function(X){if(X&&X.simpleText)return X.simpleText;var H="";if(X&&X.runs)for(var l=0;l<X.runs.length;l++)X.runs[l].text&&(H+=X.runs[l].text);return H};
Hn8=function(X,H,l,b){return X.videoEntity&&!X.policyEntity&&l!=="DOWNLOAD_STATE_FAILED"?[S0("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:oH(X.policyEntity)&&H!=="TRANSFER_STATE_FAILED"&&H!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?H==="TRANSFER_STATE_PAUSED_BY_USER"?[S0("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.b5(H)?[S0("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:X.videoEntity.lengthSeconds?XUm(X.videoEntity.lengthSeconds,b):[]:
[S0("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
XUm=function(X,H){var l=[{thumbnailOverlayTimeStatusRenderer:{text:_.Zi(AWO({seconds:X})),style:"DEFAULT"}}];H&&(X=H<=0||X<=0?0:H>=X?100:Math.ceil(H*100/X),X>0&&l.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:X}}));return l};
lZy=function(X,H,l,b,U){if(H==="TRANSFER_STATE_UNKNOWN"||!X)return{};if(_.b5(H)||H==="TRANSFER_STATE_PRE_TRANSFER")var K=[S0("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var w,d;if(H==="TRANSFER_STATE_COMPLETE"&&((w=X.mainPlaylistEntity)==null?0:(d=w.videos)==null?0:d.length)){var B;X=(K=X.mainPlaylistEntity)==null?void 0:(B=K.videos)==null?void 0:B.length;K=(K=EXO(X))?{thumbnailOverlayBottomPanelRenderer:{text:_.Zi(K),icon:{iconType:"PLAYLISTS"}}}:void 0;K=[gXl(),Object.assign({},
K!=null?K:{})]}else K=[]}a:if(H==="TRANSFER_STATE_PRE_TRANSFER")l=iH(_.XS("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(H==="TRANSFER_STATE_TRANSFER_IN_QUEUE")l=iH(_.XS("WAITING_TO_DOWNLOAD"));else if(_.b5(H))l=Math.floor(l*100).toString(),l=iH(_.XS("DOWNLOADING_PERCENT",{percent:l},"Downloading... "+l+"%"));else{if(b&&(_.P("playlist_is_offline_selector_killswitch")&&(U=_.jJ().resolve(_.iM).isNetworkAvailable()),U)){l=Wsm(_.XS("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
DUy(b));break a}l=void 0}H=H==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.XS("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},K.length?{thumbnailOverlays:K}:{},l?{viewPlaylistText:l}:{viewPlaylistText:_.xM("")},H.length?{badges:H}:{})};
oGy=function(X,H,l,b,U,K){if(H==="TRANSFER_STATE_UNKNOWN"||!X)return{};if(b==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var w=Hn8(X,H,b);if(X.videoEntity&&!X.policyEntity&&b!=="DOWNLOAD_STATE_FAILED"){var d=_.XS("WAITING_TO_DOWNLOAD");if(d)return{shortViewCountText:_.xM(d),publishedTimeText:void 0,thumbnailOverlays:w}}if(!oH(X.policyEntity)){K=X.policyEntity&&!SRy(X.policyEntity)?_.XS("DOWNLOAD_EXPIRED",{},"Download expired"):
_.XS("TRANSFER_FAILED",{},"Download failed");var B;if((B=X.policyEntity)==null?0:B.shortMessageForDisabledAction)K=X.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:iH(K),publishedTimeText:void 0,thumbnailOverlays:w}}if(H==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.xM(_.XS("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:w};if(H==="TRANSFER_STATE_FAILED"||H==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.xM(_.XS("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:w};if(H==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(B=_.XS("WAITING_TO_DOWNLOAD"),b==="DOWNLOAD_STATE_PAUSED"&&(B=_.XS("DOWNLOAD_PAUSED",{},"Download paused")),B))return{shortViewCountText:_.xM(B),publishedTimeText:void 0,thumbnailOverlays:w};if(_.b5(H))return X=Math.floor(l*100).toString(),{shortViewCountText:_.xM(_.XS("DOWNLOADING_PERCENT",{percent:X},"Downloading... "+X+"%")),publishedTimeText:void 0,thumbnailOverlays:w};H=void 0;X.videoEntity.publishedTimestampMillis&&
(H=new Date,U&&(H=new Date(U)),H=iH(ATh(new Date(Number(X.videoEntity.publishedTimestampMillis)),H)));U=[];_.P("kevlar_woffle_badge_killswitch")||(U=[{metadataBadgeRenderer:{label:_.XS("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var q;X=iH((q=X.videoEntity.localizedStrings)==null?void 0:q.viewCount);return Object.assign({},K?{shortViewCountText:void 0}:{shortViewCountText:X},K?{}:{publishedTimeText:H},{badges:U,thumbnailOverlays:w})};
UXh=function(X,H){X=X===void 0?bnN:X;switch(H.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:H.payload.playlistId,inviteLinkURL:H.payload.inviteLinkUrl};default:return X}};
Kfz=function(X,H){X=X===void 0?$XL:X;switch(H.type){case "SET_CURRENT_FORM_ID":return H=H.payload.formId,X.currentFormId===H?X:{currentFormId:H,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var l=H.payload;H=l.groupId;l=l.command;if(X.currentFormId){var b=Object.assign({},X.commandsMap);b[H]=l;X=Object.assign({},X,{commandsMap:b})}return X;case "RESET_COMMAND_MAP":return Object.assign({},X,{commandsMap:{}});default:return X}};
Cuy=function(X,H){X=X===void 0?RNK:X;switch(H.type){case "UPDATE_CANVAS_MODE":return Object.assign({},X,{currentMode:H.payload.currentMode});default:return X}};
dXz=function(X,H){X=X===void 0?wUz:X;switch(H.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},X,{guideIsExpanded:H.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},X,{scrollAtTop:H.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},X,{guideIsVisibleButNotPersistent:H.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},X,{miniplayerIsActive:H.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},X,{singleOptionSurveyIsActive:H.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},X,{slimlineSurveyRatingSelectedIndex:H.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},X,{richGridMiniMode:H.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},X,{richGridItemsPerRow:H.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},X,{richGridSlimItemsPerRow:H.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},X,{richGridContainerWidth:H.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},X,{richGridStyle:H.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},X,{currentPageType:H.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},X,{inlinePreviewIsActive:H.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},X,{inlinePreviewIsEnabled:H.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},X,{darkModeIsEnabled:H.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
X,{miniplayerPlaybackState:H.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},X,{tabGesturesIsActive:H.payload});case "SET_ONLINE_STATUS":return Object.assign({},X,{isOnline:H.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},X,{chipBarIsSticky:H.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},X,{frostedGlassMode:H.payload});default:return X}};
hNy=function(){return _.P("kevlar_disable_theater_mode_persistence")?!1:_.G7("START_IN_THEATER_MODE")};
BFy=function(X,H){X=X===void 0?Ffk:X;switch(H.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},X,{transcription:H.payload});case "SET_OVERLAY_STATE":return Object.assign({},X,{overlay:H.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return X}};
pUZ=function(){return Vt(Object.assign({},{continuation:qVh,download:sXy,canvas:Cuy,reportChannelAbuse:MDZ,share:u4K,talkToRecs:eNy,ui:dXz,voiceSearch:BFy,watch:yk8,ypc:VDz,shorts:Puk,radioButtonGroup:Kfz,collabInviteLink:UXh},fZK))};
nGm=function(){return _.P("web_player_entities_middleware")?new t0(pUZ(),[SVL,zNK]):new t0(pUZ(),[SVL])};
_.WF=function(){kiy||(kiy=nGm());return kiy};
xXk=function(X,H,l){if(X.length)return{titleText:_.Zi(H!=null?H:_.XS("DOWNLOADS",void 0,"Downloads")),contents:X.map(function(b){var U=b.videoEntity;b={videoId:U.videoId,title:iH(U.title),shortBylineText:iH(b.channelEntity.title),thumbnail:U.thumbnail};var K=U.videoId?PF(_.WF().getState(),U.videoId):0;U.videoId&&l?b.navigationEndpoint=_.aO(U.videoId,l,void 0,void 0,K):U.videoId&&(b.navigationEndpoint=xUZ(U.videoId,K,U.lengthSeconds));U.lengthSeconds&&(b.thumbnailOverlays=XUm(U.lengthSeconds,K));return{playlistPanelVideoRenderer:b}}),
totalVideos:X.length}};
DXN=function(X){return(X=(0,_.Bb.getValueByKeys)(X,"playlistId"))?{playlistId:X}:null};
tDz=function(){return{}};
Wfm=function(X,H){return new _.UA(function(l,b){X.then(function(U){if(U){if(U=H(U))return l(U);b()}},b)})};
EGk=function(X){var H,l,b,U=(H=X.contents)==null?void 0:(l=H.twoColumnWatchNextResults)==null?void 0:(b=l.autoplay)==null?void 0:b.autoplay,K,w,d;H=(K=X.contents)==null?void 0:(w=K.twoColumnWatchNextResults)==null?void 0:(d=w.playlist)==null?void 0:d.playlist;return U&&H&&H.playlistId?{rawResponse:X,autoplayRenderer:U,playlistPanelRenderer:H,playlistId:H.playlistId}:null};
Giz=function(X){var H=H===void 0?"UNKNOWN_INTERFACE":H;if(X.length===1)return X[0];var l=gG8[H];if(l){l=new RegExp(l);for(var b=_.C(X),U=b.next();!U.done;U=b.next())if(U=U.value,l.exec(U))return U}var K=[];Object.entries(gG8).forEach(function(w){var d=_.C(w);w=d.next().value;d=d.next().value;H!==w&&K.push(d)});
l=new RegExp(K.join("|"));X.sort(function(w,d){return w.length-d.length});
b=_.C(X);for(U=b.next();!U.done;U=b.next())if(U=U.value,!l.exec(U))return U;return X[0]};
_.E9=function(X){return"/youtubei/v1/"+Giz(X)};
_.gR=function(X,H){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:X}}},H!==void 0?{durationHintMs:H}:{})}};
_.Gc=function(X,H){return _.gR(_.xM(X),H)};
aZb=function(X,H){var l={mode:"NORMAL"};X&&(l.autoplayVideo=X.navigationEndpoint,l.nextButtonVideo=X.navigationEndpoint);H&&(l.previousButtonVideo=H.navigationEndpoint);return l};
vGl=function(X,H,l){if(!l||!l.sets)return{sets:[aZb(X,H)]};var b=l.sets.find(function(w){return w.mode==="NORMAL"}),U=(0,_.Bb.unsafeClone)(l);
if(!b)return U.sets.push(aZb(X,H)),U;if(!X)return l;b=_.Bb.getValueByKeys.apply(null,[b].concat(_.LJ(ZnW)));var K=_.Bb.getValueByKeys.apply(null,[X].concat(_.LJ(iny)));if(b===K)return l;U.sets=U.sets.filter(function(w){return w.mode!=="NORMAL"});
U.sets.push(aZb(X,H));return U};
Ony=function(X){return!!X.playlistPanelVideoRenderer&&!X.playlistPanelVideoRenderer.unplayableText};
mXK=function(X){return!!X.playlistPanelVideoRenderer&&!!X.playlistPanelVideoRenderer.title};
QXm=function(X,H){if(H.contents&&!(X>=H.contents.length)&&(X=H.contents.slice(X).find(Ony)))return X.playlistPanelVideoRenderer};
TF8=function(X,H){if(H.contents)return(H=H.contents.find(function(l){return!!l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.videoId===X}))?H.playlistPanelVideoRenderer:void 0};
NFl=function(X,H){return H.contents?H.contents.findIndex(function(l){return!!l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.videoId===X}):-1};
ckZ=function(X,H){return H.contents?H.contents.findIndex(function(l){return!!l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.playlistSetVideoId===X}):-1};
jXk=function(X,H){X.contents&&H!==-1&&X.contents.splice(H,1).length===1&&X.totalVideos!==void 0&&(--X.totalVideos,delete X.videoCountText)};
_.rkZ=function(X){var H=[];if(!X||!X.contents)return H;X=_.C(X.contents);for(var l=X.next();!l.done;l=X.next())l=l.value,l.playlistPanelVideoRenderer&&l.playlistPanelVideoRenderer.videoId&&H.push(l.playlistPanelVideoRenderer.videoId);return H};
_.Jkk=function(X){if(X&&X.contents)return(X=X.contents.find(function(H){return!!H.playlistPanelVideoRenderer&&!!H.playlistPanelVideoRenderer.selected})||X.contents[X.currentIndex])?X.playlistPanelVideoRenderer:void 0};
Lfb=function(X,H,l,b,U,K,w){U=U===void 0?!1:U;K=K===void 0?!1:K;w=w===void 0?!1:w;if(X.contents&&X.contents.length!==0){b&&(X.contents=X.contents.filter(b));b=X.contents.length;for(var d=0;d<b;d++){var B=X.contents[d].playlistPanelVideoRenderer;B&&(d===H?(K&&delete B.menu,B.indexText=_.xM("\u25b6")):U||X.isInfinite||B.indexText===void 0?delete B.indexText:B.indexText=_.xM((d+1+l).toString()))}X.currentIndex=H+l;w&&(delete X.videoCountText,X.totalVideos=b)}};
_.aH=function(X){X=QkK(X);if(X){var H=X.length;var l=-10%H;l<0&&(l=H+l);X=X.slice(H-l)+X.slice(0,H-l)}else X="";l="";for(H=0;H<X.length&&X[H]!==YVm;H++)l+=X[H];return l};
_.IZK=function(X,H){var l=document.body;H=H===void 0?function(d){return d}:H;
var b,U=null;X=_.C(X);for(b=X.next();!b.done;b=X.next()){var K=b.value;b="div";K[2]&&(b=H(K[2]));b=document.createElement(b);U||(U=b);var w=K[0];K=K[1];w&&(b.id=H(w));if(K)for(K=_.C(K),w=K.next();!w.done;w=K.next())b.classList.add(H(w.value));l.appendChild(b);l=b}return[U,l]};
Akz=function(X,H){for(var l="",b=0;b<H;b++)l+=X.charAt(Math.floor(Math.random()*X.length));return l};
Z8=function(X){return Akz("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",X)};
i5=function(X){return Akz("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",X)};
vF=function(X){return Akz("0123456789",X)};
Xam=function(){var X=performance.now(),H=new Date;var l="2."+H.getFullYear()+String(H.getMonth()+1).padStart(2,"0")+String(H.getDate()).padStart(2,"0");for(var b,U=Math.floor(Math.random()*11)+15,K=[],w=0;w<U;w++)K.push(Math.floor(Math.random()*26476865)+24547720);b=K.join(",");var d=Z8(10),B=Z8(100),q=Z8(102),u=Z8(106),e=Z8(108),y=Z8(11),V=Z8(1140),p=Z8(123),z=Z8(14),t=Z8(16),W=Z8(1900),G=Z8(23),r=Z8(26),Q=Z8(34),v=Z8(397),J=Z8(44),Y=Z8(5),Uy=Z8(72),Cy=Z8(74),sy=Z8(75),FO=Z8(88),ub=Z8(91),g8="rr2---sn-q4flrnl7 rr3---sn-t0a7lnee rr2---sn-ntq7yney rr5---sn-q4flrnel rr3---sn-q4flrnl6 rr1---sn-q4fl6nss rr2---sn-ntq7yner rr2---sn-5hnednss rr4---sn-5hne6n6e rr4---sn-ntq7yned rr1---sn-hgn7ynek rr4---sn-5hne6nzk rr4---sn-q4fl6nz6 rr4---sn-q4fl6ndl rr2---sn-q4fl6nsr rr5---sn-5hne6ns6 rr5---sn-q4flrn7y rr2---sn-4g5ednz7 rr5---sn-q4flrnle rr4---sn-hgn7rnls".split(" ");
var mm=g8[Math.floor(Math.random()*g8.length)];var QZ=(new Date("2010-01-01")).getTime();var Bz=(new Date(QZ+Math.random()*((new Date).getTime()-QZ))).toISOString().split("T")[0];for(var dt,TK=[],sG=0;sG<4;sG++)TK.push(Math.floor(Math.random()*100));dt=TK.join(".");var f_=Number(vF(5)),Mv=Number(vF(6)),nd=Number(vF(7)),$U=Number(vF(9)),MW=vF(1),ZL=vF(10),uF=vF(16),rt=vF(19),xQ=vF(2),AQ=vF(20),D3=vF(21),YQ=vF(3),F5=vF(4),TY=vF(5),NZ=vF(6),C_=vF(7),qZ=vF(8),qv=vF(9);var cz=Akz("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var OG=[i5(5),i5(5),i5(5)].join("%2C"),Sy=[vF(3),vF(5),vF(5)].join("%2C"),$m=i5(0),mD=i5(1),RC=i5(10),IC=i5(108),R$=i5(11),nW=i5(12),wX=i5(13),AR=i5(14),k3=i5(15),KJ=i5(16),Yr=i5(17),kN=i5(18),ib=i5(19),Jy=i5(2),p_=i5(20),Pp=i5(22),kn=i5(23),kU=i5(24),zY=i5(266),Sq=i5(3),Oa=i5(30),UU=i5(34),eq=i5(35),EH=i5(36),RZ=i5(4),Q2=i5(40),s_=i5(43),XB=i5(47),HQ=i5(5),bI=i5(6),fN=i5(7),RE=i5(75),M9=i5(8),ud=i5(80),hS=i5(9),PJ="https://www."+i5(12)+".com",U$={},zx={},nc={},oq={},le={},$1={},ef={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:b}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:l},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+i5(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:l},{key:"client.name",value:"WEB"},{key:"client.fexp",value:b}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:D3+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+i5(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Q2,ypcGetOfflineUpsellEndpoint:{params:ud}},trackingParams:eq+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&cnr="+xQ+"&ratebypass=yes&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&c=WEB&txp="+C_+"&n="+t+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Mv,width:640,height:360,lastModified:uF,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:C_,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Sy+"&mn="+
OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&cnr="+xQ+"&ratebypass=yes&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&c=WEB&txp="+C_+"&n="+t+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+IC+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Mv,width:1280,
height:720,lastModified:uF,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:C_,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+Sy+"&mn="+OG+"&ms="+
OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qv+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&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="+e,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:nd,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qv,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:nd,approxDurationMs:C_},{itag:248,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+Sy+"&mn="+OG+"&ms="+OG+"&mv="+
mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fwebm&ns="+kU+"&gir="+Sq+"&clen="+qv+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:nd,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qv,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:nd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:399,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qv+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&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="+e,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:nd,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qv,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:nd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:136,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qv+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:nd,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qv,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Mv,approxDurationMs:C_},{itag:247,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+Sy+"&mn="+
OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fwebm&ns="+kU+"&gir="+Sq+"&clen="+qv+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:nd,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qv,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Mv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:398,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qv+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:nd,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qv,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Mv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:135,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Mv,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Mv,approxDurationMs:C_},{itag:244,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+Sy+"&mn="+
OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fwebm&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+IC+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:Mv,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Mv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:397,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&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="+e,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Mv,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Mv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:134,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Mv,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Mv,highReplication:!0,approxDurationMs:C_},{itag:243,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fwebm&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:Mv,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Mv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:396,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Mv,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Mv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:133,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Mv,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Mv,approxDurationMs:C_},{itag:242,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+Sy+"&mn="+
OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fwebm&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:Mv,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Mv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:395,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Mv,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Mv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:160,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Mv,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:f_,approxDurationMs:C_},{itag:278,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+Sy+"&mn="+
OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fwebm&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+e+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'video/webm; codecs="vp9"',bitrate:Mv,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:f_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:394,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&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="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=video%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&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="+e,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:f_,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:f_,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:C_},{itag:140,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=audio%2Fmp4&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Mv,
initRange:{start:"0",end:"631"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Mv,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:C_,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+
xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=audio%2Fwebm&ns="+kU+"&gir="+Sq+"&clen="+C_+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/webm; codecs="opus"',bitrate:f_,initRange:{start:"0",end:"265"},indexRange:{start:YQ,
end:F5},lastModified:uF,contentLength:C_,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:f_,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:C_,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=audio%2Fwebm&ns="+
kU+"&gir="+Sq+"&clen="+C_+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/webm; codecs="opus"',bitrate:f_,initRange:{start:"0",end:"265"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:C_,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:f_,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:C_,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+mm+".googlevideo.com/videoplayback?expire="+ZL+"&ei="+G+"&ip="+dt+"&id=o-AF"+s_+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Sy+"&mn="+OG+"&ms="+OG+"&mv="+mD+"&mvi="+MW+"&pl="+xQ+"&initcwndbps="+C_+"&siu="+MW+"&spc="+J+"&vprv="+MW+"&svpuc="+MW+"&mime=audio%2Fwebm&ns="+kU+"&gir="+Sq+"&clen="+qZ+"&dur="+qZ+"&lmt="+uF+"&mt="+ZL+"&fvip=3&keepalive="+Sq+"&c=WEB&txp="+
C_+"&n="+KJ+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+B+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+e,mimeType:'audio/webm; codecs="opus"',bitrate:Mv,initRange:{start:"0",end:"265"},indexRange:{start:YQ,end:F5},lastModified:uF,contentLength:qZ,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Mv,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:C_,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="+qv+"&docid="+y+"&ei="+G+"&feature="+d+"&fexp="+$m+"&ns="+Jy+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+mD+"&el="+RC+"&len="+F5+"&of="+Pp+
"&uga="+xQ+"&vm="+zY},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+qv+"&docid="+y+"&ei="+G+"&feature="+d+"&fexp="+$m+"&ns="+Jy+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+mD+"&el="+RC+"&len="+F5+"&of="+Pp+"&uga="+xQ+"&vm="+zY},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+qv+"&docid="+y+"&ei="+G+"&feature="+d+"&fexp="+$m+"&ns="+Jy+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
mD+"&el="+RC+"&len="+F5+"&of="+Pp+"&uga="+xQ+"&vm="+zY},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+G+"&m="+FO+"&oid="+Pp+"&plid="+t+"&pltype="+fN+"&ptchn="+Pp+"&ptk="+z+"&video_id="+y},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+qv+"&docid="+y+"&ei="+G+"&event="+AR+"&feature="+d+"&fexp="+$m+"&ns="+Jy+"&plid="+t+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+mD},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
KJ+"&ver=2&cmt=1."+YQ+"&fmt="+YQ+"&fs=0&rt="+TY+"&euri&lact="+YQ+"&cl="+qv+"&mos="+MW+"&volume=100&cbrand="+HQ+"&cbr="+bI+"&cbrver="+dt+"&c=WEB&cver="+l+"&cplayer=UNIPLAYER&cos="+hS+"&cosver="+C_+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+xQ+"&len="+qZ+"&fexp="+OG+"&feature=g-high-rec&afmt="+YQ+"&muted=0&conn=1&docid="+y+"&ei="+G+"&plid="+t+"&vm="+i5(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
y+"&caps="+Sq+"&opi="+qv+"&xoaf="+MW+"&hl="+Jy+"&ip="+dt+"&ipbits="+MW+"&expire="+ZL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+dt+"&key="+Sq+"&lang="+Y,name:{simpleText:KJ},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+y+"&caps="+Sq+"&opi="+qv+"&xoaf="+MW+"&hl="+Jy+"&ip="+dt+"&ipbits="+MW+"&expire="+ZL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+dt+"&key="+Sq+"&kind="+Sq+"&lang="+Jy,name:{simpleText:bI},
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:R$,title:p_,lengthSeconds:"1155",keywords:[wX,k3,kN,AR],channelId:kU,isOwnerViewing:!1,shortDescription:Yr,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+EH+"G&rs="+UU,width:168,height:94},{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+EH+
"G&rs="+UU,width:196,height:110},{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+EH+"G&rs="+Q,width:246,height:138},{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+EH+"G&rs="+Q,width:336,height:188},{url:"https://i.ytimg.com/vi/"+y+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:C_,author:wX,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:C_,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
Pp+"/featured_channel.jpg?v="+M9,width:40,height:40}]},trackingParams:eq+"=",navigationEndpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{url:"/channel/"+kU,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:kU}},channelName:wX,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:RC}]},subscribed:!1,enabled:!0,type:"FREE",channelId:kU,showPreferences:!1,subscribedButtonText:{runs:[{text:RC}]},unsubscribedButtonText:{runs:[{text:ib}]},
trackingParams:eq+"=",unsubscribeButtonText:{runs:[{text:HQ}]},serviceEndpoints:[{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[kU],params:M9}},{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Q2,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:eq+"=",dialogMessages:[{runs:[{text:Yr},
{text:HQ},{text:hS}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:fN}]},serviceEndpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[kU],params:M9}},accessibility:{label:KJ},trackingParams:eq+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Yr}]},accessibility:{label:wX},
trackingParams:eq+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:bI}},unsubscribeAccessibility:{accessibilityData:{label:p_}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:qZ},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[kU],
params:M9}},unsubscribeCommand:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[kU],params:M9}},addToWatchLaterCommand:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:R$,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:R$}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+y+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+EH+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+y+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+R$,width:1280,
height:720},title:{simpleText:RZ},description:{simpleText:p_},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+hS,externalChannelId:kU,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:C_,category:"Travel & Events",publishDate:Bz,ownerChannelName:wX,uploadDate:Bz}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:p_},trackingParams:eq+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Q2,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:eq+"="}}],headerText:{simpleText:RC},icon:{infoCardIconRenderer:{trackingParams:eq+"="}},closeButton:{infoCardIconRenderer:{trackingParams:eq+"="}},trackingParams:eq+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:eq+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+R$+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:cz,interpreterSafeUrl:(U$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Oa+".js",U$),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:R$},{text:ib,bold:!0}]},endpoint:{clickTrackingParams:Q2,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:eq+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:HQ}]},actionButton:{buttonRenderer:{text:{runs:[{text:R$}]},navigationEndpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+y,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
y,target:"TARGET_NEW_WINDOW"}},trackingParams:eq+"="}},trackingParams:eq+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Uy+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Uy+"=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:C_,endMs:C_,title:{accessibility:{accessibilityData:{label:fN}},simpleText:RZ},metadata:{simpleText:KJ},callToAction:{simpleText:hS},dismiss:{simpleText:KJ},endpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{url:"/channel/"+kU,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:kU}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:RZ}]},subscribed:!1,enabled:!0,type:"FREE",channelId:kU,showPreferences:!1,
subscribedButtonText:{runs:[{text:KJ}]},unsubscribedButtonText:{runs:[{text:RZ}]},trackingParams:eq+"=",unsubscribeButtonText:{runs:[{text:RC}]},serviceEndpoints:[{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[kU],params:M9}},{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Q2,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:eq+
"=",dialogMessages:[{runs:[{text:bI},{text:kN},{text:RZ}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:wX}]},serviceEndpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[kU],params:M9}},accessibility:{label:KJ},trackingParams:eq+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Yr}]},
accessibility:{label:hS},trackingParams:eq+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ib}},unsubscribeAccessibility:{accessibilityData:{label:RZ}}}},trackingParams:eq+"=",isSubscribe:!0,id:AQ}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+EH+"G&rs="+Q,width:168,height:94},{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+EH+"G&rs="+UU,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+EH+"G&rs="+Q,width:246,height:138},{url:"https://i.ytimg.com/vi/"+y+"/hqdefault.jpg?sqp=-oaymwE"+EH+"G&rs="+Q,width:336,height:188},{url:"https://i.ytimg.com/vi/"+y+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:C_,endMs:C_,title:{accessibility:{accessibilityData:{label:fN}},simpleText:R$},metadata:{simpleText:ib},endpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
R$,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:R$,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+mm+".googlevideo.com/videoplayback?source=youtube&oeis="+MW+"&c=WEB&oad="+F5+"&ovd="+F5+"&oaad="+TY+"&oavd="+TY+"&ocs="+YQ+"&oewis="+MW+"&oputc="+MW+"&ofpcc="+MW+"&siu="+MW+"&msp="+MW+"&odepv="+MW+
"&id=o-AF"+s_+"&ip="+dt+"&initcwndbps="+C_+"&mt="+ZL+"&oweuc="+$m}}}}},trackingParams:eq+"=",id:AQ,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:KJ}},simpleText:k3},style:"DEFAULT"}}]}}],startMs:C_,trackingParams:eq+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:MW,offsetEndMilliseconds:TY},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qv+";dc_trk_cid="+qv+";dc_dbm_token="+e+";ord="+ZL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MW+";dc_rui="+MW+";dc_exteid="+AQ+";dc_av="+YQ+";dc_sk="+MW+";dc_ctype="+xQ+";dc_ref=http://www.youtube.com/video/"+R$+";dc_pubid="+MW+";dc_btype=23?gclid="+ub+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+MW+"&ns="+MW+"&event="+MW+"&device="+MW+"&content_v="+y+"&el="+RC+"&ei="+G+"&devicever="+l+"&bti="+C_+"&format="+NZ+"&break_type="+MW+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+MW+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+dt+"&slot_pos="+MW+"&slot_len="+MW+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Sy+"&ad_len="+TY+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
R$+"&aqi="+G+"&ad_rmp="+MW+"&sli="+MW}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+
";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+NZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+C_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&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"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&ctype="+YQ+"&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"+
V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_engaged_view&ctype="+YQ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+NZ+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
qv+";dc_trk_cid="+qv+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MW+";ord="+qv+";dc_rui="+MW+";dc_exteid="+rt+";dc_av="+MW+";dc_sk="+MW+";dc_ctype="+xQ+";dc_pubid="+MW+";dc_btype=3?gclid="+ub+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+kn+"&ad_cpn=[AD_CPN]&id="+bI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bI+"&dc_pubid="+MW+"&dc_exteid="+AQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+kn+"&ad_cpn=[AD_CPN]&id="+bI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+MW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bI+"&avm="+MW+"&dc_pubid="+MW+"&dc_exteid="+
AQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&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="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
q+"&sig="+kn+"&ad_cpn=[AD_CPN]&id="+bI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+MW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bI+"&dc_pubid="+MW+"&dc_exteid="+AQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+NZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+NZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Q2,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+
YQ+"&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/"+y+"/mqdefault.jpg",width:320,height:180}]},trackingParams:eq+"="},trackingParams:eq+
"=",templatedCountdown:{templatedAdText:{text:RZ,isTemplated:!0,trackingParams:eq+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:fN,isTemplated:!1,trackingParams:eq+"="},trackingParams:eq+"="}},trackingParams:eq+"=",skipOffsetMilliseconds:5E3}},trackingParams:eq+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:RC},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:eq+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:RZ,isTemplated:!1,trackingParams:eq+"="},trackingParams:eq+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:R$,isTemplated:!0,trackingParams:eq+"="}},trackingParams:eq+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Q2,openPopupAction:{popup:{aboutThisAdRenderer:{url:(zx.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+Jy+"&origin=www.youtube.com&ata_theme="+RZ,zx),trackingParams:eq+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:eq+"="}},hoverText:{runs:[{text:p_}]},trackingParams:eq+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+XB+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:eq+"="},headline:{text:wX,isTemplated:!1,trackingParams:eq+"="},description:{text:ib,
trackingParams:eq+"="},actionButton:{buttonRenderer:{text:{simpleText:RZ},navigationEndpoint:{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qv+";dc_trk_cid="+qv+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MW+";ord="+qv+";dc_rui="+MW+";dc_exteid="+AQ+";dc_av="+MW+";dc_sk="+MW+";dc_ctype="+xQ+";dc_pubid="+MW+";dc_btype=3?gclid="+ub+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:eq+"="}},startMs:MW,trackingParams:eq+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:RZ},elementId:ib}},elementId:nW,trackingParams:eq+"=",legacyInfoCardVastExtension:hS,sodarExtensionData:{siub:M9,bgub:HQ,scs:AR,bgp:M9},externalVideoId:R$,adLayoutLoggingData:{serializedAdServingDataEntry:p_},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+XB+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:eq+"="},
headline:{text:hS,isTemplated:!1,trackingParams:eq+"="},description:{text:RC,isTemplated:!1,trackingParams:eq+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:bI},navigationEndpoint:{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qv+";dc_trk_cid="+qv+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MW+";ord="+qv+";dc_rui="+MW+";dc_exteid="+
AQ+";dc_av="+MW+";dc_sk="+MW+";dc_ctype="+xQ+";dc_pubid="+MW+";dc_btype=3?gclid="+ub+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+
MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:eq+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:eq+"="}},navigationEndpoint:{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qv+";dc_trk_cid="+
qv+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MW+";ord="+qv+";dc_rui="+MW+";dc_exteid="+AQ+";dc_av="+MW+";dc_sk="+MW+";dc_ctype="+xQ+";dc_pubid="+MW+";dc_btype=3?gclid="+ub+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+
p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:eq+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:eq+"="},abandonCommands:{commands:[{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&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="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+
MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Q2,commandExecutorCommand:{commands:[{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:HQ,isTemplated:!1,trackingParams:eq+
"="},trackingParams:eq+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:k3},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+C_+";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="+qv+";dc_trk_cid="+qv+";ord="+ZL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MW+";dc_rui="+MW+";dc_exteid="+AQ+";dc_av="+YQ+";dc_sk="+MW+";dc_ctype="+xQ+";dc_ref=http://www.youtube.com/video/"+R$+";dc_pubid="+MW+";dc_btype=23?gclid="+ub+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+MW+"&ns="+MW+"&event="+MW+"&device="+MW+"&content_v="+y+"&el="+RC+"&ei="+G+"&devicever="+l+"&bti="+C_+"&format="+NZ+"&break_type="+MW+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+MW+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+dt+"&slot_pos="+MW+"&slot_len="+MW+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Sy+"&ad_len="+TY+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+R$+"&aqi="+G+"&ad_rmp="+MW+"&sli="+MW}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+NZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+
r+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+C_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&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"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&ctype="+YQ+"&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"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_engaged_view&ctype="+YQ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+NZ+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+kn+"&ad_cpn=[AD_CPN]&id="+
bI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bI+"&dc_pubid="+MW+"&dc_exteid="+AQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+
"&sig="+kn+"&ad_cpn=[AD_CPN]&id="+bI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+MW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bI+"&avm="+MW+"&dc_pubid="+MW+"&dc_exteid="+AQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&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="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+q+"&sig="+kn+"&ad_cpn=[AD_CPN]&id="+bI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+MW},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+bI+"&dc_pubid="+MW+"&dc_exteid="+AQ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+NZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+NZ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+
YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&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/"+y+"/mqdefault.jpg",width:320,height:180}]},trackingParams:eq+"="},trackingParams:eq+"=",templatedCountdown:{templatedAdText:{text:nW,isTemplated:!0,trackingParams:eq+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:hS,isTemplated:!1,trackingParams:eq+"="},trackingParams:eq+"="}},
trackingParams:eq+"=",skipOffsetMilliseconds:5E3}},trackingParams:eq+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:KJ},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:eq+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ib,isTemplated:!1,trackingParams:eq+"="},trackingParams:eq+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:hS,
isTemplated:!0,trackingParams:eq+"="}},trackingParams:eq+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Q2,openPopupAction:{popup:{aboutThisAdRenderer:{url:(nc.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+Jy+"&origin=www.youtube.com&ata_theme="+RZ,nc),trackingParams:eq+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:eq+"="}},hoverText:{runs:[{text:fN}]},trackingParams:eq+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Cy+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:eq+"="},headline:{text:RZ,isTemplated:!1,trackingParams:eq+"="},description:{text:Yr,trackingParams:eq+"="},actionButton:{buttonRenderer:{text:{simpleText:AR},navigationEndpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:eq+"="}},startMs:MW,trackingParams:eq+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:M9},elementId:Yr}},elementId:fN,trackingParams:eq+"=",legacyInfoCardVastExtension:RZ,sodarExtensionData:{siub:RC,bgub:KJ,scs:p_,bgp:RC},externalVideoId:R$,adLayoutLoggingData:{serializedAdServingDataEntry:kN},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Cy+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:eq+"="},headline:{text:nW,
isTemplated:!1,trackingParams:eq+"="},description:{text:KJ,isTemplated:!1,trackingParams:eq+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:RZ},navigationEndpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:eq+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:eq+"="}},navigationEndpoint:{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+
MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:eq+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:eq+"="},abandonCommands:{commands:[{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&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="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+xQ+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Q2,commandExecutorCommand:{commands:[{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:fN,isTemplated:!1,trackingParams:eq+"="},trackingParams:eq+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:kN},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+MW+";dc_exteid="+AQ+";met="+MW+";ecn"+MW+"="+MW+";etm1="+MW+";eid1="+
C_+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:ib}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:k3}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:TY,offsetEndMilliseconds:NZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+xQ+"&token=ALHj"+v+"&index="+MW+"&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="+l+"&m_pos_ms="+TY}},adSlotLoggingData:{serializedSlotAdServingDataEntry:M9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:NZ,offsetEndMilliseconds:NZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+YQ+"&token=ALHj"+v+"&index="+MW+"&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="+
l+"&m_pos_ms="+NZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ib}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:NZ,offsetEndMilliseconds:NZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+YQ+"&token=ALHj"+v+"&index="+MW+"&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="+
l+"&m_pos_ms="+NZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:AR}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:NZ,offsetEndMilliseconds:NZ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+YQ+"&token=ALHj"+v+"&index="+MW+"&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="+
l+"&m_pos_ms="+NZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:M9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:NZ,offsetEndMilliseconds:xQ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+YQ+"&token=ALHj"+v+"&index="+MW+"&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="+
l+"&m_pos_ms="+NZ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:hS}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:xQ,offsetEndMilliseconds:xQ},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+G+"&m_pos="+xQ+"&token=ALHj"+v+"&index="+MW+"&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="+
l+"&m_pos_ms="+xQ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nW}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:kN,isTemplated:!1,trackingParams:eq+"="},description:{text:hS,isTemplated:!1,trackingParams:eq+"="},actionButton:{buttonRenderer:{text:{simpleText:p_},navigationEndpoint:{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
qv+";dc_trk_cid="+qv+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MW+";ord="+qv+";dc_rui="+MW+";dc_exteid="+AQ+";dc_av="+MW+";dc_sk="+MW+";dc_ctype="+xQ+";dc_pubid="+MW+";dc_btype=3?gclid="+ub+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:eq+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+XB+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:eq+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sy+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:eq+"="},navigationEndpoint:{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qv+";dc_trk_cid="+qv+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MW+";ord="+qv+
";dc_rui="+MW+";dc_exteid="+AQ+";dc_av="+MW+";dc_sk="+MW+";dc_ctype="+xQ+";dc_pubid="+MW+";dc_btype=3?gclid="+ub+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:eq+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Q2,openPopupAction:{popup:{aboutThisAdRenderer:{url:(oq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+Jy+"&origin=www.youtube.com&ata_theme="+RZ,oq),trackingParams:eq+"="}},popupType:"DIALOG"}},trackingParams:eq+"="}},hoverText:{runs:[{text:Yr}]},trackingParams:eq+"="}},adVideoId:R$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:KJ},associatedCompositePlayerBytesLayoutId:KJ}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:fN}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:AR,isTemplated:!1,trackingParams:eq+"="},description:{text:KJ,isTemplated:!1,trackingParams:eq+"="},actionButton:{buttonRenderer:{text:{simpleText:R$},navigationEndpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+
p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:eq+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Cy+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:eq+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+RE+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:eq+"="},navigationEndpoint:{clickTrackingParams:Q2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+
MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:eq+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Q2,openPopupAction:{popup:{aboutThisAdRenderer:{url:(le.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+Jy+"&origin=www.youtube.com&ata_theme="+RZ,le),trackingParams:eq+"="}},popupType:"DIALOG"}},trackingParams:eq+"="}},
hoverText:{runs:[{text:hS}]},trackingParams:eq+"="}},adVideoId:R$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+R$+"&cid="+r+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:RC},associatedCompositePlayerBytesLayoutId:KJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:wX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:kN,
isTemplated:!1,trackingParams:eq+"="},description:{text:HQ,isTemplated:!1,trackingParams:eq+"="},actionButton:{buttonRenderer:{text:{simpleText:ib},navigationEndpoint:{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qv+";dc_trk_cid="+qv+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MW+";ord="+qv+";dc_rui="+MW+";dc_exteid="+AQ+";dc_av="+MW+";dc_sk="+MW+";dc_ctype="+
xQ+";dc_pubid="+MW+";dc_btype=3?gclid="+ub+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+
Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:eq+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+XB+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:eq+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+sy+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:eq+
"="},navigationEndpoint:{clickTrackingParams:Q2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+qv+";dc_trk_cid="+qv+";dc_dbm_token="+e+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+MW+";ord="+qv+";dc_rui="+MW+";dc_exteid="+AQ+";dc_av="+MW+";dc_sk="+MW+";dc_ctype="+xQ+";dc_pubid="+MW+";dc_btype=3?gclid="+ub+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+V+"____________"+p+"AxAA&ase=2&num="+MW+"&cid="+r+"&ad_cpn=%5BAD_CPN%5D&sig="+Q+"&adurl="+PJ+"&label=video_click_to_advertiser_site&ctype="+YQ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:eq+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Q2,openPopupAction:{popup:{aboutThisAdRenderer:{url:($1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+W+"&hl="+Jy+"&origin=www.youtube.com&ata_theme="+RZ,$1),trackingParams:eq+"="}},popupType:"DIALOG"}},trackingParams:eq+
"="}},hoverText:{runs:[{text:bI}]},trackingParams:eq+"="}},adVideoId:R$,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+V+"____________"+p+"AxAA&sigh="+y+"&cid="+r+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Yr},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:KJ}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fN}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Oa,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Oa,command:{innertubeCommand:{clickTrackingParams:Q2,ypcGetOfflineUpsellEndpoint:{params:ud}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:eq+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:ZL,nanos:$U}}}},L2=JSON.stringify(ef),oV=performance.now()-X;return{objectRepresentation:ef,jsonRepresentation:L2,generationTime:oV}};
HBy=function(X,H){if(X===H)return!0;if(!X||!H||typeof X!==typeof H)return!1;if(X instanceof Array&&H instanceof Array){if(X.length!==H.length)return!1;for(var l=0;l<X.length;l++)if(!HBy(X[l],H[l]))return!1;return!0}if(typeof X==="object"&&typeof H==="object"&&X&&H){for(l in X)if(!(l in H&&HBy(X[l],H[l])))return!1;for(var b in H)if(!(b in X))return!1;return!0}return!1};
_.m1=function(){if(!O9){O9=new YO(new lwh);var X=_.Yy("client_streamz_web_flush_count",-1);X!==-1&&(O9.invocationLimit=X)}return O9};
QR=function(X,H,l,b){if(X===H)return!0;if(Array.isArray(X)&&Array.isArray(H)){if(X.length!==H.length)return!1;for(var U=0;U<X.length;U++)if(!QR(X[U],H[U],l,b))return!1;return!0}if(X instanceof Set||H instanceof Set){if(X instanceof Set&&H instanceof Set){if(X.size!==H.size)return!1;b=_.C(X.values());for(U=b.next();!U.done;U=b.next())if(!H.has(U.value))return!1;return!0}return!1}if(X instanceof Function){if(b)return!0;X.name===""&&_.n2(Error("Rf"),"ERROR");return!1}if(X instanceof Date&&H instanceof
Date)return X.getTime()===H.getTime();if(X instanceof Object&&H instanceof Object){if(oRy(X)&&oRy(H))try{return X.equals(H)}catch(w){_.n2(Error("Sf`"+w),"ERROR")}U=Object.getOwnPropertyNames(X).filter(function(w){return l?X[w]!==void 0:!0});
var K=Object.getOwnPropertyNames(H).filter(function(w){return l?H[w]!==void 0:!0});
if(U.length!==K.length)return!1;U=_.C(U);for(K=U.next();!K.done;K=U.next())if(K=K.value,!QR(X[K],H[K],l,b))return!1;return!0}return!1};
oRy=function(X){X=Object.getPrototypeOf(X).equals;return X instanceof Function&&X.length===1};
_.$Cy=function(){return _.h(function(X){if(X.nextAddress==1)return bBb!==2?X.jumpTo(2):X.yield(UCy(),3);X.nextAddress!=2&&(bBb=X.yieldResult);return X.return(bBb)})};
_.C_L=function(){return _.h(function(X){if(X.nextAddress==1)return _.P("ab_pl_man")?Kky!==2?X.jumpTo(2):X.yield(Ram(),3):X.return(1);X.nextAddress!=2&&(Kky=X.yieldResult);return X.return(Kky)})};
hay=function(){return _.h(function(X){if(X.nextAddress==1)return _.P("ab_fk_sk_cl")?wam!==2?X.jumpTo(2):X.yield(dCk(),3):X.return(1);X.nextAddress!=2&&(wam=X.yieldResult);return X.return(wam)})};
_.qOW=function(){return _.h(function(X){if(X.nextAddress==1)return _.P("ab_det_apb_b")?FkZ!==2?X.jumpTo(2):X.yield(Bem(),3):X.return(1);X.nextAddress!=2&&(FkZ=X.yieldResult);return X.return(FkZ)})};
ugz=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield(Promise.all([_.$Cy(),_.qOW(),_.C_L(),hay()]),2);if(H.nextAddress!=3)return srN()?H.return(!0):H.yield(_.MKZ(),3);X=H.yieldResult;return H.return(X===0)})};
srN=function(){var X=!1,H=function(l,b){eal.increment(b,l);l===0&&(X=!0)};
H(_.yKk(),"j.s_");H(bBb,"f.i_");H(FkZ,"a.b_");H(Kky,"p.m_");H(wam,"i.f_");VK8===2&&(VK8=_.P_y(fwZ));H(VK8,"e.h_");_.P("ks_det_gpbl")||H(_.paz(),"p.i_");_.P("ks_get_o_pp")||H(_.SON(),"g.o_");_.P("ab_deg_unex_thr")||H(_.zay(),"a.o_");H(nRy,"s.t_");_.P("ab_det_sc_inj_enf")&&H(_.kgK(),"s.i_");H(xCb,"d.p_");H(_.DCO(_.Tc),"o.p_");H(_.tKz()===0?0:_.Wky(),"o.a_");return _.P("debug_sk_em_precheck")?!0:X};
gRK=function(){var X=[].concat(_.LJ(ERm));try{var H=Xam();X.push({jsonRepresentation:H.jsonRepresentation,objectRepresentation:H.objectRepresentation})}catch(l){X=[].concat(_.LJ(ERm))}return X};
Ggz=function(){var X=["adPlacements","adSlots"];try{return X.filter(function(){return!0}).length!==X.length?0:1}catch(H){return 0}};
_.SON=function(){if(Ggz()===0)return 0;var X=Xam(),H=X.objectRepresentation,l=(0,_.Bb.unsafeClone)(H),b=[];if(H&&typeof H==="object")for(var U in H)b.push(U);else return 4;X=X.objectRepresentation.adPlacements;if(!(X&&X.length>0))return 4;try{if(!HBy(b,Object.getOwnPropertyNames(H)))return 0}catch(K){return 0}return HBy(l,H)?1:0};
_.DCO=function(X){if(!X||!X.length||typeof X==="string")return 0;for(var H=Object.getOwnPropertyNames(Object.prototype),l=0;l<X.length;l++)for(var b=_.aH(X[l]),U=_.C(H),K=U.next();!K.done;K=U.next())if(b===K.value)return 0;return 1};
awm=function(X){var H=_.aH(X[1]);if(X[0]===null)return H;X=X[0];for(var l={},b=0;b<X.length;b++){var U=_.aH(X[b]);if(b===0)l[U]=H;else{var K={};K[U]=l;l=K}}return l};
_.tKz=function(){for(var X=_.No,H=0;H<X.length;H++){var l=awm(X[H]),b=[];b.push(l);if(b.length===0)return 0}return 1};
_.Wky=function(){for(var X=_.No,H={},l=0;l<X.length;H={xzm:void 0},l++){var b=[awm(X[l])];H.xzm=[];b.forEach(function(U){return function(K){U.xzm[U.xzm.length]=K}}(H));
if(H.xzm.length===0)return 0}return 1};
_.yKk=function(){for(var X=_.C(gRK()),H=X.next();!H.done;H=X.next()){var l=H.value;H=l.jsonRepresentation;l=l.objectRepresentation;try{var b=JSON.parse(H);if(!QR(b,l,!1,!1))return 0}catch(U){return 0}}return 1};
_.kgK=function(){try{var X=_.l0("ab_det_sc_inj_val");X.length===1&&X[0]===""&&(X=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var H=document.querySelectorAll("script"),l=_.C(H),b=l.next();!b.done;b=l.next())for(var U=b.value,K=_.C(X),w=K.next();!w.done;w=K.next()){var d=w.value;H=void 0;if((H=U.textContent)==null?0:H.includes(d))return 0}}catch(B){return 4}return 1};
_.MKZ=function(){var X,H,l,b,U,K,w;return _.h(function(d){switch(d.nextAddress){case 1:_.Ew(d,2),X=_.C(ERm),H=X.next();case 4:if(H.done)return d.return(1);b=l=H.value;U=b.jsonRepresentation;K=b.objectRepresentation;return d.yield((new Response(U,{status:200})).json(),7);case 7:w=d.yieldResult;if(!QR(w,K,!1,!1))return d.return(0);H=X.next();d.jumpTo(4);break;case 2:return _.Ow(d),d.return(4)}})};
_.zay=function(){try{btoa("abc")}catch(X){return 0}return 1};
UCy=function(){var X,H,l,b,U,K,w,d,B,q,u;return _.h(function(e){switch(e.nextAddress){case 1:_.Ew(e,2),X=_.C(gRK()),H=X.next();case 4:if(H.done)return e.return(1);b=l=H.value;U=b.jsonRepresentation;K=b.objectRepresentation;w=btoa(U);d="data:application/json;base64,"+w;B=new Request(d);Object.defineProperty(B,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(B,"method",{get:function(){return"POST"}});
Object.defineProperty(B,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(B,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(B,"body",{get:function(){return new ReadableStream}});
return e.yield(fetch(B),7);case 7:return q=e.yieldResult,e.yield(q.json(),8);case 8:u=e.yieldResult;if(!QR(u,K,!1,!1))return e.return(0);H=X.next();e.jumpTo(4);break;case 2:return _.Ow(e),e.return(4)}})};
_.P_y=function(X){if(!X||!X.length||typeof X==="string")return 0;for(var H=function(U){return _.aH(U)},l=2,b=0;b<X.length&&(l=_.ZBZ(_.IZK(X[b],H)),l!==0);b++);
return l};
_.ZBZ=function(X){var H=_.C(X);X=H.next().value;H=H.next().value;try{var l=document.createElement("div");document.body.appendChild(l);var b=getComputedStyle(l).display;document.body.removeChild(l);if(b==="none")return 4;var U=getComputedStyle(H).display==="none"?0:1;document.body.removeChild(X);return U}catch(K){return 4}};
dCk=function(){var X,H,l;return _.h(function(b){X=new _.cF;H=document.createElement("button");H.classList.add("ytp-ad-skip-button");H.style.opacity="0";H.style.height="0px";H.style.width="0px";H.style.padding="0px";H.style.border="none";l=function(){H.parentElement&&H.parentElement.removeChild(H)};
H.onclick=function(){X.resolve(0);l()};
document.body.appendChild(H);setTimeout(function(){l();X.resolve(1)},50);
return b.return(X.promise)})};
Ram=function(){var X,H,l,b,U,K,w;return _.h(function(d){X=new _.cF;H=document.createElement("ytd-player");try{document.body.prepend(H)}catch(B){return d.return(4)}l=function(){H.parentElement&&H.parentElement.removeChild(H)};
H.getElementsByTagName("div").length>0?b=H.getElementsByTagName("div")[0]:(b=document.createElement("div"),H.appendChild(b));U=document.createElement("div");b.appendChild(U);K=document.createElement("video");w=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"});K.src=_.jA(_.I$(w));K.ontimeupdate=function(){l();X.resolve(0)};
U.appendChild(K);K.classList.add("html5-main-video");setTimeout(function(){U.classList.add("ad-interrupting")},200);
setTimeout(function(){l();X.resolve(1)},5E3);
return d.return(X.promise)})};
iBm=function(X){var H=Xam().objectRepresentation.playbackTracking;if(H){var l=[],b;l.push(H==null?void 0:(b=H.videostatsPlaybackUrl)==null?void 0:b.baseUrl);var U;l.push(H==null?void 0:(U=H.videostatsDelayplayUrl)==null?void 0:U.baseUrl);var K;l.push(H==null?void 0:(K=H.videostatsWatchtimeUrl)==null?void 0:K.baseUrl);var w;l.push(H==null?void 0:(w=H.ptrackingUrl)==null?void 0:w.baseUrl);var d;l.push(H==null?void 0:(d=H.qoeUrl)==null?void 0:d.baseUrl);var B;l.push(H==null?void 0:(B=H.atrUrl)==null?
void 0:B.baseUrl);H=_.C(l);for(l=H.next();!l.done;l=H.next())if((l=l.value)&&X.test(l))return l.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
vRy=function(X,H){var l,b;return _.h(function(U){switch(U.nextAddress){case 1:l=[],b=0;case 2:if(!(b<3)){U.jumpTo(4);break}return U.yield(fetch(X,{cache:"no-store",method:H}).then(function(K){l.push(K.status)}).catch(function(){l.push(-1)}),3);
case 3:b++;U.jumpTo(2);break;case 4:return U.return(l)}})};
OBz=function(X){return X.domainLookupStart===0&&X.domainLookupEnd===0&&X.connectStart===0&&X.connectEnd===0||X.duration===0};
mCW=function(X,H,l){l=l===void 0?"GET":l;var b,U,K,w,d,B,q,u,e,y;return _.h(function(V){if(V.nextAddress==1)return V.yield(Promise.all([vRy(X,l),vRy(H,l)]),2);b=V.yieldResult;U=_.C(b);K=U.next().value;w=U.next().value;d=K;B=w;if(Math.min.apply(Math,_.LJ(B))!==Math.max.apply(Math,_.LJ(B))||Math.min.apply(Math,_.LJ(d))!==Math.max.apply(Math,_.LJ(d)))return V.return(2);if(Math.min.apply(Math,_.LJ(B))===Math.min.apply(Math,_.LJ(d)))return V.return(1);u=(q=performance.getEntriesByName(X))==null?void 0:
q[0];y=(e=performance.getEntriesByName(H))==null?void 0:e[0];return u&&y?OBz(y)?V.return(1):OBz(u)?V.return(0):V.return(1):V.return(2)})};
Bem=function(){var X;return _.h(function(H){var l=[];var b;var U,K,w;(U=b=(U=Xam().objectRepresentation.streamingData)==null?void 0:(K=U.formats)==null?void 0:(w=K[0])==null?void 0:w.url)&&U&&!b.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(U=U.replace("initcwndbps","ctier=L&initcwndbps"),U=U.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),b={testUrl:U,baseUrl:b,method:"GET"}):b=void 0;b&&l.push(b);_.P("ab_net_tp_e")&&l.push({testUrl:_.ok.location.origin+"/ad_companion",baseUrl:_.ok.location.origin+
"/generate_204",method:"OPTIONS"});_.P("ab_fix_creator_view_cnt")&&(l.length=0,(b=iBm(/api\/stats\/atr/))&&l.push({testUrl:_.ok.location.origin+b,baseUrl:_.ok.location.origin+"/generate_204",method:"POST"}));_.P("ad_net_pb_pbp")&&(b=iBm(/api\/stats\/qoe/))&&l.push({testUrl:_.ok.location.origin+b,baseUrl:_.ok.location.origin+"/feed/download",method:"GET"});l=l.length!==0?l[Math.floor(Math.random()*l.length)]:void 0;return(X=l)?H.return(mCW(X.testUrl,X.baseUrl,X.method)):H.return(4)})};
_.paz=function(){if(_.ok.mZ1===void 0||_.ok.mZ1===null||typeof _.ok.mZ1!=="function")return 2;try{return _.ok.mZ1()===!0?0:1}catch(X){return 0}};
QrO=function(X){switch(X){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Hp(X,"unknown result type")}};
_.TeK=function(X,H){var l=Number(_.gx("CATSTAT",0));if(H.tEx===void 0)return l;H=H.tEx;X=QrO(X);return l&~(3<<H)|X<<H};
NeN=function(X){var H,l;if((X=(H=X.auxiliaryUi)==null?void 0:(l=H.messageRenderers)==null?void 0:l.bkaEnforcementMessageViewModel)&&X.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return X};
jrN=function(){for(var X=_.C(Object.values(_.cKz)),H=X.next();!H.done;H=X.next())H=H.value,H.hXX&&H.tEx&&_.Et("CATSTAT",_.TeK(2,H))};
_.J0=function(X,H){X=_.j0("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",X);(H===void 0?0:H)?_.rK8(X,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.rR().logFlowEvent(X,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Lkk=function(){if(!JKZ){if(Polymer.Base){var X=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{X.apply(this,arguments)}catch(e){_.a0(e)}};
var H=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{H.apply(this,arguments)}catch(e){_.a0(e)}};
var l=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{l.apply(this,arguments)}catch(e){_.a0(e)}};
var b=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{b.apply(this,arguments)}catch(e){_.a0(e)}};
var U=Polymer.Base._listen,K=new WeakMap;Polymer.Base._listen=function(e,y,V){var p=function(){try{V.apply(this,arguments)}catch(z){_.a0(z)}};
K.set(V,p);U.call(this,e,y,p)};
var w=Polymer.Base._unlisten;Polymer.Base._unlisten=function(e,y,V){w.call(this,e,y,K.get(V))}}if(Polymer.Async){var d=Polymer.Async,B=d._atEndOfMicrotask;
d._atEndOfMicrotask=function(){try{B.apply(d,arguments)}catch(e){_.a0(e)}}}if(Polymer.RenderStatus){var q=Polymer.RenderStatus,u=q.afterNextRender;
q.afterNextRender=function(e,y,V){u.call(q,e,function(){try{y.apply(this,arguments)}catch(p){_.a0(p)}},V)}}JKZ=!0}};
_.Iwb=function(X){var H=X?_.c1(X):"";if(H){if(H.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(H.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(H.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(H.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(H.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.P("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(H.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";H=H.toLowerCase();if(H==="/")return"home";if(H==="/channel_memberships")return"channel-memberships-shopfront";if(H.indexOf("/feed/trending")===0)return"trending";if(H.indexOf("/feed/explore")===0)return"explore";if(H.indexOf("/live")===0)return"live";if(H.indexOf("/results")===0)return"search";if(H.indexOf("/sports")===0)return"sports";if(H.indexOf("/fashion")===0||H.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(H))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(H))return _.P("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(H.indexOf("/channel/")===0||H.indexOf("/user/")===0||H.indexOf("/gaming")===0||H.indexOf("/post/")===0)return"channel";if(YOb(X))return"show";if(H==="/playlist"||H.indexOf("/playlist/")===0||H==="/view_play_list"||H.indexOf("/view_play_list/")===0||H.indexOf("/show/")===0)return"playlist";if(H==="/companion_canvas")return"companion-canvas";if(H==="/feed/history"||
H.indexOf("/feed/history/")===0)return"history";if(H==="/new")return"labs";if(H==="/feed/subscriptions")return"subscriptions";if(H.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(H==="/history_controls")return"standalone";if(H.indexOf("/account")===0||H==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(H.indexOf("/paid_memberships")===0||H.indexOf("/refund")===0||H.indexOf("/purchases")===0||H.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(H.indexOf("/product")===
0)return"yts-products";if(H.indexOf("/premium")===0||H.indexOf("/musicpremium")===0)return H.indexOf("/premium/offers")===0||H.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(H==="/cart/checkout"||H==="/cart")return"ypc-checkout";if(H.indexOf("/reporthistory")===0)return _.P("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(H.indexOf("/feed/downloads")===0||H.indexOf("/redeem")===0)return"browse";if(H.indexOf("/hashtag")===0)return"hashtag-landing-page";if(H.indexOf("/handle")===
0)return"handle";if(H.indexOf("/source")===0)return"audio-pivot";if(H.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(H.indexOf("/playables")===0)return"playables";if(H.indexOf("/create/live/join")===0)return"open-in-app";if(H.indexOf("/shorts")===0)return"shorts";if(H.indexOf("/feed/channels")===0)return"subscriptions-channels";var l=X?_.c1(X):"";l&&l.indexOf("/watch")===0&&_.P("web_watch_enable_learning_journey")?(X=_.QO(X),X=!!X.list&&X.list.indexOf("LJPP")===0):X=!1;if(X)return"learning_journey_watch";
if(_.P("enable_new_page_subtypes_for_ai_companion")&&H==="/feed/courses")return"your-courses"}};
_.LT=function(X){var H,l;(X=(l=_.f(X==null?void 0:X.commandMetadata,_.Ip))==null?void 0:l.url)&&(H=_.Iwb(X));return H};
YOb=function(X){var H=X?_.c1(X):"";if(!H)return!1;H=H.toLowerCase();return H.indexOf("/show/")===0||H.indexOf("/playlist")===0&&(X=_.QO(X),X.list&&X.list.indexOf("EL")===0)?!0:!1};
A0=function(X){var H="unknown",l;var b=((l=_.f(X==null?void 0:X.commandMetadata,_.Ip))==null?void 0:l.webPageType)||"";b?(l=b.toLowerCase(),l.startsWith("web_page_type_")&&(l=l.slice(14))):l=b;l&&AK8[l.toUpperCase()]?H=AK8[l.toUpperCase()]:_.f(X,_.YM)||_.f(X,XNy)?H="browse":_.f(X,_.IH)?H="search":_.f(X,_.ku)&&(H="watch");H==="watch"&&_.LT(X||null)==="learning_journey_watch"&&(H="learning_journey_watch");H==="unknown"&&_.x2(Error("Uf`"+JSON.stringify({clickTrackingParams:X==null?void 0:X.clickTrackingParams,
commandMetadata:X==null?void 0:X.commandMetadata,allEndpointKeys:Object.keys(X||[])})));return H};
_.Xs=function(X){if(!_.HHK||X)_.HHK=_.bB();return _.HHK};
_.lyN=function(X){return!!_.f(X,_.ku)||!!_.f(X,_.HM)&&_.P("kevlar_enable_shorts_prefetch")};
_.oty=function(X,H){X=_.f(X,_.ku)||_.f(X,_.HM);return"v"+X.videoId+(X.playlistId?"-pl"+X.playlistId:"")+(H?"-an1":"")+(X.params?"-pr"+X.params:"")};
_.bHy=function(X){var H=new l$(_.gx("ONE_PICK_URL",""));H.urlParamMap_.set("hostId",X);(X=_.gx("GAPI_LOCALE"))&&H.urlParamMap_.set("hl",X);(X=_.gx("SESSION_INDEX"))&&H.urlParamMap_.set("authuser",X);(X=_.gx("DELEGATED_SESSION_ID"))&&H.urlParamMap_.set("groupId",X);return H};
$tz=function(){var X=_.jJ(),H=X.resolve(_.o6);X=X.resolve(_.b$);return new Utz(H,X)};
R1h=function(X){if(window.IntersectionObserver)return new KUk(X,400);throw new TypeError("Wf");};
wNN=function(){var X=Hammer.TouchAction,H=X.prototype.preventDefaults;X.prototype.preventDefaults=function(l){var b=this.actions.indexOf("pan-down")>-1;if(!b)return H.call(this,l);if(!CnW){var U=l.srcEvent;l=l.direction;var K;if((K=this.manager)==null?0:K.session.prevented)U.preventDefault();else if(b&&l&Hammer.DIRECTION_DOWN)return this.preventSrc(U)}}};
dtL=function(X){if(!X||X.size===0)return Hammer.DIRECTION_ALL;if(X.size===2){if(X.has("up")&&X.has("down"))return Hammer.DIRECTION_VERTICAL;if(X.has("right")&&X.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(X.size===1){if(X.has("up"))return Hammer.DIRECTION_UP;if(X.has("down"))return Hammer.DIRECTION_DOWN;if(X.has("right"))return Hammer.DIRECTION_RIGHT;if(X.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.R6=function(X,H,l){var b=l&&l>0?l:0;l=b?Date.now()+b*1E3:0;if((b=b?_.Ke.getLocalStorage():_.Ke.getSessionStorage())&&window.JSON){typeof H!=="string"&&(H=JSON.stringify(H,void 0));try{b.set(X,H,l)}catch(U){b.remove(X)}}};
_.Ce=function(X){var H=_.Ke.getSessionStorage(),l=_.Ke.getLocalStorage();if(!H&&!l||!window.JSON)return null;try{var b=H.get(X)}catch(U){}if(typeof b!=="string")try{b=l.get(X)}catch(U){}if(typeof b!=="string")return null;try{b=JSON.parse(b,void 0)}catch(U){}return b};
_.wu=function(X){try{var H=_.Ke.getSessionStorage(),l=_.Ke.getLocalStorage();H&&H.remove(X);l&&l.remove(X)}catch(b){}};
FUZ=function(X){var H=h1b(),l;return _.h(function(b){switch(b.nextAddress){case 1:return _.Ew(b,2),b.yield(X.match(H,{cacheName:"yt-appshell-assets"}),4);case 4:l=b.yieldResult;_.Zt(b,3);break;case 2:_.Ow(b);case 3:return b.return(l)}})};
h1b=function(){var X=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Byy.registration.scope:qhm;X.endsWith("/")&&(X=X.slice(0,-1));return X+"/app_shell_home"};
sYl=function(X){X.map(function(H){return H.source}).join("|")};
_.M6l=function(X){return _.h(function(H){return H.return(FUZ(X))})};
u7y=function(){var X=window.caches,H;return _.h(function(l){if(l.nextAddress==1)return l.yield(_.M6l(X),2);H=l.yieldResult;return l.return(!!H)})};
Shl=function(){_.h(function(X){if(X.nextAddress==1){if(e1k)return X.jumpTo(0);e1k=!0;if(_.P("enable_system_health_primes_monitoring"))return _.UZ(ygy,3E4),V68(),X.return();if(!(Math.random()<_.Yy("web_system_health_fraction")))return X.jumpTo(0);PnL={heightPixels:screen.height,widthPixels:screen.width};du&&!isNaN(du.jsHeapSizeLimit)&&(PnL.memoryTotalKbytes=String(Math.round(du.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(PnL.devicePixelRatio=window.devicePixelRatio);return X.yield(fyl(),4)}_.UZ(ygy,
3E4);return X.yield(pNy(),0)})};
fyl=function(){return _.h(function(X){if(X.nextAddress==1)return h2.intersectionObserverPresent="IntersectionObserver"in window,h2.serviceWorkerPresent="serviceWorker"in navigator,h2.webSharePresent="share"in navigator,h2.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,h2.cacheStoragePresent="caches"in window,h2.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,h2.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
h2.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Fs&&Fs.webkitTemporaryStorage&&"queryUsageAndQuota"in Fs.webkitTemporaryStorage,h2.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",X.yield(jHy(),2);h2.indexedDbPresent=X.yieldResult;h2.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;h2.broadcastChannelPresent="BroadcastChannel"in window;h2.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(h2.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,h2.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.m5(X)})};
ygy=function(){var X=9E4+Math.random()*2E3;_.JV()>X||(_.P("enable_system_health_primes_monitoring")?V68():pNy())};
pNy=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield(z1y(),2);X=H.yieldResult;_.Sh("systemHealthCaptured",X);_.m5(H)})};
V68=function(){var X={metric:{}},H=ntN();H.networkEvents.length&&(X.metric.networkEvents=ktl(H));_.Sh("systemHealthCaptured",X)};
z1y=function(){var X,H,l,b,U,K,w,d,B,q;return _.h(function(u){switch(u.nextAddress){case 1:X={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};H=window.screen;_.P("enable_is_extended_monitoring")&&H&&"isExtended"in H&&(X.isExtended=!!H.isExtended);l={metric:{staticContext:PnL,dynamicContext:X,webMetric:xtz,webApiSupport:h2}};
if(b=_.Bi())l.csn=b;du&&(l.metric.webMetric.currentHeapKbytes=Math.round(du.usedJSHeapSize/1E3));window.matchMedia&&(l.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,l.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,l.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Fs&&typeof Fs.getBattery==="function")){u.jumpTo(2);break}return u.yield(Fs.getBattery(),3);case 3:if(U=
u.yieldResult)l.metric.dynamicContext.chargingStatus=U.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(l.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(h2.storageEstimatePresent)return u.yield(navigator.storage.estimate(),8);if(!h2.webkitTemporaryStoragePresent){u.jumpTo(5);break}return u.yield(Dtk(),7);case 7:K=u.yieldResult;u.jumpTo(5);break;case 8:K=u.yieldResult;case 5:return l.metric.dynamicContext.deviceStorageQuotaMbytes=((w=K)==null?0:w.quota)?String(Math.round(K.quota/
1048576/10)*10):"-1",l.metric.dynamicContext.deviceStorageUsageMbytes=((d=K)==null?0:d.usage)?String(Math.round(K.usage/1048576/10)*10):"-1",B=l.metric.dynamicContext,u.yield(u7y(),9);case 9:return B.hasAppShell=u.yieldResult,q=ntN(),q.networkEvents.length&&(l.metric.networkEvents=ktl(q)),u.return(l)}})};
Dtk=function(){return new Promise(function(X){var H;h2.webkitTemporaryStoragePresent&&(H=Fs.webkitTemporaryStorage)!=null&&H.queryUsageAndQuota?Fs.webkitTemporaryStorage.queryUsageAndQuota(function(l,b){X({usage:l,quota:b})}):X(void 0)})};
_.BM=function(X){X&=16777215;X=[(X&16711680)>>16,(X&65280)>>8,X&255];return rfb(X[0],X[1],X[2])};
_.qw=function(X){X=[(X&16711680)>>>16,(X&65280)>>>8,X&255,(X&4278190080)>>>24];if(!_.t6k(X,function(H){return H===(H&255)}))throw Error("Xf`"+X.join(","));
return"rgba("+X[0]+","+X[1]+","+X[2]+","+(X[3]/255).toFixed(3)+")"};
_.WUh=function(X){return[(X&16711680)>>>16,(X&65280)>>>8,X&255]};
_.EtZ=function(X){X=X.map(function(H){H/=255;return H<=.03928?H/12.92:Math.pow((H+.05)/1.05,2.4)});
return X[0]*.2126+X[1]*.7152+X[2]*.0722};
si=function(X,H){X=_.WUh(X);return"rgba("+X[0]+", "+X[1]+", "+X[2]+", "+H+")"};
Mw=function(X){return(X&4278190080)>>>24===0?si(X,"1"):_.qw(X)};
_.gtZ=function(){try{return!!self.localStorage}catch(X){return!1}};
iHy=function(){if(GtW())_.x2(Error("Yf"));else{var X=document.createElement("iframe");X.style.display="none";var H=H===void 0?window.location.href:H;var l=_.zd(_.gx("PERSIST_IDENTITY_IFRAME_URL"));H=l?l:(new URL(H)).host.indexOf("studio")===0?_.z8(ayh,"persist_identity"):_.z8(ZHK,"persist_identity");_.CJ(X,1,H);X.id="persist_identity";var b;(b=document.body)==null||b.appendChild(X)}};
GtW=function(){var X=vtk;X||(X=document.querySelector("#persist_identity"));return X};
OHy=function(){var X=!1;try{X=!!window.sessionStorage.getItem("session_logininfo")}catch(H){X=!0}return(_.gx("INNERTUBE_CLIENT_NAME")==="WEB"||_.gx("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&X};
mtb=function(X,H){if(!OHy())return!1;H||(H=_.gx("LOGIN_INFO"));return H?(X.session_logininfo=H,!0):!1};
Tyy=function(X,H){X=X===void 0?!1:X;if((H===void 0||!H)&&QYz!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.G7("LOG_STICKINESS",!1)){H=_.Bi();var l=_.F6(),b={identityStickinessData:{initialState:QYz}};H&&l&&_.tY(H,l,b)}if(H=GtW())if(l=H.src?(new URL(H.src)).origin:"*",X){var U;(U=H.contentWindow)==null||U.postMessage({action:"clear"},l)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(X=window.sessionStorage.getItem("session_logininfo"))){var K;(K=H.contentWindow)==null||K.postMessage({loginInfo:X},l)}};
_.u$=function(X){X=X===void 0?!0:X;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Et("LOGIN_INFO",""),X&&window.sessionStorage.setItem("from_switch_account","1"),Tyy(!0,X)}catch(H){}};
NyL=function(X){X&&(X.startsWith("https://accounts.google.com/AddSession")?_.u$():X.startsWith("https://accounts.google.com/ServiceLogin")?_.u$():X.startsWith("https://myaccount.google.com")&&_.iI(X).getPath().endsWith("/youtubeoptions")&&_.u$())};
e4=function(X,H){NyL(X);if(_.G7("LOGGED_IN",!0)&&OHy()){var l=Jih(X);l==null&&(l={});mtb(l,H)&&_.Ec(X,l)}};
cgO=function(){function X(H){for(H=H.target;H&&H.nodeName!=="A";)if(H=H.parentNode,!(H&&H instanceof HTMLElement))return;if(H&&!H.hasAttribute("download")&&H.getAttribute("rel")!=="external"&&H.href)return H.href}
document.addEventListener("mousedown",function(H){H.button!==0&&(H=X(H))&&e4(H)});
document.addEventListener("click",function(H){(H=X(H))&&e4(H)})};
Jgy=function(){var X=new jYL;try{if(_.G7("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(d){X.increment(5,!1);return}if(_.gx("LOGIN_INFO")){var H=rgl?rgl:window.location;_.gx("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&iHy();var l=Jih(H.href);l==null&&(l={});var b=l.session_logininfo,U=Number(window.sessionStorage.getItem("stickiness_reload")),K=b===_.gx("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
U>=2||K)U>=2?X.increment(2,K):K?X.increment(7,K):window.sessionStorage.getItem("session_logininfo")||(X.increment(3,K),QYz="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.gx("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.gx("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))X.increment(4,K),window.sessionStorage.removeItem("stickiness_reload");
else if(U<2){window.sessionStorage.setItem("stickiness_reload",String(U+1));var w=H.href;w=_.lB(w,"sttick");e4(w,window.sessionStorage.getItem("session_logininfo"));w=_.T7(w,{sttick:U});X.increment(U,K);_.gmN(H,w)}}else X.increment(6,!1)}else _.u$(!1)}catch(d){}};
_.y_=function(X,H,l,b,U){H=H===void 0?{}:H;l=l===void 0?"":l;b=b===void 0?window:b;X=_.An(X,H);e4(X);l=_.Yn(X+l,U);_.gmN(b.location,l)};
LU8=function(X){if(X.urlEndpoint){if(X=_.QO(X.urlEndpoint.url),X.adurl)return L$(X.adurl)}else if(X.watchEndpoint)return"//www.youtube.com/watch?v="+X.watchEndpoint.videoId;return null};
YhW=function(X){if(!X||!X.reportingPings)return null;var H={};X.reportingPings.forEach(function(l){l.pingType in H?H[l.pingType].push(l.url):H[l.pingType]=[l.url]});
return{adpings:VFm(H)}};
_.PM=function(X){X=X===void 0?!1:X;var H=_.oO(),l="USER_INTERFACE_THEME_LIGHT";H.getFlag(165)?l="USER_INTERFACE_THEME_DARK":H.getFlag(174)?l="USER_INTERFACE_THEME_LIGHT":_.V_()&&(l="USER_INTERFACE_THEME_DARK");return X?l:Iyy()||l};
_.Agk=function(){return!_.P("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.V_=function(){return _.Agk()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.fe=function(){var X=_.oO();return _.Agk()&&!X.getFlag(165)&&!X.getFlag(174)};
Iyy=function(){var X=X===void 0?window.location.href:X;if(_.P("kevlar_disable_theme_param"))return null;var H=_.c1(X);if(_.Xnk(H))return"USER_INTERFACE_THEME_DARK";try{var l=_.QO(X).theme;return Hhy.get(l)||null}catch(b){}return null};
_.Xnk=function(X){return _.P("enable_dark_theme_only_on_shorts")?!(X==null||!X.startsWith("/shorts/")):!1};
_.zW=function(X,H,l,b,U){H=H===void 0?!1:H;l=l===void 0?!1:l;var K=_.gx("INNERTUBE_CONTEXT");if(!K)return _.n2(Error("bg")),{};K=(0,_.Bb.unsafeClone)(K);_.P("web_no_tracking_params_in_shell_killswitch")||delete K.clickTracking;K.client||(K.client={});var w=K.client;w.clientName==="MWEB"&&w.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(w.clientFormFactor=_.gx("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");w.screenWidthPoints=window.innerWidth;w.screenHeightPoints=window.innerHeight;w.screenPixelDensity=
Math.round(window.devicePixelRatio||1);w.screenDensityFloat=window.devicePixelRatio||1;w.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());w.userInterfaceTheme=_.PM();if(!H){var d=_.sHO();d&&(w.connectionType=d);_.P("web_log_effective_connection_type")&&(d=uek())&&(K.client.effectiveConnectionType=d)}var B;if(_.P("web_log_memory_total_kbytes")&&((B=_.ok.navigator)==null?0:B.deviceMemory)){var q;B=(q=_.ok.navigator)==null?void 0:q.deviceMemory;K.client.memoryTotalKbytes=""+B*1E6}H&&b&&!_.P("web_it_context_set_original_url_ks")&&
(w.originalUrl=l_h(_.ok.location.href,b).toString());_.P("web_gcf_hashes_innertube")&&(d=nhl())&&(q=d.coldConfigData,B=d.coldHashData,d=d.hotHashData,K.client.configInfo=K.client.configInfo||{},q&&(K.client.configInfo.coldConfigData=q),B&&(K.client.configInfo.coldHashData=B),d&&(K.client.configInfo.hotHashData=d));q=_.QO(_.ok.location.href);!_.P("web_populate_internal_geo_killswitch")&&q.internalcountrycode&&(w.internalGeo=q.internalcountrycode);!_.P("web_populate_client_screen_killswitch")&&U&&(w.clientScreen=
U);w.clientName==="MWEB"||w.clientName==="WEB"?(w.mainAppWebInfo||(w.mainAppWebInfo={}),w.mainAppWebInfo.graftUrl=b||_.ok.location.href,_.P("kevlar_woffle")&&_.pe.instance&&(b=_.pe.instance,w.mainAppWebInfo.pwaInstallabilityStatus=!b.appInstalledEventFired&&b.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),w.mainAppWebInfo.webDisplayMode=eKz(),w.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):w.clientName==="TVHTML5"&&
(!_.P("web_lr_app_quality_killswitch")&&(b=_.gx("LIVING_ROOM_APP_QUALITY"))&&(w.tvAppInfo=Object.assign(w.tvAppInfo||{},{appQuality:b})),b=_.gx("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(w.tvAppInfo=Object.assign(w.tvAppInfo||{},{certificationScope:b}));!_.P("web_populate_time_zone_itc_killswitch")&&(b=BRW())&&(w.timeZone=b);(b=gB8())?w.experimentsToken=b:delete w.experimentsToken;w=Guh();b=_.o5y();b=(0,_.Bb.getValues)(b.tokenJars);K.request=Object.assign({},K.request,{internalExperimentFlags:w,consistencyTokenJars:b});
!_.P("web_prequest_context_killswitch")&&(w=_.gx("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(K.request.externalPrequestContext=w);b=_.oO();w=b.getFlag(58);b=b.get("gsml","");K.user=Object.assign({},K.user);w&&(K.user.enableSafetyMode=w);b&&(K.user.lockedSafetyMode=!0);_.P("warm_op_csn_cleanup")?l&&(H=_.Bi())&&(K.clientScreenNonce=H):!H&&(H=_.Bi())&&(K.clientScreenNonce=H);X&&(K.clickTracking={clickTrackingParams:X});if(X=_.ij("yt.mdx.remote.remoteClient_"))K.remoteClient=X;_.S4.getInstance().setLocationOnInnerTubeContext(K);
try{var u=cYW(),e=u.bid;delete u.bid;K.adSignalsInfo={params:[],bid:e};for(var y=_.C(Object.entries(u)),V=y.next();!V.done;V=y.next()){var p=_.C(V.value),z=p.next().value,t=p.next().value;u=z;e=t;X=void 0;(X=K.adSignalsInfo.params)==null||X.push({key:u,value:""+e})}var W,G;if(((W=K.client)==null?void 0:W.clientName)==="TVHTML5"||((G=K.client)==null?void 0:G.clientName)==="TVHTML5_UNPLUGGED"){var r=_.gx("INNERTUBE_CONTEXT");r.adSignalsInfo&&(K.adSignalsInfo.advertisingId=r.adSignalsInfo.advertisingId,
K.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",K.adSignalsInfo.limitAdTracking=r.adSignalsInfo.limitAdTracking)}}catch(Q){_.n2(Q)}return K};
_.ne=function(){return{isShellLoad:_.G7("IS_SHELL_LOAD",!1)}};
UxZ=function(){navigator.serviceWorker.getRegistrations().then(function(X){X.forEach(bhL)})};
bhL=function(X){X&&_.$xO(KJb,X.scope)};
_.$xO=function(X,H){H={scope:H||_.I0("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.OU(X),H)};
kh=function(X,H,l,b){if(H&&H.serializedYpcCujLoggingParams){if(l){var U={};U.transactionErrorType=l;b&&(U.errorMessage=b);H.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:U}}}l={};l.ypcCujContext=H;X=_.j0("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",X,l);_.rR().logFlowEvent(X,"FLOW_TYPE_YPC_ACQUISITION")}};
_.RxZ=function(X,H,l,b){var U={};U.serializedTransactionFlowLoggingParams=H;l&&(U.errorType=l);b&&(U.errorMessage=b);_.Sh(X,U);_.z3()};
_.CVh=function(X){X&&_.RxZ("transactionFlowStarted",X)};
_.wnN=function(X){X&&_.RxZ("transactionFlowCancelled",X)};
_.xh=function(X,H,l){H&&_.RxZ("transactionFlowFailed",H,X,l)};
dxW=function(X){var H=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");H&&(H.inert=X)};
_.Dc=function(){this.megabloxUrl_=null};
_.t2=function(X){try{var H=hxy==null?void 0:hxy.composedPath(X)}catch(l){H=X.composedPath?X.composedPath():[]}return H&&H.length>0?H:X.composedPath?X.composedPath():[]};
_.WM=function(X){return _.t2(X)[0]};
Ei=function(X){return X instanceof ShadowRoot?ShadowRoot:X instanceof DocumentFragment?DocumentFragment:X instanceof Document?Document:HTMLElement};
FJy=function(X){if(X instanceof Element)return Element.prototype;if(X instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("fg`"+X);};
B7K=function(X,H){return _.P("sunnydom_native_scoped_query_selectors")?FJy(X).querySelector.call(X,H):Ei(X).prototype.querySelector.call(X,H)};
q0K=function(X,H){return _.P("sunnydom_native_scoped_query_selectors")?FJy(X).querySelectorAll.call(X,H):Ei(X).prototype.querySelectorAll.call(X,H)};
sgy=function(X){var H,l,b;return(b=(l=(H=X.parentElement)!=null?H:X.__shady_native_parentElement)!=null?l:X.__shady_parentElement)!=null?b:null};
M9K=function(X){var H,l,b;return(b=(l=(H=X.parentNode)!=null?H:X.__shady_native_parentNode)!=null?l:X.__shady_parentNode)!=null?b:null};
upN=function(X){var H,l,b;return(b=(l=(H=X.nextSibling)!=null?H:X.__shady_native_nextSibling)!=null?l:X.__shady_nextSibling)!=null?b:null};
exb=function(X){var H,l,b;return(b=(l=(H=X.previousSibling)!=null?H:X.__shady_native_previousSibling)!=null?l:X.__shady_previousSibling)!=null?b:null};
yuy=function(X){var H,l,b;return(b=(l=(H=X.nextElementSibling)!=null?H:X.__shady_native_nextElementSibling)!=null?l:X.__shady_nextElementSibling)!=null?b:null};
V9y=function(X){var H,l,b;return(b=(l=(H=X.previousElementSibling)!=null?H:X.__shady_native_previousElementSibling)!=null?l:X.__shady_previousElementSibling)!=null?b:null};
PVy=function(X){var H,l,b;return new Set([].concat(_.LJ((H=X.children)!=null?H:[]),_.LJ((l=X.__shady_native_children)!=null?l:[]),_.LJ((b=X.__shady_children)!=null?b:[])))};
f_b=function(X){var H,l,b;return new Set([].concat(_.LJ((H=X.childNodes)!=null?H:[]),_.LJ((l=X.__shady_native_childNodes)!=null?l:[]),_.LJ((b=X.__shady_childNodes)!=null?b:[])))};
_.gu=function(X){if(!(X instanceof Element))return null;X=X.classList?Array.from(X.classList):void 0;if(!X)return null;var H=X.indexOf("style-scope");return H>-1&&H+1<X.length?X[H+1]:null};
GW=function(X){if(!(X instanceof HTMLElement))return null;var H=X&&(X.$$||X.polymerController)?X.tagName.toLowerCase():null;return H?H:_.gu(X)};
pnb=function(X,H){return _.P("sunnydom_native_scoped_query_selectors")?X+".style-scope."+H:X.replace(/[^a-z]*[^\s]+/g,function(l){return l+".style-scope."+H})};
S0y=function(X,H){return H?X.split(",").map(function(l){return pnb(l.trim(),H)}).join(", "):X};
_.a6=function(X){var H,l,b,U;return(U=(b=(l=(H=X.root)!=null?H:X.shadowRoot)!=null?l:X.__shady_native_shadowRoot)!=null?b:X.__shady_shadowRoot)!=null?U:X};
zxm=function(X){var H,l,b;return(b=(l=(H=X.__shady_parentNode)!=null?H:X.__shady_native_parentNode)!=null?l:X.parentNode)!=null?b:null};
n5Z=function(X){var H,l;return(l=(H=M9K(X))!=null?H:X.host)!=null?l:null};
k5h=function(X){for(;X&&!(X instanceof HTMLElement);)X=n5Z(X);return X};
xxZ=function(X){var H=k5h(X);return X===H?_.gu(X):H?GW(H):null};
Dxm=function(X){return(X=k5h(X))?GW(X):null};
t9O=function(X){if(X instanceof Comment)return!1;if(X instanceof Text){var H,l;if(((l=(H=X.textContent)==null?void 0:H.trim())!=null?l:"")==="")return!1}return!0};
Zc=function(X,H,l){var b=H(X);for(l=l===void 0?Dxm(X):l;b&&(xxZ(b)!==l||!t9O(b));)X=b,b=H(X);return b};
WJm=function(X,H,l){if(!H)return null;X=Dxm(X);return xxZ(H)===X&&t9O(H)?H:Zc(H,l,X)};
E5l=function(X){return Zc(X,zxm,_.gu(X))};
g5O=function(X){return Zc(X,yuy)};
G5O=function(X){return Zc(X,upN)};
a_Z=function(X){return Zc(X,V9y)};
Zhy=function(X){return Zc(X,exb)};
ihk=function(X){return WJm(X,X.firstChild||null,upN)};
v5W=function(X){var H,l,b;var U=(b=(l=(H=X.firstElementChild)!=null?H:X.__shady_native_firstElementChild)!=null?l:X.__shady_firstElementChild)!=null?b:null;return WJm(X,U,yuy)};
Oh8=function(X){var H,l,b;var U=(b=(l=(H=X.lastChild)!=null?H:X.__shady_native_lastChild)!=null?l:X.__shady_lastChild)!=null?b:null;return WJm(X,U,exb)};
mxZ=function(X){var H,l,b;var U=(b=(l=(H=X.lastElementChild)!=null?H:X.__shady_native_lastElementChild)!=null?l:X.__shady_lastElementChild)!=null?b:null;return WJm(X,U,V9y)};
QgW=function(X){var H=Dxm(X);return Array.from(f_b(X)).filter(function(l){return xxZ(l)===H})};
T7K=function(X){var H=GW(X);return Array.from(PVy(X)).filter(function(l){return _.gu(l)===H})};
N7m=function(X){if(!X)return null;var H=_.gu(X);if(!H){var l;return(l=Node.prototype.getRootNode)==null?void 0:l.call(X)}H=H.toUpperCase();for(X=sgy(X);X&&X.tagName!==H;)X=sgy(X);return X?_.a6(X):null};
_.i$=function(X,H,l){if(X instanceof HTMLElement&&_.gu(X)===l){var b=Array.from(X.classList).indexOf("style-scope");if(b===-1)X.classList.add("style-scope"),X.classList.add(H);else if(!(b+1>=X.classList.length)){b=X.classList[b+1];var U,K;X==null||(U=X.classList)==null||(K=U.replace)==null||K.call(U,b,H)}}if(X instanceof HTMLElement||X instanceof DocumentFragment)for(U=_.C(PVy(X)),K=U.next();!K.done;K=U.next())_.i$(K.value,H,l);return X};
vM=function(X,H){if(X instanceof HTMLElement&&_.gu(X)===H){var l=Array.from(X.classList).indexOf("style-scope");l===-1||l+1>=X.classList.length||X.classList.remove("style-scope",X.classList[l+1])}if(X instanceof HTMLElement||X instanceof DocumentFragment){l=_.C(X.children);for(var b=l.next();!b.done;b=l.next())vM(b.value,H)}return X};
_.cub=function(X,H){return Ei(X).prototype.appendChild.call(X,H)};
jgO=function(X,H){if(X===H)return!0;X=f_b(X);return Array.from(X).some(function(l){return jgO(l,H)})};
_.mh=function(X,H){if(X instanceof Oi)return X;(H==null?0:H.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(X,"ownerDocument")&&Object.defineProperty(X,"ownerDocument",{get:function(){return window.document}});
return new Oi(X)};
Jub=function(){var X=Oi.prototype,H=[].concat(_.LJ(ruW?[]:["getRootNode"]),["setAttribute","removeAttribute"]);H=_.C(H);for(var l=H.next(),b={};!l.done;b={method$jscomp$53:void 0},l=H.next())b.method$jscomp$53=l.value,X[b.method$jscomp$53]=function(U){return function(){return this.host[U.method$jscomp$53].apply(this.host,arguments)}}(b)};
Y0l=function(){var X=Oi.prototype,H=[].concat(_.LJ(ruW?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.LJ(LJz?[]:["querySelector","querySelectorAll"]));H=_.C(H);for(var l=H.next(),b={};!l.done;b={method$jscomp$54:void 0},l=H.next())b.method$jscomp$54=l.value,X[b.method$jscomp$54]=function(U){return function(){return this.root[U.method$jscomp$54].apply(this.root,arguments)}}(b)};
XTN=function(){var X=Oi.prototype,H=[].concat(_.LJ(I_y?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.LJ(Aum?[]:["parentNode"]));H=_.C(H);for(var l=H.next(),b={};!l.done;b={prop$jscomp$67:void 0},l=H.next())b.prop$jscomp$67=l.value,Object.defineProperty(X,b.prop$jscomp$67,{get:function(U){return function(){return this.host[U.prop$jscomp$67]}}(b),
configurable:!0})};
oIb=function(){var X=Oi.prototype,H=["activeElement"].concat(_.LJ(I_y?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.LJ(Hzy?[]:["children"]),_.LJ(lGy?[]:["lastChild"]));H=_.C(H);for(var l=H.next(),b={};!l.done;b={prop$jscomp$68:void 0},l=H.next())b.prop$jscomp$68=l.value,Object.defineProperty(X,b.prop$jscomp$68,{get:function(U){return function(){return this.root[U.prop$jscomp$68]}}(b),
configurable:!0})};
bzy=function(){for(var X=Oi.prototype,H=_.C(["innerHTML","textContent"]),l=H.next(),b={};!l.done;b={prop$jscomp$69:void 0},l=H.next())b.prop$jscomp$69=l.value,Object.defineProperty(X,b.prop$jscomp$69,{get:function(U){return function(){return this.root[U.prop$jscomp$69]}}(b),
set:function(U){return function(K){this.root[U.prop$jscomp$69]=K}}(b),
configurable:!0})};
U$l=function(X){var H=Oi.prototype;X=_.C(Object.entries(X));for(var l=X.next(),b={};!l.done;b={fn$jscomp$401:void 0},l=X.next()){var U=_.C(l.value);l=U.next().value;U=U.next().value;b.fn$jscomp$401=U;H[l]=function(K){return function(){return K.fn$jscomp$401.apply(null,[this.host.node||this.host].concat(_.LJ(arguments)))}}(b)}};
Kny=function(){for(var X=Oi.prototype,H=_.C(Object.entries($$N)),l=H.next(),b={};!l.done;b={fn$jscomp$402:void 0},l=H.next()){var U=_.C(l.value);l=U.next().value;U=U.next().value;b.fn$jscomp$402=U;Object.defineProperty(X,l,{get:function(K){return function(){return K.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.LJ(arguments)))}}(b),
configurable:!0})}};
_.Q_=function(X){return X instanceof RFz||X instanceof Document?X:new RFz(X)};
CmW=function(){for(var X=RFz.prototype,H=_.C("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),l=H.next(),b={};!l.done;b={method$jscomp$55:void 0},l=H.next())b.method$jscomp$55=l.value,X[b.method$jscomp$55]=function(U){return function(){return HTMLElement.prototype[U.method$jscomp$55].call.apply(HTMLElement.prototype[U.method$jscomp$55],[this.node].concat(_.LJ(arguments)))}}(b)};
wTb=function(){for(var X=RFz.prototype,H=_.C("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),l=H.next(),b={};!l.done;b={prop$jscomp$70:void 0},l=H.next())b.prop$jscomp$70=l.value,Object.defineProperty(X,b.prop$jscomp$70,{get:function(U){return function(){var K;return(K=this.node["__shady_native_"+U.prop$jscomp$70])!=null?K:this.node[U.prop$jscomp$70]}}(b),
configurable:!0})};
_.TW=function(X,H,l){l===void 0&&(l=!X.classList.contains(H));l?X.classList.add(H):X.classList.remove(H)};
_.Nw=function(X,H,l){l===void 0&&(l=!X.hasAttribute(H));if(H==="class")throw Error("gg");l?_.Q_(X).setAttribute(H,""):_.Q_(X).removeAttribute(H)};
d$m=function(X){return(X.localName!=="slot"?[]:(0,_.cM)(X).assignedNodes({flatten:!0})).filter(function(H){return H.nodeType===Node.ELEMENT_NODE})};
_.hFZ=function(X){return(X=_.mh(X).querySelector("slot"))&&X.localName==="slot"?d$m(X):[]};
_.j4=function(X,H){window.ShadyCSS&&window.ShadyCSS.styleSubtree(X,H)};
ru=function(X,H){var l=H.bind(X);return function(b){l(b,b.detail)}};
_.J2=function(X,H){var l=Fnh.get(X);l||(l=new WeakMap,Fnh.set(X,l));if(l.has(H))return l.get(H);if(_.P("web_fi_listen_disable_bound_fn_helper")){var b=H.bind(X);X=function(U){b(U,U==null?void 0:U.detail)}}else X=ru(X,H);
l.set(H,X);return X};
slN=function(X,H){BGz(X);X.created[qzO].push(H)};
BGz=function(X){if(!X.created||!X.created[qzO]){var H=X.created,l=H?[H]:[];X.created=function(){for(var b=_.C(l),U=b.next();!U.done;U=b.next())U.value.apply(this)};
X.created[qzO]=l}};
Mxm=function(X){return function(){var H=_.Ab.apply(0,arguments);return function(l,b,U){X.apply(null,_.LJ(H))(l,b,U)}}};
uLN=function(){return function(){var X=_.Ab.apply(0,arguments);return function(H,l,b){ZxZ.apply(null,_.LJ(X))(H,l,b)}}};
_.k=function(X){return uLN()(X)};
_.x=function(){return Mxm(mOy).apply(null,_.LJ(_.Ab.apply(0,arguments)))};
_.Le=function(X){return _.P("pbcm_fi_listen_decorators")?eFl(X):Mxm(voZ)(X)};
eFl=function(X){return function(H,l){slN(H,function(){var b=this[l],U=_.P("web_fi_listen_disable_bound_fn_helper")?function(K){b(K,K.detail)}.bind(this):ru(this,b);
ydK.has(X)?ni(this.hostElement,X,U):this.hostElement.addEventListener(X,U)})}};
_.Yh=function(){return Mxm(OxK).apply(null,_.LJ(_.Ab.apply(0,arguments)))};
_.g=function(X){X=X===void 0?{}:X;return Mxm(ix8)(X)};
_.I6=function(X){if(X.hostElement&&X!==X.hostElement){var H=_.Uc(X.hostElement);H=X.renderIdom?H:H.shadowRoot}H||(X=X.root,H=X instanceof Node?_.Uc(X):null);return H};
_.A2=function(X){return VxK?Pml(X):function(H,l){Object.defineProperty(H,l,{get:function(){var b;return(b=_.I6(this))==null?void 0:b.querySelector(X)},
enumerable:!0,configurable:!0})}};
Pml=function(X){return function(H,l){Object.defineProperty(H,l,{get:function(){var b,U=(b=_.mh(this.hostElement))==null?void 0:b.querySelector(X);if(U)return U;var K;return(K=_.I6(this))==null?void 0:K.querySelector(X)},
enumerable:!0,configurable:!0})}};
_.Xh=function(X){return VxK?fGm(X):function(H,l){Object.defineProperty(H,l,{get:function(){var b;return(b=_.I6(this))==null?void 0:b.querySelectorAll(X)},
enumerable:!0,configurable:!0})}};
fGm=function(X){return function(H,l){Object.defineProperty(H,l,{get:function(){var b,U=(b=_.mh(this.hostElement))==null?void 0:b.querySelectorAll(X);if(U==null?0:U.length)return U;var K;return(K=_.I6(this))==null?void 0:K.querySelectorAll(X)},
enumerable:!0,configurable:!0})}};
pTO=function(X){return function(H){if(![_.rw,_.a].includes(Object.getPrototypeOf(H.prototype).constructor))throw Error("hg");xOy(Object.assign({},typeof X!=="string"?X:{is:X,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(H)}};
_.l9=function(){var X=X===void 0?{}:X;return function(H){if(![Jh,_.Hc].includes(Object.getPrototypeOf(H.prototype).constructor))throw Error("ig");DOW(Object.assign({},X,{disableInheritanceCheck:!0}))(H)}};
zFy=function(X,H){Szz[X]!=null||(Szz[X]=new Set);Szz[X].add(H)};
_.oi=function(){var X=_.Yh.apply(null,_.LJ(_.Ab.apply(0,arguments)));return function(H,l){zFy(H.is,l);X(H,l)}};
$D=function(X,H,l){if(b9(X)&&!nIl.has(H)){H=H.replace(/^JSC\$[\d]+_/,"");H=H.replace(/\.\d+(\.|$)/g,function(K,w){return".#"+w});
Uq[X]!=null||(Uq[X]={});var b,U;(b=Uq[X])[U=H]!=null||(b[U]=new Set);Uq[X][H].has(l)||(Uq[X][H].add(l),_.Sh("polymerPropertyAccessEvent",{componentName:X,propertyName:H,accessType:l}))}};
kyl=function(){return _.P("polymer_property_access_logging_debug")||_.P("polymer_enable_property_access_logging")};
b9=function(X){if(_.P("polymer_property_access_logging_debug"))return!0;if(!_.P("polymer_enable_property_access_logging"))return!1;x$h||(x$h=Date.now());return(Pi(X)+x$h)%100<_.Yy("polymer_property_access_logging_percent")};
D$8=function(X,H){return b9(H)&&X.hostElement.loggingStatus?new Proxy(X,{get:function(l,b,U){if(l.hostElement.loggingStatus.bypassProxyController)return l[b];l.hostElement.loggingStatus.isExternalGet=!0;var K=l[b];l.hostElement.loggingStatus.isExternalGet=!1;if(K instanceof Function)return function(){var w=_.Ab.apply(0,arguments);try{return l.hostElement.loggingStatus.currentExternalCall=b,$D(H,b,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),K.apply(this===U?l:this,w)}finally{l.hostElement.loggingStatus.currentExternalCall=
void 0}};
$D(H,b,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return K},
set:function(l,b,U){if(l.hostElement.loggingStatus.bypassProxyController)return l[b]=U,!0;l.hostElement.loggingStatus.isRendererStamper?$D(H,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):l.hostElement.loggingStatus.isDeclarativeExternal||$D(H,b,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{l.hostElement.loggingStatus.currentExternalSet=b,l[b]=U}finally{l.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):X};
txZ=function(X,H){X&&X.loggingStatus&&!X.loggingStatus.isDeclarativeExternal&&!X.loggingStatus.isExternalGet&&X.loggingStatus.currentExternalSet!==H&&$D(X.tagName.toLowerCase(),H,"PROPERTY_ACCESS_GET_INTERNAL")};
Kc=function(X,H,l){X&&(l||X.loggingStatus&&!X.loggingStatus.isInitializing&&!X.loggingStatus.isDefiningPropertyAccessor&&X.loggingStatus.currentExternalSet!==H)&&$D(X.tagName.toLowerCase(),H,"PROPERTY_ACCESS_SET_INTERNAL")};
Wny=function(){return{_definePropertyAccessor:function(X,H){var l=this,b=l.hostElement.loggingStatus;b&&(b.isDefiningPropertyAccessor=!0);var U=l[X];U!==void 0&&(l.__data?l._setPendingProperty(X,U):(l.__dataProto!=null||(l.__dataProto={}),l.__dataProto[X]=U));b&&(b.isDefiningPropertyAccessor=!1);Object.defineProperty(this,X,{get:function(){txZ(l.hostElement,X);return this.__data[X]},
set:function(K){H||this._setPendingProperty(X,K,!0)&&this._invalidateProperties()}})},
created:function(){var X=this._setPendingProperty.bind(this);this._setPendingProperty=function(H,l,b){Kc(this.hostElement,H);return X.apply(this,[H,l,b])}}}};
EIy=function(X){kyl()&&_.k(Ri.prototype)(X.prototype,"__templateBindingLoggingBehavior")};
gIN=function(X,H){if(H.resolvedFactories.length!==X.resolvedFactories.length)return!0;H=_.C(H.resolvedFactories.entries());for(var l=H.next();!l.done;l=H.next()){var b=_.C(l.value);l=b.next().value;b=b.next().value;if(b.providerClass){if(b.providerClass!==X.resolvedFactories[l].providerClass)return!0}else if(b.providerValue){if(b.providerValue!==X.resolvedFactories[l].providerValue)return!0}else if(b.factory!==X.resolvedFactories[l].factory)return!0}return!1};
Gyy=function(X,H){X=_.C(X);for(var l=X.next();!l.done;l=X.next())if(l=l.value,l.constructor===Array)Gyy(l,H);else{var b=H;b.has(l)||(l.inject&&b.add(l),l.behaviors&&Gyy(l.behaviors,b))}};
Cc=function(X,H){var l=X[H];X[H]=function(){var b=_.Ab.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(l)return l.apply(this,b)}};
vIK=function(){_.wT.Class=function(l,b){l=aGL(l,b);Cc(l.prototype,"created");return l};
Cc(dT.prototype,"_initializeProperties");Cc(_.hF.prototype,"_initializeProperties");if(ZzW)Cc(izm,"created");else{var X=function(){Cc(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))X();else{var H=customElements.define;customElements.define=function(l,b,U){H.call(customElements,l,b,U);l==="tp-yt-iron-list"&&(X(),customElements.define=H)}}}};
m$m=function(X,H){X.prototype.behaviors=X.prototype.behaviors||[];X.prototype.behaviors.unshift(Ozy.InjectBehavior);X.prototype.provide=H};
_.qR=function(X){return function(H){if(!X.disableElementRegistration){X.noInjection||m$m(H,X.providers);var l=H.prototype;l.__templateHelpers||ZxZ(Fh.prototype)(l,"__templateHelpers");l=X.is;Qly||(Qly=Date.now());(Pi(l)+Qly)%100<_.Yy("polymer_log_prop_change_observer_percent")&&ZxZ(Bc.prototype)(H.prototype,"__propertyObserverObserver");H.prototype.behaviors=H.prototype.behaviors||[];H.prototype.behaviors.unshift(_.TGO.YtHostElementBehavior);EIy(H);pTO({is:X.is,notifyObserversOnUndefined:X.notifyObserversOnUndefined!==
!1,fastInit:X.fastInit,template:X.template,disableEnforceFastDefaultValuesCheck:!0})(H)}}};
_.sq=function(X){return _.qR({is:X.is,template:X.template,disableElementRegistration:X.disableElementRegistration,cssBuildOptOut:X.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
jly=function(X,H){if(NGy){X=new X;for(var l=_.C(Object.getOwnPropertyNames(X)),b=l.next();!b.done;b=l.next())b=b.value,H[b]=X[b];for(l=H;l&&l!==Object.prototype;l=Object.getPrototypeOf(l)){b=_.C(Object.getOwnPropertyNames(l));for(var U=b.next();!U.done;U=b.next())U=U.value,X.hasOwnProperty(U)||Object.defineProperty(X,U,cdb(H,U))}}else X.apply(H)};
cdb=function(X,H){return{get:function(){var l=X[H];return l instanceof Function?l.bind(X):l},
set:function(l){X[H]=l}}};
JdK=function(X,H){for(var l=X._noAccessors,b=_.C(Object.getOwnPropertyNames(X)),U=b.next();!U.done;U=b.next())if(U=U.value,!rd8.has(U))if(l)H[U]=X[U];else{var K=Object.getOwnPropertyDescriptor(X,U);K&&(K.configurable=!0,Object.defineProperty(H,U,K))}};
LnW=function(X,H,l){return function(b){if(l){var U=l();b.model=U}if(X[H])X[H](b,b.detail)}};
MR=function(X){var H=[];if(typeof X==="string")X.length>0&&H.push.apply(H,_.LJ(X.split(".")));else{X=_.C(X);for(var l=X.next();!l.done;l=X.next())l=l.value,typeof l==="string"?H.push.apply(H,_.LJ(l.split("."))):H.push(l)}return H};
YzW=function(X,H){if(H[H.length-1]!=="*"&&H[H.length-1]!=="splices"){for(var l=0;l<H.length;l++){if(!X)return;X=X[H[l]]}return X}};
IGy=function(X,H){if(X.length>H.length)return!1;for(var l=0;l<X.length;l++)if(X[l]!==H[l])return!1;return!0};
X3m=function(X,H,l){if(H.type==="compute"){var b=H.getter.bind(l);var U=H.args}else b=function(){return l[H.method.methodName].apply(l,_.LJ(_.Ab.apply(0,arguments)))},U=H.method.args;
Adl(X,H.propertyKey,b,U,H.value)};
ll8=function(X,H){if(H.readOnly){var l=Object.getOwnPropertyDescriptor(X.model,H.propertyKey);Object.defineProperty(X.model,H.propertyKey,{get:l.get,set:function(){}});
X.model[H3k(H.propertyKey)]=l.set}};
oKW=function(X,H,l){if(l){var b=H.propertyKey,U=H.selector;H=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.LJ(H.selectorArgs.map(function(K){return{type:"path",path:K}})));
Adl(X,b,function(K){var w=_.Ab.apply(1,arguments);return U.apply(null,[l.getState()].concat(_.LJ(w)))},H)}};
UHz=function(X,H,l){var b=_.YE(H.propertyKey)+"-changed";b3z(X,function(U){var K={value:U.value,queueProperty:!0};U.path.split(".").length>1&&(K.path=U.path);l.dispatchEvent(new CustomEvent(b,{detail:K}))},[{type:"wildcard",
path:H.propertyKey}])};
$Hy=function(X,H,l){b3z(X,function(){l[H.method.methodName].apply(l,_.LJ(_.Ab.apply(0,arguments)))},H.method.args)};
H3k=function(X){return"_set"+(X.charAt(0).toUpperCase()+X.slice(1))};
KdN=function(){var X,H=GG(function(l){X=l},!1);
return[X,H]};
hAW=function(X){X=X.trim().replace(RAm,",").replace(Csk,"$1");var H=X[0];H==="-"&&(H=X[1]);if(H>="0"&&H<="9")return{type:"literal",value:Number(X)};if(H==="'"||H==='"')return{type:"literal",value:X.slice(1,-1)};if(H=X.match(w3W)){H=H[1];var l=dHZ[H];if(l)return{type:l,path:X.slice(0,-(H.length+1))}}return{type:"path",path:X}};
snk=function(X){var H=X.match(Fdh);if(H)return X={methodName:H[1],args:BmZ},H[2].trim()&&(H=H[2].replace(qYm,"&comma;").split(","),X.args=H.map(hAW)),X};
MtL=function(X,H,l,b){b=b===void 0?!1:b;H=_.YE(H);var U=sL;U&&(l=U(l,H,"attribute",X));u9(X,l,H,b)};
u9=function(X,H,l,b){H=umy(H,b===void 0?!1:b);H===void 0?X.removeAttribute(l):X.setAttribute(l,H)};
umy=function(X,H){switch(typeof X){case "object":case "function":if(X instanceof Date)return X.toString();if(X){if((H===void 0?0:H)&&!_.P("polymer_reflect_objects_as_boolean_killswitch"))return X?"":void 0;H=window.trustedTypes?window.trustedTypes.isHTML(X)||window.trustedTypes.isScript(X)||window.trustedTypes.isScriptURL(X):void 0;if(H)return X;try{return JSON.stringify(X)}catch(l){_.x2(Error("Eg`"+X))}}break;case "boolean":return X?"":void 0;default:return X!==null&&X!==void 0?X.toString():void 0}};
eAh=function(X){if(X===void 0)throw Error("Fg");return X};
p3z=function(X,H,l,b){var U=y_8(b);if(U.length){b=l;var K="property";VtW.test(l)?K="attribute":l[l.length-1]==="$"&&(l=l.slice(0,-1),K="attribute");var w=Psz(U);w&&K==="attribute"&&(l==="class"&&X.hasAttribute("class")&&(w+=" "+X.getAttribute(l)),u9(X,w,l));K==="attribute"&&b==="disable-upgrade$"&&X.setAttribute("disable-upgrade","");X.localName==="input"&&b==="value"&&X.setAttribute("value","");X.removeAttribute(b);K==="property"&&(l=_.IK(l));H=eAh(H);flZ(H,K,l,U);return!0}return l.slice(0,3)===
"on-"?(X.removeAttribute(l),(K=H).events!=null||(K.events=[]),H.events.push({name:l.slice(3),value:b}),!0):l==="id"?(H.id=b,!0):!1};
y_8=function(X){for(var H=[],l=0,b;(b=SYy.exec(X))!==null;){b.index>l&&H.push({type:"literal",value:X.slice(l,b.index)});var U=b[1][0];l=!!b[2];b=b[3].trim();if(U==="{")throw Error("Gg");(U=snk(b))?H.push({type:"method",negate:l,signature:U}):H.push({type:"path",negate:l,path:b});l=SYy.lastIndex}l&&l<X.length&&(X=X.substring(l))&&H.push({type:"literal",value:X});return H};
Psz=function(X){for(var H="",l=0;l<X.length;l++){var b=X[l];b.type==="literal"&&(H+=b.value)}return H};
flZ=function(X,H,l,b){X.bindings!=null||(X.bindings=[]);X.bindings.push({kind:H,target:l,parts:b})};
DHy=function(X,H,l){var b=!1;if(X.localName==="template"){b=l;var U=H.stripWhitespace;U=zAN(X,U===void 0?!1:U);var K=X.content.ownerDocument.createDocumentFragment();U.content=K;K.appendChild(X.content);b&&(b.templateInfo=U);b=!0}else X.localName==="slot"&&(H.hasInsertionPoint=!0);if(X.firstChild&&(U=l,X.localName!=="script"&&X.localName!=="style")){K=0;for(var w=X.firstChild;w;){var d=w;if(d.localName==="template"){var B=d.getAttribute("is");if((w=B==="dom-if")||B==="dom-repeat"){d.removeAttribute("is");
B=d.ownerDocument.createElement("ps-"+B);d.parentNode.replaceChild(B,d);B.appendChild(d);var q=Array.from(d.attributes);q=_.C(q);for(var u=q.next();!u.done;u=q.next())u=u.value,w?nKW.has(u.name)&&u9(B,u.value,u.name):kFy.has(u.name)?u9(B,u.value,u.name):xHz.has(u.name),d.removeAttribute(u.name);w=B}else w=d}if(w.nodeType===Node.TEXT_NODE){d=void 0;B=X;for(q=w;((d=q.nextSibling)==null?void 0:d.nodeType)===Node.TEXT_NODE;)u=void 0,(u=q).textContent!=null||(u.textContent=""),q.nextSibling.textContent&&
(q.textContent+=q.nextSibling.textContent),B.removeChild(q.nextSibling);if(H.stripWhitespace&&w.textContent&&!w.textContent.trim()){X.removeChild(w);w=w.nextSibling;continue}}DHy(w,H,{parentIndex:K,parentInfo:U});w.parentNode&&K++;w=w.nextSibling}}var e;if((e=X.hasAttributes)==null?0:e.call(X)){e=l=eAh(l);U=!1;K=Array.from(X.attributes);K=_.C(K);for(d=K.next();!d.done;d=K.next())d=d.value,U=p3z(X,e,d.name,d.value)||U;b=U||b}X.nodeType===Node.TEXT_NODE&&(e=y_8(X.textContent),e.length&&(X.textContent=
Psz(e)||" ",l=eAh(l),flZ(l,"text","textContent",e),b=!0));l&&b&&(l.infoIndex=H.nodeInfoList.push(l)-1)};
zAN=function(X,H){H={nodeInfoList:[],stripWhitespace:(H===void 0?!1:H)||X.hasAttribute("strip-whitespace")};DHy(X.content,H);return H};
Wdy=function(X){Object.assign(X,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
gKy=function(X,H,l){H.signalCache!=null||(H.signalCache={});var b=H.signalCache[l];if(!b){var U=l.split(".");b=!EKk(X,U[0]);if(U.length>1&&b){var K=X.getPathMutationSignal(U);b=function(){var w=Z1(X.owner,function(){return X.getWithPath([U[0]])}),d,B=(d=K())==null?void 0:d.value;
return{rootWasDefined:w!==void 0,value:B}}}else b=function(){var w=X.getWithPath(U);
return{rootWasDefined:w!==void 0,value:w}};
H.signalCache[l]=b}return b()};
alb=function(X,H,l,b,U){H=H.parts.map(function(w,d){if(w.type==="literal"){l.partWasDefined!=null||(l.partWasDefined=[]);var B;(B=l.partWasDefined)[d]||(B[d]=w.value!==void 0);return w.value}var q;if(w.type==="method"){var u,e=(u=(q=l.partWasDefined)==null?void 0:q[d])!=null?u:!1;e||(e=w.signature.args.every(function(p){return p.type==="literal"}));
var y=!1,V=!0;q=w.signature.args.map(function(p){if(p.type==="literal")return p.value;if(p.type!=="path")throw Error("Hg`"+p.type);var z=gKy(X,l,p.path);p=z.value;z=z.rootWasDefined;y||(y=z);V&&(V=z);return p});
e||(e=U===1?V:y);l.partWasDefined!=null||(l.partWasDefined={});l.partWasDefined[d]=e;if(!e)return;q=(d=gKy(X,l,w.signature.methodName).value)&&typeof d==="function"?d.apply(b,q):void 0}else u=gKy(X,l,w.path),q=u.value,l.partWasDefined!=null||(l.partWasDefined={}),(e=l.partWasDefined)[d]||(e[d]=q!==void 0||u.rootWasDefined);w.negate&&(q=!q);return q});
if(H.length===1){var K;return((K=l.partWasDefined)==null?0:K[0])?H[0]:GFk}return H.join("")};
Z3y=function(X){return typeof X==="object"&&!!X&&"notifyPath"in X&&"canNotifyPath"in X};
i3h=function(X){return typeof X==="object"&&!!X&&"notifyPath"in X};
vKK=function(X){return"polymerController"in X};
O3z=function(X,H){H=""+MR(H)[0];if(Z3y(X))return X.canNotifyPath(H);if(vKK(X)&&Z3y(X.polymerController))return X.polymerController.canNotifyPath(H);if(i3h(X)){var l;return!((l=X.properties)==null||!l[H])}if(vKK(X)&&i3h(X.polymerController)){var b;return!((b=X.polymerController.properties)==null||!b[H])}return!1};
mHL=function(X,H,l){Z3y(X)||i3h(X)?X.notifyPath(H,l):vKK(X)&&(Z3y(X.polymerController)||i3h(X.polymerController))&&X.polymerController.notifyPath(H,l)};
Tm8=function(X,H,l){if(l!==GFk){X.kind==="attribute"||X.target!=="textContent"&&(X.target!=="value"||H.localName!=="input"&&H.localName!=="textarea")||(l=l===void 0?"":l);var b,U=(b=QnO.Polymer)==null?void 0:b.sanitizeDOMValue;U&&(l=U(l,X.target,X.kind,H));if(X.kind==="attribute"){X=X.target;if(X==="class"||X==="name"||X==="slot")H=(0,_.cM)(H);u9(H,l,X)}else if(X=X.target,l!==H[X]||typeof l==="object")H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!0,$D(H.localName,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
H[X]=l,H.loggingStatus&&(H.loggingStatus.isDeclarativeExternal=!1)}};
Nmy=function(X,H,l,b){var U=H.parts[0];if(H.parts.length!==1||U.type!=="path"||!O3z(l,H.target))return!1;var K=_.C(U.path.split(".")),w=K.next().value,d=cE(K);if(EKk(X,w))return!1;b.signalCache!=null||(b.signalCache={});K=b.signalCache[U.path];var B;K=(B=K)==null?void 0:B().value;if((K==null?void 0:K.path)!==void 0){b=MR(K.path);var q=MR(U.path);b=[H.target].concat(_.LJ(b.slice(q.length-1)));mHL(l,b,U.negate?!K.value:K.value);return!0}var u=eL(X,w);var e=u.getChangeRecordSignal(d),y=!1;K=function(){if(!y){var p=
Z1(X.owner,function(){return u.getWithPath([])});
y||(y=p!==void 0)}return{value:e(),rootWasDefined:y}};
b.signalCache[U.path]=K;b.partWasDefined!=null||(b.partWasDefined={});K=K();(q=b.partWasDefined)[0]||(q[0]=K.rootWasDefined);var V=Z1(X.owner,function(){return u.getWithPath(d)});
b.partWasDefined[0]&&Z1(X.owner,function(){return void Tm8(H,l,U.negate?!V:V)});
return!0};
c_h=function(X,H,l,b,U,K){if(!Nmy(X,H,l,b)){var w=alb(X,H,b,U,K);Z1(X.owner,function(){return void Tm8(H,l,w)})}};
jn8=function(X,H,l,b,U,K){l=_.C(l);for(var w=l.next(),d={};!w.done;d={infoIndex:void 0},w=l.next()){w=w.value;var B=w.bindings;d.infoIndex=w.infoIndex;w=w.parentInfo;if(B){B=_.C(B);for(var q=B.next(),u={};!q.done;u={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},q=B.next()){u.b$jscomp$257=q.value;if(d.infoIndex===void 0)throw Error("Ig");u.bindingCtx$jscomp$4={};X.effect(function(e,y){return function(){U&&!U()||c_h(X,e.b$jscomp$257,H[y.infoIndex],e.bindingCtx$jscomp$4,b,K)}}(u,d))}}w&&jn8(X,H,[w],
b,U,K)}};
r_Z=function(X,H){X=(H.parentInfo?r_Z(X,H.parentInfo):X).firstChild;for(var l=0;X;X=X.nextSibling)if(H.parentIndex===l++)return X;throw Error("Jg");};
Ldb=function(X,H,l,b){X=document.importNode(X.content,!0);X.__noInsertionPoint=!(b==null?0:b.hasInsertionPoint);for(var U=Array(H.length),K={},w=0;w<H.length;w++){var d=H[w],B=r_Z(X,d);U[w]=B;d.id&&(K[d.id]=B);if(d.templateInfo){var q=B.parentElement;q&&(q.templateInfo=d.templateInfo,q.parentSignalProxy=l,q.eventListenerHost=b.eventListenerHost,q.stampingEnabled=b.enabledSignal)}q=void 0;if((q=d.events)==null?0:q.length)for(q=0;q<d.events.length;q++){var u=d.events[q];J_N(b.eventListenerHost,B,u.name,
u.value,b.getModel)}}jn8(l,U,H,b.thisCtx,b.enabledSignal,b.methodInvocationRequirement);return{root:X,nodes:U,nodesById:K}};
IlZ=function(X,H){X=X();var l;(l=YY8.ShadyCSS)==null||l.prepareTemplate(X,H);H=zAN(X);return{template:X,nodeInfoList:H.nodeInfoList,hasInsertionPoint:H.hasInsertionPoint}};
HIm=function(){A_8=!1;for(var X=yc.length,H=0;H<X;H++){var l=yc[H];if(l)try{l()}catch(b){Promise.resolve().then(function(){throw b;})}}yc.splice(0,X);
Xly+=X};
U3y=function(X){A_8||(A_8=!0,lB8.textContent=(oTZ++).toString());yc.push(X);return bIl++};
_.fc=function(X,H,l){Vc++;X=H?new $3b(Vc,X,H,l):new KNy(Vc,X);Pc.set(Vc,X);return Vc};
Rcy=function(X){(X=Pc.get(X))&&X.cancel()};
wlz=function(X,H){X=C7z.get(X);return X?(H=X.get(H))?H:null:null};
_.pc=function(X,H,l,b){var U=wlz(X,H);if(!U){U=new d3Z;var K=C7z.get(X);K||(K=new Map,C7z.set(X,K));K.set(H,U)}X=l.bind(X);U.run(X,b,void 0)};
_.hcK=function(X,H){var l;(l=wlz(X,H))==null||l.cancel()};
FNb=function(X){var H;(H=wlz(X,"doRender"))==null||H.flush()};
SL=function(X){var H;return(H=X.hostElement)!=null?H:X};
Bq8=function(X){var H=X.indexOf(".");return H===-1?X:X.slice(0,H)};
qBy=function(X,H,l,b,U,K){K=(U=(b=K?Bq8(H):H)?H:null)?X.get(U):X.__data[H];U&&K===void 0&&(K=l[H]);_.QX(X.hostElement,cil(b)+"-changed",{value:K,queueProperty:!0,path:U!=null?U:void 0},{bubbles:!1,composed:!1})};
sWK=function(X,H){X.__isReflecting=!0;MtL(X.hostElement,H,X.__data[H]);X.__isReflecting=!1};
MGm=function(X){if(X._onIronRequestResizeNotifications){var H=X._onIronRequestResizeNotifications.bind(X);X._onIronRequestResizeNotifications=function(l){_.WM(l)!==X.hostElement&&H(l)}}X._ariaActiveAttributeChanged&&(X._ariaActiveAttributeChanged=X._ariaActiveAttributeChanged.bind(X.hostElement));
X._activeChanged&&(X._activeChanged=function(l){X.toggles?u9(X.hostElement,l?"true":"false",X.ariaActiveAttribute):X.hostElement.removeAttribute(X.ariaActiveAttribute);X._changedButtonState()});
X._asyncClick&&(X._asyncClick=function(){_.fc(function(){X.hostElement.click()},1)});
!X.keyEventTarget||X.keyEventTarget instanceof EventTarget||(X.keyEventTarget=SL(X.keyEventTarget));X._disabledChanged&&(X._disabledChanged=X._disabledChanged.bind(X.hostElement));X._observeItems&&(X._observeItems=function(l){var b=SL(l);return _.Uc(b).observeNodes(function(U){X._updateItems();X._updateSelected();_.QX(b,"iron-items-changed",U,{bubbles:!1,cancelable:!1})})});
X._updateItems&&X._updateItems===_.kD._updateItems&&(X._updateItems=function(){var l=_.Uc(X.hostElement).queryDistributedElements(X.selectable||"*");l=Array.prototype.filter.call(l,X._bindFilterItem);X._setItems(l)});
X._computeKeyboardClass&&(X._computeKeyboardClass=function(l){_.TW(X.hostElement,"keyboard-focus",l)});
X.ensureRipple&&(X.ensureRipple=function(l){if(X.hasRipple&&!X.hasRipple()){if(!X._createRipple)return;X._ripple=X._createRipple();X._ripple.noink=X.noink;var b=X._rippleContainer||X.hostElement;b&&_.mh(b).appendChild(X._ripple)}var U;if(l&&((U=X._ripple)==null?0:U.uiDownAction)){b=_.mh(X._rippleContainer||X.hostElement);var K;U=(K=l.composedPath())==null?void 0:K[0];b.contains(U)&&X._ripple.uiDownAction(l)}});
X._updateMultiselectable&&(X._updateMultiselectable=function(l){l?X.hostElement.setAttribute("aria-multiselectable","true"):X.hostElement.removeAttribute("aria-multiselectable")})};
uwz=function(X,H,l){l=_.C(l);for(var b=l.next();!b.done;b=l.next())jly(b.value.constructor,X);jly(H.constructor,X)};
yqL=function(X,H){X=_.C(X);for(var l=X.next();!l.done;l=X.next())if(l=l.value,l.type==="signal"){var b=l.propertyKey;if(H.hasOwnProperty(b)&&H[b]!=null&&l.attributeType===Object){a:{b=H[b].constructor;for(var U=_.C(ecZ),K=U.next();!K.done;K=U.next())if(K=K.value,b===K){b=K;break a}b=Object}l.attributeType=b}}};
VGO=function(){};
P7y=function(X){var H;return(H=X.hostElement)!=null?H:X};
fBl=function(){throw Error("Ng");};
plW=function(X,H){X.constructor.prototype.useSignals=!0;var l=new X.constructor;uwz(l,X,H.behaviors);yqL(H.reactiveSchemas,l);l={};for(var b=_.C(H.reactiveSchemas),U=b.next();!U.done;U=b.next())U=U.value,U.type==="signal"&&(l[U.propertyKey]=U.attributeType);var K={copyPropertiesToProto:fBl,didRegister:!1,typesForSignals:l},w=["disable-upgrade"].concat(_.LJ(H.observedAttributes)),d=function(B){xD.call(this,X,H,K,B)};
_.S(d,xD);_.ja.Object.defineProperties(d,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return w}}});
K.copyPropertiesToProto=function(){for(var B=0;B<H.behaviors.length;B++)JdK(H.behaviors[B],d.prototype);JdK(X,d.prototype)};
H.legacyOptimizations||K.copyPropertiesToProto();d.prototype.is=X.is;return d};
SBN=function(X,H){if(Object.getPrototypeOf(H.prototype).constructor!==_.a)throw Error("Og");H.prototype.is=X.is;return plW(H.prototype,X)};
zcz=function(X){return X.type==="compute"||X.type==="computeWithMethod"};
nTy=function(X){for(var H=X.reactiveSchemas.filter(zcz),l=new Map,b=new Map,U=new Map,K=_.C(H),w=K.next();!w.done;w=K.next())w=w.value,l.set(w.propertyKey,w),b.set(w.propertyKey,[]),U.set(w.propertyKey,0);K=0;H=_.C(H);for(w=H.next();!w.done;w=H.next()){w=w.value;for(var d=_.C(w.type==="computeWithMethod"?w.method.args:w.args),B=d.next();!B.done;B=d.next())B=B.value,B.type!=="literal"&&(B=B.path.split(".")[0],b.has(B)&&(b.get(B).push(w.propertyKey),U.set(w.propertyKey,U.get(w.propertyKey)+1),K++))}w=
[].concat(_.LJ(b.keys())).filter(function(q){return U.get(q)===0});
for(H=[];w.length;)for(d=w.shift(),H.push(l.get(d)),d=_.C(b.get(d)),B=d.next();!B.done;B=d.next())B=B.value,U.set(B,U.get(B)-1),K--,U.get(B)===0&&w.push(B);l=X.reactiveSchemas.filter(function(q){return!zcz(q)});
X.reactiveSchemas=[].concat(_.LJ(l),_.LJ(H))};
kLk=function(X,H){if(H.properties)for(var l=_.C(Object.entries(H.properties)),b=l.next();!b.done;b=l.next()){var U=_.C(b.value);b=U.next().value;U=U.next().value;X.properties[b]=typeof U==="function"?{type:U}:U}H.observers&&X.observers.push.apply(X.observers,_.LJ(H.observers));H.disabledPolySiReactions&&X.disabledPolySiReactions.push.apply(X.disabledPolySiReactions,_.LJ(H.disabledPolySiReactions))};
x3K=function(X,H){for(var l=H.length-1;l>=0;l--){var b=H[l];Array.isArray(b)?x3K(X,b):X.indexOf(b)<0&&X.unshift(b)}};
D3L=function(X,H){X.reactiveSchemas=X.reactiveSchemas.filter(function(l){return l.type==="observe"&&H.includes(l.method.methodName)||zcz(l)&&H.includes(l.propertyKey)?!1:!0})};
WNl=function(X,H){var l=H.prototype,b,U,K={is:X.is,reactiveSchemas:[],observedAttributes:[],behaviors:[Ozy.InjectBehavior,Fh.prototype],disableElementRegistration:X.disableElementRegistration,provide:(b=X.providers)!=null?b:[],reactivityMode:X.reactivityMode,signalProperties:(U=l.signalProperties)!=null?U:[]};"template"in H?K.templateGetter=function(){return H.template}:X.getTemplate&&(K.templateGetter=X.getTemplate);
l.behaviors&&x3K(K.behaviors,l.behaviors);tGy(K,H);return K};
tGy=function(X,H){for(var l=H.prototype,b={properties:{},observers:[],disabledPolySiReactions:[]},U=_.C(X.behaviors),K=U.next();!K.done;K=U.next())kLk(b,K.value);kLk(b,l);if(X.signalProperties)for(l=_.C(X.signalProperties),U=l.next();!U.done;U=l.next())delete b.properties[U.value];l=_.C(Object.entries(b.properties));for(U=l.next();!U.done;U=l.next()){K=_.C(U.value);U=K.next().value;K=K.next().value;var w=void 0;if((w=X.signalProperties)==null||!w.includes(U)){w=void 0;var d=X,B=K.type;if(!B)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{B=Reflect.getMetadata("design:type",H,U);for(var q=_.C(ETZ),u=q.next();!u.done;u=q.next())if(u=u.value,B===u){B=u;break a}B=Object}else B=String;K.computed||K.selector||(d.reactiveSchemas.push({type:"signal",propertyKey:U,value:K.value,attributeType:B,readOnly:K.readOnly}),d.observedAttributes.push(_.YE(U)));K.reflectToAttribute&&d.reactiveSchemas.push({type:"reflect",propertyKey:U});if(K.computed){B=snk(K.computed);if(!B)throw Error("Pg");d.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:U,method:B,value:K.value})}K.observer&&d.reactiveSchemas.push({type:"observe",method:{methodName:K.observer,args:[{type:"path",path:U}]}});K.notify&&d.reactiveSchemas.push({type:"notify",propertyKey:U});K.selector&&d.reactiveSchemas.push({type:"redux",propertyKey:U,selector:K.selector,selectorArgs:(w=K.selectorArgs)!=null?w:[]})}}gTk&&nTy(X);H=_.C(b.observers);for(U=H.next();!U.done;U=H.next())l=X,U=U.value,(K=snk(U))?l.reactiveSchemas.push({type:"observe",method:K}):console.log('Warning: unable to parse observe declaration: "'+
U+'"');D3L(X,b.disabledPolySiReactions)};
GLy=function(X,H){for(var l=0;l<H.length;l++){var b=H[l],U=void 0;(U=b).showHideApi!=null||(U.showHideApi={});U=void 0;!!X!==!((U=b.showHideApi)==null||!U.hideTemplateChildren)&&(b.nodeType===Node.TEXT_NODE?X?(b.showHideApi.polymerTextContent=b.textContent,b.textContent=""):(U=void 0,b.textContent=(U=b.showHideApi.polymerTextContent)!=null?U:null):b instanceof Element&&b.localName==="slot"?X?(b.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.cM)((0,_.cM)(b).parentNode).replaceChild(b.showHideApi.polymerReplaced,
b)):(U=b.showHideApi.polymerReplaced)&&(0,_.cM)((0,_.cM)(U).parentNode).replaceChild(b,U):b instanceof HTMLElement&&b.style&&(X?(b.showHideApi.polymerDisplay=b.style.display,b.style.display="none"):b.style.display=b.showHideApi.polymerDisplay));b.showHideApi.hideTemplateChildren=X;b.showHideChildren&&b.showHideChildren(X)}};
ZIh=function(){if(!aBm){var X=document.createElement("style");X.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(X);aBm=!0}};
DV=function(){return _.P("disable_hidden_dom_if_using_stamper")};
iIy=function(X,H){var l=_.tF().getState();return H?X.apply(null,[l].concat(_.LJ(H))):X(l)};
m3y=function(){if(vTh)return vTh;var X=_.C(_.FU(0,void 0,"MB1Hb")),H=X.next().value;X.next();var l=X.next().value;_.tF().subscribe(function(){OIZ(l)});
return vTh=H};
OIZ=function(X){QWz||(QWz=!0,Promise.resolve().then(function(){X(function(H){return H+1});
QWz=!1}))};
_.tF=function(){return Tqh.getAppStore()};
Nqk=function(X,H){return Tqh.getSelectFn()(X,H)};
_.Wc=function(X){Tqh.getDispatchFn()(X)};
cqb=function(X,H){var l={},b;for(b in X)l[b]=H(X[b],b);return l};
_.Eq=function(X,H){return function(){var l;return(l=_.a5(X))!=null?l:H}};
_.gT=function(X,H){var l=Object.assign({},X),b;for(b in H)H.hasOwnProperty(b)&&(l[b]=_.Eq(X[b],H[b]));return l};
jWm=function(X,H,l,b){X instanceof Element&&(l.debugName||(l.debugName="<"+X.tagName.toLowerCase()+(X.tagName.includes("-")?">":"."+X.className+">")),_.P("ytwiz_enable_debug_component_props")&&(X.debugProps||(X.debugProps=cqb(H,function(U){return function(){return U()}})),H.data===void 0||"data"in X&&!X.isWebComponentWrapper||Object.defineProperty(X.debugProps,"data",{get:function(){return _.a5(H.data)},
set:function(U){var K;b==null||(K=b.data)==null||K.call(b,U)},
enumerable:!0,configurable:!0})))};
_.Gx=function(X,H){if(X.length===0&&(H==null||!H.initial))return chy(X,{debugName:H==null?void 0:H.debugName},"l");var l=_.C(chy({source:function(){return X()},
computation:function(K,w){return(w==null?0:w.value)?X(w.value):(H==null?0:H.initial)?X(H.initial):K}},{debugName:H==null?void 0:H.debugName},"m")),b=l.next().value,U=l.next().value;
l=l.next().value;return[b,U,l]};
_.Z=function(X,H){var l=function(b){return _.Oc("ytComponent",{},function(U){var K=rqh={};var w;if(((w=l)==null?0:w.idomCompat)&&b.renderedFromIdom){var d;w=typeof l.idomCompat==="object"?(d=l)==null?void 0:d.idomCompat.callbacks:{};w=_.C(Jqh(b,w));d=w.next().value;var B=w.next().value;w=w.next().value;var q=LNk(X,d);K.privateValue=q;rqh=void 0;jWm(q,d,l,B);U.addAttributes({debugName:l.debugName});U=Orb(q);U=Array.isArray(U)?U[0]:U;U[wx]||(U[wx]={});U[wx].updateSignalsFromIdomProps=w;YBW(d,q);return q}w=
cqb(b,IBW);d=LNk(X,w);jWm(d,w,l);K.privateValue=d;rqh=void 0;U.addAttributes({debugName:l.debugName});YBW(w,d);return d})};
l.debugName=H===void 0?"":H;return l};
LNk=function(X,H){X=X(H);return B$(X)};
AqL=function(X,H){X[H]||(X=new _.qd("IDOM interop setter undefined. Key:",H),_.n2(X))};
IBW=function(X,H){return H==="children"||H==="ref"||typeof X==="function"||X===void 0?X:function(){return _.a5(X)}};
Jqh=function(X,H){var l={},b={},U={},K={},w;for(w in X){K={key$jscomp$954:K.key$jscomp$954};K.key$jscomp$954=w;var d=X[K.key$jscomp$954];if(K.key$jscomp$954==="children"||K.key$jscomp$954==="ref")l[K.key$jscomp$954]=d;else if(typeof d==="function")if(K.key$jscomp$954 in H||d.length>0)U[K.key$jscomp$954]=d,l[K.key$jscomp$954]=function(q){return function(){return U[q.key$jscomp$954].apply(U,_.LJ(_.Ab.apply(0,arguments)))}}(K);
else if(K.key$jscomp$954==="data"){var B=_.C(_.Gx(d,{debugName:K.key$jscomp$954+":cwis"}));d=B.next().value;B=B.next().value;l[K.key$jscomp$954]=d;b[K.key$jscomp$954]=B}else l[K.key$jscomp$954]=d;else X[K.key$jscomp$954]===void 0&&K.key$jscomp$954 in H||(B=_.C(_.FU(X[K.key$jscomp$954],{debugName:K.key$jscomp$954+":cwis"},"eGMajf")),d=B.next().value,B=B.next().value,l[K.key$jscomp$954]=d,b[K.key$jscomp$954]=B)}return[l,b,function(q){var u={},e;for(e in q)u={key$jscomp$953:u.key$jscomp$953,val$jscomp$122:void 0},
u.key$jscomp$953=e,u.val$jscomp$122=q[u.key$jscomp$953],u.key$jscomp$953!=="children"&&u.key$jscomp$953!=="ref"&&(typeof u.val$jscomp$122==="function"?u.key$jscomp$953 in H?U[u.key$jscomp$953]=u.val$jscomp$122:u.val$jscomp$122.length>0&&(U[u.key$jscomp$953]=u.val$jscomp$122,_.x2(new _.qd("Callback detected that was not set in the idomCompat callbacks map. Key:",u.key$jscomp$953))):u.key$jscomp$953 in H&&u.val$jscomp$122===void 0||(AqL(b,u.key$jscomp$953),eI(function(y){return function(){b[y.key$jscomp$953](y.val$jscomp$122)}}(u))))}]};
lh8=function(X,H,l){var b=SQz(X.prototype,XLm,X.prototype.behaviors);b.prototype.is=H;b.prototype.localName=H;l&&HZO(b,l);return function(U){U&&(b.prototype.hostElement=U);var K=new b;K.root=K;K.hostElement=U;return K}};
HZO=function(X,H){var l;Object.defineProperty(X.prototype,"_template",{get:function(){l===void 0&&(l=H());return l},
set:function(b){l=b},
configurable:!0,enumerable:!0})};
Kgb=function(X,H,l,b){function U(){if(!V){for(var p=new Set,z=_.C(u),t=z.next();!t.done;t=z.next()){t=t.value;for(var W=_.C(Object.getOwnPropertyNames(t)),G=W.next();!G.done;G=W.next()){G=G.value;var r=void 0,Q=(r=Object.getOwnPropertyDescriptor(t,G))==null?void 0:r.value;Q&&Q instanceof Function&&!ai(G)&&(!d[G]||_.P("polymer_forward_method_killswitch"))&&p.add(G)}}z=_.C(Object.entries(Object.getOwnPropertyDescriptors(X.prototype)));for(t=z.next();!t.done;t=z.next())W=_.C(t.value),t=W.next().value,
W=W.next().value,W.value instanceof Function&&!ai(t)&&p.add(t);V=p}return V}
o6y(X,H,b==null?void 0:b.providers);zIW(X.prototype,X,!0);var K=lh8(X,H,l),w,d=(w=X.prototype.properties)!=null?w:{},B,q,u=(q=(B=X.prototype.behaviors)==null?void 0:B.flat(Infinity))!=null?q:[];l=_.C(u);for(w=l.next();!w.done;w=l.next())d=Object.assign({},w.value.properties,d);var e=[].concat(_.LJ(bZy),_.LJ(Object.keys(d).map(function(p){return _.YE(p)}))),y=!1,V;
return{ctor:function(p,z){var t=K(p),W,G;p=[].concat(_.LJ((W=b==null?void 0:b.allowedProps)!=null?W:[]),_.LJ((G=b==null?void 0:b.allowedPropsFromBehaviors)!=null?G:[]));t.allowedProps=p.length>0?p:void 0;W={};G=_.C(e);for(p=G.next();!p.done;p=G.next())p=p.value,W[p]=_.IK(p);t.__dataAttributes=W;var r=t.ready.bind(t);t.ready=function(){z.beforeReady();r();if(b9(H)&&!y){var Q=t.__templateInfo;if(Q==null?0:Q.hostProps){Q=_.C(Object.keys(Q.hostProps));for(var v=Q.next();!v.done;v=Q.next())$D(H,v.value,
"PROPERTY_ACCESS_GET_INTERNAL")}y=!0}};
t._overrideLegacyUndefined=!0;return t},
props:d,observedAttributes:e,getInitialMethods:U,getPropsToForwardBeforeRegister:function(){for(var p=[],z=new Set,t=_.C(Object.keys(d)),W=t.next();!W.done;W=t.next())W=W.value,p.push([W,d[W].readOnly]),z.add(W);t=U();W=_.C(Object.keys(Object.getOwnPropertyDescriptors(X.prototype)));for(var G=W.next();!G.done;G=W.next())G=G.value,!UeZ(G)||t.has(G)||z.has(G)||(p.push([G,!1]),z.add(G));z=_.C($el);for(t=z.next();!t.done;t=z.next())p.push([t.value,!0]);return p},
getPropsToForwardBeforeReady:function(p){for(var z=[],t=_.C(Object.entries(p)),W=t.next();!W.done;W=t.next()){var G=_.C(W.value);W=G.next().value;G=G.next().value;if(UeZ(W)&&!(G instanceof Function)&&(z.push([W,!1]),b9(H))){var r=G=void 0;(r=(G=p)._createPropertyAccessor)==null||r.call(G,W)}}return z},
shouldForwardProp:UeZ,shouldLog:b9}};
o6y=function(X,H,l){m$m(X,l);X.prototype.behaviors.unshift(Rsb);if(kyl()){if(b9(H)){var b;(b=X.prototype).behaviors!=null||(b.behaviors=[]);X.prototype.behaviors.unshift(Wny())}EIy(X)}_.k(Fh.prototype)(X.prototype,"__templateHelpers")};
ai=function(X){return C6l.has(X)||X.startsWith("__compute__")};
UeZ=function(X){return!ai(X)&&!X.startsWith("_")&&!X.endsWith("_")};
B5m=function(X,H){function l(){var y=B();y=_.C(y);for(var V=y.next();!V.done;V=y.next()){var p=_.C(V.value);V=p.next().value;p=p.next().value;wLl(e.prototype,V,p)}b=!0}
var b=!1,U=X.ctor,K=X.getInitialMethods,w=X.observedAttributes,d=X.getPropsToForwardBeforeReady,B=X.getPropsToForwardBeforeRegister,q=X.shouldForwardProp,u=X.shouldLog,e=function(){var y=HTMLElement.call(this)||this;y.didForwardDynamicProps=!1;y.loggingStatus={};b||l();y.inst=U(y,{beforeReady:function(){y.didForwardDynamicProps||(y.forwardDynamicProps(),y.didForwardDynamicProps=!0)}});
y.controllerProxy=D$8(y.inst,H);y.forwardMethods();return y};
_.S(e,HTMLElement);e.prototype.forwardMethods=function(){for(var y=this,V=_.C(this.inst.getExtraMethodsToForward()),p=V.next(),z={};!p.done;z={method$jscomp$65:void 0},p=V.next()){var t=_.C(p.value);p=t.next().value;t=t.next().value;z.method$jscomp$65=t;this[p]=function(W){return function(){return W.method$jscomp$65.call.apply(W.method$jscomp$65,[y.inst].concat(_.LJ(_.Ab.apply(0,arguments))))}}(z)}V=_.C(K());
for(z=V.next();!z.done;z=V.next())z=z.value,q(z)&&deb(this,z),u(H)&&!ai(z)&&hsy(this.inst,z)};
e.prototype.forwardDynamicProps=function(){var y=d(this.inst);y=_.C(y);for(var V=y.next();!V.done;V=y.next()){var p=_.C(V.value);V=p.next().value;p=p.next().value;wLl(this,V,p);u(H)&&!ai(V)&&FgK(this.inst,V)}};
e.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
e.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
e.prototype.attributeChangedCallback=function(y,V,p){this.inst.attributeChangedCallbackWrapper(y,V,p)};
_.ja.Object.defineProperties(e.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return H}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.ja.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return w}}});
customElements.define(H,e)};
wLl=function(X,H,l){X.hasOwnProperty(H)||Object.defineProperty(X,H,{get:function(){var b,U=((b=X.is)!=null?b:X.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||$D(U,H,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,b=this.polymerController[H],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,b},
set:function(b){if(!l){var U,K=((U=X.is)!=null?U:X.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||$D(K,H,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=H,this.loggingStatus.bypassProxyController=!0,this.polymerController[H]!==b&&(U={},this.polymerController.setProperties((U[H]=b,U)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
deb=function(X,H,l){var b=X.polymerController;X[H]=function(){var U=_.Ab.apply(0,arguments);X.loggingStatus.currentExternalCall=H;X.loggingStatus.bypassProxyController=!0;var K,w=((K=X.is)!=null?K:X.tagName).toLowerCase();$D(w,H,"PROPERTY_ACCESS_CALL_EXTERNAL");var d;K=(d=l!=null?l:b[H])==null?void 0:d.call.apply(d,[b].concat(_.LJ(U)));X.loggingStatus.currentExternalCall=void 0;X.loggingStatus.bypassProxyController=!1;return K}};
hsy=function(X,H){var l=X.hostElement,b=X[H];X[H]=function(){var U=_.Ab.apply(0,arguments);if(l.loggingStatus.currentExternalCall!==H){var K,w=((K=l.is)!=null?K:l.tagName).toLowerCase();$D(w,H,"PROPERTY_ACCESS_CALL_INTERNAL")}return b==null?void 0:b.apply(X,U)}};
FgK=function(X,H){var l=Object.getOwnPropertyDescriptor(X,H);l&&!l.get&&Object.defineProperty(X,H,{get:function(){txZ(X.hostElement,H);return l.value},
set:function(b){Kc(X.hostElement,H);l.value=b}})};
qoN=function(X){return _.P("poly_si_dom_repeat_detached_fix_killswitch")||X.tagName!=="PS-DOM-REPEAT"?X.tagName==="DOM-REPEAT":!0};
Mmk=function(X,H){var l=sjm(X);X instanceof Element&&l.unshift(X);X=_.C(l.filter(qoN));for(var b=X.next();!b.done;b=X.next()){var U=void 0;b=_.C((U=b.value.__instances)!=null?U:[]);for(U=b.next();!U.done;U=b.next())if(U=U.value,U.root){U=Array.from(U.root.children);U=_.C(U);for(var K=U.next();!K.done;K=U.next())l.push.apply(l,_.LJ(Mmk(K.value,H)))}}return l.filter(function(w){return w.usePatchedLifecycles&&w.lifecycleIsConnected===H})};
sjm=function(X){var H=null;X instanceof Element?H=Element.prototype.querySelectorAll:X instanceof DocumentFragment&&(H=DocumentFragment.prototype.querySelectorAll);return H?Array.from(H.call(X,"*")):[]};
ZV=function(X){_.h1(function(){for(var H=_.C(Mmk(X,!1)),l=H.next();!l.done;l=H.next()){l=l.value;l.lifecycleIsConnected=!0;try{var b=void 0,U=void 0,K=void 0,w=void 0;(b=(w=l.polymerController)!=null?w:l)==null||(K=(U=b).connectedCallback)==null||K.call(U)}catch(d){_.n2(d)}}})};
i9=function(X){_.h1(function(){for(var H=_.C(Mmk(X,!0)),l=H.next();!l.done;l=H.next()){l=l.value;l.lifecycleIsConnected=!1;try{var b=void 0,U=void 0,K=void 0,w=void 0;(b=(w=l.polymerController)!=null?w:l)==null||(K=(U=b).disconnectedCallback)==null||K.call(U)}catch(d){_.n2(d)}}})};
pLZ=function(){if(!uby){uby=!0;var X=[Node];vc&&X.push(vc.Wrapper);var H=Node.prototype.insertBefore,l=Node.prototype.removeChild;X=_.C(X);for(var b=X.next(),U={};!b.done;U={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},b=X.next())b=b.value,U.nativeInsertBefore=b.prototype.insertBefore,b.prototype.insertBefore=function(w){return function(d,B){if(d instanceof DocumentFragment){var q=Array.from(d.children);d=w.nativeInsertBefore.call(this,d,B);
if(this.isConnected&&w.nativeInsertBefore===H)for(B=_.C(q),q=B.next();!q.done;q=B.next())ZV(q.value);return d}q=d instanceof Element&&d.isConnected;B=w.nativeInsertBefore.call(this,d,B);q&&i9(d);this.isConnected&&ZV(d);return B}}(U),U.nativeAppendChild=b.prototype.appendChild,b.prototype.appendChild=function(w){return function(d){if(d instanceof DocumentFragment){var B=Array.from(d.children);
d=w.nativeAppendChild.call(this,d);if(this.isConnected){B=_.C(B);for(var q=B.next();!q.done;q=B.next())ZV(q.value)}return d}B=d instanceof Element&&d.isConnected;q=w.nativeAppendChild.call(this,d);B&&i9(d);this.isConnected&&ZV(d);return q}}(U),U.nativeRemoveChild=b.prototype.removeChild,b.prototype.removeChild=function(w){return function(d){var B=d instanceof Element&&d.isConnected,q=w.nativeRemoveChild.call(this,d);
B&&l===w.nativeRemoveChild&&i9(d);return q}}(U),U.nativeReplaceChild=b.prototype.replaceChild,b.prototype.replaceChild=function(w){return function(d,B){if(d instanceof DocumentFragment){var q=Array.from(d.children);
d=w.nativeReplaceChild.call(this,d,B);if(this.isConnected)for(i9(B),B=_.C(q),q=B.next();!q.done;q=B.next())ZV(q.value);return d}q=d instanceof Element&&d.isConnected;var u=this.isConnected,e=w.nativeReplaceChild.call(this,d,B);u&&i9(B);q&&i9(d);u&&ZV(d);return e}}(U);
X=[Element];vc&&X.push(vc.Wrapper);X=_.C(X);b=X.next();for(U={};!b.done;U={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},b=X.next())b=b.value,b.prototype.before=esZ(b.prototype.before),b.prototype.after=esZ(b.prototype.after),U.nativeReplaceWith=b.prototype.replaceWith,b.prototype.replaceWith=function(w){return function(){var d=_.Ab.apply(0,arguments),B=_.C(yZO(d)),q=B.next().value,
u=B.next().value;B=this.isConnected;w.nativeReplaceWith.apply(this,d);d=_.C(u);for(u=d.next();!u.done;u=d.next())i9(u.value);if(B)for(i9(this),q=_.C(q),B=q.next();!B.done;B=q.next())B=B.value,B instanceof Element&&ZV(B)}}(U),U.nativeRemove=b.prototype.remove,b.prototype.remove=function(w){return function(){var d=this.isConnected;
w.nativeRemove.call(this);d&&i9(this)}}(U),U.nativeInsertAdjacentElement=b.prototype.insertAdjacentElement,b.prototype.insertAdjacentElement=function(w){return function(d,B){var q=B.isConnected;
d=w.nativeInsertAdjacentElement.call(this,d,B);q&&i9(B);d.isConnected&&ZV(d);return d}}(U),U.nativeSetAttribute=b.prototype.setAttribute,b.prototype.setAttribute=function(w){return function(d,B){var q=Vmy(this);
if(!q.usePatchedLifecycles)return w.nativeSetAttribute.call(this,d,B);var u=this.getAttribute(d);w.nativeSetAttribute.call(this,d,B);B=this.getAttribute(d);P6m(q,d,u,B)}}(U),U.nativeRemoveAttribute=b.prototype.removeAttribute,b.prototype.removeAttribute=function(w){return function(d){var B=Vmy(this);
if(!B.usePatchedLifecycles)return w.nativeRemoveAttribute.call(this,d);var q=this.getAttribute(d);w.nativeRemoveAttribute.call(this,d);q!==null&&P6m(B,d,q,null)}}(U),U.nativeToggleAttribute=b.prototype.toggleAttribute,b.prototype.toggleAttribute=function(w){return function(d,B){var q=Vmy(this);
if(!this.usePatchedLifecycles)return w.nativeToggleAttribute.call(this,d,B);var u=this.getAttribute(d),e=u!==null;B=w.nativeToggleAttribute.call(this,d,B);B!==e&&P6m(q,d,u,B?"":null);return B}}(U);
X=[Document,DocumentFragment,Element,ShadowRoot];vc&&X.push(vc.Wrapper);X=_.C(X);for(U=X.next();!U.done;U=X.next())U=U.value,U.prototype.prepend=esZ(U.prototype.prepend),U.prototype.append=esZ(U.prototype.append);(vc==null?void 0:vc.noPatch)===!0&&fhh();document.readyState==="complete"?ZV(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&ZV(document.body)});
var K=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");K&&K.get&&K.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:K.enumerable,configurable:!0,get:K.get,set:function(w){w||i9(this);K.set.call(this,w);return w}})}};
esZ=function(X){return function(){var H=_.Ab.apply(0,arguments),l=_.C(yZO(H)),b=l.next().value;l=l.next().value;X.apply(this,H);H=_.C(l);for(l=H.next();!l.done;l=H.next())i9(l.value);if(this.isConnected)for(b=_.C(b),H=b.next();!H.done;H=b.next())H=H.value,H instanceof Element&&ZV(H)}};
fhh=function(){for(var X=_.C(Som),H=X.next();!H.done;H=X.next()){H=H.value.prototype;for(var l=_.C(zsL),b=l.next();!b.done;b=l.next()){b=b.value;var U=Object.getOwnPropertyDescriptor(H,b);U&&Object.defineProperty(H,"__shady_native_"+b,U)}}};
P6m=function(X,H,l,b){var U,K;if((U=X.polymerController)==null?0:(K=U.observedAttributes)==null?0:K.includes(H))if(X=X.polymerController,X.attributeChangedCallbackWrapper)X.attributeChangedCallbackWrapper.call(X,H,l,b);else{var w;(w=X.attributeChangedCallback)==null||w.call(X,H,l,b)}};
yZO=function(X){var H=[],l=[];X=_.C(X);for(var b=X.next();!b.done;b=X.next())b=b.value,b instanceof Element&&b.isConnected&&l.push(b),b instanceof DocumentFragment?H.push.apply(H,_.LJ(Array.from(b.children))):H.push(b);return[H,l]};
Vmy=function(X){return!(X instanceof Element)&&X.node instanceof Element?X.node:X};
n6O=function(X,H){var l=H?["children"].concat(_.LJ(H)):["children"];H=[];l=_.C(l);for(var b=l.next();!b.done;b=l.next()){var U=b.value;if(X.hasOwnProperty(U)){U==="children"?b=_.F(_.Xi,null,X[U]):(b=X[U],b=typeof b==="function"?b():b,b=Array.isArray(b)?b:[b]);b=B$(b).flat();if(U!=="children"){U=cil(U);for(var K=_.C(b),w=K.next();!w.done;w=K.next())w=w.value,w instanceof Element&&w.setAttribute("slot",U)}H.push(b)}}H.length===0?X=[]:(X=B$(_.F("div",null,H)),X=Array.from(X.childNodes));return X};
xe8=function(X,H,l){var b={};_.t1(function(){var U={},K;for(K in H)if(H.hasOwnProperty(K)){var w=void 0,d=void 0;if(!(((w=l.slotProps)==null?0:w.includes(K))||K==="children"||((d=l.callbackProps)==null?0:d.includes(K))||K==="ref")&&(w=_.a5(H[K]),b[K]!==w)){b[K]=w;d=void 0;var B=(d=X.hostElement)!=null?d:X;!l.skipHostForwardedProps&&k6y.has(K)&&(B[K]=w);U[K]=w}}eI(function(){if(X.setProperties)X.setProperties(U);else for(var q=_.C(Object.entries(U)),u=q.next();!u.done;u=q.next()){var e=_.C(u.value);
u=e.next().value;e=e.next().value;X[u]=e}})},"n")};
tmz=function(X,H,l,b){var U=n6O(l,b.slotProps),K=(0,_.cM)(X);U=_.C(U);for(var w=U.next();!w.done;w=U.next())K.appendChild(w.value);xe8(H,l,b);b=_.C(b.callbackProps||[]);U=b.next();for(K={};!U.done;K={kebabEventName:void 0,eventListener:void 0},U=b.next())w=U=U.value,String(U).substring(0,2)==="on"&&l[w]?(K.kebabEventName=cil(String(U).substring(2)),K.eventListener=l[w],X.addEventListener(K.kebabEventName,K.eventListener),_.E2(function(u){return function(){X.removeEventListener(u.kebabEventName,u.eventListener)}}(K))):
H[w]=l[w];
if(l.ref){l=_.C(DeK(l.ref));var d=l.next().value,B=l.next().value,q=H.attached.bind(H);H.attached=function(){d(X);q()};
_.E2(function(){B()})}};
DeK=function(X){if(typeof X==="function"){var H;return[function(l){H=X(l)},
function(){var l;(l=H)==null||l()}]}if(!X.onRender||!X.onUnmount)throw Error("Tg");
return[X.onRender,X.onUnmount]};
WgN=function(X,H){H=H===void 0?{}:H;var l=function(b){var U=document.createElement(X),K;var w=(K=U.polymerController)!=null?K:U;tmz(U,w,b,H);return U};
l.debugName=X;return l};
ahN=function(X,H,l,b,U){b=b===void 0?{}:b;var K=E6y,w=!1;K?(w=!0,E6y=void 0):(g6l=H,K=document.createElement(H),g6l=void 0);var d=K;d.usePatchedLifecycles=!0;d.lifecycleIsConnected=!1;K.loggingStatus={};var B=G6N(X,H,K,b,U);_.E2(function(){d.lifecycleIsConnected&&(d.lifecycleIsConnected=!1,B.disconnectedCallback())});
w||(K.__noInsertionPoint=!0,tmz(K,B,l,b));return K};
G6N=function(X,H,l,b,U){U=U===void 0?Kgb:U;ZZ8[H]!=null||(ZZ8[H]=U(X,H,b==null?void 0:b.getTemplate,b));var K=ZZ8[H],w=K.ctor;U=K.getInitialMethods;var d=K.getPropsToForwardBeforeReady;X=K.getPropsToForwardBeforeRegister;b=K.shouldForwardProp;var B=K.observedAttributes,q=K.shouldLog,u=w(l,{beforeReady:function(){var e=u;e._takeAttributes?e._takeAttributes():e.setPropertiesFromInitialAttributeValues&&e.setPropertiesFromInitialAttributeValues();e=_.C(d(l.polymerController));for(var y=e.next();!y.done;y=
e.next()){var V=_.C(y.value);y=V.next().value;V=V.next().value;wLl(l,y,V);q(H)&&!ai(y)&&FgK(l.polymerController,y)}l.polymerController=D$8(u,H)}});
l.polymerController=u;l.polymerController.observedAttributes=B;K=_.C(u.getExtraMethodsToForward());for(w=K.next();!w.done;w=K.next())B=_.C(w.value),w=B.next().value,B=B.next().value,deb(l,w,B);U=_.C(U());for(K=U.next();!K.done;K=U.next())K=K.value,b(K)&&deb(l,K),q(H)&&!ai(K)&&hsy(u,K);X=_.C(X());for(b=X.next();!b.done;b=X.next())U=_.C(b.value),b=U.next().value,U=U.next().value,wLl(l,b,U);return u};
iZb=function(X){var H=Oq;Oq=X;return H};
mel=function(X){if(v6m.has(X)&&Oq&&OZZ(Oq)===X){var H;(H=Oq)._numRenders!=null||(H._numRenders=0);Oq._numRenders++;if(Oq._numRenders>1)throw Error("Ug");return Oq}};
T5Z=function(X){var H=OZZ(X);Oq!==X&&H.includes("-")&&Qjh.set(X,!0)};
OZZ=function(X){var H;return(H=X==null?void 0:X.tagName.toLowerCase())!=null?H:""};
N5k=function(X,H){if(X.componentType===V3)throw Error("Vg");v6m.add(H);var l=function(){var b=HTMLElement.call(this)||this;b.is=H;if(g6l===H)return b.isInert=!0,b;b.createElement();return b};
_.S(l,HTMLElement);l.prototype.createElement=function(){if(!this.isInert){E6y=this;var b=_.C(XKN(function(){return _.F(X,null)})).next().value;
E6y=void 0;Wdy(this);return b}};
customElements.define(H,l)};
jjb=function(X,H,l,b,U){X.prototype.is=H;(b==null?0:b.useSink)?cZm(X,H,l,b,U):(l=Kgb(X,H,l,b),B5m(l,H));return X};
cZm=function(X,H,l,b,U){pLZ();var K=_.Z(function(w){return ahN(X,H,w,Object.assign({},b,{getTemplate:l}),U)},"o");
K.debugName=H;N5k(K,H);return K};
JZ8=function(X){return!rZO.has(X)};
Ihm=function(X,H,l,b){function U(){if(!e){for(var y=new Set(Lgy),V=_.C(K.behaviors),p=V.next();!p.done;p=V.next()){p=p.value;for(var z=_.C(Object.getOwnPropertyNames(p)),t=z.next();!t.done;t=z.next()){t=t.value;var W=void 0,G=(W=Object.getOwnPropertyDescriptor(p,t))==null?void 0:W.value;G&&G instanceof Function&&(!q[t]||_.P("polymer_forward_method_killswitch"))&&y.add(t)}}V=_.C(Object.entries(Object.getOwnPropertyDescriptors(X.prototype)));for(p=V.next();!p.done;p=V.next())z=_.C(p.value),p=z.next().value,
z=z.next().value,z.value instanceof Function&&y.add(p);e=y}return e}
var K=WNl({is:H,disableElementRegistration:!1,getTemplate:l,providers:b==null?void 0:b.providers,reactivityMode:b==null?void 0:b.reactivityMode},X);if((b==null?0:b.allowedProps)||(b==null?0:b.allowedPropsFromBehaviors)){var w,d;K.allowedProps=[].concat(_.LJ((w=b.allowedProps)!=null?w:[]),_.LJ((d=b.allowedPropsFromBehaviors)!=null?d:[]))}var B=SBN(K,X);H=B.observedAttributes;var q={};l=_.C(K.reactiveSchemas);for(b=l.next();!b.done;b=l.next())if(b=b.value,b.type==="signal")q[b.propertyKey]={readOnly:b.readOnly},
b.readOnly&&(q[H3k(b.propertyKey)]={readOnly:!0});else if(b.type==="compute"||b.type==="computeWithMethod"||b.type==="redux")q[b.propertyKey]={readOnly:!0};var u=K.reactiveSchemas.length,e;return{ctor:function(y,V){y=new B(y);y.beforeReady=V.beforeReady;return y},
props:q,observedAttributes:H,getInitialMethods:U,getPropsToForwardBeforeRegister:function(){for(var y=[],V=new Set,p=_.C(Yok),z=p.next();!z.done;z=p.next())z=z.value,y.push([z,z!=="observers"&&z!=="properties"]),V.add(z);p=_.C(Object.keys(q));for(z=p.next();!z.done;z=p.next())z=z.value,y.push([z,q[z].readOnly]),V.add(z);p=U();z=_.C(Object.keys(Object.getOwnPropertyDescriptors(X.prototype)));for(var t=z.next();!t.done;t=z.next())t=t.value,!JZ8(t)||p.has(t)||V.has(t)||(y.push([t,!1]),V.add(t));y.push(["allowedProps",
!0]);return y},
getPropsToForwardBeforeReady:function(y){var V=[];y=_.C(Object.keys(y));for(var p=y.next();!p.done;p=y.next()){p=p.value;var z=U();JZ8(p)&&!z.has(p)&&V.push([p,!1])}y=_.C(K.reactiveSchemas.slice(u));for(p=y.next();!p.done;p=y.next())p=p.value,p.type!=="compute"&&p.type!=="computeWithMethod"&&p.type!=="redux"&&p.type!=="signal"||V.push([p.propertyKey,p.type==="signal"?p.readOnly:!0]);return V},
shouldForwardProp:JZ8,shouldLog:b9}};
_.O=function(X,H,l,b){var U,K,w=(K=(U=b)==null?void 0:U.mode)!=null?K:0;b!=null||(b={});var d;(d=b).reactivityMode!=null||(d.reactivityMode=0);return w===1?jjb(X,H,l,Object.assign({},b,{useSink:!0}),Ihm):jjb(X,H,l,Object.assign({},b,{useSink:w===2}))};
_.mr=function(){return function(X,H,l,b){var U,K,w=(K=(U=b)==null?void 0:U.mode)!=null?K:2;b!=null||(b={});var d;(d=b).reactivityMode!=null||(d.reactivityMode=0);if(w===0)throw Error("Wg`"+w);return cZm(X,H,l,b,w===1?Ihm:void 0)}};
_.Qc=function(X){return _.P("force_all_poly_si_batches")&&X||document.documentElement.hasAttribute("use-signals")?!0:!X||_.P(X+"_holdback_enabled")&&_.P("kevlar_polysi_holdback")?!1:_.P(X)};
Tx=function(X){return X?X.icon?X.icon.iconType.toLowerCase():X.customThumbnail?"member":"":""};
AZh=function(X){if(!X)return"";X=_.C(X);for(var H=X.next();!H.done;H=X.next())if((H=H.value)&&H.liveChatAuthorBadgeRenderer&&(H=Tx(H.liveChatAuthorBadgeRenderer))&&H!=="verified")return H;return""};
XIh=function(X,H){if(!X)return null;var l;return((l=X.find(function(b){return b&&b.liveChatAuthorBadgeRenderer?Tx(b.liveChatAuthorBadgeRenderer)===H:!1}))==null?void 0:l.liveChatAuthorBadgeRenderer)||null};
_.o4m=function(X){var H=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;X=T1h(X);H=T1h(H);var l=YQZ(X.hex);H=YQZ(H.hex);var b=H[0]/255;var U=H[1]/255,K=H[2]/255,w=Math.max(b,U,K),d=Math.min(b,U,K),B=0,q=0,u=.5*(w+d);w!=d&&(w==b?B=60*(U-K)/(w-d):w==U?B=60*(K-b)/(w-d)+120:w==K&&(B=60*(b-U)/(w-d)+240),q=0<u&&u<=.5?(w-d)/(2*u):(w-d)/(2-2*u));b=[Math.round(B+360)%360,q,u];l=H6y(l,H);for(X=lJN(X.hex);l<4.5;){X=b[2]>=.5?X.darker((4.5-l)/2):X.brighter((4.5-l)/2);l=X.toString();
U=j4h(l);if(!U.length)throw Error("Yd`"+l);l=U;l=H6y(l,H)}return X.hex()};
H6y=function(X,H){X=_.EtZ(X);H=_.EtZ(H);return(Math.max(X,H)+.05)/(Math.min(X,H)+.05)};
_.NR=function(X){return"#"+("000000"+(X&16777215).toString(16)).slice(-6)};
_.b6h=function(X){for(var H=0,l=0;l<X.length;l++)H=X.charCodeAt(l)+((H<<5)-H);X="#";for(l=0;l<3;l++)X+=("00"+(H>>l*8&255).toString(16)).slice(-2);return X};
Uiy=function(X){X=(X||"").split(":");X.length===1&&X.unshift("yt-icons");X[1]=X[1].toLowerCase();return X};
dil=function(X,H){var l=(H=H===void 0?!1:H)?$ib:KBz,b=H?RLy:CYy;X.getIconNames().forEach(function(U){U=H?U:U.substring(U.indexOf(":")+1);X.name==="yt-icons"?wIL.add(U):U.includes("-filled")?l.add(U):b.add(U)})};
cc=function(X,H,l,b){l=l===void 0?!1:l;b=b===void 0?!1:b;var U,K,w;return _.h(function(d){if(d.nextAddress==1)return d.yield(hLh,2);if(b)return d.return(wIL.has(X));U=l?$ib:KBz;K=l?RLy:CYy;return H?(w=X.includes("-filled")?X:X.concat("-filled"),d.return(U.has(w))):d.return(K.has(X))})};
_.jL=function(X){if(FBl(X))return X.toString();var H=B6O.get(X);if(H)return H;H=X.toLowerCase();var l="yt-icons",b=H.replace(/_/g,"-");switch(X){case "MY_CHANNEL":H="account_circle";break;case "ADD_TO_LIBRARY":H="add";break;case "ALERT_WARN_RED":H="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":H="person_music";break;case "BLOCK_USER":H="block";break;case "CAPTIONS":H="closed_caption";break;case "CLOSED_CAPTION":l="av";H="closed-caption";break;case "COLLECTION":l="maps";H="layers";break;case "CONTACT":l=
"icons";H="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":l="yt-studio-system-icons";H=b.split("creator-studio-")[1];break;case "DISMISSAL":H="close";break;case "DO_NOT_DISTURB":H="block";break;case "DOGFOOD":l="icons";H="pets";break;case "DRAFT":H="paper_corner_folded";
break;case "EMPTY_LIKE":H="like_outline";break;case "EXIT_APP":H="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":H=b;break;case "GAMES":l="ytg";H="my-games";break;case "GO_TO_PAGE":H="arrow-forward";break;case "GROUP":l="social";break;case "HIDE":H="not_interested";break;case "INPUT_COMPONENT":l="icons";H="settings-input-component";break;case "KIDS_BLOCK":H="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":l="ytg";H="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":l=
"ytg";H="membership-post-purchase";break;case "MULTIVIEW":H="screen_multi_view";break;case "MY_LOCATION":l="maps";H=b;break;case "NOTIFICATIONS_INBOX":H="NOTIFICATIONS";break;case "NEXT":H="chevron_right";break;case "OFFLINE":H="power-settings-new";break;case "PAUSE":l="miniplayer";break;case "PAYMENT":l="icons";break;case "PHONE_DOWNLOAD":H="phone_download";break;case "PREMIUM_STANDALONE":l="yt-logos";H="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":l="yt-logos";H="premium_standalone_cairo";
break;case "QUESTION_ANSWER":H="question_answer";break;case "REDEEM":l="icons";H="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":H="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":H="library_add";break;case "SCHOOL":l="yt-sys-icons";H="creator_academy";break;case "SETTINGS_LIGHT":H="settings_applications";break;case "SETTINGS_MATERIAL":H="settings";break;case "SEARCH_HISTORY":H="watch_history";break;case "SHOPPING_BAG":H="bag";break;case "SOCIAL":case "PEOPLE":l=
"yt-icons";H="people";break;case "STAFF_PICK":l="ytg";H="spotlight";break;case "START_DVR":H="add";break;case "STOP_DVR":l="av";H="stop";break;case "TAB_LIKED":H="like";break;case "TAB_INBOX":H="mail";break;case "TERMS_OF_SERVICE":l="icons";H="description";break;case "TRENDING":H="fire";break;case "UNBLOCK_USER":H="remove";break;case "UNPLUGGED_DARK_THEME":l="image";H="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":H="live";break;case "UNPLUGGED_SPORTS":l="ytu";H="visibility-off";break;
case "VIDEOS":l="av";H="play-circle-filled";break;case "YOUTUBE":l="yt-logos";H="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":l="yt-logos-ext";H="yt-logo-red-updated";break;case "YOUTUBE_LOGO":l="yt-logos-ext";H="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":l="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":l="shorts";H=b;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":l="yt-sys-icons";H="youtube_improve_tv";break;case "OUTLINE_BAG":l=
"yt-sys-icons";H="bag";break;case "QUEUE_PLAY_LAST":l="yt-sys-icons";H="list_queue_last";break;case "SLASH_CIRCLE_LEFT":H="slash_circle_left";break;case "SPEED_1_POINT_2X":H="1_point_2x";break;case "SPEED_1_POINT_5X":H="1_point_5x";break;case "SPEED_1_POINT_8X":H="1_point_8x";break;case "SPEED_POINT_2X":H="point_2x";break;case "SPEED_POINT_5X":H="point_5x";break;case "SPEED_POINT_8X":H="point_8x";break;case "SPEED_1X":H="1x";break;case "SPEED_2X":H="2x";break;case "TAB_BOOKMARK":H="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":l="yt-sys-icons";H="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":l="yt-sys-icons";H="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":l="yt-sys-icons",H="tic_tac_toe"}H=l+":"+H;B6O.set(X,H);return H};
FBl=function(X){var H;_.P("kevlar_use_wil_icons")?H=!!_.jJ().resolve(_.rT).resolveIcon({iconName:X.toString()}):H=!1;return H};
_.Lc=function(X,H,l,b){l=l===void 0?{}:l;b=b===void 0?!1:b;l===null&&(l={});var U=_.l0("kevlar_command_handler_command_banlist");U=_.C(U);for(var K=U.next();!K.done;K=U.next())if(K=X?X.hasOwnProperty(K.value):void 0,K)return!1;U=_.f(X.commandMetadata,_.Ip);return b&&U!=null&&U.url?!1:!H.disableCommandHandlerOverride&&_.JF.instance?(b=_.JF.instance,l.form||(l.form={element:H}),l.form.element||(l.form.element=H),!l.clickedVisualElement&&H.visualElement&&(l.clickedVisualElement=H.visualElement),b.resolveCommand(X,
l),!0):!1};
qny=function(X,H){X=YD(X);for(var l=_.C(X.visibilityMonitorKeys||[]),b=l.next();!b.done;b=l.next())H.unobserveByKey(b.value);X.visibilityMonitorKeys=void 0};
Ii=function(X,H){if(_.Bi()){if(_.P("kevlar_vimio_use_shared_monitor"))sfN(X,H.data);else if(!sfN(X,H.data))return;var l=H.data,b=MUW(l);if(_.P("enable_client_ve_spec_logging"))qny(X,H.observer);else{var U=YD(X);U.trackedParams&&U.trackedParams!==b&&qny(X,H.observer)}U=YD(X);!l||U.data&&U.data===l||(U.data=l);uZK(X,H);U.trackedParams=b}};
uZK=function(X,H){var l=H.observer;if(!l&&_.P("web_skip_missing_vimio_observer")){var b,U;_.x2(new _.qd("VisibilityObserver is not defined.",X.tagName,X.trackedParams,(b=H.data)==null?void 0:b.trackingParams,(U=H.data)==null?void 0:U.loggingDirectives))}else{var K=H.layer,w=H.visibilityCallback||function(){},d=H.prescanCallback,B=YD(X);
b=[];H.showOption&&b.push(l.observe(X,function(){H.skipLogging&&H.skipLogging()||_.AF().reportShown(B,void 0,K,7);w(!0)},H.showOption));
H.hideOption&&b.push(l.observe(X,function(){_.AF().reportHidden(B,void 0,K,7);w(!1)},H.hideOption));
H.prescanOption&&d&&b.push(l.observe(X,function(){d()},H.prescanOption));
B.visibilityMonitorKeys=b}};
sfN=function(X,H){X=YD(X);if(X.visualElement&&!H)return!0;if(!H)return!1;var l=!1;if(_.P("enable_client_ve_spec_logging")){var b,U;l=!!((b=H.loggingDirectives)==null?0:(U=b.clientVeSpec)==null?0:U.uiType)}b=MUW(H);if(!b&&!l)return!1;_.P("mweb_component_visibility_logging")&&(X.veContainer||(X.veContainer={}),X.veContainer.trackingParams=b);if(X.trackedParams&&X.trackedParams===b)return!1;var K;if(_.P("enable_client_ve_spec_logging")&&((K=X.visualElement)==null?0:K.isClientVe())){var w;K=(w=X.visualElement)==
null?void 0:w.getAsJspb();var d,B,q,u;if(_.O_(K,2)===((d=H.loggingDirectives)==null?void 0:(B=d.clientVeSpec)==null?void 0:B.uiType)&&_.O_(K,3,-1)===((q=H.loggingDirectives)==null?void 0:(u=q.clientVeSpec)==null?void 0:u.elementIndex))return!1}if(_.P("enable_client_ve_spec_logging")){var e,y;!X.visualElement&&((e=H.loggingDirectives)==null?0:(y=e.clientVeSpec)==null?0:y.uiType)&&(d=H.loggingDirectives.clientVeSpec,H=d.uiType,w=d.elementIndex,d=d.clientYoutubeData,X.visualElement=_.H5(_.lv(),{veType:H,
elementIndex:w,clientYouTubeData:d}))}return!0};
MUW=function(X){if(X==null?0:X.rendererContext){var H=_.f(X.rendererContext,_.o1);if(H==null?0:H.loggingDirectives)return H.loggingDirectives.trackingParams}return(X==null?0:X.loggingDirectives)?X.loggingDirectives.trackingParams:X==null?void 0:X.trackingParams};
YD=function(X){var H;return(H=X.polymerController)!=null?H:X};
PYl=function(X){_.AF();if(_.ZR(bv().JSC$13058_elementShouldLogGesture).bind(bv())(X,4)){eLO(X);var H=y9y(X);VUm.set(X,H)}};
eLO=function(X){VUm.has(X)&&(VUm.get(X).cancel("untrack hover element"),VUm.delete(X))};
y9y=function(X){var H,l=[],b=!1,U=new _.UA(function(K,w){MF(X,"mouseenter",_.ZR(function(){var d,B,q;return _.h(function(u){if(u.nextAddress==1)return H=(0,_.Jl)(),d=fJl(X),l.push(d),B=pIN(X,function(){b=!0;w(Error("Xg"))}),u.yield(d,2);
if(u.nextAddress!=3)return B&&Ul(B),q=SnZ(X),l.push(q),u.yield(q,3);K();_.m5(u)})}))});
U.then(function(){var K=(0,_.Jl)()-H;K=Math.round(K);if(!(500>K||6E5<=K)){var w=X.getScreenLayer?X.getScreenLayer():void 0;w=_.Bi(w)||"";var d=zLh(_.AF(),X);_.Di(w,X.visualElement?X.visualElement:_.$l(d),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:K}})}PYl(X)},function(){Kq&&(Kq(),Kq=null);
b&&(eLO(X),PYl(X))});
return U};
fJl=function(X){var H;return(new _.UA(function(l,b){Kq=function(){b(Error("Yg"))};
H=_.Ss.debounce(_.ZR(function(){Ul(U);l()}),1,100);
var U=_.n8(X,"mousemove",H)})).thenCatch(function(){var l=_.Ss.cancelDebouncedJobMap.get(H);
l&&_.Ss.cancelJob(l)})};
SnZ=function(X){var H;return(new _.UA(function(l,b){Kq=function(){b(Error("Zg"))};
H=MF(X,"mouseleave",_.ZR(function(){l()}))})).thenCatch(function(){Ul(H)})};
pIN=function(X,H){return MF(X,"mouseleave",_.ZR(H))};
kRm=function(X){n4y&&_.R1.cancel(n4y);n4y=_.R1.run(function(){_.QX(X,"yt-visibility-refresh");n4y=0})};
xiz=function(X){X=Number(X);return"rgba("+[X>>16&255,X>>8&255,X&255,(X>>24&255)/255].join()+")"};
tUO=function(X){if(!X)return!1;if(_.f(X,_.Dib))return!0;var H;if(X=(H=_.f(X,_.J$))==null?void 0:H.commands)for(H=_.C(X),X=H.next();!X.done;X=H.next())if(_.f(X.value,_.Dib))return!0;return!1};
WBZ=function(X){var H=!0;H=H===void 0?!0:H;if(!X.useSignals&&!X.experimentalPropertiesChanged||_.P("experimental_templating_behavior_nopatch_killswitch")){var l=X._propertiesChanged;X._propertiesChanged=function(b,U,K){H?X.debounceRender():X.doRender();l&&l.call(X,b,U,K)}}};
E4K=function(X,H){if(X.useSignals||X.experimentalPropertiesChanged)if(_.P("experimental_templating_behavior_nopatch_killswitch"))X.experimentalPropertiesChanged=function(){};
else return;var l=new Set,b=[X].concat(_.LJ(X.behaviors));b=_.C(b);for(var U=b.next();!U.done;U=b.next()){U=U.value;for(var K in U.properties)l.has(K)||(X._addPropertyEffect(K,"function",H),l.add(K))}};
g4Z=function(){var X=Polymer.Element,H=X._prepareTemplate;X._prepareTemplate=function(){H.call(this);var l=this.prototype;if(l.experimentalTemplatingInUse&&l.experimentalTemplatingInUse()&&l.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.n2(Error("$g"));else{l=this.template.content.childNodes;for(var b=l.length-1;b>=0;b--){var U=l[b];U.nodeName!=="STYLE"&&U.nodeName!=="LINK"&&U.nodeName!=="SCRIPT"&&U.nodeName!=="#comment"&&U.remove()}}}};
GRk=function(X){var H=!0;H=H===void 0?!0:H;g4Z();var l=X.ready;X.ready=function(){this._template=null;l.call(this)};
E4K(X,H?X.debounceRender:X.doRender)};
Z6Z=function(X,H,l){if(l===null||l===void 0)return l;var b=YLZ(X.tagName.toLowerCase(),H,function(){throw Error("Vb");});
if(b===null)return l;b=aJy[b];var U;if((U=b.isUnwrappable)==null?0:U.call(b,l)){if(b.unwrap)return b.unwrap(l);throw Error("ch");}return b.filterString?b.filterString(X.tagName,H,String(l)):l};
i6O=function(X,H,l){var b=H[H.length-1]!=="$";l=Z6Z(X,H,l);b?X[H]=l:(b=l==null?null:String(l),vg(X,H.slice(0,-1),b))};
wC=function(X){_.P("mweb_after_render_to_scheduler")?_.Ss.addJob(function(){try{X()}catch(H){_.Cq(H)}},8):(v4b.length===0&&requestAnimationFrame(function(){setTimeout(function(){var H=v4b.slice();
v4b.length=0;H=_.C(H);for(var l=H.next();!l.done;l=H.next()){l=l.value;try{l()}catch(b){_.Cq(b)}}})}),v4b.push(X))};
O6b=function(X){if(X){var H=X.component;if(H){var l;H==null||(l=H.events)==null||l.publish("DISCONNECTED");var b;H==null||(b=H.onDisconnected)==null||b.call(H)}var U,K;(U=X.__spec)==null||(K=U.didUnmount)==null||K.call(U);for(H=0;H<X.childNodes.length;H++)O6b(X.childNodes[H])}};
_.dC=function(X,H,l){l===void 0?delete X[H.name]:X[H.name]=l};
_.ha=function(X){var H={androidIncludeFontPadding:!1},l=0,b=[],U=[],K=[];if(X.simpleText)return H.content=X.simpleText,H;if(X.runs===void 0)return H.content="",H;X=_.C(X.runs);for(var w=X.next();!w.done;w=X.next()){w=w.value;var d=w.text,B=void 0,q=(B=d)==null?void 0:B.length;if(d&&q){b.push(d);if(w.bold||w.italics||w.strikethrough||w.underline||w.textColor!=null&&w.textColor!==0||w.deemphasize){d=U;B=d.push;var u={startIndex:l,length:q};w.bold&&(u.weightLabel="FONT_WEIGHT_MEDIUM");w.italics&&(u.italic=
!0);w.strikethrough&&(u.strikethrough="LINE_STYLE_SINGLE");w.underline&&(u.underline="LINE_STYLE_SINGLE");w.textColor!=null&&w.textColor!==0?document.documentElement.hasAttribute("dark")?u.fontColor=w.darkModeTextColor||w.textColor:u.fontColor=w.textColor:w.deemphasize&&(document.documentElement.hasAttribute("dark")?u.fontColor=parseInt("ff"+cfk("#aaa").substring(1),16):u.fontColor=parseInt("ff"+cfk("#606060").substring(1),16));B.call(d,u)}w.navigationEndpoint&&(d=K,B=d.push,u={startIndex:l,length:q,
onTap:{innertubeCommand:w.navigationEndpoint}},w.loggingDirectives&&_.dC(u,miL,w.loggingDirectives),B.call(d,u));l+=q}}H.content=b.join("");H.styleRuns=U.length?U:void 0;H.commandRuns=K.length?K:void 0;return H};
T6L=function(X){if(X==null||!X.runs)return!0;X=_.C(X.runs);for(var H=X.next();!H.done;H=X.next())if(H=H.value,H.bracket||H.errorUnderline||H.deemphasize||_.f(H,FR)||_.f(H,QfL))return!1;return!0};
N6y=function(X,H){return function(l){var b=H.unit;if(b!==l)throw Error("fh`"+X+"`"+b+"`"+l);return H}};
B5=function(X){if(!((X==null?0:X.value)&&(X==null?0:X.unit)))return"";switch(X.unit){case "DIMENSION_UNIT_FRACTION":var H="%";break;default:H="px"}X=X.value;H==="%"&&(X*=100);return""+X+H};
c9z=function(X){try{return X()}catch(H){_.x2(H)}};
_.sl=function(X){var H=_.f(X,_.qq);if(H)return H;if((H=_.f(X,jfy))&&H.commands)return r9m(H.commands);if((H=_.f(X,J9K))&&H.commands)return r9m(H.commands);if((X=_.f(X,LBl))&&X.identifier&&X.command&&(Ynz||(Ynz=[]),!Ynz.includes(X.identifier)))return Ynz.push(X.identifier),_.f(X.command,_.qq)};
r9m=function(X){if(X.length!==0){var H=[];X=_.C(X);for(var l=X.next();!l.done;l=X.next())(l=_.sl(l.value))&&H.push(l);return{commandExecutorCommand:{commands:H}}}};
_.uv=function(X){var H=X.defaultTarget,l=X.elementConfig,b=X.elementsCommand,U=X.skipOnClick,K=X.forceNewState,w=X.additionalCommandArgs,d=X.innertubeCommand||_.sl(b);if(d){X={};var B=IJl(d);b=B.navigatingCommand;B=B.href;b&&B?(X.href$=B,A9m(X,b,B,H),_.P("web_atagconfig_pointerdown")&&XZb(X,b),K&&(X["force-new-state$"]=!0)):(X.role$="button",X.href$="javascript:void(0);");_.f(d,HPK)&&(X["aria-haspopup$"]=!0);U||(X.onclick=function(q){var u={};if(l5l(q)){var e=(w==null?void 0:w.clickedVisualElement)||
(w==null?void 0:w.getClickedVisualElement)&&w.getClickedVisualElement();e&&(u={clickedVisualElement:e});u=Object.assign({},{form:{element:q.target,event:q,createScreenConfig:u}},w);q.preventDefault();_.Mq(d,u)}});
return Object.assign({},l,X)}};
okN=function(X){if(X.length){if(X.length===1)return X[0];var H={};_.dC(H,_.J$,{commands:X});return H}};
ew=function(X){return X&&X.href$!=="javascript:void(0);"};
IJl=function(X){var H,l=((H=_.f(X,_.J$))==null?void 0:H.commands)||[X];X=_.C(l);for(H=X.next();!H.done;H=X.next()){H=H.value;var b=void 0,U=void 0;l=(U=_.f((b=H)==null?void 0:b.commandMetadata,_.Ip))==null?void 0:U.url;_.P("web_remove_web_navigation_endpoint_data")||(b=void 0,l=l||((b=_.f(H,bPm))==null?void 0:b.url));if(l&&l!=="/service_ajax"){if(b=_.Jb(l,UuO))return X=_.jA(b),{navigatingCommand:H,href:X};_.x2(new _.qd("AttributedString URL could not be sanitized",l))}}return{}};
l5l=function(X){return X.button!==void 0?X.button===0&&!(X.shiftKey||X.altKey||X.metaKey||X.ctrlKey):!(X.shiftKey||X.altKey||X.metaKey||X.ctrlKey)};
A9m=function(X,H,l,b){l=!Nk(l);var U,K,w;if((U=_.f(H,_.YM))!=null&&U.nofollow||(K=_.f(H,_.ku))!=null&&K.nofollow||(w=_.f(H,_.aL))!=null&&w.nofollow||l)X.rel$="nofollow";var d;H=((d=_.f(H,_.aL))==null?void 0:d.target)==="TARGET_NEW_WINDOW"?"_blank":b===void 0?"":b;X.target$=H};
XZb=function(X,H){H.clickTrackingParams&&(X.params={itct:H.clickTrackingParams});X.onpointerdown=function(l){$uO(l)};
X._data=H};
Kly=function(X){(X.loggingUrls||[]).forEach(function(H){ZS(H.baseUrl,H.attributionSrcMode)})};
$uO=function(X){var H=X.currentTarget;X=c9z(function(){return H.href});
var l=H.params;X&&_.Ec(X,l||{},8,!0)};
_.yr=function(X,H){(X=_.sl(X))&&_.Mq(X,H)};
_.Mq=function(X,H){_.JR(_.Vr,function(l){H?l.resolveCommand(X,H):l.resolveCommand(X)})};
dub=function(X,H){var l=["yt-core-attributed-string__link"];H!=null&&H.noLinkColor||((H==null?0:H.isOverlay)?l.push("yt-core-attributed-string__link--overlay-call-to-action-color"):l.push("yt-core-attributed-string__link--call-to-action-color"),(H==null?0:H.linkInheritColor)&&l.push("yt-core-attributed-string--link-inherit-color"));l={className:l.join(" "),tabindex$:"0"};var b=X.onTap||X.onLongPress;if(!b)return l;var U=RDZ(X);U&&(l["aria-label$"]=U);H=_.uv({elementsCommand:b,elementConfig:l,skipOnClick:!(H==
null||!H.skipOnClick),forceNewState:!0});X.onLongPress&&(b=new CWy(function(){var K=_.sl(X.onLongPress);K&&_.jJ().resolve(_.Vr).resolveCommand(K)}),H&&wZk(b,H));
return H||l};
RDZ=function(X){var H,l;return(H=X.onTapOptions)==null?void 0:(l=H.accessibilityInfo)==null?void 0:l.accessibilityLabel};
hDL=function(X){var H=X;X<=16777215&&(H+=parseInt("ff000000",16));return _.qw(H)};
Flb=function(X){var H=X.isDarkTheme;var l=X.extension;X=X.runColor;var b=void 0;if(l=l==null?void 0:l.colorMap){H=H?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";l=_.C(l);for(var U=l.next();!U.done;U=l.next())if(U=U.value,H===U.key){b=U.value;break}}b==null&&X&&(b=X);if(b)return hDL(b)};
P5=function(X){var H=X.config;var l=X.image;var b=X.imageConfig;var U=X.imageWrapperConfig;var K=X.run;var w=X.tag;var d=X.textLength;var B=X.startIndex===void 0?0:X.startIndex;X=X.length;B===void 0&&(B=0);K={run:K,startIndex:B,endIndex:X!==void 0?B+X:d,tag:w};l&&(K.image=l);b&&(K.imageConfig=b);U&&(K.imageWrapperConfig=U);H&&(K.config=H);return K};
B$b=function(X,H){if(X.weight)return X.weight;switch(X.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return H?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
qjO=function(X){switch(X){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"}};
sUm=function(X){switch(X){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"}};
Sw=function(X,H,l){var b=H;X.content&&l&&(l=X.content.indexOf("\n"),l!==-1&&(b=Math.min(H,l)));if(!X.content||X.content.length<=b)H=X;else if(X.attachmentRuns||X.commandRuns||X.decorationRuns||X.styleRuns||X.paragraphStyleRuns){H=fq(X.content,b);l=b;var U=X.attachmentRuns;if(U){var K=[];U=_.C(U);for(var w=U.next();!w.done;w=U.next())w=Object.assign({},w.value),w.startIndex===void 0||w.startIndex>=l||(w.length||(w.length=0),w.length+w.startIndex>l&&(w.length=l-w.startIndex),K.push(w));l=K}else l=void 0;
K=MM8(b,X.commandRuns);U=b;var d=X.decorationRuns;if(d){w=[];d=_.C(d);for(var B=d.next();!B.done;B=d.next()){B=B.value;var q=_.f(B.textDecorator,pq);if(q&&q.startIndex!==void 0&&!(q.startIndex>=U)){B=Object.assign({},B,{textDecorator:{highlightTextDecorator:Object.assign({},q)}});q=_.f(B.textDecorator,pq);if(!q.length||q.length+q.startIndex>U)q.length=U-q.startIndex;w.push(B)}}U=w}else U=void 0;w=MM8(b,X.styleRuns);if(d=X.paragraphStyleRuns)for(X=[],d=_.C(d),B=d.next();!B.done;B=d.next()){var u=B.value;
B=Object.assign({},u);if(!(B.startIndex===void 0||B.startIndex>=b)){if(!B.length||B.length+B.startIndex>b)B.length=b-B.startIndex;q=[];var e=void 0,y=void 0;if((e=u)==null?0:(y=e.listGroup)==null?0:y.listItems)for(u=_.C(u.listGroup.listItems),e=u.next();!e.done;e=u.next())if(e=Object.assign({},e.value),!(e.startIndex===void 0||e.startIndex>=b)){if(!e.length||e.length+e.startIndex>b)e.length=b-e.startIndex;q.push(e)}q.length>0&&(B.listGroup||(B.listGroup={}),B.listGroup=Object.assign({},B.listGroup,
{listItems:q}));X.push(B)}}else X=void 0;H={content:H,attachmentRuns:l,commandRuns:K,decorationRuns:U,styleRuns:w,paragraphStyleRuns:X}}else H=Object.assign({},X,{content:fq(X.content,b)});return H};
MM8=function(X,H){if(H){var l=[];H=_.C(H);for(var b=H.next();!b.done;b=H.next())if(b=Object.assign({},b.value),!(b.startIndex===void 0||b.startIndex>=X)){if(!b.length||b.length+b.startIndex>X)b.length=X-b.startIndex;l.push(b)}return l}};
fq=function(X,H){var l=H,b;if(b=l>0)b=X.charCodeAt(l-1),b=b>=55296&&b<=56319;b&&(l=X.charCodeAt(l),b=l>=56320&&l<=57343);b&&--H;return X.substring(0,H)};
_.z0=function(X){return(X==null?void 0:X.content)!==void 0};
y4N=function(X){return function(H){var l=X.run;(l.onTap!==void 0||l.onLongPress!==void 0)&&_.f(l,miL)&&Ii(H,{data:{loggingDirectives:_.f(l,miL)},observer:_.jJ().resolve(cD),hideOption:uxk,showOption:eDK,layer:H.layer})}};
VMb=function(X){return function(H){for(var l in X)(QJ[l]||QJ[O2["default"]])(H,l,X[l])}};
PWL=function(X,H,l,b){for(var U=_.C(X.parts),K=U.next();!K.done;K=U.next()){K=K.value;if(typeof K==="string")throw Error("hh");if(K.start<=H&&l<=K.end){PWL(K,H,l,b);return}}X.parts.push({data:b,parts:[],start:H,end:l})};
f5b=function(X,H){for(var l=H.parts.length;l>=0;l--){var b=H.parts[l],U=H.parts[l-1],K=l===H.parts.length?H.end:b.start;U=l===0?H.start:U.end;K!==U&&H.parts.splice(l,0,X.slice(U,K));b&&f5b(X,b)}};
pZy=function(X){X.sort(function(H,l){if(H.startIndex<l.startIndex)return-1;if(l.startIndex<H.startIndex)return 1;H=H.endIndex-H.startIndex;l=l.endIndex-l.startIndex;return H>l?-1:l>H?1:0})};
_.Sjl=function(X){var H=X.thumbnails;if(H){X={sources:[]};H=_.C(H);for(var l=H.next();!l.done;l=H.next()){l=l.value;var b={};b.url=l.url;b.width=l.width;b.height=l.height;X.sources.push(b)}return X}};
zDh=function(X,H,l,b){if(!H)return X.length>=1?X[X.length-1]:null;if(b)for(var U=_.C(X),K=U.next();!K.done;K=U.next()){K=K.value;var w=void 0,d=(w=K.url)==null?void 0:w.indexOf(b);if(d!==void 0&&d>=0)return K}b=_.C(X);for(U=b.next();!U.done;U=b.next())if(U=U.value,U.width&&U.height&&(l&&U.width>=H||!l&&U.height>=H))return U;for(H=X.length-1;H>=0;H--)if(l&&X[H].width||!l&&X[H].height)return X[H];return X[0]};
_.nk8=function(X){var H;return(X=(H=X.sources)==null?void 0:H[0])?X.width/X.height:0};
_.kDW=function(X){if(X.sources){X=_.C(X.sources);for(var H=X.next();!H.done;H=X.next()){H=H.value;var l=void 0;if((l=H.clientResource)==null?0:l.imageName)return H}}};
DuO=function(X){var H={};X=_.f(X.processor,xuW);var l=(X=X==null?void 0:(l=X.imageTint)==null?void 0:l.color)?_.qw(X):void 0;l&&(H.color=l);return H};
tMO=function(X){var H;if((H=X.clientResource)!=null&&H.imageColor)return _.qw(X.clientResource.imageColor)};
_.Eky=function(X,H,l,b,U,K,w){if(!H||H.length===0||H[0].clientResource)return null;if(l&&H[0].url)return H[0].url;b===void 0&&(b=!0);if(b){var d;X=Wly*(U||(X==null?void 0:(d=X.getBoundingClientRect())==null?void 0:d.width)||0)}else{var B;X=Wly*(K||(X==null?void 0:(B=X.getBoundingClientRect())==null?void 0:B.height)||0)}H=zDh(H,X,b,w);return(H==null?0:H.url)?H.url:(H==null?0:H.imageData)?H.imageData:null};
gkz=function(X,H,l){l=l?[l]:[];X.opacity&&l.push("opacity: "+X.opacity+";");H&&X.placeholderColor?(X=_.qw(X.placeholderColor),l.push("background-color: "+X+";")):l.push("background-color: transparent;");return l.join(" ")};
GDK=function(X,H,l,b,U){var K=["ytCoreImageHost"];H&&K.push(H);l||K.push("ytCoreImageFillParentHeight");b||K.push("ytCoreImageFillParentWidth");switch(X.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":K.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":K.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":K.push("ytCoreImageContentModeCenter");break;default:K.push("ytCoreImageContentModeScaleToFill")}X.flipForRtlLayout&&K.push("ytCoreImageFlipRtl");
switch(U){case "TOP_START":var w;K.push(((w=document.body)==null?void 0:w.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return K.join(" ")};
ZPZ=function(X){var H;if(X==null?0:(H=X.clientResource)==null?0:H.imageName){var l;X=(l=X.clientResource)==null?void 0:l.imageName;a:{switch(X){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":l="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":l="yt-logos-ext:yt-logo-updated";break a}l=void 0}return l||a58.get(X)||X}};
OPN=function(X){return _.P("mweb_wiz_skip_render")?iPm(X):vky(X)};
iPm=function(X){return function(H){var l=f9y("wink-root");Ns=mX.lastChild;pfk();LCy(l,_.F(X,H))}};
vky=function(X){var H=H===void 0?!1:H;return function(l){if(!H||!_.P("mweb_skip_keto_to_c3_if_no_data")||l.data!==void 0){var b=H$(!1);try{var U=l.children;_.P("mweb_render_outside_patch_killswitch")||mX?U?mF(_.F(X,l,U)):mF(_.F(X,l)):_.x2(new _.qd("ketoToC3 called outside of a patch",{tagName:X.TAG_NAME}))}finally{H$(b)}}}};
muk=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
T$K=function(X,H){X.onViewportEntered=H;QUh.observe(X)};
N$y=function(){var X={rootMargin:"10%",threshold:.01};_.P("mweb_enable_set_io_root_to_null_safari")?X.root=null:_.P("mweb_enable_set_io_root_to_body_safari")&&(X.root=document.body);return new IntersectionObserver(function(H,l){H.filter(function(b){return b.intersectionRect.height>0}).forEach(function(b){b=b.target;
if(!_.P("mweb_enable_only_update_image_when_connected")||b.isConnected!==!1){var U;(U=b.onViewportEntered)==null||U.call(b);l.unobserve(b)}})},X)};
c4l=function(X,H,l,b,U){function K(){if(b){var d=b.loadedClass,B=b.notifyOnUnloaded;d&&_.nq(X,d);B&&X.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function w(){var d=l(H,X);d&&X.getAttribute("src")!==d&&(_.P("mweb_enable_only_update_image_when_connected")&&X.isConnected===!1||d===X.src||(X.src=d),K())}
U=U===void 0?!0:U;X.removeAttribute("src");K();H&&(U?T$K(X,w):w())};
jUl=function(X,H,l){if(!H)return!1;H=l(H,X);l=X.getAttribute("src");return H&&H===l&&X.complete};
r4N=function(X,H){for(var l in H)l==="className"?X.className=H[l]:(QJ[l]||QJ[O2.default])(X,l,H[l])};
LlN=function(X,H,l){l=l===void 0?!1:l;var b=X.sources!==void 0?X:_.Sjl(X);if(b){var U=H.onload;H.onload=function(q){var u=q.target;l&&u.naturalWidth===120||_.kl(u,"ytCoreImageLoaded");H.notifyOnLoaded&&u.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));U==null||U(q)};
H.targetWidth&&H.preserveWidth&&(H.width=H.targetWidth);H.targetHeight&&H.preserveHeight&&(H.height=H.targetHeight);var K=_.kDW(b),w=K&&ZPZ(K),d=DuO(b);if(w)return(X=tMO(K)||d.color)&&(H.color=X),{type:"icon",iconName:w,config:Object.assign({},H,H.alt?{}:{"aria-hidden$":"true"},{"aria-label$":H.alt,role:"img"})};if(X.sources===void 0){H.alt=X.accessibility&&X.accessibility.accessibilityData&&X.accessibility.accessibilityData.label||H.alt;H.style$=gkz(X,H.shouldShowPlaceholder,H.style$);var B;H.isPreloaded=
!((B=_.f(X,J48))==null||!B.isPreloaded)}H.contentMode&&!b.contentMode&&(b.contentMode=H.contentMode);H.className=GDK(b,H.className,H.preserveHeight,H.preserveWidth,H.objectPosition);H.loadedClass="ytCoreImageLoaded";return{type:"image",image:b,config:H}}};
_.xl=function(){var X=_.Ab.apply(0,arguments);return _.z7(Yjh,function(H){var l=X.map(function(b){return b==null?void 0:b(H)});
return function(){return void l.forEach(function(b){return void(b==null?void 0:b())})}})};
I5N=function(X,H){var l=H==null?void 0:H.initial;return _.uL(function(){_.a5(!0);return l=X(l)},{equals:H==null?void 0:H.isEqual},"rSlKsc")};
A4b=function(X,H){if(X===H)return!0;if(X===void 0||H===void 0)return!1;var l,b,U,K,w,d,B,q;return X.content===H.content&&((l=X.styleRuns)==null?void 0:l.length)===((b=H.styleRuns)==null?void 0:b.length)&&((U=X.commandRuns)==null?void 0:U.length)===((K=H.commandRuns)==null?void 0:K.length)&&((w=X.attachmentRuns)==null?void 0:w.length)===((d=H.attachmentRuns)==null?void 0:d.length)&&((B=X.decorationRuns)==null?void 0:B.length)===((q=H.decorationRuns)==null?void 0:q.length)};
HO8=function(X){return X.parts.map(XdN)};
XdN=function(X){if(typeof X==="string")return X;var H=X.data;X=H.image!==void 0&&H.imageConfig!==void 0?_.F("span",{el:_.xl(VMb(X.data.imageWrapperConfig))},_.F(_.Dp,Object.assign({},{data:X.data.image},X.data.imageConfig))):_.F(X.data.tag,{el:_.xl(y4N(X.data),VMb(X.data.config))},X.parts.map(XdN));return B$(X)};
luL=function(X,H){return X===H?!0:X===void 0||H===void 0?!1:X.noStyleRuns===H.noStyleRuns&&X.noLinkColor===H.noLinkColor&&X.noEndpoints===H.noEndpoints&&X.headerRuns===H.headerRuns&&X.isOverlay===H.isOverlay&&X.linkInheritColor===H.linkInheritColor&&X.userInput===H.userInput&&X.isHeadline===H.isHeadline};
obb=function(X){return function(){var H,l,b,U,K,w,d,B,q,u,e,y,V,p;return{ariaLabel:(H=X.ariaLabel)==null?void 0:H.call(X),className:(l=X.className)==null?void 0:l.call(X),ellipsisTruncate:(b=X.ellipsisTruncate)==null?void 0:b.call(X),isOverlay:(U=X.isOverlay)==null?void 0:U.call(X),linkInheritColor:(K=X.linkInheritColor)==null?void 0:K.call(X),noEndpoints:(w=X.noEndpoints)==null?void 0:w.call(X),noStyleRuns:(d=X.noStyleRuns)==null?void 0:d.call(X),noLinkColor:(B=X.noLinkColor)==null?void 0:B.call(X),
noPreWrap:(q=X.noPreWrap)==null?void 0:q.call(X),noWrap:(u=X.noWrap)==null?void 0:u.call(X),skipOnClick:(e=X.skipOnClick)==null?void 0:e.call(X),userInput:(y=X.userInput)==null?void 0:y.call(X),headerRuns:(V=X.headerRuns)==null?void 0:V.call(X),isHeadline:(p=X.isHeadline)==null?void 0:p.call(X)}}};
U5h=function(X,H){X=new bOk(X,H);_.n2(X);throw X;};
$58=function(X,H,l){var b=iZb(X);X._numRenders=0;try{var U=XKN(function(){return _.F(H,Object.assign({},l))})}catch(w){var K=function(d){d.args||(d.args=[]);
d.args.push("Error in web component wrapper");d.args.push(X.tagName.toLowerCase());return d};
_.k2(w instanceof Error?K(w):new bOk("Wiz rendering error",X.tagName.toLowerCase()));throw w;}finally{iZb(b)}return U};
_.gC=function(X,H,l){function b(u){var e={};u=_.C(u);for(var y=u.next();!y.done;y=u.next()){y=y.value;var V=void 0,p=void 0,z=void 0,t=_.IK((z=(p=(V=y).getAttribute)==null?void 0:p.call(V,"slot"))!=null?z:"children");if(V=e[t])V.push(y);else if(t in K||t==="children")e[t]=[y]}u=_.C(Object.keys(e));t=u.next();for(y={};!t.done;y={content$jscomp$62:void 0},t=u.next())t=t.value,t!=="children"&&(y.content$jscomp$62=e[t],e[t]=function(W){return function(){return W.content$jscomp$62}}(y));
return e}
l=l===void 0?{}:l;X.debugName=H+" (CoW)";var U,K=(U=l.props)!=null?U:{};v6m.add(H);var w=K08();U=function(){var u=w.apply(this,arguments)||this;u.rawProps={};u.queuingRender=!1;u.dispose=function(){};
u.isWebComponentWrapper=!0;u.isReparenting=!1;u.hasRendered=!1;return u};
_.S(U,w);U.prototype.render=function(){this.hasRendered=!0;for(var u=_.C([].concat(_.LJ(this.attributes))),e=u.next();!e.done;e=u.next())e=e.value,e.name!=="slot"&&e.name!=="hidden"&&this.removeAttribute(e.name);u=Object.assign({},this.componentProps,this.slotProps);e=_.C($58(this,X,u));u=e.next().value;e=e.next().value;!(u[0]instanceof Element)||u.length>1?U5h("Wrapped Wiz components must return a single root element.",H):(u=u[0].tagName.toLowerCase(),u!==H&&U5h("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(u+" !== '"+H),H),this.dispose=e)};
U.prototype.setUpProps=function(){for(var u=this.rawProps,e=this.attributes,y=_.C(Object.keys(K)),V=y.next();!V.done;V=y.next()){V=V.value;var p=void 0;((p=this)==null?0:p[V])&&this[V]!==Rbb&&u[V]===void 0&&(u[V]=this[V],(p=Object.getOwnPropertyDescriptor(this.constructor.prototype,V))&&Object.defineProperty(this,V,p))}y=_.C(e);for(V=y.next();!V.done;V=y.next()){p=V.value;V=_.IK(p.name);var z=V==="class"&&!e.getNamedItem("class-name");if(V in K||z)p=p.value===""||p.value==="true"?!0:p.value==="false"?
!1:isNaN(Number(p.value))?p.value:Number(p.value),V!=="class"||u.className?u[V]=p:u.className=p}e={};for(var t in K)K[t]!==_.ta&&K[t]!==CtZ&&(u[t]instanceof Function&&U5h("Function props must be configured as STATIC, not SIGNAL.",H),V=_.C(_.FU(u[t],void 0,"thC4wf")),y=V.next().value,V=V.next().value,e[t]=V,u[t]=y);u=_.C([u,e]);this.componentProps=u.next().value;this.setters=u.next().value;this.slotProps=b(this.childNodes)};
U.prototype.connectedCallback=function(){Qjh.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in K&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
U.prototype.disconnectedCallback=function(){if(!Qjh.has(this)){var u;a:{if(_.W5)for(u=this;u;){if(_.El.has(u)){u=!0;break a}u=u.parentElement}u=!1}if(u)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){u=_.C([].concat(_.LJ(this.attributes)));for(var e=u.next();!e.done;e=u.next()){e=e.value;var y=void 0;e.name==="slot"||e.name==="hidden"&&((y=l.unsafeExternallySettableAttributes)==null?0:y.has("hidden"))||this.removeAttribute(e.name)}}this.innerText="";Wdy(this)}}};
U.prototype._setPendingPropertyOrPath=function(){};
U.prototype.notifyPath=function(){};
_.ja.Object.defineProperties(U.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var d=_.C(Object.keys(K)),B=d.next(),q={};!B.done;q={prop$jscomp$109:void 0},B=d.next())q.prop$jscomp$109=B.value,B=void 0,((B=l.legacyPolymer)==null?0:B.forwardHostProps)&&k6y.has(q.prop$jscomp$109)||Object.defineProperty(U.prototype,q.prop$jscomp$109,{set:function(u){return function(e){var y=this;Qjh.has(this)||(this.setters?eI(function(){var V,p;return void((p=(V=y.setters)[u.prop$jscomp$109])==null?void 0:p.call(V,e))}):(this.rawProps[u.prop$jscomp$109]=e,this.queuingRender&&u.prop$jscomp$109===
"data"&&e!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(q),
get:wdL.has(q.prop$jscomp$109)?void 0:function(){return Rbb}});
customElements.define(H,U)};
_.d5y=function(X,H){return(X=_.G0(X,H))?_.jA(_.Yn(X)):null};
_.a1=function(X){if(X=_.G0(X,Number.MAX_VALUE,void 0,"width"))return _.Yn(X)};
_.G0=function(X,H,l,b){b=b===void 0?"width":b;if(!X||!X.length)return null;if(_.P("kevlar_tuner_should_always_use_device_pixel_ratio")){var U=window.devicePixelRatio;_.P("kevlar_tuner_should_clamp_device_pixel_ratio")?U=Math.min(U,_.Yy("kevlar_tuner_clamp_device_pixel_ratio")):_.P("kevlar_tuner_should_use_thumbnail_factor")&&(U=_.Yy("kevlar_tuner_thumbnail_factor"));hbZ=U}else hbZ||(hbZ=window.devicePixelRatio);U=hbZ;_.P("kevlar_tuner_should_always_use_device_pixel_ratio")?H*=U:U>1&&(H*=U);if(_.P("kevlar_tuner_min_thumbnail_quality"))return X[0].url||
null;U=X.length;if(_.P("kevlar_tuner_max_thumbnail_quality"))return X[U-1].url||null;if(l)for(var K=0;K<U;K++)if(X[K].url.indexOf(l)>=0)return X[K].url||null;for(l=0;l<U;l++)if(X[l][b]>=H)return X[l].url||null;for(H=U-1;H>0;H--)if(X[H][b])return X[H].url||null;return X[0].url||null};
qxO=function(){Zp.size?setTimeout(function(){iv(F0z)},0):BQy=0};
F0z=function(){var X=(0,_.Jl)(),H=null,l=!1;Zp.forEach(function(U){U.loaded=!0;U.loadTime=X;U.pendingPaint=!1;var K=sx8.get(U);K&&K.resolve(X);H=U;l||!U.ftlEligible&&U.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(l=!0)});
var b;((b=H)==null?0:b.markDirty)&&H.markDirty();Zp.clear();BQy=0;l&&MEy(X)};
ufz=function(X){Zp.add(X);X.pendingPaint=!0;BQy||(BQy=_.v5(_.Ss,qxO))};
eb8=function(X){X.loaded=!1;X.loadTime=Infinity;var H=sx8.get(X);H&&(H.reject(Error("nh")),sx8.delete(X));X.pendingPaint&&(Zp.delete(X),X.pendingPaint=!1)};
_.yH8=function(X){var H=X.indexOf(":");return H===-1?{originalName:X}:{originalName:X.substring(0,H),datasyncId:X.substring(H+1)}};
_.Ptm=function(){return _.h(function(X){if(VEN!==void 0)return X.return(VEN);VEN=new Promise(function(H){var l;return _.h(function(b){switch(b.nextAddress){case 1:return _.Ew(b,2),b.yield(_.Ol.open("test-only"),4);case 4:return b.yield(_.Ol.delete("test-only"),5);case 5:_.Zt(b,3);break;case 2:if(l=_.Ow(b),l instanceof Error&&l.name==="SecurityError")return H(!1),b.return();case 3:H("caches"in window),_.m5(b)}})});
return X.return(VEN)})};
SxW=function(){return _.h(function(X){if(X.nextAddress==1)return X.yield(_.Ptm(),2);if(!X.yieldResult)return X.return(void 0);fuN||(fuN=new pdy);return X.return(fuN)})};
zb8=function(X){var H,l,b,U;return _.h(function(K){switch(K.nextAddress){case 1:return K.yield(SxW(),2);case 2:H=K.yieldResult;if(!H)throw Error("ph");return K.yield(H.open("yt-player-local-img"),3);case 3:return l=K.yieldResult,K.yield(l.match(X),4);case 4:b=K.yieldResult;if(!b)throw Error("qh");return K.yield(b.blob(),5);case 5:return U=K.yieldResult,K.return(U)}})};
nbb=function(X,H){for(var l in X)if(X.hasOwnProperty(l)&&H[l])return l;return null};
kky=function(X){return"stamp"+X.replace("-","_")+"_"};
x58=function(X){var H=X.match(/\[\[([\w\.]+)\]\]/);if(H&&H.length>1)return H[1];_.n2(Error("sh`"+X));return null};
D5l=function(X){return X===void 0?_.G7("REUSE_COMPONENTS",!1):X||!1};
EbN=function(X,H,l){l&&(H.is?(tEb.has(H)&&(X=tEb.get(H),l=X.listener,delete H[X.property],l.type==="element"&&H.removeEventListener(l.eventName,l.handler),tEb.delete(H)),W0L(H)):H.__proto__==HTMLElement.prototype&&(H=new _.qd("Rendererstamper removed a non custom element","Stamper: "+X+" element: "+(H&&H.nodeName)),_.x2(H)))};
gbl=function(X,H,l,b){var U=H.node?H.node:H;_.mh(l).parentNode===U&&(H.removeChild(l),EbN(X,l,b));if(X=ma.get(l))ma.delete(l),_.Ss.cancelJob(X);l.hidden=!1};
GkW=function(X,H,l,b){var U,K=(U=H.polymerController)!=null?U:H;U=H.loggingStatus;try{U&&(U.isRendererStamper=!0);if(typeof l!=="string"){for(var w in l.attributes)l.attributes[w]===!0?H.setAttribute(w,""):l.attributes[w]===!1?H.removeAttribute(w):H.setAttribute(w,l.attributes[w]);for(var d in l.params)K[d]=l.params[d],H!==K&&$D(H.localName,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(var B in l.properties){var q=l.properties[B];if(q){var u=x58(q);K[B]=X.get(u);H!==K&&$D(H.localName,B,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");
if(B==="on-tap"||B==="on-click"){var e=X.get(u);H.addEventListener("click",e);tEb.set(H,{property:B,listener:{type:"element",eventName:"click",handler:e}})}}else _.k2(new _.qd("Undefined property binding",B))}}l.classListBinding&&l.classListBinding.split(" ").forEach(function(y){y=y.trim();if(y.startsWith("[[")){if(y=x58(y))y=X.get(y),(Array.isArray(y)?y:(y!=null?y:"").split(" ")).forEach(function(V){V&&_.TW(H,V,!0)})}else y&&_.TW(H,y,!0)});
K.data=b}finally{U&&(U.isRendererStamper=!1)}if(l=ma.get(H))H.hidden=!1,ma.delete(H),_.Ss.cancelJob(l)};
aul=function(X,H,l,b){if(H&&H.children&&(l=H.children[l]))if(_.G7("DEFERRED_DETACH"))for(;l&&!ma.has(l);){var U=X,K=H,w=l,d=b;w.hidden=!0;U=_.eh(_.Ss,gbl.bind(null,U,K,w,d),0);ma.set(w,U);l=l.nextElementSibling}else for(;(w=H.lastElementChild)&&(H.removeChild(w),EbN(X,w,b),w!=l););};
_.Qr=function(){for(var X=_.Ab.apply(0,arguments),H=!0,l=_.C(X),b=l.next();!b.done;b=l.next())if(typeof b.value!=="string"){H=!1;break}return H?X.join(" ").trim()||void 0:function(){for(var U="",K=_.C(X),w=K.next();!w.done;w=K.next())if(w=w.value,typeof w==="function"&&(w=w()),w)if(typeof w==="string")U+=" "+w;else for(var d in w)if(w.hasOwnProperty(d)){var B=w[d];typeof B==="function"&&(B=B());B&&(U+=" "+d)}U=U.trim()||void 0;return _.a5(U)}};
_.ZOL=function(X,H){return _.JY(X.entities,"markersEngagementPanelSyncEntity",H)};
_.T0=function(X,H){return _.JY(X.entities,"playerStateEntity",H)};
iOL=function(X,H){return _.JY(X.entities,"fantasyWinProbabilityEntity",H)};
vby=function(X,H){return _.JY(X.entities,"fantasyTeamEntity",H)};
OOy=function(X,H){return _.JY(X.entities,"fantasyPlayerEntity",H)};
m5Z=function(X,H){return _.JY(X.entities,"booleanEntity",H)};
Qxz=function(X,H){return _.JY(X.entities,"qrCodeEntity",H)};
TQz=function(X){return _.JY(X.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
cHZ=function(X){var H;return(H=NQy[X])!=null?H:"EVENT_SPAN_TYPE_UNKNOWN"};
jxm=function(X){return function(H){var l=cHZ(H.type);return l==="EVENT_SPAN_TYPE_UNKNOWN"?X(H):_.Oc("event",{type:l,nodepath:H.target instanceof Element?RdK(H.target):void 0},function(){return X(H)})}};
_.Nq=function(X){X&&vi("event")&&(X=jxm(X));return Njy(function(H){var l,b=(l=X)==null?void 0:l(H);return typeof b==="boolean"?b:!0})};
c5=function(X){return function(){return X()?X():void 0}};
Yx8=function(X){var H=_.SJ("animated-rolling-character"),l=FSN(),b=Wi(X.character)||Wi(X.previousCharacter),U=_.C(CD8()),K=U.next().value,w=U.next().value;_.DR(function(){if(window.ResizeObserver&&_.P("web_fix_rolling_numbers_zoom_safari")){var d=new _.jw(function(){var q,u,e=Math.round(((u=(q=H.value.querySelector("div"))==null?void 0:q.getBoundingClientRect().height)!=null?u:0)*100)/100;e&&w(e)},500),B=new ResizeObserver(function(){d.fire()});
B.observe(H.value);return function(){B.disconnect();d.dispose()}}});
CHO(function(){var d=_.P("web_fix_rolling_numbers_zoom_safari")?K:X.marginMultiplier;if(d){var B;(B=l.value)==null||B.cancel();b?(B=X.previousCharacter?Number(X.previousCharacter)+10:X.rollUp?0:30,X.shouldAnimate||(B-=rHy(X,B))):(B=X.rollUp?0:2,X.shouldAnimate||(B-=X.rollUp?-1:1));H.value.style.marginTop="-"+B*d+"px";X.shouldAnimate?l.value=JH8(H.value,X,B,b,d):H.value.style.display=X.character?"":"none"}});
return _.F("animated-rolling-character",{el:H,class:"animatedRollingCharacterHost"},zVW(b,function(){for(var d=[],B=1;B<30;B++)d.push(_.F("div",null,B%10));return _.F(_.Xi,null,_.F("div",null,"\u00a0"),d,_.F("div",null,"\u00a0"))},function(){return L0y(X.character)}))};
L0y=function(X){return _.F(_.Xi,null,_.F("div",null,"\u00a0"),_.F(_.Xi,null,zVW(!X||_.w8(X),function(){return _.F("div",null,"\u00a0")},function(){return _.F("div",null,X)})),_.F("div",null,"\u00a0"))};
JH8=function(X,H,l,b,U){l=new Animation(new KeyframeEffect(X,[{transform:"translateY(0px)"},{transform:"translateY("+(b?rHy(H,l):H.rollUp?-1:1)*U+"px)"}],Iuk),document.timeline);H.character?(X.style.display="",l.onfinish=null):l.onfinish=function(){X.style.display="none"};
l.play();return l};
rHy=function(X,H){var l=Number(X.character)+10;if(X.previousCharacter)if(X.character){var b=Number(X.character),U=Number(X.previousCharacter);X=X.rollUp?U<b?l:l+10:U<b?l-10:l}else X=X.rollUp?30:0;else X=X.character==="0"?l:X.rollUp?l-10:l+10;return H-X};
AHm=function(X){return function(H){var l={},b;for(b in H){var U=void 0,K=void 0;((U=void 0)==null?0:(K=U.callbacks)==null?0:K[b])||(l[b]=H[b])}return _.F(sBb,null,function(){for(var w in l)H[w]=_.a5(l[w]);H.disableReactiveLogging=!0;return _.F(X,Object.assign({},H))})}};
lTZ=function(X,H,l,b,U,K,w){l=new Animation(new KeyframeEffect(X,[{transform:"translateY(0px)"},{transform:"translateY("+(K?XoK(H,l,b,U):b?-1:1)*w+"px)"}],HEZ),document.timeline);H?(X.style.display="",l.onfinish=null):l.onfinish=function(){X.style.display="none"};
l.play();return l};
XoK=function(X,H,l,b){var U=Number(X)+10;H?X?(X=Number(X),H=Number(H),l=l?H<X?U:U+10:H<X?U-10:U):l=l?30:0:l=X==="0"?U:l?U-10:U+10;return b-l};
bEL=function(X){var H=FSN(),l=FSN();wKZ(function(){H.value=X.numberText;l.value=X.numberValue},[X.numberText]);
var b=X.fontSizeMultiplier?X.heightPx*X.fontSizeMultiplier:X.heightPx,U=Lel(function(){if(X.numberText){var w=X.numberText;var d=X.forceRollUp||!l.value||!X.numberValue||l.value<X.numberValue;var B=!!X.shouldAnimate,q=H.value,u=[],e=0,y=0,V=(q?q.replace(/\D/g,"").length:0)-(w?w.replace(/\D/g,"").length:0);q=q?q.split(/(\d)/).filter(Boolean):[];for(w=w.split(/(\d)/).filter(Boolean);V<0;){var p=w[y];u.push({character:p,rollUp:d,marginMultiplier:b,shouldAnimate:B});y++;Wi(p)&&V++}for(;e<V;)p=q[e],u.push({previousCharacter:p,
rollUp:d,marginMultiplier:b,shouldAnimate:B}),e++,Wi(p)||V++;for(;y<w.length;)V=w[y],p=q[e],Wi(V)===Wi(p)?(y++,e++):Wi(V)?(e++,V=void 0):Wi(p)&&(y++,p=void 0),u.push({character:V,previousCharacter:p,rollUp:d,marginMultiplier:b,shouldAnimate:B});d=u}else d=[];return d},[X.numberText]),K=X.numberText?["height: "+b+"px;",
"line-height: "+X.heightPx+"px;"].join(" "):"";return _.F("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:K,dir:"ltr","aria-hidden":"true"},U.map(function(w){return _.F(oCN,Object.assign({},w))}))};
Ucy=function(X){switch(X){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}};
_.$cb=function(X,H){if(!X&&!H)return"medium";X=Math.max(X||0,H||0);return X>=256?"large":X>=96?"medium":"small"};
K2l=function(X){switch(X){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
RX8=function(X){return new KeyframeEffect(X,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
CqO=function(X){return new KeyframeEffect(X,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.rC=function(X){return function(){var H="",l;for(l in X){for(var b=X[l];typeof b==="function";)b=b();b!==void 0&&b!==null&&(H+="; "+l+": "+b)}return H.length>0?_.a5(H.slice(2)):_.a5()}};
wo8=function(X){switch(X){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"}};
dcy=function(X,H){if(H)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(X)switch(X){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"}};
svN=function(X,H,l,b,U,K,w){var d=hXy(X),B=d.disabled,q=d.iconPosition,u=d.style,e=d.focused,y=function(){return!!z()&&q()==="icon-only"},V=function(){return!!z()&&q()==="icon-only-40"},p=function(){return!!z()&&q()==="icon-with-label"},z=function(){return!!H||!(b==null||!b())};
return{type:function(){return u()==="call-to-action-inverse"?"text":u()==="overlay-dark"&&X().type!=="filled"&&X().type!=="tonal"?"tonal":X().type},
shouldFocus:function(){return(e()||(K==null?void 0:K()))&&!B()},
hasIconLeading:function(){return!!z()&&q()==="leading"},
hasIconTrailing:function(){return!!z()&&q()==="trailing"},
hasIconLeadingTrailing:function(){return!!z()&&!!(l||U!=null&&U())&&q()==="leading-trailing"},
hasIconOnly:y,hasIconOnly40:V,hasIconWithLabel:p,iconButton:function(){return y()||V()||p()},
visiblyDisabled:function(){return(B()?"disabled":X().state)==="disabled"||B()},
overrideSmallSizeIcon:function(){return!X().ignoreIconSizeOverride&&F2h(X(),z())},
iconToRender:H?H:function(){return _.F(_.Ja,{icon:b,gradientColor:function(){var t;return(t=X().customColors)==null?void 0:t.iconGradientColor},
size:function(){return BKk(X(),!0,X().ignoreIconSizeOverride)},
active:function(){return X().toggled},
iconFilter:function(){return qgy(X())},
animateIcon:w})},
secondaryIconToRender:l?l:function(){return _.F(_.Ja,{icon:U,size:function(){return BKk(X(),!0,X().ignoreIconSizeOverride)},
active:function(){return X().toggled},
iconFilter:function(){return qgy(X())}})}}};
hXy=function(X){return{size:function(){return X().size},
style:function(){return X().style},
focused:function(){return X().focused},
disabled:function(){return X().disabled},
onTap:function(H){var l,b;return(b=(l=X()).onTap)==null?void 0:b.call(l,H)},
alignByText:function(){return X().alignByText},
aTagConfig:function(){return X().aTagConfig},
customColors:function(){return X().customColors},
segmentedPosition:function(){return X().segmentedPosition},
toggled:function(){return X().toggled},
toggleable:function(){return X().toggleable},
accessibilityLabel:function(){return X().accessibilityLabel},
onToggle:function(H){var l,b;return(b=(l=X()).onToggle)==null?void 0:b.call(l,H)},
iconPosition:function(){return X().iconPosition},
oneOffCustomTextWrap:function(){return X().oneOffCustomTextWrap},
disableTextEllipsis:function(){return X().disableTextEllipsis},
disableBackdropFilter:function(){return X().disableBackdropFilter},
tooltipText:function(){return X().tooltipText},
tooltipShape:function(){return X().tooltipShape},
ariaHidden:function(){return X().ariaHidden},
tabIndex:function(){return X().tabIndex},
buttonText:function(){return X().buttonText},
formattedButtonText:function(){return X().formattedButtonText},
animatedTextProps:function(){return X().animatedTextProps},
onClickRateLimitMs:function(){return X().onClickRateLimitMs}}};
F2h=function(X,H){H=(X.iconPosition==="icon-only"||X.iconPosition==="icon-only-40"||X.iconPosition==="icon-with-label")&&H;return!X.segmentedPosition&&H&&X.size==="S"};
BKk=function(X,H,l){switch(X.size){case "XS":return 16;case "S":return!l&&F2h(X,H)?24:16;default:return 24}};
Moz=function(X){switch(X){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"}};
u2h=function(X){switch(X){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"}};
eXh=function(X){switch(X){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"}};
qgy=function(X){if(X.style==="overlay-dark"&&X.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
Lq=function(X){return X&&X.endsWith("px")?Number(X.slice(0,-2)):0};
PqO=function(X,H){var l=_.C(_.Gx(function(){var U,K;return(K=X())!=null?K:H==null?void 0:(U=H())==null?void 0:U.text})),b=l.next().value;
return[function(U){var K=_.uL(function(){var B;return Object.assign({},{location:"bottom",offset:16,delay:1},H==null?void 0:H(),{text:(B=b())!=null?B:""})},void 0,"IJU38d");
_.Wg(function(){var B=K();_.h1(function(){_.Ss.addJob(function(){Yl.notify(U,B)},4)})},"WlsgZc");
var w=function(){yDy(U,K())},d=function(){Vom()};
U.addEventListener("mouseenter",w);U.addEventListener("focus",w);U.addEventListener("mouseleave",d);U.addEventListener("blur",d);U.addEventListener("tap",d);_.E2(function(){U.removeEventListener("mouseenter",w);U.removeEventListener("mouseleave",d);U.removeEventListener("focus",w);U.removeEventListener("blur",d);U.removeEventListener("tap",d);Vom()})},
l.next().value]};
poW=function(X,H){if(!Jo){var l;rhz(function(){return l=BWZ(X,H)});
return l}X.parent=fTy();return BWZ(X,H)};
fTy=function(){var X=Ye(Jo||void 0,dfN);return DKZ(X)?void 0:X};
I1=function(X,H){_.Mq(X,Object.assign({},H,{forceClickLogging:!0}))};
SgN=function(X){switch(X){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"}};
nCy=function(X,H){var l=_.sl(X==null?void 0:X.onTap),b={};l&&(b.getClickedVisualElement=function(){var U;return zXO(X,l,H==null?void 0:(U=H.value)==null?void 0:U.visualElement)});
b=_.uv({elementsCommand:X.onTap,forceNewState:!0,additionalCommandArgs:b});return ew(b)?b:void 0};
k_y=function(X,H,l,b){I1(X,Object.assign({},{form:{element:H,event:l}},b))};
xcK=function(X,H,l,b,U){var K=void 0;return function(w){var d=_.sl(l?X==null?void 0:X.onDisabledTap:X==null?void 0:X.onTap);if(d){var B;K=(B=K)!=null?B:H==null?void 0:H.value;if(d)if(_.P("web_button_vm_click_client_ve_killswitch"))k_y(d,K,w);else{var q;B=zXO(X,d,(q=K)==null?void 0:q.visualElement);if(U){k_y(d,U,w,{clickedVisualElement:B,form:{element:U}});return}k_y(d,K,w,{clickedVisualElement:B})}}b&&b(w)}};
zXO=function(X,H,l){H=H==null?void 0:H.clickTrackingParams;var b,U;X=X==null?void 0:(b=X.loggingDirectives)==null?void 0:(U=b.clientVeSpec)==null?void 0:U.uiType;if(l&&X&&!H)return l};
DcL=function(X){switch(X){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"}};
toh=function(X){switch(X){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"}};
W2y=function(X){switch(X){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"}};
ECb=function(X){switch(X){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"}};
_.Aa=function(X){return _.uL(function(){m3y()();return Nqk(X)},{debugName:"d8B62c"},"DEXkhd")};
gCy=function(X,H){return _.JY(X.entities,"engagementToolbarStateEntityPayload",H)};
aTN=function(X){(X=_.$l(X))&&_.G_8(X)};
_.G_8=function(X){var H=_.Bi();H&&_.zu(H,X)};
ZEL=function(X,H,l){_.TP(X,"yt-open-popup-action",[H,l||X])};
iEk=function(X,H){var l=_.tR(X,"endpoint"),b=_.tR(X,"action");return(l=b?b:l)&&H&&(l=H.navigationEndpointPopupMap[l])&&(X=_.ij(l,X),(l=_.tR(X,"renderer"))&&H.supportedPopups.hasOwnProperty(l))?{openPopupAction:{popupType:H.popupTypeMap[l],popup:X}}:null};
vCm=function(X,H,l,b){if(b){var U;l=l==null?void 0:(U=l.data)==null?void 0:U.contents;(U=l instanceof Array&&l.length?l[0]:l)&&(l=_.tR(U,"renderer"))&&b.supportedPopups.hasOwnProperty(l)&&(H.stopPropagation(),ZEL(X,{openPopupAction:{popupType:b.popupTypeMap[l],popup:U}}))}};
Qvy=function(X,H,l,b){b=b===void 0?!1:b;var U=OE8(H);if(U){U.href&&e4(U.href);var K=H.button;K=K!==void 0?K===0&&!X8(H):!X8(H);U.data&&K&&mc8(X,U,H,l,b)}};
mc8=function(X,H,l,b,U){U=U===void 0?!1:U;var K=_.Yy("pbj_navigate_limit",-1)===0;TKy(H);_.jJ().resolve(_.c$(G3));var w=H.data;if(Object.keys(w).length!==0)if(!_.P("unplugged_web_disable_actions_for_cec_endpoint")&&_.f(w,_.J$))_.P("endpoint_behavior_command_executor_fix_killswitch")||(l.preventDefault(),l.stopPropagation()),_.j7(X,[w],X);else if(b=iEk(w,b))w.loggingUrls&&w.loggingUrls.forEach(function(B){B.baseUrl&&_.aw(B.baseUrl)}),l.preventDefault(),l.stopPropagation(),ZEL(X,b,H);
else{var d=NKb(0,H.data,l);if(X=H.getForm)X=X(),d.tempData=d.tempData||{},d.tempData=Object.assign({},d.tempData,X);X=_.t2(l);if(b=X.find(function(B){return!!B.visualElement}))d.createScreenConfig=d.createScreenConfig||{},d.createScreenConfig.clickedVisualElement=b.visualElement;
if(!K)if(l.preventDefault(),l.stopPropagation(),_.f(w,_.cDy)&&!U&&_.JF.instance)_.JF.instance.resolveCommand(w,d);else if(_.P("kevlar_command_handler_formatted_string")&&!U&&_.JF.instance&&jvz(w))U=X.find(function(B){return!!B.is})||l.target,l={form:Object.assign({},d,{event:l,
element:U,originatingNode:H})},_.JF.instance.resolveCommand(w,l);else{w=_.t2(l);l=[];for(U=0;U<w.length;U++)(K=w[U].is)&&l.push(K);Dhb({parents:l.join(","),text:H.innerText},function(){_.QX(H,"yt-navigate",d)})}}};
rDh=function(X){if(X=OE8(X))TKy(X),NyL(X.href)};
OE8=function(X){X=_.t2(X);for(var H,l=0;l<X.length;l++)if(H=X[l],H.tagName==="A"&&H.classList.contains("yt-simple-endpoint")){if(!H.data)break;return H}return null};
X8=function(X){return X.shiftKey||X.altKey||X.metaKey||X.ctrlKey};
JDl=function(X,H){var l={itct:H.clickTrackingParams};_.P("kevlar_client_side_screens")&&(!_.f(H,_.HM)||_.P("kevlar_exclude_endpoint_killswitch"))&&(l.endpoint=JSON.stringify(H));_.P("enable_unknown_lact_fix_on_html5")&&_.jJ().resolve(_.c$(_.HS))&&(l.lact=_.JV());mtb(l);_.Ec(X,l)};
TKy=function(X){X.href&&Object.keys(X.data).length!==0&&JDl(X.href,X.data)};
jvz=function(X){for(var H=_.C(L2z),l=H.next();!l.done;l=H.next())if(X[l.value])return!1;return!0};
YgZ=function(){if(lE)return lE;if(window.lottie)return lE=Promise.resolve(window.lottie);var X=_.zd(_.gx("LOTTIE_URL"));return X?lE=new Promise(function(H,l){var b=document.createElement("script");b.addEventListener("load",function(){H(lottie)});
b.addEventListener("error",function(U){var K="Lottie library failed to load.";U?U.message&&(K+=" Original description: "+U.message,_.Dq(U,K)):U=Error(K);_.x2(U);l(U)});
b.setAttribute("async","");_.sw(b,X);document.head.appendChild(b)}):Promise.reject(Error("th"))};
ITy=function(){return lE?lE:YgZ()};
ADk=function(X){if(X)switch(X){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.P("kevlar_use_wil_icons"))return X=(X=TQz(_.WF().getState()))&&X.animationLightUrl&&X.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:X.animationLightUrl,pathDarkTheme:X.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,X?X:bE.get("LIKE");break;case "LIKE_DELHI_PLAYER":return bE.get("LIKE_DELHI_PLAYER")}};
X7m=function(X){var H=ADk(X);if(H)return H;switch(X){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return bE.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return bE.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return bE.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return bE.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return bE.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return bE.get("NOTIFICATION_BELL")}};
Hab=function(X,H){if(!X.closest)return!1;H=!!ADk(H);return _.gx("ID_TOKEN")&&H?!!X.closest("segmented-like-dislike-button-view-model")||!!X.closest("yt-player-quick-action-buttons"):!1};
oay=function(X,H){if(!X||lam)H=!1;else{var l;if(!(l=Hab(X,H)))if(X.closest)if(l=!_.gx("ID_TOKEN"),X=X.closest("ytd-subscription-notification-toggle-button-renderer-next"),l||!X)l=!1;else{var b;l=((b=X.data)==null?void 0:b.targetId)==="notification-bell"&&H!=="EXPAND_MORE"}else l=!1;H=l}return H};
bam=function(X){var H,l;return _.h(function(b){switch(b.nextAddress){case 1:return _.Ew(b,2),b.yield(fetch(X),4);case 4:return H=b.yieldResult,b.yield(H.json(),5);case 5:return b.return(b.yieldResult);case 2:l=_.Ow(b),_.x2(l),_.m5(b)}})};
UBK=function(X,H){var l,b,U;return _.h(function(K){if(K.nextAddress==1)return(l=H?X.pathDarkTheme:X.path)?K.yield(Promise.all([bam(l),YgZ()]),2):K.return();b=K.yieldResult;U=b[0];Um.set(l,U);_.m5(K)})};
KMy=function(X,H,l,b){function U(w,d){if(H.value===d&&!H.cancelled){for(;X.firstChild;)X.removeChild(X.firstChild);X.classList.add("ytSpecIconShapeHost");w(X,b)}}
var K=_.$By(_.jJ().resolve(_.rT),l);typeof K==="function"?(H.value=null,U(K,null)):(H.value=K,K.then(function(w){U(w,K)}))};
RQl=function(X,H){var l=document.createElement("div"),b=_.ky(l,function(){return _.F(_.M,{cond:X,then:function(U){return _.F(_.Kl,{data:U,options:H})}})},"ea");
return[l,b]};
_.Rq=function(X,H){if(H){var l={};CPy.forEach(function(b){b=w78(H,b,"--yt-lightsource-");Object.assign(l,b)});
dBO.forEach(function(b){b=w78(H,b,"--yt-basic-");Object.assign(l,b)});
_.j4(X,l)}};
w78=function(X,H,l){var b={};b[l+_.YE(H)]=X&&X[H]?_.qw(X[H]):"";return b};
_.wd=function(X,H,l){Cl[X]||(Cl[X]={});Cl[X][H]=l};
_.dd=function(X){Cl[X]||(Cl[X]={});return Cl[X]};
hQb=function(X){if(!X)return{};var H=X.foregroundTitleColor,l=X.backgroundColor;X=X.borderColor;var b="text";X?b="outline":l&&(b="filled");return{type:b,customColors:{color:H?_.qw(H):void 0,backgroundColor:l?_.qw(l):void 0,borderColor:X?_.qw(X):void 0}}};
Mpk=function(X){var H=X.renderer;var l=X.element;var b=X.commandController;var U=X.onTapCallback;var K=X.skipCommandHandling;var w=X.overrides;var d=X.forceIcon;var B=X.forceModernIconButton;var q=X.forceDisabled;var u=X.isSubscribe===void 0?!1:X.isSubscribe;var e=X.isPressed===void 0?!1:X.isPressed;var y=X.useButtonSize===void 0?!1:X.useButtonSize;X=FMy(H);u&&(X.style="mono",X.type="filled");d=!H.icon||!d&&H.text?H.icon?H.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:B?"icon-only":"icon-only-40";d==="icon-only-40"&&(X.type="text");var V;B=Object;u=B.assign;y=BlL(H,y);e=!!H.isSelected||!_.P("web_propagate_is_pressed_killswitch")&&!!e;var p=H.isSelected!==void 0;q=q===void 0?H.isDisabled:q;var z=H.text?_.ha(H.text):void 0;var t,W,G,r=((t=H.accessibilityData)==null?void 0:(W=t.accessibilityData)==null?void 0:W.label)||((G=H.accessibility)==null?void 0:G.label);t=r?r:_.D8(H.text);l=qMz(H,l,b,U,K);b=s88(H);b!=null&&b.length?(b=_.uv({innertubeCommand:okN(b),
forceNewState:!0}),b=ew(b)?b:void 0):b=void 0;return u.call(B,{},X,y,{iconPosition:d},w,{focused:!1,toggled:e,toggleable:p,disabled:q,formattedButtonText:z,accessibilityLabel:t,onTap:l,aTagConfig:b},hQb((V=H.colorData)==null?void 0:V.basicColorPaletteData),{oneOffCustomTextWrap:H.oneOffCustomTextWrap})};
qMz=function(X,H,l,b,U){return function(K){var w=s88(X);b(w,K);if(!U){w=_.C(w);for(var d=w.next();!d.done;d=w.next())I1(d.value,{form:{element:H,event:K},commandController:l})}}};
s88=function(X){var H=[];X.command&&H.push(X.command);X.serviceEndpoint&&H.push(X.serviceEndpoint);X.navigationEndpoint&&H.push(X.navigationEndpoint);return H};
BlL=function(X,H){if(H)switch(X.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(X.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
FMy=function(X){switch(X.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"}}};
udh=function(X,H){return typeof X!=="object"||X===null?!1:Object.keys(H).every(function(l){return l in X})};
hw=function(X){return Object.fromEntries(Object.keys(X).map(function(H){return[H,H]}))};
eQZ=function(X,H,l){return AIz(l,function(b,U){return function(K){var w=_.Ab.apply(1,arguments);return udh(K,X)?U.apply(null,[K[H]].concat(_.LJ(w))):U.apply(null,[K].concat(_.LJ(w)))}})};
F8=function(X){return function(H,l){return eQZ(X,H,l)}};
yUK=function(X,H){var l;return(l=_.JY(X,"playlistLoopStateEntity",H))!=null?l:void 0};
Vpk=function(X,H){var l;return(l=_.JY(X,"toggleMenuServiceItemEntity",H))!=null?l:void 0};
_.BS=function(X){return X!=null&&X.watch?X.watch.isTheaterMode:!1};
_.qn=function(X){return X!=null&&X.watch?X.watch.isWatchFullscreen:!1};
_.sm=function(X){return _.PPL(X)?!0:_.fay(X)};
_.PPL=function(X){return X!=null&&X.watch?X.watch.isSwatcherooActive:!1};
_.fay=function(X){return X!=null&&X.watch?X.watch.isWatchNarrowWidth:!1};
_.p7N=function(X){return _.BS(X)||_.qn(X)||_.fay(X)};
_.SMm=function(X){return X.watch.openEngagementPanels};
_.Mn=function(X,H){return _.JY(X.entities,"likeStatusEntity",H)};
zQm=function(X,H){return _.JY(X.entities,"likeCountEntity",H)};
_.naZ=function(X,H){return _.JY(X.entities,"stringEntity",H)};
ksW=function(X,H){return _.JY(X.entities,"dataFreshnessEntity",H)};
xBO=function(X,H){if(!X)return!1;var l,b=(l=_.f(X,_.Yu))==null?void 0:l.signal;if(b&&H.signalEndpointMap)return!!H.signalEndpointMap[b];var U;if((l=(U=_.f(X,_.uE))==null?void 0:U.request)&&H.continuationEndpointMap)return!!H.continuationEndpointMap[l];for(var K in X)if(H.commandEndpointMap[K])return!0;return!1};
DBW=function(X,H){if(H.streamingEndpointMap)for(var l in X)if(H.streamingEndpointMap[l]&&(X=H.streamingEndpointMap[l]))return X()};
tpK=function(X,H){var l,b=(l=_.f(X,_.Yu))==null?void 0:l.signal;if(b&&H.signalEndpointMap&&(l=H.signalEndpointMap[b]))return l();var U;if((l=(U=_.f(X,_.uE))==null?void 0:U.request)&&H.continuationEndpointMap&&(U=H.continuationEndpointMap[l]))return U();for(var K in X)if(H.commandEndpointMap[K]&&(X=H.commandEndpointMap[K]))return X()};
WMh=function(X){var H={"Content-Type":"application/json"};_.gx("EOM_VISITOR_DATA")?H["X-Goog-EOM-Visitor-Id"]=_.gx("EOM_VISITOR_DATA"):_.gx("VISITOR_DATA")&&(H["X-Goog-Visitor-Id"]=_.gx("VISITOR_DATA"));H["X-Youtube-Bootstrap-Logged-In"]=_.gx("LOGGED_IN",!1);_.gx("DEBUG_SETTINGS_METADATA")&&(H["X-Debug-Settings-Metadata"]=_.gx("DEBUG_SETTINGS_METADATA"));X!=="cors"&&((X=_.gx("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(H["X-Youtube-Client-Name"]=X),(X=_.gx("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(H["X-Youtube-Client-Version"]=
X),(X=_.gx("CHROME_CONNECTED_HEADER"))&&(H["X-Youtube-Chrome-Connected"]=X),(X=_.gx("DOMAIN_ADMIN_STATE"))&&(H["X-Youtube-Domain-Admin-State"]=X));(X=_.gx("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(H["X-YouTube-Lava-Device-Context"]=X);return H};
Eay=function(X,H){H.watchNextResponse||H.reelItemWatchResponse?H.watchNextResponse?X.content=H.watchNextResponse:X.content=H.reelItemWatchResponse:H.playerResponse?X.player=H.playerResponse:H.reelWatchSequenceResponse&&(X.reelSequence=H.reelWatchSequenceResponse)};
e2=function(X){return function(){return new X}};
yY=function(X){var H=_.jJ();return function(){return H.resolve(X)}};
_.VY=function(X){if(!X)return null;for(var H=[],l=0;l<X.textSegments.length;l++){var b=X.textSegments[l];b.text?H.push(b):b.emojiId&&H.push({emoji_id:b.emojiId})}return{text_segments:H}};
ia8=function(X,H,l,b,U,K,w){K=K===void 0?[]:K;var d=new _.PS;d.endpoint=l;if(!l)return _.k2(new _.qd("handle undefined endpoint",H.tagName)),d;var B=v$O(l);B.length&&(_.j7(X,B,H,b),d.actions=B);l.loggingUrls&&l.loggingUrls.forEach(function(u){u.baseUrl&&ZS(u.baseUrl,u.attributionSrcMode)});
B=!_.P("web_skip_impression_click_killswitch")&&b&&b.impression;if(l.clickTrackingParams&&!gaN(l)&&!Gsl(H)&&!B&&(B=_.lv(),!_.pl(B,H))){var q=H.getScreenLayer&&H.getScreenLayer();q?B.clickCommand(l,null,q):B.clickCommand(l,null)}B=!1;for(q=0;q<K.length;q++)if((0,K[q])(H,l,b)){B=!0;break}!B&&aab(l)&&(d.ajaxPromise=Za8(X,H,l,b,U,w));return d};
Gsl=function(X){var H;return(X=(H=X.data)==null?void 0:H.navigationEndpoint)&&!!X.clickTrackingParams};
gaN=function(X){var H=_.f(X,_.Yu);if(H&&(H=H.signal)&&vaN.indexOf(H)>=0)return!0;for(var l in X)if(Oay.indexOf(l)>=0)return!0;return!1};
aab=function(X){var H;if(((H=_.f(X,_.Yu))==null?void 0:H.signal)==="CLIENT_SIGNAL")return!1;for(var l in X)if(mBK.indexOf(l)>=0)return!1;X=Object.keys(X);return X.length===1&&X[0]==="loggingUrls"?!1:!0};
YMb=function(X,H,l,b,U,K,w){var d=_.S2.instance;if(d&&_.zE(d,b))var B=_.nl(d,b,U).then(function(u){return(u==null?0:u.data)?u:{data:u}});
else B=X.requestDataForServiceEndpoint(b,U),_.f(b,Q8b)||_.f(b,Tly)||_.f(b,_.NlO)||_.f(b,cUK)||_.x2(new _.qd("No RequestBuilder for endpoint",b));var q=_.kj();q.promise.thenCatch(function(){var u=_.tR(b,"action")||_.tR(b,"command")||_.tR(b,"endpoint");u&&(u=b[u],u.hasOwnProperty("onFailureAction")?_.j7(H,[u.onFailureAction],l):u.hasOwnProperty("onFailureCommand")&&_.j7(H,u.onFailureCommand,l));B.cancel("Resolver promise rejected")});
B.then(function(u){if(u){var e=u.error;if(e){if(K&&K.onServerError)K.onServerError(b,u);q.reject(new _.qd("Response error",b,e))}else if(u=u.data)if(e=u.error){if(K&&K.onServerError)K.onServerError(b,u);q.reject(new _.qd("Returned error",b,e))}else{j8N(H,l,u,b);rUb(u);if(e=iSy(u))for(var y=_.C(e),V=y.next();!V.done;V=y.next()){V=V.value;var p=_.jJ().resolve(_.c$(JUz))||LMy;if(!_.S2.instance||!p.some(function(t){return!!_.f(b,t)})||_.P("kevlar_response_processor_allowlist_killswitch")){var z=p=void 0;
((z=_.f((p=V)==null?void 0:p.commandMetadata,_.Ip))==null?0:z.sendPost)?_.ci(H,[V]):_.j7(H,[V],l)}}(y=_.f(u==null?void 0:u.frameworkUpdates,xj))&&w&&w(y);if(K&&K.onSuccess)K.onSuccess(b,u);q.resolve(new _.DH(u,e))}}else q.reject(new _.qd("Invalid service endpoint provided",b))},function(u){q.reject(u)});
return q.promise};
rUb=function(X){var H;(X=(H=_.f(X==null?void 0:X.onResponseReceivedCommand,IaN))==null?void 0:H.continuationItems)&&(X==null?void 0:X.length)===1&&_.f(X[0],AUN)&&_.sf("so_r",void 0,"search_overview_answer")};
Za8=function(X,H,l,b,U,K){var w;return(w=H.getNetworkManager&&H.getNetworkManager()?H.getNetworkManager():_.jJ().resolve(_.c$(_.o6)))?YMb(w,X,H,l,b,U,K):_.Cq("No network manager.")};
j8N=function(X,H,l,b){if(l=l.trackingParams||l.loggingDirectives&&l.loggingDirectives.trackingParams){var U;(_.f(b,_.tw)||_.f(b,X28)||_.f(b,HKy))&&b.clickTrackingParams&&(U=_.$l(b.clickTrackingParams));var K;b=(K=H.getScreenLayer)==null?void 0:K.call(H);H=_.lv().graftServerVe(l,U,b);_.NG(X,"yt-store-grafted-ve-action",[H])}};
_.lQO=function(X){var H=new Image;return new _.UA(function(l,b){H.addEventListener("load",function(){l()});
H.addEventListener("error",function(){b()});
H.src=X})};
oxO=function(X){return!!X};
bKh=function(X){return!!X};
Umb=function(X,H,l){var b=X.rowIndex;b!==void 0&&_.NG(X.hostElement,"yt-section-reactive-dismissal",[b,H,l])};
_.WS=function(X,H,l){X=_.C(X);for(var b=X.next();!b.done;b=X.next()){b=b.value;if(b===H)break;for(var U=_.C(l),K=U.next();!K.done;K=U.next())if(K=K.value,b.tagName===K||!_.P("web_event_button_role_check_killswitch")&&b.role==="button"&&K==="BUTTON")return!0}return!1};
_.Em=function(X,H,l){X=_.C(X);for(var b=X.next();!b.done;b=X.next()){b=b.value;if(b===H)break;for(var U=_.C(l),K=U.next();!K.done;K=U.next())if(b.id===K.value)return!0}return!1};
_.aq=function(){var X=_.jJ().resolve(_.c$(_.gd));return X?(X=X.getCurrentPage())?_.GE(X):null:null};
_.ZH=function(){var X=_.aq();if(!X){var H=_.jJ().resolve(_.c$(_.gd)),l=H?typeof H:"no page manager";H=H?H.getCurrentPage():null;l=new _.qd("Player is missing when requested.",l,H?H.tagName:"no page");_.n2(l)}return X};
_.GE=function(X){return X&&X.getPlayer?X.getPlayer():null};
$mL=function(X,H){X={args:{raw_player_response:X}};H&&(X.args=Object.assign({},X.args,H));return X};
K6O=function(X){if(X.args){if(X.args.raw_player_response)return X.args.raw_player_response;if(X.args.player_response)return JSON.parse(X.args.player_response)}};
_.RtO=function(X,H){var l={url:"/watch?v="+X.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};X.playlistId&&(l.url+="&list="+X.playlistId);X.playerParams&&(l.url+="&pp="+X.playerParams);X={watchEndpoint:X,commandMetadata:{webCommandMetadata:l}};H&&(X.clickTrackingParams=H);return X};
w2N=function(){return CNb||!!_.ij("yt.player.Application")};
hty=function(){return dmO||!!document.querySelector("link#player-css")};
BHO=function(){function X(){CNb=!0;F6O.resolve()}
var H,l;return _.h(function(b){F6O||(F6O=new _.cF,w2N()?X():(H=document.createElement("script"),H.addEventListener("load",X),l=_.qF(_.gx("PLAYER_JS_URL")),_.sw(H,l),document.head.appendChild(H)));return b.return(F6O.promise)})};
s78=function(){function X(){dmO=!0;qk8.resolve()}
if(!qk8)if(qk8=new _.cF,hty())X();else{var H=document.createElement("link");H.id="player-css";H.addEventListener("load",X);var l=_.qF(_.gx("PLAYER_CSS_URL"));_.ei(H,l,"stylesheet");document.head.appendChild(H)}return qk8.promise};
MdZ=function(){return w2N()&&hty()?Promise.resolve([]):Promise.all([BHO(),s78()])};
uuK=function(X,H,l){var b={args:{}};X&&(b.args.raw_player_response=X);H&&(b.args.raw_watch_next_response=H);l&&(b.args=Object.assign({},b.args,l));return b};
PNl=function(X,H,l){var b=!1;b=b===void 0?!0:b;X=typeof X==="string"?_.iE(document,X):X;var U=etN+"_"+_.Ly(X),K=yzK[U];if(K&&b)return Vdy(H,l)?K.api.loadVideoByPlayerVars(H.args||null):K.loadNewVideoConfig(H),K.api;K=new vS(X,U,H,l,void 0);yzK[U]=K;K.addOnDisposeCallback(function(){delete yzK[K.getId()]});
return K.api};
Vdy=function(X,H){return H&&H.serializedExperimentFlags?H.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):X&&X.args&&X.args.fflags?X.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
fQO=function(){var X=new _.cF;X.resolved=!1;var H=X.resolve;X.resolve=function(l){X.resolved=!0;H(l)};
return X};
Sky=function(X){var H={};p2Z().install((H.document_disposed={callback:X},H))};
Om=function(X,H){if(!X&&Math.random()<=_.Yy("kevlar_unified_player_logging_threshold")){X=Error("vh`"+(H?H:"Unspecified error"));if(_.P("kevlar_unified_player_throw_errors"))throw X;_.x2(X)}};
_.ztb=function(){var X=_.ij("ytDebugData.callbacks");X||(X={},_.cQ("ytDebugData.callbacks",X));return X};
kQy=function(X,H){var l=_.ztb();if(_.P("web_dd_iu")||nxW.includes(X))l[X]=H};
xmN=function(){return _.h(function(X){return X.return({isLeader:_.vWL(_.WF().getState()),c:_.gx("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.gx("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
Dmk=function(){var X;_.h(function(H){if(H.nextAddress==1)return kQy("APP_STATE",xmN),H.yield(_.jJ().resolve(_.my),2);X=H.yieldResult;kQy("PI",function(){return _.h(function(l){return l.return(X.getVideoStats())})});
_.m5(H)})};
tdZ=function(X){return!!X&&X.length>0&&X[0].loggingUrls!=null&&X[0].loggingUrls.length>0};
W6y=function(){var X=_.gx("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(X==null?void 0:X.length)===2?X[1]:null};
Exy=function(X){if(!X)return[];var H=[];X=_.C(X);for(var l=X.next();!l.done;l=X.next())if(l=l.value,l.loggingUrls){l=_.C(l.loggingUrls);for(var b=l.next();!b.done;b=l.next())b=b.value,b.baseUrl&&H.push(b.baseUrl)}return H};
gxy=function(X){var H=_.rX(_.jN(_.ok.location.href));X=_.rX(_.jN(X));return _.P("kevlar_clear_non_displayable_url_params")?H==QY(X):QY(H)==QY(X)};
QY=function(X){var H=_.rjZ(X);X=X.slice(0);var l=["frags"];_.P("kevlar_hide_pp_url_param")&&l.push("pp");_.P("kevlar_hide_time_continue_url_param")&&l.push("time_continue");l=_.C(l);for(var b=l.next();!b.done;b=l.next())b=b.value,X=_.lB(_.rX(X),b);return _.rX(X)+(H?"#"+H:"")};
TE=function(X,H){var l=l===void 0?!0:l;H=Number(H)*1E3;var b=Math.round((0,_.Jl)()),U=b.toString();X={innertubeResponse:X,serverDateTimestampMs:U,lastModifiedTimestampMs:U,expireTimestampMs:(b+H).toString(),isProcessed:l};if(l=_.gx("INNERTUBE_CONTEXT_CLIENT_NAME"))X.clientName=l;return X};
aQm=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++GQK};
ZKh=function(X){return!isNaN(X)&&X>0};
vxb=function(){_.P("web_adaptive_repeat_ase")&&iKl&&_.Sh("applicationStarted",iKl)};
_.OKy=function(){var X=_.F6(),H=_.Bi();H&&X&&_.kB(H,[X],!0)};
Q7N=function(X){return X&&mml.some(function(H){return X.includes(H)})};
Jzk=function(X){var H=_.f(X,_.aL);if(!H)return!1;var l=H.url,b=H.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!l)return _.n2(Error("Ah")),!1;if(H.target==="TARGET_NEW_WINDOW"){H={};_.P("resolve_url_parent_tracking_params")&&(!_.Nb(l)||Jn(window.location.href,l))&&(H={endpoint:X,itct:X.clickTrackingParams});mtb(H);X=null;try{if(b){a:{var U=l,K=H;b=b===void 0?!1:b;K&&_.Ec(U,K);var w=_.Yn(U),d=_.jA(w);U!=d&&_.v$(Error("Zf`"+U));U=d;try{if(b){d=U;d=Vwz(d);e4(d);X=_.wr(window,d,"_blank",
"attributionsrc");break a}}catch(y){_.a0(y)}e4(U);X=_.wr(window,w,"_blank")}THL(_.jJ().resolve(NHk),X,l);return!0}}catch(y){_.n2(y)}_.Ec(l,H);H={target:"_blank",noopener:!1};w=window;d=cu(l)?l:_.Yn(typeof l.href!="undefined"?l.href:String(l));b=self.crossOriginIsolated!==void 0;X="strict-origin-when-cross-origin";window.Request&&(X=(new Request("/")).referrerPolicy);U=H.noreferrer;if(b&&U&&X==="unsafe-url")throw Error("we");X=U&&!b;U=H.target||l.target;K=[];var B=[],q=!1;for(e in H){var u=H[e];switch(e){case "width":case "height":case "top":case "left":K.push(e+
"="+u);break;case "target":break;case "noopener":case "noreferrer":u?B.push(e):(q=!0,B.push(e+"=false"));break;case "attributionsrc":K.push(e+(u?"="+u:""));break;default:K.push(e+"="+(u?1:0))}}var e=U!==void 0&&!["_blank","_self","_top","_parent",""].includes(U);e=ny()&&e;czb&&b&&K.length===0&&B.length>0&&!e&&!q?(B.length===2&&(B=["noreferrer"]),_.wr(w,d,U,B[0]),X=j7Z()):(e=K.join(","),_.ty()&&w.navigator&&w.navigator.standalone&&U&&U!="_self"?(e=_.XJ("A"),HJ(e,d),e.target=U,X&&(e.rel="noreferrer"),
((H=H.attributionsrc)||H==="")&&e.setAttribute("attributionsrc",H),H=document.createEvent("MouseEvent"),H.initMouseEvent("click",!0,!0,w,1),e.dispatchEvent(H),e=j7Z()):X?(e=_.wr(w,"",U,e),w=_.jA(d),e&&(e.opener=null,w===""&&(w="javascript:''"),w='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Nn(w)+'">',w=bQ(w),(H=e.document)&&H.write&&(H.write(Uw(w)),H.close()))):((e=_.wr(w,d,U,e))&&H.noopener&&(e.opener=null),e&&H.noreferrer&&(e.opener=null)),X=e);THL(_.jJ().resolve(NHk),
X,l);return!0}e=_.c1(l);e=Q7N(e)||l==="https://studio.youtube.com/";if(_.Nb(l)&&!Jn(window.location.href,l)||e)e4(l),hY(),_.y_(l,void 0,void 0,window.top,rzy);else return _.x2(new _.qd("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",X)),!1;return!0};
_.IQL=function(X,H){H=H===void 0?0:H;if(!(_.f(X,L6z)||_.f(X,Ykm)||_.f(X,_.aL)&&_.f(X,_.aL).url))return!1;var l,b=(l=_.f(X,_.aL))==null?void 0:l.url;l=b?{externalLinkData:{url:b}}:null;return _.lv().clickCommand(X,l,H)};
X_m=function(X,H,l,b,U){U=U===void 0?{}:U;return function(K){var w,d;var B=((w=X.loggingDirectives)==null?0:(d=w.clientVeSpec)==null?0:d.uiType)?_.cS(X.loggingDirectives.clientVeSpec.uiType):void 0;U.clickedVisualElement||(U.clickedVisualElement=B);B=Azm(X,H);l(B,K);B=_.C(B);for(w=B.next();!w.done;w=B.next()){w=w.value;d=b;var q=K,u=U;u.form?u.form.event=q:u.form={element:d,event:q};I1(w,u)}}};
Azm=function(X,H){var l=[];H?(X.toggledCommand&&l.push(X.toggledCommand),X.toggledServiceEndpoint&&l.push(X.toggledServiceEndpoint)):(X.defaultCommand&&l.push(X.defaultCommand),X.defaultServiceEndpoint&&l.push(X.defaultServiceEndpoint),X.defaultNavigationEndpoint&&l.push(X.defaultNavigationEndpoint));return l};
HsO=function(X,H){var l=X.toggledStyle||X.style,b;switch((b=H?l:X.style)==null?void 0:b.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"}}};
_.j2=function(){return _.h(function(X){return X.nextAddress==1?X.yield(_.jJ().resolve(_.my),2):X.return(_.jJ().resolve(lPk)())})};
_.rd=function(){return _.jJ().resolve(lPk)()};
_.Jw=function(){return{lottieEl:void 0}};
oFh=function(X,H){return X.startsWith(H.uniqueId)};
bsy=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return b.yield(_.j2(),2);H=b.yieldResult;if((l=H)==null||!l.addEventListener)return Ll(),b.return();H.addEventListener("onCueRangeEnter",X);_.m5(b)})};
Ury=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return b.yield(_.j2(),2);H=b.yieldResult;if((l=H)==null||!l.removeEventListener)return Ll(),b.return();H.removeEventListener("onCueRangeEnter",X);_.m5(b)})};
$rz=function(X){var H,l,b,U,K;_.h(function(w){if(w.nextAddress==1)return w.yield(_.j2(),2);H=w.yieldResult;if((l=H)==null||!l.addCueRange)return Ll(),w.return();b=_.C(X.timings);for(U=b.next();!U.done;U=b.next())K=U.value,H.addCueRange(X.uniqueId+"-"+K,K/1E3,(K+100)/1E3);_.m5(w)})};
Kpy=function(X){var H,l,b,U,K;_.h(function(w){if(w.nextAddress==1)return w.yield(_.j2(),2);H=w.yieldResult;if((l=H)==null||!l.removeCueRange)return Ll(),w.return();b=_.C(X.timings);for(U=b.next();!U.done;U=b.next())K=U.value,H.removeCueRange(X.uniqueId+"-"+K);_.m5(w)})};
R8k=function(){var X,H,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(_.j2(),2);X=b.yieldResult;if((H=X)==null||!H.getPlayerState)return Ll(),b.return();l=X.getPlayerState();return b.return(l===2)})};
Ll=function(){_.x2(new _.qd("Smartimation player does not exist or is corrupted"))};
ClL=function(){try{var X;return(X=window.CSS)!=null&&X.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(H){return _.x2(new _.qd("Smartimation CSS.supports threw an error")),!1}};
sdy=function(X,H,l,b,U){var K=X.playlistId?w_z:drz;H=H();l=l();U=!!X.videoId&&U()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.b5(H))return h8z({data:X,actionType:K,disabled:U},l);if(X.videoId&&b())return FpO({data:X,actionType:K,disabled:U});switch(H){case "TRANSFER_STATE_UNKNOWN":return FpO({data:X,actionType:K,disabled:U});case "TRANSFER_STATE_FAILED":return X.videoId?BEK({data:X,actionType:K,disabled:U}):qry({data:X,actionType:K,disabled:U});case "TRANSFER_STATE_COMPLETE":return qry({data:X,
actionType:K,disabled:U});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return h8z({data:X,actionType:K,disabled:U},l);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return X.videoId?BEK({data:X,actionType:K,disabled:U}):FpO({data:X,actionType:K,disabled:U});default:return FpO({data:X,actionType:K,disabled:U})}};
MVO=function(X,H){var l=X.onTapCommand,b=_.sl(l);if(X.videoId&&_.f(b,_.Yj))return _.f(b,_.Yj).action=H,l;X.playlistId&&_.f(b,_.Iq)&&(_.f(b,_.Iq).action=H);return l};
FpO=function(X){var H=X.data;var l=X.actionType;X=X.disabled;return{text:uzb,iconType:"OFFLINE_DOWNLOAD",onTap:MVO(H,l.ACTION_ADD),disabled:X}};
h8z=function(X,H){var l=X.data;var b=X.actionType;X=X.disabled;var U="OFFLINE_DOWNLOAD";H>=0&&H<=.1?U="OFFLINE_DOWNLOADING_ZERO":H>.1&&H<=.3?U="OFFLINE_DOWNLOADING_TWENTY":H>.3&&H<=.5?U="OFFLINE_DOWNLOADING_FORTY":H>.5&&H<=.7?U="OFFLINE_DOWNLOADING_SIXTY":H>.7&&H<1?U="OFFLINE_DOWNLOADING_EIGHTY":H===1&&(U="OFFLINE_PIN");return{text:e8y,iconType:U,onTap:MVO(l,b.ACTION_REMOVE_WITH_PROMPT),disabled:X}};
qry=function(X){var H=X.data;var l=X.actionType;X=X.disabled;return{text:ypK,iconType:"OFFLINE_PIN",onTap:MVO(H,l.ACTION_REMOVE_WITH_PROMPT),disabled:X}};
BEK=function(X){var H=X.data;var l=X.actionType;X=X.disabled;return{text:VVO,iconType:"OFFLINE_DOWNLOAD",onTap:MVO(H,l.ACTION_RETRY),disabled:X}};
_.Aw=function(X,H){var l=m3y();return _.uL(function(){l();return Nqk(X,[_.a5(H)||""])},{debugName:"LUZslf"},"Z105t")};
PlK=function(X){var H=_.Aw(_.e0,function(){return X().videoId}),l=_.Aw(_.yR,function(){return X().playlistId});
return function(){return X().videoId?H:X().playlistId?l:_.C(_.FU("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
fPz=function(X){var H=_.Aw(VR,function(){return X().videoId}),l=_.Aw(_.i0K,function(){return X().playlistId});
return function(){return X().videoId?H:X().playlistId?l:_.C(_.FU(0,void 0,"K4tgOc")).next().value}};
p_8=function(X){var H=_.Aw(_.rWm,function(){return X().videoId});
return function(){return X().videoId?H:_.C(_.FU(!1,void 0,"Oaxwcf")).next().value}};
Srm=function(X){var H=_.Aw(mjy,function(){return X().videoId});
return function(){return X().videoId?H:_.C(_.FU("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
z8N=function(){return{}};
_.tVz=function(X,H,l){return{submitForm:function(){var b,U,K,w;return _.h(function(d){if(d.nextAddress==1){b=nFm(X());if(!b)return d.return();if(b.onSubmit)return kMz(H),b.onSubmit(),kMz(l),d.return();if(!b.submitConfig||!b.formData)return d.jumpTo(0);b.disableDuringSubmission&&xry(X(),!0);kMz(H);return d.yield(Drh(b.submitConfig,b.formData()),3)}U=d.yieldResult;kMz(l);if(((K=U)==null?0:K.submitResult)&&((w=b)==null?0:w.onSubmitResult))b.onSubmitResult(U.submitResult);b.disableDuringSubmission&&xry(X(),
!1);return d.return()})},
isValid:function(){var b=nFm(X());if(b){var U;return!((U=b.isValid)==null||!U.call(b))}return!0},
isSubmitting:function(){var b,U;return!!((b=nFm(X()))==null?0:(U=b.isSubmitting)==null?0:U.call(b))}}};
_.XA=function(){if(!Wpb){var X=_.C(_.FU(new Map,void 0,"Y1XnBc"));Wpb=X.next().value;EFK=X.next().value}return Wpb};
_.gFL=function(X){EFK(new Map(X))};
nFm=function(X){if(X)return _.XA()().get(X)};
Drh=function(X,H){var l;return _.h(function(b){return b.nextAddress==1?H?(l=_.jJ().resolve(_.c$(GMy)))&&X.submitId?b.yield(l.submitForm(X.submitId,H,aPy,X.params,X.clickTrackingParams),2):b.return(Promise.reject(Error("Ch"))):b.return(Promise.reject(Error("Bh"))):b.return(b.yieldResult)})};
xry=function(X,H){if(X){var l=_.XA();l().set(X,Object.assign({},l().get(X),{isSubmitting:function(){return H}}));
_.gFL(l())}};
kMz=function(X){if(X){var H=_.jJ().resolve(_.Vr);H&&(X=_.sl(X()))&&H.resolveCommand(X)}};
vFz=function(X,H){H=H===void 0?{shouldPersist:!0}:H;return{useUpdatableData:function(l,b){var U=_.uL(function(){return X(l())},void 0,"Gmrblb"),K=Zs8(l,U,b,H);
_.Wg(function(){if(U()!=null){ish.set(U(),K);var w=U();_.E2(function(){ish.delete(w)})}},"j4hx9b");
return K},
getData:function(l){var b;return(b=ish.get(X(l)))==null?void 0:b[0]()},
updateData:function(l,b){l=X(l);l=ish.get(l);if(!l)return!1;var U=_.C(l);l=U.next().value;U=U.next().value;b=b(l());U(b);return!0}}};
Zs8=function(X,H,l,b){b=b===void 0?{}:b;var U=_.C(_.Gx(function(){var d=X(),B=H();return Osy(d,B,l,b)})),K=U.next().value,w=U.next().value;
return[K,function(d){w(d);var B=H();if(b.shouldPersist&&B!=null){var q,u=(q=l==null?void 0:l.map(function(e){return e()}))!=null?q:[];
_.H6.set(B,[d,u])}}]};
Osy=function(X,H,l,b){b=b===void 0?{}:b;if(H==null||!b.shouldPersist)return X;b=_.H6.get(H);if(!b)return X;var U=_.C(b);b=U.next().value;var K=U.next().value,w;U=(w=l==null?void 0:l.map(function(d){return d()}))!=null?w:[];
if((K==null?0:K.length)&&(l==null?0:l.length)&&U.some(function(d,B){return d!==K[B]}))return _.H6.remove(H),X;
(l==null?0:l.length)&&_.H6.set(H,[b,U]);return b};
Qdm=function(X){var H=_.C(_.FU(!0,void 0,"bKtO6d")),l=H.next().value;H=H.next().value;return mrZ(H,function(){var b=B$(X.children());return _.F(_.M,{cond:l,then:function(){return b},
else:X.fallback})})};
mrZ=function(X,H){var l=TEN,b=0;TEN={addDep:function(){b++;eI(function(){X(!1)})},
removeDep:function(){--b===0&&eI(function(){X(!0)})}};
try{return H()}finally{TEN=l}};
_.l4=function(X){var H=NE8(X),l=H.data,b=H.mapping,U=H.wrapper;H=H.pendingFallback;var K=function(){return cpy(_.a5(l))},w=function(){var d=K(),B=[];
d=_.C(d);for(var q=d.next();!q.done;q=d.next()){var u=void 0;q=q.value;var e=void 0;for(u in q)if(!(!q).hasOwnProperty(u)){e=u;break}(u=e)&&B.push(u)}return B};
return X.data?_.F(Qdm,{fallback:H},function(){return _.F(_.P$,{each:w},function(d,B){var q=U?function(p){return U(function(){return b[d](p,B)},u,B)}:function(p){return b[d](p,B)};
q.debugName||(q.debugName=String(d));if(!b[String(d)])return document.createComment("");q.componentType!==V3&&jdb(String(d));var u=rpy(K,d,B);if(_.P("web_add_microtask_to_stamper")&&!Jpl.has(String(d))){var e=_.C(_.FU(!1,void 0,"afb1md")),y=e.next().value,V=e.next().value;Promise.resolve().then(function(){Jpl.add(String(d));V(!0)});
return _.F(_.M,{cond:y,then:function(){return _.F(q,{data:u})}})}return _.F(q,{data:u})})}):_.F(_.Xi,null)};
NE8=function(X){var H=X.targetId||LpZ(X.children);if(!X.data||!H)return Object.assign({},X,{mapping:X.children});var l="stamper-"+Yr8++,b=function(){var d;return(d=typeof X.targetId==="function"?X.targetId(l):X.targetId)!=null?d:l};
H=_.C(IPN(function(){var d=cpy(X.data());d.targetId=b;return d})).next().value;
var U=Object.assign({},(_.jJ().resolve(_.c$(ApZ))||{}).replaceableMapping,X.children);if(X.replacementWrapper){var K=U.notificationTextRenderer,w=U.notificationMultiActionRenderer;K&&(U.notificationTextRenderer=function(d,B){return X.replacementWrapper(K({data:d.data},B))});
w&&(U.notificationMultiActionRenderer=function(d,B){return X.replacementWrapper(w({data:d.data},B))})}return Object.assign({},X,{data:H,
mapping:U,wrapper:function(d,B,q){return poW({targetId:b,stamperIndex:q},X.wrapper?function(){return X.wrapper(d,B,q)}:d)}})};
rpy=function(X,H,l){var b;return _.uL(function(){var U=X()[l()];if(U)b=U[H];else return _.x2(new _.qd("Stamper failed to find "+String(H)+" at index "+l()+" of data array of length "+(X().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),b;return U[H]},void 0,"Su9U8")};
LpZ=function(X){X=_.C(Object.keys(X));for(var H=X.next();!H.done;H=X.next())if(H=H.value,XHy.includes(H)||HvL.includes(H)||lkN.includes(H))return!0;return!1};
cpy=function(X){return X?Array.isArray(X)&&X instanceof Array?X:[X]:[]};
jdb=function(X){if(_.P("web_enable_renderer_logger")){var H;(H=_.jJ().resolve(_.c$(oZO)))!=null&&H.loggingEnabled&&!H.ids.has(X)&&H.ids.add(X)}};
bvZ=function(){var X,H;return(H=(X=_.jJ().resolve(_.c$(_.b4)))==null?void 0:X())!=null?H:!1};
$2y=function(X,H){X=X===void 0?U2W:X;switch(H.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},X,{isOpen:H.payload});default:return X}};
R9y=function(X,H){X=X===void 0?K3l:X;switch(H.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},X,{isAllowed:H.payload});default:return X}};
wHk=function(X,H){X=X===void 0?CAK:X;switch(H.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},X,{errorMessage:H.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},X,{title:H.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},X,{privacy:H.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},X,{isDisabled:H.payload});default:return X}};
h9N=function(X,H){X=X===void 0?d2O:X;switch(H.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},X,{isOpen:H.payload});default:return X}};
BAl=function(X,H){X=X===void 0?F3K:X;switch(H.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},X,{isFullscreen:H.payload});case "SET_NAVIGATION_BUTTON":var l=H.payload.targetId,b=Object.assign({},X.navigationButtons);b[l]=H.payload.button;return Object.assign({},X,{navigationButtons:b});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},X,{topPanelId:H.payload});case "SET_SECONDARY_HEADER":return l=H.payload.panelId,b=Object.assign({},X.secondaryHeader),b[l]=H.payload.secondaryHeader,
Object.assign({},X,{secondaryHeader:b});default:return X}};
uYb=function(){return Vt(Object.assign({},{voiceSearch:BFy,engagementPanel:BAl,bottomSheet:$2y,cinematicSetting:R9y,shorts:Puk,drawerLayout:h9N,createPlaylist:wHk,locationCollection:q3h,reportChannel:stb,reportForm:MrW},fZK))};
e9y=function(X,H){_.Ss.addLowPriorityJob(function(){var l,b,U;return _.h(function(K){switch(K.nextAddress){case 1:return _.Ew(K,2),K.yield(YgZ(),4);case 4:return K.yield(fetch(X),5);case 5:return l=K.yieldResult,K.yield(l.json(),6);case 6:b=K.yieldResult;Um.set(X,b);requestAnimationFrame(function(){H(b)});
_.Zt(K,0);break;case 2:U=_.Ow(K),_.x2(U),_.m5(K)}})})};
y6h=function(X){var H={animationConfig:{},listeners:{}},l=function(){X(!0)};
H.listeners.data_failed=l;H.listeners.error=l;H.listeners.data_ready=function(){X(!1)};
return H};
fky=function(X){var H=X.model;var l=X.subscribed;var b=X.isOverlay;var U=X.element;var K=X.commandController;var w=X.notificationState;if(l){var d,B;var q=(H==null?void 0:(d=H.buttonStyle)==null?void 0:d.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:H==null?void 0:(B=H.unsubscribeButtonContent)==null?void 0:B.buttonText}else{var u;q=H==null?void 0:(u=H.subscribeButtonContent)==null?void 0:u.buttonText}a:{var e;switch(H==null?void 0:(e=H.buttonStyle)==
null?void 0:e.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":d="S";break a;default:d="M"}}a:if(b)b="overlay";else switch(H.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":b="overlay";break a;default:b="mono"}a:if(l)var y="tonal";else switch((y=H.buttonStyle)==null?void 0:y.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":y=
"tonal";break a;default:y="filled"}return{style:b,type:y,state:H.disableSubscribeButton?"disabled":"active",size:d,focused:X.focused,toggled:l,accessibilityLabel:Vrm(H,l,w),buttonText:q,iconPosition:H.disableNotificationBell?"none":"leading-trailing",onTap:PAz(H,l,U,K),disableTextEllipsis:!!X.disableTextEllipsis}};
PAz=function(X,H,l,b){return function(U){if(H){var K;var w=X.disableNotificationBell?_.sl(X==null?void 0:(K=X.unsubscribeButtonContent)==null?void 0:K.onTapCommand):_.sl(X==null?void 0:X.onShowSubscriptionOptions)}else{var d;w=_.sl(X==null?void 0:(d=X.subscribeButtonContent)==null?void 0:d.onTapCommand)}w&&I1(w,{form:{element:l==null?void 0:l.value},commandController:b});U.stopPropagation()}};
Vrm=function(X,H,l){if(H){if(X==null?0:X.disableNotificationBell){var b;return X==null?void 0:(b=X.unsubscribeButtonContent)==null?void 0:b.accessibilityText}switch(l){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var U;return X==null?void 0:(U=X.bellAccessibilityData)==null?void 0:U.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var K;return X==null?void 0:(K=X.bellAccessibilityData)==null?void 0:K.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var w;return X==null?void 0:(w=
X.bellAccessibilityData)==null?void 0:w.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var d;return X==null?void 0:(d=X.bellAccessibilityData)==null?void 0:d.disabledLabel;default:var B;return X==null?void 0:(B=X.unsubscribeButtonContent)==null?void 0:B.accessibilityText}}else{var q;return X==null?void 0:(q=X.subscribeButtonContent)==null?void 0:q.accessibilityText}};
pH8=function(X,H){return _.JY(X.entities,"subscriptionStateEntity",H)};
S3L=function(X,H){return _.JY(X.entities,"subscriptionNotificationStateEntity",H)};
z9O=function(X,H){return _.JY(X.entities,"upcomingEventReminderStateEntity",H)};
nZO=function(X,H){return _.JY(X.entities,"commentEntityPayload",H)};
kA8=function(X,H){return _.JY(X.entities,"engagementToolbarSurfaceEntityPayload",H)};
x2y=function(X,H){return _.JY(X.entities,"triStateButtonStateEntityPayload",H)};
D2h=function(X,H){return _.JY(X.entities,"commerceCartCheckoutButtonEntity",H)};
trk=function(X,H){return _.JY(X.entities,"commandEntity",H)};
W3h=function(X){if(X){switch(X){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":X="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":X="NOTIFICATIONS_OFF";break;default:X="NOTIFICATIONS_NONE"}return X}};
EZZ=function(X,H,l){l.subscribed!==H&&((l=l.key)&&_.Wc(_.Us("subscriptionStateEntity",l,{key:l,subscribed:H})),X.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:H})),H||_.TP(X,"yt-unsubscribe-action"))};
GAm=function(X){X=_.f(_.sl(X),_.$$);var H,l,b,U;return(U=_.f(X==null?void 0:(H=X.panelLoadingStrategy)==null?void 0:(l=H.inlineContent)==null?void 0:(b=l.sheetViewModel)==null?void 0:b.content,gZ8))==null?void 0:U.listItems};
ak8=function(X,H){if(X.onShowSubscriptionOptions&&H&&(X=GAm(X.onShowSubscriptionOptions),X!=null&&X.length)){var l=W3h(H);X.forEach(function(b){b=_.f(b,_.KS);var U,K,w,d,B=b==null?void 0:(U=b.leadingImage)==null?void 0:(K=U.sources)==null?void 0:(w=K[0])==null?void 0:(d=w.clientResource)==null?void 0:d.imageName;b&&B&&(b.isSelected=B===l)})}};
ZvO=function(X,H,l,b){H&&l?X.style.width=l+"px":!H&&b&&(X.style.width=b+"px")};
ivL=function(X,H,l){var b;(b=X.lottieEl)==null||b.goToAndPlay(0);var U;(U=H.lottieEl)==null||U.goToAndPlay(0);_.Rs(_.Ss,function(){var K;(K=l.lottieEl)==null||K.goToAndPlay(0)},300)};
vZz=function(X){return!(X==null||!X.iconName||(X==null?0:X.title))};
OvZ=function(X,H,l,b){l&&_.Ss.cancelJob(l);l=_.Ss.addLowPriorityJob(function(){b(void 0)},5E3);
b(l);H&&X!==(H.likeStatus==="LIKE")&&H.key&&_.Wc(_.Us("likeStatusEntity",H.key,{key:H.key,likeStatus:X?"LIKE":"INDIFFERENT",hadUserInteraction:X}))};
_.m2W=function(X,H){return _.JY(X.entities,"accountLinkStatusEntity",H)};
QtK=function(X,H){return _.JY(X.entities,"hatsSurveyEntity",H)};
TAL=function(X,H){return _.JY(X.entities,"hatsSurveyStateEntity",H)};
NAN=function(X,H){return _.JY(X.entities,"quantityIncrementerEntity",H)};
c6h=function(X){switch(X){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}};
jtW=function(X){switch(X){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}};
r6y=function(X){switch(X){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"}};
_.L3b=function(X){var H=_.Yy("web_generic_client_event_wait_period ",0);H||(H=3E5);var l=J68.get(X);!_.P("enable_web_client_experiment_event_timeout_killswitch")&&l&&(0,_.Jl)()-l<H||(J68.set(X,(0,_.Jl)()),_.Sh("genericClientExperimentEvent",{eventType:X}))};
_.Y3k=function(X,H){var l,b,U,K;a:{var w=X.style;if(w===void 0)w=17;else switch(w){case "LIVE":w=18;break a;default:w=17}}return{type:w,text:H?AWO({seconds:H}):_.D8(X.text),accessibilityText:(l=X.text)==null?void 0:(b=l.accessibility)==null?void 0:(U=b.accessibilityData)==null?void 0:U.label,icon:(K=X.icon)==null?void 0:K.iconType}};
IkN=function(X){switch(X){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
A6Z=function(X){if(!X)return"";var H,l=(H=_.jJ().resolve(_.c$(_.b4)))==null?void 0:H(),b;if(!l&&((b=X.vibrantColorPalette)==null?0:b.iconInactiveColor))return si(X.vibrantColorPalette.iconInactiveColor,"1");var U;return l&&((U=X.darkColorPalette)==null?0:U.iconInactiveColor)?si(X.darkColorPalette.iconInactiveColor,"1"):X.color?si(X.color,"1"):X.sampledThumbnailColor?(X=X.sampledThumbnailColor,"rgba("+X.red+","+X.green+","+X.blue+");"):""};
_.CS=function(X,H){if(!X.includes("DATE_PLACEHOLDER"))return X;var l=new Date(0);l.setUTCSeconds(H);return X.replace("DATE_PLACEHOLDER",Xvz(l))};
Hpy=function(X,H,l){return function(b){var U=X.command;U&&(I1(U,{form:{element:l}}),H([U],b))}};
oJl=function(X,H,l,b,U){return function(K){var w=l0O(X,H);w&&I1(w,{form:{element:l},commandController:b});U&&K.stopPropagation()}};
l0O=function(X,H){if(X.signInEndpoint&&!_.P("web_subscribe_sign_in_endpoint_killswitch"))return X.signInEndpoint;if(H){if(X.serviceEndpoints)return X.serviceEndpoints[1];if(X.onUnsubscribeEndpoints)return X.onUnsubscribeEndpoints[0]}else{if(X.serviceEndpoints)return X.serviceEndpoints[0];if(X.onSubscribeEndpoints)return X.onSubscribeEndpoints[0]}};
bpz=function(X,H){var l,b,U,K;H=H&&((l=X.unsubscribeAccessibility)==null?void 0:(b=l.accessibilityData)==null?void 0:b.label)||((U=X.subscribeAccessibility)==null?void 0:(K=U.accessibilityData)==null?void 0:K.label);return X.longSubscriberCountText?[H,_.D8(X.longSubscriberCountText)].filter(function(w){return w}).join(" "):H};
wj=function(X,H){return H||(X==null?0:X.isChannelDelegate)?"disabled":"active"};
UEy=function(X,H){var l;switch((l=X.style)==null?void 0:l.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:wj(X)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:wj(X)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:wj(X,!0)};case "OVERLAY":return H?{style:"overlay",type:"tonal",state:wj(X)}:{style:"overlay",type:"filled",state:wj(X)};default:return H?{style:"mono",type:"tonal",state:wj(X)}:{style:"mono",type:"filled",state:wj(X)}}};
_.dj=function(){for(var X=[],H=_.C(_.Ab.apply(0,arguments)),l=H.next();!l.done;l=H.next())if(l=l.value)if(typeof l==="string")X.push(l);else{l=_.C(Object.entries(l));for(var b=l.next();!b.done;b=l.next()){var U=_.C(b.value);b=U.next().value;(U=U.next().value)&&X.push(b)}}return X.join(" ")};
$Ey=function(X){switch(X){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
Ktb=function(X){switch(X){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
RSk=function(X,H){var l=X.map(function(b){return b.toString()});
return _.Nq(function(b){if(l.includes(b.key)){H&&b.preventDefault();var U;(U=b.currentTarget)==null||U.click()}})};
_.h5=function(){return RSk(["Enter"])};
_.ChL=function(){return RSk(["Enter"," "],!0)};
_.FA=function(X){if(X.composedPath)return X.composedPath();if(!X.__composedPath){for(var H=[],l=X.target;l;)H.push(l),l=l.parentNode;H.push(window);X.__composedPath=H}return X.__composedPath};
_.B6=function(X,H,l){X=_.C(X);for(var b=X.next();!b.done;b=X.next()){b=b.value;if(b===H)break;for(var U=_.C(l),K=U.next();!K.done;K=U.next())if(K=K.value,b.tagName===K||b.role==="button"&&K==="BUTTON")return!0}return!1};
dEN=function(X,H){var l,b=(l=H.observer)!=null?l:_.jJ().resolve(cD);if(X){l=wvO(X);var U=[];H.showOption&&U.push(b.observe(X,function(){H.visibilityCallback(!0,X)},H.showOption));
H.hideOption&&U.push(b.observe(X,function(){H.visibilityCallback(!1,X)},H.hideOption));
H.prescanOption&&H.prescanCallback&&U.push(b.observe(X,function(){H.prescanCallback()},H.prescanOption));
var K;l.visibilityMonitorKeys=((K=l.visibilityMonitorKeys)!=null?K:[]).concat(U)}};
wvO=function(X){var H;return(H=X.polymerController)!=null?H:X};
_.ss=function(X){return!!_.qh(X)};
_.Mh=function(X,H,l,b,U){return function(K){var w=fTy();_.Wg(function(){if(K){hSL(K,X(),U);var d=FtO(K,X(),H,l,b,w);_.E2(d)}},"lrewVd")}};
hSL=function(X,H,l){var b=Bpy(H),U=qSy(H),K=b&&eDK,w=U&&uxk;(b||U)&&dEN(X,{visibilityCallback:function(d){var B=_.jJ().resolve(_.Vr);d&&b?(B.resolveCommand(b,{form:{element:l?X:void 0},disableClickTracking:!0}),b=Bpy(H)):!d&&U&&(B.resolveCommand(U,{form:{element:l?X:void 0},disableClickTracking:!0}),U=qSy(H))},
showOption:K,hideOption:w})};
FtO=function(X,H,l,b,U,K){var w=new Map;if(H=_.qh(H)){var d;X=(b==null?void 0:(d=b.onTap)==null?void 0:d.value)||X;l=szm(H,X,l==null?void 0:l.onTap,U,K);X.addEventListener("click",l);w.set("click",l)}return function(){for(var B=_.C(w),q=B.next();!q.done;q=B.next()){var u=_.C(q.value);q=u.next().value;u=u.next().value;X.removeEventListener(q,u)}}};
_.qh=function(X){var H;return(X=(H=_.f(X,_.u4))==null?void 0:H.onTap)&&_.sl(X)};
Bpy=function(X){var H;return(X=(H=_.f(X,_.u4))==null?void 0:H.onVisible)&&_.sl(X)};
qSy=function(X){var H;return(X=(H=_.f(X,_.u4))==null?void 0:H.onHidden)&&_.sl(X)};
szm=function(X,H,l,b,U){var K=function(d){_.jJ().resolve(_.Vr).resolveCommand(X,d)},w=function(d){b&&_.B6(_.FA(d),H,b)||K(d.target?{form:{element:d.target,
sourceData:X,mutationContext:U}}:void 0)};
l&&(w=function(d){l(d,K)});
return w};
M_y=function(X){switch(X){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}};
uTy=function(X){var H=X.numAvatarsInCluster;switch(X.clusterSize){case "small":return H===2?22:18;case "40":return H===2?24:22;default:return H===2?24:20}};
eSZ=function(X,H){return function(l){var b=Object.keys(H);_.Wg(function(){if(X!=null&&X()){for(var U=_.C(b),K=U.next();!K.done;K=U.next())K=K.value,l.addEventListener(K,H[K]);_.E2(function(){for(var w=_.C(b),d=w.next();!d.done;d=w.next())d=d.value,l.removeEventListener(d,H[d])})}},"bXZGfe")}};
yXz=function(X){switch(uTy(X)){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""}};
V_N=function(X){switch(X){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""}};
PhZ=function(X){switch(uTy(X)){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""}};
f0z=function(X){switch(X){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""}};
pvW=function(X){switch(X){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}};
SSO=function(X){return X==="medium"||X==="48"||X==="large"||X==="extra-large"||X==="extra-extra-large"||X==="giant"};
zSN=function(X){return!!((X==null?0:X.includes(3))||(X==null?0:X.includes(5)))};
kvz=function(X){var H=X.data;return{size:nJy(H.avatarImageSize),type:H.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:X.onTap,decorations:X.decorations||[],badgeText:X.badgeText,accessibilityText:X.accessibilityText,avatarButtonCustomClassName:X.avatarButtonCustomClassName,clusterLayoutConfig:X.clusterLayoutConfig}};
nJy=function(X){switch(X){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"}};
xEy=function(X){switch(X){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}};
DEb=function(X){switch(X){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""}};
t_O=function(X){var H=X.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",l,b=X.avatars&&X.avatars.length>0?(l=_.f(X.avatars[0],_.eu))==null?void 0:l.avatarImageSize:"AVATAR_SIZE_UNKNOWN";l=xEy(b)||0;if(H){var U,K=(U=X.avatarClusterSize)!=null?U:"AVATAR_SIZE_M";H=xEy(K);var w,d,B=Math.min((d=(w=X.avatars)==null?void 0:w.length)!=null?d:0,4),q;return{avatars:((q=X.avatars)==null?void 0:q.slice(0,4))||[],avatarSizeInPx:l,avatarStackStyle:{width:H+"px",height:H+"px",position:"relative"},avatarStyle:function(e){var y=
uTy({clusterSize:nJy(K),numAvatarsInCluster:B,avatarIndex:e});var V=xEy(K);B===3&&e===2?(V=(V-y)/2,V=(_.gx("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*V):V=void 0;return{position:"absolute",top:B===2&&e===1||B===3&&e===2||B===4&&e>=2?"0":void 0,bottom:B===2&&e===0||B>2&&e<2?"0":void 0,left:B===2&&e===1||B>2&&(e===1||e===3)?"0":void 0,right:B<=3&&e===0||B===4&&(e===0||e===2)?"0":void 0,transform:V?"translateX("+V+"px)":void 0,width:y+"px",height:y+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(e){return{clusterSize:nJy(X.avatarClusterSize),numAvatarsInCluster:B,avatarIndex:e}},
avatarButtonCustomClassName:void 0}}var u;return{avatars:((u=X.avatars)==null?void 0:u.slice())||[],avatarSizeInPx:l,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:DEb(b),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
Wt8=function(X,H,l){return function(){I1(X,{form:{element:H},commandController:l})}};
EJz=function(X){switch(X){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
gJL=function(X){switch(X){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"}};
Gvl=function(X){if("accessibilityText"in X)return X.accessibilityText||"";if("title"in X){var H,l,b;return((H=X.title)==null?void 0:(l=H.accessibility)==null?void 0:(b=l.accessibilityData)==null?void 0:b.label)||""}if("accessibility"in X){var U,K;return((U=X.accessibility)==null?void 0:(K=U.accessibilityData)==null?void 0:K.label)||""}return""};
a0y=function(X){return"inlinePlayerData"in X};
yE=function(X){return new Zpy(X)};
ip8=function(X){switch(X){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"}};
vJk=function(X){switch(X){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}};
OpW=function(X){switch(X){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}};
mEy=function(X){return function(H){X&&(X.thumbnailElRef=H.thumbnailElRef,X.thumbnail=H.thumbnail,X.thumbnailOverlays=H.thumbnailOverlays,X.thumbnailSize=H.thumbnailSize)}};
QzL=function(X){switch(X){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
NpZ=function(X){var H=_.C(_.FU(!1,void 0,"E6wDDe")),l=H.next().value,b=H.next().value;_.DR(function(){var U=X==null?void 0:X();if(U){var K=_.jJ().resolve(_.c$(TpK));if(K){var w={triggeringElement:U,onDwellTriggeredFn:function(){b(!0)},
onDwellEndFn:function(){b(!1)}};
K.registerElement(w);_.E2(function(){_.VE(K,w)})}}});
return l};
cXk=function(X){if(X.querySelector("img")){var H=X.querySelector("img");H.addEventListener("error",function(){zb8(H.src).then(function(l){(l=_.I$(l).toString())?H.src=l:H.removeAttribute("src")}).catch(function(){H.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
jzh=function(X,H,l){l?l(H):_.yr(H,X.target?{form:{element:X.target}}:void 0)};
_.P6=function(X,H,l,b){return function(U){_.Wg(function(){function K(u){u=u.composedPath();u=_.C(u);for(var e=u.next();!e.done;e=u.next()){e=e.value;if(e===U)break;if(e.className.indexOf("HostIsClickableAdComponent")>=0||e.tagName==="A".toString()||e.tagName==="BUTTON".toString())return!0}return!1}
var w=new Map,d,B=(d=X())==null?void 0:d.onTap;if(B){d=function(u){K(u)||jzh(u,B,H)};
var q=function(u){K(u)||u.key!=="Enter"||jzh(u,B,H)};
(l==null?0:l())||_.P("enable_web_home_top_landscape_image_layout_level_click")?(U.addEventListener("tap",d),w.set("tap",d)):(U.addEventListener("click",d),w.set("click",d));if(b==null?0:b())U.addEventListener("keydown",q),w.set("keydown",q)}_.E2(function(){for(var u=_.C(w),e=u.next();!e.done;e=u.next()){var y=_.C(e.value);e=y.next().value;y=y.next().value;U.removeEventListener(e,y)}})},"D7XqOc")}};
rXk=function(X,H){var l,b=(l=X.interaction)==null?void 0:l.onTap;if(X=_.uv({elementsCommand:b,forceNewState:!0,skipOnClick:!0}))return X.onclick=function(U){l5l(U)&&(U.preventDefault(),b&&jzh(U,b,H))},ew(X)?X:void 0};
JXm=function(X){switch(X){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Lty=function(X){switch(X){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"}};
YSK=function(X){switch(X){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"}};
_.I0l=function(X){return _.P("rich_grid_enable_dynamic_offset")&&X?Math.max((X-_.Yy("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Yy("rich_grid_dynamic_offset_offset_per_100",10),_.Yy("rich_grid_dynamic_offset_lower_bound",-60)):0};
AXb=function(X,H){switch(H){case 4:return 16;case 1:return X<528?16:X<1024?32:48;case 2:return(X>=528?16:8)/2;case 3:return(X<528?16:X<1024?32:48)+(X>=528?16:8)/2;default:return 0}};
Xyl=function(X){var H=X.originalContainerWidth;var l=X.sizing;var b=X.standardUnit;if(X.isCompactList&&H<528)return 1;switch(l){case "STANDARD":return b;case "COMPACT":return b+1;case "EXTRA_COMPACT":return _.P("web_responsive_extra_compact_2x")?b*2:_.P("web_responsive_current")?b===1?2:b%2===0?b/2*3:b+2:b<4?b*2:Math.ceil(b*3/2);case "MINI":return b>1?b*2:3;default:return b}};
lX8=function(X){var H=X.containerWidth;var l=X.peek;var b=X.gutter;var U=X.numItems;X=X.ignoreMaxWidthLimit;H=l?Math.max((H-l-b*U)/U,0):Math.max((H-b*(U-1))/U,0);return X?H:Math.min(H,Hbm)};
_.fS=function(X){var H=X.containerWidth;var l=X.hasPeek;var b=X.sizing;var U=X.marginSettings;var K=X.isCompactList;var w=X.enableFullBleedForSingleCol;var d=X.standardUnitMinWidth;b=b||"STANDARD";l=!!l;X=H>=528?16:8;var B=l?H>=528?48:24:0;U=AXb(H,U);var q=Math.max(H-U*2,0);d=_.P("kevlar_disable_min_width_override")?void 0:d;d=Math.min(Math.max(Math.floor((q-B+X)/((d!=null?d:o_O)+_.I0l(H)+X)),1),6);var u=(w=!!w&&d===1)||d===1&&b!=="STANDARD";l=l||u?q:Math.min(q,(Hbm+X)*d-X);b=Xyl({originalContainerWidth:H,
sizing:b,standardUnit:d,isCompactList:K});return{itemWidth:lX8({containerWidth:l,peek:B,gutter:X,numItems:b,ignoreMaxWidthLimit:u}),gutter:X,maxContainerWidth:l,numItems:b,margin:w?0:U,contentMargin:AXb(H,1),typographyBump:lX8({containerWidth:l,peek:B,gutter:X,numItems:d,ignoreMaxWidthLimit:u})>400&&!(K&&H<528),standardUnit:d}};
pS=function(X){switch(X){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.bbh=function(X){if(X){var H;if((H=X.responsiveContainerConfiguration)==null?0:H.responsiveSize)return pS(X.responsiveContainerConfiguration.responsiveSize);if(X.layoutSizing)switch(X.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"}}};
U4b=function(X){if(X.fullbleed)return 1;switch(X.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
wyO=function(X,H,l,b,U,K,w,d,B){a:if(X===4&&b==="LOCKUP_CONTENT_TYPE_SOURCE")var q=1;else switch(X){case 3:q=1;break a;default:q=0}var u=$4W(X,b);a:switch(X){case 4:K=!!(K&&K<100);break a;default:K=!1}a:switch(X){case 3:case 4:var e=b==="LOCKUP_CONTENT_TYPE_CHANNEL"||b==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:e=!1}return{metadataOnThumbnail:u,isOverlay:d||u,isCard:Kol(b,w),sizing:H!=null?H:"STANDARD",typographyBump:l!=null?l:!1,isTiny:K,isCentered:e,isCollection:R5Z(b),arrangement:q,addMarginForFullbleed:X===
1&&b!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:X===1&&b==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:C38(b,U,B),disableRounding:X===5||Kol(b,w)||X===1&&b==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:R5Z(b)?2:0,useLegacyTypography:!(B==null||!B.useLegacyTypography),useRichGridLegacyTypography:!(B==null||!B.useRichGridLegacyTypography)&&!_.P("web_enable_typography_bump"),compactMetadata:q===0&&b==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:B==null?void 0:B.onFocusEffect,titleMaxLines:b==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
R5Z=function(X){switch(X){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}};
Kol=function(X,H){if(H&&X==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(X){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
$4W=function(X,H){if(H==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(X){case 5:return!0;case 4:return!1;default:return!1}};
C38=function(X,H,l){if(H&&(l==null||!l.alwaysRespectPodcastShowAspectRatio||X!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(X){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}};
_.Su=function(X){if(X){var H;return((H=_.jJ().resolve(_.c$(_.b4)))==null?0:H())?X.darkThemeImage:X.image}};
Fob=function(X,H,l,b,U,K){if(U&&K&&H==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:U,height:K};if(!l)return{};U=l.size;l=l.allowFullWidth;if(H==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&l)return{fullWidth:!0};if(U===void 0)return{};switch(X){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:U,height:U};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:U,height:1/d4O*U};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:U*
h5Z,height:U};default:return(b==null?0:b.height)&&(b==null?0:b.width)?b.width/b.height>1?{maxWidth:U*h5Z}:{maxWidth:U}:{maxWidth:U}}};
B_k=function(X){var H;return X&&((H=_.Su(X.themedImage))!=null?H:X.image)};
qDm=function(X){var H;return X==null?void 0:(H=X.sources)==null?void 0:H[0]};
sGy=function(X){switch(X){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"}};
_.MXm=function(X){if(X)return"content-id-"+X};
u_y=function(X){switch(X.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"}}};
e5k=function(X){var H=_.ze.currentPageSubTypeSelector(_.tF().getState())||"";return X?X+H:""};
y7y=function(X){switch(X){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
P3L=function(X){var H=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],l=_.C(_.FU(void 0,void 0,"JrqNsb")),b=l.next().value,U=l.next().value,K=_.C(_.FU(void 0,void 0,"rWytse"));l=K.next().value;var w=K.next().value;K=_.C(_.FU(void 0,void 0,"DHRqxe"));var d=K.next().value,B=K.next().value;return{touchFeedbackEvents:{pointerUpEvent:b,pointerDownEvent:l,pointerLeaveEvent:d},touchFeedbackOnPointerUp:_.Nq(function(q){VXN(_.FA(q),H)||(U(q),w(void 0),B(void 0))}),
touchFeedbackOnPointerDown:_.Nq(function(q){X==null||X(q);VXN(_.FA(q),H)||(w(q),U(void 0),B(void 0))}),
touchFeedbackOnPointerLeave:_.Nq(function(q){VXN(_.FA(q),H)||(B(q),w(void 0),U(void 0))})}};
VXN=function(X,H){H=H===void 0?[]:H;H=[].concat(_.LJ(H),["BUTTON".toString()]);X=_.C(X);for(var l=X.next();!l.done;l=X.next()){l=l.value;for(var b=_.C(H),U=b.next();!U.done;U=b.next())if(l.tagName===U.value)return!0}return!1};
fXN=function(X){switch(X){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"}};
pyy=function(X){return X.scrollHeight-X.offsetHeight>1};
SDm=function(X,H){var l;return Sw(X,((l=X.content)==null?void 0:l.length)||0,!H)};
k1y=function(X,H,l,b,U,K){if(!H||z5N){var w;return Sw(X,((w=X.content)==null?void 0:w.length)||0,!0)}H=b.value;if(!l.value||!H||!X.content)return X;l=0;b=X.content.length;w=0;n_Z||(n_Z=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var d=n_Z;for(U=U*K*d;l<=b;)K=Math.floor(l+(b-l)/2),d=Sw(X,K)||X,H.firstChild&&(H.firstChild.textContent=d.content),H.scrollHeight>U?b=K-1:(w=K,l=K+1);return Sw(X,w)};
x4Z=function(X,H){var l,b;return(((l=X.content)==null?void 0:l.length)||0)>(((b=H.content)==null?void 0:b.length)||0)};
D4y=function(X,H,l,b,U,K){var w=_.SJ("truncated-text-content"),d=_.SJ("truncated-text-content"),B=_.SJ("button"),q=_.SJ("button"),u=_.SJ("button"),e=_.jJ().resolve(_.nS),y=_.C(_.Gx(function(){return SDm(X(),U())})),V=y.next().value,p=y.next().value;
y=_.C(_.Gx(function(){return x4Z(X(),V())}));
var z=y.next().value,t=y.next().value,W=null;_.Wg(function(){function G(){if(w.value&&B.value&&u.value){var v=K()?X():k1y(X(),U(),w,d,H(),l());p(v);requestAnimationFrame(function(){if(w.value&&B.value&&u.value){var J=pyy(w.value)||x4Z(X(),v);t(J);if(!b()){var Y=pyy(w.value),Uy=l(),Cy=w.value,sy=B.value,FO=u.value,ub=e==="rtl";if(Cy&&sy){var g8=sy.offsetLeft;ub&&(g8=Cy.offsetWidth-sy.offsetWidth-sy.offsetLeft);if(J){J=sy.offsetWidth;sy=Cy.offsetWidth;var mm=Y?sy-J-70:g8-70;Uy="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Uy+"rem,\n      #000 "+Uy+"rem,\n      #000 100%), linear-gradient(\n      to "+((ub?"left":"right")+",\n      #000 0px,\n      #000 "+mm+"px,\n      transparent "+(Y?sy-J:mm+70)+"px)");Cy.style.setProperty("-webkit-mask-image",Uy);Cy.style.setProperty("mask-image",Uy)}else Cy.style.setProperty("-webkit-mask-image",""),Cy.style.setProperty("mask-image","");Y?ub?(FO.style.setProperty("left","0"),FO.style.setProperty("right","unset")):(FO.style.setProperty("left",""),FO.style.setProperty("right","0")):
ub?(FO.style.setProperty("left","unset"),FO.style.setProperty("right",g8+"px")):(FO.style.setProperty("left",g8+"px"),FO.style.setProperty("right","unset"))}}}})}}
var r,Q;(r=W)==null||(Q=r.stop)==null||Q.call(r);r=new _.jw(G,17);G();W=r},"KjwIxd");
_.DR(function(){p(SDm(X(),U()));t(x4Z(X(),V()));var G=function(){n_Z=void 0;var Q,v;(Q=W)==null||(v=Q.fire)==null||v.call(Q)};
if(window.ResizeObserver){var r=new ResizeObserver(G);r.observe(w.value);_.E2(function(){var Q,v;(Q=W)==null||(v=Q.stop)==null||v.call(Q);r.disconnect()})}else window.addEventListener("resize",G),_.E2(function(){var Q,v;
(Q=W)==null||(v=Q.stop)==null||v.call(Q);window.removeEventListener("resize",G)})});
return{isTruncated:z,displayText:V,contentRef:w,hiddenRef:d,placeholderTruncationTextRef:B,hiddenTruncationTextRef:q,truncationTextRef:u}};
tXl=function(X){return{content:X!=null?X:""}};
WoO=function(X){return _.sl(X.onTap)||_.qh(X.rendererContext)};
E_l=function(X){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:X.overflowMenuA11yLabel,onTap:function(H){H.preventDefault();H.stopPropagation();if(X.overflowMenuOnTap){var l=_.uv({elementsCommand:X.overflowMenuOnTap,forceNewState:!0});if(l==null?0:l.onclick)l.onclick(H)}}}};
_.k$=function(X,H,l,b,U){b=b===void 0?{}:b;if(!U||Math.random()<5E-4){H=H||null;l=l||null;X=X instanceof Error?X:new _.qd(X);if(X.args)for(var K=_.C(X.args),w=K.next();!w.done;w=K.next())w=w.value,w instanceof Object&&(b=Object.assign({},w,b));b.category="H5 Ads Control Flow";H&&(b.slot=H?"slot:  "+H.slotType:"");l&&(b.layout=l?"layout:  "+l.layoutType:"",b.layoutId=l.layoutId);U&&(b.known_error_aggressively_sampled=!0);X.args=[b];_.x2(X)}};
_.g_O=function(X,H){H=_.gR(H);_.TP(X,"yt-open-popup-action",[H,X])};
_.x$=function(X,H){_.g_O(X,_.xM(H))};
aXk=function(X){if(!X)return"";if(G1m[X])return G1m[X];DI||(DI=_.XJ("A"));DI.href!==X&&HJ(DI,X);var H=DI.pathname;G1m[X]=H.startsWith("/")?H:"/"+H;return G1m[X]};
ZbO=function(){var X=aXk(window.location.href);if(X==="/")return"home";if(X.startsWith("/results"))return"search";if(X.startsWith("/watch"))return"watch";if(X.startsWith("/shorts"))return"shorts";if(X.startsWith("/hashtag"))return"hashtag";if(X.startsWith("/create_channel"))return"create_channel";if(X.startsWith("/@")||X.startsWith("/user/")||X.startsWith("/channel/"))return"channel";if(X.startsWith("/experiments"))return"experiments";if(X.startsWith("/sponsor_channel"))return"sponsorship";if(X.startsWith("/select_site"))return"settings";
if(X.startsWith("/locate"))return"locate";if(X.startsWith("/redeem"))return"redeem";if(X.startsWith("/musicpremium")||X.startsWith("/premium")||X.startsWith("/red"))return"premium";if(X.startsWith("/paid_memberships"))return"paid_memberships";if(X.startsWith("/oops"))return"oops";if(X.startsWith("/clip"))return"clip";var H;return(t5==null?void 0:(H=t5.response)==null?void 0:H.page)==="404"?"404":X.startsWith("/feed/history")?"history":X.startsWith("/feed/library")?"library":X.startsWith("/feed/subscriptions")?
"subscriptions":X.startsWith("/feed/trending")?"trending":X.startsWith("/feed/news_destination")?"news":X.startsWith("/playlist")?"playlist":X.startsWith("/minor_moment")?"minor_moment":X.startsWith("/playable/")||X.match("^/playables/(?!saved).")?"mini_app":X.startsWith("/playables")?"playables":X.startsWith("/create/live/join")?"open_in_app":X.startsWith("/feed/explore")?"explore":"browse"};
_.Es=function(){var X=t5==null?void 0:t5.response,H=X==null?void 0:X.endpoint;if(!H)return(X==null?void 0:X.page)==="watch"?"watch":ZbO();var l;X=(l=_.f(H==null?void 0:H.commandMetadata,_.Ip))==null?void 0:l.webPageType;l=!1;if(X&&!ibl.includes(X))switch(X){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 b;return((b=_.f(H==null?void 0:H.commandMetadata,_.Ip))==null?0:b.url)&&aXk(_.f(H.commandMetadata,_.Ip).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var U;return(H=(U=_.f(H,_.YM))==null?void 0:U.browseId)?v_L[H]||"browse":"browse";default:l=!0}if(_.f(H,_.W6)||_.f(H,ObL))return"sponsorship";U=aXk(window.location.href);if(U.startsWith("/experiments"))return"experiments";if(U.startsWith("/create_channel"))return"create_channel";
if(_.f(H,_.aL)&&U.startsWith("/shorts"))return"shorts";if(_.f(H,_.aL)&&U.startsWith("/watch"))return"watch";l&&(H=new _.qd("Unsupported mWeb page type",{pathname:U,webPageType:X}),_.n2(H));return"browse"};
gj=function(X,H,l,b){return X&&H?X!==l||H!==b?(_.k$(Error("Lh"),void 0,void 0,{"stored-slot":X,"stored-layout":H,"latest-slot":l,"latest-layout":b}),!1):!0:!1};
QGh=function(X,H,l){return X({targetId:H},function(b){return l.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},b,{contents:[l.continuationItems?_.f(l.continuationItems[0],m4h):{}]}):l.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},b,{header:l.continuationItems?l.continuationItems[0]:void 0}):Object.assign({},b,{contents:l.continuationItems?l.continuationItems:[]})})};
T_k=function(X,H,l,b){if(H=H.trackingParams){var U,K=(U=l.getScreenLayer)==null?void 0:U.call(l);l=_.Bi(K);U=_.F6(K);if(l&&U){var w=_.$l(H);_.P("combine_ve_grafts")?X.graftServerVe(H,U,K):_.pA(l,U,w);b==null||b(w)}}};
c78=function(X){var H;return((H=N_O.get(X))==null?void 0:H.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
J7W=function(X,H){var l={type:H.slotType,controlFlowManagerLayer:jGh.get(H.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};H.slotEntryTrigger&&(l.entryTriggerType=H.slotEntryTrigger.triggerType);H.slotPhysicalPosition!==1&&(l.slotPhysicalPosition=H.slotPhysicalPosition);if(X){l.debugData={slotId:H.slotId};if(X=H.slotEntryTrigger)l.debugData.slotEntryTriggerData=r7O(X);X=H.slotFulfillmentTriggers;l.debugData.fulfillmentTriggerData=[];X=_.C(X);for(var b=X.next();!b.done;b=X.next())l.debugData.fulfillmentTriggerData.push(r7O(b.value));
H=H.slotExpirationTriggers;l.debugData.expirationTriggerData=[];H=_.C(H);for(X=H.next();!X.done;X=H.next())l.debugData.expirationTriggerData.push(r7O(X.value))}return l};
r7O=function(X,H){var l={type:X.triggerType};H!=null&&(l.category=H);X.triggeringSlotId!=null&&(l.triggerSourceData||(l.triggerSourceData={}),l.triggerSourceData.associatedSlotId=X.triggeringSlotId);X.triggeringLayoutId!=null&&(l.triggerSourceData||(l.triggerSourceData={}),l.triggerSourceData.associatedLayoutId=X.triggeringLayoutId);return l};
Lom=function(X,H,l,b){H={opportunityType:H};X&&(b||l)&&(b=_.qz(b||[],function(U){return J7W(X,U)}),H.debugData=Object.assign({},l&&l.length>0?{associatedSlotId:l}:{},b.length>0?{slots:b}:{}));
return H};
YDh=function(X){return Ge(X.opportunityAdapterMap).concat(Ge(X.triggerAdapterMap)).concat(Ge(X.fulfillmentAdapterFactoryMap)).concat(Ge(X.slotAdapterFactoryMap)).concat(Ge(X.layoutRenderingAdapterFactoryMap))};
Ge=function(X){var H=[];X=_.C(X.values());for(var l=X.next();!l.done;l=X.next())l=l.value,l.isAdsControlFlowEventListener&&H.push(l);return H};
ZI=function(X){var H=X.slotId,l=X.slotType,b=X.slotPhysicalPosition;return H===void 0?new as("Cannot construct a slot due to the missing id.",{adSlotMetadata:X}):l===void 0?new as("Cannot construct a slot due to the missing type.",{adSlotMetadata:X}):b===void 0?new as("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:X}):{slotId:H,slotType:l,slotPhysicalPosition:b,managerLayer:"external",adSlotLoggingData:X.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new IXL}};
A7b=function(X){var H=X.layoutId,l=X.layoutType;return H===void 0?new i4("Cannot construct a layout due to the missing id.",{adLayoutMetadata:X}):l===void 0?new i4("Cannot construct a layout due to the missing type.",{adLayoutMetadata:X}):{layoutId:H,layoutType:l,managerLayer:"external",adLayoutLoggingData:X.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new IXL,interactionLoggingAdsClientData:{}}};
Os=function(X,H){if(H&&(Xwl(H.viewableCommand)||Xwl(H.endOfSessionCommand))){var l=H4y(H==null?void 0:H.viewableCommand);H=H4y(H==null?void 0:H.endOfSessionCommand);if(!v6){var b=_.Yy("custom_active_view_tos_timeout_ms");v6=b>0&&b!==36E5?new lny(ozz(),b):new lny(ozz())}b4y(v6,X);UAO(v6,X,l,H)}};
mC=function(X){v6&&b4y(v6,X)};
ozz=function(){var X=_.gx("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(X==null?void 0:X.length)===2?X[1]:null};
Xwl=function(X){X=_.sl(X);return!(X==null||!X.loggingUrls)&&X.loggingUrls.length>0};
H4y=function(X){if(!X)return[];var H=[],l,b;((b=(l=_.sl(X))==null?void 0:l.loggingUrls)!=null?b:[]).forEach(function(U){U.baseUrl&&H.push(U.baseUrl)});
return H};
$Ay=function(X){if(_.P("stop_av_measurement_on_detach"))return function(){mC(X)}};
KEO=function(X){return function(){_.P("stop_av_measurement_on_detach")&&mC(X)}};
Rjl=function(X){if(_.P("stop_av_measurement_on_detach"))return function(){mC(X)}};
Cal=function(X){return X.shorts.isDesktopSmallWidth};
_.wwm=function(X){return X.shorts.isShortsActive};
_.dAO=function(X){return X.shorts.isWatchWhileMode};
_.QE=function(X){return X.shorts.isFullscreen};
_.Te=function(X){return X.shorts.isShortsPipActive};
FEh=function(X){var H,l;if(X=(H=_.f(X.reelsAdCardButtoned,hjy))==null?void 0:(l=H.animatedRenderingConfig)==null?void 0:l.easeOutSeconds)return X+"s"};
q5L=function(X,H,l){return _.h(function(b){return b.return(new Promise(function(U){var K=new Image;K.onload=function(){U(new BPm(X,H,l,K.naturalWidth,K.naturalHeight))};
K.src=l.toString()}))})};
say=function(X,H){return Math.round(X/1E-5)===Math.round(H/1E-5)};
Mkz=function(X,H){return Math.round(X/1E-5)===Math.round(H/1E-5)};
uDb=function(X,H){return X.year===H.year&&X.month===H.month&&X.day===H.day};
ejy=function(X,H){return X.year!==H.year?X.year<H.year:X.month!==H.month?X.month<H.month:X.day<H.day};
Vky=function(X){return X.day===ycN(X.year,X.month)?X.month===11?{year:X.year+1,month:0,day:1}:{year:X.year,month:X.month+1,day:1}:{year:X.year,month:X.month,day:X.day+1}};
Pab=function(){var X=new Date,H={year:X.getFullYear(),month:X.getMonth(),day:X.getDate()};return{start:H,end:{year:X.getFullYear()+2,month:X.getMonth(),day:X.getDate()},selectedDate:Vky(H)}};
fnZ=function(X){return(new kM(2)).format(new Date(X.year,X.month,X.day))};
pwk=function(X){return{year:X.getFullYear(),month:X.getMonth(),day:X.getDate()}};
S5N=function(X,H){X=(X+(Number(H.utcOffsetSec)+(new Date(X*1E3)).getTimezoneOffset()*60))*1E3;H=pwk(new Date(X));return{date:H,secondsSinceMidnight:Math.floor((X-(new Date(H.year,H.month,H.day)).getTime())/1E3)}};
zjL=function(X,H){H=H.months.findIndex(function(l){return l.year===X.year&&l.month===X.month});
return H>=0?H:void 0};
nzK=function(X){if(!X)return!1;try{if(X.host&&X.host.tagName==="YT-FORMATTED-STRING"&&X.host.id==="contenteditable-textarea"||X.nodeType===Node.ELEMENT_NODE&&X.tagName==="YTD-COMMENTBOX")return!0}catch(H){return!1}return nzK(X.parentNode)};
Nh=function(X){return X?!(X.tagName!=="A"||!X.href||!X.classList.contains("yt-simple-endpoint")):!1};
kzy=function(X){return X?X.tagName==="IMG"&&X.classList.contains("emoji"):!1};
xAy=function(X,H,l){if(!X)return null;var b=Nh(X);if(b&&l)return H=X.pathname.substring(X.pathname.indexOf("/channel/")+9),document.createTextNode("@"+H);if(b&&!l)return document.createTextNode("");if(kzy(X))return l=X.alt,X=X.dataset.emojiId,!X&&H&&(H=_.c6(H,l))&&H.isCustomEmoji&&(X=H.emojiId),X?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+X+">"):document.createTextNode(l);b=X.cloneNode(!1);for(var U=0;U<X.childNodes.length;++U){var K=xAy(X.childNodes[U],H,l);K&&b.appendChild(K)}return b};
ju=function(X){return X?Nh(X)?X:ju(X.lastChild):null};
DAL=function(X){return X?Nh(X)?X:DAL(X.firstChild):null};
tkL=function(X){if(!X)return null;for(var H=X.previousSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.previousSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.previousSibling;else break;(H=ju(H))?X=H:X=(X=X.parentNode)?ju(X.previousElementSibling):null;return X};
WEW=function(X){if(!X)return null;for(var H=X.nextSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.nextSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.nextSibling;else break;return(H=DAL(H))?H:WEW(X.parentNode)};
Ezy=function(X){var H=_.lg(),l=H.JSC$11664_getStartNode();if(!nzK(l.parentNode))return null;H=H.JSC$11664_getStartOffset();if(l.nodeType===Node.TEXT_NODE){var b=_.yo(l,Nh);if(b){if(X&&H===0||!X&&H===l.length)return b}else{if(X&&H===l.length)return!l||l.nodeName==="BR"||l.nextElementSibling&&_.rj(l.nextElementSibling,"display")==="block"?null:DAL(l.nextElementSibling);if(!X&&H===0)return l?ju(l.previousElementSibling):null}}if(l.nodeType===Node.ELEMENT_NODE)if(X){if(0<=H&&H<l.childNodes.length)return DAL(l.childNodes[H])}else if(0<
H&&H<=l.childNodes.length)return ju(l.childNodes[H-1]);return null};
gzz=function(X,H,l){if(!X)return null;if(X.nodeType===Node.TEXT_NODE)if(l){var b=tkL(X);if(b&&!/^\s+\S/.test(X.wholeText.substr(0,H)))return b}else if((b=WEW(X))&&!/\S\s+/.test(X.wholeText.substr(H,X.wholeText.length)))return b;return X.nodeType===Node.ELEMENT_NODE?l?tkL(X.childNodes[H]):WEW(X.childNodes[H]):gzz(X.parentNode,H,l)};
GzO=function(X){if(X.hasChildNodes())switch(X.tagName){case "DIV":case "A":case "SPAN":var H="";for(X=X.firstChild;X;X=X.nextSibling)H+=GzO(X);return H;default:return""}else switch(X.nodeType){case 3:return X.textContent;default:return""}};
J5=function(X,H){return X.year===H.year&&X.month===H.month&&X.day===H.day};
LS=function(X,H){return X.year!==H.year?X.year<H.year:X.month!==H.month?X.month<H.month:X.day<H.day};
anW=function(X){return{year:X.getFullYear(),month:X.getMonth(),day:X.getDate()}};
Z4b=function(X){var H=G4m;H=H===void 0?G4m:H;H(new Date(X.year,X.month,X.day))};
Y$=function(X){return anW(new Date(Number(X.seconds)*1E3))};
i4l=function(X){return X.year!==void 0&&X.month!==void 0&&X.day!==void 0};
vzb=function(X){return X.start!==void 0&&X.end!==void 0};
O4k=function(X){return vzb(X)?X.start:X};
mAm=function(X){return vzb(X)?X.end:void 0};
TPl=function(X,H){for(var l=[],b=new Date(X.start.year,X.start.month);b.getFullYear()<X.end.year||b.getFullYear()===X.end.year&&b.getMonth()<=X.end.month;){var U=l,K=U.push,w=b.getFullYear(),d=b.getMonth(),B=X,q=H,u=void 0,e=[],y=Object.freeze({extraCssClass:"invisible"}),V=new Date(w,d),p=anW(V);V=V.getDay();for(var z=anW(new Date);p.month===d;){V!==Qab&&u||(u=Array.from({length:7}).fill(y),e.push(u));var t={date:{year:w,month:d,day:p.day},extraCssClass:"",debugClass:""};t.extraCssClass=q(t.date,
p,z,B).trim();u[(V-Qab+7)%7]=t;p=p.day===ycN(p.year,p.month)?p.month===11?{year:p.year+1,month:0,day:1}:{year:p.year,month:p.month+1,day:1}:{year:p.year,month:p.month,day:p.day+1};V=(V+1)%7}K.call(U,{weeks:e,monthLabel:Is.SHORTMONTHS[d]+" "+w,year:w,month:d,monthLabelExtraCssClass:e[0][2]===y?"shift-down-label":""});b.setMonth(b.getMonth()+1)}return l};
NPN=function(X,H){H=H.months.findIndex(function(l){return l.year===X.year&&l.month===X.month});
return H>=0?H:void 0};
jaL=function(X,H){a:{var l=l===void 0?[2,3]:l;l=_.C(l);for(var b=l.next();!b.done;b=l.next()){var U=new Date;if((new cch(b.value)).parse(H,U,{validate:!0})){U.setHours(0,0,0,0);H=U;break a}}H=null}if(!H)return{isValid:!1,value:void 0};H=anW(H);l=X.end;return LS(H,X.start)||LS(l,H)?{isValid:!1,value:void 0}:{isValid:!0,value:H}};
Ach=function(X){var H=rcN;H=H===void 0?JcK:H;var l=X.columnsToShow||[],b=LE8(X.columnDimensions,X.columnsToShow,X.leftFloatingColumns,H);return l.map(function(U,K){var w=X.columns[U];if(w===void 0)throw Error("Rh");var d=b?b[K]:"";var B=X.getCustomTooltip?X.getCustomTooltip(U,w.headerTooltipParagraphs):w.headerTooltipParagraphs;var q=Y5h(X,U);return{type:U,index:K,style:d,classes:q,headerName:w.headerName||"",headerIcon:w.headerIcon,headerTooltipParagraphs:B||[],headerTooltipHelpContext:w.headerTooltipHelpContext,
sortOrders:w.sortOrders||[],selectionState:w.isSelectionCheckbox?X.selectionState:void 0}})};
Y5h=function(X,H){var l=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],b=X.columns[H];if(b===void 0)return"";var U=l.includes("DEFAULTS")&&b.cssClass?[b.cssClass]:[];if(l.includes("SORTING")){b.sortOrders&&b.sortOrders.length&&U.push("sortable");if(X.sorting&&X.sorting.columnType===H)a:switch(X.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var K="column-sorted";break a;default:K=""}else K="";K&&U.push(K)}l.includes("FLOATING")&&(H=X.columnsToShow.indexOf(H),X.leftFloatingColumns&&H<X.leftFloatingColumns&&
U.push("floating-column"),X.leftFloatingColumns&&H===X.leftFloatingColumns-1&&U.push("last-floating-column"));l.includes("RIGHT_ALIGN")&&b.rightAlignHeader&&U.push("right-align");return U.filter(function(w){return w}).join(" ")};
LE8=function(X,H,l,b){l=l===void 0?0:l;b=b===void 0?JcK:b;if(X){var U=[],K=0;X4h(X,H,b).forEach(function(w,d){var B="min-width:"+w.minWidth+"px;padding-left:"+w.paddingLeft+"px;padding-right:"+w.paddingRight+"px;flex:"+w.flexGrow+" 0 "+w.minWidth+"px;";w.maxWidth!==Infinity&&(B=[B,"max-width:"+w.maxWidth+"px;"].join(""));K>0&&d<l&&(B=[B,"left:"+K+"px;"].join(""));U.push(B);K+=w.minWidth+w.paddingLeft+w.paddingRight});
return U}};
X4h=function(X,H,l){l=l===void 0?JcK:l;return H.map(function(b,U){b=X&&X[b]||{};var K=U===0?l.paddingLeftFirstColumn:l.padding;b.paddingLeft!==void 0&&(K=b.paddingLeft);U=U===H.length-1?l.paddingRightLastColumn:l.padding;b.paddingRight!==void 0&&(U=b.paddingRight);return{paddingLeft:K,paddingRight:U,minWidth:b.minWidth!==void 0?b.minWidth:l.minWidth,maxWidth:b.maxWidth!==void 0?b.maxWidth:l.maxWidth,flexGrow:b.flexGrow!==void 0?b.flexGrow:l.flexGrow}})};
HMy=function(X){var H=X.reduce(function(b,U){var K=U.columnId,w={};U.headerText&&(w.headerName=_.D8(U.headerText));U.rightAlignHeader&&(w.rightAlignHeader=U.rightAlignHeader);var d;if((d=U.headerIcon)==null?0:d.iconType)w.headerIcon=_.jL(U.headerIcon.iconType);b[K]=w;return b},{}),l=X.filter(function(b){return!b.hideColumn}).map(function(b){return b.columnId});
X=X.filter(function(b){return!!b.dimensions}).reduce(function(b,U){b[U.columnId]=U.dimensions;
return b},{});
return{columns:H,columnsToShow:l,columnDimensions:X}};
_.l2Z=function(X){return X?X.simpleText?X.simpleText:X.runs?X.runs.map(function(H){return H.text}).join(""):"":""};
R7l=function(X){var H=X.data;var l=X.onTap;var b=X.isSelected;var U=X.onFocusIn;if(!H)return{};X=oLk(H);b===void 0&&(b=H==null?void 0:H.isSelected);var K;return{text:bM8(H,X),startIcon:(K=H.icon)==null?void 0:K.iconType,state:b?0:2,type:0,style:UNO(H),onTap:$NZ(H,l),accessibilityLabel:K_N(H,X),onFocusIn:function(){return U==null?void 0:U()}}};
bM8=function(X,H){if(!H)return X.text?_.l2Z(X.text):void 0};
UNO=function(X){var H;switch((H=X.style)==null?void 0:H.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
$NZ=function(X,H){return function(l){H==null||H(l,X)}};
oLk=function(X){X=X.style&&X.style.styleType;return!z5N&&X==="STYLE_EXPLORE_LAUNCHER_CHIP"};
K_N=function(X,H){if(H){var l,b,U;return(U=(l=X.accessibilityData)==null?void 0:(b=l.accessibilityData)==null?void 0:b.label)!=null?U:bM8(X,!1)}};
COZ=function(){var X;return[function(H,l,b){return _.QX(X,H,l,b)},
function(H){X=H}]};
w48=function(X,H){return _.JY(X.entities,"chipEntity",H)};
h7N=function(X,H,l,b){return function(){var U=dNO.has(X.displayType)&&X.selected,K=U&&X.deselectCommand?X.deselectCommand:X.tapCommand;!K||U&&b||_.yr(K,{form:{element:H==null?void 0:H.value}});l==null||l()}};
F_l=function(X,H){H=H==null?void 0:H.stepStates;if(X&&H){var l,b;return(l=H[X])==null?void 0:(b=l.userQuery)==null?void 0:b.userQuery}};
A5=function(X){return{signalAction:{signal:X}}};
sb8=function(){return _.gx("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?BO8:_.qEb};
MCK=function(X,H){X=X===void 0?"SOFT_RELOAD_PAGE":X;H=H===void 0?49504:H;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Zi(_.XS("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:H}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:X}}]}}}};
uGK=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Zi(_.XS("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:sb8()}};
e7K=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Zi(_.XS("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:sb8()}};
yey=function(X,H){var l=_.Zi(_.XS("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),b=_.Zi(_.XS("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),U={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Zi(_.XS("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};U.serviceEndpoint=X?X:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[A5("SOFT_RELOAD_PAGE")]}};return{title:l,bodyText:b,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:U},
style:{value:H!=null?H:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
POy=function(X){X=X===void 0?{}:X;return{title:_.Zi(X.localizedZeroStateTitleText===void 0?"":X.localizedZeroStateTitleText),bodyText:_.Zi(X.localizedZeroStateMessage===void 0?"":X.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Zi(X.localizedZeroStateButtonText===void 0?"":X.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[VCN]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
p4y=function(X){X=X===void 0?{}:X;return{title:_.Zi(X.localizedOptInBannerTitleText===void 0?"":X.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Zi(X.localizedOptInMessage===void 0?"":X.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Zi(_.XS("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:_.Zi(_.XS("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:[f2Z]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
nLy=function(X,H){var l=H=H===void 0?{}:H;H=l.offlineTitleText===void 0?"":l.offlineTitleText;var b=l.offlineDescriptionText===void 0?"":l.offlineDescriptionText,U=l.formattedSupplementalText,K=l.actionButtonText===void 0?"":l.actionButtonText,w=l.titleText===void 0?"":l.titleText;l=l.descriptionText===void 0?"":l.descriptionText;var d={title:K,accessibilityText:K,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"}}}}};X||(w=H,l=b,d={title:K,accessibilityText:K,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:_.Zi(w),titleLength:w.length,overrideTitleMaxFontSize:30,subtitle:_.Zi(l),supplementalText:U,primaryButton:{buttonViewModel:d},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[SEy]},darkTileImage:{thumbnails:[z7l]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.DNL=function(X,H,l,b,U,K,w,d,B,q,u){U=U===void 0?!1:U;K=K===void 0?!1:K;w=w===void 0?0:w;d=d===void 0?-Infinity:d;B=B===void 0?!1:B;q=q===void 0?!1:q;u=u===void 0?!1:u;var e=[],y=_.Zi(_.XS("SMART_DOWNLOADS",void 0,"Smart downloads")),V=_.Zi(kn8(w,d,X.length));d=w=void 0;q?w={statementBannerRenderer:nLy(u,b)}:U?X.length>0?d=xNy(X,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.P("kevlar_manual_downloads_above"),y,V):B?d={alertBannerViewModel:{heading:{content:l.localizedOptInBannerTitleText===
void 0?"":l.localizedOptInBannerTitleText},body:{content:l.localizedPromptMessage===void 0?"":l.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.XS("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.XS("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:_.sIz}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:K&&(d={backgroundPromoRenderer:{bodyText:_.Zi(_.XS("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"}}}):
K&&(d={alertBannerViewModel:{heading:{content:l.localizedOptInBannerTitleText===void 0?"":l.localizedOptInBannerTitleText},body:{content:l.localizedOptInMessage===void 0?"":l.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.XS("TURN_ON",void 0,"Turn on"),accessibilityText:_.XS("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}}}}}});l=_.Zi(_.XS("YOUR_DOWNLOADS",void 0,"Your downloads"));b=void 0;H.length>0?(b=void 0,_.P("kevlar_display_downloads_numbers")&&(b=_.Zi(_.HK("VIDEO_COUNT",H.length))),b=xNy(H,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,l,b)):U||X.length||
q||(b={backgroundPromoRenderer:{bodyText:_.Zi(_.XS("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}}}});w?e.push({richSectionRenderer:{content:w}}):d&&!_.P("kevlar_manual_downloads_above")&&e.push({richSectionRenderer:{content:d,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
b&&e.push({richSectionRenderer:{content:b,loggingDirectives:{clientVeSpec:{uiType:51721}}}});d&&_.P("kevlar_manual_downloads_above")&&e.push({richSectionRenderer:{content:d,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(H.length>0||U&&X.length>0&&!q)&&e.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Zi(_.XS("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:e}};
_.W_k=function(X){return tCO(X,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.ELO=function(X){return tCO(X,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
tCO=function(X,H){var l=[];X=xNy(X,H,!0);l.push({richSectionRenderer:{content:X}});return{contents:l}};
xNy=function(X,H,l,b,U){l=l===void 0?!1:l;var K="RESPONSIVE_SIZE_STANDARD";_.P("kevlar_standard_rich_grid_on_offline_home")&&H==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?K="RESPONSIVE_SIZE_STANDARD":_.P("kevlar_modern_downloads_compact")?K="RESPONSIVE_SIZE_COMPACT":_.P("kevlar_modern_downloads_extra_compact")?K="RESPONSIVE_SIZE_EXTRA_COMPACT":_.P("kevlar_modern_downloads_tiny")&&(K="RESPONSIVE_SIZE_TINY");X={isExpanded:l,contents:Xc(X),entitySelectorType:H,responsiveContainerConfiguration:{responsiveSize:K}};
b&&(X.title=b);U&&(X.subtitle=U);l||(_.P("kevlar_smart_downloads_show_more_button")?(X.showMoreButton={buttonRenderer:{accessibility:{label:_.XS("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Zi(_.XS("SHOW_MORE",void 0,"Show more"))}},X.showLessButton={buttonRenderer:{accessibility:{label:_.XS("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.Zi(_.XS("SHOW_LESS",void 0,"Show less"))}}):(X.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.XS("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}}}},X.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.XS("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}}}},X.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.XS("VIEW_ALL",void 0,"View all"),accessibilityText:_.XS("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:_.Gu("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:X}};
Xc=function(X){var H=[];X=_.C(X);for(var l=X.next();!l.done;l=X.next())if(l=l.value,ALk(l)){var b=H,U=b.push;var K=void 0;if(l==null?0:(K=l.videoEntity)==null?0:K.videoId){K=PF(_.WF().getState(),l.videoEntity.videoId);var w=_.WF().getState();var d=_.rc(l.videoEntity.videoId,"mainVideoEntity");w=!!_.CT(w.entities)[d];w={videoId:l.videoEntity.videoId,title:iH(l.videoEntity.title),shortBylineText:iH(l.channelEntity.title),thumbnail:l.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:w&&_.P("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:xUZ(l.videoEntity.videoId,K,l.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.XS("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};l.videoEntity.lengthSeconds&&(w.thumbnailOverlays=XUm(l.videoEntity.lengthSeconds,K));w.isWatched=K>0;_.P("kevlar_modern_downloads_page")&&(w.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:l.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.XS("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},w.badges=void 0);l=w}else l={};U.call(b,{richItemRenderer:{content:{videoRenderer:l},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(IoK(l)){b=H;U=b.push;var B=d=K=void 0,q=void 0,u=void 0,e=void 0,y=void 0,V=void 0,p=void 0,z=void 0,t=void 0,W=void 0;w=l.mainPlaylistEntity.playlistId;var G=l==null?void 0:(W=l.mainPlaylistEntity)==null?void 0:(t=W.thumbnailStyleData)==null?void 0:(z=t[0])==null?void 0:(p=z.value)==null?void 0:(V=p.collageThumbnail)==
null?void 0:V.coverThumbnail;if(w&&G){V=DUy(w);!_.P("enable_offline_playlist_page")&&(l==null?0:(y=l.mainPlaylistEntity)==null?0:y.videos)&&(y=l==null?void 0:(e=l.mainPlaylistEntity)==null?void 0:(u=e.videos)==null?void 0:u[0],u=_.NJ(y).entityId,u=JSON.parse(u).videoId,u!==void 0&&(V=PF(_.WF().getState(),u),V=_.aO(u,w,void 0,void 0,V)));u=[];if(l==null?0:(q=l.mainPlaylistEntity)==null?0:(B=q.videos)==null?0:B.length)B=gXl(),q=Object,u=q.assign,e=(e=EXO(l==null?void 0:l.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.Zi(e),icon:{iconType:"PLAYLISTS"}}}:void 0,u=[B,u.call(q,{},(d=e)!=null?d:{})];l={playlistId:w,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:G}},navigationEndpoint:V,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:u,title:iH(l.mainPlaylistEntity.title),shortBylineText:iH(l==null?void 0:(K=l.channelEntity)==null?void 0:K.title),badges:[{metadataBadgeRenderer:{label:_.XS("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.P("kevlar_modern_downloads_page")&&(l.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:gLh,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:w,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.XS("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},l.badges=void 0)}else l=void 0;U.call(b,{richItemRenderer:{content:{playlistRenderer:l},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return H};
kn8=function(X,H,l){X=X?$9Z(X):"";H!==void 0&&isFinite(H)?H===0?H=_.XS("UPDATING",void 0,"Updating..."):(H=ATh(new Date(H),new Date),H=_.XS("UPDATED_TIME",{relative_time:H},"Updated "+H)):H="";var b="";X&&H&&(b=" \u2022 ");if(l&&_.P("kevlar_display_downloads_numbers")){l=_.HK("VIDEO_COUNT",l);if(X||H)b=" \u2022 ";return l+b+X+b+H}return X+b+H};
Gny=function(X){return TIO(X.entities).length};
_.a2N=function(X,H,l){var b=pS(X.responsiveSize),U;X=!((U=X.responsiveMap)==null||!U.some(function(K){return K.containerSize==="CONTAINER_SIZE_NARROW"&&K.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:l,containerWidth:H,sizing:b,enableFullBleedForSingleCol:!1,isCompactList:b==="COMPACT"&&X}};
ZMZ=function(X,H){return _.JY(X.entities,"votingEntity",H)};
Hx=function(X){if(X){var H;return((H=_.jJ().resolve(_.c$(_.b4)))==null?0:H())?X.darkTheme:X.lightTheme}};
iMb=function(X,H){if(X.simpleText)return Object.assign({},X,{simpleText:fq(X.simpleText,H)});if(!X.runs)return X;for(var l=Object.assign({},X,{runs:[]}),b=0,U=_.C(X.runs),K=U.next();!K.done;K=U.next())if(K=K.value,K.text)if(b+K.text.length<=H)l.runs.push(K),b+=K.text.length;else return l.runs.push(Object.assign({},K,{text:fq(K.text,H-b)})),l;return X};
vLm=function(X,H){return _.JY(X.entities,"chipBarStateEntity",H)};
OMZ=function(X){switch(X){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""}};
mN8=function(X,H){return{triggeringElement:X,onDwellTriggeredFn:function(){var l={triggeringElement:X,loadVideoPreviewEventData:H},b=document.querySelector(".video-preview");b&&b.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:l}))},
onDwellEndFn:function(){var l=document.querySelector(".video-preview");l&&l.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Qby=function(X){var H=_.jJ().resolve(_.c$(TpK));return function(l){var b=function(){var U=X(l);return H&&U?mN8(l,U):null};
_.Wg(function(){var U=b();H&&U&&Promise.resolve().then(function(){H.registerElement(U)});
_.E2(function(){H&&U&&Promise.resolve().then(function(){_.VE(H,U)})})},"p0smCb")}};
NON=function(X){var H=X.dataset.resizeObserverId;if(H)return H;H=""+TOy++;return X.dataset.resizeObserverId=H};
ceK=function(X){X=_.C(X);for(var H=X.next();!H.done;H=X.next()){H=H.value;var l=NON(H.target),b=Object.assign({},{target:H.target},lD.get(l));if(b!=null&&b.contentRect?b.contentRect.width!==H.contentRect.width||b.contentRect.height!==H.contentRect.height:1)for(lD.set(l,{borderBoxSize:H.borderBoxSize,contentBoxSize:H.contentBoxSize,contentRect:H.contentRect,devicePixelContentBoxSize:H.devicePixelContentBoxSize}),l=_.C(oB.get(l)||[]),b=l.next();!b.done;b=l.next())b=b.value,b(H)}};
rem=function(X,H){var l=NON(X);oB.has(l)||oB.set(l,new Set);oB.get(l).add(H);lD.has(l)&&H(Object.assign({},{target:X},lD.get(l)));bD||(bD=new jbN(ceK));H=bD;H.observe(X)};
JeL=function(X,H){var l=NON(X);oB.has(l)&&(oB.get(l).delete(H),oB.get(l).size===0&&(oB.delete(l),lD.delete(l),bD.unobserve(X),delete X.dataset.resizeObserverId));oB.size===0&&bD&&(bD.disconnect(),bD=void 0)};
YEZ=function(X,H){var l=_.jJ().resolve(cD);return L_W.map(function(b){return l.observe(X,H,b)})};
I2h=function(X){var H=_.jJ().resolve(cD);X.forEach(function(l){H.unobserveByKey(l)})};
_.UF=function(X){var H=_.C(mpZ()),l=H.next().value,b=H.next().value,U=Object.assign({},Aey,X),K=XsW(function(w){var d=w.contentRect.height;if((w=w.contentRect.width)||d||U.canHaveZeroSize)l.width()===w&&l.height()===d||b(l,{height:d,width:w})},U.throttleMs);
return[l,function(w){var d=[];U.useVisibilityObserver&&(d=YEZ(w,function(B,q){requestAnimationFrame(function(){q==="visible"?rem(w,K):JeL(w,K)})}));
d.length||rem(w,K);return function(){d.length&&(I2h(d),d.length=0);JeL(w,K)}}]};
_.$q=function(X,H){var l=_.C(_.FU(!1,void 0,"YLPUhc")),b=l.next().value,U=l.next().value,K=!1,w;return function(d){if(w)return _.F(w,Object.assign({},d));if(!K){K=!0;var B=TEN;B==null||B.addDep();X().then(function(q){w=q;U(!0);B==null||B.removeDep()}).catch(function(q){B==null||B.removeDep();
if(H==null?0:H.debugName){var u,e=new _.qd("failed to load chunk",H.debugName,q==null?void 0:(u=q.toString)==null?void 0:u.call(q));_.n2(e)}else _.n2(q);throw q;})}return _.F(_.M,{cond:b,
then:function(){return _.F(w,Object.assign({},d))}})}};
lxZ=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("dpUCFd"),2);X=_.Hmm;return H.return(X)})};
bmO=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("U9vrqd"),2);X=ocl;return H.return(X)})};
$_z=function(X,H,l,b,U){X=H?X.switchOffCommand:X.switchOnCommand;if(b&&U)U_b(X,l,U);else{var K,w;(K=_.uv({elementsCommand:X}))==null||(w=K.onclick)==null||w.call(K,l)}};
U_b=function(X,H,l){X=_.uv({elementsCommand:X,additionalCommandArgs:{commandController:{onSuccess:function(){l(!1)},
onServerError:function(){l(!1)}}}});
if(X==null?0:X.onclick)X.onclick(H),l(!0)};
RTO=function(X){if(X)return _.f(X,Kvb)};
CXO=function(X){if(X)switch(X){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}};
_.KG=function(X){var H=_.P(X);me["counterfactuals."+X]=String(H);return H};
wsy=function(X,H){if(!((X==null?0:X.entitySelectorType)&&(X==null?0:X.entityKey)))return{};switch(X.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":var l,b=(l=_.rd())==null?void 0:l.getOption("captions","track"),U,K=typeof(b==null?void 0:b.translationLanguage)==="object"&&((U=b.translationLanguage)==null?void 0:U.languageName)||(b==null?void 0:b.displayName)||"";return{data:Object.assign({},!!K&&{selectionText:{content:K}},!!K&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},
{isDisabled:typeof b==="undefined"})};case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.KG("web_shorts_audio_track_picker")){var w;U=((w=_.rd())==null?void 0:w.getAudioTrack())||void 0;l=U==null?void 0:(K=U.getLanguageInfo())==null?void 0:K.getName();U={data:Object.assign({},{selectionText:{content:l}},l&&!(U==null?0:(b=U.getLanguageInfo())==null?0:b.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else U={};return U;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return b=
X!=null&&X.entityKey?(b=_.T0(H,X.entityKey))?{isHidden:(b==null?void 0:b.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},b;default:return{}}};
d_z=function(X,H){return function(l){var b=function(U){_.B6(_.FA(U),l,H)||X(U)};
l.addEventListener("click",b);return function(){l.removeEventListener("click",b)}}};
_.hTm=function(X){return function(){return _.f(X(),_.RB)}};
Fvb=function(X){switch(X){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}};
B0Z=function(X){return Fvb(X==null?void 0:X.all)};
qPW=function(X){var H={};(X=X==null?void 0:X.padding)&&(H.padding=Fvb(X.vertical)+"px "+Fvb(X.horizontal)+"px");return H};
sQz=function(X){switch(X){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
M$h=function(X){switch(X){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"}};
uoh=function(X){switch(X){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"}};
eTO=function(X,H){if(H)return{containerStyles:qPW(H),itemStyles:function(l,b){var U={flex:"1"},K=H==null?void 0:H.flexDirection;b:switch(K){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":l=!!l;break b;default:l=!!b}l||(l=_.gx("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",K==="FLEX_DIRECTION_ROW"||K==="FLEX_DIRECTION_ROW_REVERSE"?(K=B0Z(H==null?void 0:H.gap)+"px",l?U["margin-left"]=K:U["margin-right"]=K):U["margin-bottom"]=B0Z(H==null?void 0:H.gap)+"px",U.flex=
"1");return U},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(H==null?void 0:H.flexDirection)==="FLEX_DIRECTION_ROW"||(H==null?void 0:H.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
yAL=function(X){return X<528?"CONTAINER_SIZE_NARROW":X<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
V$Z=function(X,H){X=_.C(X.responsiveMap||[]);for(var l=X.next();!l.done;l=X.next())if(l=l.value,l.containerSize===H)return l.containerType};
_.PXy=function(X,H){if(H){var l=H.responsiveSize;X=yAL(X);var b=V$Z(H,X);if(b&&l){a:{if(b==="CONTAINER_TYPE_VERTICAL_LIST")if(l==="RESPONSIVE_SIZE_STANDARD"){if(X!=="CONTAINER_SIZE_NARROW"){var U="50%";break a}}else{U=X==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}U=void 0}return{responsiveSize:l,containerSize:X,containerType:b,force16By9ThumbnailAspectRatio:!H.enableContentSpecificAspectRatio,contentPreviewWidth:U,fullbleed:(b==="CONTAINER_TYPE_VERTICAL_LIST"||b==="CONTAINER_TYPE_GRID")&&X===
"CONTAINER_SIZE_NARROW"&&!1}}}};
fxO=function(X,H){var l={};switch(H){case "CONTAINER_TYPE_VERTICAL_LIST":l["flex-direction"]="column";l.padding="0 "+X.margin+"px";break;case "CONTAINER_TYPE_GRID":l["flex-direction"]="row";l.flex="none";l["flex-wrap"]="wrap";l.width=X.maxContainerWidth?X.maxContainerWidth+X.gutter+"px":void 0;l.padding="0 "+(X.margin-X.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":l["flex-direction"]="row",l.flex="none",l["overflow-x"]="auto",l.width=X.maxContainerWidth?X.maxContainerWidth+"px":void 0,
l.padding="0 "+X.margin+"px"}return l};
ps8=function(X,H){if(H){var l=V$Z(H,yAL(X));a:switch(l){case "CONTAINER_TYPE_GRID":var b=3;break a;default:b=1}b=_.a2N(H,X,b);var U=_.fS(b);return{containerLayoutConfig:_.PXy(X,H),containerStyles:fxO(U,l),itemStyles:function(K,w){K={};switch(l){case "CONTAINER_TYPE_VERTICAL_LIST":w||(K["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":K.width=U.itemWidth+"px";K["margin-right"]=U.gutter/2+"px";K["margin-left"]=U.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":K.width=U.itemWidth+
"px",K.flex="none",w||(K["margin-right"]=U.gutter+"px")}return K}}}};
x_k=function(X,H,l){if(H)return[SPz];switch(X){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[CG];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return l?[CG]:[zTZ,CG];case "TRANSFER_STATE_PAUSED_BY_USER":return[ncZ,CG];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[kJW,CG];default:return[SPz]}};
D_y=function(X,H,l,b){return x_k(X,H,b).map(function(U){var K=U.text,w=U.iconType,d=U.videoAction;U=U.playlistAction;K=K?{content:K}:void 0;w=w&&{sources:[{clientResource:{imageName:w}}]};var B=(0,_.Bb.unsafeClone)(l);if(B){var q=_.f(B,_.Yj),u=_.f(B,_.Iq);q&&d?q.action=d:u&&U&&(u.action=U)}return{title:K,leadingImage:w,rendererContext:B&&{commandContext:{onTap:{innertubeCommand:B}}}}})};
t$K=function(X){X=_.qh(X.rendererContext);var H;return(H=_.f(X,_.Iq))==null?void 0:H.playlistId};
Wv8=function(X){var H;return(H=X.listItems)==null?void 0:H.some(function(l){var b;return _.ss((b=_.f(l,_.KS))==null?void 0:b.rendererContext)})};
Ecz=function(X,H){var l;(l=X[(H+1)%X.length])==null||l.focus()};
gcy=function(X,H){var l=X.length,b;(b=X[H===-1?l-1:(H-1+l)%l])==null||b.focus()};
_.wW=function(X){var H=_.jJ().resolve(_.c$(_.b4));return H!=null&&H()?X.darkThemeColorPalette:X.lightThemeColorPalette};
_.hG=function(X){return{primaryTextColor:dW(X,0),secondaryTextColor:dW(X,1),optionColor:dW(X,2),backgroundColor:dW(X,3),videoBackgroundColor:dW(X,4)}};
dW=function(X,H){if(X){switch(H){case 0:X=X.primaryTitleColor;break;case 1:X=X.secondaryTitleColor;break;case 2:X=X.surgeColor;break;case 3:X=X.section2Color;break;case 4:X=X.section3Color;break;default:return}if(X)return _.BM(X)}};
ZmO=function(X){var H=X.element;var l=X.veType;var b=X.storedVisualElement===void 0?null:X.storedVisualElement;var U=X.elementIndex===void 0?0:X.elementIndex;X=X.clientYouTubeData;var K=_.Bi();K!==GJW&&(axZ.clear(),GJW=K);if(H.visualElement&&axZ.has(H.visualElement))return null;if(b&&axZ.has(b))return H.visualElement=b,null;l=_.H5(_.lv(),{veType:l,elementIndex:U,clientYouTubeData:X});if(!l)return null;H.visualElement=l;axZ.add(l);return l};
_.Fc=function(X,H,l,b){l=l===void 0?null:l;b=b===void 0?im8:b;var U=U===void 0?null:U;wC(function(){if(H){l instanceof Function&&(l=l());var K=ZmO({element:H,veType:X,storedVisualElement:l,clientYouTubeData:void 0});K&&(Ii(H,{data:U,observer:_.jJ().resolve(cD),hideOption:uxk,showOption:eDK,layer:H.layer}),b(K))}})};
vcm=function(X){return X?_.qw(X):""};
OmN=function(X){return(X==null?void 0:X.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
m_y=function(X,H){return _.JY(X.entities,"videoOverviewAsyncDataEntity",H)};
QQy=function(X,H){var l;return"linear-gradient(to bottom, "+((l=H==null?void 0:H.map(function(b){var U=X?b.darkThemeColor:b.lightThemeColor;return U?_.qw(U)+" "+((b==null?void 0:b.startLocation)||0)*100+"%":"transparent"}))==null?void 0:l.join(", "))+")"};
T0l=function(X,H,l,b,U){if(!((b==null?0:b.height)&&(b==null?0:b.width)))return{size:0};var K=b.width;b=b.height;if(U)return H==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&K>b?{size:312/h5Z}:H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(l!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||X!==1&&X!==2||H!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&H!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&H!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(H==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||H==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||b===K)switch(X){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(H==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||b>K)switch(X){case 1:case 3:return{size:240*d4O};default:return{size:360*d4O}}switch(X){case 1:case 2:return{size:1/h5Z*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.N0m=function(X){if(!("matchMedia"in window))return _.v$(Error("Sh")),function(){return!1};
var H=window.matchMedia(X);X=_.C(_.FU(H.matches,void 0,"waIHpe"));var l=X.next().value,b=X.next().value,U=function(K){b(K.matches)};
H.addEventListener?(H.addEventListener("change",U),_.E2(function(){H.removeEventListener("change",U)})):H.addListener&&(H.addListener(U),_.E2(function(){H.removeListener(U)}));
return l};
cAl=function(X){return X==="IMAGE_BANNER_STYLE_INSET"||X==="IMAGE_BANNER_STYLE_UNKNOWN"};
jQK=function(){if(!("matchMedia"in window))return _.v$(Error("Sh")),function(){return 0};
var X=window.matchMedia("(max-width: 527.9px)"),H=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),l=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),b=window.matchMedia("(min-width: 1024px)"),U=_.C(_.FU(X.matches,void 0,"TmIKcb")),K=U.next().value,w=U.next().value;U=_.C(_.FU(H.matches,void 0,"Z0fTKd"));var d=U.next().value,B=U.next().value;U=_.C(_.FU(l.matches,void 0,"w4xy7b"));var q=U.next().value,u=U.next().value;U=_.C(_.FU(b.matches,void 0,"DrbNC"));var e=U.next().value,
y=U.next().value,V=function(W){w(W.matches)},p=function(W){B(W.matches)},z=function(W){u(W.matches)},t=function(W){y(W.matches)};
_.DR(function(){X.addEventListener?(X.addEventListener("change",V),H.addEventListener("change",p),l.addEventListener("change",z),b.addEventListener("change",t)):X.addListener&&(X.addListener(V),H.addListener(p),l.addListener(z),b.addListener(t));_.E2(function(){X.removeEventListener?(X.removeEventListener("change",V),H.removeEventListener("change",p),l.removeEventListener("change",z),b.removeEventListener("change",t)):X.removeListener&&(X.removeListener(V),H.removeListener(p),l.removeListener(z),
b.removeListener(t))})});
return function(){return K()?1:d()?2:q()?3:e()?4:0}};
rAK=function(X){var H=0;X=_.C([X.title,X.metadata,X.actions,X.description,X.attribution]);for(var l=X.next();!l.done;l=X.next())l.value&&H++;return H};
JAy=function(X){return X===1||X===2?1:0};
YPz=function(X){X=(new Lvz).parse(X);return(new ug).render(X).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(H){var l=H.split(":").map(Number),b=0,U=0;if(l.length===3)l=_.C(l),b=l.next().value,U=l.next().value,l=l.next().value;else if(l.length===2)l=_.C(l),U=l.next().value,l=l.next().value;else if(l.length===1)l=_.C(l).next().value;else throw Error("Th");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(b*3600+U*60+l)+'" role="button">'+H+"</span>"})};
IxN=function(X){X=_.C(X.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var H=X.next(),l={};!H.done;l={clickHandler$jscomp$5:void 0},H=X.next()){H=H.value;l.clickHandler$jscomp$5=function(U){U=Number(U.target.getAttribute("data-time"));if(isNaN(U))throw Error("Uh");var K;(K=_.rd())==null||K.seekTo(U,!0)};
var b=function(U){return function(K){K.key!=="Enter"&&K.key!=="Space"||(0,U.clickHandler$jscomp$5)(K)}}(l);
H.setAttribute("tabindex","0");H.removeEventListener("click",l.clickHandler$jscomp$5);H.removeEventListener("keydown",b);H.addEventListener("click",l.clickHandler$jscomp$5);H.addEventListener("keydown",b)}};
AAm=function(){return _.F("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.F(Bx,{percentWidth:100}),_.F(Bx,{animationDelay:200}),_.F(Bx,{animationDelay:400}),_.F(Bx,{animationDelay:600}),_.F(Bx,{animationDelay:800,percentWidth:60}),_.F("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.F(Bx,{percentWidth:100}),_.F(Bx,{animationDelay:200}),_.F(Bx,{animationDelay:400}),_.F(Bx,{animationDelay:600,percentWidth:50}))};
Bx=function(X){return _.F("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(X.percentWidth===void 0?100:X.percentWidth)+"%"},_.F("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(X.animationDelay===void 0?0:X.animationDelay)+"ms"}))};
XkK=function(){var X=_.C(_.FU(function(){return""},void 0,"dXJHWc")),H=X.next().value;
return[function(){return H()()},
X.next().value]};
HwK=function(X,H){X=X?$9Z(X):"";H!==void 0&&isFinite(H)?H===0?H=_.XS("UPDATING",void 0,"Updating..."):(H=ATh(new Date(H),new Date),H=_.XS("UPDATED_TIME",{relative_time:H},"Updated "+H)):H="";var l="";X&&H&&(l=" \u2022 ");return _.Zi(X+l+H)};
bwk=function(X,H,l,b,U,K){H=H===void 0?0:H;var w=lfN[H],d=w.title,B=w.iconType,q=w.topButtonRenderer,u=w.sectionClientVE;w=w.videoClientVE;var e;if(H!==1||X.length){l=[];X=_.C(X);for(b=X.next();!b.done;b=X.next()){var y=b.value;if(ALk(y))l.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:y.videoEntity.videoId,title:iH(y.videoEntity.title),shortBylineText:iH(y.channelEntity.title),thumbnail:y.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:y.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.XS("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:w}}}}}});else if(IoK(y)){b=l;var V=b.push;var p=void 0,z=void 0,t=void 0,W=void 0,G=void 0,r=void 0,Q=void 0,v=void 0,J=y.mainPlaylistEntity.playlistId,Y=y==null?void 0:(v=y.mainPlaylistEntity)==null?void 0:(Q=v.thumbnailStyleData)==null?void 0:(r=Q[0])==null?void 0:(G=r.value)==null?void 0:(W=G.collageThumbnail)==null?void 0:W.coverThumbnail;W=DUy(J);if(!_.P("enable_offline_playlist_page")&&
(y==null?0:(t=y.mainPlaylistEntity)==null?0:t.videos)){b:{t=y==null?void 0:(z=y.mainPlaylistEntity)==null?void 0:z.videos;z=_.WF().getState().entities;if(t!=null&&t.length&&z)for(t=_.C(t),G=t.next();!G.done;G=t.next())if(G=_.NJ(G.value).entityId,(G=JSON.parse(G).videoId)&&myz(z,G)==="TRANSFER_STATE_COMPLETE"){z=G;break b}z=""}z!==void 0&&(W=PF(_.WF().getState(),z),W=_.aO(z,J,void 0,void 0,W))}z=Wsm(_.XS("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),DUy(J));y=J&&Y&&z?{playlistId:J,navigationEndpoint:W,
viewPlaylistText:z,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Y}},title:iH(y.mainPlaylistEntity.title),shortBylineText:iH(y==null?void 0:(p=y.channelEntity)==null?void 0:p.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:ofm,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:J,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.XS("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:w}}}:
void 0;V.call(b,{gridPlaylistRenderer:y})}}w={gridRenderer:{items:l}};H===1&&(e=HwK(U,K))}else if(b){var Uy=_.Zi((V=l==null?void 0:l.localizedPromptMessage)!=null?V:"");w={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Zi(_.XS("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.sIz}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Zi(_.XS("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};e=HwK(U,K)}else Uy=_.Zi(_.XS("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
w={};return{contents:[{shelfRenderer:{title:d,titleAnnotation:e,icon:{iconType:B},subtitle:Uy,content:w,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:q}]}}}}],loggingDirectives:{clientVeSpec:{uiType:u}}}};
UYO=function(X,H,l,b,U,K,w,d,B,q,u){l=l===void 0?{}:l;b=b===void 0?{}:b;U=U===void 0?!1:U;K=K===void 0?!1:K;w=w===void 0?!1:w;d=d===void 0?!1:d;B=B===void 0?!1:B;q=q===void 0?0:q;u=u===void 0?-Infinity:u;if(!(H.length||X.length||U||d))return K?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:POy(l)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Zi(_.XS("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 e=[];X.length&&e.push(bwk(X,0));d?e.push({contents:[{statementBannerRenderer:nLy(B,b)}]}):U?e.push(bwk(H,1,l,w,q,u)):K&&e.push({contents:[{statementBannerRenderer:p4y(l)}]});(U&&H.length||X.length)&&e.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Zi(_.XS("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 e.map(function(y){return{itemSectionRenderer:y}})};
qf=function(X,H){if(typeof X!=="object")return null;X=_.C(Object.entries(X));for(var l=X.next();!l.done;l=X.next()){var b=_.C(l.value);l=b.next().value;b=b.next().value;if(l===H)return l;if(b=qf(b,H))return l+"."+b}return null};
sF=function(X){var H=X.content;return(X=X.styleRuns)&&H?{runs:X.map(function(l){var b={text:H.slice(l.startIndex,l.startIndex+l.length)};l.fontColor&&(b.textColor=l.fontColor);return b})}:{simpleText:H}};
RUy=function(X,H,l,b){var U=$YZ;b&&(X.quantity=b);if(!X.quantity||!X.maxQuantity)return{};b=X.minusButton;var K=X.plusButton,w,d,B,q;return{value:X.quantity,maxValue:X.maxQuantity,onChangeCallback:function(u){U(X,u)},
minusLabel:(w=_.f(b,K7W))==null?void 0:w.label,minimumReachedLabel:(d=_.f(b,K7W))==null?void 0:d.limitReachedLabel,plusLabel:(B=_.f(K,K7W))==null?void 0:B.label,maximumReachedLabel:(q=_.f(K,K7W))==null?void 0:q.limitReachedLabel,disabled:H,onRemoveCommand:l}};
$YZ=function(X,H){var l=X.quantityIncrementerEntityKey;if(l){var b={};b.quantity=H;_.Wc(_.Mf("quantityIncrementerEntity",l,b));X.onChangeCommand&&_.yr(X.onChangeCommand)}};
CSZ=function(X){if(X)return X===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(X).overflowY)?X:CSZ(X.parentElement)};
hUW=function(X,H){(X=wky(X))&&((_.P("enable_mini_app_command_handler_mweb_fix")?0:H)?dYz.push({command:X,sourceData:{},commandContext:void 0}):_.jJ().resolve(_.Vr).resolveCommand(X))};
wky=function(X){return _.f(X,_.qq)};
F7W=function(){var X=window.performance.timeOrigin+window.performance.now(),H=(new _.uD).setSeconds(X/1E9);return _.$n(H,2,_.dY(X%1E9),0)};
quZ=function(X,H){var l;X=(l=_.f(_.f(X,_.qq),B4l))==null?void 0:l.methodName;var b,U;(l=window.youtubewebview||((b=window.webkit)==null?void 0:(U=b.messageHandlers)==null?void 0:U.youtubewebview))&&X&&(b=new eg,X=_.KY(b,1,X),X=_.Ik(X.JSC$12866_serializeBinary()),H=_.Ik(H),l.postMessage(X+","+H))};
yU=function(X,H){var l=_.f(_.f(X,_.qq),B4l);l&&(H&&(l.serializedAdditionalMetadata=_.Ik(H)),hUW(X,!0))};
sTK=function(X,H,l){setTimeout(function(){_.RD(X,H)},l)};
MQy=function(X){switch(X){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"}};
uMh=function(){return!!_.gx("ID_TOKEN")};
VQh=function(X){return X instanceof Error&&X.cause instanceof eUl&&X.cause.rpcErrorCode!==void 0?!ytO.includes(X.cause.rpcErrorCode):!0};
ffl=function(){return _.An(PSN,{authuser:""+(_.gx("SESSION_INDEX")||0)})};
VU=function(X,H,l,b){l=l===void 0?"MINI_APP_SDK_API_UNSPECIFIED":l;b=b===void 0?"":b;var U=new _.qd;l={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:b,sdkApi:l};X instanceof Error&&(U.message=X.message,U.name=X.name,X.cause instanceof eUl&&X.cause.rpcErrorCode!==void 0&&(l.rpcErrorCode=X.cause.rpcErrorCode));var K;(K=H.onError)==null||K.call(H,{loggingError:U,metadata:l})};
Sub=function(X,H,l,b){switch(X){case "MINI_APP_SOURCE_GAMESNACKS":return new zr(H,l,b);default:return new pkO(H,l,b)}};
zUO=function(X){switch(X){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"}};
nfb=function(X){switch(X){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"}};
kOW=function(X){switch(X){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"}};
xYK=function(){return Math.floor(Math.random()*4)+1};
DY8=function(X,H,l,b){X=_.C(Object.entries(X));for(var U=X.next(),K={};!U.done;K={message$jscomp$995:void 0},U=X.next()){var w=_.C(U.value);U=w.next().value;w=w.next().value;K.message$jscomp$995=w;H.push(setTimeout(function(d){return function(){b(!1);l(d.message$jscomp$995.text)}}(K),K.message$jscomp$995.delayMs));
Number(U)>0&&H.push(setTimeout(function(){b(!0)},K.message$jscomp$995.delayMs-400))}};
tQy=function(X,H,l){l=l===void 0?im8:l;if(X){var b=_.jJ().resolve(cD);b||_.P("mweb_no_observer_killswitch")?Ii(X,{data:H,observer:b,visibilityCallback:l,hideOption:uxk,showOption:eDK,layer:X.layer}):_.x2(new _.qd("Warning: monitorVisibility called with null observer",X.tagName,H==null?void 0:H.loggingDirectives,H==null?void 0:H.trackingParams))}else _.x2(new _.qd("Warning: monitorVisibility called with null element",H==null?void 0:H.loggingDirectives,H==null?void 0:H.trackingParams,H==null?void 0:
H.rendererContext))};
W7l=function(X,H){var l=l===void 0?im8:l;_.P("mweb_fix_monitor_visibility_after_render")?X&&wC(function(){tQy(X,H,l)}):wC(function(){tQy(X,H,l)})};
Efy=function(X,H){var l=document.createElement("ytd-engagement-panel-section-list-renderer");l.data=X;var b=H!=null?H:{};X=b.isPersistentPanel;H=b.hideDelayMs;b=b.overscrollContain;X=Object.assign({},X&&{isPersistentPanel:X},H&&{hideDelayMs:H},b&&{overscrollContain:b});Object.assign(l,X);return l};
ZwK=function(X){gfh||(gfh=GOK(new _.pT(1,void 0,void 0,afy),0));var H=gfh.format(Math.floor(X));H=fT==="be"||fT==="bg"||fT==="es"||fT==="et"||fT==="hu"||fT==="ka"||fT==="lv"||fT==="pl"||fT==="pt-PT"||fT==="sq"?H.replace(new RegExp("^(\\d)"+afy.GROUP_SEP.replace(".","\\.")+"(\\d+("+afy.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):H;return X>=1E3&&X<=9999&&H[1]==="."&&(fT==="sl"||fT==="it")?H.replace(".",""):H};
_.Ow8=function(X,H,l){return window.spf&&!_.P("web_disable_spfjs_client")?iwm(X,H,l):vfy(X,H)};
iwm=function(X,H,l){var b=null,U=(new _.UA(function(K,w){var d={};if(H){d.method=H.method;var B=H.postParams||{};JYK(X,H)&&(B[_.gx("XSRF_FIELD_NAME")]=_.gx("XSRF_TOKEN"));d.postData=_.Io(B);H.type&&(d.type=H.type);B=H.headers}d.headers=QOb(X,B);_.P("debug_forward_web_query_parameters")&&(X=_.jOy(X,window.location.search));d.experimental_headers=d.headers;d.onError=function(q){q.err&&q.xhr&&(q.err.params={url:q.xhr.responseURL,response:q.xhr.responseText.substr(0,64)});w(q.err)};
d.onPartDone=function(q){l&&l.call(null,q.part)};
d.onDone=function(q){var u=mYy(q.response,"xsrf_token");Jn(window.location.href,X)&&u&&_.Et("XSRF_TOKEN",u);if(u=mYy(q.response,"service_worker_killswitch"))_.Et("SERVICE_WORKER_KILLSWITCH",u),UxZ();K(q.response)};
b=spf.request(X,d)})).then(QTO);
U.thenCatch(function(K){var w=K instanceof _.nG,d=K&&K.hasOwnProperty("params")&&K.params.response?K.params.response:"";K instanceof Error&&(d?w?xhK(K):d===')]}\'\n{"reload":"now"}'?xhK(K):(T4N(K,X,d),N4O(K,d)?_.x2(K):_.n2(K)):xhK(K));b&&b.abort()});
return U};
QTO=function(X){if(X.type==="multipart"){var H=X.timing;X=X.parts.reduce(function(l,b){Object.assign(l,b);return l},{});
X.timing=X.timing||{};Object.assign(X.timing,H);X.type="reduced"}return X};
vfy=function(X,H){H=H===void 0?{}:H;var l=null,b=new _.UA(function(U,K){H.onFinish=function(w){if(w.readyState===XMLHttpRequest.DONE)if(w.status===200){if(w.responseType!=="json"){var d=w.response;d.substring(0,5)===")]}'\n"&&(d=d.substring(5));try{var B=JSON.parse(d)}catch(q){B=q}}else B=w.response;B instanceof Error?K(B):(d=mYy(B,"xsrf_token"),Jn(window.location.href,X)&&d&&_.Et("XSRF_TOKEN",d),w=w.responseURL,window.performance&&window.performance.getEntriesByName?(d=window.performance.getEntriesByName(w).pop())?
w={responseStart:(0,_.Jl)()-(d.responseEnd-d.responseStart)}:(Math.random()<.01&&(d=Error("gi"),d.params=w,_.x2(d)),w={responseStart:-1}):w={responseStart:0},B.timing=B.timing||{},Object.assign(B.timing,w),U(B))}else K(Error("fi`"+w.status))};
(l=_.Kt(X,H))||K(Error("fi`"+l.status))});
b.thenCatch(function(U){U instanceof Error&&(T4N(U,X),N4O(U)&&(U.level="WARNING"))});
_.P("cancel_pending_navs")&&b.thenCatch(function(){l.abort()});
return b};
mYy=function(X,H){var l=X[H],b=X.parts;X.type==="multipart"&&b&&(l=(X=b.find(function(U){return H in U}))&&X[H]);
return l};
T4N=function(X,H,l){var b=X.message||"";H={original:b,url:H};if(l)if(b=b.match(/position:?\s*(\d+)/)){b=b&&Number(b[1])?Number(b[1]):0;var U=Math.max(b-25,0);H.position=b;H.response=l.substring(U,b+25)}else H.response=l.substring(0,50);_.Dq(X,H);try{X.message="JSON parse error"}catch(K){}};
N4O=function(X,H){X=X.message||"";X=!!(X.indexOf("<")>=0||X.indexOf("end of ")>=0||X.indexOf("Unterminated string")>=0||X.indexOf("Unexpected EOF"));if(!X&&H)for(var l=H.length,b=!1,U=0;U<l;U++)if(b&&H[U]==="\\")U++;else if(H[U]==='"')b=!b;else if(H[U]==="<"&&!b){X=!0;break}return X};
cth=function(){return document.documentElement.hasAttribute("dark")};
_.jTm=function(X,H){if(X!=="GFEEDBACK"&&X!=="GUIDED_HELP")_.a0(Error("hi`"+X));else{var l=_.jJ().resolve(_.c$(_.gd));if(l&&(l=l.getCurrentPage())&&l.getServiceTrackingParams&&(l=l.getServiceTrackingParams()))for(var b=0,U;U=l[b++];)if(U.service===X){if(X=U.params)for(l=0;b=X[l++];)H[b.key]=b.value;break}}};
_.rtl=function(X){var H=_.aq();H&&(H=H.getPlayer())&&(H.pauseVideo(),X.playback_id=H.getVideoData().cpn,X.eid=H.getVideoData().eventId,Object.assign(X,H.getFeedbackProductData()))};
JtZ=function(){var X={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.gx("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(X.enableAnonymousFeedback=!0);_.gx("SESSION_INDEX")&&(X.authuser=String(_.gx("SESSION_INDEX")));_.P("enable_pageid_for_feedback")&&_.gx("DELEGATED_SESSION_ID")&&(X.pageId=String(_.gx("DELEGATED_SESSION_ID")));return X};
_.kq=function(X){_.P("enable_ypc_spinners")&&_.TP(X,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},X])};
_.xq=function(X){_.P("enable_ypc_spinners")&&_.TP(X,"yt-close-popup-action",["yt-loading-renderer"])};
L7y=function(X){return new Promise(function(H,l){_.Mq({verifyCommand:{recaptchaToken:X.recaptchaResponse}},{commandController:{onSuccess:function(b,U){U||l("ChallengeService did not return a response.");var K;H({challengeCompleted:(K=U.verified)!=null?K:!1})},
onServerError:function(b,U){l(U)}}})})};
YuO=function(X,H,l,b){H({recaptchaResponse:b}).then(function(U){U.challengeCompleted?_.hl()?(l(3),_.jJ().resolve(_.Vr).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:X}})):l(2):l(4)},function(){l(4)})};
Atz=function(X,H,l){_.VX(_.z8(Ifl,_.gx("HL")),function(){var b;(b=window.grecaptcha)==null||b.ready(function(){var U=window.grecaptcha;U?(l(U.render(X,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:YuO.bind(null,X,L7y,H)})),H(1)):H(4)})})};
XVL=function(X,H){return function(){switch(H()){case 0:return X().captchaLoadingMessage;case 1:return X().challengeReason;case 3:return X().captchaSuccessfulMessage;case 2:return X().captchaCookieSetFailureMessage;case 4:return X().captchaFailedMessage;default:return X().challengeReason}}()};
_.Ds=function(){if(!H1k){var X=document.querySelector("#player.skeleton");X&&(_.HE(X),H1k=!0)}};
_.odh=function(){return l4Z=srN()};
$TK=function(){return _.h(function(X){return b1K!==void 0?X.return():X.yield(UTy(),0)})};
UTy=function(){return _.h(function(X){if(X.nextAddress==1)return X.yield(ugz(),2);l4Z=X.yieldResult;b1K=_.Ss.addLowPriorityJob(UTy,5E3);_.m5(X)})};
dTb=function(X){var H=H===void 0?K8y:H;var l,b,U=(l=X.responseContext)==null?void 0:(b=l.mainAppWebResponseContext)==null?void 0:b.trackingParam;if(!U){H.increment("MISSING");var K,w,d,B,q,u;_.x2(new _.qd("282054944_a",{lXR:!!((K=X.responseContext)==null?0:(w=K.mainAppWebResponseContext)==null?0:w.loggedOut),bII:((d=X.responseContext)==null?void 0:d.mainAppWebResponseContext)===void 0,o5q:X.responseContext===void 0,cp:(B=X.playabilityStatus)==null?void 0:B.contextParams,uK4:(((q=X.streamingData)==
null?void 0:q.formats)||[]).length>0,eUz:(((u=X.streamingData)==null?void 0:u.adaptiveFormats)||[]).length>0,os:!!X.offlineState,cotn:X.cotn}));return 2}l="";try{l=RYy(U)}catch(V){return H.increment("C_ERROR"),_.n2(V),2}try{var e=_.T8O(l);var y=C8K(e)}catch(V){return H.increment("P_ERROR"),_.n2(V),2}y=_.iB(y,wVh,1,_.vb());U=[];y=_.C(y);for(e=y.next();!e.done;e=y.next())b=e.value,e=b.getPath(),l=(0,_.Bb.getValueByKeys)(X,e.split(".")),l=String(l===void 0||l===null?"":l),b=b.getValue()||"",K=/[+\-\/_]/g,
l.replace(K,"")!==b.replace(K,"")&&(H.increment("MISMATCH"),_.P("ab_mis_log_err")&&(l=new _.qd("282054944_p",{icv:e,g:String(l),e:String(b)}),_.n2(l)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(e)||(e.match(/enforcementMessageViewModel/i)?U.push(3):U.push(2)));if(U.length>0)return Math.max.apply(Math,_.LJ(U));H.increment("SUCCESS");return 1};
BaW=function(X){var H=new tG;if(X.interpreterJavascript){var l=_.fVz(X.interpreterJavascript);l=BJ(l).toString();var b=new hYh;_.KY(b,6,l);_.go(H,1,b,gt)}else X.interpreterUrl&&(l=_.zd(X.interpreterUrl),l=_.OU(l).toString(),b=new _.F8l,_.KY(b,4,l),_.go(H,2,b,gt));X.interpreterHash&&_.Wx(H,3,X.interpreterHash,gt);X.program&&_.Wx(H,4,X.program,gt);X.globalName&&_.Wx(H,5,X.globalName,gt);X.clientExperimentsStateBlob&&_.Wx(H,7,X.clientExperimentsStateBlob,gt);return H};
EF=function(X){var H={};X=_.C(X.split("&"));for(var l=X.next();!l.done;l=X.next())l=l.value.split("="),l.length===2&&(H[l[0]]=l[1]);return H};
qNh=function(X){return Number(X.t)||7200};
sNh=function(){var X=X===void 0?window:X;var H,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(fRN(),2);H=X;l=H.bgevmc;if(!l)throw Error("li");return b.return({pause:function(){l.p()},
resume:function(){l.r()},
checkForRefresh:function(){return l.cr()}})})};
Pjl=function(){if(_.P("bg_st_hr"))return"havuokmhhs-0";var X,H=((X=globalThis.performance)==null?void 0:X.timeOrigin)||0;return"havuokmhhs-"+Math.floor(H)};
gW=function(X){window.bgens=X};
MTb=function(){return new Promise(function(X){var H=window;H.ntpevasrs!==void 0?X(new Gr(H.ntpevasrs)):(H.ntpqfbel===void 0&&(H.ntpqfbel=[]),H.ntpqfbel.push(function(l){X(new Gr(l))}))})};
uNK=function(X){if(_.P("attmusi")&&_.P("attmusi_ue")){X={s:X.ydX.bind(X),ir:X.xVZ.bind(X)};var H=window;H.attmp=X;if(H.attmq!==void 0)for(var l=_.C(H.attmq),b=l.next();!b.done;b=l.next())b=b.value,b(X);H.attmq=void 0}else H=X.ydX.bind(X),_.cQ("yt.aba.att",H),X=X.xVZ.bind(X),_.cQ("yt.aba.att2",X)};
yMm=function(X){switch(_.c1(X.input)){case _.E9(eYW):var H={};return H.encryptedVideoId=X.innerTubeRequest.externalVideoId,H}return{}};
f4N=function(X){switch(_.c1(X.input)){case _.E9(eYW):if(_.P("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.E9(VTk):if(_.P("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.E9(aB):if(_.P("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&X.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.E9(P8y):var H,l;if(_.P("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((l=_.f((H=X.config)==null?void 0:H.command,_.tw))==null?0:l.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.SNb=function(X){var H;if(X.playlistVideoRenderer&&((H=X.playlistVideoRenderer)==null?0:H.engagementBar))return pVz(X.playlistVideoRenderer.engagementBar);if(_.f(X,Zs)){var l;if(X=(l=_.f(X,Zs))==null?void 0:l.engagementBar)return pVz(X)}return""};
pVz=function(X){if(!X)return"";X=_.f(X,_.zYy);if(X==null||!X.actions)return"";X=_.C(X.actions);for(X=X.next();!X.done;X=X.next()){X=_.f(X.value,_.ndz);var H=void 0;if((H=X)==null||!H.itemId)break;return X.itemId}return""};
_.kfy=function(X){var H;if(X.playlistVideoRenderer&&((H=X.playlistVideoRenderer)==null?0:H.videoId))return X.playlistVideoRenderer.videoId;if(_.f(X,Zs)){var l,b;if(X=(l=_.f(X,Zs))==null?void 0:(b=l.playlistItemData)==null?void 0:b.videoId)return X}return""};
_.xT8=function(X){var H;if(X.playlistVideoRenderer&&((H=X.playlistVideoRenderer)==null?0:H.voteCount))return X.playlistVideoRenderer.voteCount;if(_.f(X,Zs)){var l,b;if(X=(l=_.f(X,Zs))==null?void 0:(b=l.playlistItemData)==null?void 0:b.voteCount)return X}return 0};
_.iD=function(X,H){return _.JY(X.entities,"flowStateEntity",H)};
tTy=function(X,H,l,b){var U=void 0;X=_.C(X[H.iconName]||[]);for(var K=X.next();!K.done;K=X.next()){K=K.value;var w=H.iconSize;var d=H.iconStyle;w=!w||w===K[2];var B=DTN[K[0]];b&&b!==K[1]||!w||d&&d!==B?d=!1:U?(d=DTN[K[0]],d=!!H.iconStyle||d==="youtube_outline",w=U.version<=K[1],d=(!!H.iconSize||K[2]===24)&&d&&w):d=!0;d&&(U={name:H.iconName,style:DTN[K[0]],size:K[2],version:K[1],allowMirroring:!!K[3],url:l(H.iconName,K)})}return U};
W88=function(X,H,l,b){return X+(""+DTN[l[0]]+((b===void 0?0:b)?"_experimental":"")+"/"+H+"/v"+l[1]+"/")+(l[2]+"px.svg")};
Edy=function(X){return _.gx("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.gx("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":X};
gdy=function(X,H){return W88("https://fonts.gstatic.com/s/i/",X,H)};
Gfl=function(X,H){return W88("https://fonts.gstatic.com/s/i/",X,H,!0)};
a4Z=function(X,H){return W88("https://www.gstatic.com/youtube/img/icons/web/",X,H)};
vdK=function(X){var H=X.enabled;var l=X.itemPlaybackModel;var b=X.thumbnailElRef;var U=X.containerElRef;var K=X.options;var w;_.Wg(function(){var d=U==null?void 0:U.value;var B,q=(B=b())==null?void 0:B.value,u=l();B=K();if(H&&u&&d&&q&&(B==null?0:B.thumbnail)){var e={data:u,hostElement:d},y,V,p=[].concat(_.LJ((y=B.thumbnailOverlays)!=null?y:[]),_.LJ((V=u.overlays)!=null?V:[]));V=u.itemPlaybackOptions;y=(V==null?void 0:V.enableRoundedPlayer)||B.enableRounding;V=V==null?void 0:V.disableTimeStatusOverlay;
var z,t,W=(z=u.inlinePlayerData)==null?void 0:z.onVisible,G=(t=u.inlinePlayerData)==null?void 0:t.onSelect;t=B.thumbnail;z=B.accessibilityText||"";u=(u=_.f(W,Z1Z))&&u.playerDescriptors?u.playerDescriptors:void 0;if(u){W=[];for(G=0;G<u.length;G++){var r=void 0;W.push({inlinePlaybackEndpoint:u[G].inlinePlaybackEndpoint,navigationEndpoint:u[G].navigationEndpoint,thumbnail:(r=u[G].thumbnail)!=null?r:t,thumbnailOverlays:u[G].thumbnailOverlays?u[G].thumbnailOverlays:p,accessibilityText:z})}p=W}else p={inlinePlaybackEndpoint:_.sl(W),
navigationEndpoint:_.sl(G),thumbnail:t,thumbnailOverlays:p,accessibilityText:z};d={mediaRenderer:e,lockupElement:d,thumbnailElement:q,videoPreviewOpts:{videoPreviewData:p,thumbnailSize:B.thumbnailSize,enableRounding:y,mouseleaveCallback:B.mouseleaveCallback,hideTimeDisplay:V}}}else d=void 0;if(d){var Q;(Q=w)==null||vx(Q);w=yE(d);var v,J;((v=l())==null?0:(J=v.inlinePlayerData)==null?0:J.forceImpAutoplay)&&i1y(w)}},"mM6F9");
_.E2(function(){var d;(d=w)==null||vx(d)})};
O1y=function(X){X=atob(X);for(var H=[],l=0;l<X.length;l++)H.push(X.charCodeAt(l));return new Blob([new Uint8Array(H)],{type:"image/png"})};
QNk=function(X,H,l,b){b=b===void 0?"INSERTION_POSITION_UNSPECIFIED":b;return X({targetId:H},function(U){var K,w=(K=U.contents)!=null?K:[];K=l!=null?l:[];var d=mTk(w);switch(b){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},U,{contents:[].concat(_.LJ(w.slice(0,d)),_.LJ(K),_.LJ(w.slice(d+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},U,{contents:[].concat(_.LJ(K),_.LJ(w))});case "INSERTION_POSITION_LAST":return Object.assign({},U,{contents:[].concat(_.LJ(w),_.LJ(K))});
default:return U}})};
cML=function(X,H,l,b,U){U=U===void 0?"RELATIVE_INSERTION_POSITION_AFTER":U;return X({targetId:H},function(K){var w,d=(w=K.contents)!=null?w:[];w=NaK(d,l);if(w<0)return K;w=U==="RELATIVE_INSERTION_POSITION_BEFORE"?w:w+1;return Object.assign({},K,{contents:[].concat(_.LJ(d.slice(0,w)),_.LJ(b),_.LJ(d.slice(w)))})})};
mTk=function(X){var H=X.findIndex(function(l){return _.f(l,_.OF)});
return H>=0?H:X.length};
NaK=function(X,H){return X.findIndex(function(l){a:{l=_.C(Object.values(l));for(var b=l.next();!b.done;b=l.next())if((b=b.value)&&b.targetId){l=b.targetId;break a}l=""}return l===H})};
rML=function(X,H,l){return X({targetId:H},function(b){var U,K=(U=b.contents)!=null?U:[];return Object.assign({},b,{contents:jNZ(K,l)})})};
jNZ=function(X,H){return X.filter(function(l){var b=H.includes;a:{l=_.C(Object.values(l));for(var U=l.next();!U.done;U=l.next())if((U=U.value)&&U.targetId){l=U.targetId;break a}l=""}return!b.call(H,l||"")})};
_.JMN=function(X,H){return{engagementPanelSectionListRenderer:{panelIdentifier:X,identifier:H,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
L8N=function(X,H){X=X.getAvailableAudioTracks();if(X.length)return X==null?void 0:X.find(function(l){var b;return(l==null?void 0:(b=l.getLanguageInfo())==null?void 0:b.getId())===H})};
_.I4m=function(X){var H,l=(H=X.getOption("captions","tracklist",{includeAsr:!0}))!=null?H:[];return l=YNh(l,X)};
AMb=function(X){return X.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
YNh=function(X,H){H=AMb(H);if(H==null||!H.length)return X;var l=H.filter(function(w){return w});
H=X.filter(function(w){return w.languageCode.startsWith("en")});
l=_.C(l);for(var b=l.next();!b.done;b=l.next())if(b=b.value,H.length){var U=H[0],K=Object.assign({},U);U.languageCode!==b.languageCode&&(K.displayName=U.languageName+" >> "+b.languageName,K.translationLanguage=b,X.push(K))}return X};
XYO=function(X,H,l){X=_.I4m(X);if(X.length)return l?X.find(function(b){if(typeof(b==null?void 0:b.translationLanguage)==="object"){var U;return((U=b.translationLanguage)==null?void 0:U.languageCode)===H}return!1}):X==null?void 0:X.find(function(b){return b.languageCode===H})};
Hom=function(X){return X.getOption("captions","tracklist",{includeAsr:!0})};
ljO=function(X){var H=X.getAvailableAudioTracks();if(H!=null&&H.length){var l=X.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.LJ(H.map(function(b){return{listItemViewModel:{title:{content:b.getLanguageInfo().getName()},isSelected:b.getLanguageInfo().getId()===(l==null?void 0:l.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:b.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
oAy=function(X){return X.getOption("captions","tracklist",{includeAsr:!0})};
boO=function(X){var H=oAy(X);if(H==null?0:H.length)return H;X.loadModule("captions");return oAy(X)};
U1W=function(X){var H=X.getOption("captions","track");if(H)return H;X.loadModule("captions");return X.getOption("captions","track")};
KHm=function(X){var H=boO(X);if(H!=null&&H.length){var l=U1W(X),b;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.XS("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(l==null?0:l.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.LJ(H.map(function(U){return{listItemViewModel:{title:{content:U.displayName},
isSelected:U.displayName===(l==null?void 0:l.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:U.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.XS("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!l.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!l.translationLanguage&&{selectionText:{content:(l==null?void 0:(b=l.translationLanguage)==null?void 0:b.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[$1k(X)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
$1k=function(X){var H=AMb(X);if(H==null||!H.length)throw Error("Hi");var l=U1W(X);X=H.filter(function(b){return!b.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.LJ(X.map(function(b){var U;return{listItemViewModel:{title:{content:b.languageName},isSelected:b.languageName===(l==null?void 0:(U=l.translationLanguage)==null?void 0:U.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:b.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
d1N=function(X){return new Promise(function(H,l){if(X===void 0)_.n2(Error("Li"),"ERROR"),l(Error("Li"));else{l=new _.RwW;var b=_.CGK();l=l.init();var U=_.wYh(_.gx("YPC_MB_URL"),!0);Promise.all([l,U]).then(function(){var K=_.m9.payments.business.integration.ClientTokenFactory.createClientToken(X,b);H(K)})}})};
Bi8=function(X,H,l,b,U,K,w){var d=_.kj();l=l.replace(/-/g,"+").replace(/_/g,"/");var B=_.oO().get("hl"),q=_.QU(_.Dc),u=H==null?void 0:H.element;u&&_.kq(u);hwy(H,!0);_.FHy(q,l,d.resolve,function(){u&&_.xq(u)},function(e){u&&_.xq(u);
d.reject(e)},B,b?function(e){b&&_.nl(X,b,{backend_analytics:e})}:void 0,d.resolve,U,K,w);
return d.promise};
hwy=function(X,H){!(X=X==null?void 0:X.element)||X.tagName!=="YT-BUTTON-RENDERER"&&X.tagName!=="YTD-BUTTON-RENDERER"||(X.disabled=H)};
qpk=function(){var X=_.XS("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Zi(X),actionButton:{buttonRenderer:e7K()}}},popupType:"TOAST"}};
s9k=function(){var X=_.XS("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Zi(X),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
MWy=function(X){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:X}]}}};
Tr=function(X,H,l,b){var U;return _.h(function(K){if(K.nextAddress==1)return _.Ew(K,2),K.yield(X,4);if(K.nextAddress!=2)return(U=_.$M(H.getState().entities).length>0)?K.return({title:_.Zi(_.XS("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Zi(_.XS("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:uGK()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
K.return(yey(l,b));_.Ow(K);return K.return(yey(l,b))})};
uyW=function(X,H){return H?H==="PPSV"||NIZ(X,H):!1};
ewy=function(X){X.responseContext||(X.responseContext={});X.responseContext.maxAgeSeconds=0;return X};
cx=function(X){var H;return _.h(function(l){return l.nextAddress==1?l.yield(ymW(X,"service:topbar:fallback"),2):(H=l.yieldResult)&&_.Nf(H)?l.return(ewy(_.Nf(H))):l.return()})};
VWb=function(X){var H;return _.h(function(l){return l.nextAddress==1?l.yield(ymW(X,"service:downloads_settings:fallback"),2):(H=l.yieldResult)&&_.Nf(H)?l.return(H):l.return()})};
ymW=function(X,H){var l;return _.h(function(b){if(b.nextAddress==1)return X?b.yield(X.get(H),2):b.return();l=b.yieldResult;return!l||!_.Nf(l)||!isNaN(Number(l.data.expireTimestampMs))&&l.isExpired()?b.return():b.return(l)})};
PGb=function(X){var H=_.jJ().resolve(jg).getState().entities;return X.playlistId?uyW(H,X.playlistId):!1};
pYh=function(X){var H=_.Yy("web_pbj_log_warning_rate",0);H=H>0&&Math.random()<H;if(!_.f(X,_.HM))return H&&_.x2(Error("ej")),!1;var l;return _.P("shorts_controller_retrieve_seedless_sequence_v2")&&((l=_.f(X,_.HM))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:fjO(X)?!0:(H&&_.x2(Error("fj")),!1)};
fjO=function(X){var H=(_.f(X,_.ku)||_.f(X,_.HM)).videoId;if(!H||!SpZ.test(H))return!1;var l;return(X=(l=_.f(X.commandMetadata,_.Ip))==null?void 0:l.url)&&(X.includes(H)||X.startsWith("/clip"))?!0:!1};
_.nAb=function(){var X=_.oO();return X.getFlag(192)?X.getFlag(190):!(_.KG("web_watch_cinematics_disabled_by_default")||_.KG("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&zwz())};
_.rW=function(X,H,l){var b={};b.currentUrl=H;b.vis=X.vis!==void 0?X.vis:0;b.splay=!1;H=_.oO();b.autoCaptionsDefaultOn=H.getFlag(66);H.getFlag(141)?H.getFlag(140)?b.autonavState="STATE_OFF":b.autonavState="STATE_ON":b.autonavState="STATE_NONE";b.html5Preference="HTML5_PREF_WANTS";isNaN(_.gx("STS"))||(b.signatureTimestamp=_.gx("STS"));X.autonav&&(b.autoplay=!0,b.autonav=!0);X.mutedAutoplay&&(b.autoplay=!0,b.mutedAutoplay=!0);X.inlinePlayback&&(b.autoplay=!0,b.autonav=!1,b.isInlineUnmutedPlayback=!!X.inlineUnmuted);
b.referer=l;b.lactMilliseconds=X.lact!==void 0?X.lact.toString():"-1";_.P("enable_unknown_lact_fix_on_html5")&&b.lactMilliseconds==="-1"&&_.x2(new _.qd("Unknown LACT is set in playbackContext.",{"lact in tempData":X.lact||"undefined",autonav:X.autonav||"undefined"}));X={};H.getFlag(194)&&(X.hasShownAmbientMode=!0);H.getFlag(192)&&(X.hasToggledOffAmbientMode=!0);_.nAb()&&(X.watchAmbientModeEnabled=!0);b.watchAmbientModeContext=X;return b};
kmZ=function(X){var H={},l=X.pbis||0;l&&(H.playbackBeginsInSeconds=l);X.prefetch_reason&&X.prefetch_reason==="hc_pbis"&&(H.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return H};
x1l=function(X,H){var l;if(H==null?0:(l=H.requestTemplate)==null?0:l.panelId)X.panelId=H.requestTemplate.panelId;var b;if(H==null?0:(b=H.requestTemplate)==null?0:b.params)X.params=H.requestTemplate.params};
tWy=function(){if(D1y)return D1y();var X=!_.P("idb_response_store_auth_killswitch"),H={};D1y=rL("yt-it-response-store",{objectStores:(H.ResponseStore={addedAtVersion:1},H),shared:!X,upgrade:function(l,b){b(1)&&(l=E4(l,"ResponseStore",{keyPath:["key","clientName"]}),gn(l,"byExpiration","expireTimestampMs"),gn(l,"byInterface","clientName"))},
version:1});return D1y()};
JG=function(X){return _.vQ(tWy(),X)};
EAk=function(X,H){var l;return _.h(function(b){return b.nextAddress==1?b.yield(_.jv(),2):(l=b.yieldResult)?b.return(new WHm(X,H,l)):b.return()})};
gAW=function(X){var H=Object.keys(X)[0];if(H)return X.screenExit&&(H=H+";"+X.screenExit.screen),H};
GmZ=function(X){var H=new Map;X=_.C(X);for(var l=X.next();!l.done;l=X.next())l=l.value,l!=null&&(H.has(l.taskType)||H.set(l.taskType,[]),H.get(l.taskType).push(l));return H};
ajz=function(X){X=[].concat(_.LJ(X)).sort(function(l,b){return l-b});
var H=Math.floor(X.length/2);return X.length%2?X[H]:(X[H-1]+X[H])/2};
vAZ=function(X,H){X=X===void 0?qsl:X;H=H===void 0?{}:H;_.cQ("yt.logging.errors.log",_.n2);FCW();ZoO(y5y(),H);window.onerror=X;ioz=Bjl;window.addEventListener("unhandledrejection",function(l){if(l.reason instanceof Error){var b=l.reason;_.Dq(b,{source:"unhandledrejection"});b.name==="AbortError"&&(b.level="WARNING")}Bjl(l.reason);l.preventDefault()})};
_.Ook=function(X){var H,l,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J,Y,Uy,Cy,sy,FO,ub,g8,mm,QZ,Bz,dt,TK,sG,f_,Mv,nd,$U,MW;return _.h(function(ZL){if(ZL.nextAddress==1)return ZL.yield(_.HF(X,{mode:"readonly",enableRetries:!0},function(uF){return l5(uF,"playbackData").then(function(rt){var xQ=rt.map(function(F5){return F5.transfer}).filter(function(F5){return!!F5}),AQ=rt.map(function(F5){return F5.offlineVideoPolicy}).filter(function(F5){return!!F5}),D3=rt.filter(function(F5){return!!F5.key}).map(function(F5){return _.rc(_.NJ(F5.key).entityId,
"downloadStatusEntity")});
xQ=l5(uF,"transfer",xQ);AQ=l5(uF,"offlineVideoPolicy",AQ);D3=l5(uF,"downloadStatusEntity",D3);var YQ=xQ.then(function(F5){F5=F5.reduce(function(TY,NZ){(NZ==null?0:NZ.offlineVideoStreams)&&TY.push.apply(TY,_.LJ(NZ.offlineVideoStreams));return TY},[]).filter(function(TY){return!!TY});
return l5(uF,"offlineVideoStreams",F5)});
return WQ.all([xQ,AQ,YQ,D3]).then(function(F5){var TY=_.C(F5);F5=TY.next().value;var NZ=TY.next().value;var C_=TY.next().value;TY=TY.next().value;return[rt,F5,NZ,C_,TY]})})}),2);
if(ZL.nextAddress!=3)return H=ZL.yieldResult,ZL.yield(_.HF(X,{mode:"readonly",enableRetries:!0},function(uF){return l5(uF,"mainDownloadsListEntity").then(function(rt){var xQ,AQ;return(AQ=(xQ=rt[0])==null?void 0:xQ.downloads)!=null?AQ:[]})}),3);
l=ZL.yieldResult;b=_.C(H);U=b.next().value;K=b.next().value;w=b.next().value;d=b.next().value;B=b.next().value;q=U;u=K;e=w;y=d;V=B;p={};z={};t={};W={};G={};r=[];Q=_.C(u);for(v=Q.next();!v.done;v=Q.next())(J=v.value)&&(p[J.key]=J);Y=_.C(e);for(Uy=Y.next();!Uy.done;Uy=Y.next())(Cy=Uy.value)&&(z[Cy.key]=Cy);sy=_.C(V);for(FO=sy.next();!FO.done;FO=sy.next())(ub=FO.value)&&(t[ub.key]=ub);g8=_.C(y);for(mm=g8.next();!mm.done;mm=g8.next())(QZ=mm.value)&&(W[QZ.key]=QZ);Bz=_.C(l);for(dt=Bz.next();!dt.done;dt=
Bz.next())TK=dt.value,sG=void 0,G[(sG=TK.videoItem)!=null?sG:""]=!0,TK.videoItem&&(Mv=f_=void 0,nd=(Mv=(f_=_.NJ(TK.videoItem))==null?void 0:f_.entityId)!=null?Mv:"",r.push({externalVideoId:nd}));$U=q.filter(function(uF){if(!uF||!uF.key||!uF.offlineVideoPolicy)return!1;uF=_.NJ(uF.key).entityId;uF=_.rc(uF,"downloadStatusEntity");var rt;return!(uF&&((rt=t[uF])==null?void 0:rt.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
MW=$U.map(function(uF){var rt=p[uF.transfer],xQ=[];if(rt==null?0:rt.offlineVideoStreams)for(var AQ=_.C(rt.offlineVideoStreams),D3=AQ.next();!D3.done;D3=AQ.next())(D3=W[D3.value])&&xQ.push(D3);AQ=z[uF.offlineVideoPolicy];D3=G;var YQ=uF==null?void 0:uF.playerResponseTimestamp,F5=_.NJ(AQ.key).entityId;uF=_.rc(F5,"mainVideoEntity");if(AQ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var TY="OFFLINE_VIDEO_STATE_DISABLED";AQ.expirationTimestamp&&Number(AQ.expirationTimestamp)<Date.now()/1E3&&(TY="OFFLINE_VIDEO_STATE_EXPIRED")}else if(AQ.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")TY="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(rt==null?void 0:rt.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":TY="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":TY="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":TY="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":TY="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":TY="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":TY="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:TY="OFFLINE_VIDEO_STATE_UNKNOWN"}if(TY==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(rt==null?void 0:rt.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":TY="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":TY="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":TY=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}F5={id:F5,videoState:TY};if(rt==null?0:rt.cotn)F5.cotn=rt.cotn;if(rt==null?0:rt.maximumDownloadQuality)F5.selectedVideoQuality=rt==null?void 0:rt.maximumDownloadQuality;if(rt==null?0:rt.lastProgressTimeMs)F5.lastProgressTimeMs=rt.lastProgressTimeMs;YQ&&(F5.playerResponseSavedTimeMs=String(Number(YQ)*1E3));rt=String;YQ=0;xQ=_.C(xQ);for(TY=xQ.next();!TY.done;TY=xQ.next())if(TY=TY.value,TY.streamsProgress){TY=_.C(TY.streamsProgress);for(var NZ=TY.next();!NZ.done;NZ=
TY.next()){var C_=void 0;YQ+=Number((C_=NZ.value.numBytesDownloaded)!=null?C_:0)}}F5.downloadedBytes=rt(YQ);F5.selectedOfflineMode=D3[uF]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";AQ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(F5.offlinePlaybackDisabledReason=AQ.offlinePlaybackDisabledReason);return F5});
return ZL.return({offlineVideos:MW,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:r}}})})};
m1l=function(){var X;return _.h(function(H){return H.nextAddress==1?H.yield(_.IO(),2):(X=H.yieldResult)?H.return(_.Ook(X)):H.return({state:"PES Unavailable"})})};
Nim=function(){var X,H,l,b;return _.h(function(U){if(U.nextAddress==1)return U.yield(_.IO(),2);if(U.nextAddress!=3)return(X=U.yieldResult)?U.yield(Q9K(X),3):U.return({state:"PES Unavailable"});H=U.yieldResult;l={};b=H.reduce(function(K,w){K[w.key]=w;return K},l);
return U.return(TiN(b))})};
TiN=function(X){for(var H={},l=[],b=_.C(Object.keys(X)),U=b.next();!U.done;U=b.next()){var K=U.value;U=X[K];var w=void 0;if(((w=U)==null?void 0:w.entityType)==="mainVideoEntity"){delete X[K];var d=U.data;U={};if(d){var B=void 0;w=(B=d.videoId)!=null?B:"vid-"+K;K=X;U.video=d;delete U.video.formattedDescription;delete U.video.thumbnail;d.owner&&(B=K[d.owner],B==null?0:B.data)&&(delete K[B.key],U.video.owner=B.data,delete U.video.owner.avatar);if(d=d.downloadState)if(B=K[d],B==null?0:B.data)if(delete K[d],
d=B.data.playbackData)if(B=K[d],B!=null&&B.data){delete K[d];d=B.data;delete d.playerResponseJson;U.playbackData=d;if(d.transfer&&(B=K[d.transfer],B==null?0:B.data)){delete K[B.key];var q=B.data;U.transfer=q;B=[];q=_.C(q.offlineVideoStreams||[]);for(var u=q.next();!u.done;u=q.next())if(u=K[u.value])delete K[u.key],B.push(u.data);B&&(U.streams=B)}(d=d.offlineVideoPolicy)&&(d=K[d])&&d.data&&(delete K[d.key],U.offlineVideoPolicy=d.data)}H[w]=U}}else U&&U.entityType==="offlineOrchestrationActionWrapperEntity"&&
U.data&&(delete X[U.key],w=U.data,K=void 0,l.push({id:w.rootActionId,type:((K=w.actionProto)==null?void 0:K.actionType)||"",entity:U}))}H.wrapperEntities=l;Object.keys(X).length>0&&(H.unknownKeys=X);return H};
cmK=function(){var X,H,l,b,U,K,w,d,B;return _.h(function(q){if(q.nextAddress==1)return X=(new _.DS("")).hasLocalStorage(),b=!!((H=_.ok.crypto)==null?0:(l=H.subtle)==null?0:l.importKey),U=!!_.ok.BroadcastChannel,K=!!_.ok.navigator.locks,q.yield(jHy(),2);w=q.yieldResult;d=X&&b&&U&&K&&w;B={isSupported:d};if(d)return q.return(B);B.missingBrowserFeatures=[];w||B.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");X||B.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
b||B.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");U||B.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");K||B.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return q.return(B)})};
j9k=function(X,H,l,b){var U=!1,K={contentId:void 0,contentType:"video"};H=_.C(Object.entries(H));for(var w=H.next();!w.done;w=H.next()){var d=_.C(w.value);w=d.next().value;d=d.next().value;X.includes(w)&&!l.has(d)?(K.contentId=d,l.add(d),U=!0):w==="contentType"?d==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(K.contentType="playlist"):typeof d==="object"&&d!==null&&j9k(X,d,l,b)}U&&b.push(K)};
rmz=function(){var X;return!((X=LG?LG:null)==null||!X.window)};
_.Ypy=function(X){if(_.Jmb()){var H=_.LH8().mediaSession;try{H.setActionHandler("enterpictureinpicture",function(l){X(l)})}catch(l){}}};
_.Jmb=function(){return!(!LG||!LG)&&xN()&&_.fLz("Chromium")>=120};
Ijy=function(X){for(var H=[],l=_.C(document.styleSheets),b=l.next(),U={};!b.done;U={node$jscomp$779:void 0},b=l.next())U.node$jscomp$779=b.value.ownerNode,U.node$jscomp$779&&(U.node$jscomp$779 instanceof HTMLStyleElement||U.node$jscomp$779 instanceof HTMLLinkElement)&&H.push(new Promise(function(K){return function(w){var d=K.node$jscomp$779.cloneNode(!0);d.onload=function(){w()};
d.onerror=function(){_.x2(Error("xj"));w()};
X.document.head.appendChild(d)}}(U)));
return Promise.all(H)};
RW8=function(X){var H=[_.p$(Amy),_.p$(XeZ),_.p$(HCN)];lWy(window.document.documentElement,X.document.documentElement,[_.p$(o9Z),_.p$(bCW),_.p$(ULN),_.p$($Lk),_.p$(Kby)]);lWy(window.document.body,X.document.body,H)};
lWy=function(X,H,l){X=_.C(X.attributes);for(var b=X.next();!b.done;b=X.next())if(b=b.value)try{_.uQ(l,H,b.name,b.value)}catch(U){}};
wel=function(X,H){X=new _.Yq(X.document.documentElement);X.start(Coy,H);return X};
dLy=function(X){var H=X.document.documentElement;H.addEventListener("click",function(l){Qvy(H,l)});
H.addEventListener("touchstart",function(l){rDh(l)});
H.addEventListener("mousedown",function(l){rDh(l)})};
FbK=function(X,H,l,b){b=b===void 0?!1:b;H=new hWK(H||X,l||X);return{x:X.x+((b===void 0?0:b)?H.lengthX*-1:H.lengthX)*.2,y:X.y+((b===void 0?0:b)?H.lengthY*-1:H.lengthY)*.2}};
BSL=function(X){if(!X)return!1;var H=X.status==="OK"||X.status==="LIVE_STREAM_OFFLINE",l,b,U,K=(U=(l=X.errorScreen)==null?void 0:l.playerLegacyDesktopYpcTrailerRenderer)!=null?U:(b=X.errorScreen)==null?void 0:b.ypcTrailerRenderer;return!!H||!!K};
_.qWl=function(X,H){if(!X)return!1;var l,b=(l=X.errorScreen)==null?void 0:l.playerLegacyDesktopYpcOfferRenderer,U;H=!!(H==null?0:(U=H.playerOverlayRenderer)==null?0:U.gatedActionsOverlayRenderer);return!!BSL(X)||!!b||!!H};
sPN=function(X){return lMl(X,0,"gclid",X.search(oey))>=0||lMl(X,0,"gad_source",X.search(oey))>=0};
M8y=function(X){var H=[],l=0;return{clear:function(){l=H.length=0},
push:function(b){H[l]=b;l=(l+1)%X},
iterate:function(){return function U(){var K,w,d,B;return _.IB(U,function(q){switch(q.nextAddress){case 1:_.iQ(q,2),K=H.length,w=0;case 4:if(!(w<K)){q.jumpTo(2);break}d=l+w;B=_.AG;return q.yield(H[d%K],7);case 7:B(q.yieldResult);w++;q.jumpTo(4);break;case 2:_.GS(q),_.vJ(q,0)}})}()}}};
uqy=function(X){X.eventsToIgnore||(X.eventsToIgnore=[]);var H=X.eventsToIgnore.map(cHZ),l=new Set(H),b=M8y(X.bufferSize);return{flush:function(){var U=Array.from(b.iterate());b.clear();U=U.map(function(K){return{name:K.name,timestamp:K.startTime,attributes:K.attributes}});
return JSON.stringify(U)},
onSpanStart:function(U){U.name==="event"&&l.has(U.attributes.type)||b.push(U)}}};
eWy=function(X){X=uqy(X);var H=X.flush;Hgh({onSpanStart:X.onSpanStart});WD.subscribe("handleError",function(l){try{l.params.breadcrumbs=H()}catch(b){_.n2(b,"WARNING")}})};
y38=function(){BK("web_tracing_action");_.qJ("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
V8m=function(){BK("web_tracing_action");_.qJ("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
pel=function(X,H,l,b){if(H===void 0){PoO||(V8m(),setInterval(V8m,6E5),PoO=!0);var U="web_tracing_action"}else U=H;var K,w=((K=X.endTime)!=null?K:X.startTime)-X.startTime;K={};l=fWz(X.name,w,X.startTime,{webTracing:(K[X.name]=X.attributes,K)},l,U,{spanStatus:X.status,rootSpanNonce:void 0});if(X.children)for(X=_.C(X.children),U=X.next();!U.done;U=X.next())pel(U.value,H,l,b||l)};
SWO=function(X){var H=KWl.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(l){l.data&&typeof l.data==="object"&&(l=l.data,l.from==="extension"&&l.app==="yt.telemetry"&&(H("Received message from extension",l),X.onMessage(l)))});
return function(l,b){l={app:"yt.telemetry",from:"app",key:l,payload:b};H("Sending message to extension",l);window.postMessage(l,"*")}};
zWL=function(){var X=X===void 0?3E3:X;var H=SWO({onMessage:function(){}}),l=[];
return{onSpanEnd:function(b){b.parentId==null&&l.push(b)===1&&setTimeout(function(){var U=[].concat(_.LJ(l));l.length=0;H("spansReported",{spans:U})},X)}}};
n9y=function(X){X=X===void 0?400:X;var H=[],l=[];return{start:function(){return lgK({checkoutEveryNth:X,emit:function(b,U){U&&(H=l,l=[]);l.push(b)},
blockSelector:'img, video, audio, source, picture, [style*="background"][style*="url"]',maskAllInputs:!0,maskTextSelector:"*"})},
getRecording:function(){return[].concat(_.LJ(H),_.LJ(l))}}};
DLK=function(){(new k9y({sessionReplayEvents:_.Yy("web_tracing_session_replay",0)})).subscribe(function(X){if(X.sessionReplayEvents>0)try{var H=n9y(X.sessionReplayEvents);H.start();var l=console.log;window.exportSessionReplay=function(){var b=JSON.stringify(H.getRecording(),null,2);b=xLy(new Blob([b],{type:"text/plain"}));var U=document.createElement("a");U.download="session_replay.json";U.dataset.downloadurl=["application/json",U.download,U.href].join(":");U.style.display="none";U.href=b;U.click();
URL.revokeObjectURL(b);l("View replay at go/yt-session-replay-viewer")}}catch(b){_.x2(Error("zj"))}})};
Wbz=function(){var X=window.fetch;window.fetch=function(){var H=_.Ab.apply(0,arguments),l=_.C(H),b=l.next().value;l=l.next().value;var U=_.Oc("httpEvent",{method:(l===void 0?{}:l).method||"GET",path:t8O(b),type:"fetch"},{active:!1});return X.apply(null,_.LJ(H)).then(function(K){U.addAttributes({statusCode:K.status,statusText:K.statusText});U.end();return K}).catch(function(K){U.end("SPAN_STATUS_ERROR");
throw K;})}};
E9K=function(){var X=XMLHttpRequest.prototype.open,H=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(l,b,U,K,w){var d=this;U=U===void 0?!0:U;this._requestData={method:l,url:b.toString()};this.addEventListener("load",function(){var B=d._span;B==null||B.addAttributes({statusCode:d.status,responseContentLength:d.responseText.length});B==null||B.end()});
this.addEventListener("error",function(){var B=d._span;B==null||B.addAttributes({statusCode:d.status,statusText:d.statusText});B==null||B.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var B=d._span;B==null||B.addAttributes({statusCode:d.status,aborted:!0});B==null||B.end()});
X.apply(this,[l,b,U,K,w])};
XMLHttpRequest.prototype.send=function(l){var b=this._requestData||{method:"N/A",url:"N/A"};this._span=_.Oc("httpEvent",{method:b.method,path:t8O(b.url),type:"xhr"},{active:!1});H.apply(this,[l])}};
t8O=function(X){try{if(X instanceof URL)return X.pathname;X instanceof Request&&(X=X.url);return(new URL(X,"https://youtube.com")).pathname}catch(H){return"<unable to parse path>"}};
G9y=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var X=window.performance.getEntriesByType("navigation");if(X.length>0){var H=X[0],l=window.performance.timeOrigin;_.Oc("pageLoad",{navigationType:g9y(H.type),unloadEventStart:Math.round(H.unloadEventStart),unloadEventEnd:Math.round(H.unloadEventEnd),domInteractive:Math.round(H.domInteractive),domContentLoadedEventStart:Math.round(H.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(H.domContentLoadedEventEnd),
domComplete:Math.round(H.domComplete),loadEventStart:Math.round(H.loadEventStart),loadEventEnd:Math.round(H.loadEventEnd),redirectCount:H.redirectCount},{active:!1,startTime:l+H.startTime,endTime:l+H.loadEventEnd})}}catch(b){}})};
g9y=function(X){switch(X){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"}};
OCz=function(){for(var X=aW8.value,H={},l=_.C(X.enabledSpansArray),b=l.next();!b.done;b=l.next())H[b.value]=!0;XWZ({sessionId:o8b(),enabledSpans:H,shouldSampleFn:function(U,K,w){if(ZCy){var d;return U==="shortToShort"||(w==null?void 0:(d=w.rootSpan())==null?void 0:d.name)==="shortToShort"}return!0}});
$gk();vi("pageLoad")&&G9y();vi("httpEvent")&&(Wbz(),E9K());X.exportToCsi&&Hgh(iC8);X.exportToDevTools&&Hgh(zWL());X.maxBreadcrumbs>0&&eWy({eventsToIgnore:v9N,bufferSize:X.maxBreadcrumbs})};
mLN=function(X){return new Promise(function(H){window.setTimeout(H,X)})};
QPm=function(X){var H={bicf:function(K){X.qkT=K},
blc:function(){return X.getLatestChallengeResponse()},
bcr:function(K){X.sLh.push(K)}},l=window;
l.ntpevasrs=H;if(l.ntpqfbel!==void 0)for(var b=_.C(l.ntpqfbel),U=b.next();!U.done;U=b.next())U=U.value,U(H);l.ntpqfbel=void 0};
TSy=function(X){return _.h(function(H){if(H.nextAddress==1)return _.Ew(H,2),H.yield(X.viT(),4);if(H.nextAddress!=2)return _.Zt(H,0);_.Ow(H);_.m5(H)})};
NSz=function(X){var H,l;(H=X.ytcsi)==null||(l=H.tick)==null||l.call(H,"pot_ist")};
c3O=function(X){if(X instanceof Error){var H=_.ij("yt.logging.errors.log");H&&H(X,"WARNING")}};
jPk=function(X){try{var H=JSON.parse(X);if(H.bgChallenge)return H}catch(l){}};
J3y=function(){var X=window,H={networkStatusManagerPromise:_.jJ().resolve(new WSk(_.iM)),initialChallengeSli:_.P("wpo_att_sli")?new _.Pyk("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};X=X===void 0?window:X;var l=X.ytAtR,b;H==null||(b=H.initialChallengeSli)==null||_.Xk(b);if(l){if(l=jPk(l)){var U;H==null||(U=H.initialChallengeSli)==null||_.H8(U,"SUCCESS");r3h(l,H)}X.ytAtR=void 0}else X.ytAtRC=function(K){if(K=jPk(K)){var w;H==null||(w=H.initialChallengeSli)==null||
_.H8(w,"SUCCESS");r3h(K,H);X.ytAtRC=void 0}}};
IWL=function(){if(Lby)return Lby;try{var X=_.XJ("IFRAME");_.RD(X,_.z8(YWk));X.sandbox.add("allow-same-origin");X.style.display="none";document.body.appendChild(X);return Lby=X}catch(H){X=new _.qd("Failed to create sandbox iframe"),_.n2(X)}};
A3Z=function(){return function(X,H){_.gx("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[X]=H}};
XqN=function(){return function(X,H){var l={};l[X]=H;X=_.ZR(_.Qyl)(l);Object.keys(X).length>0&&_.FS(X)}};
o0y=function(){if(_.Zqm()==="hidden")var X="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else _.Zqm()==="visible"&&(X="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",HQy=null);X&&lbm(X)};
lbm=function(X){if(X==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||X==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(bQW===X)return;bQW=X}var H=9E4+Math.random()*2E3;if(X!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.JV()>H)&&_.Zqm()==="visible"){H=-1;HQy&&(H=Math.round((0,_.Jl)()-HQy));var l=String;var b=_.ij("_fact",window);b=b==null||b==-1?-1:Math.max(Date.now()-b,0);_.Sh("foregroundHeartbeat",{firstActivityMs:l(b),clientDocumentNonce:bky,index:String(UMy),lastEventDeltaMs:String(H),trigger:X});
_.cQ("_fact",-1,window);UMy++;HQy=(0,_.Jl)()}};
$MK=function(X,H,l,b,U,K){H=new Uint8Array(H);if(X.length===0)return H;var w=0;U=U!=null?U:X.length-1;for(var d=l;d<=U;d++){var B=X[d],q=d===l?b:0,u=void 0,e=d===U?(u=K)!=null?u:B.length:B.length;B=B.subarray(q,e);H.set(B,w);w+=B.length}return H};
R$k=function(){typeof window.queueMicrotask!=="function"&&(window.queueMicrotask=function(X){return KOh.then(X)})};
_.CrK=function(){try{return!!self.sessionStorage}catch(X){return!1}};
wqb=function(){var X=navigator;return new Promise(function(H,l){var b;(b=X.webkitTemporaryStorage)!=null&&b.queryUsageAndQuota?X.webkitTemporaryStorage.queryUsageAndQuota(function(U,K){H({usage:U,quota:K})},function(U){l(U)}):l(Error("Ij"))})};
dMy=function(X,H){var l={errorSeverity:H.errorSeverity.toString(),wizFeatureFlags:Object.entries(H.featureFlags).join("\n")};hhK(H,l);H=H.errorSeverity;H===3?_.n2(X,"ERROR",void 0,void 0,void 0,l):H===2&&_.n2(X,"WARNING",void 0,void 0,void 0,l);_.P("cow_if_errors_in_popup")&&H===3&&X.message.indexOf("<If>")!==-1&&window.alert(X.message)};
h$m=function(X,H){var l=WK.get(X)||{layerNode:H};l.layerNode=H;prl(X,l);X.getScreenLayer=function(){return lp(l.layerNode)}};
FOy=function(X){var H;X=X.parentNode;for(var l;X&&((H=WK.get(X))==null||!H.isRenderer)&&!((l=X.polymerController)!=null?l:X).isRenderer_;)X=X.parentNode||X.host;if(H=X)return WK.get(H)};
BNK=function(X){if(X){WK.delete(X);var H=_.jJ().resolve(cD);qny(X,H)}};
s3y=function(X,H,l){if(l===void 0?0:l){if(l=X.getAttribute("client-ve-type"),H.data&&!H.disableReactiveLogging||l)_.t1(function(){qXm(X,_.a5(H.data))},"Hg"),_.E2(function(){return void BNK(X)})}else typeof H.data!=="function"&&qXm(X,H.data)};
qXm=function(X,H){MSz++;u18(X,H)&&_.Ss.addJob(function(){_.oJ(_.Ss,function(){if(u18(X,H)&&X.ownerDocument.documentElement===document.documentElement&&X){var l;if(X.getAttribute("layer")){var b=l=Number(X.getAttribute("layer")),U=WK.get(X);U?U.layerNode.layer=b:h$m(X,new e$b(b));(b=FOy(X))&&(U=WK.get(X))!=null&&(U.layerNode.parent=b.layerNode)}else if(l=WK.get(X))l=lp(l.layerNode);else{l=lp;b=new e$b;if(U=FOy(X))b.parent=U.layerNode;h$m(X,b);l=l(b)}l!=null||(l=0);b=X.getAttribute("client-ve-type");
U=Number(b);var K=!1;b=!1;var w=WK.get(X),d;if((d=w)&&!(d=w[yEN]!==H)&&(d=U)){var B;d=((B=WK.get(X))==null?void 0:B.clientVeType)===void 0}d&&(w[yEN]=H,K=b=w.isRenderer=!0);WK.has(X)&&(WK.get(X).clientVeType=U);X.visualElement&&(b=!0);if(_.P("wiz_next_ld_fix_client_ve_spec")){var q;B=((q=_.f(H==null?void 0:H.rendererContext,_.o1))==null?void 0:q.loggingDirectives)||(H==null?void 0:H.loggingDirectives)}else B=H==null?void 0:H.loggingDirectives;B&&B.clientVeSpec&&(q=VSO(_.AF(),X),q=_.Pry(_.lv(),B,q||
void 0,l))&&(X.visualElement=q);!X.visualElement&&U&&K&&(X.veType=U,q=void 0,_.P("wiz_next_client_ve_parent_fix")&&(q=VSO(_.AF(),X)),q=_.H5(_.lv(),X,q,l),X.visualElement=q);b&&(q=_.jJ().resolve(cD),Ii(X,{data:H,observer:q,layer:l,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
u18=function(X,H){return(H==null?0:H.trackingParams)||(H==null?0:H.loggingDirectives)||_.f(H==null?void 0:H.rendererContext,_.o1)||X.getAttribute("client-ve-type")?!0:!1};
fby=function(X,H,l){X.componentType!==V3&&l instanceof HTMLElement&&H&&!_.P("cow_logging_in_component_wrapper")&&s3y(l,H,!0)};
z$m=function(){if(!pqy){pqy=!0;var X=_.P("enable_wiz_context_per_component")||!1;X=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.P("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:X,enableContextBasedComponentStacks:X},{handleError:dMy,enableComponentStacksInErrorMessages:!1});Object.assign(XU,X);SXy();kP8=mel;Scy=T5Z}};
SXy=function(){_.P("cow_logging_in_component_wrapper")?(YBW=function(X,H){H instanceof HTMLElement&&s3y(H,X,!0)},Feb=function(){}):(YBW=function(){},Feb=fby)};
n0b=function(X,H,l){H=H===void 0?{}:H;var b,U=(b=_.f(X.commandMetadata,_.Ip))==null?void 0:b.url;b=H.form||{};!l||b.element||b.skipDefaultElement||(H.form=H.form||{},H.form.element=l);if(U&&U!=="/service_ajax")return{type:0,command:X,form:H.form};if(_.P("kevlar_service_command_check")){if(_.zE(_.jJ().resolve(_.b$),X))return Object.assign({},{type:1,command:X},H)}else{var K;if((K=_.f(X.commandMetadata,_.Ip))==null?0:K.apiUrl)return Object.assign({},{type:1,command:X},H)}return{type:2,command:X,form:H.form}};
k$K=function(X){if(X.form){var H=X.form,l=Object.assign({},H);H=H.element;l=(delete l.element,l);if(H)return[_.ci(H,[X.command,l,X.commandController])]}return[]};
xMl=function(X){if(X.form){var H=X.form,l=Object.assign({},H);H=H.element;l=(delete l.element,l);H&&_.j7(H,[X.command],H,l)}};
tSN=function(X,H,l){var b=new DM8(X,H),U=new bp(X,H,l);X={"/youtubei/v1/browse":new UJ(X,H,l),"/youtubei/v1/player":b,"/youtubei/v1/navigation/resolve_url":new $i,"/youtubei/v1/next":U,"/youtubei/v1/guide":new K9(l),"/youtubei/v1/search":new RJ(X,H,l),"/youtubei/v1/reel/reel_item_watch":new C9(X,H,l),"/youtubei/v1/get_watch":new wk(b,U)};X["/youtubei/v1/account/account_menu"]=new dk;X["/youtubei/v1/notification/get_notification_menu"]=new hv;return X};
B8=function(){var X=_.jJ().resolve(_.Fk);return Promise.resolve(WOz(X,_.ok.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
E0O=function(X){return X&&(X=_.T8(_.rjZ(X)))?(new URLSearchParams(X)).get("service"):null};
MV=function(X,H){_.v5(_.qV(),function(){_.sf("adl")});
_.jJ().resolve(g0O)(H);X=X.root;X.loadData&&X.loadData(H);(H==null?0:H.response)?_.H8(SbL(),"SUCCESS"):_.x2(new _.qd("Lifecycle: No response in data",_.G7("IS_SHELL_LOAD"),H?H.page:"NO_PAGE",H?H.endpoint:"NO_ENDPOINT"));X.polymerController.$["page-manager"].lazyPrepareCriticalPages((H==null?void 0:H.page)||"",H.endpoint);var l,b;((b=_.f(H==null?void 0:(l=H.endpoint)==null?void 0:l.commandMetadata,_.Ip))==null?0:b.webPageType)&&_.WF().dispatch(_.sJ(_.f(H.endpoint.commandMetadata,_.Ip).webPageType))};
G$Z=function(){var X,H;return _.h(function(l){switch(l.nextAddress){case 1:X=window;if(!X.getDataPromise){l.jumpTo(2);break}_.Ew(l,3);return l.yield(X.getDataPromise(),5);case 5:return l.return(l.yieldResult);case 3:return _.Ow(l),l.yield(B8(),6);case 6:return l.return(l.yieldResult);case 2:if(X.getInitialData)return H=X.getInitialData(),X.getInitialData=void 0,l.return(H);throw Error("Kj`"+_.ok.location.href);}})};
ZQy=function(){_.Et("CSI_SERVICE_NAME","youtube");_.FS({loadType:"cold"});_.P("kevlar_log_lcp")&&abm(function(X){_.sf("lcp",X.value)})};
iQN=function(){var X=_.Hb(document.location.href,"enable");X&&X.indexOf("scraper")>-1&&_.Et("ADD_SCRAPER_ATTRIBUTES",!0)};
TNk=function(X){var H=X.root;X=[v0L,OQk,_.up];_.P("web_feedback_endpoint_autolog_allowlist_killswitch")&&X.push(_.eY,mMy);Q3L(function(l,b){return n0b(l,b,H)},function(l){if(!l.command)return[];
var b;((b=l.form)==null?0:b.element)?l.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},l.form,{endpoint:l.command})})):H.handleNavigate(l);return[]},X);
_.jJ().addProvider({provide:_.Vr,useValue:_.JF.instance})};
cE8=function(){var X={},H={},l;for(l in NNy){var b=_.C(_.FU(NNy[l],void 0,"e17Ccb"));X[l]=b.next().value;H[l]=b.next().value}return[X,function(U){for(var K in U){var w=void 0;(w=H[K])==null||w(U[K])}}]};
_.JEK=function(X,H){var l=!1;l=l===void 0?!1:l;var b=_.Bb.getValueByKeys(X,"contents","twoColumnWatchNextResults","results","results","contents"),U=_.Bb.getValueByKeys(X,"contents","twoColumnWatchNextResults","playlist","playlist")||null;l&&(U=null);var K=l=null;if(U)l=_.Bb.getValueByKeys(U,"titleText"),K=_.Bb.unsafeClone(_.Bb.getValueByKeys(U,"longBylineText")),b="",K&&(b=_.D8(K)),K=_.xM(b);else if(b){b=_.C(b);for(var w=b.next();!w.done;w=b.next())w=w.value,w.videoPrimaryInfoRenderer&&(l=_.Bb.getValueByKeys.apply(_.Bb,
[w].concat(_.LJ(j38)))),w.videoSecondaryInfoRenderer&&(K=_.Bb.getValueByKeys.apply(_.Bb,[w].concat(_.LJ(rEm))))}else _.v$(Error("Pj"));var d;X.currentVideoEndpoint?d=X.currentVideoEndpoint:_.v$(Error("Qj"));var B;H&&(B=_.Bb.getValueByKeys(H,"playabilityStatus","miniplayer","miniplayerRenderer"));X={miniplayerTitle:l,miniplayerSubtitle:K,watchEndpoint:d,playlistData:U};B&&(X.miniplayerRenderer=B);return X};
LOl=function(X){if(X)return _.ha(X)};
_.YXz=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");}}};
Iby=function(X){return X.videoDuration?X.numTaps>1&&X.tapDirection!==0?_.kY(X.draggedTime/X.videoDuration,0,1):_.kY((X.playedTime||0)/X.videoDuration,0,1):0};
AEW=function(X){return X.videoDuration?X.isDragging||X.numTaps>1&&X.tapDirection!==0?_.kY(X.draggedTime/X.videoDuration,0,1):_.kY((X.playedTime||0)/X.videoDuration,0,1):0};
Hyq=function(X){var H,l,b;return _.f(X==null?void 0:(H=X.markersMap)==null?void 0:(l=H.find(function(U){return U.key==="HEATSEEKER"}))==null?void 0:(b=l.value)==null?void 0:b.heatmap,XhD)};
lLH=function(X){var H,l;return(l=(H=Hyq(X))==null?void 0:H.heatMarkersDecorations)!=null?l:[]};
oNv=function(X){if(_.P("mweb_supported_chapters_killswitch"))return!0;var H;return!!(X==null?0:(H=X.markersMap)==null?0:H.find(function(l){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(l.key)}))};
_.byz=function(X){var H=Object,l=H.assign,b;X={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(b=X==null?void 0:X.getPlayerState())!=null?b:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return l.call(H,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},X,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
UWH=function(X){return function(H){var l=X(),b,U=(b=l.playerApi)==null?void 0:b.getPlayerState();H&&H!==l.playerState&&(H===1||H===2)&&l.setState({playerState:U})}};
Km6=function(X){return function(H){var l=X(),b=l.playerApi;b&&(H==null?void 0:H.type)==="newdata"&&($W6&&(clearTimeout($W6),$W6=void 0),_.P("web_shorts_use_progress_state_for_gapless")?(H=b==null?void 0:b.getProgressState(H==null?void 0:H.playertype),H=H.seekableEnd-H.seekableStart):H=b==null?void 0:b.getDuration(H==null?void 0:H.playertype),l.setState({playedTime:0,videoDuration:H}))}};
RzG=function(X){return function(H){var l=X(),b=l.playerApi;if(b){var U=b.getPresentingPlayerType();_.P("web_shorts_use_progress_state_for_gapless")?(b=b.getProgressState(U),b=b.seekableEnd-b.seekableStart):b=b.getDuration(U);l.setState({playedTime:H,videoDuration:b})}}};
whq=function(X){_.Fc(112394,X,function(){return Cb_},function(H){Cb_=H})};
FmD=function(X,H){if(!X)return[];var l,b,U;X=((l=X.markersMap)==null?void 0:(b=l.find(function(K){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(K.key)}))==null?void 0:(U=b.value)==null?void 0:U.chapters)||[];
!dWC(X)||(H==null?0:H.ignoreStub)||(X=[hz9()].concat(_.LJ(X)));return X};
hz9=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
dWC=function(X){if(X.length===0)return!1;var H;return((H=_.f(X[0],yC))==null?void 0:H.timeRangeStartMillis)!==0};
VC=function(X){return X?X.timeRangeStartMillis||0:0};
qy9=function(X,H){if(X.isDragging&&H)return X=B8v(X,H),X===-1?hz9():FmD(H)[X]};
B8v=function(X,H){return X.isDragging&&H?FmD(H,{ignoreStub:!0}).findIndex(function(l,b,U){l=skG(X);return MlH(l,U,b).scrubberHovering}):-1};
skG=function(X){return Object.assign({},X,{videoDuration:X.videoDuration*1E3,playedTime:X.playedTime*1E3,draggedTime:X.draggedTime*1E3})};
MlH=function(X,H,l){var b=VC(_.f(H[l],yC));H=VC(_.f(H[l+1],yC))||X.videoDuration;l=X.isDragging;var U;if(U=X.isDragging)U=X.draggedTime,U=U!==null&&U>=b&&U<H;var K=X.playedTime;return K!==null&&K>=b&&K<H?{videoPosition:"active",isScrubbing:l,scrubberHovering:U}:X.playedTime<b?{videoPosition:"pending",isScrubbing:l,scrubberHovering:U}:{videoPosition:"seen",isScrubbing:l,scrubberHovering:U}};
uOQ=function(X,H){return X.videoPosition==="seen"||(H===void 0?0:H)>0};
ezG=function(X,H,l){H=X/H.storyboardInterval;var b=FmD(l);if(!b.length)return-H*72;l=0;b=_.C(b);for(var U=b.next();!U.done;U=b.next())if(VC(_.f(U.value,yC))/1E3<X)l++;else break;return-(H*72)-l*56};
yyF=function(X){return X?X.width/X.columns:0};
Vlq=function(X){return X.isHovering?X.hoveredTime:X.draggedTime};
Pbq=function(X,H){X=X.draggedTime*1E3;return X>=H.visibleTimeRangeStartMillis&&X<=H.visibleTimeRangeEndMillis};
_.fLC=function(X){if(X===void 0||Number.isNaN(X))return"--:--";var H=Math.abs(Math.floor(X)),l=Math.floor(H/86400),b=Math.floor(H%86400/3600),U=Math.floor(H%3600/60);H=Math.floor(H%60);var K="";l>0&&(K+=l+":",b<10&&(K+="0"));if(l>0||b>0)K+=b+":",U<10&&(K+="0");K+=U+":";H<10&&(K+="0");K+=H;return X>=0?K:"-"+K};
ph_=function(X,H){return function(){var l=Vlq(X());var b=H();var U=X().playerApi;if(U&&U.getNumberOfStoryboardLevels()!==0){var K=U.getStoryboardFrameIndex(l,1);K!==-1?b=U.getStoryboardFrame(K,1):(l=U.getStoryboardFrameIndex(l,0),U=U.getStoryboardFrame(l,0),b&&U&&(U.height*=3,U.width*=3),b=U)}else b=null;if(!b)return null;H()&&(b.width=90*b.columns,b.height=160*b.rows);return b}};
_.P8=function(X){if(!X||X.getVideoData)return X};
Syt=function(){var X;return{playerApi:(X=_.rd())!=null?X:void 0}};
zzQ=function(X){var H;_.h(function(l){if(l.nextAddress==1)return l.yield(_.j2(),2);if(H=l.yieldResult)H.unMute(!0),H.setVolume(X,!0);_.m5(l)})};
nNQ=function(X,H){X&&(X.value=""+H,X.style.setProperty("--gradient-percent",H+"%"))};
kKF=function(X){var H;return(H=X==null?void 0:X.value)!=null?H:0};
xWv=function(){var X;_.h(function(H){if(H.nextAddress==1)return H.yield(_.j2(),2);X=H.yieldResult;if(!X)return H.return();X.isMuted()?X.unMute(!0):X.mute(!0);_.m5(H)})};
DWY=function(X){var H=_.jJ().resolve(_.f9).getPlayerElement();H&&X&&(X===1?H.pause():H.play())};
tl6=function(X){return!!_.f(X,_.p9)||!!_.f(X,_.SY)};
WmD=function(X){_.NG(X,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
ENF=function(X){_.NG(X,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
GK_=function(X){return _.ky(X.document.body,function(){return _.F(gNt,null)},"rh")};
aLD=function(){var X;return(X=navigator.userActivation)==null?void 0:X.isActive};
ZyD=function(){var X=window.performance.getEntriesByType("navigation");return X?X.map(function(H){return H.type}).includes("reload"):!1};
iyv=function(X,H){H=H===void 0?!1:H;var l,b,U,K;return _.h(function(w){if(w.nextAddress==1)return H||!_.P("kevlar_shorts_seedless_retry_initial_load")||(l=window,b=!(!l.getDataPromise&&!l.getInitialData),b)?w.yield(G$Z(),2):(setTimeout(iyv.bind(window,X,!0),1E3),w.return());if(w.nextAddress!=3)return U=w.yieldResult,w.yield(vN_(U),3);K=w.yieldResult;MV(X,K);_.m5(w)})};
vN_=function(X){var H;if((H=X.response)==null||!H.replacementEndpoint)return _.rZ(X);H=_.jJ().resolve(_.Fk);X=X.response;_.f(X.replacementEndpoint,_.HM)&&X.sequenceContinuation&&(_.f(X.replacementEndpoint,_.HM).sequenceParams=X.sequenceContinuation);return zo(H,X.replacementEndpoint,{},_.ok.location.href,"shorts",function(){},function(){return!1})};
mW9=function(X){var H=_.jJ().resolve(Oyz);X.playerResponse&&H.handleResponse(X.playerResponse);X.response&&H.handleResponse(X.response)};
QkY=function(X){var H=_.WF(),l,b=_.f((l=X.response)==null?void 0:l.frameworkUpdates,xj),U;l=_.f((U=X.playerResponse)==null?void 0:U.frameworkUpdates,xj);var K;X=_.f((K=X.reelWatchSequenceResponse)==null?void 0:K.frameworkUpdates,xj);b&&_.Xe(b,H);l&&_.Xe(l,H);X&&_.Xe(X,H)};
T8H=function(X){var H;_.P("enable_redirect_linking_for_desktop_web_client")&&((H=window.location.hash)==null?0:H.includes("redirect_state"))&&X.url&&(X.url=X.url.toString()+window.location.hash)};
jkH=function(X){var H=_.jJ(),l=H.resolve(_.Fk);H=H.resolve(_.N8z);X.endpoint&&(l=cyz(l,X.endpoint),l.content&&X.response&&_.n9(H,X.response,l.content),l.player&&X.playerResponse&&_.n9(H,X.playerResponse,l.player),l.reelSequence&&X.reelWatchSequenceResponse&&_.n9(H,X.reelWatchSequenceResponse,l.reelSequence))};
ki=function(X,H){_.P("web_enable_chunk_prediction")&&ry_(H);mW9(H);QkY(H);var l;(H==null?0:H.url)&&((l=window.location.hash)==null?0:l.includes("redirect_state"))&&(T8H(H),(l=E0O(H.url))&&_.TP(X.root,"yt-initialize-third-party",[l,H]));jkH(H);l=_.jJ();var b=l.resolve(Jyv);H.playerResponse&&l.resolve(LmC).handleResponse(H.playerResponse);if(H.playerResponse){l=void 0;if(_.P("ab_v_vid_sig")&&H.endpoint){var U,K=(U=_.f(H.endpoint,_.ku))!=null?U:_.f(H.endpoint,_.HM);K&&(l=K.videoId)}Yyv(b,H.playerResponse,
l)}H.playerResponse&&NeN(H.playerResponse)&&_.P("web_enable_ab_rsp_cl")?$TK().then(function(){ILv(b,H.playerResponse);MV(X,H)}):MV(X,H)};
XzH=function(X){if(X=X.root.data){var H=_.jJ().resolve(Ayz);X.endpoint&&(X.response&&H.handleResponse(X.response,void 0,document.querySelector("ytd-app")),X.playerResponse&&H.handleResponse(X.playerResponse),X.reelWatchSequenceResponse&&H.handleResponse(X.reelWatchSequenceResponse))}};
ry_=function(X){X.response&&_.jJ().resolve(H_q).handleResponse(X.response)};
l6_=function(X){var H,l,b,U,K,w;return _.h(function(d){switch(d.nextAddress){case 1:H=window;if(!H.getDataPromise){d.jumpTo(2);break}_.Ew(d,3);return d.yield(H.getDataPromise(),5);case 5:l=d.yieldResult;ki(X,l);_.Zt(d,4);break;case 3:return _.Ow(d),d.yield(B8(),6);case 6:b=d.yieldResult,_.P("web_enable_chunk_prediction")&&ry_(b),MV(X,b);case 4:return d.return();case 2:if(!_.P("sw_nav_preload_pbj")){d.jumpTo(7);break}H.fetchInitialData=function(){var B;return _.h(function(q){if(q.nextAddress==1)return q.yield(B8(),
2);B=q.yieldResult;_.P("web_enable_chunk_prediction")&&ry_(B);MV(X,B);_.m5(q)})};
if(H.getInitialData){H.loadInitialData=function(B){ki(X,B)};
U=H.getInitialData();H.getInitialData=void 0;ki(X,U);d.jumpTo(8);break}H.fetchInitialData=void 0;return d.yield(B8(),9);case 9:K=d.yieldResult,_.P("web_enable_chunk_prediction")&&ry_(K),MV(X,K);case 8:return d.return();case 7:H.getInitialData?(w=H.getInitialData(),H.getInitialData=void 0,ki(X,w)):H.loadInitialData=function(B){ki(X,B)},_.m5(d)}})};
b__=function(){var X=new oQQ;_.Zth(X);X.registerInitializationCallback(function(){tgO(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
X.registerCallback("error",function(H,l,b){_.a0(Error("$j`"+l+"`"+b))})};
dvv=typeof Object.create=="function"?Object.create:function(X){var H=function(){};
H.prototype=X;return new H};
hCF=typeof Object.defineProperties=="function"?Object.defineProperty:function(X,H,l){if(X==Array.prototype||X==Object.prototype)return X;X[H]=l.value;return X};
FDY=function(X){X=["object"==typeof globalThis&&globalThis,X,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var H=0;H<X.length;++H){var l=X[H];if(l&&l.Math==Math)return l}throw Error("a");};
_.ja=FDY(this);Btv="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.ja.BigInt64Array&&(Btv.push("BigInt64"),Btv.push("BigUint64"));var s_Q=function(X,H){if(H)for(var l=0;l<Btv.length;l++)qGq(Btv[l]+"Array.prototype."+X,H)},xi=function(X,H){H&&qGq(X,H)},qGq=function(X,H){var l=_.ja;
X=X.split(".");for(var b=0;b<X.length-1;b++){var U=X[b];if(!(U in l))return;l=l[U]}X=X[X.length-1];b=l[X];H=H(b);H!=b&&H!=null&&hCF(l,X,{configurable:!0,writable:!0,value:H})},MqC=function(){function X(){function l(){}
new l;Reflect.construct(l,[],function(){});
return new l instanceof l}
if(typeof Reflect!="undefined"&&Reflect.construct){if(X())return Reflect.construct;var H=Reflect.construct;return function(l,b,U){l=H(l,b);U&&Reflect.setPrototypeOf(l,U.prototype);return l}}return function(l,b,U){U===void 0&&(U=l);
U=dvv(U.prototype||Object.prototype);return Function.prototype.apply.call(l,U,b)||U}}(),uHC;
if(typeof Object.setPrototypeOf=="function")uHC=Object.setPrototypeOf;else{var eCq;a:{var yQ6={a:!0},VqC={};try{VqC.__proto__=yQ6;eCq=VqC.a;break a}catch(X){}eCq=!1}uHC=eCq?function(X,H){X.__proto__=H;if(X.__proto__!==H)throw new TypeError("b`"+X);return X}:null}DF=uHC;
_.S=function(X,H){X.prototype=dvv(H.prototype);X.prototype.constructor=X;if(DF)DF(X,H);else for(var l in H)if(l!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(H,l);b&&Object.defineProperty(X,l,b)}else X[l]=H[l];X.superClass_=H.prototype};
PFH=function(X){var H=0;return function(){return H<X.length?{done:!1,value:X[H++]}:{done:!0}}};
_.C=function(X){var H=typeof Symbol!="undefined"&&Symbol.iterator&&X[Symbol.iterator];if(H)return H.call(X);if(typeof X.length=="number")return{next:PFH(X)};throw Error("c`"+String(X));};
cE=function(X){for(var H,l=[];!(H=X.next()).done;)l.push(H.value);return l};
_.LJ=function(X){return X instanceof Array?X:cE(_.C(X))};
_.W8=function(X){return tv(X,X)};
tv=function(X,H){X.raw=H;Object.freeze&&(Object.freeze(X),Object.freeze(H));return X};
EJ=function(X,H){return Object.prototype.hasOwnProperty.call(X,H)};
f6H=function(X){if(X==null)throw new TypeError("d");return Object(X)};
pzH=typeof Object.assign=="function"?Object.assign:function(X,H){X=f6H(X);for(var l=1;l<arguments.length;l++){var b=arguments[l];if(b)for(var U in b)EJ(b,U)&&(X[U]=b[U])}return X};
xi("Object.assign",function(X){return X||pzH});
var gk=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},SG6=function(X){if(X.isRunning_)throw new TypeError("f");
X.isRunning_=!0};
gk.prototype.JSC$9022_next_=function(X){this.yieldResult=X};
var zCG=function(X,H){X.abruptCompletion_={exception:H,isException:!0};X.nextAddress=X.catchAddress_||X.finallyAddress_};
gk.prototype.return=function(X){this.abruptCompletion_={return:X};this.nextAddress=this.finallyAddress_};
gk.prototype.yield=function(X,H){this.nextAddress=H;return{value:X}};
gk.prototype.jumpTo=function(X){this.nextAddress=X};
_.m5=function(X){X.nextAddress=0};
_.Ew=function(X,H,l){X.catchAddress_=H;l!=void 0&&(X.finallyAddress_=l)};
_.iQ=function(X,H){X.catchAddress_=0;X.finallyAddress_=H||0};
_.Zt=function(X,H,l){X.nextAddress=H;X.catchAddress_=l||0};
_.Ow=function(X,H){X.catchAddress_=H||0;H=X.abruptCompletion_.exception;X.abruptCompletion_=null;return H};
_.GS=function(X,H,l,b){b?X.finallyContexts_[b]=X.abruptCompletion_:X.finallyContexts_=[X.abruptCompletion_];X.catchAddress_=H||0;X.finallyAddress_=l||0};
_.vJ=function(X,H,l){l=X.finallyContexts_.splice(l||0)[0];(l=X.abruptCompletion_=X.abruptCompletion_||l)?l.isException?X.nextAddress=X.catchAddress_||X.finallyAddress_:l.jumpTo!=void 0&&X.finallyAddress_<l.jumpTo?(X.nextAddress=l.jumpTo,X.abruptCompletion_=null):X.nextAddress=X.finallyAddress_:X.nextAddress=H};
nQG=function(X){this.JSC$9027_context_=new gk;this.program_=X};
xvq=function(X,H){SG6(X.JSC$9027_context_);var l=X.JSC$9027_context_.yieldAllIterator_;if(l)return kY9(X,"return"in l?l["return"]:function(b){return{value:b,done:!0}},H,X.JSC$9027_context_.return);
X.JSC$9027_context_.return(H);return Go(X)};
kY9=function(X,H,l,b){try{var U=H.call(X.JSC$9027_context_.yieldAllIterator_,l);if(!(U instanceof Object))throw new TypeError("e`"+U);if(!U.done)return X.JSC$9027_context_.isRunning_=!1,U;var K=U.value}catch(w){return X.JSC$9027_context_.yieldAllIterator_=null,zCG(X.JSC$9027_context_,w),Go(X)}X.JSC$9027_context_.yieldAllIterator_=null;b.call(X.JSC$9027_context_,K);return Go(X)};
Go=function(X){for(;X.JSC$9027_context_.nextAddress;)try{var H=X.program_(X.JSC$9027_context_);if(H)return X.JSC$9027_context_.isRunning_=!1,{value:H.value,done:!1}}catch(l){X.JSC$9027_context_.yieldResult=void 0,zCG(X.JSC$9027_context_,l)}X.JSC$9027_context_.isRunning_=!1;if(X.JSC$9027_context_.abruptCompletion_){H=X.JSC$9027_context_.abruptCompletion_;X.JSC$9027_context_.abruptCompletion_=null;if(H.isException)throw H.exception;return{value:H.return,done:!0}}return{value:void 0,done:!0}};
DvQ=function(X){this.next=function(H){SG6(X.JSC$9027_context_);X.JSC$9027_context_.yieldAllIterator_?H=kY9(X,X.JSC$9027_context_.yieldAllIterator_.next,H,X.JSC$9027_context_.JSC$9022_next_):(X.JSC$9027_context_.JSC$9022_next_(H),H=Go(X));return H};
this.throw=function(H){SG6(X.JSC$9027_context_);X.JSC$9027_context_.yieldAllIterator_?H=kY9(X,X.JSC$9027_context_.yieldAllIterator_["throw"],H,X.JSC$9027_context_.JSC$9022_next_):(zCG(X.JSC$9027_context_,H),H=Go(X));return H};
this.return=function(H){return xvq(X,H)};
this[Symbol.iterator]=function(){return this}};
_.IB=function(X,H){H=new DvQ(new nQG(H));DF&&X.prototype&&DF(H,X.prototype);return H};
tq_=function(X){function H(b){return X.next(b)}
function l(b){return X.throw(b)}
return new Promise(function(b,U){function K(w){w.done?b(w.value):Promise.resolve(w.value).then(H,l).then(K,U)}
K(X.next())})};
_.h=function(X){return tq_(new DvQ(new nQG(X)))};
xi("Symbol",function(X){if(X)return X;var H=function(K,w){this.$jscomp$symbol$id_=K;hCF(this,"description",{configurable:!0,writable:!0,value:w})};
H.prototype.toString=function(){return this.$jscomp$symbol$id_};
var l="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",b=0,U=function(K){if(this instanceof U)throw new TypeError("g");return new H(l+(K||"")+"_"+b++,K)};
return U});
xi("Symbol.iterator",function(X){if(X)return X;X=Symbol("h");hCF(Array.prototype,X,{configurable:!0,writable:!0,value:function(){return WD_(PFH(this))}});
return X});
xi("Symbol.asyncIterator",function(X){return X?X:Symbol("i")});
WD_=function(X){X={next:X};X[Symbol.iterator]=function(){return this};
return X};
_.gr=function(X){var H=X[Symbol.asyncIterator];return H!==void 0?H.call(X):new EQC(_.C(X))};
EQC=function(X){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return X};
this.next=function(H){return Promise.resolve(X.next(H))};
this["throw"]=function(H){return new Promise(function(l,b){var U=X["throw"];U!==void 0?l(U.call(X,H)):(l=X["return"],l!==void 0&&l.call(X),b(new TypeError("j")))})};
X["return"]!==void 0&&(this["return"]=function(H){return Promise.resolve(X["return"](H))})};
_.Ab=function(){for(var X=Number(this),H=[],l=X;l<arguments.length;l++)H[l-X]=arguments[l];return H};
_.AG=function(X){return X};
xi("globalThis",function(X){return X||_.ja});
xi("Reflect",function(X){return X?X:{}});
xi("Reflect.construct",function(){return MqC});
xi("Reflect.setPrototypeOf",function(X){return X?X:DF?function(H,l){try{return DF(H,l),!0}catch(b){return!1}}:null});
xi("Promise",function(X){function H(){this.batch_=null}
function l(w){return w instanceof U?w:new U(function(d){d(w)})}
if(X&&(typeof _.ja.PromiseRejectionEvent!=="undefined"||!_.ja.Promise||_.ja.Promise.toString().indexOf("[native code]")===-1))return X;H.prototype.asyncExecute=function(w){if(this.batch_==null){this.batch_=[];var d=this;this.asyncExecuteFunction(function(){d.executeBatch_()})}this.batch_.push(w)};
var b=_.ja.setTimeout;H.prototype.asyncExecuteFunction=function(w){b(w,0)};
H.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var w=this.batch_;this.batch_=[];for(var d=0;d<w.length;++d){var B=w[d];w[d]=null;try{B()}catch(q){this.asyncThrow_(q)}}}this.batch_=null};
H.prototype.asyncThrow_=function(w){this.asyncExecuteFunction(function(){throw w;})};
var U=function(w){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var d=this.createResolveAndReject_();try{w(d.resolve,d.reject)}catch(B){d.reject(B)}};
U.prototype.createResolveAndReject_=function(){function w(q){return function(u){B||(B=!0,q.call(d,u))}}
var d=this,B=!1;return{resolve:w(this.resolveTo_),reject:w(this.JSC$9059_reject_)}};
U.prototype.resolveTo_=function(w){if(w===this)this.JSC$9059_reject_(new TypeError("n"));else if(w instanceof U)this.settleSameAsPromise_(w);else{a:switch(typeof w){case "object":var d=w!=null;break a;case "function":d=!0;break a;default:d=!1}d?this.resolveToNonPromiseObj_(w):this.fulfill_(w)}};
U.prototype.resolveToNonPromiseObj_=function(w){var d=void 0;try{d=w.then}catch(B){this.JSC$9059_reject_(B);return}typeof d=="function"?this.settleSameAsThenable_(d,w):this.fulfill_(w)};
U.prototype.JSC$9059_reject_=function(w){this.settle_(2,w)};
U.prototype.fulfill_=function(w){this.settle_(1,w)};
U.prototype.settle_=function(w,d){if(this.state_!=0)throw Error("o`"+w+"`"+d+"`"+this.state_);this.state_=w;this.result_=d;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
U.prototype.scheduleUnhandledRejectionCheck_=function(){var w=this;b(function(){if(w.notifyUnhandledRejection_()){var d=_.ja.console;typeof d!=="undefined"&&d.error(w.result_)}},1)};
U.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var w=_.ja.CustomEvent,d=_.ja.Event,B=_.ja.dispatchEvent;if(typeof B==="undefined")return!0;typeof w==="function"?w=new w("unhandledrejection",{cancelable:!0}):typeof d==="function"?w=new d("unhandledrejection",{cancelable:!0}):(w=_.ja.document.createEvent("CustomEvent"),w.initCustomEvent("unhandledrejection",!1,!0,w));w.promise=this;w.reason=this.result_;return B(w)};
U.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var w=0;w<this.onSettledCallbacks_.length;++w)K.asyncExecute(this.onSettledCallbacks_[w]);this.onSettledCallbacks_=null}};
var K=new H;U.prototype.settleSameAsPromise_=function(w){var d=this.createResolveAndReject_();w.callWhenSettled_(d.resolve,d.reject)};
U.prototype.settleSameAsThenable_=function(w,d){var B=this.createResolveAndReject_();try{w.call(d,B.resolve,B.reject)}catch(q){B.reject(q)}};
U.prototype.then=function(w,d){function B(y,V){return typeof y=="function"?function(p){try{q(y(p))}catch(z){u(z)}}:V}
var q,u,e=new U(function(y,V){q=y;u=V});
this.callWhenSettled_(B(w,q),B(d,u));return e};
U.prototype.catch=function(w){return this.then(void 0,w)};
U.prototype.callWhenSettled_=function(w,d){function B(){switch(q.state_){case 1:w(q.result_);break;case 2:d(q.result_);break;default:throw Error("p`"+q.state_);}}
var q=this;this.onSettledCallbacks_==null?K.asyncExecute(B):this.onSettledCallbacks_.push(B);this.isRejectionHandled_=!0};
U.resolve=l;U.reject=function(w){return new U(function(d,B){B(w)})};
U.race=function(w){return new U(function(d,B){for(var q=_.C(w),u=q.next();!u.done;u=q.next())l(u.value).callWhenSettled_(d,B)})};
U.all=function(w){var d=_.C(w),B=d.next();return B.done?l([]):new U(function(q,u){function e(p){return function(z){y[p]=z;V--;V==0&&q(y)}}
var y=[],V=0;do y.push(void 0),V++,l(B.value).callWhenSettled_(e(y.length-1),u),B=d.next();while(!B.done)})};
return U});
var aJ=function(X,H,l){if(X==null)throw new TypeError("q`"+l);if(H instanceof RegExp)throw new TypeError("r`"+l);return X+""};
xi("String.prototype.startsWith",function(X){return X?X:function(H,l){var b=aJ(this,H,"startsWith"),U=b.length,K=H.length;l=Math.max(0,Math.min(l|0,b.length));for(var w=0;w<K&&l<U;)if(b[l++]!=H[w++])return!1;return w>=K}});
xi("Object.setPrototypeOf",function(X){return X||DF});
xi("Symbol.dispose",function(X){return X?X:Symbol("s")});
xi("SuppressedError",function(X){function H(l,b,U){if(!(this instanceof H))return new H(l,b,U);U=Error(U);"stack"in U&&(this.stack=U.stack);this.message=U.message;this.error=l;this.suppressed=b}
if(X)return X;_.S(H,Error);H.prototype.name="SuppressedError";return H});
xi("Array.from",function(X){return X?X:function(H,l,b){l=l!=null?l:function(d){return d};
var U=[],K=typeof Symbol!="undefined"&&Symbol.iterator&&H[Symbol.iterator];if(typeof K=="function"){H=K.call(H);for(var w=0;!(K=H.next()).done;)U.push(l.call(b,K.value,w++))}else for(K=H.length,w=0;w<K;w++)U.push(l.call(b,H[w],w));return U}});
var gQG=function(X,H,l){X instanceof String&&(X=String(X));for(var b=X.length,U=0;U<b;U++){var K=X[U];if(H.call(l,K,U,X))return{i:U,v:K}}return{i:-1,v:void 0}};
xi("Array.prototype.find",function(X){return X?X:function(H,l){return gQG(this,H,l).v}});
xi("WeakMap",function(X){function H(){}
function l(B){var q=typeof B;return q==="object"&&B!==null||q==="function"}
function b(B){if(!EJ(B,K)){var q=new H;hCF(B,K,{value:q})}}
function U(B){var q=Object[B];q&&(Object[B]=function(u){if(u instanceof H)return u;Object.isExtensible(u)&&b(u);return q(u)})}
if(function(){if(!X||!Object.seal)return!1;try{var B=Object.seal({}),q=Object.seal({}),u=new X([[B,2],[q,3]]);if(u.get(B)!=2||u.get(q)!=3)return!1;u.delete(B);u.set(q,4);return!u.has(B)&&u.get(q)==4}catch(e){return!1}}())return X;
var K="$jscomp_hidden_"+Math.random();U("freeze");U("preventExtensions");U("seal");var w=0,d=function(B){this.JSC$9067_id_=(w+=Math.random()+1).toString();if(B){B=_.C(B);for(var q;!(q=B.next()).done;)q=q.value,this.set(q[0],q[1])}};
d.prototype.set=function(B,q){if(!l(B))throw Error("t");b(B);if(!EJ(B,K))throw Error("u`"+B);B[K][this.JSC$9067_id_]=q;return this};
d.prototype.get=function(B){return l(B)&&EJ(B,K)?B[K][this.JSC$9067_id_]:void 0};
d.prototype.has=function(B){return l(B)&&EJ(B,K)&&EJ(B[K],this.JSC$9067_id_)};
d.prototype.delete=function(B){return l(B)&&EJ(B,K)&&EJ(B[K],this.JSC$9067_id_)?delete B[K][this.JSC$9067_id_]:!1};
return d});
xi("Map",function(X){if(function(){if(!X||typeof X!="function"||!X.prototype.entries||typeof Object.seal!="function")return!1;try{var d=Object.seal({x:4}),B=new X(_.C([[d,"s"]]));if(B.get(d)!="s"||B.size!=1||B.get({x:4})||B.set({x:4},"t")!=B||B.size!=2)return!1;var q=B.entries(),u=q.next();if(u.done||u.value[0]!=d||u.value[1]!="s")return!1;u=q.next();return u.done||u.value[0].x!=4||u.value[1]!="t"||!q.next().done?!1:!0}catch(e){return!1}}())return X;
var H=new WeakMap,l=function(d){this[0]={};this[1]=K();this.size=0;if(d){d=_.C(d);for(var B;!(B=d.next()).done;)B=B.value,this.set(B[0],B[1])}};
l.prototype.set=function(d,B){d=d===0?0:d;var q=b(this,d);q.list||(q.list=this[0][q.id]=[]);q.entry?q.entry.value=B:(q.entry={next:this[1],previous:this[1].previous,head:this[1],key:d,value:B},q.list.push(q.entry),this[1].previous.next=q.entry,this[1].previous=q.entry,this.size++);return this};
l.prototype.delete=function(d){d=b(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};
l.prototype.clear=function(){this[0]={};this[1]=this[1].previous=K();this.size=0};
l.prototype.has=function(d){return!!b(this,d).entry};
l.prototype.get=function(d){return(d=b(this,d).entry)&&d.value};
l.prototype.entries=function(){return U(this,function(d){return[d.key,d.value]})};
l.prototype.keys=function(){return U(this,function(d){return d.key})};
l.prototype.values=function(){return U(this,function(d){return d.value})};
l.prototype.forEach=function(d,B){for(var q=this.entries(),u;!(u=q.next()).done;)u=u.value,d.call(B,u[1],u[0],this)};
l.prototype[Symbol.iterator]=l.prototype.entries;var b=function(d,B){var q=B&&typeof B;q=="object"||q=="function"?H.has(B)?q=H.get(B):(q=""+ ++w,H.set(B,q)):q="p_"+B;var u=d[0][q];if(u&&EJ(d[0],q))for(d=0;d<u.length;d++){var e=u[d];if(B!==B&&e.key!==e.key||B===e.key)return{id:q,list:u,index:d,entry:e}}return{id:q,list:u,index:-1,entry:void 0}},U=function(d,B){var q=d[1];
return WD_(function(){if(q){for(;q.head!=d[1];)q=q.previous;for(;q.next!=q.head;)return q=q.next,{done:!1,value:B(q)};q=null}return{done:!0,value:void 0}})},K=function(){var d={};
return d.previous=d.next=d.head=d},w=0;
return l});
xi("Set",function(X){if(function(){if(!X||typeof X!="function"||!X.prototype.entries||typeof Object.seal!="function")return!1;try{var l=Object.seal({x:4}),b=new X(_.C([l]));if(!b.has(l)||b.size!=1||b.add(l)!=b||b.size!=1||b.add({x:4})!=b||b.size!=2)return!1;var U=b.entries(),K=U.next();if(K.done||K.value[0]!=l||K.value[1]!=l)return!1;K=U.next();return K.done||K.value[0]==l||K.value[0].x!=4||K.value[1]!=K.value[0]?!1:U.next().done}catch(w){return!1}}())return X;
var H=function(l){this.JSC$9081_map_=new Map;if(l){l=_.C(l);for(var b;!(b=l.next()).done;)this.add(b.value)}this.size=this.JSC$9081_map_.size};
H.prototype.add=function(l){l=l===0?0:l;this.JSC$9081_map_.set(l,l);this.size=this.JSC$9081_map_.size;return this};
H.prototype.delete=function(l){l=this.JSC$9081_map_.delete(l);this.size=this.JSC$9081_map_.size;return l};
H.prototype.clear=function(){this.JSC$9081_map_.clear();this.size=0};
H.prototype.has=function(l){return this.JSC$9081_map_.has(l)};
H.prototype.entries=function(){return this.JSC$9081_map_.entries()};
H.prototype.values=function(){return this.JSC$9081_map_.values()};
H.prototype.keys=H.prototype.values;H.prototype[Symbol.iterator]=H.prototype.values;H.prototype.forEach=function(l,b){var U=this;this.JSC$9081_map_.forEach(function(K){return l.call(b,K,K,U)})};
return H});
xi("Math.log2",function(X){return X?X:function(H){return Math.log(H)/Math.LN2}});
xi("Object.values",function(X){return X?X:function(H){var l=[],b;for(b in H)EJ(H,b)&&l.push(H[b]);return l}});
xi("Object.is",function(X){return X?X:function(H,l){return H===l?H!==0||1/H===1/l:H!==H&&l!==l}});
xi("Array.prototype.includes",function(X){return X?X:function(H,l){var b=this;b instanceof String&&(b=String(b));var U=b.length;l=l||0;for(l<0&&(l=Math.max(l+U,0));l<U;l++){var K=b[l];if(K===H||Object.is(K,H))return!0}return!1}});
xi("String.prototype.includes",function(X){return X?X:function(H,l){return aJ(this,H,"includes").indexOf(H,l||0)!==-1}});
xi("Object.entries",function(X){return X?X:function(H){var l=[],b;for(b in H)EJ(H,b)&&l.push([b,H[b]]);return l}});
xi("Number.isFinite",function(X){return X?X:function(H){return typeof H!=="number"?!1:!isNaN(H)&&H!==Infinity&&H!==-Infinity}});
xi("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
xi("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
xi("Number.isInteger",function(X){return X?X:function(H){return Number.isFinite(H)?H===Math.floor(H):!1}});
xi("Number.isSafeInteger",function(X){return X?X:function(H){return Number.isInteger(H)&&Math.abs(H)<=Number.MAX_SAFE_INTEGER}});
xi("String.prototype.endsWith",function(X){return X?X:function(H,l){var b=aJ(this,H,"endsWith");l===void 0&&(l=b.length);l=Math.max(0,Math.min(l|0,b.length));for(var U=H.length;U>0&&l>0;)if(b[--l]!=H[--U])return!1;return U<=0}});
var GY6=function(X,H){X instanceof String&&(X+="");var l=0,b=!1,U={next:function(){if(!b&&l<X.length){var K=l++;return{value:H(K,X[K]),done:!1}}b=!0;return{done:!0,value:void 0}}};
U[Symbol.iterator]=function(){return U};
return U};
xi("Array.prototype.entries",function(X){return X?X:function(){return GY6(this,function(H,l){return[H,l]})}});
xi("Math.trunc",function(X){return X?X:function(H){H=Number(H);if(isNaN(H)||H===Infinity||H===-Infinity||H===0)return H;var l=Math.floor(Math.abs(H));return H<0?-l:l}});
xi("Number.isNaN",function(X){return X?X:function(H){return typeof H==="number"&&isNaN(H)}});
xi("Array.prototype.keys",function(X){return X?X:function(){return GY6(this,function(H){return H})}});
xi("Array.prototype.values",function(X){return X?X:function(){return GY6(this,function(H,l){return l})}});
xi("Array.prototype.fill",function(X){return X?X:function(H,l,b){var U=this.length||0;l<0&&(l=Math.max(0,U+l));if(b==null||b>U)b=U;b=Number(b);b<0&&(b=Math.max(0,U+b));for(l=Number(l||0);l<b;l++)this[l]=H;return this}});
s_Q("fill",function(X){return X?X:Array.prototype.fill});
xi("Object.fromEntries",function(X){return X?X:function(H){var l={};if(!(Symbol.iterator in H))throw new TypeError("v`"+H);H=H[Symbol.iterator].call(H);for(var b=H.next();!b.done;b=H.next()){b=b.value;if(Object(b)!==b)throw new TypeError("w");l[b[0]]=b[1]}return l}});
xi("String.prototype.replaceAll",function(X){return X?X:function(H,l){if(H instanceof RegExp&&!H.global)throw new TypeError("x");return H instanceof RegExp?this.replace(H,l):this.replace(new RegExp(String(H).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),l)}});
xi("Object.getOwnPropertySymbols",function(X){return X?X:function(){return[]}});
xi("String.prototype.repeat",function(X){return X?X:function(H){var l=aJ(this,null,"repeat");if(H<0||H>1342177279)throw new RangeError("y");H|=0;for(var b="";H;)if(H&1&&(b+=l),H>>>=1)l+=l;return b}});
xi("Array.prototype.findIndex",function(X){return X?X:function(H,l){return gQG(this,H,l).i}});
xi("Array.prototype.flatMap",function(X){return X?X:function(H,l){var b=[];Array.prototype.forEach.call(this,function(U,K){U=H.call(l,U,K,this);Array.isArray(U)?b.push.apply(b,U):b.push(U)});
return b}});
xi("String.prototype.codePointAt",function(X){return X?X:function(H){var l=aJ(this,null,"codePointAt"),b=l.length;H=Number(H)||0;if(H>=0&&H<b){H|=0;var U=l.charCodeAt(H);if(U<55296||U>56319||H+1===b)return U;H=l.charCodeAt(H+1);return H<56320||H>57343?U:(U-55296)*1024+H+9216}}});
xi("String.fromCodePoint",function(X){return X?X:function(H){for(var l="",b=0;b<arguments.length;b++){var U=Number(arguments[b]);if(U<0||U>1114111||U!==Math.floor(U))throw new RangeError("z`"+U);U<=65535?l+=String.fromCharCode(U):(U-=65536,l+=String.fromCharCode(U>>>10&1023|55296),l+=String.fromCharCode(U&1023|56320))}return l}});
xi("String.prototype.trimLeft",function(X){function H(){return this.replace(/^[\s\xa0]+/,"")}
return X||H});
xi("String.prototype.trimStart",function(X){return X||String.prototype.trimLeft});
xi("String.prototype.padStart",function(X){return X?X:function(H,l){var b=aJ(this,null,"padStart");H-=b.length;l=l!==void 0?String(l):" ";return(H>0&&l?l.repeat(Math.ceil(H/l.length)).substring(0,H):"")+b}});
xi("Promise.prototype.finally",function(X){return X?X:function(H){return this.then(function(l){return Promise.resolve(H()).then(function(){return l})},function(l){return Promise.resolve(H()).then(function(){throw l;
})})}});
xi("Math.imul",function(X){return X?X:function(H,l){H=Number(H);l=Number(l);var b=H&65535,U=l&65535;return b*U+((H>>>16&65535)*U+b*(l>>>16&65535)<<16>>>0)|0}});
xi("Object.hasOwn",function(X){return X?X:function(H,l){return Object.prototype.hasOwnProperty.call(H,l)}});
var a6G=function(X){X=Math.trunc(X)||0;X<0&&(X+=this.length);if(!(X<0||X>=this.length))return this[X]};
xi("Array.prototype.at",function(X){return X?X:a6G});
s_Q("at",function(X){return X?X:a6G});
xi("String.prototype.at",function(X){return X?X:a6G});
xi("Math.sign",function(X){return X?X:function(H){H=Number(H);return H===0||isNaN(H)?H:H>0?1:-1}});
xi("Array.prototype.flat",function(X){return X?X:function(H){H=H===void 0?1:H;var l=[];Array.prototype.forEach.call(this,function(b){Array.isArray(b)&&H>0?(b=Array.prototype.flat.call(b,H-1),l.push.apply(l,b)):l.push(b)});
return l}});
xi("String.raw",function(X){return X?X:function(H,l){H=f6H(H);for(var b=H.raw,U=b.length,K="",w=0;w<U;++w)K+=b[w],w+1<U&&w+1<arguments.length&&(K+=String(arguments[w+1]));return K}});
xi("WeakSet",function(X){if(function(){if(!X||!Object.seal)return!1;try{var l=Object.seal({}),b=Object.seal({}),U=new X([l]);if(!U.has(l)||U.has(b))return!1;U.delete(l);U.add(b);return!U.has(l)&&U.has(b)}catch(K){return!1}}())return X;
var H=function(l){this.JSC$9096_map_=new WeakMap;if(l){l=_.C(l);for(var b;!(b=l.next()).done;)this.add(b.value)}};
H.prototype.add=function(l){this.JSC$9096_map_.set(l,!0);return this};
H.prototype.has=function(l){return this.JSC$9096_map_.has(l)};
H.prototype.delete=function(l){return this.JSC$9096_map_.delete(l)};
return H});
xi("Reflect.ownKeys",function(X){return X?X:function(H){var l=[],b=Object.getOwnPropertyNames(H);H=Object.getOwnPropertySymbols(H);for(var U=0;U<b.length;U++)(b[U].substring(0,14)=="jscomp_symbol_"?H:l).push(b[U]);return l.concat(H)}});
xi("Object.getOwnPropertyDescriptors",function(X){return X?X:function(H){for(var l={},b=Reflect.ownKeys(H),U=0;U<b.length;U++)l[b[U]]=Object.getOwnPropertyDescriptor(H,b[U]);return l}});
xi("Promise.allSettled",function(X){function H(b){return{status:"fulfilled",value:b}}
function l(b){return{status:"rejected",reason:b}}
return X?X:function(b){var U=this;b=Array.from(b,function(K){return U.resolve(K).then(H,l)});
return U.all(b)}});
xi("Number.parseInt",function(X){return X||parseInt});
var Z__=function(X,H,l){X instanceof String&&(X=String(X));for(var b=X.length-1;b>=0;b--){var U=X[b];if(H.call(l,U,b,X))return{i:b,v:U}}return{i:-1,v:void 0}};
xi("Array.prototype.findLastIndex",function(X){return X?X:function(H,l){return Z__(this,H,l).i}});
s_Q("findLastIndex",function(X){return X?X:function(H,l){return Z__(this,H,l).i}});
_._DumpException=window._DumpException||function(X){throw X;};
window._DumpException=_._DumpException;var i_Y=window.ytcsi;i_Y&&typeof i_Y.tick==="function"&&i_Y.tick("rses_dpj");var vQ_,ZF,ip,OJ,O_t,mv9,Q_6,TtQ,ZA,NtC;vQ_=vQ_||{};_.ok=this||self;_.cQ=function(X,H,l){X=X.split(".");l=l||_.ok;for(var b;X.length&&(b=X.shift());)X.length||H===void 0?l[b]&&l[b]!==Object.prototype[b]?l=l[b]:l=l[b]={}:l[b]=H};
ZF=function(X,H){var l=_.ij("WIZ_global_data.oxN3nb");X=l&&l[X];return X!=null?X:H};
ip=_.ok._F_toggles_default_kevlar_base||[];OJ=function(){};
OJ.get=function(){return null};
_.AS=null;_.ij=function(X,H){X=X.split(".");H=H||_.ok;for(var l=0;l<X.length;l++)if(H=H[X[l]],H==null)return null;return H};
_.mi=function(X){X.instance_=void 0;X.getInstance=function(){return X.instance_?X.instance_:X.instance_=new X}};
_.bx=function(X){var H=typeof X;return H!="object"?H:X?Array.isArray(X)?"array":H:"null"};
_.ch=function(X){var H=_.bx(X);return H=="array"||H=="object"&&typeof X.length=="number"};
_.r8=function(X){var H=typeof X;return H=="object"&&X!=null||H=="function"};
_.Ly=function(X){return Object.prototype.hasOwnProperty.call(X,O_t)&&X[O_t]||(X[O_t]=++mv9)};
O_t="closure_uid_"+(Math.random()*1E9>>>0);mv9=0;Q_6=function(X,H,l){return X.call.apply(X.bind,arguments)};
TtQ=function(X,H,l){if(!X)throw Error();if(arguments.length>2){var b=Array.prototype.slice.call(arguments,2);return function(){var U=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(U,b);return X.apply(H,U)}}return function(){return X.apply(H,arguments)}};
_.K8=function(X,H,l){_.K8=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Q_6:TtQ;return _.K8.apply(null,arguments)};
_.lH=function(X,H){var l=Array.prototype.slice.call(arguments,1);return function(){var b=l.slice();b.push.apply(b,arguments);return X.apply(this,b)}};
_.QC=function(){return Date.now()};
ZA=function(X){return X};
_.To=function(X,H){function l(){}
l.prototype=H.prototype;X.superClass_=H.prototype;X.prototype=new l;X.prototype.constructor=X;X.base=function(b,U,K){for(var w=Array(arguments.length-2),d=2;d<arguments.length;d++)w[d-2]=arguments[d];return H.prototype[U].apply(b,w)}};
NtC=function(X){return X};var cQH,j_q;_.T=function(X,H,l,b){var U=arguments.length,K=U<3?H:b===null?b=Object.getOwnPropertyDescriptor(H,l):b,w;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")K=Reflect.decorate(X,H,l,b);else for(var d=X.length-1;d>=0;d--)if(w=X[d])K=(U<3?w(K):U>3?w(H,l,K):w(H,l))||K;U>3&&K&&Object.defineProperty(H,l,K)};
_.N=function(X,H){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(X,H)};
cQH=function(X,H){if(H!==null&&H!==void 0){if(typeof H!=="object"&&typeof H!=="function")throw new TypeError("B");if(l===void 0){if(!Symbol.dispose)throw new TypeError("D");var l=H[Symbol.dispose]}if(typeof l!=="function")throw new TypeError("E");X.stack.push({value:H,dispose:l,async:!1})}return H};
j_q=function(X){function H(K){X.error=X.hasError?new SuppressedError(K,X.error,"An error was suppressed during disposal."):K;X.hasError=!0}
function l(){for(;b=X.stack.pop();)try{if(!b.async&&U===1)return U=0,X.stack.push(b),Promise.resolve().then(l);if(b.dispose){var K=b.dispose.call(b.value);if(b.async)return U|=2,Promise.resolve(K).then(l,function(w){H(w);return l()})}else U|=1}catch(w){H(w)}if(U===1)return X.hasError?Promise.reject(X.error):Promise.resolve();
if(X.hasError)throw X.error;}
var b,U=0;l()};var rQq="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(" ");Xhm()&&rQq.push("details:not(:has(summary))");var lLO=rQq.join(",");_.To(_.XO,Error);_.XO.prototype.name="CustomError";var JQ6;var LDz=void 0,YGQ,I6z=typeof TextDecoder!=="undefined",dWz,whl=typeof String.prototype.isWellFormed==="function",Cby=typeof TextEncoder!=="undefined";var qW=String.prototype.trim?function(X){return X.trim()}:function(X){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(X)[1]},AQQ=/&/g,XpH=/</g,HdF=/>/g,lA_=/"/g,oU9=/'/g,bd9=/\x00/g,UZ_=/[\x00&<>"']/;var NV=!!(ip[0]>>17&1),$ZC=!!(ip[0]&4096),K$9=!!(ip[0]>>18&1),RlQ=!!(ip[0]&8),CxC=!!(ip[0]&2),wp6=!!(ip[0]&4),dZ6=!!(ip[0]&16),hlQ=!!(ip[0]&256),F$F=!!(ip[0]&32),BYv=!!(ip[0]&1024);var qaq,Ph,sCH,MyF,u5_,czb,W$Z;qaq=ZF(1,!0);Ph=NV?K$9:ZF(610401301,!1);sCH=NV?$ZC||!RlQ:ZF(772657768,!0);MyF=NV?CxC:ZF(513659523,!1);u5_=NV?$ZC||!wp6:ZF(568333945,!0);czb=NV?dZ6:ZF(1331761403,!1);W$Z=NV?$ZC||!hlQ:ZF(748402147,!0);_.c8=NV?$ZC||!F$F:ZF(824648567,qaq);_.Bp=NV?BYv:ZF(824656860,!1);var fy,el9=_.ok.navigator;fy=el9?el9.userAgentData||null:null;var O4;_.ak=function(X,H){return Array.prototype.indexOf.call(X,H,void 0)};
_.Ot=function(X,H,l){Array.prototype.forEach.call(X,H,l)};
_.jY=function(X,H,l){return Array.prototype.filter.call(X,H,l)};
_.qz=function(X,H,l){return Array.prototype.map.call(X,H,l)};
O4=function(X,H,l){return Array.prototype.some.call(X,H,l)};
_.t6k=function(X,H,l){return Array.prototype.every.call(X,H,l)};var rk=function(X){rk[" "](X);return X};
rk[" "]=function(){};
var IYy=function(X,H){try{return rk(X[H]),!0}catch(l){}return!1},yVy=function(X,H,l,b){b=b?b(H):H;
return Object.prototype.hasOwnProperty.call(X,b)?X[b]:X[b]=l(H)};var yNq,TT,Vyq,PxD,ppD,SaC,QcK,zlt,nUG,kZ9,z5N,DZ_,tyQ,GZF,aAG,Zdt;_.LH8=function(){return _.ok.navigator||null};
yNq=sky();_.Jv=MlO();TT=py("Edge");Vyq=TT||_.Jv;_.Hf=py("Gecko")&&!(_.Bh(_.yZ(),"WebKit")&&!py("Edge"))&&!(py("Trident")||py("MSIE"))&&!py("Edge");_.XQ=_.Bh(_.yZ(),"WebKit")&&!py("Edge");PxD=_.XQ&&py("Mobile");_.fA_=_.zzy();ppD=_.nNN();SaC=(DL()?fy.platform==="Linux":py("Linux"))||_.kKb();QcK=_.phy();zlt=Sy8();nUG=py("iPad");kZ9=py("iPod");_.xZ9=_.ty();z5N=_.Bh(_.yZ(),"KaiOS");DZ_=function(){var X=_.ok.document;return X?X.documentMode:void 0};
a:{var W$9="",EUD=function(){var X=_.yZ();if(_.Hf)return/rv:([^\);]+)(\)|;)/.exec(X);if(TT)return/Edge\/([\d\.]+)/.exec(X);if(_.Jv)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(X);if(_.XQ)return/WebKit\/(\S+)/.exec(X);if(yNq)return/(?:Version)[ \/]?(\S+)/.exec(X)}();
EUD&&(W$9=EUD?EUD[1]:"");if(_.Jv){var gUt=DZ_();if(gUt!=null&&gUt>parseFloat(W$9)){tyQ=String(gUt);break a}}tyQ=W$9}GZF=tyQ;aAG={};_.L9=function(X){return yVy(aAG,X,function(){return _.el(GZF,X)>=0})};
if(_.ok.document&&_.Jv){var id_=DZ_();Zdt=id_?id_:parseInt(GZF,10)||void 0}else Zdt=void 0;_.vU6=Zdt;var S9K,zPl,Od6;_.Yi=ny();S9K=Sy8()||py("iPod");zPl=py("iPad");Od6=_.yyb();_.IJ=xN();_.Dt=_.ezy()&&!_.ty();var Oyh={},Hz=null,yjZ=_.Hf||_.XQ||typeof _.ok.btoa=="function";var oQN=typeof Uint8Array!=="undefined",jkO=!_.Jv&&typeof btoa==="function",ryk=/[-_.]/g,N8h={"-":"+",_:"/",".":"="},tQ={};var D6,QCv;D6=function(X,H){if(H!==tQ)throw Error("K");this.JSC$9130_value_=X;if(X!=null&&X.length===0)throw Error("J");};
_.Wz=function(){return mZY||(mZY=new D6(null,tQ))};
QCv=function(X){return new Uint8Array(HXN(X)||0)};
D6.prototype.isEmpty=function(){return this.JSC$9130_value_==null};
D6.prototype.sizeBytes=function(){var X=HXN(this);return X?X.length:0};
var HXN=function(X){if(tQ!==tQ)throw Error("K");var H=X.JSC$9130_value_;H==null||oQN&&H!=null&&H instanceof Uint8Array||(typeof H==="string"?H=JyW(H):(_.bx(H),H=null));return H==null?H:X.JSC$9130_value_=H},mZY;var YyW=void 0;var $Q=typeof Symbol==="function"&&typeof Symbol()==="symbol",TYQ=UG("jas",void 0,!0),YGN=UG(void 0,"0di"),CX=UG(void 0,"1oa"),ix=UG(void 0,Symbol()),F$b=UG(void 0,"0ub"),qal=UG(void 0,"0ubs"),ZXO=UG(void 0,"0ubsb"),gU8=UG(void 0,"0actk"),Wp=UG("m_m","messagePrototypeMarker",!0),zl8=UG(void 0,"vps"),wpL=UG();var XzO,Ayh,YU,NYQ;XzO={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Ayh=Object.defineProperties;_.K_=$Q?TYQ:"internalArrayState";NYQ=[];FH(NYQ,7);YU=Object.freeze(NYQ);var Ea={},n_={},cNY=function(X,H,l){this.iterable=X;this.mapper=H;this.thisArg=l};
cNY.prototype.next=function(){var X=this.iterable.next();X.done||(X.value=this.mapper.call(this.thisArg,X.value));return X};
cNY.prototype[Symbol.iterator]=function(){return this};
var jCH=Object.freeze({}),gt={};var $vL=void 0,KDL=a_(function(X){return X!==null&&X!==void 0});var hCb=a_(function(X){return typeof X==="number"}),dvW=a_(function(X){return typeof X==="string"}),BtW=a_(function(X){return typeof X==="boolean"}),rNF=a_(function(X){return X!=null&&typeof X==="object"&&typeof X.then==="function"}),P0y=a_(function(X){return typeof X==="function"}),Hg=a_(function(X){return!!X&&(typeof X==="object"||typeof X==="function")});var FDK=typeof _.ok.BigInt==="function"&&typeof _.ok.BigInt(0)==="bigint";var Tty=a_(function(X){return FDK?X>=JNF&&X<=L$Q:X[0]==="-"?qGl(X,Yaq):qGl(X,IAH)}),Yaq=Number.MIN_SAFE_INTEGER.toString(),JNF=FDK?BigInt(Number.MIN_SAFE_INTEGER):void 0,IAH=Number.MAX_SAFE_INTEGER.toString(),L$Q=FDK?BigInt(Number.MAX_SAFE_INTEGER):void 0;var AN_=typeof Uint8Array.prototype.slice==="function",iF=0,vz=0,uHz;var ux,fd,Ua,Ve,xvl;ux=typeof BigInt==="function"?BigInt.asIntN:void 0;_.pd=typeof BigInt==="function"?BigInt.asUintN:void 0;fd=Number.isSafeInteger;Ua=Number.isFinite;Ve=Math.trunc;xvl=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var nUy={};var K$Z={},Xu9=function(){try{var X=function(){return MqC(Map,[],this.constructor)};
_.S(X,Map);rk(new X);return!1}catch(H){return!0}}(),Av=function(){this.JSC$9149_map_=new Map};
_.R=Av.prototype;_.R.get=function(X){return this.JSC$9149_map_.get(X)};
_.R.set=function(X,H){this.JSC$9149_map_.set(X,H);this.size=this.JSC$9149_map_.size;return this};
_.R.delete=function(X){X=this.JSC$9149_map_.delete(X);this.size=this.JSC$9149_map_.size;return X};
_.R.clear=function(){this.JSC$9149_map_.clear();this.size=this.JSC$9149_map_.size};
_.R.has=function(X){return this.JSC$9149_map_.has(X)};
_.R.entries=function(){return this.JSC$9149_map_.entries()};
_.R.keys=function(){return this.JSC$9149_map_.keys()};
_.R.values=function(){return this.JSC$9149_map_.values()};
_.R.forEach=function(X,H){return this.JSC$9149_map_.forEach(X,H)};
Av.prototype[Symbol.iterator]=function(){return this.entries()};
var X0=function(){if(Xu9)return Object.setPrototypeOf(Av.prototype,Map.prototype),Object.defineProperties(Av.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Av;var X=function(){return MqC(Map,[],this.constructor)};
_.S(X,Map);return X}(),gY=function(X,H,l,b){l=l===void 0?lAy:l;
b=b===void 0?lAy:b;var U=X0.call(this)||this;U.arrayState=X[_.K_]|0;U.valueCtor=H;U.keyToApi=l;U.valueToApi=U.valueCtor?bdZ:b;for(var K=0;K<X.length;K++){var w=X[K],d=l(w[0],!1,!0),B=w[1];H?B===void 0&&(B=null):B=b(w[1],!1,!0,void 0,void 0,U.arrayState);X0.prototype.set.call(U,d,B)}return U};
_.S(gY,X0);var HXQ=function(X){if(X.arrayState&2)throw Error("O");},Saz=function(X,H){return Pz(Array.from(X0.prototype.entries.call(X),H))};
_.R=gY.prototype;_.R.clear=function(){HXQ(this);X0.prototype.clear.call(this)};
_.R.delete=function(X){HXQ(this);return X0.prototype.delete.call(this,this.keyToApi(X,!0,!1))};
_.R.entries=function(){if(this.valueCtor){var X=X0.prototype.keys.call(this);X=new cNY(X,UZk,this)}else X=X0.prototype.entries.call(this);return X};
_.R.values=function(){if(this.valueCtor){var X=X0.prototype.keys.call(this);X=new cNY(X,gY.prototype.get,this)}else X=X0.prototype.values.call(this);return X};
_.R.forEach=function(X,H){this.valueCtor?X0.prototype.forEach.call(this,function(l,b,U){X.call(H,U.get(b),b,U)}):X0.prototype.forEach.call(this,X,H)};
_.R.set=function(X,H){HXQ(this);X=this.keyToApi(X,!0,!1);return X==null?this:H==null?(X0.prototype.delete.call(this,X),this):X0.prototype.set.call(this,X,this.valueToApi(H,!0,!0,this.valueCtor,!1,this.arrayState))};
_.R.has=function(X){return X0.prototype.has.call(this,this.keyToApi(X,!1,!1))};
_.R.get=function(X){X=this.keyToApi(X,!1,!1);var H=X0.prototype.get.call(this,X);if(H!==void 0){var l=this.valueCtor;return l?(l=this.valueToApi(H,!1,!0,l,this.callToMutableOnAccess,this.arrayState),l!==H&&X0.prototype.set.call(this,X,l),l):H}};
gY.prototype[Symbol.iterator]=function(){return this.entries()};
gY.prototype.toJSON=void 0;var $Zz;var elZ=function(){},Myb=function(X,H){for(var l in X)!isNaN(l)&&H(X,+l,X[l])},yNl=function(X){var H=new elZ;
Myb(X,function(l,b,U){H[b]=X5(U)});
H.reviveUnknownFields=X.reviveUnknownFields;return H},dZL={reviveIntoImmutable:!0};var u5y;var kZZ,xZZ;var lrQ,o$,$2,Fl,ont,Cj,wU,bX_,$at,BC,Kz_,q7,ue,e5;lrQ=_.Z6(0);_.HC={};_.be=function(X,H,l,b,U){H=o$(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H,l,U);if(H!==null||b&&X.noLegacyNull!==n_)return H};
o$=function(X,H,l,b){if(H===-1)return null;var U=H+(l?0:-1),K=X.length-1;if(!(K<1+(l?0:-1))){if(U>=K){var w=X[K];if(w!=null&&typeof w==="object"&&w.constructor===Object){l=w[H];var d=!0}else if(U===K)l=w;else return}else l=X[U];if(b&&l!=null){b=b(l);if(b==null)return b;if(!Object.is(b,l))return d?w[H]=b:X[U]=b,b}return l}};
_.HB=function(X,H,l,b){jy(X);var U=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Ld(U,U[_.K_]|0,H,l,b);return X};
_.UC=function(X,H,l){X=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return L$N(X,X[_.K_]|0,H,l)!==void 0};
_.$g=function(X,H,l,b){var U=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return L$N(U,U[_.K_]|0,H,Fl(X,b,l))!==void 0};
_.vb=function(X){return X===jCH?2:4};
_.Kj=function(X,H){X=_.be(X,H,void 0,void 0,TYy);return X==null?_.Wz():X};
$2=function(X,H,l,b){jy(X);var U=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=U[_.K_]|0;if(b==null){var w=jCO(U);if(rNb(w,U,K,l)===H)w.set(l,0);else return X}else K=JNb(U,K,l,H);Ld(U,K,H,b);return X};
_.nX=function(X,H,l,b){var U=X[_.K_]|0,K=GY(U);U=JNb(X,U,l,H,K);Ld(X,U,H,b,K)};
Fl=function(X,H,l){return _.RV(X,H)===l?l:-1};
_.RV=function(X,H){X=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return rNb(jCO(X),X,void 0,H,void 0)};
ont=function(X,H,l){var b=X[_.K_]|0,U=GY(b),K=o$(X,l,U);if(K!=null&&K[Wp]===Ea){if(!kQ(K))return cp(K),K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var w=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(K)&&(w=K);if(w){var d=w[_.K_]|0;d&2&&(w=TZ(w,d))}w=m$(w,H);w!==K&&Ld(X,b,l,w,U);return w};
_.Al=function(X,H,l,b){var U=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=U[_.K_]|0;H=L$N(U,K,H,l,b);if(H==null)return H;K=U[_.K_]|0;if(!kQ(X,K)){var w=oUZ(H);w!==H&&(cp(X)&&(U=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=U[_.K_]|0),H=w,K=Ld(U,K,l,H,b),JN(U,K))}return H};
_.iB=function(X,H,l,b){var U=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Yal(X,U,U[_.K_]|0,H,l,b,!1,!0)};
_.go=function(X,H,l,b){l=IAO(l);_.HB(X,H,l,b);l&&!kQ(l)&&JN(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return X};
_.G2=function(X,H,l,b){b=IAO(b);$2(X,H,l,b);b&&!kQ(b)&&JN(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return X};
Cj=function(X,H,l){jy(X);var b=X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=b[_.K_]|0;if(l==null)return Ld(b,U,H),X;for(var K=l===YU?7:l[_.K_]|0,w=K,d=lR(K),B=d||Object.isFrozen(l),q=!0,u=!0,e=0;e<l.length;e++){var y=l[e];d||(y=kQ(y),q&&(q=!y),u&&(u=y))}d||(K=q?13:5,K=u?K&-4097:K|4096);B&&K===w||(l=X5(l),w=0,K=X9(K,U));K!==w&&FH(l,K);U=Ld(b,U,H,l);2&K||!(4096&K||16&K)||JN(b,U);return X};
wU=function(X,H,l,b){XuZ(X,H,l,b);return X};
bX_=function(X,H,l){XuZ(X,H,wJ,void 0,l,1,!0);return X};
_.UaH=function(X,H){return _.Bp?Ntz(_.be(X,H,void 0,void 0,j_l)):Ntz(_.be(X,H))};
_.dJ=function(X,H,l){return _.Bp?_.be(X,H,void 0,l,j_l):j_l(_.be(X,H,void 0,l))};
_.hC=function(X,H,l){return _.Bp?_.be(X,H,void 0,l,rQl):rQl(_.be(X,H,void 0,l))};
_.F0=function(X,H){var l=l===void 0?!1:l;var b;return(b=_.kYZ(_.be(X,H)))!=null?b:l};
_.O_=function(X,H,l){l=l===void 0?0:l;var b;return(b=_.hN(_.be(X,H)))!=null?b:l};
$at=function(X,H){var l=l===void 0?0:l;X=_.tqy(_.be(X,H));return X!=null?X:l};
BC=function(X,H,l){l=l===void 0?lrQ:l;var b;return(b=_.dJ(X,H))!=null?b:l};
Kz_=function(X){var H=H===void 0?lrQ:H;var l;return(l=_.hC(X,23))!=null?l:H};
q7=function(X,H){var l=l===void 0?0:l;var b;return(b=_.be(X,H,void 0,void 0,_.oC))!=null?b:l};
_.sC=function(X,H,l,b){l=l===void 0?"":l;var U;return(U=_.DA(_.be(X,H,b)))!=null?U:l};
_.M7=function(X,H){var l=l===void 0?0:l;var b;return(b=_.wY(_.be(X,H)))!=null?b:l};
ue=function(X,H){var l=l===void 0?"0":l;X=_.Bp?cQO(_.be(X,H,void 0,void 0,j_l)):cQO(_.be(X,H),!0);return X!=null?X:l};
_.Ru_=function(X,H,l){X=_.Hu(X,H,_.DA,3,!0);b_k(X,l);return X[l]};
e5=function(X,H,l){return _.sC(X,Fl(X,l,H))};
_.ys=function(X,H,l,b){return _.Al(X,H,Fl(X,b,l),void 0)};
_.Aj=function(X,H){return _.DA(_.be(X,H,void 0,_.HC))};
_.cb=function(X,H,l){return _.HB(X,H,nQy(l))};
_.wZ=function(X,H,l){return _.$n(X,H,nQy(l),!1)};
_.Vs=function(X,H,l){return _.HB(X,H,_.dY(l))};
_.qp=function(X,H,l){return _.HB(X,H,ye(l))};
_.KY=function(X,H,l){return _.HB(X,H,xU(l))};
_.Wx=function(X,H,l,b){return _.$n(X,H,xU(l),"",b)};
_.X$=function(X,H,l){return _.HB(X,H,l==null?l:_.Cd(l))};
_.PC=function(X,H,l){return _.$n(X,H,l==null?l:_.Cd(l),0)};var wo=function(X,H,l){this.buffer=X;if(l&&!H)throw Error();this.JSC$9161_isImmutable=H};var CRQ=function(X,H,l,b){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9164_start_=0;this.init(X,H,l,b)},da_,fj,huG,$lZ,Fzt,Bo_,qUF,s$Q,zub,wuF;
_.R=CRQ.prototype;_.R.init=function(X,H,l,b){var U=b===void 0?{}:b;b=U.aliasBytesFields===void 0?!1:U.aliasBytesFields;U=U.treatNewDataAsImmutable===void 0?!1:U.treatNewDataAsImmutable;this.aliasBytesFields=b;this.treatNewDataAsImmutable=U;X&&(X=lrN(X,this.treatNewDataAsImmutable),this.bytes_=X.buffer,this.bytesAreImmutable_=X.JSC$9161_isImmutable,this.JSC$9164_start_=H||0,this.end_=l!==void 0?this.JSC$9164_start_+l:this.bytes_.length,this.cursor_=this.JSC$9164_start_)};
_.R.free=function(){this.clear();wuF.length<100&&wuF.push(this)};
_.R.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9164_start_=0;this.aliasBytesFields=!1};
_.R.reset=function(){this.cursor_=this.JSC$9164_start_};
_.R.atEnd=function(){return this.cursor_==this.end_};
_.z2=function(X,H){var l=0,b=0,U=0,K=X.bytes_,w=X.cursor_;do{var d=K[w++];l|=(d&127)<<U;U+=7}while(U<32&&d&128);if(U>32)for(b|=(d&127)>>4,U=3;U<32&&d&128;U+=7)d=K[w++],b|=(d&127)<<U;fj(X,w);if(!(d&128))return H(l>>>0,b>>>0);throw Error();};
da_=function(X){return _.z2(X,function(H,l){return pzO(H,l,PFO)})};
fj=function(X,H){X.cursor_=H;if(H>X.end_)throw Error();};
_.S5=function(X){var H=X.bytes_,l=X.cursor_,b=H[l++],U=b&127;if(b&128&&(b=H[l++],U|=(b&127)<<7,b&128&&(b=H[l++],U|=(b&127)<<14,b&128&&(b=H[l++],U|=(b&127)<<21,b&128&&(b=H[l++],U|=b<<28,b&128&&H[l++]&128&&H[l++]&128&&H[l++]&128&&H[l++]&128&&H[l++]&128)))))throw Error();fj(X,l);return U};
_.zb=function(X){var H=X.bytes_,l=X.cursor_,b=H[l],U=H[l+1],K=H[l+2];H=H[l+3];fj(X,X.cursor_+4);return(b<<0|U<<8|K<<16|H<<24)>>>0};
huG=function(X){var H=_.zb(X);X=_.zb(X);return yQL(H,X)};
$lZ=function(X){var H=_.zb(X);X=_.zb(X);return Vqz(H,X)};
Fzt=function(X){var H=_.zb(X);X=(H>>31)*2+1;var l=H>>>23&255;H&=8388607;return l==255?H?NaN:X*Infinity:l==0?X*1.401298464324817E-45*H:X*Math.pow(2,l-150)*(H+8388608)};
Bo_=function(X){var H=_.zb(X),l=_.zb(X);X=(l>>31)*2+1;var b=l>>>20&2047;H=4294967296*(l&1048575)+H;return b==2047?H?NaN:X*Infinity:b==0?X*4.9E-324*H:X*Math.pow(2,b-1075)*(H+4503599627370496)};
qUF=function(X){for(var H=0,l=X.cursor_,b=l+10,U=X.bytes_;l<b;){var K=U[l++];H|=K;if((K&128)===0)return fj(X,l),!!(H&127)}throw Error();};
s$Q=function(X,H){if(H<0)throw Error();var l=X.cursor_;H=l+H;if(H>X.end_)throw Error();X.cursor_=H;return l};
zub=function(X,H){if(H==0)return _.Wz();var l=s$Q(X,H);X.aliasBytesFields&&X.bytesAreImmutable_?l=X.bytes_.subarray(l,l+H):(X=X.bytes_,H=l+H,l=l===H?new Uint8Array(0):AN_?X.slice(l,H):new Uint8Array(X.subarray(l,H)));return l.length==0?_.Wz():new D6(l,tQ)};
wuF=[];var u9q=function(X,H,l,b){if(wuF.length){var U=wuF.pop();U.init(X,H,l,b);X=U}else X=new CRQ(X,H,l,b);this.decoder_=X;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;MAC(this,b)},MAC=function(X,H){H=H===void 0?{}:H;
X.discardUnknownFields=H.discardUnknownFields===void 0?!1:H.discardUnknownFields},xay=function(X,H,l,b){if(euQ.length){var U=euQ.pop();
MAC(U,b);U.decoder_.init(X,H,l,b);return U}return new u9q(X,H,l,b)},frk,SUk,nj,ybG,euQ;
u9q.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;euQ.length<100&&euQ.push(this)};
u9q.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
frk=function(X){if(X.decoder_.atEnd())return!1;X.fieldCursor_=X.decoder_.cursor_;var H=_.S5(X.decoder_)>>>0,l=H>>>3;H&=7;if(!(H>=0&&H<=5))throw Error();if(l<1)throw Error();X.nextField_=l;X.nextWireType_=H;return!0};
SUk=function(X){switch(X.nextWireType_){case 0:X.nextWireType_!=0?SUk(X):qUF(X.decoder_);break;case 1:X=X.decoder_;fj(X,X.cursor_+8);break;case 2:if(X.nextWireType_!=2)SUk(X);else{var H=_.S5(X.decoder_)>>>0;X=X.decoder_;fj(X,X.cursor_+H)}break;case 5:X=X.decoder_;fj(X,X.cursor_+4);break;case 3:H=X.nextField_;do{if(!frk(X))throw Error();if(X.nextWireType_==4){if(X.nextField_!=H)throw Error();break}SUk(X)}while(1);break;default:throw Error();}};
nj=function(X,H,l){var b=X.decoder_.end_,U=_.S5(X.decoder_)>>>0;U=X.decoder_.cursor_+U;var K=U-b;K<=0&&(X.decoder_.end_=U,l(H,X,void 0,void 0,void 0),K=U-X.decoder_.cursor_);if(K)throw Error();X.decoder_.cursor_=U;X.decoder_.end_=b;return H};
ybG=function(X){var H=_.S5(X.decoder_)>>>0;X=X.decoder_;var l=s$Q(X,H);X=X.bytes_;if(I6z){var b=X,U;(U=YGQ)||(U=YGQ=new TextDecoder("utf-8",{fatal:!0}));H=l+H;b=l===0&&H===b.length?b:b.subarray(l,H);try{var K=U.decode(b)}catch(q){if(LDz===void 0){try{U.decode(new Uint8Array([128]))}catch(u){}try{U.decode(new Uint8Array([97])),LDz=!0}catch(u){LDz=!1}}!LDz&&(YGQ=void 0);throw q;}}else{K=l;H=K+H;l=[];for(var w=null,d,B;K<H;)d=X[K++],d<128?l.push(d):d<224?K>=H?Hh():(B=X[K++],d<194||(B&192)!==128?(K--,
Hh()):l.push((d&31)<<6|B&63)):d<240?K>=H-1?Hh():(B=X[K++],(B&192)!==128||d===224&&B<160||d===237&&B>=160||((U=X[K++])&192)!==128?(K--,Hh()):l.push((d&15)<<12|(B&63)<<6|U&63)):d<=244?K>=H-2?Hh():(B=X[K++],(B&192)!==128||(d<<28)+(B-144)>>30!==0||((U=X[K++])&192)!==128||((b=X[K++])&192)!==128?(K--,Hh()):(d=(d&7)<<18|(B&63)<<12|(U&63)<<6|b&63,d-=65536,l.push((d>>10&1023)+55296,(d&1023)+56320))):Hh(),l.length>=8192&&(w=Rzy(w,l),l.length=0);K=Rzy(w,l)}return K};
_.VAD=function(X){var H=_.S5(X.decoder_)>>>0;return zub(X.decoder_,H)};
_.PRY=function(X,H,l){var b=_.S5(X.decoder_)>>>0;for(b=X.decoder_.cursor_+b;X.decoder_.cursor_<b;)l.push(H(X.decoder_))};
euQ=[];var fr_=function(X,H){this.JSC$9171_lo=X>>>0;this.JSC$9171_hi=H>>>0},Toy=function(X){X=BigInt.asUintN(64,X);
return new fr_(Number(X&BigInt(4294967295)),Number(X>>BigInt(32)))},UaO=function(X){if(!X)return pu9||(pu9=new fr_(0,0));
if(!/^\d+$/.test(X))return null;L_(X);return new fr_(iF,vz)},pu9,Q$N=function(X,H){this.JSC$9173_lo=X>>>0;
this.JSC$9173_hi=H>>>0},on8=function(X){if(!X)return SU_||(SU_=new Q$N(0,0));
if(!/^-?\d+$/.test(X))return null;L_(X);return new Q$N(iF,vz)},SU_;var kg=function(){this.JSC$9175_buffer_=[]},Pu,SA,zuF;
kg.prototype.length=function(){return this.JSC$9175_buffer_.length};
kg.prototype.end=function(){var X=this.JSC$9175_buffer_;this.JSC$9175_buffer_=[];return X};
Pu=function(X,H,l){for(;l>0||H>127;)X.JSC$9175_buffer_.push(H&127|128),H=(H>>>7|l<<25)>>>0,l>>>=7;X.JSC$9175_buffer_.push(H)};
SA=function(X,H){for(;H>127;)X.JSC$9175_buffer_.push(H&127|128),H>>>=7;X.JSC$9175_buffer_.push(H)};
_.cbh=function(X,H){if(H>=0)SA(X,H);else{for(var l=0;l<9;l++)X.JSC$9175_buffer_.push(H&127|128),H>>=7;X.JSC$9175_buffer_.push(1)}};
zuF=function(X,H){L_(H);f6O(function(l,b){Pu(X,l>>>0,b>>>0)})};
kg.prototype.writeUint8=function(X){this.JSC$9175_buffer_.push(X>>>0&255)};
_.V2=function(X,H){X.JSC$9175_buffer_.push(H>>>0&255);X.JSC$9175_buffer_.push(H>>>8&255);X.JSC$9175_buffer_.push(H>>>16&255);X.JSC$9175_buffer_.push(H>>>24&255)};
kg.prototype.writeInt8=function(X){this.JSC$9175_buffer_.push(X>>>0&255)};var nn6,Ma,rbW,YUZ,CRy;nn6=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new kg};
Ma=function(X,H){H.length!==0&&(X.blocks_.push(H),X.totalLength_+=H.length)};
_.k2G=function(X,H){_.y2(X,H,2);H=X.encoder_.end();Ma(X,H);H.push(X.totalLength_);return H};
_.xaQ=function(X,H){var l=H.pop();for(l=X.totalLength_+X.encoder_.length()-l;l>127;)H.push(l&127|128),l>>>=7,X.totalLength_++;H.push(l);X.totalLength_++};
_.y2=function(X,H,l){SA(X.encoder_,H*8+l)};
rbW=function(X,H,l){if(l!=null)switch($a8(l),_.y2(X,H,1),typeof l){case "number":X=X.encoder_;s_N(l);_.V2(X,iF);_.V2(X,vz);break;case "bigint":l=Toy(l);X=X.encoder_;H=l.JSC$9171_hi;_.V2(X,l.JSC$9171_lo);_.V2(X,H);break;default:l=UaO(l),X=X.encoder_,H=l.JSC$9171_hi,_.V2(X,l.JSC$9171_lo),_.V2(X,H)}};
YUZ=function(X,H,l){_.y2(X,H,2);SA(X.encoder_,l.length);Ma(X,X.encoder_.end());Ma(X,l)};
CRy=function(X,H,l,b){l!=null&&(H=_.k2G(X,H),b(l,X),_.xaQ(X,H))};var Kzk,Dat,tA_,WzY,EnQ,G26,arF,iXD,vnC;Kzk=hb();Dat=hb();tA_=hb();WzY=hb();EnQ=hb();_.gnz=hb();_.xg=hb();G26=hb();arF=hb();_.ZXH=hb();iXD=hb();vnC=hb();_.OXQ=hb();_.maq=hb();_.sU=function(X,H,l){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X,H,l)};
_.sU.prototype.toJSON=function(){return vp(this)};
_.sU.prototype.serialize=function(X){return JSON.stringify(vp(this,X))};
var dlh=function(X,H){if(H==null||H=="")return new X;H=JSON.parse(H);if(!Array.isArray(H))throw Error("W");return new X(l6k(H))};
_.sU.prototype.getExtension=function(X){BYW(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X.fieldIndex);hly(this,X.fieldIndex);return X.ctor?X.isRepeated?X.getExtensionFn(this,X.ctor,X.fieldIndex,_.vb(),X.JSC$9186_hasMessageId):X.getExtensionFn(this,X.ctor,X.fieldIndex,X.JSC$9186_hasMessageId):X.isRepeated?X.getExtensionFn(this,X.fieldIndex,_.vb(),X.JSC$9186_hasMessageId):X.getExtensionFn(this,X.fieldIndex,X.defaultValue,X.JSC$9186_hasMessageId)};
_.sU.prototype.clone=function(){var X=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=X[_.K_]|0;return vUL(this,X,H)?idy(this,X,!0):new this.constructor(TZ(X,H,!1))};
_.sU.prototype[Wp]=Ea;_.sU.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var F9=function(X,H,l){this.$$binaryReaderFn=X;this.$$binaryWriterFn=H;X=ZA(Kzk);this.$$isMsg=!!X&&l===X||!1},qUb=Ruy(function(X,H,l,b,U){if(X.nextWireType_!==2)return!1;
nj(X,ont(H,b,l),U);return!0},day),s$N=Ruy(function(X,H,l,b,U){if(X.nextWireType_!==2)return!1;
nj(X,ont(H,b,l),U);return!0},day),tAk=Symbol(),euN=Symbol(),PRK=Symbol(),gnh=Symbol(),nnL=Symbol(),huy,Fz8;var Q$Q,Rny,ToQ,DU,No_,cbz,j$F,rbv,WC,Lzv,YU9,IrY,AbD,XJQ,l3Q,omC,bJ9,Ul_,$l9,K5q;Q$Q=_.Z6(0);Rny=function(X,H){var l=new nn6;G2L(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,l,qa(tAk,Da8,WzK,H));Ma(l,l.encoder_.end());X=new Uint8Array(l.totalLength_);H=l.blocks_;for(var b=H.length,U=0,K=0;K<b;K++){var w=H[K];X.set(w,U);U+=w.length}l.blocks_=[X];return X};
ToQ=Ruy(function(X,H,l,b,U){if(X.nextWireType_!==2)return!1;X=nj(X,m$([void 0,void 0],b),U);X=X5(X);b=H[_.K_]|0;U=GY(b);if(b&2)throw Error();var K=o$(H,l,U);if(K instanceof gY)(K.arrayState&2)!=0?(K=Saz(K),K.push(X),Ld(H,b,l,K,U)):(H=K,l=H.keyToApi(X[0],!1,!0),X=X[1],X=H.valueCtor?X===void 0?null:X:H.valueToApi(X,!1,!0,void 0,!1,H.arrayState),X0.prototype.set.call(H,l,X));else if(Array.isArray(K)){var w=K[_.K_]|0;w&8192||FH(K,w|=8192);w&2&&(K=NYN(K),Ld(H,b,l,K,U));K.push(X)}else Ld(H,b,l,Pz([X]),
U);return!0},function(X,H,l,b,U){if(H instanceof gY)H.forEach(function(d,B){CRy(X,l,m$([B,
d],b),U)});
else if(Array.isArray(H)){for(var K=0;K<H.length;K++){var w=H[K];Array.isArray(w)&&CRy(X,l,m$(w,b),U)}Pz(H)}});
DU=_.uR(function(X,H,l){if(X.nextWireType_!==1)return!1;_.eA(H,l,Bo_(X.decoder_));return!0},OXN,vnC);
No_=_.uR(function(X,H,l,b){if(X.nextWireType_!==1)return!1;_.nX(H,l,b,Bo_(X.decoder_));return!0},OXN,vnC);
cbz=_.uR(function(X,H,l){if(X.nextWireType_!==5)return!1;_.eA(H,l,Fzt(X.decoder_));return!0},mal,iXD);
j$F=_.vnz(function(X,H,l){if(X.nextWireType_!==5&&X.nextWireType_!==2)return!1;H=_.KX(H,H[_.K_]|0,l);X.nextWireType_==2?_.PRY(X,Fzt,H):H.push(Fzt(X.decoder_));return!0},function(X,H,l){H=_.iXm(_.oC,H,!0);
if(H!=null&&H.length)for(_.y2(X,l,2),SA(X.encoder_,H.length*4),l=0;l<H.length;l++){var b=X.encoder_;eCl(H[l]);_.V2(b,iF)}},iXD);
rbv=_.uR(function(X,H,l,b){if(X.nextWireType_!==5)return!1;_.nX(H,l,b,Fzt(X.decoder_));return!0},mal,iXD);
_.JbF=_.uR(function(X,H,l){if(_.c8)return omz(X,H,l);if(X.nextWireType_!==0)return!1;_.eA(H,l,_.z2(X.decoder_,_.JQ));return!0},_.fX,_.xg);
_.tC=_.uR(function(X,H,l){if(_.c8)return omz(X,H,l);if(X.nextWireType_!==0)return!1;_.eA(H,l,_.z2(X.decoder_,jq));return!0},_.fX,_.xg);
WC=_.uR(function(X,H,l){if(_.c8)return X.nextWireType_!==0?H=!1:(X=_.z2(X.decoder_,PFO),_.eA(H,l,X===Q$Q?void 0:X),H=!0),H;if(X.nextWireType_!==0)return!1;X=_.z2(X.decoder_,jq);_.eA(H,l,X===0?void 0:X);return!0},_.fX,_.xg);
Lzv=_.uR(function(X,H,l,b){if(_.c8)return _.bJZ(X,H,l,b);if(X.nextWireType_!==0)return!1;_.nX(H,l,b,_.z2(X.decoder_,jq));return!0},_.fX,_.xg);
YU9=_.uR(function(X,H,l){if(_.c8)return Ulk(X,H,l);if(X.nextWireType_!==0)return!1;_.eA(H,l,_.z2(X.decoder_,_.Nv));return!0},Nok,G26);
_.EC=_.uR(function(X,H,l){if(_.c8)return Ulk(X,H,l);if(X.nextWireType_!==0)return!1;_.eA(H,l,_.z2(X.decoder_,yQL));return!0},Nok,G26);
_.gJ=_.uR(function(X,H,l){if(X.nextWireType_!==0)return!1;_.eA(H,l,_.S5(X.decoder_));return!0},j$b,WzY);
IrY=_.uR(function(X,H,l){if(X.nextWireType_!==0)return!1;X=_.S5(X.decoder_);_.eA(H,l,X===0?void 0:X);return!0},j$b,WzY);
AbD=_.uR(function(X,H,l,b){if(X.nextWireType_!==0)return!1;_.nX(H,l,b,_.S5(X.decoder_));return!0},j$b,WzY);
XJQ=_.uR(function(X,H,l){if(_.c8)return _.K5l(X,H,l);if(X.nextWireType_!==1)return!1;_.eA(H,l,huG(X.decoder_));return!0},_.Jbb,_.ZXH);
_.HJz=_.vnz(function(X,H,l){if(_.c8)return X.nextWireType_!==1&&X.nextWireType_!==2?X=!1:(H=_.KX(H,H[_.K_]|0,l),X.nextWireType_==2?_.PRY(X,$lZ,H):H.push($lZ(X.decoder_)),X=!0),X;if(X.nextWireType_!==1&&X.nextWireType_!==2)return!1;H=_.KX(H,H[_.K_]|0,l);X.nextWireType_==2?_.PRY(X,huG,H):H.push(huG(X.decoder_));return!0},function(X,H,l){H=_.iXm(LDh,H,!1);
if(H!=null)for(var b=0;b<H.length;b++)rbW(X,l,H[b])},_.ZXH);
_.Gb=_.uR(function(X,H,l){if(X.nextWireType_!==0)return!1;_.eA(H,l,qUF(X.decoder_));return!0},LzW,Dat);
_.aV=_.uR(function(X,H,l){if(X.nextWireType_!==0)return!1;X=qUF(X.decoder_);_.eA(H,l,X===!1?void 0:X);return!0},LzW,Dat);
l3Q=_.uR(function(X,H,l,b){if(X.nextWireType_!==0)return!1;_.nX(H,l,b,qUF(X.decoder_));return!0},LzW,Dat);
_.ZU=_.uR(function(X,H,l){if(X.nextWireType_!==2)return!1;_.eA(H,l,ybG(X));return!0},IrK,tA_);
_.ie=_.uR(function(X,H,l){if(X.nextWireType_!==2)return!1;X=ybG(X);_.eA(H,l,X===""?void 0:X);return!0},IrK,tA_);
_.vC=_.uR(function(X,H,l,b){if(X.nextWireType_!==2)return!1;_.nX(H,l,b,ybG(X));return!0},IrK,tA_);
omC=_.vnz(function(X,H,l){if(X.nextWireType_!==2)return!1;X=ybG(X);_.KX(H,H[_.K_]|0,l).push(X);return!0},function(X,H,l){H=_.iXm(_.DA,H,!0);
if(H!=null)for(var b=0;b<H.length;b++){var U=X,K=l,w=H[b];w!=null&&YUZ(U,K,hzZ(w))}},tA_);
bJ9=void 0;bJ9=bJ9===void 0?Kzk:bJ9;_.OC=new F9(function(X,H,l,b,U){if(X.nextWireType_!==2)return!1;b=m$(void 0,b);_.KX(H,H[_.K_]|0,l).push(b);nj(X,b,U);return!0},function(X,H,l,b,U){if(Array.isArray(H)){for(var K=0;K<H.length;K++)Abm(X,H[K],l,b,U);
X=H[_.K_]|0;X&1||FH(H,X|1)}},bJ9);
_.mq=Ruy(function(X,H,l,b,U,K){if(X.nextWireType_!==2)return!1;var w=H[_.K_]|0;JNb(H,w,K,l,GY(w));H=ont(H,b,l);nj(X,H,U);return!0},Abm);
_.Qs=_.uR(function(X,H,l){if(X.nextWireType_!==2)return!1;_.eA(H,l,_.VAD(X));return!0},_.XJy,_.OXQ);
Ul_=_.uR(function(X,H,l,b){if(X.nextWireType_!==2)return!1;_.nX(H,l,b,_.VAD(X));return!0},_.XJy,_.OXQ);
_.Tb=_.uR(function(X,H,l){if(X.nextWireType_!==0)return!1;_.eA(H,l,_.S5(X.decoder_)>>>0);return!0},HJh,EnQ);
$l9=_.uR(function(X,H,l,b){if(X.nextWireType_!==0)return!1;_.nX(H,l,b,_.S5(X.decoder_)>>>0);return!0},HJh,EnQ);
_.N7=_.uR(function(X,H,l){if(X.nextWireType_!==0)return!1;_.eA(H,l,_.S5(X.decoder_));return!0},_.l3N,_.maq);
_.cC=_.uR(function(X,H,l){if(X.nextWireType_!==0)return!1;X=_.S5(X.decoder_);_.eA(H,l,X===0?void 0:X);return!0},_.l3N,_.maq);
K5q=_.uR(function(X,H,l){if(_.c8)return X.nextWireType_!==0?X=!1:(_.eA(H,l,da_(X.decoder_)),X=!0),X;if(X.nextWireType_!==0)return!1;_.eA(H,l,_.z2(X.decoder_,SGL));return!0},function(X,H,l){H=JQL(H);
if(H!=null&&(bXy(H),H!=null))switch(_.y2(X,l,0),typeof H){case "number":X=X.encoder_;l=H;H=l<0;l=Math.abs(l)*2;s_N(l);l=iF;var b=vz;H&&(l==0?b==0?b=l=4294967295:(b--,l=4294967295):l--);iF=l;vz=b;Pu(X,iF,vz);break;case "bigint":X=X.encoder_;H=H<<BigInt(1)^H>>BigInt(63);iF=Number(BigInt.asUintN(32,H));vz=Number(BigInt.asUintN(32,H>>BigInt(32)));Pu(X,iF,vz);break;default:zuF(X.encoder_,H)}},arF);var wJF=function(){var X=RnQ,H=CQ_;this.fieldIndex=175237375;this.ctor=H;this.isRepeated=0;this.getExtensionFn=_.Al;this.defaultValue=void 0;this.JSC$9186_hasMessageId=X.messageId!=null?gt:void 0};
wJF.prototype.register=function(){rk(this)};var dlz=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(dlz,_.sU);var hnq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(hnq,_.sU);var BrO=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(BrO,_.sU);var F5Q=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(F5Q,_.sU);var BrH=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(BrH,_.sU);var qw_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(qw_,_.sU);var sDQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(sDQ,_.sU);sDQ.prototype.getData=function(){return _.Kj(this,2)};var Miv=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Miv,_.sU);var u3F=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(u3F,_.sU);u3F.prototype.getStyle=function(){return _.Al(this,dlz,1)};var EU=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(EU,_.sU);EU.prototype.getPayloadCase=function(){return _.RV(this,a$)};
EU.prototype.getStyle=function(){return _.ys(this,u3F,6,a$)};
var enQ=function(){var X=new EU,H=new BrH;return _.G2(X,7,a$,H)},yrH=function(){var X=new EU,H=new qw_;
return _.G2(X,8,a$,H)},a$=[1,
2,3,4,5,6,7,8];var ViY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(ViY,_.sU);var PQt=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(PQt,_.sU);var f3G=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(f3G,_.sU);var pJY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(pJY,_.sU);var SwH=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(SwH,_.sU);var zn_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(zn_,_.sU);var nmH=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(nmH,_.sU);var kS9=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(kS9,_.sU);kS9.prototype.getData=function(){return _.Kj(this,2)};var xlC=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(xlC,_.sU);var F5y=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(F5y,_.sU);F5y.prototype.getPayloadCase=function(){return _.RV(this,j5)};
var j5=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var rJ=function(X,H){X=Error.call(this,X);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.code=H===void 0?2:H};
_.S(rJ,Error);var Dlq=Promise;var tiD=function(X){this.channelPromise=X};
tiD.prototype.send=function(X,H,l){this.channelPromise.then(function(b){b.send(X,H,l)})};var W56=function(X,H){this.data=X;this.channel=H};
W56.prototype.reply=function(X,H,l){this.channel.send(X,H,l)};var EmF=function(X){this.JSC$9252_port_=X};
EmF.prototype.send=function(X,H,l){l=l===void 0?[]:l;var b=new MessageChannel;gmQ(b.port1,H);this.JSC$9252_port_.postMessage(X,[b.port2].concat(l))};
var GSG=function(X,H){gmQ(X,H);return new EmF(X)},gmQ=function(X,H){H&&(X.onmessage=function(l){H(new W56(l.data,GSG(l.ports[0])))})};var a3G=function(X){this.verifier_=X};
a3G.prototype.verify=function(X){return this.verifier_(X)};
var ZJv=function(X){var H=Object.create(null);(typeof X==="string"?[X]:X).forEach(function(l){if(l==="null")throw Error("Y");H[l]=!0});
return function(l){return H[l]===!0}};_.iJ_=function(){if(!_.ok.addEventListener||!Object.defineProperty)return!1;var X=!1,H=Object.defineProperty({},"passive",{get:function(){X=!0}});
try{var l=function(){};
_.ok.addEventListener("test",l,H);_.ok.removeEventListener("test",l,H)}catch(b){}return X}();var vmQ;_.JC=function(X){var H=X.destination;var l=X.iframe;var b=X.origin;var U=X.channelName===void 0?"ZNWN1d":X.channelName;var K=X.onMessage===void 0?void 0:X.onMessage;X=X.onEstablished===void 0?void 0:X.onEstablished;return vmQ({destination:H,getSource:function(){return l.contentWindow},
originVerifier:b instanceof a3G?b:typeof b==="function"?new a3G(b):new a3G(ZJv(b)),channelName:U,onMessage:K,onEstablished:X})};
vmQ=function(X){var H=X.destination;var l=X.getSource;var b=X.originVerifier;var U=X.token===void 0?void 0:X.token;var K=X.channelName;var w=X.onMessage===void 0?void 0:X.onMessage;var d=X.onEstablished===void 0?void 0:X.onEstablished;return new tiD(new Dlq(function(B,q){var u=function(e){e.source&&e.source===l()&&b.verify(e.origin)&&(e.data.n||e.data)===K&&(H.removeEventListener("message",u,!1),U&&e.data.t!==U?q(Error("Z`"+K+"`"+U+"`"+e.data.t)):(B(GSG(e.ports[0],w)),d&&d(e)))};
H.addEventListener("message",u,!1)}))};var OJQ=function(X){try{X()}catch(H){bb(H)}};var QDD=function(X){var H=this;var l=X.getMessageType;var b=X.onUnregisteredMessage===void 0?function(){}:X.onUnregisteredMessage;
var U=X.onBeforeRegisteredMessage===void 0?function(){}:X.onBeforeRegisteredMessage;
X=X.onAfterRegisteredMessage===void 0?function(){}:X.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=l;this.onUnregisteredMessage_=b;this.onBeforeRegisteredMessage_=U;this.onAfterRegisteredMessage_=X;this.onMessage=function(K){return mlv(H,K)}};
QDD.prototype.register=function(X,H){this.registry_.set(X,H);return this};
var mlv=function(X,H){var l=X.getMessageType_(H.data),b=X.registry_.get(l);b?(OJQ(function(){return X.onBeforeRegisteredMessage_(H,l)}),OJQ(function(){return b(H)}),OJQ(function(){return X.onAfterRegisteredMessage_(H,l)})):OJQ(function(){return X.onUnregisteredMessage_(H,l)})};var TrG=function(X){this.JSC$9269_channel_=X},crH,jDQ;
TrG.prototype.send=function(X,H,l){this.JSC$9269_channel_.send(vp(X),H,l)};
_.NrH=function(X,H){return function(l){var b=new X(l.data);return H(new W56(b,l.channel))}};
crH=function(X){return function(H){return X(new W56(H.data,new TrG(H.channel)))}};
jDQ=function(X,H){return crH(_.NrH(X,H))};var rrz=function(X,H,l,b){this.registry=X;this.delegate=H;this.receiveMessageConstructor=l;this.createInitMessage=b;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},hnl=function(X){var H=new QDD({getMessageType:X.getPayloadCase});
return new rrz(H,new TrG(_.JC({iframe:X.child,destination:window,origin:X.origin,channelName:X.channelName,onMessage:jDQ(X.receiveMessageConstructor,H.onMessage)})),X.receiveMessageConstructor,X.createInitMessage)},JrG=function(X,H){X.createInitMessage=H};
rrz.prototype.send=function(X){if(!this.initialised)throw new rJ("Attempted to send a message before initialisation.");this.delegate.send(X)};
var L5D=function(X,H){return _.h(function(l){if(!X.initialised)throw new rJ("Attempted to send a message before initialisation.");return l.return(new Promise(function(b){X.delegate.send(H,jDQ(X.receiveMessageConstructor,b))}))})};
rrz.prototype.init=function(){var X=this;return _.h(function(H){if(X.initialised)throw new rJ("Attempted to initialise twice. The SDK can only be initialised once.");if(X.createInitMessage!==void 0){var l=X.delegate,b=l.send,U=X.createInitMessage;var K=new hnq;var w=[].concat(_.LJ(X.features));K=_.bR(K,1,w,_.Cd);b.call(l,U.call(X,K))}X.initialised=!0;_.m5(H)})};
var Lj=function(X,H){if(X.initialised)throw new rJ('Attempted to set up API "'+H+'" after initialisation. All APIs must be set up before initialising the SDK.');X.features.add(H);return X.registry};
_.ja.Object.defineProperties(rrz.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var Ywv=function(X){this.channel=X;this.registered=!1};
Ywv.prototype.update=function(X){if(this.channel.isInitialised){if(!this.registered)throw new rJ("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var H=new EU;var l=new F5Q;l=_.cb(l,1,X);H=_.G2(H,2,a$,l);this.channel.send(H)}else this.register();this.JSC$9283_audioEnabled=X};
Ywv.prototype.register=function(){Lj(this.channel,1);this.registered=!0};
Ywv.prototype.isAudioEnabled=function(){return this.JSC$9283_audioEnabled};var I3t=function(X){this.channel=X};
_.R=I3t.prototype;_.R.onFirstFrameReady=function(X){Lj(this.channel,2).register(11,function(H){H=_.ys(H.data,ViY,11,j5);if(!H)throw new rJ("Unexpectedly nonexistent GameFirstFrameReadyEvent");X(_.sC(H,1))})};
_.R.onReady=function(X){Lj(this.channel,2).register(4,function(H){H=_.ys(H.data,f3G,4,j5);if(!H)throw new rJ("Unexpectedly nonexistent GameReadyEvent");X(_.sC(H,1))})};
_.R.onLevelComplete=function(X){Lj(this.channel,2).register(5,function(H){H=_.ys(H.data,pJY,5,j5);if(!H)throw new rJ("Unexpectedly nonexistent LevelCompleteEvent");X(_.sC(H,1),_.O_(H,2))})};
_.R.onGameOver=function(X){Lj(this.channel,2).register(6,function(H){H=_.ys(H.data,PQt,6,j5);if(!H)throw new rJ("Unexpectedly nonexistent GameOverEvent");X(_.sC(H,1))})};
_.R.pause=function(){var X=this;if(!this.channel.isInitialised)return Lj(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new rJ("Using unregistered Game Feature: pause.");var H=enQ();return new Promise(function(l){return _.h(function(b){if(b.nextAddress==1)return b.yield(L5D(X.channel,H),2);l();_.m5(b)})})};
_.R.resume=function(){var X=this;if(!this.channel.isInitialised)return Lj(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new rJ("Using unregistered Game Feature: resume.");var H=yrH();return new Promise(function(l){return _.h(function(b){if(b.nextAddress==1)return b.yield(L5D(X.channel,H),2);l();_.m5(b)})})};var ArY=function(X){this.channel=X};
ArY.prototype.onReady=function(X){Lj(this.channel,5).register(8,function(H){if(!_.ys(H.data,SwH,8,j5))throw new rJ("Unexpectedly nonexistent PageReadyEvent");X()})};var X1v=function(X){this.channel=X};
X1v.prototype.onChange=function(X){Lj(this.channel,3).register(7,function(H){H=_.ys(H.data,zn_,7,j5);if(!H)throw new rJ("Unexpectedly nonexistent ScoreEvent");X(_.sC(H,1),_.O_(H,2))})};var H$H={load:function(){throw new rJ("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new rJ("Storage used, but storage.onSave() listener not set!");}},lYH=function(X){this.channel=X;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},oYC=function(X){Lj(X.channel,4).register(2,H$H.load).register(3,H$H.save);
X.initialSetupDone=!0};
lYH.prototype.onLoad=function(X){this.initialSetupDone||oYC(this);this.loadRegistered||(this.loadRegistered=!0,Lj(this.channel,4).register(2,function(H){var l,b,U;return _.h(function(K){if(K.nextAddress==1){l=_.ys(H.data,nmH,2,j5);if(!l)throw new rJ("Unexpectedly nonexistent StorageLoad");b=_.sC(l,1);return K.yield(X(b),2)}U=K.yieldResult;var w=H.reply,d=new EU;var B=new sDQ;B=_.KY(B,1,b);B=_.HB(B,2,_.EG(U,!1));d=_.G2(d,3,a$,B);w.call(H,d);_.m5(K)})}))};
lYH.prototype.onSave=function(X){this.initialSetupDone||oYC(this);this.saveRegistered||(this.saveRegistered=!0,Lj(this.channel,4).register(3,function(H){var l,b,U;return _.h(function(K){if(K.nextAddress==1){l=_.ys(H.data,kS9,3,j5);if(!l)throw new rJ("Unexpectedly nonexistent StorageSave");b=_.sC(l,1);U=QCv(l.getData());return K.yield(X(b,U),2)}var w=H.reply,d=new EU;var B=new Miv;B=_.KY(B,1,b);d=_.G2(d,4,a$,B);w.call(H,d);_.m5(K)})}))};var b$_=function(X){this.channel=X};
b$_.prototype.update=function(X){if(!this.channel.features.has(6))throw new rJ("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var H=new EU,l=new u3F;X=_.go(l,1,X);H=_.G2(H,6,a$,X);this.channel.send(H)};
b$_.prototype.register=function(){Lj(this.channel,6)};var UbD=function(X){this.channel=X;this.userActivityLoggingIntervalMs=0};
UbD.prototype.onUserActivity=function(X,H){this.userActivityLoggingIntervalMs=H;Lj(this.channel,7).register(9,function(l){if(!_.ys(l.data,xlC,9,j5))throw new rJ("Unexpectedly nonexistent ClickEvent");X()})};var $bz=function(X){var H=this;this.channel=X;this.init=this.channel.init.bind(this.channel);this.page=new ArY(this.channel);this.game=new I3t(this.channel);this.audio=new Ywv(this.channel);this.score=new X1v(this.channel);this.storage=new lYH(this.channel);this.style=new b$_(this.channel);this.userActivity=new UbD(this.channel);JrG(this.channel,function(l){var b=new BrO;l=_.go(b,1,l);l=_.Vs(l,3,H.userActivity.userActivityLoggingIntervalMs);b=H.audio.isAudioEnabled();b!==void 0&&_.cb(l,2,b);b=new EU;
return _.G2(b,5,a$,l)})};var K4Q=function(){this.timedFunctionContext=0};
K4Q.prototype.timeExecution=function(X,H){var l=this;return function(){var b=_.Ab.apply(0,arguments);l.timedFunctionContext=X;return H.apply(null,_.LJ(b))}};var RrQ=function(){var X={};this.priorityTasks=(X[3]=[],X[2]=[],X[1]=[],X);this.isFlushing=!1},i1=function(X,H,l){var b=C1z(X,l);
X.priorityTasks[l].push(H);b&&X.priorityTasks[l].length===1&&X.flush()},C1z=function(X,H){return Object.keys(X.priorityTasks).map(function(l){return Number(l)}).filter(function(l){return!isNaN(l)&&l>H}).every(function(l){return X.priorityTasks[l].length===0})};
RrQ.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(X){return X.length>0});)w1D(this,3),w1D(this,2),w1D(this,1)}catch(X){throw Object.values(this.priorityTasks).forEach(function(H){return void H.splice(0,H.length)}),X;
}finally{this.isFlushing=!1}}};
var w1D=function(X,H){for(;C1z(X,H)&&X.priorityTasks[H].length>0;)X.priorityTasks[H][0](),X.priorityTasks[H].shift()};
_.ja.Object.defineProperties(RrQ.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(X){return X.length>0})}}});var ViK={};var dbD=globalThis.trustedTypes,sDy=dbD,u3b;var iR=function(X){this.privateDoNotAccessOrElseWrappedResourceUrl=X};
iR.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var hrQ,F4Y,BX_,qH6,soY,MNv,uPt,er6;hrQ=_.W8([""]);F4Y=tv(["\x00"],["\\0"]);BX_=tv(["\n"],["\\n"]);qH6=tv(["\x00"],["\\u0000"]);soY=_.W8([""]);MNv=tv(["\x00"],["\\0"]);uPt=tv(["\n"],["\\n"]);er6=tv(["\x00"],["\\u0000"]);_.ynt=yrO(function(X){return X(hrQ)})||yrO(function(X){return X(F4Y)})||yrO(function(X){return X(BX_)})||yrO(function(X){return X(qH6)});
_.VNz=_.mz(soY)&&_.mz(MNv)&&_.mz(uPt)&&_.mz(er6);var LX;_.T2=function(X,H){this.privateDoNotAccessOrElseWrappedUrl=H};
_.T2.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.P1F=Na("about:blank");LX=Na("about:invalid#zClosurez");var PQ8=function(X){this.isValid=X},fYH=new PQ8(function(X){return/^[^:]*([/?#]|$)/.test(X)}),p1v=ro("data"),SHv=ro("http"),zrH=ro("https"),nY_=ro("ftp"),k8v=ro("mailto"),xb9=ro("intent"),Db9=ro("vnd.youtube"),f3y=[p1v,
SHv,zrH,k8v,nY_,fYH],SwO=Zr(function(){return typeof URL==="function"}),tN9=["data:",
"http:","https:","mailto:","ftp:"],nmO=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var lQ=function(X){this.privateDoNotAccessOrElseWrappedHtml=X};
lQ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var hVk=Zr(function(){return new lQ(dbD?dbD.emptyHTML:"")});var W4q={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"},xlz=function(X,H){var l=Error.call(this,X+" cannot be used with intent "+W4q[H]);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.type=X;this.intent=H;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.S(xlz,Error);_.hr=function(X){this.privateDoNotAccessOrElseWrappedScript=X};
_.hr.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var tim=function(X){this.privateDoNotAccessOrElseWrappedAttributePrefix=X};
tim.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var W5L="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var yb=function(X){this.privateDoNotAccessOrElseWrappedStyleSheet=X};
yb.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var ehW=function(X){var H=_.ij("window.location.href");X==null&&(X='Unknown Error of type "null/undefined"');if(typeof X==="string")return{message:X,name:"Unknown error",lineNumber:"Not available",fileName:H,stack:"Not available"};var l=!1;try{var b=X.lineNumber||X.line||"Not available"}catch(w){b="Not available",l=!0}try{var U=X.fileName||X.filename||X.sourceURL||_.ok.$googDebugFname||H}catch(w){U="Not available",l=!0}H=EY6(X);if(!(!l&&X.lineNumber&&X.fileName&&X.stack&&X.message&&X.name)){l=X.message;
if(l==null){if(X.constructor&&X.constructor instanceof Function){if(X.constructor.name)l=X.constructor.name;else if(l=X.constructor,Yg[l])l=Yg[l];else{l=String(l);if(!Yg[l]){var K=/function\s+([^\(]+)/m.exec(l);Yg[l]=K?K[1]:"[Anonymous]"}l=Yg[l]}l='Unknown Error of type "'+l+'"'}else l="Unknown Error of unknown type";typeof X.toString==="function"&&Object.prototype.toString!==X.toString&&(l+=": "+X.toString())}return{message:l,name:X.name||"UnknownError",lineNumber:b,fileName:U,stack:H||"Not available"}}return{message:X.message,
name:X.name,lineNumber:X.lineNumber,fileName:X.fileName,stack:H}},EY6=function(X,H){H||(H={});
H[gYz(X)]=!0;var l=X.stack||"",b=X.cause;b&&!H[gYz(b)]&&(l+="\nCaused by: ",b.stack&&b.stack.indexOf(b.toString())==0||(l+=typeof b==="string"?b:b.message+"\n"),l+=EY6(b,H));X=X.errors;if(Array.isArray(X)){b=1;var U;for(U=0;U<X.length&&!(b>4);U++)H[gYz(X[U])]||(l+="\nInner error "+b++ +": ",X[U].stack&&X[U].stack.indexOf(X[U].toString())==0||(l+=typeof X[U]==="string"?X[U]:X[U].message+"\n"),l+=EY6(X[U],H));U<X.length&&(l+="\n... "+(X.length-U)+" more inner errors")}return l},gYz=function(X){var H=
"";
typeof X.toString==="function"&&(H=""+X);return H+X.stack},Yg={};var q48,L$,Nn,G8H,aYF,i$D,ZM,Pi,O$v;q48=function(X,H){for(var l=X.split("%s"),b="",U=Array.prototype.slice.call(arguments,1);U.length&&l.length>1;)b+=l.shift()+U.shift();return b+l.join("%s")};
_.YY=function(X){return encodeURIComponent(String(X))};
L$=function(X){return decodeURIComponent(X.replace(/\+/g," "))};
Nn=function(X){UZ_.test(X)&&(X.indexOf("&")!=-1&&(X=X.replace(AQQ,"&amp;")),X.indexOf("<")!=-1&&(X=X.replace(XpH,"&lt;")),X.indexOf(">")!=-1&&(X=X.replace(HdF,"&gt;")),X.indexOf('"')!=-1&&(X=X.replace(lA_,"&quot;")),X.indexOf("'")!=-1&&(X=X.replace(oU9,"&#39;")),X.indexOf("\x00")!=-1&&(X=X.replace(bd9,"&#0;")));return X};
_.Z$Q=function(X){return _.hy(X,"&")?"document"in _.ok?G8H(X):aYF(X):X};
G8H=function(X){var H={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var l=_.ok.document.createElement("div");return X.replace(i$D,function(b,U){var K=H[b];if(K)return K;U.charAt(0)=="#"&&(U=Number("0"+U.slice(1)),isNaN(U)||(K=String.fromCharCode(U)));K||(_.Ml(l,bQ(b+" ")),K=l.firstChild.nodeValue.slice(0,-1));return H[b]=K})};
aYF=function(X){return X.replace(/&([^;]+);/g,function(H,l){switch(l){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return l.charAt(0)!="#"||(l=Number("0"+l.slice(1)),isNaN(l))?H:String.fromCharCode(l)}})};
i$D=/&([^;\s<&]+);?/g;_.zkl=function(X){return String(X).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.vY9=String.prototype.repeat?function(X,H){return X.repeat(H)}:function(X,H){return Array(H+1).join(X)};
_.IV=function(X,H){if(!Number.isFinite(X))return String(X);X=String(X);var l=X.indexOf(".");l===-1&&(l=X.length);var b=X[0]==="-"?"-":"";b&&(X=X.substring(1));return b+(0,_.vY9)("0",Math.max(0,H-l))+X};
ZM=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.QC()).toString(36)};
Pi=function(X){for(var H=0,l=0;l<X.length;++l)H=31*H+X.charCodeAt(l)>>>0;return H};
_.IK=function(X){return String(X).replace(/\-([a-z])/g,function(H,l){return l.toUpperCase()})};
_.YE=function(X){return String(X).replace(/([A-Z])/g,"-$1").toLowerCase()};
O$v=function(X){return X.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(H,l,b){return l+b.toUpperCase()})};var mbC=function(){this.names=new Map};
mbC.prototype.getName=function(X){var H=this.names.get(X);if(H)return H;var l;H=(l=X.description)!=null?l:ZM();this.names.set(X,H);return H};var QoC=function(X){var H=Error.call(this,X?X.length+" errors occurred during unsubscription:\n"+X.map(function(l,b){return b+1+") "+l.toString()}).join("\n  "):"");
this.message=H.message;"stack"in H&&(this.stack=H.stack);this.errors=X;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.S(QoC,Error);var fJ=function(X){this.initialTeardown=X;this.closed=!1;this._teardowns=this._parentage=null};
_.R=fJ.prototype;
_.R.unsubscribe=function(){if(!this.closed){this.closed=!0;var X=this._parentage;if(Array.isArray(X))for(var H=_.C(X),l=H.next();!l.done;l=H.next())l.value.remove(this);else X==null||X.remove(this);H=this.initialTeardown;if(Vb(H))try{H()}catch(K){var b=K instanceof QoC?K.errors:[K]}var U=this._teardowns;if(U)for(this._teardowns=null,H=_.C(U),l=H.next();!l.done;l=H.next()){l=l.value;try{Vb(l)?l():l.unsubscribe()}catch(K){l=void 0,b=(l=b)!=null?l:[],K instanceof QoC?b=[].concat(_.LJ(b),_.LJ(K.errors)):
b.push(K)}}if(b)throw new QoC(b);}};
_.R.add=function(X){if(X&&X!==this)if(this.closed)Vb(X)?X():X.unsubscribe();else{if(X instanceof fJ){if(X.closed||X._hasParent(this))return;X._addParent(this)}var H;(this._teardowns=(H=this._teardowns)!=null?H:[]).push(X)}};
_.R._hasParent=function(X){var H=this._parentage;return H===X||Array.isArray(H)&&H.includes(X)};
_.R._addParent=function(X){var H=this._parentage;this._parentage=Array.isArray(H)?(H.push(X),H):H?[H,X]:X};
_.R._removeParent=function(X){var H=this._parentage;H===X?this._parentage=null:Array.isArray(H)&&ZJW(H,X)};
_.R.remove=function(X){var H=this._teardowns;H&&ZJW(H,X);X instanceof fJ&&X._removeParent(this)};
var TXC=new fJ;TXC.closed=!0;fJ.JSC$9379_EMPTY=TXC;var vmy=function(){setTimeout.apply(null,_.LJ(_.Ab.apply(0,arguments)))};var AC=function(X){fJ.call(this);this.JSC$9384_isStopped=!1;this.destination=X instanceof AC?X:new XK(!X||Vb(X)?{next:X!=null?X:void 0}:X);iJk(X)&&X.add(this)};
_.S(AC,fJ);AC.JSC$9379_EMPTY=fJ.JSC$9379_EMPTY;AC.create=function(X,H,l){return new H0(X,H,l)};
_.R=AC.prototype;_.R.next=function(X){this.JSC$9384_isStopped||this._next(X)};
_.R.error=function(X){this.JSC$9384_isStopped||(this.JSC$9384_isStopped=!0,this._error(X))};
_.R.complete=function(){this.JSC$9384_isStopped||(this.JSC$9384_isStopped=!0,this._complete())};
_.R.unsubscribe=function(){this.closed||(this.JSC$9384_isStopped=!0,fJ.prototype.unsubscribe.call(this))};
_.R._next=function(X){this.destination.next(X)};
_.R._error=function(X){this.destination.error(X);this.unsubscribe()};
_.R._complete=function(){this.destination.complete();this.unsubscribe()};
var XK=function(X){this.partialObserver=X};
XK.prototype.next=function(X){var H=this.partialObserver;if(H.next)try{H.next(X)}catch(l){Si(l)}};
XK.prototype.error=function(X){var H=this.partialObserver;if(H.error)try{H.error(X)}catch(l){Si(l)}else Si(X)};
XK.prototype.complete=function(){var X=this.partialObserver;if(X.complete)try{X.complete()}catch(H){Si(H)}};
var H0=function(X,H,l){AC.call(this);var b;Vb(X)||!X?b={next:X!=null?X:void 0,error:H!=null?H:void 0,complete:l!=null?l:void 0}:b=X;this.destination=new XK(b)};
_.S(H0,AC);H0.JSC$9379_EMPTY=AC.JSC$9379_EMPTY;H0.create=AC.create;var xm=typeof Symbol==="function"&&Symbol.observable||"@@observable";var km=function(X){X&&(this._subscribe=X)};
_.R=km.prototype;_.R.lift=function(X){var H=new km;H.source=this;H.operator=X;return H};
_.R.subscribe=function(X,H,l){X=X&&X instanceof AC||X&&Vb(X.next)&&Vb(X.error)&&Vb(X.complete)&&iJk(X)?X:new H0(X,H,l);H=this.operator;l=this.source;X.add(H?H.call(X,l):l?this._subscribe(X):this._trySubscribe(X));return X};
_.R._trySubscribe=function(X){try{return this._subscribe(X)}catch(H){X.error(H)}};
_.R.forEach=function(X,H){var l=this;H=mlW(H);return new H(function(b,U){var K=l.subscribe(function(w){try{X(w)}catch(d){U(d),K==null||K.unsubscribe()}},U,b)})};
_.R._subscribe=function(X){var H;return(H=this.source)==null?void 0:H.subscribe(X)};
km.prototype[xm]=function(){return this};
km.prototype.pipe=function(){var X=_.Ab.apply(0,arguments);return X.length?OJN(X)(this):this};
km.create=function(X){return new km(X)};var NXH=function(){var X=Error.call(this,"object unsubscribed");this.message=X.message;"stack"in X&&(this.stack=X.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.S(NXH,Error);var G8=function(){this.observers=[];this.hasError=this.JSC$9400_isStopped=this.closed=!1;this.thrownError=null};
_.S(G8,km);_.R=G8.prototype;_.R.lift=function(X){var H=new lK(this,this);H.operator=X;return H};
_.R._throwIfClosed=function(){if(this.closed)throw new NXH;};
_.R.next=function(X){this._throwIfClosed();if(!this.JSC$9400_isStopped){var H=this.observers.slice();H=_.C(H);for(var l=H.next();!l.done;l=H.next())l.value.next(X)}};
_.R.error=function(X){this._throwIfClosed();if(!this.JSC$9400_isStopped){this.hasError=this.JSC$9400_isStopped=!0;this.thrownError=X;for(var H=this.observers;H.length;)H.shift().error(X)}};
_.R.complete=function(){this._throwIfClosed();if(!this.JSC$9400_isStopped){this.JSC$9400_isStopped=!0;for(var X=this.observers;X.length;)X.shift().complete()}};
_.R.unsubscribe=function(){this.JSC$9400_isStopped=this.closed=!0;this.observers=null};
_.R._trySubscribe=function(X){this._throwIfClosed();return km.prototype._trySubscribe.call(this,X)};
_.R._subscribe=function(X){this._throwIfClosed();this._checkFinalizedStatuses(X);return this._innerSubscribe(X)};
_.R._innerSubscribe=function(X){var H=this,l=this.JSC$9400_isStopped,b=this.observers;return this.hasError||l?fJ.JSC$9379_EMPTY:(b.push(X),new fJ(function(){return ZJW(H.observers,X)}))};
_.R._checkFinalizedStatuses=function(X){var H=this.thrownError,l=this.JSC$9400_isStopped;this.hasError?X.error(H):l&&X.complete()};
G8.create=function(X,H){return new lK(X,H)};
var lK=function(X,H){G8.call(this);this.destination=X;this.source=H};
_.S(lK,G8);lK.create=G8.create;lK.prototype.next=function(X){var H,l;(H=this.destination)==null||(l=H.next)==null||l.call(H,X)};
lK.prototype.error=function(X){var H,l;(H=this.destination)==null||(l=H.error)==null||l.call(H,X)};
lK.prototype.complete=function(){var X,H;(X=this.destination)==null||(H=X.complete)==null||H.call(X)};
lK.prototype._subscribe=function(X){var H,l;return(l=(H=this.source)==null?void 0:H.subscribe(X))!=null?l:fJ.JSC$9379_EMPTY};var pY=function(X){G8.call(this);this._value=X};
_.S(pY,G8);pY.create=G8.create;pY.prototype._subscribe=function(X){var H=G8.prototype._subscribe.call(this,X);!H.closed&&X.next(this._value);return H};
pY.prototype.getValue=function(){var X=this.thrownError,H=this._value;if(this.hasError)throw X;this._throwIfClosed();return H};
pY.prototype.next=function(X){G8.prototype.next.call(this,this._value=X)};
_.ja.Object.defineProperties(pY.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var l1=new km(function(X){return X.complete()});var crO=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var YwW=function(X){return X&&typeof X.length==="number"&&typeof X!=="function"};var cnQ={now:function(){return(cnQ.delegate||Date).now()},
delegate:void 0};var Mb=function(X,H,l){X=X===void 0?Infinity:X;H=H===void 0?Infinity:H;l=l===void 0?cnQ:l;G8.call(this);this.bufferSize=X;this.windowTime=H;this.timestampProvider=l;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=H===Infinity;this.bufferSize=Math.max(1,X);this.windowTime=Math.max(1,H)};
_.S(Mb,G8);Mb.create=G8.create;Mb.prototype.next=function(X){var H=this.buffer,l=this.infiniteTimeWindow,b=this.timestampProvider,U=this.windowTime;this.JSC$9400_isStopped||(H.push(X),!l&&H.push(b.now()+U));joQ(this);G8.prototype.next.call(this,X)};
Mb.prototype._subscribe=function(X){this._throwIfClosed();joQ(this);for(var H=this._innerSubscribe(X),l=this.infiniteTimeWindow,b=this.buffer.slice(),U=0;U<b.length&&!X.closed;U+=l?1:2)X.next(b[U]);this._checkFinalizedStatuses(X);return H};
var joQ=function(X){var H=X.bufferSize,l=X.timestampProvider,b=X.buffer;X=X.infiniteTimeWindow;var U=(X?1:2)*H;H<Infinity&&U<b.length&&b.splice(0,b.length-U);if(!X){H=l.now();l=0;for(X=1;X<b.length&&b[X]<=H;X+=2)l=X;l&&b.splice(0,l+1)}};var JnD=function(X,H){H=H===void 0?rnG:H;this.schedulerActionCtor=X;this.now=H};
JnD.prototype.schedule=function(X,H,l){H=H===void 0?0:H;return(new this.schedulerActionCtor(this,X)).schedule(l,H)};
var rnG=cnQ.now;var Qoz=function(){var X=Error.call(this,"no elements in sequence");this.message=X.message;"stack"in X&&(this.stack=X.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.S(Qoz,Error);var ji=function(X,H,l,b,U){AC.call(this,X);this.onUnsubscribe=U;H&&(this._next=function(K){try{H(K)}catch(w){this.destination.error(w)}});
l&&(this._error=function(K){try{l(K)}catch(w){this.destination.error(w)}this.unsubscribe()});
b&&(this._complete=function(){try{b()}catch(K){this.destination.error(K)}this.unsubscribe()})};
_.S(ji,AC);ji.JSC$9379_EMPTY=AC.JSC$9379_EMPTY;ji.create=AC.create;ji.prototype.unsubscribe=function(){var X;this.closed||(X=this.onUnsubscribe)!=null&&X.call(this);AC.prototype.unsubscribe.call(this)};var qb=function(X,H){this.source=X;this.subjectFactory=H;this._subject=null;this._refCount=0;this._connection=null};
_.S(qb,km);qb.create=km.create;qb.prototype._subscribe=function(X){return L4z(this).subscribe(X)};
var L4z=function(X){var H=X._subject;if(!H||H.JSC$9400_isStopped)X._subject=X.subjectFactory();return X._subject};
qb.prototype._teardown=function(){this._refCount=0;var X=this._connection;this._subject=this._connection=null;X==null||X.unsubscribe()};
qb.prototype.connect=function(){var X=this,H=this._connection;if(!H){H=this._connection=new fJ;var l=L4z(this);H.add(this.source.subscribe(new ji(l,void 0,function(b){X._teardown();l.error(b)},function(){X._teardown();
l.complete()},function(){return X._teardown()})));
H.closed&&(this._connection=null,H=fJ.JSC$9379_EMPTY)}return H};var C1h=Array.isArray;var dbm=Array.isArray,YHv=Object,hrN=YHv.getPrototypeOf,F4K=YHv.prototype,BXy=YHv.keys;var Ar=function(X,H,l){AC.call(this,X);this._next=H;this.shouldComplete=l};
_.S(Ar,AC);Ar.JSC$9379_EMPTY=AC.JSC$9379_EMPTY;Ar.create=AC.create;Ar.prototype._complete=function(){this.shouldComplete()?AC.prototype._complete.call(this):this.unsubscribe()};var fYO=["addListener","removeListener"],P1b=["addEventListener","removeEventListener"],SHW=["on","off"];var o4=function(){fJ.call(this)};
_.S(o4,fJ);o4.JSC$9379_EMPTY=fJ.JSC$9379_EMPTY;o4.prototype.schedule=function(){return this};var IYQ=function(X,H){return setInterval.apply(null,[X,H].concat(_.LJ(_.Ab.apply(2,arguments))))};var bK=function(X,H){fJ.call(this);this.scheduler=X;this.work=H;this.pending=!1};
_.S(bK,o4);bK.JSC$9379_EMPTY=o4.JSC$9379_EMPTY;bK.prototype.schedule=function(X,H){H=H===void 0?0:H;if(this.closed)return this;this.state=X;X=this.id;var l=this.scheduler;X!=null&&(this.id=An9(this,X,H));this.pending=!0;this.delay=H;this.id=this.id||this.requestAsyncId(l,this.id,H);return this};
bK.prototype.requestAsyncId=function(X,H,l){l=l===void 0?0:l;return IYQ(X.flush.bind(X,this),l)};
var An9=function(X,H,l){l=l===void 0?0:l;if(l!=null&&X.delay===l&&X.pending===!1)return H;clearInterval(H)};
bK.prototype.execute=function(X,H){if(this.closed)return Error("ia");this.pending=!1;if(X=this._execute(X,H))return X;this.pending===!1&&this.id!=null&&(this.id=An9(this,this.id,null))};
bK.prototype._execute=function(X){var H=!1;try{this.work(X)}catch(b){H=!0;var l=!!b&&b||Error(b)}if(H)return this.unsubscribe(),l};
bK.prototype.unsubscribe=function(){if(!this.closed){var X=this.id,H=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;ZJW(H,this);X!=null&&(this.id=An9(this,X,null));this.delay=null;o4.prototype.unsubscribe.call(this)}};var XbH=function(X,H){H=H===void 0?rnG:H;JnD.call(this,X,H);this.actions=[];this.active=!1;this.scheduled=void 0};
_.S(XbH,JnD);XbH.prototype.flush=function(X){var H=this.actions;if(this.active)H.push(X);else{var l;this.active=!0;do if(l=X.execute(X.state,X.delay))break;while(X=H.shift());this.active=!1;if(l){for(;X=H.shift();)X.unsubscribe();throw l;}}};var d9=new km(pJ);var zrO=Array.isArray;var UQ=function(X,H){bK.call(this,X,H);this.scheduler=X;this.work=H};
_.S(UQ,bK);UQ.JSC$9379_EMPTY=bK.JSC$9379_EMPTY;UQ.prototype.schedule=function(X,H){H=H===void 0?0:H;if(H>0)return bK.prototype.schedule.call(this,X,H);this.delay=H;this.state=X;this.scheduler.flush(this);return this};
UQ.prototype.execute=function(X,H){return H>0||this.closed?bK.prototype.execute.call(this,X,H):this._execute(X,H)};
UQ.prototype.requestAsyncId=function(X,H,l){l=l===void 0?0:l;return l!=null&&l>0||l==null&&this.delay>0?bK.prototype.requestAsyncId.call(this,X,H,l):X.flush(this)};var HYF=function(){XbH.apply(this,arguments)};
_.S(HYF,XbH);var K4y=new HYF(UQ);var leD=function(){this.performanceMonitor=new K4Q;this.queue=new RrQ;this.internalSymbol=Symbol();this.debugNames=new mbC};
leD.prototype.getOnBackgrounded=function(){return d9};
_.ja.Object.defineProperties(leD.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var $o=function(X,H){H=Error.call(this,H?X+": "+H:String(X));this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=X;this.__proto__=$o.prototype;this.name=String(X)};
_.S($o,Error);var hj=function(X){$o.call(this,1E3,'sfr:"'+X+'"');this.measurementStrategyFailureReason=X;this.__proto__=hj.prototype};
_.S(hj,$o);var Fv=function(){$o.call(this,1003);this.__proto__=Fv.prototype};
_.S(Fv,$o);var Kx=function(){$o.call(this,1009);this.__proto__=Kx.prototype};
_.S(Kx,$o);var oOF=function(){$o.call(this,1011);this.__proto__=oOF.prototype};
_.S(oOF,$o);var bYt=function(){$o.call(this,1007);this.__proto__=Fv.prototype};
_.S(bYt,$o);var CY=function(X){$o.call(this,1004,String(X));this.inputObservableIndex=X;this.__proto__=CY.prototype};
_.S(CY,$o);var zBy=function(X){$o.call(this,1010,X);this.__proto__=nem.prototype};
_.S(zBy,$o);var nem=function(X){$o.call(this,1005,X);this.__proto__=nem.prototype};
_.S(nem,$o);var UzF=function(X){var H=_.Ab.apply(1,arguments),l=this;this.orderedFactories=[];this.orderedFactories.push(X);H.forEach(function(b){l.orderedFactories.push(b)})};
UzF.prototype.isSupported=function(X){return this.orderedFactories.some(function(H){return H.isSupported(X)})};
UzF.prototype.makeBeacon=function(X,H){for(var l=0;l<this.orderedFactories.length;l++)if(this.orderedFactories[l].isSupported(H))return this.orderedFactories[l].makeBeacon(X,H);throw new Kx;};var q2k=Symbol("ja"),$zQ=Symbol("ka"),$Y=function(X,H){this.value=X;this.timeline=H},UH=function(X,H){if(H.timeline!==X.timeline)throw new bYt;
return X.value-H.value};
_.R=$Y.prototype;_.R.equals=function(X){return UH(this,X)===0};
_.R.maximum=function(X){if(X.timeline!==this.timeline)throw new bYt;return this.value>=X.value?this:X};
_.R.round=function(){return new $Y(Math.round(this.value),this.timeline)};
_.R.add=function(X){return new $Y(this.value+X,this.timeline)};
_.R.toString=function(){return String(this.value)};var R4=function(X,H){this.context=X;this.JSC$9506_pinger=H};
R4.prototype.isSupported=function(X){return this.JSC$9506_pinger.isSupported(X)};
R4.prototype.makeBeacon=function(X,H){if(!this.isSupported(H))throw new Kx;return new Cx(this.context,this.JSC$9506_pinger,H!=null?H:void 0,X)};
var Cx=function(X,H,l,b){var U=this;this.JSC$9512_pinger=H;this.properties=l;this.url=b;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var K;this.method=(K=l==null?void 0:l.beaconMethod)!=null?K:"GET";this.backgroundedSubscription=X.getOnBackgrounded().subscribe(function(){U.sendNow()})};
Cx.prototype.deactivate=function(){this.internalIsPending=!1};
Cx.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 X,H;this.JSC$9512_pinger.pingWithHeadersAndBody((X=this.properties)!=null?X:{},this.customHeaders,(H=this.body)!=null?H:"",this.url)}else this.JSC$9512_pinger.ping(this.url);this.internalIsPending=!1}catch(l){}else this.internalIsPending=!1};
Cx.prototype.setHeader=function(X,H){this.customHeaders.set(X,H)};
_.ja.Object.defineProperties(Cx.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Rm9=function(){for(var X=_.C(_.Ab.apply(0,arguments)),H=X.next();!H.done;H=X.next())if(H=H.value,H.available()){this.timeProvider=H;return}this.timeProvider=new KZG};
_.R=Rm9.prototype;_.R.available=function(){return this.timeProvider.available()};
_.R.now=function(){return this.timeProvider.now()};
_.R.setTimeout=function(X,H){return this.timeProvider.setTimeout(X,H)};
_.R.clearTimeout=function(X){this.timeProvider.clearTimeout(X)};
_.R.interval=function(X,H){var l=this.intervalObservable(X).subscribe(H);return function(){return void l.unsubscribe()}};
_.R.intervalObservable=function(X){return this.timeProvider.intervalObservable(X)};
_.ja.Object.defineProperties(Rm9.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var KZG=function(){this.timeline=Symbol()};
_.R=KZG.prototype;_.R.available=function(){return!1};
_.R.now=function(){return new $Y(0,this.timeline)};
_.R.setTimeout=function(){return 0};
_.R.clearTimeout=function(){};
_.R.interval=function(){return function(){}};
_.R.intervalObservable=function(){return d9};var w1=function(X,H){this.intrinsicFunctionNamespace=X;this.performanceMonitor=H};
_.R=w1.prototype;_.R.setTimeout=function(X,H){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,X),H)};
_.R.clearTimeout=function(X){this.intrinsicFunctionNamespace.clearTimeout(X)};
_.R.interval=function(X,H){var l=this.intervalObservable(X).subscribe(H);return function(){return void l.unsubscribe()}};
_.R.intervalObservable=function(X){var H=this;return new km(function(l){var b=0,U=H.intrinsicFunctionNamespace.setInterval(function(){l.next(b++)},X);
return function(){H.intrinsicFunctionNamespace.clearInterval(U)}})};
_.R.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var CBD=function(X,H){w1.call(this,X,H);this.timeline=$zQ};
_.S(CBD,w1);CBD.prototype.now=function(){return new $Y(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
CBD.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&w1.prototype.available.call(this)};var wbD=function(X,H){w1.call(this,X,H);this.timeline=q2k};
_.S(wbD,w1);wbD.prototype.now=function(){return new $Y(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
wbD.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&w1.prototype.available.call(this)};var hmD=function(X){this.context=X;if(dzQ===void 0)a:{var H,l,b=(H=X.global)==null?void 0:(l=H.document)==null?void 0:l.createElement("meta");if(b)try{b.httpEquiv="origin-trial";b.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";X.global.document.head.append(b);dzQ=b;break a}catch(U){}dzQ=void 0}},
dzQ;
hmD.prototype.isSupported=function(X){return aYb(this.context)!==void 0&&!(X==null||!X.endOfSession)&&!d1(this.context)&&!(X==null?0:X.attributionEnabled)&&!(X==null?0:X.customHeaders)&&!(X==null?0:X.customBody)};
hmD.prototype.makeBeacon=function(X,H){if(!this.isSupported(H))throw new Kx;return new hf(this.context,X,H)};
var hf=function(X,H,l){this.context=X;this.properties=l;this.JSC$9539_urlWithoutToken=H;var b;this.beaconMethod=(b=l==null?void 0:l.beaconMethod)!=null?b:"GET";X=aYb(this.context);if(X===void 0)throw Error();this.fetchLater=X;FZ6(this,B9Y(this))},FZ6=function(X,H){X.beaconResult&&X.beaconResult.activated||(X.beaconAbort=new AbortController,X.beaconResult=X.fetchLater(H,{method:X.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:X.beaconAbort.signal,activateAfter:96E4}))},B9Y=function(X){X=X.JSC$9539_urlWithoutToken;
return(X.slice(-1)[0]==="&"?X:X+"&")+"flapi=1"};
hf.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
hf.prototype.sendNow=function(){};
hf.prototype.setHeader=function(){};
_.ja.Object.defineProperties(hf.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9539_urlWithoutToken},
set:function(X){this.JSC$9539_urlWithoutToken=X;X=B9Y(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);FZ6(this,X)}},
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 q_Q=function(X){this.context=X};
q_Q.prototype.isSupported=function(){return!d1(this.context)&&!!this.context.global.fetch};
q_Q.prototype.ping=function(){var X=this;return oo.apply(null,_.LJ(_.Ab.apply(0,arguments).map(function(H){return WJ(X.context.global.fetch(H,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(Jr(function(l){return l.status===200}))}))).pipe(TXz(function(H){return H}),cnN())};
q_Q.prototype.pingWithHeadersAndBody=function(X,H,l){for(var b=_.Ab.apply(3,arguments),U=this,K=new Headers,w=_.C(H.entries()),d=w.next();!d.done;d=w.next()){var B=_.C(d.value);d=B.next().value;B=B.next().value;K.set(d,B)}var q,u=(q=X.keepAlive)!=null?q:!1;oo.apply(null,_.LJ(b.map(function(e){return WJ(U.context.global.fetch(e,Object.assign({},{method:String(X.beaconMethod),cache:"no-cache"},u?{keepalive:!0}:{},{mode:"no-cors",headers:K,body:l}))).pipe(Jr(function(y){return y.status===200}))}))).pipe(TXz(function(e){return e}),
cnN())};var sZF,XsW,MPG;_.FK=function(){};
_.GK=function(X){return X};
sZF=function(X){var H=H||0;return function(){return X.apply(this,Array.prototype.slice.call(arguments,0,H))}};
_.B0=function(X){var H=!1,l;return function(){H||(l=X(),H=!0);return l}};
_.qO=function(X,H){var l=0;return function(b){_.ok.clearTimeout(l);var U=arguments;l=_.ok.setTimeout(function(){X.apply(void 0,U)},H)}};
XsW=function(X,H){var l=0,b=!1,U=[],K=function(){l=0;b&&(b=!1,w())},w=function(){l=_.ok.setTimeout(K,H);
var d=U;U=[];X.apply(void 0,d)};
return function(d){U=arguments;l?b=!0:w()}};
MPG=function(X,H){var l=0,b=function(){l=0};
return function(U){l||(l=_.ok.setTimeout(b,H),X.apply(void 0,arguments))}};var sQ=function(X,H,l,b,U){this.allowedElements=X;this.elementPolicies=H;this.allowedGlobalAttributes=l;this.globalAttributePolicies=b;this.globallyAllowedAttributePrefixes=U},uvC=function(X,H,l){l=X.elementPolicies.get(l);
return(l==null?0:l.has(H))?l.get(H):X.allowedGlobalAttributes.has(H)?{policyAction:1}:(l=X.globalAttributePolicies.get(H))?l:X.globallyAllowedAttributePrefixes&&[].concat(_.LJ(X.globallyAllowedAttributePrefixes)).some(function(b){return H.indexOf(b)===0})?{policyAction:1}:{policyAction:0}};var emD="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(" "),
yj9=[["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}]])]],VPq="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(" "),
PBD=[["dir",{policyAction:3,conditions:Zr(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Zr(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Zr(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Zr(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],feY=new sQ(new Set(emD),new Map(yj9),new Set(VPq),new Map(PBD)),pbC=new sQ(new Set(emD.concat(["BUTTON",
"INPUT"])),new Map(yj9),new Set(Zr(function(){return VPq.concat(["class","id","name"])})),new Map(Zr(function(){return PBD.concat([["style",
{policyAction:1}]])})));var S_z,zmt,kpv;S_z=function(X,H,l,b,U){this.JSC$9596_sanitizerTable=X;this.styleElementSanitizer=H;this.styleAttributeSanitizer=l;this.JSC$9596_resourceUrlPolicy=b;this.JSC$9596_navigationUrlPolicy=U;this.changes=[]};
_.nOC=function(X,H){var l=document.implementation.createHTMLDocument("");X=zmt(X,H,l);l=l.body;l.appendChild(X);l=(new XMLSerializer).serializeToString(l);l=l.slice(l.indexOf(">")+1,l.lastIndexOf("</"));return bQ(l)};
zmt=function(X,H,l){H=bY8(H,l);H=document.createTreeWalker(H,5,function(d){if(d.nodeType===3)d=1;else if($zN(d))if(d=Uzb(d),d===null)d=2;else{var B=X.JSC$9596_sanitizerTable;d=d!=="FORM"&&(B.allowedElements.has(d)||B.elementPolicies.has(d))?1:2}else d=2;return d});
for(var b=H.nextNode(),U=l.createDocumentFragment(),K=U;b!==null;){var w=void 0;if(b.nodeType===3)X.styleElementSanitizer&&K.nodeName==="STYLE"?(b=X.styleElementSanitizer(b.data),w=X.createTextNode(b)):w=X.createTextNode(b.data);else if($zN(b))w=kpv(X,b,l);else throw Error("$");K.appendChild(w);if(b=H.firstChild())K=w;else for(;!(b=H.nextSibling())&&(b=H.parentNode());)K=K.parentNode}return U};
S_z.prototype.createTextNode=function(X){return document.createTextNode(X)};
kpv=function(X,H,l){var b,U=Uzb(H);l=l.createElement(U);H=H.attributes;for(var K=_.C(H),w=K.next();!w.done;w=K.next()){var d=w.value;w=d.name;d=d.value;var B=uvC(X.JSC$9596_sanitizerTable,w,U);a:{if(b=B.conditions){b=_.C(b);for(var q=b.next();!q.done;q=b.next()){var u=_.C(q.value);q=u.next().value;u=u.next().value;var e=void 0;if((q=(e=H.getNamedItem(q))==null?void 0:e.value)&&!u.has(q)){b=!1;break a}}}b=!0}if(b)switch(B.policyAction){case 1:SN(l,w,d);break;case 2:throw Error();case 3:SN(l,w,d.toLowerCase());
break;case 4:X.styleAttributeSanitizer?(d=X.styleAttributeSanitizer(d),SN(l,w,d)):SN(l,w,d);break;case 5:X.JSC$9596_resourceUrlPolicy?(B={type:2,attributeName:w,elementName:U},d=oOb(d),(d=X.JSC$9596_resourceUrlPolicy(d,B))&&SN(l,w,d.toString())):SN(l,w,d);break;case 6:if(X.JSC$9596_resourceUrlPolicy){B={type:2,attributeName:w,elementName:U};b=[];d=_.C(d.split(","));for(q=d.next();!q.done;q=d.next())u=_.C(q.value.trim().split(/\s+/,2)),q=u.next().value,u=u.next().value,b.push({url:q,descriptor:u});
d={parts:[]};b=_.C(b);for(q=b.next();!q.done;q=b.next())q=q.value,u=oOb(q.url),(u=X.JSC$9596_resourceUrlPolicy(u,B))&&d.parts.push({url:u.toString(),descriptor:q.descriptor});SN(l,w,KZy(d))}else SN(l,w,d);break;case 7:B=d;if(X.JSC$9596_navigationUrlPolicy){B={type:2,attributeName:w,elementName:U};d=oOb(d);d=X.JSC$9596_navigationUrlPolicy(d,B);if(d===null)break;B=d.toString()}d=B;B=_.zny(d);B=B!==void 0&&tN9.indexOf(B.toLowerCase())!==-1?d:"about:invalid#zClosurez";SN(l,w,B)}}return l};
_.xzt=Zr(function(){return new S_z(feY)});
_.Dz6=Zr(function(){return new S_z(pbC)});var tPq=function(){this.calledBuild=!1;this.JSC$9608_sanitizerTable=feY},WZC=function(){tPq.apply(this,arguments)};
_.S(WZC,tPq);WZC.prototype.build=function(){if(this.calledBuild)throw Error("ma");this.calledBuild=!0;return new S_z(this.JSC$9608_sanitizerTable,void 0,void 0,this.JSC$9608_resourceUrlPolicy,this.JSC$9608_navigationUrlPolicy)};var EOH=/[^#]*/;var Jnm={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"},gO_=_.B0(function(){return YHW()}),
aeH=function(){var X=GpY("IFRAME"),H={};
_.Ot(gO_(),function(l){X.sandbox&&X.sandbox.supports&&X.sandbox.supports(l)&&(H[l]=!0)});
return H},GpY=function(X,H){H=H===void 0?document:H;
return H.createElement(String(X).toLowerCase())};_.R=_.DY.prototype;_.R.clone=function(){return new _.DY(this.x,this.y)};
_.R.equals=function(X){return X instanceof _.DY&&(this==X?!0:this&&X?this.x==X.x&&this.y==X.y:!1)};
_.R.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.R.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.R.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.R.translate=function(X,H){X instanceof _.DY?(this.x+=X.x,this.y+=X.y):(this.x+=Number(X),typeof H==="number"&&(this.y+=H));return this};
_.R.scale=function(X,H){this.x*=X;this.y*=typeof H==="number"?H:X;return this};_.R=_.tn.prototype;_.R.clone=function(){return new _.tn(this.width,this.height)};
_.R.area=function(){return this.width*this.height};
_.R.aspectRatio=function(){return this.width/this.height};
_.R.isEmpty=function(){return!this.area()};
_.R.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.R.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.R.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.R.scale=function(X,H){this.width*=X;this.height*=typeof H==="number"?H:X;return this};var ZY_;_.Bb={};ZY_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Bb.add=function(X,H,l){if(X!==null&&H in X)throw Error("oa`"+H);X[H]=l};
_.Bb.clear=function(X){for(var H in X)delete X[H]};
_.Bb.clone=function(X){var H={},l;for(l in X)H[l]=X[l];return H};
_.Bb.contains=function(X,H){return hmm(X,H)};
_.Bb.containsKey=function(X,H){return X!==null&&H in X};
_.Bb.containsValue=hmm;_.Bb.create=q_N;_.Bb.createImmutableView=function(X){var H=X;Object.isFrozen&&!Object.isFrozen(X)&&(H=Object.create(X),Object.freeze(H));return H};
_.Bb.createSet=sZb;_.Bb.equals=function(X,H){for(var l in X)if(!(l in H)||X[l]!==H[l])return!1;for(var b in H)if(!(b in X))return!1;return!0};
_.Bb.every=function(X,H,l){for(var b in X)if(!H.call(l,X[b],b,X))return!1;return!0};
_.Bb.extend=function(X,H){for(var l,b,U=1;U<arguments.length;U++){b=arguments[U];for(l in b)X[l]=b[l];for(var K=0;K<ZY_.length;K++)l=ZY_[K],Object.prototype.hasOwnProperty.call(b,l)&&(X[l]=b[l])}};
_.Bb.filter=function(X,H,l){var b={},U;for(U in X)H.call(l,X[U],U,X)&&(b[U]=X[U]);return b};
_.Bb.findKey=FZL;_.Bb.findValue=function(X,H,l){return(H=FZL(X,H,l))&&X[H]};
_.Bb.forEach=function(X,H,l){for(var b in X)H.call(l,X[b],b,X)};
_.Bb.get=function(X,H,l){return X!==null&&H in X?X[H]:l};
_.Bb.getAllPropertyNames=function(X,H,l){if(!X)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return dzy(X);for(var b={};X&&(X!==Object.prototype||H)&&(X!==Function.prototype||l);){for(var U=Object.getOwnPropertyNames(X),K=0;K<U.length;K++)b[U[K]]=!0;X=Object.getPrototypeOf(X)}return dzy(b)};
_.Bb.getAnyKey=function(X){for(var H in X)return H};
_.Bb.getAnyValue=function(X){for(var H in X)return X[H]};
_.Bb.getCount=function(X){var H=0,l;for(l in X)H++;return H};
_.Bb.getKeys=dzy;_.Bb.getSuperClass=function(X){return(X=Object.getPrototypeOf(X.prototype))&&X.constructor};
_.Bb.getValueByKeys=function(X,H){var l=_.ch(H),b=l?H:arguments;for(l=l?0:1;l<b.length;l++){if(X==null)return;X=X[b[l]]}return X};
_.Bb.getValues=function(X){var H=[],l=0,b;for(b in X)H[l++]=X[b];return H};
_.Bb.isEmpty=function(X){for(var H in X)return!1;return!0};
_.Bb.isImmutableView=function(X){return!!Object.isFrozen&&Object.isFrozen(X)};
_.Bb.map=function(X,H,l){var b={},U;for(U in X)b[U]=H.call(l,X[U],U,X);return b};
_.Bb.remove=function(X,H){var l;(l=H in X)&&delete X[H];return l};
_.Bb.set=function(X,H,l){X[H]=l};
_.Bb.setIfUndefined=function(X,H,l){return H in X?X[H]:X[H]=l};
_.Bb.setWithReturnValueIfNotSet=function(X,H,l){if(H in X)return X[H];l=l();return X[H]=l};
_.Bb.some=function(X,H,l){for(var b in X)if(H.call(l,X[b],b,X))return!0;return!1};
_.Bb.transpose=function(X){var H={},l;for(l in X)H[X[l]]=l;return H};
_.Bb.unsafeClone=B9K;var tS=function(X,H){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=X===P4z&&H||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=iYz};
tS.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var vOQ=function(X){return X instanceof tS&&X.constructor===tS&&X.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===iYz?X.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},iYz={},P4z={};
new tS(P4z,"");var $O,lI,uK,OY9,T9G,QZH,Mz,cjF,rj9,jZ9,P0,JjQ,UQW,H8t,XEY,lMq,oe_,b8Y,UFH,Oqb,$FQ,RBY,CIz,KK_,MO;$O=function(X){return X?new MO(_.uB(X)):JQ6||(JQ6=new MO)};
_.iE=function(X,H){return typeof H==="string"?X.getElementById(H):H};
lI=function(X,H){return(H||document).getElementsByTagName(String(X))};
_.mzY=function(X){return OY9("yt-formatted-string","paper-input-input",X)};
uK=function(X,H,l,b){X=b||X;return(H=H&&H!="*"?String(H).toUpperCase():"")||l?X.querySelectorAll(H+(l?"."+l:"")):X.getElementsByTagName("*")};
OY9=function(X,H,l){var b=document,U=X&&X!="*"?String(X).toUpperCase():"";return U||H?(l||b).querySelector(U+(H?"."+H:"")):uK(b,X,H,l)[0]||null};
T9G=function(X,H){_.Bb.forEach(H,function(l,b){b=="style"?X.style.cssText=l:b=="class"?X.className=l:b=="for"?X.htmlFor=l:QZH.hasOwnProperty(b)?X.setAttribute(QZH[b],l):_.Ky(b,"aria-")||_.Ky(b,"data-")?X.setAttribute(b,l):X[b]=l})};
QZH={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"};_.bB=function(X){X=(X||window).document;X=X.compatMode=="CSS1Compat"?X.documentElement:X.body;return new _.tn(X.clientWidth,X.clientHeight)};
_.N9_=function(X){var H=_.eH(X);X=X.defaultView;return new _.DY((X==null?void 0:X.pageXOffset)||H.scrollLeft,(X==null?void 0:X.pageYOffset)||H.scrollTop)};
_.eH=function(X){return X.scrollingElement?X.scrollingElement:_.XQ||X.compatMode!="CSS1Compat"?X.body||X.documentElement:X.documentElement};
Mz=function(X){return X?X.defaultView:window};
_.yT=function(X,H,l){return cjF(document,arguments)};
cjF=function(X,H){var l=H[1],b=jZ9(X,String(H[0]));l&&(typeof l==="string"?b.className=l:Array.isArray(l)?b.className=l.join(" "):T9G(b,l));H.length>2&&rj9(X,b,H,2);return b};
rj9=function(X,H,l,b){function U(d){d&&H.appendChild(typeof d==="string"?X.createTextNode(d):d)}
for(;b<l.length;b++){var K=l[b];if(!_.ch(K)||_.r8(K)&&K.nodeType>0)U(K);else{a:{if(K&&typeof K.length=="number"){if(_.r8(K)){var w=typeof K.item=="function"||typeof K.item=="string";break a}if(typeof K==="function"){w=typeof K.item=="function";break a}}w=!1}_.Ot(w?_.NW(K):K,U)}}};
_.XJ=function(X){return jZ9(document,X)};
jZ9=function(X,H){H=String(H);X.contentType==="application/xhtml+xml"&&(H=H.toLowerCase());return X.createElement(H)};
_.VT=function(){return document.createTextNode("\n")};
P0=function(X){if(X.nodeType!=1)return!1;switch(X.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};
JjQ=function(X,H){rj9(_.uB(X),X,arguments,1)};
_.fx=function(X){for(var H;H=X.firstChild;)X.removeChild(H)};
_.px=function(X,H){H.parentNode&&H.parentNode.insertBefore(X,H)};
_.SH=function(X,H){H.parentNode&&H.parentNode.insertBefore(X,H.nextSibling)};
_.HE=function(X){return X&&X.parentNode?X.parentNode.removeChild(X):null};
_.LZY=function(X,H){var l=H.parentNode;l&&l.replaceChild(X,H)};
_.Y_t=function(X){var H,l=X.parentNode;if(l&&l.nodeType!=11)if(X.removeNode)X.removeNode(!1);else{for(;H=X.firstChild;)l.insertBefore(H,X);_.HE(X)}};
_.za=function(X){return X.children!=void 0?X.children:Array.prototype.filter.call(X.childNodes,function(H){return H.nodeType==1})};
_.AjC=function(X){return X.nextElementSibling!==void 0?X.nextElementSibling:_.IeG(X.nextSibling,!0)};
_.IeG=function(X,H){for(;X&&X.nodeType!=1;)X=H?X.nextSibling:X.previousSibling;return X};
_.rv=function(X){return _.r8(X)&&X.nodeType==1};
_.aA=function(X,H){if(!X||!H)return!1;if(X.contains&&H.nodeType==1)return X==H||X.contains(H);if(typeof X.compareDocumentPosition!="undefined")return X==H||!!(X.compareDocumentPosition(H)&16);for(;H&&X!=H;)H=H.parentNode;return H==X};
UQW=function(X,H){if(X==H)return 0;if(X.compareDocumentPosition)return X.compareDocumentPosition(H)&2?1:-1;if("sourceIndex"in X||X.parentNode&&"sourceIndex"in X.parentNode){var l=X.nodeType==1,b=H.nodeType==1;if(l&&b)return X.sourceIndex-H.sourceIndex;var U=X.parentNode,K=H.parentNode;return U==K?XEY(X,H):!l&&_.aA(U,H)?-1*H8t(X,H):!b&&_.aA(K,X)?H8t(H,X):(l?X.sourceIndex:U.sourceIndex)-(b?H.sourceIndex:K.sourceIndex)}b=_.uB(X);l=b.createRange();l.selectNode(X);l.collapse(!0);X=b.createRange();X.selectNode(H);
X.collapse(!0);return l.compareBoundaryPoints(_.ok.Range.START_TO_END,X)};
H8t=function(X,H){var l=X.parentNode;if(l==H)return-1;for(;H.parentNode!=l;)H=H.parentNode;return XEY(H,X)};
XEY=function(X,H){for(;H=H.previousSibling;)if(H==X)return-1;return 1};
lMq=function(X){var H,l=arguments.length;if(!l)return null;if(l==1)return arguments[0];var b=[],U=Infinity;for(H=0;H<l;H++){for(var K=[],w=arguments[H];w;)K.unshift(w),w=w.parentNode;b.push(K);U=Math.min(U,K.length)}K=null;for(H=0;H<U;H++){w=b[0][H];for(var d=1;d<l;d++)if(w!=b[d][H])return K;K=w}return K};
_.uB=function(X){return X.nodeType==9?X:X.ownerDocument||X.document};
oe_=function(X){return X.contentDocument||X.contentWindow.document};
_.nx=function(X,H){if("textContent"in X)X.textContent=H;else if(X.nodeType==3)X.data=String(H);else if(X.firstChild&&X.firstChild.nodeType==3){for(;X.lastChild!=X.firstChild;)X.removeChild(X.lastChild);X.firstChild.data=String(H)}else _.fx(X),X.appendChild(_.uB(X).createTextNode(String(H)))};
b8Y={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};UFH={IMG:" ",BR:"\n"};Oqb=function(X){var H;X.tagName=="A"&&X.hasAttribute("href")||X.tagName=="INPUT"||X.tagName=="TEXTAREA"||X.tagName=="SELECT"||X.tagName=="BUTTON"?H=!X.disabled&&(!X.hasAttribute("tabindex")||$FQ(X)):H=X.hasAttribute("tabindex")&&$FQ(X);return H};
$FQ=function(X){X=X.tabIndex;return typeof X==="number"&&X>=0&&X<32768};
RBY=function(X){var H=[];KK_(X,H,!0);X=H.join("");X=X.replace(/ \xAD /g," ").replace(/\xAD/g,"");X=X.replace(/\u200B/g,"");X=X.replace(/ +/g," ");X!=" "&&(X=X.replace(/^\s*/,""));return X};
CIz=function(X){var H=[];KK_(X,H,!1);return H.join("")};
KK_=function(X,H,l){if(!(X.nodeName in b8Y))if(X.nodeType==3)l?H.push(String(X.nodeValue).replace(/(\r\n|\r|\n)/g,"")):H.push(X.nodeValue);else if(X.nodeName in UFH)H.push(UFH[X.nodeName]);else for(X=X.firstChild;X;)KK_(X,H,l),X=X.nextSibling};
_.wEC=function(X,H,l){if(!H&&!l)return null;var b=H?String(H).toUpperCase():null;return _.yo(X,function(U){return(!b||U.nodeName==b)&&(!l||typeof U.className==="string"&&_.vh(U.className.split(/\s+/),l))},!0)};
_.yo=function(X,H,l){X&&!l&&(X=X.parentNode);for(l=0;X;){if(H(X))return X;X=X.parentNode;l++}return null};
MO=function(X){this.JSC$9636_document_=X||_.ok.document||document};
_.R=MO.prototype;_.R.getElement=function(X){return _.iE(this.JSC$9636_document_,X)};
_.R.$=MO.prototype.getElement;_.R.getElementsByTagName=function(X,H){return(H||this.JSC$9636_document_).getElementsByTagName(String(X))};
_.R.getElementsByTagNameAndClass=function(X,H,l){return uK(this.JSC$9636_document_,X,H,l)};
_.R.$$=MO.prototype.getElementsByTagNameAndClass;_.R.setProperties=T9G;_.R.JSC$9638_createDom=function(X,H,l){return cjF(this.JSC$9636_document_,arguments)};
_.R.createElement=function(X){return jZ9(this.JSC$9636_document_,X)};
_.R.createTextNode=function(X){return this.JSC$9636_document_.createTextNode(String(X))};
_.R.getWindow=function(){return this.JSC$9636_document_.defaultView};
var U_=function(X){return _.N9_(X.JSC$9636_document_)};
_.R=MO.prototype;_.R.appendChild=function(X,H){X.appendChild(H)};
_.R.append=JjQ;_.R.canHaveChildren=P0;_.R.removeNode=_.HE;_.R.getChildren=_.za;_.R.contains=_.aA;_.R.isFocusable=Oqb;_.R=W1.prototype;_.R.getWidth=function(){return this.right-this.left};
_.R.getHeight=function(){return this.bottom-this.top};
_.R.clone=function(){return new W1(this.top,this.right,this.bottom,this.left)};
_.R.contains=function(X){return this&&X?X instanceof W1?X.left>=this.left&&X.right<=this.right&&X.top>=this.top&&X.bottom<=this.bottom:X.x>=this.left&&X.x<=this.right&&X.y>=this.top&&X.y<=this.bottom:!1};
_.R.expand=function(X,H,l,b){_.r8(X)?(this.top-=X.top,this.right+=X.right,this.bottom+=X.bottom,this.left-=X.left):(this.top-=X,this.right+=Number(H),this.bottom+=Number(l),this.left-=Number(b));return this};
_.R.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};
_.R.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};
_.R.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};
_.R.translate=function(X,H){X instanceof _.DY?(this.left+=X.x,this.right+=X.x,this.top+=X.y,this.bottom+=X.y):(this.left+=X,this.right+=X,typeof H==="number"&&(this.top+=H,this.bottom+=H));return this};
_.R.scale=function(X,H){H=typeof H==="number"?H:X;this.left*=X;this.right*=X;this.top*=H;this.bottom*=H;return this};_.R=gX.prototype;_.R.clone=function(){return new gX(this.left,this.top,this.width,this.height)};
_.R.boundingRect=function(X){var H=Math.max(this.left+this.width,X.left+X.width),l=Math.max(this.top+this.height,X.top+X.height);this.left=Math.min(this.left,X.left);this.top=Math.min(this.top,X.top);this.width=H-this.left;this.height=l-this.top};
_.R.contains=function(X){return X instanceof _.DY?X.x>=this.left&&X.x<=this.left+this.width&&X.y>=this.top&&X.y<=this.top+this.height:this.left<=X.left&&this.left+this.width>=X.left+X.width&&this.top<=X.top&&this.top+this.height>=X.top+X.height};
_.R.distance=function(X){var H=X.x<this.left?this.left-X.x:Math.max(X.x-(this.left+this.width),0);X=X.y<this.top?this.top-X.y:Math.max(X.y-(this.top+this.height),0);return Math.sqrt(H*H+X*X)};
_.R.getSize=function(){return new _.tn(this.width,this.height)};
_.R.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};
_.R.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};
_.R.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};
_.R.translate=function(X,H){X instanceof _.DY?(this.left+=X.x,this.top+=X.y):(this.left+=X,typeof H==="number"&&(this.top+=H));return this};
_.R.scale=function(X,H){H=typeof H==="number"?H:X;this.left*=X;this.width*=X;this.top*=H;this.height*=H;return this};var hBD,DO,o3K,xo,sA6,qTD,MOv,$Qb,uJt,yo_;_.ko=function(X,H,l){if(typeof H==="string")(H=_.dF9(X,H))&&(X.style[H]=l);else for(var b in H){l=X;var U=H[b],K=_.dF9(l,b);K&&(l.style[K]=U)}};
hBD={};_.dF9=function(X,H){var l=hBD[H];if(!l){var b=_.IK(H);l=b;X.style[b]===void 0&&(b=(_.XQ?"Webkit":_.Hf?"Moz":null)+O$v(b),X.style[b]!==void 0&&(l=b));hBD[H]=l}return l};
_.rj=function(X,H){var l=_.uB(X);return l.defaultView&&l.defaultView.getComputedStyle&&(X=l.defaultView.getComputedStyle(X,null))?X[H]||X.getPropertyValue(H)||"":""};
_.GB=function(X,H){return _.rj(X,H)||(X.currentStyle?X.currentStyle[H]:null)||X.style&&X.style[H]};
_.FK_=function(X){return _.GB(X,"position")};
DO=function(X,H,l){if(H instanceof _.DY){var b=H.x;H=H.y}else b=H,H=l;X.style.left=xo(b,!1);X.style.top=xo(H,!1)};
o3K=function(X){try{return X.getBoundingClientRect()}catch(H){return{left:0,top:0,right:0,bottom:0}}};
_.eP=function(X){var H=_.uB(X),l=new _.DY(0,0);if(X==(H?_.uB(H):document).documentElement)return l;X=o3K(X);H=U_($O(H));l.x=X.left+H.x;l.y=X.top+H.y;return l};
_.Bv_=function(X,H,l){if(H instanceof _.tn)l=H.height,H=H.width;else if(l==void 0)throw Error("pa");X.style.width=xo(H,!0);X.style.height=xo(l,!0)};
xo=function(X,H){typeof X=="number"&&(X=(H?Math.round(X):X)+"px");return X};
sA6=function(X){return qTD(X)};
qTD=function(X){var H=MOv;if(_.GB(X,"display")!="none")return H(X);var l=X.style,b=l.display,U=l.visibility,K=l.position;l.visibility="hidden";l.position="absolute";l.display="inline";X=H(X);l.display=b;l.position=K;l.visibility=U;return X};
MOv=function(X){var H=X.offsetWidth,l=X.offsetHeight,b=_.XQ&&!H&&!l;return(H===void 0||b)&&X.getBoundingClientRect?(X=o3K(X),new _.tn(X.right-X.left,X.bottom-X.top)):new _.tn(H,l)};
$Qb=function(X){var H=_.eP(X);X=qTD(X);return new gX(H.x,H.y,X.width,X.height)};
uJt=function(X,H){X=X.style;"opacity"in X?X.opacity=H:"MozOpacity"in X?X.MozOpacity=H:"filter"in X&&(X.filter=H===""?"":"alpha(opacity="+Number(H)*100+")")};
_.mK=function(X,H){X.style.display=H?"":"none"};
_.eB_=function(X){return"rtl"==_.GB(X,"direction")};
yo_=function(X){var H=_.rj(X,"marginLeft"),l=_.rj(X,"marginRight"),b=_.rj(X,"marginTop");X=_.rj(X,"marginBottom");return new W1(parseFloat(b),parseFloat(l),parseFloat(X),parseFloat(H))};
_.VOt=function(X){var H=_.rj(X,"borderLeftWidth"),l=_.rj(X,"borderRightWidth"),b=_.rj(X,"borderTopWidth");X=_.rj(X,"borderBottomWidth");return new W1(parseFloat(b),parseFloat(l),parseFloat(X),parseFloat(H))};var tf=function(X){this.context=X};
tf.prototype.isSupported=function(X){return(X==null?0:X.attributionEnabled)||(X==null?void 0:X.beaconMethod)==="POST"||(X==null?0:X.customHeaders)||(X==null?0:X.customBody)||(X==null?0:X.keepAlive)?!1:!d1(this.context)};
tf.prototype.ping=function(){var X=this;return TS(_.Ab.apply(0,arguments).map(function(H){try{var l=X.context.global,b=!1;b=b===void 0?!1:b;l.google_image_requests||(l.google_image_requests=[]);var U=GpY("IMG",l.document);b&&(U.attributionSrc="");U.src=H;l.google_image_requests.push(U);return!0}catch(K){return!1}}).every(function(H){return H}))};
tf.prototype.pingWithHeadersAndBody=function(X,H,l){this.ping.apply(this,_.LJ(_.Ab.apply(3,arguments)))};var PI_=function(X){this.context=X};
PI_.prototype.isSupported=function(X){return fM6&&!d1(this.context)&&MPy(this.context)!==void 0&&!(X==null?0:X.attributionEnabled)&&(X==null?void 0:X.beaconMethod)!=="POST"&&!(X==null?0:X.customHeaders)&&!(X==null?0:X.customBody)};
PI_.prototype.makeBeacon=function(X,H){if(!this.isSupported(H))throw new Kx;return new W0(this.context,X)};
var fM6=!1,W0=function(X,H){this.context=X;this.JSC$9657_urlWithoutToken=H;X=MPy(this.context);if(X===void 0)throw Error();this.wrappedBeacon=new X(pE_(this),{})},pE_=function(X){X=X.JSC$9657_urlWithoutToken;
return(X.slice(-1)[0]==="&"?X:X+"&")+"pbapi=1"};
W0.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
W0.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
W0.prototype.setHeader=function(){};
_.ja.Object.defineProperties(W0.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9657_urlWithoutToken},
set:function(X){this.JSC$9657_urlWithoutToken=X;this.wrappedBeacon.setURL(pE_(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(X){if(X!=="GET")throw new Kx;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var STt=function(X){this.context=X};
STt.prototype.isSupported=function(X){if((X==null?0:X.attributionEnabled)||(X==null?void 0:X.beaconMethod)==="GET"||(X==null?0:X.customHeaders)||(X==null?0:X.customBody)||(X==null?0:X.keepAlive))return!1;var H;return!d1(this.context)&&((H=this.context.global.navigator)==null?void 0:H.sendBeacon)!==void 0};
STt.prototype.ping=function(){var X=this;return TS(_.Ab.apply(0,arguments).map(function(H){var l;return(l=X.context.global.navigator)==null?void 0:l.sendBeacon(H)}).every(function(H){return H}))};
STt.prototype.pingWithHeadersAndBody=function(X,H,l){this.ping.apply(this,_.LJ(_.Ab.apply(3,arguments)))};var v1=function(X){this.value=X},tj=function(X,H){return TS(X.value).pipe(ZY(H))},E_=new v1(!1),qtK=new v1(!0);var Vo=function(X){this.value=X;this.releasedSubject=new G8};
Vo.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.ja.Object.defineProperties(Vo.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9670_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var DzL=["FRAME","IMG","IFRAME"],pbz=/^[01](px)?$/,xz8=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},kpW=function(){var X=new xz8;
X.crossDomainLoadedDefault=!0;X.pendingImagesBlockLoad=!0;return X};var zB_=function(X,H){var l=ZYk(X);if(l)if(l.onCreativeLoad)l.onCreativeLoad(H);else{var b=H?[H]:[],U=function(K){for(var w=0;w<b.length;++w)try{b[w](1,K)}catch(d){}b={push:function(d){d(1,K)}}};
l.onCreativeLoad=function(K){b.push(K)};
l.setAttribute("data-creative-load-listener","");l.addEventListener("creativeLoad",function(K){U(K.detail)});
_.ok.addEventListener("message",function(K){aeO(l,U,K)})}};var EQ=function(X,H){var l=this;this.global=X;this.parentContext=H;this.JSC$9681_onVisibilityChange=this.document?oo(TS(!0),H1(this.document,"visibilitychange")).pipe(K$(this.parentContext.performanceMonitor,748),Jr(function(){return l.getVisibilityState()}),FP()):TS("visible");
this.document?H1(this.document,"DOMContentLoaded").pipe(K$(this.parentContext.performanceMonitor,739),hn(1)):TS(PBm("DOMContentLoaded"))},Bxl=function(X){return X.document!==null&&X.document.visibilityState!==void 0};
EQ.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
EQ.prototype.querySelector=function(X){return this.document?this.document.querySelector(X):null};
EQ.prototype.querySelectorAll=function(X){return this.document?_.NW(this.document.querySelectorAll(X)):[]};
EQ.prototype.elementFromPoint=function(X,H){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;X=this.document.elementFromPoint(X,H);return X===null?null:new Vo(X)};
var oyO=function(X,H,l){l=l===void 0?!1:l;if(H.ref===void 0||!X.document)return TS(H).pipe(K$(X.parentContext.performanceMonitor,749));var b=new Mb(1),U=function(){b.next(H)};
l||zB_(H.ref,U);tPl(H.ref,U);return b.pipe(K$(X.parentContext.performanceMonitor,749),hn(1))};
_.ja.Object.defineProperties(EQ.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return IYy(this.global,"document")?this.global.document||null:null}}});var iYh=_.W8(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),vON=_.W8(["./reach_worklet.js"]),OYZ=_.W8(["./reach_worklet.js"]),neD=_.W8(["./reach_worklet.html"]),kBH=_.W8(["./reach_worklet.js"]),xFF=_.W8(["./reach_worklet.js"]);_.z8(neD);_.z8(kBH);_.z8(xFF);var SP={left:0,top:0,width:0,height:0};var cjb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),oey=/#|$/,b8K=/[?&]($|#)/;var PIk=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(PIk,_.sU);var VO8=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(VO8,_.sU);var qTm=function(X,H){return _.KY(X,2,H)},yoy=function(X,H){return _.KY(X,3,H)};
VO8.prototype.getModel=function(){return _.sC(this,4)};
var MOW=function(X,H){return _.KY(X,4,H)},Bvy=function(X,H){return _.KY(X,5,H)},eBy=function(X,H){return _.KY(X,9,H)},FKk=function(X,H){return Cj(X,10,H)},hBm=function(X,H){return _.cb(X,11,H)},sAL=function(X,H){return _.KY(X,1,H)},uJ8=function(X,H){return _.cb(X,7,H)};var wEz="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Wb=function(X,H,l,b){X=X===void 0?window:X;H=H===void 0?null:H;l=l===void 0?new K4Q:l;b=b===void 0?mzK():b;leD.call(this);var U=this;this.global=X;this.debugChannel=H;this.performanceMonitor=l;this.onPageHide=VNh(function(){return H1(U.global,"pagehide")}).pipe(K$(this.performanceMonitor,941));
this.onLoad=VNh(function(){return H1(U.global,"load")}).pipe(K$(this.performanceMonitor,738),hn(1));
this.onResize=VNh(function(){return H1(U.global,"resize")}).pipe(K$(this.performanceMonitor,741));
this.onMessage=VNh(function(){return H1(U.global,"message")}).pipe(K$(this.performanceMonitor,740));
this.document=new EQ(this.global,this);this.timeProvider=new Rm9(new wbD(this.intrinsicFunctionNamespace,this.performanceMonitor),new CBD(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new UzF(new hmD(this),new PI_(this),new R4(this,new q_Q(this)),new R4(this,new STt(this)),new R4(this,new tf(this)))};
_.S(Wb,leD);Wb.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(X){return X}};
var d1=function(X){var H=X.global;return!!X.global.HTMLFencedFrameElement&&!!H.fence&&typeof H.fence.reportEvent==="function"};
_.R=Wb.prototype;_.R.reportFencedFrameEvent=function(X){d1(this)&&this.global.fence.reportEvent(X)};
_.R.getOnBackgrounded=function(){return this.onPageHide.pipe(K$(this.performanceMonitor,942),ZY(this.queue),Jr(function(){}))};
_.R.postMessage=function(X,H,l){l=l===void 0?[]:l;this.global.postMessage(X,H,l)};
_.R.getWidth=function(){return AnZ(this.global)?this.global.width:0};
_.R.getHeight=function(){return AnZ(this.global)?this.global.height:0};
_.R.isMobile=function(){return XbO()||HYb()};
var Pb=function(X,H){try{var l=KKy(H,X.global,X.isMobile());return{left:l.left,top:l.top,width:l.getWidth(),height:l.getHeight()}}catch(b){return SP}};
Wb.prototype.validate=function(){var X=this.beaconFactory.isSupported()||d1(this);return this.global&&this.timeProvider.available()&&X};
var emm=function(X){return(X=pEk(X.global))?WJ(X):null};
_.ja.Object.defineProperties(Wb.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(X){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(X){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!AnZ(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}}});_.DFF=!_.Jv&&!_.ezy();var s08=function(X){return X};var uiZ=function(X){return X.pipe(b1(function(H){var l=H.endOfSessionReason;var b;return((b=H.viewable)==null?void 0:b.extrapolateToNow().value)||l!=void 0}),hn(1),C$())};var tOh=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},WKy=function(X){var H=X.sequenceNumber.toString(10).padStart(2,"0");
H=""+X.startTime+H;X.sequenceNumber<99&&X.sequenceNumber++;return H};var Fuz=nJ(f$(function(X){return X.endOfSessionReason===void 0}),Jr(function(X){return Object.assign({},X,{timestamps:w9(X)})}),b1(function(X){var H=X.viewable;
X=X.timestamps;var l;return(l=H==null?void 0:H.extrapolateUsingTimestampMap(X).value)!=null?l:!1}),Jr(function(X){var H=X.beaconFactory;
var l=X.timestampedExposureHistory;var b=X.timeOnScreen;var U=X.binaryContext;X=X.timestamps;if(H===void 0||l===void 0||b===void 0||U===void 0)return!1;if(b.extrapolateUsingTimestampMap(X).value.every(function(K){return K>=0}))return!0;
l=l.map(function(K){return K.timestamp+":"+K.value}).join(",");
b=Eey({bin:U,tos:b},X);H.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+b+("&eh="+l)).sendNow();return!0}),f$(function(X){return!X}),C$());var GBK=function(X){return{id:X.pingId,mcvt:X.maxConsecutiveViewTime,p:X.creativePosition,asp:X.adSpeedPosition,tm:X.totalMeasurementTime,tu:X.totalUnviewedTime,mtos:X.maxTimeOnScreen,tos:X.timeOnScreen,v:X.binaryVersion,bin:X.binaryContext,avms:X.measurementStrategy,bs:X.browserSize,mc:X.maximumExposure,"if":X.crossDomainIframeState,vu:X.delayedImpressionJsState,app:X.inApp,mse:X.mraidError,mtop:X.mraidSituation,itpl:X.injectedTemplateId,adk:X.adKey,exk:X.awbidKey,rs:X.requestSource,la:X.isLargeAd,
cr:X.isContentRecommendationAd,uach:X.userAgentClientHints,vs:X.viewState,r:X.reasonCode,pay:X.hasCpmavUrl,co:X.clientPingOrderCounter,rst:X.adRenderStartTime,rpt:X.adRenderPeriodTime,isd:X.initialScrollDepth,lsd:X.loadedScrollDepth,context:X.errorContext,msg:X.errorMessage,stack:X.errorStack,name:X.errorName,ec:X.hasElementChanged,sfr:X.strategyFailureReasons,met:X.creativeSearchResult,wmsd:X.webMeasurementStartDiagnostic,pv:X.pageVisible,epv:X.eosPageVisible,pbe:X.inStatefulBeaconExperiment,fle:X.inFetchLaterBeaconExperiment,
vae:X.inViewableAttributionExperiment,spb:X.supportsPendingBeacon,sfl:X.supportsFetchLater,ffslot:X.isFencedFrameSlotTurtlex,reach:X.sharedStorageReachMode,io2:X.v2VisibilityBitVector,rxdbg:X.rxDebugger,omida:X.omidAppId,omidp:X.omidPartner,omidpv:X.omidPartnerVersion,omidor:X.omidOcclusionReasons,omidv:X.omidVersion,omids:X.omidSessionType,omidam:X.omidAccessMode,omidct:X.omidCreativeType,omidia:X.omidInApp,omiddc:X.omidDeviceCategory,omidlat:X.omidLastActivity,omiddit:X.omidDeviceIdleTime,qid:X.errorEscapedQueryId}};var MJW=function(X){var H=[];return X.pipe(Jr(function(l){var b=l.beaconFactory,U=l.fetchBeaconFactory,K=l.timeOnScreen,w=l.timeOnScreenUrlPrefixes,d=l.payloadMapper,B=l.timeOnScreenPingId,q=l.timeOnScreenReason,u=l.urlSerializer,e=l.viewable,y=l.hasImpressionFired,V=l.inStatefulBeaconExperiment,p=l.supportsPendingBeacon,z=l.supportsFetchLater,t=l.turtlexReportEventData;if(!l.geometryMeasurable||!y||l.maxTimeOnScreen===void 0||K===void 0||w===void 0||d===void 0||B===void 0||u===void 0||b===void 0)return!1;
if(l.isTurtlex){if(q===void 0)return!1;w=l.reportFencedFrameEvent;if(!w)return!1;w({eventType:"active-view-time-on-screen",eventData:t!=null?t:"",destination:["buyer"]});return!0}if(!(V||z||q))return!1;t=w9(l);var W;e=(W=e==null?void 0:e.extrapolateUsingTimestampMap(t).value)!=null?W:!1;W=u(Object.assign({},l,{pingId:B,viewState:e?4:3,reasonCode:q!=null?q:"u",payloadMapper:d,urlPrefixes:w}),t);if(V){for(;H.length>w.length;)l=void 0,(l=H.shift())==null||l.deactivate();W.forEach(function(r,Q){Q>=H.length?
H.push(b.makeBeacon(r)):H[Q].url=r});
return p&&U&&q!==void 0?(W.forEach(function(r){U.makeBeacon(r).sendNow()}),!0):q!==void 0}if(p&&U&&q!==void 0)return W.forEach(function(r){U.makeBeacon(r).sendNow()}),!0;
if(z&&U){for(;H.length>w.length;)p=void 0,(p=H.shift())==null||p.deactivate();var G=u(Object.assign({},l,{pingId:B,viewState:e?4:3,reasonCode:q!=null?q:"u",payloadMapper:d,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),t)[0];W.forEach(function(r,Q){Q>=H.length?H.push(b.makeBeacon(G,{endOfSession:!0})):H[Q].url=G});
return q!==void 0?(W.forEach(function(r){U.makeBeacon(r).sendNow()}),!0):q!==void 0}return q!==void 0?(W.forEach(function(r){b.makeBeacon(r).sendNow()}),!0):!1}),f$(function(l){return!l}),C$())};var eO8=nJ(b1(function(X){return X.immediateUrlPrefixes!==void 0&&X.payloadMapper!==void 0&&X.urlSerializer!==void 0&&X.inferredPingId!==void 0&&X.beaconFactory!==void 0}),b1(function(X){return Tvb(X)!==null}),mF8(function(X){return X.activeViewUnmeasurableEvent},function(X){return X.emit}),Jr(function(X){if(X.isTurtlex){var H=X.reportFencedFrameEvent;
if(H){var l;H({eventType:"active-view-unmeasurable",eventData:(l=X.turtlexReportEventData)!=null?l:"",destination:["buyer"]})}}else{l=void 0;var b=Tvb(X);if(b==="x"){var U,K=(U=X.geometricMeasurementErrors)!=null?U:X.contextValidationErrors;K&&(H=K.stack,l=K.message)}X.urlSerializer(Object.assign({},X,{urlPrefixes:X.immediateUrlPrefixes,payloadMapper:X.payloadMapper,pingId:X.inferredPingId,viewState:2,reasonCode:b,errorMessage:l,errorStack:H}),w9(X)).forEach(function(w){X.beaconFactory.makeBeacon(w).sendNow()})}}),
hn(1),C$());var NvL=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var hOy=nJ(b1(function(X){return X.payloadMapper!==void 0&&X.immediateUrlPrefixes!==void 0&&X.urlSerializer!==void 0&&X.inferredPingId!==void 0&&X.beaconFactory!==void 0}),Jr(function(X){return Object.assign({},X,{timestamps:w9(X)})}),b1(function(X){var H=X.viewable;
var l=X.hasImpressionFired;X=X.timestamps;var b;return!!l&&((b=H==null?void 0:H.extrapolateUsingTimestampMap(X).value)!=null?b:!1)}),mF8(function(X){return X.activeViewViewableEvent},function(X){return X.emit}),Jr(function(X){var H=X.beaconFactory,l=X.turtlexReportEventData;
if(X.isTurtlex){var b=X.reportFencedFrameEvent;if(!b)return!1;b({eventType:"active-view-viewable",eventData:l!=null?l:"",destination:["buyer"]});return!0}l=X.urlSerializer(Object.assign({},X,{urlPrefixes:X.immediateUrlPrefixes,payloadMapper:X.payloadMapper,pingId:X.inferredPingId,viewState:4,reasonCode:"v"}),X.timestamps);(b=X.cpmavUrls)&&b.length>0&&X.viewUrlSerializer&&X.viewUrlSerializer(b,X).forEach(function(U){H.makeBeacon(U).sendNow()});
(b=X.viewableRelayUrls)&&b.length>0&&X.viewUrlSerializer&&X.viewUrlSerializer(b,X).forEach(function(U){H.makeBeacon(U).sendNow()});
l.forEach(function(U){H.makeBeacon(U,{attributionEnabled:X.isViewableAttributionEnabled}).sendNow()});
return!0}),f$(function(X){return!X}),C$());var GGb=Jr(function(X){return[X.value.topWindowViewportExternalGeometry.width,X.value.topWindowViewportExternalGeometry.height]});var fY=function(X,H){this.callback=X;this.options=H;this.intersectionObserverV2=this.intersectionObserverV1=null},MIb=function(X,H){H?X.intersectionObserverV2||(H=Object.assign({},X.options,{delay:100,
trackVisibility:!0}),X.intersectionObserverV2=new IntersectionObserver(X.callback,H)):X.intersectionObserverV1||(X.intersectionObserverV1=new IntersectionObserver(X.callback,X.options))},tOz=function(X,H){X=H?X.intersectionObserverV2:X.intersectionObserverV1;
if(!X)throw new oOF;return X};
fY.prototype.observe=function(X,H){tOz(this,X).observe(H)};
fY.prototype.unobserve=function(X,H){tOz(this,X).unobserve(H)};
fY.prototype.disconnect=function(X){tOz(this,X).disconnect()};
fY.prototype.takeRecords=function(X){return tOz(this,X).takeRecords()};var Usm={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:SP,topWindowViewportExternalGeometry:SP,measurementRequests:new G8,elementGeometrySourceName:"ns",elementGeometry:SP,intersectionGeometry:SP,viewportLocalAppOffset:{x:0,y:0}};var pgk=zp(nJ(Jr(function(X){var H;return(H=X.exposureOverride)!=null?H:eJO(X)}),Jr(function(X){return isFinite(X)?X:0}))),tIy=zp(nJ(Jr(function(X){var H;
return(H=X.exposureOverride)!=null?H:eJO(X)}),Jr(function(X){return isFinite(X)?X:-1})));var g1=function(X,H){this.a=X;this.b=H;if(X.clock.timeline!==H.clock.timeline)throw Error();};
g1.prototype.equivalentTo=function(X){return X instanceof g1?this.a.equivalentTo(X.a)&&this.b.equivalentTo(X.b):!1};
g1.prototype.extrapolateToTime=function(X){var H=this.a.extrapolateToTime(X).value,l=this.b.extrapolateToTime(X).value;return{timestamp:X,value:[H,l]}};
_.ja.Object.defineProperties(g1.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 X=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),H=this.a.lastMeasurement.timestamp.equals(X)?this.a.lastMeasurement.value:this.a.extrapolateToTime(X).value,l=this.b.lastMeasurement.timestamp.equals(X)?this.b.lastMeasurement.value:this.b.extrapolateToTime(X).value;return{timestamp:X,value:[H,l]}}}});var Ga=function(X,H){this.input=X;this.mapFunction=H;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Ga.prototype.equivalentTo=function(X){return X instanceof Ga?this.input.equivalentTo(X.input)&&this.mapFunction===X.mapFunction:!1};
Ga.prototype.extrapolateToTime=function(X){X=this.input.extrapolateToTime(X);return{timestamp:X.timestamp,value:this.mapFunction(X.value)}};
_.ja.Object.defineProperties(Ga.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var a4=function(){};
a4.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
a4.prototype.extrapolateUsingTimestampMap=function(X){var H=this.clock.timeline,l,b=(l=X.get(H))!=null?l:this.clock.now();X.set(H,b);return this.extrapolateToTime(b)};
a4.prototype.map=function(X){return new WKG(this,X)};
a4.prototype.joinWith=function(X){return new EeQ(this,X)};
var EeQ=function(){g1.apply(this,arguments);this.map=a4.prototype.map;this.joinWith=a4.prototype.joinWith;this.extrapolateToNow=a4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=a4.prototype.extrapolateUsingTimestampMap};
_.S(EeQ,g1);var WKG=function(){Ga.apply(this,arguments);this.map=a4.prototype.map;this.joinWith=a4.prototype.joinWith;this.extrapolateToNow=a4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=a4.prototype.extrapolateUsingTimestampMap};
_.S(WKG,Ga);var kO=function(X,H){this.lastMeasurement=H;this.extrapolateToNow=a4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=a4.prototype.extrapolateUsingTimestampMap;this.map=a4.prototype.map;this.joinWith=a4.prototype.joinWith;this.clock=X};
kO.prototype.equivalentTo=function(X){return X.active};
kO.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.ja.Object.defineProperties(kO.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var g3l=Jr(function(X){if(X.value.viewportGeometrySourceName==="omid"){if(X.value.elementGeometrySourceName==="nio")return"omio";if(X.value.elementGeometrySourceName==="geo")return"omgeo"}return X.value.elementGeometrySourceName==="geo"||X.value.elementGeometrySourceName==="nio"?X.value.viewportGeometrySourceName:X.value.elementGeometrySourceName});var VIZ=nJ(b1(function(X){return!isNaN(X)}),eN(function(X,H){return isNaN(X)?H:Math.min(X,H)},NaN),FP());var S2K=zp(nJ(Jr(function(X){return X.intersectionGeometry.width*X.intersectionGeometry.height/(X.exposedViewportLocalGeometry.width*X.exposedViewportLocalGeometry.height)}),Jr(function(X){return isFinite(X)?Math.min(1,X):0})));var E3y=nJ(zp(Jr(function(X){X=X.exposureOverride?X.elementGeometry.width*X.elementGeometry.height*X.exposureOverride/(X.topWindowViewportExternalGeometry.width*X.topWindowViewportExternalGeometry.height):X.intersectionGeometry.width*X.intersectionGeometry.height/(X.topWindowViewportExternalGeometry.width*X.topWindowViewportExternalGeometry.height);return isFinite(X)?X:0})));var iWm=function(X,H){var l=this;this.timeProvider=X;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=H.pipe(FP()).subscribe(function(b){OWy(l);l.measurementRequestObserver=b})},msh=function(X,H){OWy(X);
X.lastMeasurementRequest=X.timeProvider.setTimeout(function(){var l;return void((l=X.measurementRequestObserver)==null?void 0:l.next())},H)},OWy=function(X){X.lastMeasurementRequest!==null&&X.timeProvider.clearTimeout(X.lastMeasurementRequest);
X.lastMeasurementRequest=null};
iWm.prototype.dispose=function(){OWy(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var geH=function(){};var CjN=function(X,H){this.context=X;this.strategies=H};
_.S(CjN,geH);CjN.prototype.buildGeometrySource=function(X,H){var l=this.strategies.map(function(K){return K.buildGeometrySource(X,H)}),b=j5W(l.map(function(K){return K.geometrySource})),U=b.capturedErrors.pipe(GBY());
return{geometrySource:b.chain.pipe(ZY(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:U,strategyErrors:b.capturedErrors}].concat(_.LJ(l.map(function(K){return K.additionalOutputs}))))}};
var GBY=function(){return eN(function(X,H){H instanceof hj?X.push(H.measurementStrategyFailureReason):X.push(-1);return X},[])};var dky=function(X,H){this.context=X;this.poller=H};
_.S(dky,geH);dky.prototype.buildGeometrySource=function(X,H){var l=r18(LX8(this.context,this.poller),$sk(this.context,H.requestSource));return{geometrySource:c1k(X.measurableCreative.pipe(l),H.inApp),additionalOutputs:{}}};var w$K=function(X,H,l){l=l===void 0?hJy(X,H):l;this.context=X;this.intersectionObserverStrategy=l};
_.S(w$K,geH);w$K.prototype.buildGeometrySource=function(X,H){var l=this.intersectionObserverStrategy(H.useV2);return{geometrySource:c1k(X.measurableCreative.pipe(l,FXN(this.context)),H.inApp),additionalOutputs:{}}};var aMq=function(X,H,l){var b=b===void 0?Symbol():b;this.element=X;this.immediateUrls=H;this.timeOnScreenUrls=l;this.symbol=b};var ZWm=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Hfb=Object.freeze([1,.75,ZWm.exposureThreshold,ZWm.largeAdExposureThreshold,0]);var lny=function(X,H){H=H===void 0?36E5:H;var l=l===void 0?!0:l;this.creatives=new G8;this.elementsToUnregister=new G8;this.elementMap=new Map;var b=new Wb(window,null);b.beaconFactory=new R4(b,new tf(b));ROL(b,this.creatives,this.elementsToUnregister,X,H,l).subscribe()},UAO=function(X,H,l,b){if(!X.elementMap.has(H)){var U=new Vo(H);
X.elementMap.set(H,U);X.creatives.next(new aMq(U,l,b))}},b4y=function(X,H){X.elementsToUnregister.next(H);
var l=X.elementMap.get(H);l!==void 0&&(l.release(),X.elementMap.delete(H))};var s18=function(X){var H=X.url;X=X.uaDataValues;this.JSC$9786_url_=H;this.uaDataValues_=X;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var l=/[?&]([^&=]+)=([^&]*)/g;X=l.exec(H);)this.urlParamValues_[X[1]]=X[2]},MwO=function(X){X=X.uaDataValues_;
if(!X)return"";var H=g9("uap",X.platform)+g9("uapv",X.platformVersion)+g9("uafv",X.uaFullVersion)+g9("uaa",X.architecture)+g9("uam",X.model)+g9("uab",X.bitness);X.fullVersionList&&(H+="&uafvl="+encodeURIComponent(X.fullVersionList.map(function(l){return encodeURIComponent(l.brand)+";"+encodeURIComponent(l.version)}).join("|")));
X.wow64!=null&&(H+="&uaw="+Number(X.wow64));return H.slice(1)};var Z86=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Z86,_.sU);Z86.prototype.getId=function(){return _.sC(this,1)};var ZO=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(ZO,_.sU);ZO.prototype.getSeconds=function(){return BC(this,1)};
ZO.prototype.setSeconds=function(X){return _.$n(this,1,ye(X),"0")};_.uD=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(_.uD,_.sU);_.uD.prototype.getSeconds=function(){return BC(this,1)};
_.uD.prototype.setSeconds=function(X){return _.$n(this,1,ye(X),"0")};
_.i8q=function(X){var H=Number(ue(X,1));X=_.O_(X,2);return new Date(H*1E3+X/1E6)};var iK=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(iK,_.sU);iK.prototype.getUrl=function(){return _.sC(this,1)};
iK.prototype.setUrl=function(X){return _.Wx(this,1,X)};
iK.prototype.getHeight=function(){return _.O_(this,2)};
iK.prototype.getWidth=function(){return _.O_(this,3)};var v0=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(v0,_.sU);v0.prototype.getAspectRatio=function(){return q7(this,1)};
v0.prototype.getDuration=function(){return _.Al(this,ZO,2)};var vev=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(vev,_.sU);var O8C=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(O8C,_.sU);var mFt=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(mFt,_.sU);var QAq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(QAq,_.sU);var TvF=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(TvF,_.sU);var Nv6=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Nv6,_.sU);var coz=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(coz,_.sU);var jAD=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(jAD,_.sU);var rot=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(rot,_.sU);var OQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(OQ,_.sU);var mL=[2,4,5,6,7];var Jo6=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Jo6,_.sU);var wJ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(wJ,_.sU);_.R=wJ.prototype;_.R.getId=function(){return _.Al(this,Z86,1)};
_.R.getName=function(){return _.sC(this,2)};
_.R.setDescription=function(X){return _.Wx(this,3,X)};
_.R.getUrl=function(){return _.sC(this,8)};
_.R.setUrl=function(X){return _.Wx(this,8,X)};
var QT=function(X){return _.iB(X,iK,10,_.vb())};
wJ.prototype.getOwner=function(X){return _.Ru_(this,40,X)};
var Ta=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Ta,_.sU);_.NO=[0,WC,IrY];_.c0=[0,WC,IrY];var LKq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(LKq,_.sU);var jH=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(jH,_.sU);jH.prototype.getStatus=function(){return _.M7(this,1)};
jH.prototype.removeItem=function(X){return bX_(this,2,X)};var YTq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(YTq,_.sU);YTq.prototype.getName=function(){return _.sC(this,8)};var r1=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(r1,_.sU);r1.prototype.getCommand=function(){return _.M7(this,1)};
r1.prototype.getSource=function(){return _.Al(this,YTq,2)};
r1.prototype.setVisible=function(X){return _.wZ(this,5,X)};
r1.prototype.removeItem=function(X){return bX_(this,7,X)};var IMQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(IMQ,_.sU);IMQ.prototype.getCommand=function(){return _.M7(this,1)};
IMQ.prototype.removeItem=function(X){return bX_(this,4,X)};
var Ao_=_.Wu(IMQ);var Jf=function(X,H,l){l=l===void 0?Error():l;var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=X;H+=":";l instanceof Error?(this.message=H+l.message,this.stack=l.stack||""):(this.message=H+String(l),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(Jf,Error);_.$e=function(){this.JSC$9844_disposed_=this.JSC$9844_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.$e.prototype.JSC$9844_disposed_=!1;_.$e.prototype.isDisposed=function(){return this.JSC$9844_disposed_};
_.$e.prototype.dispose=function(){this.JSC$9844_disposed_||(this.JSC$9844_disposed_=!0,this.disposeInternal())};
_.$e.prototype[Symbol.dispose]=function(){this.dispose()};
_.LY=function(X,H){X.addOnDisposeCallback(_.lH(_.Gp,H))};
_.$e.prototype.addOnDisposeCallback=function(X,H){this.JSC$9844_disposed_?H!==void 0?X.call(H):X():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),H&&(X=X.bind(H)),this.onDisposeCallbacks_.push(X))};
_.$e.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Lx=function(X){_.$e.call(this);this.wpc=X};
_.S(Lx,_.$e);Lx.prototype.viT=function(){return this.wpc.f()};
Lx.prototype.aQ6=function(X){return this.wpc.c(X)};
Lx.prototype.be=function(X){return this.wpc.m(p$l(X))};
Lx.prototype.t0m=function(X){return this.wpc.mws(p$l(X))};
var Ze=function(X){_.$e.call(this);var H=this;this.vm=X;this.idK="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.kxo=void 0;this.flU=this.vm.p;this.y8X=this.e5m.bind(this);this.addOnDisposeCallback(function(){return void XgH(H)})};
_.S(Ze,_.$e);var HW_=function(X){var H;return _.h(function(l){if(l.nextAddress==1){if(!X.vm.wpc)throw new Jf(30,"NWA");return X.zMz?l.return(X.zMz):l.yield(X.vm.wpc(),2)}H=l.yieldResult;X.zMz=new Lx(H);return l.return(X.zMz)})};
Ze.prototype.snapshot=function(X){return this.vm.s(Object.assign({},X.hL&&{c:X.hL},X.kgX&&{s:X.kgX},X.chZ!==void 0&&{p:X.chZ}))};
Ze.prototype.e5m=function(X){this.vm.e(X)};
Ze.prototype.mkB=function(X,H){return this.vm.c(X,H,!1)};
var XgH=function(X){X.kxo!==void 0&&(X.idK.forEach(function(H){var l;(l=X.kxo)==null||l.removeEventListener(H,X.y8X)}),X.kxo=void 0)};
Ze.prototype.sav=function(){return this.vm.l()};var Yo=function(){_.$e.apply(this,arguments);this.vFu=1};
_.S(Yo,_.$e);Yo.prototype.share=function(){if(this.isDisposed())throw Error("qa");this.vFu++;return this};
Yo.prototype.dispose=function(){--this.vFu||_.$e.prototype.dispose.call(this)};var l1Q=function(X){this.dMK=X;X.addNewEventMetric("/client_streamz/bg/frs",_.Tp("mk"))};
l1Q.prototype.record=function(X,H){this.dMK.record("/client_streamz/bg/frs",X,H)};
var o3Y=function(X){this.qz7=X;X.addNewEventMetric("/client_streamz/bg/wrl",_.Tp("mn"),Qo("ac"),Qo("sc"),_.Tp("rk"),_.Tp("mk"))};
o3Y.prototype.record=function(X,H,l,b,U,K){this.qz7.record("/client_streamz/bg/wrl",X,H,l,b,U,K)};
var bWz=function(X){this.ohh=X;X.addNewCounter("/client_streamz/bg/ec",_.Tp("en"),_.Tp("mk"))};
bWz.prototype.increment=function(X,H){this.ohh.JSC$10097_incrementCounter("/client_streamz/bg/ec",X,H)};
var UsD=function(X){this.hsX=X;X.addNewEventMetric("/client_streamz/bg/el",_.Tp("en"),_.Tp("mk"))};
UsD.prototype.record=function(X,H,l){this.hsX.record("/client_streamz/bg/el",X,H,l)};
var $s_=function(X){this.gh9=X;X.addNewCounter("/client_streamz/bg/cec",Qo("ec"),_.Tp("mk"))};
$s_.prototype.increment=function(X,H){this.gh9.JSC$10097_incrementCounter("/client_streamz/bg/cec",X,H)};
var KXz=function(X){this.xM0=X;X.addNewCounter("/client_streamz/bg/po/csc",Qo("cs"),_.Tp("mk"))};
KXz.prototype.increment=function(X,H){this.xM0.JSC$10097_incrementCounter("/client_streamz/bg/po/csc",X,H)};
var RJ_=function(X){this.cdw=X;X.addNewCounter("/client_streamz/bg/po/ctav",_.Tp("av"),_.Tp("mk"))};
RJ_.prototype.increment=function(X,H){this.cdw.JSC$10097_incrementCounter("/client_streamz/bg/po/ctav",X,H)};
var CLv=function(X){this.ydh=X;X.addNewCounter("/client_streamz/bg/po/cwsc",_.Tp("su"),_.Tp("mk"))};
CLv.prototype.increment=function(X,H){this.ydh.JSC$10097_incrementCounter("/client_streamz/bg/po/cwsc",X,H)};var Htl=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Htl,_.sU);var XQb=function(X,H){return _.bR(X,3,H,Dvy)};var wgC=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(wgC,_.sU);var ds9=[1,2,3];var hJ_=[0,ds9,_.vC,AbD,l3Q];var FXQ=[0,_.OC,[0,DU,_.tC]];var BfQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(BfQ,_.sU);var q2_=[1,2,3];var s5q=[0,q2_,Lzv,No_,_.mq,FXQ];var MIF=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(MIF,_.sU);var uUv=[0,_.OC,hJ_,s5q];var eJH=[0,_.ZU];var y1H=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(y1H,_.sU);var VI9=[0,_.ZU,-1,_.Gb];var PLt=[0,_.ZU,-1,_.gJ,_.Gb];var f1D=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(f1D,_.sU);var pg_=[1,2,3];var S2Y=[0,pg_,_.mq,VI9,_.mq,PLt,_.mq,eJH];var zJY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(zJY,_.sU);zJY.prototype.JSC$9917_serializeBinary=CQk([0,_.ZU,S2Y,omC,_.OC,uUv,XJQ,_.HJz]);var n3Q=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(n3Q,_.sU);var Ds9=function(X){var H=new zJY;H=_.KY(H,1,X.JSC$10033_metricName);var l=kGH(X);H=_.bR(H,3,l,_.zZ);l=[];for(var b=[],U=_.C(X.cellMap.keys()),K=U.next();!K.done;K=U.next())b.push(K.value.split(","));for(U=0;U<b.length;U++){K=b[U];for(var w=X.cellType,d=X.getCells(K)||[],B=[],q=0;q<d.length;q++){var u=d[q],e=u&&u.cellValue;u=new BfQ;switch(w){case 3:e=Number(e);Number.isFinite(e)&&$2(u,1,q2_,ye(e));break;case 2:$2(u,2,q2_,_.lx(Number(e)))}B.push(u)}w=B;for(d=0;d<w.length;d++){B=w[d];q=new MIF;B=_.go(q,
2,B);q=[];u=xsH(X);for(e=0;e<u.length;e++){var y=u[e],V=K[e],p=new wgC;switch(y){case 3:$2(p,1,ds9,xU(String(V)));break;case 2:y=Number(V);Number.isFinite(y)&&$2(p,2,ds9,_.dY(y));break;case 1:$2(p,3,ds9,nQy(V==="true"))}q.push(p)}Cj(B,1,q);l.push(B)}}Cj(H,4,l);return H};var tI_=function(X){if(!X)return"";if(/^about:(?:blank|srcdoc)$/.test(X))return window.origin||"";X.indexOf("blob:")===0&&(X=X.substring(5));X=X.split("#")[0].split("?")[0];X=X.toLowerCase();X.indexOf("//")==0&&(X=window.location.protocol+X);/^[\w\-]*:\/\//.test(X)||(X=window.location.href);var H=X.substring(X.indexOf("://")+3),l=H.indexOf("/");l!=-1&&(H=H.substring(0,l));l=X.substring(0,X.indexOf("://"));if(!l)throw Error("ra`"+X);if(l!=="http"&&l!=="https"&&l!=="chrome-extension"&&l!=="moz-extension"&&
l!=="file"&&l!=="android-app"&&l!=="chrome-search"&&l!=="chrome-untrusted"&&l!=="chrome"&&l!=="app"&&l!=="devtools")throw Error("sa`"+l);X="";var b=H.indexOf(":");if(b!=-1){var U=H.substring(b+1);H=H.substring(0,b);if(l==="http"&&U!=="80"||l==="https"&&U!=="443")X=":"+U}return l+"://"+H+X};var E3_=function(X,H,l){var b=String(_.ok.location.href);return b&&X&&H?[H,WXH(tI_(b),X,l||null)].join(" "):null},WXH=function(X,H,l){var b=[],U=[];
if((Array.isArray(l)?2:1)==1)return U=[H,X],_.Ot(b,function(d){U.push(d)}),g3q(U.join(" "));
var K=[],w=[];_.Ot(l,function(d){w.push(d.key);K.push(d.value)});
l=Math.floor((new Date).getTime()/1E3);U=K.length==0?[l,H,X]:[K.join(":"),l,H,X];_.Ot(b,function(d){U.push(d)});
X=g3q(U.join(" "));X=[l,X];w.length==0||X.push(w.join(""));return X.join("_")},g3q=function(X){var H=Wuh();
H.update(X);return H.digestString().toLowerCase()};var GGF;_.R=Nz.prototype;_.R.isEnabled=function(){if(!_.ok.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};
_.R.set=function(X,H,l){var b=!1;if(typeof l==="object"){var U=l.sameSite;b=l.secure||!1;var K=l.domain||void 0;var w=l.path||void 0;var d=l.maxAge}if(/[;=\s]/.test(X))throw Error("ta`"+X);if(/[;\r\n]/.test(H))throw Error("ua`"+H);d===void 0&&(d=-1);l=K?";domain="+K:"";w=w?";path="+w:"";b=b?";secure":"";d=d<0?"":d==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+d*1E3)).toUTCString();this.JSC$9928_document_.cookie=X+"="+H+l+w+d+b+(U!=null?";samesite="+U:"")};
_.R.get=function(X,H){for(var l=X+"=",b=(this.JSC$9928_document_.cookie||"").split(";"),U=0,K;U<b.length;U++){K=qW(b[U]);if(K.lastIndexOf(l,0)==0)return K.slice(l.length);if(K==X)return""}return H};
_.R.remove=function(X,H,l){var b=this.containsKey(X);this.set(X,"",{maxAge:0,path:H,domain:l});return b};
_.R.getKeys=function(){return GGF(this).keys};
_.R.getValues=function(){return GGF(this).values};
_.R.isEmpty=function(){return!this.JSC$9928_document_.cookie};
_.R.getCount=function(){return this.JSC$9928_document_.cookie?(this.JSC$9928_document_.cookie||"").split(";").length:0};
_.R.containsKey=function(X){return this.get(X)!==void 0};
_.R.containsValue=function(X){for(var H=GGF(this).values,l=0;l<H.length;l++)if(H[l]==X)return!0;return!1};
_.R.clear=function(){for(var X=GGF(this).keys,H=X.length-1;H>=0;H--)this.remove(X[H])};
GGF=function(X){X=(X.JSC$9928_document_.cookie||"").split(";");for(var H=[],l=[],b,U,K=0;K<X.length;K++)U=qW(X[K]),b=U.indexOf("="),b==-1?(H.push(""),l.push(U)):(H.push(U.substring(0,b)),l.push(U.substring(b+1)));return{keys:H,values:l}};
_.wL=new Nz(typeof document=="undefined"?null:document);var mIK,a1q;mIK=function(){var X=_.ok.__SAPISID||_.ok.__APISID||_.ok.__3PSAPISID||_.ok.__1PSAPISID||_.ok.__OVERRIDE_SID;if(X)return!0;typeof document!=="undefined"&&(X=new Nz(document),X=X.get("SAPISID")||X.get("APISID")||X.get("__Secure-3PAPISID")||X.get("__Secure-1PAPISID"));return!!X};
a1q=function(X,H,l,b){(X=_.ok[X])||typeof document==="undefined"||(X=(new Nz(document)).get(H));return X?E3_(X,l,b):null};
_.cFh=function(X){var H=tI_(_.ok==null?void 0:_.ok.location.href),l=[];if(mIK()){H=H.indexOf("https:")==0||H.indexOf("chrome-extension:")==0||H.indexOf("chrome-untrusted://new-tab-page")==0||H.indexOf("moz-extension:")==0;var b=H?_.ok.__SAPISID:_.ok.__APISID;b||typeof document==="undefined"||(b=new Nz(document),b=b.get(H?"SAPISID":"APISID")||b.get("__Secure-3PAPISID"));(b=b?E3_(b,H?"SAPISIDHASH":"APISIDHASH",X):null)&&l.push(b);H&&((H=a1q("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",X))&&l.push(H),
(X=a1q("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",X))&&l.push(X))}return l.length==0?null:l.join(" ")};var ZWD=function(){this.minSize=1024};
ZWD.prototype.compress=function(X){var H,l,b,U;return _.h(function(K){switch(K.nextAddress){case 1:return H=new CompressionStream("gzip"),l=(new Response(H.readable)).arrayBuffer(),b=H.writable.getWriter(),K.yield(b.write((new TextEncoder).encode(X)),2);case 2:return K.yield(b.close(),3);case 3:return U=Uint8Array,K.yield(l,4);case 4:return K.return(new U(K.yieldResult))}})};
ZWD.prototype.isSupported=function(X){return X<this.minSize?!1:typeof CompressionStream!=="undefined"};var iWD=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(iWD,_.sU);var I4=function(X,H){this.intervalMs=X;this.callback=H;this.enabled=!1;this.nowFn=function(){return _.QC()};
this.lastTimeMs=this.nowFn()};
I4.prototype.setInterval=function(X){this.intervalMs=X;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
I4.prototype.start=function(){var X=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){X.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
I4.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
I4.prototype.tick=function(){var X=this;if(this.enabled){var H=Math.max(this.nowFn()-this.lastTimeMs,0);H<this.intervalMs*.8?this.timer=setTimeout(function(){X.tick()},this.intervalMs-H):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var v3Q=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(v3Q,_.sU);var OW_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(OW_,_.sU);var msz=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(msz,_.sU);msz.prototype.getTransmissionType=function(){return _.M7(this,1)};
msz.prototype.getRetryCount=function(){return _.O_(this,3)};var aRm=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(aRm,_.sU);var Af=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Af,_.sU);var G7l=function(X){Cj(Zfy,1,X)};
Af.prototype.getModel=function(){return _.sC(this,6)};
var Q5t=_.Wu(Af);var Tf_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Tf_,_.sU);var EyN=["platform","platformVersion","architecture","model","uaFullVersion"],Zfy=new Af,gyL=null;var XE=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(XE,_.sU);var NfQ=function(X){return _.X$(X,1,1)};var c1_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X,4)};
_.S(c1_,_.sU);_.HR=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X,36)};
_.S(_.HR,_.sU);_.HR.prototype.getExperimentIds=function(){return _.Al(this,iWD,16)};var j5v=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X,19)};
_.S(j5v,_.sU);j5v.prototype.setLogSource=function(X){return _.X$(this,2,X)};
j5v.prototype.setScheduler=function(X){return _.X$(this,10,X)};var J1z=function(X,H){this.isServiceWorkerScope=H=H===void 0?!1:H;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new j5v;Number.isInteger(X)&&this.logRequest.setLogSource(X);H||(this.locale=document.documentElement.getAttribute("lang"));r1t(this,new XE)};
J1z.prototype.setLogSource=function(X){this.logRequest.setLogSource(X);return this};
var r1t=function(X,H){_.go(X.logRequest,1,H);_.M7(H,1)||NfQ(H);X.isServiceWorkerScope||(H=li(X),_.sC(H,5)||_.KY(H,5,X.locale));X.uach&&(H=li(X),_.Al(H,Af,9)||_.go(H,9,X.uach))},LXt=function(X,H){X.transmissionType=H},Y2D=function(X){var H=H===void 0?EyN:H;
var l=X.isServiceWorkerScope?void 0:Mz();l?ifk(l,H).then(function(b){X.uach=Q5t(b!=null?b:"[]");b=li(X);_.go(b,9,X.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},li=function(X){var H=_.Al(X.logRequest,XE,1);
H||(H=new XE,r1t(X,H));X=H;H=_.Al(X,Tf_,11);H||(H=new Tf_,_.go(X,11,H));return H};
J1z.prototype.build=function(X,H,l,b,U,K){H=H===void 0?0:H;l=l===void 0?0:l;b=b===void 0?null:b;U=U===void 0?0:U;K=K===void 0?0:K;if(!this.isServiceWorkerScope){var w=li(this);var d=new msz;d=_.X$(d,1,this.transmissionType);d=_.cb(d,2,this.isFinal);l=_.Vs(d,3,l>0?l:void 0);l=_.Vs(l,4,U>0?U:void 0);l=_.Vs(l,5,K>0?K:void 0);U=l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;K=U[_.K_]|0;l=kQ(l,K)?l:vUL(l,U,K)?idy(l,U):new l.constructor(TZ(U,K,!0));_.go(w,10,l)}w=this.logRequest.clone();l=Date.now().toString();
w=_.HB(w,4,ye(l));X=X.slice();X=Cj(w,3,X);b&&(w=new v3Q,b=_.Vs(w,13,b),w=new OW_,b=_.go(w,2,b),w=new c1_,b=_.go(w,1,b),b=_.X$(b,2,9),_.go(X,18,b));H&&_.qp(X,14,H);return X};jP.prototype.currBackoffCount_=0;jP.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
jP.prototype.getValue=function(){return this.currValue_};
var I1Q=function(X){X.currBaseValue_=Math.min(X.maxValue_,X.currBaseValue_*X.backoffFactor_);X.currValue_=Math.min(X.maxValue_,X.currBaseValue_+(X.randomFactor_?Math.round(X.randomFactor_*(Math.random()-.5)*2*X.currBaseValue_):0));X.currBackoffCount_++};var RnQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X,8)};
_.S(RnQ,_.sU);var A16=_.Wu(RnQ);var CQ_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(CQ_,_.sU);var ou;ou=new wJF;var bi=function(X){_.$e.call(this);var H=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=X.logSource;this.getAuthHeaderValue=
X.getAuthHeaderValue||function(){};
this.logRequestBuilder=new J1z(X.logSource,X.isServiceWorkerScope);this.network=X.network||null;this.productID=X.productID||null;this.bufferSize=1E3;this.clearcutUrl=X.urlOverride||null;this.sessionIndex=X.sessionIndex||null;this.disableAutomaticFlush=X.disableAutomaticFlush||!1;this.withCredentials=!X.disableWithCredentials;this.isServiceWorkerScope=X.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Mz()&&!!Mz().navigator&&Mz().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(X$Q())).searchParams&&!!(new URL(X$Q())).searchParams.set;var l=NfQ(new XE);r1t(this.logRequestBuilder,l);this.flushBackoff=new jP(1E4,3E5,.1);X=HfF(this,X.backgroundJobDeferrer);this.JSC$10006_flushTimer=new I4(this.flushBackoff.getValue(),X);this.backupTimer=new I4(6E5,X);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){lR_(H);
var b;(b=H.metalogService)==null||b.flush()}}),document.addEventListener("pagehide",function(){lR_(H);
var b;(b=H.metalogService)==null||b.flush()}))};
_.S(bi,_.$e);var HfF=function(X,H){return X.isBrowserSupported?H?function(){H().then(function(){X.flush()})}:function(){X.flush()}:function(){}};
bi.prototype.disposeInternal=function(){lR_(this);this.JSC$10006_flushTimer.stop();this.backupTimer.stop();_.$e.prototype.disposeInternal.call(this)};
var oyH=function(X){X.clearcutUrl||(X.clearcutUrl=X$Q());try{return(new URL(X.clearcutUrl)).toString()}catch(H){return(new URL(X.clearcutUrl,Mz().location.origin)).toString()}};
bi.prototype.dispatch=function(X){if(X instanceof _.HR)this.log(X);else try{var H=new _.HR,l=X.serialize();var b=_.KY(H,8,l);this.log(b)}catch(U){Ku(this,4,1)}};
var Ku=function(X,H,l){X.metalogService&&X.metalogService.increment(H,l)};
bi.prototype.log=function(X){Ku(this,2,1);if(this.isBrowserSupported){X=X.clone();var H=this.sequencePosition++;X=_.qp(X,21,H);this.componentId&&_.KY(X,26,this.componentId);H=X;if(cQO(_.be(H,1))==null){var l=Date.now();l=Number.isFinite(l)?l.toString():"0";_.HB(H,1,ye(l))}_.UaH(H,15)!=null||_.qp(H,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(l=this.experimentIds.clone(),_.go(H,16,l));Ku(this,1,1);H=this.pendingEvents.length-this.bufferSize+1;H>0&&(this.pendingEvents.splice(0,H),this.numLogsDroppedSinceLastFlush+=
H,Ku(this,3,H));this.pendingEvents.push(X);this.disableAutomaticFlush||this.JSC$10006_flushTimer.enabled||this.JSC$10006_flushTimer.start()}};
bi.prototype.flush=function(X,H){var l=this;if(this.pendingEvents.length===0)X&&X();else if(this.JSC$10006_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,bfF(this);else{var b=Date.now();if(this.noFlushUntilMs>b&&this.startWaitingMs<b)H&&H("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?LXt(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var U=this.pendingEvents.length,
K=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),w=this.getAuthHeaderValue();if(w&&this.lastFailedAuth===w)H&&H("stale-auth-token");else{this.pendingEvents=[];this.JSC$10006_flushTimer.enabled&&this.JSC$10006_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;b=K.serialize();var d;this.JSC$10006_compressor&&this.JSC$10006_compressor.isSupported(b.length)&&
(d=this.JSC$10006_compressor.compress(b));var B=Ukt(this,b,w),q=function(y){l.flushBackoff.reset();l.JSC$10006_flushTimer.setInterval(l.flushBackoff.getValue());if(y){var V=null;try{var p=JSON.stringify(JSON.parse(y.replace(")]}'\n","")));V=A16(p)}catch(z){}V&&(y=Number(BC(V,1,_.Z6("-1"))),y>0&&(l.startWaitingMs=Date.now(),l.noFlushUntilMs=l.startWaitingMs+y),BYW(V.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,ou.fieldIndex),hly(V,ou.fieldIndex),V=ou.ctor?ou.getExtensionFn(V,ou.ctor,ou.fieldIndex,
ou.JSC$9186_hasMessageId):ou.getExtensionFn(V,ou.fieldIndex,null,ou.JSC$9186_hasMessageId),V=V===null?void 0:V)&&(V=_.O_(V,1,-1),V!==-1&&(l.flushBackoff=new jP(V<1?1:V,3E5,.1),l.JSC$10006_flushTimer.setInterval(l.flushBackoff.getValue())))}X&&X();l.numRetriesSinceLastSuccessfulFlush=0},u=function(y,V){var p=_.iB(K,_.HR,3,_.vb());
var z=Number(BC(K,14));I1Q(l.flushBackoff);l.JSC$10006_flushTimer.setInterval(l.flushBackoff.getValue());y===401&&w&&(l.lastFailedAuth=w);z&&(l.numLogsDroppedSinceLastFlush+=z);V===void 0&&(V=l.isRetryable(y));V&&(l.pendingEvents=p.concat(l.pendingEvents),l.disableAutomaticFlush||l.JSC$10006_flushTimer.enabled||l.JSC$10006_flushTimer.start());Ku(l,7,1);H&&H("net-send-failed",y);++l.numRetriesSinceLastSuccessfulFlush},e=function(){l.network&&l.network.send(B,q,u)};
d?d.then(function(y){Ku(l,5,U);B.requestHeaders["Content-Encoding"]="gzip";B.requestHeaders["Content-Type"]="application/binary";B.body=y;B.bodyType=2;e()},function(){Ku(l,6,U);
e()}):e()}}}};
var Ukt=function(X,H,l){l=l===void 0?null:l;var b=b===void 0?X.withCredentials:b;var U={},K=new URL(oyH(X));l&&(U.Authorization=l);X.sessionIndex&&(U["X-Goog-AuthUser"]=X.sessionIndex,K.searchParams.set("authuser",X.sessionIndex));X.pageId&&(Object.defineProperty(U,"X-Goog-PageId",{value:X.pageId}),K.searchParams.set("pageId",X.pageId));return{url:K.toString(),body:H,bodyType:1,requestHeaders:U,requestType:"POST",withCredentials:b,timeoutMillis:X.timeoutMillis}},lR_=function(X){X.logRequestBuilder.isFinal=
!0;
X.flush();X.logRequestBuilder.isFinal=!1},bfF=function(X){$kY(X,function(H,l){H=new URL(H);
H.searchParams.set("format","json");var b=!1;try{b=Mz().navigator.sendBeacon(H.toString(),l.serialize())}catch(U){}b||(X.isSendBeaconSupported=!1);return b})},$kY=function(X,H){if(X.pendingEvents.length!==0){var l=new URL(oyH(X));
l.searchParams.delete("format");var b=X.getAuthHeaderValue();b&&l.searchParams.set("auth",b);l.searchParams.set("authuser",X.sessionIndex||"0");for(b=0;b<10&&X.pendingEvents.length;++b){var U=X.pendingEvents.slice(0,32),K=X.logRequestBuilder.build(U,X.numLogsDroppedSinceLastFlush,X.numRetriesSinceLastSuccessfulFlush,X.productID,X.persistedLogRecoveredCount,X.persistedLogExpiredCount);if(!H(l.toString(),K)){++X.numRetriesSinceLastSuccessfulFlush;break}X.numLogsDroppedSinceLastFlush=0;X.numRetriesSinceLastSuccessfulFlush=
0;X.persistedLogRecoveredCount=0;X.persistedLogExpiredCount=0;X.pendingEvents=X.pendingEvents.slice(U.length)}X.JSC$10006_flushTimer.enabled&&X.JSC$10006_flushTimer.stop()}};
bi.prototype.isRetryable=function(X){return 500<=X&&X<600||X===401||X===0};
var X$Q=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Ku9=function(){this.abortSupported=typeof AbortController!=="undefined"};
Ku9.prototype.send=function(X,H,l){var b=this,U,K,w,d,B,q,u,e,y,V;return _.h(function(p){switch(p.nextAddress){case 1:return K=(U=b.abortSupported?new AbortController:void 0)?setTimeout(function(){U.abort()},X.timeoutMillis):void 0,_.Ew(p,2,3),w=Object.assign({},{method:X.requestType,
headers:Object.assign({},X.requestHeaders)},X.body&&{body:X.body},X.withCredentials&&{credentials:"include"},{signal:X.timeoutMillis&&U?U.signal:null}),p.yield(fetch(X.url,w),5);case 5:d=p.yieldResult;if(d.status!==200){(B=l)==null||B(d.status);p.jumpTo(3);break}if((q=H)==null){p.jumpTo(7);break}return p.yield(d.text(),8);case 8:q(p.yieldResult);case 7:case 3:_.GS(p);clearTimeout(K);_.vJ(p,0);break;case 2:u=_.Ow(p);switch((e=u)==null?void 0:e.name){case "AbortError":(y=l)==null||y(408);break;default:(V=
l)==null||V(400)}p.jumpTo(3)}})};
Ku9.prototype.getTransmissionType=function(){return 4};_.Jj=function(X,H){H=H===void 0?"0":H;_.$e.call(this);this.logSource=X;this.sessionIndex=H;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$10024_clearExperimentIds=this.productID=null;this.JSC$10024_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.S(_.Jj,_.$e);var Yt8=function(X,H){X.buildLabel=H;return X},LuL=function(X,H){X.network=H;
return X},ARz=function(X,H){X.JSC$10024_clearExperimentIds=H},JRL=function(X){X.JSC$10024_sendBeaconApiEnabled=!0;
return X};
_.Jj.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Jj.prototype.build=function(){this.network||(this.network=new Ku9);var X=new bi({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.cFh,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.LY(this,X);if(this.buildLabel){var H=this.buildLabel,l=
li(X.logRequestBuilder);_.KY(l,7,H)}X.JSC$10006_compressor=new ZWD;this.componentId&&(X.componentId=this.componentId);this.productID&&(X.productID=this.productID);this.pageId&&(X.pageId=this.pageId);this.JSC$10024_clearExperimentIds&&((l=this.JSC$10024_clearExperimentIds)?(X.experimentIds||(X.experimentIds=new iWD),H=X.experimentIds,l=l.serialize(),_.KY(H,4,l)):X.experimentIds&&_.HB(X.experimentIds,4));this.JSC$10024_sendBeaconApiEnabled&&(X.JSC$10006_sendBeaconApiEnabled=X.isSendBeaconSupported);
Y2D(X.logRequestBuilder);this.bufferSize&&(X.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(X);return X};var ltK=function(X,H,l,b,U,K,w){X=X===void 0?-1:X;H=H===void 0?"":H;l=l===void 0?"":l;b=b===void 0?!1:b;U=U===void 0?"":U;_.$e.call(this);this.logSource=X;this.componentId=H;K?H=K:(X=new _.Jj(X,"0"),X.componentId=H,_.LY(this,X),l!==""&&(X.destinationUrl=l),b&&(X.serviceWorkerScopeEnabled=!0),U&&Yt8(X,U),w&&LuL(X,w),H=X.build());this.JSC$10028_transport=H};
_.S(ltK,_.$e);ltK.prototype.flush=function(X){X=X||[];if(X.length){for(var H=new n3Q,l=[],b=0;b<X.length;b++){var U=X[b],K=Ds9(U);l.push(K);U.clear()}Cj(H,1,l);this.JSC$10028_transport.dispatch(H);this.JSC$10028_transport.flush()}};var RO6=function(X){this.cellValue=X};var Ru=function(X,H,l){this.JSC$10033_metricName=X;this.cellType=H;this.fields=l||[];this.cellMap=new Map},xsH=function(X){return X.fields.map(function(H){return H.fieldType})},kGH=function(X){return X.fields.map(function(H){return H.fieldName})};
_.R=Ru.prototype;_.R.addCell=function(X){var H=_.Ab.apply(1,arguments),l=this.getCells(H);l?l.push(new RO6(X)):this.JSC$10033_setCell(X,H)};
_.R.JSC$10033_setCell=function(X){var H=this.JSC$10033_getKey(_.Ab.apply(1,arguments));this.cellMap.set(H,[new RO6(X)])};
_.R.getCells=function(){var X=this.JSC$10033_getKey(_.Ab.apply(0,arguments));return this.cellMap.has(X)?this.cellMap.get(X):void 0};
_.R.getCell=function(){var X=this.getCells(_.Ab.apply(0,arguments));return X&&X.length?X[0]:void 0};
_.R.clear=function(){this.cellMap.clear()};
_.R.JSC$10033_getKey=function(){var X=_.Ab.apply(0,arguments);return X?X.join(","):"key"};var CjQ=function(X,H){Ru.call(this,X,3,H)};
_.S(CjQ,Ru);CjQ.prototype.JSC$10036_incrementCounterBy=function(X){var H=_.Ab.apply(1,arguments),l=0,b=this.getCell(H);b&&(l=b.cellValue);this.JSC$10033_setCell(l+X,H)};var w$Y=function(X,H){Ru.call(this,X,2,H)};
_.S(w$Y,Ru);w$Y.prototype.record=function(X){this.addCell(X,_.Ab.apply(1,arguments))};_.Cu=function(X){this.id=X};
_.Cu.prototype.toString=function(){return this.id};_.NF=function(X,H){this.type=X instanceof _.Cu?String(X):X;this.currentTarget=this.target=H;this.defaultPrevented=this.propagationStopped_=!1};
_.NF.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.NF.prototype.preventDefault=function(){this.defaultPrevented=!0};_.wB=function(X,H){_.NF.call(this,X?X.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;X&&this.init(X,H)};
_.To(_.wB,_.NF);
_.wB.prototype.init=function(X,H){var l=this.type=X.type,b=X.changedTouches&&X.changedTouches.length?X.changedTouches[0]:null;this.target=X.target||X.srcElement;this.currentTarget=H;H=X.relatedTarget;H||(l=="mouseover"?H=X.fromElement:l=="mouseout"&&(H=X.toElement));this.relatedTarget=H;b?(this.clientX=b.clientX!==void 0?b.clientX:b.pageX,this.clientY=b.clientY!==void 0?b.clientY:b.pageY,this.screenX=b.screenX||0,this.screenY=b.screenY||0):(this.offsetX=_.XQ||X.offsetX!==void 0?X.offsetX:X.layerX,
this.offsetY=_.XQ||X.offsetY!==void 0?X.offsetY:X.layerY,this.clientX=X.clientX!==void 0?X.clientX:X.pageX,this.clientY=X.clientY!==void 0?X.clientY:X.pageY,this.screenX=X.screenX||0,this.screenY=X.screenY||0);this.button=X.button;this.keyCode=X.keyCode||0;this.key=X.key||"";this.charCode=X.charCode||(l=="keypress"?X.keyCode:0);this.ctrlKey=X.ctrlKey;this.altKey=X.altKey;this.shiftKey=X.shiftKey;this.metaKey=X.metaKey;this.pointerId=X.pointerId||0;this.pointerType=X.pointerType;this.state=X.state;
this.timeStamp=X.timeStamp;this.event_=X;X.defaultPrevented&&_.wB.superClass_.preventDefault.call(this)};
_.wB.prototype.isButton=function(X){return this.event_.button==X};
_.wB.prototype.stopPropagation=function(){_.wB.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.wB.prototype.preventDefault=function(){_.wB.superClass_.preventDefault.call(this);var X=this.event_;X.preventDefault?X.preventDefault():X.returnValue=!1};var dk_="closure_listenable_"+(Math.random()*1E6|0),dB=function(X){return!(!X||!X[dk_])};var vyz=0;var hO_=function(X){X.removed=!0;X.listener=null;X.proxy=null;X.src=null;X.handler=null};r9.prototype.add=function(X,H,l,b,U){var K=X.toString();X=this.listeners[K];X||(X=this.listeners[K]=[],this.typeCount_++);var w=FuC(X,H,b,U);w>-1?(H=X[w],l||(H.callOnce=!1)):(H=new Ofy(H,this.src,K,!!b,U),H.callOnce=l,X.push(H));return H};
r9.prototype.remove=function(X,H,l,b){X=X.toString();if(!(X in this.listeners))return!1;var U=this.listeners[X];H=FuC(U,H,l,b);return H>-1?(hO_(U[H]),_.tlL(U,H),U.length==0&&(delete this.listeners[X],this.typeCount_--),!0):!1};
var Bxq=function(X,H){var l=H.type;if(!(l in X.listeners))return!1;var b=_.Oy(X.listeners[l],H);b&&(hO_(H),X.listeners[l].length==0&&(delete X.listeners[l],X.typeCount_--));return b};
r9.prototype.removeAll=function(X){X=X&&X.toString();var H=0,l;for(l in this.listeners)if(!X||l==X){for(var b=this.listeners[l],U=0;U<b.length;U++)++H,hO_(b[U]);delete this.listeners[l];this.typeCount_--}return H};
r9.prototype.getListener=function(X,H,l,b){X=this.listeners[X.toString()];var U=-1;X&&(U=FuC(X,H,l,b));return U>-1?X[U]:null};
r9.prototype.hasListener=function(X,H){var l=X!==void 0,b=l?X.toString():"",U=H!==void 0;return _.Bb.some(this.listeners,function(K){for(var w=0;w<K.length;++w)if(!(l&&K[w].type!=b||U&&K[w].capture!=H))return!0;return!1})};
var FuC=function(X,H,l,b){for(var U=0;U<X.length;++U){var K=X[U];if(!K.removed&&K.listener==H&&K.capture==!!l&&K.handler==b)return U}return-1};var qtY,s0t,MJv,eOt,yR6,MF,Ul,Ddm,VJv,Pjq,h8,fRQ,ui9;qtY="closure_lm_"+(Math.random()*1E6|0);s0t={};MJv=0;_.n8=function(X,H,l,b,U){if(b&&b.once)return MF(X,H,l,b,U);if(Array.isArray(H)){for(var K=0;K<H.length;K++)_.n8(X,H[K],l,b,U);return null}l=ui9(l);return dB(X)?X.listen(H,l,_.r8(b)?!!b.capture:!!b,U):eOt(X,H,l,!1,b,U)};
eOt=function(X,H,l,b,U,K){if(!H)throw Error("wa");var w=_.r8(U)?!!U.capture:!!U,d=h8(X);d||(X[qtY]=d=new r9(X));l=d.add(H,l,b,w,K);if(l.proxy)return l;b=yR6();l.proxy=b;b.src=X;b.listener=l;if(X.addEventListener)_.iJ_||(U=w),U===void 0&&(U=!1),X.addEventListener(H.toString(),b,U);else if(X.attachEvent)X.attachEvent(VJv(H.toString()),b);else if(X.addListener&&X.removeListener)X.addListener(b);else throw Error("xa");MJv++;return l};
yR6=function(){var X=Pjq,H=function(l){return X.call(H.src,H.listener,l)};
return H};
MF=function(X,H,l,b,U){if(Array.isArray(H)){for(var K=0;K<H.length;K++)MF(X,H[K],l,b,U);return null}l=ui9(l);return dB(X)?X.listenOnce(H,l,_.r8(b)?!!b.capture:!!b,U):eOt(X,H,l,!0,b,U)};
_.FE=function(X,H,l,b,U){if(Array.isArray(H))for(var K=0;K<H.length;K++)_.FE(X,H[K],l,b,U);else b=_.r8(b)?!!b.capture:!!b,l=ui9(l),dB(X)?X.unlisten(H,l,b,U):X&&(X=h8(X))&&(H=X.getListener(H,l,b,U))&&Ul(H)};
Ul=function(X){if(typeof X==="number"||!X||X.removed)return!1;var H=X.src;if(dB(H))return Bxq(H.eventTargetListeners_,X);var l=X.type,b=X.proxy;H.removeEventListener?H.removeEventListener(l,b,X.capture):H.detachEvent?H.detachEvent(VJv(l),b):H.addListener&&H.removeListener&&H.removeListener(b);MJv--;(l=h8(H))?(Bxq(l,X),l.typeCount_==0&&(l.src=null,H[qtY]=null)):hO_(X);return!0};
Ddm=function(X,H,l,b,U){l=ui9(l);b=!!b;return dB(X)?X.getListener(H,l,b,U):X?(X=h8(X))?X.getListener(H,l,b,U):null:null};
VJv=function(X){return X in s0t?s0t[X]:s0t[X]="on"+X};
Pjq=function(X,H){if(X.removed)X=!0;else{H=new _.wB(H,this);var l=X.listener,b=X.handler||X.src;X.callOnce&&Ul(X);X=l.call(b,H)}return X};
h8=function(X){X=X[qtY];return X instanceof r9?X:null};
fRQ="__closure_events_fn_"+(Math.random()*1E9>>>0);ui9=function(X){if(typeof X==="function")return X;X[fRQ]||(X[fRQ]=function(H){return X.handleEvent(H)});
return X[fRQ]};_.zB=function(){_.$e.call(this);this.eventTargetListeners_=new r9(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.To(_.zB,_.$e);_.zB.prototype[dk_]=!0;_.R=_.zB.prototype;_.R.setParentEventTarget=function(X){this.parentEventTarget_=X};
_.R.addEventListener=function(X,H,l,b){_.n8(this,X,H,l,b)};
_.R.removeEventListener=function(X,H,l,b){_.FE(this,X,H,l,b)};
_.R.dispatchEvent=function(X){var H,l=this.parentEventTarget_;if(l)for(H=[];l;l=l.parentEventTarget_)H.push(l);l=this.actualEventTarget_;var b=X.type||X;if(typeof X==="string")X=new _.NF(X,l);else if(X instanceof _.NF)X.target=X.target||l;else{var U=X;X=new _.NF(b,l);_.Bb.extend(X,U)}U=!0;var K;if(H)for(K=H.length-1;!X.propagationStopped_&&K>=0;K--){var w=X.currentTarget=H[K];U=p$q(w,b,!0,X)&&U}X.propagationStopped_||(w=X.currentTarget=l,U=p$q(w,b,!0,X)&&U,X.propagationStopped_||(U=p$q(w,b,!1,X)&&
U));if(H)for(K=0;!X.propagationStopped_&&K<H.length;K++)w=X.currentTarget=H[K],U=p$q(w,b,!1,X)&&U;return U};
_.R.disposeInternal=function(){_.zB.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.R.listen=function(X,H,l,b){return this.eventTargetListeners_.add(String(X),H,!1,l,b)};
_.R.listenOnce=function(X,H,l,b){return this.eventTargetListeners_.add(String(X),H,!0,l,b)};
_.R.unlisten=function(X,H,l,b){return this.eventTargetListeners_.remove(String(X),H,l,b)};
_.R.removeAllListeners=function(X){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(X):0};
var p$q=function(X,H,l,b){H=X.eventTargetListeners_.listeners[String(H)];if(!H)return!0;H=H.concat();for(var U=!0,K=0;K<H.length;++K){var w=H[K];if(w&&!w.removed&&w.capture==l){var d=w.listener,B=w.handler||w.src;w.callOnce&&Bxq(X.eventTargetListeners_,w);U=d.call(B,b)!==!1&&U}}return U&&!b.defaultPrevented};
_.zB.prototype.getListener=function(X,H,l,b){return this.eventTargetListeners_.getListener(String(X),H,l,b)};
_.zB.prototype.hasListener=function(X,H){return this.eventTargetListeners_.hasListener(X!==void 0?String(X):void 0,H)};var BR=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(X){return X&&AsyncContext.Snapshot.wrap(X)}:function(X){return X};var StC=function(X,H){this.create_=X;this.reset_=H;this.occupants_=0;this.JSC$10068_head_=null};
StC.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var X=this.JSC$10068_head_;this.JSC$10068_head_=X.next;X.next=null}else X=this.create_();return X};
StC.prototype.put=function(X){this.reset_(X);this.occupants_<100&&(this.occupants_++,X.next=this.JSC$10068_head_,this.JSC$10068_head_=X)};var zOG=function(){this.workTail_=this.workHead_=null};
zOG.prototype.add=function(X,H){var l=Q0m.get();l.set(X,H);this.workTail_?this.workTail_.next=l:this.workHead_=l;this.workTail_=l};
zOG.prototype.remove=function(){var X=null;this.workHead_&&(X=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),X.next=null);return X};
var Q0m=new StC(function(){return new nyG},function(X){return X.reset()}),nyG=function(){this.next=this.scope=this.fn=null};
nyG.prototype.set=function(X,H){this.fn=X;this.scope=H;this.next=null};
nyG.prototype.reset=function(){this.next=this.scope=this.fn=null};var k7t,Txy,mkO,xk_;Txy=!1;mkO=new zOG;_.qQ=function(X,H){k7t||xk_();Txy||(k7t(),Txy=!0);mkO.add(X,H)};
xk_=function(){var X=Promise.resolve(void 0);k7t=function(){X.then(Nxb)}};var Dkz=function(X){X.prototype.$goog_Thenable=!0},tJD=function(X){if(!X)return!1;
try{return!!X.$goog_Thenable}catch(H){return!1}};var Wuz,EyQ,gy6,aRD,ZfG,if_,Q0D,cRY,Lu6,rRQ,ioz;_.UA=function(X,H){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(X!=_.FK)try{var l=this;X.call(H,function(b){l.resolve_(2,b)},function(b){l.resolve_(3,b)})}catch(b){this.resolve_(3,b)}};
Wuz=function(){this.next=this.context=this.JSC$10079_onRejected=this.JSC$10079_onFulfilled=this.child=null;this.always=!1};
Wuz.prototype.reset=function(){this.context=this.JSC$10079_onRejected=this.JSC$10079_onFulfilled=this.child=null;this.always=!1};
EyQ=new StC(function(){return new Wuz},function(X){X.reset()});
gy6=function(X,H,l){var b=EyQ.get();b.JSC$10079_onFulfilled=X;b.JSC$10079_onRejected=H;b.context=l;return b};
_.rZ=function(X){if(X instanceof _.UA)return X;var H=new _.UA(_.FK);H.resolve_(2,X);return H};
_.Cq=function(X){return new _.UA(function(H,l){l(X)})};
aRD=function(X,H,l){G7q(X,H,l,null)||_.qQ(_.lH(H,X))};
_.s$=function(X){return new _.UA(function(H,l){var b=X.length,U=[];if(b)for(var K=function(q,u){b--;U[q]=u;b==0&&H(U)},w=function(q){l(q)},d,B=0;B<X.length;B++)d=X[B],aRD(d,_.lH(K,B),w);
else H(U)})};
ZfG=function(X){return new _.UA(function(H){var l=X.length,b=[];if(l)for(var U=function(d,B,q){l--;b[d]=B?{fulfilled:!0,value:q}:{fulfilled:!1,reason:q};l==0&&H(b)},K,w=0;w<X.length;w++)K=X[w],aRD(K,_.lH(U,w,!0),_.lH(U,w,!1));
else H(b)})};
if_=function(X){return new _.UA(function(H,l){var b=X.length,U=[];if(b)for(var K=function(q){H(q)},w=function(q,u){b--;
U[q]=u;b==0&&l(U)},d,B=0;B<X.length;B++)d=X[B],aRD(d,K,_.lH(w,B));
else H(void 0)})};
_.kj=function(){var X,H,l=new _.UA(function(b,U){X=b;H=U});
return new vyC(l,X,H)};
_.UA.prototype.then=function(X,H,l){return Of_(this,BR(typeof X==="function"?X:null),BR(typeof H==="function"?H:null),l)};
Dkz(_.UA);Q0D=function(X,H,l,b){mkH(X,gy6(H||_.FK,l||null,b))};
_.MQ=function(X,H){H=BR(H);H=gy6(H,H);H.always=!0;mkH(X,H);return X};
_.UA.prototype.finally=function(X){var H=this;X=BR(X);return new _.UA(function(l,b){Q0D(H,function(U){X();l(U)},function(U){X();
b(U)})})};
_.UA.prototype.thenCatch=function(X,H){return Of_(this,null,BR(X),H)};
_.UA.prototype.catch=_.UA.prototype.thenCatch;_.UA.prototype.cancel=function(X){if(this.state_==0){var H=new _.nG(X);_.qQ(function(){Tx_(this,H)},this)}};
var Tx_=function(X,H){if(X.state_==0)if(X.parent_){var l=X.parent_;if(l.callbackEntries_){for(var b=0,U=null,K=null,w=l.callbackEntries_;w&&(w.always||(b++,w.child==X&&(U=w),!(U&&b>1)));w=w.next)U||(K=w);U&&(l.state_==0&&b==1?Tx_(l,H):(K?(b=K,b.next==l.callbackEntriesTail_&&(l.callbackEntriesTail_=b),b.next=b.next.next):NxF(l),cRY(l,U,3,H)))}X.parent_=null}else X.resolve_(3,H)},mkH=function(X,H){X.callbackEntries_||X.state_!=2&&X.state_!=3||j0F(X);
X.callbackEntriesTail_?X.callbackEntriesTail_.next=H:X.callbackEntries_=H;X.callbackEntriesTail_=H},Of_=function(X,H,l,b){var U=gy6(null,null,null);
U.child=new _.UA(function(K,w){U.JSC$10079_onFulfilled=H?function(d){try{var B=H.call(b,d);K(B)}catch(q){w(q)}}:K;
U.JSC$10079_onRejected=l?function(d){try{var B=l.call(b,d);B===void 0&&d instanceof _.nG?w(d):K(B)}catch(q){w(q)}}:w});
U.child.parent_=X;mkH(X,U);return U.child};
_.UA.prototype.unblockAndFulfill_=function(X){this.state_=0;this.resolve_(2,X)};
_.UA.prototype.unblockAndReject_=function(X){this.state_=0;this.resolve_(3,X)};
_.UA.prototype.resolve_=function(X,H){this.state_==0&&(this===H&&(X=3,H=new TypeError("ya")),this.state_=1,G7q(H,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=H,this.state_=X,this.parent_=null,j0F(this),X!=3||H instanceof _.nG||rRQ(this,H)))};
var G7q=function(X,H,l,b){if(X instanceof _.UA)return Q0D(X,H,l,b),!0;if(tJD(X))return X.then(H,l,b),!0;if(_.r8(X))try{var U=X.then;if(typeof U==="function")return JR6(X,U,H,l,b),!0}catch(K){return l.call(b,K),!0}return!1},JR6=function(X,H,l,b,U){var K=!1,w=function(B){K||(K=!0,l.call(U,B))},d=function(B){K||(K=!0,b.call(U,B))};
try{H.call(X,w,d)}catch(B){d(B)}},j0F=function(X){X.executing_||(X.executing_=!0,_.qQ(X.executeCallbacks_,X))},NxF=function(X){var H=null;
X.callbackEntries_&&(H=X.callbackEntries_,X.callbackEntries_=H.next,H.next=null);X.callbackEntries_||(X.callbackEntriesTail_=null);return H};
_.UA.prototype.executeCallbacks_=function(){for(var X;X=NxF(this);)cRY(this,X,this.state_,this.result_);this.executing_=!1};
cRY=function(X,H,l,b){if(l==3&&H.JSC$10079_onRejected&&!H.always)for(;X&&X.hadUnhandledRejection_;X=X.parent_)X.hadUnhandledRejection_=!1;if(H.child)H.child.parent_=null,Lu6(H,l,b);else try{H.always?H.JSC$10079_onFulfilled.call(H.context):Lu6(H,l,b)}catch(U){ioz.call(null,U)}EyQ.put(H)};
Lu6=function(X,H,l){H==2?X.JSC$10079_onFulfilled.call(X.context,l):X.JSC$10079_onRejected&&X.JSC$10079_onRejected.call(X.context,l)};
rRQ=function(X,H){X.hadUnhandledRejection_=!0;_.qQ(function(){X.hadUnhandledRejection_&&ioz.call(null,H)})};
ioz=bb;_.nG=function(X){_.XO.call(this,X)};
_.To(_.nG,_.XO);_.nG.prototype.name="cancel";var vyC=function(X,H,l){this.promise=X;this.resolve=H;this.reject=l};var ui;_.ho=function(X,H){_.zB.call(this);this.JSC$10091_interval_=X||1;this.timerObject_=H||_.ok;this.boundTick_=(0,_.K8)(this.tick_,this);this.last_=_.QC()};
_.To(_.ho,_.zB);_.R=_.ho.prototype;_.R.enabled=!1;_.R.JSC$10093_timer_=null;_.R.setInterval=function(X){this.JSC$10091_interval_=X;this.JSC$10093_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10093_timer_&&this.stop()};
_.R.tick_=function(){if(this.enabled){var X=_.QC()-this.last_;X>0&&X<this.JSC$10091_interval_*.8?this.JSC$10093_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10091_interval_-X):(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()))}};
_.R.start=function(){this.enabled=!0;this.JSC$10093_timer_||(this.JSC$10093_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10091_interval_),this.last_=_.QC())};
_.R.stop=function(){this.enabled=!1;this.JSC$10093_timer_&&(this.timerObject_.clearTimeout(this.JSC$10093_timer_),this.JSC$10093_timer_=null)};
_.R.disposeInternal=function(){_.ho.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
ui=function(X,H,l){if(typeof X==="function")l&&(X=(0,_.K8)(X,l));else if(X&&typeof X.handleEvent=="function")X=(0,_.K8)(X.handleEvent,X);else throw Error("za");return Number(H)>2147483647?-1:_.ok.setTimeout(X,H||0)};
_.Ytt=function(X){var H=null;return(new _.UA(function(l,b){H=ui(function(){l(void 0)},X);
H==-1&&b(Error("Aa"))})).thenCatch(function(l){_.ok.clearTimeout(H);
throw l;})};var YO=function(X){_.$e.call(this);this.streamzLogger=X;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 _.ho(this.flushInterval);this.JSC$10097_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.LY(this,this.JSC$10097_flushTimer)};
_.S(YO,_.$e);YO.prototype.sendIsolatedPayload=function(X){this.shouldSendIsolatedPayload=X;this.invocationLimit=1};
var IR6=function(X){X.JSC$10097_flushTimer.enabled||X.JSC$10097_flushTimer.start();X.invocationCount++;X.invocationCount>=X.invocationLimit&&X.snapshotAndFlush()};
YO.prototype.snapshotAndFlush=function(){var X=this.metricMap.values();X=[].concat(_.LJ(X)).filter(function(H){return H.cellMap.size});
X.length&&this.streamzLogger.flush(X,this.shouldSendIsolatedPayload);ARC(X);this.invocationCount=0;this.JSC$10097_flushTimer.enabled&&this.JSC$10097_flushTimer.stop()};
YO.prototype.addNewCounter=function(X){var H=_.Ab.apply(1,arguments);this.metricMap.has(X)||this.metricMap.set(X,new CjQ(X,H))};
YO.prototype.addNewEventMetric=function(X){var H=_.Ab.apply(1,arguments);this.metricMap.has(X)||this.metricMap.set(X,new w$Y(X,H))};
var XQF=function(X,H){return X.disabledMetrics.has(H)?void 0:X.metricMap.get(H)};
YO.prototype.JSC$10097_incrementCounter=function(X){this.JSC$10097_incrementCounterBy(X,1,_.Ab.apply(1,arguments))};
YO.prototype.JSC$10097_incrementCounterBy=function(X,H){var l=_.Ab.apply(2,arguments),b=XQF(this,X);b&&b instanceof CjQ&&(b.JSC$10036_incrementCounterBy(H,l),IR6(this))};
YO.prototype.record=function(X,H){var l=_.Ab.apply(2,arguments),b=XQF(this,X);b&&b instanceof w$Y&&(b.record(H,l),IR6(this))};
var ARC=function(X){for(var H=0;H<X.length;H++)X[H].clear()};_.e1=function(X,H,l){l=l===void 0?{}:l;H=Error.call(this,H);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.code=X;this.metadata=l;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(_.e1,Error);_.e1.prototype.toString=function(){var X="RpcError("+(j0b(this.code)||String(this.code))+")";this.message&&(X+=": "+this.message);return X};_.Htq=_.ok.JSON.parse;_.yD=_.ok.JSON.stringify;_.CN=_.ok.JSON.parse;_.ltY=function(X){switch(X){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 ort=function(X){switch(X){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var btD,Ud_=function(){};
_.To(Ud_,_.rRy);Ud_.prototype.createInstance=function(){return new XMLHttpRequest};
btD=new Ud_;_.VD=function(X){_.zB.call(this);this.headers=new Map;this.JSC$10106_xmlHttpFactory_=X||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};
_.To(_.VD,_.zB);var $dQ=/^https?$/i,KPG=["POST","PUT"],Rf_=[],NMl=function(X,H,l,b,U,K,w){var d=new _.VD;Rf_.push(d);H&&d.listen("complete",H);d.listenOnce("ready",d.cleanupSend_);K&&(d.timeoutInterval_=Math.max(0,K));w&&(d.JSC$10106_withCredentials_=w);d.send(X,l,b,U)};
_.VD.prototype.cleanupSend_=function(){this.dispose();_.Oy(Rf_,this)};
_.VD.prototype.send=function(X,H,l,b){if(this.JSC$10106_xhr_)throw Error("Ba`"+this.JSC$10106_lastUri_+"`"+X);H=H?H.toUpperCase():"GET";this.JSC$10106_lastUri_=X;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=BR((0,_.K8)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10106_xhr_.open(H,String(X),!0),this.inOpen_=!1}catch(w){C0F(this,w);return}X=
l||"";l=new Map(this.headers);if(b)if(Object.getPrototypeOf(b)===Object.prototype)for(var U in b)l.set(U,b[U]);else if(typeof b.keys==="function"&&typeof b.get==="function"){U=_.C(b.keys());for(var K=U.next();!K.done;K=U.next())K=K.value,l.set(K,b.get(K))}else throw Error("Ca`"+String(b));b=Array.from(l.keys()).find(function(w){return"content-type"==w.toLowerCase()});
U=_.ok.FormData&&X instanceof _.ok.FormData;!_.vh(KPG,H)||b||U||l.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");H=_.C(l);for(b=H.next();!b.done;b=H.next())l=_.C(b.value),b=l.next().value,l=l.next().value,this.JSC$10106_xhr_.setRequestHeader(b,l);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(X),this.inSend_=!1}catch(w){C0F(this,w)}};
_.VD.prototype.createXhr=function(){return this.JSC$10106_xmlHttpFactory_?this.JSC$10106_xmlHttpFactory_.createInstance():btD.createInstance()};
_.VD.prototype.timeout_=function(){typeof vQ_!="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 C0F=function(X,H){X.JSC$10106_active_=!1;X.JSC$10106_xhr_&&(X.inAbort_=!0,X.JSC$10106_xhr_.abort(),X.inAbort_=!1);X.JSC$10106_lastError_=H;X.JSC$10106_lastErrorCode_=5;wQt(X);ddD(X)},wQt=function(X){X.errorDispatched_||(X.errorDispatched_=!0,X.dispatchEvent("complete"),X.dispatchEvent("error"))};
_.VD.prototype.abort=function(X){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_=X||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ddD(this))};
_.VD.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),ddD(this,!0));_.VD.superClass_.disposeInternal.call(this)};
_.VD.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)hf_(this);else this.onReadyStateChangeEntryPoint_()};
_.VD.prototype.onReadyStateChangeEntryPoint_=function(){hf_(this)};
var hf_=function(X){if(X.JSC$10106_active_&&typeof vQ_!="undefined")if(X.inSend_&&_.PR(X)==4)setTimeout(X.onReadyStateChange_.bind(X),0);else if(X.dispatchEvent("readystatechange"),X.isComplete()){X.JSC$10106_active_=!1;try{if(X.isSuccess())X.dispatchEvent("complete"),X.dispatchEvent("success");else{X.JSC$10106_lastErrorCode_=6;try{var H=_.PR(X)>2?X.JSC$10106_xhr_.statusText:""}catch(l){H=""}X.JSC$10106_lastError_=H+" ["+X.getStatus()+"]";wQt(X)}}finally{ddD(X)}}},ddD=function(X,H){if(X.JSC$10106_xhr_){X.JSC$10106_timeoutId_&&
(clearTimeout(X.JSC$10106_timeoutId_),X.JSC$10106_timeoutId_=null);
var l=X.JSC$10106_xhr_;X.JSC$10106_xhr_=null;H||X.dispatchEvent("ready");try{l.onreadystatechange=null}catch(b){}}};
_.VD.prototype.isActive=function(){return!!this.JSC$10106_xhr_};
_.VD.prototype.isComplete=function(){return _.PR(this)==4};
_.VD.prototype.isSuccess=function(){var X=this.getStatus(),H;if(!(H=ort(X))){if(X=X===0)X=jZZ(String(this.JSC$10106_lastUri_)),X=!$dQ.test(X);H=X}return H};
_.PR=function(X){return X.JSC$10106_xhr_?X.JSC$10106_xhr_.readyState:0};
_.R=_.VD.prototype;_.R.getStatus=function(){try{return _.PR(this)>2?this.JSC$10106_xhr_.status:-1}catch(X){return-1}};
_.R.getResponseText=function(){try{return this.JSC$10106_xhr_?this.JSC$10106_xhr_.responseText:""}catch(X){return""}};
_.R.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(X){return null}};
_.R.getAllResponseHeaders=function(){return this.JSC$10106_xhr_&&_.PR(this)>=2?this.JSC$10106_xhr_.getAllResponseHeaders()||"":""};
_.R.getLastError=function(){return typeof this.JSC$10106_lastError_==="string"?this.JSC$10106_lastError_:String(this.JSC$10106_lastError_)};var IRL=function(){};
IRL.prototype.send=function(X,H,l){H=H===void 0?function(){}:H;
l=l===void 0?function(){}:l;
NMl(X.url,function(b){b=b.target;b.isSuccess()?H(b.getResponseText()):l(b.getStatus())},X.requestType,X.body,X.requestHeaders,X.timeoutMillis,X.withCredentials)};
IRL.prototype.getTransmissionType=function(){return 1};var FPz=function(X,H){this.cLT=X;this.event=H;this.startTime=IZ()},btm;
FPz.prototype.done=function(){this.cLT.y7(this.event,IZ()-this.startTime)};
var fu=function(){Yo.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.S(fu,Yo);_.pu=function(X,H,l){var b=IZ();H=H();X.y7(l,IZ()-b);return H};
btm=function(){fu.apply(this,arguments)};
_.S(btm,fu);_.R=btm.prototype;_.R.ofm=function(){};
_.R.oY=function(){};
_.R.y7=function(){};
_.R.logError=function(){};
_.R.dW=function(){};
_.R.gbh=function(){};
_.R.obx=function(){};
_.R.h4U=function(){};
var BLz=function(X){fu.call(this);var H=this;this.tJ=X;this.TEST_ONLY={zKj:function(){return H.tJ},
getExperimentIds:function(){return H.tJ.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void H.tJ.dispose()})};
_.S(BLz,fu);_.R=BLz.prototype;_.R.update=function(X){this.tJ.dispose();this.tJ=X};
_.R.oY=function(X){this.tJ.oY(X)};
_.R.y7=function(X,H){this.tJ.y7(X,H)};
_.R.logError=function(X){this.tJ.logError(X)};
_.R.dW=function(){this.tJ.dW()};
_.R.gbh=function(X){this.tJ.gbh(X)};
_.R.obx=function(X){this.tJ.obx(X)};
_.R.h4U=function(X){this.tJ.h4U(X)};
_.R.ofm=function(X){this.tJ.ofm(X)};
var qZ_=function(X,H){_.$e.call(this);var l=this;this.callback=X;this.iQ2=H;this.ycj=-H;this.addOnDisposeCallback(function(){return void clearTimeout(l.timer)})};
_.S(qZ_,_.$e);var sFC=function(X){if(X.timer===void 0){var H=Math.max(0,X.ycj+X.iQ2-IZ());X.timer=setTimeout(function(){try{X.callback()}finally{X.ycj=IZ(),X.timer=void 0}},H)}},MvD=function(X,H){fu.call(this);
this.metrics=X;this.wx=H};
_.S(MvD,fu);_.R=MvD.prototype;_.R.ofm=function(X){this.metrics.aEq.record(X,this.wx)};
_.R.oY=function(X){this.metrics.eventCount.increment(X,this.wx)};
_.R.y7=function(X,H){this.metrics.lQ7.record(H,X,this.wx)};
_.R.logError=function(X){this.metrics.errorCount.increment(X,this.wx)};
_.R.gbh=function(X){this.metrics.lhv.increment(X,this.wx)};
_.R.obx=function(X){this.metrics.n19.increment(X,this.wx)};
_.R.h4U=function(X){this.metrics.raI.increment(X,this.wx)};
var Udk=function(X,H){H=H===void 0?[]:H;var l={wx:X.wx||"_",dNB:X.dNB||[],n8j:X.n8j|0,destinationUrl:X.destinationUrl,yY8:X.yY8||function(){},
aTz:X.aTz||function(K,w){return or8(K,w,l.yY8,l.destinationUrl)}},b=l.aTz("53",l.dNB.concat(H));
MvD.call(this,{aEq:new l1Q(b),errorCount:new $s_(b),eventCount:new bWz(b),lQ7:new UsD(b),b0t:new o3Y(b),lhv:new KXz(b),n19:new RJ_(b),raI:new CLv(b)},l.wx);var U=this;this.TEST_ONLY={getExperimentIds:function(){return U.options.dNB.concat(U.k4T).sort(function(K,w){return K-w})}};
this.options=l;this.service=b;this.tYq=!X.aTz;this.flushDebouncer=new qZ_(function(){return void U.service.snapshotAndFlush()},l.n8j);
this.addOnDisposeCallback(function(){U.flushDebouncer.dispose();U.tYq&&U.service.dispose()});
(this.k4T=H.slice()).sort(_.GKy)};
_.S(Udk,MvD);Udk.prototype.dW=function(){sFC(this.flushDebouncer)};var hYh=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(hYh,_.sU);_.F8l=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(_.F8l,_.sU);var tG=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X,0,tG.messageId)};
_.S(tG,_.sU);var uBQ=_.wJb(tG);tG.messageId="bfkj";var k78=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(k78,_.sU);var efQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(efQ,_.sU);var ylQ=_.Wu(efQ);_.cF=function(){var X=this;this.promise=new Promise(function(H,l){X.resolve=H;X.reject=l})};_.S1=function(X){_.$e.call(this);var H=this;this.dD1=Math.floor(Math.random()*200);this.t8B=new efQ;if("challenge"in X&&uBQ(X.challenge)){var l=_.sC(X.challenge,4,void 0,gt);var b=_.sC(X.challenge,5,void 0,gt);_.sC(X.challenge,7,void 0,gt)&&(this.t8B=ylQ(_.sC(X.challenge,7,void 0,gt)))}else l=X.program,b=X.globalName;this.addOnDisposeCallback(function(){var p,z,t;return _.h(function(W){if(W.nextAddress==1)return W.yield(H.r9m,2);p=W.yieldResult;z=p.dmK;(t=z)==null||t();_.m5(W)})});
this.xC=$dN(X.yq8||{},this.t8B);_.LY(this,this.xC);var U=new _.cF;this.r9m=U.promise;this.xC.oY("t");var K=this.xC.share(),w=new FPz(K,"t"),d=function(p,z,t,W){if(!H.xC.isDisposed()){var G="k";z?G="h":t&&(G="u");G!=="k"?W!==0&&(H.xC.oY(G),H.xC.y7(G,p)):H.dD1<=0?(H.xC.oY(G),H.xC.y7(G,p),H.dD1=Math.floor(Math.random()*200)):H.dD1--}},B=function(p,z,t,W){Promise.resolve().then(function(){w.done();
K.dW();K.dispose();U.resolve({jM7:p,dmK:z,hmI:t,k7q:W})})};
if(!_.ok[b])throw this.xC.logError(25),Error("Da");if(!_.ok[b].a)throw this.xC.logError(26),Error("Ea");try{var q=_.ok[b].a;b=[];for(var u=[],e=xky(this.t8B),y=0;y<e.length;y++)b.push(e[y]),u.push(1);var V=Dkh(this.t8B);for(e=0;e<V.length;e++)b.push(V[e]),u.push(2);this.bNI=_.C(q(l,B,!0,X.lfT,d,[b,u],_.sC(this.t8B,5),!1)).next().value;this.flU=U.promise.then(function(){})}catch(p){throw this.xC.logError(28),p;
}};
_.S(_.S1,_.$e);_.S1.prototype.snapshot=function(X){if(this.isDisposed())throw Error("Fa");this.xC.oY("n");var H=this.xC.share();return this.r9m.then(function(l){var b=l.jM7;return new Promise(function(U){var K=new FPz(H,"n");b(function(w){K.done();H.ofm(w.length);H.dW();H.dispose();U(w)},[X.hL,
X.kgX,X.yQ1,X.chZ])})})};
_.S1.prototype.e5m=function(X){this.r9m.then(function(H){var l;(l=H.hmI)==null||l(X)})};
_.S1.prototype.mkB=function(X,H){return this.r9m.then(function(l){var b;return(b=l.k7q)==null?void 0:b(X,H,!1)})};
_.S1.prototype.sav=function(){return this.xC.share()};var Vv_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Vv_,_.sU);var NVL=_.wJb(Vv_);var P0_=function(){this.promises={};this.uTZ=null},ftz=function(){P0_.instance||(P0_.instance=new P0_);
return P0_.instance},SZG=function(X,H){return pQ9(X,_.Al(H,hYh,1,gt),_.Al(H,_.F8l,2,gt),_.sC(H,3,void 0,gt))},pQ9=function(X,H,l,b){if(!H&&!l)return Promise.resolve();
if(!b)return ddm(H,l);var U;(U=X.promises)[b]||(U[b]=new Promise(function(K,w){ddm(H,l).then(function(){X.uTZ=b;K()},function(d){delete X.promises[b];
w(d)})}));
return X.promises[b]};var zfQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(zfQ,_.sU);var nr_=function(X,H){return _.Wx(X,1,H)},kTY=function(X,H){return _.Wx(X,2,H)};var zj=function(X){_.$e.call(this);var H=this;this.options=X;this.cAh=new _.cF;this.flU=this.cAh.promise;this.yjU=new _.cF;this.v5b=1;this.khm=new _.cF;this.jih=[];this.isPaused=!1;this.vNU=X.vNU||function(){};
this.zDH=new BLz($dN(X.yq8||{}));xdH(this,X.eO,X.nOu,X.v2S,X.knR,Object.assign({},DdD,X.qpm||{}));this.addOnDisposeCallback(function(){return void tvQ(H)})};
_.S(zj,_.$e);zj.prototype.snapshot=function(X){var H=this;return _.h(function(l){switch(l.nextAddress){case 1:if(H.isDisposed())throw Error("Fa");if(H.ou||H.f0b){l.jumpTo(2);break}return l.yield(H.yjU.promise,2);case 2:if(!H.ou){l.jumpTo(4);break}return l.yield(H.ou.snapshot(X),5);case 5:return l.return(l.yieldResult);case 4:throw H.f0b;}})};
zj.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.d1&&this.d1.pause())};
zj.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.d1&&this.d1.resume())};
zj.prototype.checkForRefresh=function(){var X=this;return _.h(function(H){if(X.isDisposed())throw Error("Fa");var l;if(l=X.d1)l=X.d1,l.isExpired()?(WP_(l),l.resolver(0),l=!0):l=!1,l=!l;return l?H.jumpTo(0):H.yield(X.khm.promise,0)})};
var gr_=function(X){var H;return _.h(function(l){if(X.isDisposed())throw Error("Fa");(H=X.d1)==null||ErQ(H);return l.yield(X.khm.promise,0)})},tvQ=function(X){X.f0b=Error("Ha");
X.yjU.resolve();tJm(X.cAh.promise);X.cAh.reject(Error("Ha"));X.zDH.dispose();Promise.all(X.jih).then(function(){var l;return _.h(function(b){(l=X.ou)==null||l.dispose();X.ou=void 0;_.m5(b)})});
X.jih=[];var H;(H=X.d1)==null||ErQ(H);tJm(X.khm.promise);X.khm.reject(Error("Ha"))};
zj.prototype.e5m=function(X){var H,l;(H=this.ou)==null||(l=H.e5m)==null||l.call(H,X)};
zj.prototype.mkB=function(X,H){var l,b,U;return(U=(l=this.ou)==null?void 0:(b=l.mkB)==null?void 0:b.call(l,X,H))!=null?U:Promise.resolve()};
var GTD=function(X,H){var l=X.vNU;X.vNU=function(){l();H()}},at_=function(X,H){X.isDisposed()||(X.ou=H,X.zDH.update(H.sav()),X.yjU.resolve(),X.cAh.resolve(void 0),X.vNU())};
zj.prototype.handleError=function(X){if(!this.isDisposed()){this.f0b=X;this.yjU.resolve();var H,l;(l=(H=this.options).aG3)==null||l.call(H,X)}};
var Ztz=function(X,H){H&&(Promise.all(X.jih).then(function(){return void H.dispose()}),X.jih=[])},nu=function(X,H){X.v5b=H;
var l,b;(b=(l=X.options).thx)==null||b.call(l,H)},itF=function(X){X.isDisposed()||(X.khm.resolve(),X.khm=new _.cF)},xdH=function(X,H,l,b,U,K){b=b===void 0?ftz():b;
U=U===void 0?Promise.resolve(void 0):U;var w,d,B,q,u,e,y,V,p,z,t,W;_.h(function(G){switch(G.nextAddress){case 1:return G.yield(0,3);case 3:d=null;if(!w){G.jumpTo(6);break}nu(X,7);_.Ew(G,7);return G.yield(oA(w.snapshot({}),K.cKu,function(){return Promise.resolve("E:CTO")}),9);
case 9:d=G.yieldResult;_.Zt(G,6);break;case 7:_.Ow(G),d="E:UCE";case 6:B=void 0,q=w?K.y07:K.tg7,u=new jP(q,K.aQd,K.s7q,K.c0h),e=1;case 10:if(!(e<=K.maxAttempts)){G.jumpTo(12);break}if(e===1){G.jumpTo(13);break}nu(X,0);X.d1=new k1(u.getValue(),K.wTx,K.snv);return G.yield(X.d1.promise,14);case 14:y=G.yieldResult,X.d1=void 0,y===1?(e=1,u.reset()):I1Q(u);case 13:_.Ew(G,15);V=void 0;if(l){V=l;G.jumpTo(17);break}nu(X,5);p=b.uTZ;return G.yield(oA(vrD(H,p,d),K.pSd,function(){return Promise.reject(Error("Ia"))}),
18);
case 18:V=G.yieldResult;case 17:return nu(X,3),G.yield(oA(SZG(b,V),K.vzI,function(){return Promise.reject(Error("Ja"))}),19);
case 19:return nu(X,8),G.yield(U,20);case 20:return z=new _.S1({challenge:V,yq8:X.options.yq8,lfT:X.options.lfT}),G.yield(oA(z.flU,K.m1I,function(){return Promise.reject(Error("Ka"))}),21);
case 21:B=z;G.jumpTo(12);break;case 15:t=_.Ow(G),X.handleError(t),itF(X);case 11:e++;G.jumpTo(10);break;case 12:if(X.isDisposed()){G.jumpTo(5);break}B&&(l=void 0,Ztz(X,w),w=B,at_(X,B),itF(X));nu(X,2);X.d1=new k1(K.fIK,K.wTx,K.snv);X.isPaused&&X.d1.pause();return G.yield(X.d1.promise,22);case 22:X.d1=void 0;if(X.isDisposed()){G.jumpTo(5);break}G.jumpTo(3);break;case 5:(W=w)==null||W.dispose(),_.m5(G)}})};
zj.prototype.sav=function(){return this.zDH.share()};
var DdD={fIK:432E5,wTx:3E5,snv:10,cKu:1E4,pSd:3E4,vzI:3E4,m1I:6E4,tg7:1E3,y07:6E4,aQd:6E5,s7q:.25,c0h:2,maxAttempts:10},k1=function(X,H,l){var b=this;this.endTimeMs=0;this.oHH=null;this.isPaused=!1;this.tick=function(){if(!b.isPaused){var U=b.endTimeMs-Date.now();U<=b.zNj?(b.oHH=null,b.resolver(0)):b.oHH=setTimeout(b.tick,Math.min(U,b.wTx))}};
this.wTx=H;this.zNj=l;this.promise=new Promise(function(U){b.resolver=U});
Otv(this,X)},Otv=function(X,H){X.endTimeMs=Date.now()+H;
X.tick()};
k1.prototype.pause=function(){this.isPaused||(this.isPaused=!0,WP_(this))};
k1.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var ErQ=function(X){WP_(X);X.endTimeMs=0;X.isPaused=!1;X.resolver(1)},WP_=function(X){X.oHH&&(clearTimeout(X.oHH),X.oHH=null)};
k1.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var mdG,BLh=(mdG=Math.imul)!=null?mdG:function(X,H){return X*H|0},UT=[196,
200,224,18],x1=function(X,H,l){l=l===void 0?[]:l;this.maxItems=X;this.pD=H===void 0?0:H;this.de=l},QFG=function(X){var H=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!H)return new x1(X);var l=H.split(",");if(l.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new x1(X);H=l.slice(1);H.length===1&&H[0]===""&&(H=[]);l=Number(l[0]);return isNaN(l)||l<0||l>H.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new x1(X)):new x1(X,l,H)};
x1.prototype.serialize=function(){return String(this.pD)+","+this.de.join()};
x1.prototype.insert=function(X,H){var l=void 0;if(this.de[this.pD]!==X){var b=this.de.indexOf(X);b!==-1?(this.de.splice(b,1),b<this.pD&&this.pD--,this.de.splice(this.pD,0,X)):(l=this.de[this.pD],this.de[this.pD]=X)}this.pD=(this.pD+1)%this.maxItems;X=hfk("iU5q-!O9@$",this.serialize());l&&X&&H(l);return X};
var TLG=function(X,H){this.pEm=H;try{var l=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(b){l=!1}l&&(this.index=QFG(X))},NL_=function(X,H,l,b,U){var K=X.index?_.pu(X.pEm,function(){return uBy(X.index,sFz(H),l,b,U)},"W"):"u";
X.pEm.h4U(K)},cl9=function(X,H,l){var b=_.C(X.index?_.pu(X.pEm,function(){return efy(sFz(H),l)},"R"):["u"]),U=b.next().value;
b=b.next().value;X.pEm.obx(U);return b};var jFC={toString:function(X){var H=[],l=0;X-=-2147483648;H[l++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(X%52);for(X=Math.floor(X/52);X>0;)H[l++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(X%62),X=Math.floor(X/62);return H.join("")}};var LPz=function(X){X=rlQ(X);for(var H=2654435769,l=2654435769,b=314159265,U=X.length,K=U,w=0,d=function(){H-=l;H-=b;H^=b>>>13;l-=b;l-=H;l^=H<<8;b-=H;b-=l;b^=l>>>13;H-=l;H-=b;H^=b>>>12;l-=b;l-=H;l^=H<<16;b-=H;b-=l;b^=l>>>5;H-=l;H-=b;H^=b>>>3;l-=b;l-=H;l^=H<<10;b-=H;b-=l;b^=l>>>15};K>=12;K-=12,w+=12)H+=Jl_(X,w),l+=Jl_(X,w+4),b+=Jl_(X,w+8),d();
b+=U;switch(K){case 11:b+=X[w+10]<<24;case 10:b+=X[w+9]<<16;case 9:b+=X[w+8]<<8;case 8:l+=X[w+7]<<24;case 7:l+=X[w+6]<<16;case 6:l+=X[w+5]<<8;case 5:l+=X[w+4];case 4:H+=X[w+3]<<24;case 3:H+=X[w+2]<<16;case 2:H+=X[w+1]<<8;case 1:H+=X[w]}d();return jFC.toString(b)},rlQ=function(X){for(var H=[],l=0;l<X.length;l++)H.push(X.charCodeAt(l));
return H},Jl_=function(X,H){return X[H]+(X[H+1]<<8)+(X[H+2]<<16)+(X[H+3]<<24)};var DN=function(X){_.$e.call(this);this.u7=X;this.keQ=new _.cF};
_.S(DN,_.$e);var YZ6=function(X,H){var l=setTimeout(function(){X.keQ.resolve()},H);
X.addOnDisposeCallback(function(){return void clearTimeout(l)})};
DN.prototype.t0m=function(X,H){var l=this.be(X);H==null||H(l);return _.pu(this.u7,function(){return _.Ik(l,2)},this.qfm)};
var Itv=function(X,H,l,b){return _.pu(X.u7,function(){return l?X.t0m(H,b):X.be(H,b)},X.a1h)},Alz=function(X,H,l,b){DN.call(this,X);
this.qqF=H;this.hUP=l;this.a1h="m";this.qfm="x";this.o2K=0;YZ6(this,b)};
_.S(Alz,DN);Alz.prototype.be=function(X,H){var l=this;this.u7.oY(this.a1h);++this.o2K>=this.hUP&&this.keQ.resolve();var b=X();X=_.pu(this.u7,function(){return l.qqF(b)},"C");
if(X===void 0)throw new Jf(17,"YNJ:Undefined");if(!(X instanceof Uint8Array))throw new Jf(18,"ODM:Invalid");H==null||H(X);return X};
var XBG=function(X,H,l){DN.call(this,X);this.tda=H;this.a1h="f";this.qfm="z";YZ6(this,l)};
_.S(XBG,DN);XBG.prototype.be=function(){return this.tda};
var HUQ=function(X,H,l){DN.call(this,X);this.aBd=H;this.a1h="w";this.qfm="z";YZ6(this,l)};
_.S(HUQ,DN);HUQ.prototype.be=function(){var X=this;return _.pu(this.u7,function(){return _.Ay(X.aBd)},"d")};
HUQ.prototype.t0m=function(){return this.aBd};
var lSQ=function(X,H){DN.call(this,X);this.error=H;this.a1h="e";this.qfm="y"};
_.S(lSQ,DN);var oVQ=function(X,H){var l=(H(X.error.message)+":"+H(X.error.stack)).substring(0,2048);H=l.length+1;l=yly(l);var b=new Uint8Array(4+l.length);b.set([42,H&127|128,H>>7,X.error.code]);b.set(l,4);return b};
lSQ.prototype.be=function(){if(this.eTo)return this.eTo;this.eTo=oVQ(this,function(X){return"_"+LPz(X)});
return oVQ(this,function(X){return X})};
var bUq=function(X,H,l){DN.call(this,X);this.ipq=H;this.clientState=l;this.a1h="S";this.qfm="q"};
_.S(bUq,DN);bUq.prototype.be=function(){var X=Math.floor(Date.now()/1E3),H=[Math.random()*255,Math.random()*255],l=H.concat([this.ipq&255,this.clientState],[X>>24&255,X>>16&255,X>>8&255,X&255]);X=new Uint8Array(2+l.length);X[0]=34;X[1]=l.length;X.set(l,2);l=X.subarray(2);for(var b=H=H.length;b<l.length;++b)l[b]^=l[b%H];this.u7.gbh(this.clientState);return X};var UKF={rS7:3E4,sDG:2E4},t8=function(X){_.$e.call(this);var H=this;this.qxB=new _.cF;this.cqQ=0;this.uh=void 0;this.state=2;this.vm=X.vm;this.eO=X.eO;this.qpm=Object.assign({},UKF,X.qpm||{});this.gs=X.vm.sav();var l;this.onError=(l=X.onError)!=null?l:function(){};
this.j9T=X.j9T||!1;if($KQ(X)){var b=this.vm;this.p5y=function(){return gr_(b).catch(function(w){w=H.reportError(new Jf(H.cj?20:32,"TRG:Disposed",w));H.uh=w;var d;(d=H.cj)==null||d.dispose();H.cj=void 0;H.qxB.reject(w)})};
GTD(b,function(){return void KQQ(H)});
b.v5b===2&&KQQ(this)}else this.p5y=X.gzx,KQQ(this);var U=this.gs.share();U.oY("o");var K=new FPz(U,"o");this.qxB.promise.then(function(){K.done();U.dW();U.dispose()},function(){return void U.dispose()});
this.addOnDisposeCallback(function(){H.cj?(H.cj.dispose(),H.cj=void 0):H.uh?H.gs.dW():(H.uh=H.reportError(new Jf(32,"TNP:Disposed")),H.gs.dW(),H.qxB.reject(H.uh))});
_.LY(this,this.gs)};
_.S(t8,_.$e);t8.prototype.viT=function(){return this.qxB.promise};
var RVD=function(X,H){if(!(H instanceof Jf))if(H instanceof _.e1){var l=Error(H.toString());l.stack=H.stack;H=new Jf(11,"EBH:Error",l)}else H=new Jf(12,"BSO:Unknown",H);return X.reportError(H)},KQQ=function(X){var H,l,b,U,K,w,d,B,q,u,e,y,V,p,z;
return _.h(function(t){switch(t.nextAddress){case 1:H=void 0;X.cqQ++;l=new _.cF;X.vm instanceof zj&&X.vm.jih.push(l.promise);if(!X.j9T){t.jumpTo(2);break}b=new _.cF;setTimeout(function(){return void b.resolve()});
return t.yield(b.promise,2);case 2:return U=X.gs.share(),_.Ew(t,4,5),X.state=5,K={},w=[],t.yield(oA(X.vm.snapshot({hL:K,yQ1:w}),X.qpm.sDG,function(){return Promise.reject(new Jf(15,"MDA:Timeout"))}),7);
case 7:d=t.yieldResult;if(X.isDisposed())throw new Jf(X.cj?20:32,"MDA:Disposed");B=w[0];X.state=6;return t.yield(oA(CMF(X.eO,d),X.qpm.rS7,function(){return Promise.reject(new Jf(10,"BWB:Timeout"))}),8);
case 8:q=t.yieldResult;if(X.isDisposed())throw new Jf(X.cj?20:32,"BWB:Disposed");X.state=7;H=_.pu(U,function(){var G=wBF(X,q,l,B);G.keQ.promise.then(function(){return void X.p5y()});
return G},"i");
case 5:_.GS(t);U.dispose();_.vJ(t,6);break;case 4:u=_.Ow(t);(e=H)==null||e.dispose();if(!X.uh){y=RVD(X,u);l.resolve();var W;if(W=X.vm instanceof zj&&X.cqQ<2)a:if(u instanceof Jf)W=u.code!==32&&u.code!==20&&u.code!==10;else{if(u instanceof _.e1)switch(u.code){case 2:case 13:case 14:case 4:break;default:W=!1;break a}W=!0}if(W)return V=(1+Math.random()*.25)*(X.cj?6E4:1E3),p=setTimeout(function(){return void X.p5y()},V),X.addOnDisposeCallback(function(){return void clearTimeout(p)}),t.return();
X.uh=y}U.logError(X.cj?13:14);X.qxB.reject(X.uh);return t.return();case 6:X.state=8,X.cqQ=0,(z=X.cj)==null||z.dispose(),X.cj=H,X.qxB.resolve(),_.m5(t)}})},wBF=function(X,H,l,b){var U=$at(H,2)*1E3;
if(U<=0)throw new Jf(31,"TTM:Invalid");if(_.sC(H,4))return new HUQ(X.gs,_.sC(H,4),U);if(!$at(H,3))return new XBG(X.gs,QCv(_.Kj(H,1)),U);if(!b)throw new Jf(4,"PMD:Undefined");b=b(QCv(_.Kj(H,1)));if(typeof b!=="function")throw new Jf(16,"APF:Failed");X.sOu=Math.floor((Date.now()+U)/1E3);X=new Alz(X.gs,b,$at(H,3),U);X.addOnDisposeCallback(function(){return void l.resolve()});
return X};
t8.prototype.be=function(X){return dKY(this,Object.assign({},X),!1)};
t8.prototype.t0m=function(X){return dKY(this,Object.assign({},X),!0)};
t8.prototype.aQ6=function(X){if(X>150)return!1;try{return this.cache=new TLG(X,this.gs),!0}catch(H){return this.reportError(new Jf(22,"GBJ:init",H)),!1}};
t8.prototype.reportError=function(X){this.gs.logError(X.code);this.onError(X);return X};
var hV_=function(X,H){H=H instanceof Jf?H:new Jf(5,"TVD:error",H);return X.reportError(H)},dKY=function(X,H,l){try{if(X.isDisposed())throw new Jf(21,"BNT:disposed");
if(!X.cj&&X.uh)throw X.uh;var b,U;return(U=(b=FQY(X,H,l))!=null?b:BnQ(X,H,l))!=null?U:q4t(X,H,l)}catch(K){if(!H.gLf)throw hV_(X,K);return swv(X,l,K)}},FQY=function(X,H,l){var b;
return(b=X.cj)==null?void 0:Itv(b,function(){return Ms_(X,H)},l,function(U){var K;
if(X.cj instanceof Alz&&((K=H.sT)==null?0:K.eQa))try{var w;(w=X.cache)==null||NL_(w,Ms_(X,H),U,H.sT.akm,X.sOu-120)}catch(d){X.reportError(new Jf(24,"ELX:write",d))}})},BnQ=function(X,H,l){var b;
if((b=H.sT)!=null&&b.j8j)try{var U,K=(U=X.cache)==null?void 0:cl9(U,Ms_(X,H),H.sT.akm);return K?l?_.pu(X.gs,function(){return _.Ik(K,2)},"a"):K:void 0}catch(w){X.reportError(new Jf(23,"RXO:read",w))}},q4t=function(X,H,l){var b={stack:[],
error:void 0,hasError:!1};try{if(!H.hqo)throw new Jf(29,"SDF:notready");return Itv(cQH(b,new bUq(X.gs,0,X.state)),function(){return Ms_(X,H)},l)}catch(U){b.error=U,b.hasError=!0}finally{j_q(b)}},swv=function(X,H,l){var b={stack:[],
error:void 0,hasError:!1};try{var U=hV_(X,l);return Itv(cQH(b,new lSQ(X.gs,U)),function(){return[]},H)}catch(K){b.error=K,b.hasError=!0}finally{j_q(b)}},Ms_=function(X,H){return H.jov?H.jov:H.hL?_.pu(X.gs,function(){return H.jov=yly(H.hL)},"c"):[]},$KQ=function(X){return a_(function(H){if(!Hg(H))return!1;
for(var l=_.C(Object.entries(X)),b=l.next();!b.done;b=l.next()){var U=_.C(b.value);b=U.next().value;U=U.next().value;if(!(b in H)){if(U.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!U(H[b]))return!1}return!0})}({vm:function(X){return a_(function(H){return H instanceof X})}(zj)},"");var u$t=function(){var X=_.m1();this.JSC$10224_streamzService=X;X.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",mZ("cookie_enabled"),mZ("cookie_3p_enabled"),_.Tp("browser"))};
u$t.prototype.increment=function(X,H,l){this.JSC$10224_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",X,H,l)};
var jYL=function(){var X=_.m1();this.JSC$10248_streamzService=X;X.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Qo("tick"),mZ("from_st_cookie"))};
jYL.prototype.increment=function(X,H){this.JSC$10248_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",X,H)};
var eVq=function(){var X=_.m1();this.JSC$10254_streamzService=X;X.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Tp("status"))};
eVq.prototype.increment=function(X){this.JSC$10254_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",X)};
var yV_=function(){var X=_.m1();this.JSC$10257_streamzService=X;X.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Tp("stage"),mZ("is_using_ytd_player"),mZ("has_expandable_tiles"))};
yV_.prototype.increment=function(X,H,l){this.JSC$10257_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",X,H,l)};
var Vs_=function(){var X=_.m1();this.JSC$10260_streamzService=X;X.addNewCounter("/client_streamz/youtube/web/response_signature",_.Tp("check_status"))};
Vs_.prototype.increment=function(X){this.JSC$10260_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/response_signature",X)};
var PM9=function(){var X=_.m1();this.JSC$10263_streamzService=X;X.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Tp("sig"),Qo("de"))};
PM9.prototype.increment=function(X,H){this.JSC$10263_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/e_sig_log",X,H)};
var fS6=function(){var X=_.m1();this.JSC$10266_streamzService=X;X.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Tp("sig"),Qo("de"))};
fS6.prototype.increment=function(X,H){this.JSC$10266_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/e_sig_en",X,H)};
_.pBF=function(){var X=_.m1();this.JSC$10269_streamzService=X;X.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Tp("action"))};
_.pBF.prototype.increment=function(X){this.JSC$10269_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/web/enforcement_intent",X)};var WR=window;var S4_=(new Date).getTime();_.Bb.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.Bb.createSet("action","cite","data","formaction","href","manifest","poster","src");var zVv=function(X){this.servicePromise_=X;X.then((0,_.K8)(function(){},this),function(){},this)},nVt=function(X,H,l){X.servicePromise_.then(function(b){var U=b[H];
if(!U)throw Error("La`"+H);return U.apply(b,l)})},DK9=function(X,H,l){for(var b=Array(arguments.length-2),U=2;U<arguments.length;U++)b[U-2]=arguments[U];
U=kdq(X,H).then(function(K){return K.apply(null,b)},function(K){K=Error("Ma`"+H+"`"+X+"`"+K,{cause:K});
delete xK6[H];return _.Cq(K)});
return new zVv(U)},xK6={},kdq=function(X,H){var l=xK6[H];
if(l)return l;l=(l=_.ij(H))?_.rZ(l):(new _.UA(function(b,U){var K=(new MO(document)).createElement("SCRIPT");K.async=!0;_.sw(K,_.vu(vOQ(X)));K.onload=K.onreadystatechange=function(){K.readyState&&K.readyState!="loaded"&&K.readyState!="complete"||b()};
K.onerror=function(w){U(Error("Na`"+H+"`"+X,{cause:w}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(K)})).then(function(){var b=_.ij(H);
if(!b)throw Error("Oa`"+H+"`"+X);return b});
return xK6[H]=l};var tsC={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},EVY=function(){var X=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=Vvy(function(){return _.h(function(H){if(H.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?H.return(Promise.resolve()):H.yield(WQ6(X),2);X.rsaForList.length>
0&&document.addEventListener("click",X.requestAccessForHelpPanel);_.m5(H)})});
this.requestAccessForHelpPanel=function(){if(!(X.rsaForPromises.length>0)){for(var H=_.C(X.rsaForList),l=H.next();!l.done;l=H.next()){l=l.value;try{X.rsaForPromises.push(document.requestStorageAccessFor(l))}catch(b){}}Promise.all(X.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){X.reset()})}}};
EVY.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var WQ6=function(X){var H,l,b,U;return _.h(function(K){switch(K.nextAddress){case 1:H=_.C(Object.values(tsC)),l=H.next();case 2:if(l.done){K.jumpTo(0);break}b=l.value;_.Ew(K,5);return K.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:b}),7);case 7:U=K.yieldResult;U.state!=="granted"&&X.rsaForList.push(b);_.Zt(K,3);break;case 5:_.Ow(K);K.jumpTo(0);break;case 3:l=H.next(),K.jumpTo(2)}})};(new EVY).initialize();var gVH=function(X){this.JSC$10283_loader_=X};
gVH.prototype.startHelp=function(X){nVt(this.JSC$10283_loader_,"startHelp",arguments)};
gVH.prototype.JSC$10285_loadChatSupport=function(X){nVt(this.JSC$10283_loader_,"loadChatSupport",arguments)};
var aSC=function(X,H){H=H||{};X=DK9(Gdz,"help.service.Lazy.create",X,{apiKey:H.apiKey||H.apiKey,asxUiUri:H.asxUiUri||H.asxUiUri,environment:H.environment||H.environment,flow:H.flow||H.flow,frdProductData:H.frdProductData||H.frdProductData,frdProductDataSerializedJspb:H.frdProductDataSerializedJspb||H.frdProductDataSerializedJspb,helpCenterPath:H.helpCenterPath||H.helpCenterPath,locale:H.locale||H.locale||"en-US".replace(/-/g,"_"),nonce:H.nonce||H.nonce,productData:H.productData||H.productData,receiverUri:H.receiverUri||
H.receiverUri,renderApiUri:H.renderApiUri||H.renderApiUri,theme:H.theme||H.theme,window:H.window||H.window});return new gVH(X)},Gdz=new tS(P4z,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var ZUt=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(ZUt,_.sU);var iU_=_.Wu(ZUt);var vVQ=[0,_.ie,WC,IrY];_.OUH=new function(X,H,l,b){this.configType=X;this.flagName=l;this.defaultValue=b;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 Qwv=function(){this.retriever=_.jJ().resolve(mKC)};_.m9={get payments(){return window.payments}};fth(Node);fth(Element);var Tnv=fth(HTMLElement);fth(SVGElement);var NnQ,cVt,Gj,jw9;NnQ=function(X){return typeof X.className=="string"?X.className:X.getAttribute&&X.getAttribute("class")||""};
cVt=function(X){return X.classList?X.classList:NnQ(X).match(/\S+/g)||[]};
_.E$=function(X,H){typeof X.className=="string"?X.className=H:X.setAttribute&&X.setAttribute("class",H)};
_.gB=function(X,H){return X.classList?X.classList.contains(H):_.vh(cVt(X),H)};
_.kl=function(X,H){if(X.classList)X.classList.add(H);else if(!_.gB(X,H)){var l=NnQ(X);_.E$(X,l+(l.length>0?" "+H:H))}};
Gj=function(X,H){if(X.classList)Array.prototype.forEach.call(H,function(U){_.kl(X,U)});
else{var l={};Array.prototype.forEach.call(cVt(X),function(U){l[U]=!0});
Array.prototype.forEach.call(H,function(U){l[U]=!0});
H="";for(var b in l)H+=H.length>0?" "+b:b;_.E$(X,H)}};
_.nq=function(X,H){X.classList?X.classList.remove(H):_.gB(X,H)&&_.E$(X,Array.prototype.filter.call(cVt(X),function(l){return l!=H}).join(" "))};
jw9=function(X,H){X.classList?Array.prototype.forEach.call(H,function(l){_.nq(X,l)}):_.E$(X,Array.prototype.filter.call(cVt(X),function(l){return!_.vh(H,l)}).join(" "))};var rVG=function(X){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=X.document},Y4_=function(X,H){JVG(X);
var l=document.createElement("div"),b;(b=H.parentNode)==null||b.insertBefore(l,H);l.tabIndex=0;l.id="fc-focus-trap-pre-div";l=document.createElement("div");var U;(U=H.parentNode)==null||U.insertBefore(l,H.nextSibling);l.tabIndex=0;l.id="fc-focus-trap-post-div";var K=LQQ(X,H),w=LQQ(X,H,!0);K&&w&&(X.focusChangeHandler=function(){var d=X.document.activeElement;if(d)if(_.aA(H,d))X.previouslyFocusedElement=d;else if(d===X.document.activeElement)switch(X.previouslyFocusedElement){case K:w.focus();X.previouslyFocusedElement=
w;break;default:K.focus(),X.previouslyFocusedElement=K}},X.document.addEventListener("focus",X.focusChangeHandler,!0),X.document.addEventListener("focusin",X.focusChangeHandler))},JVG=function(X){X.focusChangeHandler&&(document.removeEventListener("focus",X.focusChangeHandler,!0),document.removeEventListener("focusin",X.focusChangeHandler),X.focusChangeHandler=null);
var H;(H=document.getElementById("fc-focus-trap-pre-div"))==null||H.remove();var l;(l=document.getElementById("fc-focus-trap-post-div"))==null||l.remove()},ISQ=function(X,H,l,b,U){l=l===void 0?!0:l;
var K;U=(K=U===void 0?null:U)!=null?K:LQQ(X,H,b===void 0?!1:b);U!==null&&(U.focus(),l&&Y4_(X,H))};
rVG.prototype.disableButton=function(X,H){H=H===void 0?null:H;X.disabled=!0;H&&_.kl(X,H)};
var LQQ=function(X,H,l){l=l===void 0?!1:l;if(Oqb(H)&&!l)return H;var b=l?[].slice.call(H.children,0).reverse():H.children;b=_.C(b);for(var U=b.next();!U.done;U=b.next())if(U=U.value,Tnv(U)&&(U=LQQ(X,U,l)))return U;return Oqb(H)&&l?H:null};var AVY=function(X){this.originalBodyOverflow="";this.JSC$10310_domHelper=$O(X);var H;this.isScrollingEnabled=((H=this.JSC$10310_domHelper.JSC$9636_document_.body)==null?void 0:H.style.overflow)!=="hidden"};
AVY.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10310_domHelper.JSC$9636_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.To(_.RA,_.$e);_.R=_.RA.prototype;_.R.JSC$10313_id_=0;_.R.disposeInternal=function(){_.RA.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10311_listener_;delete this.handler_};
_.R.start=function(X){this.stop();this.JSC$10313_id_=ui(this.callback_,X!==void 0?X:this.JSC$10311_interval_)};
_.R.stop=function(){this.isActive()&&_.ok.clearTimeout(this.JSC$10313_id_);this.JSC$10313_id_=0};
_.R.fire=function(){this.stop();this.JSC$10313_doAction_()};
_.R.isActive=function(){return this.JSC$10313_id_!=0};
_.R.JSC$10313_doAction_=function(){this.JSC$10313_id_=0;this.JSC$10311_listener_&&this.JSC$10311_listener_.call(this.handler_)};_.To(_.C8,_.$e);var XDv=[];_.C8.prototype.listen=function(X,H,l,b){Array.isArray(H)||(H&&(XDv[0]=H.toString()),H=XDv);for(var U=0;U<H.length;U++){var K=_.n8(X,H[U],l||this.handleEvent,b||!1,this.handler_||this);if(!K)break;this.JSC$10314_keys_[K.key]=K}return this};
_.C8.prototype.listenOnce=function(X,H,l,b){return H2t(this,X,H,l,b)};
var H2t=function(X,H,l,b,U,K){if(Array.isArray(l))for(var w=0;w<l.length;w++)H2t(X,H,l[w],b,U,K);else{H=MF(H,l,b||X.handleEvent,U,K||X.handler_||X);if(!H)return X;X.JSC$10314_keys_[H.key]=H}return X};
_.C8.prototype.unlisten=function(X,H,l,b,U){if(Array.isArray(H))for(var K=0;K<H.length;K++)this.unlisten(X,H[K],l,b,U);else if(X=Ddm(X,H,l||this.handleEvent,_.r8(b)?!!b.capture:!!b,U||this.handler_||this))Ul(X),delete this.JSC$10314_keys_[X.key];return this};
_.C8.prototype.removeAll=function(){_.Bb.forEach(this.JSC$10314_keys_,function(X,H){this.JSC$10314_keys_.hasOwnProperty(H)&&Ul(X)},this);
this.JSC$10314_keys_={}};
_.C8.prototype.disposeInternal=function(){_.C8.superClass_.disposeInternal.call(this);this.removeAll()};
_.C8.prototype.handleEvent=function(){throw Error("Pa");};_.To(wv,_.$e);wv.prototype.connect=function(X){X&&X()};
wv.prototype.isConnected=function(){return!0};
wv.prototype.registerService=function(X,H,l){this.services_[X]={callback:H,objectPayload:!!l}};
wv.prototype.getService=function(X,H){var l=this.services_[X];return l?l:this.defaultService_?{callback:_.lH(this.defaultService_,X),objectPayload:_.r8(H)}:null};
var lq_=function(X,H){if(H&&typeof X==="string")try{return JSON.parse(X)}catch(l){return null}else if(!H&&typeof X!=="string")return _.yD(X);return X};
wv.prototype.disposeInternal=function(){wv.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 FJ=function(X,H){this.sequence_=[];this.onCancelFunction_=X;this.defaultScope_=H||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
FJ.prototype.cancel=function(X){if(this.fired_)this.result_ instanceof FJ&&this.result_.cancel();else{if(this.parent_){var H=this.parent_;delete this.parent_;X?H.cancel(X):(H.branches_--,H.branches_<=0&&H.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new au(this))}};
FJ.prototype.continue_=function(X,H){this.blocked_=!1;o29(this,X,H)};
var o29=function(X,H,l){X.fired_=!0;X.result_=l;X.hadError_=!H;b2Q(X)},$pF=function(X){if(X.fired_){if(!X.silentlyCanceled_)throw new Upz(X);
X.silentlyCanceled_=!1}};
FJ.prototype.callback=function(X){$pF(this);o29(this,!0,X)};
FJ.prototype.errback=function(X){$pF(this);o29(this,!1,X)};
var nrk=function(X,H,l){ZN(X,H,null,l)};
FJ.prototype.finally=function(X){var H=this;return KFt(new Promise(function(l,b){ZN(H,function(U){X();l(U)},function(U){X();
b(U)})}))};
var ZN=function(X,H,l,b){var U=X.fired_;U||(H===l?H=l=BR(H):(H=BR(H),l=BR(l)));X.sequence_.push([H,l,b]);U&&b2Q(X)};
FJ.prototype.then=function(X,H,l){var b,U,K=new _.UA(function(w,d){U=w;b=d});
ZN(this,U,function(w){w instanceof au?K.cancel():b(w);return R2G},this);
return K.then(X,H,l)};
Dkz(FJ);var zfy=function(X,H){H instanceof FJ?nrk(X,(0,_.K8)(H.branch,H)):nrk(X,function(){return H})};
FJ.prototype.branch=function(X){var H=new FJ;ZN(this,H.callback,H.errback,H);X&&(H.parent_=this,this.branches_++);return H};
FJ.prototype.isError=function(X){return X instanceof Error};
var CkF=function(X){return O4(X.sequence_,function(H){return typeof H[1]==="function"})},R2G={},b2Q=function(X){if(X.unhandledErrorId_&&X.fired_&&CkF(X)){var H=X.unhandledErrorId_,l=wDv[H];
l&&(_.ok.clearTimeout(l.JSC$10331_id_),delete wDv[H]);X.unhandledErrorId_=0}X.parent_&&(X.parent_.branches_--,delete X.parent_);H=X.result_;for(var b=l=!1;X.sequence_.length&&!X.blocked_;){var U=X.sequence_.shift(),K=U[0],w=U[1];U=U[2];if(K=X.hadError_?w:K)try{var d=K.call(U||X.defaultScope_,H);d===R2G&&(d=void 0);d!==void 0&&(X.hadError_=X.hadError_&&(d==H||X.isError(d)),X.result_=H=d);if(tJD(H)||typeof _.ok.Promise==="function"&&H instanceof _.ok.Promise)b=!0,X.blocked_=!0}catch(B){H=B,X.hadError_=
!0,CkF(X)||(l=!0)}}X.result_=H;b&&(d=(0,_.K8)(X.continue_,X,!0),b=(0,_.K8)(X.continue_,X,!1),H instanceof FJ?(ZN(H,d,b),H.blocking_=!0):H.then(d,b));l&&(H=new dp9(H),wDv[H.JSC$10331_id_]=H,X.unhandledErrorId_=H.JSC$10331_id_)},KFt=function(X){var H=new FJ;
X.then(function(l){H.callback(l)},function(l){H.errback(l)});
return H},Upz=function(){_.XO.call(this)};
_.To(Upz,_.XO);Upz.prototype.message="Deferred has already fired";Upz.prototype.name="AlreadyCalledError";var au=function(){_.XO.call(this)};
_.To(au,_.XO);au.prototype.message="Deferred was canceled";au.prototype.name="CanceledError";var dp9=function(X){this.JSC$10331_id_=_.ok.setTimeout((0,_.K8)(this.throwError,this),0);this.JSC$10331_error_=X};
dp9.prototype.throwError=function(){delete wDv[this.JSC$10331_id_];throw this.JSC$10331_error_;};
var wDv={};var h2D={1:"NativeMessagingTransport"},xdO=["pu","lru","pru","lpu","ppu"];_.To(dv,_.$e);dv.prototype.transportType=0;dv.prototype.getWindow=function(){return this.JSC$10334_domHelper_.getWindow()};
dv.prototype.getName=function(){return h2D[String(this.transportType)]||""};_.To(BE,dv);BE.prototype.peerProtocolVersion_=null;BE.prototype.initialized_=!1;BE.prototype.transportType=1;var FFv={};BE.prototype.sendTimerId_=0;
var sLY=function(X){var H=X.event_.data;if(typeof H!=="string")return!1;var l=H.indexOf("|"),b=H.indexOf(":");if(l==-1||b==-1)return!1;var U=H.substring(0,l);l=H.substring(l+1,b);H=H.substring(b+1);if(b=sT[U])return b.xpcDeliver(l,H,X.event_.origin),!0;b=BUt(H)[0];for(var K in sT){var w=sT[K];if(SZy(w)==1&&!w.isConnected()&&l=="tp"&&(b=="SETUP"||b=="SETUP_NTPV2")&&qA_(w,X.event_.origin))return delete sT[w.name],w.name=U,sT[U]=w,w.xpcDeliver(l,H),!0}return!1},Mh_=function(X){X.protocolVersion_!=2||
X.peerProtocolVersion_!=null&&X.peerProtocolVersion_!=2||X.send("tp","SETUP_NTPV2,"+X.endpointId_);
X.peerProtocolVersion_!=null&&X.peerProtocolVersion_!=1||X.send("tp","SETUP")},ul_=function(X,H){if(X.protocolVersion_!=2||X.peerProtocolVersion_!=null&&X.peerProtocolVersion_!=2||H!=2){if(X.peerProtocolVersion_!=null&&X.peerProtocolVersion_!=1||H!=1)return;
X.send("tp","SETUP_ACK")}else X.send("tp","SETUP_ACK_NTPV2");X.setupAckSent_.fired_||X.setupAckSent_.callback(!0)},e2F=function(X,H){H>X.peerProtocolVersion_&&(X.peerProtocolVersion_=H);
X.peerProtocolVersion_==1&&(X.setupAckSent_.fired_||X.oneSidedHandshake_||X.setupAckSent_.callback(!0),X.peerEndpointId_=null)};
_.R=BE.prototype;_.R.connect=function(){var X=this.getWindow(),H=_.Ly(X),l=FFv[H];typeof l!=="number"&&(l=0);l==0&&_.n8(X.postMessage?X:X.document,"message",sLY,!1,BE);FFv[H]=l+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.R.maybeAttemptToConnect_=function(){var X=SZy(this.JSC$10337_channel_)==0;this.oneSidedHandshake_&&X||this.JSC$10337_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),Mh_(this))};
_.R.send=function(X,H){var l=this.JSC$10337_channel_.peerWindowObject_;l&&(this.send=function(b,U){var K=this,w=this.JSC$10337_channel_.name;this.sendTimerId_=ui(function(){K.sendTimerId_=0;try{var d=l.postMessage?l:l.document;d.postMessage&&d.postMessage(w+"|"+b+":"+U,K.peerHostname_)}catch(B){}},0)},this.send(X,H))};
_.R.notifyConnected_=function(){var X=this.JSC$10337_channel_,H=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;X.isConnected()||X.connectionDelay_&&X.connectionDelay_.isActive()||(X.state_=2,_.Gp(X.connectionDelay_),H!==void 0?(X.connectionDelay_=new _.RA(X.connectCb_,H),X.connectionDelay_.start()):(X.connectionDelay_=null,X.connectCb_()))};
_.R.disposeInternal=function(){if(this.initialized_){var X=this.getWindow(),H=_.Ly(X),l=FFv[H];FFv[H]=l-1;l==1&&_.FE(X.postMessage?X:X.document,"message",sLY,!1,BE)}this.sendTimerId_&&(_.ok.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Gp(this.JSC$10337_eventHandler_);delete this.JSC$10337_eventHandler_;_.Gp(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;BE.superClass_.disposeInternal.call(this)};
var BUt=function(X){X=X.split(",");X[1]=X[1]||null;return X};var Vhq;_.ii=function(X){if(X.getValues&&typeof X.getValues=="function")return X.getValues();if(typeof Map!=="undefined"&&X instanceof Map||typeof Set!=="undefined"&&X instanceof Set)return Array.from(X.values());if(typeof X==="string")return X.split("");if(_.ch(X)){for(var H=[],l=X.length,b=0;b<l;b++)H.push(X[b]);return H}return _.Bb.getValues(X)};
_.ySH=function(X){if(X.getKeys&&typeof X.getKeys=="function")return X.getKeys();if(!X.getValues||typeof X.getValues!="function"){if(typeof Map!=="undefined"&&X instanceof Map)return Array.from(X.keys());if(!(typeof Set!=="undefined"&&X instanceof Set)){if(_.ch(X)||typeof X==="string"){var H=[];X=X.length;for(var l=0;l<X;l++)H.push(l);return H}return _.Bb.getKeys(X)}}};
Vhq=function(X,H,l){if(X.forEach&&typeof X.forEach=="function")X.forEach(H,l);else if(_.ch(X)||typeof X==="string")Array.prototype.forEach.call(X,H,l);else for(var b=_.ySH(X),U=_.ii(X),K=U.length,w=0;w<K;w++)H.call(l,U[w],b&&b[w],X)};var l_h,cR,rB,k3t,Pk_,pD9,fqG,n2G,SA6;
_.xu=function(X,H){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 l;X instanceof _.xu?(this.JSC$10342_ignoreCase_=H!==void 0?H:X.JSC$10342_ignoreCase_,_.vR(this,X.scheme_),this.userInfo_=X.userInfo_,_.O$(this,X.JSC$10342_domain_),_.mx(this,X.JSC$10342_port_),_.QD(this,X.getPath()),_.Tj(this,X.JSC$10342_queryData_.clone()),_.NQ(this,X.fragment_)):X&&(l=_.Qh(String(X)))?(this.JSC$10342_ignoreCase_=
!!H,_.vR(this,l[1]||"",!0),this.userInfo_=cR(l[2]||""),_.O$(this,l[3]||"",!0),_.mx(this,l[4]),_.QD(this,l[5]||"",!0),_.Tj(this,l[6]||"",!0),_.NQ(this,l[7]||"",!0)):(this.JSC$10342_ignoreCase_=!!H,this.JSC$10342_queryData_=new _.j1(null,this.JSC$10342_ignoreCase_))};
_.xu.prototype.toString=function(){var X=[],H=this.scheme_;H&&X.push(rB(H,Pk_,!0),":");var l=this.JSC$10342_domain_;if(l||H=="file")X.push("//"),(H=this.userInfo_)&&X.push(rB(H,Pk_,!0),"@"),X.push(_.YY(l).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l=this.JSC$10342_port_,l!=null&&X.push(":",String(l));if(l=this.getPath())this.JSC$10342_domain_&&l.charAt(0)!="/"&&X.push("/"),X.push(rB(l,l.charAt(0)=="/"?fqG:pD9,!0));(l=this.JSC$10342_queryData_.toString())&&X.push("?",l);(l=this.fragment_)&&X.push("#",
rB(l,SA6));return X.join("")};
_.xu.prototype.resolve=function(X){var H=this.clone(),l=!!X.scheme_;l?_.vR(H,X.scheme_):l=!!X.userInfo_;l?H.userInfo_=X.userInfo_:l=!!X.JSC$10342_domain_;l?_.O$(H,X.JSC$10342_domain_):l=X.JSC$10342_port_!=null;var b=X.getPath();if(l)_.mx(H,X.JSC$10342_port_);else if(l=!!X.JSC$10342_path_){if(b.charAt(0)!="/")if(this.JSC$10342_domain_&&!this.JSC$10342_path_)b="/"+b;else{var U=H.getPath().lastIndexOf("/");U!=-1&&(b=H.getPath().slice(0,U+1)+b)}U=b;if(U==".."||U==".")b="";else if(_.hy(U,"./")||_.hy(U,
"/.")){b=_.Ky(U,"/");U=U.split("/");for(var K=[],w=0;w<U.length;){var d=U[w++];d=="."?b&&w==U.length&&K.push(""):d==".."?((K.length>1||K.length==1&&K[0]!="")&&K.pop(),b&&w==U.length&&K.push("")):(K.push(d),b=!0)}b=K.join("/")}else b=U}l?_.QD(H,b):l=X.JSC$10342_queryData_.toString()!=="";l?_.Tj(H,X.JSC$10342_queryData_.clone()):l=!!X.fragment_;l&&_.NQ(H,X.fragment_);return H};
_.xu.prototype.clone=function(){return new _.xu(this)};
_.vR=function(X,H,l){X.scheme_=l?cR(H,!0):H;X.scheme_&&(X.scheme_=X.scheme_.replace(/:$/,""));return X};
_.O$=function(X,H,l){X.JSC$10342_domain_=l?cR(H,!0):H;return X};
_.mx=function(X,H){if(H){H=Number(H);if(isNaN(H)||H<0)throw Error("Qa`"+H);X.JSC$10342_port_=H}else X.JSC$10342_port_=null;return X};
_.xu.prototype.getPath=function(){return this.JSC$10342_path_};
_.QD=function(X,H,l){X.JSC$10342_path_=l?cR(H,!0):H;return X};
_.Tj=function(X,H,l){H instanceof _.j1?(X.JSC$10342_queryData_=H,z2C(X.JSC$10342_queryData_,X.JSC$10342_ignoreCase_)):(l||(H=rB(H,n2G)),X.JSC$10342_queryData_=new _.j1(H,X.JSC$10342_ignoreCase_));return X};
_.OT=function(X,H,l){X.JSC$10342_queryData_.set(H,l);return X};
_.vE=function(X,H){return X.JSC$10342_queryData_.get(H)};
_.NQ=function(X,H,l){X.fragment_=l?cR(H):H;return X};
_.J8=function(X){_.OT(X,"zx",ZM());return X};
_.iI=function(X,H){return X instanceof _.xu?X.clone():new _.xu(X,H)};
l_h=function(X,H){X instanceof _.xu||(X=_.iI(X));H instanceof _.xu||(H=_.iI(H));return X.resolve(H)};
cR=function(X,H){return X?H?decodeURI(X.replace(/%25/g,"%2525")):decodeURIComponent(X):""};
rB=function(X,H,l){return typeof X==="string"?(X=encodeURI(X).replace(H,k3t),l&&(X=X.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),X):null};
k3t=function(X){X=X.charCodeAt(0);return"%"+(X>>4&15).toString(16)+(X&15).toString(16)};
Pk_=/[#\/\?@]/g;pD9=/[#\?:]/g;fqG=/[#\?]/g;n2G=/[#\?@]/g;SA6=/#/g;_.j1=function(X,H){this.count_=this.keyMap_=null;this.encodedQuery_=X||null;this.JSC$10343_ignoreCase_=!!H};
_.Lu=function(X){X.keyMap_||(X.keyMap_=new Map,X.count_=0,X.encodedQuery_&&Y_8(X.encodedQuery_,function(H,l){X.add(L$(H),l)}))};
_.R=_.j1.prototype;_.R.getCount=function(){_.Lu(this);return this.count_};
_.R.add=function(X,H){_.Lu(this);this.encodedQuery_=null;X=Y1(this,X);var l=this.keyMap_.get(X);l||this.keyMap_.set(X,l=[]);l.push(H);this.count_+=1;return this};
_.R.remove=function(X){_.Lu(this);X=Y1(this,X);return this.keyMap_.has(X)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(X).length,this.keyMap_.delete(X)):!1};
_.R.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.R.isEmpty=function(){_.Lu(this);return this.count_==0};
_.R.containsKey=function(X){_.Lu(this);X=Y1(this,X);return this.keyMap_.has(X)};
_.R.containsValue=function(X){var H=this.getValues();return _.vh(H,X)};
_.R.forEach=function(X,H){_.Lu(this);this.keyMap_.forEach(function(l,b){l.forEach(function(U){X.call(H,U,b,this)},this)},this)};
_.R.getKeys=function(){_.Lu(this);for(var X=Array.from(this.keyMap_.values()),H=Array.from(this.keyMap_.keys()),l=[],b=0;b<H.length;b++)for(var U=X[b],K=0;K<U.length;K++)l.push(H[b]);return l};
_.R.getValues=function(X){_.Lu(this);var H=[];if(typeof X==="string")this.containsKey(X)&&(H=H.concat(this.keyMap_.get(Y1(this,X))));else{X=Array.from(this.keyMap_.values());for(var l=0;l<X.length;l++)H=H.concat(X[l])}return H};
_.R.set=function(X,H){_.Lu(this);this.encodedQuery_=null;X=Y1(this,X);this.containsKey(X)&&(this.count_-=this.keyMap_.get(X).length);this.keyMap_.set(X,[H]);this.count_+=1;return this};
_.R.get=function(X,H){if(!X)return H;X=this.getValues(X);return X.length>0?String(X[0]):H};
_.xpG=function(X,H,l){X.remove(H);l.length>0&&(X.encodedQuery_=null,X.keyMap_.set(Y1(X,H),_.NW(l)),X.count_+=l.length)};
_.j1.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var X=[],H=Array.from(this.keyMap_.keys()),l=0;l<H.length;l++){var b=H[l],U=_.YY(b);b=this.getValues(b);for(var K=0;K<b.length;K++){var w=U;b[K]!==""&&(w+="="+_.YY(b[K]));X.push(w)}}return this.encodedQuery_=X.join("&")};
_.j1.prototype.clone=function(){var X=new _.j1;X.encodedQuery_=this.encodedQuery_;this.keyMap_&&(X.keyMap_=new Map(this.keyMap_),X.count_=this.count_);return X};
var Y1=function(X,H){H=String(H);X.JSC$10343_ignoreCase_&&(H=H.toLowerCase());return H},z2C=function(X,H){H&&!X.JSC$10343_ignoreCase_&&(_.Lu(X),X.encodedQuery_=null,X.keyMap_.forEach(function(l,b){var U=b.toLowerCase();
b!=U&&(this.remove(b),_.xpG(this,U,l))},X));
X.JSC$10343_ignoreCase_=H};
_.j1.prototype.extend=function(X){for(var H=0;H<arguments.length;H++)Vhq(arguments[H],function(l,b){this.add(b,l)},this)};_.To(uI,wv);var DpY=RegExp("^%*tp$"),thC=RegExp("^%+tp$");_.R=uI.prototype;_.R.connectionDelay_=null;_.R.peerWindowDeferred_=null;_.R.transport_=null;_.R.state_=1;_.R.isConnected=function(){return this.state_==2};
_.R.peerWindowObject_=null;_.R.iframeElement_=null;_.R.getConfig=function(){return this.cfg_};
_.R.connect=function(X){this.connectCb_=X||_.FK;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?nrk(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.R.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10338_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var X=this.iframeElement_.contentWindow;X||(X=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=X}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 BE(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()()};
_.R.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Gp(this.transport_);this.connectCb_=this.transport_=null;_.Gp(this.connectionDelay_);this.connectionDelay_=null};
_.R.send=function(X,H){if(this.isConnected()){try{var l=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(U){l=!1}if(l){_.r8(H)&&(H=_.yD(H));l=this.transport_;var b=l.send;DpY.test(X)&&(X="%"+X);X=X.replace(/[%:|]/g,encodeURIComponent);b.call(l,X,H)}else this.close()}};
_.R.xpcDeliver=function(X,H,l){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.K8)(this.xpcDeliver,this,X,H,l));else if(qA_(this,l)&&!this.isDisposed()&&this.state_!=3)if(X&&X!="tp")this.isConnected()&&(X=X.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),X=thC.test(X)?X.substring(1):X,X=this.getService(X,H))&&(H=lq_(H,X.objectPayload),H!=null&&X.callback(H));else switch(X=this.transport_,l=BUt(H),H=l[1],l[0]){case "SETUP_ACK":e2F(X,1);X.setupAckReceived_.fired_||X.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":X.protocolVersion_==2&&(e2F(X,2),X.setupAckReceived_.fired_||X.setupAckReceived_.callback(!0));break;case "SETUP":e2F(X,1);ul_(X,1);break;case "SETUP_NTPV2":X.protocolVersion_==2&&(l=X.peerProtocolVersion_,e2F(X,2),ul_(X,2),l!=1&&X.peerEndpointId_==null||X.peerEndpointId_==H||Mh_(X),X.peerEndpointId_=H)}};
var SZy=function(X){var H=X.cfg_.role;return typeof H==="number"?H:window.parent==X.peerWindowObject_?1:0},qA_=function(X,H){var l=X.cfg_.ph;
return _.w8(H==null?"":String(H))||_.w8(l==null?"":String(l))||H==X.cfg_.ph};
uI.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete sT[this.name];_.Gp(this.peerLoadHandler_);delete this.peerLoadHandler_;uI.superClass_.disposeInternal.call(this)};
var tvy=function(){for(var X in sT)_.Gp(sT[X])},sT={};var E2q=function(X,H){this.win=X;this.allowAdsHttpEndpoint=H;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10352_domHelper=$O(X);this.scrollManager=new AVY(X);this.accessibilityManager=new rVG(X);WFD(this)},WFD=function(X){var H=function(){X.allowAdsPopup&&X.allowAdsPopup.style.setProperty("display","none","important");
X.wallElement.style.setProperty("display","","important");JVG(X.accessibilityManager);ISQ(X.accessibilityManager,X.wallElement.querySelector(".fc-dialog-container"),!1,!1,X.wallElement.querySelector(".fc-button-whitelist"));X.scrollManager.enableScrolling()};
X.allowAdsPopup=X.JSC$10352_domHelper.JSC$9638_createDom("DIV",{"class":"fc-whitelist-root"});X.allowAdsPopup.style.setProperty("display","none","important");X.JSC$10352_domHelper.appendChild(X.JSC$10352_domHelper.JSC$9636_document_.body,X.allowAdsPopup);var l=X.JSC$10352_domHelper.JSC$9638_createDom("DIV",{"class":"fc-dialog-overlay"});X.JSC$10352_domHelper.appendChild(X.allowAdsPopup,l);var b=X.JSC$10352_domHelper.JSC$9638_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:H});X.JSC$10352_domHelper.appendChild(X.allowAdsPopup,
b);l=X.JSC$10352_domHelper.JSC$9638_createDom("IFRAME");l.className="fc-whitelist-dialog";l.frameBorder="0";l.id="fc-whitelist-iframe";l.tabIndex="0";_.RD(l,X.allowAdsHttpEndpoint);X.JSC$10352_domHelper.appendChild(b,l);b={};b.pu=_.OU(X.allowAdsHttpEndpoint).toString();b.tp=1;b.cn="fc-whitelist-channel";b.ifrid=l.id;b.osh=!0;X.allowAdsCrossPageChannel=new uI(b);X.allowAdsCrossPageChannel.registerService("close",H);X.allowAdsCrossPageChannel.registerService("refresh",function(){X.win.location.reload()});
X.allowAdsCrossPageChannel.registerService("resize",function(U){if(U){var K=X.allowAdsPopup.querySelector(".fc-whitelist-dialog");U.width&&K.style.setProperty("width",U.width,"important");U.height&&K.style.setProperty("height",U.height,"important")}},!0);
X.allowAdsCrossPageChannel.connect()};
E2q.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 Iu=window,A8=document,g29=Iu.location,G3_=function(){},aqQ=/\[native code\]/,Xa=function(X,H,l){return X[H]=X[H]||l},Z2G=function(X){X=X.sort();
for(var H=[],l=void 0,b=0;b<X.length;b++){var U=X[b];U!=l&&H.push(U);l=U}return H},Ht=function(){var X;
if((X=Object.create)&&aqQ.test(X))X=X(null);else{X={};for(var H in X)X[H]=void 0}return X},lZ=Xa(Iu,"gapi",{});var oM={};oM=Xa(Iu,"___jsl",Ht());Xa(oM,"I",0);Xa(oM,"hel",10);var i2H=function(){var X=g29.href;if(oM.dpo)var H=oM.h;else{H=oM.h;var l=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),b=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(X=X&&(l.exec(X)||b.exec(X)))try{H=decodeURIComponent(X[2])}catch(U){}}return H},v2_=function(X){var H=Xa(oM,"PQ",[]);
oM.PQ=[];var l=H.length;if(l===0)X();else for(var b=0,U=function(){++b===l&&X()},K=0;K<l;K++)H[K](U)},O2_=function(X){return Xa(Xa(oM,"H",Ht()),X,Ht())};var bZ=function(X){this.JSC$10354_obj_=X};
bZ.prototype.value=function(){return this.JSC$10354_obj_};
bZ.prototype.getWidth=function(){return this.JSC$10354_obj_.width};
bZ.prototype.getHeight=function(){return this.JSC$10354_obj_.height};
bZ.prototype.getStyle=function(){return this.JSC$10354_obj_.style};var mp9=function(X){this.JSC$10357_obj_=X||{}};
_.R=mp9.prototype;_.R.value=function(){return this.JSC$10357_obj_};
_.R.setUrl=function(X){this.JSC$10357_obj_.url=X;return this};
_.R.getUrl=function(){return this.JSC$10357_obj_.url};
_.R.getStyle=function(){return this.JSC$10357_obj_.style};
_.R.getId=function(){return this.JSC$10357_obj_.id};
_.R.getContext=function(){return this.JSC$10357_obj_.context};
var QLQ=function(X){X.JSC$10357_obj_.attributes=X.JSC$10357_obj_.attributes||{};return new bZ(X.JSC$10357_obj_.attributes)};var TUq=function(){mp9.apply(this,arguments)};
_.S(TUq,mp9);var NUq=Xa(oM,"perf",Ht());Xa(NUq,"g",Ht());var cSQ=Xa(NUq,"i",Ht());Xa(NUq,"r",[]);Ht();Ht();var rSH=function(X,H,l){H&&H.length>0&&(H=jL9(H),l&&l.length>0&&(H+="___"+jL9(l)),H.length>28&&(H=H.substr(0,28)+(H.length-28)),l=H,H=Xa(cSQ,"_p",Ht()),Xa(H,l,Ht())[X]=(new Date).getTime(),H=NUq.r,typeof H==="function"?H(X,"_p",l):H.push([X,"_p",l]))},jL9=function(X){return X.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var JSt=Ht(),LFv=[],Ud=function(X){throw Error("Va`"+X);};
LFv.push(["jsl",function(X){for(var H in X)if(Object.prototype.hasOwnProperty.call(X,H)){var l=X[H];typeof l=="object"?oM[H]=Xa(oM,H,[]).concat(l):Xa(oM,H,l)}if(H=X.u)X=Xa(oM,"us",[]),X.push(H),(H=/^https:(.*)$/.exec(H))&&X.push("http:"+H[1])}]);
var YA6=/^(\/[a-zA-Z0-9_\-]+)+$/,Iq9=[/\/amp\//,/\/amp$/,/^\/amp$/],ASF=/^[a-zA-Z0-9\-_\.,!]+$/,XjF=/^gapi\.loaded_[0-9]+$/,HiG=/^[a-zA-Z0-9,._-]+$/,U0z=function(X,H,l,b,U){var K=X.split(";"),w=K.shift(),d=JSt[w],B=null;d?B=d(K,H,l,b):Ud("no hint processor for: "+w);B||Ud("failed to generate load url");H=B;l=H.match(lCq);(b=H.match(oHz))&&b.length===1&&biq.test(H)&&l&&l.length===1||Ud("failed sanity: "+X);try{X="?";if(U&&U.length>0){gN8(U);var q=U.join(",");B=B+"?le="+q;X="&"}if(oM.rol){var u=oM.ol;
u&&u.length&&(B=""+B+X+"ol="+u.length)}}catch(e){}return B},R3Y=function(X,H,l,b){X=$0Y(X);
XjF.test(l)||Ud("invalid_callback");H=KcH(H);b=b&&b.length?KcH(b):null;var U=function(K){return encodeURIComponent(K).replace(/%2C/g,",")};
return[encodeURIComponent(X.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",U(X.version),"/m=",U(H),b?"/exm="+U(b):"","/rt=j/sv=1/d=1/ed=1",X.activeMods?"/am="+U(X.activeMods):"",X.resourceSig?"/rs="+U(X.resourceSig):"",X.zcms?"/t="+U(X.zcms):"","/cb=",U(l)].join("")},$0Y=function(X){X.charAt(0)!=="/"&&Ud("relative path");
for(var H=X.substring(1).split("/"),l=[];H.length;){X=H.shift();if(!X.length||X.indexOf(".")==0)Ud("empty/relative directory");else if(X.indexOf("=")>0){H.unshift(X);break}l.push(X)}X={};for(var b=0,U=H.length;b<U;++b){var K=H[b].split("="),w=decodeURIComponent(K[0]),d=decodeURIComponent(K[1]);K.length==2&&w&&d&&(X[w]=X[w]||d)}H="/"+l.join("/");YA6.test(H)||Ud("invalid_prefix");l=0;for(b=Iq9.length;l<b;++l)Iq9[l].test(H)&&Ud("invalid_prefix");l=Czz(X,"k",!0);b=Czz(X,"am");U=Czz(X,"rs");X=Czz(X,"t");
return{pathPrefix:H,version:l,activeMods:b,resourceSig:U,zcms:X}},KcH=function(X){for(var H=[],l=0,b=X.length;l<b;++l){var U=X[l].replace(/\./g,"_").replace(/-/g,"_");
HiG.test(U)&&H.push(U)}return H.join(",")},Czz=function(X,H,l){X=X[H];
!X&&l&&Ud("missing: "+H);if(X){if(ASF.test(X))return X;Ud("invalid: "+H)}return null},biq=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,oHz=/\/cb=/g,lCq=/\/\//g;
JSt.m=function(X,H,l,b){(X=X[0])||Ud("missing_hint");return"https://apis.google.com"+R3Y(X,H,l,b)};
var wjC=decodeURI("%73cript"),d0Y=/^[-+_0-9\/A-Za-z]+={0,2}$/,h39=function(X,H){for(var l=[],b=0;b<X.length;++b){var U=X[b],K;if(K=U){a:{for(K=0;K<H.length;K++)if(H[K]===U)break a;K=-1}K=K<0}K&&l.push(U)}return l},FcY=function(){var X=oM.nonce;
return X!==void 0?X&&X===String(X)&&X.match(d0Y)?X:oM.nonce=null:A8.querySelector?(X=A8.querySelector("script[nonce]"))?(X=X.nonce||X.getAttribute("nonce")||"",X&&X===String(X)&&X.match(d0Y)?oM.nonce=X:oM.nonce=null):null:null},smF=function(X){if(A8.readyState!="loading")Bw_(X);
else{var H=FcY(),l="";H!==null&&(l=' nonce="'+H+'"');X="<"+wjC+' src="'+encodeURI(X)+'"'+l+"></"+wjC+">";A8.write(qLG?qLG.createHTML(X):X)}},Bw_=function(X){var H=A8.createElement(wjC);
H.setAttribute("src",qLG?qLG.createScriptURL(X):X);X=FcY();X!==null&&H.setAttribute("nonce",X);H.async="true";(X=A8.getElementsByTagName(wjC)[0])?X.parentNode.insertBefore(H,X):(A8.head||A8.body||A8.documentElement).appendChild(H)},uFQ=function(X,H,l){MaG(function(){var b=H===i2H()?Xa(lZ,"_",Ht()):Ht();
b=Xa(O2_(H),"_",b);X(b)},l)},dgy=function(X,H){var l=H||{};
typeof H=="function"&&(l={},l.callback=H);var b=(H=l)&&H._c;if(b)for(var U=0;U<LFv.length;U++){var K=LFv[U][0],w=LFv[U][1];w&&Object.prototype.hasOwnProperty.call(b,K)&&w(b[K],X,H)}H=[];X?H=X.split(":"):l.features&&(H=l.features);if(!(X=l.h)&&(X=i2H(),!X))throw Error("Wa");e3t(H||[],l,X)},e3t=function(X,H,l){X=Z2G(X)||[];
var b=H.callback,U=H.config,K=H.timeout,w=H.ontimeout,d=H.onerror,B=void 0;typeof d=="function"&&(B=d);var q=null,u=!1;if(K&&!w||!K&&w)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";d=Xa(O2_(l),"r",[]).sort();var e=Xa(O2_(l),"L",[]).sort(),y=oM.le||[],V=[].concat(d),p=function(r,Q){if(u)return 0;Iu.clearTimeout(q);e.push.apply(e,z);var v=((lZ||{}).config||{}).update;v?v(U):U&&Xa(oM,"cu",[]).push(U);if(Q){rSH("me0",r,V);try{uFQ(Q,l,B)}finally{rSH("me1",r,V)}}return 1};
K>0&&(q=Iu.setTimeout(function(){u=!0;w()},K));
var z=h39(X,e);if(z.length){z=h39(X,d);var t=Xa(oM,"CP",[]),W=t.length;t[W]=function(r){if(!r)return 0;rSH("ml1",z,V);var Q=function(J){t[W]=null;p(z,r)&&v2_(function(){b&&b();J()})},v=function(){var J=t[W+1];
J&&J()};
W>0&&t[W-1]?t[W]=function(){Q(v)}:Q(v)};
if(z.length){var G="loaded_"+oM.I++;lZ[G]=function(r){t[W](r);lZ[G]=null};
X=U0z(l,z,"gapi."+G,d,y);d.push.apply(d,z);rSH("ml0",z,V);H.sync||Iu.___gapisync?smF(X):Bw_(X)}else t[W](G3_)}else p(z)&&b&&b()},yhQ;
var VaF=null,PzD=_.ok.trustedTypes;if(PzD&&PzD.createPolicy){try{VaF=PzD.createPolicy("goog#gapi",{createHTML:NtC,createScript:NtC,createScriptURL:NtC})}catch(X){_.ok.console&&_.ok.console.error(X.message)}yhQ=VaF}else yhQ=VaF;var qLG=yhQ,MaG=function(X,H){if(oM.hee&&oM.hel>0)try{return X()}catch(l){H&&H(l),oM.hel--,dgy("debug_error",function(){try{window.___jsl.hefn(l)}catch(b){throw l;}})}else try{return X()}catch(l){throw H&&H(l),l;
}},fCG=lZ.load;
fCG&&Xa(oM,"ol",[]).push(fCG);lZ.load=function(X,H){return MaG(function(){return dgy(X,H)})};var GTm;var SL9=function(){var X=X||[];this.dependencies_=[];pjz(this,X)};
SL9.prototype.toString=function(){return"MpJwZc"};
SL9.prototype.getModuleId=function(){return"MpJwZc"};
var pjz=function(X,H){var l=!1;l=l===void 0?!1:l;X.dependencies_=X.dependencies_.concat(H);l&&H.map(function(b){return b.getModuleId()}).forEach(function(b){aty(function(U){U.addExtraEdge("MpJwZc",b)})})};var $GL=new SL9;var lih=new _.Cu("a"),R0W=new _.Cu("c"),Kek=function(X,H,l){_.NF.call(this,X,H);this.node=H;this.kind=l};
_.S(Kek,_.NF);var z3_=function(){this.JSC$10370_keys_={};this.urlPrefix_="";this.JSC$10370_queryData_={}};
z3_.prototype.toString=function(){var X=this.urlPrefix_+nHF(this),H=_.Io(this.JSC$10370_queryData_),l="";H!=""&&(l="?"+H);return X+l};
var kXz=function(X){X=$P(X,"md");return!!X&&X!=="0"},nHF=function(X){var H=[],l=function(b){X.JSC$10370_keys_[b]!==void 0&&H.push(b+"="+X.JSC$10370_keys_[b])};
kXz(X)?(l("md"),l("k"),l("ck"),l("am"),l("rs"),l("gssmodulesetproto"),l("slk"),l("dti")):(l("sdch"),l("k"),l("ck"),l("am"),l("amc"),l("rt"),"d"in X.JSC$10370_keys_||K5(X,"d","0"),l("d"),l("exm"),l("excm"),(X.JSC$10370_keys_.excm||X.JSC$10370_keys_.exm)&&H.push("ed=1"),l("im"),l("dg"),l("sm"),$P(X,"br")!="1"&&$P(X,"br")!="0"||l("br"),l("br-d"),$P(X,"rb")=="1"&&l("rb"),$P(X,"zs")!=="0"&&l("zs"),x0_(X)!==""&&l("wt"),l("gssmodulesetproto"),l("ujg"),l("sp"),l("rs"),l("cb"),l("ee"),l("slk"),l("dti"),l("m"));
return H.join("/")},$P=function(X,H){return X.JSC$10370_keys_[H]?X.JSC$10370_keys_[H]:null},K5=function(X,H,l){l?X.JSC$10370_keys_[H]=l:delete X.JSC$10370_keys_[H]},D0t=function(X,H){X.urlPrefix_=H},ta_=function(X,H){H&&H.length>0?(H.sort(),K5(X,"exm",H.join(","))):K5(X,"exm",null)},Wct=function(X,H){H&&H.length>0?(H.sort(),K5(X,"excm",H.join(","))):K5(X,"excm",null)},EHH=function(X){return(X=$P(X,"m"))?X.split(","):[]},x0_=function(X){switch($P(X,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},gH_=function(X,H){var l=Object.keys(H).filter(function(b){return!!Object.keys(H[b]).length}).map(function(b){var U=Object.keys(H[b]);
U.length>1&&U.sort();return b+":"+U.join(",")});
l.sort();K5(X,"ee",l.join(";"))},XDW=function(X){var H=$P(X,"ee");
if(!H)return{};X={};H=_.C(H.split(";"));for(var l=H.next();!l.done;l=H.next()){var b=_.C(l.value.split(":"));l=b.next().value;b=b.next().value;X[l]={};b=_.C(b.split(","));for(var U=b.next();!U.done;U=b.next())X[l][U.value]=!0}return X},GXq=function(X){delete X.JSC$10370_keys_.m;
delete X.JSC$10370_keys_.exm;delete X.JSC$10370_keys_.ed};
z3_.prototype.clone=function(){var X=new z3_;X.JSC$10370_keys_=Object.assign({},this.JSC$10370_keys_);X.urlPrefix_=this.urlPrefix_;X.JSC$10370_queryData_=Object.assign({},this.JSC$10370_queryData_);return X};
var H28=function(X,H){H=H===void 0?!0:H;var l=aC9(X),b=new z3_,U=_.Qh(l)[5];_.Bb.forEach(ZiF,function(w){var d=U.match("/"+w+"=([^/]+)");d&&K5(b,w,d[1])});
var K="";K=X.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";D0t(b,X.substr(0,X.indexOf(K)+K.length));if(!H)return b;(X=_.Qh(l)[6]||null)&&Y_8(X,function(w,d){b.JSC$10370_queryData_[w]=d});
return b},Y4k=function(X){X=_.c1(aC9(X));
return X===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(X)?/\/k=/.test(X):!1},aC9=function(X){return X.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?X.substr(65):X},ZiF={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"},iiF=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.RM=function(X){this.JSC$10382_id_=X;this.opts={}};
_.RM.prototype.JSC$10384_setLabel=function(X){this.label_=X||void 0;return this};
_.RM.prototype.addUploadMetadata=function(X,H){var l=this.opts.data||{};l[X]=H;this.opts.data=l;return this};
var vHY=function(X){var H=_.Bb.filter(X.opts,function(l){return l!==null});
H=_.Bb.isEmpty(H)?null:H;X=[X.JSC$10382_id_,X.label_,H];H=xWW(X);return X=X.slice(0,H+1)};
_.RM.prototype.toString=function(){var X=vHY(this);return"("+_.qz(X,function(H){return JSON.stringify(H)}).join(",")+")"};
_.RM.prototype.getId=function(){return this.JSC$10382_id_};
_.RM.prototype.getOptions=function(){return _.Bb.clone(this.opts)};var C5=function(){_.RM.call(this,"image-search")};
_.S(C5,_.RM);C5.prototype.setSize=function(X){this.opts.imgsz=X;return this};
C5.prototype.JSC$10384_setLabel=function(X){_.RM.prototype.JSC$10384_setLabel.call(this,X);return this};
C5.prototype.addUploadMetadata=function(X,H){_.RM.prototype.addUploadMetadata.call(this,X,H);return this};var wz=function(){_.RM.call(this,"maps")};
_.S(wz,_.RM);wz.prototype.setZoom=function(X){this.opts.zoom=X;return this};
wz.prototype.JSC$10384_setLabel=function(X){_.RM.prototype.JSC$10384_setLabel.call(this,X);return this};
wz.prototype.addUploadMetadata=function(X,H){_.RM.prototype.addUploadMetadata.call(this,X,H);return this};_.dz=function(){_.RM.call(this,"photos")};
_.S(_.dz,_.RM);_.dz.prototype.JSC$10384_setLabel=function(X){_.RM.prototype.JSC$10384_setLabel.call(this,X);return this};
_.dz.prototype.addUploadMetadata=function(X,H){_.RM.prototype.addUploadMetadata.call(this,X,H);return this};var hP=function(){_.RM.call(this,"url")};
_.S(hP,_.RM);var OiF=function(){var X=new hP;X.opts.type="video";X.opts.site="youtube.com";return X};
hP.prototype.JSC$10384_setLabel=function(X){_.RM.prototype.JSC$10384_setLabel.call(this,X);return this};
hP.prototype.addUploadMetadata=function(X,H){_.RM.prototype.addUploadMetadata.call(this,X,H);return this};var Fa=function(){_.RM.call(this,"video-search")};
_.S(Fa,_.RM);var m0C=function(){var X=new Fa;X.opts.site="youtube.com";return X};
Fa.prototype.JSC$10384_setLabel=function(X){_.RM.prototype.JSC$10384_setLabel.call(this,X);return this};
Fa.prototype.addUploadMetadata=function(X,H){_.RM.prototype.addUploadMetadata.call(this,X,H);return this};var QmC=function(){_.RM.call(this,"web")};
_.S(QmC,_.RM);QmC.prototype.JSC$10384_setLabel=function(X){_.RM.prototype.JSC$10384_setLabel.call(this,X);return this};
QmC.prototype.addUploadMetadata=function(X,H){_.RM.prototype.addUploadMetadata.call(this,X,H);return this};var Bt=function(){this.items_=[];this.opts={}},Twv=function(X){switch(X){case "image-search":return new C5;
case "maps":return new wz;case "photos":return new _.dz;case "url":return new hP;case "video-search":return new Fa;case "web":return new QmC}return new _.RM(X)};
Bt.prototype.addView=function(X){this.items_.push(typeof X==="string"?Twv(X):X);return this};
var Nw9=function(X){return"("+_.qz(X.items_,function(H){return H.toString()}).join(",")+")"};
Bt.prototype.toString=function(){return Nw9(this)};
Bt.prototype.getViews=function(X,H){H=H===void 0?[]:H;for(var l=this.items_,b=0;b<l.length;b++){var U=l[b];U instanceof Bt?U.getViews(X,H):U.getId()==X&&H.push(U)}return H};
Bt.prototype.getOptions=function(){return _.Bb.clone(this.opts)};var ET=function(X){this.basePickerUrl_=X||"https://docs.google.com/picker";this.nav_=new Bt};
ET.prototype.nav_=null;ET.prototype.addView=function(X){this.nav_.addView(X);return this};
ET.prototype.getBaseUrl=function(){return this.basePickerUrl_};
ET.prototype.getViews=function(X){return this.nav_.getViews(X)};
_.chQ=function(X,H){X.callback_=H;return X};var jmH=new Map;jmH.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");jmH.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");jmH.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var rhC=new Set;rhC.add("application/vnd.google-apps.kix");rhC.add("application/vnd.google-apps.ritz");rhC.add("application/vnd.google-apps.punch");var $99=function(X,H,l){var b=l&&_.sC(l,1);l=Jht(l);var U=X[0].getId();switch(_.M7(U,2)){case 13:return Lc_(X,H,b,l);case 3:return YL9(X,H,b,l);case 10:return ICH(X,H,b,l);case 27:return ICH(X,H,b,l);case 12:return Ah9(X,H);case 2:return XfD(X,H,b,l);case 5:return Hr9(X,H,b,l);case 9:return l9v(X,H,b,l);case 6:return oEQ(X,H,b,l);case 25:return brC(X,H,b,l);case 1:return _.UC(X[0],vev,26)?U9D(X,H,b,l):ICH(X,H,b,l);default:return{}}},oEQ=function(X,H,l,b){X=X.map(function(U){return{id:U.getId().getId(),
serviceId:"youtube",name:U.getName(),description:_.sC(U,3),type:qS(U),lastEditedUtc:_.i8q(_.Al(U,_.uD,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:U.getUrl(),embedUrl:_.sC(U,13),thumbnails:sd(QT(U))}});
return{action:H,docs:X,viewToken:b,view:l||"youtube",v2Translated:!0}},XfD=function(X,H,l,b){var U=X.map(function(K){var w=K.getId().getId(),d=_.sC(K,7),B=K.getName(),q=qS(K),u=_.i8q(_.Al(K,_.uD,12)).getTime(),e=K.getUrl(),y=Number(Kz_(K)),V=_.sC(K,3),p=_.sC(K,11),z=sd(QT(K));
var t=_.Al(K,Ta,21);t=_.F0(t,1);var W=_.Al(K,Ta,21);W=_.sC(W,10);var G=_.sC(K,13);var r=_.Al(K,Ta,21);r=_.F0(r,9);var Q=_.Al(K,Ta,21);Q=_.sC(Q,11);w={id:w,serviceId:"docs",mimeType:d,name:B,type:q,lastEditedUtc:u,url:e,sizeBytes:y,description:V,iconUrl:p,thumbnails:z,isShared:t,downloadUrl:W,embedUrl:G,copyable:r,resourceKey:Q};d=_.Al(K,Ta,21);_.F0(d,12)&&(w.uploadState="success",w.isNew=!0);d=_.Al(K,Ta,21);_.UC(d,v0,3)&&(K=_.Al(K,Ta,21),K=_.Al(K,v0,3),_.UC(K,ZO,2)&&(d=p8(K.getDuration().getSeconds()),
B=K.getDuration(),B=_.O_(B,2),w.duration=d+B/1E9),w.aspectRatio=K.getAspectRatio());return w});
return{action:H,docs:U,viewToken:b,view:l||"all",extraUserInputs:KI6(X),v2Translated:!0}},Hr9=function(X,H,l,b){X=X.map(function(U){var K=_.Al(U,Jo6,15);
K=_.Al(K,iK,1);wU(U,10,iK,K);return{id:U.getId().getId(),serviceId:"web",mimeType:_.sC(U,7),name:U.getName(),type:qS(U),url:U.getUrl(),description:_.sC(U,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sd(QT(U))}});
return{action:H,docs:X,viewToken:b,view:l||"image-search",v2Translated:!0}},l9v=function(X,H,l,b){X=X.map(function(U){return{serviceId:"url",
name:QT(U)[0].getUrl().split("/").pop(),type:qS(U),mimeType:_.sC(U,7),url:U.getUrl(),description:_.sC(U,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sd(QT(U))}});
return{action:H,docs:X,viewToken:b,view:l||"url",v2Translated:!0}},U9D=function(X,H,l,b){X=X.map(function(U){return{id:U.getId().getId(),
serviceId:"picasa",name:U.getName(),type:qS(U),description:_.sC(U,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sd(QT(U))}});
return{action:H,docs:X,viewToken:b,view:l||"webcam",v2Translated:!0}},ICH=function(X,H,l,b){return{action:H,
docs:X.map(ReH),viewToken:b,view:Cg_(l||"upload",X),extraUserInputs:KI6(X),v2Translated:!0}},Cg_=function(X,H){return H.some(function(l){var b;
return((b=_.Al(l,OQ,30))==null?void 0:_.M7(b,3))===9})?X+"/gmailphotos":X},YL9=function(X,H,l,b){var U=X.map(function(K){var w={id:K.getId().getId(),
serviceId:"picasa",mimeType:_.sC(K,7),name:K.getName(),type:qS(K),lastEditedUtc:_.i8q(_.Al(K,_.uD,12)).getTime(),url:K.getUrl(),sizeBytes:Number(Kz_(K)),description:_.sC(K,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sd(QT(K)),mediaKey:K.getId().getId(),parentId:_.sC(K,4)},d,B=(d=_.Al(K,QAq,18))==null?void 0:_.Al(d,mFt,3);B&&(w.latitude=q7(B,1),w.longitude=q7(B,2));var q;K=(q=_.Al(K,QAq,18))==null?void 0:BC(q,6);q=K!=null?p8(K):void 0;q&&(w.version=
q);return w});
return{action:H,docs:U,viewToken:b,view:l||"photos",extraUserInputs:KI6(X),v2Translated:!0}},Lc_=function(X,H,l,b){X=X.map(function(U){return{id:U.getId().getId(),
serviceId:"et",name:QT(U)[0].getUrl().split("/").pop(),description:_.sC(U,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sd(QT(U),"etjpg")}});
return{action:H,docs:X,viewToken:b,view:l||"et",v2Translated:!0}},brC=function(X,H,l,b){X=X.map(function(U){var K=U.getId().getId(),w=b["2"];
return{id:K,serviceId:w.type!=="gmail_themes"&&w.parent==="6226252643674576769"?"picasa":"static_themes",name:U.getName(),mimeType:_.sC(U,7),type:qS(U),description:_.sC(U,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:U.getUrl(),embedUrl:U.getUrl(),thumbnails:sd(QT(U))}});
return{action:H,docs:X,viewToken:b,view:l||"photos",v2Translated:!0}},Ah9=function(X,H){X=X.map(function(l){var b=_.Al(l,O8C,27);
b=_.Hu(b,1,_.DA,_.vb())[0];return{id:l.getId().getId(),serviceId:"contacts",mimeType:_.sC(l,7),name:l.getName(),description:_.sC(l,3),url:"mailto:"+b,thumbnail:[{url:_.sC(l,11)}],email:b}});
return{action:H,docs:X,view:"contacts",v2Translated:!0}},Jht=function(X){if(!X)return{};
var H=_.sC(X,3);H=H&&JSON.parse(H)||{};return{0:_.sC(X,1),1:_.sC(X,2),2:H}},sd=function(X,H){H=H===void 0?"":H;
if(!X.length)return null;H=="etjpg"&&(X=X.filter(function(l){return l.getUrl().includes("w1200-h300")}));
return X.map(function(l){return{url:l.getUrl(),height:l.getHeight(),width:l.getWidth(),type:H}})},KI6=function(X){return{isAttachment:X.some(function(H){return _.F0(H,31)})}},ReH=function(X){var H,l={id:(H=X.getId())==null?void 0:H.getId(),
serviceId:wfQ(X),mimeType:_.sC(X,7),name:X.getName(),type:qS(X),sizeBytes:Number(Kz_(X)),description:_.sC(X,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:sd(QT(X)),isNew:!0};if(H=_.Al(X,OQ,30)){l.dataUrl=_.sC(H,1)||null;a:{var b=_.Al(X,OQ,30);switch(_.M7(b,3)){case 9:b=_.ys(b,jAD,2,mL);b={remoteRefs:b&&_.sC(b,1)};break a;case 10:case 15:b=_.ys(b,coz,4,mL);var U=QT(X);b={photo_id:b&&_.sC(b,1),media_key:X.getId().getId(),media_type:_.M7(X,6)===1?1:2,image_url:U&&
U[0].getUrl(),width:U&&String(U[0].getWidth()),height:U&&String(U[0].getHeight())};break a}b=null}l.uploadMetadata=b;l.uploadId=_.sC(H,9)||null;l.uploadState=d9_(H)||null}(b=H&&_.ys(H,coz,4,mL))&&(l.id=_.sC(b,1));(b=H&&_.ys(H,rot,5,mL))&&(l.contentId=_.sC(b,1));(b=H&&_.ys(H,TvF,7,mL))&&(l.contentId=_.sC(b,1));(b=H&&_.ys(H,Nv6,6,mL))&&(l.contentId=_.sC(b,1));(H==null?void 0:_.M7(H,3))===1&&(l.mediaKey=X.getId().getId());return l},wfQ=function(X){var H;
switch(((H=_.Al(X,OQ,30))==null?void 0:_.M7(H,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},qS=function(X){switch(_.M7(X,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 _.sC(X,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},d9_=function(X){switch(X==null?void 0:_.M7(X,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 qev,he_,FI6,BVq;_.sKQ=function(X,H){var l=H||{};H=l.document||document;var b=_.OU(X).toString(),U=(new MO(H)).createElement("SCRIPT"),K={script_:U,timeout_:void 0},w=new FJ(he_,K),d=null,B=l.timeout!=null?l.timeout:5E3;B>0&&(d=window.setTimeout(function(){FI6(U,!0);w.errback(new BVq(1,"Timeout reached for loading script "+b))},B),K.timeout_=d);
U.onload=U.onreadystatechange=function(){U.readyState&&U.readyState!="loaded"&&U.readyState!="complete"||(FI6(U,l.cleanupWhenDone||!1,d),w.callback(null))};
U.onerror=function(){FI6(U,!0,d);w.errback(new BVq(0,"Error while loading script "+b))};
K=l.attributes||{};_.Bb.extend(K,{type:"text/javascript",charset:"UTF-8"});T9G(U,K);_.sw(U,X);qev(H).appendChild(U);return w};
qev=function(X){var H=lI("HEAD",X);return H&&H.length!==0?H[0]:X.documentElement};
he_=function(){if(this&&this.script_){var X=this.script_;X&&X.tagName=="SCRIPT"&&FI6(X,!0,this.timeout_)}};
FI6=function(X,H,l){l!=null&&_.ok.clearTimeout(l);X.onload=function(){};
X.onerror=function(){};
X.onreadystatechange=function(){};
H&&window.setTimeout(function(){_.HE(X)},0)};
BVq=function(X,H){var l="Jsloader error (code #"+X+")";H&&(l+=": "+H);_.XO.call(this,l);this.code=X};
_.To(BVq,_.XO);var MBG=_.W8(["https://apis.google.com/js/api.js"]),uQH=_.z8(MBG),PgF=function(X,H,l){l=l===void 0?{}:l;var b=!1,U=ee_(X,H,l).then(function(w){b=!0;return w}),K=_.Ytt(5E3).then(function(){return b?ee_(X,H,l):yB9(H,l).then(function(w){return VB9(w,X)})});
return if_([U,K])},ee_=function(X,H,l){l=l===void 0?{}:l;
return f9Q(H,l).then(function(b){return VB9(b,X)})},VB9=function(X,H){var l=_.Ky(H,"gapi.")?H.slice(5):H;
return X[l]?_.rZ(X[l]):new _.UA(function(b,U){var K=ui(function(){U(Error("Za"))},3E4);
X.load(H,{callback:function(){_.ok.clearTimeout(K);b(X[l])},
onerror:function(w){_.ok.clearTimeout(K);U(w)}})})},f9Q=function(X,H){H=H===void 0?{}:H;
return X.gapi&&X.gapi.load?_.rZ(X.gapi):yB9(X,H)},yB9=function(X,H){H=H===void 0?{}:H;
return _.sKQ(uQH,{document:X.document,attributes:H}).then(function(){return X.gapi})},pf_=function(){};
pf_.prototype.load=function(X,H,l){H=H===void 0?window:H;l=l===void 0?{}:l;var b=Date.now();return PgF(X,H,l).then(function(U){var K=Date.now();return{library:U,loadStartMs:b,loadEndMs:K}},function(U){throw U instanceof Error?U:Error(String(U));
})};var RVm=function(){_.$e.call(this);this.gapiLoader_=new pf_;this.origin_=null;this.gapiPickerIframeResolver_=_.kj();this.gapiIframesResolver_=_.kj();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.S(RVm,_.$e);var Se6=function(X,H){var l=l===void 0?{}:l;var b=_.ij("gapi.iframes",H);return b?(X=Date.now(),_.rZ({library:b,loadStartMs:X,loadEndMs:X})):X.gapiLoader_.load("gapi.iframes",H,l)},zeF=function(X,H,l,b,U,K){var w=!1;
w=w===void 0?!1:w;Se6(X,Mz(H.ownerDocument)).then(function(d){var B=d.library;X.gapiIframesResolver_.resolve(B);d=X.gapiPickerIframeResolver_;var q=d.resolve,u=w;u=u===void 0?!1:u;var e={};e["host-message-handler"]=l;X.hostMessageHandlerInternal_=e;var y=_.iI(b);y=_.iI(y);y=_.mx(_.O$(_.vR(new _.xu,y.scheme_),y.JSC$10342_domain_),y.JSC$10342_port_).toString();X.origin_=y;y=(new TUq).setUrl(b);y.JSC$10357_obj_.where=H;y.JSC$10357_obj_.allowPost=u;y.JSC$10357_obj_.messageHandlers=e;u=_.ij("makeWhiteListIframesFilter",
B)([X.origin_]);y.JSC$10357_obj_.messageHandlersFilter=u;U!=null&&(y.JSC$10357_obj_.id=U);K!=null&&(y.JSC$10357_obj_.rpctoken=K);u=QLQ(y);u.JSC$10354_obj_.style={display:"block","min-width":"100%",width:"1px"};u.JSC$10354_obj_.height="100%";QLQ(y).value().allow="camera 'src' "+X.origin_;B=B.getContext().openChild(y.value());q.call(d,B)},function(d){X.gapiIframesResolver_.reject(d);
X.gapiPickerIframeResolver_.reject(d)});
return X.gapiPickerIframeResolver_.promise},nEG=function(X,H){return _.s$([X.gapiIframesResolver_.promise,
X.gapiPickerIframeResolver_.promise]).then(function(l){var b=_.C(l);l=b.next().value;return(b=b.next().value)?b.send("picker-message-handler",H,void 0,_.ij("makeWhiteListIframesFilter",l)([X.origin_])):_.Cq(Error("$a"))})};
RVm.prototype.disposeInternal=function(){kwG(this);_.$e.prototype.disposeInternal.call(this)};
var kwG=function(X){X.gapiPickerIframeResolver_.promise.then(function(H){H&&(H.unregister("host-message-handler"),delete X.hostMessageHandlerInternal_["host-message-handler"])})};var x99=function(){this.nextId=0};var tBt=function(X,H){switch(X.action){case "select-contacts":X=D9G(X.contacts);break;case "visibility":X=X.visible;var l=new r1;X=_.PC(l,1,7).setVisible(X);l={};l["iframe-command"]=X.serialize();X=l;break;default:X=null}return X?nEG(H,X):_.rZ()},D9G=function(X){if(!X||X.length==0)return null;
var H=new r1;_.PC(H,1,11);var l=new x99;X.forEach(function(b){if(b.email){var U=new wJ;U=_.Wx(U,2,b.name?b.name:b.email);var K=new O8C;b=_.ANk(K,1,_.zZ,b.email,_.DA);b=_.go(U,27,b);U=new Z86;K=":"+(l.nextId++).toString(36);U=_.Wx(U,1,K);U=_.PC(U,2,12);b=_.go(b,1,U)}else b=null;b&&wU(H,7,wJ,b)});
X={};X["iframe-command"]=H.serialize();return X};_.WIC=function(){if(ppD){var X=/Windows NT ([0-9.]+)/;return(X=X.exec(_.yZ()))?X[1]:"0"}return _.fA_?(X=/1[0|1][_.][0-9_.]+/,(X=X.exec(_.yZ()))?X[0].replace(/_/g,"."):"10"):QcK?(X=/Android\s+([^\);]+)(\)|;)/,(X=X.exec(_.yZ()))?X[1]:""):zlt||nUG||kZ9?(X=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(X=X.exec(_.yZ()))?X[1].replace(/_/g,"."):""):""}();var MS;MS=function(X){return(X=X.exec(_.yZ()))?X[1]:""};
_.EEz=function(){if(_.Yi)return MS(/Firefox\/([0-9.]+)/);if(_.Jv||TT||yNq)return GZF;if(_.IJ){if(_.ty()||_.zzy()){var X=MS(/CriOS\/([0-9.]+)/);if(X)return X}return MS(/Chrome\/([0-9.]+)/)}if(_.Dt&&!_.ty())return MS(/Version\/([0-9.]+)/);if(S9K||zPl){if(X=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.yZ()))return X[1]+"."+X[2]}else if(Od6)return(X=MS(/Android\s+([0-9.]+)/))?X:MS(/Version\/([0-9.]+)/);return""}();_.mi(vrm);vrm.prototype.nextId_=0;_.uZ=function(X){return":"+(X.nextId_++).toString(36)};var xe=function(X){_.zB.call(this);this.JSC$10452_dom_=X||$O();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};
_.To(xe,_.zB);xe.prototype.idGenerator_=vrm.getInstance();xe.prototype.getId=function(){return this.JSC$10452_id_||(this.JSC$10452_id_=_.uZ(this.idGenerator_))};
xe.prototype.getElement=function(){return this.JSC$10452_element_};
var ez=function(X){X.googUiComponentHandler_||(X.googUiComponentHandler_=new _.C8(X));return X.googUiComponentHandler_},gEG=function(X,H){if(X==H)throw Error("ab");
var l;if(l=H&&X.parent_&&X.JSC$10452_id_){l=X.parent_;var b=X.JSC$10452_id_;l=l.childIndex_&&b?_.Bb.get(l.childIndex_,b)||null:null}if(l&&X.parent_!=H)throw Error("ab");X.parent_=H;xe.superClass_.setParentEventTarget.call(X,H)};
xe.prototype.setParentEventTarget=function(X){if(this.parent_&&this.parent_!=X)throw Error("bb");xe.superClass_.setParentEventTarget.call(this,X)};
xe.prototype.JSC$10454_createDom=function(){this.JSC$10452_element_=this.JSC$10452_dom_.createElement("DIV")};
xe.prototype.render=function(X){Gwq(this,X)};
var Gwq=function(X,H,l){if(X.inDocument_)throw Error("cb");X.JSC$10452_element_||X.JSC$10454_createDom();H?H.insertBefore(X.JSC$10452_element_,l||null):X.JSC$10452_dom_.JSC$9636_document_.body.appendChild(X.JSC$10452_element_);X.parent_&&!X.parent_.inDocument_||X.enterDocument()};
_.R=xe.prototype;_.R.decorate=function(X){if(this.inDocument_)throw Error("cb");if(X&&this.canDecorate(X)){this.wasDecorated_=!0;var H=_.uB(X);this.JSC$10452_dom_&&this.JSC$10452_dom_.JSC$9636_document_==H||(this.JSC$10452_dom_=$O(X));this.decorateInternal(X);this.enterDocument()}else throw Error("db");};
_.R.canDecorate=function(){return!0};
_.R.decorateInternal=function(X){this.JSC$10452_element_=X};
_.R.enterDocument=function(){this.inDocument_=!0;a9t(this,function(X){!X.inDocument_&&X.getElement()&&X.enterDocument()})};
_.R.exitDocument=function(){a9t(this,function(X){X.inDocument_&&X.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.R.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);a9t(this,function(X){X.dispose()});
!this.wasDecorated_&&this.JSC$10452_element_&&_.HE(this.JSC$10452_element_);this.parent_=this.model_=this.JSC$10452_element_=this.childIndex_=this.children_=null;xe.superClass_.disposeInternal.call(this)};
_.R.getModel=function(){return this.model_};
_.R.addChild=function(X,H){var l=this.children_?this.children_.length:0;if(X.inDocument_&&(H||!this.inDocument_))throw Error("cb");if(l<0||l>(this.children_?this.children_.length:0))throw Error("eb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);X.parent_==this?(_.Bb.set(this.childIndex_,X.getId(),X),_.Oy(this.children_,X)):_.Bb.add(this.childIndex_,X.getId(),X);gEG(X,this);_.ENb(this.children_,l,0,X);X.inDocument_&&this.inDocument_&&X.parent_==this?(H=this.getContentElement(),
(H.childNodes[l]||null)!=X.getElement()&&(X.getElement().parentElement==H&&H.removeChild(X.getElement()),l=H.childNodes[l]||null,H.insertBefore(X.getElement(),l))):H?(this.JSC$10452_element_||this.JSC$10454_createDom(),l=this.children_?this.children_[l+1]||null:null,Gwq(X,this.getContentElement(),l?l.JSC$10452_element_:null)):this.inDocument_&&!X.inDocument_&&X.JSC$10452_element_&&X.JSC$10452_element_.parentNode&&X.JSC$10452_element_.parentNode.nodeType==1&&X.enterDocument()};
_.R.getContentElement=function(){return this.JSC$10452_element_};
var a9t=function(X,H){X.children_&&X.children_.forEach(H,void 0)};
xe.prototype.removeChild=function(X,H){if(X){var l=typeof X==="string"?X:X.getId();X=this.childIndex_&&l?_.Bb.get(this.childIndex_,l)||null:null;l&&X&&(_.Bb.remove(this.childIndex_,l),_.Oy(this.children_,X),H&&(X.exitDocument(),X.JSC$10452_element_&&_.HE(X.JSC$10452_element_)),gEG(X,null))}if(!X)throw Error("fb");return X};_.To(OtW,itb);_.To(mdy,itb);var TLy;_.Bb.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var ZrD;_.y$=function(X,H,l){_.zB.call(this);this.target=X;this.handle=H||X;this.limits=l||new gX(NaN,NaN,NaN,NaN);this.JSC$10457_document_=_.uB(X);this.JSC$10457_eventHandler_=new _.C8(this);_.LY(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;_.n8(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=ZrD};
_.To(_.y$,_.zB);ZrD=_.ok.document&&_.ok.document.documentElement&&!!_.ok.document.documentElement.setCapture&&!!_.ok.document.releaseCapture;_.irq=function(X,H){X.hysteresisDistanceSquared_=Math.pow(H,2)};
_.R=_.y$.prototype;_.R.setEnabled=function(X){this.enabled_=X};
_.R.disposeInternal=function(){_.y$.superClass_.disposeInternal.call(this);_.FE(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};
_.R.startDrag=function(X){var H=X.type=="mousedown";if(!this.enabled_||this.dragging_||H&&(!X.isButton(0)||_.fA_&&X.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new V$("start",this,X.clientX,X.clientY,X)))this.dragging_=!0,H&&X.preventDefault();else return;else H&&X.preventDefault();H=this.JSC$10457_document_;var l=H.documentElement,b=!this.useSetCapture_;this.JSC$10457_eventHandler_.listen(H,["touchmove","mousemove"],this.handleMove_,
{capture:b,passive:!1});this.JSC$10457_eventHandler_.listen(H,["touchend","mouseup"],this.endDrag,b);this.useSetCapture_?(l.setCapture(!1),this.JSC$10457_eventHandler_.listen(l,"losecapture",this.endDrag)):this.JSC$10457_eventHandler_.listen(Mz(H),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10457_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,b);this.clientX=this.startX=X.clientX;this.clientY=this.startY=X.clientY;this.screenX=X.screenX;this.screenY=X.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=U_($O(this.JSC$10457_document_))}};
_.R.endDrag=function(X,H){this.JSC$10457_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10457_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new V$("end",this,X.clientX,X.clientY,X,vEH(this,this.deltaX),OrF(this,this.deltaY),H||X.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.R.handleMove_=function(X){if(this.enabled_){var H=X.clientX-this.clientX,l=X.clientY-this.clientY;this.clientX=X.clientX;this.clientY=X.clientY;this.screenX=X.screenX;this.screenY=X.screenY;if(!this.dragging_){var b=this.startX-this.clientX,U=this.startY-this.clientY;if(b*b+U*U>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new V$("start",this,X.clientX,X.clientY,X)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(X);return}}l=m9F(this,H,l);H=l.x;l=l.y;this.dragging_&&this.dispatchEvent(new V$("beforedrag",
this,X.clientX,X.clientY,X,H,l))&&(QKF(this,X,H,l),X.preventDefault())}};
var m9F=function(X,H,l){var b=U_($O(X.JSC$10457_document_));H+=b.x-X.pageScroll.x;l+=b.y-X.pageScroll.y;X.pageScroll=b;X.deltaX+=H;X.deltaY+=l;return new _.DY(vEH(X,X.deltaX),OrF(X,X.deltaY))};
_.y$.prototype.onScroll_=function(X){var H=m9F(this,0,0);X.clientX=this.clientX;X.clientY=this.clientY;QKF(this,X,H.x,H.y)};
var QKF=function(X,H,l,b){X.target.style.left=l+"px";X.target.style.top=b+"px";X.dispatchEvent(new V$("drag",X,H.clientX,H.clientY,H,l,b))},vEH=function(X,H){var l=X.limits;
X=isNaN(l.left)?null:l.left;l=isNaN(l.width)?0:l.width;return Math.min(X!=null?X+l:Infinity,Math.max(X!=null?X:-Infinity,H))},OrF=function(X,H){var l=X.limits;
X=isNaN(l.top)?null:l.top;l=isNaN(l.height)?0:l.height;return Math.min(X!=null?X+l:Infinity,Math.max(X!=null?X:-Infinity,H))};
_.y$.prototype.isDragging=function(){return this.dragging_};
var V$=function(X,H,l,b,U,K,w){_.NF.call(this,X);this.clientX=l;this.clientY=b;this.browserEvent=U;this.left=K!==void 0?K:H.deltaX;this.top=w!==void 0?w:H.deltaY};
_.To(V$,_.NF);var Pt=function(X){this.JSC$10464_map_=new Map;var H=arguments.length;if(H>1){if(H%2)throw Error("na");for(var l=0;l<H;l+=2)this.set(arguments[l],arguments[l+1])}else X&&this.addAll(X)};
_.R=Pt.prototype;_.R.getCount=function(){return this.JSC$10464_map_.size};
_.R.getValues=function(){return Array.from(this.JSC$10464_map_.values())};
_.R.getKeys=function(){return Array.from(this.JSC$10464_map_.keys())};
_.R.containsKey=function(X){return this.JSC$10464_map_.has(X)};
_.R.containsValue=function(X){return this.getValues().some(function(H){return H==X})};
_.R.equals=function(X,H){var l=this;H=H===void 0?function(b,U){return b===U}:H;
return this===X?!0:this.JSC$10464_map_.size!=X.getCount()?!1:this.getKeys().every(function(b){return H(l.JSC$10464_map_.get(b),X.get(b))})};
_.R.isEmpty=function(){return this.JSC$10464_map_.size==0};
_.R.clear=function(){this.JSC$10464_map_.clear()};
_.R.remove=function(X){return this.JSC$10464_map_.delete(X)};
_.R.get=function(X,H){return this.JSC$10464_map_.has(X)?this.JSC$10464_map_.get(X):H};
_.R.set=function(X,H){this.JSC$10464_map_.set(X,H);return this};
_.R.addAll=function(X){if(X instanceof Pt){X=_.C(X.JSC$10464_map_);for(var H=X.next();!H.done;H=X.next()){var l=_.C(H.value);H=l.next().value;l=l.next().value;this.JSC$10464_map_.set(H,l)}}else if(X)for(X=_.C(Object.entries(X)),H=X.next();!H.done;H=X.next())l=_.C(H.value),H=l.next().value,l=l.next().value,this.JSC$10464_map_.set(H,l)};
_.R.forEach=function(X,H){var l=this;H=H===void 0?this:H;this.JSC$10464_map_.forEach(function(b,U){return X.call(H,b,U,l)})};
_.R.clone=function(){return new Pt(this)};(function(){for(var X=["ms","moz","webkit","o"],H,l=0;H=X[l]&&!_.ok.requestAnimationFrame;++l)_.ok.requestAnimationFrame=_.ok[H+"RequestAnimationFrame"],_.ok.cancelAnimationFrame=_.ok[H+"CancelAnimationFrame"]||_.ok[H+"CancelRequestAnimationFrame"];if(!_.ok.requestAnimationFrame){var b=0;_.ok.requestAnimationFrame=function(U){var K=(new Date).getTime(),w=Math.max(0,16-(K-b));b=K+w;return _.ok.setTimeout(function(){U(K+w)},w)};
_.ok.cancelAnimationFrame||(_.ok.cancelAnimationFrame=function(U){clearTimeout(U)})}})();
var clZ=[[],[]],jFz=0,rlN=!1,NLy=0;var TVH=_.W8(["about:blank"]),NV6=_.W8(["javascript:undefined"]),cBv=_.z8(TVH);_.OU(cBv);var jK6=_.z8(NV6);_.OU(jK6);_.To(ke,_.zB);ke.prototype.handleEvent=function(X){var H=new _.wB(X.event_);H.type=X.type=="focusin"||X.type=="focus"?"focusin":"focusout";this.dispatchEvent(H)};
ke.prototype.disposeInternal=function(){ke.superClass_.disposeInternal.call(this);Ul(this.listenKeyIn_);Ul(this.listenKeyOut_);delete this.JSC$10470_element_};_.To(DM,xe);_.R=DM.prototype;_.R.focusHandler_=null;_.R.visible_=!1;_.R.bgEl_=null;_.R.bgIframeEl_=null;_.R.tabCatcherElement_=null;_.R.backwardTabWrapInProgress_=!1;_.R.getCssClass=function(){return"goog-modalpopup"};
_.R.getBackgroundElement=function(){return this.bgEl_};
_.R.JSC$10454_createDom=function(){DM.superClass_.JSC$10454_createDom.call(this);var X=this.getElement(),H=qW(this.getCssClass()).split(" ");Gj(X,H);X.tabIndex=0;_.mK(X,!1);rBt(this);JB_(this)};
var rBt=function(X){if(X.useIframeMask_&&!X.bgIframeEl_){var H=X.JSC$10452_dom_.JSC$9638_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.RD(H,cBv);X.bgIframeEl_=H;X.bgIframeEl_.className=X.getCssClass()+"-bg";_.mK(X.bgIframeEl_,!1);uJt(X.bgIframeEl_,0)}X.bgEl_||(X.bgEl_=X.JSC$10452_dom_.JSC$9638_createDom("DIV",X.getCssClass()+"-bg"),_.mK(X.bgEl_,!1))},JB_=function(X){X.tabCatcherElement_||(X.tabCatcherElement_=X.JSC$10452_dom_.createElement("SPAN"),_.mK(X.tabCatcherElement_,
!1),X.tabCatcherElement_.tabIndex=0,X.tabCatcherElement_.style.position="absolute")};
_.R=DM.prototype;_.R.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.R.canDecorate=function(X){return!!X&&X.tagName=="DIV"};
_.R.decorateInternal=function(X){DM.superClass_.decorateInternal.call(this,X);X=qW(this.getCssClass()).split(" ");Gj(this.getElement(),X);rBt(this);JB_(this);this.getElement().tabIndex=0;_.mK(this.getElement(),!1)};
_.R.enterDocument=function(){this.bgIframeEl_&&_.px(this.bgIframeEl_,this.getElement());_.px(this.bgEl_,this.getElement());DM.superClass_.enterDocument.call(this);_.SH(this.tabCatcherElement_,this.getElement());this.focusHandler_=new ke(this.JSC$10452_dom_.JSC$9636_document_);ez(this).listen(this.focusHandler_,"focusin",this.onFocus);LI_(this,!1)};
_.R.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Gp(this.focusHandler_);DM.superClass_.exitDocument.call(this);_.HE(this.bgIframeEl_);_.HE(this.bgEl_);_.HE(this.tabCatcherElement_)};
_.R.setVisible=function(X){if(X!=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_&&LI_(this,X),X){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10452_dom_.JSC$9636_document_.activeElement}catch(U){}this.updateModalAndBackground_();ez(this).listen(this.JSC$10452_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10452_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);YeQ(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)MF(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){ez(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_)MF(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var H=this.JSC$10452_dom_,l=H.JSC$9636_document_.body,b=H.JSC$9636_document_.activeElement||l;if(!this.lastFocus_||this.lastFocus_==l){this.lastFocus_=null;break a}(b==l||H.contains(this.getElement(),b))&&this.lastFocus_.focus()}catch(U){}this.lastFocus_=
null}}};
var LI_=function(X,H){X.modalAriaVisibilityHelper_||(X.modalAriaVisibilityHelper_=new YZL(X.JSC$10452_element_,X.JSC$10452_dom_));X=X.modalAriaVisibilityHelper_;if(H){X.hiddenElements_||(X.hiddenElements_=[]);H=X.JSC$10473_dom_.getChildren(X.JSC$10473_dom_.JSC$9636_document_.body);for(var l=0;l<H.length;l++){var b=H[l],U;if(U=b!=X.JSC$10473_element_)U=b.getAttribute("aria-hidden"),U=!(U==null||U==void 0?0:String(U));U&&(SO(b,"hidden",!0),X.hiddenElements_.push(b))}}else if(X.hiddenElements_){for(H=
0;H<X.hiddenElements_.length;H++)X.hiddenElements_[H].removeAttribute("aria-hidden");X.hiddenElements_=null}};
DM.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var YeQ=function(X,H){X.bgIframeEl_&&_.mK(X.bgIframeEl_,H);X.bgEl_&&_.mK(X.bgEl_,H);_.mK(X.getElement(),H);_.mK(X.tabCatcherElement_,H)};
_.R=DM.prototype;_.R.onShow=function(){this.dispatchEvent("show")};
_.R.onHide=function(){YeQ(this,!1);this.dispatchEvent("hide")};
_.R.isVisible=function(){return this.visible_};
_.R.focus=function(){this.focusElement_()};
_.R.resizeBackground_=function(){this.bgIframeEl_&&_.mK(this.bgIframeEl_,!1);this.bgEl_&&_.mK(this.bgEl_,!1);var X=this.JSC$10452_dom_.JSC$9636_document_;var H=_.bB(Mz(this.JSC$10452_dom_.JSC$9636_document_)||window);var l=Math.max(H.width,Math.max(X.body.scrollWidth,X.documentElement.scrollWidth));X=Math.max(H.height,Math.max(X.body.scrollHeight,X.documentElement.scrollHeight));this.bgIframeEl_&&(_.mK(this.bgIframeEl_,!0),_.Bv_(this.bgIframeEl_,l,X));this.bgEl_&&(_.mK(this.bgEl_,!0),_.Bv_(this.bgEl_,
l,X))};
_.R.reposition=function(){var X;if(_.FK_(this.getElement())=="fixed")var H=X=0;else H=U_(this.JSC$10452_dom_),X=H.x,H=H.y;var l=sA6(this.getElement());var b=_.bB(Mz(this.JSC$10452_dom_.JSC$9636_document_)||window);X=Math.max(X+b.width/2-l.width/2,0);H=Math.max(H+b.height/2-l.height/2,0);DO(this.getElement(),X,H);DO(this.tabCatcherElement_,X,H)};
_.R.onFocus=function(X){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():X.target==this.tabCatcherElement_&&ui(this.focusElement_,0,this)};
_.R.focusElement_=function(){try{this.getElement().focus()}catch(X){}};
_.R.disposeInternal=function(){_.Gp(this.popupShowTransition_);this.popupShowTransition_=null;_.Gp(this.popupHideTransition_);this.popupHideTransition_=null;_.Gp(this.bgShowTransition_);this.bgShowTransition_=null;_.Gp(this.bgHideTransition_);this.bgHideTransition_=null;DM.superClass_.disposeInternal.call(this)};_.To(WE,DM);_.R=WE.prototype;_.R.escapeToCancel_=!0;_.R.hasTitleCloseButton_=!0;_.R.modal_=!0;_.R.draggable_=!0;_.R.backgroundElementOpacity_=.5;_.R.title_="";_.R.JSC$10485_dragger_=null;_.R.JSC$10485_disposeOnHide_=!1;_.R.titleEl_=null;_.R.titleTextEl_=null;_.R.titleTextId_=null;_.R.titleCloseEl_=null;_.R.contentEl_=null;_.R.buttonEl_=null;_.R.getCssClass=function(){return this.JSC$10483_class_};
_.R.setTitle=function(X){this.title_=X;this.titleTextEl_&&_.nx(this.titleTextEl_,X)};
_.R.getTitle=function(){return this.title_};
_.R.getContent=function(){return""};
_.R.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var I9Q=function(X){X.getElement()||X.render();return X.getElement()};
WE.prototype.getBackgroundElement=function(){this.getElement()||this.render();return WE.superClass_.getBackgroundElement.call(this)};
var ABY=function(X,H){X.backgroundElementOpacity_=H;X.getElement()&&(H=X.getBackgroundElement())&&uJt(H,X.backgroundElementOpacity_)};
WE.prototype.setDraggable=function(X){this.draggable_=X;XiQ(this,X&&this.inDocument_)};
WE.prototype.handleDrag=function(){};
var XiQ=function(X,H){var l=qW(X.JSC$10483_class_+"-title-draggable").split(" ");X.getElement()&&(H?Gj(X.titleEl_,l):jw9(X.titleEl_,l));H&&!X.JSC$10485_dragger_?(H=new _.y$(X.getElement(),X.titleEl_),X.JSC$10485_dragger_=H,Gj(X.titleEl_,l),_.n8(X.JSC$10485_dragger_,"start",X.setDraggerLimits_,!1,X),_.n8(X.JSC$10485_dragger_,"drag",X.handleDrag,!1,X)):!H&&X.JSC$10485_dragger_&&(X.JSC$10485_dragger_.dispose(),X.JSC$10485_dragger_=null)};
_.R=WE.prototype;
_.R.JSC$10454_createDom=function(){WE.superClass_.JSC$10454_createDom.call(this);var X=this.getElement(),H=this.JSC$10452_dom_;this.titleTextId_=this.getId();var l=this.getId()+".contentEl";this.titleEl_=H.JSC$9638_createDom("DIV",this.JSC$10483_class_+"-title",this.titleTextEl_=H.JSC$9638_createDom("SPAN",{className:this.JSC$10483_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=H.JSC$9638_createDom("SPAN",this.JSC$10483_class_+"-title-close"));JjQ(X,this.titleEl_,this.contentEl_=
H.JSC$9638_createDom("DIV",{className:this.JSC$10483_class_+"-content",id:l}),this.buttonEl_=H.JSC$9638_createDom("DIV",this.JSC$10483_class_+"-buttons"));QFy(this.titleTextEl_,"heading");QFy(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;SO(this.titleCloseEl_,"label","Close");QFy(X,"dialog");SO(X,"labelledby",this.titleTextId_||"");_.mK(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(X=this.buttons_,X.JSC$10486_element_=this.buttonEl_,X.render());_.mK(this.buttonEl_,!!this.buttons_);
ABY(this,this.backgroundElementOpacity_)};
_.R.decorateInternal=function(X){WE.superClass_.decorateInternal.call(this,X);X=this.getElement();var H=this.JSC$10483_class_+"-content";this.contentEl_=uK(document,null,H,X)[0];this.contentEl_||(this.contentEl_=this.JSC$10452_dom_.JSC$9638_createDom("DIV",H),X.appendChild(this.contentEl_));H=this.JSC$10483_class_+"-title";var l=this.JSC$10483_class_+"-title-text",b=this.JSC$10483_class_+"-title-close";(this.titleEl_=uK(document,null,H,X)[0])?(this.titleTextEl_=uK(document,null,l,this.titleEl_)[0],
this.titleCloseEl_=uK(document,null,b,this.titleEl_)[0]):(this.titleEl_=this.JSC$10452_dom_.JSC$9638_createDom("DIV",H),X.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=RBY(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.yT("SPAN",{className:l,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;SO(X,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10452_dom_.JSC$9638_createDom("SPAN",b),this.titleEl_.appendChild(this.titleCloseEl_));_.mK(this.titleCloseEl_,this.hasTitleCloseButton_);H=this.JSC$10483_class_+"-buttons";(this.buttonEl_=uK(document,null,H,X)[0])?(this.buttons_=new to(this.JSC$10452_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10452_dom_.JSC$9638_createDom("DIV",H),X.appendChild(this.buttonEl_),this.buttons_&&(X=this.buttons_,X.JSC$10486_element_=this.buttonEl_,X.render()),_.mK(this.buttonEl_,
!!this.buttons_));ABY(this,this.backgroundElementOpacity_)};
_.R.enterDocument=function(){WE.superClass_.enterDocument.call(this);ez(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);ez(this).listen(this.buttonEl_,"click",this.onButtonClick_);XiQ(this,this.draggable_);ez(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var X=this.getElement();QFy(X,"dialog");this.titleTextEl_.id!==""&&SO(X,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){X=this.JSC$10452_dom_;
var H=this.getBackgroundElement();X.removeNode(this.bgIframeEl_);X.removeNode(H)}this.isVisible()&&LI_(this,!1)}};
_.R.exitDocument=function(){this.isVisible()&&this.setVisible(!1);XiQ(this,!1);WE.superClass_.exitDocument.call(this)};
_.R.setVisible=function(X){X!=this.isVisible()&&(this.inDocument_||this.render(),WE.superClass_.setVisible.call(this,X))};
_.R.onShow=function(){WE.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.R.onHide=function(){WE.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10485_disposeOnHide_&&this.dispose()};
_.R.setDraggerLimits_=function(){var X=this.JSC$10452_dom_.JSC$9636_document_,H=_.bB(Mz(X)||window),l=Math.max(X.body.scrollWidth,H.width);X=Math.max(X.body.scrollHeight,H.height);var b=sA6(this.getElement());_.FK_(this.getElement())=="fixed"?this.JSC$10485_dragger_.limits=new gX(0,0,Math.max(0,H.width-b.width),Math.max(0,H.height-b.height)):this.JSC$10485_dragger_.limits=new gX(0,0,l-b.width,X-b.height)};
_.R.onTitleCloseClick_=function(){HNz(this)};
var HNz=function(X){if(X.hasTitleCloseButton_){var H=X.buttons_,l=H&&H.cancelButton_;l?(H=H.get(l),X.dispatchEvent(new f5(l,H))&&X.setVisible(!1)):X.setVisible(!1)}},lvG=function(X){X.hasTitleCloseButton_=!1;
X.titleCloseEl_&&_.mK(X.titleCloseEl_,X.hasTitleCloseButton_)};
WE.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;WE.superClass_.disposeInternal.call(this)};
WE.prototype.onButtonClick_=function(X){a:{for(X=X.target;X!=null&&X!=this.buttonEl_;){if(X.tagName=="BUTTON")break a;X=X.parentNode}X=null}if(X&&!X.disabled){X=X.name;var H=this.buttons_.get(X);this.dispatchEvent(new f5(X,H))&&this.setVisible(!1)}};
WE.prototype.onKey_=function(X){var H=!1,l=!1,b=this.buttons_,U=X.target;if(X.type=="keydown")if(this.escapeToCancel_&&X.keyCode==27){var K=b&&b.cancelButton_;U=U.tagName=="SELECT"&&!U.disabled;K&&!U?(l=!0,H=b.get(K),H=this.dispatchEvent(new f5(K,H))):U||(H=!0)}else{if(X.keyCode==9&&X.shiftKey&&U==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(u){}ui(this.resetBackwardTabWrap_,0,this)}}else if(X.keyCode==13){if(U.tagName=="BUTTON"&&!U.disabled)K=U.name;
else if(U==this.titleCloseEl_)HNz(this);else if(b){var w=b.defaultButton_,d;if(d=w)a:{d=lI("BUTTON",b.JSC$10486_element_);for(var B,q=0;B=d[q];q++)if(B.name==w||B.id==w){d=B;break a}d=null}U=(U.tagName=="TEXTAREA"||U.tagName=="SELECT"||U.tagName=="A")&&!U.disabled;!d||d.disabled||U||(K=w)}K&&b&&(l=!0,H=this.dispatchEvent(new f5(K,String(b.get(K)))))}else U!=this.titleCloseEl_||X.keyCode!=32&&X.key!=" "||HNz(this);if(H||l)X.stopPropagation(),X.preventDefault();H&&this.setVisible(!1)};
var f5=function(X,H){this.type="dialogselect";this.key=X;this.caption=H};
_.To(f5,_.NF);var to=function(X){Pt.call(this);X||$O();this.cancelButton_=this.JSC$10486_element_=this.defaultButton_=null};
_.To(to,Pt);_.R=to.prototype;_.R.clear=function(){Pt.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.R.set=function(X,H,l,b){Pt.prototype.set.call(this,X,H);l&&(this.defaultButton_=X);b&&(this.cancelButton_=X);return this};
_.R.addButton=function(X,H,l){return this.set(X.key,X.caption,H,l)};
_.R.render=function(){if(this.JSC$10486_element_){_.Ml(this.JSC$10486_element_,hVk);var X=$O(this.JSC$10486_element_);this.forEach(function(H,l){H=X.JSC$9638_createDom("BUTTON",{name:l},H);l==this.defaultButton_&&(H.className="goog-buttonset-default");this.JSC$10486_element_.appendChild(H)},this)}};
_.R.decorate=function(X){if(X&&X.nodeType==1){this.JSC$10486_element_=X;X=lI("BUTTON",this.JSC$10486_element_);for(var H,l,b,U=0;H=X[U];U++)if(l=H.name||H.id,b=RBY(H)||H.value,l){var K=U==0;this.set(l,b,K,H.name=="cancel");K&&_.kl(H,"goog-buttonset-default")}}};
_.R.getElement=function(){return this.JSC$10486_element_};
var ItW={key:"ok",caption:"OK"},Alh={key:"cancel",caption:"Cancel"},ouQ={key:"yes",caption:"Yes"},bNq={key:"no",caption:"No"},UG_={key:"save",caption:"Save"},$G6={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new to).addButton(ItW,!0,!0),(new to).addButton(ItW,!0).addButton(Alh,!1,!0),(new to).addButton(ouQ,!0).addButton(bNq,!1,!0),(new to).addButton(ouQ).addButton(bNq,!0).addButton(Alh,!1,!0),(new to).addButton($G6).addButton(UG_).addButton(Alh,!0,!0));_.To(XBy,WE);_.To(HUy,ET);var Ke_=_.W8(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),R0v=_.W8(["//apis.google.com/js/rpc.js"]),dKK=_.z8(Ke_),wBb=_.z8(R0v),oVN=null;var gv=function(X,H){_.zB.call(this);this.JSC$10495_element_=X;X=_.rv(this.JSC$10495_element_)?this.JSC$10495_element_:this.JSC$10495_element_?this.JSC$10495_element_.body:null;this.isRtl_=!!X&&_.eB_(X);this.listenKey_=_.n8(this.JSC$10495_element_,_.Hf?"DOMMouseScroll":"mousewheel",this,H)};
_.To(gv,_.zB);gv.prototype.handleEvent=function(X){var H=0,l=0,b=X.event_;b.type=="mousewheel"?(X=CTG(-b.wheelDelta),b.wheelDeltaX!==void 0?(H=CTG(-b.wheelDeltaX),l=CTG(-b.wheelDeltaY)):l=X):(X=b.detail,X>100?X=3:X<-100&&(X=-3),b.axis!==void 0&&b.axis===b.HORIZONTAL_AXIS?H=X:l=X);typeof this.maxDeltaX_==="number"&&(H=_.kY(H,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(l=_.kY(l,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(H=-H);H=new wiQ(X,b,H,l);this.dispatchEvent(H)};
var CTG=function(X){return _.XQ&&(_.fA_||SaC)&&X%40!=0?X:X/40};
gv.prototype.disposeInternal=function(){gv.superClass_.disposeInternal.call(this);Ul(this.listenKey_);this.listenKey_=null};
var wiQ=function(X,H,l,b){_.wB.call(this,H);this.type="mousewheel";this.detail=X;this.deltaX=l;this.deltaY=b};
_.To(wiQ,_.wB);_.QU=function(X){var H="instance_";if(X.instance_&&X.hasOwnProperty(H))return X.instance_;H=new X;return X.instance_=H};var CMb;var dG_=_.W8(["https://about:blank"]),h0z=_.W8(['javascript:""']),FeF=_.W8(["about:blank"]);_.To(TB,XBy);_.R=TB.prototype;_.R.JSC$10503_url_="";_.R.JSC$10503_iframe_=null;_.R.iframeLoaded_=!1;_.R.loadedFired_=!1;_.R.callback_=function(){};
_.R.enterDocument=function(){TB.superClass_.enterDocument.call(this);$KN(this.getBackgroundElement(),ez(this))};
_.R.render=function(X){var H=this;TB.superClass_.render.call(this,X);this.useGapi_?Se6(this.iframeManager_,window).then(function(){return BZH(H)}).then(null,function(){H.callback_({action:"error"})}):qcq(this);
this.JSC$10501_enablePopover_&&(this.getBackgroundElement().setAttribute("popover","manual"),I9Q(this).setAttribute("popover","manual"))};
var BZH=function(X){var H=X.JSC$10452_dom_.JSC$9638_createDom("div",["picker-dialog-content","picker-frame"]);_.mK(H,!1);X.getContentElement().appendChild(H);return zeF(X.iframeManager_,H,function(l){var b=Ao_(l["iframe-command"]);switch(b.getCommand()){case 1:l=X.callback_;b=_.Al(b,jH,2);var U="";switch(b.getStatus()){case 2:U="cancel";break;case 1:U="picked";break;case 3:U="error"}var K=_.iB(b,wJ,2,_.vb(jCH));b=K.length===0?{action:U}:$99(K,U,_.Al(b,LKq,7));l.call(X,b);X.setVisible(!1);break;case 4:lvG(X);
X.callback_({action:"loaded"});break;case 7:case 8:l=X.callback_;a:{U=b.getCommand();K=_.Al(b,jH,2);switch(U){case 7:U="uploadScheduled";break;case 8:U="uploadStateChange";break;default:b={};break a}b=_.iB(K,wJ,2,_.vb(jCH));if(b.length===0)b={action:U};else{var w=_.Al(K,LKq,7);K=w&&_.sC(w,1);w=Jht(w);b=ICH(b,U,K,w)}}l.call(X,b)}},X.JSC$10503_url_,X.targetId_,X.rpcToken_).then(function(l){X.JSC$10503_iframe_=l.getIframeEl();
spq(X);_.mK(X.JSC$10503_iframe_.parentElement,!0);_.kl(X.getElement(),"picker-dialog");M7_(X);return l})},qcq=function(X){X.JSC$10503_iframe_=X.JSC$10452_dom_.JSC$9638_createDom("IFRAME",{id:X.targetId_,
name:X.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.RD(X.JSC$10503_iframe_,u6D(X));_.kl(X.getElement(),"picker-dialog");X.getContentElement().appendChild(X.JSC$10503_iframe_);ez(X).listen(X.JSC$10503_iframe_,"load",function(){return void spq(X)});
X.JSC$10503_iframe_.src=X.JSC$10503_url_;M7_(X)},y$9=function(X){e0_(X,(0,_.K8)(function(H){H.setAuthToken(this.targetId_,this.rpcToken_)},X))},M7_=function(X){var H=_.vE(_.iI(X.JSC$10503_url_),"title");
H&&X.setTitle(H)},u6D=function(X){return _.fLz("Internet Explorer")>=7&&_.Ky(X.JSC$10503_url_,"https")?_.z8(dG_):_.Jv?_.z8(h0z):_.z8(FeF)},spq=function(X){y$9(X);
X.iframeLoaded_=!0;X.JSC$10503_iframe_.tabIndex=0;X.isVisible()&&X.focus()};
TB.prototype.handleKeydown_=function(X){X.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),X.stopPropagation(),X.preventDefault())};
var e0_=function(X,H){var l=X.JSC$10501_gadgetsDomHelper_;bUl(function(){H(l.getWindow().gadgets.rpc)},l)};
TB.prototype.setUrl=function(X){X=_.OT(new _.xu(X),"rpcService",this.targetId_);_.OT(X,"rpctoken",this.rpcToken_);_.NQ(X,"rpctoken="+this.rpcToken_);_.vR(X,"https");this.JSC$10503_url_=X.toString();this.JSC$10503_iframe_&&(this.JSC$10503_iframe_.src=this.JSC$10503_url_)};
var V7D=function(X,H){X.callback_=H;e0_(X,(0,_.K8)(function(l){l.register(this.targetId_,(0,_.K8)(this.handlePickerAction_,this))},X))};
TB.prototype.handlePickerAction_=function(X){var H=X.action;H=="loaded"&&(this.loadedFired_=!0,PTF(this,new mdy(this.isVisible())),fvQ(this),lvG(this),ez(this).unlisten(this.JSC$10452_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10503_iframe_.tabIndex=0);H!="picked"&&H!="cancel"||this.setVisible(!1);this.callback_(X)};
var fvQ=function(X){X.JSC$10503_appId_&&PTF(X,new OtW(X.JSC$10503_appId_,window.location.protocol+"//"+window.location.host))};
TB.prototype.setRelayUrl=function(X){e0_(this,(0,_.K8)(function(H){H.setRelayUrl(this.targetId_,X)},this))};
var PTF=function(X,H){X.useGapi_&&tBt(H,X.iframeManager_).then(null,function(){X.callback_({action:"error"})});
e0_(X,(0,_.K8)(function(l){l.call(this.targetId_,"picker",null,H)},X))};
TB.prototype.resizePicker_=function(){var X=Mz(this.JSC$10452_dom_.JSC$9636_document_)||window;if(_.vE(_.iI(this.JSC$10503_url_),"ignoreLimits")=="true")X=new _.tn(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.vE(_.iI(this.JSC$10503_url_),"shadeDialog")=="true"){var H=I9Q(this);H=yo_(H);var l=_.bB(X);X=l.width-80;l=l.height-40;H&&(X-=H.left?H.left:0,X-=H.right?H.right:0,l-=H.top?H.top:0,l-=H.bottom?H.bottom:0);X=new _.tn(X>0?X:0,l>0?l:0)}else(H=this.preferredDialogWidth_)?(H=Math.max(320,
Math.min(1051,H)),(l=this.preferredDialogHeight_)||(l=_.bB(X).height*.85),l=Math.max(480,Math.min(650,l))):(H=_.bB(X),l=H.width*.618,l=l<H.height?Math.round(Math.max(480,Math.min(650,l*.85))):Math.round(Math.max(480,Math.min(650,H.height*.85))),H=Math.round(l/.618)),X=_.bB(X),H=Math.min(H,Math.max(X.width,320)),l=Math.min(l,Math.max(X.height,480)),X=new _.tn(H,l);_.Bv_(this.getContentElement(),X);this.reposition()};
TB.prototype.reposition=function(){if(_.vE(_.iI(this.JSC$10503_url_),"shadeDialog")=="true"){var X=sA6(this.getElement()),H=_.bB(this.JSC$10452_dom_.getWindow());X=Math.floor(H.width/2-X.width/2);H=I9Q(this);if(H=yo_(H)){var l=H.left?H.left:0;l+=H.right?H.right:0;X=Math.floor(X-l/2)}X=X>0?X:0;H=U_(this.JSC$10452_dom_).y;DO(this.getElement(),X,H)}else TB.superClass_.reposition.call(this)};
TB.prototype.setVisible=function(X){if(X!=this.isVisible()){if(this.autoSizeDialog_){var H=this.JSC$10452_dom_.getWindow();X?(this.resizePicker_(),ez(this).listen(H,"resize",this.resizePicker_),this.iframeLoaded_||ez(this).listen(H,"keydown",this.handleKeydown_)):(ez(this).unlisten(H,"resize",this.resizePicker_),this.iframeLoaded_||ez(this).unlisten(H,"keydown",this.handleKeydown_))}if(this.JSC$10501_enablePopover_){H=this.getBackgroundElement();var l=I9Q(this);"showPopover"in l&&(X?(H.showPopover(),
l.showPopover()):(H.hidePopover(),l.hidePopover()))}}TB.superClass_.setVisible.call(this,X);PTF(this,new mdy(X))};
TB.prototype.focus=function(){TB.superClass_.focus.call(this);if(this.JSC$10503_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10503_iframe_.focus()}catch(X){}};var l$=function(X,H){H=H===void 0?TB:H;ET.call(this,X);this.pickerConstructor=H;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(X=window.location.origin)||(X=window.location.protocol+"//"+window.location.host);X&&this.urlParamMap_.set("origin",X);this.postProcessors_=[]};
_.S(l$,HUy);l$.prototype.JSC$10508_disposeOnHide_=!1;
l$.prototype.build=function(){this.JSC$10409_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10409_appId_);this.getRelayUrl()||this.setRelayUrl(_.QD(_.NQ(_.Tj(_.iI(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("hb");var X=new this.pickerConstructor(piz(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1,!1);X.JSC$10485_disposeOnHide_=this.JSC$10508_disposeOnHide_;
X.JSC$10503_appId_=this.JSC$10409_appId_;X.loadedFired_&&fvQ(X);V7D(X,this.callback_);return X};
var Sc_=function(X){X.urlParamMap_.set("multiselectEnabled","true");return X};
_.R=l$.prototype;_.R.getHeight=function(){return this.dialogHeight_};
_.R.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.R.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.R.getTitle=function(){return this.urlParamMap_.get("title")};
_.R.getWidth=function(){return this.dialogWidth_};
var z0v=function(X){X.JSC$10508_disposeOnHide_=void 0;return X};
l$.prototype.setRelayUrl=function(X){this.urlParamMap_.set("parent",X);return this};
var nu6=function(X,H){X.urlParamMap_.set("selectButtonLabel",H);return X};
l$.prototype.setSize=function(X,H){this.dialogWidth_=X;this.dialogHeight_=H;return this};
l$.prototype.setTitle=function(X){this.urlParamMap_.set("title",X);return this};
var piz=function(X){X.postProcessors_.length&&X.urlParamMap_.set("pp",JSON.stringify(X.postProcessors_));X.urlParamMap_.set("nav",Nw9(X.nav_));var H=new _.xu(X.getBaseUrl());X.urlParamMap_.forEach(function(l,b){_.OT(H,b,l)});
return H};_.To(swW,_.XO);var BnN=function(X){var H=_.Bb.findKey(FQK,function(l){return X==l});
if(H===void 0)throw Error("jb`"+X);return H},p5={},FQK=(p5.AbortError=3,p5.EncodingError=5,p5.InvalidModificationError=9,p5.InvalidStateError=7,p5.NotFoundError=1,p5.NotReadableError=4,p5.NoModificationAllowedError=6,p5.PathExistsError=12,p5.QuotaExceededError=10,p5.SecurityError=2,p5.SyntaxError=8,p5.TypeMismatchError=11,p5);_.To(Msk,_.NF);var kPt=function(X,H,l){l===void 0&&(l=X.size);return X.slice?X.slice(H,l):null};var eVl=new WeakMap,u$8=function(X,H){X=[X];for(var l=H.length-1;l>=0;--l)X.push(typeof H[l],H[l]);return X.join("\v")};_.Vsk(function(){if(!_.ok.Blob)return!1;var X=new Uint8Array(100);try{var H=new Blob([X])}catch(l){return!1}return H.size!=100?!1:!0});
var xG9=_.Vsk(function(){if(!_.ok.Blob)return!1;var X=new Uint8Array(100);try{var H=new Blob([X])}catch(l){return!1}return kPt(H,0,1)===null?!1:!0});try{var DGD,t7D,We6=(t7D=(DGD=window)==null?void 0:DGD.top)!=null?t7D:_.ok;We6.U3bHHf!=null||(We6.U3bHHf=0);We6.U3bHHf++}catch(X){_.ok.U3bHHf!=null||(_.ok.U3bHHf=0),_.ok.U3bHHf++};var pBb=new WeakMap;var fSL=new WeakMap;var nV8={};var Jo=void 0;var xKL=Symbol("rb");var Nny=IA("WizInjectionContext_ModelRootElement"),cV8=IA("WizInjectionContext_RendererData"),jwZ=IA("WizInjectionContext_InjectingConstructor"),EVK=IA("WizInjectionContext_AppContext"),gVO=IA("WizInjectionContext_Dispatcher"),aSz=IA("WizInjectionContext_RootElement"),TnW=IA("WizInjectionContext_AsyncDeps");var A1=Symbol("sb");var Fi=function(){this.afterRenderCallbacks=null},ZU8=Symbol("tb"),eJ=function(X){this.props=X;
this.__unmounted=!1};
eJ.prototype.didPatch=function(){};
eJ.prototype.didMount=function(){};
eJ.prototype.didUnmount=function(){};
eJ.prototype.didUpdate=function(){};var rVy={};var AVK=!1;var o2Z={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:MyF,enableContextPerComponent:MyF,enableLazyTsx:u5_,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:sCH,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var XU=Object.assign({},{attributes:{},handleError:function(X){throw X;}},o2Z);var Eu_=Symbol("xb"),SI=Symbol("yb"),D08=Symbol("zb"),kXh=Symbol("Ab"),Zib=a_(function(X){return Hg(X)&&Eu_ in X});var dpZ=Symbol("Bb"),Sz={},R2y=(Sz[dpZ]=!0,Sz.debugName="[component]",Sz.getComponentStack=function(){for(var X=[],H=this;H;)h2m(H)&&X.push(H.debugName),H=H.parent;return X},Sz.registerSignal=function(){},Sz.registerEffect=function(){},Sz);var lL=null,bL=!1,R5=1,df=Symbol("Fb"),Ms={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 zq=Symbol("Gb"),n5=Symbol("Hb"),wf=Symbol("Ib"),fqy=Object.assign({},Ms,{value:zq,dirty:!0,error:null,equal:BU8,kind:"computed",producerMustRecompute:function(X){return X.value===zq||X.value===n5},
producerRecomputeValue:function(X){if(X.value===n5)throw Error("$");var H=X.value;X.value=n5;var l=ySO(X),b=!1;try{var U=X.computation();o5(null);b=H!==zq&&H!==wf&&U!==wf&&X.equal(H,U)}catch(K){U=wf,X.error=K}finally{o5(l),X&&Pkk(X)}b?X.value=H:(X.value=U,X.version++)}});var gu_=Object.assign({},Ms,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var n2y=function(){throw Error();};var xpy=null,SAL=Object.assign({},Ms,{equal:BU8,value:void 0,kind:"signal"});var DpK=Object.assign({},Ms,{value:zq,dirty:!0,error:null,equal:BU8,kind:"linkedSignal",producerMustRecompute:function(X){return X.value===zq||X.value===n5},
producerRecomputeValue:function(X){if(X.value===n5)throw Error("$");var H=X.value;X.value=n5;var l=ySO(X);try{var b=X.source();var U=X.computation(b,H===zq||H===wf?void 0:{source:X.sourceValue,value:H});X.sourceValue=b}catch(K){U=wf,X.error=K}finally{o5(l),X&&Pkk(X)}H!==zq&&U!==wf&&X.equal(H,U)?X.value=H:(X.value=U,X.version++)}});Object.assign({},Ms,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(X){X.schedule!==null&&X.schedule(X.ref)},
cleanupFn:function(){}});var g2Z=Symbol("Jb"),Bg=Symbol("Kb");var qs=Array.isArray;var TUl;var GPC={},FcK=QLy(Object.assign({},{consumerAllowSignalWrites:!0},GPC)),qk=QLy(Object.assign({},{consumerAllowSignalWrites:!0},GPC));var V3=Symbol("Pb");var y3=null,May,uFN=null,e38;var zG=0,x3=!1,kP=function(){this.queue=new Set};
kP.prototype.schedule=function(X){this.queue.add(X)};
kP.prototype.remove=function(X){this.queue.delete(X)};
kP.prototype.clear=function(){this.queue.clear()};
var pjh=Symbol("Qb"),Pzm=Symbol("Rb"),xP=function(){kP.apply(this,arguments)};
_.S(xP,kP);xP.prototype.flush=function(){if(this.queue.size){x3=!0;for(var X=_.C(this.queue),H=X.next();!H.done;H=X.next()){H=H.value;this.queue.delete(H);try{H.run()}catch(l){avz(l)}}x3=!1}};
var ZNq=function(){xP.apply(this,arguments)};
_.S(ZNq,xP);var fCy=new ZNq,iNF=function(){xP.apply(this,arguments)};
_.S(iNF,xP);iNF.prototype.schedule=function(X){return _.h(function(H){if(H.nextAddress==1)return H.yield(Promise.resolve(),2);X.run();_.m5(H)})};
iNF.prototype.enqueue=function(X){this.queue.add(X)};
var SLZ=new iNF,Dd=function(){kP.apply(this,arguments)};
_.S(Dd,kP);Dd.prototype.flush=function(){this.queue.size&&iib(this.queue)};
var vuC=function(){Dd.apply(this,arguments)};
_.S(vuC,Dd);vuC.prototype.schedule=function(X){X.version===0?X.run():this.queue.add(X)};
vuC.prototype.flush=function(){if(this.queue.size)if(XU.flushRenderEffectsDuringRender){var X=this.queue;this.queue=new Set;iib(X)}else iib(this.queue)};
var nHb=new vuC,ONq=function(){Dd.apply(this,arguments)};
_.S(ONq,Dd);ONq.prototype.schedule=function(X){return _.h(function(H){if(H.nextAddress==1)return H.yield(Promise.resolve(),2);X.run();_.m5(H)})};
ONq.prototype.enqueue=function(X){this.queue.add(X)};
var tak=new ONq,mGz=function(){Dd.apply(this,arguments)};
_.S(mGz,Dd);var x0k=new mGz,EHO=[nHb,fCy,x0k],aCZ=[SLZ,tak],Qpq=[nHb,x0k,tak],vHK=[].concat(_.LJ(EHO),_.LJ(aCZ)),TZ9=[];xpy=function(){GXl();for(var X=_.C(TZ9),H=X.next();!H.done;H=X.next())H=H.value,H()};
var avz=bb;var tP={},NZQ=Object.assign({},gu_,(tP[Eu_]=!0,tP.effectType=SI,tP.isResettableContext=!0,tP.consumerMarkedDirty=Wc8,tP.run=function(){m0z(this)},tP.cleanup=function(){QwW(this)},tP.componentStack=void 0,tP.debugName="[effect]",tP.destroy=function(){if(U2(this))for(var X=this.producers;X!==void 0;)X=Vhl(X);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;X=_.C(Qpq);for(var H=X.next();!H.done;H=X.next())H.value.remove(this);mKz(this)},tP[Symbol.dispose]=function(){this.destroy()},tP)),c$_=Object.assign({},NZQ,{version:1,
dirty:!1});var Qmz=Object.assign({},NZQ,{effectType:SI});var TwW=Object.assign({},NZQ,{effectType:D08});var jmO=Symbol("Tb");var D9y=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 Lcy={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},Jh8=
{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}]}},uIO={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},AhZ=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],ICO={"*":{async:1,dir:0,loading:2,target:3}};var jpQ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Wt={},HrZ=(Wt[1]=null,Wt[2]=function(X,H){return H instanceof lQ?Uw(H):LX.toString()},Wt[3]=function(X,H){return cu(H)?_.jA(H):jpQ.test(String(H))?String(H):LX.toString()},Wt[4]=function(X,H){return H instanceof iR?_.OU(H):LX.toString()},Wt[5]=function(X,H){return String(H)},Wt[7]=null,Wt[8]=null,Wt[10]=null,Wt);var A5b=Symbol("Wb");var U9m="Y Z E P T G M K  m u n".split(" "),brz={"":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};_.r$F=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 Ut={};RegExp.prototype.hasOwnProperty("sticky");var WIz=function(X){X=String(X);for(var H=function(b,U,K){for(var w=Math.min(U.length-K,b.length),d=0;d<w;d++){var B=U[K+d];if(b[d]!==("A"<=B&&B<="Z"?B.toLowerCase():B))return!1}return!0},l=0;(l=X.indexOf("<",l))!=-1;){if(H("\x3c/script",X,l)||H("\x3c!--",X,l))return"zSoyz";
l+=1}return X};var O2={default:"__default"};var wfN=Object.prototype.hasOwnProperty;KIL.prototype=Object.create(null);var QJ=FIL();var J1=null;var SeL=function(X){this.created=[];this.deleted=[];this.node=X};var zeb=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var X=this,H=X;X;)H=X,X=X.parentNode;return H};var qeW=function(X,H){this._attrsArr=null;this.nameOrCtor=X;this.key=H;this.text=void 0};var TG=null,Ns=null,mX=null,jI=null,VBZ=[],yBZ=uQO,rf=[],IIK=function(X){return nEy(function(H,l,b){mX=Ns=H;Ns=null;l(b);eek(null);Ns=mX;mX=mX.parentNode;return H},X)}(),Ysz=function(X){return nEy(function(H,l,b){var U={nextSibling:H};
Ns=U;l(b);mX&&eek(H.nextSibling);return U===Ns?null:Ns},X)}();var LW=[],Xxy=0;var T3=new KIL;var J$q=FIL(),Gwl=J$q[O2.default],gEy=J$q.style,tB8=["focusin","focusout"],irl="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var Feb=function(){},kP8=function(){},Scy=function(){};var I5=Symbol("dc");var TVO,QKb=m9b;var wx=Symbol("ec");var nuL=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(" ")),
z0W=new Set(["a","font","script","style","title"]);var Cf={setUp:ouN,tearDown:ouN,log:ouN,logNodeRange:ouN,graft:function(X,H){H()}};var st={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Mk=null,uj=function(X,H){eJ.call(this,X);var l=this;this.functionComponent=H;this.hooks=[];this.hookCounter=0;this.disposeEffects=GG(function(b){l.effectContext=b;_.E2(function(){M7y(l,l.el)})},XU.alwaysTrackContexts||!!Jo)};
_.S(uj,eJ);uj.prototype.render=function(X){var H=Mk;Mk=this;this.hookCounter=0;var l=o5(qk),b=L8(this.effectContext);try{return Uph("render",this.componentName),this.functionComponent(X)}finally{$pb("render",this.componentName),L8(b),o5(l),Mk=H}};
_.ja.Object.defineProperties(uj.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return qLy(this.functionComponent)}}});var xGZ=Symbol("sc"),PTb=function(X,H,l){this.afterRenderCallbacks=null;this.kind=X;this.props=H;this.children=l};
_.S(PTb,Fi);PTb.prototype.render=function(){var X=V7m(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var H=_.C(this.afterRenderCallbacks),l=H.next();!l.done;l=H.next())l=l.value,X=l(X);return X};
PTb.prototype.getChildren=function(){return this.children};var t7m=[];n2y=function(X){throw Error("qb`"+X.debugName);};
(function(){var X=J1;J1=function(H){X==null||X(H);WeL(H)}})();Object.assign({},c$_,{effectType:SI,elementRef:null,attributes:null,fn:function(){var X=this.elementRef;var H;X.element!=null||(X.element=(H=X.document.getElementById(X.value))!=null?H:void 0);X=X.element;for(H=this.attributes;H;){var l=H.signal();l!==H.prevValue&&(H.prevValue=l,H.namespace===1?X[H.name]=l:D9y.has(H.name)?vg(X,H.name,l?"":null):vg(X,H.name,l));H=H.next}}});_.yO.debugName="tbhMcf";_.VO.debugName="zyMFzb";Object.assign({},c$_,{effectType:SI});_.M.debugName="RlDudd";var Euy={nonNullableCondIsNull:function(){return Error("vc")}};var ONl=function(){this.map=new Map};
ONl.prototype.push=function(X,H){var l=this.map;l.has(X)&&(this.multi||(this.multi=new Map),this.multi.set(H,l.get(X)));l.set(X,H)};
ONl.prototype.pop=function(X){var H=this.map,l=H.get(X),b;l!==void 0&&((b=this.multi)==null?0:b.has(l))?(H.set(X,this.multi.get(l)),this.multi.delete(l)):H.delete(X);return l};_.P$.debugName="nsTGHd";_.ff.debugName="vI1rtf";var c$y={OUT_OF_ORDER_HOOK_CALL:function(X){return Error("wc`"+X)},
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(X,H){return Error("Ac`"+((H===void 0?0:H)?"IDOM":"Reactive")+"`"+(pf(X)?X.description:X))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(X,H){return Error("Bc`"+(pf(X)?X.description:X)+"`"+H)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(X){return Error("Cc`"+(pf(X)?X.description:X))},
USE_ELEMENT_NOT_ASSIGNED:function(X){return Error("Dc`"+(pf(X)?X.description:X))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(X){return Error("Ec`"+(pf(X)?X.description:X))}};var Yjh=Symbol("Fc");TVO=fvy;TVO=fvy;var oB8=Symbol("Gc");qcl({beforeRender:function(X){var H=L8(X.effectContext);try{var l;((l=X.__syncEffects)==null?0:l.length)&&h4Z(X.__syncEffects)}finally{L8(H)}},
didPatch:function(X){var H=L8(X.effectContext);try{var l;((l=X.__syncEffects)==null?0:l.length)&&h4Z(X.__syncEffects)}finally{L8(H)}},
didUnmount:function(X){var H;((H=X.hooks)==null?0:H.length)&&X.hooks.forEach(dJl)}});var Leq,Yc6,IvH;Leq=_.ok.window;_.W$=(Leq==null?void 0:(Yc6=Leq.yt)==null?void 0:Yc6.config_)||(Leq==null?void 0:(IvH=Leq.ytcfg)==null?void 0:IvH.data_)||{};_.cQ("yt.config_",_.W$);var A$v={},qfm=[];_.qd=function(X){var H=_.Ab.apply(1,arguments);var l=Error.call(this,X);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.args=[].concat(_.LJ(H));Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(_.qd,Error);var wWZ=function(X,H,l){this.actionName=X;this.optionalAction=H===void 0?!1:H;this.args=l===void 0?null:l;this.returnValue=[]};_.Ed=function(X){this.name=X};_.gU=new _.Ed("signalAction");var z4y=/^[\w.]*$/,yYL={q:!0,search_query:!0},e4y=String(uSy);var rx;rx=Symbol("Hc");_.gz=function(X){this.name=X};
_.gz.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var nBk=function(X){this.key=X},WSk=function(X){this.deferredKey=X},xJK=function(){var X=this;
this.providers=new Map;this.JSC$10808_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(X.providers)}}};
xJK.prototype.addProvider=function(X){this.providers.set(X.provide,X);var H=this.JSC$10808_deferred.get(X.provide);if(H)try{H.resolver(this.resolve(X.provide))}catch(l){H.rejector(l)}};
xJK.prototype.resolve=function(X){return X instanceof WSk?XKQ(this,X):X instanceof nBk?HA_(this,X.key,[],!0):HA_(this,X,[])};
var XKQ=function(X,H){H=H.deferredKey;if(X.JSC$10808_deferred.has(H))return X.JSC$10808_deferred.get(H).promise;var l={};l.promise=new Promise(function(b,U){l.resolver=b;l.rejector=U});
X.JSC$10808_deferred.set(H,l);return l.promise},HA_=function(X,H,l,b){b=b===void 0?!1:b;
if(l.indexOf(H)>-1)throw Error("Ic`"+H);if(X.cachedValues.has(H))return X.cachedValues.get(H);if(!X.providers.has(H)){if(b)return;throw Error("Jc`"+H);}b=X.providers.get(H);l.push(H);if(b.useValue!==void 0)var U=b.useValue;else if(b.useFactory)U=b[rx]?liz(X,b[rx],l):[],U=b.useFactory.apply(b,_.LJ(U));else if(b.useClass){U=b.useClass;var K=U[rx]?liz(X,U[rx],l):[];U=new (Function.prototype.bind.apply(U,[null].concat(_.LJ(K))))}else throw Error("Kc`"+H);l.pop();b.skipCache||X.cachedValues.set(H,U);return U},
liz=function(X,H,l){return H?H.map(function(b){return b instanceof nBk?HA_(X,b.key,l,!0):HA_(X,b,l)}):[]};var kub;var G3=new _.gz("ENDPOINT_HANDLER_TOKEN");_.aL=new _.Ed("urlEndpoint");var oBt=function(){this.data=[];this.cachedPackedInt52=-1};
oBt.prototype.set=function(X,H){H=H===void 0?!0:H;0<=X&&X<52&&Number.isInteger(X)&&this.data[X]!==H&&(this.data[X]=H,this.cachedPackedInt52=-1)};
oBt.prototype.get=function(X){return!!this.data[X]};
var bA_=function(X){X.cachedPackedInt52===-1&&(X.cachedPackedInt52=X.data.reduce(function(H,l,b){return H+(l?Math.pow(2,b):0)},0));
return X.cachedPackedInt52};var cYW=function(X){var H=UJv;X=X===void 0?_.ij("yt.ads.biscotti.lastId_")||"":X;var l=Object,b=l.assign,U={};U.dt=S4_;U.flash="0";a:{try{var K=H.JSC$10814_win_.top.location.href}catch(Y){K=2;break a}K=K?K===H.doc_.location.href?0:1:2}U=(U.frm=K,U);try{U.u_tz=-(new Date).getTimezoneOffset();try{var w=WR.history.length}catch(Y){w=0}U.u_his=w;var d;U.u_h=(d=WR.screen)==null?void 0:d.height;var B;U.u_w=(B=WR.screen)==null?void 0:B.width;var q;U.u_ah=(q=WR.screen)==null?void 0:q.availHeight;var u;U.u_aw=
(u=WR.screen)==null?void 0:u.availWidth;var e;U.u_cd=(e=WR.screen)==null?void 0:e.colorDepth}catch(Y){}w=H.JSC$10814_win_;try{var y=w.screenX;var V=w.screenY}catch(Y){}try{var p=w.outerWidth;var z=w.outerHeight}catch(Y){}try{var t=w.innerWidth;var W=w.innerHeight}catch(Y){}try{var G=w.screenLeft;var r=w.screenTop}catch(Y){}try{t=w.innerWidth,W=w.innerHeight}catch(Y){}try{var Q=w.screen.availWidth;var v=w.screen.availTop}catch(Y){}y=[G,r,y,V,Q,v,p,z,t,W];V=$FN(!1,H.JSC$10814_win_.top);p={};var J=J===
void 0?_.ok:J;z=new oBt;"SVGElement"in J&&"createElementNS"in J.document&&z.set(0);t=aeH();t["allow-top-navigation-by-user-activation"]&&z.set(1);t["allow-popups-to-escape-sandbox"]&&z.set(2);J.crypto&&J.crypto.subtle&&z.set(3);"TextDecoder"in J&&"TextEncoder"in J&&z.set(4);J=bA_(z);H=(p.bc=J,p.bih=V.height,p.biw=V.width,p.brdim=y.join(),p.vis=Y2m(H.doc_),p.wgl=!!WR.WebGLRenderingContext,p);l=b.call(l,U,H);l.ca_type="image";X&&(l.bid=X);return l},UJv=new function(){var X=window.document;
this.JSC$10814_win_=window;this.doc_=X};
_.cQ("yt.ads_.signals_.getAdSignalsString",function(X){return VFm(cYW(X))});_.QC();navigator.userAgent.indexOf(" (CrKey ");var aiz="XMLHttpRequest"in _.ok?function(){return new XMLHttpRequest}:null;var $JQ="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),KS6=[].concat(_.LJ($JQ),["client_dev_set_cookie"]);var Ncz={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"},vBN="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(_.LJ($JQ)),HTh=!1,mJK=_.jOy,IiK=Tcy;var VuK=[{messageFn:function(X){return"Cannot read property '"+X.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(X){return"Cannot call '"+X.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(X){return X.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var R4v={messageWeights:[],callbackWeights:[{callback:UoW,weight:500},{callback:$oy,weight:500}]};var CHH=function(){this.callbackWeights=[];this.messageWeights=[]},wK9,y5y=function(){if(!wK9){var X=wK9=new CHH;
X.messageWeights.length=0;X.callbackWeights.length=0;ZoO(X,R4v)}return wK9},ZoO=function(X,H){H.messageWeights&&X.messageWeights.push.apply(X.messageWeights,H.messageWeights);
H.callbackWeights&&X.callbackWeights.push.apply(X.callbackWeights,H.callbackWeights)};_.To(_.RF,_.$e);_.RF.prototype.subscribe=function(X,H,l){var b=this.topics_[X];b||(b=this.topics_[X]=[]);var U=this.JSC$10837_key_;this.subscriptions_[U]=X;this.subscriptions_[U+1]=H;this.subscriptions_[U+2]=l;this.JSC$10837_key_=U+3;b.push(U);return U};
var dJq=function(X){var H=WD,l=!1,b=H.subscribe("handleError",function(U){l||(l=!0,this.unsubscribeByKey(b),X.apply(void 0,arguments))},H)};
_.RF.prototype.unsubscribe=function(X,H,l){if(X=this.topics_[X]){var b=this.subscriptions_;if(X=X.find(function(U){return b[U+1]==H&&b[U+2]==l}))return this.unsubscribeByKey(X)}return!1};
_.RF.prototype.unsubscribeByKey=function(X){var H=this.subscriptions_[X];if(H){var l=this.topics_[H];this.publishDepth_!=0?(this.pendingKeys_.push(X),this.subscriptions_[X+1]=function(){}):(l&&_.Oy(l,X),delete this.subscriptions_[X],delete this.subscriptions_[X+1],delete this.subscriptions_[X+2])}return!!H};
_.RF.prototype.publish=function(X,H){var l=this.topics_[X];if(l){var b=Array(arguments.length-1),U=arguments.length,K;for(K=1;K<U;K++)b[K-1]=arguments[K];if(this.async_)for(K=0;K<l.length;K++)U=l[K],h49(this.subscriptions_[U+1],this.subscriptions_[U+2],b);else{this.publishDepth_++;try{for(K=0,U=l.length;K<U&&!this.isDisposed();K++){var w=l[K];this.subscriptions_[w+1].apply(this.subscriptions_[w+2],b)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;l=this.pendingKeys_.pop();)this.unsubscribeByKey(l)}}return K!=
0}return!1};
var h49=function(X,H,l){_.qQ(function(){X.apply(H,l)})};
_.RF.prototype.clear=function(X){if(X){var H=this.topics_[X];H&&(H.forEach(this.unsubscribeByKey,this),delete this.topics_[X])}else this.subscriptions_.length=0,this.topics_={}};
_.RF.prototype.getCount=function(X){if(X){var H=this.topics_[X];return H?H.length:0}X=0;for(H in this.topics_)X+=this.getCount(H);return X};
_.RF.prototype.disposeInternal=function(){_.RF.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var WD=new _.RF;var lM=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(lM,_.sU);lM.prototype.getColdHashData=function(){return _.sC(this,3)};
lM.prototype.getHotHashData=function(){return _.sC(this,5)};
lM.prototype.setHotHashData=function(X){return _.KY(this,5,X)};var usm=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(usm,_.sU);var Ndm=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Ndm,_.sU);_.R=Ndm.prototype;_.R.getDeviceId=function(){return _.sC(this,6)};
_.R.getExperimentIds=function(X){var H=_.Hu(this,9,_.hN,3,!0);b_k(H,X);return H[X]};
_.R.getPlayerType=function(){return _.M7(this,36)};
_.R.setHomeGroupInfo=function(X){return _.go(this,81,X)};
_.R.clearLocationPlayabilityToken=function(){return _.HB(this,89)};var C2=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(C2,_.sU);C2.prototype.setKey=function(X){return _.KY(this,1,X)};
C2.prototype.getValue=function(){return e5(this,2,jqh)};
var jqh=[2,3,4,5,6];var FSQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(FSQ,_.sU);FSQ.prototype.setTrackingParams=function(X){return _.HB(this,1,_.EG(X,!1))};var cwh=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(cwh,_.sU);var V4W=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(V4W,_.sU);V4W.prototype.getExperimentIds=function(X){var H=_.Hu(this,5,_.tqy,3,!0);b_k(H,X);return H[X]};var BD=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(BD,_.sU);BD.prototype.getToken=function(){return _.Aj(this,2)};
BD.prototype.setToken=function(X){return _.KY(this,2,X)};var dU=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(dU,_.sU);dU.prototype.setSafetyMode=function(X){return _.X$(this,5,X)};var RL=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(RL,_.sU);RL.prototype.setClient=function(X){return _.go(this,1,X)};var y2K={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 eKz;_.pe=function(){var X=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.ok.addEventListener("beforeinstallprompt",function(H){H.preventDefault();X.deferredInstallPrompt=H});
_.ok.addEventListener("appinstalled",function(){X.appInstalledEventFired=!0},{once:!0})};
eKz=function(){if(!_.ok.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.ok.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.ok.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.ok.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.ok.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(X){return"WEB_DISPLAY_MODE_UNKNOWN"}};var pMb=function(){this.syncHeaders=!0},SiO=function(X){var H={},l=[];
"USER_SESSION_ID"in _.W$&&l.push({key:"u",value:_.gx("USER_SESSION_ID")});if(l=_.cFh(l))H.Authorization=l,l=X=X==null?void 0:X.sessionIndex,l===void 0&&(l=Number(_.gx("SESSION_INDEX",0)),l=isNaN(l)?0:l),_.P("voice_search_auth_header_removal")||(H["X-Goog-AuthUser"]=l.toString()),"INNERTUBE_HOST_OVERRIDE"in _.W$||(H["X-Origin"]=window.location.origin),X===void 0&&"DELEGATED_SESSION_ID"in _.W$&&(H["X-Goog-PageId"]=_.gx("DELEGATED_SESSION_ID"));return H};var Bc6={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Gq=_.ij("ytglobal.prefsUserPrefsPrefs_")||{},qfD;_.cQ("ytglobal.prefsUserPrefsPrefs_",Gq);_.aM=function(){this.cookieName=_.gx("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.gx("ALT_PREF_COOKIE_DOMAIN","youtube.com");var X=_.wL.get(this.cookieName,void 0);X&&this.parse(X)};
_.oO=function(){qfD||(qfD=new _.aM);return qfD};
_.aM.prototype.get=function(X,H){sOC(X);MFF(X);X=Gq[X]!==void 0?Gq[X].toString():null;return X!=null?X:H?H:""};
_.aM.prototype.set=function(X,H){sOC(X);MFF(X);if(H==null)throw Error("Nc");Gq[X]=H.toString()};
_.aM.prototype.getFlag=function(X){return!!((uS_("f"+(Math.floor(X/31)+1))||0)&1<<X%31)};
_.bH=function(X,H,l){X="f"+(Math.floor(H/31)+1);H=1<<H%31;var b=uS_(X)||0;b=l?b|H:b&~H;b===0?delete Gq[X]:(l=b.toString(16),Gq[X]=l.toString())};
_.aM.prototype.remove=function(X){sOC(X);MFF(X);delete Gq[X]};
_.aM.prototype.save=function(){var X=!0;_.P("web_secure_pref_cookie_killswitch")&&(X=!1);_.dL(this.cookieName,this.dump(),63072E3,this.cookieDomain,X)};
_.aM.prototype.clear=function(){_.Bb.clear(Gq)};
_.aM.prototype.dump=function(){var X=[],H;for(H in Gq)Gq.hasOwnProperty(H)&&X.push(H+"="+encodeURIComponent(String(Gq[H])));return X.join("&")};
var MFF=function(X){if(/^f([1-9][0-9]*)$/.test(X))throw Error("Oc`"+X);},sOC=function(X){if(!/^\w+$/.test(X))throw Error("Pc`"+X);
},uS_=function(X){X=Gq[X]!==void 0?Gq[X].toString():null;
return X!=null&&/^[A-Fa-f0-9]+$/.test(X)?parseInt(X,16):null};
_.aM.prototype.parse=function(X){X=decodeURIComponent(X).split("&");for(var H=0;H<X.length;H++){var l=X[H].split("="),b=l[0];(l=l[1])&&(Gq[b]=l.toString())}};var q9L={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"},P$k={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},fcy={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},M0L={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var iv;_.Zd=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.eh=function(X,H,l){return X.addJob(H,0,l)};
_.Zd.prototype.addLowPriorityJob=function(X,H){return this.addJob(X,1,H)};
_.Rs=function(X,H,l){return X.addJob(H,2,l)};
_.oJ=function(X,H,l){return X.addJob(H,3,l)};
_.v5=function(X,H,l){return X.addJob(H,4,l)};
iv=function(X){var H=_.ij("yt.scheduler.instance.addImmediateJob");H?H(X):X()};
_.Zd.prototype.debounce=function(X,H,l){var b=this,U=0,K=function(){U&&b.cancelJob(U);U=b.addJob(X,H,l);b.cancelDebouncedJobMap.set(K,U)};
return K};
_.Zd.prototype.cancelThrottle=function(X){(X=this.cancelThrottledJobMap.get(X))&&X()};var iZ=function(){_.Zd.apply(this,arguments)},e4G;
_.S(iZ,_.Zd);_.qV=function(){iZ.instance||(iZ.instance=new iZ);return iZ.instance};
iZ.prototype.addJob=function(X,H,l){l!==void 0&&Number.isNaN(Number(l))&&(l=void 0);var b=_.ij("yt.scheduler.instance.addJob");return b?b(X,H,l):l===void 0?(X(),NaN):_.b0(X,l||0)};
iZ.prototype.cancelJob=function(X){if(X===void 0||!Number.isNaN(Number(X))){var H=_.ij("yt.scheduler.instance.cancelJob");H?H(X):_.$r(X)}};
iZ.prototype.start=function(){var X=_.ij("yt.scheduler.instance.start");X&&X()};
iZ.prototype.pause=function(){var X=_.ij("yt.scheduler.instance.pause");X&&X()};
e4G=function(){_.qV();var X=_.ij("yt.scheduler.instance.setPriorityThreshold");X&&X(4)};
_.Ss=_.qV();_.sZ.prototype.set=function(X,H){H===void 0?this.mechanism.remove(X):this.mechanism.set(X,_.yD(H))};
_.sZ.prototype.get=function(X){try{var H=this.mechanism.get(X)}catch(l){return}if(H!==null)try{return JSON.parse(H)}catch(l){throw"Storage: Invalid value was encountered";}};
_.sZ.prototype.remove=function(X){this.mechanism.remove(X)};_.To(Md,_.sZ);var yY6=function(X){this.data=X},VFD=function(X){return X===void 0||X instanceof yY6?X:new yY6(X)};
Md.prototype.set=function(X,H){Md.superClass_.set.call(this,X,VFD(H))};
Md.prototype.getWrapper=function(X){X=Md.superClass_.get.call(this,X);if(X===void 0||X instanceof Object)return X;throw"Storage: Invalid value was encountered";};
Md.prototype.get=function(X){if(X=this.getWrapper(X)){if(X=X.data,X===void 0)throw"Storage: Invalid value was encountered";}else X=void 0;return X};_.To(u0,Md);_.PH9=function(X){var H=X.creation;X=X.expiration;return!!X&&X<_.QC()||!!H&&H>_.QC()};
u0.prototype.set=function(X,H,l){if(H=VFD(H)){if(l){if(l<_.QC()){u0.prototype.remove.call(this,X);return}H.expiration=l}H.creation=_.QC()}u0.superClass_.set.call(this,X,H)};
u0.prototype.getWrapper=function(X,H){var l=u0.superClass_.getWrapper.call(this,X);if(l)if(!H&&_.PH9(l))u0.prototype.remove.call(this,X);else return l};var vt=function(){};
vt.prototype.next=function(){return Od};
var Od={done:!0,value:void 0},mT=function(X){return{value:X,done:!1}};
vt.prototype.__iterator__=function(){return this};
_.fiF=function(X){if(X instanceof vt)return X;if(typeof X.__iterator__=="function")return X.__iterator__(!1);if(_.ch(X)){var H=0,l=new vt;l.next=function(){for(;;){if(H>=X.length)return Od;if(H in X)return mT(X[H++]);H++}};
return l}throw Error("Qc");};var pKt=function(X){if(X instanceof Q$||X instanceof Tq||X instanceof NS)return X;if(typeof X.next=="function")return new Q$(function(){return X});
if(typeof X[Symbol.iterator]=="function")return new Q$(function(){return X[Symbol.iterator]()});
if(typeof X.__iterator__=="function")return new Q$(function(){return X.__iterator__()});
throw Error("Rc");},Q$=function(X){this.func_=X};
Q$.prototype.__iterator__=function(){return new Tq(this.func_())};
Q$.prototype[Symbol.iterator]=function(){return new NS(this.func_())};
Q$.prototype.toEs6=function(){return new NS(this.func_())};
var Tq=function(X){this.JSC$10922_iter_=X};
_.S(Tq,vt);Tq.prototype.next=function(){return this.JSC$10922_iter_.next()};
Tq.prototype[Symbol.iterator]=function(){return new NS(this.JSC$10922_iter_)};
Tq.prototype.toEs6=function(){return new NS(this.JSC$10922_iter_)};
var NS=function(X){Q$.call(this,function(){return X});
this.JSC$10925_iter_=X};
_.S(NS,Q$);NS.prototype.next=function(){return this.JSC$10925_iter_.next()};var Sf9=function(){};var ct=function(){};
_.To(ct,Sf9);ct.prototype.getCount=function(){for(var X=0,H=_.C(this),l=H.next();!l.done;l=H.next())X++;return X};
ct.prototype[Symbol.iterator]=function(){return pKt(this.__iterator__(!0)).toEs6()};
ct.prototype.clear=function(){var X=Array.from(this);X=_.C(X);for(var H=X.next();!H.done;H=X.next())this.remove(H.value)};_.To(ev,ct);_.R=ev.prototype;_.R.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var X=this.storage_;if(X)try{X.setItem("__sak","1");X.removeItem("__sak");var H=!0}catch(l){H=l instanceof DOMException&&(l.name==="QuotaExceededError"||l.code===22||l.code===1014||l.name==="NS_ERROR_DOM_QUOTA_REACHED")&&X&&X.length!==0}else H=!1;this.cachedIsStorageAvailable_=H}return this.cachedIsStorageAvailable_};
_.R.set=function(X,H){jz(this);try{this.storage_.setItem(X,H)}catch(l){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.R.get=function(X){jz(this);X=this.storage_.getItem(X);if(typeof X!=="string"&&X!==null)throw"Storage mechanism: Invalid value was encountered";return X};
_.R.remove=function(X){jz(this);this.storage_.removeItem(X)};
_.R.getCount=function(){jz(this);return this.storage_.length};
_.R.__iterator__=function(X){jz(this);var H=0,l=this.storage_,b=new vt;b.next=function(){if(H>=l.length)return Od;var U=l.key(H++);if(X)return mT(U);U=l.getItem(U);if(typeof U!=="string")throw"Storage mechanism: Invalid value was encountered";return mT(U)};
return b};
_.R.clear=function(){jz(this);this.storage_.clear()};
_.R.key=function(X){jz(this);return this.storage_.key(X)};
var jz=function(X){if(X.storage_==null)throw Error("Sc");X.isAvailable()||bb(Error("Sc"))};_.To(ePW,ev);_.To(y0O,ev);_.To(yl,ct);yl.prototype.set=function(X,H){this.mechanism_.set(this.JSC$10940_prefix_+X,H)};
yl.prototype.get=function(X){return this.mechanism_.get(this.JSC$10940_prefix_+X)};
yl.prototype.remove=function(X){this.mechanism_.remove(this.JSC$10940_prefix_+X)};
yl.prototype.__iterator__=function(X){var H=this.mechanism_[Symbol.iterator](),l=this,b=new vt;b.next=function(){var U=H.next();if(U.done)return U;for(U=U.value;U.slice(0,l.JSC$10940_prefix_.length)!=l.JSC$10940_prefix_;){U=H.next();if(U.done)return U;U=U.value}return mT(X?U.slice(l.JSC$10940_prefix_.length):l.mechanism_.get(U))};
return b};_.DS=function(X){this.expiringStorage_=(X=_.Vl(X))?new u0(X):null;this.JSC$10944_domain_=document.domain||window.location.hostname};
_.R=_.DS.prototype;_.R.hasLocalStorage=function(){return!!this.expiringStorage_};
_.R.set=function(X,H,l,b){l=l||31104E3;this.remove(X);if(this.hasLocalStorage())try{this.expiringStorage_.set(X,H,Date.now()+l*1E3);return}catch(K){}var U="";if(b)try{U=escape(_.yD(H))}catch(K){return}else U=escape(H);_.dL(X,U,l,this.JSC$10944_domain_)};
_.R.get=function(X,H){var l=void 0,b=!this.hasLocalStorage();if(!b)try{l=this.expiringStorage_.get(X)}catch(U){b=!0}if(b&&(l=_.wL.get(X,void 0))&&(l=unescape(l),H))try{l=JSON.parse(l)}catch(U){this.remove(X),l=void 0}return l};
_.R.remove=function(X){this.hasLocalStorage()&&this.expiringStorage_.remove(X);_.hPZ(X,"/",this.JSC$10944_domain_)};
_.R.getCreationTime=function(X){return this.hasLocalStorage()&&(X=(this.expiringStorage_.getWrapper(X)||{}).creation,typeof X==="number")?X:null};var P5b=function(){var X;return function(){X||(X=new _.DS("ytidb"));return X}}();var pFy;_.ft=[];pFy=!1;var QHO=S9K||zPl;var rz={},z4G=(rz.AUTH_INVALID="No user identifier specified.",rz.EXPLICIT_ABORT="Transaction was explicitly aborted.",rz.IDB_NOT_SUPPORTED="IndexedDB is not supported.",rz.MISSING_INDEX="Index not created.",rz.MISSING_OBJECT_STORES="Object stores not created.",rz.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",rz.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",rz.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",rz.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",rz.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",rz.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",rz.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",rz),JP={},nB_=(JP.AUTH_INVALID="ERROR",JP.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",JP.EXPLICIT_ABORT="IGNORED",
JP.IDB_NOT_SUPPORTED="ERROR",JP.MISSING_INDEX="WARNING",JP.MISSING_OBJECT_STORES="ERROR",JP.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",JP.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",JP.QUOTA_EXCEEDED="WARNING",JP.QUOTA_MAYBE_EXCEEDED="WARNING",JP.UNKNOWN_ABORT="WARNING",JP.INCOMPATIBLE_DB_VERSION="WARNING",JP),L5={},kuF=(L5.AUTH_INVALID=!1,L5.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,L5.EXPLICIT_ABORT=!1,L5.IDB_NOT_SUPPORTED=!1,L5.MISSING_INDEX=!1,L5.MISSING_OBJECT_STORES=!1,L5.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,L5.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,L5.QUOTA_EXCEEDED=!1,L5.QUOTA_MAYBE_EXCEEDED=!0,L5.UNKNOWN_ABORT=!0,L5.INCOMPATIBLE_DB_VERSION=!1,L5),xr=function(X,H,l,b,U){H=H===void 0?{}:H;l=l===void 0?z4G[X]:l;b=b===void 0?nB_[X]:b;U=U===void 0?kuF[X]:U;_.qd.call(this,l,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:X},H));this.type=X;this.message=l;this.level=b;this.retryable=U;Object.setPrototypeOf(this,xr.prototype)};
_.S(xr,_.qd);var xJY=function(X,H){xr.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:H,foundObjectStores:X},z4G.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,xJY.prototype)};
_.S(xJY,xr);var kcO=function(X,H){var l=Error.call(this);this.message=l.message;"stack"in l&&(this.stack=l.stack);this.index=X;this.objectStore=H;Object.setPrototypeOf(this,kcO.prototype)};
_.S(kcO,Error);var xom=["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 EZ=function(X){this.executor=X},WQ=function(X){var H=this;
this.state={status:"PENDING"};this.JSC$10972_onFulfilled=[];this.JSC$10972_onRejected=[];X=X.executor;var l=function(U){if(H.state.status==="PENDING"){H.state={status:"FULFILLED",value:U};U=_.C(H.JSC$10972_onFulfilled);for(var K=U.next();!K.done;K=U.next())K=K.value,K()}},b=function(U){if(H.state.status==="PENDING"){H.state={status:"REJECTED",
reason:U};U=_.C(H.JSC$10972_onRejected);for(var K=U.next();!K.done;K=U.next())K=K.value,K()}};
try{X(l,b)}catch(U){b(U)}};
WQ.all=function(X){return new WQ(new EZ(function(H,l){var b=[],U=X.length;U===0&&H(b);for(var K={i$jscomp$471:0};K.i$jscomp$471<X.length;K={i$jscomp$471:K.i$jscomp$471},++K.i$jscomp$471)WQ.resolve(X[K.i$jscomp$471]).then(function(w){return function(d){b[w.i$jscomp$471]=d;U--;U===0&&H(b)}}(K)).catch(function(w){l(w)})}))};
WQ.resolve=function(X){return new WQ(new EZ(function(H,l){X instanceof WQ?X.then(H,l):H(X)}))};
WQ.reject=function(X){return new WQ(new EZ(function(H,l){l(X)}))};
WQ.prototype.then=function(X,H){var l=this,b=X!=null?X:W1y,U=H!=null?H:t0m;return new WQ(new EZ(function(K,w){l.state.status==="PENDING"?(l.JSC$10972_onFulfilled.push(function(){DJG(l,l,b,K,w)}),l.JSC$10972_onRejected.push(function(){tFF(l,l,U,K,w)})):l.state.status==="FULFILLED"?DJG(l,l,b,K,w):l.state.status==="REJECTED"&&tFF(l,l,U,K,w)}))};
WQ.prototype.catch=function(X){return this.then(void 0,X)};
var DJG=function(X,H,l,b,U){try{if(X.state.status!=="FULFILLED")throw Error("Vc");var K=l(X.state.value);K instanceof WQ?WS_(X,H,K,b,U):b(K)}catch(w){U(w)}},tFF=function(X,H,l,b,U){try{if(X.state.status!=="REJECTED")throw Error("Wc");
var K=l(X.state.reason);K instanceof WQ?WS_(X,H,K,b,U):b(K)}catch(w){U(w)}},WS_=function(X,H,l,b,U){H===l?U(new TypeError("Xc")):l.then(function(K){K instanceof WQ?WS_(X,H,K,b,U):b(K)},function(K){U(K)})};var YP;YP=window;_.Jl=YP.ytcsi&&YP.ytcsi.now?YP.ytcsi.now:YP.performance&&YP.performance.timing&&YP.performance.now&&YP.performance.timing.navigationStart?function(){return YP.performance.timing.navigationStart+YP.performance.now()}:function(){return(new Date).getTime()};var GT=function(X,H){this.JSC$10984_wrapped=X;this.options=H;this.transactionCount=0;this.startedMs=Math.round((0,_.Jl)());this.hasUnknownAbortedTransaction=!1},IM=function(){return _.P("idb_immediate_commit")},Guz,aiC,HG,vBQ;
GT.prototype.add=function(X,H,l){return _.OZ(this,[X],{mode:"readwrite",enableRetries:!0,commit:IM()},function(b){return b.objectStore(X).add(H,l)})};
GT.prototype.clear=function(X){return _.OZ(this,[X],{mode:"readwrite",enableRetries:!0},function(H){return H.objectStore(X).clear()})};
GT.prototype.close=function(){this.JSC$10984_wrapped.close();var X;((X=this.options)==null?0:X.closed)&&this.options.closed()};
GT.prototype.count=function(X,H){return _.OZ(this,[X],{mode:"readonly",enableRetries:!0,commit:IM()},function(l){return l.objectStore(X).count(H)})};
var E4=function(X,H,l){X=X.JSC$10984_wrapped.createObjectStore(H,l);return new AP(X)};
GT.prototype.delete=function(X,H){return _.OZ(this,[X],{mode:"readwrite",enableRetries:!0,commit:IM()&&!(H instanceof IDBKeyRange)},function(l){return l.objectStore(X).delete(H)})};
var EB_=function(X,H){return _.OZ(X,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(l){return l.objectStore("ResponseStore").index("byInterface").delete(H)})};
GT.prototype.get=function(X,H){return _.OZ(this,[X],{mode:"readonly",enableRetries:!0,commit:IM()},function(l){return l.objectStore(X).get(H)})};
GT.prototype.getAll=function(X,H,l){return _.OZ(this,[X],{mode:"readonly",enableRetries:!0},function(b){return b.objectStore(X).getAll(H,l)})};
GT.prototype.put=function(X,H,l){return _.OZ(this,[X],{mode:"readwrite",enableRetries:!0,commit:IM()},function(b){return b.objectStore(X).put(H,l)})};
GT.prototype.objectStoreNames=function(){return Array.from(this.JSC$10984_wrapped.objectStoreNames)};
_.OZ=function(X,H,l,b){var U,K,w,d,B,q,u,e,y,V,p,z;return _.h(function(t){switch(t.nextAddress){case 1:var W={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof l==="string"?W.mode=l:Object.assign(W,l);U=W;X.transactionCount++;K=U.enableRetries?3:1;w=0;case 2:if(d){t.jumpTo(4);break}w++;B=Math.round((0,_.Jl)());_.Ew(t,5);q=X.JSC$10984_wrapped.transaction(H,U.mode);W=t.yield;var G=!!U.commit;var r=new aF(q);G=gBt(r,b,G);return W.call(t,G,7);case 7:return u=t.yieldResult,e=Math.round((0,_.Jl)()),
Guz(X,B,e,w,void 0,H.join(),U),t.return(u);case 5:y=_.Ow(t);V=Math.round((0,_.Jl)());p=DoN(y,X.JSC$10984_wrapped.name,H.join(),X.JSC$10984_wrapped.version);if((z=p instanceof xr&&!p.retryable)||w>=K)Guz(X,B,V,w,p,H.join(),U),d=p;t.jumpTo(2);break;case 4:return t.return(Promise.reject(d))}})};
Guz=function(X,H,l,b,U,K,w){H=l-H;U?(U instanceof xr&&(U.type==="QUOTA_EXCEEDED"||U.type==="QUOTA_MAYBE_EXCEEDED")&&Sv("QUOTA_EXCEEDED",{dbName:nt(X.JSC$10984_wrapped.name),objectStoreNames:K,transactionCount:X.transactionCount,transactionMode:w.mode}),U instanceof xr&&U.type==="UNKNOWN_ABORT"&&(l-=X.startedMs,l<0&&l>=2147483648&&(l=0),Sv("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:K,transactionDuration:H,transactionCount:X.transactionCount,dbDuration:l}),X.hasUnknownAbortedTransaction=!0),
aiC(X,!1,b,K,H,w.tag),_.pt(U)):aiC(X,!0,b,K,H,w.tag)};
aiC=function(X,H,l,b,U,K){Sv("TRANSACTION_ENDED",{objectStoreNames:b,connectionHasUnknownAbortedTransaction:X.hasUnknownAbortedTransaction,duration:U,isSuccessful:H,tryCount:l,tag:K===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":K})};
GT.prototype.getName=function(){return this.JSC$10984_wrapped.name};
var AP=function(X){this.JSC$10999_wrapped=X};
AP.prototype.add=function(X,H){return gL(this.JSC$10999_wrapped.add(X,H))};
AP.prototype.autoIncrement=function(){return this.JSC$10999_wrapped.autoIncrement};
AP.prototype.clear=function(){return gL(this.JSC$10999_wrapped.clear()).then(function(){})};
var gn=function(X,H,l){X.JSC$10999_wrapped.createIndex(H,l,{unique:!1})};
AP.prototype.count=function(X){return gL(this.JSC$10999_wrapped.count(X))};
var ZAH=function(X,H){return Ql(X,{query:H},function(l){return l.delete().then(function(){return l.continue()})}).then(function(){})};
AP.prototype.delete=function(X){return X instanceof IDBKeyRange?ZAH(this,X):gL(this.JSC$10999_wrapped.delete(X))};
AP.prototype.get=function(X){return gL(this.JSC$10999_wrapped.get(X))};
AP.prototype.getAll=function(X,H){return"getAll"in IDBObjectStore.prototype?gL(this.JSC$10999_wrapped.getAll(X,H)):iAG(this,X,H)};
var iAG=function(X,H,l){var b=[];return Ql(X,{query:H},function(U){if(!(l!==void 0&&b.length>=l))return b.push(U.getValue()),U.continue()}).then(function(){return b})};
AP.prototype.index=function(X){try{return new Xn(this.JSC$10999_wrapped.index(X))}catch(H){if(H instanceof Error&&H.name==="NotFoundError")throw new kcO(X,this.JSC$10999_wrapped.name);throw H;}};
AP.prototype.getName=function(){return this.JSC$10999_wrapped.name};
AP.prototype.keyPath=function(){return this.JSC$10999_wrapped.keyPath};
AP.prototype.put=function(X,H){return gL(this.JSC$10999_wrapped.put(X,H))};
var Ql=function(X,H,l){X=X.JSC$10999_wrapped.openCursor(H.query,H.direction);return vBQ(X).then(function(b){return Gck(b,l)})},aF=function(X){var H=this;
this.JSC$11007_wrapped=X;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(l,b){H.JSC$11007_wrapped.addEventListener("complete",function(){l()});
H.JSC$11007_wrapped.addEventListener("error",function(U){U.currentTarget===U.target&&b(H.JSC$11007_wrapped.error)});
H.JSC$11007_wrapped.addEventListener("abort",function(){var U=H.JSC$11007_wrapped.error;if(U)b(U);else if(!H.aborted){U=xr;for(var K=H.JSC$11007_wrapped.objectStoreNames,w=[],d=0;d<K.length;d++){var B=K.item(d);if(B===null)throw Error("Yc");w.push(B)}U=new U("UNKNOWN_ABORT",{objectStoreNames:w.join(),dbName:H.JSC$11007_wrapped.db.name,mode:H.JSC$11007_wrapped.mode});b(U)}})})},gBt=function(X,H,l){var b=new Promise(function(U,K){try{var w=H(X);
l&&X.commit();w.then(function(d){U(d)}).catch(K)}catch(d){K(d),X.abort()}});
return Promise.all([b,X.done]).then(function(U){return _.C(U).next().value})};
aF.prototype.abort=function(){this.JSC$11007_wrapped.abort();this.aborted=!0;throw new xr("EXPLICIT_ABORT");};
aF.prototype.commit=function(){if(!this.aborted){var X,H;(H=(X=this.JSC$11007_wrapped).commit)==null||H.call(X)}};
aF.prototype.objectStore=function(X){X=this.JSC$11007_wrapped.objectStore(X);var H=this.objectStoreCache.get(X);H||(H=new AP(X),this.objectStoreCache.set(X,H));return H};
var Xn=function(X){this.JSC$11009_wrapped=X};
Xn.prototype.count=function(X){return gL(this.JSC$11009_wrapped.count(X))};
Xn.prototype.delete=function(X){return _.Lt(this,{query:X},function(H){return H.delete().then(function(){return H.continue()})})};
Xn.prototype.get=function(X){return gL(this.JSC$11009_wrapped.get(X))};
Xn.prototype.getAll=function(X,H){return"getAll"in IDBIndex.prototype?gL(this.JSC$11009_wrapped.getAll(X,H)):OA9(this,X,H)};
var OA9=function(X,H,l){var b=[];return _.Lt(X,{query:H},function(U){if(!(l!==void 0&&b.length>=l))return b.push(U.getValue()),U.continue()}).then(function(){return b})};
Xn.prototype.keyPath=function(){return this.JSC$11009_wrapped.keyPath};
Xn.prototype.unique=function(){return this.JSC$11009_wrapped.unique};
_.Lt=function(X,H,l){X=X.JSC$11009_wrapped.openCursor(H.query===void 0?null:H.query,H.direction===void 0?"next":H.direction);return vBQ(X).then(function(b){return Gck(b,l)})};
HG=function(X,H){this.request=X;this.cursor=H};
vBQ=function(X){return gL(X).then(function(H){return H?new HG(X,H):null})};
HG.prototype.continue=function(X){this.cursor.continue(X);return vBQ(this.request)};
HG.prototype.delete=function(){return gL(this.cursor.delete()).then(function(){})};
HG.prototype.getValue=function(){return this.cursor.value};
HG.prototype.update=function(X){return gL(this.cursor.update(X))};var lw=function(X,H){this.name=X;this.options=H;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},mJY;
lw.prototype.openDb=function(X,H,l){l=l===void 0?{}:l;return ZTl(X,H,l)};
lw.prototype.delete=function(X){X=X===void 0?{}:X;return _.i0(this.name,X)};
mJY=function(X,H){return new xr("INCOMPATIBLE_DB_VERSION",{dbName:X.name,oldVersion:X.options.version,newVersion:H})};
_.vQ=function(X,H){if(!H)throw tl("openWithToken",nt(X.name));return X.open()};
lw.prototype.open=function(){var X=this;if(!this.isCompatible)throw mJY(this);if(this.connectionPromise)return this.connectionPromise;var H,l=function(){X.connectionPromise===H&&(X.connectionPromise=void 0)},b={blocking:function(K){K.close()},
closed:l,terminated:l,upgrade:this.options.upgrade},U=function(){var K,w,d,B,q,u,e,y,V,p;return _.h(function(z){switch(z.nextAddress){case 1:return w=(K=Error().stack)!=null?K:"",_.Ew(z,2),z.yield(X.openDb(X.name,X.options.version,b),4);case 4:for(var t=d=z.yieldResult,W=X.options,G=[],r=_.C(Object.keys(W.objectStores)),Q=r.next();!Q.done;Q=r.next()){Q=Q.value;var v=W.objectStores[Q],J=v.removedAtVersion===void 0?Number.MAX_VALUE:v.removedAtVersion;!(t.JSC$10984_wrapped.version>=v.addedAtVersion)||
t.JSC$10984_wrapped.version>=J||t.JSC$10984_wrapped.objectStoreNames.contains(Q)||G.push(Q)}B=G;if(B.length===0){z.jumpTo(5);break}q=Object.keys(X.options.objectStores);u=d.objectStoreNames();if(X.timesReopenedToFixMissingObjectStore<_.Yy("ytidb_reopen_db_retries",0))return X.timesReopenedToFixMissingObjectStore++,d.close(),_.pt(new xr("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:X.name,expectedObjectStores:q,foundObjectStores:u})),z.return(U());if(!(X.timesDeletedToFixMissingObjectStore<_.Yy("ytidb_remake_db_retries",
1))){z.jumpTo(6);break}X.timesDeletedToFixMissingObjectStore++;return z.yield(X.delete(),7);case 7:return _.pt(new xr("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:X.name,expectedObjectStores:q,foundObjectStores:u})),z.return(U());case 6:throw new xJY(u,q);case 5:return z.return(d);case 2:e=_.Ow(z);if(e instanceof DOMException?e.name!=="VersionError":"DOMError"in self&&e instanceof DOMError?e.name!=="VersionError":!(e instanceof Object&&"message"in e)||e.message!=="An attempt was made to open a database using a lower version than the existing version."){z.jumpTo(8);
break}return z.yield(X.openDb(X.name,void 0,Object.assign({},b,{upgrade:void 0})),9);case 9:y=z.yieldResult;V=y.JSC$10984_wrapped.version;if(X.options.version!==void 0&&V>X.options.version+1)throw y.close(),X.isCompatible=!1,mJY(X,V);return z.return(y);case 8:throw l(),e instanceof Error&&!_.P("ytidb_async_stack_killswitch")&&(e.stack=e.stack+"\n"+w.substring(w.indexOf("\n")+1)),DoN(e,X.name,"",(p=X.options.version)!=null?p:-1);}})};
return this.connectionPromise=H=U()};var iTb=new lw("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(X,H){H(1)&&E4(X,"databases",{keyPath:"actualName"})}});var c0K,TRy=new function(){}(new function(){});new _.cF;var QOF=function(X,H){lw.call(this,X,H);this.options=H;zT(X)};
_.S(QOF,lw);var lc8=function(X,H){var l;return function(){l||(l=new QOF(X,H));return l}};
QOF.prototype.openDb=function(X,H,l){l=l===void 0?{}:l;return(this.options.shared?Y9m:L1K)(X,H,Object.assign({},l))};
QOF.prototype.delete=function(X){X=X===void 0?{}:X;return(this.options.shared?Hel:I8Z)(this.name,X)};var TcQ={},ohK=rL("ytGcfConfig",{objectStores:(TcQ.coldConfigStore={addedAtVersion:1},TcQ.hotConfigStore={addedAtVersion:1},TcQ),shared:!1,upgrade:function(X,H){H(1)&&(gn(E4(X,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),gn(E4(X,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var NcC=function(){_.$e.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var X=_.ij("yt.gcf.config.hotUpdateCallbacks");X?(this.localHotConfigJobQueue=[].concat(_.LJ(X)),this.sharedHotConfigJobQueue=X):(this.sharedHotConfigJobQueue=[],_.cQ("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.S(NcC,_.$e);NcC.prototype.disposeInternal=function(){for(var X=_.C(this.localHotConfigJobQueue),H=X.next();!H.done;H=X.next()){var l=this.sharedHotConfigJobQueue;H=l.indexOf(H.value);H>=0&&l.splice(H,1)}this.localHotConfigJobQueue.length=0;_.$e.prototype.disposeInternal.call(this)};var yJ=function(){var X=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new NcC;this.TEST_ONLY={initializeConfigDb:function(){X.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return X.coldGlobalConfigGroup},
setHotConfigGroup:function(H){cYv(X,H)},
setHotHashData:function(H){X.setHotHashData(H)},
setColdConfigGroup:function(H){jOQ(X,H)},
getColdHashData:function(){return X.coldHashData},
getHotHashData:function(){return X.hotHashData},
getHotConfigGroup:function(){return X.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return rYt()},
getExportedHotConfigGroup:function(){return oR()},
getExportedColdHashData:function(){return _.ij("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.ij("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){JYY(X)},
resetInstance:function(){X.setHotHashData(void 0);LS6(X);delete yJ.instance},
setDebounceTimer:function(H){X.debounceTimer=H},
getDebounceTimer:function(){return X.debounceTimer}}},YfQ=function(){if(!yJ.instance){var X=new yJ;
yJ.instance=X}return yJ.instance},XF_=function(X){var H;
_.h(function(l){if(l.nextAddress==1)return _.P("start_client_gcf")||_.P("delete_gcf_config_db")?_.P("start_client_gcf")?l.yield(_.jv(),3):l.jumpTo(2):l.return();l.nextAddress!=2&&((H=l.yieldResult)&&_.BQ()&&!_.P("delete_gcf_config_db")?(X.isConfigDbInitialized=!0,JYY(X)):(IiY(X),AYF(X)));return _.P("delete_gcf_config_db")?l.yield(C$y(),0):l.jumpTo(0)})},VJ=function(){var X;
return(X=oR())!=null?X:_.gx("RAW_HOT_CONFIG_GROUP")},HTz=function(X){var H,l,b,U,K,w;
return _.h(function(d){switch(d.nextAddress){case 1:if(X.hotGlobalConfigGroup)return d.return(oR());if(!X.isConfigDbInitialized)return H=tl("getHotConfig IDB not initialized"),_.v$(H),d.return(Promise.reject(H));l=Nd();b=_.gx("TIME_CREATED_MS");if(!l){U=tl("getHotConfig token error");_.v$(U);d.jumpTo(2);break}return d.yield(RKy(l),3);case 3:if((K=d.yieldResult)&&K.timestamp>b)return cYv(X,K.config),X.setHotHashData(K.hashData),d.return(oR());case 2:AYF(X);if(!(l&&X.hotGlobalConfigGroup&&X.hotHashData)){d.jumpTo(4);
break}return d.yield(UwK(X.hotGlobalConfigGroup,X.hotHashData,l,b),4);case 4:return X.hotGlobalConfigGroup?d.return(oR()):(w=new _.qd("Config not available in ytConfig"),_.v$(w),d.return(Promise.reject(w)))}})},oMH=function(X){var H,l,b,U,K,w;
return _.h(function(d){switch(d.nextAddress){case 1:if(X.coldGlobalConfigGroup)return d.return(rYt());if(!X.isConfigDbInitialized)return H=tl("getColdConfig IDB not initialized"),_.v$(H),d.return(Promise.reject(H));l=Nd();b=_.gx("TIME_CREATED_MS");if(!l){U=tl("getColdConfig");_.v$(U);d.jumpTo(2);break}return d.yield(KhN(l),3);case 3:if((K=d.yieldResult)&&K.timestamp>b)return jOQ(X,K.config),l8_(X,K.configData),LS6(X,K.hashData),d.return(rYt());case 2:IiY(X);if(!(l&&X.coldGlobalConfigGroup&&X.coldHashData&&
X.configData)){d.jumpTo(4);break}return d.yield($wZ(X.coldGlobalConfigGroup,X.coldHashData,X.configData,l,b),4);case 4:return X.coldGlobalConfigGroup?d.return(rYt()):(w=new _.qd("Config not available in ytConfig"),_.v$(w),d.return(Promise.reject(w)))}})},JYY=function(X){if(!X.hotGlobalConfigGroup||!X.coldGlobalConfigGroup){if(!Nd()){var H=tl("scheduleGetConfigs");
_.v$(H)}X.initJob||(X.initJob=_.Ss.addLowPriorityJob(function(){return _.h(function(l){switch(l.nextAddress){case 1:return _.Ew(l,2),l.yield(HTz(X),4);case 4:_.Zt(l,3);break;case 2:_.Ow(l);case 3:return _.Ew(l,5),l.yield(oMH(X),7);case 7:_.Zt(l,6);break;case 5:_.Ow(l);case 6:X.initJob&&(X.initJob=0),_.m5(l)}})},100))}},bSm=function(X,H,l){var b,U,K;
return _.h(function(w){switch(w.nextAddress){case 1:if(!_.P("start_client_gcf")){w.jumpTo(0);break}l&&cYv(X,l);X.setHotHashData(H);b=Nd();if(!b){w.jumpTo(3);break}if(l){w.jumpTo(4);break}return w.yield(RKy(b),5);case 5:U=w.yieldResult,l=(K=U)==null?void 0:K.config;case 4:return w.yield(UwK(l,H,b),3);case 3:if(l)for(var d=l,B=_.C(X.configUpdateService.sharedHotConfigJobQueue),q=B.next();!q.done;q=B.next())q=q.value,q(d);_.m5(w)}})},UhZ=function(X,H,l){var b,U,K,w;
return _.h(function(d){if(d.nextAddress==1){if(!_.P("start_client_gcf"))return d.jumpTo(0);LS6(X,H);return(b=Nd())?l?d.jumpTo(4):d.yield(KhN(b),5):d.jumpTo(0)}d.nextAddress!=4&&(U=d.yieldResult,l=(K=U)==null?void 0:K.config);if(!l)return d.jumpTo(0);w=l.configData;return d.yield($wZ(l,H,w,b),0)})},nhl=function(){var X=YfQ(),H=(0,_.Jl)()-X.debounceTimer;
if(!(X.debounceTimer!==0&&H<_.Yy("send_config_hash_timer"))){H=_.ij("yt.gcf.config.coldConfigData");var l=_.ij("yt.gcf.config.hotHashData"),b=_.ij("yt.gcf.config.coldHashData");H&&l&&b&&(X.debounceTimer=(0,_.Jl)());return{coldConfigData:H,hotHashData:l,coldHashData:b}}},IiY=function(X){jOQ(X,_.gx("RAW_COLD_CONFIG_GROUP"));
LS6(X,_.gx("SERIALIZED_COLD_HASH_DATA"));var H;l8_(X,(H=X.coldGlobalConfigGroup)==null?void 0:H.configData)},AYF=function(X){cYv(X,_.gx("RAW_HOT_CONFIG_GROUP"));
X.setHotHashData(_.gx("SERIALIZED_HOT_HASH_DATA"))},cYv=function(X,H){X.hotGlobalConfigGroup=H;
_.cQ("yt.gcf.config.hotConfigGroup",X.hotGlobalConfigGroup||null)},jOQ=function(X,H){X.coldGlobalConfigGroup=H;
_.cQ("yt.gcf.config.coldConfigGroup",X.coldGlobalConfigGroup||null)};
yJ.prototype.setHotHashData=function(X){this.hotHashData=X;_.cQ("yt.gcf.config.hotHashData",this.hotHashData||null)};
var LS6=function(X,H){X.coldHashData=H;_.cQ("yt.gcf.config.coldHashData",X.coldHashData||null)},l8_=function(X,H){X.configData=H;
_.cQ("yt.gcf.config.coldConfigData",X.configData||null)},oR=function(){return _.ij("yt.gcf.config.hotConfigGroup")},rYt=function(){return _.ij("yt.gcf.config.coldConfigGroup")};var KU={},bTG=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";KU.assign=function(X){for(var H=Array.prototype.slice.call(arguments,1);H.length;){var l=H.shift();if(l){if(typeof l!=="object")throw new TypeError("ad`"+l);for(var b in l)Object.prototype.hasOwnProperty.call(l,b)&&(X[b]=l[b])}}return X};
KU.shrinkBuf=function(X,H){if(X.length===H)return X;if(X.subarray)return X.subarray(0,H);X.length=H;return X};
var Uov={arraySet:function(X,H,l,b,U){if(H.subarray&&X.subarray)X.set(H.subarray(l,l+b),U);else for(var K=0;K<b;K++)X[U+K]=H[l+K]},
flattenChunks:function(X){var H,l;var b=l=0;for(H=X.length;b<H;b++)l+=X[b].length;var U=new Uint8Array(l);b=l=0;for(H=X.length;b<H;b++){var K=X[b];U.set(K,l);l+=K.length}return U}},$o_={arraySet:function(X,H,l,b,U){for(var K=0;K<b;K++)X[U+K]=H[l+K]},
flattenChunks:function(X){return[].concat.apply([],X)}};
KU.setTyped=function(){bTG?(KU.Buf8=Uint8Array,KU.Buf16=Uint16Array,KU.Buf32=Int32Array,KU.assign(KU,Uov)):(KU.Buf8=Array,KU.Buf16=Array,KU.Buf32=Array,KU.assign(KU,$o_))};
KU.setTyped();var K1q=!0;try{new Uint8Array(1)}catch(X){K1q=!1}
var R_z=function(X){var H,l,b=X.length,U=0;for(H=0;H<b;H++){var K=X.charCodeAt(H);if((K&64512)===55296&&H+1<b){var w=X.charCodeAt(H+1);(w&64512)===56320&&(K=65536+(K-55296<<10)+(w-56320),H++)}U+=K<128?1:K<2048?2:K<65536?3:4}var d=new KU.Buf8(U);for(H=l=0;l<U;H++)K=X.charCodeAt(H),(K&64512)===55296&&H+1<b&&(w=X.charCodeAt(H+1),(w&64512)===56320&&(K=65536+(K-55296<<10)+(w-56320),H++)),K<128?d[l++]=K:(K<2048?d[l++]=192|K>>>6:(K<65536?d[l++]=224|K>>>12:(d[l++]=240|K>>>18,d[l++]=128|K>>>12&63),d[l++]=
128|K>>>6&63),d[l++]=128|K&63);return d};var J2y={};J2y=function(X,H,l,b){var U=X&65535|0;X=X>>>16&65535|0;for(var K;l!==0;){K=l>2E3?2E3:l;l-=K;do U=U+H[b++]|0,X=X+U|0;while(--K);U%=65521;X%=65521}return U|X<<16|0};for(var yi={},bw,RPQ=[],C5t=0;C5t<256;C5t++){bw=C5t;for(var wFz=0;wFz<8;wFz++)bw=bw&1?3988292384^bw>>>1:bw>>>1;RPQ[C5t]=bw}yi=function(X,H,l,b){l=b+l;for(X^=-1;b<l;b++)X=X>>>8^RPQ[(X^H[b])&255];return X^-1};var dn={};dn={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 Zey=[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],vhK=[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],KrK=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],j6b=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],qK=Array(576);ow(qK);var s4=Array(60);ow(s4);var CU=Array(512);ow(CU);var Rw=Array(256);ow(Rw);var ieW=Array(29);ow(ieW);var OeW=Array(30);ow(OeW);var bcm,URh,$Ry,oDK=!1;var pU;
pU=[new fU(0,0,0,0,function(X,H){var l=65535;for(l>X.pending_buf_size-5&&(l=X.pending_buf_size-5);;){if(X.lookahead<=1){Vi(X);if(X.lookahead===0&&H===0)return 1;if(X.lookahead===0)break}X.strstart+=X.lookahead;X.lookahead=0;var b=X.block_start+l;if(X.strstart===0||X.strstart>=b)if(X.lookahead=X.strstart-b,X.strstart=b,MK(X,!1),X.strm.avail_out===0)return 1;if(X.strstart-X.block_start>=X.w_size-262&&(MK(X,!1),X.strm.avail_out===0))return 1}X.insert=0;if(H===4)return MK(X,!0),X.strm.avail_out===0?3:
4;X.strstart>X.block_start&&MK(X,!1);return 1}),
new fU(4,4,8,4,Lhy),new fU(4,5,16,8,Lhy),new fU(4,6,32,32,Lhy),new fU(4,4,16,16,PB),new fU(8,16,32,32,PB),new fU(8,16,128,128,PB),new fU(8,32,128,256,PB),new fU(32,128,258,1024,PB),new fU(32,258,258,4096,PB)];var lVy={};lVy=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 C9b=Object.prototype.toString;
Hcy.prototype.push=function(X,H){var l=this.strm,b=this.options.chunkSize;if(this.ended)return!1;var U=H===~~H?H:H===!0?4:0;typeof X==="string"?l.input=R_z(X):C9b.call(X)==="[object ArrayBuffer]"?l.input=new Uint8Array(X):l.input=X;l.next_in=0;l.avail_in=l.input.length;do{l.avail_out===0&&(l.output=new KU.Buf8(b),l.next_out=0,l.avail_out=b);X=Xcz(l,U);if(X!==1&&X!==0)return doY(this,X),this.ended=!0,!1;if(l.avail_out===0||l.avail_in===0&&(U===4||U===2))if(this.options.to==="string"){var K=KU.shrinkBuf(l.output,
l.next_out);H=K;K=K.length;if(K<65537&&(H.subarray&&K1q||!H.subarray))H=String.fromCharCode.apply(null,KU.shrinkBuf(H,K));else{for(var w="",d=0;d<K;d++)w+=String.fromCharCode(H[d]);H=w}this.chunks.push(H)}else H=KU.shrinkBuf(l.output,l.next_out),this.chunks.push(H)}while((l.avail_in>0||l.avail_out===0)&&X!==1);if(U===4)return(l=this.strm)&&l.state?(b=l.state.status,b!==42&&b!==69&&b!==73&&b!==91&&b!==103&&b!==113&&b!==666?X=hV(l,-2):(l.state=null,X=b===113?hV(l,-3):0)):X=-2,doY(this,X),this.ended=
!0,X===0;U===2&&(doY(this,0),l.avail_out=0);return!0};
var doY=function(X,H){H===0&&(X.result=X.options.to==="string"?X.chunks.join(""):KU.flattenChunks(X.chunks));X.chunks=[];X.err=H;X.msg=X.strm.msg};var hP9=typeof TextEncoder!=="undefined"?new TextEncoder:null,Zc8=hP9?function(X){return hP9.encode(X)}:function(X){X=_.$N(X);
for(var H=new Uint8Array(X.length),l=0;l<H.length;l++)H[l]=X[l];return H};var HDO={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},ovy={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var U1=function(X,H){this.version=X;this.args=H};
U1.prototype.serialize=function(){return{version:this.version,args:this.args}};var BTy=function(X,H){this.topic=X;this.dataClass=H};
BTy.prototype.toString=function(){return this.topic};var F1G=_.ij("ytPubsub2Pubsub2Instance")||new _.RF;_.RF.prototype.subscribe=_.RF.prototype.subscribe;_.RF.prototype.unsubscribeByKey=_.RF.prototype.unsubscribeByKey;_.RF.prototype.publish=_.RF.prototype.publish;_.RF.prototype.clear=_.RF.prototype.clear;_.cQ("ytPubsub2Pubsub2Instance",F1G);var Frz=_.ij("ytPubsub2Pubsub2SubscribedKeys")||{};_.cQ("ytPubsub2Pubsub2SubscribedKeys",Frz);var si8=_.ij("ytPubsub2Pubsub2TopicToKeys")||{};_.cQ("ytPubsub2Pubsub2TopicToKeys",si8);
var qqh=_.ij("ytPubsub2Pubsub2IsAsync")||{};_.cQ("ytPubsub2Pubsub2IsAsync",qqh);_.cQ("ytPubsub2Pubsub2SkipSubKey",null);var z_y=void 0,pc8=void 0;var gDb=_.Yy("max_body_size_to_compress",5E5),Gxy=_.Yy("min_body_size_to_compress",500),nU=!0,OcK=0,kV=0,vDL=_.Yy("compression_performance_threshold_lr",250),QiN=_.Yy("slow_compressions_before_abandon_count",4),xRm=!1,DRh=new Map,aVz=1;_.To(xV,NTy);xV.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 BRv=function(X,H,l){l||(l=0);var b=X.W_;if(typeof H==="string")for(var U=0;U<16;U++)b[U]=H.charCodeAt(l)<<24|H.charCodeAt(l+1)<<16|H.charCodeAt(l+2)<<8|H.charCodeAt(l+3),l+=4;else for(U=0;U<16;U++)b[U]=H[l]<<24|H[l+1]<<16|H[l+2]<<8|H[l+3],l+=4;for(H=16;H<80;H++)l=b[H-3]^b[H-8]^b[H-14]^b[H-16],b[H]=(l<<1|l>>>31)&4294967295;H=X.chain_[0];l=X.chain_[1];U=X.chain_[2];for(var K=X.chain_[3],w=X.chain_[4],d,B,q=0;q<80;q++)q<40?q<20?(d=K^l&(U^K),B=1518500249):(d=l^U^K,B=1859775393):q<60?(d=l&U|K&(l|U),
B=2400959708):(d=l^U^K,B=3395469782),d=(H<<5|H>>>27)+d+w+B+b[q]&4294967295,w=K,K=U,U=(l<<30|l>>>2)&4294967295,l=H,H=d;X.chain_[0]=X.chain_[0]+H&4294967295;X.chain_[1]=X.chain_[1]+l&4294967295;X.chain_[2]=X.chain_[2]+U&4294967295;X.chain_[3]=X.chain_[3]+K&4294967295;X.chain_[4]=X.chain_[4]+w&4294967295};
xV.prototype.update=function(X,H){if(X!=null){H===void 0&&(H=X.length);for(var l=H-this.blockSize,b=0,U=this.buf_,K=this.inbuf_;b<H;){if(K==0)for(;b<=l;)BRv(this,X,b),b+=this.blockSize;if(typeof X==="string")for(;b<H;){if(U[K]=X.charCodeAt(b),++K,++b,K==this.blockSize){BRv(this,U);K=0;break}}else for(;b<H;)if(U[K]=X[b],++K,++b,K==this.blockSize){BRv(this,U);K=0;break}}this.inbuf_=K;this.total_+=H}};
xV.prototype.digest=function(){var X=[],H=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var l=this.blockSize-1;l>=56;l--)this.buf_[l]=H&255,H/=256;BRv(this,this.buf_);for(l=H=0;l<5;l++)for(var b=24;b>=0;b-=8)X[H]=this.chain_[l]>>b&255,++H;return X};var rFy;var KF=function(X){var H=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(u){H.databaseToken=u},
triggerThrottle:function(){H.throttledSend()},
cancelThrottle:function(){H.cancelThrottledSend()},
immediateSend:function(u){return _.h(function(e){return e.yield(H.immediateSend(u),0)})},
requestWithinAgeLimit:function(u,e){return H.requestWithinAgeLimit(u,e)},
retryQueuedRequests:function(){H.retryQueuedRequests()}};
var l;this.throttleTimeout=(l=X.throttleTimeout)!=null?l:100;var b;this.retryMaxAttempts=(b=X.retryMaxAttempts)!=null?b:1;var U;this.requestAgeLimitMs=(U=X.requestAgeLimitMs)!=null?U:2592E6;var K;this.queuedRequestAgeLimitMs=(K=X.queuedRequestAgeLimitMs)!=null?K:12E4;var w;this.retryDelayMs=(w=X.retryDelayMs)!=null?w:5E3;var d;this.databaseToken=(d=X.databaseToken)!=null?d:void 0;this.enableCleaning=!!X.enableCleaning;var B;this.cleaningRate=(B=X.cleaningRate)!=null?B:.1;var q;this.potentialEsfErrorLimit=
(q=X.potentialEsfErrorLimit)!=null?q:10;X.handleError&&(this.handleError=X.handleError);X.handleWarning&&(this.handleWarning=X.handleWarning);X.disableYtIdbTransactions&&(this.disableYtIdbTransactions=X.disableYtIdbTransactions);X.bypassDbTokenDependency&&(this.bypassDbTokenDependency=X.bypassDbTokenDependency);this.getBooleanFlag=X.getBooleanFlag;this.jobManager=X.jobManager;this.logsStore=X.logsStore;this.networkManager=X.networkManager;this.sendFn=X.sendFn;this.onlineEvent=X.onlineEvent;this.offlineEvent=
X.offlineEvent;$7(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&q96(this)},q96=function(X){$7(X)&&!X.disableYtIdbTransactions&&(X.initialized=!0,X.enableCleaning&&Math.random()<=X.cleaningRate&&X.logsStore.cleanLogsStore(X.databaseToken),X.retryQueuedRequests(),X.networkManager.isNetworkAvailable()&&X.throttledSend(),X.networkManager.listen(X.onlineEvent,X.throttledSend.bind(X)),X.networkManager.listen(X.offlineEvent,X.cancelThrottledSend.bind(X)))};
_.R=KF.prototype;_.R.writeThenSend=function(X,H){var l=this;H=H===void 0?{}:H;if($7(this)&&this.initialized){var b={url:X,options:H,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(b,this.databaseToken).then(function(U){b.id=U;l.networkManager.isNetworkAvailable()&&l.immediateSend(b)}).catch(function(U){l.immediateSend(b);
sHH(l,U)})}else this.sendFn(X,H)};
_.R.sendThenWrite=function(X,H,l){var b=this;H=H===void 0?{}:H;if($7(this)&&this.initialized){var U={url:X,options:H,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(U.skipRetry=l);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!U.skipRetry){if(!U.skipRetry){var K=H.onError?H.onError:function(){};
H.onError=function(w,d){return _.h(function(B){if(B.nextAddress==1)return B.yield(b.logsStore.set(U,b.databaseToken).catch(function(q){sHH(b,q)}),2);
K(w,d);_.m5(B)})}}this.sendFn(X,H,U.skipRetry)}else this.logsStore.set(U,this.databaseToken).catch(function(w){b.sendFn(X,H,U.skipRetry);
sHH(b,w)})}else this.sendFn(X,H,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&l)};
_.R.sendAndWrite=function(X,H){var l=this;H=H===void 0?{}:H;if($7(this)&&this.initialized){var b={url:X,options:H,timestamp:this.now(),status:"NEW",sendCount:0},U=!1,K=H.onSuccess?H.onSuccess:function(){};
b.options.onSuccess=function(w,d){b.id!==void 0?l.logsStore.deleteRequest(b.id,l.databaseToken):U=!0;l.networkManager.networkStatusHint&&l.getBooleanFlag&&l.getBooleanFlag("vss_network_hint")&&l.networkManager.networkStatusHint(!0);K(w,d)};
this.sendFn(b.url,b.options,void 0,!0);this.logsStore.set(b,this.databaseToken).then(function(w){b.id=w;U&&l.logsStore.deleteRequest(b.id,l.databaseToken)}).catch(function(w){sHH(l,w)})}else this.sendFn(X,H,void 0,!0)};
_.R.throttledSend=function(){var X=this;if(!$7(this))throw Error("dd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var H;return _.h(function(l){if(l.nextAddress==1)return l.yield(X.logsStore.getMostRecentByStatus("NEW",X.databaseToken),2);if(l.nextAddress!=3)return H=l.yieldResult,H?l.yield(X.immediateSend(H),3):(X.cancelThrottledSend(),l.return());X.intervalJob&&(X.intervalJob=0,X.throttledSend());_.m5(l)})},this.throttleTimeout))};
_.R.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.R.immediateSend=function(X){var H=this,l;return _.h(function(b){switch(b.nextAddress){case 1:if(!$7(H))throw Error("ed");if(X.id===void 0){b.jumpTo(2);break}return b.yield(H.logsStore.markAsQueued(X.id,H.databaseToken),3);case 3:(l=b.yieldResult)||H.handleWarning(Error("fd"));case 2:if(H.requestWithinAgeLimit(X,H.requestAgeLimitMs)){b.jumpTo(4);break}H.handleWarning(Error("gd"));if(X.id===void 0){b.jumpTo(5);break}return b.yield(H.logsStore.deleteRequest(X.id,H.databaseToken),5);case 5:return b.return();
case 4:X.skipRetry||(X=M06(H,X));if(!X){b.jumpTo(0);break}if(!X.skipRetry||X.id===void 0){b.jumpTo(8);break}return b.yield(H.logsStore.deleteRequest(X.id,H.databaseToken),8);case 8:H.sendFn(X.url,X.options,!!X.skipRetry),_.m5(b)}})};
var M06=function(X,H){if(!$7(X))throw Error("hd");var l=H.options.onError?H.options.onError:function(){};
H.options.onError=function(U,K){var w,d,B,q;return _.h(function(u){switch(u.nextAddress){case 1:w=AFh(K);(d=X5O(K))&&X.getBooleanFlag&&X.getBooleanFlag("web_enable_error_204")&&X.handleError(Error("id"),H.url,K);if(!(X.getBooleanFlag&&X.getBooleanFlag("nwl_consider_error_code")&&w||X.getBooleanFlag&&!X.getBooleanFlag("nwl_consider_error_code")&&X.potentialEsfErrorCounter<=X.potentialEsfErrorLimit)){u.jumpTo(2);break}if(!X.networkManager.sendNetworkCheckRequest){u.jumpTo(3);break}return u.yield(X.networkManager.sendNetworkCheckRequest(),
3);case 3:if(X.networkManager.isNetworkAvailable()){u.jumpTo(2);break}l(U,K);if(!X.getBooleanFlag||!X.getBooleanFlag("nwl_consider_error_code")||((B=H)==null?void 0:B.id)===void 0){u.jumpTo(6);break}return u.yield(X.logsStore.resetRequest(H.id,X.databaseToken,!1),6);case 6:return u.return();case 2:if(X.getBooleanFlag&&X.getBooleanFlag("nwl_consider_error_code")&&!w&&X.potentialEsfErrorCounter>X.potentialEsfErrorLimit)return u.return();X.potentialEsfErrorCounter++;if(((q=H)==null?void 0:q.id)===void 0){u.jumpTo(8);
break}return H.sendCount<X.retryMaxAttempts?u.yield(X.logsStore.resetRequest(H.id,X.databaseToken,!0,d?!1:void 0),12):u.yield(X.logsStore.deleteRequest(H.id,X.databaseToken),8);case 12:X.jobManager.addLowPriorityJob(function(){X.networkManager.isNetworkAvailable()&&X.throttledSend()},X.retryDelayMs);
case 8:l(U,K),_.m5(u)}})};
var b=H.options.onSuccess?H.options.onSuccess:function(){};
H.options.onSuccess=function(U,K){var w;return _.h(function(d){if(d.nextAddress==1)return((w=H)==null?void 0:w.id)===void 0?d.jumpTo(2):d.yield(X.logsStore.deleteRequest(H.id,X.databaseToken),2);X.networkManager.networkStatusHint&&X.getBooleanFlag&&X.getBooleanFlag("vss_network_hint")&&X.networkManager.networkStatusHint(!0);b(U,K);_.m5(d)})};
return H};
KF.prototype.requestWithinAgeLimit=function(X,H){X=X.timestamp;return this.now()-X>=H?!1:!0};
KF.prototype.retryQueuedRequests=function(){var X=this;if(!$7(this))throw Error("jd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(H){H&&!X.requestWithinAgeLimit(H,X.queuedRequestAgeLimitMs)?X.jobManager.addLowPriorityJob(function(){return _.h(function(l){if(l.nextAddress==1)return H.id===void 0?l.jumpTo(2):l.yield(X.logsStore.resetRequest(H.id,X.databaseToken),2);X.retryQueuedRequests();_.m5(l)})}):X.networkManager.isNetworkAvailable()&&X.throttledSend()})};
var sHH=function(X,H){X.writeError&&!X.networkManager.isNetworkAvailable()?X.writeError(H):X.handleError(H)},$7=function(X){return!!X.databaseToken||X.bypassDbTokenDependency};var HqO;var C4y={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 ue_={},dqy=rL("ServiceWorkerLogsDatabase",{objectStores:(ue_.SWHealthLog={addedAtVersion:1},ue_),shared:!0,upgrade:function(X,H){H(1)&&gn(E4(X,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var eoL={},uR8=0;var fpy;var RR=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},vB=function(){if(!RR.instance){var X=_.ij("yt.networkRequestMonitor.instance")||new RR;
_.cQ("yt.networkRequestMonitor.instance",X);RR.instance=X}return RR.instance};
RR.prototype.requestComplete=function(X,H){H&&(this.anyRequestHasSucceeded=!0);X=this.removeParams(X);this.requestMap.get(X)||this.requestMap.set(X,H)};
RR.prototype.isEndpointCFR=function(X){X=this.removeParams(X);return(X=this.requestMap.get(X))?!1:X===!1&&this.anyRequestHasSucceeded?!0:null};
RR.prototype.removeParams=function(X){return X.split("?")[0]};
RR.prototype.removeParams=RR.prototype.removeParams;RR.prototype.isEndpointCFR=RR.prototype.isEndpointCFR;RR.prototype.requestComplete=RR.prototype.requestComplete;RR.getInstance=vB;var CF=function(X){_.zB.call(this);var H=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=X!=null?X:{addLowPriorityJob:function(U,K){return setTimeout(U,K)},
cancelJob:function(U){clearTimeout(U)}};
var l,b;this.isOnline=(b=(l=window.navigator)==null?void 0:l.onLine)!=null?b:!0;this.onNavigatorChange=function(){return _.h(function(U){return U.yield(ePv(H),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||y0H(this)};
_.S(CF,_.zB);CF.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete CF.instance};
CF.prototype.isNetworkAvailable=function(){return this.isOnline};
var y0H=function(X){X.pollingJob=X.jobManager.addLowPriorityJob(function(){var H;return _.h(function(l){if(l.nextAddress==1)return X.isOnline?((H=window.navigator)==null?0:H.onLine)?l.jumpTo(3):l.yield(ePv(X),3):l.yield(ePv(X),3);y0H(X);_.m5(l)})},3E4)},ePv=function(X,H){return X.networkRequestPromise?X.networkRequestPromise:X.networkRequestPromise=new Promise(function(l){var b,U,K,w;
return _.h(function(d){switch(d.nextAddress){case 1:return b=window.AbortController?new window.AbortController:void 0,K=(U=b)==null?void 0:U.signal,w=!1,_.Ew(d,2,3),b&&(X.abortTimeoutKey=X.jobManager.addLowPriorityJob(function(){b.abort()},H||2E4)),d.yield(fetch("/generate_204",{method:"HEAD",
signal:K}),5);case 5:w=!0;case 3:_.GS(d);X.networkRequestPromise=void 0;X.abortTimeoutKey&&(X.jobManager.cancelJob(X.abortTimeoutKey),X.abortTimeoutKey=0);w!==X.isOnline&&(X.isOnline=w,X.isOnline?X.dispatchEvent("networkstatus-online"):X.dispatchEvent("networkstatus-offline"));l(w);_.vJ(d,0);break;case 2:_.Ow(d),w=!1,d.jumpTo(3)}})})};var wb=function(){_.zB.call(this);var X=this;this.shouldFlushErrors=!1;CF.instance||(CF.instance=new CF(_.Ss));this.sharedNetworkStatusManager=CF.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(X.shouldFlushErrors&&_.P("offline_error_handling")){var H=p5y().get("errors",!0);if(H){for(var l in H)if(H[l]){var b=new _.qd(l,"sent via offline_errors");b.name=H[l].name;b.stack=H[l].stack;b.level=H[l].level;_.a0(b)}p5y().set("errors",{},2592E3,!0)}}})};
_.S(wb,_.zB);var V0q=function(){if(!wb.instance){var X=_.ij("yt.networkStatusManager.instance")||new wb;_.cQ("yt.networkStatusManager.instance",X);wb.instance=X}return wb.instance};
_.R=wb.prototype;_.R.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.R.networkStatusHint=function(X){this.sharedNetworkStatusManager.isOnline=X};
_.R.getWindowStatus=function(){var X=window.navigator.onLine;return X===void 0?!0:X};
_.R.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.R.listen=function(X,H){return this.sharedNetworkStatusManager.listen(X,H)};
_.R.sendNetworkCheckRequest=function(X){X=ePv(this.sharedNetworkStatusManager,X);X.then(function(H){_.P("use_cfr_monitor")&&vB().requestComplete("generate_204",H)});
return X};
wb.prototype.sendNetworkCheckRequest=wb.prototype.sendNetworkCheckRequest;wb.prototype.listen=wb.prototype.listen;wb.prototype.enableErrorFlushing=wb.prototype.enableErrorFlushing;wb.prototype.getWindowStatus=wb.prototype.getWindowStatus;wb.prototype.networkStatusHint=wb.prototype.networkStatusHint;wb.prototype.isNetworkAvailable=wb.prototype.isNetworkAvailable;wb.getInstance=V0q;_.iM=function(X){X=X===void 0?{}:X;_.zB.call(this);var H=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=V0q();var l=_.ij("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);l&&(X.rateLimit?(this.rateLimit=X.rateLimit,l("networkstatus-online",function(){P5F(H,"publicytnetworkstatus-online")}),l("networkstatus-offline",function(){P5F(H,"publicytnetworkstatus-offline")})):(l("networkstatus-online",function(){H.dispatchEvent("publicytnetworkstatus-online")}),l("networkstatus-offline",
function(){H.dispatchEvent("publicytnetworkstatus-offline")})))};
_.S(_.iM,_.zB);_.iM.prototype.isNetworkAvailable=function(){var X=_.ij("yt.networkStatusManager.instance.isNetworkAvailable");return X?X.bind(this.nsmInstance)():!0};
_.iM.prototype.networkStatusHint=function(X){var H=_.ij("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);H&&H(X)};
_.iM.prototype.sendNetworkCheckRequest=function(X){var H=this,l;return _.h(function(b){l=_.ij("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(H.nsmInstance);return _.P("skip_network_check_if_cfr")&&vB().isEndpointCFR("generate_204")?b.return(new Promise(function(U){var K;H.networkStatusHint(((K=window.navigator)==null?void 0:K.onLine)||!0);U(H.isNetworkAvailable())})):l?b.return(l(X)):b.return(!0)})};
var P5F=function(X,H){X.rateLimit?X.lastJobTime?(_.Ss.cancelJob(X.schedulerJob),X.schedulerJob=_.Ss.addLowPriorityJob(function(){X.lastPublicSignalSent!==H&&(X.dispatchEvent(H),X.lastPublicSignalSent=H,X.lastJobTime=(0,_.Jl)())},X.rateLimit-((0,_.Jl)()-X.lastJobTime))):(X.dispatchEvent(H),X.lastPublicSignalSent=H,X.lastJobTime=(0,_.Jl)()):X.dispatchEvent(H)};var xqy,db=function(){KF.call(this,{logsStore:{cleanLogsStore:Cvb,deleteRequest:Rom,getMostRecentByStatus:Uqy,markAsQueued:$ql,resetRequest:KaN,set:bql},networkManager:_.Dqk(),handleError:function(X,H,l){var b,U=l==null?void 0:(b=l.error)==null?void 0:b.code;if(U===400||U===415){var K;X=new _.qd(X.message,H,l==null?void 0:(K=l.error)==null?void 0:K.code);_.v$(X,void 0,void 0,void 0,!0)}else _.a0(X)},
handleWarning:_.v$,sendFn:nlL,now:_.Jl,writeError:Slz,jobManager:_.qV(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Yy("potential_esf_error_limit",10),getBooleanFlag:_.P,disableYtIdbTransactions:!(_.BQ()&&_.twz())});this.initializationPromise=new _.cF;_.P("networkless_immediately_drop_all_requests")&&w5m();Hel("LogsDatabaseV2")};
_.S(db,KF);_.pFQ=function(){var X=_.ij("yt.networklessRequestController.instance");X||(X=new db,_.cQ("yt.networklessRequestController.instance",X),_.P("networkless_logging")&&_.jv().then(function(H){X.databaseToken=H;q96(X);X.initializationPromise.resolve();X.enableCleaning&&Math.random()<=X.cleaningRate&&X.databaseToken&&Faz(X.databaseToken);_.P("networkless_immediately_drop_sw_health_store")&&f8_(X)}));
return X};
db.prototype.writeThenSend=function(X,H){H||(H={});H=k0Z(X,H);_.BQ()||(this.initialized=!1);KF.prototype.writeThenSend.call(this,X,H)};
db.prototype.sendThenWrite=function(X,H,l){H||(H={});H=k0Z(X,H);_.BQ()||(this.initialized=!1);KF.prototype.sendThenWrite.call(this,X,H,l)};
db.prototype.sendAndWrite=function(X,H){H||(H={});H=k0Z(X,H);_.BQ()||(this.initialized=!1);KF.prototype.sendAndWrite.call(this,X,H)};
db.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var f8_=function(X){var H;_.h(function(l){if(!X.databaseToken)throw H=tl("clearSWHealthLogsDb"),H;return l.return(BCL(X.databaseToken).catch(function(b){X.handleError(b)}))})};_.Ely=!1;_.Way=_.ok.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.Ely};_.cQ("ytNetworklessLoggingInitializationOptions",_.Way);var p2=function(X){var H=this;this.config_=null;X?this.config_=X:wMm()&&(this.config_=_.IF());_.eh(_.Ss,function(){IVy(H)},5E3)};
p2.prototype.isReady=function(){!this.config_&&wMm()&&(this.config_=_.IF());return!!this.config_};
var YqZ=function(X,H,l,b){!_.gx("VISITOR_DATA")&&H!=="visitor_id"&&Math.random()<.01&&_.v$(new _.qd("Missing VISITOR_DATA when sending innertube request.",H,l,b));if(!X.isReady()){var U=new _.qd("innertube xhrclient not ready",H,l,b);_.a0(U);throw U;}var K={headers:b.headers||{},method:"POST",postParams:l,postBody:b.postBody,postBodyFormat:b.postBodyFormat||"JSON",onTimeout:function(){b.onTimeout()},
onFetchTimeout:b.onTimeout,onSuccess:function(e,y){if(b.onSuccess)b.onSuccess(y)},
onFetchSuccess:function(e){if(b.onSuccess)b.onSuccess(e)},
onProgress:function(e){if(b.onProgress)b.onProgress(e)},
onError:function(e,y){if(b.onError)b.onError(y)},
onFetchError:function(e){if(b.onError)b.onError(e)},
timeout:b.timeout,withCredentials:!0,compress:b.compress};K.headers["Content-Type"]||(K.headers["Content-Type"]="application/json");var w="";(U=X.config_.innertubeHostOverride)&&(w=U);var d=X.config_.innertubeUseThirdPartyAuth||!1,B=_.zKK(d,w,b);Object.assign(K.headers,B);K.headers.Authorization&&!w&&d&&(K.headers["x-origin"]=window.location.origin);var q=_.T7(w+("/youtubei/"+X.config_.innertubeApiVersion+"/"+H),{alt:"json"}),u=function(e){e=e===void 0?!1:e;var y;if(b.retry&&w!="www.youtube-nocookie.com"&&
(e||_.P("skip_ls_gel_retry")||K.headers["Content-Type"]!=="application/json"||(y=JFh(H,l,B,d)),y)){var V=K.onSuccess,p=K.onFetchSuccess;K.onSuccess=function(W,G){LrL(y);V(W,G)};
l.onFetchSuccess=function(W,G){LrL(y);p(W,G)}}try{if(e&&b.retry&&!b.networklessOptions.bypassNetworkless)K.method="POST",b.networklessOptions.writeThenSend?_.pFQ().writeThenSend(q,K):_.pFQ().sendAndWrite(q,K);
else if(b.compress){var z=!b.networklessOptions.writeThenSend;if(K.postBody){var t=K.postBody;typeof t!=="string"&&(t=JSON.stringify(K.postBody));ic8(q,t,K,_.Kt,z)}else ic8(q,JSON.stringify(K.postParams),K,rY8,z)}else rY8(q,K)}catch(W){if(W.name==="InvalidAccessError")y&&(LrL(y),y=0),_.v$(Error("kd"));else throw W;}y&&_.eh(_.Ss,function(){IVy(X)},5E3)};
_.glO()?jHy().then(function(e){u(e)}):u(!1)};var WW8=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(WW8,_.sU);var S9Y=0,apb=_.XQ?"webkit":_.Hf?"moz":_.Jv?"ms":yNq?"o":"";_.cQ("ytDomDomGetNextId",_.ij("ytDomDomGetNextId")||function(){return++S9Y});var zPq={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},NK=function(X){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(X=
X||window.event){this.event=X;for(var H in X)H in zPq||(this[H]=X[H]);this.scale=X.scale;this.rotation=X.rotation;var l=X.target||X.srcElement;l&&l.nodeType==3&&(l=l.parentNode);this.target=l;var b=X.relatedTarget;if(b)try{b=b.nodeName?b:null}catch(U){b=null}else this.type=="mouseover"?b=X.fromElement:this.type=="mouseout"&&(b=X.toElement);this.relatedTarget=b;this.clientX=X.clientX!=void 0?X.clientX:X.pageX;this.clientY=X.clientY!=void 0?X.clientY:X.pageY;this.keyCode=X.keyCode?X.keyCode:X.which;
this.charCode=X.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=X.altKey;this.ctrlKey=X.ctrlKey;this.shiftKey=X.shiftKey;this.metaKey=X.metaKey;this.pageX_=X.pageX;this.pageY_=X.pageY}}catch(U){}},nMG=function(X){if(document.body&&document.documentElement){var H=document.body.scrollTop+document.documentElement.scrollTop;
X.pageX_=X.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);X.pageY_=X.clientY+H}};
NK.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
NK.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
NK.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Td=_.ok.ytEventsEventsListeners||{};_.cQ("ytEventsEventsListeners",Td);var Q1y=_.ok.ytEventsEventsCounter||{count:0};_.cQ("ytEventsEventsCounter",Q1y);var TC8=_.B0(function(){var X=!1;try{var H=Object.defineProperty({},"capture",{get:function(){X=!0}});
window.addEventListener("test",null,H)}catch(l){}return X});_.To(js,_.$e);js.prototype.onMouseMove_=function(X){X.pageX_===void 0&&nMG(X);var H=X.pageX_;X.pageY_===void 0&&nMG(X);this.position_=new _.DY(H,X.pageY_)};
js.prototype.checkPosition_=function(){if(this.position_){var X=(0,_.Jl)();if(this.previousTime_!=0){var H=this.previousPosition_,l=this.position_,b=H.x-l.x;H=H.y-l.y;b=Math.sqrt(b*b+H*H)/(X-this.previousTime_);this.cycles_[this.index_]=Math.abs((b-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(l=H=0;l<4;l++)H+=this.cycles_[l]||0;H>=3&&this.callback_();this.previousVelocity_=b}this.previousTime_=X;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
js.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.NCy(this.mouseListenerKey_)};var Lab={};var o$l=new _.Ed("rawColdConfigGroup");var lIK=new _.Ed("rawHotConfigGroup");var kcH=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(kcH,_.sU);var t3k=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(t3k,_.sU);var uk=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X,500)};
_.S(uk,_.sU);uk.prototype.getPayloadCase=function(){return _.RV(this,xoD)};
uk.prototype.getContext=function(){return _.Al(this,t3k,33)};
var xoD=[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 Lyy=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Lyy,_.sU);var zik=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(zik,_.sU);zik.prototype.setVideoId=function(X){return $2(this,1,njL,xU(X))};
zik.prototype.getPlaylistId=function(){return _.Aj(this,Fl(this,njL,2))};
var njL=[1,2];var K2=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(K2,_.sU);K2.prototype.getContext=function(){return _.Al(this,RL,1)};
K2.prototype.getTier=function(){return _.M7(this,7)};
K2.prototype.getRetryCount=function(){return _.O_(this,11)};var DoQ,YV,Iw;DoQ=_.ok.ytPubsubPubsubInstance||new _.RF;YV=_.ok.ytPubsubPubsubSubscribedKeys||{};Iw=_.ok.ytPubsubPubsubTopicToKeys||{};_.Yly=_.ok.ytPubsubPubsubIsSynchronous||{};_.RF.prototype.subscribe=_.RF.prototype.subscribe;_.RF.prototype.unsubscribeByKey=_.RF.prototype.unsubscribeByKey;_.RF.prototype.publish=_.RF.prototype.publish;_.RF.prototype.clear=_.RF.prototype.clear;_.cQ("ytPubsubPubsubInstance",DoQ);_.cQ("ytPubsubPubsubTopicToKeys",Iw);_.cQ("ytPubsubPubsubIsSynchronous",_.Yly);
_.cQ("ytPubsubPubsubSubscribedKeys",YV);var Xl=window;var hJ=_.P("web_enable_lifecycle_monitoring")&&lHO()!==0,t0D=_.P("web_enable_lifecycle_monitoring");var W1Q=function(X){var H=this;var l=l===void 0?0:l;var b=b===void 0?_.qV():b;this.JSC$11205_defaultPriority=l;this.scheduler=b;this.completedResolver=new _.cF;this.scheduledPayloads=X;for(X={i$jscomp$495:0};X.i$jscomp$495<this.scheduledPayloads.length;X={payload$jscomp$20:void 0,i$jscomp$495:X.i$jscomp$495},X.i$jscomp$495++)X.payload$jscomp$20=this.scheduledPayloads[X.i$jscomp$495],l=function(U){return function(){U.payload$jscomp$20.job();H.scheduledPayloads[U.i$jscomp$495].processed=!0;H.scheduledPayloads.every(function(K){return K.processed===
!0})&&H.completedResolver.resolve()}}(X),b=this.getPriority(X.payload$jscomp$20),b=this.scheduler.addJob(l,b),this.scheduledPayloads[X.i$jscomp$495]=Object.assign({},X.payload$jscomp$20,{job:l,
jobId:b})};
W1Q.prototype.flushJobs=function(){var X=this,H=Array.from(this.scheduledPayloads.keys()).sort(function(b,U){return X.getPriority(X.scheduledPayloads[U])-X.getPriority(X.scheduledPayloads[b])});
H=_.C(H);for(var l=H.next();!l.done;l=H.next())l=this.scheduledPayloads[l.value],l.jobId===void 0||l.processed||(this.scheduler.cancelJob(l.jobId),this.scheduler.addJob(l.job,10))};
W1Q.prototype.cancel=function(){for(var X=_.C(this.scheduledPayloads),H=X.next();!H.done;H=X.next())H=H.value,H.jobId===void 0||H.processed||this.scheduler.cancelJob(H.jobId),H.processed=!0;this.completedResolver.resolve()};
W1Q.prototype.getPriority=function(X){var H;return(H=X.priority)!=null?H:this.JSC$11205_defaultPriority};var Fn=function(X){this.state=X;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};hJ&&ojy(this.state)};
Fn.prototype.install=function(X){this.plugins.push(X);return this};
Fn.prototype.uninstall=function(){var X=this;_.Ab.apply(0,arguments).forEach(function(H){H=X.plugins.indexOf(H);H>-1&&X.plugins.splice(H,1)})};
Fn.prototype.transition=function(X,H){var l=this;hJ&&blh(this.state);var b=this.transitions.find(function(K){return Array.isArray(K.from)?K.from.find(function(w){return w===l.state&&K.to===X}):K.from===l.state&&K.to===X});
if(b){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);EMC(this,X,H);this.state=X;hJ&&ojy(this.state);b=b.action.bind(this);var U=this.plugins.filter(function(K){return K[X]}).map(function(K){return K[X]});
b(gMF(this,U),H)}else throw Error("ld`"+this.state+"`"+X);};
var gMF=function(X,H){var l=H.filter(function(U){return Gc_(X,U)===10}),b=H.filter(function(U){return Gc_(X,U)!==10});
return X.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var U=_.Ab.apply(0,arguments);return _.h(function(K){if(K.nextAddress==1)return K.yield(X.runImmediateJobsAsync.apply(X,[l].concat(_.LJ(U))),2);X.setJobSetWithScheduledJobs.apply(X,[b].concat(_.LJ(U)));_.m5(K)})}:function(){var U=_.Ab.apply(0,arguments);
X.runImmediateJobsSync.apply(X,[l].concat(_.LJ(U)));X.setJobSetWithScheduledJobs.apply(X,[b].concat(_.LJ(U)))}};
Fn.prototype.runImmediateJobsSync=function(X){var H=_.Ab.apply(1,arguments);_.qV();for(var l=_.C(X),b=l.next(),U={};!b.done;U={lifecycle$jscomp$2:void 0},b=l.next())U.lifecycle$jscomp$2=b.value,iv(function(K){return function(){a8Q(K.lifecycle$jscomp$2.name);$nK(function(){return K.lifecycle$jscomp$2.callback.apply(K.lifecycle$jscomp$2,_.LJ(H))});
BG(K.lifecycle$jscomp$2.name)}}(U))};
Fn.prototype.runImmediateJobsAsync=function(X){var H=_.Ab.apply(1,arguments),l,b,U,K;return _.h(function(w){w.nextAddress==1&&(_.qV(),l=_.C(X),b=l.next(),U={});if(w.nextAddress!=3){if(b.done)return w.jumpTo(0);U.lifecycle$jscomp$3=b.value;U.asyncJobCompletion=void 0;K=function(d){return function(){a8Q(d.lifecycle$jscomp$3.name);var B=$nK(function(){return d.lifecycle$jscomp$3.callback.apply(d.lifecycle$jscomp$3,_.LJ(H))});
rNF(B)?d.asyncJobCompletion=_.P("web_lifecycle_error_handling_killswitch")?B.then(function(){BG(d.lifecycle$jscomp$3.name)}):B.then(function(){BG(d.lifecycle$jscomp$3.name)},function(q){UnO(q);
BG(d.lifecycle$jscomp$3.name)}):BG(d.lifecycle$jscomp$3.name)}}(U);
iv(K);return U.asyncJobCompletion?w.yield(U.asyncJobCompletion,3):w.jumpTo(3)}U={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};b=l.next();return w.jumpTo(2)})};
Fn.prototype.setJobSetWithScheduledJobs=function(X){var H=_.Ab.apply(1,arguments),l=this,b=X.map(function(U){return{job:function(){a8Q(U.name);$nK(function(){return U.callback.apply(U,_.LJ(H))});
BG(U.name)},
priority:Gc_(l,U)}});
b.length&&(this.jobSet=new W1Q(b))};
var Gc_=function(X,H){var l,b;return(b=(l=X.overridePriority)!=null?l:H.priority)!=null?b:0},a8Q=function(X){hJ&&X&&ojy(X)},BG=function(X){hJ&&X&&blh(X)},EMC=function(X,H,l){t0D&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+X.constructor.name+"] '"+X.state+"' to '"+H+"'"),console.log("with message: ",l),console.groupEnd())};
_.ja.Object.defineProperties(Fn.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var ZTq=function(X){Fn.call(this,X===void 0?"none":X);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(){}}]},iTF;
_.S(ZTq,Fn);ZTq.prototype.runApplicationNavigationBegin=function(X,H){var l=this;this.navigationTimer=_.eh(_.Ss,function(){l.currentState==="application_navigating"&&l.transition("none")},5E3);
X(H==null?void 0:H.event)};
ZTq.prototype.runApplicationNavigationEnd=function(X,H){this.navigationTimer&&(_.Ss.cancelJob(this.navigationTimer),this.navigationTimer=null);X(H==null?void 0:H.event)};
_.HSk=function(){iTF||(iTF=new ZTq);return iTF};var X6z=[];_.cQ("yt.logging.transport.getScrapedGelPayloads",function(){return X6z});var HD=function(){var X=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return X.totalEntries}}};
HD.prototype.storePayload=function(X,H){X=Ky8(X);this.store[X]?this.store[X].push(H):(this.memoizedKeySequences={},this.store[X]=[H]);this.totalEntries++;_.P("more_accurate_gel_parser")&&(H=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(H));return X};
HD.prototype.smartExtractMatchingEntries=function(X){if(!X.keys.length)return[];for(var H=vMD(this,X.keys.splice(0,1)[0]),l=[],b=0;b<H.length;b++)this.store[H[b]]&&X.sizeLimit&&(this.store[H[b]].length<=X.sizeLimit?(l.push.apply(l,_.LJ(this.store[H[b]])),delete this.store[H[b]]):l.push.apply(l,_.LJ(this.store[H[b]].splice(0,X.sizeLimit))));this.totalEntries-=l.length;(X==null?0:X.sizeLimit)&&l.length<(X==null?void 0:X.sizeLimit)&&(X.sizeLimit-=l.length,l.push.apply(l,_.LJ(this.smartExtractMatchingEntries(X))));
return l};
HD.prototype.extractMatchingEntries=function(X){X=vMD(this,X);for(var H=[],l=0;l<X.length;l++)this.store[X[l]]&&(H.push.apply(H,_.LJ(this.store[X[l]])),delete this.store[X[l]]);this.totalEntries-=H.length;return H};
HD.prototype.getSequenceCount=function(X){X=vMD(this,X);for(var H=0,l=0;l<X.length;l++){var b=void 0;H+=((b=this.store[X[l]])==null?void 0:b.length)||0}return H};
var vMD=function(X,H){var l=Ky8(H);if(X.memoizedKeySequences[l])return X.memoizedKeySequences[l];var b=Object.keys(X.store)||[];if(b.length<=1&&Ky8(H)===b[0])return b;for(var U=[],K=0;K<b.length;K++){var w=b[K].split("/");if(OTY(H.auth,w[0])){var d=H.isJspb;OTY(d===void 0?"undefined":d?"true":"false",w[1])&&OTY(H.cttAuthInfo,w[2])&&(d=H.tier,d=d===void 0?"undefined":JSON.stringify(d),OTY(d,w[3])&&U.push(b[K]))}}return X.memoizedKeySequences[l]=U},OTY=function(X,H){return X===void 0||X==="undefined"?
!0:X===H};
HD.prototype.getSequenceCount=HD.prototype.getSequenceCount;HD.prototype.extractMatchingEntries=HD.prototype.extractMatchingEntries;HD.prototype.smartExtractMatchingEntries=HD.prototype.smartExtractMatchingEntries;HD.prototype.storePayload=HD.prototype.storePayload;var $hO=new _.gz("FinchConfigManagerService");var aHl,gjL,Zly,bk,mo_,Rhz,KCL,Ejh,WyZ,V2b,GEN,IHy,xnZ;aHl=_.Yy("initial_gel_batch_timeout",2E3);gjL=_.Yy("gel_queue_timeout_max_ms",6E4);Zly=_.Yy("gel_min_batch_size",5);bk=void 0;mo_=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
Rhz=new mo_;KCL=new mo_;Ejh=new mo_;WyZ=new mo_;GEN=!0;IHy=1;_.Ymk=new Map;xnZ=_.ok.ytLoggingTransportTokensToCttTargetIds_||{};_.cQ("ytLoggingTransportTokensToCttTargetIds_",xnZ);var kEy=_.ok.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.cQ("ytLoggingTransportTokensToJspbCttTargetIds_",kEy);var oL={};var PD=_.ok.ytLoggingGelSequenceIdObj_||{};_.cQ("ytLoggingGelSequenceIdObj_",PD);var dhh=[];var fIy=new Set,ssk=0,zhy=0,Ssh=0,uAy=[],Muk=[],n$z=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var OSy=function(){};
OSy.prototype.getUrl=function(X,H){H=H===void 0?!1:H;return X.hasOwnProperty("shareEndpoint")?null:_.tuL(X,null,H)};
var NKb=function(X,H,l){X={endpoint:H,actions:[]};l=(l.path?l.path[0]:l.target).icon||"";H=l.indexOf(":");H>0&&(l=l.substr(H+1));l&&X.actions.push(l);return X};var ZSK=/Command$/,aIh=/Endpoint$/,E$z=new Map;var QHH,TR_;QHH=1;_.Zq=function(){this.actionRoutingMap=new Map};
_.Zq.prototype.triggerAction=function(X){var H=new wWZ(X,!1,_.Ab.apply(1,arguments));this.handleAction(H);return H.returnValue};
_.Zq.prototype.triggerOptionalAction=function(X){var H=new wWZ(X,!0,_.Ab.apply(1,arguments));this.handleAction(H);return H.returnValue};
_.qD=function(X,H,l){H.forEach(function(b){var U=GeN(b);U&&X.triggerOptionalAction(U,b,l,void 0)})};
_.Zq.prototype.handleAction=function(X){var H=this.actionRoutingMap.get(X.actionName);H&&TR_(X,H);X.optionalAction||X.returnValue.length!==0||(X=new _.qd("Unhandled action",X.actionName),_.v$(X))};
TR_=function(X,H){H.forEach(function(l){var b=null;l?b=l.apply(null,X.args):(l=Error("md"),l.params=X.actionName,_.a0(l));X.returnValue.push(b)})};
_.ik=function(X,H,l){l||(l=QHH++);for(var b=_.C(Object.keys(H)),U=b.next();!U.done;U=b.next()){U=U.value;var K=X.actionRoutingMap.get(U);K||(K=new Map,X.actionRoutingMap.set(U,K));X.registerActionHandler(l,U,H[U],K)}return l};
_.Zq.prototype.registerActionHandler=function(X,H,l,b){b.set(X,_.ZR(l))};
_.vD=function(X,H,l){H=_.C(Object.keys(H));for(var b=H.next();!b.done;b=H.next())(b=X.actionRoutingMap.get(b.value))&&b.delete(l)};
_.mi(_.Zq);var Tjk=function(X,H){var l=_.Zq.getInstance();_.DR(function(){var b={},U=_.ik(l,(b[X]=H,b));_.E2(function(){var K={};_.vD(l,(K[X]="",K),U)})})};TVO=fvy;var Ufh=new Set(["For","If","Match","Watch"]),NR6={},c0Y=(NR6[O2.default]=function(){return a98},NR6.style=function(){return a98},NR6),jHQ;
for(jHQ in c0Y)XU.attributes[jHQ]=c0Y[jHQ](XU.attributes[jHQ]);var cD=new _.gz("VISIBILITY_OBSERVER");var qFW={retrieve:function(X){return this.id.\u0275prov.token===X.\u0275prov.token?this.contextValue:this?Ye(this,this.id):xKL}};var r0Q=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(X){}var J0_=typeof WeakRef==="function";var L1Y=function(X){this.value=X};
L1Y.prototype.deref=function(){return this.value};
var Y9D=J0_?WeakRef:L1Y,I89=function(X){this.newKeyHandler=X;this.map=new WeakMap};
I89.prototype.add=function(X,H){this.map.has(X)||(this.newKeyHandler(X),this.map.set(X,[]));this.map.get(X).push(new Y9D(H))};
I89.prototype.get=function(X){var H=this;return function b(){var U,K,w,d,B,q,u,e,y,V,p;return _.IB(b,function(z){switch(z.nextAddress){case 1:_.iQ(z,2);U=H.map.get(X);if(!U)return z.return();K=0;w=_.C(U);d=w.next();case 4:if(d.done){z.jumpTo(6);break}B=d.value;q=B.deref();if(!q){z.jumpTo(5);break}K++;u=_.AG;return z.yield(q,8);case 8:u(z.yieldResult);case 5:d=w.next();z.jumpTo(4);break;case 6:if(2*K<U.length){e=0;y=_.C(U);for(V=y.next();!V.done;V=y.next())p=V.value,p.deref()&&(U[e++]=p);U.length=
e}case 2:_.GS(z),_.vJ(z,0)}})}()};var A09=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},VgW=new I89(function(X){X.addEventListener("abort",fsy,{once:!0})}),yGk=new WeakMap,XMQ=function(X){X=X===void 0?s1:X;
this.signal=new X};
XMQ.prototype.abort=function(X){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=X,X=new Event("abort"),this.signal.dispatchEvent(X))};
var s1=function(){this.target=A09();this.aborted=!1;this.onabort=null};
s1.prototype.throwIfAborted=function(){eZy.call(this)};
s1.prototype.addEventListener=function(X,H,l){this.target.addEventListener(X,H,l)};
s1.prototype.removeEventListener=function(X,H,l){this.target.removeEventListener(X,H,l)};
s1.prototype.dispatchEvent=function(X){if(this.onabort&&X.type==="abort")this.onabort(X);return this.target.dispatchEvent(X)};
s1.abort=uck;s1.timeout=pxW;s1.any=PDW;var Mgz=r0Q?AbortController:XMQ,MD=r0Q?AbortSignal:s1;typeof MD.abort!=="function"&&(MD.abort=uck);typeof MD.prototype.throwIfAborted!=="function"&&(MD.prototype.throwIfAborted=eZy);typeof MD.any!=="function"&&(MD.any=PDW);typeof MD.timeout!=="function"&&(MD.timeout=pxW);var rU=null,zZZ=new Map;var Heq=function(X){X=X.clone();GXq(X);K5(X,"dg",null);K5(X,"d","0");ta_(X,null);Wct(X,null);return X},lct=!0,ohY=function(X,H,l){var b=l===void 0?{}:l;
l=b.cssRowKey===void 0?void 0:b.cssRowKey;var U=b.combinedSignature===void 0?void 0:b.combinedSignature;var K=b.extraEdges===void 0?void 0:b.extraEdges;b=b.callback===void 0?void 0:b.callback;K5(X,"m",H.join(","));K&&gH_(X,K);l&&(K5(X,"ck",l),U?K5(X,"rs",U):lct&&(lct=!1));if(b){if(b!=null&&!iiF.test(b))throw Error("Ya`"+b);K5(X,"cb",b)}X=X.toString();_.Ky(X,"/")&&(X=JjN(document.location.href)+X);return _.vu(X)};var UwY=function(X){return bet(X).then(function(H){return JSON.parse(H.responseText)})},bet=function(X){var H={},l=H.xmlHttpFactory?H.xmlHttpFactory.createInstance():btD.createInstance();
return(new _.UA(function(b,U){var K;try{l.open("GET",X,!0)}catch(B){U(new uw("Error opening XHR: "+B.message,X,l))}l.onreadystatechange=function(){if(l.readyState==4){_.ok.clearTimeout(K);var B;!(B=ort(l.status))&&(B=l.status===0)&&(B=jZZ(X),B=!(B=="http"||B=="https"||B==""));B?b(l):U(new $w9(l.status,X,l))}};
l.onerror=function(){U(new uw("Network error",X,l))};
if(H.headers)for(var w in H.headers){var d=H.headers[w];d!=null&&l.setRequestHeader(w,d)}H.withCredentials&&(l.withCredentials=H.withCredentials);H.responseType&&(l.responseType=H.responseType);H.mimeType&&l.overrideMimeType(H.mimeType);H.timeoutMs>0&&(K=_.ok.setTimeout(function(){l.onreadystatechange=function(){};
l.abort();U(new KhQ(X,l))},H.timeoutMs));
try{l.send(null)}catch(B){l.onreadystatechange=function(){},_.ok.clearTimeout(K),U(new uw("Error sending XHR: "+B.message,X,l))}})).thenCatch(function(b){b instanceof _.nG&&l.abort();
throw b;})},uw=function(X,H,l){_.XO.call(this,X+", url="+H);
this.url=H;this.xhr=l};
_.To(uw,_.XO);uw.prototype.name="XhrError";var $w9=function(X,H,l){uw.call(this,"Request Failed, status="+X,H,l);this.status=X};
_.To($w9,uw);$w9.prototype.name="XhrHttpError";var KhQ=function(X,H){uw.call(this,"Request timed out",X,H)};
_.To(KhQ,uw);KhQ.prototype.name="XhrTimeoutError";OJ=OJ||{};var ee=function(){_.$e.call(this)};
_.To(ee,_.$e);ee.prototype.initialize=function(){};krh.prototype.execute=function(X){this.fn_&&(this.fn_.call(this.handler_||null,X),this.fn_=this.handler_=null)};
krh.prototype.abort=function(){this.handler_=this.fn_=null};
OJ.ModuleLoadCallback=krh;_.To(JS,_.$e);JS.prototype.moduleConstructor_=ee;JS.prototype.module_=null;JS.prototype.getId=function(){return this.JSC$11362_id_};
JS.prototype.registerCallback=function(X,H){return yy(this.onloadCallbacks_,X,H)};
var RKG=function(X,H){yy(X.onErrorCallbacks_,H)},yy=function(X,H,l){H=new OJ.ModuleLoadCallback(H,l);
X.push(H);return H};
JS.prototype.isLoaded=function(){return!!this.module_};
JS.prototype.onLoad=function(X){var H=new this.moduleConstructor_;H.initialize(X());this.module_=H;H=(H=C$G(this.earlyOnloadCallbacks_,X()))||C$G(this.onloadCallbacks_,X());H||(this.onErrorCallbacks_.length=0);return H};
JS.prototype.onError=function(X){(X=C$G(this.onErrorCallbacks_,X))&&bb(Error("sd`"+X));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var C$G=function(X,H){for(var l=[],b=0;b<X.length;b++)try{X[b].execute(H)}catch(U){bb(U),l.push(U)}X.length=0;return l.length?l:null};
JS.prototype.disposeInternal=function(){JS.superClass_.disposeInternal.call(this);_.Gp(this.module_)};
OJ.ModuleInfo=JS;var wMD,s6Q,Bu9,qiF,hKt,Fhv,V4v,eKC,y2Y;
_.IL=function(X,H,l,b,U){b=b===void 0?!1:b;U=U===void 0?!1:U;var K=K===void 0?!0:K;this.scsReferenceUrl_=H28(_.OU(X).toString(),K);this.cssRowKey_=H;this.combinedSignature_=l;this.useNegativeLoading_=b;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(X=$P(this.scsReferenceUrl_,"excm"))?X.split(","):[];this.shouldScanForCss_=U;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;lqy();_.Vy(this,EHH(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
wMD=function(X,H){if(H.href||H.getAttribute("data-href"))if(H=H.href||H.getAttribute("data-href"),Y4k(H)&&!H28(H).urlPrefix_.endsWith("_/js/")){H=EHH(H28(H));H=_.C(H);for(var l=H.next();!l.done;l=H.next())l=l.value,X.loadedCssModuleList_.includes(l)||X.loadedCssModuleList_.push(l)}};
_.IL.prototype.loadModules=function(X,H,l){var b=l===void 0?{}:l;H=b.extraEdges;l=b.onError;var U=b.onSuccess;b=b.forceReload;if(!X)throw Error("td");if(this.shouldScanForCss_){for(var K=_.C(document.getElementsByTagName("style")),w=K.next();!w.done;w=K.next())wMD(this,w.value);K=_.C(document.getElementsByTagName("link"));for(w=K.next();!w.done;w=K.next())wMD(this,w.value)}dw_(this,hKt(this,X),H,l,U,b)};
var dw_=function(X,H,l,b,U,K){b=b===void 0?function(){}:b;
U=U===void 0?function(){}:U;
K=K===void 0?!1:K;Fhv(X,H,function(w,d,B){B=B===void 0?d:B;X.enableFallbackFetch&&K?X.loadWithFetch(w,d,b,U,B):X.load(w,d,b,U,B,l)},l)||b(-1)};
_.IL.prototype.loadWithFetch=function(){_.h(function(){throw Error("ud");})};
_.IL.prototype.maybeSetAdditionalFields=function(){};
s6Q=function(X,H,l){if(X.useNegativeLoading_){var b=X.scsReferenceUrl_;X={cssRowKey:X.cssRowKey_,combinedSignature:X.combinedSignature_,extraEdges:l,requestedModuleIds:Bu9(X),requestedCssModuleIds:qiF(X)};var U=X===void 0?{}:X;X=U.requestedModuleIds===void 0?[]:U.requestedModuleIds;l=U.requestedCssModuleIds===void 0?[]:U.requestedCssModuleIds;var K=U.cssRowKey===void 0?void 0:U.cssRowKey;var w=U.combinedSignature===void 0?void 0:U.combinedSignature;var d=U.extraEdges===void 0?void 0:U.extraEdges;
U=U.callback===void 0?void 0:U.callback;b=Heq(b);K5(b,"d","1");ta_(b,X);Wct(b,l);H=ohY(b,H,{cssRowKey:K,combinedSignature:w,extraEdges:d,callback:U})}else b=X.scsReferenceUrl_,X={cssRowKey:X.cssRowKey_,combinedSignature:X.combinedSignature_,requestedModuleIds:Bu9(X),requestedCssModuleIds:qiF(X)},d=X===void 0?{}:X,X=d.requestedCssModuleIds===void 0?[]:d.requestedCssModuleIds,l=d.cssRowKey===void 0?void 0:d.cssRowKey,K=d.combinedSignature===void 0?void 0:d.combinedSignature,w=d.extraEdges===void 0?
void 0:d.extraEdges,d=d.callback===void 0?void 0:d.callback,b=Heq(b),Wct(b,X),H=ohY(b,H,{cssRowKey:l,combinedSignature:K,extraEdges:w,callback:d});return H};
_.Vy=function(X,H){for(var l=!1,b=[],U=0;U<H.length;++U){var K=H[U];X.requestedModuleMap_[K]||(X.requestedModuleMap_[K]=!0,X.requestedModuleList_.push(K),l=!0,b.push(K))}l&&(X.requestedModuleListSorted_=!1)};
_.PG=function(X,H){for(var l=[],b=0;b<H.length;++b){var U=H[b];X.requestedModuleMap_[U]&&(delete X.requestedModuleMap_[U],_.Oy(X.requestedModuleList_,U),l.push(U))}};
_.IL.prototype.load=function(X,H,l,b,U){U=U===void 0?H:U;_.OU(X);var K=this.useCors_,w=this.corsMode_,d=this.fetchPriority,B=_.XJ("SCRIPT");_.sw(B,X);K&&(B.crossOrigin=w);B.async=!1;d&&B.setAttribute("fetchpriority",d);_.Vy(this,H);_.M4D(this,X,B,H,l,b,U)};
_.M4D=function(X,H,l,b,U,K,w){w=w===void 0?b:w;X.lastScript_=l;X.insertPos.insertBefore(l,X.insertPos.firstChild);_.usD(l,b,function(){l.parentElement.removeChild(l);X.lastScript_==l&&(X.lastScript_=null);K()},function(d){l.parentElement.removeChild(l);
X.lastScript_==l&&(X.lastScript_=null);_.PG(X,d);X.pendingModuleGraphUpdate_?X.pendingModuleGraphUpdate_.then(function(){U(-1,H)}):U(-1,H)},w)};
_.usD=function(X,H,l,b,U){U=U===void 0?H:U;var K=H.length,w=function(){K=0;X.onload=null;X.onerror=null;d=function(){}},d=function(){w();
var q=U.filter(function(u){return!VW().getModuleInfo(u).isLoaded()});
q.length!==0?b(q,"Response was successful but was missing module(s) "+q+"."):l()},B=function(){K--;
K==0&&d()};
H.forEach(function(q){q=VW().getModuleInfo(q);q.isLoaded()?B():(yy(q.earlyOnloadCallbacks_,B),RKG(q,B))});
X.onload=function(){return d()};
X.onerror=function(){w();b(H)}};
Bu9=function(X){X.requestedModuleListSorted_||(X.requestedModuleListSorted_=!0,X.requestedModuleList_.sort());return X.requestedModuleList_};
qiF=function(X){X=X.loadedCssModuleList_;X.sort();return X};
hKt=function(X,H){return H.filter(function(l){return!X.requestedModuleMap_[l]})};
Fhv=function(X,H,l,b){if(X.pendingModuleGraphUpdate_)return X.pendingModuleGraphUpdate_.then(function(){Fhv(X,H,l,b)}),!0;
if(!X.useNegativeLoading_){var U=[],K=Object.assign({},X.requestedModuleMap_);eKC(X,H,function(u){U.push(u.getId())},b,function(u){return!u.isLoaded()},K);
H=U}for(K=0;K<H.length;){for(var w=H.length-K,d=K==0?H:H.slice(K,H.length),B=s6Q(X,d,b),q=_.OU(B).toString();q.length>X.urlMaxLength;)if(w>1)w-=Math.ceil((q.length-X.urlMaxLength)/6),w=Math.max(w,1),d=H.slice(K,K+w),B=s6Q(X,d,b),q=_.OU(B).toString();else return X.useNegativeLoading_?(X.useNegativeLoading_=!1,X.pendingModuleGraphUpdate_=y2Y(X).then(function(u){V4v(X,u,b)}),Fhv(X,H.slice(K),l,b)):!1;
K+=w;X.useNegativeLoading_?l(B,d):l(B,d,K===H.length?H:[])}return!0};
V4v=function(X,H,l){VW().setAllModuleInfoString((H||{}).moduleGraph);eKC(X,Bu9(X),function(b){_.Vy(X,[b.getId()])},l);
X.pendingModuleGraphUpdate_=null};
eKC=function(X,H,l,b,U,K){K=K===void 0?{}:K;var w=VW();H=_.C(H);for(var d=H.next();!d.done;d=H.next()){d=d.value;var B=w.getModuleInfo(d);if(!(K[d]||U&&!U(B))){K[d]=!0;var q=B.deps_||[];if(b){var u=[];b[d]&&(u=Object.keys(b[d]));q=q.concat(u)}eKC(X,q,l,b,U,K);l(B)}}};
y2Y=function(X){X=X.scsReferenceUrl_.clone();GXq(X);K5(X,"dg",null);K5(X,"md","1");return UwY(X.toString())};var xfm=new Uint8Array(123);var P$_=[];var fc_=function(){this.JSC$10364_loader_=null};
_.R=fc_.prototype;_.R.setBatchModeEnabled=function(){};
_.R.setAllModuleInfoString=function(){};
_.R.addExtraEdge=function(){throw Error("vd");};
_.R.removeExtraEdge=function(){throw Error("wd");};
_.R.getModuleContext=function(){return null};
_.R.isActive=function(){return!1};
_.R.isUserActive=function(){return!1};
_.R.registerInitializationCallback=function(){};
_.R.registerCallback=function(){};var fF=function(X,H,l,b,U){var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.name="ModuleLoadFailure";this.type=X;this.status=H;this.requestedModuleIds=l;this.url=b;this.cause=U;this.message=this.toString()};
_.S(fF,Error);fF.prototype.toString=function(){return pMF(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var pMF=function(X){switch(X.type){case fF.Type.UNAUTHORIZED:return"Unauthorized";case fF.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case fF.Type.TIMEOUT:return"Timed out";case fF.Type.OLD_CODE_GONE:return"Out of date module id";case fF.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+X.type}};
OJ.ModuleLoadFailure=fF;OJ.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var pF=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 OJ.ModuleInfo([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new FJ;this.isDisposed_=this.userLastActive_=this.lastActive_=
this.batchModeEnabled_=!1};
_.To(pF,fc_);var SiH=function(X,H){_.XO.call(this,"Error loading "+X+": "+H)};
_.To(SiH,_.XO);pF.prototype.setBatchModeEnabled=function(X){this.batchModeEnabled_=X};
pF.prototype.setAllModuleInfoString=function(X,H){if(!(this instanceof pF))this.setAllModuleInfoString(X,H);else if(typeof X==="string"){if(X.startsWith("d$")){X=X.substring(2);for(var l=[],b=0,U=X.indexOf("/"),K=0,w=!1,d=0;;){var B=w?X.substring(K):X.substring(K,U);if(B.length===0)b++,K="sy"+b.toString(36),B=[];else{var q=B.indexOf(":");if(q<0)K=B,B=[];else if(q===B.length-1)K=B.substring(0,q),B=Array(l[d-1]);else{K=B.substring(0,q);B=B.substring(q+1).split(",");q=d;for(var u=0;u<B.length;u++)q-=
B[u].length===0?1:Number(B[u]),B[u]=l[q]}q=0;if(K.length===0)q=1;else if(K.charAt(0)==="+"||K.charAt(0)==="-")q=Number(K);q!==0&&(b+=q,K="sy"+b.toString(36))}l.push(K);zKY(this,K,B);if(w)break;K=U+1;U=X.indexOf("/",K);U===-1&&(w=!0);d++}this.moduleIds_=l}else if(X.startsWith("p$"))nhq(this,X);else{X=X.split("/");l=[];for(b=0;b<X.length;b++){d=X[b].split(":");U=d[0];w=[];if(d[1])for(w=d[1].split(","),d=0;d<w.length;d++)w[d]=l[parseInt(w[d],36)];l.push(U);zKY(this,U,w)}this.moduleIds_=l}H&&H.length?
(_.jl(this.loadingModuleIds_,H),this.lastInitialModuleId_=_.Wh(H)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11380_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11380_currentlyLoadingModule_=null,(H=this.baseModuleInfo_.onLoad((0,_.K8)(this.getModuleContext,this)))&&H.length&&kW6(this,new OJ.ModuleLoadFailure(OJ.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,H[0])),Se(this))}};
var nhq=function(X,H){var l=H.substring(2);for(H=0;H<64;H++)xfm["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(H)]=H;var b={buf:l,pos:0};Y2(b);var U=Y2(b),K=Y2(b)+1;H=Array(U);var w=Array(U),d=Array(U);K=Array(K);var B=0,q=0,u=b.pos,e=b.buf.indexOf("|",b.pos);b.pos=e+1;for(e=0;e<U;e++){var y=Y2(b),V=y&2,p=y&1;y>>>=2;p?(B+=y>>>1^-(y&1),y="sy"+B.toString(36)):(p=u,u+=y,y=l.substring(p,u));H[e]=y;V&&(K[q++]=y)}K[q]="";b.pos++;q=U&-2;l=U&1;for(B=0;B<q;B+=2)u=Dfm(b),d[B]=
u&7,d[B+1]=u>>>3&7;l&&(l=Dfm(b),d[q]=l&7);b.pos++;for(q=0;q<U;q++)d[q]===7&&(d[q]=Y2(b));b.pos++;for(l=q=0;l<U;l++){B=d[l];u=B===0?P$_:Array(B);w[l]=u;e=q;for(V=0;V<B;V++)e-=Y2(b),u[V]=K[e];K[q]===H[l]&&q++}for(b=0;b<H.length;b++)zKY(X,H[b],w[b]);X.moduleIds_=H};
_.R=pF.prototype;_.R.getModuleInfo=function(X){return this.moduleInfoMap[X]};
_.R.addExtraEdge=function(X,H){var l=this.getModuleInfo(X);l&&l.isLoaded()?this.load(H):(this.JSC$11380_extraEdges_[X]||(this.JSC$11380_extraEdges_[X]={}),this.JSC$11380_extraEdges_[X][H]=!0)};
_.R.removeExtraEdge=function(X,H){if(this.JSC$11380_extraEdges_[X]){delete this.JSC$11380_extraEdges_[X][H];for(var l in this.JSC$11380_extraEdges_[X])return;delete this.JSC$11380_extraEdges_[X]}};
_.R.isActive=function(){return this.loadingModuleIds_.length>0};
_.R.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Se=function(X){var H=X.lastActive_,l=X.isActive();l!=H&&(X.executeCallbacks_(l?"active":"idle"),X.lastActive_=l);H=X.isUserActive();H!=X.userLastActive_&&(X.executeCallbacks_(H?"userActive":"userIdle"),X.userLastActive_=H)},zKY=function(X,H,l){X.moduleInfoMap[H]?(X=X.moduleInfoMap[H].deps_,X!=l&&X.splice.apply(X,[0,
X.length].concat(_.LJ(l)))):X.moduleInfoMap[H]=new OJ.ModuleInfo(l,H)},Dwq=function(X,H,l){var b=[];
gN8(H,b);H=[];for(var U={},K=0;K<b.length;K++){var w=b[K],d=X.getModuleInfo(w);if(!d)throw Error("xd`"+w);var B=new FJ;U[w]=B;d.isLoaded()?B.callback(null):(xwQ(X,w,d,!!l,B),X.isModuleLoading(w)||H.push(w))}H.length>0&&(X.loadingModuleIds_.length===0?X.loadModules_(H):(X.requestedModuleIdsQueue_.push(H),Se(X)));return U},xwQ=function(X,H,l,b,U){l.registerCallback(U.callback,U);
RKG(l,function(K){U.errback(new SiH(H,K))});
X.isModuleLoading(H)?b&&(t4C(X,H),Se(X)):b&&t4C(X,H)};
pF.prototype.loadModules_=function(X,H,l){var b=this;H=H===void 0?0:H;var U=Whz(this,X);this.loadingModuleIds_=U;this.requestedLoadingModuleIds_=this.batchModeEnabled_?X:_.NW(U);Se(this);if(U.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,U);X=this.JSC$10364_loader_;if(!X)throw Error("yd");if(Object.keys(this.JSC$11380_extraEdges_).length>0&&!X.supportsExtraEdges)throw Error("zd");l=(0,_.K8)(X.loadModules,X,_.NW(U),this.moduleInfoMap,{extraEdges:this.JSC$11380_extraEdges_,
forceReload:!!l,onError:function(K,w,d){var B=b.requestedLoadingModuleIds_;K=K!=null?K:void 0;var q=H;d=d===void 0?!1:d;d=(d===void 0?0:d)?0:(q===void 0?0:q)+1;q=_.NW(U);b.requestedLoadingModuleIds_=B;U.forEach(_.lH(_.Oy,b.requestedModuleIds_),b);K==401?(kW6(b,new OJ.ModuleLoadFailure(OJ.ModuleLoadFailure.Type.UNAUTHORIZED,K)),b.requestedModuleIdsQueue_.length=0):K==410?(EhC(b,new OJ.ModuleLoadFailure(OJ.ModuleLoadFailure.Type.OLD_CODE_GONE,K)),ghz(b)):d>=3?(EhC(b,new OJ.ModuleLoadFailure(OJ.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
K,q,w)),ghz(b)):b.loadModules_(b.requestedLoadingModuleIds_,d,K==8001||!1)},
onTimeout:(0,_.K8)(this.handleLoadTimeout_,this)});(X=Math.pow(H,2)*5E3)?_.ok.setTimeout(l,X):l()}};
var Whz=function(X,H){H=H.filter(function(U){return X.moduleInfoMap[U].isLoaded()?(_.ok.setTimeout(function(){return Error("Ad`"+U)},0),!1):!0});
for(var l=[],b=0;b<H.length;b++)l=l.concat(GWY(X,H[b]));gN8(l);return!X.batchModeEnabled_&&l.length>1?(H=l.shift(),X.requestedModuleIdsQueue_=l.map(function(U){return[U]}).concat(X.requestedModuleIdsQueue_),[H]):l},GWY=function(X,H){var l=_.Bb.createSet(X.requestedModuleIds_),b=[];
l[H]||b.push(H);H=[H];for(var U=0;U<H.length;U++)for(var K=X.getModuleInfo(H[U]).deps_,w=K.length-1;w>=0;w--){var d=K[w];X.getModuleInfo(d).isLoaded()||l[d]||(b.push(d),H.push(d))}b.reverse();gN8(b);return b};
pF.prototype.JSC$11375_setLoaded=function(){if(this.JSC$11380_currentlyLoadingModule_){var X=this.JSC$11380_currentlyLoadingModule_.getId(),H=[];if(this.JSC$11380_extraEdges_[X]){for(var l=_.C(Object.keys(this.JSC$11380_extraEdges_[X])),b=l.next();!b.done;b=l.next()){b=b.value;var U=this.getModuleInfo(b);U&&!U.isLoaded()&&(this.removeExtraEdge(X,b),H.push(b))}this.loadMultiple(H)}this.isDisposed()||((H=this.moduleInfoMap[X].onLoad((0,_.K8)(this.getModuleContext,this)))&&H.length&&kW6(this,new OJ.ModuleLoadFailure(OJ.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,H[0])),_.Oy(this.userInitiatedLoadingModuleIds_,X),_.Oy(this.loadingModuleIds_,X),this.loadingModuleIds_.length===0&&ghz(this),this.lastInitialModuleId_&&X==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Se(this),this.JSC$11380_currentlyLoadingModule_=null)}};
pF.prototype.isModuleLoading=function(X){if(_.vh(this.loadingModuleIds_,X))return!0;for(var H=0;H<this.requestedModuleIdsQueue_.length;H++)if(_.vh(this.requestedModuleIdsQueue_[H],X))return!0;return!1};
pF.prototype.load=function(X,H){return Dwq(this,[X],H)[X]};
pF.prototype.loadMultiple=function(X){return Dwq(this,X)};
var t4C=function(X,H){_.vh(X.userInitiatedLoadingModuleIds_,H)||X.userInitiatedLoadingModuleIds_.push(H)};
pF.prototype.beforeLoadModuleCode=function(X){var H=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[X]&&ac_(this,this.moduleInfoMap[X].deps_||[],function(l){l.module_=new ee;_.Oy(H.loadingModuleIds_,l.getId())},function(l){return!l.isLoaded()});
this.JSC$11380_currentlyLoadingModule_=this.getModuleInfo(X)};
pF.prototype.registerInitializationCallback=function(X){this.JSC$11380_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new OJ.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11380_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);yy(this.JSC$11380_currentlyLoadingModule_.earlyOnloadCallbacks_,X)};
pF.prototype.handleLoadTimeout_=function(){EhC(this,new OJ.ModuleLoadFailure(OJ.ModuleLoadFailure.Type.TIMEOUT));ghz(this)};
var EhC=function(X,H){X.requestedLoadingModuleIds_.length>1?X.requestedModuleIdsQueue_=X.requestedLoadingModuleIds_.map(function(l){return[l]}).concat(X.requestedModuleIdsQueue_):kW6(X,H)},kW6=function(X,H){var l=X.requestedLoadingModuleIds_;
X.loadingModuleIds_.length=0;for(var b=[],U=0;U<X.requestedModuleIdsQueue_.length;U++){var K=X.requestedModuleIdsQueue_[U].filter(function(B){var q=GWY(this,B);return O4(l,function(u){return _.vh(q,u)})},X);
_.jl(b,K)}for(U=0;U<l.length;U++)_.DWK(b,l[U]);for(U=0;U<b.length;U++){for(K=0;K<X.requestedModuleIdsQueue_.length;K++)_.Oy(X.requestedModuleIdsQueue_[K],b[U]);_.Oy(X.userInitiatedLoadingModuleIds_,b[U])}if(U=X.JSC$11380_callbackMap_.error)for(K=0;K<U.length;K++)for(var w=U[K],d=0;d<b.length;d++)w("error",b[d],H);for(b=0;b<l.length;b++)if(X.moduleInfoMap[l[b]])X.moduleInfoMap[l[b]].onError(H);X.requestedLoadingModuleIds_.length=0;Se(X)},ghz=function(X){for(;X.requestedModuleIdsQueue_.length;){var H=
X.requestedModuleIdsQueue_.shift().filter(function(l){return!this.getModuleInfo(l).isLoaded()},X);
if(H.length>0){X.loadModules_(H);return}}Se(X)};
pF.prototype.registerCallback=function(X,H){Array.isArray(X)||(X=[X]);for(var l=0;l<X.length;l++){var b=X[l],U=H,K=this.JSC$11380_callbackMap_;K[b]||(K[b]=[]);K[b].push(U)}};
pF.prototype.executeCallbacks_=function(X){for(var H=this.JSC$11380_callbackMap_[X],l=0;H&&l<H.length;l++)H[l](X)};
var ac_=function(X,H,l,b,U){b=b===void 0?function(){return!0}:b;
U=U===void 0?{}:U;H=_.C(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;var w=X.getModuleInfo(K);!U[K]&&b(w)&&(U[K]=!0,ac_(X,w.deps_||[],l,b,U),l(w))}};
pF.prototype.dispose=function(){_.aZ(_.Bb.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11380_callbackMap_={};this.isDisposed_=!0};
pF.prototype.isDisposed=function(){return this.isDisposed_};
_.yW=function(){return new pF};var ZeG=[5E3,2E4],oQQ=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}")};
_.S(oQQ,fc_);_.R=oQQ.prototype;_.R.setAllModuleInfoString=function(){this.JSC$11388_currentlyLoadingModule_&&this.JSC$11388_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11375_setLoaded()};
_.R.getModuleInfo=function(X){var H=this.JSC$11388_moduleInfoMap_[X];H||(H=new OJ.ModuleInfo([],X),this.JSC$11388_moduleInfoMap_[X]=H);return H};
_.R.addExtraEdge=function(X,H){this.getModuleInfo(X).isLoaded()?this.load(H):(this.JSC$11388_extraEdges_[X]||(this.JSC$11388_extraEdges_[X]={}),this.JSC$11388_extraEdges_[X][H]=!0)};
_.R.removeExtraEdge=function(X,H){if(this.JSC$11388_extraEdges_[X]){delete this.JSC$11388_extraEdges_[X][H];for(var l in this.JSC$11388_extraEdges_[X])return;delete this.JSC$11388_extraEdges_[X]}};
_.R.isModuleLoading=function(X){return!!this.loadingModules_[X]};
_.R.load=function(X){iev(this,[X]);return vhY(this,X)};
_.R.loadMultiple=function(X){var H=this,l=Object.create(null),b=[];X.forEach(function(U){l[U]||(l[U]=vhY(H,U),b.push(U))});
iev(this,b);return l};
_.R.beforeLoadModuleCode=function(X){var H;((H=this.JSC$11388_currentlyLoadingModule_)==null?void 0:H.getId())==="synthetic_module_overhead"&&this.JSC$11375_setLoaded();var l,b;Oev(this,(b=(l=this.JSC$11388_moduleInfoMap_[X])==null?void 0:l.deps_)!=null?b:[],function(U){U.module_=new ee},function(U){return!U.isLoaded()});
this.JSC$11388_currentlyLoadingModule_=this.getModuleInfo(X)};
_.R.JSC$11375_setLoaded=function(){if(this.JSC$11388_currentlyLoadingModule_){var X=this.JSC$11388_currentlyLoadingModule_.getId(),H=[];if(this.JSC$11388_extraEdges_[X]){for(var l=_.C(Object.keys(this.JSC$11388_extraEdges_[X])),b=l.next();!b.done;b=l.next())b=b.value,this.getModuleInfo(b).isLoaded()||(this.removeExtraEdge(X,b),H.push(b));this.loadMultiple(H)}this.JSC$11388_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11388_currentlyLoadingModule_=null;(!this.isModuleLoading(X)&&/^sy[0-9a-z]{0,4}$/.test(X)||X==="synthetic_module_overhead")&&delete this.JSC$11388_moduleInfoMap_[X];this.unsetModulesAsLoading(X)}};
_.R.registerInitializationCallback=function(X){this.JSC$11388_currentlyLoadingModule_||(this.JSC$11388_moduleInfoMap_.synthetic_module_overhead=new OJ.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11388_currentlyLoadingModule_=this.JSC$11388_moduleInfoMap_.synthetic_module_overhead);yy(this.JSC$11388_currentlyLoadingModule_.earlyOnloadCallbacks_,X)};
_.R.setModulesAsLoading=function(){var X=this;_.Ab.apply(0,arguments).forEach(function(H){X.loadingModules_[H]=!0})};
_.R.unsetModulesAsLoading=function(){var X=this;_.Ab.apply(0,arguments).forEach(function(H){delete X.loadingModules_[H]})};
var vhY=function(X,H){return new _.UA(function(l,b){var U=X.getModuleInfo(H);U.isLoaded()?l(null):(U.registerCallback(function(){l(null)}),RKG(U,function(K){var w="Error loading "+H+": "+K;
K instanceof OJ.ModuleLoadFailure&&K.url&&(w=w+", requested url: "+K.url.toString());b(Error(w))}))})},iev=function(X,H){H=H.filter(function(l){return!X.isModuleLoading(l)&&!X.getModuleInfo(l).isLoaded()});
H.length>0&&(X.setModulesAsLoading.apply(X,_.LJ(H)),X.JSC$11388_queue_.push(H),mwt(X))},mwt=function(X){for(var H={};X.activeLoads_<Infinity&&X.JSC$11388_queue_.length>0;H={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})H.ids$jscomp$37=X.JSC$11388_queue_.shift().filter(function(l){return!X.getModuleInfo(l).isLoaded()}),H.ids$jscomp$37.length>0&&(X.activeLoads_++,H.finishLoad=function(l){return function(){X.activeLoads_--;
mwt(X);l.finishLoad=function(){}}}(H),_.s$(H.ids$jscomp$37.map(function(l){return vhY(X,l)})).then(function(l){return function(){(0,l.finishLoad)()}}(H)),H.attempt$jscomp$6=0,H.load$jscomp$1=function(l){return function(){if(Object.keys(X.JSC$11388_extraEdges_).length>0&&!X.JSC$10364_loader_.supportsExtraEdges)throw Error("zd");
X.JSC$10364_loader_.loadModules(l.ids$jscomp$37,X.JSC$11388_moduleInfoMap_,{extraEdges:X.JSC$11388_extraEdges_,onError:function(b,U){var K=ZeG[l.attempt$jscomp$6++];K!==void 0?setTimeout(function(){(0,l.load$jscomp$1)()},K):(X.unsetModulesAsLoading.apply(X,_.LJ(l.ids$jscomp$37)),(0,l.finishLoad)(),l.ids$jscomp$37.forEach(function(w){w=X.getModuleInfo(w);
if(!w.isLoaded())w.onError(new OJ.ModuleLoadFailure(OJ.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,b,l.ids$jscomp$37,U))}))}})}}(H),(0,H.load$jscomp$1)())},Oev=function(X,H,l,b,U){b=b===void 0?function(){return!0}:b;
U=U===void 0?{}:U;H=_.C(H);for(var K=H.next();!K.done;K=H.next()){K=K.value;var w=X.getModuleInfo(K);!U[K]&&b(w)&&(U[K]=!0,Oev(X,w.deps_||[],l,b,U),l(w))}};var Q6D=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var EqO=Symbol("Cd");window.JSCompiler_renameProperty=function(X){return X};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Tu6=!Q6D||HTMLElement.es5Shimmed||_.ok.Reflect===void 0||_.ok.customElements===void 0||_.ok.customElements.polyfillWrapFlushCallback||!1,Nu_,K08=function(){var X=HTMLElement;if(Tu6)return X;if(Nu_!==void 0)return Nu_;var H=_.ok.Reflect,l=function(){return H.construct(X,[],this.constructor)};
l.prototype=X.prototype;l.prototype.constructor=l;l.es5Shimmed=!0;Object.setPrototypeOf(l,X);return Nu_=l},c2q=!1;Tu6||c2q||(c2q=!0,_.ok.HTMLElement=K08());/*

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 iGZ=/(url\()([^)]*)(\))/g,ash=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ZGh,XF;var EL=!window.ShadyDOM||!window.ShadyDOM.inUse,j6F=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),r2F=!window.customElements.polyfillWrapFlushCallback,J2G;if(J2G=EL&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Lh_=new CSSStyleSheet;Lh_.replaceSync("");var Yi9=document.createElement("div");Yi9.attachShadow({mode:"open"});Yi9.shadowRoot.adoptedStyleSheets=[Lh_];J2G=Yi9.shadowRoot.adoptedStyleSheets[0]===Lh_}catch(X){J2G=!1}
var IcQ=J2G,A2t=window.Polymer&&window.Polymer.rootPath||OGb(document.baseURI||window.location.href),sL=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Jvh=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,ZC=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,XcC=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Wj=window.Polymer&&window.Polymer.legacyOptimizations||!1,am=window.Polymer&&window.Polymer.legacyWarnings||!1,Hc_=window.Polymer&&window.Polymer.syncInitialRender||
!1,uz=window.Polymer&&window.Polymer.legacyUndefined||!1,lVG=window.Polymer&&window.Polymer.orderedComputed||!1,zH=window.Polymer&&window.Polymer.removeNestedTemplates||!1,nF=window.Polymer&&window.Polymer.fastDomIf||!1,k7=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,oDY=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,bcD=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var x7={},URz={},yL=function(){return HTMLElement.apply(this,arguments)||this};
_.S(yL,HTMLElement);yL.import=function(X,H){return X?(X=x7[X]||URz[X.toLowerCase()])&&H?X.querySelector(H):X:null};
yL.prototype.attributeChangedCallback=function(X,H,l){H!==l&&this.register()};
yL.prototype.register=function(X){if(X=X||this.id){if(ZC&&(x7[X]||URz[X.toLowerCase()])!==void 0)throw x7[X]=URz[X.toLowerCase()]=null,Error("Dd`"+X);this.id=X;x7[X]=URz[X.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.ja.Object.defineProperties(yL.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var X=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;X=_.Hj(this.getAttribute("assetpath")||"",X.baseURI);this.__assetpath=OGb(X)}return this.__assetpath}}});
_.ja.Object.defineProperties(yL,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
yL["import"]=yL.import;yL.prototype.modules=x7;customElements.define("dom-module",yL);var $RQ=0,QB8=0,lz=[],KrY=0,mfm=!1,R_C=document.createTextNode(""),C9F,DC;(new window.MutationObserver(TWN)).observe(R_C,{characterData:!0});_.DK={after:function(X){return{run:function(H){return window.setTimeout(H,X)},
cancel:function(H){window.clearTimeout(H)}}},
run:function(X,H){return window.setTimeout(X,H)},
cancel:function(X){window.clearTimeout(X)}};
_.R1={run:function(X){return window.requestAnimationFrame(X)},
cancel:function(X){window.cancelAnimationFrame(X)}};
C9F={run:function(X){return window.requestIdleCallback?window.requestIdleCallback(X):window.setTimeout(X,16)},
cancel:function(X){window.cancelIdleCallback?window.cancelIdleCallback(X):window.clearTimeout(X)}};
DC={run:function(X){mfm||(mfm=!0,R_C.textContent=KrY++);lz.push(X);return $RQ++},
cancel:function(X){var H=X-QB8;if(H>=0){if(!lz[H])throw Error("Ed`"+X);lz[H]=null}}};var wc_=0,tJ=function(X){var H=X.__mixinApplications;H||(H=new WeakMap,X.__mixinApplications=H);var l=wc_++;return function(b){var U=b.__mixinSet;if(U&&U[l])return b;var K=H,w=K.get(b);w||(w=X(b),K.set(b,w),b=Object.create(w.__mixinSet||U||null),b[l]=!0,w.__mixinSet=b);return w}};_.q0=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(X){return ShadyDOM.patch(X)}:function(X){return X};var dR9=tJ(function(X){var H=function(){var l=X.call(this)||this;l.__dataEnabled=!1;l.__dataReady=!1;l.__dataInvalid=!1;l.__data={};l.__dataPending=null;l.__dataOld=null;l.__dataInstanceProps=null;l.__dataCounter=0;l.__serializing=!1;l._initializeProperties();return l};
_.S(H,X);H.createProperties=function(l){var b=this.prototype,U;for(U in l)U in b||b._createPropertyAccessor(U)};
H.attributeNameForProperty=function(l){return l.toLowerCase()};
H.typeForProperty=function(){};
H.prototype._createPropertyAccessor=function(l,b){this._addPropertyToAttributeMap(l);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[l]||(this.__dataHasAccessor[l]=!0,this._definePropertyAccessor(l,b))};
H.prototype._addPropertyToAttributeMap=function(l){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var b=this.__dataAttributes[l];b||(b=this.constructor.attributeNameForProperty(l),this.__dataAttributes[b]=l);return b};
H.prototype._definePropertyAccessor=function(l,b){Object.defineProperty(this,l,{get:function(){return this.__data[l]},
set:b?function(){}:function(U){this._setPendingProperty(l,U,!0)&&this._invalidateProperties()}})};
H.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
H.prototype._initializeProperties=function(){for(var l in this.__dataHasAccessor)this.hasOwnProperty(l)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[l]=this[l],delete this[l])};
H.prototype._initializeInstanceProperties=function(l){Object.assign(this,l)};
H.prototype._setProperty=function(l,b){this._setPendingProperty(l,b)&&this._invalidateProperties()};
H.prototype._getProperty=function(l){return this.__data[l]};
H.prototype._setPendingProperty=function(l,b){var U=this.__data[l],K=this._shouldPropertyChange(l,b,U);K&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||l in this.__dataOld||(this.__dataOld[l]=U),this.__data[l]=b,this.__dataPending[l]=b);return K};
H.prototype._isPropertyPending=function(l){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(l))};
H.prototype._invalidateProperties=function(){var l=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,DC.run(function(){l.__dataInvalid&&(l.__dataInvalid=!1,l._flushProperties())}))};
H.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
H.prototype._flushProperties=function(){this.__dataCounter++;var l=this.__data,b=this.__dataPending,U=this.__dataOld;this._shouldPropertiesChange(l,b,U)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(l,b,U));this.__dataCounter--};
H.prototype._shouldPropertiesChange=function(l,b){return!!b};
H.prototype._propertiesChanged=function(){};
H.prototype._shouldPropertyChange=function(l,b,U){return U!==b&&(U===U||b===b)};
H.prototype.attributeChangedCallback=function(l,b,U,K){b!==U&&this._attributeToProperty(l,U);X.prototype.attributeChangedCallback&&X.prototype.attributeChangedCallback.call(this,l,b,U,K)};
H.prototype._attributeToProperty=function(l,b,U){if(!this.__serializing){var K=this.__dataAttributes;l=K&&K[l]||l;this[l]=this._deserializeValue(b,U||this.constructor.typeForProperty(l))}};
H.prototype._propertyToAttribute=function(l,b,U){this.__serializing=!0;U=arguments.length<3?this[l]:U;this._valueToNodeAttribute(this,U,b||this.constructor.attributeNameForProperty(l));this.__serializing=!1};
H.prototype._valueToNodeAttribute=function(l,b,U){b=this._serializeValue(b);if(U==="class"||U==="name"||U==="slot")l=(0,_.q0)(l);b===void 0?l.removeAttribute(U):l.setAttribute(U,b===""&&window.trustedTypes?window.trustedTypes.emptyScript:b)};
H.prototype._serializeValue=function(l){switch(typeof l){case "boolean":return l?"":void 0;default:return l!=null?l.toString():void 0}};
H.prototype._deserializeValue=function(l,b){switch(b){case Boolean:return l!==null;case Number:return Number(l);default:return l}};
return H});var h_F=0,NWO=[];var FrC=tJ(function(X){function H(K){K=Object.getPrototypeOf(K);return K.prototype instanceof U?K:null}
function l(K){if(!K.hasOwnProperty("__ownProperties")){var w=null;if(K.hasOwnProperty("properties")){var d=K.properties;if(d){w={};for(var B in d){var q=d[B];w[B]=typeof q==="function"?{type:q}:q}}}K.__ownProperties=w}return K.__ownProperties}
var b=dR9(X),U=function(){return b.apply(this,arguments)||this};
_.S(U,b);U.finalize=function(){if(!this.hasOwnProperty("__finalized")){var K=H(this);K&&K.finalize();this.__finalized=!0;this._finalizeClass()}};
U._finalizeClass=function(){var K=l(this);K&&this.createProperties(K)};
U.typeForProperty=function(K){return(K=this._properties[K])&&K.type};
U.prototype._initializeProperties=function(){h_F++;this.constructor.finalize();b.prototype._initializeProperties.call(this)};
U.prototype.connectedCallback=function(){b.prototype.connectedCallback&&b.prototype.connectedCallback.call(this);this._enableProperties()};
U.prototype.disconnectedCallback=function(){b.prototype.disconnectedCallback&&b.prototype.disconnectedCallback.call(this)};
_.ja.Object.defineProperties(U,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var K=this;if(!this.hasOwnProperty("__observedAttributes")){cGz(this.prototype);var w=this._properties;this.__observedAttributes=w?Object.keys(w).map(function(d){return K.prototype._addPropertyToAttributeMap(d)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var K=H(this);this.__properties=Object.assign({},K&&K._properties,l(this))}return this.__properties}}});
return U});var jBy={},rGN=/-[a-z]/g,JGb=/([A-Z])/g;for(var BT_={},qqz=HTMLElement.prototype;qqz;){for(var sit=Object.getOwnPropertyNames(qqz),MLY=0;MLY<sit.length;MLY++)BT_[sit[MLY]]=!0;qqz=Object.getPrototypeOf(qqz)}var uhH=window.trustedTypes?function(X){return trustedTypes.isHTML(X)||trustedTypes.isScript(X)||trustedTypes.isScriptURL(X)}:function(){return!1},e_G=tJ(function(X){var H=dR9(X);
X=function(){return H.apply(this,arguments)||this};
_.S(X,H);X.createPropertiesForAttributes=function(){for(var l=this.observedAttributes,b=0;b<l.length;b++)this.prototype._createPropertyAccessor(UL(l[b]))};
X.attributeNameForProperty=function(l){return $H(l)};
X.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);H.prototype._initializeProperties.call(this)};
X.prototype._initializeProtoProperties=function(l){for(var b in l)this._setProperty(b,l[b])};
X.prototype._ensureAttribute=function(l,b){this.hasAttribute(l)||this._valueToNodeAttribute(this,b,l)};
X.prototype._serializeValue=function(l){switch(typeof l){case "object":if(l instanceof Date)return l.toString();if(l){if(uhH(l))return l;try{return JSON.stringify(l)}catch(b){return""}}default:return H.prototype._serializeValue.call(this,l)}};
X.prototype._deserializeValue=function(l,b){switch(b){case Object:try{var U=JSON.parse(l)}catch(K){U=l}break;case Array:try{U=JSON.parse(l)}catch(K){U=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+l)}break;case Date:U=isNaN(l)?String(l):Number(l);U=new Date(U);break;default:U=H.prototype._deserializeValue.call(this,l,b)}return U};
X.prototype._definePropertyAccessor=function(l,b){if(!BT_[l]){var U=this[l];U!==void 0&&(this.__data?this._setPendingProperty(l,U):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[l]=U))}H.prototype._definePropertyAccessor.call(this,l,b)};
X.prototype._hasAccessor=function(l){return this.__dataHasAccessor&&this.__dataHasAccessor[l]};
X.prototype._isPropertyPending=function(l){return!!(this.__dataPending&&l in this.__dataPending)};
return X});var yFz={"dom-if":!0,"dom-repeat":!0},VLC=!1,P9q=!1,fVC=function(){var X=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(H){return H}});
return function(H,l,b){l=l.getAttribute(b);X&&b.startsWith("on-")?H.setAttribute(b,X.createScript(l,b)):H.setAttribute(b,l)}}(),pct=tJ(function(X){var H=function(){return X.apply(this,arguments)||this};
_.S(H,X);H._parseTemplate=function(l,b){if(!l._templateInfo){var U=l._templateInfo={};U.nodeInfoList=[];U.nestedTemplate=!!b;U.stripWhiteSpace=b&&b.stripWhiteSpace||l.hasAttribute&&l.hasAttribute("strip-whitespace");this._parseTemplateContent(l,U,{parent:null})}return l._templateInfo};
H._parseTemplateContent=function(l,b,U){return this._parseTemplateNode(l.content,b,U)};
H._parseTemplateNode=function(l,b,U){var K=!1;l.localName!="template"||l.hasAttribute("preserve-content")?l.localName==="slot"&&(b.hasInsertionPoint=!0):K=this._parseTemplateNestedTemplate(l,b,U)||K;if(!VLC){VLC=!0;var w=document.createElement("textarea");w.placeholder="a";P9q=w.placeholder===w.textContent}P9q&&l.localName==="textarea"&&l.placeholder&&l.placeholder===l.textContent&&(l.textContent=null);l.firstChild&&this._parseTemplateChildNodes(l,b,U);l.hasAttributes&&l.hasAttributes()&&(K=this._parseTemplateNodeAttributes(l,
b,U)||K);return K||U.noted};
H._parseTemplateChildNodes=function(l,b,U){if(l.localName!=="script"&&l.localName!=="style")for(var K=l.firstChild,w=0,d;K;K=d){if(K.localName=="template"){var B=K.getAttribute("is");if(B&&yFz[B])for(d=K,d.removeAttribute("is"),K=d.ownerDocument.createElement(B),d.parentNode.replaceChild(K,d),K.appendChild(d);d.attributes.length;)B=d.attributes[0].name,fVC(K,d,B),d.removeAttribute(B)}d=K.nextSibling;if(K.nodeType===Node.TEXT_NODE){for(B=d;B&&B.nodeType===Node.TEXT_NODE;)K.textContent+=B.textContent,
d=B.nextSibling,l.removeChild(B),B=d;if(b.stripWhiteSpace&&!K.textContent.trim()){l.removeChild(K);continue}}B={parentIndex:w,parentInfo:U};this._parseTemplateNode(K,b,B)&&(B.infoIndex=b.nodeInfoList.push(B)-1);K.parentNode&&w++}};
H._parseTemplateNestedTemplate=function(l,b,U){b=this._parseTemplate(l,b);(b.content=l.content.ownerDocument.createDocumentFragment()).appendChild(l.content);U.templateInfo=b;return!0};
H._parseTemplateNodeAttributes=function(l,b,U){for(var K=!1,w=Array.from(l.attributes),d=w.length-1,B;B=w[d];d--)K=this._parseTemplateNodeAttribute(l,b,U,B.name,B.value)||K;return K};
H._parseTemplateNodeAttribute=function(l,b,U,K,w){return K.slice(0,3)==="on-"?(l.removeAttribute(K),U.events=U.events||[],U.events.push({name:K.slice(3),value:w}),!0):K==="id"?(U.id=w,!0):!1};
H._contentForTemplate=function(l){var b=l._templateInfo;return b&&b.content||l.content};
H.prototype._stampTemplate=function(l,b){l&&!l.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(l);b=b||this.constructor._parseTemplate(l);var U=b.nodeInfoList;l=document.importNode(b.content||l.content,!0);l.__noInsertionPoint=!b.hasInsertionPoint;var K=l.nodeList=Array(U.length);l.$={};for(var w=0,d=U.length,B=void 0;w<d&&(B=U[w]);w++){var q=K[w]=L9b(l,B);B.id&&(l.$[B.id]=q);var u=q,e=B,y=b;e.templateInfo&&(u._templateInfo=e.templateInfo,u._parentTemplateInfo=
y);if(B.events&&B.events.length)for(u=0,e=B.events,y=void 0;u<e.length&&(y=e[u]);u++)this._addMethodEventListenerToNode(q,y.name,y.value,this)}return l};
H.prototype._addMethodEventListenerToNode=function(l,b,U,K){U=YFl(K||l,U);this._addEventListenerToNode(l,b,U);return U};
H.prototype._addEventListenerToNode=function(l,b,U){l.addEventListener(b,U)};
H.prototype._removeEventListenerFromNode=function(l,b,U){l.removeEventListener(b,U)};
return H});var FF=0,M0=[],SqC={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},z__=/[A-Z]/,nD9=function(X,H,l,b,U){var K=U?Rm(X):X;if(H=H[K])for(K=0;K<H.length;K++){var w=H[K];if(w.info.lastRun!==FF&&(!U||oib(X,w.trigger))){w.info.lastRun=FF;w=w.info;for(var d=l,B=b,q=0,u=d.length-1,e=-1;q<=u;){var y=q+u>>1,V=B.get(d[y].methodInfo)-B.get(w.methodInfo);if(V<0)q=y+1;else if(V>0)u=y-1;else{e=y;break}}e<
0&&(e=u+1);d.splice(e,0,w)}}},ukO=[],kxH=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"),E1=tJ(function(X){var H=pct(e_G(X));
X=function(){var l=H.call(this)||this;l.__isPropertyEffectsClient=!0;return l};
_.S(X,H);X.prototype._initializeProperties=function(){H.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
X.prototype._registerHost=function(){if(WG.length){var l=WG[WG.length-1];l._enqueueClient(this);this.__dataHost=l}};
X.prototype._initializeProtoProperties=function(l){this.__data=Object.create(l);this.__dataPending=Object.create(l);this.__dataOld={}};
X.prototype._initializeInstanceProperties=function(l){var b=this.__readOnly,U;for(U in l)b&&b[U]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[U]=this.__dataPending[U]=l[U])};
X.prototype._addPropertyEffect=function(l,b,U){this._createPropertyAccessor(l,b=="__readOnly");var K=lFZ(this,b,!0)[l];K||(K=this[b][l]=[]);K.push(U)};
X.prototype._removePropertyEffect=function(l,b,U){l=lFZ(this,b,!0)[l];U=l.indexOf(U);U>=0&&l.splice(U,1)};
X.prototype._hasPropertyEffect=function(l,b){b=this[b];return!(!b||!b[l])};
X.prototype._hasReadOnlyEffect=function(l){return this._hasPropertyEffect(l,"__readOnly")};
X.prototype._hasNotifyEffect=function(l){return this._hasPropertyEffect(l,"__notifyEffects")};
X.prototype._hasReflectEffect=function(l){return this._hasPropertyEffect(l,"__reflectEffects")};
X.prototype._hasComputedEffect=function(l){return this._hasPropertyEffect(l,"__computeEffects")};
X.prototype._setPendingPropertyOrPath=function(l,b,U,K){if(K||Rm(Array.isArray(l)?l[0]:l)!==l){if(!K&&(K=hh(this,l),l=H9k(this,l,b),!l||!H.prototype._shouldPropertyChange.call(this,l,b,K)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(l,b,U)){if(U=this.__dataLinkedPaths)for(var w in U)K=U[w],Ci(w,l)?(K=ww(w,K,l),this._setPendingPropertyOrPath(K,b,!0,!0)):Ci(K,l)&&(K=ww(K,w,l),this._setPendingPropertyOrPath(K,b,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[l])return this._setPendingProperty(l,
b,U);this[l]=b}return!1};
X.prototype._setUnmanagedPropertyToNode=function(l,b,U){if(U!==l[b]||typeof U=="object")b==="className"&&(l=(0,_.q0)(l)),l[b]=U};
X.prototype._setPendingProperty=function(l,b,U){var K=this.__dataHasPaths&&Ki(l);if(this._shouldPropertyChange(l,b,(K?this.__dataTemp:this.__data)[l])){this.__dataPending||(this.__dataPending={},this.__dataOld={});l in this.__dataOld||(this.__dataOld[l]=this.__data[l]);K?this.__dataTemp[l]=b:this.__data[l]=b;this.__dataPending[l]=b;if(K||this.__notifyEffects&&this.__notifyEffects[l])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[l]=U;return!0}return!1};
X.prototype._setProperty=function(l,b){this._setPendingProperty(l,b,!0)&&this._invalidateProperties()};
X.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
X.prototype._enqueueClient=function(l){this.__dataPendingClients=this.__dataPendingClients||[];l!==this&&this.__dataPendingClients.push(l)};
X.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
X.prototype.__enableOrFlushClients=function(){var l=this.__dataPendingClients;if(l){this.__dataPendingClients=null;for(var b=0;b<l.length;b++){var U=l[b];U.__dataEnabled?U.__dataPending&&U._flushProperties():U._enableProperties()}}};
X.prototype._readyClients=function(){this.__enableOrFlushClients()};
X.prototype.setProperties=function(l,b){for(var U in l)!b&&this.__readOnly&&this.__readOnly[U]||this._setPendingPropertyOrPath(U,l[U],!0);this._invalidateProperties()};
X.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
X.prototype._propertiesChanged=function(l,b,U){l=this.__dataHasPaths;this.__dataHasPaths=!1;var K;if(K=this.__computeEffects)if(lVG){FF++;var w=Cpz(this),d=[],B;for(B in b)nD9(B,K,d,w,l);for(;B=d.shift();)dVm(this,"",b,U,B)&&nD9(B.methodInfo,K,d,w,l);Object.assign(U,this.__dataOld);Object.assign(b,this.__dataPending);this.__dataPending=null}else for(w=b;Bj(this,K,w,U,l);)Object.assign(U,this.__dataOld),Object.assign(b,this.__dataPending),w=this.__dataPending,this.__dataPending=null;K=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(b,U,l);this._flushClients();Bj(this,this.__reflectEffects,b,U,l);Bj(this,this.__observeEffects,b,U,l);if(K){w=this.__notifyEffects;d=FF++;for(var q in K)if(K[q]){if(B=w){var u=w;B=d;var e=q,y=b,V=U,p=l,z=!1,t=p?Rm(e):e;if(u=u[t]){t=0;for(var W=u.length,G=void 0;t<W&&(G=u[t]);t++)G.info&&G.info.lastRun===B||p&&!oib(e,G.trigger)||(G.info&&(G.info.lastRun=B),G.fn(this,e,y,V,G.info,p,void 0),z=!0)}B=z}if(B)var r=!0;else{if(B=l)B=q,e=b,y=Rm(B),y!==
B?(y=$H(y)+"-changed",UVk(this,y,e[B],B),B=!0):B=!1;B&&(r=!0)}}var Q;r&&(Q=this.__dataHost)&&Q._invalidateProperties&&Q._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
X.prototype._propagatePropertyChanges=function(l,b,U){this.__propagateEffects&&Bj(this,this.__propagateEffects,l,b,U);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,l,b,U)};
X.prototype._runEffectsForTemplate=function(l,b,U,K){var w=this,d=function(B,q){Bj(w,l.propertyEffects,B,U,q,l.nodeList);for(var u=l.firstChild;u;u=u.nextSibling)w._runEffectsForTemplate(u,B,U,q)};
l.runEffects?l.runEffects(d,b,K):d(b,K)};
X.prototype.linkPaths=function(l,b){l=dw(l);b=dw(b);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[l]=b};
X.prototype.unlinkPaths=function(l){l=dw(l);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[l]};
X.prototype.notifySplices=function(l,b){var U={path:""};l=hh(this,l,U);PpL(this,l,U.path,b)};
X.prototype.get=function(l,b){return hh(b||this,l)};
X.prototype.set=function(l,b,U){U?H9k(U,l,b):this.__readOnly&&this.__readOnly[l]||this._setPendingPropertyOrPath(l,b,!0)&&this._invalidateProperties()};
X.prototype.push=function(l){var b=_.Ab.apply(1,arguments),U={path:""},K=hh(this,l,U),w=K.length,d=K.push.apply(K,_.LJ(b));b.length&&ea(this,K,U.path,w,b.length,[]);return d};
X.prototype.pop=function(l){var b={path:""};l=hh(this,l,b);var U=!!l.length,K=l.pop();U&&ea(this,l,b.path,l.length,0,[K]);return K};
X.prototype.splice=function(l,b,U){var K=_.Ab.apply(3,arguments),w={path:""},d=hh(this,l,w);b<0?b=d.length-Math.floor(-b):b&&(b=Math.floor(b));var B=arguments.length===2?d.splice(b):d.splice.apply(d,[b,U].concat(_.LJ(K)));(K.length||B.length)&&ea(this,d,w.path,b,K.length,B);return B};
X.prototype.shift=function(l){var b={path:""};l=hh(this,l,b);var U=!!l.length,K=l.shift();U&&ea(this,l,b.path,0,0,[K]);return K};
X.prototype.unshift=function(l){var b=_.Ab.apply(1,arguments),U={path:""},K=hh(this,l,U),w=K.unshift.apply(K,_.LJ(b));b.length&&ea(this,K,U.path,0,b.length,[]);return w};
X.prototype.notifyPath=function(l,b){if(arguments.length==1){var U={path:""};b=hh(this,l,U);U=U.path}else U=Array.isArray(l)?dw(l):l;this._setPendingPropertyOrPath(U,b,!0,!0)&&this._invalidateProperties()};
X.prototype._createReadOnlyProperty=function(l,b){this._addPropertyEffect(l,"__readOnly");b&&(this["_set"+(l[0].toUpperCase()+l.substring(1))]=function(U){this._setProperty(l,U)})};
X.prototype._createPropertyObserver=function(l,b,U){var K={property:l,method:b,dynamicFn:!!U};this._addPropertyEffect(l,"__observeEffects",{fn:b9N,info:K,trigger:{name:l}});U&&this._addPropertyEffect(b,"__observeEffects",{fn:b9N,info:K,trigger:{name:b}})};
X.prototype._createMethodObserver=function(l,b){var U=yvm(l);if(!U)throw Error("Fd`"+l);sJO(this,U,"__observeEffects",w8k,null,b)};
X.prototype._createNotifyingProperty=function(l){this._addPropertyEffect(l,"__notifyEffects",{fn:$Vz,info:{eventName:$H(l)+"-changed",property:l}})};
X.prototype._createReflectedProperty=function(l){var b=this.constructor.attributeNameForProperty(l);b[0]==="-"?console.warn("Property "+l+" cannot be reflected to attribute "+b+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(l,"__reflectEffects",{fn:KiZ,info:{attrName:b}})};
X.prototype._createComputedProperty=function(l,b,U){var K=yvm(b);if(!K)throw Error("Gd`"+b);b=sJO(this,K,"__computeEffects",dVm,l,U);lFZ(this,"__computeInfo")[l]=b};
X.prototype._marshalArgs=function(l,b,U){for(var K=this.__data,w=[],d=0,B=l.length;d<B;d++){var q=l[d],u=q.name,e=q.structured,y=q.wildcard,V=q.value;q.literal||(y?(q=Ci(u,b),e=VYb(K,U,q?b:u),V={path:q?b:u,value:e,base:q?hh(K,u):e}):V=e?VYb(K,U,u):K[u]);if(uz&&!this._overrideLegacyUndefined&&V===void 0&&l.length>1)return M0;w[d]=V}return w};
X.addPropertyEffect=function(l,b,U){this.prototype._addPropertyEffect(l,b,U)};
X.createPropertyObserver=function(l,b,U){this.prototype._createPropertyObserver(l,b,U)};
X.createMethodObserver=function(l,b){this.prototype._createMethodObserver(l,b)};
X.createNotifyingProperty=function(l){this.prototype._createNotifyingProperty(l)};
X.createReadOnlyProperty=function(l,b){this.prototype._createReadOnlyProperty(l,b)};
X.createReflectedProperty=function(l){this.prototype._createReflectedProperty(l)};
X.createComputedProperty=function(l,b,U){this.prototype._createComputedProperty(l,b,U)};
X.bindTemplate=function(l){return this.prototype._bindTemplate(l)};
X.prototype._bindTemplate=function(l,b){var U=this.constructor._parseTemplate(l),K=this.__preBoundTemplateInfo==U;if(!K)for(var w in U.propertyEffects)this._createPropertyAccessor(w);b?(U=Object.create(U),U.wasPreBound=K,this.__templateInfo?(l=l._parentTemplateInfo||this.__templateInfo,b=l.lastChild,U.parent=l,l.lastChild=U,(U.previousSibling=b)?b.nextSibling=U:l.firstChild=U):this.__templateInfo=U):this.__preBoundTemplateInfo=U;return U};
X._addTemplatePropertyEffect=function(l,b,U){(l.hostProps=l.hostProps||{})[b]=!0;l=l.propertyEffects=l.propertyEffects||{};(l[b]=l[b]||[]).push(U)};
X.prototype._stampTemplate=function(l,b){b=b||this._bindTemplate(l,!0);WG.push(this);l=H.prototype._stampTemplate.call(this,l,b);WG.pop();b.nodeList=l.nodeList;if(!b.wasPreBound)for(var U=b.childNodes=[],K=l.firstChild;K;K=K.nextSibling)U.push(K);l.templateInfo=b;U=b.nodeList;K=b.nodeInfoList;if(K.length)for(var w=0;w<K.length;w++){var d=U[w],B=K[w].bindings;if(B)for(var q=0;q<B.length;q++){var u=B[q],e=d,y=u;if(y.isCompound){for(var V=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),p=y.parts,
z=Array(p.length),t=0;t<p.length;t++)z[t]=p[t].literal;p=y.target;V[p]=z;y.literal&&y.kind=="property"&&(p==="className"&&(e=(0,_.q0)(e)),e[p]=y.literal)}qJN(d,this,u)}d.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(b,this.__data,null,!1),this._flushClients());return l};
X.prototype._removeBoundDom=function(l){l=l.templateInfo;var b=l.previousSibling,U=l.nextSibling,K=l.parent;b?b.nextSibling=U:K&&(K.firstChild=U);U?U.previousSibling=b:K&&(K.lastChild=b);l.nextSibling=l.previousSibling=null;l=l.childNodes;for(b=0;b<l.length;b++)U=l[b],(0,_.q0)((0,_.q0)(U).parentNode).removeChild(U)};
X._parseTemplateNode=function(l,b,U){var K=H._parseTemplateNode.call(this,l,b,U);if(l.nodeType===Node.TEXT_NODE){var w=this._parseBindings(l.textContent,b);w&&(l.textContent=MYz(w)||" ",Bky(this,b,U,"text","textContent",w),K=!0)}return K};
X._parseTemplateNodeAttribute=function(l,b,U,K,w){var d=this._parseBindings(w,b);if(d){w=K;var B="property";z__.test(K)?B="attribute":K[K.length-1]=="$"&&(K=K.slice(0,-1),B="attribute");var q=MYz(d);q&&B=="attribute"&&(K=="class"&&l.hasAttribute("class")&&(q+=" "+l.getAttribute(K)),l.setAttribute(K,q));B=="attribute"&&w=="disable-upgrade$"&&l.setAttribute(K,"");l.localName==="input"&&w==="value"&&l.setAttribute(w,"");l.removeAttribute(w);B==="property"&&(K=UL(K));Bky(this,b,U,B,K,d,q);return!0}return H._parseTemplateNodeAttribute.call(this,
l,b,U,K,w)};
X._parseTemplateNestedTemplate=function(l,b,U){var K=H._parseTemplateNestedTemplate.call(this,l,b,U),w=l.parentNode,d=U.templateInfo,B=w.localName==="dom-if",q=w.localName==="dom-repeat";zH&&(B||q)&&(w.removeChild(l),U=U.parentInfo,U.templateInfo=d,U.noted=!0,K=!1);l=d.hostProps;if(nF&&B)l&&(b.hostProps=Object.assign(b.hostProps||{},l),zH||(U.parentInfo.noted=!0));else for(var u in l)Bky(this,b,U,"property","_host_"+u,[{mode:"{",source:u,dependencies:[u],hostProp:!0}]);return K};
X._parseBindings=function(l,b){for(var U=[],K=0,w;(w=kxH.exec(l))!==null;){w.index>K&&U.push({literal:l.slice(K,w.index)});K=w[1][0];var d=!!w[2];w=w[3].trim();var B=!1,q="",u=-1;K=="{"&&(u=w.indexOf("::"))>0&&(q=w.substring(u+2),w=w.substring(0,u),B=!0);u=yvm(w);var e=[];if(u){var y=u,V=y.args;y=y.methodName;for(var p=0;p<V.length;p++){var z=V[p];z.literal||e.push(z)}if((V=b.dynamicFns)&&V[y]||u.static)e.push(y),u.dynamicFn=!0}else e.push(w);U.push({source:w,mode:K,negate:d,customEvent:B,signature:u,
dependencies:e,event:q});K=kxH.lastIndex}K&&K<l.length&&(l=l.substring(K))&&U.push({literal:l});return U.length?U:null};
X._evaluateBinding=function(l,b,U,K,w,d){l=b.signature?w8k(l,U,K,w,b.signature):U!=b.source?hh(l,b.source):d&&Ki(U)?hh(l,U):l.__data[U];b.negate&&(l=!l);return l};
_.ja.Object.defineProperties(X.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return SqC}}});
return X}),WG=[];var xRD=window.ShadyCSS&&window.ShadyCSS.cssBuild,gb=tJ(function(X){function H(b,U,K,w){if(!xRD){for(var d=U.content.querySelectorAll("style"),B=zEK(U),q=niy(K),u=U.content.firstElementChild,e=0;e<q.length;e++){var y=q[e];y.textContent=b._processStyleText(y.textContent,w);U.content.insertBefore(y,u)}for(u=q=0;u<B.length;u++)e=B[u],y=d[q],y!==e?(e=e.cloneNode(!0),y.parentNode.insertBefore(e,y)):q++,e.textContent=b._processStyleText(e.textContent,w)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(U,
K);if(bcD&&xRD&&IcQ&&(U=U.content.querySelectorAll("style"))){var V="";Array.from(U).forEach(function(p){V+=p.textContent;p.parentNode.removeChild(p)});
b._styleSheet=new CSSStyleSheet;b._styleSheet.replaceSync(V)}}
var l=FrC(E1(X));X=function(){return l.call(this)||this};
_.S(X,l);X._finalizeClass=function(){l._finalizeClass.call(this);var b;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(b=this.__ownObservers)&&this.createObservers(b,this._properties);this._prepareTemplate()};
X._prepareTemplate=function(){var b=this.template;b&&(typeof b==="string"?(console.error("template getter must return HTMLTemplateElement"),b=null):Wj||(b=b.cloneNode(!0)));this.prototype._template=b};
X.createProperties=function(b){for(var U in b){var K=this.prototype,w=U,d=b[U],B=b;d.computed&&(d.readOnly=!0);d.computed&&(K._hasReadOnlyEffect(w)?console.warn("Cannot redefine computed property '"+w+"'."):K._createComputedProperty(w,d.computed,B));d.readOnly&&!K._hasReadOnlyEffect(w)?K._createReadOnlyProperty(w,!d.computed):d.readOnly===!1&&K._hasReadOnlyEffect(w)&&console.warn("Cannot make readOnly property '"+w+"' non-readOnly.");d.reflectToAttribute&&!K._hasReflectEffect(w)?K._createReflectedProperty(w):
d.reflectToAttribute===!1&&K._hasReflectEffect(w)&&console.warn("Cannot make reflected property '"+w+"' non-reflected.");d.notify&&!K._hasNotifyEffect(w)?K._createNotifyingProperty(w):d.notify===!1&&K._hasNotifyEffect(w)&&console.warn("Cannot make notify property '"+w+"' non-notify.");d.observer&&K._createPropertyObserver(w,d.observer,B[d.observer]);K._addPropertyToAttributeMap(w)}};
X.createObservers=function(b,U){for(var K=this.prototype,w=0;w<b.length;w++)K._createMethodObserver(b[w],U)};
X.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);l.prototype._initializeProperties.call(this);this.rootPath=A2t;this.importPath=this.constructor.importPath;var b=this.constructor;if(!b.hasOwnProperty("__propertyDefaults")){b.__propertyDefaults=null;var U=b._properties,K;for(K in U){var w=U[K];"value"in w&&(b.__propertyDefaults=b.__propertyDefaults||{},b.__propertyDefaults[K]=w)}}if(b=b.__propertyDefaults)for(var d in b)U=b[d],
this._canApplyPropertyDefault(d)&&(U=typeof U.value=="function"?U.value.call(this):U.value,this._hasAccessor(d)?this._setPendingProperty(d,U,!0):this[d]=U)};
X.prototype._canApplyPropertyDefault=function(b){return!this.hasOwnProperty(b)};
X._processStyleText=function(b,U){return vqy(b,U)};
X._finalizeTemplate=function(b){var U=this.prototype._template;if(U&&!U.__polymerFinalized){U.__polymerFinalized=!0;var K=this.importPath;K=K?_.Hj(K):"";H(this,U,b,K);this.prototype._bindTemplate(U)}};
X.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);l.prototype.connectedCallback.call(this)};
X.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);l.prototype.ready.call(this)};
X.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));l.prototype._readyClients.call(this)};
X.prototype._attachDom=function(b){var U=(0,_.q0)(this);if(U.attachShadow)return b?(U.shadowRoot||(U.attachShadow({mode:"open",shadyUpgradeFragment:b}),U.shadowRoot.appendChild(b),this.constructor._styleSheet&&(U.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Hc_&&window.ShadyDOM&&window.ShadyDOM.flushInitial(U.shadowRoot),U.shadowRoot):null;throw Error("Id");};
X.prototype.updateStyles=function(b){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,b)};
X.prototype.resolveUrl=function(b,U){!U&&this.importPath&&(U=_.Hj(this.importPath));return _.Hj(b,U)};
X._parseTemplateContent=function(b,U,K){U.dynamicFns=U.dynamicFns||this._properties;return l._parseTemplateContent.call(this,b,U,K)};
X._addTemplatePropertyEffect=function(b,U,K){!am||U in this._properties||K.info.part.signature&&K.info.part.signature.static||K.info.part.hostProp||b.nestedTemplate||console.warn("Property '"+U+"' used in template but not declared in 'properties'; attribute will not be observed.");return l._addTemplatePropertyEffect.call(this,b,U,K)};
_.ja.Object.defineProperties(X,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var b=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof b==="function"&&(b=b());if(b===void 0){if(b=this.hasOwnProperty("is")){b=this.is;var U=null;if(b&&(!ZC||XcC)&&(U=yL.import(b,"template"),ZC&&!U))throw Error("Hd`"+b);b=U}b=b||Object.getPrototypeOf(this.prototype).constructor.template}this._template=b}return this._template},
set:function(b){this._template=b}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var b=this.importMeta;b?this._importPath=OGb(b.url):this._importPath=(b=yL.import(this.is))&&b.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return X});var DRz=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(X){return X}}),giy=function(X,H){tLF(X,H);
this.value=H.reduce(function(l,b,U){return l+Goz(b)+X[U+1]},X[0]).toString()},tLF;
giy.prototype.toString=function(){return this.value};
_.WrH=function(X){var H=_.Ab.apply(1,arguments);tLF(X,H);var l=document.createElement("template");H=H.reduce(function(b,U,K){if(U instanceof HTMLTemplateElement)U=U.innerHTML;else if(U instanceof giy)U=Goz(U);else throw Error("Kd`"+U);return b+U+X[K+1]},X[0]);
DRz&&(H=DRz.createHTML(H));l.innerHTML=H;return l};
tLF=function(X,H){if(!Array.isArray(X)||!Array.isArray(X.raw)||H.length!==X.length-1)throw new TypeError("Ld");};var GH=gb(HTMLElement);var ED9=tJ(function(X){var H=gb(X);X=function(){var l=H.call(this)||this;l.__lastItems=null;l.__lastMulti=null;l.__selectedMap=null;return l};
_.S(X,H);X.prototype.__updateSelection=function(l,b){var U=b.path;U=="items"?(b=b.base||[],U=this.__lastItems,l!==this.__lastMulti&&this.clearSelection(),U&&(U=Eih(b,U),this.__applySplices(U)),this.__lastItems=b,this.__lastMulti=l):b.path=="items.splices"?this.__applySplices(b.value.indexSplices):(l=U.slice(6),b=parseInt(l,10),l.indexOf(".")<0&&l==b&&this.__deselectChangedIdx(b))};
X.prototype.__applySplices=function(l){for(var b=this,U=this.__selectedMap,K={},w=0;w<l.length;K={s$jscomp$109:void 0},w++){K.s$jscomp$109=l[w];U.forEach(function(u){return function(e,y){e<u.s$jscomp$109.index||(e>=u.s$jscomp$109.index+u.s$jscomp$109.removed.length?U.set(y,e+u.s$jscomp$109.addedCount-u.s$jscomp$109.removed.length):U.set(y,-1))}}(K));
for(var d=0;d<K.s$jscomp$109.addedCount;d++){var B=K.s$jscomp$109.index+d;U.has(this.items[B])&&U.set(this.items[B],B)}}this.__updateLinks();var q=0;U.forEach(function(u,e){u<0?(b.multi?b.splice("selected",q,1):b.selected=b.selectedItem=null,U.delete(e)):q++})};
X.prototype.__updateLinks=function(){var l=this;this.__dataLinkedPaths={};if(this.multi){var b=0;this.__selectedMap.forEach(function(U){U>=0&&l.linkPaths("items."+U,"selected."+b++)})}else this.__selectedMap.forEach(function(U){l.linkPaths("selected","items."+U);
l.linkPaths("selectedItem","items."+U)})};
X.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
X.prototype.isSelected=function(l){return this.__selectedMap.has(l)};
X.prototype.isIndexSelected=function(l){return this.isSelected(this.items[l])};
X.prototype.__deselectChangedIdx=function(l){var b=this,U=this.__selectedIndexForItemIndex(l);if(U>=0){var K=0;this.__selectedMap.forEach(function(w,d){U==K++&&b.deselect(d)})}};
X.prototype.__selectedIndexForItemIndex=function(l){if(l=this.__dataLinkedPaths["items."+l])return parseInt(l.slice(9),10)};
X.prototype.deselect=function(l){var b=this.__selectedMap.get(l);if(b>=0){this.__selectedMap.delete(l);var U;this.multi&&(U=this.__selectedIndexForItemIndex(b));this.__updateLinks();this.multi?this.splice("selected",U,1):this.selected=this.selectedItem=null}};
X.prototype.deselectIndex=function(l){this.deselect(this.items[l])};
X.prototype.select=function(l){this.selectIndex(this.items.indexOf(l))};
X.prototype.selectIndex=function(l){var b=this.items[l];this.isSelected(b)?this.toggle&&this.deselectIndex(l):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(b,l),this.__updateLinks(),this.multi?this.push("selected",b):this.selected=this.selectedItem=b)};
_.ja.Object.defineProperties(X,{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 X}),gDF=ED9(GH),aR=function(){return gDF.apply(this,arguments)||this};
_.S(aR,gDF);_.ja.Object.defineProperties(aR,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(aR.is,aR);var Gx_=window.Polymer;window.Polymer=function(X){return window.Polymer._polymerFn(X)};
Gx_&&Object.assign(Polymer,Gx_);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:vqy,resolveUrl:_.Hj,pathFromUrl:OGb};Polymer.DomModule=yL;Polymer.Async={timeOut:_.DK,animationFrame:_.R1,idlePeriod:C9F,microTask:DC};Polymer.dedupingMixin=tJ;Polymer.wrap=_.q0;Polymer.PropertiesChanged=dR9;Polymer.telemetry={instanceCount:h_F,incrementInstanceCount:function(){h_F++},
registrations:NWO,register:cGz,dumpRegistrations:function(){NWO.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=FrC;Polymer.CaseMap={dashToCamelCase:UL,camelToDashCase:$H};Polymer.PropertyAccessors=e_G;Polymer.TemplateStamp=pct;Polymer.Path={isPath:Ki,root:Rm,isAncestor:Is8,isDescendant:Ci,translate:ww,matches:AGO,normalize:dw,split:X8N,get:hh,set:H9k,isDeep:Ki};Polymer.Settings={useShadow:EL,useNativeCSSProperties:j6F,useNativeCustomElements:r2F,get rootPath(){return A2t},setRootPath:function(X){A2t=X},
get sanitizeDOMValue(){return sL},setSanitizeDOMValue:function(X){sL=X},
get passiveTouchGestures(){return Jvh},setPassiveTouchGestures:function(X){Jvh=X},
get strictTemplatePolicy(){return ZC},setStrictTemplatePolicy:function(X){ZC=X},
get allowTemplateFromDomModule(){return XcC},setAllowTemplateFromDomModule:function(X){XcC=X},
get legacyOptimizations(){return Wj},setLegacyOptimizations:function(X){Wj=X},
get syncInitialRender(){return Hc_},setSyncInitialRender:function(X){Hc_=X},
get legacyUndefined(){return uz},setLegacyUndefined:function(X){uz=X},
get legacyWarnings(){return am},setLegacyWarnings:function(X){am=X},
get orderedComputed(){return lVG},setOrderedComputed:function(X){lVG=X},
get fastDomIf(){return nF},setFastDomIf:function(X){nF=X},
get removeNestedTemplates(){return zH},setRemoveNestedTemplates:function(X){zH=X},
get suppressTemplateNotifications(){return k7},setSuppressTemplateNotifications:k7};Polymer.rootPath!==void 0&&(A2t=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(sL=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(Jvh=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(ZC=Polymer.strictTemplatePolicy);XcC=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Wj=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(Hc_=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(uz=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(am=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(lVG=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(nF=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(zH=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(k7=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return sL},
set:function(X){sL=X}});Polymer.PropertyEffects=E1;Polymer.StyleGather={stylesFromModules:SJh,stylesFromModule:p8y,stylesFromTemplate:zEK,stylesFromModuleImports:niy,cssFromModules:xVy,cssFromModule:ko8,cssFromTemplate:DVW,cssFromModuleImports:function(X){return(X=yL.import(X))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(X):""}};Polymer.ElementMixin=gb;Polymer.updateStyles=function(X){window.ShadyCSS&&window.ShadyCSS.styleDocument(X)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Eih};Polymer.html=_.WrH;Polymer.htmlLiteral=function(X){return new giy(X,_.Ab.apply(1,arguments))};Polymer.Element=GH;Polymer.ArraySelectorMixin=ED9;Polymer.ArraySelector=aR;var aVC=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Zct=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,qQZ=/@media\s(.*)/;var vi8=null,i9b=window.HTMLImports&&window.HTMLImports.whenReady||null,O9Z;var ict=null,ZK=null,iw=function(){this.customStyles=[];this.enqueued=!1;mVm(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},vD6=function(X){!X.enqueued&&ZK&&(X.enqueued=!0,mVm(ZK))};
iw.prototype.addCustomStyle=function(X){X.__seenByShadyCSS||(X.__seenByShadyCSS=!0,this.customStyles.push(X),vD6(this))};
iw.prototype.getStyleForCustomStyle=function(X){if(X.__shadyCSSCachedStyle)return X.__shadyCSSCachedStyle;var H;X.getStyle?H=X.getStyle():H=X;return H};
iw.prototype.processStyles=function(){for(var X=this.customStyles,H=0;H<X.length;H++){var l=X[H];if(!l.__shadyCSSCachedStyle){var b=this.getStyleForCustomStyle(l);b&&(b=b.__appliedElement||b,ict&&ict(b),l.__shadyCSSCachedStyle=b)}}return X};
iw.prototype.addCustomStyle=iw.prototype.addCustomStyle;iw.prototype.getStyleForCustomStyle=iw.prototype.getStyleForCustomStyle;iw.prototype.processStyles=iw.prototype.processStyles;Object.defineProperties(iw.prototype,{transformCallback:{get:function(){return ict},
set:function(X){ict=X}},
validateCallback:{get:function(){return ZK},
set:function(X){var H=!1;ZK||(H=!0);ZK=X;H&&vD6(this)}}});var Tky=!(window.ShadyDOM&&window.ShadyDOM.inUse),QJy,cj;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(cj=window.ShadyCSS.cssBuild);var OcY=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?QJy=window.ShadyCSS.nativeCss:window.ShadyCSS?(Nkm(window.ShadyCSS),window.ShadyCSS=void 0):Nkm(window.WebComponents&&window.WebComponents.flags);var hIb=QJy;var mRt=new iw;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(X,H){mRt.processStyles();aFK(X,H)},
styleElement:function(){mRt.processStyles()},
styleDocument:function(X){mRt.processStyles();aFK(document.body,X)},
getComputedStyleValue:function(X,H){return Z9m(X,H)},
flushCustomStyles:function(){},
nativeCss:hIb,nativeShadow:Tky,cssBuild:cj,disableRuntime:OcY});window.ShadyCSS.CustomStyleInterface=mRt;var QiQ=window.ShadyCSS.CustomStyleInterface,vG=function(){var X=HTMLElement.call(this)||this;X._style=null;QiQ.addCustomStyle(X);return X};
_.S(vG,HTMLElement);vG.prototype.getStyle=function(){if(this._style)return this._style;var X=this.querySelector("style");if(!X)return null;this._style=X;var H=X.getAttribute("include");H&&(X.removeAttribute("include"),X.textContent=xVy(H)+X.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
vG.prototype.getStyle=vG.prototype.getStyle;window.customElements.define("custom-style",vG);Polymer.CustomStyle=vG;var O1=function(){this._timer=this._callback=this._asyncModule=null},mY,NT_;
O1.prototype.setConfig=function(X,H){var l=this;this._asyncModule=X;this._callback=H;this._timer=this._asyncModule.run(function(){l._timer=null;mY.delete(l);l._callback()})};
O1.prototype.cancel=function(){this.isActive()&&(TTt(this),mY.delete(this))};
var TTt=function(X){X.isActive()&&(X._asyncModule.cancel(X._timer),X._timer=null)};
O1.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
O1.prototype.isActive=function(){return this._timer!=null};
_.Qy=function(X,H,l){X instanceof O1?TTt(X):X=new O1;X.setConfig(H,l);return X};
mY=new Set;_.TH=function(X){mY.add(X)};
NT_=function(){var X=!!mY.size;mY.forEach(function(H){try{H.flush()}catch(l){setTimeout(function(){throw l;})}});
return X};var jJh=typeof document.head.style.touchAction==="string",cvO=["mousedown","mousemove","mouseup","click"],lU8=[0,1,4,2],cFz;try{cFz=(new MouseEvent("test",{buttons:1})).buttons===1}catch(X){cFz=!1}var Hjy=cFz,rvO=!1;(function(){try{var X=Object.defineProperty({},"passive",{get:function(){rvO=!0}});
window.addEventListener("test",null,X);window.removeEventListener("test",null,X)}catch(H){}})();
var YJK=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),IFy=[],jiq={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},BJy={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},AvZ=function(X){var H=X.sourceCapabilities;if(!H||H.firesTouchEvents)if(X.__polymerGesturesHandled={skip:!0},X.type==="click"){H=!1;for(var l=$7W(X),b=0;b<l.length;b++){if(l[b].nodeType===Node.ELEMENT_NODE)if(l[b].localName==="label")IFy.push(l[b]);
else if(jiq[l[b].localName]){var U=l[b];var K=Array.prototype.slice.call(U.labels||[]);if(!K.length){K=[];try{var w=U.getRootNode();if(U.id){var d=w.querySelectorAll("label[for = '"+U.id+"']");for(U=0;U<d.length;U++)K.push(d[U])}}catch(B){}}for(U=0;U<K.length;U++)H=H||IFy.indexOf(K[U])>-1}if(l[b]===rF_)return}H||(X.preventDefault(),X.stopPropagation())}},rF_=null,ND=null,RGl=0,Cel=0,Kq8=-1,wCy=!1;
document.addEventListener("touchend",function(X){ND||XCm(!0);rF_=$7W(X)[0];ND=_.Qy(ND,_.DK.after(2500),function(){XCm();ND=rF_=null})},rvO?{passive:!0}:!1);
var $7W=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(X){return X.composedPath&&X.composedPath()||[]},zX={},pi=[];
d7b({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){fi(this.info)},
mousedown:function(X){if(Pj(X)){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X),l=this;bj8(this.info,function(b){Pj(b)||(th("up",H,b),fi(l.info))},function(b){Pj(b)&&th("up",H,b);
fi(l.info)});
th("down",H,X)}},
touchstart:function(X){th("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X),X.changedTouches[0],X)},
touchend:function(X){th("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X),X.changedTouches[0],X)}});
d7b({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(X){this.moves.length>2&&this.moves.shift();this.moves.push(X)},
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;fi(this.info)},
mousedown:function(X){if(Pj(X)){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X),l=this,b=function(U){var K=U.clientX,w=U.clientY;hGy(l.info,K,w)&&(l.info.state=l.info.started?U.type==="mouseup"?"end":"track":"start",l.info.state==="start"&&Sa("tap"),l.info.addMove({x:K,y:w}),Pj(U)||(l.info.state="end",fi(l.info)),H&&Fqz(l.info,H,U),l.info.started=!0)};
bj8(this.info,b,function(U){l.info.started&&b(U);fi(l.info)});
this.info.x=X.clientX;this.info.y=X.clientY}},
touchstart:function(X){X=X.changedTouches[0];this.info.x=X.clientX;this.info.y=X.clientY},
touchmove:function(X){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X);X=X.changedTouches[0];var l=X.clientX,b=X.clientY;hGy(this.info,l,b)&&(this.info.state==="start"&&Sa("tap"),this.info.addMove({x:l,y:b}),Fqz(this.info,H,X),this.info.state="track",this.info.started=!0)},
touchend:function(X){var H=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X);X=X.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:X.clientX,y:X.clientY}),Fqz(this.info,H,X))}});
d7b({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(X){Pj(X)&&(this.info.x=X.clientX,this.info.y=X.clientY)},
click:function(X){Pj(X)&&qC8(this.info,X)},
touchstart:function(X){X=X.changedTouches[0];this.info.x=X.clientX;this.info.y=X.clientY},
touchend:function(X){qC8(this.info,X.changedTouches[0],X)}});var JFz=tJ(function(X){var H=function(){return X.apply(this,arguments)||this};
_.S(H,X);H.prototype._addEventListenerToNode=function(l,b,U){ni(l,b,U)||X.prototype._addEventListenerToNode.call(this,l,b,U)};
H.prototype._removeEventListenerFromNode=function(l,b,U){kH(l,b,U)||X.prototype._removeEventListenerFromNode.call(this,l,b,U)};
return H});var cG=tJ(function(X){var H=function(){return X.apply(this,arguments)||this};
_.S(H,X);H.prototype._shouldPropertyChange=function(l,b,U){return sVh(this,l,b,U,!0)};
return H}),Lr6=tJ(function(X){var H=function(){return X.apply(this,arguments)||this};
_.S(H,X);H.prototype._shouldPropertyChange=function(l,b,U){return sVh(this,l,b,U,this.mutableData)};
_.ja.Object.defineProperties(H,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return H});
cG._mutablePropertyChange=sVh;var M5W=!1;var Yq9=JFz(Lr6(E1(HTMLElement))),je=function(){var X=Yq9.call(this)||this;if(ZC)throw Error("Nd");X.root=null;X.$=null;X.__children=null;return X};
_.S(je,Yq9);_.R=je.prototype;_.R.attributeChangedCallback=function(){this.mutableData=!0};
_.R.connectedCallback=function(){u0y()||(this.style.display="none");this.render()};
_.R.disconnectedCallback=function(){this.__removeChildren()};
_.R.__insertChildren=function(){(0,_.q0)((0,_.q0)(this).parentNode).insertBefore(this.root,this)};
_.R.__removeChildren=function(){if(this.__children)for(var X=0;X<this.__children.length;X++)this.root.appendChild(this.__children[X])};
_.R.render=function(){var X=this;if(!this.__children){var H=H||this.querySelector("template");if(!H){var l=new MutationObserver(function(){if(H=X.querySelector("template"))l.disconnect(),X.render();else throw Error("Od");});
l.observe(this,{childList:!0});return}this.root=this._stampTemplate(H);this.$=this.root.$;this.__children=[];for(var b=this.root.firstChild;b;b=b.nextSibling)this.__children[this.__children.length]=b;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.ja.Object.defineProperties(je,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",je);Polymer.Debouncer=O1;Polymer.Gestures={gestures:zX,recognizers:pi,deepTargetFind:U7m,addListener:ni,removeListener:kH,register:d7b,setTouchAction:_.xH,prevent:Sa,resetMouseCanceller:function(){ND&&ND.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:ni,remove:kH};Polymer.GestureEventListeners=JFz;Polymer.MutableData=cG;Polymer.OptionalMutableData=Lr6;Polymer.DomBind=je;_.rb=function(){do{var X=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var H=NT_()}while(X||H)};var eGb=null;yCO.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:yCO,writable:!0}});var kby=E1(yCO),ngO=cG(kby),IVG=E1(function(){}),gw=function(X){var H=IVG.call(this)||this;
H._configureProperties(X);H.root=H._stampTemplate(H.__dataHost);var l=[];H.children=l;for(var b=H.root.firstChild;b;b=b.nextSibling)l.push(b),b.__templatizeInstance=H;H.__templatizeOwner&&H.__templatizeOwner.__hideTemplateChildren__&&H._showHideChildren(!0);l=H.__templatizeOptions;(X&&l.instanceProps||!l.instanceProps)&&H._enableProperties();return H};
_.S(gw,IVG);_.R=gw.prototype;_.R._configureProperties=function(X){if(this.__templatizeOptions.forwardHostProp)for(var H in this.__hostProps)this._setPendingProperty(H,this.__dataHost["_host_"+H]);for(var l in X)this._setPendingProperty(l,X[l])};
_.R.forwardHostProp=function(X,H){this._setPendingPropertyOrPath(X,H,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.R._addEventListenerToNode=function(X,H,l){var b=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(X,H,function(K){K.model=b;l(K)});
else{var U=this.__dataHost.__dataHost;U&&U._addEventListenerToNode(X,H,l)}};
_.R._showHideChildren=function(X){Pez(X,this.children)};
_.R._setUnmanagedPropertyToNode=function(X,H,l){X.__hideTemplateChildren__&&X.nodeType==Node.TEXT_NODE&&H=="textContent"?X.__polymerTextContent__=l:IVG.prototype._setUnmanagedPropertyToNode.call(this,X,H,l)};
_.R.dispatchEvent=function(){return!0};
_.ja.Object.defineProperties(gw.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var X=this.__parentModel;if(!X){var H;X=this;do X=X.__dataHost.__dataHost;while((H=X.__templatizeOptions)&&!H.parentModel);this.__parentModel=X}return X}}});
var pCK=cG(gw);var JJ=function(){var X=GH.call(this)||this;X.__renderDebouncer=null;X._lastIf=!1;X.__hideTemplateChildren__=!1;return X};
_.S(JJ,GH);_.R=JJ.prototype;_.R.__debounceRender=function(){var X=this;this.__renderDebouncer=_.Qy(this.__renderDebouncer,DC,function(){return X.__render()});
_.TH(this.__renderDebouncer)};
_.R.disconnectedCallback=function(){GH.prototype.disconnectedCallback.call(this);var X=(0,_.q0)(this).parentNode;X&&(X.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.q0)(X).host)||this.__teardownInstance()};
_.R.connectedCallback=function(){GH.prototype.connectedCallback.call(this);u0y()||(this.style.display="none");this.if&&this.__debounceRender()};
_.R.__ensureTemplate=function(){var X=this;if(!this.__template){var H=this._templateInfo?this:(0,_.q0)(this).querySelector("template");if(!H){var l=new MutationObserver(function(){if((0,_.q0)(X).querySelector("template"))l.disconnect(),X.__render();else throw Error("Rd");});
l.observe(this,{childList:!0});return!1}this.__template=H}return!0};
_.R.__ensureInstance=function(){var X=(0,_.q0)(this).parentNode;if(this.__hasInstance()){var H=this.__getInstanceNodes();if(H&&H.length&&(0,_.q0)(this).previousSibling!==H[H.length-1])for(var l=0,b=void 0;l<H.length&&(b=H[l]);l++)(0,_.q0)(X).insertBefore(b,this)}else{if(!X||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(X)}return!0};
_.R.render=function(){_.rb()};
_.R.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();k7&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.R.__hasInstance=function(){};
_.R.__getInstanceNodes=function(){};
_.R.__createAndInsertInstance=function(){};
_.R.__teardownInstance=function(){};
_.R._showHideChildren=function(){};
_.ja.Object.defineProperties(JJ,{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:JJ.prototype.__debounceRender},restamp:{type:Boolean,observer:JJ.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var AFz=function(){var X=JJ.call(this)||this;X.__instance=null;X.__syncInfo=null;return X};
_.S(AFz,JJ);_.R=AFz.prototype;_.R.__hasInstance=function(){return!!this.__instance};
_.R.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.R.__createAndInsertInstance=function(X){var H=this,l=this.__dataHost||this;if(ZC&&!this.__dataHost)throw Error("Pd");var b=l._bindTemplate(this.__template,!0);b.runEffects=function(U,K,w){var d=H.__syncInfo;if(H.if)d&&(H.__syncInfo=null,H._showHideChildren(),K=Object.assign(d.changedProps,K)),U(K,w);else if(H.__instance)if(d||(d=H.__syncInfo={runEffects:U,changedProps:{}}),w)for(var B in K)U=Rm(B),d.changedProps[U]=H.__dataHost[U];else Object.assign(d.changedProps,K)};
this.__instance=l._stampTemplate(this.__template,b);(0,_.q0)(X).insertBefore(this.__instance,this)};
_.R.__syncHostProperties=function(){var X=this.__syncInfo;X&&(this.__syncInfo=null,X.runEffects(X.changedProps,!1))};
_.R.__teardownInstance=function(){var X=this.__dataHost||this;this.__instance&&(X._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.R._showHideChildren=function(){var X=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==X&&(this.__instance.__hidden=X,Pez(X,this.__instance.templateInfo.childNodes));X||this.__syncHostProperties()};
var X5H=function(){var X=JJ.call(this)||this;X.__ctor=null;X.__instance=null;X.__invalidProps=null;return X};
_.S(X5H,JJ);_.R=X5H.prototype;_.R.__hasInstance=function(){return!!this.__instance};
_.R.__getInstanceNodes=function(){return this.__instance.children};
_.R.__createAndInsertInstance=function(X){this.__ctor||(this.__ctor=GX(this.__template,this,{mutableData:!0,forwardHostProp:function(H,l){this.__instance&&(this.if?this.__instance.forwardHostProp(H,l):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Rm(H)]=!0))}}));
this.__instance=new this.__ctor;(0,_.q0)(X).insertBefore(this.__instance.root,this)};
_.R.__teardownInstance=function(){if(this.__instance){var X=this.__instance.children;if(X&&X.length){var H=(0,_.q0)(X[0]).parentNode;if(H){H=(0,_.q0)(H);for(var l=0,b=void 0;l<X.length&&(b=X[l]);l++)H.removeChild(b)}}this.__instance=this.__invalidProps=null}};
_.R.__syncHostProperties=function(){var X=this.__invalidProps;if(X){this.__invalidProps=null;for(var H in X)this.__instance._setPendingProperty(H,this.__dataHost[H]);this.__instance._flushProperties()}};
_.R._showHideChildren=function(){var X=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==X&&(this.__instance.__hidden=X,this.__instance._showHideChildren(X));X||this.__syncHostProperties()};
_.hF=nF?AFz:X5H;customElements.define(_.hF.is,_.hF);Polymer.enqueueDebouncer=_.TH;Polymer.flush=_.rb;Polymer.Templatize={templatize:GX,modelForElement:ggL};Polymer.TemplateInstanceBase=gw;Polymer.DomIf=_.hF;var HqH=Lr6(GH),dT=function(){var X=HqH.call(this)||this;X.__instances=[];X.__renderDebouncer=null;X.__itemsIdxToInstIdx={};X.__chunkCount=null;X.__renderStartTime=null;X.__itemsArrayChanged=!1;X.__shouldMeasureChunk=!1;X.__shouldContinueChunking=!1;X.__chunkingId=0;X.__sortFn=null;X.__filterFn=null;X.__observePaths=null;X.__ctor=null;X.__isDetached=!0;X.template=null;return X};
_.S(dT,HqH);_.R=dT.prototype;_.R.disconnectedCallback=function(){HqH.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var X=0;X<this.__instances.length;X++)this.__detachInstance(X);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.R.connectedCallback=function(){HqH.prototype.connectedCallback.call(this);u0y()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var X=(0,_.q0)((0,_.q0)(this).parentNode),H=0;H<this.__instances.length;H++)this.__attachInstance(H,X);this.__chunkingId&&this.__render()}};
_.R.__ensureTemplatized=function(){var X=this;if(!this.__ctor){var H=this.template=this._templateInfo?this:this.querySelector("template");if(!H){var l=new MutationObserver(function(){if(X.querySelector("template"))l.disconnect(),X.__render();else throw Error("Sd");});
l.observe(this,{childList:!0});return!1}var b={};b[this.as]=!0;b[this.indexAs]=!0;b[this.itemsIndexAs]=!0;this.__ctor=GX(H,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:b,forwardHostProp:function(U,K){for(var w=this.__instances,d=0,B=void 0;d<w.length&&(B=w[d]);d++)B.forwardHostProp(U,K)},
notifyInstanceProp:function(U,K,w){AGO(this.as,K)&&(U=U[this.itemsIndexAs],K==this.as&&(this.items[U]=w),K=ww(this.as,"items."+U,K),this.notifyPath(K,w))}})}return!0};
_.R.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.R.__functionFromPropertyValue=function(X){if(typeof X==="string"){var H=this.__getMethodHost();return function(){return H[X].apply(H,arguments)}}return X};
_.R.__sortChanged=function(X){this.__sortFn=this.__functionFromPropertyValue(X);this.items&&this.__debounceRender(this.__render)};
_.R.__filterChanged=function(X){this.__filterFn=this.__functionFromPropertyValue(X);this.items&&this.__debounceRender(this.__render)};
_.R.__computeFrameTime=function(X){return Math.ceil(1E3/X)};
_.R.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.R.__handleObservedPaths=function(X){if(this.__sortFn||this.__filterFn)if(!X)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var H=this.__observePaths,l=0;l<H.length;l++)X.indexOf(H[l])===0&&this.__debounceRender(this.__render,this.delay)};
_.R.__itemsChanged=function(X){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(X.path,X.value)||(X.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.R.__debounceRender=function(X,H){H=H===void 0?0:H;this.__renderDebouncer=_.Qy(this.__renderDebouncer,H>0?_.DK.after(H):DC,X.bind(this));_.TH(this.__renderDebouncer)};
_.R.render=function(){this.__debounceRender(this.__render);_.rb()};
_.R.__render=function(){var X=this;if(this.__ensureTemplatized()){var H=this.items||[],l=this.__sortAndFilterItems(H),b=this.__calculateLimit(l.length);this.__updateInstances(H,b,l);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){X.__chunkingId=null;X.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);k7&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.R.__sortAndFilterItems=function(X){for(var H=this,l=Array(X.length),b=0;b<X.length;b++)l[b]=b;this.__filterFn&&(l=l.filter(function(U,K,w){return H.__filterFn(X[U],K,w)}));
this.__sortFn&&l.sort(function(U,K){return H.__sortFn(X[U],X[K])});
return l};
_.R.__calculateLimit=function(X){var H=X,l=this.__instances.length;if(this.initialCount){var b;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(H=Math.min(X,this.initialCount),this.__chunkCount=(b=Math.max(H-l,0))||1):(b=Math.min(Math.max(X-l,0),this.__chunkCount),H=Math.min(l+b,X));this.__shouldMeasureChunk=b===this.__chunkCount;this.__shouldContinueChunking=H<X;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return H};
_.R.__continueChunking=function(){if(this.__shouldMeasureChunk){var X=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/X*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.R.__updateInstances=function(X,H,l){var b=this.__itemsIdxToInstIdx={},U;for(U=0;U<H;U++){var K=this.__instances[U],w=l[U],d=X[w];b[w]=U;K?(K._setPendingProperty(this.as,d),K._setPendingProperty(this.indexAs,U),K._setPendingProperty(this.itemsIndexAs,w),K._flushProperties()):this.__insertInstance(d,U,w)}for(X=this.__instances.length-1;X>=U;X--)this.__detachAndRemoveInstance(X)};
_.R.__detachInstance=function(X){X=this.__instances[X];for(var H=(0,_.q0)(X.root),l=0;l<X.children.length;l++)H.appendChild(X.children[l]);return X};
_.R.__attachInstance=function(X,H){H.insertBefore(this.__instances[X].root,this)};
_.R.__detachAndRemoveInstance=function(X){this.__detachInstance(X);this.__instances.splice(X,1)};
_.R.__stampInstance=function(X,H,l){var b={};b[this.as]=X;b[this.indexAs]=H;b[this.itemsIndexAs]=l;return new this.__ctor(b)};
_.R.__insertInstance=function(X,H,l){X=this.__stampInstance(X,H,l);l=(l=this.__instances[H+1])?l.children[0]:this;(0,_.q0)((0,_.q0)(this).parentNode).insertBefore(X.root,l);return this.__instances[H]=X};
_.R._showHideChildren=function(X){for(var H=0;H<this.__instances.length;H++)this.__instances[H]._showHideChildren(X)};
_.R.__handleItemPath=function(X,H){var l=X.slice(6),b=l.indexOf(".");X=b<0?l:l.substring(0,b);if(X==parseInt(X,10)){l=b<0?"":l.substring(b+1);this.__handleObservedPaths(l);if(X=this.__instances[this.__itemsIdxToInstIdx[X]])X._setPendingPropertyOrPath(this.as+(l?"."+l:""),H,!1,!0),X._flushProperties();return!0}};
_.R.itemForElement=function(X){return(X=this.modelForElement(X))&&X[this.as]};
_.R.indexForElement=function(X){return(X=this.modelForElement(X))&&X[this.indexAs]};
_.R.modelForElement=function(X){return ggL(this.template,X)};
_.ja.Object.defineProperties(dT,{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:dT.prototype.__sortChanged},filter:{type:Function,observer:dT.prototype.__filterChanged},observe:{type:String,observer:dT.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!k7,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.*)"]}}});
dT.prototype._setRenderedItemCount=function(){};
customElements.define(dT.is,dT);Polymer.DomRepeat=dT;var lpQ=function(X,H){var l=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=X;this.callback=H;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){l._schedule()};
this.connect();this._schedule()},olG=function(X){var H=(0,_.q0)(X);
if(iz(X))return H.assignedNodes({flatten:!0});X=[];for(var l=0;l<H.childNodes.length;l++){var b=H.childNodes[l];iz(b)?X.push.apply(X,_.LJ((0,_.q0)(b).assignedNodes({flatten:!0}))):X.push(b)}return X};
_.R=lpQ.prototype;_.R.connect=function(){var X=this;iz(this._target)?this._listenSlots([this._target]):(0,_.q0)(this._target).children&&(this._listenSlots((0,_.q0)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(H){X._processMutations(H)}):(this._nativeChildrenObserver=new MutationObserver(function(H){X._processMutations(H)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.R.disconnect=function(){iz(this._target)?this._unlistenSlots([this._target]):(0,_.q0)(this._target).children&&(this._unlistenSlots((0,_.q0)(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};
_.R._schedule=function(){var X=this;this._scheduled||(this._scheduled=!0,DC.run(function(){return X.flush()}))};
_.R._processMutations=function(X){this._processSlotMutations(X);this.flush()};
_.R._processSlotMutations=function(X){if(X)for(var H=0;H<X.length;H++){var l=X[H];l.addedNodes&&this._listenSlots(l.addedNodes);l.removedNodes&&this._unlistenSlots(l.removedNodes)}};
_.R.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 X={target:this._target,addedNodes:[],removedNodes:[]},H=olG(this._target),l=Eih(H,this._effectiveNodes),b=0,U=void 0;b<l.length&&(U=l[b]);b++)for(var K=0,w=void 0;K<U.removed.length&&(w=U.removed[K]);K++)X.removedNodes.push(w);
b=0;for(U=void 0;b<l.length&&(U=l[b]);b++)for(K=U.index;K<U.index+U.addedCount;K++)X.addedNodes.push(H[K]);this._effectiveNodes=H;H=!1;if(X.addedNodes.length||X.removedNodes.length)H=!0,this.callback.call(this._target,X);return H};
_.R._listenSlots=function(X){for(var H=0;H<X.length;H++){var l=X[H];iz(l)&&l.addEventListener("slotchange",this._boundSchedule)}};
_.R._unlistenSlots=function(X){for(var H=0;H<X.length;H++){var l=X[H];iz(l)&&l.removeEventListener("slotchange",this._boundSchedule)}};var LF=Element.prototype,bqq=LF.matches||LF.matchesSelector||LF.mozMatchesSelector||LF.msMatchesSelector||LF.oMatchesSelector||LF.webkitMatchesSelector,UqQ=function(X,H){return bqq.call(X,H)},vj=function(X){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(X);
this.node=X},CvF;
_.R=vj.prototype;_.R.observeNodes=function(X){return new lpQ(this.node,X)};
_.R.unobserveNodes=function(X){X.disconnect()};
_.R.notifyObserver=function(){};
_.R.deepContains=function(X){if((0,_.q0)(this.node).contains(X))return!0;var H=X;for(X=X.ownerDocument;H&&H!==X&&H!==this.node;)H=(0,_.q0)(H).parentNode||(0,_.q0)(H).host;return H===this.node};
_.R.getOwnerRoot=function(){return(0,_.q0)(this.node).getRootNode()};
_.R.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.q0)(this.node).assignedNodes({flatten:!0}):[]};
_.R.getDestinationInsertionPoints=function(){for(var X=[],H=(0,_.q0)(this.node).assignedSlot;H;)X.push(H),H=(0,_.q0)(H).assignedSlot;return X};
_.R.importNode=function(X,H){return(0,_.q0)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(X,H)};
_.R.getEffectiveChildNodes=function(){return olG(this.node)};
_.R.queryDistributedElements=function(X){for(var H=this.getEffectiveChildNodes(),l=[],b=0,U=H.length,K=void 0;b<U&&(K=H[b]);b++)K.nodeType===Node.ELEMENT_NODE&&UqQ(K,X)&&l.push(K);return l};
_.ja.Object.defineProperties(vj.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var X=this.node;return X._activeElement!==void 0?X._activeElement:X.activeElement}}});
var Y7=function(X){this.event=X};
_.ja.Object.defineProperties(Y7.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 $qq=vj;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var KaQ=window.ShadyDOM.Wrapper,RoD=function(){return KaQ.apply(this,arguments)||this};
_.S(RoD,KaQ);Object.getOwnPropertyNames(vj.prototype).forEach(function(X){X!="activeElement"&&X!="constructor"&&(RoD.prototype[X]=vj.prototype[X])});
aUz(RoD.prototype,["classList"]);$qq=RoD;Object.defineProperties(Y7.prototype,{localTarget:{get:function(){var X=this.event.currentTarget;X=X&&_.Uc(X).getOwnerRoot();for(var H=this.path,l=0;l<H.length;l++){var b=H[l];if(_.Uc(b).getOwnerRoot()===X)return b}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Gby(),aUz(vj.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),ZjO();CvF=$qq;_.Uc=function(X){X=X||document;if(X instanceof $qq)return X;if(X instanceof Y7)return X;var H=X.__domApi;H||(X instanceof Event?H=new Y7(X):H=new $qq(X),X.__domApi=H);return H};var w5D=/:host\(:dir\((ltr|rtl)\)\)/g,dq_=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,hoY=/:dir\((?:ltr|rtl)\)/,FaC=!(!window.ShadyDOM||!window.ShadyDOM.inUse),mc=[],IR=null,OL="",BC6=tJ(function(X){FaC||IR||(OL=document.documentElement.getAttribute("dir"),IR=new MutationObserver(ijk),IR.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var H=e_G(X);X=function(){var l=H.call(this)||this;l.__autoDirOptOut=!1;return l};
_.S(X,H);X._processStyleText=function(l,b){l=H._processStyleText.call(this,l,b);!FaC&&hoY.test(l)&&(l=this._replaceDirInCssText(l),this.__activateDir=!0);return l};
X._replaceDirInCssText=function(l){l=l.replace(w5D,':host([dir="$1"])');return l=l.replace(dq_,':host([dir="$2"]) $1')};
X.prototype.ready=function(){H.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
X.prototype.connectedCallback=function(){H.prototype.connectedCallback&&H.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(IR&&IR.takeRecords().length&&ijk(),mc.push(this),this.__autoDirOptOut||this.setAttribute("dir",OL))};
X.prototype.disconnectedCallback=function(){H.prototype.disconnectedCallback&&H.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var l=mc.indexOf(this);l>-1&&mc.splice(l,1)}};
X.__activateDir=!1;return X});var qlH=function(X){for(;X;){var H=Object.getOwnPropertyDescriptor(X,"observedAttributes");if(H)return H.get;X=Object.getPrototypeOf(X.prototype).constructor}return function(){return[]}};
tJ(function(X){var H=gb(X),l=qlH(H);X=function(){return H.call(this)||this};
_.S(X,H);X.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:H.prototype._initializeProperties.call(this)};
X.prototype._enableProperties=function(){this.__isUpgradeDisabled||H.prototype._enableProperties.call(this)};
X.prototype._canApplyPropertyDefault=function(b){return H.prototype._canApplyPropertyDefault.call(this,b)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(b))};
X.prototype.attributeChangedCallback=function(b,U,K,w){b=="disable-upgrade"?this.__isUpgradeDisabled&&K==null&&(H.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.q0)(this).isConnected&&H.prototype.connectedCallback.call(this)):H.prototype.attributeChangedCallback.call(this,b,U,K,w)};
X.prototype.connectedCallback=function(){this.__isUpgradeDisabled||H.prototype.connectedCallback.call(this)};
X.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||H.prototype.disconnectedCallback.call(this)};
_.ja.Object.defineProperties(X,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return l.call(this).concat("disable-upgrade")}}});
return X});var QL=!1,Ojy=[],TX=[];var NJy=window.ShadyDOM,cCm=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",rCm):document.readyState==="interactive"||document.readyState==="complete"?rCm():window.addEventListener("DOMContentLoaded",rCm);var YCy=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=""},JCO=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Lqk=/@import[^;]*;/gim,oob=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,bxm=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,UOy=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,$Oh=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Hx8=/^@[^\s]*keyframes/,
X0y=/\s+/g;var KLh={};var w0K=Promise.resolve();var s1t=new Set;var MwH=/;\s*/m,uRt=/^\s*(initial)|(inherit)\s*$/,eo6=/\s*!important/,ya9=function(){this._map={}};
ya9.prototype.set=function(X,H){X=X.trim();this._map[X]={properties:H,dependants:{}}};
ya9.prototype.get=function(X){X=X.trim();return this._map[X]||null};
var VwC=null,AJ=function(){this._measureElement=this._currentElement=null;this._map=new ya9};
_.R=AJ.prototype;_.R.detectMixin=function(X){X=Zct.test(X)||aVC.test(X);Zct.lastIndex=0;aVC.lastIndex=0;return X};
_.R.transformTemplate=function(X,H){if(X._gatheredStyle===void 0){var l=[];for(var b=X.content.querySelectorAll("style"),U=0;U<b.length;U++){var K=b[U];if(K.hasAttribute("shady-unscoped")){if(!Tky){var w=K.textContent;if(!s1t.has(w)){s1t.add(w);var d=document.createElement("style");d.setAttribute("shady-unscoped","");d.textContent=w;document.head.appendChild(d)}K.parentNode.removeChild(K)}}else l.push(K.textContent),K.parentNode.removeChild(K)}(l=l.join("").trim())?(b=document.createElement("style"),
b.textContent=l,X.content.insertBefore(b,X.content.firstChild),l=b):l=null;X._gatheredStyle=l}return(X=X._gatheredStyle)?this.JSC$11588_transformStyle(X,H):null};
_.R.JSC$11588_transformStyle=function(X,H){H=H===void 0?"":H;var l=B1N(X);this.transformRules(l,H);X.textContent=FLl(l);return l};
_.R.transformCustomStyle=function(X){var H=this,l=B1N(X);s4y(l,function(b){b.selector===":root"&&(b.selector="html");H.transformRule(b)});
X.textContent=FLl(l);return l};
_.R.transformRules=function(X,H){var l=this;this._currentElement=H;s4y(X,function(b){l.transformRule(b)});
this._currentElement=null};
_.R.transformRule=function(X){X.cssText=PvC(this,X.parsedCssText,X);X.selector===":root"&&(X.selector=":host > *")};
var PvC=function(X,H,l){H=H.replace(aVC,function(b,U,K,w){return X._produceCssProperties(b,U,K,w,l)});
return X._consumeCssProperties(H,l)};
_.R=AJ.prototype;_.R._getInitialValueForProperty=function(X){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(X)};
_.R._fallbacksFromPreviousRules=function(X){for(var H=this,l=X;l.parent;)l=l.parent;var b={},U=!1;s4y(l,function(K){(U=U||K===X)||K.selector===X.selector&&Object.assign(b,H._cssTextToMap(K.parsedCssText))});
return b};
_.R._consumeCssProperties=function(X,H){for(var l;l=Zct.exec(X);){var b=l[0],U=l[1];l=l.index;var K=l+b.indexOf("@apply"),w=l+b.length;b=X.slice(0,K);X=X.slice(w);K=H?this._fallbacksFromPreviousRules(H):{};Object.assign(K,this._cssTextToMap(b));U=this._atApplyToCssProperties(U,K);X=b+U+X;Zct.lastIndex=l+U.length}return X};
_.R._atApplyToCssProperties=function(X,H){X=X.replace(MwH,"");var l=[],b=this._map.get(X);b||(this._map.set(X,{}),b=this._map.get(X));if(b){this._currentElement&&(b.dependants[this._currentElement]=!0);var U,K=b.properties;for(U in K){var w=H&&H[U];b=[U,": var(",X,"_-_",U];w&&b.push(",",w.replace(eo6,""));b.push(")");eo6.test(K[U])&&b.push(" !important");l.push(b.join(""))}}return l.join("; ")};
_.R._replaceInitialOrInherit=function(X,H){var l=uRt.exec(H);l&&(H=l[1]?this._getInitialValueForProperty(X):"apply-shim-inherit");return H};
_.R._cssTextToMap=function(X,H){H=H===void 0?!1:H;X=X.split(";");for(var l,b,U={},K=0;K<X.length;K++)if(l=X[K])b=l.split(":"),b.length>1&&(l=b[0].trim(),b=b.slice(1).join(":"),H&&(b=this._replaceInitialOrInherit(l,b)),U[l]=b);return U};
_.R._invalidateMixinEntry=function(X){if(VwC)for(var H in X.dependants)H!==this._currentElement&&VwC(H)};
_.R._produceCssProperties=function(X,H,l,b,U){var K=this;l&&MHh(l,function(p,z){z&&K._map.get(z)&&(b="@apply "+z+";")});
if(!b)return X;var w=this._consumeCssProperties(""+b,U);U=X.slice(0,X.indexOf("--"));var d=w=this._cssTextToMap(w,!0),B=this._map.get(H),q=B&&B.properties;q?d=Object.assign(Object.create(q),w):this._map.set(H,d);var u=[],e,y=!1;for(e in d){var V=w[e];V===void 0&&(V="initial");!q||e in q||(y=!0);u.push(H+"_-_"+e+": "+V)}y&&this._invalidateMixinEntry(B);B&&(B.properties=d);l&&(U=X+";"+U);return U+u.join("; ")+";"};
AJ.prototype.detectMixin=AJ.prototype.detectMixin;AJ.prototype.transformStyle=AJ.prototype.JSC$11588_transformStyle;AJ.prototype.transformCustomStyle=AJ.prototype.transformCustomStyle;AJ.prototype.transformRules=AJ.prototype.transformRules;AJ.prototype.transformRule=AJ.prototype.transformRule;AJ.prototype.transformTemplate=AJ.prototype.transformTemplate;AJ.prototype._separator="_-_";Object.defineProperty(AJ.prototype,"invalidCallback",{get:function(){return VwC},
set:function(X){VwC=X}});var XI=new AJ,fpQ=function(){this.customStyleInterface=null;XI.invalidCallback=RIz},HA=function(X){!X.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(X.customStyleInterface=window.ShadyCSS.CustomStyleInterface,X.customStyleInterface.transformCallback=function(H){XI.transformCustomStyle(H)},X.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){X.customStyleInterface.enqueued&&X.flushCustomStyles()})})};
_.R=fpQ.prototype;_.R.prepareTemplate=function(X,H){HA(this);uKy(X)===""&&(KLh[H]=X,H=XI.transformTemplate(X,H),X._styleAst=H)};
_.R.flushCustomStyles=function(){HA(this);if(this.customStyleInterface){var X=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var H=0;H<X.length;H++){var l=this.customStyleInterface.getStyleForCustomStyle(X[H]);l&&XI.transformCustomStyle(l)}this.customStyleInterface.enqueued=!1}}};
_.R.styleSubtree=function(X,H){HA(this);H&&aFK(X,H);if(X.shadowRoot)for(this.styleElement(X),X=X.shadowRoot.children||X.shadowRoot.childNodes,H=0;H<X.length;H++)this.styleSubtree(X[H]);else for(X=X.children||X.childNodes,H=0;H<X.length;H++)this.styleSubtree(X[H])};
_.R.styleElement=function(X){HA(this);var H=X.localName,l;H?H.indexOf("-")>-1?l=H:l=X.getAttribute&&X.getAttribute("is")||"":l=X.is;H=KLh[l];if(!(H&&uKy(H)!==""||!H||CKl(H))){if(CKl(H)||H._applyShimValidatingVersion!==H._applyShimNextVersion)this.prepareTemplate(H,l),dOZ(H);if(X=X.shadowRoot)if(X=X.querySelector("style"))X.__cssRules=H._styleAst,X.textContent=FLl(H._styleAst)}};
_.R.styleDocument=function(X){HA(this);this.styleSubtree(document.body,X)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var ld=new fpQ,p5G=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(X,H){ld.flushCustomStyles();ld.prepareTemplate(X,H)},
prepareTemplateStyles:function(X,H,l){window.ShadyCSS.prepareTemplate(X,H,l)},
prepareTemplateDom:function(){},
styleSubtree:function(X,H){ld.flushCustomStyles();ld.styleSubtree(X,H)},
styleElement:function(X){ld.flushCustomStyles();ld.styleElement(X)},
styleDocument:function(X){ld.flushCustomStyles();ld.styleDocument(X)},
getComputedStyleValue:function(X,H){return Z9m(X,H)},
flushCustomStyles:function(){ld.flushCustomStyles()},
nativeCss:hIb,nativeShadow:Tky,cssBuild:cj,disableRuntime:OcY};p5G&&(window.ShadyCSS.CustomStyleInterface=p5G)}window.ShadyCSS.ApplyShim=XI;var SlC;SlC=window.ShadyCSS;_.oe=tJ(function(X){X=JFz(gb(X));var H=xRD?X:BC6(X),l=qlH(H),b={x:"pan-x",y:"pan-y",none:"none",all:"auto"};X=function(){return H.call(this)||this};
_.S(X,H);X.prototype.created=function(){};
X.prototype.__attributeReaction=function(U,K,w){(this.__dataAttributes&&this.__dataAttributes[U]||U==="disable-upgrade")&&this.attributeChangedCallback(U,K,w,null)};
X.prototype.setAttribute=function(U,K){if(oDY&&!this._legacyForceObservedAttributes){var w=this.getAttribute(U);H.prototype.setAttribute.call(this,U,K);this.__attributeReaction(U,w,String(K))}else H.prototype.setAttribute.call(this,U,K)};
X.prototype.removeAttribute=function(U){if(oDY&&!this._legacyForceObservedAttributes){var K=this.getAttribute(U);H.prototype.removeAttribute.call(this,U);this.__attributeReaction(U,K,null)}else H.prototype.removeAttribute.call(this,U)};
X.prototype._enableProperties=function(){this.__isUpgradeDisabled||H.prototype._enableProperties.call(this)};
X.prototype._canApplyPropertyDefault=function(U){return H.prototype._canApplyPropertyDefault.call(this,U)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(U))};
X.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(H.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
X.prototype.attached=function(){};
X.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(H.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
X.prototype.detached=function(){};
X.prototype.attributeChangedCallback=function(U,K,w,d){K!==w&&(U=="disable-upgrade"?this.__isUpgradeDisabled&&w==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.q0)(this).isConnected&&this.connectedCallback()):(H.prototype.attributeChangedCallback.call(this,U,K,w,d),this.attributeChanged(U,K,w)))};
X.prototype.attributeChanged=function(){};
X.prototype._initializeProperties=function(){if(Wj&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var U=Object.getPrototypeOf(this);U.hasOwnProperty("__hasRegisterFinished")||(this._registered(),U.__hasRegisterFinished=!0);H.prototype._initializeProperties.call(this);this.root=this;this.created();oDY&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
X.prototype._takeAttributes=function(){for(var U=this.attributes,K=0,w=U.length;K<w;K++){var d=U[K];this.__attributeReaction(d.name,null,d.value)}};
X.prototype._registered=function(){};
X.prototype.ready=function(){this._ensureAttributes();H.prototype.ready.call(this)};
X.prototype._ensureAttributes=function(){};
X.prototype._applyListeners=function(){};
X.prototype.serialize=function(U){return this._serializeValue(U)};
X.prototype.deserialize=function(U,K){return this._deserializeValue(U,K)};
X.prototype.reflectPropertyToAttribute=function(U,K,w){this._propertyToAttribute(U,K,w)};
X.prototype.serializeValueToAttribute=function(U,K,w){this._valueToNodeAttribute(w||this,U,K)};
X.prototype.extend=function(U,K){if(!U||!K)return U||K;for(var w=Object.getOwnPropertyNames(K),d=0,B=void 0;d<w.length&&(B=w[d]);d++){var q=Object.getOwnPropertyDescriptor(K,B);q&&Object.defineProperty(U,B,q)}return U};
X.prototype.mixin=function(U,K){for(var w in K)U[w]=K[w];return U};
X.prototype.chainObject=function(U,K){U&&K&&U!==K&&(U.__proto__=K);return U};
X.prototype.instanceTemplate=function(U){U=this.constructor._contentForTemplate(U);return document.importNode(U,!0)};
X.prototype.fire=function(U,K,w){w=w||{};K=K===null||K===void 0?{}:K;U=new Event(U,{bubbles:w.bubbles===void 0?!0:w.bubbles,cancelable:!!w.cancelable,composed:w.composed===void 0?!0:w.composed});U.detail=K;(0,_.q0)(w.node||this).dispatchEvent(U);return U};
X.prototype.listen=function(U,K,w){U=U||this;var d=this.__boundListeners||(this.__boundListeners=new WeakMap),B=d.get(U);B||(B={},d.set(U,B));d=K+w;B[d]||(B[d]=this._addMethodEventListenerToNode(U,K,w,this))};
X.prototype.unlisten=function(U,K,w){U=U||this;var d=this.__boundListeners&&this.__boundListeners.get(U);w=K+w;var B=d&&d[w];B&&(this._removeEventListenerFromNode(U,K,B),d[w]=null)};
X.prototype.setScrollDirection=function(U,K){_.xH(K||this,b[U]||"auto")};
X.prototype.$$=function(U){return this.root.querySelector(U)};
X.prototype.distributeContent=function(){var U=_.Uc(this);window.ShadyDOM&&U.shadowRoot&&ShadyDOM.flush()};
X.prototype.getEffectiveChildNodes=function(){return _.Uc(this).getEffectiveChildNodes()};
X.prototype.queryDistributedElements=function(U){return _.Uc(this).queryDistributedElements(U)};
X.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(U){return U.nodeType===Node.ELEMENT_NODE})};
X.prototype.getEffectiveTextContent=function(){for(var U=this.getEffectiveChildNodes(),K=[],w=0,d;d=U[w];w++)d.nodeType!==Node.COMMENT_NODE&&K.push(d.textContent);return K.join("")};
X.prototype.queryEffectiveChildren=function(U){return(U=this.queryDistributedElements(U))&&U[0]};
X.prototype.queryAllEffectiveChildren=function(U){return this.queryDistributedElements(U)};
X.prototype.getContentChildNodes=function(U){return(U=this.root.querySelector(U||"slot"))?_.Uc(U).getDistributedNodes():[]};
X.prototype.getContentChildren=function(U){return this.getContentChildNodes(U).filter(function(K){return K.nodeType===Node.ELEMENT_NODE})};
X.prototype.isLightDescendant=function(U){return this!==U&&(0,_.q0)(this).contains(U)&&(0,_.q0)(this).getRootNode()===(0,_.q0)(U).getRootNode()};
X.prototype.isLocalDescendant=function(U){return this.root===(0,_.q0)(U).getRootNode()};
X.prototype.scopeSubtree=function(U,K){return jVL(U,K===void 0?!1:K)};
X.prototype.getComputedStyleValue=function(U){return SlC.getComputedStyleValue(this,U)};
X.prototype.debounce=function(U,K,w){this._debouncers=this._debouncers||{};return this._debouncers[U]=_.Qy(this._debouncers[U],w>0?_.DK.after(w):DC,K.bind(this))};
X.prototype.isDebouncerActive=function(U){this._debouncers=this._debouncers||{};U=this._debouncers[U];return!(!U||!U.isActive())};
X.prototype.flushDebouncer=function(U){this._debouncers=this._debouncers||{};(U=this._debouncers[U])&&U.flush()};
X.prototype.cancelDebouncer=function(U){this._debouncers=this._debouncers||{};(U=this._debouncers[U])&&U.cancel()};
X.prototype.async=function(U,K){return K>0?_.DK.run(U.bind(this),K):~DC.run(U.bind(this))};
X.prototype.cancelAsync=function(U){U<0?DC.cancel(~U):_.DK.cancel(U)};
X.prototype.create=function(U,K){U=document.createElement(U);if(K)if(U.setProperties)U.setProperties(K);else for(var w in K)U[w]=K[w];return U};
X.prototype.elementMatches=function(U,K){return UqQ(K||this,U)};
X.prototype.toggleAttribute=function(U,K){var w=this;arguments.length===3&&(w=arguments[2]);arguments.length==1&&(K=!w.hasAttribute(U));if(K)return(0,_.q0)(w).setAttribute(U,""),!0;(0,_.q0)(w).removeAttribute(U);return!1};
X.prototype.toggleClass=function(U,K,w){w=w||this;arguments.length==1&&(K=!w.classList.contains(U));K?w.classList.add(U):w.classList.remove(U)};
X.prototype.transform=function(U,K){K=K||this;K.style.webkitTransform=U;K.style.transform=U};
X.prototype.translate3d=function(U,K,w,d){this.transform("translate3d("+U+","+K+","+w+")",d||this)};
X.prototype.arrayDelete=function(U,K){if(Array.isArray(U)){if(K=U.indexOf(K),K>=0)return U.splice(K,1)}else if(K=hh(this,U).indexOf(K),K>=0)return this.splice(U,K,1);return null};
X.prototype._logger=function(U,K){Array.isArray(K)&&K.length===1&&Array.isArray(K[0])&&(K=K[0]);switch(U){case "log":case "warn":case "error":console[U].apply(console,_.LJ(K))}};
X.prototype._log=function(){this._logger("log",_.Ab.apply(0,arguments))};
X.prototype._warn=function(){this._logger("warn",_.Ab.apply(0,arguments))};
X.prototype._error=function(){this._logger("error",_.Ab.apply(0,arguments))};
X.prototype._logf=function(U){return["[%s::%s]",this.is,U].concat(_.LJ(_.Ab.apply(1,arguments)))};
_.ja.Object.defineProperties(X.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var U=(0,_.q0)(this).getRootNode();return U instanceof DocumentFragment?U.host:U}}});
_.ja.Object.defineProperties(X,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return oDY&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],cGz(this.prototype)),this.__observedAttributes):l.call(this).concat("disable-upgrade")}}});
X.prototype.is="";return X});Polymer.FlattenedNodesObserver=lpQ;Polymer.DomApi=CvF;Polymer.EventApi=Y7;Polymer.dom=_.Uc;Polymer.dom.matchesSelector=UqQ;Polymer.dom.flush=_.rb;Polymer.dom.addDebouncer=_.TH;Polymer.DirMixin=BC6;Polymer.RenderStatus={beforeNextRender:_.TJK,afterNextRender:_.N0,flush:function(){for(;Ojy.length||TX.length;)vgy(Ojy),vgy(TX);QL=!1}};Polymer.LegacyElementMixin=_.oe;var zoq;zoq=cG._mutablePropertyChange;var nl6={properties:{mutableData:Boolean},_shouldPropertyChange:function(X,H,l){return zoq(this,X,H,l,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(X,H,l){return zoq(this,X,H,l,!0)}};
Polymer.OptionalMutableDataBehavior=nl6;var eIy={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},p0K={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},fON=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},p0K),k09=(0,_.oe)(HTMLElement),aGL=function(X,H){X||console.warn("Polymer.Class requires `info` argument");H=H?H(k09):k09;H=SQz(X,H,X.behaviors);H.is=H.prototype.is=
X.is;return H};Polymer.Class=aGL;Polymer.mixinBehaviors=function(X,H){return SQz({},(0,_.oe)(H),X)};
Polymer.GenerateClassFromInfo=SQz;_.wT=function(X){var H=typeof X==="function"?X:_.wT.Class(X);X._legacyForceObservedAttributes&&(H.prototype._legacyForceObservedAttributes=X._legacyForceObservedAttributes);customElements.define(H.is,H);return H};
_.wT.Class=aGL;Polymer._polymerFn=_.wT;var xqQ=window.onLegacyPolymerFunctionDefinedCallback;xqQ&&xqQ();var izm={templatize:function(X,H){this._templatizerTemplate=X;this.ctor=GX(X,this,{mutableData:!!H,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(X){return new this.ctor(X)},
modelForElement:function(X){return ggL(this._templatizerTemplate,X)}};Polymer.Templatizer=izm;_.bd=(0,_.oe)(HTMLElement).prototype;Polymer.Base=_.bd;var no8=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.rw=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.S(_.rw,PolymerFakeBaseClass);var Jh=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.S(Jh,PolymerFakeBaseClass);var kay=Symbol("Td"),aOL=[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 Dq_=Dq_||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},twC;(function(X){function H(Q,v,J){var Y=r.get(Q);if(!Y){if(!J)return;Y=new W;r.set(Q,Y)}Q=Y.get(v);if(!Q){if(!J)return;Q=new W;Y.set(v,Q)}return Q}
function l(Q,v,J){if(b(Q,v,J))return!0;v=y(v);return v!==null?l(Q,v,J):!1}
function b(Q,v,J){v=H(v,J,!1);return v===void 0?!1:!!v.has(Q)}
function U(Q,v,J){if(b(Q,v,J))return K(Q,v,J);v=y(v);if(v!==null)return U(Q,v,J)}
function K(Q,v,J){v=H(v,J,!1);if(v!==void 0)return v.get(Q)}
function w(Q,v){var J=d(Q,v);Q=y(Q);if(Q===null)return J;var Y=w(Q,v);if(Y.length<=0)return J;if(J.length<=0)return Y;v=new G;Q=[];J=_.C(J);for(var Uy=J.next();!Uy.done;Uy=J.next())Uy=Uy.value,v.has(Uy)||(v.add(Uy),Q.push(Uy));J=_.C(Y);for(Y=J.next();!Y.done;Y=J.next())Y=Y.value,v.has(Y)||(v.add(Y),Q.push(Y));return Q}
function d(Q,v){Q=H(Q,v,!1);var J=[];Q&&Q.forEach(function(Y,Uy){return J.push(Uy)});
return J}
function B(Q){return Q===void 0}
function q(Q){return typeof Q==="object"?Q!==null:typeof Q==="function"}
function u(Q){return typeof Q==="function"}
function e(Q){return typeof Q==="symbol"?Q:String(Q)}
function y(Q){var v=Object.getPrototypeOf(Q);if(typeof Q!=="function"||Q===t||v!==t)return v;var J=Object.getPrototypeOf(Q.prototype);if(J==null||J===Object.prototype)return v;J=J.constructor;return typeof J!=="function"||J===Q?v:J}
function V(){function Q(){this._keys=[];this._values=[];this._cache=v}
var v={};Q.prototype={get size(){return this._keys.length},has:function(J){return J===this._cache?!0:this._find(J)>=0?(this._cache=J,!0):!1},
get:function(J){var Y=this._find(J);if(Y>=0)return this._cache=J,this._values[Y]},
set:function(J,Y){this.delete(J);this._keys.push(J);this._values.push(Y);this._cache=J;return this},
delete:function(J){J=this._find(J);return J>=0?(this._keys.splice(J,1),this._values.splice(J,1),this._cache=v,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=v},
forEach:function(J){for(var Y=this.size,Uy=0;Uy<Y;++Uy){var Cy=this._keys[Uy],sy=this._values[Uy];this._cache=Cy;J.call(this,sy,Cy,this)}},
_find:function(J){for(var Y=this._keys,Uy=Y.length,Cy=0;Cy<Uy;++Cy)if(Y[Cy]===J)return Cy;return-1}};
return Q}
function p(){function Q(){this._map=new W}
Q.prototype={get size(){return this._map.length},has:function(v){return this._map.has(v)},
add:function(v){this._map.set(v,v);return this},
delete:function(v){return this._map.delete(v)},
clear:function(){this._map.clear()},
forEach:function(v,J){this._map.forEach(v,J)}};
return Q}
function z(){function Q(){this._key=J()}
function v(ub,g8){for(var mm=0;mm<g8;++mm)ub[mm]=Math.random()*255|0}
function J(){do{if(Uy)var ub=Uy.randomBytes(16);else typeof Uint8Array==="function"?(ub=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(ub):v(ub,16)):(ub=Array(16),v(ub,16));ub[6]=ub[6]&79|64;ub[8]=ub[8]&191|128;for(var g8="",mm=0;mm<16;++mm){var QZ=ub[mm];if(mm===4||mm===6||mm===8)g8+="-";QZ<16&&(g8+="0");g8+=QZ.toString(16).toLowerCase()}ub="@@WeakMap@@"+g8}while(Cy.call(sy,ub));sy[ub]=!0;return ub}
function Y(ub,g8){if(!Cy.call(ub,FO)){if(!g8)return;Object.defineProperty(ub,FO,{value:Object.create(null)})}return ub[FO]}
var Uy=typeof global!=="undefined"&&typeof Dq_==="object"&&typeof require==="function"&&require("crypto"),Cy=Object.prototype.hasOwnProperty,sy={},FO=J();Q.prototype={has:function(ub){return(ub=Y(ub,!1))?this._key in ub:!1},
get:function(ub){if(ub=Y(ub,!1))return ub[this._key]},
set:function(ub,g8){Y(ub,!0)[this._key]=g8;return this},
delete:function(ub){return(ub=Y(ub,!1))&&this._key in ub?delete ub[this._key]:!1},
clear:function(){this._key=J()}};
return Q}
var t=Object.getPrototypeOf(Function),W=typeof Map==="function"?Map:V(),G=typeof Set==="function"?Set:p(),r=new (typeof WeakMap==="function"?WeakMap:z());X.decorate=function(Q,v,J,Y){if(B(Y)){if(B(J)){if(!Array.isArray(Q))throw new TypeError;if(!u(v))throw new TypeError;for(J=Q.length-1;J>=0;--J)if(Y=(0,Q[J])(v),!B(Y)){if(!u(Y))throw new TypeError;v=Y}return v}if(!Array.isArray(Q))throw new TypeError;if(!q(v))throw new TypeError;J=e(J);for(Y=Q.length-1;Y>=0;--Y)(0,Q[Y])(v,J)}else{if(Array.isArray(Q))if(q(v)){if(B(J))throw new TypeError;
if(!q(Y))throw new TypeError;}else throw new TypeError;else throw new TypeError;J=e(J);for(var Uy=Q.length-1;Uy>=0;--Uy){var Cy=(0,Q[Uy])(v,J,Y);if(!B(Cy)){if(!q(Cy))throw new TypeError;Y=Cy}}return Y}};
X.metadata=function(Q,v){return function(J,Y){if(B(Y)){if(!u(J))throw new TypeError;H(J,void 0,!0).set(Q,v)}else{if(!q(J))throw new TypeError;Y=e(Y);H(J,Y,!0).set(Q,v)}}};
X.defineMetadata=function(Q,v){var J;if(q(v))B(J)||(J=e(J));else throw new TypeError;H(v,J,!0).set("parameters",Q)};
X.hasMetadata=function(Q,v,J){if(q(v))B(J)||(J=e(J));else throw new TypeError;return l(Q,v,J)};
X.hasOwnMetadata=function(Q,v,J){if(q(v))B(J)||(J=e(J));else throw new TypeError;return b(Q,v,J)};
X.getMetadata=function(Q,v,J){if(q(v))B(J)||(J=e(J));else throw new TypeError;return U(Q,v,J)};
X.getOwnMetadata=function(Q,v,J){if(q(v))B(J)||(J=e(J));else throw new TypeError;return K(Q,v,J)};
X.getMetadataKeys=function(Q,v){if(q(Q))B(v)||(v=e(v));else throw new TypeError;return w(Q,v)};
X.getOwnMetadataKeys=function(Q,v){if(q(Q))B(v)||(v=e(v));else throw new TypeError;return d(Q,v)};
X.deleteMetadata=function(Q,v,J){if(q(v))B(J)||(J=e(J));else throw new TypeError;var Y=H(v,J,!1);if(!B(Y)){if(!Y.delete(Q))return!1;if(Y.size>0)return!0;Q=r.get(v);Q.delete(J);if(Q.size>0)return!0;r.delete(v);return!0}};
(function(Q){if(typeof Q.Reflect!=="undefined"){if(Q.Reflect!==X)for(var v in X)Q.Reflect[v]=X[v]}else Q.Reflect=X})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(twC||(twC={}));var Byy=self;var WaG=[0,_.gJ,_.ZU,_.gJ];var ElQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(ElQ,_.sU);var glH=_.xn(ElQ,[0,_.Qs,_.OC,WaG,_.ZU,_.N7]);var apF=[0,_.Tb,-3,_.N7,_.Qs,_.gJ,_.JbF,_.Tb,YU9,cbz,DU,_.Gb,_.gJ,function(){return G09},
_.ZU],G09=[0,_.OC,function(){return apF},
_.Qs,14,_.Tb];_.To(_.Li,_.$e);_.R=_.Li.prototype;_.R.start=function(){this.stop();this.usingListeners_=!1;var X=ZqD(this),H=iq_(this);X&&!H&&this.JSC$11631_win_.mozRequestAnimationFrame?(this.JSC$11631_id_=_.n8(this.JSC$11631_win_,"MozBeforePaint",this.callback_),this.JSC$11631_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11631_id_=X&&H?X.call(this.JSC$11631_win_,this.callback_):this.JSC$11631_win_.setTimeout(sZF(this.callback_),20)};
_.R.stop=function(){if(this.isActive()){var X=ZqD(this),H=iq_(this);X&&!H&&this.JSC$11631_win_.mozRequestAnimationFrame?Ul(this.JSC$11631_id_):X&&H?H.call(this.JSC$11631_win_,this.JSC$11631_id_):this.JSC$11631_win_.clearTimeout(this.JSC$11631_id_)}this.JSC$11631_id_=null};
_.R.fire=function(){this.stop();this.JSC$11633_doAction_()};
_.R.isActive=function(){return this.JSC$11631_id_!=null};
_.R.JSC$11633_doAction_=function(){this.usingListeners_&&this.JSC$11631_id_&&Ul(this.JSC$11631_id_);this.JSC$11631_id_=null;this.JSC$11631_listener_.call(this.handler_,_.QC())};
_.R.disposeInternal=function(){this.stop();_.Li.superClass_.disposeInternal.call(this)};
var ZqD=function(X){X=X.JSC$11631_win_;return X.requestAnimationFrame||X.webkitRequestAnimationFrame||X.mozRequestAnimationFrame||X.oRequestAnimationFrame||X.msRequestAnimationFrame||null},iq_=function(X){X=X.JSC$11631_win_;
return X.cancelAnimationFrame||X.cancelRequestAnimationFrame||X.webkitCancelRequestAnimationFrame||X.mozCancelRequestAnimationFrame||X.oCancelRequestAnimationFrame||X.msCancelRequestAnimationFrame||null};_.jw=function(X,H,l){_.$e.call(this);this.JSC$11634_listener_=l!=null?X.bind(l):X;this.JSC$11634_interval_=H;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11634_timer_=null};
_.S(_.jw,_.$e);_.R=_.jw.prototype;_.R.fire=function(X){this.args_=arguments;this.JSC$11634_timer_||this.pauseCount_?this.shouldFire_=!0:vlt(this)};
_.R.stop=function(){this.JSC$11634_timer_&&(_.ok.clearTimeout(this.JSC$11634_timer_),this.JSC$11634_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.R.pause=function(){this.pauseCount_++};
_.R.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11634_timer_||(this.shouldFire_=!1,vlt(this))};
_.R.disposeInternal=function(){_.$e.prototype.disposeInternal.call(this);this.stop()};
var vlt=function(X){X.JSC$11634_timer_=ui(function(){X.JSC$11634_timer_=null;X.shouldFire_&&!X.pauseCount_&&(X.shouldFire_=!1,vlt(X))},X.JSC$11634_interval_);
var H=X.args_;X.args_=null;X.JSC$11634_listener_.apply(null,H)};var OqF=function(X,H){this.childIterator_=X[_.ok.Symbol.iterator]();this.mapFn_=H};
OqF.prototype[Symbol.iterator]=function(){return this};
OqF.prototype.next=function(){var X=this.childIterator_.next();return{value:X.done?void 0:this.mapFn_.call(void 0,X.value),done:X.done}};
var mqQ=function(X,H){return new OqF(X,H)};var JfK={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 LLN=/#(.)(.)(.)/,N1K=/^#(?:[0-9a-f]{3}){1,2}$/i,IOy=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;var Q1G={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},Is=Q1G;Is=Q1G;var ycN,TCt,NC_;ycN=function(X,H){switch(H){case 1:return X%4!=0||X%100==0&&X%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
TCt=function(X,H,l,b,U){X=new Date(X,H,l);U=U||0;return X.valueOf()+(((b!==void 0?b:3)-U+7)%7-((X.getDay()+6)%7-U+7)%7)*864E5};
_.U8=function(X,H,l){typeof X==="number"?(this.date=NC_(X,H||0,l||1),ca_(this,l||1)):_.r8(X)?(this.date=NC_(X.getFullYear(),X.getMonth(),X.getDate()),ca_(this,X.getDate())):(this.date=new Date(_.QC()),X=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),ca_(this,X))};
NC_=function(X,H,l){H=new Date(X,H,l);X>=0&&X<100&&H.setFullYear(H.getFullYear()-1900);return H};
_.R=_.U8.prototype;_.R.firstDayOfWeek_=Is.FIRSTDAYOFWEEK;_.R.firstWeekCutOffDay_=Is.FIRSTWEEKCUTOFFDAY;_.R.clone=function(){var X=new _.U8(this.date);X.firstDayOfWeek_=this.firstDayOfWeek_;X.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return X};
_.R.getFullYear=function(){return this.date.getFullYear()};
_.R.getYear=function(){return this.getFullYear()};
_.R.getMonth=function(){return this.date.getMonth()};
_.R.getDate=function(){return this.date.getDate()};
_.R.getTime=function(){return this.date.getTime()};
_.R.getDay=function(){return this.date.getDay()};
_.R.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.R.getUTCMonth=function(){return this.date.getUTCMonth()};
_.R.getUTCDate=function(){return this.date.getUTCDate()};
_.R.getUTCDay=function(){return this.date.getDay()};
_.R.getUTCHours=function(){return this.date.getUTCHours()};
_.R.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.R.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.R.set=function(X){this.date=new Date(X.getFullYear(),X.getMonth(),X.getDate())};
_.R.setFullYear=function(X){this.date.setFullYear(X)};
_.R.setYear=function(X){this.setFullYear(X)};
_.R.setMonth=function(X){this.date.setMonth(X)};
_.R.setDate=function(X){this.date.setDate(X)};
_.R.setTime=function(X){this.date.setTime(X)};
_.R.setUTCFullYear=function(X){this.date.setUTCFullYear(X)};
_.R.setUTCMonth=function(X){this.date.setUTCMonth(X)};
_.R.setUTCDate=function(X){this.date.setUTCDate(X)};
_.R.add=function(X){if(X.years||X.months){var H=this.getMonth()+X.months+X.years*12,l=this.getYear()+Math.floor(H/12);H%=12;H<0&&(H+=12);var b=Math.min(ycN(l,H),this.getDate());this.setDate(1);this.setFullYear(l);this.setMonth(H);this.setDate(b)}X.days&&(l=this.getYear(),H=l>=0&&l<=99?-1900:0,X=new Date((new Date(l,this.getMonth(),this.getDate(),12)).getTime()+X.days*864E5),this.setDate(1),this.setFullYear(X.getFullYear()+H),this.setMonth(X.getMonth()),this.setDate(X.getDate()),ca_(this,X.getDate()))};
_.R.JSC$11647_toIsoString=function(X){var H=this.getFullYear(),l=H<0?"-":H>=1E4?"+":"";return[l+_.IV(Math.abs(H),l?6:4),_.IV(this.getMonth()+1,2),_.IV(this.getDate(),2)].join(X?"-":"")};
_.R.equals=function(X){return!(!X||this.getYear()!=X.getYear()||this.getMonth()!=X.getMonth()||this.getDate()!=X.getDate())};
_.R.toString=function(){return this.JSC$11647_toIsoString()};
var ca_=function(X,H){X.getDate()!=H&&X.date.setUTCHours(X.date.getUTCHours()+(X.getDate()<H?1:-1))};
_.U8.prototype.valueOf=function(){return this.date.valueOf()};var KR=function(X,H,l,b,U){this.reversed=!!H;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!l;X&&$w(this,X,b);this.depth=U!=void 0?U:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.To(KR,vt);var $w=function(X,H,l,b){if(X.node=H)X.tagType=typeof l==="number"?l:X.node.nodeType!=1?0:X.reversed?-1:1;typeof b==="number"&&(X.depth=b)};
_.R=KR.prototype;_.R.JSC$11662_copyFrom=function(X){this.node=X.node;this.tagType=X.tagType;this.depth=X.depth;this.reversed=X.reversed;this.constrained=X.constrained};
_.R.clone=function(){return new KR(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.R.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Od;var X=this.node;var H=this.reversed?-1:1;if(this.tagType==H){var l=this.reversed?X.lastChild:X.firstChild;l?$w(this,l):$w(this,X,H*-1)}else(l=this.reversed?X.previousSibling:X.nextSibling)?$w(this,l):$w(this,X.parentNode,H*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(X=this.node)?mT(X):Od};
_.R.equals=function(X){return X.node==this.node&&(!this.node||X.tagType==this.tagType)};
_.R.splice=function(X){var H=this.node,l=this.reversed?1:-1;this.tagType==l&&(this.tagType=l*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;KR.prototype.next.call(this);this.reversed=!this.reversed;l=_.ch(arguments[0])?arguments[0]:arguments;for(var b=l.length-1;b>=0;b--)_.SH(l[b],H);_.HE(H)};var j1Q=function(){},Re=function(X){for(var H=[],l=X.getTextRangeCount(),b=0;b<l;b++)H.push(X.getTextRange(b));
return H};
j1Q.prototype.isReversed=function(){return!1};
j1Q.prototype.getWindow=function(){return Mz(_.uB(this.JSC$11664_getStartNode()))};
var raq=function(X,H){KR.call(this,X,H,!0)};
_.To(raq,KR);var CR=function(X,H,l,b,U){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!U;if(X){this.startNode_=X;this.startOffset_=H;this.endNode_=l;this.endOffset_=b;if(X.nodeType==1&&X.tagName!="BR")if(X=X.childNodes,H=X[H])this.startNode_=H,this.startOffset_=0;else{X.length&&(this.startNode_=_.Wh(X));var K=!0}l.nodeType==1&&((this.endNode_=l.childNodes[b])?this.endOffset_=0:this.endNode_=l)}KR.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);K&&this.next()};
_.To(CR,raq);_.R=CR.prototype;_.R.JSC$11670_getStartNode=function(){return this.startNode_};
_.R.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)};
_.R.next=function(){return this.isLast()?Od:CR.superClass_.next.call(this)};
_.R.JSC$11662_copyFrom=function(X){this.startNode_=X.startNode_;this.endNode_=X.endNode_;this.startOffset_=X.startOffset_;this.endOffset_=X.endOffset_;this.isReversed_=X.isReversed_;CR.superClass_.JSC$11662_copyFrom.call(this,X)};
_.R.clone=function(){var X=new CR(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);X.JSC$11662_copyFrom(this);return X};Afm.prototype.__iterator__=function(){return new CR(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};_.To(YH,Afm);var JaQ=function(X){var H=_.uB(X).createRange();if(X.nodeType==3)H.setStart(X,0),H.setEnd(X,X.length);else if(P0(X)||X.nodeType==3){for(var l,b=X;(l=b.firstChild)&&(P0(l)||l.nodeType==3);)b=l;H.setStart(b,0);for(b=X;(l=b.lastChild)&&(P0(l)||l.nodeType==3);)b=l;H.setEnd(b,b.nodeType==1?b.childNodes.length:b.length)}else l=X.parentNode,X=Array.prototype.indexOf.call(l.childNodes,X),H.setStart(l,X),H.setEnd(l,X+1);return H},LaF=function(X,H,l,b){var U=_.uB(X).createRange();
U.setStart(X,H);U.setEnd(l,b);return U};
_.R=YH.prototype;_.R.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.R.getContainer=function(){return this.range_.commonAncestorContainer};
_.R.compareBrowserRangeEndpoints=function(X,H,l){return this.range_.compareBoundaryPoints(l==1?H==1?_.ok.Range.START_TO_START:_.ok.Range.START_TO_END:H==1?_.ok.Range.END_TO_START:_.ok.Range.END_TO_END,X)};
_.R.isCollapsed=function(){return this.range_.collapsed};
_.R.select=function(X){this.selectInternal(Mz(_.uB(this.range_.startContainer)).getSelection(),X)};
_.R.selectInternal=function(X){X.removeAllRanges();X.addRange(this.range_)};
_.R.insertNode=function(X,H){var l=this.range_.cloneRange();l.collapse(H);l.insertNode(X);l.detach();return X};
_.R.collapse=function(X){this.range_.collapse(X)};_.To(Im,YH);Im.prototype.selectInternal=function(X,H){!H||this.isCollapsed()?Im.superClass_.selectInternal.call(this,X,H):(X.collapse(this.range_.endContainer,this.range_.endOffset),X.extend(this.range_.startContainer,this.range_.startOffset))};_.To(Ah,YH);Ah.prototype.compareBrowserRangeEndpoints=function(X,H,l){return Ah.superClass_.compareBrowserRangeEndpoints.call(this,X,H,l)};
Ah.prototype.selectInternal=function(X,H){H?X.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):X.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var ws=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},buZ;
_.To(ws,j1Q);buZ=function(X,H){var l=new ws;l.browserRangeWrapper_=X;l.isReversed_=!!H;return l};
_.YlG=function(X){X=_.XQ?new Ah(JaQ(X)):_.Hf?new Im(JaQ(X)):new YH(JaQ(X));return buZ(X)};
_.bg=function(X,H,l,b){var U=new ws;U.isReversed_=o1Z(X,H,l,b);if(_.rv(X)&&!P0(X)){var K=X.parentNode;H=Array.prototype.indexOf.call(K.childNodes,X);X=K}_.rv(l)&&!P0(l)&&(K=l.parentNode,b=Array.prototype.indexOf.call(K.childNodes,l),l=K);U.isReversed_?(U.startNode_=l,U.startOffset_=b,U.endNode_=X,U.endOffset_=H):(U.startNode_=X,U.startOffset_=H,U.endNode_=l,U.endOffset_=b);return U};
_.R=ws.prototype;_.R.clone=function(){var X=new ws;X.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();X.startNode_=this.startNode_;X.startOffset_=this.startOffset_;X.endNode_=this.endNode_;X.endOffset_=this.endOffset_;X.isReversed_=this.isReversed_;return X};
_.R.JSC$11664_getType=function(){return"text"};
_.R.getBrowserRangeObject=function(){return ds(this).range_};
_.R.getTextRangeCount=function(){return 1};
_.R.getTextRange=function(){return this};
var ds=function(X){var H;if(!(H=X.browserRangeWrapper_)){H=X.JSC$11664_getStartNode();var l=X.JSC$11664_getStartOffset(),b=X.JSC$11664_getEndNode(),U=X.JSC$11664_getEndOffset();H=_.XQ?new Ah(LaF(H,l,b,U)):_.Hf?new Im(LaF(H,l,b,U)):new YH(LaF(H,l,b,U));H=X.browserRangeWrapper_=H}return H};
_.R=ws.prototype;_.R.getContainer=function(){return ds(this).getContainer()};
_.R.JSC$11664_getStartNode=function(){return this.startNode_||(this.startNode_=ds(this).range_.startContainer)};
_.R.JSC$11664_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=ds(this).range_.startOffset};
_.R.JSC$11664_getEndNode=function(){return this.endNode_||(this.endNode_=ds(this).range_.endContainer)};
_.R.JSC$11664_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=ds(this).range_.endOffset};
_.R.isReversed=function(){return this.isReversed_};
_.R.JSC$11664_containsRange=function(X,H){if(X.JSC$11664_getType()=="text"){var l=ds(this);X=ds(X);H=H&&!X.isCollapsed();X=X.range_;l=H?l.compareBrowserRangeEndpoints(X,0,1)>=0&&l.compareBrowserRangeEndpoints(X,1,0)<=0:l.compareBrowserRangeEndpoints(X,0,0)>=0&&l.compareBrowserRangeEndpoints(X,1,1)<=0}else l=!1;return l};
_.R.isCollapsed=function(){return ds(this).isCollapsed()};
_.R.JSC$11664_getText=function(){return ds(this).range_.toString()};
_.R.__iterator__=function(){return new CR(this.JSC$11664_getStartNode(),this.JSC$11664_getStartOffset(),this.JSC$11664_getEndNode(),this.JSC$11664_getEndOffset())};
_.R.select=function(){ds(this).select(this.isReversed_)};
_.R.JSC$11664_removeContents=function(){var X=ds(this).range_;X.extractContents();if(X.startContainer.hasChildNodes()&&(X=X.startContainer.childNodes[X.startOffset])){var H=X.previousSibling;CIz(X)==""&&_.HE(X);H&&CIz(H)==""&&_.HE(H)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.R.insertNode=function(X,H){X=ds(this).insertNode(X,H);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return X};
_.R.collapse=function(X){X=this.isReversed()?!X:X;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(X);X?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Ip_=function(){};
_.To(Ip_,j1Q);Ip_.prototype.JSC$11664_containsRange=function(X,H){var l=Re(this);X=Re(X);return(H?O4:_.t6k)(X,function(b){return O4(l,function(U){return U.JSC$11664_containsRange(b,H)})})};
Ip_.prototype.insertNode=function(X,H){H?_.px(X,this.JSC$11664_getStartNode()):_.SH(X,this.JSC$11664_getEndNode());return X};var AaQ,XSH=$O().JSC$9636_document_.documentElement;AaQ=XSH.requestFullscreen?"fullscreenchange":XSH.webkitRequestFullscreen?"webkitfullscreenchange":XSH.mozRequestFullScreen?"mozfullscreenchange":XSH.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var oK=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.To(oK,Ip_);_.R=oK.prototype;_.R.clone=function(){var X=new oK;X.browserRanges_=_.NW(this.browserRanges_);return X};
_.R.JSC$11664_getType=function(){return"mutli"};
_.R.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.R.getTextRangeCount=function(){return this.browserRanges_.length};
_.R.getTextRange=function(X){this.ranges_[X]||(this.ranges_[X]=buZ(XRm(this.browserRanges_[X])));return this.ranges_[X]};
_.R.getContainer=function(){if(!this.container_){for(var X=[],H=this.getTextRangeCount(),l=0;l<H;l++)X.push(this.getTextRange(l).getContainer());this.container_=lMq.apply(null,X)}return this.container_};
var hs=function(X){X.sortedRanges_||(X.sortedRanges_=Re(X),X.sortedRanges_.sort(function(H,l){var b=H.JSC$11664_getStartNode();H=H.JSC$11664_getStartOffset();var U=l.JSC$11664_getStartNode();l=l.JSC$11664_getStartOffset();return b==U&&H==l?0:o1Z(b,H,U,l)?1:-1}));
return X.sortedRanges_};
_.R=oK.prototype;_.R.JSC$11664_getStartNode=function(){return hs(this)[0].JSC$11664_getStartNode()};
_.R.JSC$11664_getStartOffset=function(){return hs(this)[0].JSC$11664_getStartOffset()};
_.R.JSC$11664_getEndNode=function(){return _.Wh(hs(this)).JSC$11664_getEndNode()};
_.R.JSC$11664_getEndOffset=function(){return _.Wh(hs(this)).JSC$11664_getEndOffset()};
_.R.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.R.JSC$11664_getText=function(){return Re(this).map(function(X){return X.JSC$11664_getText()}).join("")};
_.R.__iterator__=function(){return new FI(this)};
_.R.select=function(){var X=this.getWindow().getSelection();X.removeAllRanges();for(var H=this.getTextRangeCount(),l=0;l<H;l++)X.addRange(this.getTextRange(l).getBrowserRangeObject())};
_.R.JSC$11664_removeContents=function(){Re(this).forEach(function(X){X.JSC$11664_removeContents()})};
_.R.collapse=function(X){if(!this.isCollapsed()){var H=X?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;H.collapse(X);this.ranges_=[H];this.sortedRanges_=[H];this.browserRanges_=[H.getBrowserRangeObject()]}};
var FI=function(X){this.iterators_=null;this.currentIdx_=0;X&&(this.iterators_=hs(X).map(function(H){return _.fiF(H)}));
KR.call(this,X?this.JSC$11670_getStartNode():null,!1,!0)};
_.To(FI,raq);_.R=FI.prototype;_.R.JSC$11670_getStartNode=function(){return this.iterators_[0].JSC$11670_getStartNode()};
_.R.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.R.next=function(){for(;this.currentIdx_<this.iterators_.length;){var X=this.iterators_[this.currentIdx_],H=X.next();if(H.done)this.currentIdx_++;else return $w(this,X.node,X.tagType,X.depth),H}return Od};
_.R.JSC$11662_copyFrom=function(X){this.iterators_=_.NW(X.iterators_);FI.superClass_.JSC$11662_copyFrom.call(this,X)};
_.R.clone=function(){var X=new FI(null);X.JSC$11662_copyFrom(this);return X};var BA=function(){_.zB.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.K8)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.K8)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.K8)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.K8)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.K8)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.K8)(this.dispatchProgressEvent_,this)};
_.To(BA,_.zB);BA.prototype.abort=function(){try{this.reader_.abort()}catch(X){throw new swW(X,"aborting read");}};
BA.prototype.getError=function(){return this.reader_.error&&new swW(this.reader_.error,"reading file")};
BA.prototype.dispatchProgressEvent_=function(X){this.dispatchEvent(new Msk(X,this))};
BA.prototype.disposeInternal=function(){BA.superClass_.disposeInternal.call(this);delete this.reader_};
var lHH=function(X){var H=new BA,l=Hl_(H);H.reader_.readAsArrayBuffer(X);return l},ojG=function(X){var H=new BA,l=Hl_(H);
H.reader_.readAsDataURL(X);return l},Hl_=function(X){var H=new FJ;
X.listen("loadend",_.lH(function(l,b){var U=b.reader_.result,K=b.getError();U==null||K?l.errback(K):l.callback(U);b.dispose()},H,X));
return H};var q6=function(){_.zB.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11704_eventHandler_=new _.C8(this);this.JSC$11704_isInitialized_=!1};
_.To(q6,_.zB);var blz=new _.Cu("d"),UnH=new _.Cu("beforedragstart"),$nY=new _.Cu("dragstart"),Kyt=new _.Cu("beforedragmove"),Riq=new _.Cu("dragmove"),CEC=new _.Cu("beforedragend"),wSq=new _.Cu("dragend"),dnD=new _.Cu("e");q6.prototype.isDragging=function(){return!!this.JSC$11704_dragger_};
var hit=function(X,H){H.dlgGrowthDirection_=0;H.dlgDragHoverClass_=void 0;H.dlgDragPermission=0;X.dragLists_.push(H)},FyH=function(X,H){X.getHandleForDragItem_=H};
q6.prototype.init=function(){if(!this.JSC$11704_isInitialized_){for(var X=this.dragLists_.length,H=0;H<X;H++)for(var l=_.za(this.dragLists_[H]),b=l.length,U=0;U<b;++U){var K=l[U],w=this.getHandleForDragItem_(K),d=_.Ly(w);this.dragItemForHandle_[d]=K;this.dragItemHoverClasses_&&(this.JSC$11704_eventHandler_.listen(K,"mouseover",this.handleDragItemMouseover_),this.JSC$11704_eventHandler_.listen(K,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11704_eventHandler_.listen(w,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11704_eventHandler_.listen(w,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(K);this.JSC$11704_eventHandler_.listen(w,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11704_isInitialized_=!0}};
q6.prototype.disposeInternal=function(){this.JSC$11704_eventHandler_.dispose();for(var X=this.dragLists_.length,H=0;H<X;H++){var l=this.dragLists_[H];l.dlgGrowthDirection_=void 0;l.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;Bd_(this);q6.superClass_.disposeInternal.call(this)};
var qm9=function(X,H){for(var l=X.dragLists_.length,b=0;b<l;b++){var U=X.dragLists_[b];U.dlgBounds_=$Qb(U)}l=X.dragItems_.length;for(b=0;b<l;b++)U=X.dragItems_[b],U!=H&&(U.dlgBounds_=$Qb(U))};
_.R=q6.prototype;
_.R.handlePotentialDragStart_=function(X){var H=_.Ly(X.currentTarget);H=this.dragItemForHandle_[H];if(H.parentElement.dlgDragPermission!=2){this.currDragItem_=H;a:{H=this.currDragItem_;for(var l=H.cloneNode(!0),b=lI("TEXTAREA",H),U=lI("TEXTAREA",l),K=0;K<b.length;K++)U[K].value=b[K].value;switch(H.tagName){case "TR":H=_.yT("TABLE",null,_.yT("TBODY",null,l));break a;case "TD":case "TH":H=_.yT("TABLE",null,_.yT("TBODY",null,_.yT("TR",null,l)));break a;case "TEXTAREA":l.value=H.value;default:H=l;break a}H=
void 0}this.draggerEl_=H;this.draggerElClasses_&&Gj(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.uB(this.currDragItem_).body.appendChild(this.draggerEl_);l=_.eP(this.currDragItem_);H=this.draggerEl_;b=_.eP(H);if(l instanceof _.DY){var w=l.y;l=l.x}DO(H,H.offsetLeft+(l-b.x),H.offsetTop+(Number(w)-b.y));this.JSC$11704_dragger_=new _.y$(this.draggerEl_);_.irq(this.JSC$11704_dragger_,this.hysteresisDistance_);
_.n8(this.JSC$11704_dragger_,"start",this.handleDragStart_,!1,this);_.n8(this.JSC$11704_dragger_,"end",this.handleDragEnd_,!1,this);_.n8(this.JSC$11704_dragger_,"earlycancel",this.JSC$11706_cleanup_,!1,this);this.dispatchEvent(new s8(blz,this,X,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_));this.JSC$11704_dragger_.startDrag(X)}};
_.R.handleDragStart_=function(X){if(this.dispatchEvent(new s8(UnH,this,X.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.AjC(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Gj(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var H=qTD(this.draggerEl_);this.draggerEl_.halfWidth=H.width/2;this.draggerEl_.halfHeight=H.height/2;H=this.draggerEl_.getBoundingClientRect();
var l=X.clientY,b=vEH(this.JSC$11704_dragger_,X.clientX);if(b>H.right){var U=this.currDragItem_.getBoundingClientRect();this.JSC$11704_dragger_.deltaX=b-(b-U.left)/U.width*H.width}l=OrF(this.JSC$11704_dragger_,l);l>H.bottom&&(this.JSC$11704_dragger_.deltaY+=l-H.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";qm9(this,this.currDragItem_);this.currDragItem_.style.display="";_.n8(this.JSC$11704_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new s8($nY,
this,X.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_))}else X.preventDefault(),this.JSC$11706_cleanup_()};
_.R.handleDragMove_=function(X){var H=_.eP(this.draggerEl_);H=new _.DY(H.x+this.draggerEl_.halfWidth,H.y+this.draggerEl_.halfHeight);a:{var l=null;if(this.currDragItem_.style.display!="none"){l=this.currDragItem_.parentNode;var b=$Qb(l);if(sqq(H,b))break a}b=this.dragLists_.length;for(var U=0;U<b;U++){var K=this.dragLists_[U];if(K!=l&&sqq(H,K.dlgBounds_)){l=K;break a}}l=null}if(l){if(l==null)throw Error("ae");b=0;U=!1;K=void 0;switch(l.dlgGrowthDirection_){case 0:b=H.y;var w=M2D;var d=u8Y;break;case 4:U=
!0;case 2:b=H.x;w=ei_;d=u8Y;break;case 5:U=!0;case 3:b=H.x,w=ywD,d=V2F}for(var B=null,q,u=_.za(l),e=u.length,y=0;y<e;y++){var V=u[y];if(V!=this.currDragItem_){var p=w(V.dlgBounds_);if(U){var z=PE_(V,H);K===void 0&&(K=z);d(b,p)&&(q==void 0||z<K||z==K&&(d(p,q)||p==q))&&(B=V,q=p);z<K&&(K=z)}else d(b,p)&&(q==void 0||d(p,q))&&(B=V,q=p)}}w=B!==null&&PE_(B,H)>K?null:B}else w=null;if(!this.dispatchEvent(new s8(Kyt,this,X,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_,H,l,w)))return!1;if(l&&l.dlgDragPermission!=
1)this.currDragItem_.parentNode==l&&_.AjC(this.currDragItem_)==w||l.insertBefore(this.currDragItem_,w),this.currDragItem_.style.display="",l.dlgDragHoverClass_&&_.kl(l,l.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",d=this.dragLists_.length,q=0;q<d;q++)b=this.dragLists_[q],b.dlgDragHoverClass_&&_.nq(b,b.dlgDragHoverClass_);l!=this.currHoverList_&&(this.currHoverList_=l,qm9(this,this.currDragItem_));this.dispatchEvent(new s8(Riq,this,X,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_,
H,l,w));return!1};
_.R.JSC$11706_cleanup_=function(){Bd_(this);this.JSC$11704_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var X=this.dragLists_.length,H=0;H<X;H++)this.dragLists_[H].dlgBounds_=null;X=this.dragItems_.length;for(H=0;H<X;H++)this.dragItems_[H].dlgBounds_=null};
_.R.handleDragEnd_=function(X){if(!this.dispatchEvent(new s8(CEC,this,X,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_)))return!1;Bd_(this);this.dispatchEvent(new s8(wSq,this,X,this.currDragItem_,this.draggerEl_,this.JSC$11704_dragger_));this.JSC$11706_cleanup_();return!0};
var Bd_=function(X){_.Gp(X.JSC$11704_dragger_);var H=X.draggerEl_&&X.draggerEl_.parentElement;X.draggerEl_&&_.HE(X.draggerEl_);X.currDragItem_&&X.currDragItem_.style.display=="none"&&(X.origList_.insertBefore(X.currDragItem_,X.origNextItem_),X.currDragItem_.style.display="");X.currDragItemClasses_&&X.currDragItem_?jw9(X.currDragItem_,X.currDragItemClasses_||[]):X.currDragItem_&&(X.currDragItem_.style.visibility="");for(var l=X.dragLists_.length,b=0;b<l;b++){var U=X.dragLists_[b];U.dlgDragHoverClass_&&
_.nq(U,U.dlgDragHoverClass_)}H&&X.dispatchEvent(new s8(dnD,X,null,X.currDragItem_,X.draggerEl_,X.JSC$11704_dragger_))};
_.R=q6.prototype;_.R.getHandleForDragItem_=function(X){return X};
_.R.handleDragItemMouseover_=function(X){Gj(X.currentTarget,this.dragItemHoverClasses_||[])};
_.R.handleDragItemMouseout_=function(X){jw9(X.currentTarget,this.dragItemHoverClasses_||[])};
_.R.handleDragItemHandleMouseover_=function(X){Gj(X.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.R.handleDragItemHandleMouseout_=function(X){jw9(X.currentTarget,this.dragItemHandleHoverClasses_||[])};
var sqq=function(X,H){return X.x>H.left&&X.x<H.left+H.width&&X.y>H.top&&X.y<H.top+H.height},PE_=function(X,H){X=X.dlgBounds_;
return Math.abs(H.y-(X.top+(X.height-1)/2))},M2D=function(X){return X.top+X.height-1},ei_=function(X){return X.left+X.width-1},ywD=function(X){return X.left||0},u8Y=function(X,H){return X<H},V2F=function(X,H){return X>H},s8=function(X,H,l,b,U,K){_.NF.call(this,X);
this.event=l;this.currDragItem=b;this.draggerEl=U;this.JSC$11708_dragger=K};
_.To(s8,_.NF);_.To(Kr,_.$e);var fHY=new _.DY(0,0);Kr.prototype.JSC$11712_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Kr.prototype.JSC$11712_onMouseMove=function(X){var H=this.containerIsActuallyContent_?fHY:U_($O(this.containerNode_)),l=this.horizontalScrolling_?this.calculateScrollDelta(X.clientX+H.x,this.scrollBounds_.left,this.scrollBounds_.width):0,b=this.calculateScrollDelta(X.clientY+H.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=l;this.scrollDelta_.y=b;!(l=!l&&!b)&&(l=this.constrainScroll_)&&(l=X.clientX+H.x,X=X.clientY+H.y,H=this.containerBounds_,l=!(H.left<=l&&H.left+H.width>=
l&&H.top<=X&&H.top+H.height>=X));l?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Kr.prototype.calculateScrollDelta=function(X,H,l){var b=0;X<H?b=-8:X>H+l&&(b=8);return b};
Kr.prototype.disposeInternal=function(){Kr.superClass_.disposeInternal.call(this);this.JSC$11710_eventHandler_.dispose();this.scrollTimer_.dispose()};var pSD={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"}}},M6=pSD;M6=pSD;var yv={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 nT=function(X){if(typeof X=="number"){var H=new Kxl;H.standardOffset_=X;var l=X;if(l==0)l="Etc/GMT";else{var b=["Etc/GMT",l<0?"-":"+"];l=Math.abs(l);b.push(Math.floor(l/60)%100);l%=60;l!=0&&b.push(":",_.IV(l,2));l=b.join("")}H.timeZoneId_=l;l=X;l==0?l="UTC":(b=["UTC",l<0?"+":"-"],l=Math.abs(l),b.push(Math.floor(l/60)%100),l%=60,l!=0&&b.push(":",l),l=b.join(""));X=SmC(X);H.tzNames_=[l,l];H.tzNamesExt_={STD_LONG_NAME_GMT:X,STD_GENERIC_LOCATION:X};H.transitions_=[];return H}H=new Kxl;H.timeZoneId_=
X.id;H.standardOffset_=-X.std_offset;H.tzNames_=X.names;H.tzNamesExt_=X.names_ext;H.transitions_=X.transitions;return H},SmC=function(X){var H=["GMT"];
H.push(X<=0?"+":"-");X=Math.abs(X);H.push(_.IV(Math.floor(X/60)%100,2),":",_.IV(X%60,2));return H.join("")},zi_=function(X,H){H=Date.UTC(H.getUTCFullYear(),H.getUTCMonth(),H.getUTCDate(),H.getUTCHours(),H.getUTCMinutes())/36E5;
for(var l=0;l<X.transitions_.length&&H>=X.transitions_[l];)l+=2;return l==0?0:X.transitions_[l-1]},nj6=function(X,H){X=X.standardOffset_-zi_(X,H);
return X===-1440?0:X};var kM=function(X,H){this.patternParts_=[];this.JSC$11723_dateTimeSymbols_=H||Is;typeof X=="number"?kEQ(this,X):xn9(this,X)},DnC=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Vv=function(X){return X.getHours?X.getHours():0},xn9=function(X,H){for(cTN&&(H=H.replace(/\u200f/g,""));H;){for(var l=H,b=0;b<DnC.length;++b){var U=H.match(DnC[b]);
if(U){var K=U[0];H=H.substring(K.length);b==0&&(K=="''"?K="'":(K=K.substring(1,U[1]=="'"?K.length-1:K.length),K=K.replace(/''/g,"'")));X.patternParts_.push({text:K,type:b});break}}if(l===H)throw Error("be`"+H);}};
kM.prototype.format=function(X,H){if(!X)throw Error("ce");var l=H?(X.getTimezoneOffset()-nj6(H,X))*6E4:0,b=l?new Date(X.getTime()+l):X,U=b;H&&b.getTimezoneOffset()!=X.getTimezoneOffset()&&(b=new Date(b.getTime()+(b.getTimezoneOffset()-X.getTimezoneOffset())*6E4),U=new Date(X.getTime()+(l+(l>0?-864E5:864E5))));l=[];for(var K=0;K<this.patternParts_.length;++K){var w=this.patternParts_[K].text;1==this.patternParts_[K].type?l.push(t2H(this,w,X,b,U,H)):l.push(w)}return l.join("")};
var kEQ=function(X,H){if(H<4)var l=X.JSC$11723_dateTimeSymbols_.DATEFORMATS[H];else if(H<8)l=X.JSC$11723_dateTimeSymbols_.TIMEFORMATS[H-4];else if(H<12)l=X.JSC$11723_dateTimeSymbols_.DATETIMEFORMATS[H-8],l=l.replace("{1}",X.JSC$11723_dateTimeSymbols_.DATEFORMATS[H-8]),l=l.replace("{0}",X.JSC$11723_dateTimeSymbols_.TIMEFORMATS[H-8]);else if(H===12)l=X.JSC$11723_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(H===13)l=X.JSC$11723_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{kEQ(X,10);return}xn9(X,l)},PA=function(X,H){H=String(H);
X=X.JSC$11723_dateTimeSymbols_||Is;if(X.ZERODIGIT!==void 0&&!N3k){for(var l=[],b=0;b<H.length;b++){var U=H.charCodeAt(b);l.push(48<=U&&U<=57?String.fromCharCode(X.ZERODIGIT+U-48):H.charAt(b))}H=l.join("")}return H},N3k=!1,cTN=!1,Ejz=function(X,H,l,b){l=l.getFullYear();
l<=0&&b&&(l=1-l);return PA(X,Wy9(l,H))},Wy9=function(X,H){H==2&&(X%=100);
X<0&&H++;return _.IV(X,H)},fR=function(X){if(!(X.getHours&&X.getSeconds&&X.getMinutes))throw Error("de");
},gj6=function(X,H){fR(H);
H=Vv(H);return X.JSC$11723_dateTimeSymbols_.AMPMS[H>=12&&H<24?1:0]},t2H=function(X,H,l,b,U,K){var w=H.length;
switch(H.charAt(0)){case "G":return l=b.getFullYear()>0?1:0,w>=4?X.JSC$11723_dateTimeSymbols_.ERANAMES[l]:X.JSC$11723_dateTimeSymbols_.ERAS[l];case "y":return Ejz(X,w,b,!0);case "Y":return l=(new Date(TCt(b.getFullYear(),b.getMonth(),b.getDate(),X.JSC$11723_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,X.JSC$11723_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),w==2&&(l%=100),PA(X,Wy9(l,w));case "u":return Ejz(X,w,b,!1);case "M":a:switch(l=b.getMonth(),w){case 5:w=X.JSC$11723_dateTimeSymbols_.NARROWMONTHS[l];
break a;case 4:w=X.JSC$11723_dateTimeSymbols_.MONTHS[l];break a;case 3:w=X.JSC$11723_dateTimeSymbols_.SHORTMONTHS[l];break a;default:w=PA(X,_.IV(l+1,w))}return w;case "k":return fR(U),PA(X,_.IV(Vv(U)||24,w));case "S":return PA(X,(U.getMilliseconds()/1E3).toFixed(Math.min(3,w)).slice(2)+(w>3?_.IV(0,w-3):""));case "E":return l=b.getDay(),w>=4?X.JSC$11723_dateTimeSymbols_.WEEKDAYS[l]:X.JSC$11723_dateTimeSymbols_.SHORTWEEKDAYS[l];case "a":return gj6(X,U);case "b":return gj6(X,U);case "B":return gj6(X,
U);case "h":return fR(U),PA(X,_.IV(Vv(U)%12||12,w));case "K":return fR(U),PA(X,_.IV(Vv(U)%12,w));case "H":return fR(U),PA(X,_.IV(Vv(U),w));case "c":a:switch(l=b.getDay(),w){case 5:w=X.JSC$11723_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[l];break a;case 4:w=X.JSC$11723_dateTimeSymbols_.STANDALONEWEEKDAYS[l];break a;case 3:w=X.JSC$11723_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[l];break a;default:w=PA(X,_.IV(l,1))}return w;case "L":a:switch(l=b.getMonth(),w){case 5:w=X.JSC$11723_dateTimeSymbols_.STANDALONENARROWMONTHS[l];
break a;case 4:w=X.JSC$11723_dateTimeSymbols_.STANDALONEMONTHS[l];break a;case 3:w=X.JSC$11723_dateTimeSymbols_.STANDALONESHORTMONTHS[l];break a;default:w=PA(X,_.IV(l+1,w))}return w;case "Q":return l=Math.floor(b.getMonth()/3),w<4?X.JSC$11723_dateTimeSymbols_.SHORTQUARTERS[l]:X.JSC$11723_dateTimeSymbols_.QUARTERS[l];case "d":return PA(X,_.IV(b.getDate(),w));case "m":return fR(U),PA(X,_.IV(U.getMinutes?U.getMinutes():0,w));case "s":return fR(U),PA(X,_.IV(U.getSeconds(),w));case "v":return(K||nT(l.getTimezoneOffset())).timeZoneId_;
case "V":return X=K||nT(l.getTimezoneOffset()),w<=2?X.timeZoneId_:zi_(X,l)>0?X.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?X.tzNamesExt_.DST_GENERIC_LOCATION:X.tzNamesExt_.DST_GENERIC_LOCATION:X.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?X.tzNamesExt_.STD_GENERIC_LOCATION:X.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return l=TCt(U.getFullYear(),U.getMonth(),U.getDate(),X.JSC$11723_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,X.JSC$11723_dateTimeSymbols_.FIRSTDAYOFWEEK),PA(X,_.IV(Math.floor(Math.round((l-(new Date((new Date(l)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,w));case "z":return X=K||nT(l.getTimezoneOffset()),w<4?X.tzNames_[zi_(X,l)>0?2:0]:X.tzNames_[zi_(X,l)>0?3:1];case "Z":return H=K||nT(l.getTimezoneOffset()),w<4?(w=-nj6(H,l),X=[w<0?"-":"+"],w=Math.abs(w),X.push(_.IV(Math.floor(w/60)%100,2),_.IV(w%60,2)),w=X.join("")):w=PA(X,SmC(nj6(H,l))),w;default:return""}};var GEQ=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,aHq=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,cch=function(X){this.patternParts_=[];this.JSC$11732_dateTimeSymbols_=Is;if(typeof X=="number"){X>11&&(X=10);if(X<4)var H=this.JSC$11732_dateTimeSymbols_.DATEFORMATS[X];else X<8?H=this.JSC$11732_dateTimeSymbols_.TIMEFORMATS[X-4]:(H=this.JSC$11732_dateTimeSymbols_.DATETIMEFORMATS[X-8],H=H.replace("{1}",this.JSC$11732_dateTimeSymbols_.DATEFORMATS[X-8]),H=H.replace("{0}",this.JSC$11732_dateTimeSymbols_.TIMEFORMATS[X-
8]));ZlQ(this,H)}else ZlQ(this,X)},ZlQ=function(X,H){for(var l=!1,b="",U=0;U<H.length;U++){var K=H.charAt(U);
if(GEQ.test(K))for(b.length>0&&(X.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1}),b=""),X.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});U<H.length-1&&H.charAt(U+1)==" ";)U++;else if(l)K=="'"?U+1<H.length&&H.charAt(U+1)=="'"?(b+="'",U++):l=!1:b+=K;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(K)>=0){b.length>0&&(X.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1}),b="");for(var w=H.charAt(U),d=U+1;d<H.length&&H.charAt(d)==w;)d++;w=d-U;w<=0?d=!1:(d="MydhHmsSDkK".indexOf(K),
d=d>0||d==0&&w<3);X.patternParts_.push({text:K,count:w,abutStart:!1,numeric:d});U+=w-1}else K=="'"?U+1<H.length&&H.charAt(U+1)=="'"?(b+="'",U++):l=!0:b+=K}b.length>0&&X.patternParts_.push({text:b,count:0,abutStart:!1,numeric:!1});H=!1;for(l=0;l<X.patternParts_.length;l++)X.patternParts_[l].numeric?!H&&l+1<X.patternParts_.length&&X.patternParts_[l+1].numeric&&(H=!0,X.patternParts_[l].abutStart=!0):H=!1};
cch.prototype.parse=function(X,H,l){var b=!1,U=!1;l&&(b=l.predictive||!1,U=l.validate||!1);if(b)for(l=0;l<this.patternParts_.length;l++){var K=this.patternParts_[l];if(K.count>0&&("abBhHkKm".indexOf(K.text.charAt(0))<0||K.count>2||K.abutStart))throw Error("ee`"+K.text.charAt(0));}K=new ilQ;l=[0];K.dayPeriodIndex=-1;for(var w=0;w<this.patternParts_.length&&!(b&&l[0]>=X.length);w++){if(this.patternParts_[w].count==0){a:{var d=X;var B=l,q=this.patternParts_[w],u=b;if(q.text.match(GEQ)!=null){if(q=B[0],
vjG(d,B),B[0]>q){d=!0;break a}}else{if(d.indexOf(q.text,B[0])==B[0]){B[0]+=q.text.length;d=!0;break a}if(u&&q.text.indexOf(d.substring(B[0]))==0){B[0]+=d.length-B[0];d=!0;break a}}d=!1}if(d)continue;return 0}if(this.patternParts_[w].abutStart){a:{B=X;q=l;u=w;var e=q[0],y=0;for(d=u;d<this.patternParts_.length;d++){var V=this.patternParts_[d],p=V.count;if(p===0)break;if(d==u&&(p-=y,y++,p==0)){d=0;break a}var z=d>u&&V.numeric,t=q[0];if(!OlC(this,B,q,V,p,K,!1)||z&&q[0]-t<p)d=u-1,q[0]=e}d-=u}if(d<=0)return 0;
w+=d-1}else if(!OlC(this,X,l,this.patternParts_[w],0,K,b))return 0}a:{X=U;if(H==null)throw Error("fe");K.era!=void 0&&K.year!=void 0&&K.era==0&&K.year>0&&(K.year=-(K.year-1));K.year!=void 0&&H.setFullYear(K.year);b=H.getDate();H.setDate(1);K.month!=void 0&&H.setMonth(K.month);K.day!=void 0?H.setDate(K.day):(U=ycN(H.getFullYear(),H.getMonth()),H.setDate(b>U?U:b));typeof H.setHours==="function"&&(K.hours==void 0&&(K.hours=H.getHours()),K.hours<12&&(K.ampm!=void 0&&K.ampm>0?K.hours+=12:K.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(K.dayPeriodName)||["night1","night2"].includes(K.dayPeriodName)&&K.hours>=6)&&(K.hours+=12)),H.setHours(K.hours));typeof H.setMinutes==="function"&&K.minutes!=void 0&&H.setMinutes(K.minutes);typeof H.setSeconds==="function"&&K.seconds!=void 0&&H.setSeconds(K.seconds);typeof H.setMilliseconds==="function"&&K.milliseconds!=void 0&&H.setMilliseconds(K.milliseconds);if(X&&(K.year&&K.year!=H.getFullYear()||K.month&&K.month!=
H.getMonth()||K.day&&K.day!=H.getDate()||K.hours&&K.hours>=24||K.minutes&&K.minutes>=60||K.seconds&&K.seconds>=60||K.milliseconds&&K.milliseconds>=1E3))H=!1;else{K.tzOffset!=void 0&&H.setTime(H.getTime()+(K.tzOffset-H.getTimezoneOffset())*60*1E3);K.ambiguousYear&&(X=new Date,X.setFullYear(X.getFullYear()-80),H.getTime()<X.getTime()&&H.setFullYear(X.getFullYear()+100));if(K.dayOfWeek!=void 0)if(K.day==void 0)K=(7+K.dayOfWeek-H.getDay())%7,K>3&&(K-=7),X=H.getMonth(),H.setDate(H.getDate()+K),H.getMonth()!=
X&&H.setDate(H.getDate()+(K>0?-7:7));else if(K.dayOfWeek!=H.getDay()){H=!1;break a}H=!0}}return H?l[0]:0};
var OlC=function(X,H,l,b,U,K,w){vjG(H,l);if(b.numeric&&U>0&&l[0]+U>H.length)return!1;switch(b.text.charAt(0)){case "G":return pR(H,l,[X.JSC$11732_dateTimeSymbols_.ERAS],function(d){return K.era=d}),!0;
case "M":case "L":return mnH(X,H,l,U,b,K);case "E":return pR(H,l,[X.JSC$11732_dateTimeSymbols_.WEEKDAYS,X.JSC$11732_dateTimeSymbols_.SHORTWEEKDAYS],function(d){return K.dayOfWeek=d});
case "B":case "b":return U=[],X=[[].concat(X.JSC$11732_dateTimeSymbols_.AMPMS)],U.push("isAm"),U.push("isPm"),H=pR(H,l,X,function(d){return K.dayPeriodIndex=d},w),K.dayPeriodName=U[K.dayPeriodIndex],w?H:!0;
case "a":return H=pR(H,l,[X.JSC$11732_dateTimeSymbols_.AMPMS],function(d){return K.ampm=d},w),w?H:!0;
case "y":return QqC(X,H,l,b,U,K);case "Q":return pR(H,l,[X.JSC$11732_dateTimeSymbols_.QUARTERS,X.JSC$11732_dateTimeSymbols_.SHORTQUARTERS],function(d){K.month=d*3;K.day=1});
case "d":return Sf(X,H,l,b,U,function(d){K.day=d}),!0;
case "S":return Td9(X,H,l,U,K);case "h":case "K":case "H":case "k":return H=Sf(X,H,l,b,U,function(d){K.hours=b.text.charAt(0)==="h"&&d===12?0:d},w),w?H:!0;
case "m":return H=Sf(X,H,l,b,U,function(d){K.minutes=d},w),w?H:!0;
case "s":return Sf(X,H,l,b,U,function(d){K.seconds=d}),!0;
case "z":case "Z":case "v":return NdD(X,H,l,K);default:return!1}},QqC=function(X,H,l,b,U,K){var w=l[0];
U=zV(X,H,l,U);U===null&&(U=zV(X,H,l,0,!0));if(U===null)return!1;U>=0&&l[0]-w==2&&b.count==2?(X=U,H=(new Date).getFullYear()-80,l=H%100,K.ambiguousYear=X==l,X+=Math.floor(H/100)*100+(X<l?100:0),K.year=X):K.year=U;return!0},mnH=function(X,H,l,b,U,K){return U.numeric&&Sf(X,H,l,U,b,function(w){K.month=w-1})?!0:pR(H,l,[X.JSC$11732_dateTimeSymbols_.MONTHS,
X.JSC$11732_dateTimeSymbols_.STANDALONEMONTHS,X.JSC$11732_dateTimeSymbols_.SHORTMONTHS,X.JSC$11732_dateTimeSymbols_.STANDALONESHORTMONTHS],function(w){K.month=w})},Td9=function(X,H,l,b,U){var K=l[0];
X=zV(X,H,l,b);if(X===null)return!1;l=l[0]-K;U.milliseconds=l<3?X*Math.pow(10,3-l):Math.round(X/Math.pow(10,l-3));return!0},NdD=function(X,H,l,b){H.indexOf("GMT",l[0])==l[0]&&(l[0]+=3);
if(l[0]>=H.length)return b.tzOffset=0,!0;var U=l[0],K=zV(X,H,l,0,!0);if(K===null)return!1;if(l[0]<H.length&&H.charAt(l[0])==":"){var w=K*60;l[0]++;K=zV(X,H,l,0);if(K===null)return!1;w+=K}else w=K,w=w<24&&l[0]-U<=3?w*60:w%100+w/100*60;b.tzOffset=-w;return!0},Sf=function(X,H,l,b,U,K,w){w=w||!1;
var d=l[0];X=zV(X,H,l,U);if(X===null)return!1;if(w&&l[0]-d<b.count){if(l[0]<H.length)return!1;X*=Math.pow(10,b.count-(l[0]-d))}K(X);return!0},pR=function(X,H,l,b,U){U=U||!1;
for(var K,w=0;w<l.length;w++){K=H;for(var d=l[w],B=U,q=0,u=null,e=X.substring(K[0]).toLowerCase(),y=0;y<d.length;y++){var V=d[y].toLowerCase();if(B&&V.indexOf(e)==0){q=e.length;u=y;break}d[y].length>q&&e.indexOf(V)==0&&(q=d[y].length,u=y)}u!==null&&(K[0]+=q);K=u;if(K!==null)return b(K),!0}return!1},vjG=function(X,H){(X=X.substring(H[0]).match(aHq))&&(H[0]+=X[0].length)},zV=function(X,H,l,b,U){H=b>0?H.substring(0,l[0]+b):H;
U=U||!1;if(X.JSC$11732_dateTimeSymbols_.ZERODIGIT){b=[];for(var K=l[0];K<H.length;K++){var w=H.charCodeAt(K)-X.JSC$11732_dateTimeSymbols_.ZERODIGIT;b.push(0<=w&&w<=9?String.fromCharCode(w+48):H.charAt(K))}H=b.join("")}else H=H.substring(l[0]);X=H.match(new RegExp("^"+(U?"[+-]?":"")+"\\d+"));if(!X)return null;l[0]+=X[0].length;return parseInt(X[0],10)},ilQ=function(){};
ilQ.prototype.ambiguousYear=!1;var cwz;
cwz={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 jqz={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}"]};
jqz={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 rw_=function(){var X={type:"unit",style:"narrow"};this.listType_=X&&X.type?X.type:"conjunction";this.listStyle_=X&&X.style?X.style:"long";this.listSymbols_=jqz;X=0;switch(this.listStyle_){case "short":X=1;break;case "narrow":X=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[X];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[X];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[X];this.listEndPattern_=
this.listSymbols_.AND_END[X];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[X];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[X];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[X];this.listEndPattern_=this.listSymbols_.OR_END[X];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[X],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[X],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[X],this.listEndPattern_=this.listSymbols_.UNIT_END[X]}};
rw_.prototype.format=function(X){return Jwv(this,X)};
var Jwv=function(X,H){var l=H.length;switch(l){case 0:return"";case 1:return String(H[0]);case 2:return X.listTwoPattern_.replace("{0}",String(H[0])).replace("{1}",String(H[1]))}for(var b=X.listStartPattern_.replace("{0}",String(H[0])).replace("{1}",String(H[1])),U=2;U<l-1;++U)b=X.listMiddlePattern_.replace("{0}",b).replace("{1}",String(H[U]));return X.listEndPattern_.replace("{0}",b).replace("{1}",String(H[l-1]))};var LyQ={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"},Ym_=LyQ,IHQ=LyQ;IHQ=Ym_=LyQ;var X6C,nR,xw,GOK,kw,Awq;
_.pT=function(X,H,l,b){var U;if(U=H){a:if(H&&H.length===3){for(U=0;U<3;U++){var K=H[U];if(K<"A"||K>"Z"&&K<"a"||K>"z"){U=!1;break a}}U=!0}else U=!1;U=!U}if(U)throw new TypeError("ge");this.intlCurrencyCode_=H?H.toUpperCase():null;this.currencyStyle_=l||0;this.overrideNumberFormatSymbols_=b||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_=nR(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof X==="number")switch(X){case 1:kw(this,nR(this).DECIMAL_PATTERN);break;case 2:kw(this,nR(this).SCIENTIFIC_PATTERN);break;case 3:kw(this,nR(this).PERCENT_PATTERN);break;case 4:X=nR(this).CURRENCY_PATTERN;H=["0"];if(l=
yv[xw(this)]){l=l[0]&7;if(l>0)for(H.push("."),b=0;b<l;b++)H.push("0");X=X.replace(/0.00/g,H.join(""))}kw(this,X);break;case 5:Awq(this,1);break;case 6:Awq(this,2);break;default:throw Error("je");}else kw(this,X)};
X6C=!1;nR=function(X){return X.overrideNumberFormatSymbols_||(X6C?IHQ:Ym_)};
xw=function(X){return X.intlCurrencyCode_||nR(X).DEF_CURRENCY_CODE};
GOK=function(X,H){if(H>308)throw Error("ie`"+H);X.maximumFractionDigits_=H;return X};
kw=function(X,H){var l=[0];X.positivePrefix_=HS_(X,H,l);for(var b=l[0],U=-1,K=0,w=0,d=0,B=-1,q=H.length,u=!0;l[0]<q&&u;l[0]++)switch(H.charAt(l[0])){case "#":w>0?d++:K++;B>=0&&U<0&&B++;break;case "0":if(d>0)throw Error("pe`"+H);w++;B>=0&&U<0&&B++;break;case ",":B>0&&X.groupingArray_.push(B);B=0;break;case ".":if(U>=0)throw Error("qe`"+H);U=K+w+d;break;case "E":if(X.useExponentialNotation_)throw Error("re`"+H);X.useExponentialNotation_=!0;X.minExponentDigits_=0;l[0]+1<q&&H.charAt(l[0]+1)=="+"&&(l[0]++,
X.useSignForPositiveExponent_=!0);for(;l[0]+1<q&&H.charAt(l[0]+1)=="0";)l[0]++,X.minExponentDigits_++;if(K+w<1||X.minExponentDigits_<1)throw Error("se`"+H);u=!1;break;default:l[0]--,u=!1}w==0&&K>0&&U>=0&&(w=U,w==0&&w++,d=K-w,K=w-1,w=1);if(U<0&&d>0||U>=0&&(U<K||U>K+w)||B==0)throw Error("te`"+H);d=K+w+d;X.maximumFractionDigits_=U>=0?d-U:0;U>=0&&(X.minimumFractionDigits_=K+w-U,X.minimumFractionDigits_<0&&(X.minimumFractionDigits_=0));X.minimumIntegerDigits_=(U>=0?U:d)-K;X.useExponentialNotation_&&(X.maximumIntegerDigits_=
K+X.minimumIntegerDigits_,X.maximumFractionDigits_==0&&X.minimumIntegerDigits_==0&&(X.minimumIntegerDigits_=1));X.groupingArray_.push(Math.max(0,B));X.decimalSeparatorAlwaysShown_=U==0||U==d;b=l[0]-b;X.positiveSuffix_=HS_(X,H,l);l[0]<H.length&&H.charAt(l[0])==";"?(l[0]++,X.multiplier_!=1&&(X.negativePercentSignExpected_=!0),X.negativePrefix_=HS_(X,H,l),l[0]+=b,X.negativeSuffix_=HS_(X,H,l)):(X.negativePrefix_+=X.positivePrefix_,X.negativeSuffix_+=X.positiveSuffix_)};
Awq=function(X,H){X.compactStyle_=H;kw(X,nR(X).DECIMAL_PATTERN);X.minimumFractionDigits_=0;GOK(X,2);if(X.minimumFractionDigits_>0)throw Error("he");X.significantDigits_=2};
_.pT.prototype.parse=function(X,H){H=H||[0];if(this.compactStyle_!==0)throw Error("ke");X=X.replace(/ |\u202f/g,"\u00a0");var l=X.indexOf(this.positivePrefix_,H[0])==H[0],b=X.indexOf(this.negativePrefix_,H[0])==H[0];l&&b&&(this.positivePrefix_.length>this.negativePrefix_.length?b=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(l=!1));l?H[0]+=this.positivePrefix_.length:b&&(H[0]+=this.negativePrefix_.length);if(X.indexOf(nR(this).INFINITY,H[0])==H[0]){H[0]+=nR(this).INFINITY.length;var U=
Infinity}else{U=X;var K=!1,w=!1,d=!1,B=-1,q=1,u=nR(this).DECIMAL_SEP,e=nR(this).GROUP_SEP,y=nR(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("le");e=e.replace(/\u202f/g,"\u00a0");for(var V="";H[0]<U.length;H[0]++){var p=U.charAt(H[0]),z=lIY(this,p);if(z>=0&&z<=9)V+=z,d=!0;else if(p==u.charAt(0)){if(K||w)break;V+=".";K=!0}else if(p==e.charAt(0)&&("\u00a0"!=e.charAt(0)||H[0]+1<U.length&&lIY(this,U.charAt(H[0]+1))>=0)){if(K||w)break}else if(p==y.charAt(0)){if(w)break;V+="E";w=!0;B=H[0]}else if(p==
"+"||p=="-"){if(d&&B!=H[0]-1)break;V+=p}else if(this.multiplier_==1&&p==nR(this).PERCENT.charAt(0)){if(q!=1)break;q=100;if(d){H[0]++;break}}else if(this.multiplier_==1&&p==nR(this).PERMILL.charAt(0)){if(q!=1)break;q=1E3;if(d){H[0]++;break}}else break}this.multiplier_!=1&&(q=this.multiplier_);U=parseFloat(V)/q}if(l){if(X.indexOf(this.positiveSuffix_,H[0])!=H[0])return NaN;H[0]+=this.positiveSuffix_.length}else if(b){if(X.indexOf(this.negativeSuffix_,H[0])!=H[0])return NaN;H[0]+=this.negativeSuffix_.length}return b?
-U:U};
_.pT.prototype.format=function(X){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("me");if(isNaN(X))return nR(this).NAN;var H=[];var l=X;if(this.compactStyle_==0)l=Dg;else{l=Math.abs(l);var b=o$q(this,l<=1?0:bSD(l)).divisorBase;l=o$q(this,b+bSD(Uh9(this,ts(l,-b)).intValue))}X=ts(X,-l.divisorBase);(b=X<0||X==0&&1/X<0)?l.negative_prefix?H.push(l.negative_prefix):(H.push(l.prefix),H.push(this.negativePrefix_)):(H.push(l.prefix),H.push(this.positivePrefix_));if(isFinite(X))if(X*=
b?-1:1,X*=this.multiplier_,this.useExponentialNotation_){var U=X;if(U==0)$hH(this,U,this.minimumIntegerDigits_,H),KC6(this,0,H);else{var K=Math.floor(Math.log(U)/Math.log(10)+2E-15);U=ts(U,-K);var w=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(w=K%this.maximumIntegerDigits_,w<0&&(w=this.maximumIntegerDigits_+w),U=ts(U,w),K-=w,w=1):this.minimumIntegerDigits_<1?(K++,U=ts(U,-1)):(K-=this.minimumIntegerDigits_-1,U=ts(U,this.minimumIntegerDigits_-
1));$hH(this,U,w,H);KC6(this,K,H)}}else $hH(this,X,this.minimumIntegerDigits_,H);else H.push(nR(this).INFINITY);b?l.negative_suffix?H.push(l.negative_suffix):(isFinite(X)&&H.push(l.suffix),H.push(this.negativeSuffix_)):(isFinite(X)&&H.push(l.suffix),H.push(this.positiveSuffix_));return H.join("")};
var Uh9=function(X,H){var l=ts(H,X.maximumFractionDigits_);X.significantDigits_>0&&(l=RhC(l,X.significantDigits_,X.maximumFractionDigits_));l=Math.round(l);if(isFinite(l)){var b=Math.floor(ts(l,-X.maximumFractionDigits_));l=Math.floor(l-ts(b,X.maximumFractionDigits_));if(l<0||l>=ts(1,X.maximumFractionDigits_))b=Math.round(H),l=0}else b=H,l=0;return{intValue:b,fracValue:l}},$hH=function(X,H,l,b){if(X.minimumFractionDigits_>X.maximumFractionDigits_)throw Error("me");
b||(b=[]);H=Uh9(X,H);var U=H.intValue,K=H.fracValue,w=X.minimumFractionDigits_>0||K>0||!1;H=X.minimumFractionDigits_;w&&(H=X.minimumFractionDigits_);for(var d="",B=U;B>1E20;)d="0"+d,B=Math.round(ts(B,-1));d=B+d;var q=nR(X).DECIMAL_SEP;B=nR(X).ZERO_DIGIT.codePointAt(0);var u=d.length,e=0;if(U>0||l>0){for(U=u;U<l;U++)b.push(String.fromCodePoint(B));if(X.groupingArray_.length>=2)for(l=1;l<X.groupingArray_.length;l++)e+=X.groupingArray_[l];l=u-e;if(l>0){U=X.groupingArray_;e=u=0;for(var y,V=nR(X).GROUP_SEP,
p=d.length,z=0;z<p;z++)if(b.push(String.fromCodePoint(B+Number(d.charAt(z)))),p-z>1)if(y=U[e],z<l){var t=l-z;(y===1||y>0&&t%y===1)&&b.push(V)}else e<U.length&&(z===l?e+=1:y===z-l-u+1&&(b.push(V),u+=y,e+=1))}else{l=d;d=X.groupingArray_;U=nR(X).GROUP_SEP;y=l.length;V=[];for(u=d.length-1;u>=0&&y>0;u--){e=d[u];for(p=0;p<e&&y-p-1>=0;p++)V.push(String.fromCodePoint(B+Number(l.charAt(y-p-1))));y-=e;y>0&&V.push(U)}b.push.apply(b,V.reverse())}}else w||b.push(String.fromCodePoint(B));(X.decimalSeparatorAlwaysShown_||
w)&&b.push(q);K=String(K);w=K.split("e+");w.length==2&&(K=String(RhC(parseFloat(w[0]),X.significantDigits_,1)),K=K.replace(".",""),K+=(0,_.vY9)("0",parseInt(w[1],10)-K.length+1));X.maximumFractionDigits_+1>K.length&&(K="1"+(0,_.vY9)("0",X.maximumFractionDigits_-K.length)+K);for(X=K.length;K.charAt(X-1)=="0"&&X>H+1;)X--;for(H=1;H<X;H++)b.push(String.fromCodePoint(B+Number(K.charAt(H))))},KC6=function(X,H,l){l.push(nR(X).EXP_SYMBOL);
H<0?(H=-H,l.push(nR(X).MINUS_SIGN)):X.useSignForPositiveExponent_&&l.push(nR(X).PLUS_SIGN);H=""+H;for(var b=nR(X).ZERO_DIGIT,U=H.length;U<X.minExponentDigits_;U++)l.push(b);X=b.codePointAt(0)-C4G;for(b=0;b<H.length;b++)l.push(String.fromCodePoint(X+H.codePointAt(b)))},lIY=function(X,H){H=H.codePointAt(0);
if(48<=H&&H<58)return H-48;X=nR(X).ZERO_DIGIT.codePointAt(0);return X<=H&&H<X+10?H-X:-1},C4G="0".codePointAt(0),HS_=function(X,H,l){for(var b="",U=!1,K=H.length;l[0]<K;l[0]++){var w=H.charAt(l[0]);
if(w=="'")l[0]+1<K&&H.charAt(l[0]+1)=="'"?(l[0]++,b+="'"):U=!U;else if(U)b+=w;else switch(w){case "#":case "0":case ",":case ".":case ";":return b;case "\u00a4":if(l[0]+1<K&&H.charAt(l[0]+1)=="\u00a4")l[0]++,b+=xw(X);else switch(X.currencyStyle_){case 0:w=xw(X);b+=w in yv?yv[w][1]:w;break;case 2:w=xw(X);var d=yv[w];b+=d?w==d[1]?w:w+" "+d[1]:w;break;case 1:w=xw(X),b+=w in yv?yv[w][2]:w}break;case "%":if(!X.negativePercentSignExpected_&&X.multiplier_!=1)throw Error("ne");if(X.negativePercentSignExpected_&&
X.multiplier_!=100)throw Error("oe");X.multiplier_=100;X.negativePercentSignExpected_=!1;b+=nR(X).PERCENT;break;case "\u2030":if(!X.negativePercentSignExpected_&&X.multiplier_!=1)throw Error("ne");if(X.negativePercentSignExpected_&&X.multiplier_!=1E3)throw Error("oe");X.multiplier_=1E3;X.negativePercentSignExpected_=!1;b+=nR(X).PERMILL;break;default:b+=w}}return b},Dg={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},o$q=function(X,H){X=X.compactStyle_==1?M6.COMPACT_DECIMAL_SHORT_PATTERN:M6.COMPACT_DECIMAL_LONG_PATTERN;X==null&&(X=M6.COMPACT_DECIMAL_SHORT_PATTERN);if(H<3)return Dg;H=Math.min(14,H);var l=X[ts(1,H)];for(--H;!l&&H>=3;)l=X[ts(1,H)],H--;if(!l)return Dg;l=l.other;var b=X="",U=l.indexOf(";");U>=0&&(l=l.substring(0,U),U=l.substring(U+1))&&(b=/([^0]*)(0+)(.*)/.exec(U),X=b[1],b=b[3]);return l&&l!="0"?(l=/([^0]*)(0+)(.*)/.exec(l))?{divisorBase:H+
1-(l[2].length-1),negative_prefix:X,negative_suffix:b,prefix:l[1],suffix:l[3]}:Dg:Dg},bSD=function(X){if(!isFinite(X))return X>0?X:0;
for(var H=0;(X/=10)>=1;)H++;return H},ts=function(X,H){if(!X||!isFinite(X)||H==0)return X;
X=String(X).split("e");return parseFloat(X[0]+"e"+(parseInt(X[1]||0,10)+H))},w6_=function(X,H){return X&&isFinite(X)?ts(Math.round(ts(X,H)),-H):X},RhC=function(X,H,l){if(!X)return X;
H=H-bSD(X)-1;return H<-l?w6_(X,-l):w6_(X,H)};var dhz,hhY=dhz=dhz=RR8;var FCv,DPL=FCv=FCv=CiK;var Mu_=function(X){this.JSC$11773_pattern_=X;this.parsedPattern_=this.literals_=this.initialLiterals_=null;X=Ym_;var H=M6;if(Bjq!==X||qsq!==H)Bjq=X,qsq=H,ss_=new _.pT(1);this.numberFormatter_=ss_},Bjq=null,qsq=null,ss_=null,uA_=RegExp("'([{}#].*?)'","g"),ehv=RegExp("''","g");
Mu_.prototype.format=function(X){if(this.JSC$11773_pattern_){this.initialLiterals_=[];var H=y5_(this,this.JSC$11773_pattern_);this.parsedPattern_=VuY(this,H);this.JSC$11773_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.NW(this.initialLiterals_),H=[],P4C(this,this.parsedPattern_,X,!1,H),X=H.join("");this.literals_.length>0;)X=X.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else X="";return X};
var P4C=function(X,H,l,b,U){for(var K=0;K<H.length;K++)switch(H[K].type){case 4:U.push(H[K].value);break;case 3:var w=H[K].value;var d=X,B=U,q=l[w];q===void 0?B.push("Undefined parameter - "+w):(d.literals_.push(q),B.push(d.buildPlaceholder_(d.literals_)));break;case 2:w=H[K].value;d=X;B=l;q=b;var u=U,e=w.argumentIndex;B[e]===void 0?u.push("Undefined parameter - "+e):(e=w[B[e]],e===void 0&&(e=w.other),P4C(d,e,B,q,u));break;case 0:w=H[K].value;fI_(X,w,l,DPL,b,U);break;case 1:w=H[K].value,fI_(X,w,l,
hhY,b,U)}},fI_=function(X,H,l,b,U,K){var w=H.argumentIndex,d=H.argumentOffset,B=+l[w];
isNaN(B)?K.push("Undefined or invalid parameter - "+w):(d=B-d,w=H[l[w]],w===void 0&&(b=b(Math.abs(d)),w=H[b],w===void 0&&(w=H.other)),H=[],P4C(X,w,l,U,H),l=H.join(""),U?K.push(l):(X=X.numberFormatter_.format(d),K.push(l.replace(/#/g,X))))},y5_=function(X,H){var l=X.initialLiterals_,b=X.buildPlaceholder_.bind(X);
H=H.replace(ehv,function(){l.push("'");return b(l)});
return H=H.replace(uA_,function(U,K){l.push(K);return b(l)})},p6C=function(X){var H=0,l=[],b=[],U=/[{}]/g;
U.lastIndex=0;for(var K;K=U.exec(X);){var w=K.index;K[0]=="}"?(l.pop(),l.length==0&&(K={type:1},K.value=X.substring(H,w),b.push(K),H=w+1)):(l.length==0&&(H=X.substring(H,w),H!=""&&b.push({type:0,value:H}),H=w+1),l.push("{"))}X=X.substring(H);X!=""&&b.push({type:0,value:X});return b},Ssz=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,zhQ=/^\s*(\w+)\s*,\s*selectordinal\s*,/,n$C=/^\s*(\w+)\s*,\s*select\s*,/,VuY=function(X,H){var l=[];
H=p6C(H);for(var b=0;b<H.length;b++){var U={};if(0==H[b].type)U.type=4,U.value=H[b].value;else if(1==H[b].type){var K=H[b].value;switch(Ssz.test(K)?0:zhQ.test(K)?1:n$C.test(K)?2:/^\s*\w+\s*/.test(K)?3:5){case 2:U.type=2;U.value=keF(X,H[b].value);break;case 0:U.type=0;U.value=xhY(X,H[b].value);break;case 1:U.type=1;U.value=DhF(X,H[b].value);break;case 3:U.type=3,U.value=H[b].value}}l.push(U)}return l},keF=function(X,H){var l="";
H=H.replace(n$C,function(d,B){l=B;return""});
var b={};b.argumentIndex=l;H=p6C(H);for(var U=0;U<H.length;){var K=H[U].value;U++;var w=void 0;1==H[U].type&&(w=VuY(X,H[U].value));b[K.replace(/\s/g,"")]=w;U++}return b},xhY=function(X,H){var l="",b=0;
H=H.replace(Ssz,function(B,q,u){l=q;u&&(b=parseInt(u,10));return""});
var U={};U.argumentIndex=l;U.argumentOffset=b;H=p6C(H);for(var K=0;K<H.length;){var w=H[K].value;K++;var d=void 0;1==H[K].type&&(d=VuY(X,H[K].value));U[w.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=d;K++}return U},DhF=function(X,H){var l="";
H=H.replace(zhQ,function(d,B){l=B;return""});
var b={};b.argumentIndex=l;b.argumentOffset=0;H=p6C(H);for(var U=0;U<H.length;){var K=H[U].value;U++;var w=void 0;1==H[U].type&&(w=VuY(X,H[U].value));b[K.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=w;U++}return b};
Mu_.prototype.buildPlaceholder_=function(X){return"\ufddf_"+(X.length-1).toString(10)+"_"};var WwL=function(){var X={style:1},H=tu6;this.style_=(X==null?void 0:X.style)||0;this.durationSymbols_=H||cwz},WC6=function(X,H){switch(H){default:case "years":return X.durationSymbols_.YEAR;
case "months":return X.durationSymbols_.MONTH;case "weeks":return X.durationSymbols_.WEEK;case "days":return X.durationSymbols_.DAY;case "hours":return X.durationSymbols_.HOUR;case "minutes":return X.durationSymbols_.MINUTE;case "seconds":return X.durationSymbols_.SECOND}},WA=function(X,H,l){a:{l=WC6(X,l);
switch(X.style_){case 1:if(l.LONG!=void 0){X=l.LONG;break a}case 2:if(l.NARROW!=void 0){X=l.NARROW;break a}default:X=l.SHORT;break a}X=void 0}return X?(new Mu_("{DURATION_VALUE,plural,"+X+"}")).format({DURATION_VALUE:H}):""};
WwL.prototype.format=function(X){var H=[],l=X.years,b=X.months,U=X.weeks,K=X.days,w=X.hours,d=X.minutes;X=X.seconds;l!=null&&H.push(WA(this,l,"years"));b!=null&&H.push(WA(this,b,"months"));U!=null&&H.push(WA(this,U,"weeks"));K!=null&&H.push(WA(this,K,"days"));w!=null&&H.push(WA(this,w,"hours"));d!=null&&H.push(WA(this,d,"minutes"));X!=null&&H.push(WA(this,X,"seconds"));return(new rw_).format(H)};var E$C;
E$C={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 rTZ=function(){this.rdtfSymbols_=g$D||E$C;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
rTZ.prototype.format=function(X,H){a:{H=GeQ(this,H);switch(this.style_){case 2:if(H.NARROW!=void 0){H=H.NARROW;break a}case 1:if(H.SHORT!=void 0){H=H.SHORT;break a}default:H=H.LONG;break a}H=void 0}if(!this.alwaysNumeric_&&H&&H.R&&H.R[""+X])X=H.R[""+X];else if(H){var l=Math.abs(X);X=(new Mu_("{N,plural,"+(X>0||X==0&&1/X==Infinity?H.F:H.P)+"}")).format({N:l})}else X="";return X};
var GeQ=function(X,H){switch(H){default:case 0:return X.rdtfSymbols_.YEAR;case 1:return X.rdtfSymbols_.QUARTER;case 2:return X.rdtfSymbols_.MONTH;case 3:return X.rdtfSymbols_.WEEK;case 4:return X.rdtfSymbols_.DAY;case 5:return X.rdtfSymbols_.HOUR;case 6:return X.rdtfSymbols_.MINUTE;case 7:return X.rdtfSymbols_.SECOND}};wRz.prototype.clone=function(){return new wRz(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
wRz.prototype.equals=function(X){return this.x0==X.x0&&this.y0==X.y0&&this.x1==X.x1&&this.y1==X.y1&&this.x2==X.x2&&this.y2==X.y2&&this.x3==X.x3&&this.y3==X.y3};
var aIz=function(X,H){if(H==0)return X.x0;if(H==1)return X.x3;var l=xY(X.x0,X.x1,H),b=xY(X.x1,X.x2,H);X=xY(X.x2,X.x3,H);l=xY(l,b,H);b=xY(b,X,H);return xY(l,b,H)},ZSY=function(X,H){var l=(H-X.x0)/(X.x3-X.x0);
if(l<=0)return 0;if(l>=1)return 1;for(var b=0,U=1,K=0,w=0;w<8;w++){K=aIz(X,l);var d=(aIz(X,l+1E-6)-K)/1E-6;if(Math.abs(K-H)<1E-6)return l;if(Math.abs(d)<1E-6)break;else K<H?b=l:U=l,l-=(K-H)/d}for(w=0;Math.abs(K-H)>1E-6&&w<8;w++)K<H?(b=l,l=(l+U)/2):(U=l,l=(l+b)/2),K=aIz(X,l);return l};var E8;_.To(RK,_.zB);var hRZ={},dQh=0,iSQ=function(X,H){var l=$O(X);Vhq(H,function(b,U){Array.isArray(b)||(b=[b]);_.Ot(b,function(K){K=l.JSC$9638_createDom("INPUT",{type:"hidden",name:U,value:K});X.appendChild(K)})})};
_.R=RK.prototype;_.R.JSC$11795_form_=null;_.R.JSC$11795_iframe_=null;_.R.iframeName_=null;_.R.nextIframeId_=0;_.R.JSC$11795_active_=!1;_.R.complete_=!1;_.R.success_=!1;_.R.lastContent_=null;_.R.JSC$11795_lastErrorCode_=0;_.R.iframeDisposalTimer_=null;
_.R.send=function(X,H,l,b){if(this.JSC$11795_active_)throw Error("ue");X=new _.xu(X);H=H?H.toUpperCase():"GET";l&&_.J8(X);E8||(E8=_.yT("FORM"),E8.acceptCharset="utf-8",l=E8.style,l.position="absolute",l.visibility="hidden",l.top=l.left="-10px",l.width=l.height="10px",l.overflow="hidden",document.body.appendChild(E8));this.JSC$11795_form_=E8;H=="GET"&&iSQ(this.JSC$11795_form_,X.JSC$10342_queryData_);b&&iSQ(this.JSC$11795_form_,b);l=X.toString();l=kTK(l);b=this.JSC$11795_form_;l=_.X3(Na(l));l!==void 0&&
(b.action=l);this.JSC$11795_form_.method=H;v$H(this);OSG(this)};
_.R.abort=function(X){if(this.JSC$11795_active_){var H=gs(this);if(H)if(dB(H))H.removeAllListeners(void 0);else if(H=h8(H)){var l=0,b;for(b in H.listeners)for(var U=H.listeners[b].concat(),K=0;K<U.length;++K)Ul(U[K])&&++l}this.success_=this.JSC$11795_active_=this.complete_=!1;this.JSC$11795_lastErrorCode_=X||7;this.dispatchEvent("abort");mhG(this)}};
_.R.disposeInternal=function(){this.JSC$11795_active_&&this.abort();RK.superClass_.disposeInternal.call(this);this.JSC$11795_iframe_&&QsD(this);OSG(this);this.JSC$11795_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11795_form_=null;this.JSC$11795_lastErrorCode_=0;delete hRZ[this.JSC$11793_name_]};
_.R.isComplete=function(){return this.complete_};
_.R.isSuccess=function(){return this.success_};
_.R.isActive=function(){return this.JSC$11795_active_};
_.R.getResponseText=function(){return this.lastContent_};
_.R.getLastError=function(){return _.ltY(this.JSC$11795_lastErrorCode_)};
var v$H=function(X){X.JSC$11795_active_=!0;X.complete_=!1;X.JSC$11795_lastErrorCode_=0;X.iframeName_=X.JSC$11793_name_+"_"+(X.nextIframeId_++).toString(36);X.JSC$11795_iframe_=$O(X.JSC$11795_form_).JSC$9638_createDom("IFRAME",{name:X.iframeName_,id:X.iframeName_});var H=X.JSC$11795_iframe_.style;H.visibility="hidden";H.width=H.height="10px";H.display="none";_.XQ?H.marginTop=H.marginLeft="-10px":(H.position="absolute",H.top=H.left="-10px");$O(X.JSC$11795_form_).JSC$9636_document_.body.appendChild(X.JSC$11795_iframe_);
H=X.iframeName_+"_inner";var l=oe_(X.JSC$11795_iframe_);if(document.baseURI){var b=Nn(H);b='<head><base href="'+Nn(document.baseURI)+'"></head><body><iframe id="'+b+'" name="'+b+'"></iframe>';b=bQ(b)}else b=Nn(H),b=bQ('<body><iframe id="'+b+'" name="'+b+'"></iframe>');l.write(Uw(b));_.n8(l.getElementById(H),"load",X.onIframeLoaded_,!1,X);b=lI("TEXTAREA",X.JSC$11795_form_);for(var U=0,K=b.length;U<K;U++){var w=b[U].value;CIz(b[U])!=w&&(_.nx(b[U],w),b[U].value=w)}b=l.importNode(X.JSC$11795_form_,!0);
b.target=H;b.action=X.JSC$11795_form_.action;l.body.appendChild(b);U=lI("SELECT",X.JSC$11795_form_);K=lI("SELECT",b);w=0;for(var d=U.length;w<d;w++)for(var B=lI("OPTION",U[w]),q=lI("OPTION",K[w]),u=0,e=B.length;u<e;u++)q[u].selected=B[u].selected;U=lI("INPUT",X.JSC$11795_form_);K=lI("INPUT",b);w=0;for(d=U.length;w<d;w++)if(U[w].type=="file"&&U[w].value!=K[w].value){X.JSC$11795_form_.target=H;b=X.JSC$11795_form_;break}try{X.errorHandled_=!1,b.submit(),l.close(),_.Hf&&setTimeout(X.testForFirefoxSilentError_.bind(X),
250)}catch(y){_.FE(l.getElementById(H),"load",X.onIframeLoaded_,!1,X),l.close(),GV(X,2)}};
RK.prototype.onIframeLoaded_=function(){_.FE(gs(this),"load",this.onIframeLoaded_,!1,this);try{var X=this.JSC$11795_iframe_?oe_(gs(this)):null;this.complete_=!0;this.JSC$11795_active_=!1;try{var H=X.body;this.lastContent_=H.textContent||H.innerText}catch(U){var l=1}var b;l||typeof this.errorChecker_!="function"||(b=this.errorChecker_(X))&&(l=4);l?GV(this,l):(this.success_=!0,this.JSC$11795_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),mhG(this))}catch(U){GV(this,1)}};
var GV=function(X,H){X.errorHandled_||(X.success_=!1,X.JSC$11795_active_=!1,X.complete_=!0,X.JSC$11795_lastErrorCode_=H,X.dispatchEvent("complete"),X.dispatchEvent("error"),mhG(X),X.errorHandled_=!0)},mhG=function(X){QsD(X);
OSG(X);X.JSC$11795_form_=null;X.dispatchEvent("ready")},QsD=function(X){var H=X.JSC$11795_iframe_;
H&&(H.onreadystatechange=null,H.onload=null,H.onerror=null,X.iframesForDisposal_.push(H));X.iframeDisposalTimer_&&(clearTimeout(X.iframeDisposalTimer_),X.iframeDisposalTimer_=null);_.Hf?X.iframeDisposalTimer_=setTimeout(X.disposeIframes_.bind(X),2E3):X.disposeIframes_();X.JSC$11795_iframe_=null;X.iframeName_=null};
RK.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var X=this.iframesForDisposal_.pop();_.HE(X)}};
var OSG=function(X){X.JSC$11795_form_&&X.JSC$11795_form_==E8&&_.fx(X.JSC$11795_form_)},gs=function(X){return X.JSC$11795_iframe_?oe_(X.JSC$11795_iframe_).getElementById(X.iframeName_+"_inner"):null};
RK.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11795_active_){var X=this.JSC$11795_iframe_?oe_(gs(this)):null;X&&!IYy(X,"documentUri")?(_.FE(gs(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?GV(this,3):GV(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.ae=function(X){return X=="\r"||X=="\n"||X==" "||X=="\t"};_.Cr.prototype.isInputValid=function(){return this.streamState_!=3};
_.Cr.prototype.done=function(){return this.streamState_===2};
var Zg=function(X,H,l){X.streamState_=3;X.errorMessage_="The stream is broken @"+X.JSC$11797_pos_+"/"+l+". With input:\n"+H;throw Error(X.errorMessage_);};
_.Cr.prototype.acceptsBinaryInput=function(){return!1};
_.Cr.prototype.parse=function(X){function H(){for(;e<X.length;)if(_.ae(X[e]))e++,K.JSC$11797_pos_++;else break;return e<B}
function l(){for(var V;;){V=X[e++];if(!V)break;K.JSC$11797_pos_++;switch(K.state_){case 0:V==="{"?K.state_=2:V==="["?K.state_=4:_.ae(V)||Zg(K,X,e);continue;case 7:case 2:if(_.ae(V))continue;if(K.state_===7)w.push(8);else if(V==="}"){U("{}");K.state_=b();continue}else w.push(3);V==='"'?K.state_=6:Zg(K,X,e);continue;case 8:case 3:if(_.ae(V))continue;V===":"?(K.state_===3&&(w.push(3),K.depth_++),K.state_=1):V==="}"?(K.depth_--,U(),K.state_=b()):V===","?(K.state_===3&&w.push(3),K.state_=7):Zg(K,X,e);
continue;case 4:case 1:if(_.ae(V))continue;if(K.state_===4)if(K.depth_++,K.state_=1,V==="]"){K.depth_--;if(K.depth_===0){K.state_=5;return}U("[]");K.state_=b();continue}else w.push(5);V==='"'?K.state_=6:V==="{"?K.state_=2:V==="["?K.state_=4:V==="t"?K.state_=9:V==="f"?K.state_=12:V==="n"?K.state_=16:V!=="-"&&("0123456789".indexOf(V)!==-1?K.state_=20:Zg(K,X,e));continue;case 5:if(V===",")w.push(5),K.state_=1,K.depth_===1&&(u=e);else if(V==="]"){K.depth_--;if(K.depth_===0)return;U();K.state_=b()}else if(_.ae(V))continue;
else Zg(K,X,e);continue;case 6:var p=e;a:for(;;){for(;K.unicodeCount_>0;)if(V=X[e++],K.unicodeCount_===4?K.unicodeCount_=0:K.unicodeCount_++,!V)break a;if(V==='"'&&!K.slashed_){K.state_=b();break}if(V==="\\"&&!K.slashed_&&(K.slashed_=!0,V=X[e++],!V))break;if(K.slashed_)if(K.slashed_=!1,V==="u"&&(K.unicodeCount_=1),V=X[e++])continue;else break;d.lastIndex=e;V=d.exec(X);if(!V){e=X.length+1;break}e=V.index+1;V=X[V.index];if(!V)break}K.JSC$11797_pos_+=e-p;continue;case 9:if(!V)continue;V==="r"?K.state_=
10:Zg(K,X,e);continue;case 10:if(!V)continue;V==="u"?K.state_=11:Zg(K,X,e);continue;case 11:if(!V)continue;V==="e"?K.state_=b():Zg(K,X,e);continue;case 12:if(!V)continue;V==="a"?K.state_=13:Zg(K,X,e);continue;case 13:if(!V)continue;V==="l"?K.state_=14:Zg(K,X,e);continue;case 14:if(!V)continue;V==="s"?K.state_=15:Zg(K,X,e);continue;case 15:if(!V)continue;V==="e"?K.state_=b():Zg(K,X,e);continue;case 16:if(!V)continue;V==="u"?K.state_=17:Zg(K,X,e);continue;case 17:if(!V)continue;V==="l"?K.state_=18:
Zg(K,X,e);continue;case 18:if(!V)continue;V==="l"?K.state_=b():Zg(K,X,e);continue;case 19:V==="."?K.state_=20:Zg(K,X,e);continue;case 20:if("0123456789.eE+-".indexOf(V)!==-1)continue;else e--,K.JSC$11797_pos_--,K.state_=b();continue;default:Zg(K,X,e)}}}
function b(){var V=w.pop();return V!=null?V:1}
function U(V){K.depth_>1||(V||(V=u===-1?K.JSC$11797_buffer_+X.substring(q,e):X.substring(u,e)),K.deliverMessageAsRawString_?K.result_.push(V):K.result_.push(JSON.parse(V)),u=e)}
for(var K=this,w=K.stack_,d=K.stringInputPattern_,B=X.length,q=0,u=-1,e=0;e<B;)switch(K.streamState_){case 3:return Zg(K,X,e),null;case 2:return H()&&Zg(K,X,e),null;case 0:if(H()){var y=X[e++];K.JSC$11797_pos_++;if(y==="["){K.streamState_=1;q=e;K.state_=4;continue}else Zg(K,X,e)}return null;case 1:return l(),K.depth_===0&&K.state_==5?(K.streamState_=2,K.JSC$11797_buffer_=X.substring(e)):K.JSC$11797_buffer_=u===-1?K.JSC$11797_buffer_+X.substring(q):X.substring(u),K.result_.length>0?(y=K.result_,K.result_=
[],y):null}return null};_.To(_.wV,u0);dV.prototype.getValue=function(){return this.JSC$11804_value_};
dV.prototype.clone=function(){return new dV(this.JSC$11804_key_,this.JSC$11804_value_)};var id=function(X){this.nodes_=[];if(X)a:{if(X instanceof id){var H=X.getKeys();X=X.getValues();if(this.getCount()<=0){for(var l=this.nodes_,b=0;b<H.length;b++)l.push(new dV(H[b],X[b]));break a}}else H=_.Bb.getKeys(X),X=_.Bb.getValues(X);for(l=0;l<H.length;l++)this.insert(H[l],X[l])}};
_.R=id.prototype;_.R.insert=function(X,H){var l=this.nodes_;l.push(new dV(X,H));X=l.length-1;H=this.nodes_;for(l=H[X];X>0;){var b=X-1>>1;if(H[b].JSC$11804_key_>l.JSC$11804_key_)H[X]=H[b],X=b;else break}H[X]=l};
_.R.remove=function(){var X=this.nodes_,H=X.length,l=X[0];if(!(H<=0)){if(H==1)X.length=0;else{X[0]=X.pop();X=0;H=this.nodes_;for(var b=H.length,U=H[X];X<b>>1;){var K=X*2+1,w=X*2+2;K=w<b&&H[w].JSC$11804_key_<H[K].JSC$11804_key_?w:K;if(H[K].JSC$11804_key_>U.JSC$11804_key_)break;H[X]=H[K];X=K}H[X]=U}return l.getValue()}};
_.R.peek=function(){var X=this.nodes_;if(X.length!=0)return X[0].getValue()};
_.R.getValues=function(){for(var X=this.nodes_,H=[],l=X.length,b=0;b<l;b++)H.push(X[b].getValue());return H};
_.R.getKeys=function(){for(var X=this.nodes_,H=[],l=X.length,b=0;b<l;b++)H.push(X[b].JSC$11804_key_);return H};
_.R.containsValue=function(X){return this.nodes_.some(function(H){return H.getValue()==X})};
_.R.containsKey=function(X){return this.nodes_.some(function(H){return H.JSC$11804_key_==X})};
_.R.clone=function(){return new id(this)};
_.R.getCount=function(){return this.nodes_.length};
_.R.isEmpty=function(){return this.nodes_.length===0};
_.R.clear=function(){this.nodes_.length=0};_.R=_.hB.prototype;_.R.getCount=function(){return this.size};
_.R.getValues=function(){vA(this);for(var X=[],H=0;H<this.JSC$11810_keys_.length;H++)X.push(this.JSC$11810_map_[this.JSC$11810_keys_[H]]);return X};
_.R.getKeys=function(){vA(this);return this.JSC$11810_keys_.concat()};
_.R.containsKey=function(X){return this.has(X)};
_.R.has=function(X){return O8(this.JSC$11810_map_,X)};
_.R.containsValue=function(X){for(var H=0;H<this.JSC$11810_keys_.length;H++){var l=this.JSC$11810_keys_[H];if(O8(this.JSC$11810_map_,l)&&this.JSC$11810_map_[l]==X)return!0}return!1};
_.R.equals=function(X,H){if(this===X)return!0;if(this.size!=X.getCount())return!1;H=H||Tj_;vA(this);for(var l,b=0;l=this.JSC$11810_keys_[b];b++)if(!H(this.get(l),X.get(l)))return!1;return!0};
var Tj_=function(X,H){return X===H};
_.hB.prototype.isEmpty=function(){return this.size==0};
_.hB.prototype.clear=function(){this.JSC$11810_map_={};this.version_=this.size=this.JSC$11810_keys_.length=0};
_.hB.prototype.remove=function(X){return this.delete(X)};
_.hB.prototype.delete=function(X){return O8(this.JSC$11810_map_,X)?(delete this.JSC$11810_map_[X],--this.size,this.version_++,this.JSC$11810_keys_.length>2*this.size&&vA(this),!0):!1};
var vA=function(X){if(X.size!=X.JSC$11810_keys_.length){for(var H=0,l=0;H<X.JSC$11810_keys_.length;){var b=X.JSC$11810_keys_[H];O8(X.JSC$11810_map_,b)&&(X.JSC$11810_keys_[l++]=b);H++}X.JSC$11810_keys_.length=l}if(X.size!=X.JSC$11810_keys_.length){H={};for(b=l=0;l<X.JSC$11810_keys_.length;){var U=X.JSC$11810_keys_[l];O8(H,U)||(X.JSC$11810_keys_[b++]=U,H[U]=1);l++}X.JSC$11810_keys_.length=b}};
_.R=_.hB.prototype;_.R.get=function(X,H){return O8(this.JSC$11810_map_,X)?this.JSC$11810_map_[X]:H};
_.R.set=function(X,H){O8(this.JSC$11810_map_,X)||(this.size+=1,this.JSC$11810_keys_.push(X),this.version_++);this.JSC$11810_map_[X]=H};
_.R.addAll=function(X){if(X instanceof _.hB)for(var H=X.getKeys(),l=0;l<H.length;l++)this.set(H[l],X.get(H[l]));else for(H in X)this.set(H,X[H])};
_.R.forEach=function(X,H){for(var l=this.getKeys(),b=0;b<l.length;b++){var U=l[b],K=this.get(U);X.call(H,K,U,this)}};
_.R.clone=function(){return new _.hB(this)};
_.R.transpose=function(){for(var X=new _.hB,H=0;H<this.JSC$11810_keys_.length;H++){var l=this.JSC$11810_keys_[H];X.set(this.JSC$11810_map_[l],l)}return X};
_.R.keys=function(){return pKt(this.__iterator__(!0)).toEs6()};
_.R.values=function(){return pKt(this.__iterator__(!1)).toEs6()};
_.R.entries=function(){var X=this;return mqQ(this.keys(),function(H){return[H,X.get(H)]})};
_.R.__iterator__=function(X){vA(this);var H=0,l=this.version_,b=this,U=new vt;U.next=function(){if(l!=b.version_)throw Error("ve");if(H>=b.JSC$11810_keys_.length)return Od;var K=b.JSC$11810_keys_[H++];return mT(X?K:b.JSC$11810_map_[K])};
return U};
var O8=function(X,H){return Object.prototype.hasOwnProperty.call(X,H)};var Nj_=function(X,H){if(H=X.JSC$11813_map_.get(H))H.remove(),X.insert_(H);return H};
_.R=BBy.prototype;_.R.get=function(X,H){return(X=Nj_(this,X))?X.value:H};
_.R.set=function(X,H){var l=Nj_(this,X);l?l.value=H:(l=new FxL(X,H),this.JSC$11813_map_.set(X,l),this.insert_(l))};
_.R.peek=function(){return this.JSC$11813_head_.next.value};
_.R.shift=function(){return c5z(this,this.JSC$11813_head_.next)};
_.R.pop=function(){return c5z(this,this.JSC$11813_head_.prev)};
_.R.remove=function(X){return(X=this.JSC$11813_map_.get(X))?(this.removeNode(X),!0):!1};
_.R.removeNode=function(X){X.remove();this.JSC$11813_map_.remove(X.key)};
_.R.getCount=function(){return this.JSC$11813_map_.getCount()};
_.R.isEmpty=function(){return this.JSC$11813_map_.isEmpty()};
_.R.getKeys=function(){return this.map(function(X,H){return H})};
_.R.getValues=function(){return this.map(function(X){return X})};
_.R.contains=function(X){return this.some(function(H){return H==X})};
_.R.containsKey=function(X){return this.JSC$11813_map_.containsKey(X)};
_.R.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11813_head_.prev)};
_.R.forEach=function(X,H){for(var l=this.JSC$11813_head_.next;l!=this.JSC$11813_head_;l=l.next)X.call(H,l.value,l.key,this)};
_.R.map=function(X,H){for(var l=[],b=this.JSC$11813_head_.next;b!=this.JSC$11813_head_;b=b.next)l.push(X.call(H,b.value,b.key,this));return l};
_.R.some=function(X,H){for(var l=this.JSC$11813_head_.next;l!=this.JSC$11813_head_;l=l.next)if(X.call(H,l.value,l.key,this))return!0;return!1};
_.R.every=function(X,H){for(var l=this.JSC$11813_head_.next;l!=this.JSC$11813_head_;l=l.next)if(!X.call(H,l.value,l.key,this))return!1;return!0};
_.R.insert_=function(X){X.next=this.JSC$11813_head_.next;X.prev=this.JSC$11813_head_;this.JSC$11813_head_.next=X;for(X.next.prev=X;this.getCount()>100;)this.removeNode(this.JSC$11813_head_.prev)};
var c5z=function(X,H){X.JSC$11813_head_!=H&&X.removeNode(H);return H.value},FxL=function(X,H){this.key=X;
this.value=H};
FxL.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var jsz=function(){id.apply(this,arguments)};
_.S(jsz,id);jsz.prototype.enqueue=function(X,H){this.insert(X,H)};var r5F=function(){var X=Error();X.name="SecurityError";throw X;},j7Z=function(){return{get opener(){return null},
get closed(){return!0},get location(){r5F()},get document(){r5F()},postMessage:function(){},
close:function(){},
focus:function(){}}};var q$N={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 uEy={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 J5Y={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(uEy).join("|");var LCG=function(){function X(d){d.substr(-1)!==";"&&(d+=";");return w(d)}
for(var H=Object.keys(J5Y).sort(M1K),l=Object.keys(uEy).sort(M1K),b=0,U=0;b<l.length;b++)H[U]===l[b]?(l[b]+=";?",U++):l[b]+=";";var K=new RegExp("&(?:"+l.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),w=eRh();return function(d){return String(d).replace(K,X)}}();/*

 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 YsC={};var IIY=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"),A5F=/[\\&]/,Xx_=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),HG_=RegExp('[&<>"]',"g"),ls_=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),oq6=function(X){return X.charCodeAt(0)===92?X.charAt(1):LCG(X)},bG_=function(X){return A5F.test(X)?X.replace(Xx_,oq6):X},Ufz=function(X){try{var H,l="";
if(typeof U!=="string"){var b=U;var U=";/?:@&=+$,-_.!~*'()#"}typeof b==="undefined"&&(b=!0);var K,w=YsC[U];if(w)var d=w;else{w=YsC[U]=[];for(K=0;K<128;K++){var B=String.fromCharCode(K);/^[0-9a-z]$/i.test(B)?w.push(B):w.push("%"+("0"+K.toString(16).toUpperCase()).slice(-2))}for(K=0;K<U.length;K++)w[U.charCodeAt(K)]=U[K];d=w}var q=0;for(H=X.length;q<H;q++){var u=X.charCodeAt(q);if(b&&u===37&&q+2<H&&/^[0-9a-f]{2}$/i.test(X.slice(q+1,q+3)))l+=X.slice(q,q+3),q+=2;else if(u<128)l+=d[u];else if(u>=55296&&
u<=57343){if(u>=55296&&u<=56319&&q+1<H){var e=X.charCodeAt(q+1);if(e>=56320&&e<=57343){l+=encodeURIComponent(X[q]+X[q+1]);q++;continue}}l+="%EF%BF%BD"}else l+=encodeURIComponent(X[q])}return l}catch(y){return X}},$fQ=function(X){switch(X){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return X}},mA=function(X,H){return HG_.test(X)?H?X.replace(ls_,$fQ):X.replace(HG_,$fQ):X};/*

 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 Qv;if(String.fromCodePoint)Qv=function(X){try{return String.fromCodePoint(X)}catch(H){if(H instanceof RangeError)return String.fromCharCode(65533);throw H;}};
else{var K9t=String.fromCharCode,RZH=Math.floor;Qv=function(){var X=[],H=-1,l=arguments.length;if(!l)return"";for(var b="";++H<l;){var U=Number(arguments[H]);if(!isFinite(U)||U<0||U>1114111||RZH(U)!==U)return String.fromCharCode(65533);if(U<=65535)X.push(U);else{U-=65536;var K=(U>>10)+55296;U=U%1024+56320;X.push(K,U)}if(H+1===l||X.length>16384)b+=K9t.apply(null,X),X.length=0}return b}};var CDt=function(X){this.root=this.current=X;this.entering=!0};
CDt.prototype.next=function(){var X=this.current,H=this.entering;if(X===null)return null;a:switch(X._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 l=!0;break a;default:l=!1}H&&l?X._firstChild?(this.current=X._firstChild,this.entering=!0):this.entering=!1:X===this.root?this.current=null:X._next===null?(this.current=
X._parent,this.entering=!1):(this.current=X._next,this.entering=!0);return{entering:H,node:X}};
var se=function(X,H){this._type=X;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=H;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
se.prototype.appendChild=function(X){X.unlink();X._parent=this;this._lastChild?(this._lastChild._next=X,X._prev=this._lastChild):this._firstChild=X;this._lastChild=X};
se.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 wxz=function(X,H){H.unlink();H._next=X._next;H._next&&(H._next._prev=H);H._prev=X;X._next=H;H._parent=X._parent;H._next||(H._parent._lastChild=H)};
se.prototype.insertBefore=function(X){X.unlink();X._prev=this._prev;X._prev&&(X._prev._next=X);X._next=this;this._prev=X;X._parent=this._parent;X._prev||(X._parent._firstChild=X)};
_.ja.Object.defineProperties(se.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(X){this._literal=X}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(X){this._destination=X}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(X){this._title=X}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(X){this._info=X}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(X){this._level=X}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(X){this._listData.type=X}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(X){this._listData.tight=X}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(X){this._listData.start=X}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(X){this._onEnter=X}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(X){this._onExit=X}}});var y8y=/[ \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,
V1l={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 dfQ=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]/),
hZt=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),F9q=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),BW9=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),qFv=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),sBF=/`+/,MgC=/^`+/,uc_=/\.\.\./g,eZ_=/--+/g,yG_=/^<([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])?)*)>/,
Vgv=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,PDv=/^ *(?:\n *)?/,fsG=/^[ \t\n\x0b\x0c\x0d]/,pxv=/[ \t\n\x0b\x0c\x0d]+/g,SF6=/^\s/,zZ9=/ *$/,nqC=/^ */,krz=/^ *(?:\n|$)/,xfD=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),DfD=/^[^\n`\[\]\\!<&*_'"]+/m,TV=function(X){var H=new se("text");H._literal=X;return H},N6=function(X){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=X||{}};
N6.prototype.match=function(X){X=X.exec(this.subject.slice(this.pos));if(X===null)return null;this.pos+=X.index+X[0].length;return X[0]};
N6.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var cA=function(X){X.match(PDv);return!0},tgH=function(X,H,l){var b=0;
var U=X.pos;if(H===39||H===34)b++,X.pos++;else for(;X.peek()===H;)b++,X.pos++;if(b===0)b=null;else{var K=U===0?"\n":X.subject.charAt(U-1);var w=X.peek();w=w===-1?"\n":Qv(w);var d=SF6.test(w);w=dfQ.test(w);var B=SF6.test(K);var q=dfQ.test(K);K=!d&&!(w&&!B&&!q);d=!B&&!(q&&!d&&!w);H===95?(B=K&&(!d||q),w=d&&(!K||w)):(B=H===39||H===34?K&&!d:K,w=d);X.pos=U;b={numdelims:b,can_open:B,can_close:w}}if(!b)return!1;U=b.numdelims;w=X.pos;X.pos+=U;w=H===39?"\u2019":H===34?"\u201c":X.subject.slice(w,X.pos);w=TV(w);
l.appendChild(w);X.delimiters={cc:H,numdelims:U,origdelims:U,node:w,previous:X.delimiters,next:null,can_open:b.can_open,can_close:b.can_close};X.delimiters.previous!==null&&(X.delimiters.previous.next=X.delimiters);return!0},W9z=function(X,H){H.previous!==null&&(H.previous.next=H.next);
H.next===null?X.delimiters=H.previous:H.next.previous=H.previous},EqH=function(X,H){var l,b,U=[],K=!1;
U[95]=H;U[42]=H;U[39]=H;U[34]=H;for(l=X.delimiters;l!==null&&l.previous!==H;)l=l.previous;for(;l!==null;){var w=l.cc;if(l.can_close){var d=l.previous;for(b=!1;d!==null&&d!==H&&d!==U[w];){K=(l.can_open||d.can_close)&&(d.origdelims+l.origdelims)%3===0;if(d.cc===l.cc&&d.can_open&&!K){b=!0;break}d=d.previous}var B=l;if(w===42||w===95)if(b){var q=l.numdelims>=2&&d.numdelims>=2?2:1;var u=d.node;var e=l.node;d.numdelims-=q;l.numdelims-=q;u._literal=u._literal.slice(0,u._literal.length-q);e._literal=e._literal.slice(0,
e._literal.length-q);var y=new se(q===1?"emph":"strong");for(q=u._next;q&&q!==e;){var V=q._next;q.unlink();y.appendChild(q);q=V}wxz(u,y);q=d;V=l;q.next!==V&&(q.next=V,V.previous=q);d.numdelims===0&&(u.unlink(),W9z(X,d));l.numdelims===0&&(e.unlink(),d=l.next,W9z(X,l),l=d)}else l=l.next;else w===39?(l.node._literal="\u2019",b&&(d.node._literal="\u2018"),l=l.next):w===34&&(l.node._literal="\u201d",b&&(d.node.literal="\u201c"),l=l.next);b||K||(U[w]=B.previous,B.can_open||W9z(X,B))}else l=l.next}for(;X.delimiters!==
null&&X.delimiters!==H;)W9z(X,X.delimiters)},gqz=function(X){X=X.match(hZt);
return X===null?null:bG_(X.substr(1,X.length-2))},Gr6=function(X){var H=X.match(F9q);
if(H===null){H=X.pos;for(var l=0,b;(b=X.peek())!==-1;)if(b===92)X.pos+=1,X.peek()!==-1&&(X.pos+=1);else if(b===40)X.pos+=1,l+=1;else if(b===41)if(l<1)break;else X.pos+=1,--l;else if(fsG.exec(Qv(b))!==null)break;else X.pos+=1;H=X.subject.substr(H,X.pos-H);return Ufz(bG_(H))}return Ufz(bG_(H.substr(1,H.length-2)))},asz=function(X){X=X.match(xfD);
return X===null||X.length>1001?0:X.length},ZGz=function(X,H,l,b){X.brackets!==null&&(X.brackets.bracketAfter=!0);
X.brackets={node:H,previous:X.brackets,previousDelimiter:X.delimiters,index:l,image:b,active:!0}},iG9=function(X,H){var l;
return(l=X.match(DfD))?(X.options.smart?H.appendChild(TV(l.replace(uc_,"\u2026").replace(eZ_,function(b){var U=0,K=0;b.length%3===0?K=b.length/3:b.length%2===0?U=b.length/2:b.length%3===2?(U=1,K=(b.length-2)/3):(U=2,K=(b.length-4)/3);b="";var w;for(w=0;w<K;w++)b+="\u2014";for(w=0;w<U;w++)b+="\u2013";return b}))):H.appendChild(TV(l)),!0):!1},vq_=function(X,H,l){X.subject=H;
X.pos=0;H=X.pos;var b=asz(X);if(b===0)return 0;var U=X.subject.substr(0,b);if(X.peek()===58)X.pos++;else return X.pos=H,0;cA(X);b=Gr6(X);if(b===null||b.length===0)return X.pos=H,0;var K=X.pos;cA(X);var w=gqz(X);w===null&&(w="",X.pos=K);var d=!0;X.match(krz)===null&&(w===""?d=!1:(w="",X.pos=K,d=X.match(krz)!==null));if(!d)return X.pos=H,0;U=PiL(U);if(U==="")return X.pos=H,0;l[U]||(l[U]={destination:b,title:w});return X.pos-H},OGF=function(X,H){var l,b=X.peek();
if(b===-1)return!1;switch(b){case 10:X.pos+=1;if((l=H._lastChild)&&l.type==="text"&&l._literal[l._literal.length-1]===" "){var U=l._literal[l._literal.length-2]===" ";l._literal=l._literal.replace(zZ9,"");H.appendChild(new se(U?"linebreak":"softbreak"))}else H.appendChild(new se("softbreak"));X.match(nqC);l=!0;break;case 92:l=X.subject;X.pos+=1;X.peek()===10?(X.pos+=1,l=new se("linebreak"),H.appendChild(l)):BW9.test(l.charAt(X.pos))?(H.appendChild(TV(l.charAt(X.pos))),X.pos+=1):H.appendChild(TV("\\"));
l=!0;break;case 96:a:if(l=X.match(MgC),l===null)l=!1;else{U=X.pos;for(var K;(K=X.match(sBF))!==null;)if(K===l){K=new se("code");K._literal=X.subject.slice(U,X.pos-l.length).trim().replace(pxv," ");H.appendChild(K);l=!0;break a}X.pos=U;H.appendChild(TV(l));l=!0}break;case 42:case 95:l=tgH(X,b,H);break;case 39:case 34:l=X.options.smart&&tgH(X,b,H);break;case 91:l=X.pos;X.pos+=1;U=TV("[");H.appendChild(U);ZGz(X,U,l,!1);l=!0;break;case 33:l=X.pos;X.pos+=1;X.peek()===91?(X.pos+=1,U=TV("!["),H.appendChild(U),
ZGz(X,U,l+1,!0)):H.appendChild(TV("!"));l=!0;break;case 93:var w,d=!1,B;X.pos+=1;var q=X.pos;U=X.brackets;if(U===null)H.appendChild(TV("]"));else if(U.active){l=U.image;var u=X.pos;X.peek()===40&&(X.pos++,cA(X)&&(K=Gr6(X))!==null&&cA(X)&&(fsG.test(X.subject.charAt(X.pos-1))&&(w=gqz(X)),1)&&cA(X)&&X.peek()===41?(X.pos+=1,d=!0):X.pos=u);if(!d){var e=X.pos,y=asz(X);y>2?B=X.subject.slice(e,e+y):U.bracketAfter||(B=X.subject.slice(U.index,q));y===0&&(X.pos=u);B&&(B=X.refmap[PiL(B)])&&(K=B.destination,w=
B.title,d=!0)}if(d){q=new se(l?"image":"link");q._destination=K;q._title=w||"";for(K=U.node._next;K;)w=K._next,K.unlink(),q.appendChild(K),K=w;H.appendChild(q);EqH(X,U.previousDelimiter);X.brackets=X.brackets.previous;U.node.unlink();if(!l)for(U=X.brackets;U!==null;)U.image||(U.active=!1),U=U.previous}else X.brackets=X.brackets.previous,X.pos=q,H.appendChild(TV("]"))}else H.appendChild(TV("]")),X.brackets=X.brackets.previous;l=!0;break;case 60:(l=X.match(yG_))?(l=l.slice(1,l.length-1),U=new se("link"),
U._destination=Ufz("mailto:"+l),U._title="",U.appendChild(TV(l)),H.appendChild(U),l=!0):(l=X.match(Vgv))?(l=l.slice(1,l.length-1),U=new se("link"),U._destination=Ufz(l),U._title="",U.appendChild(TV(l)),H.appendChild(U),l=!0):l=!1;l||(l=X.match(IIY),l===null?l=!1:(U=new se("html_inline"),U._literal=l,H.appendChild(U),l=!0));break;case 38:(l=X.match(qFv))?(H.appendChild(TV(LCG(l))),l=!0):l=!1;break;default:l=iG9(X,H)}l||(X.pos+=1,H.appendChild(TV(Qv(b))));return!0};
N6.prototype.parseInlines=function(X){this.subject=X._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;OGF(this,X););X._string_content=null;EqH(this,null)};
N6.prototype.parse=N6.prototype.parseInlines;var mfD=[/./,/^<(?: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")],QBt=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],TWQ=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,NWH=/^[#`~*+_=<>0-9-\|]|\|/,cGC=/[^ \t\f\v\r\n]/,jBQ=/^[*+-]/,rGQ=/^(\d{1,9})([.)])/,JGF=/^#{1,6}(?:[ \t]+|$)/,L9F=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,YFq=/^(?:`{3,}|~{3,})(?= *$)/,Ist=/^(?:=+|-+)[ \t]*$/,AGH=/\r\n|\n|\r/,pRy=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,S$O=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,X8Q={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(X){return X!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(X,H){for(X=H._firstChild;X;){if(fNN(X)&&X._next){H._listData.tight=!1;break}for(var l=X._firstChild;l;){if(fNN(l)&&(X._next||l._next)){H._listData.tight=!1;break}l=l._next}X=X._next}},
canContain:function(X){return X==="item"},
acceptsLines:!1},block_quote:{continue:function(X){var H=X.currentLine;if(X.indented||Bf(H,X.nextNonspace)!==62)return 1;jf(X);rs(X,1,!1);FQ(Bf(H,X.offset))&&rs(X,1,!0);return 0},
finalize:function(){},
canContain:function(X){return X!=="item"},
acceptsLines:!1},item:{continue:function(X,H){if(X.blank){if(H._firstChild==null)return 1;jf(X)}else if(X.indent>=H._listData.markerOffset+H._listData.padding)rs(X,H._listData.markerOffset+H._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(X){return X!=="item"&&!zRN(X)},
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(X,H){var l=X.currentLine,b=X.indent;if(H._isFenced){if((b=b<=3&&l.charAt(X.nextNonspace)===H._fenceChar&&l.slice(X.nextNonspace).match(YFq))&&b[0].length>=H._fenceLength)return X.finalize(H,X.lineNumber),2;for(H=H._fenceOffset;H>0&&FQ(Bf(l,X.offset));)rs(X,1,!0),H--}else if(b>=4)rs(X,4,!0);else if(X.blank)jf(X);else return 1;return 0},
finalize:function(X,H){if(H._isFenced){var l=H._string_content,b=l.indexOf("\n");X=l.slice(0,b);l=l.slice(b+1);H.info=bG_(X.trim());H._literal=l}else H._literal=H._string_content.replace(/(\n *)+$/,"\n");H._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(X,H){return!X.blank||H._htmlBlockType!==6&&H._htmlBlockType!==7?0:1},
finalize:function(X,H){H._literal=H._string_content.replace(/(\n *)+$/,"");H._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(X){return X.blank?1:0},
finalize:function(X,H){for(var l,b=!1;Bf(H._string_content,0)===91&&(l=vq_(X.inlineParser,H._string_content,X.refmap));)H._string_content=H._string_content.slice(l),b=!0;b&&!cGC.test(H._string_content)&&H.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(X){return q9(X.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(X){return X=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(X,H){if(!H._rowIsDelimiter){X=H._isHeader?"th":"td";for(var l=H._parent._tableColumns,b=H._string_content,U=0,K="",w,d=H._sourcepos[0][0];U<b.length;){switch(b[U]){case "|":w&&(w._string_content=K.trim(),K="",w=null,l--,l<=0&&(U=b.length));break;default:if(!w){w=new se(X,[[d,U],[d,U]]);var B=H._parent._columnAlignment,q=H._parent._tableColumns-l;B&&q<=B.length&&q>=0&&(w._alignment=B[q]);H.appendChild(w)}K+=b[U];w._sourcepos[1][1]=U}U++}w&&(w._string_content=K.trim());H._string_content=
""}},
canContain:function(X){return X!=="row"},
acceptsLines:!1}},H9_=[function(X){if(X.indented||Bf(X.currentLine,X.nextNonspace)!==62)return 0;jf(X);rs(X,1,!1);FQ(Bf(X.currentLine,X.offset))&&rs(X,1,!0);Js(X);X.addChild("block_quote",X.nextNonspace);return 1},
function(X){var H;if(!X.indented&&(H=X.currentLine.slice(X.nextNonspace).match(JGF))){jf(X);rs(X,H[0].length,!1);Js(X);var l=X.addChild("heading",X.nextNonspace);l.level=H[0].trim().length;l._string_content=X.currentLine.slice(X.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");rs(X,X.currentLine.length-X.offset);return 2}return 0},
function(X){var H;if(!X.indented&&(H=X.currentLine.slice(X.nextNonspace).match(L9F))){var l=H[0].length;Js(X);var b=X.addChild("code_block",X.nextNonspace);b._isFenced=!0;b._fenceLength=l;b._fenceChar=H[0][0];b._fenceOffset=X.indent;jf(X);rs(X,l,!1);return 2}return 0},
function(X,H){if(!X.indented&&Bf(X.currentLine,X.nextNonspace)===60){var l=X.currentLine.slice(X.nextNonspace),b;for(b=1;b<=7;b++)if(mfD[b].test(l)&&(b<7||H.type!=="paragraph"))return Js(X),X.addChild("html_block",X.offset)._htmlBlockType=b,2}return 0},
function(X,H){var l;if(!X.indented&&H.type==="paragraph"&&(l=X.currentLine.slice(X.nextNonspace).match(Ist))){Js(X);var b=new se("heading",H.sourcepos);b.level=l[0][0]==="="?1:2;b._string_content=H._string_content;wxz(H,b);H.unlink();X.tip=b;rs(X,X.currentLine.length-X.offset,!1);return 2}return 0},
function(X){return!X.indented&&TWQ.test(X.currentLine.slice(X.nextNonspace))?(Js(X),X.addChild("thematic_break",X.nextNonspace),rs(X,X.currentLine.length-X.offset,!1),2):0},
function(X,H){var l,b;if(!(b=X.indented&&H.type!=="list")){a:{var U=H,K=X.currentLine.slice(X.nextNonspace);b={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:X.indent};if(l=K.match(jBQ))b.type="bullet",b.bulletChar=l[0][0];else{if(!(l=K.match(rGQ))||U.type==="paragraph"&&l[1]!=="1"){l=null;break a}b.type="ordered";b.start=parseInt(l[1],10);b.delimiter=l[2]}var w=Bf(X.currentLine,X.nextNonspace+l[0].length);if(w!==-1&&w!==9&&w!==32||U.type==="paragraph"&&!X.currentLine.slice(X.nextNonspace+
l[0].length).match(cGC))l=null;else{jf(X);rs(X,l[0].length,!0);U=X.column;K=X.offset;do rs(X,1,!0),w=Bf(X.currentLine,X.offset);while(X.column-U<5&&FQ(w));w=Bf(X.currentLine,X.offset)===-1;var d=X.column-U;d>=5||d<1||w?(b.padding=l[0].length+1,X.column=U,X.offset=K,FQ(Bf(X.currentLine,X.offset))&&rs(X,1,!0)):b.padding=l[0].length+d;l=b}}b=!l}if(b)return 0;Js(X);(b=X.tip.type!=="list")||(H=H._listData,b=!(H.type===l.type&&H.delimiter===l.delimiter&&H.bulletChar===l.bulletChar));b&&(H=X.addChild("list",
X.nextNonspace),H._listData=l);H=X.addChild("item",X.nextNonspace);H._listData=l;return 1},
function(X){var H;return((H=X.options.shouldParseIndentAsCodeBlock)!=null?H:1)&&X.indented&&X.tip.type!=="paragraph"&&!X.blank?(rs(X,4,!0),Js(X),X.addChild("code_block",X.offset),2):0},
function(X,H){var l=q9(X.currentLine),b=q9(X.lookahead);if(l!==0&&b<0&&Math.abs(l)==Math.abs(b)&&!zRN(H.type)){Js(X);H=X.addChild("table",X.nextNonspace);H._tableRows=1;H._tableColumns=Math.abs(l);l=X.lookahead;if(S$O.test(l)){b=[];for(var U=0,K=!1,w=0,d=void 0;U<l.length;){var B=w>=3;switch(l[U]){case "-":w++;break;case "|":K&&(b.push(d),d=void 0,w=0);K=!0;break;case ":":d||B||(d="left"),!d&&B&&(d="right"),d==="left"&&B&&(d="center")}U++}l=b}else l=void 0;H._columnAlignment=l;H=X.addChild("row",
X.nextNonspace);H._isHeader=!0;rs(X,X.currentLine.length-X.offset,!1);H._string_content=X.currentLine;return 1}return 0},
function(X,H){if(H.type=="table"&&q9(X.currentLine)!==0){Js(X);var l=H;H=X.addChild("row",X.nextNonspace);q9(X.currentLine)<0?H._rowIsDelimiter=!0:l._tableRows+=1;rs(X,X.currentLine.length-X.offset,!1);H._string_content=X.currentLine;return 2}return 0}],Lvz=function(){var X={shouldParseIndentAsCodeBlock:!1};
X=X===void 0?{}:X;this.lastMatchedContainer=this.doc=n1h();this.refmap={};this.lastLineLength=0;this.inlineParser=new N6(X);this.options=X;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=X8Q;this.blockStarts=H9_},lF9=function(X){X.partiallyConsumedTab&&(X.offset+=1,X.tip._string_content+=" ".repeat(4-X.column%
4));
X.tip._string_content+=X.currentLine.slice(X.offset)+"\n"};
Lvz.prototype.addChild=function(X,H){for(;!this.blocks[this.tip.type].canContain(X);)this.finalize(this.tip,this.lineNumber-1);X=new se(X,[[this.lineNumber,H+1],[0,0]]);X._string_content="";this.tip.appendChild(X);return this.tip=X};
var Js=function(X){if(!X.allClosed){for(;X.oldtip!==X.lastMatchedContainer;){var H=X.oldtip._parent;X.finalize(X.oldtip,X.lineNumber-1);X.oldtip=H}X.allClosed=!0}},rs=function(X,H,l){for(var b=X.currentLine,U,K;H>0&&(K=b[X.offset]);)K==="\t"?(U=4-X.column%4,l?(X.partiallyConsumedTab=U>H,U=U>H?H:U,X.column+=U,X.offset+=X.partiallyConsumedTab?0:1,H-=U):(X.partiallyConsumedTab=!1,X.column+=U,X.offset+=1,--H)):(X.partiallyConsumedTab=!1,X.offset+=1,X.column+=1,--H)},jf=function(X){X.offset=X.nextNonspace;
X.column=X.nextNonspaceColumn;X.partiallyConsumedTab=!1},oiF=function(X){for(var H=X.currentLine,l=X.offset,b=X.column,U;(U=H.charAt(l))!=="";)if(U===" ")l++,b++;
else if(U==="\t")l++,b+=4-b%4;else break;X.blank=U==="\n"||U==="\r"||U==="";X.nextNonspace=l;X.nextNonspaceColumn=b;X.indent=X.nextNonspaceColumn-X.column;X.indented=X.indent>=4};
Lvz.prototype.finalize=function(X,H){var l=X._parent;X._open=!1;X.sourcepos[1]=[H,this.lastLineLength];this.blocks[X.type].finalize(this,X);this.tip=l};
Lvz.prototype.parse=function(X){this.tip=this.doc=n1h();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!X)return this.doc;this.options.time&&console.time("preparing input");var H=X.split(AGH),l=H.length;X.charCodeAt(X.length-1)===10&&--l;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(X=0;X<l;X++)a:{var b=void 0,U=H[X],K=H[X+1],w=!0,d=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;U.indexOf("\x00")!==-1&&(U=U.replace(/\0/g,"\ufffd"));this.currentLine=U;for(this.lookahead=K;(b=d._lastChild)&&b._open;){d=b;oiF(this);switch(this.blocks[d.type].continue(this,d)){case 0:break;case 1:w=!1;break;case 2:this.lastLineLength=U.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!w){d=d._parent;break}}this.allClosed=d===this.oldtip;this.lastMatchedContainer=
d;b=d.type!=="paragraph"&&X8Q[d.type].acceptsLines;K=this.blockStarts;for(w=K.length;!b;){oiF(this);if(!this.indented&&!NWH.test(U.slice(this.nextNonspace))){jf(this);break}for(var B=0;B<w;){var q=K[B](this,d);if(q===1){d=this.tip;break}else if(q===2){d=this.tip;b=!0;break}else B++}if(B===w){jf(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Js(this);this.blank&&d.lastChild&&(d.lastChild._lastLineBlank=!0);b=d.type;K=this.blank&&!(b==="block_quote"||b==="code_block"&&d._isFenced||
b==="item"&&!d._firstChild&&d.sourcepos[0][0]===this.lineNumber);for(w=d;w;)w._lastLineBlank=K,w=w._parent;this.blocks[b].acceptsLines?(lF9(this),b==="html_block"&&d._htmlBlockType>=1&&d._htmlBlockType<=5&&QBt[d._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(d,this.lineNumber)):this.offset<U.length&&!this.blank&&(this.addChild("paragraph",this.offset),jf(this),lF9(this))}else lF9(this);this.lastLineLength=U.length}for(;this.tip;)this.finalize(this.tip,l);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");U=new CDt(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;l=U.next();)H=l.node,X=H.type,l.entering||X!=="paragraph"&&X!=="heading"&&X!=="th"&&X!="td"||this.inlineParser.parse(H);this.options.time&&console.timeEnd("inline parsing");return this.doc};kjz.prototype.render=function(X){X=new CDt(X);var H;this.buffer="";for(this.lastOut="\n";H=X.next();){var l=H.node.type;if(this[l])this[l](H.node,H.entering)}return this.buffer};
kjz.prototype.out=function(X){LR(this,X)};
var LR=function(X,H){X.buffer+=H;X.lastOut=H};
kjz.prototype.cr=function(){this.lastOut!=="\n"&&LR(this,"\n")};var b9Q=/^javascript:|vbscript:|file:|data:/i,UV_=/^data:image\/(?:png|gif|jpeg|webp)/i,$VC=function(X){return b9Q.test(X)&&!UV_.test(X)};
ug.prototype=Object.create(kjz.prototype);_.R=ug.prototype;_.R.text=function(X){this.out(X.literal)};
_.R.html_inline=function(X){this.options.safe?LR(this,"\x3c!-- raw HTML omitted --\x3e"):LR(this,X.literal)};
_.R.html_block=function(X){this.cr();this.options.safe?LR(this,"\x3c!-- raw HTML omitted --\x3e"):LR(this,X.literal);this.cr()};
_.R.softbreak=function(){LR(this,this.options.softbreak)};
_.R.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.R.link=function(X,H){var l=this.attrs(X);H?(this.options.safe&&$VC(X.destination)||l.push(["href",mA(X.destination,!0)]),X.title&&l.push(["title",mA(X.title,!0)]),this.tag("a",l)):this.tag("/a")};
_.R.image=function(X,H){H?(this.disableTags===0&&(this.options.safe&&$VC(X.destination)?LR(this,'<img src="" alt="'):LR(this,'<img src="'+mA(X.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(X.title&&LR(this,'" title="'+mA(X.title,!0)),LR(this,'" />')))};
_.R.emph=function(X,H){this.tag(H?"em":"/em")};
_.R.strong=function(X,H){this.tag(H?"strong":"/strong")};
_.R.paragraph=function(X,H){var l=X.parent.parent;X=this.attrs(X);l!==null&&l.type==="list"&&l.listTight||(H?(this.cr(),this.tag("p",X)):(this.tag("/p"),this.cr()))};
_.R.heading=function(X,H){var l="h"+X.level;X=this.attrs(X);H?(this.cr(),this.tag(l,X)):(this.tag("/"+l),this.cr())};
_.R.code=function(X){this.tag("code");this.out(X.literal);this.tag("/code")};
_.R.code_block=function(X){var H=X.info?X.info.split(/\s+/):[],l=this.attrs(X);H.length>0&&H[0].length>0&&l.push(["class","language-"+mA(H[0],!0)]);this.cr();this.tag("pre");this.tag("code",l);this.out(X.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.R.thematic_break=function(X){X=this.attrs(X);this.cr();this.tag("hr",X,!0);this.cr()};
_.R.block_quote=function(X,H){X=this.attrs(X);H?(this.cr(),this.tag("blockquote",X)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.R.list=function(X,H){var l=X.listType==="bullet"?"ul":"ol",b=this.attrs(X);H?(X=X.listStart,X!==null&&X!==1&&b.push(["start",X.toString()]),this.cr(),this.tag(l,b)):(this.cr(),this.tag("/"+l));this.cr()};
_.R.item=function(X,H){X=this.attrs(X);H?this.tag("li",X):(this.tag("/li"),this.cr())};
_.R.custom_inline=function(X,H){H&&X.onEnter?LR(this,X.onEnter):!H&&X.onExit&&LR(this,X.onExit)};
_.R.custom_block=function(X,H){this.cr();H&&X.onEnter?LR(this,X.onEnter):!H&&X.onExit&&LR(this,X.onExit);this.cr()};
_.R.table=function(X,H){X=this.attrs(X);H?(this.cr(),this.tag("table",X)):(this.tag("/table"),this.cr())};
_.R.row=function(X,H){X._rowIsDelimiter||(X=this.attrs(X),H?this.tag("tr",X):this.tag("/tr"))};
_.R.td=function(X,H){var l=this.attrs(X);X._alignment&&l.push(["align",X._alignment]);H?this.tag("td",l):this.tag("/td")};
_.R.th=function(X,H){var l=this.attrs(X);X._alignment&&l.push(["align",X._alignment]);H?this.tag("th",l):this.tag("/th")};
_.R.out=function(X){LR(this,mA(X,!1))};
_.R.tag=function(X,H,l){if(!(this.disableTags>0)){this.buffer+="<"+X;if(H&&H.length>0){X=0;for(var b;(b=H[X])!==void 0;)this.buffer+=" "+b[0]+'="'+b[1]+'"',X++}l&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.R.attrs=function(X){var H=[];this.options.sourcepos&&(X=X.sourcepos)&&H.push(["data-sourcepos",String(X[0][0])+":"+String(X[0][1])+"-"+String(X[1][0])+":"+String(X[1][1])]);return H};
ug.prototype.text=ug.prototype.text;ug.prototype.html_inline=ug.prototype.html_inline;ug.prototype.html_block=ug.prototype.html_block;ug.prototype.softbreak=ug.prototype.softbreak;ug.prototype.linebreak=ug.prototype.linebreak;ug.prototype.link=ug.prototype.link;ug.prototype.image=ug.prototype.image;ug.prototype.emph=ug.prototype.emph;ug.prototype.strong=ug.prototype.strong;ug.prototype.paragraph=ug.prototype.paragraph;ug.prototype.heading=ug.prototype.heading;ug.prototype.code=ug.prototype.code;
ug.prototype.code_block=ug.prototype.code_block;ug.prototype.thematic_break=ug.prototype.thematic_break;ug.prototype.block_quote=ug.prototype.block_quote;ug.prototype.list=ug.prototype.list;ug.prototype.item=ug.prototype.item;ug.prototype.custom_inline=ug.prototype.custom_inline;ug.prototype.custom_block=ug.prototype.custom_block;ug.prototype.table=ug.prototype.table;ug.prototype.row=ug.prototype.row;ug.prototype.td=ug.prototype.td;ug.prototype.th=ug.prototype.th;ug.prototype.out=ug.prototype.out;
ug.prototype.tag=ug.prototype.tag;ug.prototype.attrs=ug.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 Ki9,REQ,lJN;(function(){function X(E,D){return E<D?-1:E>D?1:E>=D?0:NaN}
function H(E){return function(D,m){return X(E(D),m)}}
function l(){for(var E=0,D=arguments.length,m={},lb;E<D;++E){if(!(lb=arguments[E]+"")||lb in m)throw Error("xe`"+lb);m[lb]=[]}return new b(m)}
function b(E){this._=E}
function U(E,D){return E.trim().split(/^|\s+/).map(function(m){var lb="",d8=m.indexOf(".");d8>=0&&(lb=m.slice(d8+1),m=m.slice(0,d8));if(m&&!D.hasOwnProperty(m))throw Error("ye`"+m);return{type:m,name:lb}})}
function K(E,D,m){for(var lb=0,d8=E.length;lb<d8;++lb)if(E[lb].name===D){E[lb]=JKe;E=E.slice(0,lb).concat(E.slice(lb+1));break}m!=null&&E.push({name:D,value:m});return E}
function w(E){var D=E,m=D.indexOf(":");m>=0&&(D=E.slice(0,m))!=="xmlns"&&(E=E.slice(m+1));return Px.hasOwnProperty(D)?{space:Px[D],local:E}:E}
function d(E){return function(){var D=this.ownerDocument,m=this.namespaceURI;return m==="http://www.w3.org/1999/xhtml"&&D.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?D.createElement(E):D.createElementNS(m,E)}}
function B(E){return function(){return this.ownerDocument.createElementNS(E.space,E.local)}}
function q(E){E=w(E);return(E.local?B:d)(E)}
function u(){}
function e(E){return E==null?u:function(){return this.querySelector(E)}}
function y(E){return Array(E.length)}
function V(E,D){this.ownerDocument=E.ownerDocument;this.namespaceURI=E.namespaceURI;this._next=null;this._parent=E;this.__data__=D}
function p(E){return function(){return E}}
function z(E,D,m,lb,d8,VZ){for(var zK=0,Ey,R_=D.length,o_=VZ.length;zK<o_;++zK)(Ey=D[zK])?(Ey.__data__=VZ[zK],lb[zK]=Ey):m[zK]=new V(E,VZ[zK]);for(;zK<R_;++zK)if(Ey=D[zK])d8[zK]=Ey}
function t(E,D,m,lb,d8,VZ,zK){var Ey,R_,o_={},wt=D.length,y9=VZ.length,I_=Array(wt),GZ;for(Ey=0;Ey<wt;++Ey)if(R_=D[Ey])I_[Ey]=GZ="$"+zK.call(R_,R_.__data__,Ey,D),GZ in o_?d8[Ey]=R_:o_[GZ]=R_;for(Ey=0;Ey<y9;++Ey)GZ="$"+zK.call(E,VZ[Ey],Ey,VZ),(R_=o_[GZ])?(lb[Ey]=R_,R_.__data__=VZ[Ey],o_[GZ]=null):m[Ey]=new V(E,VZ[Ey]);for(Ey=0;Ey<wt;++Ey)(R_=D[Ey])&&o_[I_[Ey]]===R_&&(d8[Ey]=R_)}
function W(E,D){return E<D?-1:E>D?1:E>=D?0:NaN}
function G(E){return function(){this.removeAttribute(E)}}
function r(E){return function(){this.removeAttributeNS(E.space,E.local)}}
function Q(E,D){return function(){this.setAttribute(E,D)}}
function v(E,D){return function(){this.setAttributeNS(E.space,E.local,D)}}
function J(E,D){return function(){var m=D.apply(this,arguments);m==null?this.removeAttribute(E):this.setAttribute(E,m)}}
function Y(E,D){return function(){var m=D.apply(this,arguments);m==null?this.removeAttributeNS(E.space,E.local):this.setAttributeNS(E.space,E.local,m)}}
function Uy(E){return function(){this.style.removeProperty(E)}}
function Cy(E,D,m){return function(){this.style.setProperty(E,D,m)}}
function sy(E,D,m){return function(){var lb=D.apply(this,arguments);lb==null?this.style.removeProperty(E):this.style.setProperty(E,lb,m)}}
function FO(E,D){return E.style.getPropertyValue(D)||(E.ownerDocument&&E.ownerDocument.defaultView||E.document&&E||E.defaultView).getComputedStyle(E,null).getPropertyValue(D)}
function ub(E){return function(){delete this[E]}}
function g8(E,D){return function(){this[E]=D}}
function mm(E,D){return function(){var m=D.apply(this,arguments);m==null?delete this[E]:this[E]=m}}
function QZ(){this.textContent=""}
function Bz(E){return function(){this.textContent=E}}
function dt(E){return function(){var D=E.apply(this,arguments);this.textContent=D==null?"":D}}
function TK(){this.innerHTML=""}
function sG(E){return function(){this.innerHTML=E}}
function f_(E){return function(){var D=E.apply(this,arguments);this.innerHTML=D==null?"":D}}
function Mv(){return null}
function nd(){var E=this.parentNode;E&&E.removeChild(this)}
function $U(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function MW(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function ZL(E,D,m){E=uF(E,D,m);return function(lb){var d8=lb.relatedTarget;d8&&(d8===this||d8.compareDocumentPosition(this)&8)||E.call(this,lb)}}
function uF(E,D,m){return function(){E.call(this,this.__data__,D,m)}}
function rt(E){return E.trim().split(/^|\s+/).map(function(D){var m="",lb=D.indexOf(".");lb>=0&&(m=D.slice(lb+1),D=D.slice(0,lb));return{type:D,name:m}})}
function xQ(E){return function(){var D=this.__on;if(D){for(var m=0,lb=-1,d8=D.length,VZ;m<d8;++m)(VZ=D[m],E.type&&VZ.type!==E.type||VZ.name!==E.name)?D[++lb]=VZ:this.removeEventListener(VZ.type,VZ.listener,VZ.capture);++lb?D.length=lb:delete this.__on}}}
function AQ(E,D,m){var lb=XUD.hasOwnProperty(E.type)?ZL:uF;return function(d8,VZ,zK){d8=this.__on;var Ey;VZ=lb(D,VZ,zK);if(d8){zK=0;for(var R_=d8.length;zK<R_;++zK)if((Ey=d8[zK]).type===E.type&&Ey.name===E.name){this.removeEventListener(Ey.type,Ey.listener,Ey.capture);this.addEventListener(Ey.type,Ey.listener=VZ,Ey.capture=m);Ey.value=D;return}}this.addEventListener(E.type,VZ,m);Ey={type:E.type,name:E.name,value:D,listener:VZ,capture:m};d8?d8.push(Ey):this.__on=[Ey]}}
function D3(E,D,m){var lb=E.ownerDocument&&E.ownerDocument.defaultView||E.document&&E||E.defaultView,d8=lb.CustomEvent;typeof d8==="function"?d8=new d8(D,m):(d8=lb.document.createEvent("Event"),m?(d8.initEvent(D,m.bubbles,m.cancelable),d8.detail=m.detail):d8.initEvent(D,!1,!1));E.dispatchEvent(d8)}
function YQ(E,D){return function(){return D3(this,E,D)}}
function F5(E,D){return function(){return D3(this,E,D.apply(this,arguments))}}
function TY(E,D){this._groups=E;this._parents=D}
function NZ(){return new TY([[document.documentElement]],LkC)}
function C_(){this._="@"+(++YOx).toString(36)}
function qZ(E,D,m){E.prototype=D.prototype=m;m.constructor=E}
function qv(E,D){E=Object.create(E.prototype);for(var m in D)E[m]=D[m];return E}
function cz(){}
function OG(E){var D;E=(E+"").trim().toLowerCase();return(D=Iwx.exec(E))?(D=parseInt(D[1],16),new IC(D>>8&15|D>>4&240,D>>4&15|D&240,(D&15)<<4|D&15,1)):(D=AKY.exec(E))?Sy(parseInt(D[1],16)):(D=XNN.exec(E))?new IC(D[1],D[2],D[3],1):(D=HHZ.exec(E))?new IC(D[1]*255/100,D[2]*255/100,D[3]*255/100,1):(D=lyU.exec(E))?$m(D[1],D[2],D[3],D[4]):(D=otd.exec(E))?$m(D[1]*255/100,D[2]*255/100,D[3]*255/100,D[4]):(D=bHN.exec(E))?nW(D[1],D[2]/100,D[3]/100,1):(D=Utl.exec(E))?nW(D[1],D[2]/100,D[3]/100,D[4]):Hnt.hasOwnProperty(E)?
Sy(Hnt[E]):E==="transparent"?new IC(NaN,NaN,NaN,0):null}
function Sy(E){return new IC(E>>16&255,E>>8&255,E&255,1)}
function $m(E,D,m,lb){lb<=0&&(E=D=m=NaN);return new IC(E,D,m,lb)}
function mD(E){E instanceof cz||(E=OG(E));if(!E)return new IC;E=E.rgb();return new IC(E.r,E.g,E.b,E.opacity)}
function RC(E,D,m,lb){return arguments.length===1?mD(E):new IC(E,D,m,lb==null?1:lb)}
function IC(E,D,m,lb){this.r=+E;this.g=+D;this.b=+m;this.opacity=+lb}
function R$(E){E=Math.max(0,Math.min(255,Math.round(E)||0));return(E<16?"0":"")+E.toString(16)}
function nW(E,D,m,lb){lb<=0?E=D=m=NaN:m<=0||m>=1?E=D=NaN:D<=0&&(E=NaN);return new k3(E,D,m,lb)}
function wX(E){if(E instanceof k3)return new k3(E.h,E.s,E.l,E.opacity);E instanceof cz||(E=OG(E));if(!E)return new k3;if(E instanceof k3)return E;E=E.rgb();var D=E.r/255,m=E.g/255,lb=E.b/255,d8=Math.min(D,m,lb),VZ=Math.max(D,m,lb),zK=NaN,Ey=VZ-d8,R_=(VZ+d8)/2;Ey?(zK=D===VZ?(m-lb)/Ey+(m<lb)*6:m===VZ?(lb-D)/Ey+2:(D-m)/Ey+4,Ey/=R_<.5?VZ+d8:2-VZ-d8,zK*=60):Ey=R_>0&&R_<1?0:zK;return new k3(zK,Ey,R_,E.opacity)}
function AR(E,D,m,lb){return arguments.length===1?wX(E):new k3(E,D,m,lb==null?1:lb)}
function k3(E,D,m,lb){this.h=+E;this.s=+D;this.l=+m;this.opacity=+lb}
function KJ(E,D,m){return(E<60?D+(m-D)*E/60:E<180?m:E<240?D+(m-D)*(240-E)/60:D)*255}
function Yr(E){if(E instanceof kN)return new kN(E.l,E.a,E.b,E.opacity);if(E instanceof zY){if(isNaN(E.h))return new kN(E.l,0,0,E.opacity);var D=E.h*lZQ;return new kN(E.l,Math.cos(D)*E.c,Math.sin(D)*E.c,E.opacity)}E instanceof IC||(E=mD(E));var m=Pp(E.r),lb=Pp(E.g),d8=Pp(E.b);D=ib(.2225045*m+.7168786*lb+.0606169*d8);if(m===lb&&lb===d8)var VZ=m=D;else VZ=ib((.4360747*m+.3850649*lb+.1430804*d8)/.96422),m=ib((.0139322*m+.0971045*lb+.7141733*d8)/.82521);return new kN(116*D-16,500*(VZ-D),200*(D-m),E.opacity)}
function kN(E,D,m,lb){this.l=+E;this.a=+D;this.b=+m;this.opacity=+lb}
function ib(E){return E>$tl?Math.pow(E,1/3):E/oGG+bnQ}
function Jy(E){return E>jM?E*E*E:oGG*(E-bnQ)}
function p_(E){return 255*(E<=.0031308?12.92*E:1.055*Math.pow(E,1/2.4)-.055)}
function Pp(E){return(E/=255)<=.04045?E/12.92:Math.pow((E+.055)/1.055,2.4)}
function kn(E){if(E instanceof zY)return new zY(E.h,E.c,E.l,E.opacity);E instanceof kN||(E=Yr(E));if(E.a===0&&E.b===0)return new zY(NaN,0,E.l,E.opacity);var D=Math.atan2(E.b,E.a)*UXz;return new zY(D<0?D+360:D,Math.sqrt(E.a*E.a+E.b*E.b),E.l,E.opacity)}
function kU(E,D,m,lb){return arguments.length===1?kn(E):new zY(E,D,m,lb==null?1:lb)}
function zY(E,D,m,lb){this.h=+E;this.c=+D;this.l=+m;this.opacity=+lb}
function Sq(E,D,m,lb){if(arguments.length===1){var d8=E;if(d8 instanceof Oa)d8=new Oa(d8.h,d8.s,d8.l,d8.opacity);else{d8 instanceof IC||(d8=mD(d8));var VZ=d8.g/255,zK=d8.b/255,Ey=($X6*zK+d8.r/255*-1.7884503806-3.5172982438*VZ)/($X6+-1.7884503806-3.5172982438);zK-=Ey;var R_=(1.97294*(VZ-Ey)- -.29227*zK)/-.90649;zK=(VZ=Math.sqrt(R_*R_+zK*zK)/(1.97294*Ey*(1-Ey)))?Math.atan2(R_,zK)*UXz-120:NaN;d8=new Oa(zK<0?zK+360:zK,VZ,Ey,d8.opacity)}}else d8=new Oa(E,D,m,lb==null?1:lb);return d8}
function Oa(E,D,m,lb){this.h=+E;this.s=+D;this.l=+m;this.opacity=+lb}
function UU(E,D,m,lb,d8){var VZ=E*E,zK=VZ*E;return((1-3*E+3*VZ-zK)*D+(4-6*VZ+3*zK)*m+(1+3*E+3*VZ-3*zK)*lb+zK*d8)/6}
function eq(E){return function(){return E}}
function EH(E,D){return function(m){return E+m*D}}
function RZ(E,D,m){return E=Math.pow(E,m),D=Math.pow(D,m)-E,m=1/m,function(lb){return Math.pow(E+lb*D,m)}}
function Q2(E,D){var m=D-E;return m?EH(E,m>180||m<-180?m-360*Math.round(m/360):m):eq(isNaN(E)?D:E)}
function s_(E){return(E=+E)===1?XB:function(D,m){return m-D?RZ(D,m,E):eq(isNaN(D)?m:D)}}
function XB(E,D){var m=D-E;return m?EH(E,m):eq(isNaN(E)?D:E)}
function HQ(E){return function(D){var m=D.length,lb=Array(m),d8=Array(m),VZ=Array(m),zK;for(zK=0;zK<m;++zK){var Ey=RC(D[zK]);lb[zK]=Ey.r||0;d8[zK]=Ey.g||0;VZ[zK]=Ey.b||0}lb=E(lb);d8=E(d8);VZ=E(VZ);Ey.opacity=1;return function(R_){Ey.r=lb(R_);Ey.g=d8(R_);Ey.b=VZ(R_);return Ey+""}}}
function bI(E,D){return E=+E,D-=E,function(m){return E+D*m}}
function fN(E){return function(){return E}}
function RE(E){return function(D){return E(D)+""}}
function M9(E,D){var m=HVb.lastIndex=lml.lastIndex=0,lb,d8,VZ,zK=-1,Ey=[],R_=[];E+="";for(D+="";(lb=HVb.exec(E))&&(d8=lml.exec(D));)(VZ=d8.index)>m&&(VZ=D.slice(m,VZ),Ey[zK]?Ey[zK]+=VZ:Ey[++zK]=VZ),(lb=lb[0])===(d8=d8[0])?Ey[zK]?Ey[zK]+=d8:Ey[++zK]=d8:(Ey[++zK]=null,R_.push({i:zK,x:bI(lb,d8)})),m=lml.lastIndex;m<D.length&&(VZ=D.slice(m),Ey[zK]?Ey[zK]+=VZ:Ey[++zK]=VZ);return Ey.length<2?R_[0]?RE(R_[0].x):fN(D):(D=R_.length,function(o_){for(var wt=0,y9;wt<D;++wt)Ey[(y9=R_[wt]).i]=y9.x(o_);return Ey.join("")})}
function ud(E,D,m,lb,d8,VZ){var zK,Ey,R_;if(zK=Math.sqrt(E*E+D*D))E/=zK,D/=zK;if(R_=E*m+D*lb)m-=E*R_,lb-=D*R_;if(Ey=Math.sqrt(m*m+lb*lb))m/=Ey,lb/=Ey,R_/=Ey;E*lb<D*m&&(E=-E,D=-D,R_=-R_,zK=-zK);return{translateX:d8,translateY:VZ,rotate:Math.atan2(D,E)*KfC,skewX:Math.atan(R_)*KfC,scaleX:zK,scaleY:Ey}}
function hS(E,D,m,lb){function d8(o_){return o_.length?o_.pop()+" ":""}
function VZ(o_,wt,y9,I_,GZ,Dr){o_!==y9||wt!==I_?(GZ=GZ.push("translate(",null,D,null,m),Dr.push({i:GZ-4,x:bI(o_,y9)},{i:GZ-2,x:bI(wt,I_)})):(y9||I_)&&GZ.push("translate("+y9+D+I_+m)}
function zK(o_,wt,y9,I_){o_!==wt?(o_-wt>180?wt+=360:wt-o_>180&&(o_+=360),I_.push({i:y9.push(d8(y9)+"rotate(",null,lb)-2,x:bI(o_,wt)})):wt&&y9.push(d8(y9)+"rotate("+wt+lb)}
function Ey(o_,wt,y9,I_){o_!==wt?I_.push({i:y9.push(d8(y9)+"skewX(",null,lb)-2,x:bI(o_,wt)}):wt&&y9.push(d8(y9)+"skewX("+wt+lb)}
function R_(o_,wt,y9,I_,GZ,Dr){o_!==y9||wt!==I_?(GZ=GZ.push(d8(GZ)+"scale(",null,",",null,")"),Dr.push({i:GZ-4,x:bI(o_,y9)},{i:GZ-2,x:bI(wt,I_)})):y9===1&&I_===1||GZ.push(d8(GZ)+"scale("+y9+","+I_+")")}
return function(o_,wt){var y9=[],I_=[];o_=E(o_);wt=E(wt);VZ(o_.translateX,o_.translateY,wt.translateX,wt.translateY,y9,I_);zK(o_.rotate,wt.rotate,y9,I_);Ey(o_.skewX,wt.skewX,y9,I_);R_(o_.scaleX,o_.scaleY,wt.scaleX,wt.scaleY,y9,I_);o_=wt=null;return function(GZ){for(var Dr=-1,Ym=I_.length,aD;++Dr<Ym;)y9[(aD=I_[Dr]).i]=aD.x(GZ);return y9.join("")}}}
function PJ(E){return function(D,m){var lb=E((D=AR(D)).h,(m=AR(m)).h),d8=XB(D.s,m.s),VZ=XB(D.l,m.l),zK=XB(D.opacity,m.opacity);return function(Ey){D.h=lb(Ey);D.s=d8(Ey);D.l=VZ(Ey);D.opacity=zK(Ey);return D+""}}}
function U$(E){return function(D,m){var lb=E((D=kU(D)).h,(m=kU(m)).h),d8=XB(D.c,m.c),VZ=XB(D.l,m.l),zK=XB(D.opacity,m.opacity);return function(Ey){D.h=lb(Ey);D.c=d8(Ey);D.l=VZ(Ey);D.opacity=zK(Ey);return D+""}}}
function zx(E){return function lb(m){function d8(VZ,zK){var Ey=E((VZ=Sq(VZ)).h,(zK=Sq(zK)).h),R_=XB(VZ.s,zK.s),o_=XB(VZ.l,zK.l),wt=XB(VZ.opacity,zK.opacity);return function(y9){VZ.h=Ey(y9);VZ.s=R_(y9);VZ.l=o_(Math.pow(y9,m));VZ.opacity=wt(y9);return VZ+""}}
m=+m;d8.gamma=lb;return d8}(1)}
function nc(){return PN||(RNY(oq),PN=NY.now()+NUl)}
function oq(){PN=0}
function le(){this._call=this._time=this._next=null}
function $1(E,D,m){var lb=new le;lb.restart(E,D,m);return lb}
function ef(){PN=(cSN=NY.now())+NUl;r$=ck=0;try{nc();++r$;for(var E=jLZ,D;E;)(D=PN-E._time)>=0&&E._call.call(null,D),E=E._next;--r$}finally{r$=0;E=jLZ;for(var m=Infinity;E;)if(E._call){m>E._time&&(m=E._time);var lb=E;E=E._next}else D=E._next,E._next=null,E=lb?lb._next=D:jLZ=D;jQ=lb;oV(m);PN=0}}
function L2(){var E=NY.now(),D=E-cSN;D>1E3&&(NUl-=D,cSN=E)}
function oV(E){r$||(ck&&(ck=clearTimeout(ck)),E-PN>24?(E<Infinity&&(ck=setTimeout(ef,E-NY.now()-NUl)),r4&&(r4=clearInterval(r4))):(r4||(cSN=NY.now(),r4=setInterval(L2,1E3)),r$=1,RNY(ef)))}
function CL(E,D,m){var lb=new le;D=D==null?0:+D;lb.restart(function(d8){lb.stop();E(d8+D)},D,m);
return lb}
function XH(E,D,m,lb,d8,VZ){var zK=E.__transition;if(!zK)E.__transition={};else if(m in zK)return;Z3(E,m,{name:D,index:lb,group:d8,on:KUC,tween:R1p,time:VZ.time,delay:VZ.delay,duration:VZ.duration,ease:VZ.ease,timer:null,state:0})}
function sa(E,D){E=rY(E,D);if(E.state>0)throw Error("ze");return E}
function tN(E,D){E=rY(E,D);if(E.state>2)throw Error("Ae");return E}
function rY(E,D){E=E.__transition;if(!E||!(E=E[D]))throw Error("Be");return E}
function Z3(E,D,m){function lb(R_){var o_,wt;if(m.state!==1)return VZ();for(I_ in zK){var y9=zK[I_];if(y9.name===m.name){if(y9.state===3)return CL(lb);y9.state===4?(y9.state=6,y9.timer.stop(),y9.on.call("interrupt",E,E.__data__,y9.index,y9.group),delete zK[I_]):+I_<D&&(y9.state=6,y9.timer.stop(),delete zK[I_])}}CL(function(){m.state===3&&(m.state=4,m.timer.restart(d8,m.delay,m.time),d8(R_))});
m.state=2;m.on.call("start",E,E.__data__,m.index,m.group);if(m.state===2){m.state=3;Ey=Array(wt=m.tween.length);var I_=0;for(o_=-1;I_<wt;++I_)if(y9=m.tween[I_].value.call(E,E.__data__,m.index,m.group))Ey[++o_]=y9;Ey.length=o_+1}}
function d8(R_){R_=R_<m.duration?m.ease.call(null,R_/m.duration):(m.timer.restart(VZ),m.state=5,1);for(var o_=-1,wt=Ey.length;++o_<wt;)Ey[o_].call(null,R_);m.state===5&&(m.on.call("end",E,E.__data__,m.index,m.group),VZ())}
function VZ(){m.state=6;m.timer.stop();delete zK[D];for(var R_ in zK)return;delete E.__transition}
var zK=E.__transition,Ey;zK[D]=m;m.timer=$1(function(R_){m.state=1;m.timer.restart(lb,m.delay,m.time);m.delay<=R_&&lb(R_-m.delay)},0,m.time)}
function m4(E,D){var m,lb;return function(){var d8=tN(this,E),VZ=d8.tween;if(VZ!==m){lb=m=VZ;VZ=0;for(var zK=lb.length;VZ<zK;++VZ)if(lb[VZ].name===D){lb=lb.slice();lb.splice(VZ,1);break}}d8.tween=lb}}
function QW(E,D,m){var lb,d8;if(typeof m!=="function")throw Error();return function(){var VZ=tN(this,E),zK=VZ.tween;if(zK!==lb){d8=(lb=zK).slice();zK={name:D,value:m};for(var Ey=0,R_=d8.length;Ey<R_;++Ey)if(d8[Ey].name===D){d8[Ey]=zK;break}Ey===R_&&d8.push(zK)}VZ.tween=d8}}
function QP(E,D,m){var lb=E._id;E.each(function(){var d8=tN(this,lb);(d8.value||(d8.value={}))[D]=m.apply(this,arguments)});
return function(d8){return rY(d8,lb).value[D]}}
function fG(E,D){var m;return(typeof D==="number"?bI:D instanceof OG?CuG:(m=OG(D))?(D=m,CuG):M9)(E,D)}
function fH(E){return function(){this.removeAttribute(E)}}
function rSO(E){return function(){this.removeAttributeNS(E.space,E.local)}}
function JS8(E,D,m){var lb,d8;return function(){var VZ=this.getAttribute(E);return VZ===m?null:VZ===lb?d8:d8=D(lb=VZ,m)}}
function Jt(E,D,m){var lb,d8;return function(){var VZ=this.getAttributeNS(E.space,E.local);return VZ===m?null:VZ===lb?d8:d8=D(lb=VZ,m)}}
function LFW(E,D,m){var lb,d8,VZ;return function(){var zK=m(this);if(zK==null)return void this.removeAttribute(E);var Ey=this.getAttribute(E);return Ey===zK?null:Ey===lb&&zK===d8?VZ:VZ=D(lb=Ey,d8=zK)}}
function Lw(E,D,m){var lb,d8,VZ;return function(){var zK=m(this);if(zK==null)return void this.removeAttributeNS(E.space,E.local);var Ey=this.getAttributeNS(E.space,E.local);return Ey===zK?null:Ey===lb&&zK===d8?VZ:VZ=D(lb=Ey,d8=zK)}}
function Yf(E,D){function m(){var lb=this,d8=D.apply(lb,arguments);return d8&&function(VZ){lb.setAttributeNS(E.space,E.local,d8(VZ))}}
m._value=D;return m}
function YAL(E,D){function m(){var lb=this,d8=D.apply(lb,arguments);return d8&&function(VZ){lb.setAttribute(E,d8(VZ))}}
m._value=D;return m}
function CnZ(E,D){return function(){sa(this,E).delay=+D.apply(this,arguments)}}
function wNU(E,D){return D=+D,function(){sa(this,E).delay=D}}
function dtA(E,D){return function(){tN(this,E).duration=+D.apply(this,arguments)}}
function h1x(E,D){return D=+D,function(){tN(this,E).duration=D}}
function FUe(E,D){if(typeof D!=="function")throw Error();return function(){tN(this,E).ease=D}}
function ByN(E){return(E+"").trim().split(/^|\s+/).every(function(D){var m=D.indexOf(".");m>=0&&(D=D.slice(0,m));return!D||D==="start"})}
function qh$(E,D,m){var lb,d8,VZ=ByN(D)?sa:tN;return function(){var zK=VZ(this,E),Ey=zK.on;if(Ey!==lb)(d8=(lb=Ey).copy()).on(D,m);zK.on=d8}}
function sYy(E){return function(){var D=this.parentNode,m;for(m in this.__transition)if(+m!==E)return;D&&D.removeChild(this)}}
function M6y(E,D){var m,lb,d8;return function(){var VZ=FO(this,E),zK=(this.style.removeProperty(E),FO(this,E));return VZ===zK?null:VZ===m&&zK===lb?d8:d8=D(m=VZ,lb=zK)}}
function u7d(E){return function(){this.style.removeProperty(E)}}
function e1C(E,D,m){var lb,d8;return function(){var VZ=FO(this,E);return VZ===m?null:VZ===lb?d8:d8=D(lb=VZ,m)}}
function yga(E,D,m){var lb,d8,VZ;return function(){var zK=FO(this,E),Ey=m(this);Ey==null&&(Ey=(this.style.removeProperty(E),FO(this,E)));return zK===Ey?null:zK===lb&&Ey===d8?VZ:VZ=D(lb=zK,d8=Ey)}}
function V6Y(E,D,m){function lb(){var d8=this,VZ=D.apply(d8,arguments);return VZ&&function(zK){d8.style.setProperty(E,VZ(zK),m)}}
lb._value=D;return lb}
function PnA(E){return function(){this.textContent=E}}
function fyy(E){return function(){var D=E(this);this.textContent=D==null?"":D}}
function wI(E,D,m,lb){this._groups=E;this._parents=D;this._name=m;this._id=lb}
function oXO(E){return{type:E}}
function bVW(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function IqZ(){}
function wUC(E,D){var m=new IqZ;if(E instanceof IqZ)E.each(function(zK,Ey){m.set(Ey,zK)});
else if(Array.isArray(E)){var lb=-1,d8=E.length,VZ;if(D==null)for(;++lb<d8;)m.set(lb,E[lb]);else for(;++lb<d8;)m.set(D(VZ=E[lb],lb,E),VZ)}else if(E)for(lb in E)m.set(lb,E[lb]);return m}
function ASb(){}
function dXC(E){return function(D){for(var m={},lb=0;lb<E.length;lb++)m[E[lb]]=D[lb]||"";return m}}
function pNd(E,D){var m=dXC(E);return function(lb,d8){return D(m(lb),d8,E)}}
function Shy(E){var D=Object.create(null),m=[];E.forEach(function(lb){for(var d8 in lb)d8 in D||m.push(D[d8]=d8)});
return m}
function hN_(E){function D(zK,Ey){function R_(){if(Dr)return UPh;if(Ym)return Ym=!1,Ff_;var sA,$3=y9,Dv;if(zK.charCodeAt($3)===34){for(;y9++<wt&&zK.charCodeAt(y9)!==34||zK.charCodeAt(++y9)===34;);(sA=y9)>=wt?Dr=!0:(Dv=zK.charCodeAt(y9++))===10?Ym=!0:Dv===13&&(Ym=!0,zK.charCodeAt(y9)===10&&++y9);return zK.slice($3+1,sA-1).replace(/""/g,'"')}for(;y9<wt;){if((Dv=zK.charCodeAt(sA=y9++))===10)Ym=!0;else if(Dv===13)Ym=!0,zK.charCodeAt(y9)===10&&++y9;else if(Dv!==VZ)continue;return zK.slice($3,sA)}return Dr=
!0,zK.slice($3,wt)}
var o_=[],wt=zK.length,y9=0,I_=0,GZ,Dr=wt<=0,Ym=!1;zK.charCodeAt(wt-1)===10&&--wt;for(zK.charCodeAt(wt-1)===13&&--wt;(GZ=R_())!==UPh;){for(var aD=[];GZ!==Ff_&&GZ!==UPh;)aD.push(GZ),GZ=R_();Ey&&(aD=Ey(aD,I_++))==null||o_.push(aD)}return o_}
function m(zK){return zK.map(lb).join(E)}
function lb(zK){return zK==null?"":d8.test(zK)?'"'+zK.replace(/"/g,'""')+'"':zK}
var d8=new RegExp('["'+E+"\n\r]"),VZ=E.charCodeAt(0);return{parse:function(zK,Ey){var R_,o_;zK=D(zK,function(wt,y9){if(R_)return R_(wt,y9-1);o_=wt;R_=Ey?pNd(wt,Ey):dXC(wt)});
zK.columns=o_||[];return zK},
parseRows:D,format:function(zK,Ey){Ey==null&&(Ey=Shy(zK));return[Ey.map(lb).join(E)].concat(zK.map(function(R_){return Ey.map(function(o_){return lb(R_[o_])}).join(E)})).join("\n")},
formatRows:function(zK){return zK.map(m).join("\n")}}}
function z1d(E){if(!E.ok)throw Error("Ce`"+E.status+"`"+E.statusText);return E.text()}
function BF_(E){return function(D,m,lb){arguments.length===2&&typeof m==="function"&&(lb=m,m=void 0);return fetch(D,m).then(z1d).then(function(d8){return E(d8,lb)})}}
function qVz(E,D,m,lb){if(isNaN(D)||isNaN(m))return E;var d8,VZ=E._root;lb={data:lb};var zK=E._x0,Ey=E._y0,R_=E._x1,o_=E._y1,wt,y9,I_,GZ,Dr;if(!VZ)return E._root=lb,E;for(;VZ.length;)if((I_=D>=(wt=(zK+R_)/2))?zK=wt:R_=wt,(GZ=m>=(y9=(Ey+o_)/2))?Ey=y9:o_=y9,d8=VZ,!(VZ=VZ[Dr=GZ<<1|I_]))return d8[Dr]=lb,E;var Ym=+E._x.call(null,VZ.data);var aD=+E._y.call(null,VZ.data);if(D===Ym&&m===aD)return lb.next=VZ,d8?d8[Dr]=lb:E._root=lb,E;do d8=d8?d8[Dr]=Array(4):E._root=Array(4),(I_=D>=(wt=(zK+R_)/2))?zK=wt:R_=
wt,(GZ=m>=(y9=(Ey+o_)/2))?Ey=y9:o_=y9;while((Dr=GZ<<1|I_)===(I_=(aD>=y9)<<1|Ym>=wt));return d8[I_]=VZ,d8[Dr]=lb,E}
function Ui(E,D,m,lb,d8){this.node=E;this.x0=D;this.y0=m;this.x1=lb;this.y1=d8}
function ntU(E){return E[0]}
function kty(E){return E[1]}
function $P8(E,D,m,lb,d8,VZ){this._x=E;this._y=D;this._x0=m;this._y0=lb;this._x1=d8;this._y1=VZ;this._root=void 0}
function sXG(E){for(var D={data:E.data},m=D;E=E.next;)m=m.next={data:E.data};return D}
function Xjb(E,D){if((D=(E=D?E.toExponential(D-1):E.toExponential()).indexOf("e"))<0)return null;var m=E.slice(0,D);return[m.length>1?m[0]+m.slice(2):m,+E.slice(D+1)]}
function xtl(E){return E=Xjb(Math.abs(E)),E?E[1]:NaN}
function DtC(E,D){return function(m,lb){for(var d8=m.length,VZ=[],zK=0,Ey=E[0],R_=0;d8>0&&Ey>0;){R_+Ey+1>lb&&(Ey=Math.max(1,lb-R_));VZ.push(m.substring(d8-=Ey,d8+Ey));if((R_+=Ey+1)>lb)break;Ey=E[zK=(zK+1)%E.length]}return VZ.reverse().join(D)}}
function t6C(E){return function(D){return D.replace(/[0-9]/g,function(m){return E[+m]})}}
function Kwy(E){return new Ryy(E)}
function Ryy(E){if(!(D=WUp.exec(E)))throw Error("De`"+E);var D;this.fill=D[1]||" ";this.align=D[2]||">";this.sign=D[3]||"-";this.symbol=D[4]||"";this.zero=!!D[5];this.width=D[6]&&+D[6];this.comma=!!D[7];this.precision=D[8]&&+D[8].slice(1);this.trim=!!D[9];this.type=D[10]||""}
function MD9(E,D){D=Xjb(E,D);if(!D)return E+"";E=D[0];D=D[1];return D<0?"0."+Array(-D).join("0")+E:E.length>D+1?E.slice(0,D+1)+"."+E.slice(D+1):E+Array(D-E.length+2).join("0")}
function u4Y(E){return E}
function Ete(E){function D(Ey){function R_(oD){var tV=Dv,AN=fl,pX,Bu;if($3==="c")AN=KW(oD)+AN,oD="";else{oD=+oD;var aC=oD<0;oD=KW(Math.abs(oD),aD);if(sA){var Kf=oD.length,om=1,Mp=-1;a:for(;om<Kf;++om)switch(oD[om]){case ".":Mp=pX=om;break;case "0":Mp===0&&(Mp=om);pX=om;break;default:if(!+oD[om])break a;Mp>0&&(Mp=0)}oD=Mp>0?oD.slice(0,Mp)+oD.slice(pX+1):oD}aC&&+oD===0&&(aC=!1);tV=(aC?y9==="("?y9:"-":y9==="-"||y9==="("?"":y9)+tV;AN=($3==="s"?eN_[8+ykt/3]:"")+AN+(aC&&y9==="("?")":"");if(xO)for(aC=-1,
pX=oD.length;++aC<pX;)if(Bu=oD.charCodeAt(aC),48>Bu||Bu>57){AN=(Bu===46?d8+oD.slice(aC+1):oD.slice(aC))+AN;oD=oD.slice(0,aC);break}}Ym&&!GZ&&(oD=m(oD,Infinity));Bu=tV.length+oD.length+AN.length;aC=Bu<Dr?Array(Dr-Bu+1).join(o_):"";Ym&&GZ&&(oD=m(aC+oD,aC.length?Dr-AN.length:Infinity),aC="");switch(wt){case "<":oD=tV+oD+AN+aC;break;case "=":oD=tV+aC+oD+AN;break;case "^":oD=aC.slice(0,Bu=aC.length>>1)+tV+oD+AN+aC.slice(Bu);break;default:oD=aC+tV+oD+AN}return VZ(oD)}
Ey=Kwy(Ey);var o_=Ey.fill,wt=Ey.align,y9=Ey.sign,I_=Ey.symbol,GZ=Ey.zero,Dr=Ey.width,Ym=Ey.comma,aD=Ey.precision,sA=Ey.trim,$3=Ey.type;$3==="n"?(Ym=!0,$3="g"):VDC[$3]||(aD==null&&(aD=12),sA=!0,$3="g");if(GZ||o_==="0"&&wt==="=")GZ=!0,o_="0",wt="=";var Dv=I_==="$"?lb[0]:I_==="#"&&/[boxX]/.test($3)?"0"+$3.toLowerCase():"",fl=I_==="$"?lb[1]:/[%p]/.test($3)?zK:"",KW=VDC[$3],xO=/[defgprs%]/.test($3);aD=aD==null?6:/[gprs]/.test($3)?Math.max(1,Math.min(21,aD)):Math.max(0,Math.min(20,aD));R_.toString=function(){return Ey+
""};
return R_}
var m=E.grouping&&E.thousands?DtC(E.grouping,E.thousands):u4Y,lb=E.currency,d8=E.decimal,VZ=E.numerals?t6C(E.numerals):u4Y,zK=E.percent||"%";return{format:D,formatPrefix:function(Ey,R_){var o_=D((Ey=Kwy(Ey),Ey.type="f",Ey));Ey=Math.max(-8,Math.min(8,Math.floor(xtl(R_)/3)))*3;var wt=Math.pow(10,-Ey),y9=eN_[8+Ey/3];return function(I_){return o_(wt*I_)+y9}}}}
function pj(){this.reset()}
function Pu_(E,D,m){var lb=E.s=D+m,d8=lb-D;E.t=D-(lb-d8)+(m-d8)}
function Hiy(E){return E>1?pG:E<-1?-pG:Math.asin(E)}
function gte(){}
function fZY(E){var D=E[0];E=E[1];var m=Sg(E);return[m*Sg(D),m*Tu(D),Tu(E)]}
function pU9(E,D){return[E[1]*D[2]-E[2]*D[1],E[2]*D[0]-E[0]*D[2],E[0]*D[1]-E[1]*D[0]]}
function SV6(E){var D=lCl(E[0]*E[0]+E[1]*E[1]+E[2]*E[2]);E[0]/=D;E[1]/=D;E[2]/=D}
function GtZ(){var E=[],D;return{point:function(m,lb){D.push([m,lb])},
lineStart:function(){E.push(D=[])},
lineEnd:gte,rejoin:function(){E.length>1&&E.push(E.pop().concat(E.shift()))},
result:function(){var m=E;E=[];D=null;return m}}}
function oHh(E,D,m,lb){this.x=E;this.z=D;this.o=m;this.e=lb;this.v=!1;this.n=this.p=null}
function ayp(E,D,m,lb,d8){var VZ=[],zK=[];E.forEach(function(y9){if(!((I_=y9.length-1)<=0)){var I_,GZ=y9[0],Dr=y9[I_],Ym=GZ;if(dI(Ym[0]-Dr[0])<1E-6&&dI(Ym[1]-Dr[1])<1E-6){d8.lineStart();for(Ey=0;Ey<I_;++Ey)d8.point((GZ=y9[Ey])[0],GZ[1]);d8.lineEnd()}else VZ.push(I_=new oHh(GZ,y9,null,!0)),zK.push(I_.o=new oHh(GZ,null,I_,!1)),VZ.push(I_=new oHh(Dr,y9,null,!1)),zK.push(I_.o=new oHh(Dr,null,I_,!0))}});
if(VZ.length){zK.sort(D);zNY(VZ);zNY(zK);var Ey=0;for(E=zK.length;Ey<E;++Ey)zK[Ey].e=m=!m;m=VZ[0];for(var R_;;){for(var o_=m,wt=!0;o_.v;)if((o_=o_.n)===m)return;D=o_.z;d8.lineStart();do{o_.v=o_.o.v=!0;if(o_.e){if(wt)for(Ey=0,E=D.length;Ey<E;++Ey)d8.point((R_=D[Ey])[0],R_[1]);else lb(o_.x,o_.n.x,1,d8);o_=o_.n}else{if(wt)for(D=o_.p.z,Ey=D.length-1;Ey>=0;--Ey)d8.point((R_=D[Ey])[0],R_[1]);else lb(o_.x,o_.p.x,-1,d8);o_=o_.p}o_=o_.o;D=o_.z;wt=!wt}while(!o_.v);d8.lineEnd()}}}
function zNY(E){if(D=E.length){for(var D,m=0,lb=E[0],d8;++m<D;)lb.n=d8=E[m],d8.p=lb,lb=d8;lb.n=d8=E[0];d8.p=lb}}
function ZHZ(E){return E.length>1}
function iHN(E,D){return((E=E.x)[0]<0?E[1]-pG-1E-6:pG-E[1])-((D=D.x)[0]<0?D[1]-pG-1E-6:pG-D[1])}
function C2L(){}
function nGD(E){return function(D,m){var lb=Sg(D),d8=Sg(m);lb=E(lb*d8);return[lb*d8*Tu(D),lb*Tu(m)]}}
function IT(E){return function(D,m){var lb=lCl(D*D+m*m),d8=E(lb),VZ=Tu(d8);d8=Sg(d8);return[kiG(D*VZ,lb*d8),Hiy(lb&&m*VZ/lb)]}}
function vtC(E){var D=0,m=E.children,lb=m&&m.length;if(lb)for(;--lb>=0;)D+=m[lb].value;else D=1;E.value=D}
function xX_(E,D){var m=new At(E);E=+E.value&&(m.value=E.value);var lb,d8=[m],VZ,zK,Ey,R_;for(D==null&&(D=OHa);lb=d8.pop();)if(E&&(lb.value=+lb.data.value),(zK=D(lb.data))&&(R_=zK.length))for(lb.children=Array(R_),Ey=R_-1;Ey>=0;--Ey)d8.push(VZ=lb.children[Ey]=new At(zK[Ey])),VZ.parent=lb,VZ.depth=lb.depth+1;return m.eachBefore(mtx)}
function OHa(E){return E.children}
function QYl(E){E.data=E.data.data}
function mtx(E){var D=0;do E.height=D;while((E=E.parent)&&E.height<++D)}
function At(E){this.data=E;this.depth=this.height=0;this.parent=null}
function D9(E,D,m,lb){function d8(VZ){return E(VZ=new Date(+VZ)),VZ}
d8.floor=d8;d8.ceil=function(VZ){return E(VZ=new Date(VZ-1)),D(VZ,1),E(VZ),VZ};
d8.round=function(VZ){var zK=d8(VZ),Ey=d8.ceil(VZ);return VZ-zK<Ey-VZ?zK:Ey};
d8.offset=function(VZ,zK){return D(VZ=new Date(+VZ),zK==null?1:Math.floor(zK)),VZ};
d8.range=function(VZ,zK,Ey){var R_=[],o_;VZ=d8.ceil(VZ);Ey=Ey==null?1:Math.floor(Ey);if(!(VZ<zK&&Ey>0))return R_;do R_.push(o_=new Date(+VZ)),D(VZ,Ey),E(VZ);while(o_<VZ&&VZ<zK);return R_};
d8.filter=function(VZ){return D9(function(zK){if(zK>=zK)for(;E(zK),!VZ(zK);)zK.setTime(zK-1)},function(zK,Ey){if(zK>=zK)if(Ey<0)for(;++Ey<=0;)for(;D(zK,-1),!VZ(zK););
else for(;--Ey>=0;)for(;D(zK,1),!VZ(zK););})};
m&&(d8.count=function(VZ,zK){wm8.setTime(+VZ);dPb.setTime(+zK);E(wm8);E(dPb);return Math.floor(m(wm8,dPb))},d8.every=function(VZ){VZ=Math.floor(VZ);
return isFinite(VZ)&&VZ>0?VZ>1?d8.filter(lb?function(zK){return lb(zK)%VZ===0}:function(zK){return d8.count(0,zK)%VZ===0}):d8:null});
return d8}
function pH(E){return D9(function(D){D.setDate(D.getDate()-(D.getDay()+7-E)%7);D.setHours(0,0,0,0)},function(D,m){D.setDate(D.getDate()+m*7)},function(D,m){return(m-D-(m.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/6048E5})}
function S6(E){return D9(function(D){D.setUTCDate(D.getUTCDate()-(D.getUTCDay()+7-E)%7);D.setUTCHours(0,0,0,0)},function(D,m){D.setUTCDate(D.getUTCDate()+m*7)},function(D,m){return(m-D)/6048E5})}
function Tya(E){if(0<=E.y&&E.y<100){var D=new Date(-1,E.m,E.d,E.H,E.M,E.S,E.L);D.setFullYear(E.y);return D}return new Date(E.y,E.m,E.d,E.H,E.M,E.S,E.L)}
function bil(E){if(0<=E.y&&E.y<100){var D=new Date(Date.UTC(-1,E.m,E.d,E.H,E.M,E.S,E.L));D.setUTCFullYear(E.y);return D}return new Date(Date.UTC(E.y,E.m,E.d,E.H,E.M,E.S,E.L))}
function XN(E){return{y:E,m:0,d:1,H:0,M:0,S:0,L:0}}
function NyA(E){function D(AN,pX){return function(Bu){var aC=[],Kf=-1,om=0,Mp=AN.length,nf,K7;for(Bu instanceof Date||(Bu=new Date(+Bu));++Kf<Mp;)if(AN.charCodeAt(Kf)===37){aC.push(AN.slice(om,Kf));(om=DXQ[nf=AN.charAt(++Kf)])!=null?nf=AN.charAt(++Kf):om=nf==="e"?" ":"0";if(K7=pX[nf])nf=K7(Bu,om);aC.push(nf);om=Kf+1}aC.push(AN.slice(om,Kf));return aC.join("")}}
function m(AN,pX){return function(Bu){var aC=XN(1900);if(lb(aC,AN,Bu,0)!=Bu.length)return null;if("Q"in aC)return new Date(aC.Q);"p"in aC&&(aC.H=aC.H%12+aC.p*12);if("V"in aC){if(aC.V<1||aC.V>53)return null;"w"in aC||(aC.w=1);if("Z"in aC){Bu=bil(XN(aC.y));var Kf=Bu.getUTCDay();Bu=Kf>4||Kf===0?hyy.ceil(Bu):hyy(Bu);Bu=tDC.offset(Bu,(aC.V-1)*7);aC.y=Bu.getUTCFullYear();aC.m=Bu.getUTCMonth();aC.d=Bu.getUTCDate()+(aC.w+6)%7}else Bu=pX(XN(aC.y)),Kf=Bu.getDay(),Bu=Kf>4||Kf===0?Fwl.ceil(Bu):Fwl(Bu),Bu=WfD.offset(Bu,
(aC.V-1)*7),aC.y=Bu.getFullYear(),aC.m=Bu.getMonth(),aC.d=Bu.getDate()+(aC.w+6)%7}else if("W"in aC||"U"in aC)"w"in aC||(aC.w="u"in aC?aC.u%7:"W"in aC?1:0),Kf="Z"in aC?bil(XN(aC.y)).getUTCDay():pX(XN(aC.y)).getDay(),aC.m=0,aC.d="W"in aC?(aC.w+6)%7+aC.W*7-(Kf+5)%7:aC.w+aC.U*7-(Kf+6)%7;return"Z"in aC?(aC.H+=aC.Z/100|0,aC.M+=aC.Z%100,bil(aC)):pX(aC)}}
function lb(AN,pX,Bu,aC){for(var Kf=0,om=pX.length,Mp=Bu.length,nf;Kf<om;){if(aC>=Mp)return-1;nf=pX.charCodeAt(Kf++);if(nf===37){if(nf=pX.charAt(Kf++),nf=tV[nf in DXQ?pX.charAt(Kf++):nf],!nf||(aC=nf(AN,Bu,aC))<0)return-1}else if(nf!=Bu.charCodeAt(aC++))return-1}return aC}
var d8=E.dateTime,VZ=E.date,zK=E.time,Ey=E.periods,R_=E.days,o_=E.shortDays,wt=E.months,y9=E.shortMonths,I_=HV(Ey),GZ=l8(Ey),Dr=HV(R_),Ym=l8(R_),aD=HV(o_),sA=l8(o_),$3=HV(wt),Dv=l8(wt),fl=HV(y9),KW=l8(y9),xO={a:function(AN){return o_[AN.getDay()]},
A:function(AN){return R_[AN.getDay()]},
b:function(AN){return y9[AN.getMonth()]},
B:function(AN){return wt[AN.getMonth()]},
c:null,d:EG_,e:EG_,f:cg5,H:jYA,I:rgy,j:Jga,L:gGt,m:LUY,M:YhZ,p:function(AN){return Ey[+(AN.getHours()>=12)]},
Q:GiC,s:aZF,S:Iya,u:AgC,U:XnC,V:Hha,w:l_p,W:o5a,x:null,X:null,y:bhA,Y:Uxe,Z:$x5,"%":Znv},oD={a:function(AN){return o_[AN.getUTCDay()]},
A:function(AN){return R_[AN.getUTCDay()]},
b:function(AN){return y9[AN.getUTCMonth()]},
B:function(AN){return wt[AN.getUTCMonth()]},
c:null,d:inG,e:inG,f:KJx,H:Rxe,I:CVp,j:wnU,L:vGq,m:dxZ,M:hxa,p:function(AN){return Ey[+(AN.getUTCHours()>=12)]},
Q:GiC,s:aZF,S:FJa,u:B7Z,U:q0Z,V:sga,w:M9Z,W:upU,x:null,X:null,y:exx,Y:yuN,Z:V9N,"%":Znv},tV={a:function(AN,pX,Bu){return(pX=aD.exec(pX.slice(Bu)))?(AN.w=sA[pX[0].toLowerCase()],Bu+pX[0].length):-1},
A:function(AN,pX,Bu){return(pX=Dr.exec(pX.slice(Bu)))?(AN.w=Ym[pX[0].toLowerCase()],Bu+pX[0].length):-1},
b:function(AN,pX,Bu){return(pX=fl.exec(pX.slice(Bu)))?(AN.m=KW[pX[0].toLowerCase()],Bu+pX[0].length):-1},
B:function(AN,pX,Bu){return(pX=$3.exec(pX.slice(Bu)))?(AN.m=Dv[pX[0].toLowerCase()],Bu+pX[0].length):-1},
c:function(AN,pX,Bu){return lb(AN,d8,pX,Bu)},
d:On_,e:On_,f:PVa,H:mXY,I:mXY,j:f_x,L:pnx,m:S0a,M:zx$,p:function(AN,pX,Bu){return(pX=I_.exec(pX.slice(Bu)))?(AN.p=GZ[pX[0].toLowerCase()],Bu+pX[0].length):-1},
Q:n5e,s:k5p,S:xxe,u:Dx$,U:t95,V:WJ$,w:E5y,W:g55,x:function(AN,pX,Bu){return lb(AN,VZ,pX,Bu)},
X:function(AN,pX,Bu){return lb(AN,zK,pX,Bu)},
y:G55,Y:a_e,Z:Zhd,"%":ihC};xO.x=D(VZ,xO);xO.X=D(zK,xO);xO.c=D(d8,xO);oD.x=D(VZ,oD);oD.X=D(zK,oD);oD.c=D(d8,oD);return{format:function(AN){var pX=D(AN,xO);pX.toString=function(){return AN};
return pX},
parse:function(AN){var pX=m(AN,Tya);pX.toString=function(){return AN};
return pX},
utcFormat:function(AN){var pX=D(AN,oD);pX.toString=function(){return AN};
return pX},
utcParse:function(AN){var pX=m(AN,bil);pX.toString=function(){return AN};
return pX}}}
function gf(E,D,m){var lb=E<0?"-":"";E=(lb?-E:E)+"";var d8=E.length;return lb+(d8<m?Array(m-d8+1).join(D)+E:E)}
function v5Z(E){return E.replace(OhY,"\\$&")}
function HV(E){return new RegExp("^(?:"+E.map(v5Z).join("|")+")","i")}
function l8(E){for(var D={},m=-1,lb=E.length;++m<lb;)D[E[m].toLowerCase()]=m;return D}
function E5y(E,D,m){return(D=t$.exec(D.slice(m,m+1)))?(E.w=+D[0],m+D[0].length):-1}
function Dx$(E,D,m){return(D=t$.exec(D.slice(m,m+1)))?(E.u=+D[0],m+D[0].length):-1}
function t95(E,D,m){return(D=t$.exec(D.slice(m,m+2)))?(E.U=+D[0],m+D[0].length):-1}
function WJ$(E,D,m){return(D=t$.exec(D.slice(m,m+2)))?(E.V=+D[0],m+D[0].length):-1}
function g55(E,D,m){return(D=t$.exec(D.slice(m,m+2)))?(E.W=+D[0],m+D[0].length):-1}
function a_e(E,D,m){return(D=t$.exec(D.slice(m,m+4)))?(E.y=+D[0],m+D[0].length):-1}
function G55(E,D,m){return(D=t$.exec(D.slice(m,m+2)))?(E.y=+D[0]+(+D[0]>68?1900:2E3),m+D[0].length):-1}
function Zhd(E,D,m){return(D=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(D.slice(m,m+6)))?(E.Z=D[1]?0:-(D[2]+(D[3]||"00")),m+D[0].length):-1}
function S0a(E,D,m){return(D=t$.exec(D.slice(m,m+2)))?(E.m=D[0]-1,m+D[0].length):-1}
function On_(E,D,m){return(D=t$.exec(D.slice(m,m+2)))?(E.d=+D[0],m+D[0].length):-1}
function f_x(E,D,m){return(D=t$.exec(D.slice(m,m+3)))?(E.m=0,E.d=+D[0],m+D[0].length):-1}
function mXY(E,D,m){return(D=t$.exec(D.slice(m,m+2)))?(E.H=+D[0],m+D[0].length):-1}
function zx$(E,D,m){return(D=t$.exec(D.slice(m,m+2)))?(E.M=+D[0],m+D[0].length):-1}
function xxe(E,D,m){return(D=t$.exec(D.slice(m,m+2)))?(E.S=+D[0],m+D[0].length):-1}
function pnx(E,D,m){return(D=t$.exec(D.slice(m,m+3)))?(E.L=+D[0],m+D[0].length):-1}
function PVa(E,D,m){return(D=t$.exec(D.slice(m,m+6)))?(E.L=Math.floor(D[0]/1E3),m+D[0].length):-1}
function ihC(E,D,m){return(E=mxe.exec(D.slice(m,m+1)))?m+E[0].length:-1}
function n5e(E,D,m){return(D=t$.exec(D.slice(m)))?(E.Q=+D[0],m+D[0].length):-1}
function k5p(E,D,m){return(D=t$.exec(D.slice(m)))?(E.Q=+D[0]*1E3,m+D[0].length):-1}
function EG_(E,D){return gf(E.getDate(),D,2)}
function jYA(E,D){return gf(E.getHours(),D,2)}
function rgy(E,D){return gf(E.getHours()%12||12,D,2)}
function Jga(E,D){return gf(1+WfD.count(J4(E),E),D,3)}
function gGt(E,D){return gf(E.getMilliseconds(),D,3)}
function cg5(E,D){return gGt(E,D)+"000"}
function LUY(E,D){return gf(E.getMonth()+1,D,2)}
function YhZ(E,D){return gf(E.getMinutes(),D,2)}
function Iya(E,D){return gf(E.getSeconds(),D,2)}
function AgC(E){E=E.getDay();return E===0?7:E}
function XnC(E,D){return gf(QgZ.count(J4(E),E),D,2)}
function Hha(E,D){var m=E.getDay();E=m>=4||m===0?B3b(E):B3b.ceil(E);return gf(B3b.count(J4(E),E)+(J4(E).getDay()===4),D,2)}
function l_p(E){return E.getDay()}
function o5a(E,D){return gf(Fwl.count(J4(E),E),D,2)}
function bhA(E,D){return gf(E.getFullYear()%100,D,2)}
function Uxe(E,D){return gf(E.getFullYear()%1E4,D,4)}
function $x5(E){E=E.getTimezoneOffset();return(E>0?"-":(E*=-1,"+"))+gf(E/60|0,"0",2)+gf(E%60,"0",2)}
function inG(E,D){return gf(E.getUTCDate(),D,2)}
function Rxe(E,D){return gf(E.getUTCHours(),D,2)}
function CVp(E,D){return gf(E.getUTCHours()%12||12,D,2)}
function wnU(E,D){return gf(1+tDC.count(LP(E),E),D,3)}
function vGq(E,D){return gf(E.getUTCMilliseconds(),D,3)}
function KJx(E,D){return vGq(E,D)+"000"}
function dxZ(E,D){return gf(E.getUTCMonth()+1,D,2)}
function hxa(E,D){return gf(E.getUTCMinutes(),D,2)}
function FJa(E,D){return gf(E.getUTCSeconds(),D,2)}
function B7Z(E){E=E.getUTCDay();return E===0?7:E}
function q0Z(E,D){return gf(T7Z.count(LP(E),E),D,2)}
function sga(E,D){var m=E.getUTCDay();E=m>=4||m===0?qIy(E):qIy.ceil(E);return gf(qIy.count(LP(E),E)+(LP(E).getUTCDay()===4),D,2)}
function M9Z(E){return E.getUTCDay()}
function upU(E,D){return gf(hyy.count(LP(E),E),D,2)}
function exx(E,D){return gf(E.getUTCFullYear()%100,D,2)}
function yuN(E,D){return gf(E.getUTCFullYear()%1E4,D,4)}
function V9N(){return"+0000"}
function Znv(){return"%"}
function GiC(E){return+E}
function aZF(E){return Math.floor(+E/1E3)}
function P1(E){for(var D=E.length/6|0,m=Array(D),lb=0;lb<D;)m[lb]="#"+E.slice(lb*6,++lb*6);return m}
function R0(E){return N7$(E[E.length-1])}
function U0h(E){var D=E.length;return function(m){return E[Math.max(0,Math.min(D-1,Math.floor(m*D)))]}}
function QXD(E){this._context=E}
function TFt(E){this._curve=E}
function NFq(E,D,m){var lb=E._x1-E._x0;D-=E._x1;var d8=(E._y1-E._y0)/(lb||D<0&&-0);E=(m-E._y1)/(D||lb<0&&-0);return((d8<0?-1:1)+(E<0?-1:1))*Math.min(Math.abs(d8),Math.abs(E),.5*Math.abs((d8*D+E*lb)/(lb+D)))||0}
function ck9(E,D){var m=E._x1-E._x0;return m?(3*(E._y1-E._y0)/m-D)/2:D}
function s2y(E,D,m){var lb=E._x0,d8=E._x1,VZ=E._y1,zK=(d8-lb)/3;E._context.bezierCurveTo(lb+zK,E._y0+zK*D,d8-zK,VZ-zK*m,d8,VZ)}
function Mbl(E){this._context=E}
function jX_(E){this._context=E}
function oN(E,D,m){this.k=E;this.x=D;this.y=m}
(function(E){E.length===1&&(E=H(E));return{left:function(D,m,lb,d8){lb==null&&(lb=0);d8==null&&(d8=D.length);for(;lb<d8;){var VZ=lb+d8>>>1;E(D[VZ],m)<0?lb=VZ+1:d8=VZ}return lb},
right:function(D,m,lb,d8){lb==null&&(lb=0);d8==null&&(d8=D.length);for(;lb<d8;){var VZ=lb+d8>>>1;E(D[VZ],m)>0?d8=VZ:lb=VZ+1}return lb}}})(X);
var JKe={value:function(){}};
b.prototype=l.prototype={constructor:b,on:function(E,D){var m=this._,lb=U(E+"",m),d8,VZ=-1,zK=lb.length;if(arguments.length<2)for(;++VZ<zK;){var Ey;if(Ey=d8=(E=lb[VZ]).type){a:{Ey=m[d8];for(var R_=0,o_=Ey.length;R_<o_;++R_)if((d8=Ey[R_]).name===E.name){d8=d8.value;break a}d8=void 0}Ey=d8}if(Ey)return d8}else{if(D!=null&&typeof D!=="function")throw Error("Ee`"+D);for(;++VZ<zK;)if(d8=(E=lb[VZ]).type)m[d8]=K(m[d8],E.name,D);else if(D==null)for(d8 in m)m[d8]=K(m[d8],E.name,null);return this}},
copy:function(){var E={},D=this._,m;for(m in D)E[m]=D[m].slice();return new b(E)},
call:function(E,D){if((d8=arguments.length-2)>0)for(var m=Array(d8),lb=0,d8,VZ;lb<d8;++lb)m[lb]=arguments[lb+2];if(!this._.hasOwnProperty(E))throw Error("ye`"+E);VZ=this._[E];lb=0;for(d8=VZ.length;lb<d8;++lb)VZ[lb].value.apply(D,m)},
apply:function(E,D,m){if(!this._.hasOwnProperty(E))throw Error("ye`"+E);E=this._[E];for(var lb=0,d8=E.length;lb<d8;++lb)E[lb].value.apply(D,m)}};
var Px={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/"},rk9=function(E){return function(){return this.matches(E)}};
if(typeof document!=="undefined"){var b8=document.documentElement;if(!b8.matches){var cux=b8.webkitMatchesSelector||b8.msMatchesSelector||b8.mozMatchesSelector||b8.oMatchesSelector;rk9=function(E){return function(){return cux.call(this,E)}}}}var Jk_=rk9;
V.prototype={constructor:V,appendChild:function(E){return this._parent.insertBefore(E,this._next)},
insertBefore:function(E,D){return this._parent.insertBefore(E,D)},
querySelector:function(E){return this._parent.querySelector(E)},
querySelectorAll:function(E){return this._parent.querySelectorAll(E)}};
var XUD={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(XUD={mouseenter:"mouseover",mouseleave:"mouseout"}));var LkC=[null];TY.prototype=NZ.prototype={constructor:TY,select:function(E){typeof E!=="function"&&(E=e(E));for(var D=this._groups,m=D.length,lb=Array(m),d8=0;d8<m;++d8)for(var VZ=D[d8],zK=VZ.length,Ey=lb[d8]=Array(zK),R_,o_,wt=0;wt<zK;++wt)(R_=VZ[wt])&&(o_=E.call(R_,R_.__data__,wt,VZ))&&("__data__"in R_&&(o_.__data__=R_.__data__),Ey[wt]=o_);return new TY(lb,
this._parents)},
filter:function(E){typeof E!=="function"&&(E=Jk_(E));for(var D=this._groups,m=D.length,lb=Array(m),d8=0;d8<m;++d8)for(var VZ=D[d8],zK=VZ.length,Ey=lb[d8]=[],R_,o_=0;o_<zK;++o_)(R_=VZ[o_])&&E.call(R_,R_.__data__,o_,VZ)&&Ey.push(R_);return new TY(lb,this._parents)},
data:function(E,D){if(!E)return GZ=Array(this.size()),o_=-1,this.each(function($3){GZ[++o_]=$3}),GZ;
var m=D?t:z,lb=this._parents,d8=this._groups;typeof E!=="function"&&(E=p(E));for(var VZ=d8.length,zK=Array(VZ),Ey=Array(VZ),R_=Array(VZ),o_=0;o_<VZ;++o_){var wt=lb[o_],y9=d8[o_],I_=y9.length,GZ=E.call(wt,wt&&wt.__data__,o_,lb),Dr=GZ.length,Ym=Ey[o_]=Array(Dr),aD=zK[o_]=Array(Dr);I_=R_[o_]=Array(I_);m(wt,y9,Ym,aD,I_,GZ,D);y9=wt=0;for(var sA;wt<Dr;++wt)if(I_=Ym[wt]){for(wt>=y9&&(y9=wt+1);!(sA=aD[y9])&&++y9<Dr;);I_._next=sA||null}}zK=new TY(zK,lb);zK._enter=Ey;zK._exit=R_;return zK},
enter:function(){return new TY(this._enter||this._groups.map(y),this._parents)},
exit:function(){return new TY(this._exit||this._groups.map(y),this._parents)},
merge:function(E){var D=this._groups;E=E._groups;for(var m=D.length,lb=Math.min(m,E.length),d8=Array(m),VZ=0;VZ<lb;++VZ)for(var zK=D[VZ],Ey=E[VZ],R_=zK.length,o_=d8[VZ]=Array(R_),wt,y9=0;y9<R_;++y9)if(wt=zK[y9]||Ey[y9])o_[y9]=wt;for(;VZ<m;++VZ)d8[VZ]=D[VZ];return new TY(d8,this._parents)},
order:function(){for(var E=this._groups,D=-1,m=E.length;++D<m;)for(var lb=E[D],d8=lb.length-1,VZ=lb[d8],zK;--d8>=0;)if(zK=lb[d8])VZ&&VZ!==zK.nextSibling&&VZ.parentNode.insertBefore(zK,VZ),VZ=zK;return this},
sort:function(E){function D(y9,I_){return y9&&I_?E(y9.__data__,I_.__data__):!y9-!I_}
E||(E=W);for(var m=this._groups,lb=m.length,d8=Array(lb),VZ=0;VZ<lb;++VZ){for(var zK=m[VZ],Ey=zK.length,R_=d8[VZ]=Array(Ey),o_,wt=0;wt<Ey;++wt)if(o_=zK[wt])R_[wt]=o_;R_.sort(D)}return(new TY(d8,this._parents)).order()},
call:function(){var E=arguments[0];arguments[0]=this;E.apply(null,arguments);return this},
nodes:function(){var E=Array(this.size()),D=-1;this.each(function(){E[++D]=this});
return E},
node:function(){for(var E=this._groups,D=0,m=E.length;D<m;++D)for(var lb=E[D],d8=0,VZ=lb.length;d8<VZ;++d8){var zK=lb[d8];if(zK)return zK}return null},
size:function(){var E=0;this.each(function(){++E});
return E},
empty:function(){return!this.node()},
each:function(E){for(var D=this._groups,m=0,lb=D.length;m<lb;++m)for(var d8=D[m],VZ=0,zK=d8.length,Ey;VZ<zK;++VZ)(Ey=d8[VZ])&&E.call(Ey,Ey.__data__,VZ,d8);return this},
attr:function(E,D){var m=w(E);if(arguments.length<2){var lb=this.node();return m.local?lb.getAttributeNS(m.space,m.local):lb.getAttribute(m)}return this.each((D==null?m.local?r:G:typeof D==="function"?m.local?Y:J:m.local?v:Q)(m,D))},
style:function(E,D,m){return arguments.length>1?this.each((D==null?Uy:typeof D==="function"?sy:Cy)(E,D,m==null?"":m)):FO(this.node(),E)},
property:function(E,D){return arguments.length>1?this.each((D==null?ub:typeof D==="function"?mm:g8)(E,D)):this.node()[E]},
text:function(E){return arguments.length?this.each(E==null?QZ:(typeof E==="function"?dt:Bz)(E)):this.node().textContent},
html:function(E){return arguments.length?this.each(E==null?TK:(typeof E==="function"?f_:sG)(E)):this.node().innerHTML},
append:function(E){var D=typeof E==="function"?E:q(E);return this.select(function(){return this.appendChild(D.apply(this,arguments))})},
insert:function(E,D){var m=typeof E==="function"?E:q(E),lb=D==null?Mv:typeof D==="function"?D:e(D);return this.select(function(){return this.insertBefore(m.apply(this,arguments),lb.apply(this,arguments)||null)})},
remove:function(){return this.each(nd)},
clone:function(E){return this.select(E?MW:$U)},
datum:function(E){return arguments.length?this.property("__data__",E):this.node().__data__},
on:function(E,D,m){var lb=rt(E+""),d8=lb.length,VZ;if(arguments.length<2){var zK=this.node().__on;if(zK)for(var Ey=0,R_=zK.length,o_;Ey<R_;++Ey){var wt=0;for(o_=zK[Ey];wt<d8;++wt)if((VZ=lb[wt]).type===o_.type&&VZ.name===o_.name)return o_.value}}else{zK=D?AQ:xQ;m==null&&(m=!1);for(wt=0;wt<d8;++wt)this.each(zK(lb[wt],D,m));return this}},
dispatch:function(E,D){return this.each((typeof D==="function"?F5:YQ)(E,D))}};
var YOx=0;C_.prototype=function(){return new C_}.prototype={constructor:C_,
get:function(E){for(var D=this._;!(D in E);)if(!(E=E.parentNode))return;return E[D]},
set:function(E,D){return E[this._]=D},
remove:function(E){return this._ in E&&delete E[this._]},
toString:function(){return this._}};
var Yk=1/.7,Iwx=/^#([0-9a-f]{3})$/,AKY=/^#([0-9a-f]{6})$/,XNN=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),HHZ=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),lyU=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),otd=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*\\)$"),
bHN=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Utl=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*\\)$"),Hnt={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};
qZ(cz,OG,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
qZ(IC,RC,qv(cz,{brighter:function(E){E=E==null?Yk:Math.pow(Yk,E);return new IC(this.r*E,this.g*E,this.b*E,this.opacity)},
darker:function(E){E=E==null?.7:Math.pow(.7,E);return new IC(this.r*E,this.g*E,this.b*E,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+R$(this.r)+R$(this.g)+R$(this.b)},
toString:function(){var E=this.opacity;E=isNaN(E)?1:Math.max(0,Math.min(1,E));return(E===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(E===1?")":", "+E+")")}}));
qZ(k3,AR,qv(cz,{brighter:function(E){E=E==null?Yk:Math.pow(Yk,E);return new k3(this.h,this.s,this.l*E,this.opacity)},
darker:function(E){E=E==null?.7:Math.pow(.7,E);return new k3(this.h,this.s,this.l*E,this.opacity)},
rgb:function(){var E=this.h%360+(this.h<0)*360,D=this.l,m=D+(D<.5?D:1-D)*(isNaN(E)||isNaN(this.s)?0:this.s);D=2*D-m;return new IC(KJ(E>=240?E-240:E+120,D,m),KJ(E,D,m),KJ(E<120?E+240:E-120,D,m),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 lZQ=Math.PI/180,UXz=180/Math.PI,bnQ=4/29,jM=6/29,oGG=3*jM*jM,$tl=jM*jM*jM;qZ(kN,function(E,D,m,lb){return arguments.length===1?Yr(E):new kN(E,D,m,lb==null?1:lb)},qv(cz,{brighter:function(E){return new kN(this.l+18*(E==null?1:E),this.a,this.b,this.opacity)},
darker:function(E){return new kN(this.l-18*(E==null?1:E),this.a,this.b,this.opacity)},
rgb:function(){var E=(this.l+16)/116,D=isNaN(this.a)?E:E+this.a/500,m=isNaN(this.b)?E:E-this.b/200;D=.96422*Jy(D);E=1*Jy(E);m=.82521*Jy(m);return new IC(p_(3.1338561*D-1.6168667*E-.4906146*m),p_(-.9787684*D+1.9161415*E+.033454*m),p_(.0719453*D-.2289914*E+1.4052427*m),this.opacity)}}));
qZ(zY,kU,qv(cz,{brighter:function(E){return new zY(this.h,this.c,this.l+18*(E==null?1:E),this.opacity)},
darker:function(E){return new zY(this.h,this.c,this.l-18*(E==null?1:E),this.opacity)},
rgb:function(){return Yr(this).rgb()}}));
var $X6=1.78277*-.29227-.1347134789;qZ(Oa,Sq,qv(cz,{brighter:function(E){E=E==null?Yk:Math.pow(Yk,E);return new Oa(this.h,this.s,this.l*E,this.opacity)},
darker:function(E){E=E==null?.7:Math.pow(.7,E);return new Oa(this.h,this.s,this.l*E,this.opacity)},
rgb:function(){var E=isNaN(this.h)?0:(this.h+120)*lZQ,D=+this.l,m=isNaN(this.s)?0:this.s*D*(1-D),lb=Math.cos(E);E=Math.sin(E);return new IC(255*(D+m*(-.14861*lb+1.78277*E)),255*(D+m*(-.29227*lb+-.90649*E)),255*(D+1.97294*lb*m),this.opacity)}}));
var CuG=function m(D){function lb(VZ,zK){var Ey=d8((VZ=RC(VZ)).r,(zK=RC(zK)).r),R_=d8(VZ.g,zK.g),o_=d8(VZ.b,zK.b),wt=XB(VZ.opacity,zK.opacity);return function(y9){VZ.r=Ey(y9);VZ.g=R_(y9);VZ.b=o_(y9);VZ.opacity=wt(y9);return VZ+""}}
var d8=s_(D);lb.gamma=m;return lb}(1),N7$=HQ(function(D){var m=D.length-1;
return function(lb){var d8=lb<=0?lb=0:lb>=1?(lb=1,m-1):Math.floor(lb*m),VZ=D[d8],zK=D[d8+1];return UU((lb-d8/m)*m,d8>0?D[d8-1]:2*VZ-zK,VZ,zK,d8<m-1?D[d8+2]:2*zK-VZ)}});
HQ(function(D){var m=D.length;return function(lb){var d8=Math.floor(((lb%=1)<0?++lb:lb)*m);return UU((lb-d8/m)*m,D[(d8+m-1)%m],D[d8%m],D[(d8+1)%m],D[(d8+2)%m])}});
var HVb=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lml=new RegExp(HVb.source,"g"),KfC=180/Math.PI,urZ={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},UN,eyZ,LfF,$0K,jg5=hS(function(D){if(D==="none")return urZ;UN||(UN=document.createElement("DIV"),eyZ=document.documentElement,LfF=document.defaultView);UN.style.transform=D;D=LfF.getComputedStyle(eyZ.appendChild(UN),null).getPropertyValue("transform");eyZ.removeChild(UN);D=D.slice(7,-1).split(",");return ud(+D[0],+D[1],+D[2],+D[3],
+D[4],+D[5])},"px, ","px)","deg)"),ruZ=hS(function(D){if(D==null)return urZ;
$0K||($0K=document.createElementNS("http://www.w3.org/2000/svg","g"));$0K.setAttribute("transform",D);if(!(D=$0K.transform.baseVal.consolidate()))return urZ;D=D.matrix;return ud(D.a,D.b,D.c,D.d,D.e,D.f)},", ",")",")");
PJ(Q2);PJ(XB);U$(Q2);U$(XB);zx(Q2);var yTN=zx(XB),r$=0,ck=0,r4=0,jLZ,jQ,cSN=0,PN=0,NUl=0,NY=typeof performance==="object"&&performance.now?performance:Date,RNY=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(D){setTimeout(D,17)};
le.prototype=$1.prototype={constructor:le,restart:function(D,m,lb){if(typeof D!=="function")throw new TypeError("Fe");lb=(lb==null?nc():+lb)+(m==null?0:+m);this._next||jQ===this||(jQ?jQ._next=this:jLZ=this,jQ=this);this._call=D;this._time=lb;oV()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,oV())}};
var KUC=l("start","end","interrupt"),R1p=[],Jux=NZ.prototype.constructor,YVD=0,IU=NZ.prototype;wI.prototype=function(D){return NZ().transition(D)}.prototype={constructor:wI,
select:function(D){var m=this._name,lb=this._id;typeof D!=="function"&&(D=e(D));for(var d8=this._groups,VZ=d8.length,zK=Array(VZ),Ey=0;Ey<VZ;++Ey)for(var R_=d8[Ey],o_=R_.length,wt=zK[Ey]=Array(o_),y9,I_,GZ=0;GZ<o_;++GZ)(y9=R_[GZ])&&(I_=D.call(y9,y9.__data__,GZ,R_))&&("__data__"in y9&&(I_.__data__=y9.__data__),wt[GZ]=I_,XH(wt[GZ],m,lb,GZ,wt,rY(y9,lb)));return new wI(zK,this._parents,m,lb)},
filter:function(D){typeof D!=="function"&&(D=Jk_(D));for(var m=this._groups,lb=m.length,d8=Array(lb),VZ=0;VZ<lb;++VZ)for(var zK=m[VZ],Ey=zK.length,R_=d8[VZ]=[],o_,wt=0;wt<Ey;++wt)(o_=zK[wt])&&D.call(o_,o_.__data__,wt,zK)&&R_.push(o_);return new wI(d8,this._parents,this._name,this._id)},
merge:function(D){if(D._id!==this._id)throw Error();var m=this._groups;D=D._groups;for(var lb=m.length,d8=Math.min(lb,D.length),VZ=Array(lb),zK=0;zK<d8;++zK)for(var Ey=m[zK],R_=D[zK],o_=Ey.length,wt=VZ[zK]=Array(o_),y9,I_=0;I_<o_;++I_)if(y9=Ey[I_]||R_[I_])wt[I_]=y9;for(;zK<lb;++zK)VZ[zK]=m[zK];return new wI(VZ,this._parents,this._name,this._id)},
selection:function(){return new Jux(this._groups,this._parents)},
transition:function(){for(var D=this._name,m=this._id,lb=++YVD,d8=this._groups,VZ=d8.length,zK=0;zK<VZ;++zK)for(var Ey=d8[zK],R_=Ey.length,o_,wt=0;wt<R_;++wt)if(o_=Ey[wt]){var y9=rY(o_,m);XH(o_,D,lb,wt,Ey,{time:y9.time+y9.delay+y9.duration,delay:0,duration:y9.duration,ease:y9.ease})}return new wI(d8,this._parents,D,lb)},
call:IU.call,nodes:IU.nodes,node:IU.node,size:IU.size,empty:IU.empty,each:IU.each,on:function(D,m){var lb=this._id;return arguments.length<2?rY(this.node(),lb).on.on(D):this.each(qh$(lb,D,m))},
attr:function(D,m){var lb=w(D),d8=lb==="transform"?ruZ:fG;return this.attrTween(D,typeof m==="function"?(lb.local?Lw:LFW)(lb,d8,QP(this,"attr."+D,m)):m==null?(lb.local?rSO:fH)(lb):(lb.local?Jt:JS8)(lb,d8,m+""))},
attrTween:function(D,m){var lb="attr."+D;if(arguments.length<2)return(lb=this.tween(lb))&&lb._value;if(m==null)return this.tween(lb,null);if(typeof m!=="function")throw Error();var d8=w(D);return this.tween(lb,(d8.local?Yf:YAL)(d8,m))},
style:function(D,m,lb){var d8=D==="transform"?jg5:fG;return m==null?this.styleTween(D,M6y(D,d8)).on("end.style."+D,u7d(D)):this.styleTween(D,typeof m==="function"?yga(D,d8,QP(this,"style."+D,m)):e1C(D,d8,m+""),lb)},
styleTween:function(D,m,lb){var d8="style."+D;if(arguments.length<2)return(d8=this.tween(d8))&&d8._value;if(m==null)return this.tween(d8,null);if(typeof m!=="function")throw Error();return this.tween(d8,V6Y(D,m,lb==null?"":lb))},
text:function(D){return this.tween("text",typeof D==="function"?fyy(QP(this,"text",D)):PnA(D==null?"":D+""))},
remove:function(){return this.on("end.remove",sYy(this._id))},
tween:function(D,m){var lb=this._id;if(arguments.length<2){lb=rY(this.node(),lb).tween;for(var d8=0,VZ=lb.length,zK;d8<VZ;++d8)if((zK=lb[d8]).name===D)return zK.value;return null}return this.each((m==null?m4:QW)(lb,D,m))},
delay:function(D){var m=this._id;return arguments.length?this.each((typeof D==="function"?CnZ:wNU)(m,D)):rY(this.node(),m).delay},
duration:function(D){var m=this._id;return arguments.length?this.each((typeof D==="function"?dtA:h1x)(m,D)):rY(this.node(),m).duration},
ease:function(D){var m=this._id;return arguments.length?this.each(FUe(m,D)):rY(this.node(),m).ease}};
var VbO={time:null,delay:0,duration:250,ease:function(D){return((D*=2)<=1?D*D*D:(D-=2)*D*D+2)/2}};
NZ.prototype.transition=function(D){var m;if(D instanceof wI){var lb=D._id;D=D._name}else lb=++YVD,(m=VbO).time=nc(),D=D==null?null:D+"";for(var d8=this._groups,VZ=d8.length,zK=0;zK<VZ;++zK)for(var Ey=d8[zK],R_=Ey.length,o_,wt=0;wt<R_;++wt)if(o_=Ey[wt]){var y9=o_,I_=D,GZ=lb,Dr=wt,Ym=Ey,aD;if(!(aD=m))a:{aD=void 0;for(var sA=lb;!(aD=o_.__transition)||!(aD=aD[sA]);)if(!(o_=o_.parentNode)){aD=(VbO.time=nc(),VbO);break a}}XH(y9,I_,GZ,Dr,Ym,aD)}return new wI(d8,this._parents,D,lb)};
["e","w"].map(oXO);["n","s"].map(oXO);"n e s w nw ne se sw".split(" ").map(oXO);bVW.prototype=function(){return new bVW}.prototype={constructor:bVW,
moveTo:function(D,m){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+m)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(D,m){this._+="L"+(this._x1=+D)+","+(this._y1=+m)},
bezierCurveTo:function(D,m,lb,d8,VZ,zK){this._+="C"+ +D+","+ +m+","+ +lb+","+ +d8+","+(this._x1=+VZ)+","+(this._y1=+zK)},
rect:function(D,m,lb,d8){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+m)+"h"+ +lb+"v"+ +d8+"h"+-lb+"Z"},
toString:function(){return this._}};
IqZ.prototype=wUC.prototype={constructor:IqZ,has:function(D){return" "+D in this},
get:function(D){return this[" "+D]},
set:function(D,m){this[" "+D]=m;return this},
remove:function(D){D=" "+D;return D in this&&delete this[D]},
clear:function(){for(var D in this)D[0]===" "&&delete this[D]},
keys:function(){var D=[],m;for(m in this)m[0]===" "&&D.push(m.slice(1));return D},
values:function(){var D=[],m;for(m in this)m[0]===" "&&D.push(this[m]);return D},
entries:function(){var D=[],m;for(m in this)m[0]===" "&&D.push({key:m.slice(1),value:this[m]});return D},
size:function(){var D=0,m;for(m in this)m[0]===" "&&++D;return D},
empty:function(){for(var D in this)if(D[0]===" ")return!1;return!0},
each:function(D){for(var m in this)m[0]===" "&&D(this[m],m.slice(1),this)}};
var zt=wUC.prototype;ASb.prototype=function(D,m){var lb=new ASb;if(D instanceof ASb)D.each(function(zK){lb.add(zK)});
else if(D){var d8=-1,VZ=D.length;if(m==null)for(;++d8<VZ;)lb.add(D[d8]);else for(;++d8<VZ;)lb.add(m(D[d8],d8,D))}return lb}.prototype={constructor:ASb,
has:zt.has,add:function(D){this[" "+D]=D;return this},
remove:zt.remove,clear:zt.clear,values:zt.keys,size:zt.size,empty:zt.empty,each:zt.each};var Ff_={},UPh={},LJl=hN_(",").parse,Y0y=hN_("\t").parse;BF_(LJl);BF_(Y0y);var $h=function(D,m,lb){m=new $P8(m==null?ntU:m,lb==null?kty:lb,NaN,NaN,NaN,NaN);return D==null?m:m.addAll(D)}.prototype=$P8.prototype;
$h.copy=function(){var D=new $P8(this._x,this._y,this._x0,this._y0,this._x1,this._y1),m=this._root,lb,d8;if(!m)return D;if(!m.length)return D._root=sXG(m),D;for(lb=[{source:m,target:D._root=Array(4)}];m=lb.pop();)for(var VZ=0;VZ<4;++VZ)if(d8=m.source[VZ])d8.length?lb.push({source:d8,target:m.target[VZ]=Array(4)}):m.target[VZ]=sXG(d8);return D};
$h.add=function(D){var m=+this._x.call(null,D),lb=+this._y.call(null,D);return qVz(this.cover(m,lb),m,lb,D)};
$h.addAll=function(D){var m,lb,d8=D.length,VZ,zK,Ey=Array(d8),R_=Array(d8),o_=Infinity,wt=Infinity,y9=-Infinity,I_=-Infinity;for(lb=0;lb<d8;++lb)isNaN(VZ=+this._x.call(null,m=D[lb]))||isNaN(zK=+this._y.call(null,m))||(Ey[lb]=VZ,R_[lb]=zK,VZ<o_&&(o_=VZ),VZ>y9&&(y9=VZ),zK<wt&&(wt=zK),zK>I_&&(I_=zK));y9<o_&&(o_=this._x0,y9=this._x1);I_<wt&&(wt=this._y0,I_=this._y1);this.cover(o_,wt).cover(y9,I_);for(lb=0;lb<d8;++lb)qVz(this,Ey[lb],R_[lb],D[lb]);return this};
$h.cover=function(D,m){if(isNaN(D=+D)||isNaN(m=+m))return this;var lb=this._x0,d8=this._y0,VZ=this._x1,zK=this._y1;if(isNaN(lb))VZ=(lb=Math.floor(D))+1,zK=(d8=Math.floor(m))+1;else if(lb>D||D>VZ||d8>m||m>zK){var Ey=VZ-lb,R_=this._root,o_;switch(o_=(m<(d8+zK)/2)<<1|D<(lb+VZ)/2){case 0:do{var wt=Array(4);wt[o_]=R_;R_=wt}while(Ey*=2,VZ=lb+Ey,zK=d8+Ey,D>VZ||m>zK);break;case 1:do wt=Array(4),wt[o_]=R_,R_=wt;while(Ey*=2,lb=VZ-Ey,zK=d8+Ey,lb>D||m>zK);break;case 2:do wt=Array(4),wt[o_]=R_,R_=wt;while(Ey*=
2,VZ=lb+Ey,d8=zK-Ey,D>VZ||d8>m);break;case 3:do wt=Array(4),wt[o_]=R_,R_=wt;while(Ey*=2,lb=VZ-Ey,d8=zK-Ey,lb>D||d8>m)}this._root&&this._root.length&&(this._root=R_)}else return this;this._x0=lb;this._y0=d8;this._x1=VZ;this._y1=zK;return this};
$h.data=function(){var D=[];this.visit(function(m){if(!m.length){do D.push(m.data);while(m=m.next)}});
return D};
$h.extent=function(D){return arguments.length?this.cover(+D[0][0],+D[0][1]).cover(+D[1][0],+D[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
$h.find=function(D,m,lb){var d8=this._x0,VZ=this._y0,zK,Ey,R_,o_,wt=this._x1,y9=this._y1,I_=[],GZ=this._root,Dr;GZ&&I_.push(new Ui(GZ,d8,VZ,wt,y9));lb==null?lb=Infinity:(d8=D-lb,VZ=m-lb,wt=D+lb,y9=m+lb,lb*=lb);for(;Dr=I_.pop();)if(!(!(GZ=Dr.node)||(zK=Dr.x0)>wt||(Ey=Dr.y0)>y9||(R_=Dr.x1)<d8||(o_=Dr.y1)<VZ))if(GZ.length){Dr=(zK+R_)/2;var Ym=(Ey+o_)/2;I_.push(new Ui(GZ[3],Dr,Ym,R_,o_),new Ui(GZ[2],zK,Ym,Dr,o_),new Ui(GZ[1],Dr,Ey,R_,Ym),new Ui(GZ[0],zK,Ey,Dr,Ym));if(GZ=(m>=Ym)<<1|D>=Dr)Dr=I_[I_.length-
1],I_[I_.length-1]=I_[I_.length-1-GZ],I_[I_.length-1-GZ]=Dr}else if(Dr=D-+this._x.call(null,GZ.data),Ym=m-+this._y.call(null,GZ.data),Dr=Dr*Dr+Ym*Ym,Dr<lb){var aD=Math.sqrt(lb=Dr);d8=D-aD;VZ=m-aD;wt=D+aD;y9=m+aD;aD=GZ.data}return aD};
$h.remove=function(D){if(isNaN(o_=+this._x.call(null,D))||isNaN(wt=+this._y.call(null,D)))return this;var m,lb=this._root,d8,VZ=this._x0,zK=this._y0,Ey=this._x1,R_=this._y1,o_,wt,y9,I_,GZ,Dr,Ym;if(!lb)return this;if(lb.length)for(;;){(GZ=o_>=(y9=(VZ+Ey)/2))?VZ=y9:Ey=y9;(Dr=wt>=(I_=(zK+R_)/2))?zK=I_:R_=I_;if(!(m=lb,lb=lb[Ym=Dr<<1|GZ]))return this;if(!lb.length)break;if(m[Ym+1&3]||m[Ym+2&3]||m[Ym+3&3]){var aD=m;var sA=Ym}}for(;lb.data!==D;)if(!(d8=lb,lb=lb.next))return this;(D=lb.next)&&delete lb.next;
if(d8)return D?d8.next=D:delete d8.next,this;if(!m)return this._root=D,this;D?m[Ym]=D:delete m[Ym];(lb=m[0]||m[1]||m[2]||m[3])&&lb===(m[3]||m[2]||m[1]||m[0])&&!lb.length&&(aD?aD[sA]=lb:this._root=lb);return this};
$h.removeAll=function(D){for(var m=0,lb=D.length;m<lb;++m)this.remove(D[m]);return this};
$h.root=function(){return this._root};
$h.size=function(){var D=0;this.visit(function(m){if(!m.length){do++D;while(m=m.next)}});
return D};
$h.visit=function(D){var m=[],lb,d8=this._root,VZ,zK,Ey,R_,o_;for(d8&&m.push(new Ui(d8,this._x0,this._y0,this._x1,this._y1));lb=m.pop();)if(!D(d8=lb.node,zK=lb.x0,Ey=lb.y0,R_=lb.x1,o_=lb.y1)&&d8.length){lb=(zK+R_)/2;var wt=(Ey+o_)/2;(VZ=d8[3])&&m.push(new Ui(VZ,lb,wt,R_,o_));(VZ=d8[2])&&m.push(new Ui(VZ,zK,wt,lb,o_));(VZ=d8[1])&&m.push(new Ui(VZ,lb,Ey,R_,wt));(VZ=d8[0])&&m.push(new Ui(VZ,zK,Ey,lb,wt))}};
$h.visitAfter=function(D){var m=[],lb=[],d8;for(this._root&&m.push(new Ui(this._root,this._x0,this._y0,this._x1,this._y1));d8=m.pop();){var VZ=d8.node;if(VZ.length){var zK,Ey=d8.x0,R_=d8.y0,o_=d8.x1,wt=d8.y1,y9=(Ey+o_)/2,I_=(R_+wt)/2;(zK=VZ[0])&&m.push(new Ui(zK,Ey,R_,y9,I_));(zK=VZ[1])&&m.push(new Ui(zK,y9,R_,o_,I_));(zK=VZ[2])&&m.push(new Ui(zK,Ey,I_,y9,wt));(zK=VZ[3])&&m.push(new Ui(zK,y9,I_,o_,wt))}lb.push(d8)}for(;d8=lb.pop();)D(d8.node,d8.x0,d8.y0,d8.x1,d8.y1);return this};
$h.x=function(D){return arguments.length?(this._x=D,this):this._x};
$h.y=function(D){return arguments.length?(this._y=D,this):this._y};
var WUp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Kwy.prototype=Ryy.prototype;Ryy.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 ykt,VDC={"%":function(D,m){return(D*100).toFixed(m)},
b:function(D){return Math.round(D).toString(2)},
c:function(D){return D+""},
d:function(D){return Math.round(D).toString(10)},
e:function(D,m){return D.toExponential(m)},
f:function(D,m){return D.toFixed(m)},
g:function(D,m){return D.toPrecision(m)},
o:function(D){return Math.round(D).toString(8)},
p:function(D,m){return MD9(D*100,m)},
r:MD9,s:function(D,m){var lb=Xjb(D,m);if(!lb)return D+"";var d8=lb[0];lb=lb[1];lb=lb-(ykt=Math.max(-8,Math.min(8,Math.floor(lb/3)))*3)+1;var VZ=d8.length;return lb===VZ?d8:lb>VZ?d8+Array(lb-VZ+1).join("0"):lb>0?d8.slice(0,lb)+"."+d8.slice(lb):"0."+Array(1-lb).join("0")+Xjb(D,Math.max(0,m+lb-1))[0]},
X:function(D){return Math.round(D).toString(16).toUpperCase()},
x:function(D){return Math.round(D).toString(16)}},eN_="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),I_a;
(function(D){return I_a=Ete(D)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});pj.prototype={constructor:pj,reset:function(){this.s=this.t=0},
add:function(D){Pu_(KcO,D,this.t);Pu_(this,KcO.s,this.s);this.s?this.t+=KcO.t:this.s=KcO.t},
valueOf:function(){return this.s}};
var KcO=new pj,bz=Math.PI,pG=bz/2,IZY=bz/4,Au$=bz*2,P2y=bz/180,dI=Math.abs,fmb=Math.atan,kiG=Math.atan2,Sg=Math.cos,Tu=Math.sin,lCl=Math.sqrt;new pj;new pj;new pj;var pmO=new pj;(function(D,m,lb,d8){return function(VZ){function zK(KW,xO){D(KW,xO)&&VZ.point(KW,xO)}
function Ey(KW,xO){GZ.point(KW,xO)}
function R_(){fl.point=Ey;GZ.lineStart()}
function o_(){fl.point=zK;GZ.lineEnd()}
function wt(KW,xO){Dv.push([KW,xO]);Ym.point(KW,xO)}
function y9(){Ym.lineStart();Dv=[]}
function I_(){wt(Dv[0][0],Dv[0][1]);Ym.lineEnd();var KW=Ym.clean(),xO=Dr.result(),oD=xO.length,tV;Dv.pop();sA.push(Dv);Dv=null;if(oD)if(KW&1){if(oD=xO[0],(xO=oD.length-1)>0){aD||(VZ.polygonStart(),aD=!0);VZ.lineStart();for(KW=0;KW<xO;++KW)VZ.point((tV=oD[KW])[0],tV[1]);VZ.lineEnd()}}else oD>1&&KW&2&&xO.push(xO.pop().concat(xO.shift())),$3.push(xO.filter(ZHZ))}
var GZ=m(VZ),Dr=GtZ(),Ym=m(Dr),aD=!1,sA,$3,Dv,fl={point:zK,lineStart:R_,lineEnd:o_,polygonStart:function(){fl.point=wt;fl.lineStart=y9;fl.lineEnd=I_;$3=[];sA=[]},
polygonEnd:function(){fl.point=zK;fl.lineStart=R_;fl.lineEnd=o_;var KW=$3,xO=KW.length;var oD=-1;for(var tV=0,AN,pX;++oD<xO;)tV+=KW[oD].length;for(AN=Array(tV);--xO>=0;)for(pX=KW[xO],oD=pX.length;--oD>=0;)AN[--tV]=pX[oD];$3=AN;KW=sA;xO=d8[0];tV=d8[1];var Bu=Tu(tV);oD=[Tu(xO),-Sg(xO),0];pX=AN=0;pmO.reset();Bu===1?tV=pG+1E-6:Bu===-1&&(tV=-pG-1E-6);Bu=0;for(var aC=KW.length;Bu<aC;++Bu)if(om=(Kf=KW[Bu]).length){var Kf,om,Mp=Kf[om-1],nf=Mp[0],K7=Mp[1]/2+IZY,R3K=Tu(K7),AkC=Sg(K7);for(K7=0;K7<om;++K7,nf=
SIh,R3K=XaD,AkC=$d,Mp=Czh){var Czh=Kf[K7],SIh=Czh[0];$d=Czh[1]/2+IZY;var XaD=Tu($d),$d=Sg($d),A4=SIh-nf,zyL=A4>=0?1:-1,nXk=zyL*A4,wjz=nXk>bz;R3K*=XaD;pmO.add(kiG(R3K*zyL*Tu(nXk),AkC*$d+R3K*Sg(nXk)));AN+=wjz?A4+zyL*Au$:A4;wjz^nf>=xO^SIh>=xO&&(Mp=pU9(fZY(Mp),fZY(Czh)),SV6(Mp),nf=pU9(oD,Mp),SV6(nf),nf=(wjz^A4>=0?-1:1)*Hiy(nf[2]),tV>nf||tV===nf&&(Mp[0]||Mp[1]))&&(pX+=wjz^A4>=0?1:-1)}}KW=(AN<-1E-6||AN<1E-6&&pmO<-1E-6)^pX&1;$3.length?(aD||(VZ.polygonStart(),aD=!0),ayp($3,iHN,KW,lb,VZ)):KW&&(aD||(VZ.polygonStart(),
aD=!0),VZ.lineStart(),lb(null,null,1,VZ),VZ.lineEnd());aD&&(VZ.polygonEnd(),aD=!1);$3=sA=null},
sphere:function(){VZ.polygonStart();VZ.lineStart();lb(null,null,1,VZ);VZ.lineEnd();VZ.polygonEnd()}};
return fl}})(function(){return!0},function(D){var m=NaN,lb=NaN,d8=NaN,VZ;
return{lineStart:function(){D.lineStart();VZ=1},
point:function(zK,Ey){var R_=zK>0?bz:-bz,o_=dI(zK-m);if(dI(o_-bz)<1E-6)D.point(m,lb=(lb+Ey)/2>0?pG:-pG),D.point(d8,lb),D.lineEnd(),D.lineStart(),D.point(R_,lb),D.point(zK,lb),VZ=0;else if(d8!==R_&&o_>=bz){dI(m-d8)<1E-6&&(m-=d8*1E-6);dI(zK-R_)<1E-6&&(zK-=R_*1E-6);o_=m;var wt=lb,y9=zK,I_,GZ,Dr=Tu(o_-y9);lb=dI(Dr)>1E-6?fmb((Tu(wt)*(GZ=Sg(Ey))*Tu(y9)-Tu(Ey)*(I_=Sg(wt))*Tu(o_))/(I_*GZ*Dr)):(wt+Ey)/2;D.point(d8,lb);D.lineEnd();D.lineStart();D.point(R_,lb);VZ=0}D.point(m=zK,lb=Ey);d8=R_},
lineEnd:function(){D.lineEnd();m=lb=NaN},
clean:function(){return 2-VZ}}},function(D,m,lb,d8){D==null?(lb*=pG,d8.point(-bz,lb),d8.point(0,lb),d8.point(bz,lb),d8.point(bz,0),d8.point(bz,-lb),d8.point(0,-lb),d8.point(-bz,-lb),d8.point(-bz,0),d8.point(-bz,lb)):dI(D[0]-m[0])>1E-6?(D=D[0]<m[0]?bz:-bz,lb=lb*D/2,d8.point(-D,lb),d8.point(0,lb),d8.point(D,lb)):d8.point(m[0],m[1])},[-bz,
-pG]);new pj;new pj;new pj;new pj;C2L.prototype={constructor:C2L,point:function(D,m){this.stream.point(D,m)},
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()}};
Sg(30*P2y);(function(D){return function(m){var lb=new C2L,d8;for(d8 in D)lb[d8]=D[d8];lb.stream=m;return lb}})({point:function(D,m){this.stream.point(D*P2y,m*P2y)}});
nGD(function(D){return lCl(2/(1+D))}).invert=IT(function(D){return 2*Hiy(D/2)});
nGD(function(D){return(D=D>1?0:D<-1?bz:Math.acos(D))&&D/Tu(D)}).invert=IT(function(D){return D});
lCl(3);IT(fmb);IT(Hiy);IT(function(D){return 2*fmb(D)});
At.prototype=xX_.prototype={constructor:At,count:function(){return this.eachAfter(vtC)},
each:function(D){var m,lb=[this],d8;do{var VZ=lb.reverse();for(lb=[];m=VZ.pop();)if(D(m),m=m.children){var zK=0;for(d8=m.length;zK<d8;++zK)lb.push(m[zK])}}while(lb.length);return this},
eachAfter:function(D){for(var m,lb=[this],d8=[],VZ,zK;m=lb.pop();)if(d8.push(m),m=m.children)for(VZ=0,zK=m.length;VZ<zK;++VZ)lb.push(m[VZ]);for(;m=d8.pop();)D(m);return this},
eachBefore:function(D){for(var m,lb=[this],d8;m=lb.pop();)if(D(m),m=m.children)for(d8=m.length-1;d8>=0;--d8)lb.push(m[d8]);return this},
sum:function(D){return this.eachAfter(function(m){for(var lb=+D(m.data)||0,d8=m.children,VZ=d8&&d8.length;--VZ>=0;)lb+=d8[VZ].value;m.value=lb})},
sort:function(D){return this.eachBefore(function(m){m.children&&m.children.sort(D)})},
path:function(D){var m=this;var lb=m;var d8=D;if(lb!==d8){var VZ=lb.ancestors(),zK=d8.ancestors(),Ey=null;lb=VZ.pop();for(d8=zK.pop();lb===d8;)Ey=lb,lb=VZ.pop(),d8=zK.pop();lb=Ey}for(d8=[m];m!==lb;)m=m.parent,d8.push(m);for(m=d8.length;D!==lb;)d8.splice(m,0,D),D=D.parent;return d8},
ancestors:function(){for(var D=this,m=[D];D=D.parent;)m.push(D);return m},
links:function(){var D=this,m=[];D.each(function(lb){lb!==D&&m.push({source:lb.parent,target:lb})});
return m},
copy:function(){return xX_(this).eachBefore(QYl)}};
(function(D,m){this._=D;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=m}).prototype=Object.create(At.prototype);
var wm8=new Date,dPb=new Date,HBG=D9(function(){},function(D,m){D.setTime(+D+m)},function(D,m){return m-D});
HBG.every=function(D){D=Math.floor(D);return isFinite(D)&&D>0?D>1?D9(function(m){m.setTime(Math.floor(m/D)*D)},function(m,lb){m.setTime(+m+lb*D)},function(m,lb){return(lb-m)/D}):HBG:null};
D9(function(D){D.setTime(Math.floor(D/1E3)*1E3)},function(D,m){D.setTime(+D+m*1E3)},function(D,m){return(m-D)/1E3},function(D){return D.getUTCSeconds()});
D9(function(D){D.setTime(Math.floor(D/6E4)*6E4)},function(D,m){D.setTime(+D+m*6E4)},function(D,m){return(m-D)/6E4},function(D){return D.getMinutes()});
D9(function(D){var m=D.getTimezoneOffset()*6E4%36E5;m<0&&(m+=36E5);D.setTime(Math.floor((+D-m)/36E5)*36E5+m)},function(D,m){D.setTime(+D+m*36E5)},function(D,m){return(m-D)/36E5},function(D){return D.getHours()});
var WfD=D9(function(D){D.setHours(0,0,0,0)},function(D,m){D.setDate(D.getDate()+m)},function(D,m){return(m-D-(m.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/864E5},function(D){return D.getDate()-1}),QgZ=pH(0),Fwl=pH(1);
pH(2);pH(3);var B3b=pH(4);pH(5);pH(6);D9(function(D){D.setDate(1);D.setHours(0,0,0,0)},function(D,m){D.setMonth(D.getMonth()+m)},function(D,m){return m.getMonth()-D.getMonth()+(m.getFullYear()-D.getFullYear())*12},function(D){return D.getMonth()});
var J4=D9(function(D){D.setMonth(0,1);D.setHours(0,0,0,0)},function(D,m){D.setFullYear(D.getFullYear()+m)},function(D,m){return m.getFullYear()-D.getFullYear()},function(D){return D.getFullYear()});
J4.every=function(D){return isFinite(D=Math.floor(D))&&D>0?D9(function(m){m.setFullYear(Math.floor(m.getFullYear()/D)*D);m.setMonth(0,1);m.setHours(0,0,0,0)},function(m,lb){m.setFullYear(m.getFullYear()+lb*D)}):null};
D9(function(D){D.setUTCSeconds(0,0)},function(D,m){D.setTime(+D+m*6E4)},function(D,m){return(m-D)/6E4},function(D){return D.getUTCMinutes()});
D9(function(D){D.setUTCMinutes(0,0,0)},function(D,m){D.setTime(+D+m*36E5)},function(D,m){return(m-D)/36E5},function(D){return D.getUTCHours()});
var tDC=D9(function(D){D.setUTCHours(0,0,0,0)},function(D,m){D.setUTCDate(D.getUTCDate()+m)},function(D,m){return(m-D)/864E5},function(D){return D.getUTCDate()-1}),T7Z=S6(0),hyy=S6(1);
S6(2);S6(3);var qIy=S6(4);S6(5);S6(6);D9(function(D){D.setUTCDate(1);D.setUTCHours(0,0,0,0)},function(D,m){D.setUTCMonth(D.getUTCMonth()+m)},function(D,m){return m.getUTCMonth()-D.getUTCMonth()+(m.getUTCFullYear()-D.getUTCFullYear())*12},function(D){return D.getUTCMonth()});
var LP=D9(function(D){D.setUTCMonth(0,1);D.setUTCHours(0,0,0,0)},function(D,m){D.setUTCFullYear(D.getUTCFullYear()+m)},function(D,m){return m.getUTCFullYear()-D.getUTCFullYear()},function(D){return D.getUTCFullYear()});
LP.every=function(D){return isFinite(D=Math.floor(D))&&D>0?D9(function(m){m.setUTCFullYear(Math.floor(m.getUTCFullYear()/D)*D);m.setUTCMonth(0,1);m.setUTCHours(0,0,0,0)},function(m,lb){m.setUTCFullYear(m.getUTCFullYear()+lb*D)}):null};
var DXQ={"-":"",_:" ",0:"0"},t$=/^\s*\d+/,mxe=/^%/,OhY=/[\\^$*+?|[\]().{}]/g,d0K;(function(D){d0K=NyA(D);Ki9=d0K.utcFormat;REQ=d0K.utcParse;return d0K})({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||Ki9("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||REQ("%Y-%m-%dT%H:%M:%S.%LZ");P1("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
P1("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");P1("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");P1("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");P1("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");P1("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");P1("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
P1("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");P1("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");P1("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");P1("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");P1("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var XTU=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(P1);R0(XTU);var HzN=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(P1);R0(HzN);var lGa=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(P1);R0(lGa);var oIx=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(P1);
R0(oIx);var bzd=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(P1);R0(bzd);var U$y=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(P1);R0(U$y);var $$U=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(P1);R0($$U);var Knd=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(P1);R0(Knd);var RFl=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(P1);R0(RFl);var CmZ=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(P1);R0(CmZ);var wTx=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(P1);R0(wTx);var d$$=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(P1);R0(d$$);var hFe=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(P1);R0(hFe);var Fnp=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(P1);R0(Fnp);var BGl=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(P1);R0(BGl);var qz5=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(P1);R0(qz5);var slU=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(P1);R0(slU);var Mx$=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(P1);R0(Mx$);var uLU=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(P1);R0(uLU);var eFy=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(P1);R0(eFy);var ydZ=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(P1);R0(ydZ);var VxZ=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(P1);R0(VxZ);var Pmy=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(P1);R0(Pmy);var fG$=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(P1);R0(fG$);var pT5=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(P1);R0(pT5);var Szl=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(P1);R0(Szl);var zFN=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(P1);R0(zFN);yTN(Sq(300,.5,0),Sq(-240,.5,1));yTN(Sq(-100,.75,.35),Sq(80,1.5,.8));yTN(Sq(260,.75,.35),Sq(80,1.5,.8));Sq();RC();U0h(P1("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
U0h(P1("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
U0h(P1("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
U0h(P1("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
QXD.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(D,m){D=+D;m=+m;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,m):this._context.moveTo(D,m);break;case 1:this._point=2;default:this._context.lineTo(D,m)}}};
(function(D){function m(lb){return new TFt(D(lb))}
m._curve=D;return m})(function(D){return new QXD(D)});
TFt.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(D,m){this._curve.point(m*Math.sin(D),m*-Math.cos(D))}};
Mbl.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:s2y(this,this._t0,ck9(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(D,m){var lb=NaN;D=+D;m=+m;if(D!==this._x1||m!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,m):this._context.moveTo(D,m);break;case 1:this._point=2;break;case 2:this._point=3;s2y(this,ck9(this,lb=NFq(this,D,m)),lb);break;default:s2y(this,this._t0,lb=NFq(this,D,m))}this._x0=this._x1;this._x1=D;this._y0=this._y1;this._y1=m;this._t0=lb}}};
(function(D){this._context=new jX_(D)}.prototype=Object.create(Mbl.prototype)).point=function(D,m){Mbl.prototype.point.call(this,m,D)};
jX_.prototype={moveTo:function(D,m){this._context.moveTo(m,D)},
closePath:function(){this._context.closePath()},
lineTo:function(D,m){this._context.lineTo(m,D)},
bezierCurveTo:function(D,m,lb,d8,VZ,zK){this._context.bezierCurveTo(m,D,d8,lb,zK,VZ)}};
oN.prototype={constructor:oN,scale:function(D){return D===1?this:new oN(this.k*D,this.x,this.y)},
translate:function(D,m){return D===0&m===0?this:new oN(this.k,this.x+this.k*D,this.y+this.k*m)},
apply:function(D){return[D[0]*this.k+this.x,D[1]*this.k+this.y]},
invert:function(D){return[(D[0]-this.x)/this.k,(D[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new oN(1,0,0);lJN=OG;Px.svg=Px.svg;Px.xhtml=Px.xhtml;Px.xlink=Px.xlink;Px.xml=Px.xml;Px.xmlns=Px.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 CpC="hammer_"+(Math.random()*1E6|0),w8_=function(){var X=document||document;if(!X[CpC]){var H=function(){(function(l,b,U,K){function w(kN,ib,Jy){return setTimeout(y(kN,Jy),ib)}
function d(kN,ib,Jy){return Array.isArray(kN)?(B(kN,Jy[ib],Jy),!0):!1}
function B(kN,ib,Jy){var p_;if(kN)if(kN.forEach)kN.forEach(ib,Jy);else if(kN.length!==K){var Pp=0;for(p_=kN.length;Pp<p_;Pp++)ib.call(Jy,kN[Pp],Pp,kN)}else for(Pp in kN)kN.hasOwnProperty(Pp)&&ib.call(Jy,kN[Pp],Pp,kN)}
function q(kN,ib,Jy){for(var p_=Object.keys(ib),Pp=0,kn=p_.length;Pp<kn;Pp++)if(!Jy||Jy&&kN[p_[Pp]]===K)kN[p_[Pp]]=ib[p_[Pp]];return kN}
function u(kN,ib){return q(kN,ib,!0)}
function e(kN,ib,Jy){ib=ib.prototype;var p_=kN.prototype=Object.create(ib);p_.constructor=kN;p_._super=ib;Jy&&q(p_,Jy)}
function y(kN,ib){return function(){return kN.apply(ib,arguments)}}
function V(kN,ib){return typeof kN=="function"?kN.apply(ib?ib[0]||K:K,ib):kN}
function p(kN,ib,Jy){B(t(ib),function(p_){kN.addEventListener(p_,Jy,!1)})}
function z(kN,ib,Jy){B(t(ib),function(p_){kN.removeEventListener(p_,Jy,!1)})}
function t(kN){return kN.trim().split(/\s+/g)}
function W(kN,ib,Jy){if(kN.indexOf&&!Jy)return kN.indexOf(ib);for(var p_=0,Pp=kN.length;p_<Pp;p_++)if(Jy&&kN[p_][Jy]==ib||!Jy&&kN[p_]===ib)return p_;return-1}
function G(kN,ib,Jy){for(var p_=[],Pp=[],kn=0,kU=kN.length;kn<kU;kn++){var zY=ib?kN[kn][ib]:kN[kn];W(Pp,zY)<0&&p_.push(kN[kn]);Pp[kn]=zY}Jy&&(p_=ib?p_.sort(function(Sq,Oa){return Sq[ib]>Oa[ib]}):p_.sort());
return p_}
function r(kN,ib){for(var Jy,p_=ib[0].toUpperCase()+ib.slice(1),Pp=0,kn=F5.length;Pp<kn;Pp++)if(Jy=(Jy=F5[Pp])?Jy+p_:ib,Jy in kN)return Jy;return K}
function Q(kN,ib){var Jy=this;this.manager=kN;this.callback=ib;this.element=kN.element;this.target=kN.options.inputTarget;this.domHandler=function(p_){V(kN.options.enable,[kN])&&Jy.handler(p_)};
this.evEl&&p(this.element,this.evEl,this.domHandler);this.evTarget&&p(this.target,this.evTarget,this.domHandler);this.evWin&&p(l,this.evWin,this.domHandler)}
function v(kN){var ib;Sy?ib=g8:$m?ib=mm:OG?ib=QZ:ib=ub;return new ib(kN,J)}
function J(kN,ib,Jy){var p_=Jy.pointers.length,Pp=Jy.changedPointers.length,kn=ib&1&&p_-Pp===0;Jy.isFirst=!!kn;Jy.isFinal=!!(ib&12&&p_-Pp===0);kn&&(kN.session={});Jy.eventType=ib;ib=kN.session;p_=Jy.pointers;Pp=p_.length;ib.firstInput||(ib.firstInput=Y(Jy));Pp>1&&!ib.firstMultiple?ib.firstMultiple=Y(Jy):Pp===1&&(ib.firstMultiple=!1);kn=ib.firstInput;var kU=(Pp=ib.firstMultiple)?Pp.center:kn.center,zY=Jy.center=Uy(p_);Jy.timeStamp=qZ();Jy.deltaTime=Jy.timeStamp-kn.timeStamp;Jy.angle=FO(kU,zY);Jy.distance=
sy(kU,zY);kn=Jy.center;kU=ib.offsetDelta||{};zY=ib.prevDelta||{};var Sq=ib.prevInput||{};if(Jy.eventType===1||Sq.eventType===4)zY=ib.prevDelta={x:Sq.deltaX||0,y:Sq.deltaY||0},kU=ib.offsetDelta={x:kn.x,y:kn.y};Jy.deltaX=zY.x+(kn.x-kU.x);Jy.deltaY=zY.y+(kn.y-kU.y);Jy.offsetDirection=Cy(Jy.deltaX,Jy.deltaY);Pp?(kn=Pp.pointers,kn=sy(p_[0],p_[1],RC)/sy(kn[0],kn[1],RC)):kn=1;Jy.scale=kn;Pp?(Pp=Pp.pointers,p_=FO(p_[1],p_[0],RC)-FO(Pp[1],Pp[0],RC)):p_=0;Jy.rotation=p_;kU=ib.lastInterval||Jy;p_=Jy.timeStamp-
kU.timeStamp;Jy.eventType!=8&&(p_>25||kU.velocity===K)?(kn=kU.deltaX-Jy.deltaX,kU=kU.deltaY-Jy.deltaY,zY=kn/p_||0,Sq=kU/p_||0,p_=zY,Pp=Sq,zY=C_(zY)>C_(Sq)?zY:Sq,kn=Cy(kn,kU),ib.lastInterval=Jy):(zY=kU.velocity,p_=kU.velocityX,Pp=kU.velocityY,kn=kU.direction);Jy.velocity=zY;Jy.velocityX=p_;Jy.velocityY=Pp;Jy.direction=kn;ib=kN.element;a:{for(p_=Jy.srcEvent.target;p_;){if(p_==ib){p_=!0;break a}p_=p_.parentNode}p_=!1}p_&&(ib=Jy.srcEvent.target);Jy.target=ib;kN.emit("hammer.input",Jy);kN.recognize(Jy);
kN.session.prevInput=Jy}
function Y(kN){for(var ib=[],Jy=0;Jy<kN.pointers.length;Jy++)ib[Jy]={clientX:NZ(kN.pointers[Jy].clientX),clientY:NZ(kN.pointers[Jy].clientY)};return{timeStamp:qZ(),pointers:ib,center:Uy(ib),deltaX:kN.deltaX,deltaY:kN.deltaY}}
function Uy(kN){var ib=kN.length;if(ib===1)return{x:NZ(kN[0].clientX),y:NZ(kN[0].clientY)};for(var Jy=0,p_=0,Pp=0;Pp<ib;Pp++)Jy+=kN[Pp].clientX,p_+=kN[Pp].clientY;return{x:NZ(Jy/ib),y:NZ(p_/ib)}}
function Cy(kN,ib){return kN===ib?1:C_(kN)>=C_(ib)?kN>0?2:4:ib>0?8:16}
function sy(kN,ib,Jy){Jy||(Jy=mD);var p_=ib[Jy[0]]-kN[Jy[0]];kN=ib[Jy[1]]-kN[Jy[1]];return Math.sqrt(p_*p_+kN*kN)}
function FO(kN,ib,Jy){Jy||(Jy=mD);return Math.atan2(ib[Jy[1]]-kN[Jy[1]],ib[Jy[0]]-kN[Jy[0]])*180/Math.PI}
function ub(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;Q.apply(this,arguments)}
function g8(){this.evEl=wX;this.evWin=AR;Q.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function mm(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};Q.apply(this,arguments)}
function QZ(){Q.apply(this,arguments);var kN=y(this.handler,this);this.touch=new mm(this.manager,kN);this.mouse=new ub(this.manager,kN)}
function Bz(kN,ib){this.manager=kN;this.set(ib)}
function dt(kN){if(kN.indexOf("none")>-1)return"none";var ib=kN.indexOf("pan-x")>-1,Jy=kN.indexOf("pan-y")>-1;return ib&&Jy?"pan-x pan-y":ib||Jy?ib?"pan-x":"pan-y":kN.indexOf("manipulation")>-1?"manipulation":"auto"}
function TK(kN){this.id=qv++;this.manager=null;this.options=u(kN||{},this.defaults);kN=this.options.enable;this.options.enable=kN===K?!0:kN;this.state=1;this.simultaneous={};this.requireFail=[]}
function sG(kN){return kN==16?"down":kN==8?"up":kN==2?"left":kN==4?"right":""}
function f_(kN,ib){return(ib=ib.manager)?ib.get(kN):kN}
function Mv(){TK.apply(this,arguments)}
function nd(){Mv.apply(this,arguments);this.pY=this.pX=null}
function $U(){Mv.apply(this,arguments)}
function MW(){TK.apply(this,arguments);this._input=this._timer=null}
function ZL(){Mv.apply(this,arguments)}
function uF(){Mv.apply(this,arguments)}
function rt(){TK.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function xQ(kN,ib){ib=ib||{};var Jy=ib.recognizers;ib.recognizers=Jy===K?xQ.defaults.preset:Jy;return new AQ(kN,ib)}
function AQ(kN,ib){ib=ib||{};this.options=u(ib,xQ.defaults);this.options.inputTarget=this.options.inputTarget||kN;this.handlers={};this.session={};this.recognizers=[];this.element=kN;this.input=v(this);this.touchAction=new Bz(this,this.options.touchAction);D3(this,!0);B(ib.recognizers,function(Jy){var p_=this.add(new Jy[0](Jy[1]));Jy[2]&&p_.recognizeWith(Jy[2]);Jy[3]&&p_.requireFailure(Jy[2])},this)}
function D3(kN,ib){var Jy=kN.element;B(kN.options.cssProps,function(p_,Pp){Jy.style[r(Jy.style,Pp)]=ib?p_:""})}
function YQ(kN,ib){var Jy=b.createEvent("Event");Jy.initEvent(kN,!0,!0);Jy.gesture=ib;ib.target.dispatchEvent(Jy)}
var F5=" webkit moz MS ms o".split(" "),TY=b.createElement("div"),NZ=Math.round,C_=Math.abs,qZ=Date.now,qv=1,cz=/mobile|tablet|ip(ad|hone|od)|android/i,OG="ontouchstart"in l,Sy=r(l,"PointerEvent")!==K,$m=OG&&cz.test(navigator.userAgent),mD=["x","y"],RC=["clientX","clientY"];Q.prototype={handler:function(){},
destroy:function(){this.evEl&&z(this.element,this.evEl,this.domHandler);this.evTarget&&z(this.target,this.evTarget,this.domHandler);this.evWin&&z(l,this.evWin,this.domHandler)}};
var IC={mousedown:1,mousemove:2,mouseup:4};e(ub,Q,{handler:function(kN){var ib=IC[kN.type];ib&1&&kN.button===0&&(this.pressed=!0);ib&2&&kN.which!==1&&(ib=4);this.pressed&&this.allow&&(ib&4&&(this.pressed=!1),this.callback(this.manager,ib,{pointers:[kN],changedPointers:[kN],pointerType:"mouse",srcEvent:kN}))}});
var R$={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},nW={2:"touch",3:"pen",4:"mouse",5:"kinect"},wX="pointerdown",AR="pointermove pointerup pointercancel";l.MSPointerEvent&&(wX="MSPointerDown",AR="MSPointerMove MSPointerUp MSPointerCancel");e(g8,Q,{handler:function(kN){var ib=this.store,Jy=!1,p_=kN.type.toLowerCase().replace("ms","");p_=R$[p_];var Pp=nW[kN.pointerType]||kN.pointerType;p_&1&&(kN.button===0||Pp=="touch")?ib.push(kN):p_&12&&(Jy=!0);var kn=W(ib,kN.pointerId,"pointerId");
kn<0||(ib[kn]=kN,this.callback(this.manager,p_,{pointers:ib,changedPointers:[kN],pointerType:Pp,srcEvent:kN}),Jy&&ib.splice(kn,1))}});
var k3={touchstart:1,touchmove:2,touchend:4,touchcancel:8};e(mm,Q,{handler:function(kN){var ib=k3[kN.type];var Jy=Array.prototype.slice.call(kN.touches,0);var p_=this.targetIds;if(ib&3&&Jy.length===1)p_[Jy[0].identifier]=!0,p_=[Jy,Jy];else{var Pp,kn=Array.prototype.slice.call(kN.targetTouches,0),kU=Array.prototype.slice.call(kN.changedTouches,0),zY=[];if(ib===1)for(Jy=0,Pp=kn.length;Jy<Pp;Jy++)p_[kn[Jy].identifier]=!0;Jy=0;for(Pp=kU.length;Jy<Pp;Jy++)p_[kU[Jy].identifier]&&zY.push(kU[Jy]),ib&12&&
delete p_[kU[Jy].identifier];p_=zY.length?[G(kn.concat(zY),"identifier",!0),zY]:void 0}p_&&this.callback(this.manager,ib,{pointers:p_[0],changedPointers:p_[1],pointerType:"touch",srcEvent:kN})}});
e(QZ,Q,{handler:function(kN,ib,Jy){var p_=Jy.pointerType=="mouse";if(Jy.pointerType=="touch")this.mouse.allow=!1;else if(p_&&!this.mouse.allow)return;ib&12&&(this.mouse.allow=!0);this.callback(kN,ib,Jy)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var KJ=r(TY.style,"touchAction"),Yr=KJ!==K;Bz.prototype={set:function(kN){kN=="compute"&&(kN=this.compute());Yr&&(this.manager.element.style[KJ]=kN);this.actions=kN.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var kN=[];B(this.manager.recognizers,function(ib){V(ib.options.enable,[ib])&&(kN=kN.concat(ib.getTouchAction()))});
return dt(kN.join(" "))},
preventDefaults:function(kN){if(!Yr){var ib=kN.srcEvent;kN=kN.offsetDirection;if(this.manager.session.prevented)ib.preventDefault();else{var Jy=this.actions,p_=Jy.indexOf("none")>-1,Pp=Jy.indexOf("pan-y")>-1;Jy=Jy.indexOf("pan-x")>-1;if(p_||Pp&&Jy||Pp&&kN&6||Jy&&kN&24)return this.preventSrc(ib)}}},
preventSrc:function(kN){this.manager.session.prevented=!0;kN.preventDefault()}};
TK.prototype={defaults:{},set:function(kN){q(this.options,kN);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(kN){if(d(kN,"recognizeWith",this))return this;var ib=this.simultaneous;kN=f_(kN,this);ib[kN.id]||(ib[kN.id]=kN,kN.recognizeWith(this));return this},
dropRecognizeWith:function(kN){if(d(kN,"dropRecognizeWith",this))return this;kN=f_(kN,this);delete this.simultaneous[kN.id];return this},
requireFailure:function(kN){if(d(kN,"requireFailure",this))return this;var ib=this.requireFail;kN=f_(kN,this);W(ib,kN)===-1&&(ib.push(kN),kN.requireFailure(this));return this},
dropRequireFailure:function(kN){if(d(kN,"dropRequireFailure",this))return this;kN=f_(kN,this);kN=W(this.requireFail,kN);kN>-1&&this.requireFail.splice(kN,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(kN){return!!this.simultaneous[kN.id]},
emit:function(kN){function ib(Pp){Jy.manager.emit(Jy.options.event+(Pp?p_&16?"cancel":p_&8?"end":p_&4?"move":p_&2?"start":"":""),kN)}
var Jy=this,p_=this.state;p_<8&&ib(!0);ib();p_>=8&&ib(!0)},
tryEmit:function(kN){if(this.canEmit())return this.emit(kN);this.state=32},
canEmit:function(){for(var kN=0;kN<this.requireFail.length;kN++)if(!(this.requireFail[kN].state&33))return!1;return!0},
recognize:function(kN){kN=q({},kN);V(this.options.enable,[this,kN])?(this.state&56&&(this.state=1),this.state=this.process(kN),this.state&30&&this.tryEmit(kN)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
e(Mv,TK,{defaults:{pointers:1},attrTest:function(kN){var ib=this.options.pointers;return ib===0||kN.pointers.length===ib},
process:function(kN){var ib=this.state,Jy=kN.eventType,p_=ib&6;kN=this.attrTest(kN);return p_&&(Jy&8||!kN)?ib|16:p_||kN?Jy&4?ib|8:ib&2?ib|4:2:32}});
e(nd,Mv,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var kN=this.options.direction;if(kN===30)return["none"];var ib=[];kN&6&&ib.push("pan-y");kN&24&&ib.push("pan-x");return ib},
directionTest:function(kN){var ib=this.options,Jy=!0,p_=kN.distance,Pp=kN.direction,kn=kN.deltaX,kU=kN.deltaY;Pp&ib.direction||(ib.direction&6?(Pp=kn===0?1:kn<0?2:4,Jy=kn!=this.pX,p_=Math.abs(kN.deltaX)):(Pp=kU===0?1:kU<0?8:16,Jy=kU!=this.pY,p_=Math.abs(kN.deltaY)));kN.direction=Pp;return Jy&&p_>ib.threshold&&Pp&ib.direction},
attrTest:function(kN){return Mv.prototype.attrTest.call(this,kN)&&(this.state&2||!(this.state&2)&&this.directionTest(kN))},
emit:function(kN){this.pX=kN.deltaX;this.pY=kN.deltaY;var ib=sG(kN.direction);ib&&this.manager.emit(this.options.event+ib,kN);this._super.emit.call(this,kN)}});
e($U,Mv,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(kN){return this._super.attrTest.call(this,kN)&&(Math.abs(kN.scale-1)>this.options.threshold||this.state&2)},
emit:function(kN){this._super.emit.call(this,kN);kN.scale!==1&&this.manager.emit(this.options.event+(kN.scale<1?"in":"out"),kN)}});
e(MW,TK,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(kN){var ib=this.options,Jy=kN.pointers.length===ib.pointers,p_=kN.distance<ib.threshold,Pp=kN.deltaTime>ib.time;this._input=kN;if(!p_||!Jy||kN.eventType&12&&!Pp)this.reset();else if(kN.eventType&1)this.reset(),this._timer=w(function(){this.state=8;this.tryEmit()},ib.time,this);
else if(kN.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(kN){this.state===8&&(kN&&kN.eventType&4?this.manager.emit(this.options.event+"up",kN):(this._input.timeStamp=qZ(),this.manager.emit(this.options.event,this._input)))}});
e(ZL,Mv,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(kN){return this._super.attrTest.call(this,kN)&&(Math.abs(kN.rotation)>this.options.threshold||this.state&2)}});
e(uF,Mv,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return nd.prototype.getTouchAction.call(this)},
attrTest:function(kN){var ib=this.options.direction;if(ib&30)var Jy=kN.velocity;else ib&6?Jy=kN.velocityX:ib&24&&(Jy=kN.velocityY);return this._super.attrTest.call(this,kN)&&ib&kN.direction&&C_(Jy)>this.options.velocity&&kN.eventType&4},
emit:function(kN){var ib=sG(kN.direction);ib&&this.manager.emit(this.options.event+ib,kN);this.manager.emit(this.options.event,kN)}});
e(rt,TK,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(kN){var ib=this.options,Jy=kN.pointers.length===ib.pointers,p_=kN.distance<ib.threshold,Pp=kN.deltaTime<ib.time;this.reset();if(kN.eventType&1&&this.count===0)return this.failTimeout();if(p_&&Pp&&Jy){if(kN.eventType!=4)return this.failTimeout();Jy=this.pTime?kN.timeStamp-this.pTime<ib.interval:!0;p_=!this.pCenter||sy(this.pCenter,kN.center)<ib.posThreshold;this.pTime=kN.timeStamp;this.pCenter=kN.center;p_&&Jy?this.count+=1:this.count=1;this._input=kN;if(this.count%ib.taps===0)return this.hasRequireFailures()?
(this._timer=w(function(){this.state=8;this.tryEmit()},ib.interval,this),2):8}return 32},
failTimeout:function(){this._timer=w(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))}});
xQ.VERSION="2.0.2";xQ.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[ZL,{enable:!1}],[$U,{enable:!1},["rotate"]],[uF,{direction:6}],[nd,{direction:6},["swipe"]],[rt],[rt,{event:"doubletap",taps:2},["tap"]],[MW]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};AQ.prototype={set:function(kN){q(this.options,kN);return this},
stop:function(kN){this.session.stopped=kN?2:1},
recognize:function(kN){var ib=this.session;if(!ib.stopped){this.touchAction.preventDefaults(kN);var Jy=this.recognizers,p_=ib.curRecognizer;if(!p_||p_&&p_.state&8)p_=ib.curRecognizer=null;for(var Pp=0,kn=Jy.length;Pp<kn;Pp++){var kU=Jy[Pp];ib.stopped===2||p_&&kU!=p_&&!kU.canRecognizeWith(p_)?kU.reset():kU.recognize(kN);!p_&&kU.state&14&&(p_=ib.curRecognizer=kU)}}},
get:function(kN){if(kN instanceof TK)return kN;for(var ib=this.recognizers,Jy=0;Jy<ib.length;Jy++)if(ib[Jy].options.event==kN)return ib[Jy];return null},
add:function(kN){if(d(kN,"add",this))return this;var ib=this.get(kN.options.event);ib&&this.remove(ib);this.recognizers.push(kN);kN.manager=this;this.touchAction.update();return kN},
remove:function(kN){if(d(kN,"remove",this))return this;var ib=this.recognizers;kN=this.get(kN);ib.splice(W(ib,kN),1);this.touchAction.update();return this},
on:function(kN,ib){var Jy=this.handlers;B(t(kN),function(p_){Jy[p_]=Jy[p_]||[];Jy[p_].push(ib)});
return this},
off:function(kN,ib){var Jy=this.handlers;B(t(kN),function(p_){ib?Jy[p_].splice(W(Jy[p_],ib),1):delete Jy[p_]});
return this},
emit:function(kN,ib){this.options.domEvents&&YQ(kN,ib);var Jy=this.handlers[kN]&&this.handlers[kN].slice();if(Jy&&Jy.length){ib.type=kN;ib.preventDefault=function(){ib.srcEvent.preventDefault()};
kN=0;for(var p_=Jy.length;kN<p_;kN++)Jy[kN](ib)}},
destroy:function(){this.element&&D3(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
q(xQ,{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:AQ,Input:Q,TouchAction:Bz,Recognizer:TK,AttrRecognizer:Mv,Tap:rt,Pan:nd,Swipe:uF,Pinch:$U,Rotate:ZL,Press:MW,on:p,off:z,each:B,merge:u,extend:q,inherit:e,bindFn:y,prefixed:r});
l[U]=xQ})(window,document,"Hammer");
return window.Hammer}.call({});
H.DOCUMENT=X;X[CpC]=H}return X[CpC]};/*

 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 dVD=function(X,H){if(X.length!==H.length)return!1;for(var l=0;l<X.length;++l)if(X[l]!==H[l])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var hED=_.C(["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"]),Fi9=hED.next();!Fi9.done;Fi9=hED.next()){var BkG=Fi9.value,qJQ=document.createElement("link");qJQ.rel="stylesheet";qJQ.href=BkG;document.head.appendChild(qJQ)};var g1L,aNh,iuK,t1l,GjL,WxO,xQy,DQz;g1L={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};aNh={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:"*"};iuK={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};t1l=/[a-z0-9*]/;GjL=/U\+/;WxO=/^arrow/;xQy=/^space(bar)?/;DQz=/^escape$/;_.Yw={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(X,H){this._imperativeKeyBindings[X]=H;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(X,H){H=Ou8(H);for(var l=0;l<H.length;++l)if(Zuy(H[l],X))return!0;return!1},
_collectKeyBindings:function(){var X=this.behaviors.map(function(H){return H.keyBindings});
X.indexOf(this.keyBindings)===-1&&X.push(this.keyBindings);return X},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(l){for(var b in l)this._addKeyBinding(b,l[b])},this);
for(var X in this._imperativeKeyBindings)this._addKeyBinding(X,this._imperativeKeyBindings[X]);for(var H in this._keyBindings)this._keyBindings[H].sort(function(l,b){l=l[0].hasModifiers;return l===b[0].hasModifiers?0:l?-1:1})},
_addKeyBinding:function(X,H){Ou8(X).forEach(function(l){this._keyBindings[l.event]=this._keyBindings[l.event]||[];this._keyBindings[l.event].push([l,H])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(X){var H=this._onKeyBindingEvent.bind(this,this._keyBindings[X]);this._boundKeyHandlers.push([this.keyEventTarget,X,H]);this.keyEventTarget.addEventListener(X,H)},this)},
_unlistenKeyEventListeners:function(){for(var X,H,l;this._boundKeyHandlers.length;)X=this._boundKeyHandlers.pop(),H=X[0],l=X[1],X=X[2],H.removeEventListener(l,X)},
_onKeyBindingEvent:function(X,H){this.stopKeyboardEventPropagation&&H.stopPropagation();if(!H.defaultPrevented)for(var l=0;l<X.length;l++){var b=X[l][0],U=X[l][1];if(Zuy(b,H)&&(this._triggerKeyHandler(b,U,H),H.defaultPrevented))break}},
_triggerKeyHandler:function(X,H,l){var b=Object.create(X);b.keyboardEvent=l;X=new CustomEvent(X.event,{detail:b,cancelable:!0});this[H].call(this,X);X.defaultPrevented&&l.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
*/
_.wT({is:"iron-a11y-keys",_template:null,behaviors:[_.Yw],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(X){this.keyEventTarget=X},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(X){this.fire("keys-pressed",X.detail,{})}});_.Ie={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(X){this._setFocused(X.type==="focus")},
_disabledChanged:function(X){this.setAttribute("aria-disabled",X?"true":"false");this.style.pointerEvents=X?"none":"";X?(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 As={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(X){this._detectKeyboardFocus(X);X||this._setPressed(!1)},
_detectKeyboardFocus:function(X){this._setReceivedFocusFromKeyboard(!this.pointerDown&&X)},
_userActivate:function(X){this.active!==X&&(this.active=X,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(X){X=X.detail.keyboardEvent;var H=_.Uc(X).localTarget;this.isLightDescendant(H)||(X.preventDefault(),X.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(X){X=_.Uc(X.detail.keyboardEvent).localTarget;this.isLightDescendant(X)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(X,H){H&&H!=X&&this.hasAttribute(H)&&this.removeAttribute(H)},
_activeChanged:function(X){this.toggles?this.setAttribute(this.ariaActiveAttribute,X?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},sJH=[_.Yw,
As];_.XW={IronButtonState:sJH,IronButtonStateImpl:As};_.H9={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.lc=function(X){_.lc[" "](X);this.type=X&&X.type||"default";this.key=X&&X.key;X&&"value"in X&&(this.value=X.value)};
_.lc.prototype.byKey=function(X){this.key=X;return this.value};
_.ja.Object.defineProperties(_.lc.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var X=this.type,H=this.key;if(X&&H)return oS[X]&&oS[X][H]},
set:function(X){var H=this.type,l=this.key;H&&l&&(H=oS[H]=oS[H]||{},X==null?delete H[l]:H[l]=X)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var X=oS[this.type];return X?Object.keys(X).map(function(H){return oS[this.type][H]},this):[]}}});
_.lc[" "]=function(){};
var oS={};_.wT({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(X,H,l){X=new _.lc({type:X,key:H});l!==void 0&&l!==X.value?X.value=l:this.value!==X.value&&(this.value=X.value);return X},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(X){X&&(this.value=this)},
byKey:function(X){return(new _.lc({type:this.type,key:X})).value}});var MYC;MYC=null;_.bc={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){MYC=new _.lc({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return MYC&&MYC.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(X){this.invalid=X===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(X);return!this.invalid},
_getValidity:function(X){return this.hasValidator()?this._validator.validate(X):!0}};var ukH={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"}},eEv=[_.H9,
_.bc,ukH];_.wT({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 _.lc({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(X){return this.name+":"+X},this)},
applyIcon:function(X,H){this.removeIcon(X);if(H=this._cloneIcon(H,this.rtlMirroring&&this._targetIsRTL(X))){var l=_.Uc(X.root||X);l.insertBefore(H,l.childNodes[0]);return X._svgIcon=H}return null},
removeIcon:function(X){X._svgIcon&&(_.Uc(X.root||X).removeChild(X._svgIcon),X._svgIcon=null)},
_targetIsRTL:function(X){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(X&&X.nodeType!==Node.ELEMENT_NODE&&(X=X.host),this.__targetIsRTL=X&&window.getComputedStyle(X).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 X=Object.create(null);_.Uc(this).querySelectorAll("[id]").forEach(function(H){X[H.id]=H});
return X},
_cloneIcon:function(X,H){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[X],this.size,H)},
_prepareSvgClone:function(X,H,l){if(X){X=X.cloneNode(!0);var b=document.createElementNS("http://www.w3.org/2000/svg","svg");H=X.getAttribute("viewBox")||"0 0 "+H+" "+H;var U="pointer-events: none; display: block; width: 100%; height: 100%;";l&&X.hasAttribute("mirror-in-rtl")&&(U+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");b.setAttribute("viewBox",H);b.setAttribute("preserveAspectRatio","xMidYMid meet");b.setAttribute("focusable","false");b.style&&(b.style.cssText=
U);b.appendChild(X).removeAttribute("id");return b}return null}});var yvD=function(X){this.multi=!1;this.selection=[];this.selectCallback=X};
_.R=yvD.prototype;_.R.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.R.clear=function(X){this.selection.slice().forEach(function(H){(!X||X.indexOf(H)<0)&&this.setItemSelected(H,!1)},this)};
_.R.isSelected=function(X){return this.selection.indexOf(X)>=0};
_.R.setItemSelected=function(X,H){if(X!=null&&H!==this.isSelected(X)){if(H)this.selection.push(X);else{var l=this.selection.indexOf(X);l>=0&&this.selection.splice(l,1)}this.selectCallback&&this.selectCallback(X,H)}};
_.R.select=function(X){this.multi?this.toggle(X):this.get()!==X&&(this.setItemSelected(this.get(),!1),this.setItemSelected(X,!0))};
_.R.toggle=function(X){this.setItemSelected(X,!this.isSelected(X))};_.kD={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 yvD(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Uc(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(X){return this.items?this.items.indexOf(X):-1},
select:function(X){this.selected=X},
selectPrevious:function(){var X=this.items.length,H=X-1;this.selected!==void 0&&(H=(Number(this._valueToIndex(this.selected))-1+X)%X);this.selected=this._indexToValue(H)},
selectNext:function(){var X=0;this.selected!==void 0&&(X=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(X)},
selectIndex:function(X){this.select(this._indexToValue(X))},
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(X){this.listen(this,X,"_activateHandler")},
_removeListener:function(X){this.unlisten(this,X,"_activateHandler")},
_activateEventChanged:function(X,H){this._removeListener(H);this._addListener(X)},
_updateItems:function(){var X=_.Uc(this).queryDistributedElements(this.selectable||"*");X=Array.prototype.filter.call(X,this._bindFilterItem);this._setItems(X)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var X=this._valueToItem(this.selected);X?this._selection.select(X):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(X){return!this._excludedLocalNames[X.localName]},
_valueToItem:function(X){return X==null?null:this.items[this._valueToIndex(X)]},
_valueToIndex:function(X){if(this.attrForSelected)for(var H=0,l;l=this.items[H];H++){if(this._valueForItem(l)==X)return H}else return Number(X)},
_indexToValue:function(X){if(this.attrForSelected){if(X=this.items[X])return this._valueForItem(X)}else return X},
_valueForItem:function(X){if(!X)return null;if(!this.attrForSelected)return X=this.indexOf(X),X===-1?null:X;var H=X[UL(this.attrForSelected)];return H!=void 0?H:X.getAttribute(this.attrForSelected)},
_applySelection:function(X,H){this.selectedClass&&this.toggleClass(this.selectedClass,H,X);this.selectedAttribute&&this.toggleAttribute.call(X,this.selectedAttribute,H);this._selectionChange();this.fire("iron-"+(H?"select":"deselect"),{item:X})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(X){return _.Uc(X).observeNodes(function(H){this._updateItems();this._updateSelected();this.fire("iron-items-changed",H,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(X){X=X.target;for(var H=this.items;X&&X!=this;){var l=H.indexOf(X);if(l>=0){H=this._indexToValue(l);this._itemActivate(H,X);break}X=X.parentNode}},
_itemActivate:function(X,H){this.fire("iron-activate",{selected:X,item:H},{cancelable:!0}).defaultPrevented||this.select(X)}};var VYF={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(X){this.multi?this._toggleSelected(X):this.selected=X},
multiChanged:function(X){this._selection.multi=X;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(X){return this._indexToValue(this.indexOf(X))},this).filter(function(X){return X!=null},this)):_.kD._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(X){X=X||[];X=(this._valuesToItems(X)||[]).filter(function(l){return l!==null&&l!==void 0});
this._selection.clear(X);for(var H=0;H<X.length;H++)this._selection.setItemSelected(X[H],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var X=this._selection.get();this.multi?(this._setSelectedItems(X),this._setSelectedItem(X.length?X[0]:null)):X!==null&&X!==void 0?(this._setSelectedItems([X]),this._setSelectedItem(X)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(X){var H=this.selectedValues.indexOf(X);H<0?this.push("selectedValues",X):this.splice("selectedValues",H,1)},
_valuesToItems:function(X){return X==null?null:X.map(function(H){return this._valueToItem(H)},this)}},Pp6=[_.kD,
VYF];var fFv;
_.U7={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(X){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var H=this._valueToItem(X);H&&H.hasAttribute("disabled")||(this._setFocusedItem(H),VYF.select.apply(this,arguments))},
_resetTabindices:function(){var X=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(H){H.setAttribute("tabindex",H===X?"0":"-1");H.setAttribute("aria-selected",this._selection.isSelected(H))},this)},
_updateMultiselectable:function(X){X?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(X){if(this._MODIFIER_KEYS.indexOf(X.key)===-1){this.cancelDebouncer("_clearSearchText");var H=this._searchText||"";H+=(X.key&&X.key.length==1?X.key:String.fromCharCode(X.keyCode)).toLocaleLowerCase();X=H.length;for(var l=0,b;b=this.items[l];l++)if(!b.hasAttribute("disabled")){var U=this.attrForItemTitle||"textContent";U=(b[U]||b.getAttribute(U)||"").trim();if(!(U.length<X)&&U.slice(0,X).toLocaleLowerCase()==H){this._setFocusedItem(b);break}}this._searchText=H;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var X=this.items.length,H=Number(this.indexOf(this.focusedItem)),l=1;l<X+1;l++){var b=this.items[(H-l+X)%X];if(!b.hasAttribute("disabled")){var U=_.Uc(b).getOwnerRoot()||document;this._setFocusedItem(b);if(_.Uc(U).activeElement==b)break}}},
_focusNext:function(){for(var X=this.items.length,H=Number(this.indexOf(this.focusedItem)),l=1;l<X+1;l++){var b=this.items[(H+l)%X];if(!b.hasAttribute("disabled")){var U=_.Uc(b).getOwnerRoot()||document;this._setFocusedItem(b);if(_.Uc(U).activeElement==b)break}}},
_applySelection:function(X,H){H?X.setAttribute("aria-selected","true"):X.setAttribute("aria-selected","false");_.kD._applySelection.apply(this,arguments)},
_focusedItemChanged:function(X,H){H&&H.setAttribute("tabindex","-1");!X||X.hasAttribute("disabled")||this.disabled||(X.setAttribute("tabindex","0"),X.focus())},
_onIronItemsChanged:function(X){X.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var X=this.getAttribute("tabindex");_.U7._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",X);_.U7._shiftTabPressed=!1},1)},
_onFocus:function(X){!_.U7._shiftTabPressed&&(X=_.Uc(X).rootTarget,X===this||typeof X.tabIndex==="undefined"||this.isLightDescendant(X))&&(this._defaultFocusAsync=this.async(function(){var H=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);H?this._setFocusedItem(H):this.items[0]&&this._focusNext()}))},
_onUpKey:function(X){this._focusPrevious();X.detail.keyboardEvent.preventDefault()},
_onDownKey:function(X){this._focusNext();X.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var X=this.focusedItem;X&&X.blur()},
_onKeydown:function(X){this.keyboardEventMatchesKeys(X,"up down esc")||this._focusWithKeyboardEvent(X);X.stopPropagation()},
_activateHandler:function(X){_.kD._activateHandler.call(this,X);X.stopPropagation()},
_disabledChanged:function(X){X?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};fFv=[Pp6,_.Yw,_.U7];_.p8G={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(X){this.focusedItem&&(this.focusedItem.click(),X.detail.keyboardEvent.preventDefault())},
_onDownKey:function(X){this.focusedItem&&(this.focusedItem.click(),X.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(X){return X.ctrlKey||X.shiftKey||X.altKey||X.metaKey},
_onLeftKey:function(X){this._isSpecialKey(X.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),X.detail.keyboardEvent.preventDefault())},
_onRightKey:function(X){this._isSpecialKey(X.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),X.detail.keyboardEvent.preventDefault())},
_onKeydown:function(X){this.keyboardEventMatchesKeys(X,"up down left right esc")||this._focusWithKeyboardEvent(X)}};
_.SJz=[fFv,_.p8G];var zEY;zEY=new Set;_.$s={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):(zEY.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(X){this.resizerShouldNotify(X)&&this._notifyDescendant(X)},this),this._fireResize())},
assignParentResizable:function(X){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=X)&&X._interestedResizables.indexOf(this)===-1&&(X._interestedResizables.push(this),X._subscribeIronResize(this))},
stopResizeNotificationsFor:function(X){var H=this._interestedResizables.indexOf(X);H>-1&&(this._interestedResizables.splice(H,1),this._unsubscribeIronResize(X))},
_subscribeIronResize:function(X){X.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(X){X.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(X){this._notifyingDescendant?X.stopPropagation():EL||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(X){var H=_.Uc(X).rootTarget;H!==this&&(H.assignParentResizable(this),this._notifyDescendant(H),X.stopPropagation())},
_parentResizableChanged:function(X){X&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(X){this.isAttached&&(this._notifyingDescendant=!0,X.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var X=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function l(){document.removeEventListener("readystatechange",l);X()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(H){H!==this&&H._findParent()},this):(zEY.forEach(function(H){H!==this&&H._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?zEY.delete(this):zEY.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
*/
_.ni_={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(X,H){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);H&&(X==="document"?this.scrollTarget=this._doc:typeof X==="string"?this.scrollTarget=(H=this.domHost)&&H.$?H.$[X]:_.Uc(this.ownerDocument).querySelector("#"+X):this._isValidScrollTarget()&&(this._oldScrollTarget=X,this._toggleScrollListener(this._shouldHaveListener,X)))},
_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(X){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,X):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
X)},set _scrollLeft(X){this.scrollTarget===this._doc?window.scrollTo(X,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=X)},scroll:function(X,H){if(typeof X==="object"){var l=X.left;H=X.top}else l=X;l=l||0;H=H||0;this.scrollTarget===this._doc?window.scrollTo(l,H):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=l,this.scrollTarget.scrollTop=H)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(X,H){H=H===this._doc?window:H;X?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),H.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(H.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(X){this._shouldHaveListener=X;this._toggleScrollListener(X,this.scrollTarget)}};_.wT({is:"iron-selector",_template:null,behaviors:[Pp6]});var RS={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(X){if(X.timing)for(var H in X.timing)this.animationTiming[H]=X.timing[H];return this.animationTiming},
setPrefixedProperty:function(X,H,l){for(var b={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[H],U,K=0;U=b[K];K++)X.style[U]=l;X.style[H]=l},
complete:function(){}};_.wT({is:"fade-in-animation",_template:null,behaviors:[RS],configure:function(X){return this._effect=new KeyframeEffect(X.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(X))}});_.wT({is:"fade-out-animation",_template:null,behaviors:[RS],configure:function(X){return this._effect=new KeyframeEffect(X.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(X))}});var kot=[{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(X,H){for(var l in H)X[l]=H[l]},
_cloneConfig:function(X){var H={isClone:!0};this._copyProperties(H,X);return H},
_getAnimationConfigRecursive:function(X,H,l){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 b=X?this.animationConfig[X]:this.animationConfig;Array.isArray(b)||(b=[b]);if(b)for(var U,K=0;U=b[K];K++)if(U.animatable)U.animatable._getAnimationConfigRecursive(U.type||X,H,l);else if(U.id){var w=H[U.id];
w?(w.isClone||(H[U.id]=this._cloneConfig(w),w=H[U.id]),this._copyProperties(w,U)):H[U.id]=U}else l.push(U)}},
getAnimationConfig:function(X){var H={},l=[];this._getAnimationConfigRecursive(X,H,l);for(var b in H)l.push(H[b]);return l}},
{_configureAnimations:function(X){var H=[],l=[];if(X.length>0)for(var b,U=0;b=X[U];U++){var K=document.createElement(b.name);if(K.isNeonAnimation){var w=null;K.configure||(K.configure=function(){return null});
w=K.configure(b);l.push({result:w,config:b})}else console.warn(this.is+":",b.name,"not found!")}for(X=0;X<l.length;X++){w=l[X].result;b=l[X].config;try{typeof w.cancel!="function"&&(w=document.timeline.play(w))}catch(d){w=null,console.warn("Couldnt play","(",b.name,").",d)}w&&H.push({neonAnimation:K,config:b,animation:w})}return H},
_shouldComplete:function(X){for(var H=!0,l=0;l<X.length;l++)if(X[l].animation.playState!="finished"){H=!1;break}return H},
_complete:function(X){for(var H=0;H<X.length;H++)X[H].neonAnimation.complete(X[H].config);for(H=0;H<X.length;H++)X[H].animation.cancel()},
playAnimation:function(X,H){var l=this.getAnimationConfig(X);if(l){this._active=this._active||{};this._active[X]&&(this._complete(this._active[X]),delete this._active[X]);var b=this._configureAnimations(l);if(b.length==0)this.fire("neon-animation-finish",H,{bubbles:!1});else for(this._active[X]=b,l=0;l<b.length;l++)b[l].animation.onfinish=function(){this._shouldComplete(b)&&(this._complete(b),delete this._active[X],this.fire("neon-animation-finish",H,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var X in this._active){var H=this._active[X],l;for(l in H)H[l].animation&&H[l].animation.cancel&&H[l].animation.cancel()}this._active={}}}];var eB=function(X,H){X=Error.call(this,X);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.arg=H;this.name=this.constructor.name;this.constructor=eB;this.__proto__=eB.prototype};
_.S(eB,Error);var xVQ=tJ(function(X){var H=function(){return X.apply(this,arguments)||this};
_.S(H,X);H.prototype._marshalArgs=function(l,b,U){b=X.prototype._marshalArgs.call(this,l,b,U);if(this._legacyUndefinedCheck&&b.length>1)for(U=0;U<b.length;U++)if(b[U]===void 0||l[U].wildcard&&b[U].base===void 0)throw l=l[U].name,new eB("Argument '"+l+"' is undefined.",l);return b};
H.prototype._addPropertyEffect=function(l,b,U){return X.prototype._addPropertyEffect.call(this,l,b,mQm(U,U&&U.info&&U.info.methodName))};
H._addTemplatePropertyEffect=function(l,b,U){return X._addTemplatePropertyEffect.call(this,l,b,mQm(U))};
return H}),DVv=_.wT.Class;
_.wT.Class=function(X,H){return DVv(X,function(l){return H?H(xVQ(l)):xVQ(l)})};
var tYQ=tJ(function(X){var H=xVQ(X);X=function(){return H.apply(this,arguments)||this};
_.S(X,H);_.ja.Object.defineProperties(X.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return X}),Wiz=GX.mixin;
GX.mixin=Wiz?function(X){return tYQ(Wiz(X))}:tYQ;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.C7=_.XW.IronButtonState;var ZzW=Wj;_.QuZ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var r8y=function(){return Math.random().toString(36).substring(7).split("").join(".")},jum="@@redux/INIT"+r8y(),Y$k="@@redux/REPLACE"+r8y();var INm=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Eiz=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var gi_="top right bottom left width height size weight".split(" "),GoC=typeof MutationObserver!=="undefined",aFY=Eiz&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,Z9D=function(){this.mutationEventsAdded_=this.JSC$12069_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=A8l(this.refresh.bind(this))},i9F=function(X,
H){var l=X.observers_;
H=l.indexOf(H);~H&&l.splice(H,1);!l.length&&X.JSC$12069_connected_&&Eiz&&X.JSC$12069_connected_&&(document.removeEventListener("transitionend",X.onTransitionEnd_),window.removeEventListener("resize",X.refresh),X.mutationsObserver_&&(X.mutationsObserver_.disconnect(),aFY&&(HTMLElement.prototype.attachShadow=aFY)),X.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",X.refresh),X.mutationsObserver_=null,X.mutationEventsAdded_=!1,X.JSC$12069_connected_=!1)};
Z9D.prototype.refresh=function(){vit(this)&&this.refresh()};
var vit=function(X){X=X.observers_.filter(function(H){return O99(H),H.activeObservations_.length>0});
X.forEach(function(H){return mVD(H)});
return X.length>0},QJG=function(X){if(Eiz&&!X.JSC$12069_connected_){document.addEventListener("transitionend",X.onTransitionEnd_);
window.addEventListener("resize",X.refresh);if(GoC){X.mutationsObserver_=new MutationObserver(X.refresh);var H={attributes:!0,childList:!0,characterData:!0,subtree:!0};X.mutationsObserver_.observe(document,H);aFY&&(function U(b){var K=b.shadowRoot;K&&(X.mutationsObserver_.observe(K,H),U(K));for(b=b.firstElementChild;b;)U(b),b=b.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var b=aFY.apply(this,_.Ab.apply(0,arguments));
X.mutationsObserver_.observe(b,H);return b})}else document.addEventListener("DOMSubtreeModified",X.refresh),X.mutationEventsAdded_=!0;
X.JSC$12069_connected_=!0}};
Z9D.prototype.onTransitionEnd_=function(X){var H=X.propertyName===void 0?"":X.propertyName;gi_.some(function(l){return!!~H.indexOf(l)})&&this.refresh()};
var TkG=null;var NkD=function(X,H){for(var l=_.C(Object.keys(H)),b=l.next();!b.done;b=l.next())b=b.value,Object.defineProperty(X,b,{value:H[b],enumerable:!1,writable:!1,configurable:!0})};var wM=function(X){var H;return(X==null?void 0:(H=X.ownerDocument)==null?void 0:H.defaultView)||globalThis};var cvH={x:0,y:0,width:0,height:0},jJz=typeof SVGGraphicsElement!=="undefined"?function(X){return X instanceof wM(X).SVGGraphicsElement}:function(X){return X instanceof wM(X).SVGElement&&typeof X.getBBox==="function"};var rvH=function(X){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=X};
rvH.prototype.isActive=function(){var X=this.target;if(Eiz)if(jJz(X)){var H=X.getBBox();H={x:0,y:0,width:H.width,height:H.height}}else{var l=X.clientWidth,b=X.clientHeight;if(l||b){var U=wM(X).getComputedStyle(X);H=Pf(U["padding-top"]);var K=Pf(U["padding-left"]),w=K+Pf(U["padding-right"]),d=H+Pf(U["padding-bottom"]),B=Pf(U.width),q=Pf(U.height);U.boxSizing==="border-box"&&(Math.round(B+w)!==l&&(B-=Xtl(U,"left","right")+w),Math.round(q+d)!==b&&(q-=Xtl(U,"top","bottom")+d));X!==wM(X).document.documentElement&&
(X=Math.round(B+w)-l,b=Math.round(q+d)-b,Math.abs(X)!==1&&(B-=X),Math.abs(b)!==1&&(q-=b));H={x:K,y:H,width:B,height:q}}else H=cvH}else H=cvH;this.contentRect_=H;return H.width!==this.broadcastWidth||H.height!==this.broadcastHeight};var Jvz=function(X,H){var l=H.x;var b=H.y;var U=H.width;H=H.height;var K=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);NkD(K,{x:l,y:b,width:U,height:H,top:b,right:l+U,bottom:H+b,left:l});NkD(this,{target:X,contentRect:K})};var Liq=function(X,H){var l=TkG;this.activeObservations_=[];this.observations_=new Map;if(typeof X!=="function")throw new TypeError("We");this.callback_=X;this.controller_=l;this.callbackCtx_=H};
Liq.prototype.observe=function(X){if(X===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(X instanceof wM(X).Element))throw new TypeError("Ye");var H=this.observations_;H.has(X)||(H.set(X,new rvH(X)),X=this.controller_,~X.observers_.indexOf(this)||X.observers_.push(this),X.JSC$12069_connected_||QJG(X),this.controller_.refresh())}};
Liq.prototype.unobserve=function(X){if(X===void 0)throw new TypeError("Xe");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(X instanceof wM(X).Element))throw new TypeError("Ye");var H=this.observations_;H.has(X)&&(H.delete(X),H.size||i9F(this.controller_,this))}};
Liq.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();i9F(this.controller_,this)};
var O99=function(X){X.activeObservations_.splice(0);X.observations_.forEach(function(H){H.isActive()&&X.activeObservations_.push(H)})},mVD=function(X){if(X.activeObservations_.length>0){var H=X.callbackCtx_,l=X.activeObservations_.map(function(b){var U=b.target,K=b.contentRect_;
b.broadcastWidth=K.width;b.broadcastHeight=K.height;return new Jvz(U,K)});
X.callback_.call(H,l,H);X.activeObservations_.splice(0)}};var dM=function(X){if(!(this instanceof dM))throw new TypeError("Ze");if(!arguments.length)throw new TypeError("Xe");TkG||(TkG=new Z9D);this.observer_=new Liq(X,this)};
dM.prototype.observe=function(X){this.observer_.observe(X)};
dM.prototype.unobserve=function(X){this.observer_.unobserve(X)};
dM.prototype.disconnect=function(){this.observer_.disconnect()};var jbN=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:dM;var Tw={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"},jB={"2D":0,WebGL:1,WebGL2:2};jB[jB["2D"]]="2D";jB[1]="WebGL";jB[2]="WebGL2";var ldK={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},oPZ={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},H5b={},USO={},$Sk={},tB=function(X){return fr("Node",X,"childNodes")},xE=function(X){return fr("Node",X,"parentNode")},Wf=function(X){return fr("Node",X,"parentElement")},O5y=function(X){return fr("Node",X,
"textContent")},HFh=function(X){return KTW(X,"getRootNode")()},SB=function(X){return X&&"host"in X?fr("ShadowRoot",X,"host"):null},zw=function(X){return X&&"shadowRoot"in X?fr("Element",X,"shadowRoot"):null};var aK=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
aK.prototype.getId=function(X){if(!X)return-1;var H,l;return(l=(H=this.nodeMetaMap.get(X)||null)==null?void 0:H.id)!=null?l:-1};
aK.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var YJY=function(X,H){var l=X.getId(H);X.idNodeMap.delete(l);H.childNodes&&H.childNodes.forEach(function(b){return YJY(X,b)})};
aK.prototype.has=function(X){return this.idNodeMap.has(X)};
aK.prototype.add=function(X,H){this.idNodeMap.set(H.id,X);this.nodeMetaMap.set(X,H)};
aK.prototype.replace=function(X,H){var l=this.idNodeMap.get(X)||null;l&&(l=this.nodeMetaMap.get(l))&&this.nodeMetaMap.set(H,l);this.idNodeMap.set(X,H)};
aK.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var sMN=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Mzy=/^(?:[a-z+]+:)?\/\//i,ual=/^www\..*/i,evy=/^(data:)([^,]*),(.*)/i;var PZO=1,ptN=RegExp("[^a-z0-9-_:]"),Ee,QMl,nPl=/^[^ \t\n\r\u000c]+/,zvN=/^[, \t\n\r\u000c]+/,tzy=new WeakMap;var rV,Qt=function(X){return rV?function(){var H=_.Ab.apply(0,arguments);try{return X.apply(null,_.LJ(H))}catch(l){if(!rV||rV(l)!==!0)throw l;}}:X};var hI=function(X){this.generateIdFn=X;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
hI.prototype.getId=function(X,H,l,b){l=l||IFG(this,X);X=b||Av9(this,X);b=l.get(H);b||(b=this.generateIdFn(),l.set(H,b),X.set(b,H));return b};
hI.prototype.getIds=function(X,H){var l=this,b=IFG(this,X),U=Av9(this,X);return H.map(function(K){return l.getId(X,K,b,U)})};
hI.prototype.reset=function(X){X?(this.iframeIdToRemoteIdMap.delete(X),this.iframeRemoteIdToIdMap.delete(X)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var IFG=function(X,H){var l=X.iframeIdToRemoteIdMap.get(H);l||(l=new Map,X.iframeIdToRemoteIdMap.set(H,l));return l},Av9=function(X,H){var l=X.iframeRemoteIdToIdMap.get(H);
l||(l=new Map,X.iframeRemoteIdToIdMap.set(H,l));return l};var TbW=function(X){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new hI(fdK);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=X.mutationCb;this.wrappedEmit=X.wrappedEmit;this.stylesheetManager=X.stylesheetManager;this.recordCrossOriginIframes=X.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new hI(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=X.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$12133_handleMessage.bind(this))},JJL=function(X,H){X.iframes.set(H,!0);
H.contentWindow&&X.crossOriginIframeMap.set(H.contentWindow,H)},HR8=function(X,H){X.loadListener=H},IKN=function(X,H,l){X.mutationCb({adds:[{parentId:X.mirror.getId(H),
nextId:null,node:l}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(X.recordCrossOriginIframes){var b;(b=H.contentWindow)==null||b.addEventListener("message",X.JSC$12133_handleMessage.bind(X))}var U;(U=X.loadListener)==null||U.call(X,H);H.contentDocument&&H.contentDocument.adoptedStyleSheets&&H.contentDocument.adoptedStyleSheets.length>0&&fKW(X.stylesheetManager,H.contentDocument.adoptedStyleSheets,X.mirror.getId(H.contentDocument))};
TbW.prototype.JSC$12133_handleMessage=function(X){if(X.data.type==="rrweb"&&X.origin===X.data.origin&&X.source){var H=this.crossOriginIframeMap.get(X.source);H&&(H=XCD(this,H,X.data.event))&&this.wrappedEmit(H,X.data.isCheckout)}};
var XCD=function(X,H,l){switch(l.type){case 2:X.crossOriginIframeMirror.reset(H);X.crossOriginIframeStyleMirror.reset(H);HjQ(X,l.data.node,H);var b=l.data.node.id;X.crossOriginIframeRootIdMap.set(H,b);lUt(X,l.data.node,b);return{timestamp:l.timestamp,type:3,data:{source:0,adds:[{parentId:X.mirror.getId(H),nextId:null,node:l.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return l;case 5:return FW(X,l.data.payload,H,["id","parentId","previousId","nextId"]),l;case 3:switch(l.data.source){case 0:return l.data.adds.forEach(function(U){FW(X,
U,H,["parentId","nextId","previousId"]);HjQ(X,U.node,H);var K=X.crossOriginIframeRootIdMap.get(H);K&&lUt(X,U.node,K)}),l.data.removes.forEach(function(U){FW(X,U,H,["parentId",
"id"])}),l.data.attributes.forEach(function(U){FW(X,U,H,["id"])}),l.data.texts.forEach(function(U){FW(X,U,H,["id"])}),l;
case 12:case 6:case 1:return l.data.positions.forEach(function(U){FW(X,U,H,["id"])}),l;
case 7:case 2:case 3:case 9:case 5:return FW(X,l.data,H,["id"]),l;case 8:case 13:return FW(X,l.data,H,["id"]),ogQ(X,l.data,H,["styleId"]),l;case 10:return l;case 14:return l.data.ranges.forEach(function(U){FW(X,U,H,["start","end"])}),l;
case 15:return FW(X,l.data,H,["id"]),ogQ(X,l.data,H,["styleIds"]),(b=l.data.styles)==null||b.forEach(function(U){ogQ(X,U,H,["styleId"])}),l}}return!1};
TbW.prototype.replace=function(X,H,l,b){b=_.C(b);for(var U=b.next();!U.done;U=b.next())if(U=U.value,Array.isArray(H[U])||typeof H[U]==="number")Array.isArray(H[U])?H[U]=X.getIds(l,H[U]):H[U]=X.getId(l,H[U]);return H};
var FW=function(X,H,l,b){X.replace(X.crossOriginIframeMirror,H,l,b)},ogQ=function(X,H,l,b){X.replace(X.crossOriginIframeStyleMirror,H,l,b)},HjQ=function(X,H,l){FW(X,H,l,["id",
"rootId"]);"childNodes"in H&&H.childNodes.forEach(function(b){HjQ(X,b,l)})},lUt=function(X,H,l){H.type===0||H.rootId||(H.rootId=l);
"childNodes"in H&&H.childNodes.forEach(function(b){lUt(X,b,l)})};var dDK=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},bjt=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.R=bjt.prototype;_.R.getId=function(X){var H;return(H=this.styleIDMap.get(X))!=null?H:-1};
_.R.has=function(X){return this.styleIDMap.has(X)};
_.R.add=function(X,H){if(this.has(X))return this.getId(X);H=H===void 0?this.id++:H;this.styleIDMap.set(X,H);this.idStyleMap.set(H,X);return H};
_.R.getStyle=function(X){return this.idStyleMap.get(X)||null};
_.R.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.R.generateId=function(){return this.id++};var U7D=function(){this.length=0;this.tail=this.head=null};
U7D.prototype.get=function(X){if(X>=this.length)throw Error("$e");for(var H=this.head,l=0;l<X;l++){var b=void 0;H=((b=H)==null?void 0:b.next)||null}return H};
var $7v=function(X,H){var l={value:H,previous:null,next:null};H.__ln=l;if(H.previousSibling&&"__ln"in H.previousSibling){var b=H.previousSibling.__ln.next;l.next=b;l.previous=H.previousSibling.__ln;H.previousSibling.__ln.next=l;b&&(b.previous=l)}else H.nextSibling&&"__ln"in H.nextSibling&&H.nextSibling.__ln.previous?(b=H.nextSibling.__ln.previous,l.previous=b,l.next=H.nextSibling.__ln,H.nextSibling.__ln.previous=l,b&&(b.next=l)):(X.head&&(X.head.previous=l),l.next=X.head,X.head=l);l.next===null&&
(X.tail=l);X.length++};
U7D.prototype.removeNode=function(X){var H=X.__ln;this.head&&(H.previous?(H.previous.next=H.next)?H.next.previous=H.previous:this.tail=H.previous:(this.head=H.next)?this.head.previous=null:this.tail=null,X.__ln&&delete X.__ln,this.length--)};
var Kqt=function(X,H){return X+"@"+H},Cwl=function(){var X=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(H){H.forEach(X.JSC$12164_processMutation);X.emit()};
this.emit=function(){if(!X.JSC$12164_frozen&&!X.locked){for(var H=[],l=new Set,b=new U7D,U=function(e){for(var y=-2;y===-2;)y=(e=e&&e.nextSibling)&&X.mirror.getId(e);return y},K=function(e){var y=xE(e);
if(y&&o7O(e)){var V=!1;if(e.nodeType===Node.TEXT_NODE){var p=y.tagName;if(p==="TEXTAREA")return;p==="STYLE"&&X.addedSet.has(y)&&(V=!0)}y=nr(y)?X.mirror.getId(lK8(e)):X.mirror.getId(y);p=U(e);if(y===-1||p===-1)return $7v(b,e);if(V=Gw(e,{doc:X.doc,mirror:X.mirror,blockClass:X.blockClass,blockSelector:X.blockSelector,maskTextClass:X.maskTextClass,maskTextSelector:X.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:X.inlineStylesheet,maskInputOptions:X.maskInputOptions,maskTextFn:X.maskTextFn,
maskInputFn:X.maskInputFn,slimDOMOptions:X.slimDOMOptions,dataURLOptions:X.dataURLOptions,recordCanvas:X.recordCanvas,inlineImages:X.inlineImages,onSerialize:function(z){z.nodeName==="IFRAME"&&X.mirror.nodeMetaMap.get(z)&&JJL(X.iframeManager,z);XGl(z,X.mirror)&&LYN(X.stylesheetManager,z);e&&zw(e)&&Y1l(X.shadowDomManager,zw(e),X.doc)},
onIframeLoad:function(z,t){IKN(X.iframeManager,z,t);z.contentWindow&&z.contentDocument&&AJy(X.shadowDomManager,z.contentWindow.Element,z.contentDocument)},
onStylesheetLoad:function(z,t){XAz(X.stylesheetManager,z,t)},
cssCaptured:V}))H.push({parentId:y,nextId:p,node:V}),l.add(V.id)}};X.mapRemoves.length;)YJY(X.mirror,X.mapRemoves.shift());
for(var w=_.C(X.movedSet),d=w.next();!d.done;d=w.next())d=d.value,$DL(X.removesSubTreeCache,d)&&!X.movedSet.has(xE(d))||K(d);w=_.C(X.addedSet);for(d=w.next();!d.done;d=w.next())d=d.value,RMK(X.droppedSet,d)||$DL(X.removesSubTreeCache,d)?RMK(X.movedSet,d)?K(d):X.droppedSet.add(d):K(d);for(d=null;b.length;){w=null;if(d){var B=X.mirror.getId(xE(d.value)),q=U(d.value);B!==-1&&q!==-1&&(w=d)}if(!w)for(d=b.tail;d;){var u=d;d=d.previous;if(u&&(B=X.mirror.getId(xE(u.value)),U(u.value)!==-1))if(B!==-1){w=u;
break}else if((B=xE(u.value))&&B.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(B=SB(B),X.mirror.getId(B)!==-1)){w=u;break}}if(!w){for(;b.head;)b.removeNode(b.head.value);break}d=w.previous;b.removeNode(w.value);K(w.value)}K={texts:X.texts.map(function(e){var y=e.node,V=xE(y);V&&V.tagName==="TEXTAREA"&&X.genTextAreaValueMutation(V);return{id:X.mirror.getId(y),value:e.value}}).filter(function(e){return!l.has(e.id)}).filter(function(e){return X.mirror.has(e.id)}),
attributes:X.attributes.map(function(e){var y=e.attributes;if(typeof y.style==="string"){var V=JSON.stringify(e.styleDiff),p=JSON.stringify(e._unchangedStyles);V.length<y.style.length&&(V+p).split("var(").length===y.style.split("var(").length&&(y.style=e.styleDiff)}return{id:X.mirror.getId(e.node),attributes:y}}).filter(function(e){return!l.has(e.id)}).filter(function(e){return X.mirror.has(e.id)}),
removes:X.removes,adds:H};if(K.texts.length||K.attributes.length||K.removes.length||K.adds.length)X.texts=[],X.attributes=[],X.attributeMap=new WeakMap,X.removes=[],X.addedSet=new Set,X.movedSet=new Set,X.droppedSet=new Set,X.removesSubTreeCache=new Set,X.movedMap={},X.mutationCb(K)}};
this.genTextAreaValueMutation=function(H){var l=X.attributeMap.get(H);l||(l={node:H,attributes:{},styleDiff:{},_unchangedStyles:{}},X.attributes.push(l),X.attributeMap.set(H,l));var b=Array.from(tB(H),function(U){return O5y(U)||""}).join("");
l.attributes.value=hv8({element:H,maskInputOptions:X.maskInputOptions,tagName:H.tagName,type:Bzy(H),value:b,maskInputFn:X.maskInputFn})};
this.JSC$12164_processMutation=function(H){if(!Ydy(H.target,X.mirror,X.slimDOMOptions))switch(H.type){case "characterData":var l=O5y(H.target);vf(H.target,X.blockClass,X.blockSelector,!1)||l===H.oldValue||X.texts.push({value:adL(H.target,X.maskTextClass,X.maskTextSelector,!0)&&l?X.maskTextFn?X.maskTextFn(l,LTK(H.target)):l.replace(/[\S]/g,"*"):l,node:H.target});break;case "attributes":l=H.target;var b=H.attributeName,U=H.target.getAttribute(b);if(b==="value"){var K=Bzy(l);U=hv8({element:l,maskInputOptions:X.maskInputOptions,
tagName:l.tagName,type:K,value:U,maskInputFn:X.maskInputFn})}if(vf(H.target,X.blockClass,X.blockSelector,!1)||U===H.oldValue)break;K=X.attributeMap.get(H.target);if(l.tagName==="IFRAME"&&b==="src"&&!X.keepIframeSrcFn(U))if(l.contentDocument)break;else b="rr_src";K||(K={node:H.target,attributes:{},styleDiff:{},_unchangedStyles:{}},X.attributes.push(K),X.attributeMap.set(H.target,K));b==="type"&&l.tagName==="INPUT"&&(H.oldValue||"").toLowerCase()==="password"&&l.setAttribute("data-rr-is-password","true");
if(!EPk(l.tagName,b))if(K.attributes[b]=WTO(X.doc,l.tagName.toLowerCase(),b.toLowerCase(),U),b==="style"){if(!X.unattachedDoc)try{X.unattachedDoc=document.implementation.createHTMLDocument()}catch(q){X.unattachedDoc=X.doc}b=X.unattachedDoc.createElement("span");H.oldValue&&b.setAttribute("style",H.oldValue);U=_.C(Array.from(l.style));for(var w=U.next();!w.done;w=U.next()){w=w.value;var d=l.style.getPropertyValue(w),B=l.style.getPropertyPriority(w);d!==b.style.getPropertyValue(w)||B!==b.style.getPropertyPriority(w)?
K.styleDiff[w]=B===""?d:[d,B]:K._unchangedStyles[w]=[d,B]}b=_.C(Array.from(b.style));for(U=b.next();!U.done;U=b.next())U=U.value,l.style.getPropertyValue(U)===""&&(K.styleDiff[U]=!1)}else b==="open"&&l.tagName==="DIALOG"&&(l.matches("dialog:modal")?K.attributes.rr_open_mode="modal":K.attributes.rr_open_mode="non-modal");break;case "childList":vf(H.target,X.blockClass,X.blockSelector,!0)||(H.target.tagName==="TEXTAREA"?X.genTextAreaValueMutation(H.target):(H.addedNodes.forEach(function(q){return X.genAdds(q,
H.target)}),H.removedNodes.forEach(function(q){var u=X.mirror.getId(q),e=nr(H.target)?X.mirror.getId(SB(H.target)):X.mirror.getId(H.target);
vf(H.target,X.blockClass,X.blockSelector,!1)||Ydy(q,X.mirror,X.slimDOMOptions)||X.mirror.getId(q)===-1||(X.addedSet.has(q)?(bFZ(X.addedSet,q),X.droppedSet.add(q)):X.addedSet.has(H.target)&&u===-1||IdN(H.target,X.mirror)||(X.movedSet.has(q)&&X.movedMap[u+"@"+e]?bFZ(X.movedSet,q):(X.removes.push({parentId:e,id:u,isShadow:nr(H.target)&&kE(H.target)?!0:void 0}),UDN(q,X.removesSubTreeCache))),X.mapRemoves.push(q))})))}};
this.genAdds=function(H,l){if(!RGq(X.processedNodeManager,H,X)&&!X.addedSet.has(H)&&!X.movedSet.has(H)){if(X.mirror.nodeMetaMap.has(H)){if(Ydy(H,X.mirror,X.slimDOMOptions))return;X.movedSet.add(H);var b=null;l&&X.mirror.nodeMetaMap.has(l)&&(b=X.mirror.getId(l));b&&b!==-1&&(X.movedMap[Kqt(X.mirror.getId(H),b)]=!0)}else X.addedSet.add(H),X.droppedSet.delete(H);vf(H,X.blockClass,X.blockSelector,!1)||(tB(H).forEach(function(U){return X.genAdds(U)}),H&&zw(H)&&tB(zw(H)).forEach(function(U){X.processedNodeManager.add(U,
X);
X.genAdds(U,H)}))}}};
_.R=Cwl.prototype;_.R.init=function(X){var H=this;"mutationCb blockClass blockSelector maskTextClass maskTextSelector inlineStylesheet maskInputOptions maskTextFn maskInputFn keepIframeSrcFn recordCanvas inlineImages slimDOMOptions dataURLOptions doc mirror iframeManager stylesheetManager shadowDomManager canvasManager processedNodeManager".split(" ").forEach(function(l){H[l]=X[l]})};
_.R.freeze=function(){this.JSC$12164_frozen=!0;this.canvasManager.freeze()};
_.R.unfreeze=function(){this.JSC$12164_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.R.isFrozen=function(){return this.JSC$12164_frozen};
_.R.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.R.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.R.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var mI=[],cf=window.Proxy,sRl=["INPUT","TEXTAREA","SELECT"],Mel=new WeakMap;var Ceq=new Map,GHy=function(X,H,l){if(X&&(g7b(X,H)||typeof X==="object")){H=X.constructor.name;var b=Ceq.get(l);b||(b=new Map,Ceq.set(l,b));b.has(H)||b.set(H,[]);l=b.get(H);H=l.indexOf(X);H===-1&&(H=l.length,l.push(X));return H}},aKl=function(X,H,l){return X.map(function(b){return E7k(b,H,l)})},g7b=function(X,H){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(l){return typeof H[l]===
"function"}).find(function(l){return X instanceof H[l]})};var wCQ=tv(["\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"]),
CBm=_.F3(wCQ.join(""));var jRh=function(X){var H=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$12206_frozen=!1;this.JSC$12206_processMutation=function(B,q){if(H.rafStamps.invokeId&&H.rafStamps.latestId!==H.rafStamps.invokeId||!H.rafStamps.invokeId)H.rafStamps.invokeId=H.rafStamps.latestId;H.pendingCanvasMutations.has(B)||H.pendingCanvasMutations.set(B,[]);H.pendingCanvasMutations.get(B).push(q)};
var l=X.sampling===void 0?"all":X.sampling,b=X.win,U=X.blockClass,K=X.blockSelector,w=X.recordCanvas,d=X.dataURLOptions;this.mutationCb=X.mutationCb;this.mirror=X.mirror;w&&l==="all"&&d7F(this,b,U,K);w&&typeof l==="number"&&hGG(this,l,b,U,K,{dataURLOptions:d})};
_.R=jRh.prototype;_.R.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.R.freeze=function(){this.JSC$12206_frozen=!0};
_.R.unfreeze=function(){this.JSC$12206_frozen=!1};
_.R.lock=function(){this.locked=!0};
_.R.unlock=function(){this.locked=!1};
var hGG=function(X,H,l,b,U,K){var w=iFl(l,b,U,!0),d=new Map,B=GSy(wbm());B.onmessage=function(p){var z=p.data.id;d.set(z,!1);"base64"in p.data&&(p=p.data,X.mutationCb({id:z,type:jB["2D"],commands:[{property:"clearRect",args:[0,0,p.width,p.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:p.base64}],type:p.type}]},0,0]}]}))};
var q=1E3/H,u=0,e=function(){var p=[];l.document.querySelectorAll("canvas").forEach(function(z){vf(z,b,U,!0)||p.push(z)});
return p},y=function(p){u&&p-u<q||(u=p,e().forEach(function(z){var t,W,G,r,Q;
return _.h(function(v){if(v.nextAddress==1){t=X.mirror.getId(z);if(d.get(t)||z.width===0||z.height===0)return v.return();d.set(t,!0);["webgl","webgl2"].includes(z.__context)&&(W=z.getContext(z.__context),((G=W)==null?void 0:(r=G.getContextAttributes())==null?void 0:r.preserveDrawingBuffer)===!1&&W.clear(W.COLOR_BUFFER_BIT));return v.yield(createImageBitmap(z),2)}Q=v.yieldResult;B.postMessage({id:t,bitmap:Q,width:z.width,height:z.height,dataURLOptions:K.dataURLOptions},[Q]);_.m5(v)})}));
V=requestAnimationFrame(y)};
var V=requestAnimationFrame(y);X.resetObservers=function(){w();cancelAnimationFrame(V)}},d7F=function(X,H,l,b){FqC(X);
BJ_(X);var U=iFl(H,l,b,!1),K=ZFy(X.JSC$12206_processMutation.bind(X),H,l,b),w=OFk(X.JSC$12206_processMutation.bind(X),H,l,b);X.resetObservers=function(){U();K();w()}},BJ_=function(X){requestAnimationFrame(function(){return qCt(X)})},FqC=function(X){var H=function(l){X.rafStamps.latestId=l;
requestAnimationFrame(H)};
requestAnimationFrame(H)},qCt=function(X){X.pendingCanvasMutations.forEach(function(H,l){var b=X.mirror.getId(l);
sVz(X,l,b)});
requestAnimationFrame(function(){return qCt(X)})},sVz=function(X,H,l){if(!X.JSC$12206_frozen&&!X.locked){var b=X.pendingCanvasMutations.get(H);
if(b&&l!==-1){var U=b.map(function(K){K=Object.assign({},K);return delete K.type,K});
X.mutationCb({id:l,type:b[0].type,commands:U});X.pendingCanvasMutations.delete(H)}}};var NbK=function(){this.nodeMap=new WeakMap;this.active=!1},RGq=function(X,H,l){return(X=X.nodeMap.get(H))&&Array.from(X).some(function(b){return b!==l})};
NbK.prototype.add=function(X,H){var l=this;this.active||(this.active=!0,requestAnimationFrame(function(){l.nodeMap=new WeakMap;l.active=!1}));
this.nodeMap.set(X,(this.nodeMap.get(X)||new Set).add(H))};
NbK.prototype.destroy=function(){};var rJK=function(X){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=X.mutationCb;this.scrollCb=X.scrollCb;this.bypassOptions=X.bypassOptions;this.mirror=X.mirror;this.init()};
rJK.prototype.init=function(){this.reset();AJy(this,Element,document)};
var Y1l=function(X,H,l){if(kE(H)&&!X.shadowDoms.has(H)){X.shadowDoms.add(H);var b=wGL(Object.assign({},X.bypassOptions,{doc:l,mutationCb:X.mutationCb,mirror:X.mirror,shadowDomManager:X}),H);X.restoreHandlers.push(function(){return b.disconnect()});
X.restoreHandlers.push(BbO(Object.assign({},X.bypassOptions,{scrollCb:X.scrollCb,doc:H,mirror:X.mirror})));setTimeout(function(){H.adoptedStyleSheets&&H.adoptedStyleSheets.length>0&&fKW(X.bypassOptions.stylesheetManager,H.adoptedStyleSheets,X.mirror.getId(SB(H)));X.restoreHandlers.push(pGL({mirror:X.mirror,stylesheetManager:X.bypassOptions.stylesheetManager},H))},0)}},AJy=function(X,H,l){X.restoreHandlers.push(pr(H.prototype,"attachShadow",function(b){return function(U){U=b.call(this,U);
var K=zw(this);K&&o7O(this)&&Y1l(X,K,l);return U}}))};
rJK.prototype.reset=function(){this.restoreHandlers.forEach(function(X){try{X()}catch(H){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var QRz=function(X){this.trackedLinkElements=new WeakSet;this.styleMirror=new bjt;this.mutationCb=X.mutationCb;this.adoptedStyleSheetCb=X.adoptedStyleSheetCb},XAz=function(X,H,l){"_cssText"in l.attributes&&X.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:l.id,attributes:l.attributes}]});LYN(X,H)},LYN=function(X,H){X.trackedLinkElements.has(H)||X.trackedLinkElements.add(H)},fKW=function(X,H,l){if(H.length!==0){l={id:l,
styleIds:[]};var b=[];H=_.C(H);for(var U=H.next(),K={};!U.done;K={sheet$jscomp$3:void 0},U=H.next())K.sheet$jscomp$3=U.value,U=void 0,X.styleMirror.has(K.sheet$jscomp$3)?U=X.styleMirror.getId(K.sheet$jscomp$3):(U=X.styleMirror.add(K.sheet$jscomp$3),b.push({styleId:U,rules:Array.from(K.sheet$jscomp$3.rules||CSSRule,function(w){return function(d,B){return{rule:CZO(d,w.sheet$jscomp$3.href),index:B}}}(K))})),l.styleIds.push(U);
b.length>0&&(l.styles=b);X.adoptedStyleSheetCb(l)}};
QRz.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var Lr,mDO,cJh;try{if(Array.from([1],function(X){return X*2})[0]!==2){var M5v=document.createElement("iframe");
document.body.appendChild(M5v);var u0_;Array.from=((u0_=M5v.contentWindow)==null?void 0:u0_.Array.from)||Array.from;document.body.removeChild(M5v)}}catch(X){console.debug("Unable to override Array.from",X)}var JB=new aK;var wAW="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(" "),CdZ={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},Rkh=null,owZ=null;var d68={},hkN=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 eky={text:1},q8k={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var eGF=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,yCH={CONSTANT:{isUnwrappable:function(X){return X instanceof tS},
unwrap:vOQ},JAVASCRIPT:{isUnwrappable:function(X){return X instanceof _.hr},
unwrap:BJ},HTML:{isUnwrappable:function(X){return X instanceof lQ},
unwrap:function(X){return Uw(X)}},
RESOURCE_URL:{isUnwrappable:function(X){return X instanceof iR},
unwrap:_.OU},STRING:{isUnwrappable:function(X){return X instanceof Object},
unwrap:function(X){return String(X)}},
STYLE:{isUnwrappable:function(X){return typeof X==="string"},
unwrap:function(X){return X}},
URL:{isUnwrappable:function(X){return cu(X)},
unwrap:_.jA}},V5H={CONSTANT:ysb,JAVASCRIPT:ysb,HTML:function(X){X=X instanceof lQ?X:bQ(String(X).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return Uw(X)},
RESOURCE_URL:ysb,STRING:String,STYLE:ysb,URL:function(X,H){X=eGF.test(X)?X:void 0;return X===void 0?H:X}};var tfW=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,Vfy=/[\t\n\f\r ]+/,fgh=/[\t\n\f\r ,]+/g,S8W=function(X,H,l){return l},X6={},PeC=function(){var X=function(){var b={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",b):b}(),H=X.createHTML(""),l=X.createScript("");
X=X.createScriptURL("");return{INNOCUOUS_STRING:H,INNOCUOUS_SCRIPT:l,INNOCUOUS_URL:X}}(),AB=PeC.INNOCUOUS_STRING,D6b=PeC.INNOCUOUS_SCRIPT,x6y=PeC.INNOCUOUS_URL;var fUY=function(X){var H=WAK(X);return function(l,b,U,K){return K?H(K,b,U,l):AB}}({reportHandler:function(X,H){if(X)try{throw Error(H);
}catch(l){_.n2(l)}},
safeTypesBridge:function(X,H,l){var b=yCH[H];return b.isUnwrappable(X)&&(b=b.unwrap(X,l),b!==l)?b:(0,V5H[H])(String(X),l)},
allowedIdentifierPrefixes:[""]});if(sL!==void 0)throw Error("bf");sL=fUY;if(sL!==fUY)throw Error("cf");Hi("Injectable",[]);var U8h=Hi("Inject",[["token",void 0]]),KVZ=Hi("Optional",[]);Hi("Injectable",[]);var Rpl=Hi("Self",[]),CcO=Hi("SkipSelf",[]);Hi("Host",[]);var pCY={},SCq=function(){};
SCq.prototype.resolve=function(){throw Error("ef");};
SCq.prototype.addProvider=function(){throw Error("ef");};var osy=Function;var zGz=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,ngH=function(){this._reflect=window.Reflect};
_.R=ngH.prototype;_.R.factory=function(X){return function(){return new (Function.prototype.bind.apply(X,[null].concat(_.LJ(_.Ab.apply(0,arguments)))))}};
_.R._zipTypesAndAnnotations=function(X,H){var l=typeof X==="undefined"?Array(H.length):Array(X.length);for(var b=0;b<l.length;b++)l[b]=typeof X==="undefined"?[]:X[b]!=Object?[X[b]]:[],H&&gwl(H[b])&&(l[b]=l[b].concat(H[b]));return l};
_.R._ownParameters=function(X,H){if(zGz.exec(X.toString()))return null;if(X.parameters&&X.parameters!==H.parameters)return X.parameters;var l=X.ctorParameters;return l&&l!==H.ctorParameters?(H=typeof l==="function"?l():l,X=H.map(function(b){return b&&b.type}),H=H.map(function(b){return b&&agN(b.decorators)}),this._zipTypesAndAnnotations(X,H)):gwl(this._reflect)&&gwl(this._reflect.getOwnMetadata)&&(H=this._reflect.getOwnMetadata("parameters",X),(l=this._reflect.getOwnMetadata("design:paramtypes",X))||
H)?this._zipTypesAndAnnotations(l,H):Array(X.length).fill(void 0)};
_.R.parameters=function(X){if(!X.prototype)return[];var H=Object.getPrototypeOf(X.prototype).constructor;(X=this._ownParameters(X,H))||H===Object||(X=this.parameters(H));return X||[]};
_.R._ownAnnotations=function(X,H){if(X.annotations&&X.annotations!==H.annotations)return X=X.annotations,typeof X==="function"&&X.annotations&&(X=X.annotations),X;if(X.decorators&&X.decorators!==H.decorators)return agN(X.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",X)};
_.R.annotations=function(X){var H=Object.getPrototypeOf(X.prototype).constructor;X=this._ownAnnotations(X,H)||[];return(H!==Object?this.annotations(H):[]).concat(X)};
_.R._ownPropMetadata=function(X,H){if(X.propMetadata&&X.propMetadata!==H.propMetadata)return X=X.propMetadata,typeof X==="function"&&X.propMetadata&&(X=X.propMetadata),X;if(X.propDecorators&&X.propDecorators!==H.propDecorators){var l=X.propDecorators,b={};Object.keys(l).forEach(function(U){b[U]=agN(l[U])});
return b}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",X)};
_.R.propMetadata=function(X){var H=Object.getPrototypeOf(X.prototype).constructor,l={};if(H!==Object){var b=this.propMetadata(H);Object.keys(b).forEach(function(K){l[K]=b[K]})}var U=this._ownPropMetadata(X,H);
U&&Object.keys(U).forEach(function(K){var w=[];l.hasOwnProperty(K)&&w.push.apply(w,_.LJ(l[K]));w.push.apply(w,_.LJ(U[K]));l[K]=w});
return l};
_.R.getter=function(X){return function(H){return H[X]}};
_.R.setter=function(X){return function(H,l){return H[X]=l}};
_.R.method=function(X){return function(H,l){if(!H[X])throw Error("ff`"+X);return H[X].apply(H,l)}};var kb_=function(){};var x7_=function(X){this.reflectionCapabilities=X};
_.S(x7_,kb_);_.R=x7_.prototype;_.R.factory=function(X){return this.reflectionCapabilities.factory(X)};
_.R.parameters=function(X){return this.reflectionCapabilities.parameters(X)};
_.R.annotations=function(X){return this.reflectionCapabilities.annotations(X)};
_.R.propMetadata=function(X){return this.reflectionCapabilities.propMetadata(X)};
_.R.getter=function(X){return this.reflectionCapabilities.getter(X)};
_.R.setter=function(X){return this.reflectionCapabilities.setter(X)};
_.R.method=function(X){return this.reflectionCapabilities.method(X)};var cs8=new x7_(new ngH);var B9=function(X,H){this.token=X;this.id=H;if(X===void 0||X===null)throw Error("lf");};
_.ja.Object.defineProperties(B9.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return lT(this.token)}}});
_.ja.Object.defineProperties(B9,{JSC$12262_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return bT.JSC$12266_numberOfKeys}}});
var D7v=function(){this._allKeys=new Map};
D7v.prototype.get=function(X){if(X instanceof B9)return X;if(this._allKeys.has(X))return this._allKeys.get(X);var H=new B9(X,B9.JSC$12262_numberOfKeys);this._allKeys.set(X,H);return H};
_.ja.Object.defineProperties(D7v.prototype,{JSC$12266_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var bT=new D7v;var w9Z=function(X,H,l){this.key=X;this.optional=H;this.visibility=l},rsy=function(X){return new w9Z(X,!1,null)},LAh=[],Asl=function(X,H,l){this.key=X;
this.resolvedFactories=H;this.multiProvider=l},Y8N=function(X,H,l,b){this.factory=X;
this.dependencies=H;this.providerClass=l;this.providerValue=b};var q8={},s7=function(X,H){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=H===void 0?null:H;X=_.C(X);for(H=X.next();!H.done;H=X.next())this.addProvider(H.value)};
_.R=s7.prototype;_.R.addProvider=function(X){this.keyIdToIndex.set(X.key.id,this.keyIds.length);this.providers.push(X);this.keyIds.push(X.key.id);this.objs.push(q8)};
_.R.resolve=function(X,H){H=H===void 0?pCY:H;return this._getByKey(bT.get(op(X)),null,H)};
_.R._new=function(X){if(this.constructedKeyIds[X.key.id])throw QeW(this,X.key);this.constructedKeyIds[X.key.id]=!0;return this._instantiateProvider(X)};
_.R._instantiateProvider=function(X){if(X.multiProvider){for(var H=Array(X.resolvedFactories.length),l=0;l<X.resolvedFactories.length;++l)H[l]=this._instantiate(X,X.resolvedFactories[l]);return H}return this._instantiate(X,X.resolvedFactories[0])};
_.R._instantiate=function(X,H){var l=this,b=H.factory;try{var U=H.dependencies.map(function(w){return l._getByReflectiveDependency(w)})}catch(w){throw w.addKey&&w.addKey(this,X.key),w;
}try{var K=b.apply(null,_.LJ(U))}catch(w){throw Tsy(this,w,X.key);}return K};
_.R._getByReflectiveDependency=function(X){return this._getByKey(X.key,X.visibility,X.optional?null:pCY)};
_.R._getByKey=function(X,H,l){return X===t5v?this:H instanceof Rpl?this._getByKeySelf(X,l):this._getByKeyDefault(X,l,H)};
_.R._getObjByKeyId=function(X){for(var H=0;H<this.keyIds.length;H++)if(this.keyIds[H]===X)return this.objs[H]===q8&&(this.objs[H]=this._new(this.providers[H])),this.objs[H];return q8};
_.R._throwOrNull=function(X,H){if(H!==pCY)return H;throw m6y(this,X);};
_.R._getByKeySelf=function(X,H){var l=this._getObjByKeyId(X.id);return l!==q8?l:this._throwOrNull(X,H)};
_.R._getByKeyDefault=function(X,H,l){for(var b=l=l instanceof CcO?this.parent:this;l instanceof s7;){var U=l._getObjByKeyId(X.id);if(U!==q8)return U;l=l.parent}U=void 0;if(l!==null)try{var K=l.resolve(X.token,H);if(K!==q8)return K}catch(w){U=w}if(!(b instanceof s7&&hpm(X.token))){if(U)throw U;return this._throwOrNull(X,H)}for(K=b;K.parent instanceof s7;)K=K.parent;K.addProvider(X9l({provide:X.token,useClass:X.token}));return K.resolve(X.token,H)};
_.R.toString=function(){return this.displayName};
_.ja.Object.defineProperties(s7.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+d8y(this,function(X){return' "'+X.key.displayName+'" '}).join(", ")+"])"}}});
var t5v=bT.get(op(SCq));(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 WqF=globalThis.XRegExp;var EgY=-1,gg6=function(X){addEventListener("pageshow",function(H){H.persisted&&(EgY=H.timeStamp,X(H))},!0)};var aUC=function(X,H,l){var b=GbQ,U,K;return function(w){if(H.value>=0&&(w||l)){var d;if((K=H.value-((d=U)!=null?d:0))||U===void 0)U=H.value,H.delta=K,w=H.value,H.rating=w>b[1]?"poor":w>b[0]?"needs-improvement":"good",X(H)}}};var ZjH=function(X){requestAnimationFrame(function(){return requestAnimationFrame(function(){return X()})})};var ij_=function(){var X=performance.getEntriesByType("navigation")[0];if(X&&X.responseStart>0&&X.responseStart<performance.now())return X};var vgG=function(){var X,H;return(H=(X=ij_())==null?void 0:X.activationStart)!=null?H:0};var M8=-1,OjQ=new Set,m7_=function(X){if(document.visibilityState==="hidden"){if(X.type==="visibilitychange")for(var H=_.C(OjQ),l=H.next();!l.done;l=H.next())l=l.value,l();isFinite(M8)||(M8=X.type==="visibilitychange"?X.timeStamp:0,removeEventListener("prerenderingchange",m7_,!0))}},QVH=function(){if(M8<0){var X=vgG(),H,l;
M8=(l=document.prerendering?void 0:(H=globalThis.performance.getEntriesByType("visibility-state").filter(function(b){return b.name==="hidden"&&b.startTime>X})[0])==null?void 0:H.startTime)!=null?l:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",m7_,!0);addEventListener("prerenderingchange",m7_,!0);gg6(function(){setTimeout(function(){M8=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return M8},
onHidden:function(b){OjQ.add(b)}}};var TJY=function(){var X=X===void 0?-1:X;var H=ij_(),l="navigate";EgY>=0?l="back-forward-cache":H&&(document.prerendering||vgG()>0?l="prerender":document.wasDiscarded?l="restore":H.type&&(l=H.type.replace(/_/g,"-")));return{name:"LCP",value:X,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:l}};var BMh=new WeakMap;var NJQ=function(X){var H=H===void 0?{}:H;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var l=new PerformanceObserver(function(b){Promise.resolve().then(function(){X(b.getEntries())})});
l.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},H));return l}}catch(b){}};var cCD=function(X){var H=!1;return function(){H||(X(),H=!0)}};var jV6=function(X){document.prerendering?addEventListener("prerenderingchange",function(){return X()},!0):X()};var rCD=function(X){var H=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?X():(X=cCD(X),addEventListener("visibilitychange",X,{once:!0,capture:!0}),H(function(){X();removeEventListener("visibilitychange",X,{capture:!0})}))};var FVl=function(){};
FVl.prototype._processEntry=function(X){var H;(H=this._onBeforeProcessingEntry)==null||H.call(this,X)};var GbQ=[2500,4E3],abm=function(X){var H=H===void 0?{}:H;jV6(function(){var l=QVH(),b=TJY(),U=q7K(H),K=function(y){H.reportAllChanges||(y=y.slice(-1));y=_.C(y);for(var V=y.next();!V.done;V=y.next())V=V.value,U._processEntry(V),V.startTime<l.firstHiddenTime&&(b.value=Math.max(V.startTime-vgG(),0),b.entries=[V],d())},w=NJQ(K);
if(w){var d=aUC(X,b,H.reportAllChanges);for(var B=cCD(function(){K(w.takeRecords());w.disconnect();d(!0)}),q=function(y){y.isTrusted&&(rCD(B),removeEventListener(y.type,q,{capture:!0}))},u=_.C(["keydown",
"click","visibilitychange"]),e=u.next();!e.done;e=u.next())addEventListener(e.value,q,{capture:!0});gg6(function(y){b=TJY();d=aUC(X,b,H.reportAllChanges);ZjH(function(){b.value=performance.now()-y.timeStamp;d(!0)})})}})};var JCH;var Lq_;_.c=function(){return Lq_!==void 0?Lq_:Lq_=document.createElement("template")};
document.head.appendChild(_.c().content);var YCG;_.wT({_template:function(){if(YCG!==void 0)return YCG;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
var H=X.content,l=H.insertBefore;JCH===void 0&&(JCH=document.createElement("template"));var b=JCH;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return YCG=X},
is:"tp-yt-app-toolbar"});var IUG;var ACq;_.uc=function(){};
_.uc=_.wT({_template:function(){if(ACq!==void 0)return ACq;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;IUG===void 0&&(IUG=document.createElement("template"));var b=IUG;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return ACq=X},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.uc.instance||(_.uc.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(X){this._text===X&&(X+="\u00a0");this._text="";this.async(function(){this._text=X},this.timeout)},
_onIronAnnounce:function(X){X.detail&&X.detail.text&&this.announce(X.detail.text)}});
_.uc.instance=null;_.uc.requestAvailability=function(){_.uc.instance||(_.uc.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.uc.instance):document.addEventListener("load",function(){document.body.appendChild(_.uc.instance)})};var X0_;var Hxt;/*

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

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 ec,RIC,CKq;ec=Element.prototype;RIC=ec.matches||ec.matchesSelector||ec.mozMatchesSelector||ec.msMatchesSelector||ec.oMatchesSelector||ec.webkitMatchesSelector;CKq=function(){};
_.dO9=function(X){var H=w0Y,l=[];return H._collectTabbableNodes(X,l)?H._sortByTabIndex(l):l};
_.R=CKq.prototype;_.R.isFocusable=function(X){return RIC.call(X,"input, select, textarea, button, object")?RIC.call(X,":not([disabled])"):RIC.call(X,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.R._normalizedTabIndex=function(X){return this.isFocusable(X)?(X=X.getAttribute("tabindex")||0,Number(X)):-1};
_.R._collectTabbableNodes=function(X,H){if(X.nodeType!==Node.ELEMENT_NODE||!this._isVisible(X))return!1;var l=this._normalizedTabIndex(X),b=l>0;l>=0&&H.push(X);if(X.localName==="content"||X.localName==="slot")l=_.Uc(X).getDistributedNodes();else{var U;l=((U=_.Uc(X).shadowRoot)!=null?U:_.Uc(X.root||X)).children}for(X=0;X<l.length;X++)b=this._collectTabbableNodes(l[X],H)||b;return b};
_.R._isVisible=function(X){var H=X.style;return H.visibility!=="hidden"&&H.display!=="none"?(H=window.getComputedStyle(X),H.visibility!=="hidden"&&H.display!=="none"):!1};
_.R._sortByTabIndex=function(X){var H=X.length;if(H<2)return X;var l=Math.ceil(H/2);H=this._sortByTabIndex(X.slice(0,l));X=this._sortByTabIndex(X.slice(l));return this._mergeSortByTabIndex(H,X)};
_.R._mergeSortByTabIndex=function(X,H){for(var l=[];X.length>0&&H.length>0;)this._hasLowerTabOrder(X[0],H[0])?l.push(H.shift()):l.push(X.shift());return l.concat(X,H)};
_.R._hasLowerTabOrder=function(X,H){X=Math.max(X.tabIndex,0);H=Math.max(H.tabIndex,0);return X===0||H===0?H>X:X>H};
var w0Y=new CKq;var hIF;var FLq;_.wT({_template:function(){if(FLq!==void 0)return FLq;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;hIF===void 0&&(hIF=document.createElement("template"));var b=hIF;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return FLq=X},
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&&_.Uc(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Uc(this.parentNode).removeChild(this)},
_onTransitionend:function(X){X&&X.target===this&&this.complete()},
_openedChanged:function(X){X?this.prepare():(X=window.getComputedStyle(this),X.transitionDuration!=="0s"&&X.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 y0=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;ni(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)};
y0.prototype._bringOverlayAtIndexToFront=function(X){var H=this._overlays[X];if(H){var l=this._overlays.length-1,b=this._overlays[l];b&&this._shouldBeBehindOverlay(H,b)&&l--;if(!(X>=l)){b=Math.max(this._getZ(_.B1Q(this)),this._minimumZ);for(this._getZ(H)<=b&&this._applyOverlayZ(H,b);X<l;)this._overlays[X]=this._overlays[X+1],X++;this._overlays[l]=H}}};
y0.prototype.addOverlay=function(X){var H=this._overlays.indexOf(X);if(H>=0)this._bringOverlayAtIndexToFront(H);else{H=this._overlays.length;var l=this._overlays[H-1],b=Math.max(this._getZ(l),this._minimumZ),U=this._getZ(X);l&&this._shouldBeBehindOverlay(X,l)&&(this._applyOverlayZ(l,b),H--,b=Math.max(this._getZ(this._overlays[H-1]),this._minimumZ));U<=b&&this._applyOverlayZ(X,b);this._overlays.splice(H,0,X)}this.trackBackdrop()};
y0.prototype.removeOverlay=function(X){X=this._overlays.indexOf(X);X!==-1&&(this._overlays.splice(X,1),this.trackBackdrop())};
_.B1Q=function(X){return X._overlays[X._overlays.length-1]};
_.R=y0.prototype;_.R.trackBackdrop=function(){var X=this._overlayWithBackdrop();if(X||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(X)-1,this.backdropElement.opened=!!X,this.backdropElement.prepare()};
_.R._overlayWithBackdrop=function(){for(var X=this._overlays.length-1;X>=0;X--)if(this._overlays[X].withBackdrop)return this._overlays[X]};
_.R._getZ=function(X){var H=this._minimumZ;if(X){var l,b,U=Number(((l=X.hostElement)!=null?l:X).style.zIndex||window.getComputedStyle((b=X.hostElement)!=null?b:X).zIndex);U===U&&(H=U)}return H};
_.R._setZ=function(X,H){var l;((l=X.hostElement)!=null?l:X).style.zIndex=H};
_.R._applyOverlayZ=function(X,H){this._setZ(X,H+2)};
_.R._overlayInPath=function(X){X=X||[];for(var H=0;H<X.length;H++){var l=void 0;if(((l=X[H].polymerController)!=null?l:X[H])._manager===this)return X[H]}};
_.R._onCaptureClick=function(X){var H=this._overlays.length-1;if(H!==-1)for(var l=_.Uc(X).path,b,U;(b=this._overlays[H])&&this._overlayInPath(l)!==((U=b.hostElement)!=null?U:b);)if(b._onCaptureClick(X),b.allowClickThrough)H--;else break};
_.R._onCaptureFocus=function(X){var H=_.B1Q(this);H&&H._onCaptureFocus(X)};
_.R._onCaptureKeyDown=function(X){var H=_.B1Q(this);H&&(_.Yw.keyboardEventMatchesKeys(X,"esc")?H._onCaptureEsc(X):_.Yw.keyboardEventMatchesKeys(X,"tab")&&H._onCaptureTab(X))};
_.R._shouldBeBehindOverlay=function(X,H){return!X.alwaysOnTop&&H.alwaysOnTop&&!H.contains(X)};
_.ja.Object.defineProperties(y0.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 X=document.activeElement;X&&X instanceof Element!==!1||(X=document.body);for(;X.root&&_.Uc(X.root).activeElement;)X=_.Uc(X.root).activeElement;return X}}});
_.V0=new y0;var sSy=0,Mck=0,uW8=null,eph=[],$u=["wheel","mousewheel","DOMMouseScroll"],yI8;_.P("web_no_lock_on_touchstart_killswitch")&&($u.push("touchstart"),$u.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;_.P9={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:_.V0},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var X;return this._focusedChild||_.Uc((X=this.hostElement)!=null?X:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var X;return _.dO9((X=this.hostElement)!=null?X: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 X;this._observer=_.Uc((X=this.hostElement)!=null?X:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var X;_.Uc((X=this.hostElement)!=null?X:this).unobserveNodes(this._observer)}this._observer=null;for(var H in this.__rafs)this.__rafs[H]!==null&&cancelAnimationFrame(this.__rafs[H]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(X){this.fire("iron-overlay-canceled",X,{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 X;((X=this.hostElement)!=null?X:this).style.outline="none";var H;((H=this.hostElement)!=null?H:this).style.display="none"}},
_openedChanged:function(X){if(X){var H;((H=this.hostElement)!=null?H:this).removeAttribute("aria-hidden")}else{var l;((l=this.hostElement)!=null?l: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 X;if(this.withBackdrop&&!((X=this.hostElement)!=null?X:this).hasAttribute("tabindex")){var H;((H=this.hostElement)!=null?H:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var l;((l=this.hostElement)!=null?l: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 X;((X=this.hostElement)!=null?X:this).style.display="none";var H;((H=this.hostElement)!=null?H:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var X,H;((X=this.hostElement)!=null?X:this).style.transition=((H=this.hostElement)!=null?H:this).style.webkitTransition="none";var l,b;((l=this.hostElement)!=null?l:this).style.transform=((b=this.hostElement)!=null?b:this).style.webkitTransform="none";var U;((U=this.hostElement)!=null?U:this).style.display=""},
_finishPositioning:function(){var X;((X=this.hostElement)!=null?X:this).style.display="none";this.scrollTop=this.scrollTop;var H,l;((H=this.hostElement)!=null?H:this).style.transition=((l=this.hostElement)!=null?l:this).style.webkitTransition="";var b,U;((b=this.hostElement)!=null?b:this).style.transform=((U=this.hostElement)!=null?U:this).style.webkitTransform="";var K;((K=this.hostElement)!=null?K:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var X=this._manager.deepActiveElement,H;if(!(H=X===document.body))a:{for(;X;X=X.assignedSlot||X.parentNode||X.host)if(X===this){H=!0;break a}H=!1}H&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(X){this.noCancelOnOutsideClick||this.cancel(X)},
_onCaptureFocus:function(X){if(this.withBackdrop){var H=_.Uc(X).path;H.indexOf(this)===-1?(X.stopPropagation(),this._applyFocus()):this._focusedChild=H[0]}},
_onCaptureEsc:function(X){this.noCancelOnEscKey||this.cancel(X)},
_onCaptureTab:function(X){if(this.withBackdrop){this.__ensureFirstLastFocusables();var H=X.shiftKey,l=H?this.__firstFocusableNode:this.__lastFocusableNode;H=H?this.__lastFocusableNode:this.__firstFocusableNode;if(l===H)l=!0;else{var b=this._manager.deepActiveElement;l=b===l||b===this}l&&(X.preventDefault(),this._focusedChild=H,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var X=this._focusableNodes;this.__firstFocusableNode=X[0];this.__lastFocusableNode=X[X.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(X,H){var l=this.__rafs;l[X]!==null&&cancelAnimationFrame(l[X]);l[X]=requestAnimationFrame(function(){l[X]=null;H.call(this)}.bind(this))},
__updateScrollObservers:function(X,H,l){X&&H&&this.__isValidScrollAction(l)?(l==="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),yI8=_._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()):(X=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),X!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(X,1),yI8=_._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(EL)for(var X=this;X;)X.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&X.host&&this.__rootNodes.push(X),X=X.host||X.assignedSlot||X.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(H){H.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(X){X.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(X){return X==="lock"||X==="refit"||X==="cancel"},
__onCaptureScroll:function(X){if(!(this.__isAnimating||_.Uc(X).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(X)}},
__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)}};
_.f7=[KLz,_.$s,_.P9];_.wT({_template:function(){if(UOQ!==void 0)return UOQ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;bxD===void 0&&(bxD=document.createElement("template"));var b=bxD;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return UOQ=X},
is:"tp-yt-iron-dropdown",behaviors:[_.Ie,_.Yw,_.f7,kot],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 X=_.Uc(this.$.content).getDistributedNodes(),H=0,l=X.length;H<l;H++)if(X[H].nodeType===Node.ELEMENT_NODE)return X[H]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.P9._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.P9._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.P9._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var X=this.containedElement,H=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),l=0;l<H.length;l++)H[l].node=X;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(X){this._readied&&(X?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var X=this.focusTarget||this.containedElement;X&&this.opened&&!this.noAutoFocus?X.focus():_.P9._applyFocus.apply(this,arguments)}});var qQ9;var s4_;/*

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 MHz=new _.lc({type:"iconset"});
_.wT({_template:function(){if(s4_!==void 0)return s4_;var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;qQ9===void 0&&(qQ9=document.createElement("template"));
var b=qQ9;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return s4_=X},
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(X){X=(X||"").split(":");this._iconName=X.pop();this._iconsetName=X.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&&_.Uc(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=MHz.byKey(this._iconsetName)){var X=this._iconset.applyIcon(this,this._iconName,this.theme);X&&X.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,_.Uc(this.root).appendChild(this._img)}});var uKQ;var eI_;_.wT({_template:function(){if(eI_!==void 0)return eI_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
var H=X.content,l=H.insertBefore;uKQ===void 0&&(uKQ=document.createElement("template"));var b=uKQ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return eI_=X},
is:"tp-yt-iron-input",behaviors:[_.bc],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(){_.uc.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Uc(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Uc(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 X=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":X=/[0-9.,e-]/}return X},_bindValueChanged:function(X,H){H&&(X===void 0?H.value=null:X!==H.value&&(this.inputElement.value=X),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:X}))},
_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(X){var H=X.keyCode==19||X.keyCode==20||X.keyCode==45||X.keyCode==46||X.keyCode==144||X.keyCode==145||X.keyCode>32&&X.keyCode<41||X.keyCode>111&&X.keyCode<124;return!(X.keyCode==8||X.keyCode==9||X.keyCode==13||X.keyCode==27)&&!(X.charCode==0&&H)},
_onKeypress:function(X){if(this.allowedPattern||this.inputElement.type==="number"){var H=this._patternRegExp;if(H&&!(X.metaKey||X.ctrlKey||X.altKey)){this._patternAlreadyChecked=!0;var l=String.fromCharCode(X.charCode);this._isPrintable(X)&&!H.test(l)&&(X.preventDefault(),this._announceInvalidCharacter("Invalid character "+l+" not entered."))}}},
_checkPatternValidity:function(){var X=this._patternRegExp;if(!X)return!0;for(var H=0;H<this.inputElement.value.length;H++)if(!X.test(this.inputElement.value[H]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var X=this.inputElement.checkValidity();X&&(this.required&&this.bindValue===""?X=!1:this.hasValidator()&&(X=_.bc.validate.call(this,this.bindValue)));this.invalid=!X;this.fire("iron-input-validate");return X},
_announceInvalidCharacter:function(X){this.fire("iron-announce",{text:X})},
_computeValue:function(X){return X}});var yf_;var VHF;var PKQ=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),fOQ=PKQ&&PKQ[1]>=8;
_.wT({_template:function(){if(VHF!==void 0)return VHF;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;yf_===void 0&&(yf_=document.createElement("template"));var b=yf_;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return VHF=X},
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:[izm,_.$s,_.ni_,nl6],_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 _.Uc(_.Uc(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var X=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,X-this._physicalCount)},set _virtualStart(X){X=this._clamp(X,0,this._maxVirtualStart);this.grid&&(X-=X%this._itemsPerRow);this._virtualStartVal=X},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(X){X%=this._physicalCount;X<0&&(X=this._physicalCount+X);this.grid&&(X-=X%this._itemsPerRow);this._physicalStartVal=X},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(X){this._physicalCountVal=X},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 X=this._firstVisibleIndexVal;if(X==null){var H=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
X=this._iterateItems(function(l,b){H+=this._getPhysicalSizeIncrement(l);if(H>this._scrollPosition)return this.grid?b-b%this._itemsPerRow:b;if(this.grid&&this._virtualCount-1===b)return b-b%this._itemsPerRow})||0}return X},
get lastVisibleIndex(){var X=this._lastVisibleIndexVal;if(X==null){if(this.grid)X=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var H=this._physicalTop+this._scrollOffset;this._iterateItems(function(l,b){H<this._scrollBottom&&(X=b);H+=this._getPhysicalSizeIncrement(l)})}this._lastVisibleIndexVal=X}return X},
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,_.R1);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(X){this.style.webkitOverflowScrolling=X===this?"touch":"";this.style.overflowY=X===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.R1)},
updateViewportBoundaries:function(){var X=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(X["padding-top"],10);this._isRTL=X.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var X=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),H=X-this._scrollPosition,l=H>=0;this._scrollPosition=X;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(H)>this._physicalSize&&this._physicalSize>0?(H-=this._scrollOffset,l=Math.round(H/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=l,this._physicalStart+=l,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(X=this._getReusables(l),l?(this._physicalTop=X.physicalTop,this._virtualStart+=X.indexes.length,this._physicalStart+=X.indexes.length):(this._virtualStart=this._virtualStart-X.indexes.length,this._physicalStart=this._physicalStart-X.indexes.length),this._update(X.indexes,l?null:X.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),DC))},
_getReusables:function(X){var H=[],l=this._hiddenContentSize*this._ratio,b=this._virtualStart,U=this._virtualEnd,K=this._physicalCount,w=this._physicalTop+this._scrollOffset;var d=this._physicalBottom+this._scrollOffset;var B=this._scrollPosition,q=this._scrollBottom;if(X){var u=this._physicalStart;d=B-w}else u=this._physicalEnd,d-=q;for(;;){var e=this._getPhysicalSizeIncrement(u);d-=e;if(H.length>=K||d<=l)break;if(X){if(U+H.length+1>=this._virtualCount)break;if(w+e>=B-this._scrollOffset)break;H.push(u);
w+=e;u=(u+1)%K}else{if(b-H.length<=0)break;if(w+this._physicalSize-e<=q)break;H.push(u);w-=e;u=u===0?K-1:u-1}}return{indexes:H,physicalTop:w-this._scrollOffset}},
_update:function(X,H){if(!(X&&X.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(X);this._updateMetrics(X);if(H)for(;H.length;)X=H.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(X);this._positionItems();this._updateScrollerSize()}},
_createPool:function(X){this._ensureTemplatized();var H,l=Array(X);for(H=0;H<X;H++){var b=this.stamp(null);l[H]=b.root.querySelector("*");this._itemsParent.appendChild(b.root)}return l},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(X){X=this._clamp(this._physicalCount+X,3,this._virtualCount-this._virtualStart);X=this._convertIndexToCompleteRow(X);if(this.grid){var H=X%this._itemsPerRow;H&&X-H<=this._physicalCount&&(X+=this._itemsPerRow);X-=H}X-=this._physicalCount;H=Math.round(this._physicalCount*.5);if(!(X<0)){if(X>0){H=window.performance.now();[].push.apply(this._physicalItems,this._createPool(X));for(var l=0;l<X;l++)this._physicalSizes.push(0);this._physicalCount+=X;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=X);this._update();this._templateCost=(window.performance.now()-H)/X;H=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||H===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,H)),C9F):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,H),DC))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var X=this._getReusables(!0);this._physicalTop=X.physicalTop;this._virtualStart+=X.indexes.length;this._physicalStart+=X.indexes.length;this._update(X.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 X={__key__:!0};X[this.as]=!0;X[this.indexAs]=!0;X[this.selectedAs]=!0;X.tabIndex=!0;this._instanceProps=X;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(X,H){typeof H!=="undefined"&&(this.notifyResize(),_.rb(),X&&this._updateGridMetrics())},
_itemsChanged:function(X){if(X.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,
_.R1);else if(X.path==="items.splices"){this._adjustVirtualIndex(X.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(X.value.indexSplices.some(function(l){return l.addedCount>0||l.removed.length>0})){var H=this._getActiveElement();
this.contains(H)&&H.blur()}X=X.value.indexSplices.some(function(l){return l.index+l.addedCount>=this._virtualStart&&l.index<=this._virtualEnd},this);
this._isClientFull()&&!X||this._debounce("_render",this._render,_.R1)}else X.path!=="items.length"&&this._forwardItemPath(X.path,X.value)},
_forwardItemPath:function(X,H){X=X.slice(6);var l=X.indexOf(".");l===-1&&(l=X.length);var b,U=this.modelForElement(this._offscreenFocusedItem),K=parseInt(X.substring(0,l),10);if(b=this._isIndexRendered(K)){var w=this._getPhysicalIndex(K);var d=this.modelForElement(this._physicalItems[w])}else U&&(d=U);d&&d[this.indexAs]===K&&(X=X.substring(l+1),X=this.as+(X?"."+X:""),d._setPendingPropertyOrPath(X,H,!1,!0),d._flushProperties&&d._flushProperties(),b&&(this._updateMetrics([w]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(X){X.forEach(function(H){H.removed.forEach(this._removeItem,this);H.index<this._virtualStart&&(H=Math.max(H.addedCount-H.removed.length,H.index-this._virtualStart),this._virtualStart+=H,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=H))},this)},
_removeItem:function(X){this.$.selector.deselect(X);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===X&&this._removeFocusedItem()},
_iterateItems:function(X,H){var l,b;if(arguments.length===2&&H)for(b=0;b<H.length;b++){var U=H[b];var K=this._computeVidx(U);if((l=X.call(this,U,K))!=null)return l}else{U=this._physicalStart;for(K=this._virtualStart;U<this._physicalCount;U++,K++)if((l=X.call(this,U,K))!=null)return l;for(U=0;U<this._physicalStart;U++,K++)if((l=X.call(this,U,K))!=null)return l}},
_computeVidx:function(X){return X>=this._physicalStart?this._virtualStart+(X-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+X},
_assignModels:function(X){this._iterateItems(function(H,l){var b=this._physicalItems[H],U=this.items&&this.items[l];if(U!=null){var K=this.modelForElement(b);K.__key__=null;this._forwardProperty(K,this.as,U);this._forwardProperty(K,this.selectedAs,this.$.selector.isSelected(U));this._forwardProperty(K,this.indexAs,l);this._forwardProperty(K,"tabIndex",this._focusedVirtualIndex===l?0:-1);this._physicalIndexForKey[K.__key__]=H;K._flushProperties&&K._flushProperties(!0);b.removeAttribute("hidden")}else b.setAttribute("hidden",
"")},X)},
_updateMetrics:function(X){_.rb();var H=0,l=0,b=this._physicalAverageCount,U=this._physicalAverage;this._iterateItems(function(K){l+=this._physicalSizes[K];this._physicalSizes[K]=this._physicalItems[K].offsetHeight;H+=this._physicalSizes[K];this._physicalAverageCount+=this._physicalSizes[K]?1:0},X);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(l=this._itemsPerRow===1?l:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+H-l,this._itemsPerRow=1);this._physicalAverageCount!==b&&(this._physicalAverage=Math.round((U*b+H)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var X=this._physicalTop;if(this.grid){var H=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(l,b){var U=Math.floor(b%this._itemsPerRow*this._itemWidth+H);this._isRTL&&(U*=-1);this.translate3d(U+"px",X+"px",0,this._physicalItems[l]);this._shouldRenderNextRow(b)&&(X+=this._rowHeight)})}else this._iterateItems(function(l){this.translate3d(0,X+"px",0,this._physicalItems[l]);
X+=this._physicalSizes[l]})},
_getPhysicalSizeIncrement:function(X){return this.grid?this._computeVidx(X)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[X]},
_shouldRenderNextRow:function(X){return X%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var X=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(X!==0){this._physicalTop=this._physicalTop-X;var H=this._scrollPosition;!fOQ&&H>0&&this._resetScrollPosition(H-X)}},
_resetScrollPosition:function(X){this.scrollTarget&&X>=0&&(this._scrollPosition=this._scrollTop=X)},
_updateScrollerSize:function(X){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((X=(X=(X=X||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(X){return this.scrollToIndex(this.items.indexOf(X))},
scrollToIndex:function(X){if(!(typeof X!=="number"||X<0||X>this.items.length-1)&&(_.rb(),this._physicalCount!==0)){X=this._clamp(X,0,this._virtualCount-1);if(!this._isIndexRendered(X)||X>=this._maxVirtualStart)this._virtualStart=this.grid?X-this._itemsPerRow*2:X-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var H=this._physicalStart,l=this._virtualStart,b=0,U=this._hiddenContentSize;l<X&&
b<=U;)b+=this._getPhysicalSizeIncrement(H),H=(H+1)%this._physicalCount,l++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+b);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)},_.R1)},
selectItem:function(X){return this.selectIndex(this.items.indexOf(X))},
selectIndex:function(X){if(!(X<0||X>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(X)){var H=this.modelForElement(this._physicalItems[this._getPhysicalIndex(X)]);H&&(H[this.selectedAs]=!0);this.updateSizeForIndex(X)}this.$.selector.selectIndex(X)}},
deselectItem:function(X){return this.deselectIndex(this.items.indexOf(X))},
deselectIndex:function(X){X<0||X>=this._virtualCount||(this._isIndexRendered(X)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(X)])[this.selectedAs]=!1,this.updateSizeForIndex(X)),this.$.selector.deselectIndex(X))},
toggleSelectionForItem:function(X){return this.toggleSelectionForIndex(this.items.indexOf(X))},
toggleSelectionForIndex:function(X){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(X):this.$.selector.isSelected(this.items[X]))?this.deselectIndex(X):this.selectIndex(X)},
clearSelection:function(){this._iterateItems(function(X){this.modelForElement(this._physicalItems[X])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(X){(X?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(X){var H=this.modelForElement(X.target);if(H){var l=_.Uc(X).path[0];X=this._getActiveElement();var b=this._physicalItems[this._getPhysicalIndex(H[this.indexAs])];if(l.localName!=="input"&&l.localName!=="button"&&l.localName!=="select"){l=H.tabIndex;H.tabIndex=-100;var U=X?X.tabIndex:-1;H.tabIndex=l;X&&b!==X&&b.contains(X)&&U!==-100||this.toggleSelectionForItem(H[this.as])}}},
_multiSelectionChanged:function(X){this.clearSelection();this.$.selector.multi=X},
updateSizeForItem:function(X){return this.updateSizeForIndex(this.items.indexOf(X))},
updateSizeForIndex:function(X){if(!this._isIndexRendered(X))return null;this._updateMetrics([this._getPhysicalIndex(X)]);this._positionItems();return null},
_manageFocus:function(){var X=this._focusedVirtualIndex;X>=0&&X<this._virtualCount?this._isIndexRendered(X)?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(X){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(X/this._itemsPerRow)*this._itemsPerRow:X},
_isIndexRendered:function(X){return X>=this._virtualStart&&X<=this._virtualEnd},
_isIndexVisible:function(X){return X>=this.firstVisibleIndex&&X<=this.lastVisibleIndex},
_getPhysicalIndex:function(X){return(this._physicalStart+(X-this._virtualStart))%this._physicalCount},
focusItem:function(X){this._focusPhysicalItem(X)},
_focusPhysicalItem:function(X){if(!(X<0||X>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(X)||this.scrollToIndex(X);var H=this._physicalItems[this._getPhysicalIndex(X)],l=this.modelForElement(H),b;l.tabIndex=-100;H.tabIndex===-100&&(b=H);b||(b=_.Uc(H).querySelector('[tabindex="-100"]'));l.tabIndex=0;this._focusedVirtualIndex=X;b&&b.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 X=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var H=this.stamp(null);this._focusBackfillItem=H.root.querySelector("*");this._itemsParent.appendChild(H.root)}this._offscreenFocusedItem=this._physicalItems[X];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[X]=this._focusBackfillItem;this._focusedPhysicalIndex=X;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var X=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),H=this._physicalItems[X];if(H){var l=this.modelForElement(H),b=this.modelForElement(this._offscreenFocusedItem);l[this.as]===b[this.as]?(this._focusBackfillItem=H,l.tabIndex=-1,this._physicalItems[X]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(X){X=this.modelForElement(X.target);var H=this.modelForElement(this._focusedItem),l=this._offscreenFocusedItem!==null,b=this._focusedVirtualIndex;X&&(H===X?this._isIndexVisible(b)||this.scrollToIndex(b):(this._restoreFocusedItem(),H&&(H.tabIndex=-1),X.tabIndex=0,this._focusedVirtualIndex=b=X[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(b),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],l&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(X){switch(X.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&X.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&&X.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(X)}},
_clamp:function(X,H,l){return Math.min(l,Math.max(H,X))},
_debounce:function(X,H,l){this._debouncers=this._debouncers||{};this._debouncers[X]=_.Qy(this._debouncers[X],l,H.bind(this));_.TH(this._debouncers[X])},
_forwardProperty:function(X,H,l){X._setPendingProperty(H,l)},
_forwardHostPropV2:function(X,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(l){l&&this.modelForElement(l).forwardHostProp(X,H)},this)},
_notifyInstancePropV2:function(X,H,l){AGO(this.as,H)&&(X=X[this.indexAs],H==this.as&&(this.items[X]=l),this.notifyPath(ww(this.as,"items."+X,H),l))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(X,H,l){H.indexOf(this.as+".")===0&&this.notifyPath("items."+X.__key__+"."+H.slice(this.as.length+1),l)},
_forwardParentPath:function(X,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(l){l&&this.modelForElement(l).notifyPath(X,H)},this)},
_forwardParentProp:function(X,H){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(l){l&&(this.modelForElement(l)[X]=H)},this)},
_getActiveElement:function(){var X=this._itemsParent.node.domHost;return _.Uc(X?X.root:document).activeElement},
_scrollTargetChanged:function(X,H){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(H)if(X==="document")this.scrollTarget=this._doc;else if(typeof X==="string"){var l,b;this.scrollTarget=(H=(b=(l=this.domHost)==null?void 0:l.polymerController)!=null?b:this.domHost)&&H.$?H.$[X]:_.Uc(this.ownerDocument).querySelector("#"+X)}else this._isValidScrollTarget()&&(this._oldScrollTarget=X,this._toggleScrollListener(this._shouldHaveListener,X))}});var p0Y;var SQC;var zIv=function(X,H,l,b){X-=l;H-=b;return Math.sqrt(X*X+H*H)},not=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
VcL.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var Pc8=function(X){X.maxRadius=0;X.mouseDownStart=0;X.mouseUpStart=0;X.xStart=0;X.yStart=0;X.xEnd=0;X.yEnd=0;X.containerMetrics=new VcL(X.element)};
fDy.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var X=not()-this.mouseDownStart;this.mouseUpStart&&(X-=this.mouseUpElapsed);return X},get mouseUpElapsed(){return this.mouseUpStart?not()-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 X=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(X*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-X/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 X=this.radius/(this.containerMetrics.size/2);var H=this.xNow-this.containerMetrics.width/2;var l=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+H+"px, "+l+"px)";this.waveContainer.style.transform="translate3d("+H+"px, "+l+"px, 0)";this.wave.style.webkitTransform="scale("+X+","+X+")";this.wave.style.transform="scale3d("+X+","+X+",1)"},
downAction:function(X){var H=this.containerMetrics.width/2,l=this.containerMetrics.height/2;Pc8(this);this.mouseDownStart=not();this.center?(this.xStart=H,this.yStart=l):(this.xStart=X?X.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=X?X.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=H,this.yEnd=l);X=this.containerMetrics;H=this.xStart;l=this.yStart;this.maxRadius=Math.max(zIv(H,l,0,0),zIv(H,l,
X.width,0),zIv(H,l,0,X.height),zIv(H,l,X.width,X.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=not())},
remove:function(){_.Uc(_.Uc(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.wT({_template:function(){if(SQC!==void 0)return SQC;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;p0Y===void 0&&(p0Y=document.createElement("template"));var b=p0Y;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return SQC=X},
is:"tp-yt-paper-ripple",behaviors:[_.Yw],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(){_.Uc(this).parentNode.nodeType==11?this.keyEventTarget=_.Uc(this).getOwnerRoot().host:this.keyEventTarget=_.Uc(this).parentNode;var X=this.keyEventTarget;this.listen(X,"up","uiUpAction");this.listen(X,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(X){X.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var X=0;X<this.ripples.length;++X)if(!this.ripples[X].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(X){this.noink||this.downAction(X)},
downAction:function(X){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(X),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(X){this.noink||this.upAction(X)},
upAction:function(X){this.holdDown||(this.ripples.forEach(function(H){H.upAction(X)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var X=0;X<this.ripples.length;++X){var H=this.ripples[X];H.isOpacityFullyDecayed&&!H.isRestingAtMaxRadius&&this.removeRipple(H)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var X=new fDy(this);_.Uc(this.$.waves).appendChild(X.waveContainer);this.$.background.style.backgroundColor=X.color;this.ripples.push(X);this._setAnimating(!0);return X},
removeRipple:function(X){var H=this.ripples.indexOf(X);H<0||(this.ripples.splice(H,1),X.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var X;for(X=0;X<this.ripples.length;++X){var H=this.ripples[X];H.draw();this.$.background.style.opacity=H.outerOpacity;H.isOpacityFullyDecayed&&!H.isRestingAtMaxRadius&&this.removeRipple(H)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(X,H){H!==void 0&&(X?this.downAction():this.upAction())}});var p7={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(X){As._downHandler.call(this,X);this.pressed&&this.ensureRipple(X)},
ensureRipple:function(X){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var H=this._rippleContainer||this.root;H&&_.Uc(H).appendChild(this._ripple);if(X){H=_.Uc(this._rippleContainer||this);var l=_.Uc(X).rootTarget;H.deepContains(l)&&this._ripple.uiDownAction(X)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(X){this.hasRipple()&&(this._ripple.noink=X)}};var kaQ={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 X=1;this.disabled?X=0:this.active||this.pressed?X=4:this.receivedFocusFromKeyboard&&(X=3);this._setElevation(X)},
_computeKeyboardClass:function(X){this.toggleClass("keyboard-focus",X)},
_spaceKeyDownHandler:function(X){As._spaceKeyDownHandler.call(this,X);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(X){As._spaceKeyUpHandler.call(this,X);this.hasRipple()&&this._ripple.uiUpAction()}},xOQ=[sJH,
_.Ie,p7,kaQ];_.DOv={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(X){X&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=X)},
_createRipple:function(){var X=p7._createRipple();X.id="ink";X.setAttribute("center","");X.classList.add("circle");return X}};
_.tHH=[sJH,_.Ie,p7,_.DOv];_.WLt=[_.tHH,eEv,{_checkedChanged:function(){ukH._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){p7._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Eov;var goH;var Gaq=function(){};
_.R=Gaq.prototype;_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._buttonStateChanged=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._createRipple=function(){};
_.R._noinkChanged=function(){};
_.R._computeKeyboardClass=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
_.R._setElevation=function(){};
Gaq=_.wT({_template:function(){if(goH!==void 0)return goH;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
var H=X.content,l=H.insertBefore;Eov===void 0&&(Eov=document.createElement("template"));var b=Eov;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return goH=X},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[xOQ],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?kaQ._calculateElevation.apply(this):this._setElevation(0)}});var aO6;var Zx9;var ixt={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(X){_.P("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(X)},
_onDialogClickWrapped:function(X){_.P("dialog_behavior_no_tap_killswitch")||this._onDialogClick(X)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(X,H){H&&(X?(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(X){if(X){var H;((H=this.hostElement)!=null?H:this).setAttribute("aria-modal","true")}else{var l;((l=this.hostElement)!=null?l:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(X){this.closingReason=this.closingReason||{};this.closingReason.confirmed=X},
_onDialogClick:function(X){for(var H=_.Uc(X).path,l=0,b,U=H.indexOf((b=this.hostElement)!=null?b:this);l<U;l++)if(b=H[l],b.hasAttribute&&(b.hasAttribute("dialog-dismiss")||b.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(b.hasAttribute("dialog-confirm"));this.close();X.stopPropagation();break}}},vo9=[_.f7,
ixt];var OxY=document.createElement("template");_.n(OxY,'<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(OxY.content);var mO_=document.createElement("template");_.n(mO_,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(mO_.content);_.wT({_template:function(){if(Zx9!==void 0)return Zx9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
var H=X.content,l=H.insertBefore;aO6===void 0&&(aO6=document.createElement("template"));var b=aO6;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return Zx9=X},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[vo9,kot],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 Q4t;var T1z;_.wT({_template:function(){if(T1z!==void 0)return T1z;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Q4t===void 0&&(Q4t=document.createElement("template"));var b=Q4t;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return T1z=X},
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 X,H,l;if(((X=window.ShadyDOM)==null?void 0:X.noPatch)!==!0&&((H=window.ShadyDOM)==null?void 0:H.noPatch)!=="on-demand"||((l=this.__shady_parentNode)==null?void 0:l.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(ixt)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var N1Y=_.W8(['<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>']),cf_=_.WrH(N1Y);cf_.setAttribute("style","display: none;");document.head.appendChild(cf_.content);var j4z;var rfF;var JfY;var LLQ;_.wT({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[RS],configure:function(X){var H=X.node,l=H.getBoundingClientRect().height;return this._effect=new KeyframeEffect(H,[{height:l/2+"px"},{height:l+"px"}],this.timingFromConfig(X))}});
_.wT({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[RS],configure:function(X){var H=X.node,l=H.getBoundingClientRect().width;return this._effect=new KeyframeEffect(H,[{width:l/2+"px"},{width:l+"px"}],this.timingFromConfig(X))}});
_.wT({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[RS],configure:function(X){var H=X.node,l=H.getBoundingClientRect().width;return this._effect=new KeyframeEffect(H,[{width:l+"px"},{width:l-l/20+"px"}],this.timingFromConfig(X))}});
_.wT({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[RS],configure:function(X){var H=X.node,l=H.getBoundingClientRect().height;this.setPrefixedProperty(H,"transformOrigin","0 0");return this._effect=new KeyframeEffect(H,[{height:l+"px",transform:"translateY(0)"},{height:l/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(X))}});var Sc={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},YQ9=function(){};
_.R=YQ9.prototype;_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._focusBlurHandler=function(){};
_.R._changedControlState=function(){};
_.R._setFocused=function(){};
YQ9=_.wT({_template:function(){if(LLQ!==void 0)return LLQ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;JfY===void 0&&(JfY=document.createElement("template"));var b=JfY;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return LLQ=X},
is:"tp-yt-paper-menu-button",behaviors:[_.Yw,_.Ie],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:Sc.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Sc.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:Sc.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 X=_.Uc(this.$.content).getDistributedNodes(),H=0,l=X.length;H<l;H++)if(X[H].nodeType===Node.ELEMENT_NODE)return X[H]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(X,H){X?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):H!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(X){_.Ie._disabledChanged.apply(this,arguments);X&&this.opened&&this.close()},
__onIronOverlayCanceled:function(X){var H=this.$.trigger;_.Uc(X.detail).path.indexOf(H)>-1&&X.preventDefault()}});
Object.keys(Sc).forEach(function(X){YQ9[X]=Sc[X]});var IOG=_.XW.IronButtonState,AfD=(0,_.oe)(HTMLElement);
_.wT({_template:function(){if(rfF!==void 0)return rfF;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;j4z===void 0&&(j4z=document.createElement("template"));var b=j4z;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return rfF=X},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[IOG,_.Ie,p7,_.H9,_.bc],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(X){var H=(0,_.q0)(this);H.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:X});H.shadowRoot.appendChild(X);return AfD.prototype._attachDom.call(this,X)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var X=this.contentElement;X&&X.selectedItem&&this._setSelectedItem(X.selectedItem)},
get contentElement(){for(var X=_.Uc(this.$.content).getDistributedNodes(),H=0,l=X.length;H<l;H++)if(X[H].nodeType===Node.ELEMENT_NODE)return X[H]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(X){this._setSelectedItem(X.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(X){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X)===this&&this.open()},
_selectedItemChanged:function(X){var H="";X?H=X.label||X.getAttribute("label")||X.textContent.trim():H="";this.value=H;this._setSelectedItemLabel(H)},
_computeMenuVerticalOffset:function(X,H){return H?H:X?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var X=this.opened?"true":"false",H=this.contentElement;H&&H.setAttribute("aria-expanded",X)},
_computeLabelClass:function(X,H,l){var b="label";if(X)l&&(b+=" label-is-hidden");else if(l||H)b+=" label-is-floating";return b},
_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 XRD;var HuY;_.wT({is:"tp-yt-paper-icon-button",_template:function(){if(HuY!==void 0)return HuY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;XRD===void 0&&(XRD=document.createElement("template"));var b=XRD;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return HuY=X},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.tHH],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(X,H){var l=this.getAttribute("aria-label");l&&H!=l||this.setAttribute("aria-label",X)}});var lNF;var o19;_.zU=[sJH,_.Ie,{hostAttributes:{role:"option",tabindex:"0"}}];_.wT({_template:function(){if(o19!==void 0)return o19;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;lNF===void 0&&(lNF=document.createElement("template"));var b=lNF;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return o19=X},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.zU]});var bu9;var UQv;var $QF={attached:function(){this.fire("addon-attached")},
update:function(){}};var Kxq=1,RRt=1,CiY=1,wRC=[_.Ie,_.Yw,{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();!GH&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(X,H){X?X=X+" "+H:X=H;return X},
_onAddonAttached:function(X){X=_.Uc(X).rootTarget;if(X.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,X.id);else{var H="paper-input-add-on-"+RRt++;X.id=H;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,H)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(X){_.Ie._focusBlurHandler.call(this,X);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var X=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",X);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(X){try{var H=this.inputElement.selectionStart;this.value=X;this.inputElement.selectionStart=H;this.inputElement.selectionEnd=H}catch(l){this.value=X}},
_computeAlwaysFloatLabel:function(X,H){return H||X},
_updateAriaLabelledBy:function(){var X=_.Uc(this.root).querySelector("label");if(X){if(X.id)var H=X.id;else H="paper-input-label-"+Kxq++,X.id=H;this._ariaLabelledBy=H}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+CiY++)},
_onChange:function(X){this.shadowRoot&&this.fire(X.type,{sourceEvent:X},{node:this,bubbles:X.bubbles,cancelable:X.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var X=document.activeElement;X instanceof HTMLElement&&X!==document.body&&X!==document.documentElement||this._focusableElement.focus()}}}];var dQz;var hR9;_.wT({_template:function(){if(hR9!==void 0)return hR9;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;dQz===void 0&&(dQz=document.createElement("template"));var b=dQz;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return hR9=X},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[$QF],properties:{_charCounterStr:{type:String,value:"0"}},update:function(X){if(X.inputElement){X.value=X.value||"";var H=X.value.toString().length.toString();X.inputElement.hasAttribute("maxlength")&&(H+="/"+X.inputElement.getAttribute("maxlength"));this._charCounterStr=H}}});var Fx6;var BB_;_.wT({_template:function(){if(BB_!==void 0)return BB_;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Fx6===void 0&&(Fx6=document.createElement("template"));var b=Fx6;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return BB_=X},
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 UL(this.attrForValue)},get _inputElement(){return _.Uc(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(X){this._addons||(this._addons=[]);X=X.target;this._addons.indexOf(X)===-1&&(this._addons.push(X),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(X){this._handleValueAndAutoValidate(X.target)},
_onValueChanged:function(X){var H=X.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,H.value===void 0||H.value===""))return;this._handleValueAndAutoValidate(X.target)},
_handleValue:function(X){var H=this._inputElementValue;H||H===0||X.type==="number"&&!X.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:X,value:H,invalid:this.invalid})},
_handleValueAndAutoValidate:function(X){this.autoValidate&&X&&(this.invalid=!(X.validate?X.validate(this._inputElementValue):X.checkValidity()));this._handleValue(X)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(X){if(this._addons)for(var H,l=0;H=this._addons[l];l++)H.update(X)},
_computeInputContentClass:function(X,H,l,b,U){var K="input-content";X?(U&&(K+=" label-is-hidden"),b&&!this.noUnfloatedLabelError&&(K+=" is-invalid")):(X=this.querySelector("label"),H||U?(K+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",b?K+=" is-invalid":l&&(K+=" label-is-highlighted")):(X&&(this.$.labelAndInputContainer.style.position="relative"),b&&!this.noUnfloatedLabelError&&(K+=" is-invalid")));l&&(K+=" focused");return K},
_computeUnderlineClass:function(X,H){var l="underline";H?l+=" is-invalid":X&&(l+=" is-highlighted");return l},
_computeAddOnContentClass:function(X,H){var l="add-on-content";H?l+=" is-invalid":X&&(l+=" is-highlighted");return l}});var q$Q;var su_;_.wT({_template:function(){if(su_!==void 0)return su_;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;q$Q===void 0&&(q$Q=document.createElement("template"));var b=q$Q;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return su_=X},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[$QF],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(X){this._setInvalid(X.invalid)}});_.wT({is:"tp-yt-paper-input",_template:function(){if(UQv!==void 0)return UQv;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;bu9===void 0&&(bu9=document.createElement("template"));var b=bu9;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return UQv=X},
behaviors:[wRC,_.H9],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 M1Y;var uEG;_.wT({_template:function(){if(uEG!==void 0)return uEG;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=
X.content,l=H.insertBefore;M1Y===void 0&&(M1Y=document.createElement("template"));var b=M1Y;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return uEG=X},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.zU]});var eRz;var y8G;_.wT({_template:function(){if(y8G!==void 0)return y8G;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
var H=X.content,l=H.insertBefore;eRz===void 0&&(eRz=document.createElement("template"));var b=eRz;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return y8G=X},
is:"tp-yt-paper-item-body"});var V1q;var Pi6;var fNQ=function(){};
_.R=fNQ.prototype;_.R.indexOf=function(){};
_.R.selectPrevious=function(){};
_.R.selectNext=function(){};
_.R.selectIndex=function(){};
_.R.forceSynchronousItemUpdate=function(){};
_.R._checkFallback=function(){};
_.R._addListener=function(){};
_.R._removeListener=function(){};
_.R._activateEventChanged=function(){};
_.R._updateItems=function(){};
_.R._selectSelected=function(){};
_.R._filterItem=function(){};
_.R._valueToItem=function(){};
_.R._valueToIndex=function(){};
_.R._indexToValue=function(){};
_.R._valueForItem=function(){};
_.R._observeItems=function(){};
_.R._itemActivate=function(){};
_.R.multiChanged=function(){};
_.R._updateAttrForSelected=function(){};
_.R._updateSelected=function(){};
_.R._selectMulti=function(){};
_.R._selectionChange=function(){};
_.R._toggleSelected=function(){};
_.R._valuesToItems=function(){};
_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R.select=function(){};
_.R._resetTabindices=function(){};
_.R._updateMultiselectable=function(){};
_.R._focusWithKeyboardEvent=function(){};
_.R._clearSearchText=function(){};
_.R._focusPrevious=function(){};
_.R._focusNext=function(){};
_.R._applySelection=function(){};
_.R._focusedItemChanged=function(){};
_.R._onIronItemsChanged=function(){};
_.R._onShiftTabDown=function(){};
_.R._onFocus=function(){};
_.R._onUpKey=function(){};
_.R._onDownKey=function(){};
_.R._onEscKey=function(){};
_.R._onKeydown=function(){};
_.R._activateHandler=function(){};
_.R._disabledChanged=function(){};
_.R._setSelectedItem=function(){};
_.R._setItems=function(){};
_.R._setSelectedItems=function(){};
_.R._setFocusedItem=function(){};
fNQ=_.wT({_template:function(){if(Pi6!==void 0)return Pi6;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
var H=X.content,l=H.insertBefore;V1q===void 0&&(V1q=document.createElement("template"));var b=V1q;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return Pi6=X},
is:"tp-yt-paper-listbox",behaviors:[fFv],hostAttributes:{role:"listbox"}});var pR_;var S$H;var zRQ={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(X,H){return[X||H?"active":"",H?"cooldown":""].join(" ")},
__activeChanged:function(X,H){this.__setAriaHidden(!X);this.__coolingDown=!X&&H},
__altChanged:function(X){this.setAttribute("aria-label",X||"loading")},
__setAriaHidden:function(X){X?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.wT({_template:function(){if(S$H!==void 0)return S$H;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;pR_===void 0&&(pR_=document.createElement("template"));var b=pR_;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return S$H=X},
is:"tp-yt-paper-spinner",behaviors:[zRQ]});var n1z;var kjC;_.wT({_template:function(){if(kjC!==void 0)return kjC;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;n1z===void 0&&(n1z=document.createElement("template"));var b=n1z;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return kjC=X},
is:"tp-yt-paper-spinner-lite",behaviors:[zRQ]});var xQG;var DQC;_.wT({_template:function(){if(DQC!==void 0)return DQC;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;xQG===void 0&&(xQG=document.createElement("template"));var b=xQG;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return DQC=X},
is:"tp-yt-paper-tab",behaviors:[_.Ie,_.XW.IronButtonState,p7],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 X=_.Uc(this).parentNode;return!!X&&!!X.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(X){if(this.link){var H=this.queryEffectiveChildren("a");H&&X.target!==H&&H.click()}}});var t1q;var WxH;var E19=_.W8(['<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>']),g16=_.WrH(E19);document.head.appendChild(g16.content);_.wT({_template:function(){if(WxH!==void 0)return WxH;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;t1q===void 0&&(t1q=document.createElement("template"));var b=t1q;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return WxH=X},
is:"tp-yt-paper-tabs",behaviors:[_.$s,_.SJz],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(X){_.Uc(this).querySelectorAll("tp-yt-paper-tab").forEach(X?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(X){X.setAttribute("noink","")},
_removeNoinkAttribute:function(X){X.removeAttribute("noink")},
_computeScrollButtonClass:function(X,H,l,b){return!H||l?"hidden":X?b?"hidden":"not-visible":""},
_computeTabsContentClass:function(X,H){var l="tabs-content";X&&(l+=" scrollable");if(!X||H)l+=" fit-container";return l},
_computeSelectionBarClass:function(X,H){var l="selection-bar";X?l+=" hidden":H&&(l+=" align-bottom");return l},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(X){return""+X},
_onIronSelect:function(X){this._tabChanged(X.detail.item,this._previousTab);this._previousTab=X.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();_.U7._activateHandler.apply(this,arguments)},
_scheduleActivation:function(X,H){this._pendingActivationItem=X;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,H)},
_delayedActivationHandler:function(){var X=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;X.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(X){X.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(X,H){this.scrollable&&this._affectScroll(H&&-H.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(X){this.$.tabsContainer.scrollLeft+=X;X=this.$.tabsContainer.scrollLeft;this._leftHidden=X===0||this.hideScrollButtons;this._rightHidden=X===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(X,H){if(X){var l=this.$.tabsContent.getBoundingClientRect(),b=l.width,U=X.getBoundingClientRect();l=U.left-l.left;this._pos={width:this._calcPercent(U.width,b),left:this._calcPercent(l,b)};if(this.noSlide||H==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var K=H.getBoundingClientRect();H=this.items.indexOf(H);X=this.items.indexOf(X);this.$.selectionBar.classList.add("expand");
X=H<X;this._isRTL&&(X=!X);X?this._positionBar(this._calcPercent(U.left+U.width-K.left,b)-5,this._left):this._positionBar(this._calcPercent(K.left+K.width-U.left,b)-5,this._calcPercent(l,b)+5);this.scrollable&&this._scrollToSelectedIfNeeded(U.width,l)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(X,H){H-=this.$.tabsContainer.scrollLeft;H<0?this.$.tabsContainer.scrollLeft+=H:(H+=X-this.$.tabsContainer.offsetWidth,H>0&&(this.$.tabsContainer.scrollLeft+=H))},
_calcPercent:function(X,H){return 100*X/H},
_positionBar:function(X,H){X=X||0;H=H||0;this._width=X;this._left=H;this.transform("translateX("+H+"%) scaleX("+X/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var X=this.$.selectionBar.classList;X.contains("expand")?(X.remove("expand"),X.add("contract"),this._positionBar(this._pos.width,this._pos.left)):X.contains("contract")&&X.remove("contract")}});var Gj6;var aNz;_.wT({_template:function(){if(aNz!==void 0)return aNz;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Gj6===void 0&&(Gj6=document.createElement("template"));var b=Gj6;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return aNz=X},
is:"tp-yt-paper-textarea",behaviors:[wRC,_.H9],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(X){this.$.input.textarea.selectionStart=X},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(X){this.$.input.textarea.selectionEnd=X},_ariaLabelledByChanged:function(X){this._focusableElement.setAttribute("aria-labelledby",X)},
_ariaDescribedByChanged:function(X){this._focusableElement.setAttribute("aria-describedby",X)},
get _focusableElement(){return this.inputElement.textarea}});var Zu_;var iuY;/*

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 v1D=function(){};
_.R=v1D.prototype;_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._noinkChanged=function(){};
_.R._focusedChanged=function(){};
_.R.registered=function(){};
_.R._invalidChanged=function(){};
_.R.hasValidator=function(){};
_.R.validate=function(){};
_.R._getValidity=function(){};
_.R._requiredChanged=function(){};
_.R._valueChanged=function(){};
_.R._checkedChanged=function(){};
_.R._buttonStateChanged=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
v1D=_.wT({is:"tp-yt-paper-toggle-button",_template:function(){if(iuY!==void 0)return iuY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Zu_===void 0&&(Zu_=document.createElement("template"));var b=Zu_;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return iuY=X},
behaviors:[_.WLt],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");_.N0(this,function(){_.xH(this,"pan-y")})},
_ontrack:function(X){X=X.detail;X.state==="start"?this._trackStart(X):X.state==="track"?this._trackMove(X):X.state==="end"&&this._trackEnd(X)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(X){X=X.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+X:X)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+X:X));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 X=p7._createRipple();X.id="ink";X.setAttribute("recenters","");X.classList.add("circle","toggle-ink");return X}});var Out;var mQD;_.wT({_template:function(){if(mQD!==void 0)return mQD;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Out===void 0&&(Out=document.createElement("template"));var b=Out;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return mQD=X},
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 X=_.Uc(this).parentNode,H=_.Uc(this).getOwnerRoot(),l;this.for?l=_.Uc(H).querySelector("#"+this.for):l=X.nodeType==Node.DOCUMENT_FRAGMENT_NODE?H.host:X;return l},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(X){X==="entry"?this.show():X==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Uc(this).textContent.trim()===""){for(var X=!0,H=_.Uc(this).getEffectiveChildNodes(),l=0;l<H.length;l++)if(H[l].textContent.trim()!==""){X=!1;break}if(X)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 X=this.offset;this.marginTop!=14&&this.offset==14&&(X=this.marginTop);var H=this.offsetParent.getBoundingClientRect(),l=this._target.getBoundingClientRect(),b=this.getBoundingClientRect(),U=(l.width-b.width)/2,K=(l.height-b.height)/2,w=l.left-H.left,d=l.top-H.top;switch(this.position){case "top":var B=w+U;var q=d-b.height-X;break;case "bottom":B=w+U;q=d+l.height+X;break;case "left":B=w-b.width-X;q=d+K;break;case "right":B=w+l.width+
X,q=d+K}this.fitToVisibleBounds?(H.left+B+b.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,B)+"px",this.style.right="auto"),H.top+q+b.height>window.innerHeight?(this.style.bottom=H.height+"px",this.style.top="auto"):(this.style.top=Math.max(-H.top,q)+"px",this.style.bottom="auto")):(this.style.left=B+"px",this.style.top=q+"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(X){X!==500&&this.updateStyles({"--paper-tooltip-delay-in":X+"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(X){if(X==="entry"&&this.animationEntry!=="")return this.animationEntry;if(X==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[X]&&typeof this.animationConfig[X][0].name==="string"){if(this.animationConfig[X][0].timing&&this.animationConfig[X][0].timing.delay&&this.animationConfig[X][0].timing.delay!==0){var H=this.animationConfig[X][0].timing.delay;X==="entry"?this.updateStyles({"--paper-tooltip-delay-in":H+"ms"}):X==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":H+
"ms"})}return this.animationConfig[X][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 Qu9=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Qu9,_.sU);var TBF=_.xn(Qu9,[0,_.N7]);var n7=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(n7,_.sU);var NBH=[3,4],c8D=[5,6];var juD=[0,NBH,c8D,_.NO,-1,_.mq,_.c0,-1,Ul_,$l9];var r8_=_.xn(n7,juD),J89=_.tb(juD);var Lxv=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Lxv,_.sU);var Y$_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Y$_,_.sU);var IND=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(IND,_.sU);var A8q=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(A8q,_.sU);var Xtq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Xtq,_.sU);var ks=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(ks,_.sU);ks.prototype.getSource=function(){return _.M7(this,1)};
ks.prototype.getMessage=function(){return _.sC(this,4)};
ks.prototype.getData=function(){return _.Al(this,Xtq,8)};var H5F=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(H5F,_.sU);var xs=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(xs,_.sU);var DD=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(DD,_.sU);var tI=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(tI,_.sU);tI.prototype.getUrl=function(){return _.sC(this,1)};
tI.prototype.setUrl=function(X){return _.KY(this,1,X)};
tI.prototype.hasUrl=function(){return _.DA(_.be(this,1))!=null};var ldY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(ldY,_.sU);var oP9=[3];var b5_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(b5_,_.sU);var W9=function(X){var H=new b5_;return _.X$(H,2,X)};
b5_.prototype.getLanguage=function(){return e5(this,4,E7)};
var USH=function(X){var H=W9(1);return _.G2(H,6,E7,X)},E7=[3,
4,5,6];var $S_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S($S_,_.sU);var gM=function(X){var H=new $S_;return _.X$(H,1,X)},GU=function(X,H){return _.G2(X,2,KTv,H)},KTv=[2,
3,4,5];var Rvz=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Rvz,_.sU);var aS=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(aS,_.sU);var CZH=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(CZH,_.sU);var wtY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(wtY,_.sU);var dS_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(dS_,_.sU);var hvt=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(hvt,_.sU);var FT_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(FT_,_.sU);var BzQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(BzQ,_.sU);var ZD=function(X){return _.Al(X,DD,5)};var qd_=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(qd_,_.sU);qd_.prototype.getValue=function(){return BC(this,1)};var sMQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(sMQ,_.sU);var ic=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(ic,_.sU);ic.prototype.getMetadata=function(){return _.ys(this,hvt,7,v9)};
ic.prototype.hasMetadata=function(){return _.$g(this,hvt,7,v9)};
var MzQ=_.wJb(ic),v9=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var O7=function(X){this.JSC$12488_name_=X;this.files_=[];this.directories_=[];this.directoryMap_={}};
O7.prototype.getName=function(){return this.JSC$12488_name_};var Q0=function(X,H){this.callback_=H;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new O7("");uaq(this,X,this.rootDirectory_);mV(this)},uaq=function(X,H,l){for(var b=0;b<H.length;b++){var U=H[b];
U.isFile?(X.fileOps_++,U.file((0,_.K8)(X.handleFileSuccess_,X,l),(0,_.K8)(X.handleFileError_,X))):X.unscannedDirectories_.push(new ev_(U,l))}},mV=function(X){if(X.unscannedDirectories_.length>0&&X.directoryOps_<5&&!X.hasError_){X.directoryOps_++;
var H=X.unscannedDirectories_.shift(),l=H.entry,b=new O7(l.name);H=H.parent;H.directoryMap_[b.getName()]=b;H.directories_.push(b);l=l.createReader();l.readEntries((0,_.K8)(X.handleDirectorySuccess_,X,l,b),(0,_.K8)(X.handleDirectoryError_,X))}X.directoryOps_!=0||X.fileOps_!=0||X.unscannedDirectories_.length!=0&&!X.hasError_||X.callback_(X.rootDirectory_.files_,X.rootDirectory_.directories_,X.hasError_)};
Q0.prototype.handleDirectorySuccess_=function(X,H,l){uaq(this,l,H);l.length==0?(this.directoryOps_--,mV(this)):X.readEntries((0,_.K8)(this.handleDirectorySuccess_,this,X,H),(0,_.K8)(this.handleDirectoryError_,this))};
Q0.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;mV(this)};
Q0.prototype.handleFileSuccess_=function(X,H){X.files_.push(H);this.fileOps_--;mV(this)};
Q0.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;mV(this)};
var ev_=function(X,H){this.entry=X;this.parent=H};var TU=function(X){_.zB.call(this);_.n8(X,"drop",this.onObjectsDropped_,!1,this);_.n8(X,"dragenter",this.onFilesDragged_,!1,this);_.n8(X,"dragover",this.onFilesDragged_,!1,this);_.n8(X,"dragleave",this.onDragLeave_,!1,this);_.n8(X,"dragend",this.onDragLeave_,!1,this)};
_.To(TU,_.zB);var yP9=function(X,H){_.NF.call(this,"f");this.files=X;this.directories=H};
_.To(yP9,_.NF);var VzD=function(){_.NF.call(this,"h")};
_.To(VzD,_.NF);var PZH=function(){_.NF.call(this,"i")};
_.To(PZH,_.NF);var fdY=function(){_.NF.call(this,"g")};
_.To(fdY,_.NF);TU.prototype.onObjectsDropped_=function(X){var H=this;X.preventDefault();var l=X.event_.dataTransfer;if((X=l&&l.items)&&X.length>0&&X[0].webkitGetAsEntry){l=[];for(var b=[],U=0;U<X.length;U++){var K=X[U].webkitGetAsEntry();K?l.push(K):b.push(X[U])}new Q0(l,function(w,d,B){B?H.dispatchEvent(new fdY("Error occurred while reading from the file system.")):H.dispatchEvent(new yP9(w,d,b))})}else(X=l&&l.files)&&this.dispatchEvent(new yP9(Array.from(X),[]))};
TU.prototype.onFilesDragged_=function(X){X.type==="dragenter"&&this.dispatchEvent(new VzD);X.preventDefault()};
TU.prototype.onDragLeave_=function(){this.dispatchEvent(new PZH)};var ptQ=function(X,H){this.JSC$12511_name_=X;this.inputElement_=H};
ptQ.prototype.getName=function(){return this.JSC$12511_name_};
ptQ.prototype.getInputElement=function(){return this.inputElement_};var N8=function(X,H,l){H=H===void 0?"single_file":H;l=l===void 0?[]:l;_.zB.call(this);this.overlayTarget_=X;this.parentOverlay_=X!=null?X.parentNode:_.XJ("scotty-overlay-parent");this.selectorType_=H;this.acceptTypes_=l;this.overlay_=Sdt(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.S(N8,_.zB);
var Sdt=function(X,H,l,b){var U=document.createElement("input");U.setAttribute("type","file");U.setAttribute("name","Filedata");_.n8(U,"change",X.onFilesSelected_,!1,X);l==="multiple_file"&&(U.multiple="true");l==="single_directory"&&(U.webkitdirectory="true");b.length>0&&U.setAttribute("accept",b.join(","));U.style.position="absolute";U.style.overflow="hidden";U.style.height="0px";U.style.width="0px";U.style.opacity="0";U.setAttribute("aria-hidden","true");U.setAttribute("tabIndex",-1);if(X.overlayTarget_!=
null)return U.style.height=H.offsetHeight+"px",U.style.width=H.offsetWidth+"px",X.parentOverlay_&&(X.parentOverlay_.style.position="relative"),_.SH(U,H),DO(U,new _.DY(H.offsetLeft,H.offsetTop)),U;X.parentOverlay_.appendChild(U);return U};
N8.prototype.click=function(){this.overlay_.click()};
N8.prototype.onFilesSelected_=function(X){a:{try{var H=(new XMLHttpRequest).upload!==void 0;break a}catch(q){}H=!1}if(H){var l;X=Array.from((l=X.target.files)!=null?l:[]);l=[];if(this.selectorType_==="single_directory"&&(_.XQ||TT||_.Hf)){l=new O7("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(H=0;H<X.length;H++)for(var b=X[H],U=b.webkitRelativePath.split("/"),K=l,w=0;w<U.length;w++){var d=U[w];if(w==U.length-1){d!="."&&K.files_.push(b);break}var B=K.directoryMap_[d];B==void 0&&(d=
B=new O7(d),K.directoryMap_[d.getName()]=d,K.directories_.push(d));K=B}l=l.directories_}this.dispatchEvent(new zvQ(X,l,null))}else X=X.target.value,X.match(/^c:\\fakepath\\/i)&&(X=X.substring(12)),this.dispatchEvent(new zvQ([],[],new ptQ(X,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=Sdt(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var zvQ=function(X,H){_.NF.call(this,"j");this.files=X;this.directories=H};
_.S(zvQ,_.NF);var nPq=function(X){this.uploadUrl_=X};var kqC=function(){_.zB.call(this)};
_.To(kqC,_.zB);var c9=function(X){_.NF.call(this,X)};
_.To(c9,_.NF);var jc=function(X){_.NF.call(this,X)};
_.To(jc,_.NF);var xSq=function(X,H,l,b,U){_.zB.call(this);l=document.createElement("form");l.setAttribute("method",H);l.setAttribute("enctype","multipart/form-data");l.setAttribute("encoding","multipart/form-data");H=document.createElement("input");H.setAttribute("type","hidden");H.setAttribute("name","metadata");H.setAttribute("value",U);l.appendChild(H);l.appendChild(b);this.JSC$12528_form_=l;X=new _.xu(X);_.OT(X,"upload_protocol","multipart");this.JSC$12528_url_=X.toString();this.JSC$12528_request_=new RK;this.state_=
"Ready";this.JSC$12528_errorDescription_=null;this.JSC$12528_eventHandler_=new _.C8(this);_.LY(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_)};
_.S(xSq,kqC);_.R=xSq.prototype;_.R.run=function(){this.state_="Transferring";var X=this.JSC$12528_request_,H=this.JSC$12528_form_;if(X.JSC$11795_active_)throw Error("ue");var l=new _.xu(this.JSC$12528_url_||H.action);X.JSC$11795_form_=H;H=X.JSC$11795_form_;l=_.X3(l.toString());l!==void 0&&(H.action=l);v$H(X)};
_.R.getResponseCode=function(){return null};
_.R.getResponseText=function(){return this.JSC$12528_request_&&this.JSC$12528_request_.getResponseText()||null};
_.R.JSC$30547_getErrorDescription=function(){return this.JSC$12528_errorDescription_};
_.R.cancel=function(){this.JSC$12528_request_&&this.JSC$12528_request_.abort();this.state_="Cancelled";this.dispatchEvent(new c9("o"))};
_.R.pause=function(){};
_.R.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new c9("l"))};
_.R.onTransferError_=function(){this.JSC$12528_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new c9("n"))};var rM=function(){_.VD.call(this)};
_.S(rM,_.VD);rM.prototype.createXhr=function(){var X=_.VD.prototype.createXhr.call(this);X.upload&&(X.upload.onprogress=(0,_.K8)(this.onProgress_,this));return X};
rM.prototype.onProgress_=function(X){this.dispatchEvent(X)};var DSv=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},WTH=function(X,H){var l=X.attempt_+1;
if(X.maxAttempts_>0&&l>X.maxAttempts_)return!1;l==0?H():X.delayCallId_=ui(function(){X.delayCallId_=null;H()},tz_(X),X);
X.attempt_=l;return!0};
DSv.prototype.reset=function(){this.delayCallId_&&_.ok.clearTimeout(this.delayCallId_);this.attempt_=-1};
var tz_=function(X){var H=250*Math.pow(2,X.attempt_);X.maxDelayMs_>=0&&(H=Math.min(H,X.maxDelayMs_));return H};var S7Z=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var JI=function(){_.zB.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 DSv;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12538_errorDescription_=null;this.JSC$12538_eventHandler_=new _.C8(this);_.LY(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};
_.To(JI,kqC);_.R=JI.prototype;_.R.run=function(){L7(this)};
_.R.getResponseCode=function(){return this.JSC$12538_responseCode_};
_.R.getResponseText=function(){return this.JSC$12538_responseText_};
_.R.JSC$30547_getErrorDescription=function(){return this.JSC$12538_errorDescription_};
_.R.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 X=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(X==="Upload"||X==="Query")X=new rM,X.JSC$10106_withCredentials_=this.JSC$12538_withCredentials_,X.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12538_bytesTransferred_=
0;this.dispatchEvent(new c9("o"))}};
_.R.pause=function(){this.pauseRequested_=!0};
var L7=function(X){var H=X.state_;X.pauseRequested_?(X.pauseRequested_=!1,X.stateAfterUnpausing_=H,X.state_="Paused"):WTH(X.retryIterator_,function(){switch(X.state_){case "Start":X.JSC$12538_request_=new rM;var l=_.Bb.clone(X.JSC$12538_headers_);X.blob_.size!=null&&(l["Content-Length"]=X.blob_.size);l=zpy(l);l["X-Goog-Upload-Protocol"]="resumable";l["X-Goog-Upload-Command"]="start";X.JSC$12538_eventHandler_.removeAll();X.JSC$12538_eventHandler_.listen(X.JSC$12538_request_,"complete",X.onStartComplete_);
X.JSC$12538_request_.JSC$10106_withCredentials_=X.JSC$12538_withCredentials_;X.JSC$12538_request_.send(X.JSC$12538_url_,X.JSC$12538_method_,X.JSC$12538_metadata_,l);X.lastCommandResponseCode_=null;X.dispatchEvent(new jc("q"));break;case "Upload":l=X.transferHandle_.uploadUrl_;var b=X.blob_.size;if(xG9()){var U=X.chunkSize_;var K=X.offset_+U>=b;b=kPt(X.blob_,X.offset_,K?b:X.offset_+U)}else X.offset_=0,b=X.blob_,K=!0;X.JSC$12538_request_=new rM;X.JSC$12538_request_.JSC$10106_withCredentials_=X.JSC$12538_withCredentials_;
X.JSC$12538_eventHandler_.removeAll();X.JSC$12538_eventHandler_.listen(X.JSC$12538_request_,"progress",X.onUploadProgress_);U=(0,_.K8)(X.JSC$12540_onUploadComplete_,X,X.offset_+b.size,K);X.JSC$12538_eventHandler_.listen(X.JSC$12538_request_,"complete",U);X.lastCommandResponseCode_=null;X.dispatchEvent(new jc("q"));K=Object.assign({},X.JSC$12538_headers_||{},{"X-Goog-Upload-Command":"upload"+(K?", finalize":""),"X-Goog-Upload-Offset":X.offset_});X.JSC$12538_request_.send(l,"POST",b,K);break;case "Query":X.JSC$12538_request_=
new rM;X.JSC$12538_eventHandler_.removeAll();X.JSC$12538_eventHandler_.listen(X.JSC$12538_request_,"complete",X.onQueryComplete_);l=Object.assign({},X.JSC$12538_headers_||{},{"X-Goog-Upload-Command":"query"});X.JSC$12538_request_.send(X.transferHandle_.uploadUrl_,"POST","",l);X.lastCommandResponseCode_=null;X.dispatchEvent(new jc("q"));break;default:throw Error("mf");}})||Ys(X,"Transfer encountered too many consecutive failures.")},Ys=function(X,H){X.state_="Error";
X.JSC$12538_errorDescription_=H;X.dispatchEvent(new c9("n"))};
JI.prototype.onStartComplete_=function(X){var H=X.target;this.lastCommandResponseCode_=H.getStatus();this.dispatchEvent(new jc("r"));if(EP_(H))gPF(this,H);else if(GqC(H)){X=jO(X.target.getAllResponseHeaders());for(var l in X)_.Ky(l.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new c9("m"));l=KN(X,"X-Goog-Upload-URL");X=(X=KN(X,"X-Goog-Upload-Chunk-Granularity"))?parseInt(X,10):1;l===void 0||isNaN(X)||X<=0?Ys(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
X)*X,this.transferHandle_=new nPq(l),this.dispatchEvent(new c9("p")),this.state_="Upload",this.retryIterator_.reset(),L7(this))}else L7(this)};
JI.prototype.onUploadProgress_=function(X){this.JSC$12538_bytesTransferred_=this.offset_+X.loaded;this.dispatchEvent(new c9("k"))};
JI.prototype.JSC$12540_onUploadComplete_=function(X,H,l){var b=this,U,K;return _.h(function(w){switch(w.nextAddress){case 1:U=l.target;b.lastCommandResponseCode_=U.getStatus();b.dispatchEvent(new jc("r"));if(ad6(U)||U.getStatus()==404)return b.JSC$12538_bytesTransferred_=X,gPF(b,U),w.return();if(GqC(U)){w.jumpTo(2);break}if(!(K=b.detectCorruptedBlobEnabled_)){w.jumpTo(3);break}return w.yield(Z5_(b),4);case 4:K=w.yieldResult;case 3:if(K)return Ys(b,"Blob has been modified or corrupted."),w.return();
b.requireUploadRequestModification_=U.getStatus()==400;b.state_="Query";L7(b);return w.return();case 2:if(H)return Ys(b,"Got a non-final success response after issuing a finalize command."),w.return();b.JSC$12538_bytesTransferred_=X;b.offset_=X;b.retryIterator_.reset();L7(b);return w.return()}})};
JI.prototype.onQueryComplete_=function(X){var H=X.target;this.lastCommandResponseCode_=H.getStatus();this.dispatchEvent(new jc("r"));EP_(H)?(H.getStatus()===200&&(this.JSC$12538_bytesTransferred_=this.blob_.size),gPF(this,H)):GqC(H)?(X=jO(X.target.getAllResponseHeaders()),X=parseInt(KN(X,"X-Goog-Upload-Size-Received"),10),isNaN(X)?Ys(this,"Server did not respond with current offset."):X<this.offset_?Ys(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
X+"."):this.requireUploadRequestModification_&&this.offset_===X?Ys(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<X&&this.retryIterator_.reset(),this.offset_=this.JSC$12538_bytesTransferred_=X,this.state_="Upload",L7(this))):L7(this)};
var gPF=function(X,H){X.JSC$12538_responseCode_=H.getStatus();var l=jO(H.getAllResponseHeaders());nsK(l);X.JSC$12538_responseText_=H.getResponseText();X.state_="Response received";X.dispatchEvent(new c9("l"))},GqC=function(X){var H=X.getStatus();
X=jO(X.getAllResponseHeaders());X=KN(X,"X-Goog-Upload-Status");return H===200&&X==="active"},ad6=function(X){X=jO(X.getAllResponseHeaders());
return KN(X,"X-Goog-Upload-Status")==="final"},EP_=function(X){if(ad6(X))return!0;
X=X.getStatus();return X>=400&&X<500},Z5_=function(X){var H;
return _.h(function(l){if(l.nextAddress==1){if(!X.blob_||X.originalBlobSize_<=0)return l.return(!1);if(X.blob_.size!==X.originalBlobSize_)return l.return(!0);_.Ew(l,2);if(H=kPt(X.blob_,0,1)){var b=l.yield,U=new BA,K=Hl_(U);U.reader_.readAsBinaryString(H);l=b.call(l,K,4)}else l=l.return(!0);return l}if(l.nextAddress!=2)return l.return(X.blob_.size!==X.originalBlobSize_);_.Ow(l);return l.return(!0)})};var i5H=function(X,H,l,b,U,K){_.zB.call(this);this.payload_=b;this.JSC$12541_url_=X;this.JSC$12541_method_=H;this.JSC$12541_headers_=l;this.JSC$12541_metadata_=U;this.encoding_=K||"binary";X=new _.U8;this.boundary_="uploader-"+ZM()+"-"+X.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 _.C8(this);_.LY(this,this.JSC$12541_eventHandler_)};
_.S(i5H,kqC);_.R=i5H.prototype;
_.R.run=function(){var X=_.Bb.clone(this.JSC$12541_headers_);this.payload_.length!=null&&(X["Content-Length"]=this.payload_.length);X=zpy(X);X["X-Goog-Upload-Protocol"]="multipart";X["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new rM;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",X)};
_.R.getResponseCode=function(){return this.JSC$12541_responseCode_};
_.R.getResponseText=function(){return this.JSC$12541_responseText_};
_.R.JSC$30547_getErrorDescription=function(){return this.JSC$12541_errorDescription_};
_.R.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12541_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new c9("o")))};
_.R.pause=function(){};
_.R.onTransferProgress_=function(){this.dispatchEvent(new c9("k"))};
_.R.onTransferComplete_=function(X){var H=X.target.getStatus();H===void 0||H===-1?(this.JSC$12541_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new c9("n"))):(this.JSC$12541_responseCode_=H,X=X.target,H=jO(X.getAllResponseHeaders()),nsK(H),this.JSC$12541_responseText_=X.getResponseText(),this.state_="Complete",this.dispatchEvent(new c9("l")))};_.vP9=function(X,H,l,b){b=b===void 0?!1:b;if(l instanceof ptQ)return new xSq(X,"POST",H,l.getInputElement(),"");if(typeof l==="string"||l instanceof String)return new i5H(X,"POST",H,l,"");var U=new JI(void 0);U.JSC$12538_url_=X;U.JSC$12538_method_="POST";U.JSC$12538_headers_=H;U.blob_=l;U.originalBlobSize_=l.size;U.JSC$12538_metadata_="";b&&(U.JSC$12538_withCredentials_=b);U.state_="Start";return U};var IS=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(IS,_.sU);_.R=IS.prototype;_.R.getEnableSsEngine=function(){return _.F0(this,2)};
_.R.getEnableAwr=function(){return _.F0(this,3)};
_.R.getAlohaAutoGaRollout=function(){return _.F0(this,5)};
_.R.getEnableConfigurator=function(){return _.F0(this,6)};
_.R.getEnableMweb=function(){return _.F0(this,7)};
var mSv=function(){var X=O5_();return _.wZ(X,7,!0)};
IS.prototype.getEnableCtlConsentCheckbox=function(){return _.F0(this,8)};
IS.prototype.getEnableIframe=function(){return _.F0(this,9)};
var O5_=function(){var X=new IS;X=_.wZ(X,5,!0);X=_.wZ(X,2,!0);X=_.wZ(X,4,!1);X=_.wZ(X,8,!0);return _.wZ(X,9,!0)};
IS.prototype.getEnableScreenshotNudge=function(){return _.F0(this,10)};
var QMq=function(){var X=mSv();return _.wZ(X,10,!0)};
IS.prototype.getEnableWebStartupConfigEndpoint=function(){return _.F0(this,11)};
IS.prototype.getEnableJunkNudge=function(){return _.F0(this,12)};
var jSh=function(){var X=QMq();return _.wZ(X,12,!0)};
_.R=IS.prototype;_.R.getEnableConfiguratorLocale=function(){return _.F0(this,13)};
_.R.getEnableTinyNoPointer=function(){return _.F0(this,14)};
_.R.getEnableSupportSessionLogging=function(){return _.F0(this,15)};
_.R.getEnableFileUploadForScreenshot=function(){return _.F0(this,16)};
_.R.getEnableDirectDeflectionForSingleCategory=function(){return _.F0(this,17)};
_.R.getEnableImageSanitization=function(){return _.F0(this,18)};
_.R.getEnableAlohaBinarySplit=function(){return _.F0(this,19)};
_.R.getEnableDbFeedbackIntents=function(){return _.F0(this,20)};
_.R.getEnableMarkMandatoryFieldsWithRequired=function(){return _.F0(this,21)};
_.R.getEnableFeedbackCategoryCustomUi=function(){return _.F0(this,22)};
_.R.getEnableRealtimeCtl=function(){return _.F0(this,23)};var cIZ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(cIZ,_.sU);var kUy=[/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 D8N="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 tcy=_.W8(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),WV8=_.W8(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Rp=function(){var X=Error.call(this,"Form is either loading or already opened");this.message=X.message;"stack"in X&&(this.stack=X.stack);this.name="DuplicateFormError"};
_.S(Rp,Error);var gsm,Z7l,GUL,i7k;var AI,Tzt;
AI=function(X,H,l){X.timeOfStartCall=(new Date).getTime();var b=l||_.ok,U=b.document,K=X.nonce||_.dr(b.document);K&&!X.nonce&&(X.nonce=K);if(X.flow=="help"){var w=_.ij("document.location.href",b);!X.helpCenterContext&&w&&(X.helpCenterContext=w.substring(0,1200));w=!0;if(H&&JSON&&JSON.stringify){var d=JSON.stringify(H);(w=d.length<=1200)&&(X.psdJson=d)}w||(H={invalidPsd:!0})}H=[X,H,l];b.GOOGLE_FEEDBACK_START_ARGUMENTS=H;l=X.feedbackServerUri||"//www.google.com/tools/feedback";if(w=b.GOOGLE_FEEDBACK_START)w.apply(b,H);
else{b=l+"/load.js?";for(var B in X)H=X[B],H==null||_.r8(H)||(b+=encodeURIComponent(B)+"="+encodeURIComponent(H)+"&");X=$O(U).createElement("SCRIPT");K&&X.setAttribute("nonce",K);_.sw(X,_.vu(b));U.body.appendChild(X)}};
Tzt=function(X,H,l,b){var U,K;return _.h(function(w){U=l||_.ok;var d=X.serverEnvironment==="DEV",B=l||_.ok;B=X.nonce||_.dr(B.document);d={integrationKeys:{productId:X.productId,feedbackBucket:X.bucket,triggerId:X.triggerId},callbacks:{onClose:X.callback,onLoad:X.onLoadCallback},formContent:{locale:X.locale,disableScreenshot:X.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:X.abuseLink,additionalDataConsent:X.additionalDataConsent},initializationData:{isLocalServer:d,nonce:B,useNightlyRelease:d,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:X.feedbackServerUri,colorScheme:X.colorScheme},extraData:{productVersion:X.productVersion,authUser:X.authuser,configuratorId:X.configuratorId,customZIndex:X.customZIndex,tinyNoPointer:X.tinyNoPointer,
allowNonLoggedInFeedback:X.allowNonLoggedInFeedback,enableAnonymousFeedback:X.enableAnonymousFeedback}};H&&(B=new Map(Object.entries(H)),d.extraData.productSpecificData=B);K=d;return w.yield(QSb(K,b,U),0)})};
_.Nzt=function(X,H,l){try{if(X.flow==="help"){var b=X.helpCenterPath.replace(/^\//,"");_.wr(l||window,"https://support.google.com/"+b)}else X.flow==="submit"?AI(X,H,l):rIL(X.productId,X.feedbackServerUri).then(function(U){U=_.Al(U,IS,1);var K=!PxD||(U==null?void 0:U.getEnableMweb()),w=!X.tinyNoPointer||(U==null?void 0:U.getEnableTinyNoPointer());!U||U.getAlohaAutoGaRollout()&&K&&w?Tzt(X,H,l,U).catch(function(d){!d||d instanceof Rp||AI(X,H,l)}):AI(X,H,l)},function(U){!U||U instanceof Rp||AI(X,H,l)})}catch(U){Tzt(X,
H,l,null).catch(function(K){!K||K instanceof Rp||AI(X,H,l)})}};
_.cQ("userfeedback.api.startFeedback",_.Nzt);var JIK=/https?:\/\/\S+\.\S+/,LVO=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Y7W=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var RYy=function(X){var H=X.split(""),l=[-263237435,15,H,function(b,U,K){var w=U.length;K.forEach(function(d,B,q){this.push(q[B]=U[(U.indexOf(d)-U.indexOf(this[B])+B+w--)%U.length])},b.split(""))},
function(b,U){b=(b%U.length+U.length)%U.length;U.splice(-b).reverse().forEach(function(K){U.unshift(K)})},
"response",function(){for(var b=64,U=[];++b-U.length-32;){switch(b){case 58:b-=14;case 91:case 92:case 93:continue;case 123:b=47;case 94:case 95:case 96:continue;case 46:b=95}U.push(String.fromCharCode(b))}return U},
null,12,1540023973,65941107,null,H,function(b,U){for(b=(b%U.length+U.length)%U.length;b--;)U.unshift(U.pop())},
695603893,function(b){for(var U=b.length;U;)b.push(b.splice(--U,1)[0])},
"'[;'[(",function(b,U){b.push(U)},
null,function(b,U,K,w,d){return U(K,w,d)},
"continuation",H,function(b,U){if(b.length!=0){U=(U%b.length+b.length)%b.length;var K=b[0];b[0]=b[U];b[U]=K}},
function(){for(var b=64,U=[];++b-U.length-32;){switch(b){case 91:b=44;continue;case 123:b=65;break;case 65:b-=18;continue;case 58:b=96;continue;case 46:b=95}U.push(String.fromCharCode(b))}return U},
'"),/]];'];l[7]=l;l[11]=l;l[18]=l;try{(((0,l[15])(l[21]),l[22])(l[11],l[9]),l[22])(l[new Date("1970-01-01T04:30:12.000+04:30")/1E3],l[1]),((0,l[22])(l[11],l[23]),l[4])(l[10],l[18]),(0,l[20])(l[21],l[14])<<(0,l[17])(l[18],l[1]),(0,l[4])(l[8],l[21]),(0,l[19])((0,l[19])((0,l[17])(l[7],l[9]),l[3],l[20],(0,l[6])(),l[2]),l[3],l[5],(0,l[15])(),l[2])}catch(b){return"aTlOUOubTO4AP____8P_"+X}return H.join("")};_.cPY=new _.Ed("runAttestationCommand");var jMH=new _.Ed("verifyCommand");_.RB=new _.Ed("accessibilityContext");var rPH=new _.Ed("accessibilityData");var JPC=new _.Ed("profileCardCommand");var Ykm=new _.Ed("signInEndpoint");var L6z=new _.Ed("signOutEndpoint");var YdG;_.LTY=new _.Ed("accountItemSectionRenderer");YdG=new _.Ed("accountItemRenderer");_.IdQ=new _.Ed("saveCommandToSessionStorageAction");var APQ=new _.Ed("crossAccountChannelTransferEndpoint");var Tly=new _.Ed("getAccountMenuEndpoint");_.NlO=new _.Ed("getAccountSwitcherEndpoint");var Q8b=new _.Ed("getAccountsListEndpoint");var XGq=new _.Ed("getAccountsListInnertubeEndpoint");_.HFz=new _.Ed("addToToastAction");var lKt=new _.Ed("hideEnclosingAction");_.XC=new _.Ed("replaceEnclosingAction");var o7H=new _.Ed("buttonRefreshAction");var bF9=new _.Ed("adsControlFlowOpportunityReceivedCommand");var UDQ=new _.Ed("openAdAllowlistInstructionCommand");var $D6=new _.Ed("videoMastheadAdPrimaryVideoRenderer");var KYF=new _.Ed("displayAdRenderer");_.RMY=new _.Ed("inFeedAdLayoutRenderer");var Cwq=new _.Ed("sequenceItemInPlayerAdLayoutRenderer");_.wG6=new _.Ed("adSlotRenderer");var dDY=new _.Ed("adAvatarViewModel");var hMv=new _.Ed("adBadgeViewModel");var FY_=new _.Ed("adButtonViewModel");var BbH=new _.Ed("adImageViewModel");var hjy=new _.Ed("reelsAdCardButtonedViewModel");var q1q=new _.Ed("reelsPlayerOverlayLayoutViewModel");var sRq=new _.Ed("formDataDecoratorCommand");var Meq=new _.Ed("updateConversationIdCommand");var unq=new _.Ed("showSchedulingPanelCommand");var eMt=new _.Ed("backstageCommentsRenderer");var yJD=new _.Ed("backstageImageRenderer");var VeG=new _.Ed("backstagePostRenderer");var PwF=new _.Ed("backstageZeroStateRenderer");var fKv=new _.Ed("postRenderer");var pG6=new _.Ed("sharedPostRenderer");var S1C=new _.Ed("createBackstagePostEndpoint");var zMQ=new _.Ed("getPostVideoPreviewEndpoint");var n7D=new _.Ed("updateBackstagePostEndpoint");var kHt=new _.Ed("filterChipTransformCommand");var xDz=new _.Ed("insertRichSectionCommand");var OQk=new _.Ed("talkToRecsDeselectCommand");var DDz=new _.Ed("talkToRecsNextCommand");var v0L=new _.Ed("talkToRecsSelectCommand");var tez=new _.Ed("talkToRecsUpdateTextCommand");_.YM=new _.Ed("browseEndpoint");_.WYH=new _.Ed("confirmDialogEndpoint");var E7_=new _.Ed("expandOnHoverCardRenderer");var g7F=new _.Ed("lumiereShelfDetailsRenderer");var GH_=new _.Ed("revealBusinessEmailCommand");var aKq=new _.Ed("validateChannelHandleCommand");var ZF_=new _.Ed("channelCreationFormEndpoint");var iFq=new _.Ed("aboutChannelViewModel");var v7q=new _.Ed("channelThumbnailWithLinkRenderer");var OF_=new _.Ed("channelCreationServiceEndpoint");var mDH=new _.Ed("updateChannelPageSettingsEndpoint");var HX=function(X){this.delegate=X},ly=function(){HX.apply(this,arguments)};
_.S(ly,HX);_.ja.Object.defineProperties(ly.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(X){this.delegate.entityMetadata=X}}});var QRC=function(){ly.apply(this,arguments)};
_.S(QRC,ly);QRC.prototype.getAssociations=function(){return[]};
QRC.prototype.getTypeName=function(){return"channelHandle"};var Tbv=new _.Ed("webResponseContextExtensionData");var J48=new _.Ed("webThumbnailDetailsExtensionData");_.u4=new _.Ed("commandContext");var NbY=new _.Ed("addVideoLinkAction");var cJz=new _.Ed("banAuthorAction");var jRz=new _.Ed("createCommentAction");var rJY=new _.Ed("createCommentReplyAction");var JJ6=new _.Ed("createPollAction");var LYQ=new _.Ed("hideIdentityChipAction");var Y1q=new _.Ed("openUpdateCommentDialogAction");var IKQ=new _.Ed("pinCommentAction");var AJQ=new _.Ed("removeCommentAction");var XAC=new _.Ed("unpinCommentAction");var oc=new _.Ed("updateBackstagePollAction");var HRt=new _.Ed("updateCommentVoteAction");var lgY=new _.Ed("commentThreadRenderer");var ow9=function(){ly.apply(this,arguments)};
_.S(ow9,ly);ow9.prototype.getAssociations=function(){return[]};
ow9.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var bRG=function(){ly.apply(this,arguments)};
_.S(bRG,ly);bRG.prototype.getAssociations=function(){return[]};
bRG.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.U6_=new _.Ed("commentDialogRenderer");var $6H=new _.Ed("reloadCommentsCommand");var KAv=new _.Ed("updateCommentsSettingsEndpoint");var Rkz=new _.Ed("commentViewModel");var Cd9=new _.Ed("triStateButtonViewModel");var wAv=new _.Ed("voiceReplyContainerViewModel");_.J$=new _.Ed("commandExecutorCommand");var FR=new _.Ed("emoji");var d6t=new _.Ed("updateCreatorChannelInnertubeCommand");_.hkQ=new _.Ed("appendContinuationItemsAction");_.FAG=new _.Ed("changeEngagementPanelVisibilityAction");_.uE=new _.Ed("continuationCommand");var Bs_=new _.Ed("hideReportedCommentAction");var q8_=new _.Ed("listMutationCommand");_.by=new _.Ed("openPopupAction");var se6=new _.Ed("persistSubscriptionsDisplayPreferencesCommand");var pA_;_.Mfv=new _.Ed("playlistRemoveVideosAction");_.uIH=new _.Ed("updatePlaylistAction");_.ek_=new _.Ed("addToPlaylistCommand");_.ysF=new _.Ed("endPlaylistCommand");_.VfQ=new _.Ed("recoverPlaylistCommand");_.Pdz=new _.Ed("refreshPlaylistCommand");_.fgz=new _.Ed("refreshFormCommand");pA_=new _.Ed("openOnePickAddVideoModalCommand");var IaN=new _.Ed("reloadContinuationItemsCommand");var S8v=new _.Ed("restoreCachedContinuableDataCommand");_.zkq=new _.Ed("scrollToEngagementPanelCommand");var nwt=new _.Ed("selectCountryCommand");var kVH=new _.Ed("showReloadUiCommand");var x6G=new _.Ed("undoFeedbackAction");var D6F=new _.Ed("updateButtonAction");var tfv=new _.Ed("updateSubscribeButtonAction");var WAY=new _.Ed("updateToggleAction");var EwY=new _.Ed("webNativeShareCommand");_.Ip=new _.Ed("webCommandMetadata");_.Ub=new _.Ed("webHandleServiceEndpointExtension");var bPm=new _.Ed("webNavigationEndpointData");var gwq=new _.Ed("backgroundAudioPlaybackCommand");var GVv=new _.Ed("copyLinkCommand");var agQ=new _.Ed("playlistVotingRefreshPopupCommand");var ZRF=new _.Ed("selectChipCommand");var iRz=new _.Ed("setCookieCommand");var vwC=new _.Ed("setLocalStorageCommand");var ORq=new _.Ed("setPrefStorageEntryCommand");var NsY;_.m6G=new _.Ed("settingsUpdateCheckboxCommand");_.Qev=new _.Ed("settingsUpdateTextCommand");_.Ts_=new _.Ed("settingsUpdateOptionsCommand");NsY=new _.Ed("settingsUpdateSwitchCommand");_.cst=new _.Ed("settingsUpdateConnectedAppRendererCommand");var jeF=new _.Ed("showCreatorChatbotEngagementPanelCommand");var rsG=new _.Ed("updateTextInputFormFieldRendererCommand");var Js9=new _.Ed("updateToggleButtonStateCommand");var LAz=new _.Ed("updateUrlParamCommand");var Y8Q=new _.Ed("webSubmitFormCommand");var Ig6=new _.Ed("channelSwitcherPageRenderer"),Asq=new _.Ed("updateChannelSwitcherPageAction");_.OF=new _.Ed("continuationItemRenderer");_.$8=new _.Ed("richItemRenderer");var X9q=new _.Ed("richSectionRenderer");_.H79=new _.Ed("richShelfRenderer");_.lDF=new _.Ed("metadataBadgeRenderer");_.osQ=new _.Ed("multiPageMenuNotificationSectionRenderer");_.b7v=new _.Ed("playlistLoopButtonStateRenderer");var U8z=new _.Ed("claimLegacyYoutubeChannelEndpoint");var $8F=new _.Ed("getNotificationMenuEndpoint");var KV9=new _.Ed("getSearchInVideoCommand");_.Rpq=new _.Ed("getTranscriptEndpoint");_.Yu=new _.Ed("signalServiceEndpoint");var CcH=new _.Ed("verifyAgeEndpoint");var wVh=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(wVh,_.sU);wVh.prototype.getPath=function(){return _.sC(this,1)};
wVh.prototype.getValue=function(){return _.sC(this,2)};var w99=[0,_.ZU,-1];var d8Q=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(d8Q,_.sU);var C8K=_.xn(d8Q,[0,_.OC,w99]);var hpD=new _.Ed("dismissalEndpoint");var FVq=new _.Ed("elementsCommand");_.qq=new _.Ed("innertubeCommand");var Z1Z=new _.Ed("multipleInlinePlaybackCommand");var miL=new _.Ed("loggingDirectives");var BMz=new _.Ed("acknowledgeChannelTouStrikeCommand");var q7Y=function(){ly.apply(this,arguments)};
_.S(q7Y,ly);q7Y.prototype.getAssociations=function(){return[]};
q7Y.prototype.getTypeName=function(){return"booleanEntity"};var sSG=function(){ly.apply(this,arguments)};
_.S(sSG,ly);sSG.prototype.getAssociations=function(){return[]};
sSG.prototype.getTypeName=function(){return"stringEntity"};var xj=new _.Ed("entityBatchUpdate");_.Mc_=new _.Ed("entityUpdateCommand");var uWt=function(){ly.apply(this,arguments)};
_.S(uWt,ly);uWt.prototype.getAssociations=function(){var X=[];this.delegate.alternateChannel&&X.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&X.push.apply(X,_.LJ(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&X.push(this.delegate.oneofChannelEntity);return[].concat(_.LJ(new Set(X)))};
uWt.prototype.getTypeName=function(){return"fakeChannel"};var epz=function(){ly.apply(this,arguments)};
_.S(epz,ly);epz.prototype.getAssociations=function(){var X=[];this.delegate.entryCollection&&X.push(this.delegate.entryCollection);return[].concat(_.LJ(new Set(X)))};
epz.prototype.getTypeName=function(){return"fakePlaylist"};
var yIt=function(){ly.apply(this,arguments)};
_.S(yIt,ly);yIt.prototype.getAssociations=function(){var X=[];this.delegate.parentPlaylist&&X.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var H=_.C(this.delegate.entries),l=H.next();!l.done;l=H.next())X.push.apply(X,_.LJ((new Vc6(l.value)).getAssociations()));return[].concat(_.LJ(new Set(X)))};
yIt.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var Vc6=function(){HX.apply(this,arguments)};
_.S(Vc6,HX);Vc6.prototype.getAssociations=function(){var X=[];this.delegate.video&&X.push(this.delegate.video);return[].concat(_.LJ(new Set(X)))};var Pct=function(){ly.apply(this,arguments)};
_.S(Pct,ly);Pct.prototype.getAssociations=function(){var X=[];this.delegate.descriptionEntity&&X.push(this.delegate.descriptionEntity);this.delegate.creators&&X.push.apply(X,_.LJ(this.delegate.creators));this.delegate.theBiggestFan&&X.push(this.delegate.theBiggestFan);return[].concat(_.LJ(new Set(X)))};
Pct.prototype.getTypeName=function(){return"fakeVideo"};
var fDG=function(){ly.apply(this,arguments)};
_.S(fDG,ly);fDG.prototype.getAssociations=function(){return[]};
fDG.prototype.getTypeName=function(){return"fakeVideoDescription"};var p9F=new _.Ed("fantasyRosterViewModel");var S79=new _.Ed("addFollowUpSurveyCommand");var zpQ=new _.Ed("getSurveyCommand");var nsY=new _.Ed("ratingSurveyOptionRenderer");_.eY=new _.Ed("feedbackEndpoint");var kUQ=new _.Ed("reportHistoryTableCellRenderer"),x89=new _.Ed("reportHistoryTableTextCellRenderer"),D8Q=new _.Ed("reportHistoryTableReasonCellRenderer");_.tcQ=new _.Ed("flagEndpoint");var WVt=new _.Ed("deleteFlowStepsCommand");_.Esz=new _.Ed("flowNextStepCommand");_.gsD=new _.Ed("flowPrevStepCommand");var GU6=new _.Ed("getFlowCommand");var aDq=new _.Ed("submitFormWithValidationFlowCommand");_.Z7q=new _.Ed("updateFlowCommand");var i7_=function(){ly.apply(this,arguments)};
_.S(i7_,ly);i7_.prototype.getAssociations=function(){return[]};
i7_.prototype.getTypeName=function(){return"flowStateEntity"};var vs9=new _.Ed("flowFormState");_.Kk=new _.Ed("flowStepRenderer");var O76=new _.Ed("gameCardRenderer");var m8_=new _.Ed("accountLinkingStateChangedCommand");var QSF=function(){ly.apply(this,arguments)};
_.S(QSF,ly);QSF.prototype.getAssociations=function(){return[]};
QSF.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var TM_=new _.Ed("changeMiniAppPlayStateCommand");var NMq=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(NMq,_.sU);var Rc=[1,2,3];var cI9=[0,Rc,l3Q,_.vC,rbv];var jSz=_.xn(NMq,cI9),rI6=_.tb(cI9);var JIY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(JIY,_.sU);var LVH=[0,_.tC,_.ZU];var Y7v=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Y7v,_.sU);var IDH=[0,_.ZU,_.tC,-1];var Ck=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Ck,_.sU);var AIC=_.tb([0,1,LVH,_.N7,IDH,_.ZU,-1]);var XXH=new _.Ed("miniAppScoreChallengeViewModel");var Hk_=new _.Ed("miniGameCardViewModel");var lzY=new _.Ed("teaserCardViewModel");var o8F=function(){ly.apply(this,arguments)};
_.S(o8F,ly);o8F.prototype.getAssociations=function(){return[]};
o8F.prototype.getTypeName=function(){return"logoEntity"};var bkQ=new _.Ed("feedbackItemRenderer");var UIz=function(){ly.apply(this,arguments)};
_.S(UIz,ly);UIz.prototype.getAssociations=function(){return[]};
UIz.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.$IC=new _.Ed("playerInterstitialRenderer");var KR_=new _.Ed("getKidsBlocklistPickerCommand");_.R6F=new _.Ed("updateKidsBlacklistEndpoint");_.wg=new _.Ed("likeEndpoint");var Cyz,wXC,dIF;Cyz=new _.Ed("addChatItemAction");wXC=new _.Ed("removeChatItemAction");dIF=new _.Ed("markChatItemAsDeletedAction");_.h6F=new _.Ed("setLiveChatCollapsedStateAction");var FRv=function(){ly.apply(this,arguments)};
_.S(FRv,ly);FRv.prototype.getAssociations=function(){return[]};
FRv.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var Bgt=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Bgt,_.sU);Bgt.prototype.getPayloadCase=function(){return _.RV(this,qb_)};
var qb_=[3,4];var sc9=[0,_.OC,[0,[1,2],_.vC,_.mq,[0,_.ie,1,_.ie]]];var MR_=[0,_.ZU,-1];var uCD=[0,[1],_.vC];var dg=[0,[1,2],_.vC,_.mq,[0,_.N7]];var hi=[0,_.ZU];var e6v=[0,[0,_.Gb,_.gJ,[0,_.ie,_.cC,_.ie]],1,[0,_.Gb]];var yi_=[0,WC];var VR9=[0,WC];var Py_=[0,VR9,yi_];var fz_=[0,_.OC,[0,[1,2],_.vC,-1],_.Gb];var pXt=[0,[2],1,_.mq,[0,_.ie,-1,fz_]];var Sb6=[0,[1],_.mq,[0,_.ie,_.ZU,_.cC,1,fz_]];var z6G=[0,_.gJ,-1,j$F,_.N7];var n8Q=[0,[0,DU,-3],-4];var FC=[0,_.Gb,-3,_.ZU,_.Gb,_.NO,_.Gb,sc9,_.Gb,-2];var BX=[0,_.OC,[0,[1,2],_.vC,-1],_.Gb,_.ZU];var kI_=[0,[3],dg,[0,[2,3,4],K5q,_.vC,-2],_.mq,[0,_.ZU],_.tC];var xIz=[0,[3,5],_.ZU,_.EC,_.mq,[0,1,_.tC,_.N7],_.N7,_.mq,[0,_.N7,_.tC]];var DI6=[0,2,_.EC,_.ZU,-1];var tRY=[0,XJQ];var WRF=[0,[3,4],2,Lzv,_.vC,_.ZU];var E8Y=[0,_.N7,-2,1,_.ZU];var g8q=[0,_.ZU,-1,_.N7];var GI_=[0,hi,function(){return qI},
hi,_.ZU],az_=[0,_.N7,hi,dg,function(){return qI},
_.ZU],qI=[-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],hi,_.EC,[0,_.Gb,1,_.Gb,1,_.Gb,1,_.N7,-1,hi],[0,1,_.Gb,2,_.Gb,_.N7,_.Gb],1,_.EC,-1,_.ZU,_.EC,2,DU,[0,DU,_.EC],_.ZU,1,e6v,1,dg,_.NO,1,[0,[0,_.OC,[0,_.ZU,_.Gb,_.N7]]],[0,_.Gb,[0,_.tC,[0,_.cC]],_.tC,1,[0,IrY,-1]],_.ZU,[0,1,_.ZU],76,_.mq,[0,dg,BX,e6v,1,[0,_.OC,BX]],1,_.mq,[0,dg,_.ZU,
_.Gb],_.mq,[0,dg,uCD],_.mq,[0,dg,uCD,_.EC],_.mq,[0,dg,uCD],_.mq,[0,dg,_.OC,hi,dg,omC],_.mq,[0,dg,hi,_.ZU],_.mq,[0,dg,_.Gb,FC,-1,_.Gb],4,_.mq,[0,dg,_.Gb,_.EC,FC,_.Gb],_.mq,[0,[4,9],dg,_.N7,_.EC,_.vC,BX,1,e6v,_.ZU,_.vC,E8Y],_.mq,[0,dg,hi,dg,_.N7,_.ZU],_.mq,[0,_.Gb,dg,FC,_.Gb,_.ZU],_.mq,[0,dg,hi,dg,_.N7,_.ZU],1,_.mq,[0,dg,_.N7,_.ZU,FC],_.mq,[0,dg,_.N7,[0,_.ZU,_.EC],_.ZU,_.EC,_.ZU,_.Tb,-2,3,g8q,_.OC,g8q,g8q,E8Y],_.mq,[0,dg,_.N7,Sb6,_.OC,[0,VR9,pXt],hi,_.OC,Py_,_.ZU,1,_.N7,z6G,n8Q,cbz,-1],_.mq,[0,dg,[0,
_.cC,-1,Sb6,_.OC,[0,VR9,pXt,yi_],[0,_.c0],1,_.ie],hi,_.ZU],_.mq,[0,dg,BX,_.ZU,[0,_.gJ]],_.mq,function(){return az_},
_.mq,[0,dg,_.EC,_.ZU,-1,_.Gb],_.mq,[0,[6,7],dg,_.OC,DI6,_.N7,BX,1,_.mq,WRF,_.mq,tRY],_.mq,[0,_.OC,DI6,_.N7,_.Gb],_.mq,[0,_.ZU,vVQ,-1],_.mq,[0,hi,_.OC,Py_,_.ZU],_.mq,[0,dg,hi,_.ZU],_.mq,[0,_.Tb,_.ZU],_.mq,[0,MR_],_.mq,[0,MR_],_.mq,[0,BX],_.mq,[0,hi,BX],_.mq,function(){return GI_},
_.mq,[0,hi,_.ZU],_.mq,[0,hi,_.ZU],1,_.mq,[0,_.Gb,dg,FC,_.Gb,FC],_.mq,[0,_.c0],1,_.mq,[0],1,_.mq,[0,hi,_.N7,dg,_.N7],_.mq,[0,[1,2],_.mq,WRF,_.mq,tRY,_.EC],_.mq,[0,_.c0,BX,xIz,_.ZU,_.EC],_.mq,[0,xIz,_.ZU,_.EC],_.mq,[0,z6G,BX,_.Gb,n8Q],_.mq,kI_,_.mq,[0],_.mq,[0,_.ZU,-1,_.tC],_.mq,[0,hi,_.ZU],_.mq,[0,kI_,_.tC,_.ZU],_.mq,[0,dg,FC,_.Gb],_.mq,[0,dg,FC,_.Gb],_.mq,[0,z6G,n8Q,BX,_.NO,_.Gb,cbz,-1],_.mq,[0,dg,FC,_.Gb],_.mq,[0,_.EC]];var ZkY=[0,_.OC,qI];var ikz=_.xn(Bgt,[0,qb_,1,_.tC,_.mq,[0,[18,22,24],ZkY,3,[0,ZkY],1,_.tC,[0,_.OC,[0,_.EC,DU],_.EC],1,qI,-1,[0,_.aV,-2,_.NO,_.aV,-1,_.NO,_.aV,sc9,_.aV,-2],ToQ,[!0,_.ZU,[0,uCD,2,_.ZU,_.EC,_.Gb,2,_.ZU,_.Tb]],[0,[1,2,3],[5,6],_.mq,[0,_.ie],_.mq,[0,_.ie,-1],_.mq,[0,_.ie],1,_.mq,MR_,_.mq,[0,_.ZU]],[0,qI,-1],_.c0,qI,_.mq,qI,[0,ZkY],_.tC,qI,_.mq,qI,_.ZU,_.mq,qI,qI],_.mq,G09,_.tC]);var v8z=new _.Ed("liveChatEndpoint");var Okq=new _.Ed("liveChatItemContextMenuEndpoint");var mIY=new _.Ed("liveChatReplayEndpoint");_.QcY=new _.Ed("emojiPickerRenderer");var TgQ=new _.Ed("liveChatAuthorBadgeViewModel");var NgG=new _.Ed("deleteLiveChatMessageCommand");var ciq=new _.Ed("liveChatActionEndpoint");var jcQ=new _.Ed("createLiveChatPollEndpoint");var riY=new _.Ed("manageLiveChatUserEndpoint");var Jiz=new _.Ed("moderateLiveChatEndpoint");_.LRQ=new _.Ed("sendLiveChatMessageEndpoint");var YbQ=new _.Ed("sendLiveChatVoteEndpoint");var IzY=new _.Ed("clearLocationCommand");var Ait=new _.Ed("resolveLocationCommand");var XW9=new _.Ed("interactionLoggingCommandMetadata");var Hgz=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Hgz,_.sU);var l7t=function(X,H){return _.cb(X,1,H)};var opq=[0,_.Gb];var bgv=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(bgv,_.sU);var UgQ=function(X,H){return wU(X,1,Hgz,H)};bgv.prototype.JSC$12637_serializeBinary=CQk([0,_.OC,opq]);var e6W={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 $g_={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"},
KWq={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 CFh={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"};_.Dib=new _.Ed("logFlowLoggingEventCommand");_.o1=new _.Ed("loggingContext");var RdY=new _.Ed("audioTrackSelectActionCommand");var CCC=new _.Ed("captionLanguageSelectActionCommand");var wW9=new _.Ed("showAudioTrackPickerActionCommand");var dgG=new _.Ed("showCaptionLanguageSelectActionCommand");var hd6=new _.Ed("dismissDialogEndpoint");var FWz=new _.Ed("dismissPlayerOverlayCommand");var BD9=new _.Ed("hideItemSectionVideosByIdCommand");var q6F=new _.Ed("showMiniplayerCommand");var syt=function(){ly.apply(this,arguments)};
_.S(syt,ly);syt.prototype.getAssociations=function(){return[]};
syt.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var M3F=function(){ly.apply(this,arguments)};
_.S(M3F,ly);M3F.prototype.getAssociations=function(){return[]};
M3F.prototype.getTypeName=function(){return"downloadStatusEntity"};var utQ=function(){ly.apply(this,arguments)};
_.S(utQ,ly);utQ.prototype.getAssociations=function(){return[]};
utQ.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var edD=function(){ly.apply(this,arguments)};
_.S(edD,ly);edD.prototype.getAssociations=function(){var X=[];this.delegate.downloadsList&&X.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&X.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&X.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&X.push(this.delegate.refresh);return[].concat(_.LJ(new Set(X)))};
edD.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var yOz=function(){ly.apply(this,arguments)};
_.S(yOz,ly);yOz.prototype.getAssociations=function(){var X=[];this.delegate.refresh&&X.push(this.delegate.refresh);if(this.delegate.downloads)for(var H=_.C(this.delegate.downloads),l=H.next();!l.done;l=H.next())X.push.apply(X,_.LJ((new V39(l.value)).getAssociations()));return[].concat(_.LJ(new Set(X)))};
yOz.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var V39=function(){HX.apply(this,arguments)};
_.S(V39,HX);V39.prototype.getAssociations=function(){var X=[];this.delegate.video&&X.push(this.delegate.video);this.delegate.playlist&&X.push(this.delegate.playlist);this.delegate.videoItem&&X.push(this.delegate.videoItem);this.delegate.playlistItem&&X.push(this.delegate.playlistItem);return[].concat(_.LJ(new Set(X)))};var PCQ=function(){ly.apply(this,arguments)};
_.S(PCQ,ly);PCQ.prototype.getAssociations=function(){var X=[];this.delegate.localImageEntities&&X.push.apply(X,_.LJ(this.delegate.localImageEntities));return[].concat(_.LJ(new Set(X)))};
PCQ.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var f7F=function(){ly.apply(this,arguments)};
_.S(f7F,ly);f7F.prototype.getAssociations=function(){var X=[];this.delegate.playbackData&&X.push(this.delegate.playbackData);this.delegate.localImageEntities&&X.push.apply(X,_.LJ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&X.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LJ(new Set(X)))};
f7F.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var pWC=function(){ly.apply(this,arguments)};
_.S(pWC,ly);pWC.prototype.getAssociations=function(){return[]};
pWC.prototype.getTypeName=function(){return"offlineabilityEntity"};var S6q=function(){ly.apply(this,arguments)};
_.S(S6q,ly);S6q.prototype.getAssociations=function(){var X=[];this.delegate.fakeChildren&&X.push.apply(X,_.LJ(this.delegate.fakeChildren));return[].concat(_.LJ(new Set(X)))};
S6q.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var zdq=function(){ly.apply(this,arguments)};
_.S(zdq,ly);zdq.prototype.getAssociations=function(){var X=[];this.delegate.video&&X.push(this.delegate.video);this.delegate.playbackData&&X.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&X.push(this.delegate.offlineVideoPolicy);return[].concat(_.LJ(new Set(X)))};
zdq.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var npQ=function(){ly.apply(this,arguments)};
_.S(npQ,ly);npQ.prototype.getAssociations=function(){return[]};
npQ.prototype.getTypeName=function(){return"continuationTokenEntity"};var kN9=function(){ly.apply(this,arguments)};
_.S(kN9,ly);kN9.prototype.getAssociations=function(){var X=[];this.delegate.channelOwner&&X.push(this.delegate.channelOwner);this.delegate.videos&&X.push.apply(X,_.LJ(this.delegate.videos));this.delegate.collaboratorChannels&&X.push.apply(X,_.LJ(this.delegate.collaboratorChannels));this.delegate.downloadState&&X.push(this.delegate.downloadState);this.delegate.refresh&&X.push(this.delegate.refresh);return[].concat(_.LJ(new Set(X)))};
kN9.prototype.getTypeName=function(){return"mainPlaylistEntity"};var xgz=function(){ly.apply(this,arguments)};
_.S(xgz,ly);xgz.prototype.getAssociations=function(){var X=[];this.delegate.video&&X.push(this.delegate.video);this.delegate.channelContributor&&X.push(this.delegate.channelContributor);return[].concat(_.LJ(new Set(X)))};
xgz.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var Dg_=function(){HX.apply(this,arguments)};
_.S(Dg_,HX);Dg_.prototype.getAssociations=function(){var X=[];this.delegate.recommendedVideoMetadata&&X.push.apply(X,_.LJ((new t3_(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.LJ(new Set(X)))};
var t3_=function(){HX.apply(this,arguments)};
_.S(t3_,HX);t3_.prototype.getAssociations=function(){var X=[];this.delegate.localImageEntities&&X.push.apply(X,_.LJ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&X.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LJ(new Set(X)))};var WWt=function(){HX.apply(this,arguments)};
_.S(WWt,HX);WWt.prototype.getAssociations=function(){var X=[];this.delegate.playbackPosition&&X.push(this.delegate.playbackPosition);return[].concat(_.LJ(new Set(X)))};var EpC=function(){ly.apply(this,arguments)};
_.S(EpC,ly);EpC.prototype.getAssociations=function(){var X=[];this.delegate.owner&&X.push(this.delegate.owner);this.delegate.downloadState&&X.push(this.delegate.downloadState);this.delegate.userState&&X.push.apply(X,_.LJ((new WWt(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&X.push.apply(X,_.LJ((new Dg_(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.LJ(new Set(X)))};
EpC.prototype.getTypeName=function(){return"mainVideoEntity"};var gpG=function(){ly.apply(this,arguments)};
_.S(gpG,ly);gpG.prototype.getAssociations=function(){var X=[];this.delegate.userChannelDetails&&X.push(this.delegate.userChannelDetails);return[].concat(_.LJ(new Set(X)))};
gpG.prototype.getTypeName=function(){return"ytMainChannelEntity"};var GNH=function(){ly.apply(this,arguments)};
_.S(GNH,ly);GNH.prototype.getAssociations=function(){var X=[];this.delegate.channelOwner&&X.push(this.delegate.channelOwner);this.delegate.playbackPosition&&X.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&X.push.apply(X,_.LJ(this.delegate.localImageEntities));this.delegate.downloadStatus&&X.push(this.delegate.downloadStatus);return[].concat(_.LJ(new Set(X)))};
GNH.prototype.getTypeName=function(){return"ytMainVideoEntity"};var B2Z=new _.Ed("downloadsPageSmartDownloadsOptInBannerParams");var ujb=new _.Ed("downloadsPageUpsellBannerParams");var a7_=function(){ly.apply(this,arguments)};
_.S(a7_,ly);a7_.prototype.getAssociations=function(){return[]};
a7_.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var ZgC=function(){ly.apply(this,arguments)};
_.S(ZgC,ly);ZgC.prototype.getAssociations=function(){return[]};
ZgC.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var ig_=function(){ly.apply(this,arguments)};
_.S(ig_,ly);ig_.prototype.getAssociations=function(){return[]};
ig_.prototype.getTypeName=function(){return"macroMarkerEntity"};var vp9=function(){ly.apply(this,arguments)};
_.S(vp9,ly);vp9.prototype.getAssociations=function(){return[]};
vp9.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var OgQ=function(){ly.apply(this,arguments)};
_.S(OgQ,ly);OgQ.prototype.getAssociations=function(){return[]};
OgQ.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var mgH=function(){ly.apply(this,arguments)};
_.S(mgH,ly);mgH.prototype.getAssociations=function(){return[]};
mgH.prototype.getTypeName=function(){return"playerStateEntity"};var Qyq=function(){ly.apply(this,arguments)};
_.S(Qyq,ly);Qyq.prototype.getAssociations=function(){return[]};
Qyq.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var TD6=function(){ly.apply(this,arguments)};
_.S(TD6,ly);TD6.prototype.getAssociations=function(){return[]};
TD6.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var NDD=function(){ly.apply(this,arguments)};
_.S(NDD,ly);NDD.prototype.getAssociations=function(){return[]};
NDD.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.SY=new _.Ed("dislikeButtonViewModel");_.p9=new _.Ed("likeButtonViewModel");var cOG=new _.Ed("videoSummaryContentViewModel");var jyY=new _.Ed("videoSummaryParagraphViewModel");var rOH=new _.Ed("changeTimelyActionVisibilityCommand");var JOG=new _.Ed("hideEngagementPanelEndpoint");var LWQ=new _.Ed("refreshPanelEndpoint");var Y6Q=new _.Ed("scrollToSectionEndpoint");var I7Q=new _.Ed("seekToVideoTimestampCommand");_.up=new _.Ed("showEngagementPanelEndpoint");var AOC=new _.Ed("showTransientPlayerScrimOverlayCommand");var Xr_=new _.Ed("toggleEngagementPanelCommand");var HDH=new _.Ed("aiResponseBoxViewModel");_.lEY=new _.Ed("createBroadcastCommand");var ov_=new _.Ed("metadataUpdateCommand");var bD_=function(){ly.apply(this,arguments)};
_.S(bD_,ly);bD_.prototype.getAssociations=function(){return[]};
bD_.prototype.getTypeName=function(){return"featuredProductsEntity"};var UUY=function(){ly.apply(this,arguments)};
_.S(UUY,ly);UUY.prototype.getAssociations=function(){return[]};
UUY.prototype.getTypeName=function(){return"pinnedProductEntity"};var $UC=function(){ly.apply(this,arguments)};
_.S($UC,ly);$UC.prototype.getAssociations=function(){return[]};
$UC.prototype.getTypeName=function(){return"trendingOfferEntity"};_.KsY=new _.Ed("merchandiseShelfRenderer");var RqQ=new _.Ed("shoppingContentLineItemViewModel");var CJQ=new _.Ed("shoppingDescriptionItemViewModel");var wrD=new _.Ed("gridMovieRenderer");_.dUt=new _.Ed("movieRenderer");var hqH=function(){ly.apply(this,arguments)};
_.S(hqH,ly);hqH.prototype.getAssociations=function(){return[]};
hqH.prototype.getTypeName=function(){return"compositeSourceEntity"};var FsH=function(){ly.apply(this,arguments)};
_.S(FsH,ly);FsH.prototype.getAssociations=function(){var X=[];this.delegate.compositeSourceKeys&&X.push.apply(X,_.LJ(this.delegate.compositeSourceKeys));return[].concat(_.LJ(new Set(X)))};
FsH.prototype.getTypeName=function(){return"multiviewStagingEntity"};var BhH=function(){ly.apply(this,arguments)};
_.S(BhH,ly);BhH.prototype.getAssociations=function(){var X=[];this.delegate.trackDownloadMetadatas&&X.push.apply(X,_.LJ(this.delegate.trackDownloadMetadatas));return[].concat(_.LJ(new Set(X)))};
BhH.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var qKG=function(){ly.apply(this,arguments)};
_.S(qKG,ly);
qKG.prototype.getAssociations=function(){var X=[];this.delegate.downloadedTracks&&X.push.apply(X,_.LJ(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&X.push.apply(X,_.LJ(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&X.push.apply(X,_.LJ(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&X.push.apply(X,_.LJ(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&X.push.apply(X,_.LJ(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
X.push.apply(X,_.LJ(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&X.push.apply(X,_.LJ(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&X.push.apply(X,_.LJ(this.delegate.metadataOnlyTracks));return[].concat(_.LJ(new Set(X)))};
qKG.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var sEz=function(){ly.apply(this,arguments)};
_.S(sEz,ly);sEz.prototype.getAssociations=function(){var X=[];this.delegate.trackDownloadMetadatas&&X.push.apply(X,_.LJ(this.delegate.trackDownloadMetadatas));return[].concat(_.LJ(new Set(X)))};
sEz.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var Mjz=function(){ly.apply(this,arguments)};
_.S(Mjz,ly);Mjz.prototype.getAssociations=function(){var X=[];this.delegate.playbackData&&X.push(this.delegate.playbackData);this.delegate.localImageEntities&&X.push.apply(X,_.LJ(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&X.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LJ(new Set(X)))};
Mjz.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var uVt=function(){ly.apply(this,arguments)};
_.S(uVt,ly);
uVt.prototype.getAssociations=function(){var X=[];this.delegate.musicLibraryStatusEntity&&X.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&X.push.apply(X,_.LJ(this.delegate.primaryArtists));this.delegate.details&&X.push(this.delegate.details);this.delegate.userDetails&&X.push(this.delegate.userDetails);this.delegate.tracks&&X.push.apply(X,_.LJ(this.delegate.tracks));this.delegate.share&&X.push(this.delegate.share);this.delegate.downloadMetadata&&X.push(this.delegate.downloadMetadata);this.delegate.refresh&&
X.push(this.delegate.refresh);return[].concat(_.LJ(new Set(X)))};
uVt.prototype.getTypeName=function(){return"musicAlbumRelease"};
var eq6=function(){ly.apply(this,arguments)};
_.S(eq6,ly);eq6.prototype.getAssociations=function(){var X=[];this.delegate.albumRelease&&X.push(this.delegate.albumRelease);this.delegate.tracks&&X.push.apply(X,_.LJ(this.delegate.tracks));return[].concat(_.LJ(new Set(X)))};
eq6.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var yxH=function(){ly.apply(this,arguments)};
_.S(yxH,ly);yxH.prototype.getAssociations=function(){var X=[];this.delegate.albumRelease&&X.push(this.delegate.albumRelease);return[].concat(_.LJ(new Set(X)))};
yxH.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var Vj_=function(){ly.apply(this,arguments)};
_.S(Vj_,ly);Vj_.prototype.getAssociations=function(){var X=[];this.delegate.details&&X.push(this.delegate.details);this.delegate.userDetails&&X.push(this.delegate.userDetails);return[].concat(_.LJ(new Set(X)))};
Vj_.prototype.getTypeName=function(){return"musicArtist"};
var PJC=function(){ly.apply(this,arguments)};
_.S(PJC,ly);PJC.prototype.getAssociations=function(){var X=[];this.delegate.parentArtist&&X.push(this.delegate.parentArtist);return[].concat(_.LJ(new Set(X)))};
PJC.prototype.getTypeName=function(){return"musicArtistDetail"};
var fED=function(){ly.apply(this,arguments)};
_.S(fED,ly);fED.prototype.getAssociations=function(){var X=[];this.delegate.parentArtist&&X.push(this.delegate.parentArtist);return[].concat(_.LJ(new Set(X)))};
fED.prototype.getTypeName=function(){return"musicArtistUserDetail"};var prq=function(){ly.apply(this,arguments)};
_.S(prq,ly);prq.prototype.getAssociations=function(){return[]};
prq.prototype.getTypeName=function(){return"musicLibraryEdit"};var SK_=function(){ly.apply(this,arguments)};
_.S(SK_,ly);SK_.prototype.getAssociations=function(){return[]};
SK_.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var zqG=function(){ly.apply(this,arguments)};
_.S(zqG,ly);
zqG.prototype.getAssociations=function(){var X=[];this.delegate.tracks&&X.push.apply(X,_.LJ(this.delegate.tracks));this.delegate.refresh&&X.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&X.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&X.push(this.delegate.details);this.delegate.downloadMetadata&&X.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&X.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&X.push(this.delegate.userDetails);this.delegate.entryCollection&&
X.push(this.delegate.entryCollection);this.delegate.share&&X.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&X.push.apply(X,_.LJ((new nvQ(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.LJ(new Set(X)))};
zqG.prototype.getTypeName=function(){return"musicPlaylist"};
var nvQ=function(){HX.apply(this,arguments)};
_.S(nvQ,HX);nvQ.prototype.getAssociations=function(){var X=[];this.delegate.creatorEntity&&X.push(this.delegate.creatorEntity);return[].concat(_.LJ(new Set(X)))};var khD=function(){ly.apply(this,arguments)};
_.S(khD,ly);khD.prototype.getAssociations=function(){return[]};
khD.prototype.getTypeName=function(){return"musicShare"};var xU9=function(){ly.apply(this,arguments)};
_.S(xU9,ly);
xU9.prototype.getAssociations=function(){var X=[];this.delegate.musicLibraryStatusEntity&&X.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&X.push.apply(X,_.LJ(this.delegate.artists));this.delegate.audioModeVersion&&X.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&X.push(this.delegate.videoModeVersion);this.delegate.userDetails&&X.push(this.delegate.userDetails);this.delegate.details&&X.push(this.delegate.details);this.delegate.albumRelease&&X.push(this.delegate.albumRelease);this.delegate.share&&
X.push(this.delegate.share);this.delegate.libraryEdit&&X.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&X.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&X.push(this.delegate.playbackPosition);this.delegate.lyrics&&X.push(this.delegate.lyrics);return[].concat(_.LJ(new Set(X)))};
xU9.prototype.getTypeName=function(){return"musicTrack"};
var DUQ=function(){ly.apply(this,arguments)};
_.S(DUQ,ly);DUQ.prototype.getAssociations=function(){var X=[];this.delegate.parentTrack&&X.push(this.delegate.parentTrack);return[].concat(_.LJ(new Set(X)))};
DUQ.prototype.getTypeName=function(){return"musicTrackDetail"};
var tjq=function(){ly.apply(this,arguments)};
_.S(tjq,ly);tjq.prototype.getAssociations=function(){var X=[];this.delegate.parentTrack&&X.push(this.delegate.parentTrack);return[].concat(_.LJ(new Set(X)))};
tjq.prototype.getTypeName=function(){return"musicTrackUserDetail"};var Zs=new _.Ed("musicResponsiveListItemRenderer");var HKy=new _.Ed("addToPlaylistEndpoint");var WsD=new _.Ed("captionPickerEndpoint");var Ev_=new _.Ed("suggestStats");var gvG=new _.Ed("backstageImageUploadEndpoint");var Ghv=new _.Ed("createBackstagePostDialogEndpoint");_.aEG=new _.Ed("createCommentReplyDialogEndpoint");_.ZDC=new _.Ed("updateCommentDialogEndpoint");_.iDD=new _.Ed("updateCommentReplyDialogEndpoint");var vvQ=new _.Ed("menuEndpoint");var HPK=new _.Ed("modalEndpoint");var ODF=new _.Ed("playlistEditorEndpoint");var mUG=new _.Ed("copyTextEndpoint");var QEG,ThQ;QEG=new _.Ed("shareEndpoint");ThQ=new _.Ed("shareEntityEndpoint");_.Nh6=new _.Ed("shareEntityServiceEndpoint");_.cDy=new _.Ed("userFeedbackEndpoint");_.ku=new _.Ed("watchEndpoint");var XNy=new _.Ed("watchPlaylistEndpoint");var cxC=new _.Ed("addUpcomingEventReminderEndpoint");_.sb=new _.Ed("getCommentsFromInboxCommand");var jE_=new _.Ed("notificationOptOutEndpoint");var rxQ=new _.Ed("recordNotificationInteractionsEndpoint");var JxY=new _.Ed("removeUpcomingEventReminderEndpoint");_.tw=new _.Ed("getDownloadActionCommand");_.LsH=new _.Ed("offlineOrchestrationActionCommand");var YK9=function(){ly.apply(this,arguments)};
_.S(YK9,ly);YK9.prototype.getAssociations=function(){return[]};
YK9.prototype.getTypeName=function(){return"captionTrack"};var IEC=function(){ly.apply(this,arguments)};
_.S(IEC,ly);IEC.prototype.getAssociations=function(){return[]};
IEC.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var Axq=function(){ly.apply(this,arguments)};
_.S(Axq,ly);Axq.prototype.getAssociations=function(){return[]};
Axq.prototype.getTypeName=function(){return"offlineVideoPolicy"};var XPQ=function(){ly.apply(this,arguments)};
_.S(XPQ,ly);XPQ.prototype.getAssociations=function(){return[]};
XPQ.prototype.getTypeName=function(){return"offlineVideoStreams"};var HLG=function(){ly.apply(this,arguments)};
_.S(HLG,ly);HLG.prototype.getAssociations=function(){var X=[];this.delegate.transfer&&X.push(this.delegate.transfer);this.delegate.adsPlaybackData&&X.push.apply(X,_.LJ(this.delegate.adsPlaybackData));this.delegate.drmLicense&&X.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&X.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&X.push(this.delegate.videoDownloadContextEntity);return[].concat(_.LJ(new Set(X)))};
HLG.prototype.getTypeName=function(){return"playbackData"};var lo9=function(){ly.apply(this,arguments)};
_.S(lo9,ly);lo9.prototype.getAssociations=function(){return[]};
lo9.prototype.getTypeName=function(){return"refresh"};var oSH=function(){ly.apply(this,arguments)};
_.S(oSH,ly);oSH.prototype.getAssociations=function(){var X=[];this.delegate.offlineVideoStreams&&X.push.apply(X,_.LJ(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&X.push.apply(X,_.LJ(this.delegate.captionTrack));return[].concat(_.LJ(new Set(X)))};
oSH.prototype.getTypeName=function(){return"transfer"};var bLD=function(){ly.apply(this,arguments)};
_.S(bLD,ly);bLD.prototype.getAssociations=function(){return[]};
bLD.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var UyY=new _.Ed("showMoreDrawerCommand");var $yD=new _.Ed("updateEngagementPanelContentCommand");var KG_=new _.Ed("getPdgBuyFlowCommand");var RHQ=new _.Ed("liveChatPurchaseMessageEndpoint");var CUQ=new _.Ed("openSuperStickerBuyFlowCommand");var wP6=new _.Ed("updatePdgFeatureEnablementCommand");var dyv=function(){ly.apply(this,arguments)};
_.S(dyv,ly);dyv.prototype.getAssociations=function(){return[]};
dyv.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var hHD=function(){ly.apply(this,arguments)};
_.S(hHD,ly);hHD.prototype.getAssociations=function(){return[]};
hHD.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.FGF=new _.Ed("pdgCommentChipRenderer");_.BI9=new _.Ed("permissionRoleBottomBarRenderer");_.qRt=new _.Ed("updatePermissionRoleCommand");var shz=new _.Ed("prefetchWatchCommand");var MZ6=new _.Ed("updatePlayerErrorMessageCommand");var cUK=new _.Ed("toggleCaptionsVisibilityCommand");var uXY=new _.Ed("playerDisclosureViewModel");_.eHH=new _.Ed("quickActionsViewModel");var yL6=new _.Ed("playerResponse");var VZQ=new _.Ed("playlistRenderer");_.PUQ=new _.Ed("playlistVideoListRenderer");_.MI=new _.Ed("playlistEditEndpoint");var foQ=new _.Ed("createImagePollCommand");var pP9=new _.Ed("createQuizCommand");var SR_=new _.Ed("quizRenderer");var zHQ=new _.Ed("uploadedVideoRenderer");var nSt=new _.Ed("decorateMessageEndpoint");var klY=new _.Ed("lpOfferCardOptionViewModel");var xy_=new _.Ed("sfvAudioItemPlaybackCommand");var DyQ=function(){ly.apply(this,arguments)};
_.S(DyQ,ly);DyQ.prototype.getAssociations=function(){return[]};
DyQ.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.uy=new _.Ed("reelNonVideoContentEndpoint");_.HM=new _.Ed("reelWatchEndpoint");var tZC=new _.Ed("reelActionBarViewModel");_.eR=new _.Ed("reelItemRenderer");var WGQ=new _.Ed("reelMetapanelViewModel");_.ES9=new _.Ed("reelNonVideoContentRenderer");var gSG=new _.Ed("shortsLockupViewModel");var Gl_=new _.Ed("sponsorButtonViewModel");var aoq=new _.Ed("reelItemWatchResponse");var ZLt=new _.Ed("textBadgeRenderer");_.yB=new _.Ed("buttonRenderer");_.VB=new _.Ed("toggleButtonRenderer");var Kvb=new _.Ed("switchButtonViewModel");_.iLF=new _.Ed("confirmDialogRenderer");var vS_;vS_=new _.Ed("menuRenderer");_.OL_=new _.Ed("menuFlexibleItemRenderer");var myC=new _.Ed("pollRenderer");_.QhG=new _.Ed("backgroundPromoRenderer");var NI9;_.TIH=new _.Ed("chipCloudRenderer");NI9=new _.Ed("chipCloudChipRenderer");var cLv=new _.Ed("dropdownRenderer");var jhC=new _.Ed("gridVideoRenderer");_.rLG=new _.Ed("itemSectionRenderer");_.JLG=new _.Ed("messageRenderer");var LG6=new _.Ed("sortFilterHeaderRenderer");_.YRG=new _.Ed("videoRenderer");var IoY=new _.Ed("resolveUrlCommandMetadata");var AL_=function(){ly.apply(this,arguments)};
_.S(AL_,ly);AL_.prototype.getAssociations=function(){return[]};
AL_.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.XOY=new _.Ed("getAnswerCommand");_.IH=new _.Ed("searchEndpoint");var H0Q=new _.Ed("genAiRichTextViewModel");var AUN=new _.Ed("overviewAnswerViewModel");var l$q=new _.Ed("videoOverviewViewModel");var oWQ=new _.Ed("addToPlaylistServiceEndpoint");var b0F=new _.Ed("clearSearchHistoryEndpoint");var UjG=new _.Ed("clearWatchHistoryEndpoint");var $jz=new _.Ed("webSerializedServiceEndpointExtension");_.Kjv=new _.Ed("createCommentEndpoint");var Rgq=new _.Ed("createCommentReplyEndpoint");var Cf6=new _.Ed("performCommentActionEndpoint");var wOz=new _.Ed("updateCommentEndpoint");var djt=new _.Ed("updateCommentReplyEndpoint");_.PX=new _.Ed("createPlaylistServiceEndpoint");var hgD=new _.Ed("deletePlaylistEndpoint");var Fj9=new _.Ed("deleteVideoEndpoint");var X28=new _.Ed("getReportFormEndpoint");var B29=new _.Ed("modifyChannelNotificationPreferenceEndpoint");var w_z;_.Iq=new _.Ed("offlinePlaylistEndpoint");w_z={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 drz;_.Yj=new _.Ed("offlineVideoEndpoint");drz={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 qv_=new _.Ed("pingingEndpoint");_.sIC=new _.Ed("selectActiveIdentityEndpoint");var MnH=new _.Ed("setSettingEndpoint");var mMy=new _.Ed("undoFeedbackEndpoint");var ujF=new _.Ed("unsubscribeEndpoint");_.eg6=new _.Ed("updatedMetadataEndpoint");var yWC=function(){ly.apply(this,arguments)};
_.S(yWC,ly);yWC.prototype.getAssociations=function(){return[]};
yWC.prototype.getTypeName=function(){return"settingEntity"};_.Vnv=new _.Ed("updateLocalAppSettingCommand");var PfQ=new _.Ed("saveImageToDeviceEndpoint");var f$t=new _.Ed("shareImageCommand");var pOv=new _.Ed("sharingProviderDataCommand");var Svz=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Svz,_.sU);var zgQ=[0,_.ZU,-1];Svz.prototype.JSC$12844_serializeBinary=CQk(zgQ);var nWQ=_.tb(zgQ);var kCF=new _.Ed("userMentionSuggestionRenderer");var xj9=new _.Ed("liveChatTunnelCommand");var DjQ=new _.Ed("showSponsorshipsGiftOfferDialogCommand");var tnt=new _.Ed("sponsorshipsScrollableShelfViewModel");var Wjz=new _.Ed("updateUpcomingEventReminderButtonStateCommand");var EWz=new _.Ed("upcomingEventReminderButtonStateRenderer");var gW_=new _.Ed("subscribeEndpoint");var GCQ=new _.Ed("registerTasksCommand");var a$v=new _.Ed("hideSheetCommand");var Z0G=new _.Ed("hideSnackbarCommand");var i0Y=new _.Ed("showDialogCommand");_.$$=new _.Ed("showSheetCommand");var vW6=new _.Ed("showSnackbarCommand");var O0Q=function(){ly.apply(this,arguments)};
_.S(O0Q,ly);O0Q.prototype.getAssociations=function(){return[]};
O0Q.prototype.getTypeName=function(){return"chipEntity"};var mj_=function(){ly.apply(this,arguments)};
_.S(mj_,ly);mj_.prototype.getAssociations=function(){return[]};
mj_.prototype.getTypeName=function(){return"dismissState"};_.eu=new _.Ed("avatarViewModel");var QID=new _.Ed("badgeViewModel");_.fk=new _.Ed("buttonViewModel");_.pk=new _.Ed("chipViewModel");var T2t=new _.Ed("contentPreviewImageViewModel");var N2D=new _.Ed("decoratedAvatarViewModel");_.zYy=new _.Ed("engagementBarViewModel");_.cW9=new _.Ed("imageBannerViewModel");var jI9=new _.Ed("lockupContentMetadataRowExtension");_.rWD=new _.Ed("lockupMetadataViewModel");var JWv=new _.Ed("lockupViewModel");var Ljq=new _.Ed("avatarStackViewModel");_.Yv_=new _.Ed("contentMetadataViewModel");var I$G=function(){ly.apply(this,arguments)};
_.S(I$G,ly);I$G.prototype.getAssociations=function(){return[]};
I$G.prototype.getTypeName=function(){return"pageHeaderEntity"};_.AWH=new _.Ed("pageHeaderViewModel");var Xm_=new _.Ed("snackbarViewModel");var HVF=new _.Ed("thumbnailHoverOverlayToggleActionsViewModel");_.SR=new _.Ed("toggleButtonViewModel");var lmq=function(){ly.apply(this,arguments)};
_.S(lmq,ly);lmq.prototype.getAssociations=function(){return[]};
lmq.prototype.getTypeName=function(){return"votingEntity"};_.ndz=new _.Ed("votingViewModel");var oXH=new _.Ed("sectionHeaderViewModel");var bVv=new _.Ed("notifyDropdownOptionSelectedCommand");var gZ8=new _.Ed("listViewModel");_.KS=new _.Ed("listItemViewModel");var UPz=new _.Ed("dialogHeaderViewModel");var $Pt=function(){ly.apply(this,arguments)};
_.S($Pt,ly);$Pt.prototype.getAssociations=function(){return[]};
$Pt.prototype.getTypeName=function(){return"dataFreshnessEntity"};var m4h=new _.Ed("suspenseViewModel");var KwG=new _.Ed("tooltipViewModel");var RyQ=function(){ly.apply(this,arguments)};
_.S(RyQ,ly);RyQ.prototype.getAssociations=function(){return[]};
RyQ.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var C26=function(){ly.apply(this,arguments)};
_.S(C26,ly);C26.prototype.getAssociations=function(){return[]};
C26.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var wmt=function(){ly.apply(this,arguments)};
_.S(wmt,ly);wmt.prototype.getAssociations=function(){return[]};
wmt.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.dPF=new _.Ed("transcriptSubmitCaptionCorrectionCommand");var hyQ=function(){ly.apply(this,arguments)};
_.S(hyQ,ly);hyQ.prototype.getAssociations=function(){return[]};
hyQ.prototype.getTypeName=function(){return"buttonEntity"};var QfL=new _.Ed("unpluggedStringRunImage");var Fwq=new _.Ed("tabViewModel");var B3F=new _.Ed("tabbedViewModel");var qIG=function(){ly.apply(this,arguments)};
_.S(qIG,ly);qIG.prototype.getAssociations=function(){return[]};
qIG.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.s2G=new _.Ed("updateDescriptionAction");var Mbq=new _.Ed("updateToggleButtonTextAction");var ur9=new _.Ed("showFullscreenPlayerControlsCommand");var ey9=new _.Ed("updateVideoMetadataCommand");_.yTQ=new _.Ed("autoplaySwitchButtonRenderer");var yC;_.VbH=new _.Ed("multiMarkersPlayerBarRenderer");yC=new _.Ed("chapterRenderer");var P2_=new _.Ed("heatMarkerRenderer");var XhD=new _.Ed("heatmapRenderer");var fmF=new _.Ed("smartSkipPlayerScrimOverlayRenderer");var pmH=new _.Ed("timedMarkerDecorationRenderer");var B4l=new _.Ed("postWebToNativeMessageCommand");var eg=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(eg,_.sU);eg.prototype.getMethodName=function(){return _.sC(this,1)};var SIz=[0,_.ZU,-2];eg.prototype.JSC$12866_serializeBinary=CQk(SIz);var zy6=_.xn(eg,SIz);var nX_=new _.Ed("whitelistEditEndpoint");var k4Q=new _.Ed("clearUrlParamCommand");var xPQ=new _.Ed("commerceActionCommand");_.DP6=new _.Ed("getPaymentInstrumentsParamsCommand");var tbz=new _.Ed("getPaymentsClientTokenCommand");var Ww6=new _.Ed("googlePaymentBillingCommand");var EXH=new _.Ed("googlePaymentPurchaseManagerCommand");_.gXq=new _.Ed("logGtmCommand");var G4D=new _.Ed("updateCardItemOnClickCommand");_.amt=new _.Ed("ypcPauseSubscriptionCommand");_.ZVQ=new _.Ed("ypcResumeSubscriptionCommand");var iVQ=function(){ly.apply(this,arguments)};
_.S(iVQ,ly);iVQ.prototype.getAssociations=function(){return[]};
iVQ.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var vX9=function(){ly.apply(this,arguments)};
_.S(vX9,ly);vX9.prototype.getAssociations=function(){return[]};
vX9.prototype.getTypeName=function(){return"commerceCartListEntity"};var OVF=function(){ly.apply(this,arguments)};
_.S(OVF,ly);OVF.prototype.getAssociations=function(){return[]};
OVF.prototype.getTypeName=function(){return"iconBadgeEntity"};var mPQ=function(){ly.apply(this,arguments)};
_.S(mPQ,ly);mPQ.prototype.getAssociations=function(){return[]};
mPQ.prototype.getTypeName=function(){return"pdpStateEntity"};var Q2Q=function(){ly.apply(this,arguments)};
_.S(Q2Q,ly);Q2Q.prototype.getAssociations=function(){return[]};
Q2Q.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var ObL=new _.Ed("ypcOffersEndpoint");var T3H=new _.Ed("cardItemRenderer"),N3_=new _.Ed("cardItemTextRenderer");var cTQ=new _.Ed("commerceCartItemQuantityPickerRenderer");var j2z=new _.Ed("linkCardRenderer");var K7W=new _.Ed("quantityIncrementerButtonViewModel");var rT9=new _.Ed("quantityIncrementerViewModel");var JTF=new _.Ed("themedImageViewModel");_.Lwz=new _.Ed("ypcCancelRecurrenceEndpoint");var YI6=new _.Ed("ypcCompleteTransactionEndpoint");_.Imv=new _.Ed("ypcGetCartEndpoint");_.W6=new _.Ed("ypcGetOffersEndpoint");_.zI=new _.Ed("ypcHandleTransactionEndpoint");var ATz=new _.Ed("ypcLogWalletAnalyticDataEndpoint");_.lwz=new _.Ed("ypcRedeemCodeEndpoint");var oR_=new _.Ed("ypcUpdateFopEndpoint");GU(gM(1),W9(4));GSG((new MessageChannel).port2);var bBF=function(){this.register=new Map},VRZ=function(X,H,l){X=X+"_"+H;
nk.register.has(X)?l=nk.register.get(X):(l=l(),nk.register.set(X,l));return l},UC_=function(X){X=_.C(X.register.values());
for(var H=X.next();!H.done;H=X.next())_.H8(H.value,"ABORTED")};
bBF.prototype.clear=function(){UC_(this);this.register.clear()};
var nk=new bBF;var Hkk=Date.now().toString();var bky=o8b();var h6b={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 $CQ;$CQ=1;_.h$=function(X){this.veData=X};
_.$l=function(X){return new _.h$({trackingParams:X})};
_.cS=function(X,H,l,b,U,K){var w=$CQ++;return new _.h$({veType:X,veCounter:w,elementIndex:l,dataElement:H,youtubeData:b,jspbYoutubeData:U,loggingDirectives:K})};
_.R=_.h$.prototype;
_.R.getAsJson=function(){var X={};this.veData.trackingParams!==void 0?X.trackingParams=this.veData.trackingParams:(X.veType=this.veData.veType,this.veData.veCounter!==void 0&&(X.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(X.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(X.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(X.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(X.isCounterfactual=!0);
return X};
_.R.getAsJspb=function(){var X=new FSQ;this.veData.trackingParams!==void 0?X.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Vs(X,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Vs(X,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Vs(X,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.cb(X,5,!0));if(this.veData.dataElement!==void 0){var H=this.veData.dataElement.getAsJspb();_.go(X,7,H)}this.veData.youtubeData!==void 0&&_.go(X,8,this.veData.jspbYoutubeData);
return X};
_.R.toString=function(){return JSON.stringify(this.getAsJson())};
_.R.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.R.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.cQ("yt_logging_screen.getRootVeType",Cyh);_.cQ("yt_logging_screen.getCurrentCsn",_.Bi);_.cQ("yt_logging_screen.getCttAuthInfo",qG);_.cQ("yt_logging_screen.setCurrentScreen",_.sc);var KkQ=function(){this.events=new Map},RaD=function(X){var H=[];
X=_.C(X.events.values());for(var l=X.next();!l.done;l=X.next())H.push(l.value);return H};
KkQ.prototype.clear=function(){this.events.clear()};var waD=function(){this.logTransport=new C_6;this.loggedEventRegister=new KkQ;this.unloggedEventRegister=new KkQ;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12903_flushTimer=new _.ho(this.flushInterval);this.JSC$12903_flushTimer.listen("tick",this.flush,!1,this)};
waD.prototype.flush=function(){if(this.eventsCount){var X={loggedEvents:RaD(this.loggedEventRegister),unloggedEvents:RaD(this.unloggedEventRegister)};if(_.P("export_player_version_to_ytconfig")){var H;(H=_.gx("PLAYER_CLIENT_VERSION"))?(H=H.split("-")[0].replace(/\./g,""),H=isNaN(Number(H))?"0":H):H="";var l=_.gx("PLAYER_CLIENT_VERSION");if(l){l=l.split("-");var b="";l.length>1&&(b=l[l.length-1]);l=XXO(b.startsWith("canary_experiment")?"canary":b.startsWith("canary_control")?"control":"none")}else l=
"CLIENT_CANARY_STATE_UNKNOWN";X.dimensions={playerClientVersion:H,playerCanaryState:l}}this.logTransport.flush(X);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12903_flushTimer.enabled&&this.JSC$12903_flushTimer.stop()}};
var dC_=function(X){k8==null&&(k8=new waD);var H=k8;var l=H.loggedEventRegister;X.dimensions=X.dimensions||{};X.dimensions.csn=_.Bi()||"";var b=qbk(X.dimensions).join(";");if(X.records!=null)if(l.events.has(b)){var U;(U=l.events.get(b).records)==null||U.push.apply(U,_.LJ(X.records))}else l.events.set(b,X);H.JSC$12903_flushTimer.enabled||H.JSC$12903_flushTimer.start();H.eventsCount++;H.eventsCount>=100&&H.flush()};var C_6=function(){};
C_6.prototype.flush=function(X,H){_.P("enable_client_sli_logging")&&_.Sh("sliEventBatch",X,{sendIsolatedPayload:!!H})};var k8;var Fk9;Fk9=function(X){var H=haG;X=X===void 0?{}:X;H=H.name;var l=yiy("SUCCESS");dC_({dimensions:X,records:[{name:H,state:"SLI_STATE_END",status:l}]})};
_.Pyk=function(X,H,l,b){this.name=X;this.sliId=H;this.timeoutMs=l;this.statusOnTimeout=b;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Pyk.prototype.getId=function(){return this.sliId};
_.Xk=function(X,H){H=H===void 0?{}:H;X.ongoing||(X.ongoing=!0,X.dimensions=H,X.logSliId=TBb(),dC_({dimensions:X.dimensions,records:[{name:X.name,state:"SLI_STATE_START",sliId:X.logSliId}]}),X.timeoutMs>0&&(X.timeoutHandle=setTimeout(function(){_.H8(X,X.statusOnTimeout)},X.timeoutMs)))};
_.H8=function(X,H){X.ongoing&&(X.timeoutMs>0&&clearTimeout(X.timeoutHandle),X.ongoing=!1,H={dimensions:X.dimensions,records:[{name:X.name,status:yiy(H),state:"SLI_STATE_END",sliId:X.logSliId}]},nk.register.delete(X.name+"_"+X.sliId),dC_(H))};var haG=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var BeD=function(){ly.apply(this,arguments)};
_.S(BeD,ly);BeD.prototype.getAssociations=function(){return[]};
BeD.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var qOv=new _.Ed("highlightTextDecoratorColorMapExtension");var srQ=new _.Ed("styleRunColorMapExtension");var xIh=_.W8(["data-"]),WRb={};var g8l={};var x8=function(X){this.wrappedPromise_=X===void 0?null:X;this.state_=0;this.JSC$12934_value_=null};
x8.prototype.then=function(X,H,l){return this.wrappedPromise_?this.wrappedPromise_.then(X,H,l):this.state_===1&&X?(X=X.call(l,this.JSC$12934_value_))&&typeof X.then==="function"?X:_.Dz(X):this.state_===2&&H?(X=H.call(l,this.JSC$12934_value_))&&typeof X.then==="function"?X:_.MK9(X):this};
x8.prototype.getValue=function(){return this.JSC$12934_value_};
x8.prototype.isRejected=function(){return this.state_==2};
Dkz(x8);_.MK9=function(X){var H=new x8;X=X===void 0?null:X;H.state_=2;H.JSC$12934_value_=X===void 0?null:X;return H};
_.Dz=function(X){var H=new x8;X=X===void 0?null:X;H.state_=1;H.JSC$12934_value_=X===void 0?null:X;return H};var LRN="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var ugC=["load","abort","error"],ti=function(X,H,l){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12954_maxAspectRatio_=X;this.disableAnimation_=H===void 0?!1:H;this.disableExifRotation_=l===void 0?!1:l;this.JSC$12954_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12954_reject_=this.resolve_=null};
ti.prototype.transform=function(X){var H=this;this.mime_=X.type;ZN(ojG(X),this.dataUrlRead_,this.readError_,this);ZN(lHH(X.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(l,b){H.resolve_=l;H.JSC$12954_reject_=b})};
ti.prototype.dataUrlRead_=function(X){this.dataUrl_=X;this.angle_!=null&&eaq(this)};
ti.prototype.exifRead_=function(X){if(this.disableExifRotation_)this.angle_=0;else{a:if(X=new DataView(X),X.byteLength<2||X.getUint16(0)!==65496)X=-2;else{for(var H=2,l=X.byteLength;H<l;){var b=X.getUint16(H),U=X.getUint16(H+2);if(b===65505){H+=4;b=X.getUint32(H);U=X.getUint16(H+4);if(b!==1165519206||U!==0)break;H+=6;b=X.getUint16(H)===18761;H+=X.getUint32(H+4,b);U=X.getUint16(H,b);H+=2;for(var K=0;K<U;K++){if(X.getUint16(H,b)===274){H+=8;X=X.getUint16(H,b);break a}H+=12}}else if(b>>8!==255)break;
else H+=U+2}X=-1}switch(X){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&&eaq(this)};
ti.prototype.readError_=function(){this.JSC$12954_reject_()};
var eaq=function(X){MF(X.JSC$12954_image_,ugC,X.completeTransform_,!1,X);X.JSC$12954_image_.src=_.Yn(X.dataUrl_).toString();X.JSC$12954_image_.src!=LX.toString()&&X.JSC$12954_image_.src.substr(0,11)==="data:image/"||X.JSC$12954_reject_()};
ti.prototype.completeTransform_=function(){if(this.JSC$12954_image_.src!=LX.toString()){var X=_.Yn(this.dataUrl_),H=this.JSC$12954_image_.naturalHeight?this.JSC$12954_image_.naturalWidth/this.JSC$12954_image_.naturalHeight:null;this.invalidAspectRatio=H>this.JSC$12954_maxAspectRatio_||H<1/this.JSC$12954_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var l=this.JSC$12954_image_.naturalWidth,b=this.JSC$12954_image_.naturalHeight,U=H=0,K=this.JSC$12954_image_.naturalHeight?this.JSC$12954_image_.naturalWidth/
this.JSC$12954_image_.naturalHeight:null;K>this.JSC$12954_maxAspectRatio_?(l=this.JSC$12954_maxAspectRatio_*b,H=(l-this.JSC$12954_image_.naturalWidth)/2,this.cropped=!0):K<1/this.JSC$12954_maxAspectRatio_?(b=this.JSC$12954_maxAspectRatio_*l,U=(b-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)K=l,l=b,b=K,K=H,H=U,U=K;switch(this.angle_){case 90:U-=l;break;case 180:H-=l;U-=b;break;case 270:H-=
b}this.cropped||this.angle_%360!==0?(X=document.createElement("canvas"),X.width=l||1,X.height=b||1,this.JSC$12954_image_.naturalWidth&&this.JSC$12954_image_.naturalHeight&&(l=X.getContext("2d"),l.rotate(Math.PI/180*this.angle_),l.drawImage(this.JSC$12954_image_,H,U,this.JSC$12954_image_.naturalWidth,this.JSC$12954_image_.naturalHeight)),this.transformedData=_.Yn(X.toDataURL(this.mime_))):this.transformedData=X}else this.transformedData=X;this.resolve_(this)}};var WX=function(X,H){_.NF.call(this,X);this.value=H};
_.S(WX,_.NF);
var Eb=function(X,H,l,b,U,K,w){w=w===void 0?!1:w;_.zB.call(this);var d=this;this.JSC$12959_url_=X;this.channelId_=H;this.maxFileSizeMb_=l;this.JSC$12959_maxAspectRatio_=b;this.dropZoneEl_=U;this.rejectInvalidAspectRatio_=w;this.selectButtonEl_=K;this.JSC$12959_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new TU(this.dropZoneEl_);this.selectOverlay_=new N8(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12959_image_=this.transfer_=null;this.handler_=new _.C8(this);_.LY(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(K,"click",function(){d.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.S(Eb,_.zB);Eb.prototype.disposeInternal=function(){for(var X=this.selectButtonEl_.nextSibling;X&&X.parentNode&&X.tagName=="INPUT";)X.parentNode.removeChild(X),X=this.selectButtonEl_.nextSibling;this.cancel();_.zB.prototype.disposeInternal.call(this)};
Eb.prototype.uploadPromise=function(){if(this.JSC$12959_image_==null)return null;this.uploadPromise_||yK_(this);return this.uploadPromise_};
Eb.prototype.cancel=function(){VKt(this);this.JSC$12959_image_=null};
var VKt=function(X){X.transfer_&&X.transfer_.cancel();X.transfer_=null;X.uploadPromise_=null;X.resolve_=null;X.JSC$12959_reject_=null},yK_=function(X){VKt(X);
X.transfer_=_.vP9(X.JSC$12959_url_,{"X-YouTube-ChannelId":X.channelId_},X.JSC$12959_image_);X.handler_.listenOnce(X.transfer_,"l",X.JSC$12961_onUploadComplete_);X.handler_.listenOnce(X.transfer_,"n",X.onUploadError_);X.transfer_.run();X.uploadPromise_=new Promise(function(H,l){X.resolve_=H;X.JSC$12959_reject_=l})};
_.R=Eb.prototype;_.R.onChange_=function(X){X.files.length&&(this.JSC$12959_image_=X.files[0],this.JSC$12959_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12959_image_=null,this.dispatchEvent(new WX("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(yK_(this),(new ti(this.JSC$12959_maxAspectRatio_)).transform(this.JSC$12959_image_).then((0,_.K8)(this.onPreview_,this),(0,_.K8)(this.onPreviewError_,this))))};
_.R.onPreview_=function(X){if(X.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12959_image_=null),this.dispatchEvent(new WX("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;X.cropped&&this.dispatchEvent(new WX("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new WX("yt.comments.ImageUploadOverlay.CHANGE_EVENT",X.transformedData))};
_.R.onPreviewError_=function(){this.JSC$12959_image_=null;this.dispatchEvent(new WX("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.R.onHover_=function(X){X.stopPropagation();X.preventDefault();if(X.type==="dragover")X=!0;else if(X.type==="dragleave")X=!1;else return;this.dispatchEvent(new WX("yt.comments.ImageUploadOverlay.HOVER_EVENT",X))};
_.R.JSC$12961_onUploadComplete_=function(){var X=(0,_.Htq)(this.transfer_.getResponseText());this.resolve_(X.encryptedBlobId)};
_.R.onUploadError_=function(){this.JSC$12959_reject_();VKt(this)};var P_Q=function(X){X=X||{};var H={},l={};this.url=X.url||"";this.args=X.args||_.Bb.clone(H);this.assets=X.assets||{};this.attrs=X.attrs||_.Bb.clone(l);this.fallback=X.fallback||null;this.fallbackMessage=X.fallbackMessage||null;this.html5=!!X.html5;this.disable=X.disable||{};this.loaded=!!X.loaded;this.messages=X.messages||{}};
P_Q.prototype.clone=function(){var X=new P_Q,H;for(H in this)if(this.hasOwnProperty(H)){var l=this[H];_.bx(l)=="object"?X[H]=_.Bb.clone(l):X[H]=l}return X};var opl=function(X,H,l){l=l===void 0?{}:l;this.name=X;this.id=iT.nextSpanId++;this.sessionId=iT.sessionId;this.attributes=H;this.status="SPAN_STATUS_UNSET";var b;this.startTime=(b=l.startTime)!=null?b:(0,_.Jl)();this.isActiveSpan=l.active;if(X=iT.stack[iT.stack.length-1])this.parentId=X.id,X.children||(X.children=[]),X.children.push(this);X=_.C(iT.processors);for(H=X.next();!H.done;H=X.next()){H=H.value;try{var U=b=void 0;(U=(b=H).onSpanStart)==null||U.call(b,this)}catch(K){_.x2(K)}}l.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",l.endTime))};
opl.prototype.end=function(X,H){X=X===void 0?"SPAN_STATUS_OK":X;this.endTime=H=H===void 0?(0,_.Jl)():H;this.duration=this.endTime-this.startTime;this.status=X;this.isActiveSpan!==!1&&(iT.stack[iT.stack.length-1]===this?iT.stack.pop():_.x2(Error("Cf`"+String(this.name))));X=_.C(iT.processors);for(H=X.next();!H.done;H=X.next()){H=H.value;try{var l=void 0,b=void 0;(b=(l=H).onSpanEnd)==null||b.call(l,this)}catch(U){_.x2(U)}}};
opl.prototype.addAttributes=function(X){Object.assign(this.attributes,X)};
var bgW={end:function(){},
addAttributes:function(){}},iT={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},l78={rootSpan:function(){return iT.stack[0]}};var me={};var k9y=function(X){this.observers=[];this.value=X};
_.R=k9y.prototype;_.R.subscribe=function(X){var H=this;if(X.idx!=null)throw Error("Ef");X.idx=this.observers.length;this.observers.push(X);try{X(this.value)}catch(l){}return function(){var l=H.observers[H.observers.length-1];H.observers[X.idx]=l;l.idx=X.idx;H.observers.pop()}};
_.R.update=function(X){this.value=X(this.value);this.notify()};
_.R.mutate=function(X){X(this.value);this.notify()};
_.R.set=function(X){this.value=X;this.notify()};
_.R.notify=function(){for(var X=_.C(this.observers),H=X.next();!H.done;H=X.next()){H=H.value;try{H(this.value)}catch(l){}}};var fw9,paC,SOQ,aB,nR_,kgY,xCF,DCH,tKC,Wk_,ERD,gRY,GgC,awD,ZB9,iBD,vRG,OBC,mCv,QrH,TeY,NeQ,cKC,jrQ,rKt,JK9,Lk_,YOF,IwF,P8y,AKt,XNQ,HHY,lyQ,ot_,bHQ,UtC,$tC,KU_,R1z,VTk,Cnv,wNQ,dt6,h1F,FU9,ByQ,qhD,sYq,M6q,u7_,e1_,ygG,V6t,Pn6,fyq,gg,pN_,Shq,z1_,ntQ,ktq,xtC,Dt_,t6_,WUz,Et9,gt9,Gtv,ayz,ZHY,iHQ,vt_,OHG,mtF,QYC,eYW,TyG,Ny6,cgH,jY6,rgq,JgG,LUt,Yhv,IyG,Ag_,Xn_,HhG,l_z,o5G,bh6,Ux9,$xH,KJF,Rx9,CVz,wnQ,dxv,hxG,FJG,B7Y;fw9=["account/accounts_list"];paC=["acknowledge_channel_tou_strike"];SOQ=["notification/add_upcoming_event_reminder"];
_.zaQ=["att/get"];aB=["browse","music/browse","streaming_browse","unplugged/browse"];nR_=["channel/claim_legacy_youtube_channel"];kgY=["history/clear_search_history"];xCF=["history/clear_watch_history"];DCH=["comment/perform_comment_action"];tKC=["comment/get_comment_replies"];Wk_=["ypc/commerce_action"];ERD=["backstage/create_post"];gRY=["live/create_broadcast"];GgC=["channel/create_channel"];awD=["comment/create_comment_reply"];ZB9=["comment/create_comment"];iBD=["live_chat/create_poll"];vRG=["playlist/create"];
OBC=["decorate_message"];mCv=["live_chat/delete_message"];QrH=["playlist/delete"];TeY=["video/delete"];NeQ=["like/dislike"];cKC=["dismissal/dismiss"];jrQ=["flag/flag"];rKt=["flow"];JK9=["account/account_menu"];Lk_=["playlist/get_add_to_playlist"];YOF=["get_answer"];IwF=["channel/get_channel_creation_form"];P8y=["offline/get_download_action"];AKt=["kids/get_kids_blocklist_picker"];XNQ=["live_chat/get_item_context_menu"];HHY=["live_chat/get_live_chat_message_buy_flow"];lyQ=["live_chat/get_live_chat_replay"];
ot_=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];bHQ=["live_chat/get_live_chat_super_sticker_buy_flow"];UtC=["notification/get_notification_menu"];$tC=["playlist/get_settings_editor"];KU_=["backstage/get_post_video_preview"];R1z=["account/get_profile_card"];VTk=["share/get_share_panel"];Cnv=["share/get_sharing_provider_data"];wNQ=["get_survey"];dt6=["notification/get_unseen_count"];h1F=["get_user_mention_suggestions"];FU9=["get_watch"];ByQ=["guide"];
qhD=["feedback"];sYq=["kids/update_blacklist"];M6q=["like/like"];u7_=["live_chat/live_chat_action"];e1_=["live_chat/manage_user"];ygG=["video_manager/metadata_update"];V6t=["live_chat/moderate"];Pn6=["notification/modify_channel_preference"];fyq=["notification/opt_out"];gg=["get_panel","get_posts_by_host_panel"];pN_=["player"];Shq=["browse/edit_playlist"];z1_=["notification/record_interactions"];ntQ=["reel/reel_item_watch"];ktq=["reel/reel_watch_sequence"];xtC=["like/removelike"];Dt_=["notification/remove_upcoming_event_reminder"];
t6_=["flag/get_form"];WUz=["miniapp/report_value"];Et9=["navigation/resolve_url"];gt9=["channel/reveal_business_email"];Gtv=["in_video/search"];ayz=["search","sfv/search","unplugged/search"];ZHY=["live_chat/send_message"];iHQ=["live_chat/send_live_chat_vote"];vt_=["account/set_setting"];OHG=["submit_caption_correction"];mtF=["submit_form"];QYC=["subscription/subscribe"];eYW=["get_transcript"];TyG=["resolve_location","unplugged/resolve_location"];Ny6=["subscription/unsubscribe"];cgH=["backstage/update_post"];
jY6=["channel_edit/update_channel_page_settings"];rgq=["comment/update_comment_reply"];JgG=["comment/update_comment"];LUt=["comment/update_comments_settings"];Yhv=["creator/update_creator_channel"];IyG=["pdg/update_enablement"];Ag_=["updated_metadata"];Xn_=["channel_edit/validate_channel_handle"];HhG=["verify_age"];l_z=["next","unplugged/watch_next"];o5G=["whitelist/edit"];bh6=["ypc/cancel_recurrence"];Ux9=["ypc/complete_transaction"];$xH=["ypc/get_cart"];KJF=["ypc/get_fix_instrument_params"];
Rx9=["ypc/get_offers"];CVz=["ypc/get_payment_instruments_params"];wnQ=["ypc/handle_transaction"];dxv=["ypc/log_payment_server_analytics"];hxG=["ypc/pause_subscription"];FJG=["ypc/redeem_code"];B7Y=["ypc/resume_subscription"];var q0Y=[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 A$=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.cQ("yt.msgs_",A$);var GI=new _.gz("ACTION_ROUTER_TOKEN");_.ac=function(){this.autonavState_=_.P("kevlar_is_pupi_enabled")?2:M3b()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.ac.prototype.getState=function(){return this.autonavState_};
_.ac.prototype.pause=function(X){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=X):this.autonavState_==1&&(this.disabledAutonavPauseReason_=X)};
_.ac.prototype.setState=function(X,H,l){H&&(this.autoplayChangedByUser=!0);H=this.autonavState_===3||X===3;this.autonavState_!=X&&(this.autonavState_=X,X!=3&&_.utN(X==2),X=_.P("kevlar_is_pupi_enabled")?l||H:!0,_.Zq.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,X,l))};
_.ac.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.mi(_.ac);var Zz=function(){this.yW=!1};var iy={},xgh=(iy.auto_search="LATENCY_ACTION_AUTO_SEARCH",iy.ad_to_ad="LATENCY_ACTION_AD_TO_AD",iy.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",iy.app_startup="LATENCY_ACTION_APP_STARTUP",iy.browse="LATENCY_ACTION_BROWSE",iy.cast_splash="LATENCY_ACTION_CAST_SPLASH",iy.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",iy.channels="LATENCY_ACTION_CHANNELS",iy.chips="LATENCY_ACTION_CHIPS",iy.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",iy.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
iy.editor="LATENCY_ACTION_EDITOR",iy.embed="LATENCY_ACTION_EMBED",iy.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",iy.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",iy.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",iy.explore="LATENCY_ACTION_EXPLORE",iy.favorites="LATENCY_ACTION_FAVORITES",iy.home="LATENCY_ACTION_HOME",iy.inboarding="LATENCY_ACTION_INBOARDING",iy.landing="LATENCY_ACTION_LANDING",iy.learning="LATENCY_ACTION_LEARNING",
iy.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",iy.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",iy.library="LATENCY_ACTION_LIBRARY",iy.live="LATENCY_ACTION_LIVE",iy.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",iy.management="LATENCY_ACTION_MANAGEMENT",iy.mini_app="LATENCY_ACTION_MINI_APP_PLAY",iy.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",iy.onboarding="LATENCY_ACTION_ONBOARDING",iy.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
iy.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",iy.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",iy.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",iy.prebuffer="LATENCY_ACTION_PREBUFFER",iy.prefetch="LATENCY_ACTION_PREFETCH",iy.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",iy.profile_switcher="LATENCY_ACTION_LOGIN",iy.projects="LATENCY_ACTION_PROJECTS",iy.reel_watch="LATENCY_ACTION_REEL_WATCH",iy.results="LATENCY_ACTION_RESULTS",iy.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
iy.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iy.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",iy.review="LATENCY_ACTION_REVIEW",iy.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",iy.search_ui="LATENCY_ACTION_SEARCH_UI",iy.search_suggest="LATENCY_ACTION_SUGGEST",iy.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",iy.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",iy.seek="LATENCY_ACTION_PLAYER_SEEK",iy.settings="LATENCY_ACTION_SETTINGS",iy.store="LATENCY_ACTION_STORE",
iy.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",iy.tenx="LATENCY_ACTION_TENX",iy.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",iy.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",iy.watch="LATENCY_ACTION_WATCH",iy.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",iy["watch,watch7"]="LATENCY_ACTION_WATCH",iy["watch,watch7_html5"]="LATENCY_ACTION_WATCH",iy["watch,watch7ad"]="LATENCY_ACTION_WATCH",iy["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",iy.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
iy.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",iy.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",iy.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",iy.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",iy.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",iy.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",iy.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",iy),sgG=0;var rOO=function(X,H){U1.call(this,1,arguments);this.timer=H};
_.S(rOO,U1);var jyK=new BTy("aft-recorded",rOO);var Epz=_.ok.ytLoggingGelSequenceIdObj_||{};_.cQ("ytLoggingGelSequenceIdObj_",Epz);var vX=_.ok.ytLoggingLatencyUsageStats_||{};_.cQ("ytLoggingLatencyUsageStats_",vX);var Ob=function(){this.cleanupJob=0},a7y=function(){Ob.instance||(Ob.instance=new Ob);
return Ob.instance};
_.R=Ob.prototype;_.R.baseline=function(X,H,l){mR(this,"baseline_"+X)||_.Sh("latencyActionBaselined",{clientActionNonce:X},{timestamp:H,cttAuthInfo:l})};
_.R.tick=function(X,H,l,b){mR(this,"tick_"+X+"_"+H)||_.Sh("latencyActionTicked",{tickName:X,clientActionNonce:H},{timestamp:l,cttAuthInfo:b})};
_.R.info=function(X,H,l){var b=Object.keys(X).join("");mR(this,"info_"+b+"_"+H)||(X=Object.assign({},X),X.clientActionNonce=H,_.Sh("latencyActionInfo",X,{cttAuthInfo:l}))};
_.R.jspbInfo=function(X,H,l){for(var b="",U=0;U<vp(X).length;U++)vp(X)[U]!==void 0&&(b=U===0?b.concat(""+U):b.concat("_"+U));mR(this,"info_"+b+"_"+H)||(_.KY(X,2,H),H={cttAuthInfo:l},l=_.P("jspb_sparse_encoded_pivot")?new uk([{}]):new uk,_.G2(l,7,xoD,X),gpy("latencyActionInfo",l,H))};
_.R.span=function(X,H,l){var b=Object.keys(X).join("");mR(this,"span_"+b+"_"+H)||(X.clientActionNonce=H,_.Sh("latencyActionSpan",X,{cttAuthInfo:l}))};
var mR=function(X,H){vX[H]=vX[H]||{count:0};var l=vX[H];l.count++;l.time=(0,_.Jl)();X.cleanupJob||(X.cleanupJob=_.eh(_.Ss,function(){var b=(0,_.Jl)(),U;for(U in vX)vX[U]&&b-vX[U].time>6E4&&delete vX[U];X&&(X.cleanupJob=0)},5E3));
return l.count>5?(l.count===6&&Math.random()*1E5<1&&(l=new _.qd("CSI data exceeded logging limit with key",H.split("_")),H.indexOf("plev")>=0||_.x2(l)),!0):!1};var M9Y,upQ;M9Y=window;upQ=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.wc=M9Y.performance||M9Y.mozPerformance||M9Y.msPerformance||M9Y.webkitPerformance||new upQ;var cOy=!1,igy=!1,JOy=(0,_.K8)(_.wc.clearResourceTimings||_.wc.webkitClearResourceTimings||_.wc.mozClearResourceTimings||_.wc.msClearResourceTimings||_.wc.oClearResourceTimings||_.FK,_.wc);var fWz=_.ZR(function(X,H,l,b,U,K,w){if(!_.P("web_csi_action_sampling_enabled")||!_.Uf(K).actionDisabled){var d=w==null?void 0:w.spanStatus;w=w==null?void 0:w.rootSpanNonce;var B=_.$B(K);if(B.gelSpans)B.gelSpans[X]=!0;else{var q={};B.gelSpans=(q[X]=!0,q)}sgG++;X={spanName:X,spanLengthUsec:String(Math.round(H*1E3)),spanNonce:sgG,rootSpanNonce:w||sgG};d&&(X.spanStatus=d);b&&(X.spanInfo=b);U&&(X.parentSpanNonce=U);l&&(X.spanStartTimeUsec=String(Math.round(l*1E3)));_.KA(K||"").span[String(X.spanName)]=
X;l=_.$B(K);l.gelSpans||(l.gelSpans={});_.uT(l.gelSpans,X);l=S6l(K);K=_.Uf(K).cttAuthInfo;a7y().span(X,l,K);return X.spanNonce}}),exF=window;
exF.ytcsi&&(exF.ytcsi.infoGel=_.FS,exF.ytcsi.tick=_.sf);var $Uz=function(X){U1.call(this,1,arguments);this.csn=X};
_.S($Uz,U1);var e_y=new BTy("screen-created",$Uz),PJz=[],UUK=Vjy,fEm=0,VP=new Map,KsK=new Map,RqN=new Map;var yEN=Symbol("Gf"),WK=new WeakMap;var QB=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},bv=function(){QB.instance||(QB.instance=new QB);
return QB.instance};
_.R=QB.prototype;_.R.setClient=function(X){this.client=X};
_.R.JSC$13058_newScreen=function(){this.clear();this.csn=_.Bi()};
_.R.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.R.reportShown=function(X,H,l,b){var U=this.JSC$13058_getTrackingParams(X),K=X.visualElement?X.visualElement:U;H=this.shownElements.has(K);var w=this.visibleState.get(K);this.shownElements.add(K);this.visibleState.set(K,!0);X.impressionLog&&!H&&X.impressionLog();if(U||X.visualElement)if(l=yuQ(this,X,l))if(K=V9Q(this,X),TI(this,X)||K){U=X.visualElement?X.visualElement:_.$l(U);var d=X.interactionLoggingClientData;K||H?TI(this,X)&4?w||sEh(this.client,l,U,d):TI(this,X)&1&&!H&&FsO(this.client,l,U,d,b):
FsO(this.client,l,U,d,b)}};
_.R.reportHidden=function(X,H,l,b){var U=this.JSC$13058_getTrackingParams(X),K=X.visualElement?X.visualElement:U;H=this.hiddenElements.has(K);var w=this.visibleState.get(K);this.hiddenElements.add(K);this.visibleState.set(K,!1);if(w===!1)return!0;if(!U&&!X.visualElement)return!1;l=yuQ(this,X,l);if(!l||!TI(this,X)&&V9Q(this,X))return!1;U=X.visualElement?X.visualElement:_.$l(U);TI(this,X)&8?Mjh(this.client,l,U,void 0,void 0,b):TI(this,X)&2&&!H&&(X=this.client,b=yP({cttAuthInfo:qG(l)||void 0,automatedLogEventSource:b},
l),H={csn:l,ve:U.getAsJson(),eventType:2},l==="UNDEFINED_CSN"?fA("visualElementHidden",b,H):X?f2("visualElementHidden",H,X,b):_.Sh("visualElementHidden",H,b));return!0};
_.R.JSC$13058_getTrackingParams=function(X){var H=this.getData(X),l,b;if(_.P("il_use_view_model_logging_context")&&(H==null?0:(l=H.context)==null?0:(b=l.loggingContext)==null?0:b.loggingDirectives))return H.context.loggingContext.loggingDirectives.trackingParams||"";var U,K;if(H==null?0:(U=H.rendererContext)==null?0:(K=U.loggingContext)==null?0:K.loggingDirectives)return H.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(H==null?0:H.loggingDirectives)return H.loggingDirectives.trackingParams||
"";var w;return((w=X.veContainer)==null?0:w.trackingParams)?X.veContainer.trackingParams:(H==null?void 0:H.trackingParams)||""};
_.R.JSC$13058_elementShouldLogGesture=function(X,H){X=this.getData(X);return!!((Math.floor(Number(X&&X.loggingDirectives&&X.loggingDirectives.gestures&&X.loggingDirectives.gestures.types||""))||0)&H)};
_.R.JSC$13058_getNearestParentVe=function(X){var H=this.JSC$13058_getTrackingParams(X);return X.visualElement?X.visualElement:H?_.$l(H):X.parentElement?this.JSC$13058_getNearestParentVe(X.parentElement):null};
var yuQ=function(X,H,l){var b=_.Bi(l);return X.csn===null||b===X.csn||l?b:(X=new _.qd("VisibilityLogger called before newScreen",{caller:H.tagName,previous_csn:X.csn,current_csn:b}),_.x2(X),null)};
QB.prototype.getData=function(X){var H,l=X.data||((H=X.props)==null?void 0:H.data);if(!l||X.isWebComponentWrapper){var b;l=(b=WK.get(X))==null?void 0:b[yEN]}return l};
var V9Q=function(X,H){var l;return!((l=X.getData(H))==null||!l.loggingDirectives)},TI=function(X,H){X=X.getData(H);
return Math.floor(Number(X&&X.loggingDirectives&&X.loggingDirectives.visibility&&X.loggingDirectives.visibility.types||""))||1};var NI;NI=function(){};
_.AF=function(){NI.instance||(NI.instance=new NI);return NI.instance};
NI.prototype.setClient=function(X){_.ZR(bv().setClient).bind(bv())(X)};
_.PVG=function(){_.AF();_.ZR(bv().JSC$13058_newScreen).bind(bv())()};
NI.prototype.clear=function(){_.ZR(bv().clear).bind(bv())()};
NI.prototype.reportShown=function(X,H,l,b){_.ZR(bv().reportShown).bind(bv())(X,H,l,b)};
NI.prototype.reportHidden=function(X,H,l,b){return _.ZR(bv().reportHidden).bind(bv())(X,H,l,b)};
var zLh=function(X,H){return _.ZR(bv().JSC$13058_getTrackingParams).bind(bv())(H)},VSO=function(X,H){return _.ZR(bv().JSC$13058_getNearestParentVe).bind(bv())(H)};var cX,f_F;cX=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};
_.lv=function(){cX.instance||(cX.instance=new cX);return cX.instance};
cX.prototype.setClient=function(X){this.client=X};
f_F=function(X,H,l){l=l===void 0?{}:l;_.ZR(function(){var b,U,K,w=((b=_.f(H==null?void 0:H.commandMetadata,_.Ip))==null?void 0:b.rootVe)||((U=_.f(H==null?void 0:H.commandMetadata,XW9))==null?void 0:(K=U.screenVisualElement)==null?void 0:K.uiType);if(w){b=_.f(H==null?void 0:H.commandMetadata,IoY);if(b==null?0:b.parentTrackingParams){var d=_.$l(b.parentTrackingParams);if(b.parentCsn)var B=b.parentCsn}else l.clickedVisualElement?d=l.clickedVisualElement:H.clickTrackingParams&&(d=_.$l(H.clickTrackingParams));
a:{b=_.f(H,_.ku);U=_.f(H,XNy);if(b){if(U=edm(b,"VIDEO")){b={token:U,videoId:b.videoId};break a}}else if(U&&(b=edm(U,"PLAYLIST"))){b={token:b,playlistId:U.playlistId};break a}b=void 0}l=Object.assign({},{cttAuthInfo:b,parentCsn:B},l);if(_.P("expectation_logging")){var q;l.loggingExpectations=((q=_.f(H==null?void 0:H.commandMetadata,XW9))==null?void 0:q.loggingExpectations)||void 0}_.jR(X,w,d,l)}else _.x2(new _.qd("Error: Trying to create a new screen without a rootVeType",H))})()};
_.jR=function(X,H,l,b){b=b===void 0?{}:b;_.ZR(function(){q0Y.includes(H)||(_.x2(new _.qd("createClientScreen() called with a non-page VE",H)),H=83769);b.isHistoryNavigation||(X.forwardHistoryStack=[],X.backHistoryStack.push({rootVe:H,key:b.key||""}));X.graftQueue=[];X.stateChangedQueue=[];b.dataPromises?pnF(X,H,l,b):S0G(X,H,l,b)})()};
_.zxD=function(X,H,l){l=l===void 0?0:l;_.ZR(function(){H.then(function(b){X.pendingScreenCreation.has(l)&&X.pendingScreenFn&&X.pendingScreenFn();var U=_.Bi(l),K=_.F6(l);if(U&&K){var w={automatedLogEventSource:3},d;(b==null?0:(d=b.response)==null?0:d.trackingParams)&&PK(X.client,U,K,_.$l(b.response.trackingParams),!1,w);var B;(b==null?0:(B=b.playerResponse)==null?0:B.trackingParams)&&PK(X.client,U,K,_.$l(b.playerResponse.trackingParams),!1,w)}})})()};
cX.prototype.graftServerVe=function(X,H,l){var b=this;return _.ZR(function(){var U=_.$l(X);_.rg(b,U,H,l);return U})()};
_.Pry=function(X,H,l,b){return _.P("enable_client_ve_spec")&&H.clientVeSpec?(H=_.cS(H.clientVeSpec.uiType,void 0,H.clientVeSpec.elementIndex,H.clientVeSpec.clientYoutubeData,void 0,H),_.rg(X,H,l,b)?H:null):H.trackingParams?X.graftServerVe(H.trackingParams,l,b):null};
_.H5=function(X,H,l,b){return _.ZR(function(){if(!H.veType)return _.k2(new _.qd("Error: Trying to graft a client VE without a veType.")),null;if(H.visibilityTypes){var U=H.visibilityTypes.reduce(function(K,w){return K|w});
U={visibility:{types:String(U)}}}U=_.cS(H.veType,H.visualElement,H.elementIndex,H.clientYouTubeData,void 0,U);return _.rg(X,U,l,b)?U:null})()};
_.rg=function(X,H,l,b){b=b===void 0?0:b;return _.ZR(function(){if(X.pendingScreenCreation.has(b))return X.graftQueue.push([H,l]),!0;var U=_.Bi(b),K=l||_.F6(b);if(U&&K){if(_.P("combine_ve_grafts")){var w=X.cachedVisualElements.get(K.toString());w?w.push(H):(X.cachedRootVisualElements.set(K.toString(),K),X.cachedVisualElements.set(K.toString(),[H]));X.attachTimeout||(X.attachTimeout=_.eh(_.Ss,function(){n59(X,U)},1200))}else PK(X.client,U,K,H);
return!0}return!1})()};
_.Ji=function(X,H,l){l=l===void 0?0:l;var b=X.recurringGrafts.get(l)||new Map;if(_.P("smarter_ve_dedupping"))for(var U=Array.from(b.keys()),K=0;K<U.length;K++){var w=void 0,d=void 0;var B=H;var q=U[K];q.isClientVe()&&B.isClientVe()?(w=B.getAsJson(),d=q.getAsJson(),B=w.veType!==d.veType||w.elementIndex!==d.elementIndex||w.dataElement!==d.dataElement||B.getLoggingDirectives()!==q.getLoggingDirectives()?!1:!0):B=q.veData.trackingParams!==void 0&&B.veData.trackingParams!==void 0?((d=B.veData)==null?void 0:
d.trackingParams)===((w=q.veData)==null?void 0:w.trackingParams):!1;if(B)return}else if(b.has(H))return;b.set(H,void 0);X.recurringGrafts.set(l,b);_.Bi(l)==="UNDEFINED_CSN"||X.pendingScreenCreation.has(l)||_.rg(X,H,void 0,l)};
_.Lk=function(X,H,l,b){b=_.Bi(b===void 0?0:b);if(!b)return!1;eqL(X.client,b,H,l);return!0};
_.Y8=function(X,H,l,b){if(!H)return!1;b=_.Bi(b===void 0?0:b);if(!b)return!1;eqL(X.client,b,_.$l(H),l);return!0};
_.pl=function(X,H){var l=H.getScreenLayer&&H.getScreenLayer();if(H.visualElement)return _.Lk(X,H.visualElement,void 0,l);H=zLh(_.AF(),H);return _.Y8(X,H,void 0,l)};
cX.prototype.clickCommand=function(X,H,l){return _.Y8(this,X.clickTrackingParams,H,l===void 0?0:l)};
cX.prototype.stateChanged=function(X,H,l){this.visualElementStateChanged(_.$l(X),H,l===void 0?0:l)};
cX.prototype.visualElementStateChanged=function(X,H,l){l=l===void 0?0:l;l===0&&this.pendingScreenCreation.has(l)?this.stateChangedQueue.push([X,H]):this.logStateChanged(X,H,l)};
cX.prototype.logStateChanged=function(X,H,l){l=l===void 0?0:l;var b=_.Bi(l);X=X||_.F6(l);return b&&X?(yxO(this.client,b,X,H),!0):!1};
var pnF=function(X,H,l,b){b=b===void 0?{}:b;X.pendingScreenCreation.add(b.layer||0);X.pendingScreenFn=function(){S0G(X,H,l,b);var w=_.F6(b.layer);if(w){for(var d=_.C(X.graftQueue),B=d.next();!B.done;B=d.next())B=B.value,_.rg(X,B[0],B[1]||w,b.layer);w=_.C(X.stateChangedQueue);for(d=w.next();!d.done;d=w.next())d=d.value,X.logStateChanged(d[0],d[1])}};
l||_.Bi(b.layer)||X.pendingScreenFn();if(b.dataPromises)for(var U=_.C(b.dataPromises),K=U.next();!K.done;K=U.next())_.zxD(X,K.value,b.layer);else _.n2(Error("Hf"))},S0G=function(X,H,l,b){b=b===void 0?{}:b;
var U=void 0;b.layer||(b.layer=0);U=b.parentLayer!==void 0?b.parentLayer:b.layer;var K=_.Bi(U);U=_.F6(U);var w=l||U,d;w&&(b.parentCsn!==void 0?d={clientScreenNonce:b.parentCsn,visualElement:w}:K&&K!=="UNDEFINED_CSN"&&(d={clientScreenNonce:K,visualElement:w}));var B,q=_.gx("EVENT_ID");K==="UNDEFINED_CSN"&&q&&(B={servletData:{serializedServletEventId:q}});_.P("combine_ve_grafts")&&K&&n59(X,K);_.P("no_client_ve_attach_unless_shown")&&w&&K&&hqO(w,K);try{var u=_.CJy(X.client,H,d,b.csnToClone,b.cttAuthInfo,
B,b.implicitGestureType,void 0,b.loggingExpectations,b.automatedLogEventSource)}catch(V){_.Dq(V,{rootVeType:H,rootVe:U,parentVisualElement:l,currentCsn:K,parentEl:d,csnToClone:b.csnToClone});_.n2(V);return}_.sc(u,H,b.layer,b.cttAuthInfo);K&&K!=="UNDEFINED_CSN"&&U&&!FRW(K)&&Mjh(X.client,K,U,!0);X.backHistoryStack[X.backHistoryStack.length-1]&&!X.backHistoryStack[X.backHistoryStack.length-1].csn&&(X.backHistoryStack[X.backHistoryStack.length-1].csn=u||"");_.FS({clientScreenNonce:u});_.PVG();var e=_.F6(b.layer);
K&&K!=="UNDEFINED_CSN"&&e&&_.P("music_web_mark_root_visible")&&_.zu(u,e);X.pendingScreenCreation.delete(b.layer||0);X.pendingScreenFn=void 0;var y;(y=X.recurringGrafts.get(b.layer))==null||y.forEach(function(V,p){V?_.rg(X,p,V,b.layer):e&&_.rg(X,p,e,b.layer)});
k5z(X)},k5z=function(X){for(var H=0;H<X.afterNewScreenOneOffJobs.length;H++){var l=X.afterNewScreenOneOffJobs[H];
try{l()}catch(b){_.n2(b)}}for(H=X.afterNewScreenOneOffJobs.length=0;H<X.afterNewScreenRecurringJobs.length;H++){l=X.afterNewScreenRecurringJobs[H];try{l()}catch(b){_.n2(b)}}},n59=function(X,H){if(H===void 0)for(var l=dIb(),b=0;b<l.length;b++)l[b]!==void 0&&n59(X,l[b]);
else X.cachedVisualElements.forEach(function(U,K){(K=X.cachedRootVisualElements.get(K))&&wrm(X.client,H,K,U)}),X.cachedVisualElements.clear(),X.cachedRootVisualElements.clear(),X.attachTimeout=void 0};var Ic=function(X){X=X===void 0?{layer:0}:X;this.yW=!1;this.createScreenConfig=X;X={};this.qBv=(X.response=!1,X.playerResponse=!1,X)};
_.S(Ic,Zz);Ic.prototype.validate=function(X){return!(!X.data||!X.data.response&&!X.data.playerResponse)};
Ic.prototype.handle=function(X){var H=_.lv(),l=this.createScreenConfig.layer;X.data.response&&X.data.response.trackingParams&&!this.qBv.response&&(H.graftServerVe(X.data.response.trackingParams,void 0,l),this.qBv.response=!0);X.data.playerResponse&&X.data.playerResponse.trackingParams&&!this.qBv.playerResponse&&(H.graftServerVe(X.data.playerResponse.trackingParams,void 0,l),this.qBv.playerResponse=!0)};var Ai=function(){this.ze=_.kj();this.fQ=[];this.xCQ=0};
Ai.prototype.processChunk=function(X){if(X){for(var H=_.C(this.fQ),l=H.next();!l.done;l=H.next())l=l.value,l.validate(X)&&(l.handle(X),l.yW=!0);_.sf("np"+this.xCQ);this.xCQ++}};var Q3L,xx9,WJD;_.JF=function(X,H,l,b,U,K,w,d){w=w===void 0?[]:w;d=d===void 0?[]:d;this.buildCommandPayload=X;this.navigate=H;this.handleServiceRequest=l;this.sendAction=b;this.JSC$13093_screenManager=U;this.commandResolverMap=K;this.autoLogResolverAllowlist=w;this.metaCommandClickLoggingDenylist=d;this.pendingCommands=new Set;this.isTracingEnabled=!1;xx9(this)};
Q3L=function(X,H,l){var b=[_.Mc_,DDz],U=k$K,K=xMl,w=_.lv(),d=DxD;l=l===void 0?[]:l;b=b===void 0?[]:b;_.JF.instance=new _.JF(X,H,U,K,w,d,l,b)};
xx9=function(X){if(!X.isTracingEnabled&&vi("command")){var H=X.resolveCommand;X.resolveCommand=function(l,b){a:{for(U in l)if(Object.prototype.hasOwnProperty.call(l,U)){var U={commandType:U};break a}U={}}return _.Oc("command",U,H.bind(this,l,b))};
X.isTracingEnabled=!0}};
WJD=function(X,H,l){if(!X.commandResolverMap)return!1;var b=khm(H,X.commandResolverMap);return b?((X.autoLogResolverAllowlist.some(function(U){return!!_.f(H,U)})||(l==null?0:l.forceClickLogging))&&t9H(X,H,l),b instanceof Promise?b.then(function(U){U.resolve(H,l)}):b.resolve(H,l),!0):!1};
_.JF.prototype.resolveCommand=function(X,H){var l=this,b=E5q(X);if((H==null||!H.skipCommandResolverMap)&&WJD(this,X,H))return!0;if(b)return g5H(this,X,H);if(!this.buildCommandPayload)return SKk(X,"Unhandled command by buildCommandPayload"),!1;var U=this.buildCommandPayload(X,H);if(H==null?0:H.commandController)U.commandController=H.commandController;if(U.type===0){if(!this.navigate)return zqy(X,"navigate"),!1;if(!G5H(U.command))return SKk(X,"Page requests need to specify a url"),!1;_.P("logging_avoid_blocking_during_navigation")&&
_.HSk().transition("application_navigating");X=this.navigate(U)||[];ZfG(X).then(function(){l.pendingCommands.delete(U.command)});
return!0}if(U.type===1){if(!this.handleServiceRequest)return zqy(X,"handleServiceRequest"),!1;(H==null?0:H.forceClickLogging)&&t9H(this,U.command,H);X=this.handleServiceRequest(U);ZfG(X).then(function(){l.pendingCommands.delete(U.command)});
return!0}if(U.type===2){if(!this.sendAction)return zqy(X,"sendAction"),!1;t9H(this,U.command,H);this.sendAction(U);return!0}return!1};
var t9H=function(X,H,l){if((l==null||!l.disableClickTracking)&&X.JSC$13093_screenManager)if(H.clickTrackingParams&&_.P("log_click_with_layer_from_element_in_command_handler")){var b;l=l==null?void 0:(b=l.form)==null?void 0:b.element;X.JSC$13093_screenManager.clickCommand(H,null,l&&l.getScreenLayer&&l.getScreenLayer())}else H.clickTrackingParams?X.JSC$13093_screenManager.clickCommand(H):!_.P("disable_clicked_visual_element_in_command_handler")&&(l==null?0:l.clickedVisualElement)&&_.Lk(X.JSC$13093_screenManager,
l.clickedVisualElement)},E5q=function(X){var H=!!_.f(X,_.J$),l;
X=((l=_.f(X,_.Yu))==null?void 0:l.signal)==="CLIENT_SIGNAL";return H||X},g5H=function(X,H,l){var b=_.f(H,_.J$);
if(b)var U=(b==null?void 0:b.commands)||[];else{var K;if(((K=_.f(H,_.Yu))==null?void 0:K.signal)==="CLIENT_SIGNAL"){var w;U=((w=_.f(H,_.Yu))==null?void 0:w.actions)||[]}}if(U){(b=a_9(X,U))&&t9H(X,H,l);H=_.C(U);for(U=H.next();!U.done;U=H.next()){U=U.value;try{var d=Object.assign({},l);b&&(d.disableClickTracking=!0);X.resolveCommand(U,d)}catch(B){B instanceof Error&&_.n2(B)}}return!0}SKk(H,"Could not handle the meta command");return!1},a_9=function(X,H){return H.every(function(l){return X.metaCommandClickLoggingDenylist.some(function(b){return!!_.f(l,
b)})})},G5H=function(X){var H;
return!((H=_.f(X==null?void 0:X.commandMetadata,_.Ip))==null||!H.url)};var Xt=function(){Zz.apply(this,arguments)};
_.S(Xt,Zz);Xt.prototype.validate=function(X){var H,l;return!this.yW&&!!((H=X.data.response)==null?0:(l=H.onResponseReceivedEndpoints)==null?0:l.length)};
Xt.prototype.handle=function(X){var H=_.JF.instance;X=_.C(X.data.response.onResponseReceivedEndpoints);for(var l=X.next();!l.done;l=X.next())H.resolveCommand(l.value)};var Zh_,ih_,lC;
Zh_=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=_.rZ();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.HW=function(){ih_||(ih_=new Zh_);return ih_};
lC=function(){var X=_.HW();X.miniplayerButtonActivation=!1;X.userActivation=!1;X.playlistWatchPageActivation=!1;X.productDetailsPageActivation=!1;X.miniAppPageActivation=!1;X.playablesDestPageActivation=!1;X.lockupActivation=!1;X.showMiniplayerCommandActivation=!1;X.playlistSuggestionsShelfActivation=!1;X.mediaSessionPipActivation=!1;X.watchPipActivation=!1;X.watchWhileActivation=!1;X.shortsPipActivation=!1;X.companionCanvasActivation=!1};
_.v5v=function(){var X=_.HW(),H=X.mediaSessionPipActivation,l=X.watchPipActivation,b=X.watchWhileActivation,U=X.playlistWatchPageActivation,K=X.lockupActivation,w=X.showMiniplayerCommandActivation,d=X.navigatingAwayFromWatchDeletedVideo,B=X.shortsPipActivation,q=X.playlistSuggestionsShelfActivation,u=X.productDetailsPageActivation,e=X.miniAppPageActivation,y=X.playablesDestPageActivation,V=X.companionCanvasActivation;return!X.miniplayerButtonActivation&&!U&&!q&&!u&&!e&&!y&&!K&&!w&&!H&&!l&&!b&&!B&&
!V||d};var BO8;_.oy=_.Gu("FEwhat_to_watch","/",3854);_.qEb=_.Gu("FEdownloads","/feed/downloads",42352);BO8=_.Gu("FEmusic_offline","browse/FEmusic_offline",42352);var t0=function(X,H){H=H===void 0?[]:H;var l=l===void 0?[]:l;H=NBO.apply(null,[c8m.apply(null,_.LJ(H))].concat(_.LJ(l)));this.store=LxW(X,void 0,H)};
t0.prototype.getState=function(){return this.store.getState()};
t0.prototype.dispatch=function(X){return this.store.dispatch(X)};
t0.prototype.subscribe=function(X){return this.store.subscribe(X)};
t0.prototype.replaceReducer=function(X){return this.store.replaceReducer(X)};
t0.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.bC=function(X,H,l){var b=H(X.getState());return X.subscribe(function(){var U=H(X.getState());if(U!==b){var K=b;b=U;l(U,K)}})};var eHO;_.Us=function(X,H,l){return _.Of({type:"REPLACE_ENTITY",payload:{entityPayload:l,entityType:X,key:H}})};
eHO=function(X){return _.Of({type:"REPLACE_ENTITIES",payload:X})};
_.Mf=function(X,H,l,b){return _.Of({type:"UPDATE_ENTITY",payload:{entityPayload:l,entityType:X,key:H,mergeOption:b}})};var mUy=function(X){var H=this;X=X===void 0?[]:X;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;X.forEach(function(l){H.append(l)})};
_.R=mUy.prototype;_.R.getLength=function(){return this.totalLength};
_.R.append=function(X){var H=this.arrays.length===0?!1:(H=this.arrays[this.arrays.length-1])&&H.buffer===X.buffer&&H.byteOffset+H.length===X.byteOffset;H?(H=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(H.buffer,H.byteOffset,H.length+X.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(X);this.totalLength+=X.length};
_.R.split=function(X){for(var H=new mUy,l=new mUy,b=_.C(this.arrays),U=b.next();!U.done;U=b.next())U=U.value,X>=U.length?(H.append(U),X-=U.length):X?(H.append(new Uint8Array(U.buffer,U.byteOffset,X)),l.append(new Uint8Array(U.buffer,U.byteOffset+X,U.length-X)),X=0):l.append(U);return{headView:H,tailView:l}};
_.R.isFocused=function(X){return X>=this.arrayPos&&X<this.arrayPos+this.arrays[this.arrayIdx].length};
_.R.focus=function(X){if(!this.isFocused(X))for(X<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=X&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var Oht=function(X,H){X.focus(H);return X.arrays[X.arrayIdx][H-X.arrayPos]};(function(){var X=function(b){return new Uint8Array(b)},H=function(b){for(var U=new Uint8Array(b.length),K=0;K<b.length;K++)U[K]=b[K];
return U},l=new Uint8Array([1]);
return l.length===1&&l[0]===1?X:H})();
var GhW=Array(1024),gvy=window.TextDecoder?new TextDecoder:void 0,ZDz=window.TextEncoder?new TextEncoder:void 0;var ODb=function(X){this.arrayView=X;this.pos=0;this.pendingTagAndType=-1},mS=function(X){var H=Oht(X.arrayView,X.pos);
++X.pos;if(H<128)return H;for(var l=H&127,b=1;H>=128;)H=Oht(X.arrayView,X.pos),++X.pos,b*=128,l+=(H&127)*b;return l},QEy=function(X,H){var l=X.pendingTagAndType;
for(X.pendingTagAndType=-1;X.pos+1<=X.arrayView.totalLength;){l<0&&(l=mS(X));var b=l>>3,U=l&7;if(b===H)return!0;if(b>H){X.pendingTagAndType=l;break}l=-1;switch(U){case 0:mS(X);break;case 1:X.pos+=8;break;case 2:b=mS(X);X.pos+=b;break;case 5:X.pos+=4}}return!1};var NhL=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=vvy(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},jF=function(X,H){H=X.pos+H;
if(!(X.buf.length>=H)){for(var l=X.buf.length*2;l<H;)l*=2;X.buf=vvy(l,X.wasm,X.buf.subarray(0,X.pos));X.view=new DataView(X.buf.buffer,X.buf.byteOffset,X.buf.byteLength)}},cK=function(X,H){if(H>268435455){jF(X,4);
for(var l=H&1073741823,b=0;b<4;b++)X.view.setUint8(X.pos,l&127|128),l>>=7,X.pos+=1;H=Math.floor(H/268435456)}for(jF(X,4);H>127;)X.view.setUint8(X.pos,H&127|128),H>>=7,X.pos+=1;X.view.setUint8(X.pos,H);X.pos+=1};for(var cxz={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},Thy={},mx9=_.C(Object.entries(cxz)),Qgv=mx9.next();!Qgv.done;Qgv=mx9.next()){var T7Y=_.C(Qgv.value),N7D=T7Y.next().value,cuF=T7Y.next().value,jgH=N7D,ruv=cuF;ruv&&(Thy[ruv]=jgH)};var rxN=function(X,H){X=X===void 0?{}:X;switch(H.type){case "ENTITY_LOADED":return H.payload.reduce(function(b,U){var K,w=(K=U.options)==null?void 0:K.persistenceOption;if(w&&w!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&w!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return b;if(!U.entityKey)return _.n2(Error("Jf")),b;if(U.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!U.payload)return U=new _.qd("REPLACE entity mutation is missing a payload",{entityKey:U.entityKey}),_.n2(U),b;var d=(0,_.Bb.getAnyKey)(U.payload);
return LsO(b,d,U.entityKey,U.payload[d])}if(U.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{U=U.entityKey;try{var B=_.NJ(U).entityType;d=LsO(b,B,U);break a}catch(e){if(e instanceof Error){U=new _.qd("Failed to deserialize entity key",{entityKey:U,originalMessage:e.message});_.n2(U);d=b;break a}throw e;}d=void 0}return d}if(U.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!U.payload)return U=new _.qd("UPDATE entity mutation is missing a payload",{entityKey:U.entityKey}),_.n2(U),b;d=(0,_.Bb.getAnyKey)(U.payload);
var q,u;return YKZ(b,d,U.entityKey,U.payload[d],(q=U.fieldMask)==null?void 0:(u=q.mergeOptions)==null?void 0:u.repeatedFieldsMergeOption)}return b},X);
case "REPLACE_ENTITY":var l=H.payload;return LsO(X,l.entityType,l.key,l.entityPayload);case "REPLACE_ENTITIES":return Object.keys(H.payload).reduce(function(b,U){var K=H.payload[U];return Object.keys(K).reduce(function(w,d){return LsO(w,U,d,K[d])},b)},X);
case "UPDATE_ENTITY":return l=H.payload,YKZ(X,l.entityType,l.key,l.entityPayload,l.mergeOption);default:return X}};var IEz;var JuF=!1,U6,$p,Kg,Ry,Cg,LJC=function(X){_.$e.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!JuF){var H,l=new Uint8Array(256),b=new Uint8Array(256);var U=1;for(H=0;H<256;H++)l[U]=H,b[H]=U,U^=U<<1^(U>>7&&283);U6=new Uint8Array(256);$p=LA(256);Kg=LA(256);Ry=LA(256);Cg=LA(256);for(var K=0;K<256;K++){U=K?b[255^l[K]]:0;U^=U<<1^U<<2^U<<3^U<<4;U=U&255^U>>>8^99;U6[K]=U;H=U<<1^(U>>7&&283);var w=H^U;$p[K]=H<<24|U<<16|U<<8|w;Kg[K]=w<<24|$p[K]>>>8;Ry[K]=U<<24|Kg[K]>>>
8;Cg[K]=U<<24|Ry[K]>>>8}JuF=!0}U=LA(44);for(l=0;l<4;l++)U[l]=X[4*l]<<24|X[4*l+1]<<16|X[4*l+2]<<8|X[4*l+3];for(b=1;l<44;l++)X=U[l-1],l%4||(X=(U6[X>>16&255]^b)<<24|U6[X>>8&255]<<16|U6[X&255]<<8|U6[X>>>24],b=b<<1^(b>>7&&283)),U[l]=U[l-4]^X;this.key=U};
_.S(LJC,_.$e);
LJC.prototype.encrypt=function(X){var H=X.length;X=new Uint8Array(X.buffer.slice(X.byteOffset,X.byteOffset+H));for(var l=this.cipherBlock,b=0;b<H&&this.blockOffset<16;)X[b++]^=l[this.blockOffset++];for(var U=H-(H-b)%16;b<U;)Y0q(this),X[b++]^=l[0],X[b++]^=l[1],X[b++]^=l[2],X[b++]^=l[3],X[b++]^=l[4],X[b++]^=l[5],X[b++]^=l[6],X[b++]^=l[7],X[b++]^=l[8],X[b++]^=l[9],X[b++]^=l[10],X[b++]^=l[11],X[b++]^=l[12],X[b++]^=l[13],X[b++]^=l[14],X[b++]^=l[15];if(b<H)for(Y0q(this),this.blockOffset=0;b<H;)X[b++]^=
l[this.blockOffset++];return X};
var Y0q=function(X){for(var H=X.key,l=X.counter[0]^H[0],b=X.counter[1]^H[1],U=X.counter[2]^H[2],K=X.counter[3]^H[3],w=3;w>=0&&!(X.counter[w]=-~X.counter[w]);w--);for(var d,B,q=4;q<40;)w=$p[l>>>24]^Kg[b>>16&255]^Ry[U>>8&255]^Cg[K&255]^H[q++],d=$p[b>>>24]^Kg[U>>16&255]^Ry[K>>8&255]^Cg[l&255]^H[q++],B=$p[U>>>24]^Kg[K>>16&255]^Ry[l>>8&255]^Cg[b&255]^H[q++],K=$p[K>>>24]^Kg[l>>16&255]^Ry[b>>8&255]^Cg[U&255]^H[q++],l=w,b=d,U=B;X=X.cipherBlock;w=H[40];X[0]=U6[l>>>24]^w>>>24;X[1]=U6[b>>16&255]^w>>16&255;X[2]=
U6[U>>8&255]^w>>8&255;X[3]=U6[K&255]^w&255;w=H[41];X[4]=U6[b>>>24]^w>>>24;X[5]=U6[U>>16&255]^w>>16&255;X[6]=U6[K>>8&255]^w>>8&255;X[7]=U6[l&255]^w&255;w=H[42];X[8]=U6[U>>>24]^w>>>24;X[9]=U6[K>>16&255]^w>>16&255;X[10]=U6[l>>8&255]^w>>8&255;X[11]=U6[b&255]^w&255;w=H[43];X[12]=U6[K>>>24]^w>>>24;X[13]=U6[l>>16&255]^w>>16&255;X[14]=U6[b>>8&255]^w>>8&255;X[15]=U6[U&255]^w&255};var I_G=!1;(function(){var X=function(b){return new Uint8Array(b)},H=function(b){for(var U=new Uint8Array(b.length),K=0;K<b.length;K++)U[K]=b[K];
return U},l=new Uint8Array([1]);
return l.length===1&&l[0]===1?X:H})();
var wD;var HzQ=function(X){a:{if(!I_G&&!TT){if(wD){var H=wD;break a}wD=(H=window.crypto)==null?void 0:H.subtle;var l,b,U;if(((l=wD)==null?0:l.importKey)&&((b=wD)==null?0:b.sign)&&((U=wD)==null?0:U.encrypt)){H=wD;break a}wD=void 0}H=void 0}H&&(this.nativeEncryptor=new AuD(X,H));this.encryptorPolyfill=new XTQ(X)};
HzQ.prototype.encrypt=function(X,H){var l=this,b;return _.h(function(U){switch(U.nextAddress){case 1:if(!l.nativeEncryptor){U.jumpTo(2);break}_.Ew(U,3);return U.yield(l.nativeEncryptor.encrypt(X,H),5);case 5:return U.return(U.yieldResult);case 3:b=_.Ow(U),_.x2(b),I_G=!0,l.nativeEncryptor=void 0;case 2:return U.return(l.encryptorPolyfill.encrypt(X,H))}})};
HzQ.prototype.decrypt=function(X,H){return this.encrypt(X,H)};
var AuD=function(X,H){this.JSC$13166_aesKey=X;this.subtleCrypto=H};
AuD.prototype.encrypt=function(X,H){var l=this,b;return _.h(function(U){if(U.nextAddress==1)return _.Ew(U,2),U.yield(lGG(l,X,H),4);if(U.nextAddress!=2)return U.return(U.yieldResult);b=_.Ow(U);_.x2(b);I_G=!0;throw b;})};
var lGG=function(X,H,l){var b,U;return _.h(function(K){switch(K.nextAddress){case 1:if(X.cryptoKey){K.jumpTo(2);break}return K.yield(X.subtleCrypto.importKey("raw",X.JSC$13166_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:X.cryptoKey=K.yieldResult;case 2:return b={name:"AES-CTR",counter:l,length:128},K.yield(X.subtleCrypto.encrypt(b,X.cryptoKey,H),4);case 4:return U=K.yieldResult,K.return(new Uint8Array(U))}})},XTQ=function(X){this.JSC$13169_aesKey=X};
XTQ.prototype.encrypt=function(X,H){this.encryptor||(this.encryptor=new LJC(this.JSC$13169_aesKey));for(var l=this.encryptor,b=0;b<4;b++)l.counter[b]=H[b*4]<<24|H[b*4+1]<<16|H[b*4+2]<<8|H[b*4+3];l.blockOffset=16;return this.encryptor.encrypt(X)};
XTQ.prototype.decrypt=function(X,H){return this.encrypt(X,H)};var oIF={},HLy=rL("yt-idb-pref-storage",{objectStores:(oIF.prefs={addedAtVersion:1},oIF),shared:!1,upgrade:function(X,H){H(1)&&gn(E4(X,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.dD=function(X){this.token=X};
_.dD.getInstance=function(){return _.h(function(X){return X.return(new Promise(function(H){_.jv().then(function(l){l?(_.dD.instance||(_.dD.instance=new _.dD(l)),H(_.dD.instance)):H(void 0)})}))})};
_.dD.prototype.get=function(X){var H=this,l,b,U;return _.h(function(K){if(K.nextAddress==1)return K.yield(loZ(H.token),2);if(K.nextAddress!=3)return l=K.yieldResult,K.yield(l.get("prefs",X),3);b=K.yieldResult;if(!b)return K.return();U=(0,_.Jl)();return b.expirationTimestampMs<=U?K.return():K.return(b.value)})};
_.dD.prototype.set=function(X,H,l){l=l===void 0?31536E3:l;var b=this,U,K,w;return _.h(function(d){if(d.nextAddress==1)return U=(0,_.Jl)(),K={key:X,value:H,expirationTimestampMs:U+l*1E3},d.yield(loZ(b.token),2);w=d.yieldResult;return d.yield(w.put("prefs",K),0)})};
_.dD.prototype.remove=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(loZ(H.token),2);l=b.yieldResult;return b.yield(l.delete("prefs",X),0)})};var hO={},bz_=(hO.INVALID_ENCODER_VERSION="Invalid encoder version",hO.KEY_CREATION_FAILED="Failed to create encoder key",hO.UNKNOWN_DECODE_ERROR="Failed to decode PES data",hO.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",hO.WRONG_DATA_TYPE="Encoder cannot process the data type",hO),YB=function(X,H){H=H===void 0?{}:H;_.qd.call(this,bz_[X],Object.assign({},{name:"PESEncoderError",type:X},H));this.type=X;this.level="WARNING";Object.setPrototypeOf(this,YB.prototype)};
_.S(YB,_.qd);var Ft=function(){};
Ft.prototype.encode=function(X,H){try{return this.encodeImpl(X,H)}catch(l){$ym(l,bLm)}};
Ft.prototype.decode=function(X,H){try{return this.decodeImpl(X,H)}catch(l){$ym(l,UyK)}};
var U$q=function(X,H,l){var b;return _.h(function(U){if(U.nextAddress==1)return _.Ew(U,2),U.yield(X.decodeAsyncImpl(H,l),4);if(U.nextAddress!=2)return U.return(U.yieldResult);b=_.Ow(U);$ym(b,UyK);_.m5(U)})};
Ft.prototype.decodeAsyncImpl=function(X,H){return Promise.resolve(this.decodeImpl(X,H))};var BW=function(X,H){this.aesEncryptor=X;this.aesEncryptorAsync=H};
_.S(BW,Ft);BW.prototype.encodeImpl=function(X,H){H=KGy(H);X=(new TextEncoder).encode(JSON.stringify(X));return this.aesEncryptor.encrypt(X,H)};
BW.prototype.decodeImpl=function(X,H){if(!(X instanceof Uint8Array))throw oSO(1);var l=new TextDecoder;H=KGy(H);X=this.aesEncryptor.decrypt(X,H);return JSON.parse(l.decode(X))};
BW.prototype.decodeAsyncImpl=function(X,H){var l=this,b,U,K;return _.h(function(w){if(w.nextAddress==1){if(!(X instanceof Uint8Array))throw oSO(1);b=new TextDecoder;U=KGy(H);return w.yield(l.aesEncryptorAsync.decrypt(X,U),2)}K=w.yieldResult;return w.return(JSON.parse(b.decode(K)))})};var RHy={accountLinkStatusEntity:QSF,booleanEntity:q7Y,buttonEntity:hyQ,captionTrack:YK9,channelHandle:QRC,chipEntity:O0Q,commerceAcquisitionClientPayloadEntity:iVQ,commerceCartListEntity:vX9,compositeSourceEntity:hqH,multiviewStagingEntity:FsH,contextNoteFeedEntityPayload:ow9,contextNoteUserRatingEntityPayload:bRG,continuationTokenEntity:npQ,downloadQualityPickerEntity:syt,downloadsPageRefreshTokenEntity:utQ,downloadsPageViewConfigurationEntity:a7_,downloadStatusEntity:M3F,dismissState:mj_,sfvAudioItemCurrentlyPlayingEntity:DyQ,
emojiFountainDataEntity:C26,emojiCustomizationSetEntity:RyQ,fakeChannel:uWt,fakePlaylist:epz,fakePlaylistEntryCollection:yIt,fakeVideo:Pct,fakeVideoDescription:fDG,featuredProductsEntity:bD_,flowStateEntity:i7_,iconBadgeEntity:OVF,interstitialInteractionStateEntity:UIz,likeButtonAnimationEntity:ZgC,liveChatPollStateEntity:FRv,dataFreshnessEntity:$Pt,liveViewerLeaderboardChatEntryPointStateEntity:dyv,liveViewerLeaderboardPointsEntity:hHD,liveReactionsDataEntity:wmt,logoEntity:o8F,macroMarkerEntity:ig_,
mainDownloadsLibraryEntity:edD,mainDownloadsListEntity:yOz,mainPlaylistDownloadStateEntity:PCQ,mainPlaylistEntity:kN9,mainPlaylistVideoEntity:xgz,mainVideoDownloadStateEntity:f7F,mainVideoEntity:EpC,markersEngagementPanelSyncEntity:vp9,markersVisibilityOverrideEntity:OgQ,musicAlbumReleaseDetail:eq6,musicAlbumReleaseDownloadMetadataEntity:BhH,musicAlbumRelease:uVt,musicAlbumReleaseUserDetail:yxH,musicArtistDetail:PJC,musicArtist:Vj_,musicArtistUserDetail:fED,musicDownloadsLibraryEntity:qKG,musicLibraryEdit:prq,
musicLibraryStatusEntity:SK_,musicPlaylist:zqG,musicPlaylistDownloadMetadataEntity:sEz,musicShare:khD,musicTrackDetail:DUQ,musicTrackDownloadMetadataEntity:Mjz,musicTrack:xU9,musicTrackUserDetail:tjq,offlineOrchestrationActionWrapperEntity:IEC,offlineVideoPolicy:Axq,offlineVideoStreams:XPQ,offlineabilityEntity:pWC,orchestrationWebSamplingEntity:S6q,pageHeaderEntity:I$G,pdpStateEntity:mPQ,pinnedProductEntity:UUY,playbackData:HLG,playerStateEntity:mgH,quantityIncrementerEntity:Q2Q,refresh:lo9,saveToPlaylistListEntity:AL_,
selectedChipIndexEntityPayload:Qyq,settingEntity:yWC,stringEntity:sSG,suggestedFeedbackChipStateEntity:TD6,transfer:oSH,trendingOfferEntity:$UC,videoDownloadContextEntity:bLD,videoOverviewAsyncDataEntity:BeD,videoPlaybackPositionEntity:qIG,votingEntity:lmq,ytMainChannelEntity:gpG,youchatPendingResponseEntity:NDD,ytMainDownloadedVideoEntity:zdq,ytMainVideoEntity:GNH};var $$Q,RFC,l5,shh,MZL,d$D,Fnz,hF9,wTF;$$Q=function(X,H){this.JSC$13188_wrapped=X;this.JSC$13188_encoderRegistry=H;this.changedKeys={}};
RFC=function(X,H){return Kn_(X.JSC$13188_encoderRegistry,H.version).decode(H.data,H.key)};
_.Cmv=function(X,H,l){return X.JSC$13188_wrapped.objectStore("EntityStore").get(H).then(function(b){if(b){if(l&&b.entityType!==l)throw Error("Kf");return RFC(X,b)}})};
l5=function(X,H,l){return l?(l=l.map(function(b){return _.Cmv(X,b,H)}),WQ.all(l)):X.JSC$13188_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(H)).then(function(b){return b.map(function(U){return RFC(X,U)})})};
_.qR8=function(X,H,l){var b=jEy(H),U=Kn_(X.JSC$13188_encoderRegistry,1),K=Object.assign({},H);return X.JSC$13188_wrapped.objectStore("EntityStore").get(b).then(function(w){if(w){if(w.entityType!==l)throw Error("Kf");K.entityMetadata||(w=RFC(X,w),K.entityMetadata=w.entityMetadata)}}).then(function(){var w={key:b,
entityType:l,data:U.encode(K,b),version:1};return WQ.all([X.JSC$13188_wrapped.objectStore("EntityStore").put(w),wTF(X,K,l)])}).then(function(){d$D(X,b,l);
return b})};
shh=function(X,H){var l=_.NJ(H).entityType;return WQ.all([X.JSC$13188_wrapped.objectStore("EntityStore").delete(H),hF9(X,H)]).then(function(){d$D(X,H,l)})};
MZL=function(X,H,l,b){var U=Kn_(X.JSC$13188_encoderRegistry,1);return _.Cmv(X,H,b).then(function(K){if(K){K=Evk(K,l);var w={key:H,entityType:b,data:U.encode(K,H),version:1};return WQ.all([X.JSC$13188_wrapped.objectStore("EntityStore").put(w),wTF(X,K,b)])}}).then(function(){d$D(X,H,b);
return H})};
d$D=function(X,H,l){var b=X.changedKeys[l];b||(b=new Set,X.changedKeys[l]=b);b.add(H)};
Fnz=function(X,H,l){var b=jEy(H);l=CUN(l);if(!l)return WQ.resolve([]);l=new l(H);X=X.JSC$13188_wrapped.objectStore("EntityAssociationStore");H=[];l=_.C(l.getAssociations());for(var U=l.next();!U.done;U=l.next())H.push(X.put({parentEntityKey:b,childEntityKey:U.value}));return WQ.all(H).then(function(K){return K.map(function(w){return w[1]})})};
hF9=function(X,H){return X.JSC$13188_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(H))};
wTF=function(X,H,l){var b=jEy(H);return hF9(X,b).then(function(){return Fnz(X,H,l)})};var BGC=function(){};
_.S(BGC,Ft);BGC.prototype.encodeImpl=function(X){return X};
BGC.prototype.decodeImpl=function(X){if(X instanceof Uint8Array)throw oSO(0);return X};var hHm=function(){this.cacheMap={};this.cacheMap[0]=new BGC;if(!_.P("aes_pes_encoder_killswitch")){var X=this.cacheMap;try{var H=_.FB();var l=KGy(H);var b=new BW(new XTQ(l),new HzQ(l))}catch(U){throw X=U instanceof Error?new YB("KEY_CREATION_FAILED",{originalMessage:U.message}):new YB("KEY_CREATION_FAILED"),_.n2(X),X;}X[1]=b}},Kn_=function(X,H){H=H===void 0?0:H;
X=X.cacheMap[H];if(!X)throw H=new YB("INVALID_ENCODER_VERSION",{encoderVersion:H}),_.n2(H),H;return X};var AY=function(X,H){_.$e.call(this);this.token=X;this.JSC$13202_encoderRegistry=H;this.observers=[];X=new _.ok.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.FB());X.onmessage=this.JSC$13202_handleMessage.bind(this);this.channel=X};
_.S(AY,_.$e);_.HF=function(X,H,l){var b,U,K,w;return _.h(function(d){if(d.nextAddress==1)return d.yield(XPy(X.token),2);if(d.nextAddress!=3)return b=d.yieldResult,d.yield(_.OZ(b,["EntityStore","EntityAssociationStore"],H,function(B){U=new $$Q(B,X.JSC$13202_encoderRegistry);return l(U)}),3);
K=d.yieldResult;U&&(w=U.changedKeys,Object.keys(w).length>0&&(X.channel.postMessage(w),qzH(X,w)));return d.return(K)})};
AY.prototype.observe=function(X){var H=this;this.observers.push(X);return function(){var l=H.observers.indexOf(X);l>=0&&H.observers.splice(l,1)}};
var Q9K=function(X){var H;return _.h(function(l){if(l.nextAddress==1)return l.yield(_.HF(X,{mode:"readonly",enableRetries:!0},function(b){return b.JSC$13188_wrapped.objectStore("EntityStore").getAll()}),2);
H=l.yieldResult;return l.return(Promise.all(H.filter(function(b){return!!b}).map(function(b){var U,K;
return _.h(function(w){if(w.nextAddress==1){U=b.key;K=b.entityType;var d=w.yield;var B=U$q(Kn_(X.JSC$13202_encoderRegistry,b.version),b.data,b.key);return d.call(w,B,2)}return w.return({key:U,entityType:K,data:w.yieldResult})})})))})};
AY.prototype.JSC$13202_handleMessage=function(X){qzH(this,X.data)};
var qzH=function(X,H){X=_.C(X.observers);for(var l=X.next();!l.done;l=X.next())l=l.value,l(H)};
AY.prototype.disposeInternal=function(){this.channel.close()};
var wPL;var qg,MxD,aol;qg={};_.slQ=(qg.mainVideoEntity="mainVideoEntityActionMetadata",qg.mainPlaylistEntity="mainPlaylistEntityActionMetadata",qg.musicTrack="musicTrackEntityActionMetadata",qg.musicPlaylist="musicPlaylistEntityActionMetadata",qg);MxD=new _.gz("DOWNLOADS_ENTITY_TYPE_MAP");_.wR=_.rc("","downloadsPageViewConfigurationEntity");aol=_.rc("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.sIz=_.rc("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.rc("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.rc("SMART_DOWNLOADS_ENABLED","settingEntity");_.rc("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var PUy=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var xyk=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var uLQ={isLeaderTab:!0};var b0b={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var s6=window,fT=s6.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",tbh=s6.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||DPL,am8=s6.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Is,g$D=s6.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||E$C,tu6=s6.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||cwz,afy=s6.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||IHQ;var xPN;nT({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 Lwh=ZVy(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(X){return X}}}),Xvz=ZVy(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(X){return X}}}),mPN=new Map;var ImW=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],j2h;var eFq=function(X){return _.Of({type:"SET_EPHEMERAL_ACTION",payload:X})};var ydY={ephemeralAction:null};var VxY=Vt({ephemeralAction:function(X,H){X=X===void 0?ydY.ephemeralAction:X;switch(H.type){case "SET_EPHEMERAL_ACTION":return H.payload;default:return X}}});var Pmq=function(X){return _.Of({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:X})};var fGD={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var pTH={sharedUi:fGD,a11y:ydY,entities:{}},fZK={sharedUi:function(X,H){X=X===void 0?fGD:X;switch(H.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},X,{animatedThumbnailEnabled:H.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},X,{inlinePreviewEnabled:H.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},X,{currentPageType:H.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},X,{currentPageSubType:H.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},X,{persistentPanelVisible:H.payload});default:return X}},
a11y:VxY,entities:JxK};var bnN={playlistId:"",inviteLinkURL:""};var SzC={continuationCommand:{}};var qVh=Vt({continuationCommand:function(X,H){X=X===void 0?SzC.continuationCommand:X;switch(H.type){case "SET_CONTINUATION_COMMAND":return H.payload.continuationCommand;default:return X}}});var $XL={currentFormId:"",commandsMap:{}};var sXy=Vt({isLeaderTab:function(X,H){X=X===void 0?uLQ.isLeaderTab:X;switch(H.type){case "SET_IS_LEADER_TAB":var l,b;return(b=H==null?void 0:(l=H.payload)==null?void 0:l.isLeaderTab)!=null?b:X;default:return X}}});var nIq;_.zFQ=function(X){return _.Of({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:X}})};
nIq=function(X){return _.Of({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:X}})};var Mg={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var Puk=Vt({isDesktopSmallWidth:function(X,H){X=X===void 0?Mg.isDesktopSmallWidth:X;switch(H.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return H.payload.isDesktopSmallWidth;default:return X}},
isShortsActive:function(X,H){X=X===void 0?Mg.isShortsActive:X;switch(H.type){case "SET_IS_SHORTS_ACTIVE":return H.payload.isShortsActive;default:return X}},
isWatchWhileMode:function(X,H){X=X===void 0?Mg.isWatchWhileMode:X;switch(H.type){case "SET_IS_WATCH_WHILE_MODE":return H.payload.isWatchWhileMode;default:return X}},
playerState:function(X,H){X=X===void 0?Mg.playerState:X;switch(H.type){case "SET_PLAYER_STATE":return H.payload.playerState;default:return X}},
isFullscreen:function(X,H){X=X===void 0?Mg.isFullscreen:X;switch(H.type){case "SET_IS_FULLSCREEN":return H.payload.isFullscreen;default:return X}},
isSmallScreenSqueezeback:function(X,H){X=X===void 0?Mg.isSmallScreenSqueezeback:X;switch(H.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return H.payload.isSmallScreenSqueezeback;default:return X}},
isShortsPipActive:function(X,H){X=X===void 0?Mg.isShortsPipActive:X;switch(H.type){case "SET_IS_SHORTS_PIP_ACTIVE":return H.payload.isShortsPipActive;default:return X}},
isPlaybackStarted:function(X,H){X=X===void 0?Mg.isPlaybackStarted:X;switch(H.type){case "SET_IS_PLAYBACK_STARTED":return H.payload.isPlaybackStarted;default:return X}}});var RNK={currentMode:"canvas-hidden"};var SVL=function(){return function(X){return function(H){var l=X(H);_.TP(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[H],!0);return l}}};var kyq,lPk;kyq=new _.cF;_.my=new _.gz("WATCH_PLAYER_PROMISE_TOKEN");_.x$z=new _.cF;_.D$t=new _.gz("SHORTS_PLAYER_PROMISE_TOKEN");lPk=new _.gz("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var zNK=function(){return function(X){return function(H){H.type==="ENTITY_LOADED"&&_.jJ().resolve(_.my).then(function(l){var b;(b=l.dispatchReduxAction)==null||b.call(l,H)});
return X(H)}}};var tx9={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var MDZ=Vt({additionalContext:function(X,H){X=X===void 0?tx9.additionalContext:X;switch(H.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var l;return(l=H.payload)!=null?l:"";default:return X}},
impersonatedChannelUrl:function(X,H){X=X===void 0?tx9.impersonatedChannelUrl:X;switch(H.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var l;return(l=H.payload)!=null?l:"";default:return X}},
selectedVideoIds:function(X,H){X=X===void 0?tx9.selectedVideoIds:X;switch(H.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var l={};return Object.assign({},X,(l[H.payload]=!0,l));case "VIDEO_UNSELECTED":return H=H.payload,X=Object.assign({},X),delete X[H],X;default:return X}}});var WnG={parentClickTrackingParams:""};var u4K=Vt({parentClickTrackingParams:function(X,H){X=X===void 0?WnG.parentClickTrackingParams:X;switch(H.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return H.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return X}}});var EIG=function(X){return _.Of({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:X})},gIQ=function(X){return _.Of({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:X})};var Gy_={stepStates:{}};var eNy=Vt({stepStates:function(X,H){X=X===void 0?Gy_.stepStates:X;switch(H.type){case "TALK_TO_RECS_RESET_STEP_STATE":var l=H.payload,b=Object.assign({},X);delete b[l.stepId];return b;case "TALK_TO_RECS_UPDATE_SELECTION":var U=X,K=H.payload,w;X={};H={selectionStates:Object.assign({},(w=(l=U[K.stepId])==null?void 0:l.selectionStates)!=null?w:{},(X[K.token]={isSelected:K.isSelected},X)),userQuery:(b=U[K.stepId])==null?void 0:b.userQuery};l={};return Object.assign({},U,(l[K.stepId]=H,l));case "TALK_TO_RECS_UPDATE_USER_QUERY":return l=
X,b=H.payload,w={selectionStates:Object.assign({},(K=(U=l[b.stepId])==null?void 0:U.selectionStates)!=null?K:{}),userQuery:{userQuery:b.userQuery,token:b.userQueryToken}},U={},Object.assign({},l,(U[b.stepId]=w,U));default:return X}}});var aG6,Zzv,vIY;aG6=function(X){return _.Of({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:X})};
Zzv=function(X){return _.Of({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:X})};
_.sJ=function(X){return _.Of({type:"SET_CURRENT_PAGE_TYPE",payload:X})};
_.izD=function(X){return _.Of({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:X})};
vIY=function(X){return _.Of({type:"SET_CHIP_BAR_IS_STICKY",payload:X})};var wUz={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"};_.uC=function(X){return _.Of({type:"SET_PLAYER_STATE",payload:{playerState:X}})};var e3={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:hNy(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var yk8=Vt({isTheaterMode:function(X,H){X=X===void 0?hNy():X;switch(H.type){case "SET_IS_THEATER_MODE":return H.payload.isTheaterMode;default:return X}},
isWatchActive:function(X,H){X=X===void 0?e3.isWatchActive:X;switch(H.type){case "SET_IS_WATCH_ACTIVE":return H.payload.isWatchActive;default:return X}},
isLearningJourneyActive:function(X,H){X=X===void 0?e3.isLearningJourneyActive:X;switch(H.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return H.payload.isLearningJourneyActive;default:return X}},
isWatchFullscreen:function(X,H){X=X===void 0?e3.isWatchFullscreen:X;switch(H.type){case "SET_IS_WATCH_FULLSCREEN":return H.payload.isWatchFullscreen;default:return X}},
isWatchNarrowWidth:function(X,H){X=X===void 0?e3.isWatchNarrowWidth:X;switch(H.type){case "SET_IS_WATCH_NARROW_WIDTH":return H.payload.isWatchNarrowWidth;default:return X}},
isSwatcherooActive:function(X,H){X=X===void 0?e3.isSwatcherooActive:X;switch(H.type){case "SET_IS_SWATCHEROO_ACTIVE":return H.payload.isSwatcherooActive;default:return X}},
isWatchRetroMode:function(X,H){X=X===void 0?e3.isWatchRetroMode:X;switch(H.type){case "SET_IS_WATCH_RETRO_MODE":return H.payload.isWatchRetroMode;default:return X}},
isLiveChatCollapsed:function(X,H){X=X===void 0?e3.isLiveChatCollapsed:X;switch(H.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return H.payload.isLiveChatCollapsed;default:return X}},
openEngagementPanels:function(X,H){X=X===void 0?e3.openEngagementPanels:X;var l=[].concat(_.LJ(X));switch(H.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return l.push(H.payload.panelToAdd),l;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return l.splice(l.indexOf(H.payload.panelToRemove),1),l;default:return X}},
playerState:function(X,H){X=X===void 0?e3.playerState:X;switch(H.type){case "SET_PLAYER_STATE":return H.payload.playerState;default:return X}},
watchScrollTop:function(X,H){X=X===void 0?e3.watchScrollTop:X;switch(H.type){case "SET_WATCH_SCROLL_TOP":return H.payload.watchScrollTop;default:return X}},
watchWindowSize:function(X,H){X=X===void 0?e3.watchWindowSize:X;switch(H.type){case "SET_WATCH_WINDOW_SIZE":return H.payload.watchWindowSize;default:return X}}});var OzQ={surveyFeedbackData:{feedbackTokens:[]}};var VDz=Vt({surveyFeedbackData:function(X,H){X=X===void 0?OzQ.surveyFeedbackData:X;switch(H.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return H.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},X,H.payload);default:return X}}});var Ffk={};var kiy=void 0;_.P("web_enable_redux_store_on_demand")||(kiy=nGm());var m$D=function(X,H,l){var b=this;this.listId=X;this.JSC$13347_updateCallback=H;this.isOfflineVideoCallback=l;_.WF().subscribe(function(){b.handleUpdate()})};
m$D.prototype.getPlaylistData=function(){var X=_.WF().getState().entities;if(this.listId&&this.listId!=="PPSV"){var H=jhz(X,this.listId,!0),l=_.rc(this.listId,"mainPlaylistEntity"),b,U;X=X==null?void 0:(b=X.mainPlaylistEntity)==null?void 0:(U=b[l])==null?void 0:U.title;return xXk(H,X,this.listId)}H=_.Dyy(PfN(X));X=_.Dyy(_.dR(X));X=H.concat(X);return xXk(X)};
m$D.prototype.getPlaylistId=function(){return this.listId};
m$D.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13347_updateCallback(this.listId,this.getPlaylistData(),{})};var yd=function(X,H,l,b){b=b===void 0?[]:b;this.JSC$13350_playlistNetworkManager=X;this.listId=H;this.JSC$13350_updateCallback=l;this.videoIds=b;this.pendingUpdates=[];this.currentIndex=0};
yd.prototype.JSC$13350_setCurrentIndex=function(X){this.currentIndex=X};
yd.prototype.setListId=function(X){this.listId=X};
var QlG=function(X,H){X.currentCreateRequest&&X.currentCreateRequest.cancel(H);X.currentUpdateRequest&&X.currentUpdateRequest.cancel(H);X.currentRefreshRequest&&X.currentRefreshRequest.cancel(H)};
yd.prototype.delete=function(){QlG(this,"PROXY DELETED")};
yd.prototype.addVideos=function(X,H,l){var b=this;l!==void 0?this.videoIds.splice.apply(this.videoIds,[l,0].concat(_.LJ(X))):this.videoIds.push.apply(this.videoIds,_.LJ(X));this.listId||this.currentCreateRequest?(X.forEach(function(U,K){U={addedVideoId:U,action:"ACTION_ADD_VIDEO"};l&&(U.addedVideoPosition=l+K);b.pendingUpdates.push(U)}),Vd(this)):TGH(this,H.onCreateListCommand)};
var NGG=function(X,H,l,b,U){iyW(X.videoIds,H,l);H>X.currentIndex&&l<=X.currentIndex?X.JSC$13350_setCurrentIndex(X.currentIndex+1):H===X.currentIndex?X.JSC$13350_setCurrentIndex(l):H<X.currentIndex&&l>=X.currentIndex&&X.JSC$13350_setCurrentIndex(X.currentIndex-1);X.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:b,movedSetVideoIdPredecessor:U});Vd(X)},TGH=function(X,H){QlG(X,"OBSOLETE");
X.currentCreateRequest=cdF(X.JSC$13350_playlistNetworkManager,H,X.videoIds);_.MQ(X.currentCreateRequest,function(){X.currentCreateRequest=void 0}).then(function(l){X.setListId(l.playlistId);
X.pendingUpdates.length>0?Vd(X):jl_(X)})},Vd=function(X){if(X.pendingUpdates.length!==0&&(X.currentRefreshRequest&&X.currentRefreshRequest.cancel("OBSOLETE"),!X.currentUpdateRequest&&!X.currentCreateRequest)){var H=X.pendingUpdates.splice(0,X.pendingUpdates.length);
X.currentUpdateRequest=X.JSC$13350_playlistNetworkManager.updatePlaylist(X.listId,H);_.MQ(X.currentUpdateRequest,function(){X.currentUpdateRequest=void 0}).then(function(){X.pendingUpdates.length>0?Vd(X):jl_(X)}).thenCatch(function(){X.pendingUpdates.unshift.apply(X.pendingUpdates,_.LJ(H))})}},jl_=function(X){X.currentRefreshRequest=_.rdt(X.JSC$13350_playlistNetworkManager,X.listId,X.currentIndex,X.videoIds[X.currentIndex]);
_.MQ(X.currentRefreshRequest,function(){X.currentRefreshRequest=void 0}).then(function(H){X.JSC$13350_updateCallback(H.playlistId,H.playlistPanelRenderer,H.autoplayRenderer)})};
yd.prototype.size=function(){return this.videoIds.length};var JdY=function(X,H,l,b){b=b===void 0?[]:b;yd.call(this,X,H,l,b);this.JSC$13350_playlistNetworkManager=X;this.listId=H;this.JSC$13350_updateCallback=l;this.videoIds=b};
_.S(JdY,yd);_.PW=function(X,H,l,b,U,K,w){U=U===void 0?[]:U;w=w===void 0?Nz:w;yd.call(this,X,H,l,U);this.JSC$13350_playlistNetworkManager=X;this.listId=H;this.JSC$13350_updateCallback=l;this.onAuthChange=b;this.videoIds=U;this.storage=K;this.cookieReader=w;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.v5(_.Ss,this.checkLoggedInStatusChange.bind(this),1E3)};
_.S(_.PW,yd);_.R=_.PW.prototype;_.R.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.v5(_.Ss,this.checkLoggedInStatusChange.bind(this),1E3)};
_.R.JSC$13350_setCurrentIndex=function(X){yd.prototype.JSC$13350_setCurrentIndex.call(this,X);this.store()};
_.R.delete=function(){_.Ss.cancelJob(this.queueSapisIdJob);yd.prototype.delete.call(this)};
_.R.setListId=function(X){yd.prototype.setListId.call(this,X);this.store()};
_.R.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var Lnv=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Yzv=["playerResponse","videoDetails"],IGG=["response","currentVideoEndpoint","watchEndpoint","videoId"],Adq=["response","currentVideoEndpoint","watchEndpoint","playlistId"],X3D=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],H3_=["response","contents","twoColumnWatchNextResults","playlist","playlist"],llt=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
oKv=["response","contents","twoColumnWatchNextResults"];var fg={},gG8=(fg.WEB_UNPLUGGED="^unplugged/",fg.WEB_UNPLUGGED_ONBOARDING="^unplugged/",fg.WEB_UNPLUGGED_OPS="^unplugged/",fg.WEB_UNPLUGGED_PUBLIC="^unplugged/",fg.WEB_CREATOR="^creator/",fg.WEB_KIDS="^kids/",fg.WEB_EXPERIMENTS="^experiments/",fg.WEB_MUSIC="^music/",fg.WEB_REMIX="^music/",fg.WEB_MUSIC_EMBEDDED_PLAYER="^music/",fg.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",fg);var Utz,cdF;Utz=function(X,H){this.networkManager=X;this.innertubeTransportService=H};
cdF=function(X,H,l){if(!_.f(H,_.PX))return _.Cq(Error("Of"));_.f(H,_.PX).videoIds=l;l={create_playlist_title:_.XS("QUEUE",void 0,"Queue")};return Wfm(_.nl(X.innertubeTransportService,H,l),DXN)};
_.rdt=function(X,H,l,b){H={videoId:b,playlistId:H,playlistIndex:l};l=_.E9(l_z);return Wfm(_.pg(X.innertubeTransportService,H,l),EGk)};
Utz.prototype.updatePlaylist=function(X,H){return Wfm(_.nl(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:X,actions:H}}),tDz)};var b3C=function(X){this.storage=X},UHC;
b3C.prototype.store=function(X,H){H=H===void 0?0:H;if(this.storage&&X.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",X),this.storage.set("TLPQindex",String(H)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(l){}};
b3C.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
b3C.prototype.getPlaylistId=function(){if(!this.storage)return null;var X=null;try{X=this.storage.get("TLPQplaylist")}catch(H){}return X};var iny=["navigationEndpoint","watchEndpoint","videoId"],ZnW=["nextButtonVideo","watchEndpoint","videoId"];_.o6=new _.gz("NETWORK_TOKEN");_.gd=new _.gz("PAGE_TOKEN");_.S3=new _.gz("PLAYLIST_TOKEN");var $H_;$H_=new _.gz("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.b$=new _.gz("INNERTUBE_TRANSPORT_TOKEN");var KdQ,zN,Cs_,w3v,hAv,Fdz;KdQ=new Set(["ci","cr","carml"]);zN=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13397_parkedJobs=new Map;this.parkedProcessors=new Map};
_.ng=function(){zN.instance||(zN.instance=new zN);return zN.instance};
zN.prototype.onAny=function(X){return _.RAD(this,X,2)};
zN.prototype.parkOrScheduleJob=function(X,H,l,b,U){_.kp(this,l)?_.qV().addJob(X,H,b):(U&&(X=Cs_(X),w3v(this,X,H,l,U)),U=this.JSC$13397_parkedJobs.get(l),U||(this.JSC$13397_parkedJobs.set(l,[]),U=this.JSC$13397_parkedJobs.get(l)),U.push({job:X,priority:H,delay:b}))};
zN.prototype.addListener=function(X,H,l){l&&(H=Cs_(H),w3v(this,H,0,X,l));l=this.parkedProcessors.get(X);l||(this.parkedProcessors.set(X,[]),l=this.parkedProcessors.get(X));l.push(H)};
zN.prototype.processSignal=function(X){if(!_.kp(this,X)){this.inProgressSignals.add(X);var H=this.JSC$13397_parkedJobs.get(X);if(H){H=_.C(H);for(var l=H.next();!l.done;l=H.next())l=l.value,_.qV().addJob(l.job,l.priority,l.delay);this.JSC$13397_parkedJobs.delete(X)}if(H=this.parkedProcessors.get(X)){H=_.C(H);for(l=H.next();!l.done;l=H.next())l=l.value,l();this.parkedProcessors.delete(X)}this.signals.push(X);this.inProgressSignals.delete(X)}};
_.kp=function(X,H){return KdQ.has(H)||_.G7("IS_HOMEPAGE_COLD")||_.G7("IS_RESULTS_PAGE_COLD")||_.G7("IS_WATCH_PAGE_COLD")?X.signals.indexOf(H)>=0:!0};
Cs_=function(X){var H=!1;return function(){H||(H=!0,X())}};
w3v=function(X,H,l,b,U){if(dH9.has(b))_.qV().addJob(H,l,U);else{var K=X.compoundSignals.get(b);K&&_.qV().addJob(function(){_.kp(X,b)||(K.isTimeoutConditionSatisfied?_.qV().addJob(H,l):K.timeoutConditionObservers.push(function(){_.qV().addJob(H,l)}))},l,U)}};
_.RAD=function(X,H,l){if(H.length>1){var b=[],U=Object.create(null);H=_.C(H);for(var K=H.next();!K.done;K=H.next())K=K.value,U[K]||(b.push(K),U[K]=!0);H=b}if(H.length===1)return H[0];K=H;b="";U=l===2?"|":"&";K.sort();K=_.C(K);for(var w=K.next();!w.done;w=K.next())b+=w.value+U;if(!X.compoundSignals.get(b)){U=0;K=[];w=_.C(H);for(var d=w.next();!d.done;d=w.next())d=d.value,U++,_.kp(X,d)||K.push(d);(l=l===2)&&U>K.length||!l&&!K.length?X.signals.push(b):hAv(X,b,l,H,K)}return b};
hAv=function(X,H,l,b,U){var K=U.length,w=function(){l||--K===0?X.processSignal(H):Fdz(X,H)};
U=_.C(U);for(var d=U.next();!d.done;d=U.next())X.addListener(d.value,w);X.compoundSignals.set(H,{signals:b,isOnAny:l,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Fdz(X,H)};
Fdz=function(X,H){if(!_.kp(X,H)){var l=X.compoundSignals.get(H);if(l&&!l.isTimeoutConditionSatisfied){for(var b=!1,U=0,K=0,w=_.C(l.signals),d=w.next();!d.done;d=w.next()){var B=d.value;d=!_.kp(X,B);dH9.has(B)?b=!0:(B=X.compoundSignals.get(B))?d&&!B.isTimeoutConditionSatisfied&&(K++,l.isInitialized||B.timeoutConditionObservers.push(function(){Fdz(X,H)})):d&&U++}l.isInitialized=!0;
l.isOnAny?b&&(l.isTimeoutConditionSatisfied=!0):U===0&&K===0&&(l.isTimeoutConditionSatisfied=!0);if(l.isTimeoutConditionSatisfied)for(l=_.C(l.timeoutConditionObservers),b=l.next();!b.done;b=l.next())b=b.value,b()}}};
zN.prototype.processSignal=zN.prototype.processSignal;zN.prototype.parkOrScheduleJob=zN.prototype.parkOrScheduleJob;zN.prototype.onAny=zN.prototype.onAny;_.cQ("ytsignals.getInstance",_.ng);zN.prototype.onAny=zN.prototype.onAny;zN.prototype.parkOrScheduleJob=zN.prototype.parkOrScheduleJob;zN.prototype.processSignal=zN.prototype.processSignal;var dH9=new Set(["eop","eocs","dl","pcl"]);_.f9=new _.gz("MINIPLAYER_SERVICE");var xp,Bm9,qYD;xp=function(X,H,l){var b=_.Zq.getInstance();if(!UHC){var U=new y0O;var K=void 0,w=_.gx("ID_TOKEN");w&&U.isAvailable()&&(K=new yl(U,"yt-queue"+w));UHC=new b3C(K)}U=UHC;K=_.ng();this.JSC$13404_actionRouter=b;this.JSC$13404_pageManager=X;this.playlistManager=H;this.JSC$13404_playlistNetworkManager=l;this.storage=U;this.signals=K;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.D7=function(){if(!Bm9){var X=_.jJ(),H=X.resolve(_.c$(_.gd)),l=X.resolve(_.c$(_.o6)),b=X.resolve(_.c$(_.S3));X=X.resolve(_.b$);Bm9=new xp(H,b,new Utz(l,X))}return Bm9};
qYD=function(X,H,l){if(l){var b;if(((b=X.responsePlaylistData)==null?void 0:b.playlistId)!==l)return}X.responsePlaylistData&&(l=NFl(H,X.responsePlaylistData),X.responsePlaylistData=(0,_.Bb.unsafeClone)(X.responsePlaylistData),jXk(X.responsePlaylistData,l));l=X.temporaryItems.findIndex(function(U){return U.videoId===H});
l>-1&&X.temporaryItems.splice(l,1);_.tO(X,_.WW(X,X.response?X.response.autoplayRenderer:void 0))};
_.sn_=function(X,H){if(X.responsePlaylistData){var l=ckZ(H,X.responsePlaylistData);jXk(X.responsePlaylistData,l);if(X.queueProxy){var b=X.queueProxy;l<0||(b.videoIds.splice(l,1),l<b.currentIndex&&b.JSC$13350_setCurrentIndex(b.currentIndex-1),b.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:H}),Vd(b))}}_.tO(X,_.WW(X,X.response?X.response.autoplayRenderer:void 0))};
xp.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.tO(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
xp.prototype.setPlaylistData=function(X,H,l){this.temporaryItems=[];this.listId=X;this.responsePlaylistData=H;_.tO(this,_.WW(this,l))};
var Mt6=function(X){return(X==null?0:X.playlistId)?X.playlistId:"PPSV"},um_=function(X){return X&&X.playlistId?X.playlistId==="PPSV"?!0:NIZ(_.WF().getState().entities,X.playlistId):!1};
xp.prototype.isPlayingOfflineVideo=function(){return this.response?um_(this.response):!1};
xp.prototype.closeMiniplayer=function(X){var H=this.queueProxy&&this.queueProxy.size()<=1,l=_.jJ().resolve(_.f9);if(!this.queueProxy||H)this.queueProxy&&this.clearQueue(),l.close(!0);else{l.pipController.getWindow()&&window.focus();H=this.responsePlaylistData;var b=this.temporaryItems.length+(H&&H.contents?H.contents.length:0);H=_.XS("QUEUE_CLEARED_UNPLURALIZED")||_.HK("QUEUE_CLEARED",b);H=_.Gc(H);l=_.XS("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");b=_.XS("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.HK("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",b);var U=_.XS("MINIPLAYER_CLOSE",void 0,"Close"),K=_.XS("CANCEL",void 0,"Cancel");_.qD(this.JSC$13404_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.xM(l),dialogMessages:[_.xM(b)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.xM(U),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
H]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.xM(K)}}}}}}],X)}};
_.WW=function(X,H){var l={},b=X.response;l.autoplayRenderer=H;if(!X.responsePlaylistData&&!X.temporaryItems.length)return!b||!b.hasRelatedVideoData&&_.P("kevlar_prefetch_data_augments_network_data")||(l.playerData={rvs:b.relatedVideoArgs,endScreenRenderer:b.endScreenRenderer}),l;l.playerData={};if(X.index===void 0)return _.n2(Error("Qf")),l;l.panel=X.responsePlaylistData?(0,_.Bb.unsafeClone)(X.responsePlaylistData):{titleText:_.xM(_.XS("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
H=l.panel;if(H.contents)for(var U=_.C(X.temporaryItems),K=U.next();!K.done;K=U.next())H.contents.push({playlistPanelVideoRenderer:K.value});X.queueProxy&&b&&b.playingVideo&&b.playingVideoId&&!TF8(b.playingVideoId,l.panel)&&(H=b.playingVideo,U=l.panel,K=X.index,U.contents&&U.contents.splice(K===void 0?0:K,0,{playlistPanelVideoRenderer:H}));b&&b.playingVideoId&&(H=X.index,U=l.panel,H=!U.contents||H>=U.contents.length?void 0:U.contents[H].playlistPanelVideoRenderer,H&&H.videoId===b.playingVideoId||(H=
NFl(b.playingVideoId,l.panel),X.index=H!==-1?H:X.index?X.index-1:0));H=QXm(X.index+1,l.panel);U=void 0;X.index>0&&(U=QXm(X.index-1,l.panel));if(U||H)l.autoplayRenderer=vGl(H,U,l.autoplayRenderer);!H&&(b==null?0:b.relatedVideoArgs)&&(l.playerData.rvs=b.relatedVideoArgs);b=b?b.playlistIndexOffset:0;X.queueProxy?Lfb(l.panel,X.index,b,mXK,!0,!0,!0):Lfb(l.panel,X.index,b);l.playerData.playlistPanelRenderer=l.panel;return l};
xp.prototype.isMiniplayerActive=function(){return _.jJ().resolve(_.f9).isMiniplayerActive()};
_.tO=function(X,H){X.playlistManager.setAutoplayRenderer(H.autoplayRenderer||null);X.playlistManager.setPlaylistData(H.panel||null);H.playerData&&X.playlistManager.setPlayerPlaybackControlData(H.playerData)};var YVm="#";var eAz={},y_t={},Vtv={},PsC={},fl9={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:(eAz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",eAz),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:(y_t.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",y_t),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:(Vtv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",Vtv),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:(PsC.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",PsC),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 ERm=[{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:fl9},{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:fl9}}];var fwZ;_.No=[[["dzZqODFzZ3A2MmtpbmQjbHg=","bGtzbzQzMXBsZHZhbHVlI2tr"],"d3R4cHZhendoMEFEX1BMQUNFTUVOVF9LSU5EX1NUQVJUI2o2"]];
fwZ=[[["OTE1dXNxbTZrdXByaW1hcnkjb2M=",null,null],[null,["cGNmZHN5dzVqZnl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI3Jx","d3Q4dTVneHFyN3N0eWxlLXNjb3BlI2ww"],null],["eTRhaDJuODl1cW1hc3RoZWFkLWFkIzEw",["a28wbHVnZ2xqcXl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjMjY="],null],[null,["MWJiMnJmcHc0cHl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjNTI=","cjZ3b2VhcGdhMHN0eWxlLXNjb3BlI3R4"],null],[null,["aXQxdXgyMWpwNHl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjbnc=","ZXpvaGlkb2VvbXN0eWxlLXNjb3BlI3d5"],null],[null,["azAwamUxeGRxZ3l0ZC1hZC1zbG90LXJlbmRlcmVyI3h3"],
null]],[["NWM2cWprYm0zdnBsYXllci1hZHMjc2w=",null,null]]];_.Tc=["cHF3aWJ2NGt6YWdsb2JhbENhbGxiYWNrcyN5dw==","NTJ5MHJhaDAzeG9uQWJub3JtYWxpdHlEZXRlY3RlZCMxNQ==","ZXViNGR5YXhjOG9uQWRTa2lwI29x","eHQ1Ymd1czVpOHJhd19wbGF5ZXJfcmVzcG9uc2UjbDA=","aWx5bmZ5eXJ6ZmFkU2xvdHMjbW4="];_.E6="cHF3aWJ2NGt6YWdsb2JhbENhbGxiYWNrcyN5dw== NTJ5MHJhaDAzeG9uQWJub3JtYWxpdHlEZXRlY3RlZCMxNQ== ZXViNGR5YXhjOG9uQWRTa2lwI29x eHQ1Ymd1czVpOHJhd19wbGF5ZXJfcmVzcG9uc2UjbDA= bG4xMXJxY3VocndlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNwNA== aDR1cG9kbzQ1dGFiX3NhX2VmIzY5 aWx5bmZ5eXJ6ZmFkU2xvdHMjbW4=".split(" ");var gD;gD=function(X,H,l){this.ifT=X;this.hXX=H;this.tEx=l};
_.cKz=[new gD("b.f_",!1,0),new gD("j.s_",!1,2),new gD("r.s_",!1,4),new gD("e.h_",!1,6),new gD("i.s_",!0,8),new gD("s.t_",!1,10),new gD("p.h_",!1,12),new gD("s.i_",!1,14),new gD("f.i_",!1,16),new gD("a.b_",!1,18),new gD("a.o_",!1),new gD("g.o_",!1,22),new gD("p.i_",!1,24),new gD("p.m_",!1),new gD("n.k_",!0,20),new gD("i.f_",!1),new gD("a.s_",!0),new gD("m.c_",!1),new gD("n.h_",!1,26),new gD("o.p_",!1),new gD("m.p_",!0,28),new gD("o.a_",!1),new gD("d.p_",!1),new gD("e.i_",!1)].reduce(function(X,H){X[H.ifT]=
H;return X},{});var p3C=function(){};
p3C.prototype.flush=function(X,H){X=X===void 0?[]:X;H=H===void 0?!1:H;if(_.P("enable_client_streamz_web")){X=_.C(X);for(var l=X.next();!l.done;l=X.next())l=Ds9(l.value),this.rootSpec&&_.go(l,2,this.rootSpec),l={serializedIncrementBatch:_.Ik(l.JSC$9917_serializeBinary())},_.Sh("streamzIncremented",l,{sendIsolatedPayload:H})}};
var lwh=function(){};
_.S(lwh,p3C);var SYG=function(X){var H=new f1D;var l=new y1H;l=_.KY(l,1,"botguard");X=_.KY(l,2,X);this.rootSpec=_.G2(H,1,pg_,X)};
_.S(SYG,p3C);var O9,zAQ=new Map;var nRy,bBb,FkZ,Kky,wam,VK8,xCb,eal;nRy=2;bBb=2;FkZ=2;Kky=2;wam=2;VK8=2;xCb=2;eal=new fS6;var kFG,xHC;kFG=function(){this.ongoingFlowNonces=new Map};
_.rR=function(){xHC||(xHC=new kFG);return xHC};
_.j0=function(X,H,l){return{eventType:{flowEventNamespace:X,flowEventType:H},metadata:l,statusCode:void 0,csn:void 0,can:void 0}};
_.rK8=function(X,H){var l=_.rR(),b=DH_(l,H,!0);l.logFlowEvent(X,H,b,void 0)};
kFG.prototype.logFlowEvent=function(X,H,l,b){H={flowNonce:l||DH_(this,H),flowType:H,flowEventType:X.eventType};X.metadata&&(H.flowMetadata=X.metadata);X.statusCode!==void 0&&(H.flowEventStatus=X.statusCode);X.csn&&(H.csn=X.csn);X.can&&(H.can=X.can);_.Sh("flowEvent",H,b)};
var DH_=function(X,H,l){l=l===void 0?!1:l;var b=X.ongoingFlowNonces.get(H);if(!b||l)b=dZ(16),X.ongoingFlowNonces.set(H,b);return b};_.ttG=new PM9;var AK8={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 GN=function(X,H,l,b,U,K,w){l=l===void 0?!1:l;b=b===void 0?!1:b;K=K===void 0?_.D7():K;this.yW=!1;this.aFX=X;this.qgq=H;this.xHu=l;this.fromHistory=b;this.previousVideoId=U;this.cEq=K;this.tempData=w;this.gKK=new _.pBF};
_.S(GN,Zz);GN.prototype.validate=function(X){return!(!X.data.playerResponse||X.data.page!=="watch"&&X.data.page!=="learning_journey_watch"&&X.data.page!=="shorts"||this.yW)};
GN.prototype.handle=function(X){var H=this,l=_.f(X.endpoint,_.ku),b=_.f(X.endpoint,_.HM);if(_.P("kevlar_continue_playback_without_player_response")&&(l==null?0:l.videoId)&&this.previousVideoId&&(l==null?void 0:l.videoId)===this.previousVideoId&&(l==null?0:l.continuePlayback)&&!this.fromHistory)this.aFX.resolve();else{var U={};l?U.watch_endpoint=l:b&&(U.watch_endpoint=b,b.endTimeSeconds&&(U.end=b.endTimeSeconds));X.data.page==="watch"?(X.data.filler||this.xHu||(_.MJ("cfg"),_.Zq.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(U,WdQ(this,X.endpoint)),_.P("enable_masthead_quartile_ping_fix")&&Object.assign(U,EK_(this)),Object.assign(U,void 0),X.data.forceExternalPlaylist&&(U.external_list=!0)):X.data.page==="shorts"?_.Zq.getInstance().triggerAction("yt-start-loading-shorts"):X.data.page==="learning_journey_watch"&&_.Zq.getInstance().triggerAction("yt-start-loading-learning-journey");if(l=this.qgq()){try{l.loadVideoWithPlayerResponse(X.data.playerResponse,U),l.getPlayerPromise().then(this.aFX.resolve)}catch(K){_.n2(K),
this.aFX.resolve()}this.yW=!0;l.getPlayerPromise().then(function(K){K.addEventListener("onAbnormalityDetected",function(){var w=X.data.playerResponse,d=K.getVideoData().cpn;xCb=0;_.nKv=d;if(d=NeN(w))H.gKK.increment("IN_PLAYER"),_.J0(5),_.P("ab_st_vid_ks")?K.pauseVideo(!0):K.stopVideo(),w.playabilityStatus=Object.assign({},w.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:d}}),w.videoDetails=void 0,_.Zq.getInstance().triggerOptionalAction("yt-updated-playability-status",
w.playabilityStatus)})})}else _.x2(Error("Tf"))}};
var WdQ=function(X,H){var l=_.f(H,_.ku);if(H&&l&&l.playlistId&&l.videoId&&(X=X.cEq,X.queueProxy?(X=X.queueProxy,l=X.listId===l.playlistId?X.attributionData.get(l.videoId):void 0):l=void 0,l))return{queue_info:l}},EK_=function(X){var H;
if((H=X.tempData)==null?0:H.adpings)return{adpings:X.tempData.adpings}};var ay=function(X,H,l){this.yW=!1;this.yET=X;this.kyI=H;this.t7d=l};
_.S(ay,Zz);ay.prototype.validate=function(X){return!!_.Bb.getValueByKeys.apply(null,[X.data].concat(_.LJ(oKv)))};
ay.prototype.handle=function(X){var H=this;this.yET.promise.then(function(){var l=X.data;var b=_.Bb.getValueByKeys.apply(null,[l].concat(_.LJ(Lnv))),U=_.Bb.getValueByKeys.apply(null,[l].concat(_.LJ(H3_))),K=_.Bb.getValueByKeys.apply(null,[l].concat(_.LJ(IGG)));var w=(w=_.Bb.getValueByKeys.apply(null,[l].concat(_.LJ(Yzv))))?{videoId:w.videoId,thumbnail:w.thumbnail,title:w.title?_.xM(w.title):void 0,shortBylineText:w.author?_.xM(w.author):void 0}:void 0;var d=void 0;_.P("web_get_playlist_id_from_current_endpoint_ks")||
(d=_.Bb.getValueByKeys.apply(null,[l].concat(_.LJ(Adq))));var B=_.Bb.getValueByKeys.apply(null,[l].concat(_.LJ(llt))),q=_.Bb.getValueByKeys.apply(null,[l].concat(_.LJ(X3D))),u=!!B||!!q&&!!q.results&&q.results.length>0,e=0;U&&U.currentIndex&&U.localCurrentIndex&&(e=U.currentIndex-U.localCurrentIndex);U&&U.playlistId&&(d=U.playlistId);l={rawResponse:l,autoplayRenderer:b,hasRelatedVideoData:u,playingVideo:w,playingVideoId:K,playlistPanelRenderer:U,playlistId:d,playlistIndex:U&&U.currentIndex,relatedVideoArgs:B,
endScreenRenderer:q,playlistIndexOffset:e};a:{b=H.t7d;U=H.kyI;b.response=l;if(um_(l))b.downloadPlaylistProxy&&b.downloadPlaylistProxy.getPlaylistId()===Mt6(l)||(b.downloadPlaylistProxy=new m$D(Mt6(l),b.setPlaylistData.bind(b),b.isPlayingOfflineVideo.bind(b))),b.responsePlaylistData=b.downloadPlaylistProxy.getPlaylistData(),b.listId=Mt6(l),b.index=0;else if(l.playlistPanelRenderer&&l.playlistId&&l.autoplayRenderer)l.playlistId.startsWith("TLPQ")?b.queueProxy?b.listId===l.playlistId?(b.index=l.playlistIndex,
b.responsePlaylistData=l.playlistPanelRenderer,b.queueProxy.JSC$13350_setCurrentIndex(b.index)):l.playingVideoId&&b.index!==void 0&&U.clientParams.autoSaveToQueue&&(b.index+=1,b.queueProxy.JSC$13350_setCurrentIndex(b.index),b.queueProxy.addVideos([l.playingVideoId],{},b.index)):(b.queueProxy=new _.PW(b.JSC$13404_playlistNetworkManager,l.playlistId,b.setPlaylistData.bind(b),b.clearQueue.bind(b),_.rkZ(l.playlistPanelRenderer),b.storage),b.responsePlaylistData=l.playlistPanelRenderer,b.listId=l.playlistId,
b.index=l.playlistIndex):(b.index=l.playlistIndex,b.listId!==l.playlistId&&b.clearQueue(),b.responsePlaylistData=l.playlistPanelRenderer,b.listId=l.playlistId,b.playlistProxy=new JdY(b.JSC$13404_playlistNetworkManager,l.playlistId,b.setPlaylistData.bind(b),_.rkZ(l.playlistPanelRenderer)));else if(!b.queueProxy)b.responsePlaylistData=void 0;else if(l.playingVideoId&&U.clientParams.autoSaveToQueue){if(b.index===void 0){_.n2(Error("Pf"));b.clearQueue();break a}b.queueProxy.videoIds.includes(l.playingVideoId)||
(b.index+=1,b.queueProxy.JSC$13350_setCurrentIndex(b.index),b.queueProxy.addVideos([l.playingVideoId],{},b.index))}_.tO(b,_.WW(b,b.response.autoplayRenderer))}})};var gK_=function(X,H){H=H===void 0?_.D7():H;Ai.call(this);this.fQ.push(new ay(this.ze,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},H));this.fQ.push(new GN(this.ze,X,!1,!1));_.P("web_response_commands_chunk_processor")&&this.fQ.push(new Xt)};
_.S(gK_,Ai);gK_.prototype.processChunk=function(X){X&&X.data.player===void 0&&this.ze.resolve();Ai.prototype.processChunk.call(this,X)};var Z7=function(X,H){X=X===void 0?{layer:0}:X;this.yW=!1;this.createScreenConfig=X;this.yoK=H;this.createScreenConfig.automatedLogEventSource=9};
_.S(Z7,Zz);Z7.prototype.validate=function(X){return!(this.yW||!X.endpoint)};
Z7.prototype.handle=function(X){var H=_.lv(),l,b,U=(b=_.f((l=X.endpoint)==null?void 0:l.commandMetadata,_.Ip))==null?void 0:b.rootVe;this.yoK&&U?_.jR(H,U,this.yoK,this.createScreenConfig):f_F(H,X.endpoint,this.createScreenConfig);this.yW=!0};var iC=function(X,H){this.yW=!1;this.aK0=X;this.previousVideoId=H};
_.S(iC,Zz);iC.prototype.validate=function(X){return _.P("kevlar_continue_playback_without_player_response")&&(X=_.f(X.endpoint,_.ku),(X==null?0:X.videoId)&&this.previousVideoId&&(X==null?void 0:X.videoId)===this.previousVideoId&&(X==null?0:X.continuePlayback))?!1:this.aK0.xCQ===0};
iC.prototype.handle=function(X){_.Zq.getInstance().triggerAction("yt-stop-old-player",X.data,!0)};var GF_=function(X){X=X===void 0?{layer:0}:X;Ai.call(this);this.fQ.push(new iC(this));this.fQ.push(new Z7(X));this.fQ.push(new Ic(X))};
_.S(GF_,Ai);var vW=function(){Zz.apply(this,arguments)};
_.S(vW,Zz);vW.prototype.validate=function(X){return!!X.data.preconnect};
vW.prototype.handle=function(X){_.sf("bc");X=_.C(X.data.preconnect);for(var H=X.next();!H.done;H=X.next())H=H.value,(new Image).src=H};var alF=function(X,H,l,b,U,K,w){l=l===void 0?{layer:0}:l;K=K===void 0?_.D7():K;Ai.call(this);if(b)if(U){U=K;this.fQ.push(new ay(this.ze,H,U));this.fQ.push(new vW);var d,B;this.fQ.push(new GN(this.ze,X,!1,!((d=H.clientParams)==null||!d.fromHistory),(B=H.clientParams)==null?void 0:B.previousVideoId,U,H.tempData));var q;this.fQ.push(new iC(this,(q=H.clientParams)==null?void 0:q.previousVideoId));var u;(u=H.clientParams)!=null&&u.fromHistory||(l.layer||(l=Object.assign({},l,{layer:0})),this.fQ.push(new Z7(l,
w)),this.fQ.push(new Ic(l)))}else this.fQ.push(new ay(this.ze,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},K)),this.fQ.push(new GN(this.ze,X,!1,!1));else this.fQ.push(new iC(this)),this.fQ.push(new Z7(l)),this.fQ.push(new Ic(l));_.P("web_response_commands_chunk_processor")&&b&&this.fQ.push(new Xt)};
_.S(alF,Ai);alF.prototype.processChunk=function(X){X&&X.data.player===void 0&&this.ze.resolve();Ai.prototype.processChunk.call(this,X)};var Z3Q=function(){this.yW=this.yW=!1};
_.S(Z3Q,Zz);Z3Q.prototype.validate=function(X){return!this.yW&&!(!X.data.csn||!X.data.rootVe)};
Z3Q.prototype.handle=function(X){this.yW=!0;_.sc(X.data.csn,X.data.rootVe,3)};var i3z=function(X,H,l){l=l===void 0?{layer:0}:l;Ai.call(this);this.fQ.push(new GN(this.ze,X));this.fQ.push(new Z7(l));this.fQ.push(new Ic(l))};
_.S(i3z,Ai);var vKY=function(X,H,l,b,U){l=l===void 0?{layer:0}:l;b=b===void 0?_.D7():b;Ai.call(this);var K=!!H&&!!H.clientParams&&!!H.clientParams.miniplayer;K&&this.fQ.push(new Z3Q);this.fQ.push(new ay(this.ze,H,b));this.fQ.push(new vW);var w,d;this.fQ.push(new GN(this.ze,X,K,!((w=H.clientParams)==null||!w.fromHistory),(d=H.clientParams)==null?void 0:d.previousVideoId,b,H.tempData));var B;this.fQ.push(new iC(this,(B=H.clientParams)==null?void 0:B.previousVideoId));var q;(q=H.clientParams)!=null&&q.fromHistory||
(l.layer||(l=Object.assign({},l,{layer:K?3:0})),this.fQ.push(new Z7(l,U)),this.fQ.push(new Ic(l)));_.P("web_response_commands_chunk_processor")&&this.fQ.push(new Xt)};
_.S(vKY,Ai);var O6,QnH;O6={};
_.O3C=(O6["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},O6["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},O6["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},O6["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},O6["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},O6["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},O6["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},O6);_.mW=new _.DS("yt-edu");_.mH6=function(){this.JSC$13502_eduDisplayedThisLoad_={}};
QnH=function(X){var H=_.mH6.getInstance();var l=_.Yy("kevlar_tooltip_impression_cap");H=l&&parseInt(_.mW.get(X+"-impression")||0,10)>=l||_.mW.get(X+"-dismissed")?!1:(l=_.O3C[X])&&!H.JSC$13502_eduDisplayedThisLoad_[l.setKey||X]&&(l.titleText&&_.XS(l.titleText)||l.bodyText&&_.XS(l.bodyText))?!0:!1;if(!H)return null;H=_.O3C[X];if(!H)return null;l=H.bodyText?_.XS(H.bodyText):void 0;var b=H.titleText?_.XS(H.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:H.position,popup:{bubbleHintRenderer:{text:b?
_.xM(b):void 0,detailsText:l?_.xM(l):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.xM(_.XS("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:X}}]}}}}}}}},{eduImpressionAction:{key:X}}]};
_.mi(_.mH6);var JKZ=!1;for(var Tmt="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),Nm_=[],Qd=6;Qd>=1;Qd--)Nm_.push({columnCount:Qd,query:Qd==1?0:Qd*2*107-4+32,className:"grid-"+Qd+"-columns",width:Qd*2*107+"px"});_.TN=function(X){this.actionRouter_=X=X===void 0?_.Zq.getInstance():X;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.c_z(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.c_z=function(X){var H=X.documentWidth_-(X.miniGuideVisible_?72:0)-(X.guidePersistentAndVisible_?240:0)-(X.persistentPanelVisible_?400:0);return Nm_.find(function(l){return H>l.query})};
_.mi(_.TN);var jnt=function(){var X=this;this.JSC$13514_keyboardInUse=!1;document.addEventListener("keydown",function(){X.onKeydown()});
document.addEventListener("mousedown",function(){X.JSC$13514_keyboardInUse=!1})},r_9;
jnt.prototype.isKeyBoardInUse=function(){return this.JSC$13514_keyboardInUse};
jnt.prototype.onKeydown=function(){this.JSC$13514_keyboardInUse=!0};var J_Q,j3;_.Ng=new _.DS("yt-mentions");_.cW=function(){};
J_Q=function(X,H){return j3(H,"drag-to-reorder-edu-displayed")};
j3=function(X,H,l,b,U,K){l=l===void 0?"OPEN_POPUP_POSITION_TOP":l;if(H){if(_.Ng.get(H))return;_.Ng.set(H,!0,b)}if(U&&K!==void 0){H=Number(_.Ng.get(U)||0);if(H>=K)return;_.Ng.set(U,H+1)}return[{openPopupAction:{popupType:"HINT",position:l,popup:{bubbleHintRenderer:{detailsText:X,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.mi(_.cW);var LdF,YYt,Il9;LdF=function(X,H,l,b){this.JSC$13524_taskManager_=X;this.onFulfilled_=typeof H==="function"?H:null;this.onRejected_=typeof l==="function"?l:null;this.JSC$13524_context_=b};
YYt=function(X,H){X.onFulfilled_&&_.Rs(X.JSC$13524_taskManager_,function(){X.onFulfilled_.call(X.JSC$13524_context_,H)})};
Il9=function(X,H){X.onRejected_&&_.Rs(X.JSC$13524_taskManager_,function(){X.onRejected_.call(X.JSC$13524_context_,H)})};
_.rD=function(X){this.JSC$13527_taskManager_=X;this.callbacks_=[]};
_.rD.prototype.then=function(X,H,l){this.callbacks_.push(new LdF(this.JSC$13527_taskManager_,X,H,l));return this};
_.rD.prototype.onSuccess=function(X){this.callbacks_.forEach(function(H){YYt(H,X)})};
_.rD.prototype.onFailure=function(X){this.callbacks_.forEach(function(H){Il9(H,X)})};
_.rD.prototype.cancel=function(){this.callbacks_.length=0};
Dkz(_.rD);_.HHK=null;_.HS=new _.gz("ACTIVITY_TOKEN");var A_t;_.Fk=new _.gz("PAGE_REQUEST_TOKEN");A_t=new _.gz("FETCH_PBJ_TOKEN");_.XlG=function(X){if(X.validatedFragments_.length==0)return null;if(!X.mergedPrefetchedData_){for(var H=[],l=_.C(X.validatedFragments_),b=l.next();!b.done;b=l.next()){b=_.C(X.fragmentConfiguration_[b.value].graftedKeys);for(var U=b.next();!U.done;U=b.next())(U=X.prefetchedData_[U.value].trackingParams)&&H.push(U)}X.mergedPrefetchedData_={};Object.assign(X.mergedPrefetchedData_,X.prefetchedData_,{clientSideGrafts:H})}return X.mergedPrefetchedData_};var HID;_.JO=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
HID=function(X,H,l){if(_.lyN(H))return X.prefetchCache_.get(_.oty(H,l))};_.Lg=new _.gz("NAVIGATION_TOKEN");var lBt=function(X){var H=this;var l=l===void 0?$tz():l;var b=b===void 0?_.jJ().resolve(_.Lg):b;this.onePickCommand=X;this.JSC$13599_playlistNetworkManager=l;this.navigationManager=b;this.videoPickerBuilder=_.bHy("yt-addtoplaylist");_.chQ(z0v(nu6(Sc_(this.videoPickerBuilder.setTitle(X.modalTitle).setSize(1E3).addView(m0C()).addView(OiF())).addView("youtube"),X.selectButtonLabel)),function(U){H.handleAction(U)})};
lBt.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
lBt.prototype.handleAction=function(X){var H=this;if(X&&this.onePickCommand.listId&&X.action==="picked"&&X.docs){var l=[];X.docs.forEach(function(b){l.push({addedVideoId:b.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13599_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,l).then(function(){_.P("playlist_add_video_hard_reload_killswitch")?H.navigationManager.reload():oT9(H.navigationManager)})}};var bIq=function(){if(this.constructor===bIq)throw new TypeError("Vf");};
_.R=bIq.prototype;_.R.dispose=function(){};
_.R.disconnect=function(){};
_.R.reconnect=function(){};
_.R.observe=function(X,H,l){return{element:X,option:l}};
_.R.unobserveByKey=function(){};var KUk=function(X,H){H=H===void 0?0:H;bIq.call(this);this.viewroot=X;this.defaultPrescanHeight=H;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),X?{root:X,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.S(KUk,bIq);_.R=KUk.prototype;_.R.dispose=function(){this.disconnect();this.handlers.clear()};
_.R.disconnect=function(X){this.isConnected=!1;this.pauseObservingUntilReconnect=X===void 0?!1:X;this.observer.disconnect();X=_.C(this.prescanObservers.values());for(var H=X.next();!H.done;H=X.next())H.value.disconnect()};
_.R.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var X=_.C(this.handlers),H=X.next();!H.done;H=X.next()){var l=_.C(H.value);H=l.next().value;var b=l.next().value;l=!1;b=_.C(b.keys());for(var U=b.next();!U.done;U=b.next())if((U=U.value)&&U.state==="prescan"){l=!0;break}l&&U3_(this,H).observe(H);this.observer.observe(H)}}};
_.R.handleObserveEvent=function(X){X=_.C(X);for(var H=X.next();!H.done;H=X.next()){H=H.value;var l=this.handlers.get(H.target);if(l){var b=H.isIntersecting;l=_.C(l);for(var U=l.next();!U.done;U=l.next()){var K=_.C(U.value);U=K.next().value;K=K.next().value;U&&(U.state==="visible"&&b||U.state==="hidden"&&!b)&&(K(H.target,U.state),U.calledOnce&&this.unobserveByKey({element:H.target,option:U}))}}}};
_.R.handlePrescanEvent=function(X){X=_.C(X);for(var H=X.next();!H.done;H=X.next()){H=H.value;var l=this.handlers.get(H.target);if(l&&H.isIntersecting){l=_.C(l);for(var b=l.next();!b.done;b=l.next()){var U=_.C(b.value);b=U.next().value;U=U.next().value;b&&b.state==="prescan"&&(U(H.target,b.state),b.calledOnce&&this.unobserveByKey({element:H.target,option:b}))}}}};
_.R.observe=function(X,H,l){var b=(b=this.handlers.get(X))&&b.has(l)?{element:X,option:l}:void 0;if(b)return b;b={element:X,option:l};this.handlers.has(X)||this.handlers.set(X,new Map);var U=this.handlers.get(X);U&&!U.has(l)&&U.set(l,H);this.pauseObservingUntilReconnect||(l.state==="prescan"&&U3_(this,X).observe(X),this.observer.observe(X));return b};
_.R.unobserveByKey=function(X){var H=this.handlers.get(X.element);if(H&&H.has(X.option)){H.delete(X.option);if(X&&X.option.state==="prescan")for(var l=_.C(this.prescanObservers.values()),b=l.next();!b.done;b=l.next())b.value.unobserve(X.element);H.size===0&&(this.handlers.delete(X.element),this.observer.unobserve(X.element))}};
var U3_=function(X,H){var l=X.defaultPrescanHeight;H.hasAttribute("prescan-height")&&(H=Number(H.getAttribute("prescan-height")),isNaN(H)||(l=H));if(X.prescanObservers.has(l))return X.prescanObservers.get(l);H="-0.1px -0.1px "+l+"px -0.1px";H=new IntersectionObserver(X.handlePrescanEvent.bind(X),X.viewroot?{root:X.viewroot,rootMargin:H}:{rootMargin:H});X.prescanObservers.set(l,H);return H};var $3F=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],KN_=function(){var X,H=this;this.JSC$13616_actionRouter=X=X===void 0?_.Zq.getInstance():X;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return H.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return H.visibilityObservedElementHandlerKeys}}},RcQ,Yp,d39;
KN_.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.P("kevlar_use_vimio_behavior")&&_.gx("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=R1h())};
KN_.prototype.dispose=function(){this.visibilityMonitor&&_.FE(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
KN_.prototype.handleVisibilityRefreshed=function(){for(var X=_.C(this.targetMap.entries()),H=X.next();!H.done;H=X.next()){var l=_.C(H.value);H=l.next().value;l=l.next().value;_.C7C(this,H,l)}};
_.Iy=function(X,H,l){Yp(X,l);var b=_.wlC(X,H);b.element=l;X.targetedElements.set(l,H);_.C7C(X,H,b)};
Yp=function(X,H){var l=X.targetedElements.get(H);if(l){var b=X.targetMap.get(l);b&&(delete b.element,X.targetMap.set(l,b));X.targetedElements.delete(H);X.visibilityObserver&&X.visibilityObservedElementHandlerKeys&&(l=X.visibilityObservedElementHandlerKeys.get(H))&&(X.visibilityObserver.unobserveByKey(l),X.visibilityObservedElementHandlerKeys.delete(H))}};
_.C7C=function(X,H,l){var b=l.action,U=l.element;U&&b&&($3F.includes(H)||_.gx("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||X.visibilityMonitor&&X.visibilityMonitor.isNodeVisible(U)?d39(X,H,l):X.visibilityObserver&&(X.visibilityObservedElementHandlerKeys||(X.visibilityObservedElementHandlerKeys=new WeakMap),b=X.visibilityObserver.observe(U,function(){d39(X,H,l);X.visibilityObservedElementHandlerKeys.delete(U)},{calledOnce:!0,
state:"visible"}),X.visibilityObservedElementHandlerKeys.set(U,b)))};
d39=function(X,H,l){var b=l.action;(l=l.element)&&b&&(_.qD(X.JSC$13616_actionRouter,[b],l),X.targetMap.delete(H),X.targetedElements.delete(l),X.triggeredTargets.add(H))};
_.wlC=function(X,H){var l=X.targetMap.get(H);l||(l={},X.targetMap.set(H,l));return l};
_.AO=function(){RcQ||(RcQ=new KN_);return RcQ};var hcY=document.createElement("div");hcY.style.touchAction="pan-down";var CnW=hcY.style.touchAction==="pan-down";var FNF,Bqt;FNF=function(){this.hammerFn=w8_();this.JSC$13624_screenManager=_.lv();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.cS(83615);_.Ji(this.JSC$13624_screenManager,this.ve);wNN()};
_.XV=function(){Bqt||(Bqt=new FNF);return Bqt};
FNF.prototype.registerTouchEvents=function(X,H,l){var b=_.Ab.apply(3,arguments),U=this.hammerFn(X,{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}]]});l&&U.set({touchAction:l});this.nodeManagerMapping.set(X,U);var K=
dtL(H);b=_.C(b);for(var w=b.next();!w.done;w=b.next()){w=w.value;if(w.includes("swipe")||w.includes("pinch")||w.includes("pan"))w.includes("swipe")?U.get("swipe").set({enable:!0,direction:K,velocity:.2}):w.includes("pinch")?U.get("pinch").set({enable:!0}):w.includes("pan")&&(U.get("pan").set({enable:!0,direction:K}),U.get("swipe").set({enable:!0,direction:K,velocity:.2}),U.get("swipe").recognizeWith("pan"));qBQ(this,X,U,w)}};
var qBQ=function(X,H,l,b){l.on(b,function(U){if(b.includes("pinch"))X.lastPinchTime=Date.now();else if(b.includes("swipe")&&Date.now()-X.lastPinchTime<400)return;U.pointerType!=="mouse"&&(U=b==="doubletap"?{coordinates:U.center}:b.includes("pan")?U:b.includes("swipe")?{target:U.target}:{},H.dispatchEvent(new CustomEvent(b,{bubbles:!0,composed:!0,detail:U})))})};
FNF.prototype.unregisterTouchEvents=function(X){var H=_.Ab.apply(1,arguments),l=this.nodeManagerMapping.get(X);if(l){H=_.C(H);for(var b=H.next();!b.done;b=H.next())l.off(b.value);this.nodeManagerMapping.delete(X);X.style.touchAction="unset"}};var sWY=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;_.Ke={getLocalStorage:_.B0(function(){try{var X=new ePW;var H=X.isAvailable()?X:null}catch(l){return null}return H?new _.wV(H):null}),
getSessionStorage:_.B0(function(){var X=new y0O;return X.isAvailable()?new _.wV(X):null})};var MGD=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},ntN=function(){MGD.instance||(MGD.instance=new MGD);
return MGD.instance},ktl=function(X){var H=X.networkEvents;
X.networkEvents=[];return H};var uwC;uwC={};_.ec9=rL("yt-serviceworker-metadata",{objectStores:(uwC.auth={addedAtVersion:1},uwC["resource-manifest-assets"]={addedAtVersion:2},uwC),shared:!0,upgrade:function(X,H){H(1)&&E4(X,"resource-manifest-assets");H(2)&&E4(X,"auth")},
version:2});var qhm=self.location.origin+"/";sYl([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);sYl([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);sYl([/\.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\//]);sYl([/purge_shell=1/]);var yq6=void 0;yq6=yq6===void 0?[]:yq6;
for(var VGH=[],P7G=_.C(KS6),fBq=P7G.next();!fBq.done;fBq=P7G.next())VGH.push({key:fBq.value});for(var plv=_.C(yq6),SBQ=plv.next();!SBQ.done;SBQ=plv.next())VGH.push(SBQ.value);var zcC,du=_.ok==null?void 0:(zcC=_.ok.performance)==null?void 0:zcC.memory,e1k=!1,xtz={},PnL={},h2={},Fs=navigator;var Hr=function(X){this.JSC$13669_expiringStorage=new u0(X)};
Hr.prototype.set=function(X,H,l){l=l!==void 0?Date.now()+l:void 0;this.JSC$13669_expiringStorage.set(X,H,l)};
Hr.prototype.get=function(X){return this.JSC$13669_expiringStorage.get(X)};
Hr.prototype.remove=function(X){this.JSC$13669_expiringStorage.remove(X)};var ayh=_.W8(["https://www.youtube.com/",""]),ZHK=_.W8(["https://studio.youtube.com/",""]),QYz="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",vtk=null,rgl;var nTG=_.W8(["https://www.youtube.com/iframe_api"]),lJ=function(){this.playerResolver_=_.kj();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.FK;this.playbackDurationSeconds_=0},kL_=function(X){var H=function(){return window.YT&&typeof window.YT.ready==="function"};
if(H())return _.rZ(window.YT);var l=_.kj(),b=_.XJ("SCRIPT");b.onload=b.onreadystatechange=function(){b.readyState&&b.readyState!="loaded"&&b.readyState!="complete"||(b.onload=_.FK,b.onreadystatechange=_.FK,b.onerror=_.FK,H()?l.resolve(window.YT):l.reject(new _.qd("Failed to load the iframe player library","script.onload",b.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
b.onerror=function(U){b.onload=_.FK;b.onreadystatechange=_.FK;b.onerror=_.FK;l.reject(new _.qd("Failed to load the iframe player library","script.onerror",U&&U.target&&U.target.src))};
_.sw(b,_.z8(nTG));X.insertBefore(b,X.firstChild);return l.promise},x3Y=function(X,H,l){var b,U;
_.h(function(K){switch(K.nextAddress){case 1:return X.playbackEndedCallback_=l,_.Ew(K,2),K.yield(kL_(H.parentElement||null),4);case 4:b=K.yieldResult;_.Zt(K,3);break;case 2:return U=_.Ow(K),U instanceof _.qd&&U.args&&U.args[0]=="script.onerror"?_.x2(U):_.n2(U),K.return();case 3:b.ready(function(){return new b.Player(H,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:X.onPlayerReady_.bind(X),onStateChange:X.onPlayerStateChange_.bind(X),
onCueRangeExit:X.onCueRangeExit_.bind(X)}})}),_.m5(K)}})};
_.R=lJ.prototype;_.R.getPlayerPromise=function(){return this.playerPromise_};
_.R.onPlayerReady_=function(X){this.playerResolver_.resolve(X.target)};
_.R.onPlayerStateChange_=function(X){if(X.data==YT.PlayerState.PLAYING){X=X.target;var H=X.getCurrentTime();X.addCueRange("playback",H,H+this.playbackDurationSeconds_)}};
_.R.onCueRangeExit_=function(X){X.data=="playback"&&(X.target.stopVideo(),this.playbackEndedCallback_())};
_.R.stopVideo=function(){this.playerPromise_.then(function(X){X.stopVideo()})};
var D36=function(X){X.playerVars_&&X.playerPromise_.then(function(H){typeof H.cueVideoByPlayerVars!="function"?_.x2(new _.qd("vmh: player API not ready","cueVideoByPlayerVars",typeof H.cueVideoByPlayerVars)):H.cueVideoByPlayerVars(X.playerVars_)})};
lJ.prototype.playVideo=function(){var X=this;this.playerVars_&&this.playerPromise_.then(function(H){typeof H.loadVideoByPlayerVars!="function"?(H=new _.qd("vmh: player API not ready","loadVideoByPlayerVars",typeof H.loadVideoByPlayerVars),_.n2(H)):H.loadVideoByPlayerVars(X.playerVars_)})};
var tG_=function(X,H,l,b,U){H&&(l===void 0&&(l=0),b===void 0&&(b=0),X.playbackDurationSeconds_=b/1E3,X.playerVars_={adformat:"17_8",videoId:H,suggestedQuality:"hd720",startSeconds:l/1E3,player_params:U})};
lJ.prototype.mute=function(){this.playerPromise_.then(function(X){X.mute()})};
lJ.prototype.unMute=function(){this.playerPromise_.then(function(X){X.unMute()})};var Hhy=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var oE;oE=function(){this.tokenJars={};if(this.cookiesEnabled=_.hl()){var X=_.wL.get("CONSISTENCY",void 0);X&&WNq(this,{encryptedTokenJarContents:X})}};
_.o5y=function(){oE.instance||(oE.instance=new oE);return oE.instance};
oE.prototype.handleResponse=function(X,H){if(!H)throw Error("$f");var l,b;H=((l=H.innerTubeRequest.context)==null?void 0:(b=l.request)==null?void 0:b.consistencyTokenJars)||[];var U;(X=(U=X.responseContext)==null?void 0:U.consistencyTokenJar)&&this.replace(H,X)};
oE.prototype.replace=function(X,H){X=_.C(X);for(var l=X.next();!l.done;l=X.next())delete this.tokenJars[l.value.encryptedTokenJarContents];WNq(this,H)};
var WNq=function(X,H){if(H.encryptedTokenJarContents&&(X.tokenJars[H.encryptedTokenJarContents]=H,typeof H.expirationSeconds==="string")){var l=Number(H.expirationSeconds);setTimeout(function(){delete X.tokenJars[H.encryptedTokenJarContents]},l*1E3);
X.cookiesEnabled&&_.dL("CONSISTENCY",H.encryptedTokenJarContents,l,void 0,!0)}};var ET9,bJ;ET9=window.location.hostname.split(".").slice(-2).join(".");_.S4=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var X=_.gx("LOCATION_PLAYABILITY_TOKEN");_.gx("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=gT_(this))&&(X=this.localStorage.get("yt-location-playability-token"));X&&(this.locationPlayabilityToken=X,this.mostRecentPosition=void 0)};
_.S4.getInstance=function(){bJ=_.ij("yt.clientLocationService.instance");bJ||(bJ=new _.S4,_.cQ("yt.clientLocationService.instance",bJ));return bJ};
_.S4.prototype.setLocationOnInnerTubeContext=function(X){X.client||(X.client={});if(this.mostRecentPosition)X.client.locationInfo||(X.client.locationInfo={}),X.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),X.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),X.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),X.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)X.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.S4.prototype.handleResponse=function(X){var H;X=(H=X.responseContext)==null?void 0:H.locationPlayabilityToken;X!==void 0&&(this.locationPlayabilityToken=X,this.mostRecentPosition=void 0,_.gx("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=gT_(this))&&this.localStorage.set("yt-location-playability-token",X,15552E3):_.dL("YT_CL",JSON.stringify({loctok:X}),15552E3,ET9,!0))};
var gT_=function(X){return X.localStorage===void 0?new _.DS("yt-client-location"):X.localStorage};
_.S4.prototype.clearLocationPlayabilityToken=function(X){X==="TVHTML5"?(this.localStorage=gT_(this))&&this.localStorage.remove("yt-location-playability-token"):_.hPZ("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.S4.prototype.getCurrentPositionFromGeolocation=function(){var X=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var H=!1,l=1E4;_.gx("INNERTUBE_CLIENT_NAME")==="MWEB"&&(H=!0,l=15E3);return new Promise(function(b,U){navigator.geolocation.getCurrentPosition(function(K){X.mostRecentPosition=K;b(K)},function(K){U(K)},{enableHighAccuracy:H,
maximumAge:0,timeout:l})})};
_.S4.prototype.createUnpluggedLocationInfo=function(X){var H={};X=X.coords;if(X==null?0:X.latitude)H.latitudeE7=Math.floor(X.latitude*1E7);if(X==null?0:X.longitude)H.longitudeE7=Math.floor(X.longitude*1E7);if(X==null?0:X.accuracy)H.locationRadiusMeters=Math.round(X.accuracy);return H};
_.S4.prototype.createLocationInfo=function(X){var H={};X=X.coords;if(X==null?0:X.latitude)H.latitudeE7=Math.floor(X.latitude*1E7);if(X==null?0:X.longitude)H.longitudeE7=Math.floor(X.longitude*1E7);return H};var GL_=function(X,H){var l=yX();X||(X="unknown");H||(H="unknown");X="MAIN_APP_WEB_PAGE_TYPE_"+X.toUpperCase();X in $g_||(X="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");H="MAIN_APP_WEB_REQUEST_TYPE_"+H.toUpperCase();H in KWq||(H="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Xk(l,{mainAppWeb:{pageType:X,requestType:H,isShellLoad:_.G7("IS_SHELL_LOAD",!1)}})},aBD={start:function(){_.Xk(pX8(),{mainAppWeb:_.ne()})},
success:function(){_.H8(pX8(),"SUCCESS")},
failure:function(){_.H8(pX8(),"FAILURE")},
cancelled:function(){_.H8(pX8(),"CANCELLED")}};var ZIz,iI_,KJb;ZIz=_.W8(["/sw.js"]);iI_=_.W8(["/sw.js?0"]);_.vTz=_.z8(ZIz);KJb=_.z8(iI_);var OI9=function(){var X=Error.apply(this,arguments);this.message=X.message;"stack"in X&&(this.stack=X.stack)};
_.S(OI9,Error);_.Dc.prototype.load=function(X){this.megabloxUrl_=_.gx("YPC_MB_URL");_.VX(this.megabloxUrl_,(0,_.K8)(function(){X&&X()},this))};
_.FHy=function(X,H,l,b,U,K,w,d,B,q,u){_.CVh(B);X.load((0,_.K8)(function(){try{var e=K?K:_.gx("HL"),y=_.gx("SESSION_INDEX");_.hdL("client",function(){aSC("59",{helpCenterPath:"/youtube",locale:e,window:window}).JSC$10285_loadChatSupport({authuser:String(y)})})}catch(V){throw kh(10,u,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),U&&U(V),_.n2(V),V;
}m3G(this,H,l,b,U,K,w,d,B,q,u)},X))};
_.Dc.prototype.openFixFlowDialog=function(X,H,l,b){this.load((0,_.K8)(function(){try{QWC(this,_.ij("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(X).withIntegratorCallback(H).load(l,b)}catch(U){throw _.n2(U),U;}},this))};
var QWC=function(X,H,l,b){var U=H.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.P("enable_window_constrained_buy_flow_dialog")&&(U=U.usingPopupStyle(_.ij("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));b&&(U=U.usingCloseCallback(b));H.bootstrap.fromPaymentsUrl(X.megabloxUrl_);X=H.bootstrap.asMashupMode(U);l=l?l:_.gx("HL");X.usingGaiaIndex(_.gx("SESSION_INDEX")).usingLocale(l).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.P("enable_google_payments_buyflow_material2_style_web")?
X.usingStyle(":m2;pc=#444;ac=#065fd4"):X.usingStyle(":md;pc=#444;ac=#065fd4");return X},m3G=function(X,H,l,b,U,K,w,d,B,q,u){try{var e=_.ij("payments.business.integration");
if(!e)throw new OI9("payments.business.integration is undefined");var y=e.standaloneContextAuthId.forUserId(),V=QWC(X,e,K,function(){dxW(!1);d&&d()});
w&&V.usingServerAnalyticsEventHandler(w);var p=V.inStandaloneContext(y).buyFlow(function(z){if(z&&(!z.integratorData||z.integratorData===""||z.error))if(z.error!=null)if(String(z.error)==="-1")_.wnN(B);else{var t=String(z.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";kh(10,u,t,z.debugCode);_.xh(t,B,z.debugCode);t=new _.qd("PAYMENT_ERROR_MESSAGE::"+z.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+z.internalErrorDetails);
_.n2(t)}else kh(10,u,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.xh("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",B,"EMPTY_INTEGRATOR_DATA"),_.n2(Error("cg"));l&&(dxW(!1),l(z))}).withEncryptedParameters(H);
q&&p.withClientParameters(Fmm(_.T8O(q)));p.load(function(){kh(24,u);_.uH("ttc",void 0,"commerce_transaction");BK("commerce_transaction");b&&(b(),dxW(!0))},function(z){if(z==null?0:z.debugCode)var t=z==null?void 0:z.debugCode;
else if(!z||(z==null?0:z.debugCode))t="EMPTY_LOAD_FAILURE_ERROR",_.n2(Error(t));else{t="EMPTY_LOAD_FAILURE_DEBUG_CODE";var W=new _.qd("LOAD_FAILURE:"+z.message," DEBUG_CODE:"+t);_.n2(W)}kh(10,u,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",t);_.xh("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",B,t);_.n2(z);U&&U(z)})}catch(z){throw z instanceof OI9&&(kh(10,u,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),U&&U(z)),_.n2(z),z;
}};var Tqz;Tqz=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.wYh=function(X,H){H=H===void 0?!1:H;X=Tqz.test(X)?_.vu(X):null;!H&&window.payments||!X?(X=_.kj(),H=X.promise,X.resolve()):H=_.sKQ(X,{attributes:{"data-payments-main":"",id:"payment-lib"}});return H};var Nq_;Nq_=_.W8(["//www.googletagmanager.com/gtm.js?id=",""]);_.UK=function(X,H){_.iE(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:H}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.gx("GL")}),H=_.XJ("SCRIPT"),H.async=!0,_.sw(H,_.z8(Nq_,X)),H.id="gtm",X=document.getElementsByTagName("script"),X.length==0?document.head.appendChild(H):(X=X[0],X.parentNode.insertBefore(H,X)))};
_.$v=function(X){if(X=JSON.parse(X))window.dataLayer=window.dataLayer||[],window.dataLayer.push(X)};var cqF,jWD;cqF=_.W8(["https://clients2.google.com/gr/gr_sync.js"]);_.RwW=function(){};
_.RwW.prototype.init=function(){if(jWD()){var X=_.kj();X.resolve();return X.promise}return _.sKQ(_.z8(cqF)).then(function(){if(!jWD())throw Error("dg");},function(){throw Error("eg");
})};
_.CGK=function(){if(!jWD())return"";var X=window.google.gr;X.init({async:{schedule:"sync"},merchantId:"youtube"});X.start();X=X.finish();return X==null?"":X};
jWD=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.a=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.S(_.a,PolymerFakeBaseClassWithoutHtml);_.Hc=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.S(_.Hc,PolymerFakeBaseClassWithoutHtml);var hxy=window.ShadyDOM;var LJz,ruW,I_y,Aum,Hzy,lGy,KD,Oi;LJz=_.P("enable_shadydom_free_scoped_query_methods");ruW=_.P("enable_shadydom_free_scoped_node_methods");I_y=_.P("enable_shadydom_free_scoped_readonly_properties_batch_one");Aum=_.P("enable_shadydom_free_parent_node");Hzy=_.P("enable_shadydom_free_children");lGy=_.P("enable_shadydom_free_last_child");KD=window.ShadyDOM;_.cM=KD&&KD.noPatch&&KD.wrap?KD.wrap:KD?function(X){return KD.patch(X)}:function(X){return X};
Oi=function(X){if(X instanceof ShadowRoot)this.host=(0,_.cM)(X.host),this.root=X;else if(X.$$){this.host=(0,_.cM)(X);var H;this.root=(H=X.root)!=null?H:this.host}else if(X.polymerController){this.host=(0,_.cM)(X);var l;this.root=(l=this.host.shadowRoot)!=null?l:this.host}else this.root=this.host=(0,_.cM)(X)};
Jub();Y0l();oIb();bzy();XTN();var rqz={querySelector:function(X,H){H=S0y(H,GW(X));return _.P("sunnydom_native_scoped_query_selectors")?B7K(X,H):B7K(_.a6(X),H)},
querySelectorAll:function(X,H){H=S0y(H,GW(X));return _.P("sunnydom_native_scoped_query_selectors")?Array.from(q0K(X,H)):q0K(_.a6(X),H)}},Jqz={appendChild:function(X,H){var l=GW(X),b=_.gu(H);
return _.cub(_.a6(X),l?_.i$(H,l,b):H)},
cloneNode:function(X,H){var l=_.gu(X);X=_.a6(X);H=Ei(X).prototype.cloneNode.call(X,H);return l?vM(H,l):H},
contains:function(X,H){var l=GW(X),b=_.gu(H);return l!==b?!1:jgO(X,H)},
insertBefore:function(X,H,l){var b=GW(X),U=_.gu(H);X=_.a6(X);H=b?_.i$(H,b,U):H;return Ei(X).prototype.insertBefore.call(X,H,l)},
removeChild:function(X,H){var l=GW(X);X=_.a6(X);H=l?vM(H,l):H;return Ei(X).prototype.removeChild.call(X,H)},
replaceChild:function(X,H,l){var b=GW(X),U=_.gu(H);H=b?_.i$(H,b,U):U?vM(H,U):H;l=b?vM(l,b):l;X=_.a6(X);return Ei(X).prototype.replaceChild.call(X,H,l)},
getRootNode:function(X,H){H=H===void 0?{composed:!0}:H;var l;if(((l=H)!=null?l:{}).composed)X=N7m(X);else{H=X;for(X=M9K(X);X;)H=X,X=n5Z(X);X=H}return X}},$$N=I_y?{firstChild:ihk,
nextSibling:G5O,previousSibling:Zhy,firstElementChild:v5W,lastElementChild:mxZ,nextElementSibling:g5O,previousElementSibling:a_Z,childNodes:QgW}:{};Aum&&($$N.parentNode=E5l);Hzy&&($$N.children=T7K);lGy&&($$N.lastChild=Oh8);LJz&&U$l(rqz);ruW&&U$l(Jqz);Kny();var RFz=function(X){this.node=X instanceof ShadowRoot?X.host:X};
CmW();wTb();var Fnh=new WeakMap;var qzO=Symbol("Cd");var ydK=new Set(["tap","track","down","up"]),VxK=_.P("pbcm_fi_query_decorators");var CD=function(){return _.Hc.apply(this,arguments)||this};
_.S(CD,_.Hc);_.R=CD.prototype;_.R.getState=function(){return this.store.getState()};
_.R.dispatch=function(X){this.store.dispatch(X)};
_.R.beforeRegister=function(){if(this&&typeof this==="object"){var X;var H=!!this.useSignals||!((X=this.polymerController)==null||!X.useSignals)}else H=!1;if(!H&&this.properties)for(H=_.C(Object.keys(this.properties)),X=H.next();!X.done;X=H.next()){var l=X.value;X=this.properties[l];if(X.selector){if(X.computed)throw Error("lg");l=["reduxPropertiesRecomputeTrigger",'"'+l+'"'].concat(_.LJ(X.selectorArgs||[])).join(",");X.computed="recomputeReduxSelector("+l+")"}}};
_.R.attached=function(){var X=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){X.reduxPropertiesRecomputeTrigger++}));
_.P("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.R.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.R.recomputeReduxSelector=function(X,H){var l=_.Ab.apply(2,arguments),b=this.properties[H].selector;if(!b)throw Error("jg`"+H);return b.apply(null,[this.store.getState()].concat(_.LJ(l)))};
_.R.select=function(X){var H=_.Ab.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return X.apply(null,[this.store.getState()].concat(_.LJ(H)))};
_.ja.Object.defineProperties(CD.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
CD.prototype.recomputeReduxSelector=CD.prototype.recomputeReduxSelector;_.T([_.g(),_.N("design:type",Number)],CD.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.T([_.l9()],CD);var wh=[],Szz={},Bc=function(){return Jh.apply(this,arguments)||this};
_.S(Bc,Jh);Bc.prototype._addPropertyEffect=function(X,H,l){if(H==="__observeEffects"&&l){var b,U=(b=l.info.method)!=null?b:l.info.methodName;if(U){var K=this[U];this[U]=function(){wh.push(U);try{K==null||K.apply(this,arguments)}finally{wh.pop()}}}}_.bd._addPropertyEffect.apply(this,[X,
H,l])};
Bc.prototype._setPendingProperty=function(X,H,l){if(wh.length){var b=wh[wh.length-1],U;(U=Szz[this.is])!=null&&U.has(b)||(zFy(this.is,b),_.Sh("polymerPropertyChangedInObserver",{componentName:this.is,observerName:b}))}return _.bd._setPendingProperty.apply(this,[X,H,l])};
_.T([DOW()],Bc);var nIl=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),x$h,Uq={};_.P("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Uq);var Ri=function(){return _.Hc.apply(this,arguments)||this};
_.S(Ri,_.Hc);Ri.prototype._setUnmanagedPropertyToNode=function(X,H,l){X.loggingStatus&&(X.loggingStatus.isDeclarativeExternal=!0);if(l!==X[H]||typeof l==="object")X[H]=l;X.is&&X.polymerController&&X.polymerController!==X&&$D(X.is,H,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");X.loggingStatus&&(X.loggingStatus.isDeclarativeExternal=!1)};
_.T([_.l9()],Ri);kyl()&&(gw.prototype._setUnmanagedPropertyToNode=(new Ri)._setUnmanagedPropertyToNode);_.TGO={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(X){},set polymerController(X){}}]};var Fh=function(){var X=Jh.apply(this,arguments)||this;X.json=function(){};
return X};
_.S(Fh,Jh);Fh.prototype.equals=function(X,H){return X===H};
Fh.prototype.isEmpty=function(X){var H;(H=!X)||(H=_.ch(X)&&X.length===0);return H};
_.T([DOW()],Fh);var LN_=function(X){X=lDb(X);s7.call(this,X)};
_.S(LN_,s7);LN_.prototype.addProvider=function(X){X=X.key?X:lDb([X])[0];var H=this.keyIdToIndex.get(X.key.id);if(H){if(gIN(X,this.providers[H]))throw Error("mg`"+X.key.displayName);}else s7.prototype.addProvider.call(this,X)};
var YBv=new LN_([]);var IBv=!1;var Ozy={};IBv||(vIK(),IBv=!0);
Ozy.InjectBehavior={initializeInjection:function(){var X=this.provide;try{if((X=X!=null?X:[])&&X.length>0)for(var H=lDb(X),l=_.C(H),b=l.next();!b.done;b=l.next())YBv.addProvider(b.value);var U=new Set;Gyy(this.behaviors||[],U);H={};for(var K=_.C(U),w=K.next();!w.done;w=K.next()){var d=w.value;d.inject&&Object.assign(H,d.inject)}this.inject&&Object.assign(H,this.inject);for(var B=_.C(Object.keys(H)),q=B.next();!q.done;q=B.next()){var u=q.value,e=H[u];try{this[u]=YBv.resolve(e)}catch(y){throw y;}}}catch(y){throw Error(y.message);
}}};var Qly;var NGy=/\bclass\b/.test(function(){}.toString()),rd8=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Aq6=function(X){this.wasDefined=!0;Array.isArray(X)||X instanceof Array?(this.JSC$13827_getImpl=X[0],this.JSC$13827_setImpl=X[1]):this.JSC$13827_getImpl=X};
_.R=Aq6.prototype;_.R.getWithPath=function(X){return YzW(this.JSC$13827_getImpl(),X)};
_.R.setWithPath=function(X,H){var l=this;if(X.length)throw Error("ng");if(!this.JSC$13827_setImpl)throw Error("og");eI(function(){l.JSC$13827_setImpl(H)})};
_.R.notifyPath=function(){throw Error("pg");};
_.R.notifySplices=function(){throw Error("qg");};
_.R.getChangeRecordSignal=function(X,H){var l=this;if(X.length)throw Error("rg");return function(){var b=l.getWithPath(X);return{path:H!=null?H:"",base:b,value:b}}};
_.R.getSplicesSignal=function(){throw Error("sg");};
_.R.getPathMutationSignal=function(){throw Error("tg");};
_.R.pop=function(){throw Error("ug");};
_.R.push=function(){throw Error("vg");};
_.R.splice=function(){throw Error("wg");};
_.R.unshift=function(){throw Error("xg");};var dh=function(X){var H=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(X)||X instanceof Array?(this.JSC$13832_getImpl=X[0],this.JSC$13832_setImpl=X[1]):this.JSC$13832_getImpl=X;this.wasDefined=!1;_.h1(function(){H.wasDefined=H.JSC$13832_getImpl()!==void 0})};
dh.prototype.getWithPath=function(X){return YzW(this.JSC$13832_getImpl(),X)};
dh.prototype.setWithPath=function(X,H){var l=this;if(X[X.length-1]!=="*"&&X[X.length-1]!=="splices"){var b=_.h1(function(){return l.getWithPath([])});
if(X.length===0){if(!this.JSC$13832_setImpl)throw Error("yg");if(b===H)return;this.wasDefined||(this.wasDefined=H!==void 0);eI(function(){l.JSC$13832_setImpl(H)})}else{for(var U=0;U<X.length-1;U++){if(!b)return;
b=b[X[U]]}U=X[X.length-1];b&&(b[U]=H);this.wasDefined||(this.wasDefined=X.length>1||H!==void 0)}XLD(this,X,{pathComponents:X,value:H})}};
dh.prototype.notifyPath=function(X,H){X.length===0?H&&this.setWithPath(X,H.value):XLD(this,X,{pathComponents:X,value:H==null?void 0:H.value,fallbackWhenUndefined:H==null?void 0:H.value})};
var XLD=function(X,H,l,b){if(X.setMutationSignal){var U=++X.mutationIndex,K=[X.observedPath],w=X.observedPath,d;H.length===0&&(d=w);for(var B=0;B<H.length;B++){var q=w.subPaths[H[B]];if(!q)break;K.push(q);w=q;B===H.length-1&&(d=q)}for(H=!1;K.length;)w=K.shift(),w.data={index:U,mutation:l,spliceMutationIndex:b},H||(H=w===d),H&&K.push.apply(K,_.LJ(Object.values(w.subPaths)));eI(function(){X.setMutationSignal(U)})}};
dh.prototype.notifySplices=function(X,H){var l=this,b=_.h1(function(){return l.getWithPath(X)}),U=[].concat(_.LJ(X),["splices"]);
XLD(this,U,{pathComponents:U,value:{indexSplices:H}});if(b==null?0:b.length)H=this.mutationIndex,U=[].concat(_.LJ(X),["length"]),XLD(this,U,{pathComponents:U,value:b.length},H)};
var HZH=function(X,H,l,b,U,K){X.notifySplices(l,[{index:b,addedCount:U,removed:K,object:H,type:"splice"}])},lht=function(X,H){X=X.observedPath;
for(var l=0;l<H.length;l++){var b=H[l],U=X.subPaths[b];U||(U={pathComponents:H.slice(0,l+1),subPaths:{}},X.subPaths[b]=U);X=U}},bZG=function(X,H,l){lht(X,H);
if(!X.getMutationSignal){var b=_.C(_.FU(X.mutationIndex,void 0,"sNBMCd"));X.getMutationSignal=b.next().value;X.setMutationSignal=b.next().value}var U=X.getMutationSignal;return _.uL(function(){U();return l(o6G(X,H))},void 0,"zvsXEd")};
dh.prototype.getChangeRecordSignal=function(X,H){var l=this,b=this.mutationIndex,U;return bZG(this,X,function(K){if(K&&K.index>b){var w=K.mutation;b=K.index;U=void 0}K=_.h1(function(){return l.getWithPath(X)});
if(w){var d=w.pathComponents[w.pathComponents.length-1],B=[].concat(_.LJ(w.pathComponents));if(d==="splices"||d==="length")return{base:K,path:(H?[H].concat(_.LJ(B)):B).join("."),value:w.value};var q=X.length>B.length?X:B,u;return{base:K!=null?K:w.fallbackWhenUndefined,path:(H?[H].concat(_.LJ(q)):q).join("."),value:(u=_.h1(function(){return l.getWithPath(q)}))!=null?u:w.fallbackWhenUndefined}}U||(U={base:K,
path:(H?[H].concat(_.LJ(X)):X).join("."),value:K});return U})};
dh.prototype.getSplicesSignal=function(X){var H=this.mutationIndex,l;return bZG(this,X,function(b){if(b&&b.index>H&&b.spliceMutationIndex!==H){var U=b.mutation;H=b.index;l=void 0}return U&&U.pathComponents[U.pathComponents.length-1]==="splices"?l=b=U.value:l})};
dh.prototype.getPathMutationSignal=function(X){var H=this;lht(this,X);if(!this.getMutationSignal){var l=_.C(_.FU(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=l.next().value;this.setMutationSignal=l.next().value}var b=this.getMutationSignal,U=this.mutationIndex,K;return _.uL(function(){b();var w=o6G(H,X);if(w&&w.index>U&&w.mutation&&IGy(w.mutation.pathComponents,X)){var d=w.mutation;U=w.index}if(!K||U!==K.index){var B,q;w=(q=_.h1(function(){return H.getWithPath(X)}))!=null?q:(B=d)==null?
void 0:B.fallbackWhenUndefined;
K={index:U,value:w}}return K},void 0,"RXYC9b")};
var o6G=function(X,H){X=X.observedPath;H=_.C(H);for(var l=H.next();!l.done;l=H.next())X=X.subPaths[l.value];return X.data};
dh.prototype.pop=function(X){var H=this,l=_.h1(function(){return H.getWithPath(X)});
if(!(l instanceof Array))throw Error("zg");var b=l.length>0,U=l.pop();b&&HZH(this,l,X,l.length,0,[U]);return U};
dh.prototype.push=function(X){var H=_.Ab.apply(1,arguments),l=this,b=_.h1(function(){return l.getWithPath(X)});
if(!(b instanceof Array))throw Error("Ag");var U=b.length,K=b.push.apply(b,_.LJ(H));H.length&&HZH(this,b,X,U,H.length,[]);return K};
dh.prototype.splice=function(X,H,l){var b=_.Ab.apply(3,arguments),U=this,K=_.h1(function(){return U.getWithPath(X)});
if(!(K instanceof Array))throw Error("Bg");H<0?H=K.length-Math.floor(-H):H&&(H=Math.floor(H));var w=K.splice.apply(K,[H,l].concat(_.LJ(b)));(b.length||w.length)&&HZH(this,K,X,H,b.length,w);return w};
dh.prototype.unshift=function(X){var H=_.Ab.apply(1,arguments),l=this,b=_.h1(function(){return l.getWithPath(X)});
if(!(b instanceof Array))throw Error("Cg");var U=b.unshift.apply(b,_.LJ(H));H.length&&HZH(this,b,X,0,H.length,[]);return U};var hx=function(X,H,l){this.model=X;this.unknownSignalResolver=H;this.options=l;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];H=_.C(KdN());X=H.next().value;H=H.next().value;this.owner=X;this.disposeImpl=H};
hx.prototype.dispose=function(){if(!this.isDisposed){for(var X=_.C(this.childSignalProxies),H=X.next();!H.done;H=X.next())H.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Ue9=function(X,H){X=L8(X.owner);try{H()}finally{L8(X)}};
hx.prototype.effect=function(X){Ue9(this,function(){_.t1(X,"j")})};
var $eq=function(X,H){X.options!=null||(X.options={});var l;(l=X.options).immutableProps!=null||(l.immutableProps=new Set);X.options.immutableProps.add(H)},EKk=function(X,H){H=""+H;
KgF(X,H);var l,b;if((l=X.options)==null?0:(b=l.immutableProps)==null?0:b.has(H))return!0;var U;if((U=X.model.__signalCache)==null?0:U.has(H))l=X.model.__signalCache.get(H),Array.isArray(l)&&$eq(X,H);var K,w,d;return(d=(K=X.options)==null?void 0:(w=K.immutableProps)==null?void 0:w.has(H))!=null?d:!1},RsF=function(X,H){var l;
X.unknownSignalResolver&&(l=X.unknownSignalResolver(H));var b,U;((b=X.options)==null?0:(U=b.immutableProps)==null?0:U.has(H))?l!=null||(l=new Aq6(_.FU(X.model[H],void 0,"By5iP"))):l!=null||(l=new dh(_.FU(X.model[H],void 0,"CXghNc")));var K=X.model.hostElement;Object.defineProperty(X.model,H,{get:function(){txZ(K,H);return l.getWithPath([])},
set:function(w){Kc(K,H);X.setWithPath([H],w)},
configurable:!0});return l},KgF=function(X,H){var l,b,U;
((l=X.model.__signalCache)==null||!l.has(H))&&((b=X.options)==null?0:(U=b.externalSignalProps)==null?0:U.has(H))&&X.model[H]},eL=function(X,H){H=""+H;
var l=X.signalCache[H];if(l!==void 0)return l;l=!1;KgF(X,H);var b;if((b=X.model.__signalCache)==null?0:b.has(H))if(l=X.model.__signalCache.get(H),Array.isArray(l))l=!0,$eq(X,H);else return X.signalCache[H]=X.model.__signalCache.get(H).signal,X.signalCache[H];var U,K;b=(K=(U=X.options)==null?void 0:U.reactivityMode)!=null?K:0;var w,d;if(!((w=X.options)==null?0:(d=w.reactiveProps)==null?0:d.has(H))&&!l&&b===1)throw Error("Dg`"+H);U=l?C6q(X,H):RsF(X,H);return X.signalCache[H]=U},C6q=function(X,H){var l=
Object.getOwnPropertyDescriptor(X.model.constructor.prototype,H),b=function(){return X.model[H]};
return new Aq6(l&&l.get&&!l.set?b:[b,function(U){X.model[H]=U}])};
hx.prototype.getWithPath=function(X){var H=_.C(X);X=H.next().value;H=cE(H);txZ(this.model.hostElement,""+X);return eL(this,X).getWithPath(H)};
hx.prototype.setWithPath=function(X,H){if(X.length){Kc(this.model.hostElement,X.join("."));var l=_.C(X);X=l.next().value;l=cE(l);eL(this,X).setWithPath(l,H)}};
hx.prototype.getPathMutationSignal=function(X){var H=_.C(X);X=H.next().value;H=cE(H);return eL(this,X).getPathMutationSignal(H)};
hx.prototype.notifyPath=function(X,H){var l=_.C(X);X=l.next().value;l=cE(l);eL(this,X).notifyPath(l,H)};
var wLq=function(X,H){if(H.type==="literal")return function(){return{rootWasDefined:!0,value:H.value}};
var l=MR(H.path),b=_.C(l),U=b.next().value;b=cE(b);var K,w;if(H.type==="path"&&(l.length===1||((K=X.options)==null?0:(w=K.immutableProps)==null?0:w.has(U))))return function(){var e=X.getWithPath(l.slice(0,1));e=YzW(e,l.slice(1));return{rootWasDefined:eL(X,l[0]).wasDefined,value:e}};
var d=eL(X,U);if(H.type==="path"){var B=d.getPathMutationSignal(b);return function(){var e,y=(e=B())==null?void 0:e.value;return{rootWasDefined:d.wasDefined,value:y}}}if(H.type==="splices"){var q=d.getSplicesSignal(b);
return function(){var e=q();return{rootWasDefined:d.wasDefined,value:e}}}var u=d.getChangeRecordSignal(b,""+U);
return function(){var e=u();return{rootWasDefined:d.wasDefined,value:e}}},b3z=function(X,H,l){var b=l.map(function(d){return wLq(X,d)}),U=l.length===0,K=[],w=l.length!==1||l[0].type!=="path"?!1:!0;
X.effect(function(){for(var d=b.length,B=[],q=!!K.length,u=0;u<d;u++){var e=b[u](),y=e.rootWasDefined;e=e.value;U||(U=y);B[u]=e;w&&(B[u+d]=q?K[u]:B[u],K[u]=e)}U&&Z1(X.owner,function(){return void H.apply(null,_.LJ(B))})})},Adl=function(X,H,l,b,U){var K=eL(X,H);
U!==void 0&&K.setWithPath([],U);b3z(X,function(){var w=_.Ab.apply(0,arguments);Kc(X.model.hostElement,H,!0);K.setWithPath([],l.apply(null,_.LJ(w)))},b)};
hx.prototype.arrayPush=function(X){var H=_.Ab.apply(1,arguments),l=_.C(X),b=l.next().value;l=cE(l);b=eL(this,b);return b.push.apply(b,[l].concat(_.LJ(H)))};
hx.prototype.arraySplice=function(X,H,l){var b=_.Ab.apply(3,arguments),U=_.C(X),K=U.next().value;U=cE(U);K=eL(this,K);return K.splice.apply(K,[U,H,l].concat(_.LJ(b)))};
hx.prototype.arrayUnshift=function(X){var H=_.Ab.apply(1,arguments),l=_.C(X),b=l.next().value;l=cE(l);b=eL(this,b);return b.unshift.apply(b,[l].concat(_.LJ(H)))};
hx.prototype.notifySplices=function(X,H){var l=_.C(X);X=l.next().value;l=cE(l);eL(this,X).notifySplices(l,H)};var deF=!0,hsG=!1,gTk=!1,FgY=!1,B5D=0;FgY=!1;B5D=0;deF=!0;hsG=gTk=!1;var Fdh=/([^\s]+?)\(([\s\S]*)\)/,w3W=/\.([^.]+)$/,qYm=/\\,/g,RAm=/&comma;/g,Csk=/\\(.)/g,BmZ=[],dHZ={"*":"wildcard",splices:"splices"};var SYy=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"),VtW=/[A-Z]/,qoQ=["class","hidden","id","on-dom-change"],nKW=new Set([].concat(_.LJ(qoQ),
["if","notify-dom-change","restamp"])),kFy=new Set([].concat(_.LJ(qoQ),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),xHz=new Set(["restamp"]);var k6y=new Set(["className","id"]);var GFk=Symbol(),QnO=window;var YY8=window;var bIl=0,Xly=0,yc=[],oTZ=0,A_8=!1,lB8=document.createTextNode("");(new window.MutationObserver(HIm)).observe(lB8,{characterData:!0});var Pc=new Map,Vc=0,sjD=function(X){this.mappedHandleId=X},$3b=function(X,H,l,b){this.mappedHandleId=X;
var U=this;this.mappedHandleId=X;this.callback=H;this.waitTime=l;this.schedulerPriority=b;this.handleId=_.Ss.addJob(function(){U.callback();Pc.delete(U.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.S($3b,sjD);$3b.prototype.cancel=function(){_.Ss.cancelJob(this.handleId);Pc.delete(this.mappedHandleId)};
var KNy=function(X,H){this.mappedHandleId=X;var l=this;this.mappedHandleId=X;this.callback=H;this.handleId=U3y(function(){l.callback();Pc.delete(l.mappedHandleId)})};
_.S(KNy,sjD);KNy.prototype.cancel=function(){var X=this.handleId-Xly;X<0||yc.length<=X||(yc[X]=null);Pc.delete(this.mappedHandleId)};var d3Z=function(){};
d3Z.prototype.cancel=function(){this.jobHandle!==void 0&&(Rcy(this.jobHandle),this.jobHandle=void 0)};
d3Z.prototype.run=function(X,H,l){var b=this;this.cancel();this.callback=X;this.jobHandle=_.fc(function(){X();b.callback=void 0},H,l)};
d3Z.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var C7z=new WeakMap;var Mm_=tJ(function(X){for(var H=X,l=0;l<3;l++)H=Object.getPrototypeOf(H);delete H.prototype.connectedCallback;var b=function(){return X.apply(this,arguments)||this};
_.S(b,X);b.prototype._attachDom=function(U){if(!U)return null;var K=(0,_.cM)(this.hostElement);K.attachShadow({mode:"open",shadyUpgradeFragment:U});K.shadowRoot.appendChild(U);return K.shadowRoot};
b.prototype._takeAttributes=function(){for(var U=this.hostElement.attributes,K=0;K<U.length;K++){var w=U[K],d=void 0,B=void 0;(B=(d=this).__attributeReaction)==null||B.call(d,w.name,null,w.value)}};
b.prototype._readyClients=function(){X.prototype._readyClients.call(this);this.root=this};
b.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);X.prototype.connectedCallback.call(this)};
_.ja.Object.defineProperties(b,{template:{configurable:!0,enumerable:!0,get:function(){return b.prototype._template}}});
return b}),ubQ=tJ(function(X){var H=function(){return X.apply(this,arguments)||this};
_.S(H,X);H.prototype.created=function(){if(this.__notifyEffects)for(var l=_.C(Object.values(this.__notifyEffects)),b=l.next();!b.done;b=l.next()){b=_.C(b.value);for(var U=b.next();!U.done;U=b.next())U.value.fn=qBy}if(this.__reflectEffects)for(l=_.C(Object.values(this.__reflectEffects)),b=l.next();!b.done;b=l.next())for(b=_.C(b.value),U=b.next();!U.done;U=b.next())U.value.fn=sWK};
H.prototype._addEventListenerToNode=function(l,b,U){l=SL(l);ni(l,b,U)||X.prototype._addEventListenerToNode.call(this,l,b,U)};
H.prototype._removeEventListenerFromNode=function(l,b,U){l=SL(l);kH(l,b,U)||X.prototype._removeEventListenerFromNode.call(this,l,b,U)};
H.prototype._propertiesChanged=function(l,b,U){if(this.__dataToNotify&&this.__notifyEffects)for(var K=_.C(Object.keys(this.__dataToNotify)),w=K.next();!w.done;w=K.next()){w=w.value;var d=Bq8(w);this.__notifyEffects[d]||delete this.__dataToNotify[w]}else this.__dataToNotify=null;X.prototype._propertiesChanged.call(this,l,b,U)};
H.prototype.fire=function(l,b,U){b=b===void 0?{}:b;var K;return _.QX(SL((K=U==null?void 0:U.node)!=null?K:this),l,b,U)};
H.prototype._ensureAttribute=function(l,b){var U=SL(this);U.hasAttribute(l)||u9(U,b,l)};
H.prototype.isLightDescendant=function(l){var b=SL(this);return SL(b)!==l&&_.mh(b).contains(l)&&_.mh(b).getRootNode()===_.mh(l).getRootNode()};
return H});
_.Ie.ready=function(){var X;((X=this.hostElement)!=null?X:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var H;((H=this.hostElement)!=null?H:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.$s._subscribeIronResize=function(X){var H;((H=X.hostElement)!=null?H:X).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.$s._unsubscribeIronResize=function(X){var H;((H=X.hostElement)!=null?H:X).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var ecZ=[Array,Boolean,Date,Number,Object,String],xD=function(X,H,l,b){this.polySiInfo=X;this.polySiParams=H;this.polySiContext=l;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;b||this instanceof HTMLElement&&(b=this);if(!b)throw Error("Kg");this.allowedProps=H.allowedProps;this.hostElement=b;this.is=X.is;this.upgradeDisabled=!!H.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");X=new Set(H.reactiveSchemas.filter(function(U){return U.type!==
"observe"}).map(function(U){return U.propertyKey}));
this.signalProxy=new hx(this,void 0,{reactiveProps:X,reactivityMode:H.reactivityMode});this.__dataHasAccessor={};H=_.C(H.reactiveSchemas);for(X=H.next();!X.done;X=H.next())X=X.value,X.type==="signal"&&(this.__dataHasAccessor[X.propertyKey]=!0);this.upgradeDisabled||es9(this)};
xD.prototype.getExtraMethodsToForward=function(){return[]};
var es9=function(X){X.polySiContext.didRegister||(X.registered(),X.polySiContext.didRegister=!0);X.polySiContext.finalizedTemplate||(X.polySiContext.finalizedTemplate={},X.polySiParams.templateGetter&&(X.polySiContext.finalizedTemplate.processedTemplate=IlZ(X.polySiParams.templateGetter,X.polySiParams.is)));yZH(X);var H=X.hostElement;H.loggingStatus!=null||(H.loggingStatus={});H.loggingStatus.isInitializing=!0;_.h1(function(){return void X.created()});
H.loggingStatus.isInitializing=!1;X.isPolySiElementConnected&&Vm_(X)},Vm_=function(X){X.didCallReady||(_.h1(function(){return void X.ready()}),X.didCallReady=!0);
X.isAttached=!0;X.attached()};
_.R=xD.prototype;_.R.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||Vm_(this)};
_.R.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.R.attributeChangedCallback=function(X,H,l){if(this.upgradeDisabled)X==="disable-upgrade"&&l===null&&(this.upgradeDisabled=!1,es9(this));else if(H!==l){var b=_.IK(X),U=this.polySiContext.typesForSignals[b];if(U&&(!this.reflecting||_.P("polysi_attribute_changed_serializing_killswitch"))){switch(U){case Object:try{var K=JSON.parse(l)}catch(d){K=l}break;case Array:try{K=JSON.parse(l)}catch(d){K=null}break;case Date:K=isNaN(l)?String(l):Number(l);K=new Date(K);break;case Boolean:K=l!==null;break;case Number:K=
Number(l);break;default:K=l}this[b]=K}b=_.C(this.polySiParams.behaviors);for(U=b.next();!U.done;U=b.next())K=void 0,(K=U.value.attributeChanged)==null||K.call(this,X,H,l);var w;(w=this.attributeChanged)==null||w.call(this,X,H,l)}};
_.R.attributeChangedCallbackWrapper=function(X,H,l){this.attributeChangedCallback(X,H,l)};
_.R.setPropertiesFromInitialAttributeValues=function(){for(var X=0;X<this.hostElement.attributes.length;X++){var H=this.hostElement.attributes[X];(H.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(H.name))&&this.attributeChangedCallback(H.name,null,H.value)}};
_.R.created=function(){this.provide=this.polySiParams.provide;var X;(X=this.initializeInjection)==null||X.call(this);X=_.C(this.polySiParams.reactiveSchemas);for(var H=X.next();!H.done;H=X.next())H=H.value,H.type==="signal"&&(this.mutablePropNames.add(H.propertyKey),eL(this.signalProxy,H.propertyKey));uwz(this,this.polySiInfo,this.polySiParams.behaviors);X=_.C(this.polySiParams.reactiveSchemas);for(H=X.next();!H.done;H=X.next())H=H.value,H.type==="signal"&&H.value!==void 0&&(this.signalProxy.model[H.propertyKey]=
typeof H.value==="function"?H.value.call(this):H.value);if(this.polySiParams.signalProperties)for(X=_.C(this.polySiParams.signalProperties),H=X.next();!H.done;H=X.next()){H=H.value;var l=void 0;((l=this.__signalCache)==null?0:l.has(H))||(this.signalProxy.model[H]=void 0)}FgY||P6D(this);MGm(this);X=_.C(this.polySiParams.behaviors);for(H=X.next();!H.done;H=X.next())l=void 0,(l=H.value.created)==null||l.call(this);var b;(b=this.polySiInfo.created)==null||b.call(this)};
_.R.registered=function(){var X=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var H=Object.getPrototypeOf(this);H.addReactiveSchema=function(d){X.polySiParams.reactiveSchemas.push(d)};
for(var l=_.C(this.polySiParams.behaviors),b=l.next();!b.done;b=l.next()){var U=void 0;(U=b.value.beforeRegister)==null||U.call(H)}var K;(K=this.polySiInfo.beforeRegister)==null||K.call(H);H.addReactiveSchema=VGO;l=_.C(this.polySiParams.behaviors);for(b=l.next();!b.done;b=l.next())U=void 0,(U=b.value.registered)==null||U.call(H);var w;(w=this.polySiInfo.registered)==null||w.call(H)};
_.R.ready=function(){var X;(X=this.beforeReady)==null||X.call(this);FgY&&P6D(this);var H;if(X=(H=this.polySiContext.finalizedTemplate)==null?void 0:H.processedTemplate){X=Ldb(X.template,X.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:X.hasInsertionPoint,thisCtx:this});H=X.nodesById;X=X.root;var l=this.hostElement;var b=b===void 0?!1:b;l=(0,_.cM)(l);if(!l.attachShadow)throw Error("Id");if(!l.shadowRoot||b)l.attachShadow({mode:"open",shadyUpgradeFragment:X}),l.shadowRoot.appendChild(X);
this.root=l.shadowRoot;this.$=H}fhz(this);b=_.C(this.polySiParams.behaviors);for(H=b.next();!H.done;H=b.next())X=void 0,(X=H.value.ready)==null||X.call(this);var U;(U=this.polySiInfo.ready)==null||U.call(this)};
_.R.attached=function(){for(var X=_.C(this.polySiParams.behaviors),H=X.next();!H.done;H=X.next()){var l=void 0;(l=H.value.attached)==null||l.call(this)}var b;(b=this.polySiInfo.attached)==null||b.call(this)};
_.R.detached=function(){for(var X=_.C(this.polySiParams.behaviors),H=X.next();!H.done;H=X.next()){var l=void 0;(l=H.value.detached)==null||l.call(this)}var b;(b=this.polySiInfo.detached)==null||b.call(this)};
var yZH=function(X){for(var H=_.C(X.polySiParams.behaviors),l=H.next();!l.done;l=H.next())if(l=l.value,l.listeners)for(var b in l.listeners)J_N(X,X.hostElement,b,l.listeners[b]);if(X.polySiInfo.listeners)for(var U in X.polySiInfo.listeners)J_N(X,X.hostElement,U,X.polySiInfo.listeners[U])},J_N=function(X,H,l,b,U){X=LnW(X,b,U);
ni(H,l,X)||H.addEventListener(l,X);return X},P6D=function(X){for(var H=_.C(X.polySiParams.reactiveSchemas),l=H.next();!l.done;l=H.next())l=l.value,l.type==="compute"||l.type==="computeWithMethod"?X3m(X.signalProxy,l,X):l.type==="redux"?oKW(X.signalProxy,l,X.store):l.type==="signal"&&l.readOnly&&ll8(X.signalProxy,l)},fhz=function(X){for(var H=_.C(X.polySiParams.reactiveSchemas),l=H.next(),b={};!l.done;b={schema$jscomp$12:void 0},l=H.next())b.schema$jscomp$12=l.value,b.schema$jscomp$12.type==="notify"?
UHz(X.signalProxy,b.schema$jscomp$12,X.hostElement):b.schema$jscomp$12.type==="observe"?$Hy(X.signalProxy,b.schema$jscomp$12,X):b.schema$jscomp$12.type==="reflect"&&X.signalProxy.effect(function(K){return function(){var w=X.signalProxy.getWithPath([K.schema$jscomp$12.propertyKey]);
X.reflecting=!0;MtL(X.hostElement,K.schema$jscomp$12.propertyKey,w,!0);X.reflecting=!1}}(b));
if(X.reflectedAttributes)for(H=_.C(Object.entries(X.reflectedAttributes)),b=H.next(),l={};!b.done;l={key$jscomp$940:void 0,value$jscomp$10342:void 0},b=H.next()){var U=_.C(b.value);b=U.next().value;U=U.next().value;l.key$jscomp$940=b;l.value$jscomp$10342=U;X.signalProxy.effect(function(K){return function(){X.reflecting=!0;MtL(X.hostElement,K.key$jscomp$940,(0,K.value$jscomp$10342)(),!0);X.reflecting=!1}}(l))}};
_.R=xD.prototype;_.R._setPendingProperty=function(X,H){this.set(X,H);return!1};
_.R._enableProperties=function(){};
_.R._setPendingPropertyOrPath=function(X,H){this.notifyPath(X,H);return!1};
_.R._addPropertyEffect=function(){};
_.R._stampTemplate=function(){throw Error("Lg");};
_.R.fire=function(X,H,l){H=H===void 0?{}:H;l=l===void 0?{}:l;var b,U,K={bubbles:(b=l.bubbles)!=null?b:!0,cancelable:!!l.cancelable,composed:(U=l.composed)!=null?U:!0},w;return _.QX(P7y((w=l.node)!=null?w:this.hostElement),X,H,K)};
_.R.isLightDescendant=function(X){return this.hostElement!==X&&_.mh(this.hostElement).contains(X)&&_.mh(this.hostElement).getRootNode()===_.mh(X).getRootNode()};
_.R.get=function(X,H){var l=MR(X);return H?YzW(H,l):X==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(l)};
_.R.linkPaths=function(){};
_.R.listen=function(X,H,l){X=P7y(X);this.boundListeners!=null||(this.boundListeners=new WeakMap);var b=this.boundListeners.get(X);b||(b={},this.boundListeners.set(X,b));var U=H+l;b[U]||(b[U]=J_N(this,X,H,l))};
_.R.notifyPath=function(X,H){this.signalProxy.notifyPath(MR(X),arguments.length===2?{value:H}:void 0)};
_.R.canNotifyPath=function(X){return this.mutablePropNames.has(X)&&!EKk(this.signalProxy,X)};
_.R.notifySplices=function(X,H){this.signalProxy.notifySplices(MR(X),H)};
_.R.pop=function(X){var H=this.signalProxy;X=MR(X);var l=_.C(X);X=l.next().value;l=cE(l);return eL(H,X).pop(l)};
_.R.push=function(X){var H=_.Ab.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[MR(X)].concat(_.LJ(H)))};
_.R.set=function(X,H,l){if(l)throw Error("Mg");X==="hidden"?this.hostElement.hidden=!!H:this.signalProxy.setWithPath(MR(X),H)};
_.R.setProperties=function(X){X=_.C(Object.entries(X));for(var H=X.next();!H.done;H=X.next()){var l=_.C(H.value);H=l.next().value;l=l.next().value;this[H]=l}};
_.R.splice=function(X,H,l){var b=_.Ab.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[MR(X),H,l].concat(_.LJ(b)))};
_.R.unlinkPaths=function(){};
_.R.unlisten=function(X,H,l){X=P7y(X);if(this.boundListeners){var b=this.boundListeners.get(X);if(b){l=H+l;var U=b[l];U&&(kH(X,H,U)||X.removeEventListener(H,U),delete b[l])}}};
_.R.unshift=function(X){var H=_.Ab.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[MR(X)].concat(_.LJ(H)))};
_.ja.Object.defineProperties(xD.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 ETZ=[Array,Boolean,Date,Number,Object,String];var aBm=!1;var FV=function(){var X=HTMLElement.apply(this,arguments)||this;X.restamp=!1;X.notifyDomChange=!1;X.JSC$13940_didCallConnected=!1;X.JSC$13940_renderDebouncer=null;X.disableTemplateUpdateSignalImpl=DV()?void 0:_.FU(!1,void 0,"kCcqO");var H;X.getDisableTemplateUpdate=(H=X.disableTemplateUpdateSignalImpl)==null?void 0:H[0];var l;X.setDisableTemplateUpdate=(l=X.disableTemplateUpdateSignalImpl)==null?void 0:l[1];return X};
_.S(FV,HTMLElement);var pL9=function(X){X.conditionSignalImpl!=null||(X.conditionSignalImpl=new dh(_.FU(!1,void 0,"ahkyAc")));return X.conditionSignalImpl};
_.R=FV.prototype;_.R.showHideChildren=function(X){SoD(this,X,this.if)};
_.R.attributeChangedCallback=function(X,H,l){if(this.JSC$13940_didCallConnected)throw Error("Qg`"+X);X==="notify-dom-change"?this.notifyDomChange=l!==null:X==="restamp"&&(this.restamp=l!==null)};
_.R.debounceRender=function(){this.JSC$13940_renderDebouncer=_.Qy(this.JSC$13940_renderDebouncer,DC,this.JSC$13940_renderImpl.bind(this));_.TH(this.JSC$13940_renderDebouncer)};
_.R.disconnectedCallback=function(){var X=(0,_.cM)(this).parentNode;(!X||X.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in X&&!X.host)&&zs6(this)};
_.R.connectedCallback=function(){var X=this;if(_.P("ps_dom_if_require_parent_signal_proxy_killswitch")||this.parentSignalProxy)this.JSC$13940_didCallConnected=!0,deF?ZIh():this.style.display="none",this.parentSignalProxy.isDisposed&&!_.P("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){pL9(X).getWithPath([]);X.debounceRender()});
else{var H=(0,_.cM)(this).parentNode,l={parentNode:H==null?void 0:H.nodeName};H instanceof Element&&(l.parentClassName=H.className);_.x2(new _.qd("PsDomIf connected with undefined parentSignalProxy",l))}};
_.R.render=function(){_.rb()};
_.R.JSC$13940_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var X=this.if,H=!1;if(X){this.hasInstance()||(n6H(this),H=!0);a:{var l=(0,_.cM)(this).parentNode;if(this.hasInstance()){var b=this.instance.children;if((b==null?0:b.length)&&(0,_.cM)(this).previousSibling!==b[b.length-1])for(var U=0;U<b.length;U++)(0,_.cM)(l).insertBefore(b[U],this)}else{if(!l){l=!1;break a}k6G(this,l)}l=!0}if(!l)return}else this.restamp&&zs6(this);SoD(this,!1,X);X&&!H&&n6H(this);hsG&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.R.hasInstance=function(){return!!this.instance};
var k6G=function(X,H){var l=X.parentSignalProxy;if(DV()){var b=_.C(_.FU(!0,void 0,"QNXUce"));var U=b.next().value;b=b.next().value;l=X.parentSignalProxy}else{var K;var w=new hx((K=xet(X))!=null?K:{},function(B){var q=eL(X.parentSignalProxy,B).getChangeRecordSignal([]);B=_.FU(void 0,void 0,"mIYvwe");var u=new dh(B);w.effect(function(){if(X.getDisableTemplateUpdate&&!X.getDisableTemplateUpdate()){var e=q();u.notifyPath(MR(e.path),{value:e.value})}});
return u});
X.parentSignalProxy.childSignalProxies.push(w);var d=l=w}l=Ldb(X.templateInfo,X.templateInfo.nodeInfoList,l,{eventListenerHost:X.eventListenerHost,hasInsertionPoint:X.templateInfo.hasInsertionPoint,thisCtx:X.eventListenerHost,enabledSignal:DV()?U:void 0,getModel:function(){return xet(X)}}).root;
X.instance={root:l,children:[],hidden:!1,signalProxy:d,getTemplateUpdatesEnabled:U,setTemplateUpdatesEnabled:b};d=_.C(l.childNodes);for(U=d.next();!U.done;U=d.next())X.instance.children.push(U.value);(0,_.cM)(H).insertBefore(X.instance.root,X)},xet=function(X){if((X=X.parentSignalProxy.model)&&!X.hostElement){var H={},l;
for(l in X)X.hasOwnProperty(l)&&(H[l]=X[l]);return H}},zs6=function(X){if(X.instance){var H=X.instance.children;
if(H.length){var l=(0,_.cM)(H[0]).parentNode;if(l){l=(0,_.cM)(l);for(var b=0;b<H.length;b++)l.removeChild(H[b])}}DV()?X.instance.setTemplateUpdatesEnabled(!1):X.instance.signalProxy.dispose();X.instance=void 0}},SoD=function(X,H,l){H=H||!l;
X.instance&&X.instance.hidden!==H&&(X.instance.hidden=H,GLy(H,X.instance.children))},n6H=function(X){if(DV()){var H=X.instance;
H&&Z1(X.parentSignalProxy.owner,function(){return!H.getTemplateUpdatesEnabled()})&&H.setTemplateUpdatesEnabled(!0)}else X.setDisableTemplateUpdate(!1)};
_.ja.Object.defineProperties(FV.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var X=this;return Z1(this.parentSignalProxy.owner,function(){return pL9(X).getWithPath([])})},
set:function(X){X||(DV()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));pL9(this).setWithPath([],!!X)}}});
_.ja.Object.defineProperties(FV,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",FV);var DeY=[],Br=function(){var X=HTMLElement.apply(this,arguments)||this;X.as="item";X.indexAs="index";X.itemsIndexAs="itemsIndex";X.targetFramerate=20;X.notifyDomChange=!1;X.isDetached=!1;X.JSC$13947_renderDebouncer=null;X.instances=[];X.chunkingId=null;X.chunkCount=null;X.shouldMeasureChunk=!1;X.shouldContinueChunking=!1;X.renderStartTime=null;X.JSC$13947_didCallConnected=!1;return X};
_.S(Br,HTMLElement);var tmC=function(X){X.itemSignalImpl!=null||(X.itemSignalImpl=new dh(_.FU(DeY,void 0,"fBC3h")));return X.itemSignalImpl},WgQ=function(X,H){Array.isArray(H)||(H=DeY);
tmC(X).setWithPath([],H)};
_.R=Br.prototype;_.R.showHideChildren=function(X){for(var H=_.C(this.instances),l=H.next();!l.done;l=H.next())GLy(X,l.value.children)};
_.R.notifyPath=function(X,H){X=MR(X);X[0]==="items"&&(X.length===1?WgQ(this,H):tmC(this).setWithPath(X.slice(1),H))};
_.R.canNotifyPath=function(X){return X==="items"};
_.R.attributeChangedCallback=function(X,H,l){if(this.JSC$13947_didCallConnected)throw Error("Rg`"+X);X==="as"?this.as=l:X==="index-as"?this.indexAs=l:X==="items-index-as"?this.itemsIndexAs=l:X==="initial-count"?this.initialCount=Number(l):X==="notify-dom-change"?this.notifyDomChange=l!==null:X==="target-framerate"&&(this.targetFramerate=Number(l))};
_.R.disconnectedCallback=function(){this.isDetached=!0;for(var X=0;X<this.instances.length;X++)E6Q(this,X);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.R.connectedCallback=function(){var X=this;if(_.P("ps_dom_repeat_require_parent_signal_proxy_killswitch")||this.parentSignalProxy){var H=tmC(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var U=H(),K=MR(U.path);if(K[0]===void 0||K[0]==="splices"||K[0]==="length")X.debounceRender();else{var w=K[0];if(w=X.instances[typeof w==="string"?Math.floor(Number(w)):w])K=[X.as].concat(_.LJ(K.slice(1))),w.signalProxy.notifyPath(K,U)}});
this.JSC$13947_didCallConnected=!0;deF?ZIh():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var l=(0,_.cM)((0,_.cM)(this).parentNode),b=0;b<this.instances.length;b++)l.insertBefore(this.instances[b].root,this);this.chunkingId&&this.render()}}else l=(0,_.cM)(this).parentNode,b={parentNode:l==null?void 0:l.nodeName},l instanceof Element&&(b.parentClassName=l.className),_.x2(new _.qd("PsDomRepeat connected with undefined parentSignalProxy",b))};
_.R.debounceRender=function(){this.JSC$13947_renderDebouncer=_.Qy(this.JSC$13947_renderDebouncer,DC,this.JSC$13947_renderImpl.bind(this));_.TH(this.JSC$13947_renderDebouncer)};
_.R.render=function(){this.debounceRender();_.rb()};
_.R.JSC$13947_renderImpl=function(){var X=this;if(!this.parentSignalProxy.isDisposed){var H=this.items,l=g6q(this,H.length);G6Q(this,H,l);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){X.chunkingId=null;if(X.shouldMeasureChunk){var b=performance.now()-X.renderStartTime;X.chunkCount=Math.round(Math.ceil(1E3/X.targetFramerate)/b*X.chunkCount)||1}X.shouldContinueChunking&&X.debounceRender()}));
hsG&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var g6q=function(X,H){var l=H,b=X.instances.length;if(X.initialCount){if(X.chunkCount){var U=Math.min(Math.max(H-b,0),X.chunkCount);l=Math.min(b+U,H)}else l=Math.min(H,X.initialCount),U=Math.max(l-b,0),X.chunkCount=U||1;X.shouldMeasureChunk=U===X.chunkCount;X.shouldContinueChunking=l<H;X.renderStartTime=performance.now()}return l},G6Q=function(X,H,l){for(var b=0;b<l;b++){var U=X.instances[b],K=H[b];
U?(U.signalProxy.setWithPath([X.as],K),U.signalProxy.setWithPath([X.indexAs],b)):ahQ(X,K,b)}for(H=X.instances.length-1;H>=b;H--)l=X,U=H,E6Q(l,U),_.C(l.instances.splice(U,1)).next().value.signalProxy.dispose()},E6Q=function(X,H){X=X.instances[H];
H=(0,_.cM)(X.root);for(var l=0;l<X.children.length;l++)H.appendChild(X.children[l])},ahQ=function(X,H,l){var b={};
H=Object.assign({},ZZt(X),(b[X.as]=H,b[X.indexAs]=l,b[X.itemsIndexAs]=l,b));var U=new hx(H,function(w){if(w!==X.as&&w!==X.indexAs){if(w===X.itemsIndexAs)return eL(U,X.indexAs);var d=eL(X.parentSignalProxy,w).getChangeRecordSignal([]);w=_.FU(void 0,void 0,"Y7rQEe");var B=new dh(w);U.effect(function(){var q=d();B.notifyPath(MR(q.path),{value:q.value})});
return B}});
X.parentSignalProxy.childSignalProxies.push(U);b=Ldb(X.templateInfo,X.templateInfo.nodeInfoList,U,{eventListenerHost:X.eventListenerHost,getModel:function(){var w={};return Object.assign({},ZZt(X),(w[X.as]=U.model[X.as],w[X.indexAs]=U.model[X.indexAs],w[X.itemsIndexAs]=U.model[X.indexAs],w))},
hasInsertionPoint:X.templateInfo.hasInsertionPoint,thisCtx:X.eventListenerHost,methodInvocationRequirement:B5D,enabledSignal:X.stampingEnabled}).root;H={root:b,children:[],signalProxy:U};b=_.C(b.childNodes);for(var K=b.next();!K.done;K=b.next())H.children.push(K.value);b=(b=X.instances[l+1])?b.children[0]:X;(0,_.cM)((0,_.cM)(X).parentNode).insertBefore(H.root,b);X.instances[l]=H},ZZt=function(X){if((X=X.parentSignalProxy.model)&&!X.hostElement){var H={},l;
for(l in X)X.hasOwnProperty(l)&&(H[l]=X[l]);return H}};
Br.prototype.itemForElement=function(X){var H=this,l=this.instances.find(function(b){return b.children.includes(X)});
if(l)return Z1(this.parentSignalProxy.owner,function(){return l.signalProxy.getWithPath([H.as])})};
Br.prototype.indexForElement=function(X){var H=this.instances.findIndex(function(l){return l.children.includes(X)});
return H>=0?H:void 0};
_.ja.Object.defineProperties(Br.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var X=this;return Z1(this.parentSignalProxy.owner,function(){return tmC(X).getWithPath([])})},
set:function(X){WgQ(this,X)}},
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}}});
_.ja.Object.defineProperties(Br,{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",Br);var iZF,v6D;_.qU=new _.gz("STATE_STORE_TOKEN");iZF=new _.gz("SELECT_TOKEN");v6D=new _.gz("DISPATCH_TOKEN");var Tqh={getSelectFn:function(){var X;return(X=_.jJ().resolve(_.c$(iZF)))!=null?X:iIy},
getDispatchFn:function(){var X;return(X=_.jJ().resolve(_.c$(v6D)))!=null?X:_.tF().dispatch.bind(_.tF())},
getAppStore:function(){return _.jJ().resolve(_.qU)}},vTh,QWz=!1;var YBW=function(){};var rqh=void 0;var OZ9=function(){};
OZ9.prototype.hasAttribute=function(X){if(X==="dir")return!1;if(X==="disable-upgrade"){var H,l;return(l=(H=this.hostElement)==null?void 0:H.hasAttribute("disable-upgrade"))!=null?l:!1}throw Error("Sg`"+X);};
OZ9.prototype.attributeChangedCallbackWrapper=function(X,H,l){if(X==="disable-upgrade"&&this.__isUpgradeDisabled&&l===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var b;((b=this.hostElement)!=null?b:this).isConnected&&this.connectedCallback()}else H===l||this.__isReflecting||this.attributeChangedCallback(X,H,l)};
OZ9.prototype.getExtraMethodsToForward=function(){for(var X=this,H=[],l=_.C(meq),b=l.next(),U={};!b.done;U={tagName$jscomp$67:void 0,name$jscomp$631:void 0},b=l.next())U.name$jscomp$631=b.value,b=void 0,U.name$jscomp$631==="_setPendingProperty"?(U.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),b=function(K){return function(w,d,B){$D(K.tagName$jscomp$67,w,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return X._setPendingProperty(w,d,B)}}(U)):b=function(K){return function(){return X[K.name$jscomp$631].apply(X,
_.LJ(_.Ab.apply(0,arguments)))}}(U),H.push([U.name$jscomp$631,
b]);return H};
for(var XLm=ubQ(Mm_((0,_.oe)(OZ9))),bZy=["disabled","disable-upgrade"],Qjz=(0,_.oe)(function(){}),T59=new Set(Object.getOwnPropertyNames(Qjz.prototype)),C6l=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.LJ(T59))),$el=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),meq=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),N5_=new Set([].concat(_.LJ($el),_.LJ(meq),_.LJ(T59))),cZD=_.C(N5_),jjF=cZD.next();!jjF.done;jjF=cZD.next())nIl.add(jjF.value);var Rsb={created:function(){MGm(this);this.initializeInjection()}};var uby=!1,vc=window.ShadyDOM,zsL=["appendChild","insertBefore","removeChild","replaceChild"],Som=[Node];vc&&Som.push(vc.Wrapper);var E6y,g6l,ZZ8={};var Oq,Qjh=new WeakMap,v6m=new Set;var rZO=new Set("context didCallReady is info params signalProxy".split(" ")),Lgy="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Yok="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var rZH=Vt({entities:JxK}),JZt=new t0(rZH);var LgG=function(){return _.Hc.apply(this,arguments)||this};
_.S(LgG,_.Hc);_.ja.Object.defineProperties(LgG.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return JZt}}});
_.T([_.l9()],LgG);_.sK=[CD.prototype,LgG.prototype];_.MU={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var X=this,H={};setTimeout(function(){var l;return _.QX((l=X.hostElement)!=null?l:X,"yt-live-chat-add-tooltip-target",H)},0);
this.handler_=H.handler},
detached:function(){if(this.handler_){var X;this.handler_.removeElementFromSupportingTooltips((X=this.hostElement)!=null?X:this)}this.handler_=null}}};_.rT=new _.gz("ICON_MANAGER_TOKEN");var Yo_=[48,20,18,16,15,13,12],B6O=new Map,wIL=new Set,KBz=new Set,CYy=new Set,$ib=new Set,RLy=new Set,hLh=new Promise(function(X){var H=!1,l=!1,b=!1,U=[],K=function(w){if("detail"in w)if(w=w.detail,w.name==="yt-icons")dil(w),H=!0;else if(w.name==="yt-sys-icons")dil(w),l=!0;else{var d;((d=w.name)==null?0:d.includes("yt-sys-icons"))&&w.size!==24&&(dil(w,!0),U.push(w.size),U.length===Yo_.length&&(b=!0))}H&&l&&b&&(window.removeEventListener("iron-iconset-added",K),X())};
window.addEventListener("iron-iconset-added",K)}),IhD=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"]]);_.uJ={};_.uJ.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.D8,computeHref_:function(X,H){H=H===void 0?!1:H;if(!X||X.commandExecutorCommand)return null;var l=mhy(X,H);return H||l!==null?l?_.P("enable_polymer_resin")?_.Yn(l).toString():l:null:(_.x2(new _.qd("computeHref was null",this.is,X)),null)},
computeOptionalHref_:function(X){return this.computeHref_(X,!0)},
computeNofollow_:function(X){return X?WCL(X)?"nofollow":null:null},
computeIcon_:function(X){return X&&X.iconType?_.jL(X.iconType):""},
resolveCommand:function(X,H,l){H=H===void 0?{}:H;return _.Lc(X,this.hostElement,H,l===void 0?!1:l)}};var XIz,ej;_.AZz={};XIz=null;
ej={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_=R1h(this.viewroot));_.fc(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var X=this;this.unobserve_();if(_.P("kevlar_vimio_use_shared_monitor"))Ii(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var H=[];this.visibilityOptionVisible_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return X.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return X.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&H.push(this.visibilityObserver.observe(this.hostElement,function(){return X.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=H}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){qny(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 X=_.yo(this.parentNode,function(l){var b,U=(b=l.polymerController)!=null?b:l;return!!U.getVisibilityObserverForChild&&U.getVisibilityObserverForChild()},!0);
if(X){var H;this.localVisibilityObserver_=((H=X.polymerController)!=null?H:X).getVisibilityObserverForChild()}else XIz||(XIz=R1h()),this.localVisibilityObserver_=XIz;return this.localVisibilityObserver_},visibilityCallback:function(X){X?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.P("kevlar_use_vimio_behavior")||(ej={});ej&&!_.P("kevlar_use_vimio_behavior")&&(delete ej.attached,delete ej.detached);_.AZz.YtVisibilityObserverBehavior=[ej];var H6_={};H6_.YtVisualElementBehavior=[_.AZz.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.P("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.P("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var X=this.getScreenLayer&&this.getScreenLayer(),H=this.getVisibilityLogger();H&&H.reportShown(this,void 0,X)}},
onHidden:function(){if(_.P("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.P("kevlar_vimio_use_shared_monitor")){var X=this.getScreenLayer&&this.getScreenLayer(),H=this.getVisibilityLogger();H&&H.reportHidden(this,void 0,X)}},
getVisibilityLogger:function(){return _.P("kevlar_use_vimio_behavior")?_.AF():null},
shouldSkipLogging:function(){if(_.gx("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var X=this.getParentRenderer&&this.getParentRenderer();if(!X)return!1;var H,l=(H=X.polymerController)!=null?H:X;if(!l.data)return!1;X=this.data.trackingParams;X=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:X;var b;H=(b=l.data)==null?void 0:b.trackingParams;var U,K;H=((U=l.data)==null?0:U.loggingDirectives)?(K=l.data)==null?void 0:K.loggingDirectives.trackingParams:H;return X&&H&&X===
H}}];var VUm=new Map,Kq;var e$b=function(X){this.layer=X},lp=function(X){return X.layer!==void 0?X.layer:X.parent?lp(X.parent):X.layer=0};var n4y;_.L={};n4y=0;_.L.YtRendererBehavior=[_.uJ.YtComponentBehavior,H6_.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_:_.P("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var X,H;(H=(X=this.monitorScrollElement)!=null?X:this.hostElement)==null||H.removeEventListener("scroll",_.J2(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();eLO(this.hostElement);Yp(_.AO(),this.hostElement);WK.delete(this.hostElement)},
registerRenderer:function(X){var H;((H=X.polymerController)!=null?H:X).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(X),this.markDirty())},
unregisterRenderer_:function(X){this.useVimio_||(this.childCache_.delete(X),this.markDirty())},
attached:function(){var X=this,H=this.getParentRenderer();if(H){var l,b,U;(b=(l=(U=H.polymerController)!=null?U:H).registerRenderer)==null||b.call(l,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var K,w;(w=(K=this.monitorScrollElement)!=null?K:this.hostElement)==null||w.addEventListener("scroll",_.J2(this,this.onScroll))}_.Ss.addJob(function(){PYl(X.hostElement)},8);
l=new e$b(this.screenLayer||void 0);(H=WK.get(H))&&H.layerNode&&(l.parent=H.layerNode);H={};prl(this.hostElement,(H.isRenderer=!0,H.layerNode=l,H[yEN]=this.data,H))},
getParentRenderer:function(){for(var X=this.hostElement.parentNode,H,l;X&&((H=WK.get(X))==null||!H.isRenderer)&&!((l=X.polymerController)!=null?l:X).isRenderer_;)X=X.parentNode||X.host;return X},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.P("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.G7("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.P("debug_web_ve_data")&&this.data.trackingParams){var X="";try{X=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(l){_.n2(l)}if(X){var H=RPy(X,1);H!==void 0&&(this.hostElement.dataset.veIndex=String(H));X=RPy(X,2);
X!==void 0&&(this.hostElement.dataset.ve=String(X))}}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,_.P("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.$l(this.data.loggingDirectives.trackingParams)),this.visualElement=_.H5(_.lv(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var X=this.data.targetId;_.Iy(_.AO(),X,this.hostElement)}else Yp(_.AO(),this.hostElement)},
onScroll:function(){var X=Date.now();X-this.lastHandledScroll_<50||(this.lastHandledScroll_=X,this.markDirty())},
markDirty:function(){_.P("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():kRm(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var X=this.getParentRenderer();if(X&&(X=WK.get(X))&&X.layerNode)return lp(X.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.LJ(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var X=0;X<this.data.impressionEndpoints.length;X++)this.sendImpression(this.data.impressionEndpoints[X]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(X){X.clickTrackingParams&&delete X.clickTrackingParams;var H,l;(X==null?0:(H=X.commandMetadata)==null?0:(l=H.webCommandMetadata)==null?0:l.sendPost)?_.ci(this.hostElement,[X,{impression:!0}]):_.j7(this.hostElement,[X],this.hostElement)},
logExplicitClick:function(X){var H=_.Bi(this.getScreenLayer());if(H){var l,b=(l=X.polymerController)!=null?l:X;X=b.visualElement;b=b.trackingParams||b.clickTrackingParams;!X&&b&&(X=_.$l(b));X&&_.xB(H,X)}}}];var lJQ={},yk=function(){return _.Hc.apply(this,arguments)||this};
_.S(yk,_.Hc);yk.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
yk.prototype.onPdgItemBehaviorClick=yk.prototype.onPdgItemBehaviorClick;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],yk.prototype,"data",void 0);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],yk.prototype,"onPdgItemBehaviorClick",null);_.T([_.l9()],yk);lJQ.YtPdgLiveChatItemBehavior=[yk.prototype,_.L.YtRendererBehavior];var o4D;var b6z;_.Vk={};_.Vk.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Pr=function(){var X=Jh.apply(this,arguments)||this;X.switchTemplateAtRegistration=!1;return X};
_.S(Pr,Jh);Pr.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||WBZ(this),_.hcK(this,"doRender"),this.doRender())};
Pr.prototype.debounceRender=function(){this.templatingFn&&_.pc(this,"doRender",this.doRender)};
Pr.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.n2(Error("bh"))};
Pr.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.T([DOW()],Pr);var UiG=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,fD={},aJy=(fD[1]={filterString:null,isUnwrappable:null,unwrap:null},fD[2]={filterString:function(X,H,l){return Nn(l)},
isUnwrappable:function(X){return X instanceof lQ},
unwrap:function(X){return Uw(X)}},fD[3]={filterString:function(X,H,l){return UiG.test(l)?l:LX.toString()},
isUnwrappable:function(X){return cu(X)},
unwrap:function(X){return _.jA(X)}},fD[4]={filterString:function(){return LX.toString()},
isUnwrappable:function(X){return X instanceof iR},
unwrap:function(X){return _.OU(X).toString()}},fD[5]={filterString:function(X,H,l){return l},
isUnwrappable:function(X){return typeof X==="string"},
unwrap:function(X){return X.toString()}},fD[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(X){return X instanceof _.hr},
unwrap:function(X){return BJ(X)}},fD[8]={filterString:function(X,H,l){l=String(l).toLowerCase();
return Xfm(X,H,l)?l:"zClosurez"},
isUnwrappable:null,unwrap:null},fD[10]={filterString:null,isUnwrappable:null,unwrap:null},fD);QJ[O2["default"]]=i6O;var v4b=[];(function(){var X=J1;J1=function(H){X==null||X(H);wC(function(){for(var l=0;l<H.length;l++)O6b(H[l])})}})();var $iF=function(){var X=_.Hc.apply(this,arguments)||this;X.hasUnmounted=!1;return X};
_.S($iF,_.Hc);_.R=$iF.prototype;_.R.beforeRegister=function(){var X=this.doIdomRender;this.templatingFn?_.n2(Error("ah")):(this.templatingFn=X,this.switchTemplateAtRegistration=!0,GRk(this))};
_.R.attached=function(){};
_.R.detached=function(){O6b(this.hostElement)};
_.R.renderIdom=function(){throw Error("dh");};
_.R.doIdomRender=function(){var X=this;IIK(this.hostElement,function(){X.renderIdom()})};
_.T([_.l9()],$iF);var KBC=[Pr.prototype,$iF.prototype];var RL_,CYQ=function(){return RL_!==void 0?RL_:RL_=document.createElement("template")};
document.head.appendChild(CYQ().content);var wI6;var diq,hLz=function(){return diq!==void 0?diq:diq=document.createElement("template")};
document.head.appendChild(hLz().content);var FBq;var B6H=document.head,qnQ=B6H.appendChild,sfQ;if(FBq===void 0){var MUv=document.createElement("template");_.n(MUv,"\x3c!--css-build:shady--\x3e");MUv.content.insertBefore(hLz().content.cloneNode(!0),MUv.content.firstChild);FBq=MUv}sfQ=FBq;qnQ.call(B6H,sfQ.content);var uZY,eLH=function(){return uZY!==void 0?uZY:uZY=document.createElement("template")};
document.head.appendChild(eLH().content);var y9_;var VUD=document.head,PYq=VUD.appendChild,fJq;if(y9_===void 0){var pIQ=document.createElement("template");_.n(pIQ,"\x3c!--css-build:shady--\x3e");pIQ.content.insertBefore(eLH().content.cloneNode(!0),pIQ.content.firstChild);y9_=pIQ}fJq=y9_;PYq.call(VUD,fJq.content);var Sn9=document.head,zLz=Sn9.appendChild,n4_;if(wI6===void 0){var kRD=document.createElement("template");_.n(kRD,"\x3c!--css-build:shady--\x3e");kRD.content.insertBefore(CYQ().content.cloneNode(!0),kRD.content.firstChild);wI6=kRD}n4_=wI6;zLz.call(Sn9,n4_.content);var xiC,DiF=function(){return xiC!==void 0?xiC:xiC=document.createElement("template")};
document.head.appendChild(DiF().content);var tUH;_.b4=new _.gz("DARK_THEME_TOKEN");var WB9=new _.Ed("accessibilityProperties");var E4Y=new _.Ed("layoutProperties");var g49=new _.Ed("imageType");var GR_={};if("ytAttributedStringLinkHoverColor"in GR_)throw Error("gh`ytAttributedStringLinkHoverColor");(function(X,H){GR_[X]="value"in H&&"unit"in H?N6y(X,H):function(l){try{return H(l)}catch(b){throw Error("eh`"+X+"`"+b.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var aJG=function(X){var H=this;this.holdTime=X===void 0?500:X;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(l){var b=new CustomEvent("LONG_PRESS"),U;(U=l.changedTouches[0].target)==null||U.dispatchEvent(b)};
this.ontouchstart=function(l){H.longPressTimeout=_.oJ(_.Ss,function(){H.onlongpress(l);H.longPressOccurred=!0},H.holdTime)};
this.ontouchmove=function(){_.Ss.cancelJob(H.longPressTimeout);H.longPressTimeout=NaN;H.longPressOccurred=!1;H.moveOccurred=!0};
this.ontouchend=function(l){if(H.longPressTimeout&&!H.longPressOccurred&&!H.moveOccurred){var b;(b=l.changedTouches[0].target)==null||b.dispatchEvent(new Event("click"))}_.Ss.cancelJob(H.longPressTimeout);H.longPressTimeout=NaN;H.longPressOccurred=!1;H.moveOccurred=!1}};var CWy=function(X,H){aJG.call(this,H);var l=this;this.callback=X;this.onlongpress=function(b){var U;(U=l.callback)==null||U.call(l,b)}};
_.S(CWy,aJG);var wZk=function(X,H){var l=Object.assign({},H);X=_.C(new Map([["ontouchstart",X.ontouchstart],["ontouchend",X.ontouchend],["ontouchmove",X.ontouchmove]]));for(var b=X.next(),U={};!b.done;U={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},b=X.next()){var K=_.C(b.value);b=K.next().value;K=K.next().value;U.eventName$jscomp$103=b;U.eventHandler$jscomp$2=K;H[U.eventName$jscomp$103]=function(w){return function(d){var B;(B=l[w.eventName$jscomp$103])==null||B.call(l,d);(0,w.eventHandler$jscomp$2)(d)}}(U)}};_.Vr=new _.gz("COMMAND_HANDLER_TOKEN");var jfy=new _.Ed("parallelCommand");var LBl=new _.Ed("performOnceCommand");var J9K=new _.Ed("serialCommand");var Ynz=void 0;var Z69=function(){this.data=[];this.consumer=null};
Z69.prototype.push=function(X){this.consumer?this.consumer(X):this.data.push(X)};var t5={};_.FU(t5,void 0,"sgPmTd");_.FU(null,void 0,"jypsq");_.FU(null,void 0,"mWiOof");var dYz=new Z69;var UuO=[p1v,SHv,zrH,k8v,nY_,fYH,xb9,Db9];var i6H=new _.Ed("bracketTextDecorator");var pq=new _.Ed("highlightTextDecorator");_.nS=new _.gz("APP_DIRECTION_TOKEN");var eDK={calledOnce:!1,state:"visible"},uxk={calledOnce:!1,state:"hidden"};var v4F=new _.gz("ICON_WIZ_COMPONENT_TOKEN");_.Ja=_.Z(function(X){var H=X.icon;var l=X.active;var b=X.className;var U=X.style;var K=X.dataSelected;var w=X.dataDisabled;var d=X.role;var B=X.animateIcon;var q=X.themeOverride;var u=X.ariaHidden;var e=X.ariaExpanded;var y=X.ariaLabel;var V=X.tabindex;var p=X.id;var z=X.size;var t=X.iconFilter;var W=X.gradientColor;var G=X.onKeydown;var r=X.title;return _.F(_.M,{cond:H,then:function(){var Q=_.jJ().resolve(v4F);return _.F(Q,{icon:H,dataSelected:K,dataDisabled:w,animateIcon:B,themeOverride:q,ariaExpanded:e,
tabindex:V,id:p,active:l,size:z,role:d,className:b,ariaHidden:u,ariaLabel:y,style:function(){return U!=null&&U()||z==null||!z()?U==null?void 0:U():"width: "+(z==null?void 0:z())+"px;height: "+((z==null?void 0:z())+"px;")},
title:r,iconFilter:t,gradientColor:W,onKeydown:G})}})},"p");
_.Ja.idomCompat={callbacks:{onKeydown:!0}};var xuW=new _.Ed("borderImageProcessor");var Wly=window.devicePixelRatio||1;var a58=new Map([["yt_outline_bag_black_24","bag"]]);var pD=function(X){var H=this;this.margin=.1;this.whenInViewportWithMargin=X;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){H.requestScan()});
window.addEventListener("touchend",function(){H.requestScan()});
window.addEventListener("updateui",function(){H.requestScan()});
var l=new _.jw((0,_.K8)(this.requestScan,this),100);window.addEventListener("scroll",function(){l.fire()},!0);
window.addEventListener("resize",(0,_.K8)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){H.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.K8)(this.requestScan,this))};
pD.prototype.observe=function(X){this.observationTargets.includes(X)||this.observationTargets.push(X)};
pD.prototype.unobserve=function(X){this.observationTargets=this.observationTargets.filter(function(H){return H!==X})};
pD.prototype.requestScan=function(){var X=this;this.scanRequested||(wC(function(){O6F(X)}),this.scanRequested=!0)};
var O6F=function(X){var H=(1+X.margin)*(document.documentElement.clientHeight||window.innerHeight);X.observationTargets=X.observationTargets.filter(function(l){var b=l.getBoundingClientRect();(b=H>b.top&&!!b.height)&&X.whenInViewportWithMargin(l);return!b&&l.parentNode});
X.scanRequested=!1};
pD.prototype.disconnect=function(){this.observationTargets=[]};var mi6,T66;mi6=_.C(_.FU(muk(),void 0,"O3X2wd"));_.Qf6=mi6.next().value;T66=mi6.next().value;window.addEventListener("resize",function(){T66(muk())});var N6G={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},c9C=void 0,jfG=window.innerWidth,r9D=window.innerHeight;window.addEventListener("resize",function(){c9C=void 0});var J9Y;if("IntersectionObserver"in window)J9Y=N$y();else{if(c9C===void 0){var LBq;LBq="matchMedia"in window?window.matchMedia(N6G.landscape+","+N6G.portrait).matches:void 0;c9C=LBq!==void 0?LBq:jfG>=930&&r9D>=550||jfG>=550&&r9D>=930}J9Y=c9C?{observe:function(X){wC(function(){var H;(H=X.onViewportEntered)==null||H.call(X)})},
unobserve:function(){}}:new pD(function(X){wC(function(){var H;
(H=X.onViewportEntered)==null||H.call(X)})})}var QUh=J9Y;var YnC=_.Z(function(X){var H=!1,l=_.SJ("img",function(b){_.E2(function(){H=!0;b.onload=null})});
_.Wg(function(){var b,U=(b=X.data)==null?void 0:b.call(X),K,w=(K=X.getSrc)==null?void 0:K.call(X).cb,d;b=(d=X.config)==null?void 0:d.call(X);if(d=l.value)if(K=function(q,u){if(!H)return w?w(q,u):q},r4N(d,b),_.P("web_image_dont_reload_same_src")&&jUl(d,U,K))_.P("web_image_dont_reload_same_src_simulate_load")&&d.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var B;c4l(d,U||null,K,b,(B=X.lazy)==null?void 0:B.call(X))}},"zS0jKb");
return _.F("img",{el:l})},"r");
YnC.idomCompat=!0;_.Dp=_.Z(function(X){var H=function(){var l,b=X.data(),U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J,Y,Uy,Cy,sy,FO,ub,g8,mm,QZ,Bz;var dt={contentMode:(U=X.contentMode)==null?void 0:U.call(X),loadedClass:(K=X.loadedClass)==null?void 0:K.call(X),isPreloaded:(w=X.isPreloaded)==null?void 0:w.call(X),notifyOnLoaded:(d=X.notifyOnLoaded)==null?void 0:d.call(X),notifyOnUnloaded:(B=X.notifyOnUnloaded)==null?void 0:B.call(X),preferredThumbnail:(q=X.preferredThumbnail)==null?void 0:q.call(X),preserveHeight:(u=X.preserveHeight)==
null?void 0:u.call(X),preserveWidth:(e=X.preserveWidth)==null?void 0:e.call(X),objectPosition:(y=X.objectPosition)==null?void 0:y.call(X),targetWidth:(V=X.targetWidth)==null?void 0:V.call(X),targetHeight:(p=X.targetHeight)==null?void 0:p.call(X),shouldShowPlaceholder:(z=X.shouldShowPlaceholder)==null?void 0:z.call(X),useWidth:(t=X.useWidth)==null?void 0:t.call(X),isToggled:(W=X.isToggled)==null?void 0:W.call(X),alt:(G=X.alt)==null?void 0:G.call(X),className:(r=X.className)==null?void 0:r.call(X),
onerror:X.onerror,onload:X.onload,style$:((Q=X.style$)==null?void 0:Q.call(X))||((v=X.style)==null?void 0:v.call(X)),color:(J=X.color)==null?void 0:J.call(X),width:(Y=X.width)==null?void 0:Y.call(X),height:(Uy=X.height)==null?void 0:Uy.call(X),"aria-hidden$":(QZ=(Cy=X["aria-hidden$"])==null?void 0:Cy.call(X))!=null?QZ:(sy=X.ariaHidden)==null?void 0:sy.call(X),draggable:(FO=X.draggable)==null?void 0:FO.call(X),"data-disabled$":(Bz=(ub=X["data-disabled$"])==null?void 0:ub.call(X))!=null?Bz:(g8=X.dataDisabled)==
null?void 0:g8.call(X),size:(mm=X.size)==null?void 0:mm.call(X)};return LlN(b,dt,(l=X.hideOn404)==null?void 0:l.call(X))};
return _.F(_.ff,null,_.F(_.yO,{when:function(){var l;return((l=H())==null?void 0:l.type)==="image"}},function(){return _.F(YnC,{data:function(){return H().image},
getSrc:{cb:function(l,b){var U=H().image.sources,K=H().config.isPreloaded,w=H().config.useWidth,d=H().config.targetWidth,B=H().config.targetHeight,q=H().config.preferredThumbnail;return _.Eky(b,U,K,w,d,B,q)||""}},
config:function(){var l=H().config,b;for(b in l)l[b]===void 0&&delete l[b];return l},
lazy:X.renderLazy})}),_.F(_.yO,{when:function(){var l;
return((l=H())==null?void 0:l.type)==="icon"}},function(){return _.F(_.Ja,{icon:function(){return H().iconName},
role:function(){return H().config.role},
className:function(){return H().config.className},
style:function(){return H().config.style$+";width: "+(H().config.width+"px;height: ")+(H().config.height+"px;color: ")+(H().config.color+";")},
ariaLabel:function(){return H().config["aria-label$"]},
ariaHidden:function(){return H().config["aria-hidden$"]},
dataDisabled:function(){return H().config["data-disabled$"]},
active:function(){return H().config.isToggled},
size:function(){return H().config.size}})}))},"s");
_.Dp.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var IJq=_.Z(function(X){var H=function(U){var K,w,d=_.xl(function(V){K=U();w=GG(function(){for(var p=_.C(e()),z=p.next();!z.done;z=p.next()){z=XdN(z.value);z=typeof z==="string"?document.createTextNode(z):z;if(!(z instanceof Node)){p=new _.qd("Part is not a node",z,typeof z);_.n2(p);break}V.appendChild(z)}})}),B=_.Eq(X.config),q=function(){var V,p=U();
return!((V=B())==null||!V.ariaLabel)||!(p.commandRuns&&p.commandRuns.length!==0||p.paragraphStyleRuns&&p.paragraphStyleRuns.length!==0)},u=I5N(B,{isEqual:luL}),e=function(){var V=U(),p=u(),z=[],t=V.content.length,W,G=(W=_.jJ().resolve(_.c$(_.b4)))==null?void 0:W();
if(V.paragraphStyleRuns)for(var r=_.C(V.paragraphStyleRuns),Q=r.next();!Q.done;Q=r.next()){var v=z.push,J=v.apply;var Y=void 0,Uy=Q.value;if((Y=Uy.listGroup)!=null&&Y.listItems){var Cy=[];b:switch(Uy.listGroup.listType){case "LIST_TYPE_BULLET":var sy="ul";break b;default:sy="span"}Cy.push(P5({run:Uy,textLength:t,tag:sy,config:{className:"yt-core-attributed-string__list-group"},startIndex:Uy.startIndex,length:Uy.length}));for(var FO=_.C(Uy.listGroup.listItems),ub=FO.next();!ub.done;ub=FO.next()){var g8=
ub.value;b:switch(Uy.listGroup.listType){case "LIST_TYPE_BULLET":var mm="li";break b;default:mm="span"}Cy.push(P5({run:Uy,textLength:t,tag:mm,startIndex:g8.startIndex,length:g8.length}))}var QZ=Cy}else QZ=[];J.call(v,z,_.LJ(QZ))}if(V.styleRuns&&(p==null||!p.noStyleRuns))for(var Bz=_.C(V.styleRuns),dt=Bz.next();!dt.done;dt=Bz.next()){var TK=dt.value,sG=TK,f_=G,Mv=p,nd=Flb({extension:_.f(sG.styleRunExtensions,srQ),isDarkTheme:f_===void 0?!1:f_,runColor:sG.fontColor}),$U=void 0,MW=sG,ZL=[];nd&&ZL.push("yt-core-attributed-string--link-inherit-color");
MW.italic&&ZL.push("yt-core-attributed-string--italicized");MW.underline&&MW.strikethrough?ZL.push("yt-core-attributed-string--underline-strikethrough",qjO(MW.underline)):MW.underline?ZL.push("yt-core-attributed-string--underlined",qjO(MW.underline)):MW.strikethrough&&ZL.push("yt-core-attributed-string--strikethrough",qjO(MW.strikethrough));if(MW.baselineOffset){a:switch(MW.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":$U="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":$U=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:$U="yt-core-attributed-string--baseline-offset-unknown"}ZL.push($U)}var uF=ZL.join(" ");var rt=sG,xQ=nd,AQ={};if(rt.weight||rt.weightLabel)AQ.fontWeight=B$b(rt,Mv==null?void 0:Mv.isHeadline).toString();xQ&&(AQ.color=xQ);z.push(P5({run:TK,textLength:t,tag:"span",config:{className:uF,style:AQ},startIndex:TK.startIndex,length:TK.length}))}if(V.decorationRuns)for(var D3=_.C(V.decorationRuns),YQ=D3.next();!YQ.done;YQ=D3.next()){var F5=
YQ.value,TY={};if(F5.textDecorator){var NZ=F5.textDecorator,C_=G===void 0?!1:G,qZ=[],qv=_.f(NZ,pq),cz=_.f(NZ,i6H);if(qv){var OG=qZ,Sy=OG.concat,$m=[],mD=Flb({extension:_.f(qv.highlightTextDecoratorExtensions,qOv),isDarkTheme:C_,runColor:qv.backgroundColor});mD&&$m.push("background-color: "+mD+";");qv.backgroundCornerRadius!==void 0&&$m.push("border-radius: "+qv.backgroundCornerRadius+"px;");qv.leftPadding!==void 0&&$m.push("padding-left: "+qv.leftPadding+"px;");qv.rightPadding!==void 0&&$m.push("padding-right: "+
qv.rightPadding+"px;");qv.topPadding!==void 0&&$m.push("padding-top: "+qv.topPadding+"px;");qv.bottomPadding!==void 0&&$m.push("padding-bottom: "+qv.bottomPadding+"px;");qZ=Sy.call(OG,$m)}else if(cz){var RC=qZ,IC=RC.concat,R$=C_?"#2ba640":"#107516",nW=cz.color?hDL(cz.color):R$;qZ=IC.call(RC,["padding: 2px;","border-top: solid "+nW+" 2px;","border-bottom: solid "+nW+" 2px;","background: linear-gradient(135deg, "+nW+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+nW+" 3px, rgba(0, 0, 0, 0) 3px);"])}var wX=
qZ.join(" ");TY.style$=wX;var AR=F5.textDecorator,k3=[],KJ=_.f(AR,i6H);_.f(AR,pq)?k3.push("yt-core-attributed-string--highlight-text-decorator"):KJ&&k3.push("yt-core-attributed-string--bracket-text-decorator");var Yr=k3.join(" ");TY.className=Yr;TY.dir="auto"}var kN=_.f(F5.textDecorator,pq),ib=_.f(F5.textDecorator,i6H),Jy=_.f(F5.textDecorator,pq),p_=_.f(F5.textDecorator,i6H);z.push(P5({run:F5,textLength:t,tag:"span",config:TY,startIndex:(kN==null?void 0:kN.startIndex)||(ib==null?void 0:ib.startIndex)||
0,length:(Jy==null?void 0:Jy.length)||(p_==null?void 0:p_.length)||0}))}if(V.commandRuns&&(p==null||!p.noEndpoints))for(var Pp=_.C(V.commandRuns),kn=Pp.next();!kn.done;kn=Pp.next()){var kU=kn.value,zY=dub(kU,p);z.push(P5({run:kU,textLength:t,tag:"a",config:zY,startIndex:kU.startIndex,length:kU.length}))}if(V.attachmentRuns)for(var Sq=_.C(V.attachmentRuns),Oa=Sq.next();!Oa.done;Oa=Sq.next()){var UU=Oa.value,eq=void 0,EH=void 0,RZ={className:"yt-core-attributed-string--inline-block-mod"};if((EH=UU.element)==
null?0:EH.properties){var Q2=(eq=UU.element)==null?void 0:eq.properties,s_=[],XB=_.f(Q2,E4Y);if(XB==null?0:XB.margin){var HQ=XB.margin,bI=_.gx("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",fN=bI?HQ.end||HQ.right:HQ.start||HQ.left,RE=bI?HQ.start||HQ.left:HQ.end||HQ.right;fN&&s_.push("margin-left: "+B5(fN)+";");RE&&s_.push("margin-right: "+B5(RE)+";");HQ.top&&s_.push("margin-top: "+B5(HQ.top)+";");HQ.bottom&&s_.push("margin-bottom: "+B5(HQ.bottom)+";")}var M9=s_.length!==0?s_.join(" "):
void 0;RZ.style$=M9}var ud=RZ,hS=void 0,PJ={alt:"",preserveHeight:!0,preserveWidth:!0},U$=["yt-core-attributed-string__image-element"];if(UU.alignment){a:switch(UU.alignment){case "ALIGNMENT_BASELINE":var zx="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":zx="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:zx="yt-core-attributed-string__image-element--image-alignment-bottom"}U$.push(zx)}if((hS=
UU.element)==null?0:hS.properties){var nc=[],oq=_.f(UU.element.properties,E4Y);(oq==null?0:oq.height)&&nc.push("height: "+B5(oq.height)+";");(oq==null?0:oq.width)&&nc.push("width: "+B5(oq.width)+";");var le=nc.length!==0?nc.join(" "):void 0;PJ.style$=le;var $1=void 0;var ef=(($1=_.f(UU.element.properties,WB9))==null?void 0:$1.label)||"";PJ.alt=ef}PJ.className=U$.join(" ");var L2=PJ,oV=void 0;var CL=void 0,XH=void 0;var sa=((XH=UU.element)==null?0:XH.type)?(CL=_.f(UU.element.type,g49))==null?void 0:
CL.image:void 0;z.push(P5({run:UU,textLength:t,tag:"img",image:sa,imageConfig:L2,imageWrapperConfig:ud,startIndex:UU.startIndex,length:(oV=UU.length)!=null?oV:0}))}if(p==null?0:p.headerRuns)for(var tN=_.C(p.headerRuns),rY=tN.next();!rY.done;rY=tN.next()){var Z3=rY.value;if(Z3.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(Z3.headerMapping)){a:{switch(Z3.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var m4=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":m4="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":m4="yt-core-attributed-string--heading-3";break a}m4=void 0}z.push(P5({run:Z3,textLength:t,tag:"span",config:m4?{className:m4}:void 0,startIndex:Z3.startIndex,length:Z3.length}))}}var QW=u();if(QW==null?0:QW.userInput)for(var QP=_.C(z),fG=QP.next();!fG.done;fG=QP.next()){var fH=fG.value;if(fH.tag!=="a"&&
fH.tag!=="li"){var rSO=void 0;(rSO=fH).config||(rSO.config={});fH.config.dir=fH.tag==="ul"?_.jJ().resolve(_.nS):"auto"}}if(U().content){var JS8=U().content;pZy(z);for(var Jt={data:null,start:0,end:JS8.length,parts:[]},LFW=_.C(z),Lw=LFW.next();!Lw.done;Lw=LFW.next()){var Yf=Lw.value;PWL(Jt,Yf.startIndex,Yf.endIndex,Yf)}f5b(JS8,Jt);var YAL=Jt.parts}else YAL=[];return YAL},y=!0;
_.Wg(function(){U();u();if(y&&(y=!1,A4b(U(),K)))return;var V=e();Promise.resolve().then(function(){var p=d.value;if(p){p.innerText="";var z;(z=w)==null||z();w=_.ky(p,function(){return _.F(HO8,{parts:V})},"t")}})},"Dfzccf");
return _.F("span",{el:d,class:function(){var V;if(V=U()){V=U();var p=B(),z=[];z.push("yt-core-attributed-string");(p==null?0:p.className)&&z.push(p==null?void 0:p.className);(p==null?0:p.ellipsisTruncate)?z.push("yt-core-attributed-string--ellipsis-truncate"):(p==null?0:p.noWrap)?z.push("yt-core-attributed-string--white-space-no-wrap"):(p==null?0:p.noPreWrap)||z.push("yt-core-attributed-string--white-space-pre-wrap");(p==null?0:p.linkInheritColor)&&z.push("yt-core-attributed-string--link-inherit-color");
V.alignment&&z.push(sUm(V.alignment));V.lineBreakMode&&z.push("yt-core-attributed-string--word-wrapping");V=z.join(" ")}return V},
dir:function(){var V;return((V=B())==null?0:V.userInput)?"auto":void 0},
"aria-label":function(){var V;return q()?(V=B())==null?void 0:V.ariaLabel:void 0},
role:function(){return q()?"text":void 0}})},l=I5N(function(){var U,K=(U=X.text)==null?void 0:U.call(X);
if(K)return U=_.z0(K)?K:_.ha(K),(U==null?0:U.content)?U:void 0},{isEqual:A4b}),b;
return((b=X.config)==null?0:b.contentAsserted)?H(l):_.F(_.M,{cond:l,then:H})},"v");
IJq.idomCompat=!0;_.Sj=_.Z(function(X){var H=_.Eq(X.text),l=obb(X);X.contentAsserted!==void 0&&(l.contentAsserted=!0);return _.F(IJq,{text:H,config:l})},"w");
_.Sj.idomCompat=!0;var bOk=function(X,H,l){H=H===void 0?"unknown":H;l=l===void 0?{}:l;_.qd.call(this,X+" ("+H+")",Object.assign({},{name:"YtWcwError",tagName:H},l));Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(bOk,_.qd);_.El=new WeakMap;_.W5=!1;var CtZ,wdL,Rbb;_.zh=Symbol("ih");_.ta=Symbol("jh");CtZ=Symbol("kh");wdL=new Set(Object.getOwnPropertyNames(Element.prototype));Rbb=Symbol("lh");var A9D=_.Z(function(X){return _.F("yt-attributed-string",{"aria-label":X.ariaLabel,hidden:X.hidden,id:X.id,class:X.className,"force-default-style":X.forceDefaultStyle},_.F(_.Sj,{text:X.data,ariaLabel:X.ariaLabel,ellipsisTruncate:X.ellipsisTruncate,isOverlay:X.isOverlay,linkInheritColor:X.linkInheritColor,noPreWrap:X.noPreWrap,noWrap:X.noWrap,userInput:X.userInput,noEndpoints:X.noEndpoints,headerRuns:X.headerRuns,isHeadline:X.isHeadline}))},"x");
_.P("web_wiz_attributed_string")&&_.gC(A9D,"yt-attributed-string",{props:{ariaHidden:_.zh,ariaLabel:_.zh,className:_.zh,ellipsisTruncate:_.zh,isOverlay:_.zh,linkInheritColor:_.zh,noEndpoints:_.zh,noStyleRuns:_.zh,noLinkColor:_.zh,noPreWrap:_.zh,noWrap:_.zh,skipOnClick:_.zh,userInput:_.zh,headerRuns:_.zh,isHeadline:_.zh,id:_.zh,data:_.zh,hidden:_.zh,forceDefaultStyle:_.zh,text:_.ta,disableUpgrade:_.ta,disable:_.ta,slot:_.ta}});var nD=function(){return _.a.apply(this,arguments)||this};
_.S(nD,_.a);nD.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 X=this.data,H=this.config;X&&(X=_.z0(X)?X:_.ha(X),X!=null&&X.content&&(H=H||{},H.contentAsserted=!0,OPN(IJq)({text:X,config:H})))}};
_.T([_.k(KBC),_.N("design:type",Object)],nD.prototype,"ytIdomTemplatingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],nD.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],nD.prototype,"ariaLabel",void 0);_.T([_.g(),_.N("design:type",Boolean)],nD.prototype,"disable",void 0);_.T([_.g(),_.N("design:type",Boolean)],nD.prototype,"ellipsisTruncate",void 0);_.T([_.g(),_.N("design:type",Boolean)],nD.prototype,"isOverlay",void 0);
_.T([_.g(),_.N("design:type",Boolean)],nD.prototype,"linkInheritColor",void 0);_.T([_.g(),_.N("design:type",Boolean)],nD.prototype,"noPreWrap",void 0);_.T([_.g(),_.N("design:type",Boolean)],nD.prototype,"noWrap",void 0);_.T([_.g(),_.N("design:type",Boolean)],nD.prototype,"userInput",void 0);_.T([_.g(),_.N("design:type",Boolean)],nD.prototype,"noEndpoints",void 0);_.T([_.g(),_.N("design:type",Array)],nD.prototype,"headerRuns",void 0);
_.T([_.qR({is:"yt-attributed-string",disableElementRegistration:!0})],nD);
_.P("web_wiz_attributed_string")||_.O(nD,"yt-attributed-string",function(){if(tUH===void 0){var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
X.content.insertBefore(DiF().content.cloneNode(!0),X.content.firstChild);tUH=X}X=tUH;return X},{mode:2});var XZF,HPY,MEy;XZF=function(){this.firstThumbnailLoaded=!1};
_.l5q=function(){HPY||(HPY=new XZF);return HPY};
MEy=function(X){var H=_.l5q();H.firstThumbnailLoaded||(H.firstThumbnailLoaded=!0,_.sf("ftl",X))};
XZF.prototype.reset=function(){this.firstThumbnailLoaded=!1};var hbZ=0,sx8=new WeakMap,BQy=0,Zp=new Set;var okQ,bPD=function(){return okQ!==void 0?okQ:okQ=document.createElement("template")};
document.head.appendChild(bPD().content);var UuH;var VEN,fuN,kv;_.Ol=_.ok.caches;kv=function(){};
kv.prototype.open=function(X){return _.Ol.open($uH(X))};
kv.prototype.has=function(X){return _.Ol.has($uH(X))};
kv.prototype.delete=function(X){return _.Ol.delete($uH(X))};
kv.prototype.match=function(X,H){var l=this,b,U,K,w,d,B;return _.h(function(q){switch(q.nextAddress){case 1:return q.yield(l.keys(),2);case 2:b=q.yieldResult,U=_.C(b),K=U.next();case 3:if(K.done){q.jumpTo(5);break}w=K.value;return q.yield(l.open(w),6);case 6:return d=q.yieldResult,q.yield(d.match(X,H),7);case 7:if(B=q.yieldResult)return q.return(B);K=U.next();q.jumpTo(3);break;case 5:return q.return()}})};
var pdy=function(){};
_.S(pdy,kv);var $uH=function(X){if(X.includes(":"))throw Error("oh`"+X);return X+":"+_.FB("CacheStorage get")};
pdy.prototype.keys=function(){var X,H,l,b,U,K,w,d,B;return _.h(function(q){if(q.nextAddress==1)return X=[],H=_.FB("CacheStorage keys"),q.yield(_.Ol.keys(),2);l=q.yieldResult;b=_.C(l);for(U=b.next();!U.done;U=b.next())K=U.value,w=_.yH8(K),d=w.originalName,B=w.datasyncId,B===H&&X.push(d);return q.return(X)})};var xv=function(){var X=_.a.apply(this,arguments)||this;X.objectURL=null;X.loadTime=Infinity;return X};
_.S(xv,_.a);_.R=xv.prototype;
_.R.renderIdom=function(){eb8(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();if(this.config){var X=this.config,H=this.shouldRenderLazy;OPN(_.Dp)({contentMode:X.contentMode,loadedClass:X.loadedClass,isPreloaded:X.isPreloaded,notifyOnLoaded:X.notifyOnLoaded,notifyOnUnloaded:X.notifyOnUnloaded,preferredThumbnail:X.preferredThumbnail,preserveHeight:X.preserveHeight,preserveWidth:X.preserveWidth,objectPosition:X.objectPosition,targetWidth:X.targetWidth,
targetHeight:X.targetHeight,shouldShowPlaceholder:X.shouldShowPlaceholder,useWidth:X.useWidth,isToggled:X.isToggled,alt:X.alt,className:X.className,onerror:X.onerror,onload:X.onload,style$:X.style$,color:X.color,width:X.width,height:X.height,"aria-hidden$":X["aria-hidden$"],draggable:X.draggable,"data-disabled$":X["data-disabled$"],data:this.data,callback:void 0,renderLazy:H===void 0?!0:H,hideOn404:!1})}}};
_.R.objectFitToContentMode=function(X){switch(X){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.R.logThumbnailFailureVe=function(){var X=_.cS(197497);_.rg(_.lv(),X);var H=_.Bi();H&&X&&H&&_.nA(H,[X])};
_.R.loadImageFromCacheIfExists=function(X){var H=this,l=X.target;(l==null?0:l.src)&&zb8(l.src).then(function(b){H.objectURL=_.I$(b).toString();H.setSrc(l,H.objectURL)}).catch(function(){})};
_.R.onError=function(X){var H=this;if(_.P("web_use_cache_for_image_fallback")){var l=X.target;l&&zb8(l.src).then(function(b){H.objectURL=_.I$(b).toString();H.setSrc(l,H.objectURL)}).catch(function(){_.P("kevlar_woffle_log_thumbnail_failure_ve")&&H.logThumbnailFailureVe();
_.P("kevlar_woffle_fallback_image")&&H.setSrc(l,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.R.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.R.setConfig=function(){var X=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(H){X.loadImageFromCacheIfExists(H);X.revokeObjectURL();ufz(X.hostElement)},
onerror:function(H){X.onError(H)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.P("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.R.setSrc=function(X,H){H&&(X.src=H)};
_.T([_.k(KBC),_.N("design:type",Object)],xv.prototype,"ytIdomTemplatingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xv.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],xv.prototype,"alt",void 0);_.T([_.g(),_.N("design:type",Boolean)],xv.prototype,"ftlEligible",void 0);_.T([_.g(),_.N("design:type",Number)],xv.prototype,"height",void 0);_.T([_.g(),_.N("design:type",Boolean)],xv.prototype,"notifyOnLoaded",void 0);
_.T([_.g(),_.N("design:type",Boolean)],xv.prototype,"notifyOnUnloaded",void 0);_.T([_.g(),_.N("design:type",String)],xv.prototype,"objectFit",void 0);_.T([_.g(),_.N("design:type",String)],xv.prototype,"objectPosition",void 0);_.T([_.g(),_.N("design:type",String)],xv.prototype,"preferredThumbnail",void 0);_.T([_.g(),_.N("design:type",Boolean)],xv.prototype,"preserveHeight",void 0);_.T([_.g(),_.N("design:type",Boolean)],xv.prototype,"preserveWidth",void 0);
_.T([_.g({value:!0}),_.N("design:type",Boolean)],xv.prototype,"useWidth",void 0);_.T([_.g({value:function(){return!_.G7("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.N("design:type",Boolean)],xv.prototype,"shouldRenderLazy",void 0);_.T([_.g(),_.N("design:type",Number)],xv.prototype,"width",void 0);_.T([_.qR({is:"yt-image",disableElementRegistration:!0})],xv);
_.O(xv,"yt-image",function(){if(UuH===void 0){var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);X.content.insertBefore(bPD().content.cloneNode(!0),X.content.firstChild);
UuH=X}X=UuH;return X},{mode:2});var DE=function(){return _.a.apply(this,arguments)||this};
_.S(DE,_.a);DE.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var X=_.sl(this.data.onVisibleCommand);X&&this.ytComponentBehavior.resolveCommand(X)}};
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],DE.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Vk.YtVisibilityBehavior),_.N("design:type",Object)],DE.prototype,"ytVisibilityBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],DE.prototype,"data",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],DE);
_.O(DE,"yt-bumper-user-edu-content-view-model",function(){if(b6z===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;o4D===void 0&&(o4D=document.createElement("template"));var b=o4D;l.call(H,b.content.cloneNode(!0),X.content.firstChild);b6z=X}X=b6z;return X},{mode:0});var KlQ;var RD9,CWQ=function(){if(RD9!==void 0)return RD9;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;KlQ===void 0&&(KlQ=document.createElement("template"));var b=KlQ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return RD9=X};var wZ_;_.tx={};wZ_=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"]);_.tx.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var X=this.getContext_();return X?X.getTaskManager():_.Ss},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var X=_.QX(this.hostElement,"yt-get-context-provider",{});X.detail&&X.detail.contextProvider?this.cachedProviderNode_=X.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return wZ_.has(this.hostElement.localName)},
getNetworkManager:function(){var X=this.getContext_();if(X)return X.getNetworkManager()}};var W0L,duF,FlF,hD6;_.Wr=function(X){var H=duF.get(X);if(H&&(H=H.pop()))return hD6++,H;FlF++;try{var l=document.createElement(X)}catch(b){throw new _.qd("ElementPool failed to create element",X,b.message);}return l};
W0L=function(X){var H=X.is;if(H){var l=duF.get(H);l||(l=[],duF.set(H,l));var b=_.gx("ELEMENT_POOL_CONFIG")||{};l.length>=(b[H]!==void 0?b[H]:_.gx("ELEMENT_POOL_DEFAULT_CAP",0))||l.push(X)}else _.x2(new _.qd("Element pool should only handle custom elements:",X.nodeName))};
duF=new Map;FlF=0;hD6=0;var ma=new WeakMap,tEb=new WeakMap;var qjH;_.EK=function(X,H,l){l=l===void 0?_.qV():l;this.JSC$14214_defaultPriority=X;this.signal=H;this.scheduler=l;this.nextJobDescriptor=0;this.JSC$14214_parkedJobs=[];this.scheduledJobs=new Map};
_.gh=function(X,H){if(H){var l=_.ng();X.signal&&!_.kp(l,X.signal)?(l.addListener(X.signal,function(){X.processSignal()}),X.JSC$14214_parkedJobs.push({job:H,
priority:void 0})):B$F(X,H)}};
qjH=function(X,H){if(H!==X.JSC$14214_defaultPriority){X.JSC$14214_defaultPriority=H;for(var l=_.C(X.scheduledJobs.values()),b=l.next();!b.done;b=l.next())b=b.value,X.scheduler.cancelJob(b.jobId),b.jobId=X.scheduler.addJob(b.jobWrapper,H)}};
_.EK.prototype.flushJobs=function(){qjH(this,10);this.processSignal()};
_.EK.prototype.cancel=function(){for(var X=_.C(this.scheduledJobs),H=X.next();!H.done;H=X.next()){var l=_.C(H.value);H=l.next().value;l=l.next().value;this.scheduler.cancelJob(l.jobId);this.scheduledJobs.delete(H)}this.JSC$14214_parkedJobs=[]};
_.EK.prototype.processSignal=function(){for(var X=_.C(this.JSC$14214_parkedJobs),H=X.next();!H.done;H=X.next())H=H.value,B$F(this,H.job,H.priority);this.JSC$14214_parkedJobs=[]};
var B$F=function(X,H,l){l=l||X.JSC$14214_defaultPriority;if(l===10)iv(H);else{var b=X.nextJobDescriptor++,U=function(){H();X.scheduledJobs.delete(b)},K=X.scheduler.addJob(U,l);
X.scheduledJobs.set(b,{jobWrapper:U,jobId:K,priority:l})}};var sUD;_.Gh={};sUD={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Gh.YtRendererstamperBehavior=[_.tx.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 X in this.stampDom){var H=this.stampDom[X];H&&H.id&&this.addReactiveSchema({type:"observe",method:{methodName:kky(H.id),args:[{type:"wildcard",path:X}]}})}else{(X=(this.constructor.generatedFrom||this).observers)||(X=[]);for(H in this.stampDom){var l=this.stampDom[H];l&&l.id&&X.push(kky(l.id)+"("+H+".*)")}this.constructor.generatedFrom.observers=X}},
addStampDomObserverFns_:function(){for(var X in this.stampDom){var H=this.stampDom[X];H.id?(this[kky(H.id)]=this.rendererStamperObserver_.bind(this,X,H.id),this.hasDataPath_[X]=!1):(H=new _.qd("Bad rendererstamper config",this.is+":"+X),_.n2(H))}},
rendererStamperObserver_:function(X,H,l){if(l.path==X){if(l.value===void 0&&!this.hasDataPath_[X])return;this.hasDataPath_[X]=l.value!==void 0}this.rendererStamperApplyChangeRecord_(X,H,l)},
rendererStamperApplyChangeRecord_:function(X,H,l){var b=this.renderJobsMap_[H],U=null;X==l.path?(l=l.value,_.ch(l)||(l=l===void 0||l===null?[]:[l]),X=this.stampDom[X],X.mapping&&(U=this.stampDomArray_.bind(this,l,H,X.mapping,X.reuseComponents,X.events,X.stamperStableList)),b&&b.cancel(),l=X.usePageScheduler?this.getTaskManager():void 0,b||X.initialRenderPriority==void 0)?X.renderPriority==void 0||b||(b=new _.EK(X.renderPriority,X.waitForSignal,l),this.renderJobsMap_[H]=b):(b=new _.EK(X.initialRenderPriority,
X.waitForSignal,l),this.renderJobsMap_[H]=b,U=function(K,w){K();qjH(w,10)}.bind(this,U,b)):U=X+".splices"==l.path?this.stampDomArraySplices_.bind(this,X,H,l.value):this.forwardRendererStamperChanges_.bind(this,X,H,l);
b?_.gh(b,U):U()},
forwardRendererStamperChanges_:function(X,H,l){var b=l.path.slice(X.length+1),U=this.getStampContainer_(H),K=b.indexOf("."),w=b.substring(0,K),d=!1,B=0,q=parseInt(w,0);if(w[0]=="#"){d=parseInt(w.substring(1),0);q=this.get(X);var u=this.get([X,w]);q[d]==u?B=d:B=q.indexOf(u);d=!0}else isNaN(q)||(B=q,d=!0);d&&(b=b.substring(w.length+1),K=b.indexOf("."));w=this.polymerDom(U).children[B];var e;if(U=(e=w==null?void 0:w.polymerController)!=null?e:w)b="data"+b.slice(K),typeof U.notifyPath!=="function"?_.x2(new _.qd("notifyPath missing",
this.is+": "+X+", "+H)):l.value?U.notifyPath(b,l.value):U.notifyPath(b)},
stampDomArraySplices_:function(X,H,l){if(l&&l.indexSplices){var b=this.getStampContainer_(H);if(b){for(var U=this.polymerDom(b),K=D5l(this.stampDom[X].reuseComponents),w=l.indexSplices.length,d=0;d<w;d++){for(var B=l.indexSplices[d],q=U.children[B.index],u=B.removed.length;u>0;u--)q&&q.parentElement&&(this.polymerDom(q.parentElement).removeChild(q),K&&W0L(q),q=U.children[B.index]);u=this.stampDom[X].mapping;for(var e=B.index+B.addedCount,y=document.createDocumentFragment(),V=K,p=B.index;p<e;p++){var z=
B.object[p],t=nbb(u,z);if(t){var W=u[t];z=z[t];t=this.getComponentName_(W,z);var G=q?ma.has(q):!1;V&&q&&q.is==t&&G?(t=q,this.telemetry_.reuse++,q=q.nextElementSibling):V&&q&&G?(t=this.createComponent_(W,z,K),G=this.polymerDom(q).nextElementSibling,U.insertBefore(t,G),gbl(this.is,U,q,K),q=G):(V=!1,t=this.createComponent_(W,z,K),y.appendChild(t));this.deferRenderStamperBinding_(t,W,z)}else W=new _.qd("Unimplemented type",X,H,b.tagName,Object.keys(z)[0]),_.n2(W)}U.insertBefore(y,q)}this.flushRenderStamperComponentBindings_();
this.stampDom[X].events&&_.QX(this.hostElement,"yt-rendererstamper-finished",{container:b})}else X=new _.qd("Container object not found",H,this.hostElement?this.hostElement.is:""),_.n2(X)}},
stampDomArray_:function(X,H,l,b,U,K){var w=this.getStampContainer_(H);if(w)if(H=this.polymerDom(w),b=D5l(b),X){var d=0,B=0,q;if(K=K===void 0?_.G7("STAMPER_STABLE_LIST",!1):K||!1)for(q=H.firstElementChild;q&&!ma.has(q)&&X.length>B;){K=X[B];var u=nbb(l,K);if(u){if(this.getComponentName_(l[u],K[u])!=q.is){var e=this.createComponent_(l[u],K[u],b),y=this.polymerDom(q).nextElementSibling;y?H.insertBefore(e,y):H.appendChild(e);gbl(this.is,H,q,b);q=e}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(q,
l[u],K[u]);d++;B++;q=this.polymerDom(q).nextElementSibling}else B++}aul(this.is,H,d,b);d=q;if(X.length>B){K=document.createDocumentFragment();for(u=X.length;B<u;B++)if(e=X[B],y=nbb(l,e))q=this.createComponent_(l[y],e[y],b),this.deferRenderStamperBinding_(q,l[y],e[y]),K.appendChild(q);d&&this.polymerDom(d).parentNode&&q&&!ma.has(q)?H.insertBefore(K,d):H.appendChild(K)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();U&&_.QX(this.hostElement,"yt-rendererstamper-finished",
{container:w})}else aul(this.is,H,0,b);else X=new _.qd("Container object not found",H,this.hostElement?this.hostElement.is:""),_.n2(X)},
polymerDom:function(X){return this.minimizePipBreakages?X:_.Uc(X)},
getStampContainer_:function(X){return this.$&&this.$[X]||_.mh(this.hostElement).querySelector("#"+X)},
getComponentName_:function(X,H){return typeof X==="string"?X:X.matcher?X.matcher.call(this,H):X.component},
createComponent_:function(X,H,l){X=this.getComponentName_(X,H);try{var b=v6m.has(X);if(l&&!b){var U=_.Wr(X);try{_.j4(U)}catch(K){l="Failed to clear styles for "+X+".",K.message&&(l+=" Original error: "+K.message),_.x2(new _.qd(l))}}else U=document.createElement(X)}catch(K){return U="YtRendererStamperBehavior failed to create "+X+".",K.message&&(U+=" Original description: "+K.message),K.message="YtRendererStamperBehavior failed to create element",_.Dq(K,U),sUD.hasOwnProperty(X)?_.x2(K):_.n2(K),document.createElement("SPAN")}this.telemetry_.create++;
return U},
deferRenderStamperBinding_:function(X,H,l){this.deferredBindingTasks_.push({component:X,typeOrConfig:H,data:l})},
flushRenderStamperComponentBindings_:function(){for(var X=0,H=this.deferredBindingTasks_.length;X<H;X++){var l=this.deferredBindingTasks_[X];if(!l)break;GkW(this,l.component,l.typeOrConfig,l.data)}this.deferredBindingTasks_.length=0}}];_.gC(_.Z(function(X){function H(){l().seconds&&K(AWO({seconds:Number(l().seconds)-Date.now()/1E3}))}
var l=X.targetTimestamp;X=X.className;var b=_.C(_.FU("",void 0,"U1Q8Ae")),U=b.next().value,K=b.next().value;_.xy(function(){H();var w=setInterval(function(){H()},1E3);
_.E2(function(){clearInterval(w)})});
return _.F("yt-countdown",{class:_.Qr("ytCountDownHost",X)},_.F("div",null,U))},"z"),"yt-countdown",{props:{targetTimestamp:_.zh,
className:_.ta}});_.aE=new _.gz("KEY_MANAGER_TOKEN");var NQy={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"};_.ZE=_.Z(function(X){var H=_.SJ("a",X.ref),l=X.aTagConfig?X.aTagConfig:_.uL(function(){var b,U,K,w,d;var B=(d=_.sl((K=X.command)==null?void 0:K.call(X)))!=null?d:(w=X.command)==null?void 0:w.call(X);return _.uv({innertubeCommand:B,skipOnClick:(b=X.skipOnClick)==null?void 0:b.call(X),defaultTarget:(U=X.target)==null?void 0:U.call(X)})||{}},void 0,"TAvz0");
_.Wg(function(){_.P("mweb_get_endpoint_from_atag_command")||(H.value._data=l()._data,H.value.params=l().params)},"dcjvAe");
return _.F("a",{el:H,href:function(){return l().href$},
rel:function(){return l().rel$},
class:function(){var b,U;return(U=l().className)!=null?U:(b=X.className)==null?void 0:b.call(X)},
style:function(){var b;if((b=X.style)==null?0:b.call(X))return X.style();var U;return((U=X.disabled)==null?0:U.call(X))?"pointer-events:none":""},
"aria-haspopup":function(){return!!l()["aria-haspopup$"]},
"force-new-state":c5(function(){return l()["force-new-state$"]}),
title:c5(function(){var b,U;return(U=l().title$)!=null?U:(b=X.title)==null?void 0:b.call(X)}),
role:c5(function(){var b;return((b=X.role)==null?void 0:b.call(X))||l().role$}),
target:c5(function(){return l().target$}),
dir:c5(function(){var b;return((b=X.dir)==null?void 0:b.call(X))||l().dir}),
tabindex:function(){var b;return l().tabindex$?Number(l().tabindex$):(b=X.tabIndex)==null?void 0:b.call(X)},
"aria-hidden":function(){var b,U;return(U=l()["aria-hidden$"])!=null?U:(b=X.ariaHidden)==null?void 0:b.call(X)},
"aria-label":function(){var b,U;return(U=l()["aria-label$"])!=null?U:(b=X.ariaLabel)==null?void 0:b.call(X)},
"aria-current":X.ariaCurrent,"aria-disabled":X.disabled,"aria-labelledby":X.ariaLabelledby,"aria-describedby":X.ariaDescribedby,"aria-selected":X.ariaSelected,"tab-identifier":X.tabIdentifier,"on:pointerdown":_.Nq(function(b){var U,K;return void((K=(U=l()).onpointerdown)==null?void 0:K.call(U,b))}),
"on:click":_.Nq(function(b){var U,K;(K=(U=l()).onclick)==null||K.call(U,b);var w;(w=X.onClick)==null||w.call(X,b)}),
"on:focusin":_.Nq(function(b){var U;(U=X.onFocusin)==null||U.call(X,b)}),
"on:focusout":_.Nq(function(b){var U;(U=X.onFocusout)==null||U.call(X,b)})},X.children)},"B");var Iuk={duration:1E3,easing:"ease",fill:"forwards"};Yx8.componentType=V3;var HEZ={duration:1E3,easing:"ease",fill:"forwards"},eDY=_.Z(function(X){var H=_.SJ("animated-rolling-character"),l=void 0,b=function(){var d,B;return Wi((d=X.character)==null?void 0:d.call(X))||Wi((B=X.previousCharacter)==null?void 0:B.call(X))},U=_.C(_.FU(0,void 0,"CYT8Ob")),K=U.next().value,w=U.next().value;
_.xy(function(){if(window.ResizeObserver&&_.P("web_fix_rolling_numbers_zoom_safari")){var d=new _.jw(function(){var q,u,e=Math.round(((u=(q=H.value.querySelector("div"))==null?void 0:q.getBoundingClientRect().height)!=null?u:0)*100)/100;e&&w(e)},500),B=new ResizeObserver(function(){d.fire()});
B.observe(H.value);_.E2(function(){B.disconnect();d.dispose()})}});
_.Wg(function(){var d=_.P("web_fix_rolling_numbers_zoom_safari")?K:X.marginMultiplier;if(d()){var B;(B=l)==null||B.cancel();if(b()){var q;B=((q=X.previousCharacter)==null?0:q.call(X))?Number(X.previousCharacter())+10:X.rollUp()?0:30;var u;if((u=X.shouldAnimate)==null||!u.call(X)){var e,y;B-=XoK((e=X.character)==null?void 0:e.call(X),(y=X.previousCharacter)==null?void 0:y.call(X),X.rollUp(),B)}}else{B=X.rollUp()?0:2;var V;(V=X.shouldAnimate)!=null&&V.call(X)||(q=B,u=X.rollUp()?-1:1,B=q-u)}H.value.style.marginTop=
"-"+B*d()+"px";var p;if((p=X.shouldAnimate)==null?0:p.call(X)){var z,t;l=lTZ(H.value,(z=X.character)==null?void 0:z.call(X),(t=X.previousCharacter)==null?void 0:t.call(X),X.rollUp(),B,b(),d())}else{var W;H.value.style.display=((W=X.character)==null?0:W.call(X))?"":"none"}}},"CA6Pmf");
return _.F("animated-rolling-character",{el:H,class:"animatedRollingCharacterHost"},_.F(_.M,{cond:b,then:function(){return _.F(MMt,null)},
else:function(){return _.F(ux_,{character:X.character})}}))},"E");
eDY.idomCompat=!0;var oCN=_.P("web_enable_sink_animated_rolling_character_and_number")?eDY:Yx8,y4Q=_.P("web_enable_sink_animated_rolling_character_and_number")?eDY:AHm(Yx8),MMt=_.Z(function(){for(var X=[],H=1;H<30;H++)X.push(_.F("div",null,H%10));return _.F(_.Xi,null,_.F("div",null,"\u00a0"),X,_.F("div",null,"\u00a0"))},"F"),ux_=_.Z(function(X){var H=X.character;
return _.F(_.Xi,null,_.F("div",null,"\u00a0"),_.F(_.M,{cond:function(){return!(H==null?0:H())||_.w8(H==null?void 0:H())},
then:function(){return _.F("div",null,"\u00a0")},
else:function(){return _.F("div",null,H)}}),_.F("div",null,"\u00a0"))},"G");bEL.componentType=V3;var VMF=_.Z(function(X){var H=void 0,l=void 0,b=function(){var K;return((K=X.fontSizeMultiplier)==null?0:K.call(X))?X.heightPx()*X.fontSizeMultiplier():X.heightPx()},U=_.uL(function(){if(!X.numberText())return[];
var K,w,d=((K=X.forceRollUp)==null?void 0:K.call(X))||!l||!((w=X.numberValue)==null?0:w.call(X))||l<X.numberValue(),B,q=X.numberText();K=b();w=!((B=X.shouldAnimate)==null||!B.call(X));B=[];var u=0,e=0,y=(H?H.replace(/\D/g,"").length:0)-(q?q.replace(/\D/g,"").length:0),V=H?H.split(/(\d)/).filter(Boolean):[];for(q=q.split(/(\d)/).filter(Boolean);y<0;){var p=q[e];B.push({character:p,rollUp:d,marginMultiplier:K,shouldAnimate:w});e++;Wi(p)&&y++}for(;u<y;)p=V[u],B.push({previousCharacter:p,rollUp:d,marginMultiplier:K,
shouldAnimate:w}),u++,Wi(p)||y++;for(;e<q.length;)y=q[e],p=V[u],Wi(y)===Wi(p)?(e++,u++):Wi(y)?(u++,y=void 0):Wi(p)&&(e++,p=void 0),B.push({character:y,previousCharacter:p,rollUp:d,marginMultiplier:K,shouldAnimate:w});H=X.numberText();var z;l=(z=X.numberValue)==null?void 0:z.call(X);return B},void 0,"kWiBv");
return _.F("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return X.numberText()?["height: "+b()+"px;","line-height: "+X.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.F(_.P$,{each:U,keyBy:"INDEX"},function(K){return _.F(y4Q,{character:function(){return K().character},
previousCharacter:function(){return K().previousCharacter},
marginMultiplier:function(){return K().marginMultiplier},
rollUp:function(){return K().rollUp},
shouldAnimate:function(){return K().shouldAnimate}})}))},"H");
VMF.idomCompat=!0;_.PW6=_.P("web_enable_sink_animated_rolling_character_and_number")?VMF:AHm(bEL);var f5F=function(X,H){this.fillAnimation=new Animation(RX8(X),document.timeline);this.strokeAnimation=new Animation(CqO(H),document.timeline)};
f5F.prototype.play=function(){var X,H;(H=(X=this.fillAnimation).play)==null||H.call(X);var l,b;(b=(l=this.strokeAnimation).play)==null||b.call(l)};
f5F.prototype.cancel=function(){var X,H;(H=(X=this.fillAnimation).cancel)==null||H.call(X);var l,b;(b=(l=this.strokeAnimation).cancel)==null||b.call(l)};_.iJ=_.Z(function(X){var H=X.model;var l=X.pointerDownEvent;var b=X.pointerUpEvent;var U=X.pointerLeaveEvent;var K=X.hovered;X=_.SJ("yt-touch-feedback-shape");var w=_.SJ("div"),d=_.SJ("div"),B=_.C(_.Gx(function(){return(b==null?0:b())||(U==null?0:U())?!1:!(l==null||!l())||!1})),q=B.next().value,u=B.next().value,e=void 0,y=function(){!e&&d.value&&w.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(e=new f5F(d.value,w.value));
var G;(G=e)==null||G.play()},V=function(){var G;
(G=e)==null||G.cancel()},p=function(){var G;
(G=e)==null||G.cancel()};
_.Wg(function(){(b==null?0:b())&&y()},"bg756c");
_.Wg(function(){(l==null?0:l())&&V()},"QAes8c");
_.Wg(function(){(U==null?0:U())&&p()},"YaFbrc");
B=_.Nq(function(){y();u(!1)});
var z=_.Nq(function(){V();u(!0)}),t=_.Nq(function(){p();
u(!1)});
_.E2(function(){if(e){var G;(G=e)==null||G.cancel();e=void 0}});
var W={};q=_.Qr("yt-spec-touch-feedback-shape",function(){return wo8(H().color)},function(){return dcy(H().thumbnailSize,!!H().isExtended)},(W["yt-spec-touch-feedback-shape--focused"]=function(){return!!H().focused&&!H().disabled},W["yt-spec-touch-feedback-shape--circular"]=function(){return!!H().circular},W["yt-spec-touch-feedback-shape--down"]=q,W["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!H().triggerEvents},W["yt-spec-touch-feedback-shape--hovered"]=function(){return K==
null?void 0:K()},W));
return _.F("yt-touch-feedback-shape",{el:X,class:q,style:_.rC({"margin-top":function(){return H().customTopExtend?"-"+H().customTopExtend+"px":void 0}}),
"on:mousedown":z,"on:mouseup":B,"on:pointerleave":t,"on:touchstart":z,"on:touchend":B,"aria-hidden":!0},_.F(_.M,{cond:function(){return!!H().hoverEffect},
then:function(){return _.F("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.rC({"border-radius":function(){return H().borderRadius},
background:function(){var G;if(G=H().hoverEffect){for(var r=[],Q=_.C((G==null?void 0:G.lightingTechniques)||[]),v=Q.next();!v.done;v=Q.next())switch(v.value){case 2:var J=v=void 0,Y=void 0,Uy=void 0;r.push("linear-gradient(180deg, "+((v=G)==null?void 0:(J=v.palette)==null?void 0:J.keyLight)+", "+((Y=G)==null?void 0:(Uy=Y.palette)==null?void 0:Uy.background)+")")}var Cy,sy;r.push((Cy=H().hoverEffect)==null?void 0:(sy=Cy.palette)==null?void 0:sy.background);G=r.join(", ")}else G=void 0;return G}})})}}),
_.F("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.rC({"border-radius":function(){return H().borderRadius},
"border-color":function(){var G,r;return(G=H().touchEffect)==null?void 0:(r=G.palette)==null?void 0:r.background}}),
el:w}),_.F("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.rC({"border-radius":function(){return H().borderRadius},
"background-color":function(){var G,r;return(G=H().touchEffect)==null?void 0:(r=G.palette)==null?void 0:r.background}}),
el:d}))},"L");
_.iJ.idomCompat=!0;var pZG={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 vr=_.yZ();vr=vr.toLowerCase();if(_.hy(vr,"android")){var Sjq=vr.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);Sjq&&parseFloat(Sjq[1])<100||vr.match("("+Object.keys(pZG).join("|")+")")};var zDz=_.Z(function(X){return _.F(_.M,{cond:X.aTagConfig,then:function(H){return _.F(_.ZE,{aTagConfig:H,disabled:X.disabled,className:X.className,style:X.style,title:X.title,ariaLabel:X.ariaLabel,ariaCurrent:function(){var l,b;return((l=X.toggleable)==null?void 0:l.call(X))&&((b=X.toggled)==null?void 0:b.call(X))},
ref:X.ref},X.children)},
else:function(){return _.F("button",{el:_.xl(X.ref),"on:click":_.Nq(function(H){var l;return(l=X.onClick)==null?void 0:l.call(X,H)}),
class:X.className,title:X.title,style:X.style,disabled:X.disabled,"aria-pressed":function(){var H,l;return((H=X.toggleable)==null?0:H.call(X))?!((l=X.toggled)==null||!l.call(X)):void 0},
"aria-label":X.ariaLabel,"aria-disabled":X.visiblyDisabled,"aria-hidden":X.ariaHidden,tabindex:X.tabIndex},X.children)}})},"M"),kDv=_.Z(function(X){var H=X.data;
var l=X.hasIconLeading;var b=X.hasIconLeadingTrailing;var U=X.hasIconTrailing;var K=X.iconButton;var w=X.iconClassName;var d=X.secondaryIconClassName;var B=X.icon;var q=X.secondaryIcon;var u=X.textContentClassName;return _.F(OK,{className:"",style:"display: inherit; justify-content: center"},_.F(_.M,{debugInstance:"V4z1Uc",cond:function(){return B&&(l()||b()||(K==null?void 0:K()))},
then:function(){return _.F(OK,null,_.F("div",{class:w,"aria-hidden":"true"},B==null?void 0:B()))}}),_.F(_.M,{debugInstance:"ok3btb",
cond:function(){return(H().buttonText||H().animatedTextProps||H().formattedButtonText)&&!(K==null?0:K())},
then:function(){return _.F(OK,null,_.F(nkt,{className:u,iconPosition:function(){return H().iconPosition},
text:function(){return H().buttonText},
oneOffCustomTextWrap:function(){return H().oneOffCustomTextWrap},
formattedButtonText:function(){return H().formattedButtonText},
animatedTextProps:function(){return H().animatedTextProps}}))}}),_.F(_.M,{debugInstance:"DO5Rz",
cond:U,then:function(){return _.F(OK,null,_.F("div",{class:w},B==null?void 0:B()))}}),_.F(_.M,{debugInstance:"bnojSc",
cond:b,then:function(){return _.F(OK,null,_.F("div",{class:d},q==null?void 0:q()))}}),_.F(_.M,{debugInstance:"HN3kad",
cond:function(){return!H().disabled&&!0},
then:function(){return _.F(_.iJ,{model:function(){var e=H();return{color:e.style==="overlay-dark"?4:e.style==="overlay"?e.type==="filled"?4:3:e.type==="filled"||e.style==="call-to-action-inverse"||e.style==="mono-inverse"?2:1}}})}}))},"N"),nkt=_.Z(function(X){var H=function(){var l,b;
return((l=X.iconPosition)==null?void 0:l.call(X))==="icon-with-label"||((b=X.oneOffCustomTextWrap)==null?void 0:b.call(X))};
return _.F("div",{class:X.className,"aria-hidden":function(){var l,b,U;return((l=X.ariaHidden)==null?void 0:l.call(X))&&(!((b=X.animatedTextProps)==null||!b.call(X))||!((U=X.formattedButtonText)==null||!U.call(X)))}},_.F(_.ff,null,_.F(_.yO,{when:function(){var l;
return(l=X.animatedTextProps)==null?void 0:l.call(X)}},function(){return _.F(_.PW6,{numberText:function(){return X.animatedTextProps().numberText},
numberValue:function(){return X.animatedTextProps().numberValue},
heightPx:function(){return X.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return X.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return X.animatedTextProps().shouldAnimate},
forceRollUp:function(){return X.animatedTextProps().forceRollUp}})}),_.F(_.yO,{when:function(){var l;
return(l=X.formattedButtonText)==null?void 0:l.call(X)}},function(){return _.F(_.Sj,{text:function(){return Object.assign({},X.formattedButtonText(),{lineBreakMode:H()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":X.formattedButtonText().lineBreakMode,
alignment:H()?"TEXT_ALIGNMENT_CENTER":X.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!H()}})}),_.F(_.yO,{when:function(){var l,b;
return((l=X.iconPosition)==null?void 0:l.call(X))==="icon-with-label"&&((b=X.text)==null?void 0:b.call(X))}},function(){return _.F(_.Sj,{text:function(){return{content:X.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.F(_.VO,null,function(){return X.text})))},"O"),xuv=_.Z(function(X){return _.F(_.M,{debugInstance:"kM7Sgc",
cond:X.hasLabel,then:function(){var H;return _.F("label",{class:X.className},X.children,(H=X.textContent)==null?void 0:H.call(X))},
else:function(){return X.children}})},"P"),OK=_.Z(function(X){return X.children},"Q");var DuH=_.Z(function(X){function H(){K(void 0);d(void 0);q(void 0)}
var l=_.xl(),b=_.C(_.FU(void 0,void 0,"Ug77pc")),U=b.next().value,K=b.next().value;b=_.C(_.FU(void 0,void 0,"XGf7Zb"));var w=b.next().value,d=b.next().value,B=_.C(_.FU(void 0,void 0,"w55oqd"));b=B.next().value;var q=B.next().value;B=_.C(_.FU(0,void 0,"rBgpzc"));var u=B.next().value,e=B.next().value;B=_.Nq(function(){switch(u()){case 1:e(2);break;case 3:var V,p;(p=(V=l.value).hidePopover)==null||p.call(V);e(0);H()}});
_.Wg(function(){if(X.show()){var V;K((V=X.children)==null?void 0:V.call(X));var p;d((p=X.location)==null?void 0:p.call(X));var z;q((z=X.classNames)==null?void 0:z.call(X));switch(u()){case 0:var t,W;(W=(t=l.value).showPopover)==null||W.call(t);e(1);break;case 3:e(1);var G,r;(r=(G=l.value).hidePopover)==null||r.call(G);var Q,v;(v=(Q=l.value).showPopover)==null||v.call(Q)}}else switch(u()){case 2:e(3);break;case 1:var J,Y;(Y=(J=l.value).hidePopover)==null||Y.call(J);H();e(0)}},"Z8V4Qb");
_.DR(function(){});
var y={};return _.F("yt-popover",{popover:"manual",el:l,style:_.rC({left:function(){var V;return(V=w())==null?void 0:V.left},
top:function(){var V;return(V=w())==null?void 0:V.top},
bottom:function(){var V;return(V=w())==null?void 0:V.bottom},
right:function(){var V;return(V=w())==null?void 0:V.right}}),
class:_.Qr("ytPopoverComponentHost",b,(y.ytPopoverComponentHostClosing=function(){return u()===3},y.ytPopoverComponentHostSeeThrough=function(){var V;
return((V=X.seeThrough)==null?void 0:V.call(X))===!0},y)),
"on:animationend":B},U)},"S");var tMH={left:"0px",right:"auto",top:"0px",bottom:"auto"},Wl_=function(){var X=this;this.registerTooltipElement=function(l){var b;X.tooltipElement=(b=l.querySelector("yt-popover"))!=null?b:void 0};
var H=_.C(_.FU(void 0,void 0,"EIh5sc"));this.state=H.next().value;this.setState=H.next().value;H=_.C(_.FU(void 0,void 0,"PC1M0b"));this.schedulerJobID=H.next().value;this.setSchedulerJobID=H.next().value},yDy=function(X,H){var l=Yl,b=_.Ss.addJob(function(){var U=Ek_(l,X,H);
l.currentConfig=H;l.setState({text:H.text,location:_.P("web_tooltip_location_fix")?void 0:U,anchor:X,offset:H.offset,style:H.style})},4,H.delay);
l.setSchedulerJobID(b)},Vom=function(){var X=Yl,H=X.schedulerJobID();
H&&(_.Ss.cancelJob(H),X.setSchedulerJobID(void 0));X.setState(void 0);X.currentConfig=void 0};
Wl_.prototype.notify=function(X,H){var l;((l=this.state())==null?void 0:l.anchor)===X&&(l=Ek_(this,X,H),this.currentConfig=H,this.setState({text:H.text,location:_.P("web_tooltip_location_fix")?void 0:l,anchor:X,offset:H.offset,style:H.style}))};
var Ek_=function(X,H,l){var b=H.getBoundingClientRect();H=window.innerWidth;var U=window.innerHeight,K=l.location,w=l.offset;l=l.text;if(X=X.tooltipElement){var d=getComputedStyle(X);X=d.font;var B=Lq(d.lineHeight),q=Lq(d.paddingLeft),u=Lq(d.paddingRight),e=Lq(d.paddingTop);d=Lq(d.paddingBottom);var y=document.createElement("canvas").getContext("2d");y.font=X;l={width:y.measureText(l).width+q+u,height:B+e+d}}else l=void 0;X=l;if(!X)return tMH;l=X.width;X=X.height;q=w+X;e=w+l;B=b.top>=q;q=U-b.bottom>=
q;u=b.left>=e;e=H-b.right>=e;d=K;switch(K){case "top":!B&&q&&(d="bottom");break;case "bottom":!q&&B&&(d="top");break;case "left":!u&&e&&(d="right");break;case "right":!e&&u&&(d="left")}switch(d){case "top":K=b.left+b.width/2-l/2;b=b.top-X-w;break;case "bottom":K=b.left+b.width/2-l/2;b=b.bottom+w;break;case "left":K=b.left-l-w;b=b.top+b.height/2-X/2;break;case "right":K=b.right+w;b=b.top+b.height/2-X/2;break;default:K=b.left+b.width/2-l/2,b=b.bottom+w}w=Object.assign({},tMH);K+l>H?(w.right="0px",w.left=
"auto"):(w.left=Math.round(Math.max(0,K)+window.scrollX)+"px",w.right="auto");b+X>U?(w.bottom="0px",w.top="auto"):(w.top=Math.round(Math.max(0,b)+window.scrollY)+"px",w.bottom="auto");return w};var Yl;Yl=new Wl_;_.gkC=_.Z(function(){var X=_.uL(function(){var U;return(U=Yl.state())==null?void 0:U.anchor},void 0,"tiGUn"),H=_.uL(function(){var U;
return(U=Yl.state())==null?void 0:U.text},void 0,"TA2GQe"),l=_.uL(function(){var U;
return(U=Yl.state())==null?void 0:U.style},void 0,"ucvFsf"),b=_.P("web_tooltip_location_fix")?_.uL(function(){var U=X();
var K=Yl.currentConfig;if(U&&K)return Ek_(Yl,U,K)},void 0,"EpDz6"):_.uL(function(){var U;
return(U=Yl.state())==null?void 0:U.location},void 0,"aRJtfd");
return _.F("yt-tooltip",{class:"ytTooltipContainerHost",el:_.xl(Yl.registerTooltipElement),"aria-hidden":"true"},_.F(DuH,{classNames:function(){switch(l()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:b,show:function(){return!!H()&&!!b()},
seeThrough:!0},H))},"T");var dfN=IA("stamper-context");_.ms=_.Z(function(X){var H=X.data;var l=X.icon;var b=X.iconName;var U=X.animateIcon;var K=X.secondaryIcon;var w=X.secondaryIconName;var d=X.focusedOverride;var B=X.clientOnlyWizTooltipsEnabled;fTy();var q=hXy(H),u=q.size,e=q.style;X=q.disabled;var y=q.onTap,V=q.alignByText,p=q.aTagConfig,z=q.customColors,t=q.segmentedPosition,W=q.toggled,G=q.toggleable,r=q.accessibilityLabel,Q=q.onToggle,v=q.iconPosition,J=q.oneOffCustomTextWrap,Y=q.disableTextEllipsis,Uy=q.disableBackdropFilter,Cy=q.tooltipText,
sy=q.ariaHidden,FO=q.tabIndex,ub=q.buttonText,g8=q.formattedButtonText,mm=q.animatedTextProps,QZ=q.onClickRateLimitMs,Bz=svN(H,l,K,b,w,d,U),dt=Bz.type;l=Bz.shouldFocus;b=Bz.hasIconLeading;U=Bz.hasIconTrailing;var TK=Bz.hasIconLeadingTrailing,sG=Bz.hasIconOnly;K=Bz.hasIconOnly40;var f_=Bz.hasIconWithLabel;w=Bz.iconButton;var Mv=Bz.visiblyDisabled;d=Bz.overrideSmallSizeIcon;var nd=Bz.iconToRender;Bz=Bz.secondaryIconToRender;var $U=_.C(PqO(Cy,q.tooltipShape)).next().value,MW=function(xQ){y==null||y(xQ);
G()&&(Q==null||Q(xQ))},ZL=_.uL(function(){return QZ==null?void 0:QZ()},void 0,"siKywb"),uF=_.uL(function(){return ZL()?MPG(MW,ZL()):MW},void 0,"wDTcN");
q={};var rt={};return _.F(xuv,{className:_.Qr("yt-spec-button-shape-with-label",(q["yt-spec-button-shape-with-label--is-overlay"]=function(){return e()==="overlay"||e()==="overlay-dark"},q)),
hasLabel:f_,textContent:function(){return _.F(nkt,{text:ub,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:J,iconPosition:v,formattedButtonText:g8,animatedTextProps:mm})}},_.F(zDz,{aTagConfig:p,
className:_.Qr("yt-spec-button-shape-next",function(){return Moz(dt())},function(){return Mv()?void 0:u2h(e())},function(){return eXh(u())},(rt["yt-spec-button-shape-next--disabled"]=Mv,rt["yt-spec-button-shape-next--focused"]=l,rt["yt-spec-button-shape-next--icon-trailing"]=U,rt["yt-spec-button-shape-next--icon-leading"]=b,rt["yt-spec-button-shape-next--icon-leading-trailing"]=TK,rt["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return TK()&&!(ub()||g8())},rt["yt-spec-button-shape-next--icon-button"]=
function(){return sG()||f_()},rt["yt-spec-button-shape-next--icon-only-default"]=K,rt["yt-spec-button-shape-next--align-by-text"]=V,rt["yt-spec-button-shape-next--segmented-start"]=function(){return t()==="start"},rt["yt-spec-button-shape-next--segmented-end"]=function(){return t()==="end"},rt["yt-spec-button-shape-next--override-small-size-icon"]=d,rt["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=J,rt["yt-spec-button-shape-next--disable-text-ellipsis"]=Y,rt["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Uy()&&!_.P("web_disable_backdrop_filter")},rt)),
style:function(){var xQ=z();if(xQ){var AQ=xQ.color;var D3=xQ.backgroundColor;xQ=xQ.borderColor;var YQ="";AQ&&(YQ+="color: "+AQ+";");D3&&(YQ+="background-color: "+D3+";");xQ&&(YQ+="border-color: "+xQ+";");AQ={style:YQ}}else AQ={};return AQ.style},
onClick:function(xQ){uF()(xQ)},
disabled:X,ariaLabel:r,toggleable:G,toggled:W,title:function(){return(B==null?0:B())||!Cy()?"":Cy()},
visiblyDisabled:Mv,ariaHidden:sy,tabIndex:FO,ref:function(xQ){(B==null?0:B())&&$U(xQ)}},_.F(kDv,{data:H,
hasIconLeading:b,hasIconLeadingTrailing:TK,hasIconTrailing:U,iconButton:w,icon:nd,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:Bz})))},"V");
_.ms.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.Qk=_.Z(function(X){var H=X.data;var l=X.className;var b=X.style;var U=X.useOutlinedIcon;var K=X.buttonOverrides;var w=X.animatedTextProps;var d=X.onClick;var B=X.target;var q=_.SJ("button-view-model",function(v){v.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var J=H().targetId;J&&_.Iy(_.AO(),J,v);return function(){Yp(_.AO(),v)}}),u=function(){return H().iconName},e=function(){var v;
return(v=H())==null?void 0:v.entityKey},y=_.Aa(function(v){a:{var J=e(),Y=H().buttonEntitySelectorType;
if(Y&&J)switch(Y){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":v=(v=_.T0(v,J))?{isHidden:v.adsState==="ADS_STATE_NONE"||v.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:v={isHidden:!1};break a}v=void 0}return v}),V,p=(V=_.jJ().resolve(_.c$(_.b4)))==null?void 0:V(),z=function(){var v=H();
var J=K==null?void 0:K(),Y=w==null?void 0:w(),Uy=B==null?void 0:B();if(v){var Cy=toh(v.type);var sy=!!v.title||!!v.titleFormatted;var FO=!(!v.iconName&&!v.iconImage);sy=FO&&!sy?"icon-only":FO?v.iconTrailing||v.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;sy==="icon-only-40"&&(Cy="text");var ub;FO=(ub=J==null?void 0:J.state)!=null?ub:W2y(v.state);var g8,mm=(g8=J==null?void 0:J.disabled)!=null?g8:v.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||v.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.P("web_button_vm_refactor_disabled")){var QZ;mm=(QZ=J==null?void 0:J.disabled)!=null?QZ:FO==="disabled"}Y=Y&&Y.numberText&&!isNaN(Number(Y.numberValue))?Y:void 0;g8=Object;QZ=g8.assign;ub=v.title;var Bz=v.titleFormatted,dt=v.accessibilityText,TK=DcL(v.style),sG=ECb(v.buttonSize);Uy=xcK(v,q,mm,d,Uy);mm=mm&&!v.onDisabledTap;var f_=nCy(v,q),Mv=v.customFontColor,nd=v.customBackgroundColor;var $U=v.customBorderColor;var MW=v.customDarkThemeFontColor,ZL=v.customDarkThemeBackgroundColor,uF=v.customDarkThemeBorderColor;
Mv=p&&MW?MW:Mv;nd=p&&ZL?ZL:nd;$U=p&&uF?uF:$U;$U={color:Mv?_.qw(Mv):void 0,backgroundColor:nd?_.qw(nd):void 0,borderColor:$U?_.qw($U):void 0};if(uF=_.f(v.tooltipData,KwG)){var rt;nd={text:(rt=uF.tooltipText)!=null?rt:"",location:SgN(uF.placement),style:uF.style}}else nd=void 0;v=QZ.call(g8,{},{buttonText:ub,formattedButtonText:Bz,animatedTextProps:Y,accessibilityLabel:dt,style:TK,type:Cy,state:FO,size:sG,iconPosition:sy,onTap:Uy,disabled:mm,aTagConfig:f_,customColors:$U,tooltipText:v.tooltip,tooltipShape:nd},
J)}else v={style:"mono",type:"text",state:"active",size:"M"};v.focused=G();return v},t=function(){return BKk(z(),!!H().iconName)};
X=_.C(_.FU(!1,void 0,"yZ8hab"));V=X.next().value;var W=X.next().value,G=V;X=_.Nq(function(){var v=_.jJ().resolve(_.c$(_.aE));v&&W(v.isKeyBoardInUse());return!0});
V=_.Nq(function(){W(!1);return!0});
_.Wg(function(){var v,J=_.f(H==null?void 0:(v=H())==null?void 0:v.onVisible,_.qq);J&&_.Mq(J,{disableClickTracking:!0})},"G9MlKd");
var r=function(){var v;return(H==null?0:(v=H())==null?0:v.iconImage)?{sources:[H().iconImage]}:void 0},Q=_.P("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.F("button-view-model",{el:q,class:_.Qr("ytSpecButtonViewModelHost",l),"on:focusin":X,"on:focusout":V},_.F(_.M,{cond:function(){var v,J;return!((J=e()&&H().buttonEntitySelectorType&&((v=y())==null?void 0:v.isHidden))!=null&&J)},
then:function(){return _.F(_.M,{cond:r,then:function(v){return _.F(_.ms,{data:z,icon:function(){return _.F(_.Dp,{data:v,alt:"",targetWidth:t,targetHeight:t,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:Q})},
else:function(){return _.F(_.ms,{data:z,icon:function(){return _.F(_.Ja,{icon:u,active:function(){return(U==null?0:U())?!1:z().toggled},
animateIcon:function(){var v;return!!(b==null?0:(v=b())==null?0:v.animateIcon)},
size:t})},
clientOnlyWizTooltipsEnabled:Q})}})}}))},"X");
_.Qk.idomCompat={callbacks:{onClick:!0}};_.gC(_.Z(function(X){return _.F("yt-button-view-model",{id:X.id,class:_.Qr(X.scopingClassName,X.classes),icon:function(){var H;return(H=X.icon)==null?void 0:H.call(X)},
"dialog-dismiss":function(){var H;return((H=X.dialogDismiss)==null?0:H.call(X))?"":void 0}},_.F(_.Qk,{data:function(){var H;
return(H=X.data)==null?void 0:H.call(X)},
className:function(){var H;return(H=X.className)==null?void 0:H.call(X)},
style:function(){var H;return(H=X.style)==null?void 0:H.call(X)},
useOutlinedIcon:function(){var H;return(H=X.useOutlinedIcon)==null?void 0:H.call(X)},
buttonOverrides:function(){var H;return(H=X.buttonOverrides)==null?void 0:H.call(X)},
animatedTextProps:function(){var H;return(H=X.animatedTextProps)==null?void 0:H.call(X)},
onClick:function(H){var l;return(l=X.onClick)==null?void 0:l.call(X,H)}}))},"Y"),"yt-button-view-model",{props:{data:_.zh,
className:_.zh,style:_.zh,useOutlinedIcon:_.zh,buttonOverrides:_.zh,animatedTextProps:_.zh,onClick:_.ta,scopingClassName:_.zh,id:_.zh,icon:_.zh,dialogDismiss:_.zh,classes:_.zh,target:_.ta}});_.gC(_.Z(function(X){var H=X.data;var l=X.id;var b=X.className;var U=X.iconName;var K=X.animateIcon;var w=X.secondaryIconName;X=_.C(_.FU(!1,void 0,"TtJl8"));var d=X.next().value,B=X.next().value,q=function(){var e=_.jJ().resolve(_.c$(_.aE));e&&B(e.isKeyBoardInUse())},u=function(){B(!1)};
X=_.SJ("yt-button-shape",function(e){if(_.jJ().resolve(_.c$(_.aE)))return e.addEventListener("focusin",q),e.addEventListener("focusout",u),function(){e.removeEventListener("focusin",q);e.removeEventListener("focusout",u)}});
return _.F("yt-button-shape",{el:X,id:l,class:b},_.F(_.M,{cond:H,then:function(){return _.F(_.ms,{data:H,iconName:U,secondaryIconName:w,focusedOverride:d,animateIcon:K})}}))},"Z"),"yt-button-shape",{props:{data:_.zh,
id:_.zh,className:_.zh,iconName:_.zh,animateIcon:_.zh,secondaryIconName:_.zh,clientOnlyWizTooltipsEnabled:_.zh,disableUpgrade:_.zh},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Th=function(){var X=_.a.apply(this,arguments)||this;X.isGoalActive=!0;return X};
_.S(Th,_.a);Th.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Th.prototype.progressBarChanged=function(){var X=_.mh(this.hostElement).querySelector("#progress-bar-progress"),H,l,b,U=(b=Number((H=this.creatorGoalState)==null?void 0:H.currentGoalCount)/Number((l=this.creatorGoalState)==null?void 0:l.totalGoalCount)*100)!=null?b:0,K;X.style.width=((K=Math.min(U,100))!=null?K:0)+"%"};
Th.prototype.goalStateChanged=function(){var X;this.isGoalActive=((X=this.creatorGoalState)==null?void 0:X.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var H;X={"--yt-progress-bar-color":xiz((H=this.creatorGoalState)==null?void 0:H.progressBarColor)};_.j4(this.hostElement,X)};
Th.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.ja.Object.defineProperties(Th.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var X;return this.isGoalActive&&!((X=this.creatorGoalState)==null||!X.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.creatorGoalState)==null?0:X.endTimestampMs){var H;X=Number((H=this.creatorGoalState)==null?void 0:H.endTimestampMs)/1E3;return{seconds:String(X)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.creatorGoalState)==null?0:X.themedTargetImage){var H;X=_.f((H=this.creatorGoalState)==null?void 0:H.themedTargetImage,JTF);return this.isAppDarkTheme()?X==null?void 0:X.imageDark:X==null?void 0:X.imageLight}}}});
_.ja.Object.defineProperties(Th,{template:{configurable:!0,enumerable:!0,get:function(){return CWQ()}}});
Th.prototype.goalStateChanged=Th.prototype.goalStateChanged;Th.prototype.progressBarChanged=Th.prototype.progressBarChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sK),_.N("design:type",Object)],Th.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);
_.T([_.g({selectorArgs:["data.creatorGoalEntityKey"],selector:function(X,H){return _.JY(X.entities,"creatorGoalEntity",H)}}),
_.N("design:type",Object)],Th.prototype,"creatorGoalState",void 0);_.T([_.g(),_.N("design:type",Object)],Th.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Th.prototype,"isGoalActive",void 0);_.T([_.x("creatorGoalState","isGoalActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Th.prototype,"shouldShowCountdown",null);_.T([_.x("creatorGoalState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Th.prototype,"endTimestamp",null);
_.T([_.x("creatorGoalState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Th.prototype,"targetIconThemedImage",null);_.T([_.Yh("creatorGoalState.currentGoalCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Th.prototype,"progressBarChanged",null);_.T([_.Yh("creatorGoalState.creatorGoalState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Th.prototype,"goalStateChanged",null);
_.T([_.qR({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Th);_.O(Th,"yt-creator-goal-progress-flow-view-model",function(){return CWQ()},{mode:0});var GDY;var a5t;var NU=function(){return _.a.apply(this,arguments)||this};
_.S(NU,_.a);NU.prototype.attached=function(){var X,H,l;if(this==null?0:(X=this.data)==null?0:(H=X.pdgPurchasedBumperLoggingDirectives)==null?0:(l=H.loggingDirectives)==null?0:l.trackingParams){var b,U,K;aTN(this==null?void 0:(b=this.data)==null?void 0:(U=b.pdgPurchasedBumperLoggingDirectives)==null?void 0:(K=U.loggingDirectives)==null?void 0:K.trackingParams)}};
NU.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],NU.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],NU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],NU.prototype,"data",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],NU);
_.O(NU,"yt-live-chat-item-bumper-view-model",function(){if(a5t===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;GDY===void 0&&(GDY=document.createElement("template"));var b=GDY;l.call(H,b.content.cloneNode(!0),X.content.firstChild);a5t=X}X=a5t;return X},{mode:0});var ZP9;var iPD;_.DH=function(X,H){this.data=X;this.actions=H;this.data=X;this.actions=H};
_.PS=function(){};_.cr={};_.cr.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(X,H){ZEL(this.hostElement,X,H)},
getNavigationEndpointPopupAction:function(X){return iEk(X,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(X,H){vCm(this.hostElement,X,H,this.openPopupConfig)}};var L2z=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.jj={};
_.jj.YtEndpointBehavior=[_.cr.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.gx("openPopupConfig");(this.useClickHandler=_.G7("useClickHandler",!1))?this.hostElement.addEventListener("click",ru(this,this.onEndpointClick_)):(ni(this.hostElement,"tap",ru(this,this.onEndpointTap_)),ni(this.hostElement,"touchend",ru(this,this.onEndpointTouchEnd_)));ni(this.hostElement,"touchstart",ru(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
ru(this,this.onEndpointTapStart_))},
onEndpointClick_:function(X){Qvy(this.hostElement,X,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(X){var H=this.hostElement,l=this.openPopupConfig,b=this.disableCommandHandlerOverride;b=b===void 0?!1:b;var U=OE8(X);if(U){U.href&&e4(U.href);var K=X.detail;var w=K.sourceEvent;K=K.preventer;w=w.button!==void 0?w.button===0&&!X8(w):K?!X8(K):!0;U.data&&w&&mc8(H,U,X,l,b)}},
onEndpointTouchEnd_:function(X){X8(X)||OE8(X)&&X.preventDefault()},
onEndpointTapStart_:function(X){rDh(X)}}];_.rh={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(X){for(var H=_.Zq.getInstance(),l=_.C(Object.keys(X)),b=l.next();!b.done;b=l.next()){var U=b.value;b=X[U];if(this&&this[b]){var K=H.actionRoutingMap.get(U);K||(K=new Map,H.actionRoutingMap.set(U,K));H.registerActionHandler(this,U,this[b].bind(this),K)}else U=Error("nd"),U.params=b,_.a0(U)}},
unregisterActionMap:function(X){_.vD(_.Zq.getInstance(),X,this)}}]};var bE=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_"+(_.P("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.P("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.P("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:_.P("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:_.P("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:_.P("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var lE;var Um=new Map;var lam=window.matchMedia("(forced-colors: active)").matches;var vkG;var OPQ;var mu_=new _.gz("LOTTIE_LOADER_TOKEN");_.Jx=_.Z(function(X){var H=X.data;var l=X.className;var b=X.animationName;var U=X.animationRef;var K=X.elRefForInterop;var w=_.z7("lottie-component"),d;_.E2(function(){var q;return void((q=d)==null?void 0:q.destroy())});
var B;_.Wg(function(){var q=_.a5(b);if(q!==B){B=q;var u=Object.assign({},{animationName:q,animationRef:_.a5(U)},_.a5(H));try{_.jJ().resolve(mu_)().then(function(V){var p;(p=d)==null||p.destroy();var z,t;p=(t=K==null?void 0:(z=K())==null?void 0:z.value)!=null?t:w.value;z=u.animationRef;t=u.listeners;V=V.loadAnimation(Object.assign({},{container:p},u.animationConfig));z&&(z.lottieEl=V);if(t)for(p=_.C(Object.entries(t)),z=p.next();!z.done;z=p.next())t=_.C(z.value),z=t.next().value,(t=t.next().value)&&
V.addEventListener(z,t);d=V})}catch(V){q=V;
var e="LottieComponent error.";q.message&&(e+=" Original description: "+q.message);_.Dq(q,e);_.x2(q);var y;((y=u.listeners)==null?0:y.error)&&u.listeners.error(q)}}},"nrJISd");
return _.F(guk,{cond:function(){return!(K==null?0:K())},
then:function(){return _.F("lottie-component",{class:_.Qr("ytLottieComponentHost",l),el:w})}})},"aa");_.gC(_.Z(function(X){return _.F("ytd-lottie-player",{id:X.id,hidden:X.hidden,class:X.className,"aria-label":X.ariaLabel,style:"display: block;"},_.F(_.Jx,{data:X.data,animationName:function(){var H;return((H=X.data().animationConfig)==null?void 0:H.name)||""},
animationRef:function(){return X.data().animationRef}}))},"ba"),"ytd-lottie-player",{props:{data:_.zh,
id:_.zh,hidden:_.zh,className:_.zh,ariaLabel:_.zh}});var LD=function(){var X=_.a.apply(this,arguments)||this;X.animationRef={};X.delhiIconsEnabled=_.P("enable_web_delhi_icons");return X};
_.S(LD,_.a);_.R=LD.prototype;
_.R.handlePropertyChange=function(){var X=this.animatedIcon,H=this.active,l=this.isDarkTheme;if(X){var b=this.previousActive!==H;this.previousActive=H;this.animationRef.lottieEl?b?this.toggleAnimation(H,X.totalFrames):_.P("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(H,X.totalFrames):H?this.initializeAnimationAsToggled(X.lottiePlayerProps,X.totalFrames):this.initializeAnimationAsUntoggled(X.lottiePlayerProps);X.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
X.type;this.lottiePlayerProps=this.computeLottiePlayerProps(X,l)}};
_.R.computeLottiePlayerProps=function(X,H){var l=this.deepCloneLottiePlayerProps(X);H?(H=X.nameDarkTheme,X=X.pathDarkTheme):(H=X.name,X=X.path);l.animationConfig.name=H;(H=Um.get(X))?l.animationConfig.animationData=H:l.animationConfig.path=X;return l};
_.R.initializeAnimationAsToggled=function(X,H){X.animationConfig.initialSegment=[H-1,H]};
_.R.initializeAnimationAsUntoggled=function(X){X.animationConfig.initialSegment=void 0};
_.R.toggleAnimation=function(X,H){if(X){var l;(l=this.animationRef.lottieEl)==null||l.playSegments([0,H],!0)}else{var b;(b=this.animationRef.lottieEl)==null||b.playSegments([0,1],!0)}};
_.R.setAnimationState=function(X,H){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(X?H-1:0,!0)};
_.R.deepCloneLottiePlayerProps=function(X){var H=Object.assign({},X.lottiePlayerProps.animationConfig);X=Object.assign({},X.lottiePlayerProps);X.animationConfig=H;return X};
LD.prototype.handlePropertyChange=LD.prototype.handlePropertyChange;_.T([_.g(),_.N("design:type",Object)],LD.prototype,"animatedIcon",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],LD.prototype,"active",void 0);_.T([_.g(),_.N("design:type",Boolean)],LD.prototype,"isDarkTheme",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],LD.prototype,"animatedIconType",void 0);_.T([_.g(),_.N("design:type",Boolean)],LD.prototype,"previousActive",void 0);
_.T([_.g(),_.N("design:type",Object)],LD.prototype,"lottiePlayerProps",void 0);_.T([_.g(),_.N("design:type",Object)],LD.prototype,"animationRef",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],LD.prototype,"delhiIconsEnabled",void 0);_.T([_.Yh("animatedIcon","active","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LD.prototype,"handlePropertyChange",null);_.T([_.qR({is:"yt-animated-icon",disableElementRegistration:!0})],LD);
_.O(LD,"yt-animated-icon",function(){if(OPQ===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;vkG===void 0&&(vkG=document.createElement("template"));var b=vkG;l.call(H,b.content.cloneNode(!0),X.content.firstChild);OPQ=X}X=OPQ;return X},{mode:2});var QUz;var T$Y;_.Kl=_.Z(function(X){var H={value:null,cancelled:!1};_.E2(function(){H.cancelled=!0});
var l=_.uL(X.data,{equals:function(b,U){return b.iconName===U.iconName&&b.iconStyle===U.iconStyle&&b.iconSize===U.iconSize&&b.iconSetName===U.iconSetName&&b.iconSelected===U.iconSelected}},"ck24jb");
return _.F("span",{class:"yt-icon-shape",el:_.xl(function(b){_.Wg(function(){var U,K=(U=X.options)==null?void 0:U.call(X);U=l();KMy(b,H,U,K)},"v878Je")})})},"da");
_.Kl.idomCompat=!0;var DTN=["youtube_fill","youtube_outline"];var N$G=new _.lc({type:"iconset",value:void 0}),Yv=function(){var X=_.a.apply(this,arguments)||this;X.isDarkTheme=document.documentElement.hasAttribute("dark");X.iconName="";X.iconsetName="yt-icons";X.iconset=null;X.missingIconSet=!1;X.iconType=null;X.iconShapeDataSignal=_.FU(void 0,void 0,"TaEgXd");X.renderingOptionsSignal=_.FU({iconWidth:"100%",iconHeight:"100%",iconFilter:X.iconFilter,iconColor:X.gradientColor},void 0,"a1vqYe");X.wizHasRendered=!1;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return X};
_.S(Yv,_.a);Yv.prototype.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.isDarkTheme=X)};
Yv.prototype.handlePropertyChange=function(){var X=this,H,l,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W;return _.h(function(G){switch(G.nextAddress){case 1:if(H=!X.icon&&!X.iconName||!X.isAttached)return G.return();l=X;b=l.icon;U=l.size;K=l.defaultToFilled;w=l.active;d=l.targetContainer;X.toggleContainerClass(d);_.P("kevlar_use_wil_icons")&&b&&(B=Uiy(b),X.iconType=B.length?B[1]:null);if(b){G.jumpTo(2);break}X.iconsetName="";X.iconName="";return G.yield(X.renderIcon(d,b),3);case 3:return G.return();case 2:q=c4q(b);
u=Uiy(q);u.length&&(X.iconsetName=u[0],X.iconName=u[1]);if(!_.P("kevlar_use_wil_icons")){G.jumpTo(4);break}e=Yv;y=jUq;V=X.iconType;p=X.active;z=X.defaultToFilled;t=X.size;W=X.iconsetName;return G.yield(r4Q(),6);case 6:return G.yield(y.call(e,V,p,z,t,W,G.yieldResult),5);case 5:X.iconShapeData=G.yieldResult;case 4:if(X.shouldRenderIconShape(d)){G.jumpTo(7);break}return G.yield(X.determineIconSet(q,w,K,U,d),7);case 7:return G.yield(X.renderIcon(d,b),0)}})};
Yv.prototype.toggleContainerClass=function(X){X?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var c4q=function(X){return!_.P("default_to_innertube_icon")||X.indexOf(":")>0?X:_.jL(X)};
_.R=Yv.prototype;_.R.determineIconSet=function(X,H,l,b){var U=this;return _.h(function(K){return K.nextAddress==1?_.P("kevlar_system_icons")||_.gx("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.gx("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?K.yield(U.switchToYtSysIconset(X,H,l,b),3):K.jumpTo(2):K.nextAddress!=2?K.return():K.yield(U.useYtSysIconsetForMissingIcons(X,H,l,b),0)})};
_.R.switchToYtSysIconset=function(X,H,l,b){var U=this,K,w,d,B,q,u,e;return _.h(function(y){switch(y.nextAddress){case 1:if(!X||U.iconsetName!=="yt-icons"&&U.iconsetName!=="yt-sys-icons"){y.jumpTo(0);break}K=Uiy(X);w=K[1];var V=w;if(FBl(V))w=V;else{var p=V=V.toLowerCase();(V=IhD.get(V))&&(p=V);w=p}_.P("enable_polymer_icons_replace_underscores_dash")&&w.includes("_filled")&&(w=w.replace(/_filled/g,"-filled"));return y.yield(cc(w,!0),3);case 3:return d=y.yieldResult,y.yield(cc(w,!1),4);case 4:if((B=
y.yieldResult)||H&&d)U.iconsetName="yt-sys-icons";U.iconName=U.getIconName(w,H,l,B,d);if(b===24){y.jumpTo(0);break}q="yt-sys-icons"+b+":"+U.iconName;return y.yield(cc(q,!1,!0),6);case 6:return u=y.yieldResult,y.yield(cc(q,!0,!0),7);case 7:e=y.yieldResult;U.iconName=U.getIconName(w,H,l,u,e);if(!H&&u||H&&e)U.iconsetName="yt-sys-icons"+b;_.m5(y)}})};
_.R.getIconName=function(X,H,l,b,U){X.includes("-filled")&&(X=X.replace("-filled",""));return U&&(H||l)?X+"-filled":X};
_.R.useYtSysIconsetForMissingIcons=function(X,H,l,b){var U=this,K,w;return _.h(function(d){if(d.nextAddress==1)return U.iconsetName!=="yt-icons"?d.jumpTo(0):d.yield(cc(U.iconName,!1,!1,!0),3);if(d.nextAddress!=4)return K=d.yieldResult,d.yield(cc(U.iconName,!1),4);w=d.yieldResult;if(K||!w)return d.jumpTo(0);U.iconsetName="yt-sys-icons";return d.yield(U.switchToYtSysIconset(X,H,l,b),0)})};
_.R.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var r4Q=function(){return _.h(function(X){try{return X.return(_.jJ().resolve(_.rT))}catch(H){return X.return(new Promise(function(l){_.ng().parkOrScheduleJob(function(){l(_.jJ().resolve(_.rT))},2,"ci")}))}})},jUq=function(X,H,l,b,U,K){b=b===void 0?24:b;
if(X){X=X.toLowerCase();var w=X.endsWith("_filled")||X.endsWith("-filled");H={iconName:X,iconStyle:(H===void 0?0:H)||(l===void 0?0:l)||w?"youtube_fill":"youtube_outline",iconSize:b,iconSetName:U===void 0?"yt-icons":U};l=!!K.resolveIcon(H);l||(H.iconSize=void 0,l=!!K.resolveIcon(H));!l&&w&&(H.iconName=X.substring(0,X.length-7),H.iconSize=b,l=!!K.resolveIcon(H),l||(H.iconSize=void 0,l=!!K.resolveIcon(H)));l||(H.iconStyle=void 0,l=!!K.resolveIcon(H));l||_.x2(new _.qd("Icon not supported",{iconName:H.iconName,
iconStyle:H.iconStyle,iconSize:H.iconSize,iconType:X}));return l?H:void 0}};
_.R=Yv.prototype;_.R.shouldRenderIconShape=function(X){if(!_.P("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;X=this.getContainer(X);return!oay(X,this.icon)};
_.R.renderIcon=function(X,H){var l=this,b,U,K,w,d,B,q,u;return _.h(function(e){switch(e.nextAddress){case 1:if(H&&l.icon!==H)return e.return();b=l.getContainer(X);U=oay(b,l.icon);if(l.shouldRenderIconShape(X)&&l.iconType)return l.applyIconShape(U,b),e.return();l.removeIconShape();if(!b)return e.return();l.iconName===""&&l.iconset&&b&&(l.removeStaticIcon(l.iconset,b),U&&l.removeAnimatedIcon(b));if(l.iconName===""&&l.iconset||!l.iconsetName||!N$G)return e.return();l.iconset=N$G.byKey(l.iconsetName);
if(!l.iconset)return l.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.J2(l,l.onIconsetAdded)),e.return();l.missingIconSet&&(l.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.J2(l,l.onIconsetAdded)));w=(K=U||l.isAnimatedIcon?X7m(l.icon):void 0)&&!K.lazyLoad;B=K&&((d=K)==null?void 0:d.lazyLoad)&&(K.lottiePlayerProps.animationConfig.animationData?!0:Um.get(l.isDarkTheme?K.pathDarkTheme:K.path)?!0:!1);if(w||B)return l.applyAnimatedIcon(b,K,l.iconset),e.return();if(B||
(q=K)==null||!q.lazyLoad){e.jumpTo(2);break}u=UBK(K,l.isDarkTheme);l.applyStaticIcon(l.iconset,b,l.iconName,X,U);return e.yield(u,3);case 3:return e.yield(l.renderIcon(l.targetContainer,l.icon),4);case 4:return e.return();case 2:l.applyStaticIcon(l.iconset,b,l.iconName,X,U),_.m5(e)}})};
_.R.getContainer=function(X){var H,l=(H=N7m(this.hostElement))==null?void 0:H.host;H=!!l&&!!l.polymerController;if(!X||H)return X?this.getTargetContainer(X,l):this.hostElement};
_.R.getTargetContainer=function(X,H){var l=_.mh(H).querySelector("#"+X);l||(X=new _.qd("yt-icon container missing",H.is,X),_.n2(X));return l};
_.R.applyStaticIcon=function(X,H,l,b,U){U&&this.removeAnimatedIcon(H);this.removeIconShape();U=U&&!!this.iconType&&!!this.iconShapeData&&_.P("kevlar_use_wil_icons");try{U?this.applyIconShape(!1,H):X.applyIcon(H,l)}catch(K){this.handleError(K,b,H)}};
_.R.applyIconShape=function(X,H){this.iconset&&H&&(this.removeStaticIcon(this.iconset,H),X&&this.removeAnimatedIcon(H));X={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var l=_.C(this.iconShapeDataSignal);H=l.next().value;l=l.next().value;var b=_.C(this.renderingOptionsSignal),U=b.next().value;b=b.next().value;l(this.iconShapeData);b(X);if(!this.wizHasRendered)for(this.wizHasRendered=!0,X=_.C(RQl(H,U)).next().value;X.firstChild;)_.mh(this.hostElement).appendChild(X.firstChild)};
_.R.removeIconShape=function(){if(_.P("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.R.removeStaticIcon=function(X,H){X.removeIcon(H)};
_.R.applyAnimatedIcon=function(X,H,l){this.removeStaticIcon(l,X);this.removeIconShape();var b;l=this.animatedIconElement&&((b=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:b.type)===H.type;if(this.animatedIconElement&&l){this.animatedIconElement.polymerController.animatedIcon=H;var U;((U=this.animatedIconElement)==null?void 0:U.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(X),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=H,this.animatedIconElement.polymerController.active=this.active,_.P("delhi_modern_web_player_icons")?(H=Hab(X,this.icon)&&X.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=H?H.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.P("kevlar_use_wil_icons")?
X.insertBefore(this.animatedIconElement,X.childNodes[0]):(X=_.mh(X),X.insertBefore(this.animatedIconElement,X.childNodes[0]))};
_.R.removeAnimatedIcon=function(X){_.P("kevlar_use_wil_icons")?this.animatedIconElement&&X.contains(this.animatedIconElement)&&X.removeChild(this.animatedIconElement):(X=_.mh(X),this.animatedIconElement&&X.contains(this.animatedIconElement)&&X.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.R.handleError=function(X,H,l){_.Dq(X,this.iconName,H,l);H=oay(l,this.icon);var b=!1;window.location.href.includes("JpymaW6Lh2w")?b=!0:l._svgIcon&&(l=(l=l._svgIcon.parentNode)?l.tagName:"unknown",_.Dq(X,l),l==="YT-ICON"&&X.name==="NotFoundError"?b=!0:X.name==="NotFoundError"&&H&&(b=!0));b?_.x2(X):_.n2(X)};
_.ja.Object.defineProperties(Yv,{template:{configurable:!0,enumerable:!0,get:function(){if(T$Y===void 0){var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;
QUz===void 0&&(QUz=document.createElement("template"));var b=QUz;l.call(H,b.content.cloneNode(!0),X.content.firstChild);T$Y=X}X=T$Y;return X}}});
Yv.prototype.handlePropertyChange=Yv.prototype.handlePropertyChange;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Yv.prototype,"actionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",String)],Yv.prototype,"icon",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Yv.prototype,"active",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Yv.prototype,"defaultToFilled",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Yv.prototype,"isAnimatedIcon",void 0);
_.T([_.g({value:24}),_.N("design:type",Number)],Yv.prototype,"size",void 0);_.T([_.g({value:""}),_.N("design:type",String)],Yv.prototype,"targetContainer",void 0);_.T([_.g(),_.N("design:type",Object)],Yv.prototype,"animatedIconElement",void 0);_.T([_.g(),_.N("design:type",Object)],Yv.prototype,"isDarkTheme",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Yv.prototype,"ariaHidden",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Yv.prototype,"ariaLabel",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Yv.prototype,"role",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Yv.prototype,"tabindex",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Yv.prototype,"title",void 0);_.T([_.g(),_.N("design:type",String)],Yv.prototype,"style",void 0);_.T([_.g(),_.N("design:type",String)],Yv.prototype,"iconFilter",void 0);_.T([_.g(),_.N("design:type",String)],Yv.prototype,"gradientColor",void 0);
_.T([_.Yh("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],Yv.prototype,"handlePropertyChange",null);_.T([_.qR({is:"yt-icon",noInjection:!0})],Yv);var CPy="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),dBO=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var J4t={};J4t.YtPlaintextBehavior=[_.Yw,{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(X){X.preventDefault();X=X.clipboardData.getData("text/plain");document.execCommand("insertText",!1,X)},
preventRichTextFormatting_:function(X){_.IJ&&(X=X.detail.keyboardEvent,X.stopImmediatePropagation(),X.preventDefault())}}];var LlQ;var Yjz;var IE=function(){var X=_.a.apply(this,arguments)||this;X.ignoreShadyDom=!1;X.hasChange_=!1;X.hasSetTitle_=!1;X.useIOObserverForVisibilityLogging_=_.P("kevlar_use_vimio_behavior")&&_.gx("INNERTUBE_CLIENT_NAME")==="WEB";X.ytFormattedStringObserverHandlerKeys_=void 0;return X};
_.S(IE,_.a);_.R=IE.prototype;_.R.created=function(){this.useIOObserverForVisibilityLogging_=_.P("kevlar_use_vimio_behavior")&&_.gx("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.R.ready=function(){_.gx("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_()};
_.R.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.R.detached=function(){this.unobserveIOObservers_()};
_.R.clearContents_=function(){for(var X=this.getRoot(),H=X.lastChild;H&&H.tagName!=="STYLE";){try{X.removeChild(H)}catch(l){break}H=X.lastChild}};
_.R.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var X=_.C(this.ytFormattedStringObserverHandlerKeys_),H=X.next();!H.done;H=X.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(H.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.R.resetForAttributedString=function(){var X=this.getRoot();!X.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),X.appendChild(this.ytAttributedStringElementRef))};
_.R.resetForFormattedString=function(){var X=this.getRoot(),H=X.querySelector("yt-attributed-string");H&&(this.ytAttributedStringElementRef=X.removeChild(H))};
_.R.textChanged=function(){this.textChanged_(this.text)};
_.R.textChanged_=function(X){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!X||!X.runs&&!X.simpleText;if(_.P("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var H=this.hostElement.firstChild;H&&H.nodeName==="FONT";){var l=H;H=H.nextSibling;this.hostElement.removeChild(l)}H=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
l=X.simpleText;var b;!l&&((b=X.runs)==null?void 0:b.length)===1&&this.isSimpleString_(X.runs[0])&&(l=X.runs[0].text);l!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.gx("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(l!==void 0){try{H.textContent=l}catch(U){}H.textContent||(this.isEmpty=!0)}else X=X.runs,l!==void 0&&(X=[{text:l}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),X&&this.updateText_(X),
H.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.R.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)};
_.R.computeAriaLabel_=function(X){return X};
_.R.computeEllipsisTruncateStyling=function(X,H){return X&&!H};
_.R.computeUseAttributedString=function(X){return _.P("web_replace_formatted_with_attributed_string")&&T6L(X)&&!this.disableAttributedString&&!this.enableContentEditable};
_.R.setNodeStyle_=function(X,H){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.P("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?H.removeAttribute("dir"):H.setAttribute("dir","auto");H.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");H.style.color="";var l=null;this.noStyles||(X.bold&&(H.classList.add("bold"),l="bold"),X.deemphasize&&(H.classList.add("deemphasize"),l="deemphasize"),X.italics&&H.classList.add("italic"),
X.strikethrough&&H.classList.add("strikethrough"),X.errorUnderline&&(H.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),X.bracket&&H.classList.add("bracket"),X.textColor&&(H.style.color=_.BM(X.textColor)));l!==H.getAttribute("style-target")&&(l?H.setAttribute("style-target",l):H.removeAttribute("style-target"))};
_.R.setUpVisibilityLogging_=function(X,H){var l=this;this.setNodeTrackingParams_(X,H);var b;((b=H.data)==null?0:b.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(X=this.ytRendererBehavior.visibilityObserver.observe(H,function(U){var K=l.ytRendererBehavior.getVisibilityLogger();K&&K.reportShown(U)},this.ytRendererBehavior.visibilityOptionVisible_),H=this.ytRendererBehavior.visibilityObserver.observe(H,function(U){var K=l.ytRendererBehavior.getVisibilityLogger();
K&&K.reportHidden(U)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(X),this.ytFormattedStringObserverHandlerKeys_.push(H))};
_.R.setNodeTrackingParams_=function(X,H){H.data||(H.data={});if((X=X.loggingDirectives?X.loggingDirectives.trackingParams:null)||H.data.trackingParams)H.data.trackingParams=X};
_.R.computeHasLinkOnly_=function(X){return!(!X||X.length!==1||this.noEndpoints||!X[0].navigationEndpoint)};
_.R.getRoot=function(){var X=this.buildScopeDomOptions();return this.enableContentEditable?_.mh(_.mh(this.hostElement,X).querySelector("[contenteditable]")):_.mh(this.hostElement,X)};
_.R.fixContenteditableScope=function(){var X=function(H){H&&(H.nodeType===1&&H.classList&&(H.classList.add("style-scope"),H.classList.add("yt-formatted-string")),H.childNodes&&H.childNodes.forEach(function(l){X(l)}))};
X(this.getRoot())};
_.R.updateText_=function(X){for(var H=X.length,l=this.getRoot(),b=l.firstChild;b&&b.nodeName==="STYLE";)b=b.nextSibling;for(var U=0;U<H&&b;){var K=X[U],w=_.P("remove_cr_char")&&K.text?K.text.replace("\r",""):K.text;if(this.isSimpleString_(K)&&!this.useMixedDirectionFormattedStrings)if(b.nodeName==="#text"){b.textContent!=w&&(b.textContent=w);U++;b=b.nextSibling;continue}else break;if(_.f(K,FR))break;else if(!this.noEndpoints&&K.navigationEndpoint){if(b.nodeName!=="A")break;this.setDataOnAnchor_(b,
K.navigationEndpoint)}else if(b.nodeName!=="SPAN")break;this.setNodeStyle_(K,b);this.setUpVisibilityLogging_(K,b);b.textContent!=w&&(b.textContent=w);U++;b=b.nextSibling}if(b)for(K=l.lastChild,b=U?b.previousSibling:null;K&&K!=b;){try{l.removeChild(K)}catch(d){break}K=l.lastChild}U!==H&&this.addTextNodes_(X,U)};
_.R.addTextNodes_=function(X,H){for(var l=document.createDocumentFragment(),b=X.length;H<b;H++){var U=X[H],K=_.P("remove_cr_char")&&U.text?U.text.replace("\r",""):U.text;if(this.isSimpleString_(U)&&!this.useMixedDirectionFormattedStrings)l.appendChild(document.createTextNode(K));else{var w=_.f(U,FR);if(w){if(w.image){var d=document.createElement("img");w.isCustomEmoji||d.classList.add("small-emoji");d.classList.add("emoji");w.isCustomEmoji&&(d.dataset.emojiId=w.emojiId);d.src=_.G0(w.image.thumbnails,
this.emojiSize);(U=this.get("image.accessibility.accessibilityData.label",w))?d.alt=U:w.shortcuts&&w.shortcuts.length>0?d.alt=w.shortcuts[0]:w.emojiId&&(d.alt=w.emojiId);l.appendChild(d);this.hasEmoji=!0}}else!this.noEndpoints&&U.navigationEndpoint?(d=document.createElement("a"),d.classList.add("yt-simple-endpoint"),d.setAttribute("spellcheck","false"),this.setDataOnAnchor_(d,U.navigationEndpoint)):d=document.createElement("span"),this.setNodeStyle_(U,d),this.setUpVisibilityLogging_(U,d),d.appendChild(document.createTextNode(K)),
l.appendChild(d)}}this.getRoot().appendChild(l)};
_.R.isSimpleString_=function(X){return(this.noEndpoints||!X.navigationEndpoint)&&!_.f(X,FR)&&(this.noStyles||!(X.bold||X.deemphasize||X.italics||X.strikethrough||X.errorUnderline||X.bracket||X.textColor))&&!X.loggingDirectives};
_.R.getRawText=function(){return _.D8(this.text)};
_.R.getFirstRunText=function(){var X;if(((X=this.text)==null?0:X.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.R.setFirstRunText=function(X){var H;((H=this.text)==null?0:H.runs)&&this.text.runs[0]&&(this.text.runs[0].text=X,this.textChanged_(this.text))};
_.R.setDataOnAnchor_=function(X,H){var l=this;!_.P("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(H)||this.isSignalServiceEndpoint_(H)?(X.onclick=this.serviceEndpointHandler_(H),HJ(X,"#")):Dhb({text:this.text,command:H},function(){Qsm(X,H,l.target)})};
_.R.isServiceEndpoint_=function(X){var H;return!((H=_.f(X==null?void 0:X.commandMetadata,_.Ip))==null||!H.sendPost)};
_.R.isSignalServiceEndpoint_=function(X){return!!_.f(X,_.Yu)};
_.R.serviceEndpointHandler_=function(X){var H=this;return function(l){_.ci(H.hostElement,[X]);l.preventDefault()}};
_.R.overrideAriaLabelChanged_=function(){var X=this.getRoot();this.enableContentEditable&&X&&X.setAttribute("aria-label",this.overrideAriaLabel)};
_.R.enableContentEditableChanged_=function(){var X=this,H=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),H=_.mh(this.hostElement,H),!H.lastChild||H.lastChild instanceof HTMLElement&&H.lastChild.id!=="contenteditable-root"){var l=document.createElement("div");l.id="contenteditable-root";l.setAttribute("contenteditable","true");l.setAttribute("dir","auto");l.onfocus=function(){X.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
H.appendChild(l);this.overrideAriaLabel&&l.setAttribute("aria-label",this.overrideAriaLabel)}}else l=_.Q_(this.hostElement).firstChild,l instanceof HTMLElement&&l.id==="contenteditable-root"&&_.mh(this.hostElement,H).removeChild(l)};
_.R.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.R.getNodesForVisibilityLogging_=function(){return _.jY(this.getRoot().childNodes,function(X){var H;return!((H=X.data)==null||!H.trackingParams)})};
_.R.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.R.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var X=this.ytRendererBehavior.getVisibilityLogger();X&&this.getNodesForVisibilityLogging_().forEach(function(H){X.reportShown(H)})}};
_.R.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var X=this.ytRendererBehavior.getVisibilityLogger();X&&this.getNodesForVisibilityLogging_().forEach(function(H){X.reportHidden(H)})}};
_.ja.Object.defineProperties(IE.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.P("enable_mixed_direction_formatted_strings")}}});
IE.prototype.enableContentEditableChanged_=IE.prototype.enableContentEditableChanged_;IE.prototype.overrideAriaLabelChanged_=IE.prototype.overrideAriaLabelChanged_;IE.prototype.ellipsisTruncateChanged_=IE.prototype.ellipsisTruncateChanged_;IE.prototype.textChanged=IE.prototype.textChanged;_.T([_.k(J4t.YtPlaintextBehavior),_.N("design:type",Object)],IE.prototype,"ytPlaintextBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],IE.prototype,"ytComponentBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],IE.prototype,"text",void 0);_.T([_.g(),_.N("design:type",Boolean)],IE.prototype,"noEndpoints",void 0);_.T([_.g(),_.N("design:type",Boolean)],IE.prototype,"noStyles",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],IE.prototype,"isDarkTheme",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],IE.prototype,"splitLines",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],IE.prototype,"forceDefaultStyle",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],IE.prototype,"ellipsisTruncate",void 0);_.T([_.g(),_.N("design:type",Object)],IE.prototype,"ignoreShadyDom",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.N("design:type",Boolean)],IE.prototype,"ellipsisTruncateStyling",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.N("design:type",String)],IE.prototype,"ariaLabel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],IE.prototype,"isEmpty",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.N("design:type",Boolean)],IE.prototype,"hasLinkOnly_",void 0);_.T([_.g(),_.N("design:type",Boolean)],IE.prototype,"hasEmoji",void 0);_.T([_.g(),_.N("design:type",Boolean)],IE.prototype,"disableAttributedString",void 0);_.T([_.g(),_.N("design:type",Boolean)],IE.prototype,"isOverlay",void 0);_.T([_.g(),_.N("design:type",Boolean)],IE.prototype,"linkInheritColor",void 0);
_.T([_.g(),_.N("design:type",Boolean)],IE.prototype,"noPreWrap",void 0);_.T([_.g(),_.N("design:type",Boolean)],IE.prototype,"userInput",void 0);_.T([_.g({value:16}),_.N("design:type",Number)],IE.prototype,"emojiSize",void 0);_.T([_.g(),_.N("design:type",String)],IE.prototype,"target",void 0);_.T([_.g(),_.N("design:type",Boolean)],IE.prototype,"enableContentEditable",void 0);_.T([_.g(),_.N("design:type",String)],IE.prototype,"overrideAriaLabel",void 0);
_.T([_.g(),_.N("design:type",Boolean)],IE.prototype,"respectHtmlDir",void 0);_.T([_.g(),_.N("design:type",Boolean)],IE.prototype,"respectLangDir",void 0);_.T([_.x("plaintextOnly"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],IE.prototype,"useMixedDirectionFormattedStrings",null);_.T([_.g({computed:"computeUseAttributedString(text)"}),_.N("design:type",Boolean)],IE.prototype,"useYtAttributedString",void 0);
_.T([_.Yh("text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IE.prototype,"textChanged",null);_.T([_.Yh("ellipsisTruncate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IE.prototype,"ellipsisTruncateChanged_",null);_.T([_.Yh("overrideAriaLabel"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IE.prototype,"overrideAriaLabelChanged_",null);
_.T([_.Yh("enableContentEditable"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IE.prototype,"enableContentEditableChanged_",null);_.T([_.qR({is:"yt-formatted-string",disableElementRegistration:!0})],IE);
_.O(IE,"yt-formatted-string",function(){if(Yjz===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;LlQ===void 0&&(LlQ=document.createElement("template"));var b=LlQ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Yjz=X}X=Yjz;return X});var I5Q;var A4F;var XdQ;var HOt;var Ax=function(){var X=_.a.apply(this,arguments)||this;X.focused=!1;X.disabled=!1;X.isOverlay=!1;return X};
_.S(Ax,_.a);Ax.prototype.triggerDown=function(){if(!this.disabled){_.TW(this.hostElement,"down",!0);var X;(X=this.currentAnimation)==null||X.cancel()}};
Ax.prototype.triggerUp=function(){if(!this.disabled){_.TW(this.hostElement,"down",!1);var X=this.fillElement;var H=this.strokeElement;typeof GroupEffect==="function"?(X=new GroupEffect([RX8(X),CqO(H)]),X=new Animation(X,document.timeline)):X=new f5F(X,H);this.currentAnimation=X;var l;(l=this.currentAnimation)==null||l.play()}};
_.T([_.A2(".stroke"),_.N("design:type",HTMLElement)],Ax.prototype,"strokeElement",void 0);_.T([_.A2(".fill"),_.N("design:type",HTMLElement)],Ax.prototype,"fillElement",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ax.prototype,"focused",void 0);_.T([_.g(),_.N("design:type",Object)],Ax.prototype,"disabled",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ax.prototype,"isOverlay",void 0);_.T([_.qR({is:"yt-interaction",disableElementRegistration:!0})],Ax);
_.O(Ax,"yt-interaction",function(){if(HOt===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;XdQ===void 0&&(XdQ=document.createElement("template"));var b=XdQ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);HOt=X}X=HOt;return X},{mode:2});var XX=function(){return _.a.apply(this,arguments)||this};
_.S(XX,_.a);_.R=XX.prototype;_.R.ready=function(){var X=this,H=_.mh(this.hostElement).querySelector("#button");H.addEventListener("focus",function(){r_9||(r_9=new jnt);X.keyboardFocused=r_9.isKeyBoardInUse()});
H.addEventListener("blur",function(){X.keyboardFocused=!1;X.rippleUp_()})};
_.R.computeTabIndex_=function(X){return X?-1:0};
_.R.computeButtonAriaPressed_=function(X){if(this.toggleable)return X?"true":"false"};
_.R.rippleDown_=function(){_.mh(this.hostElement).querySelector("#interaction").triggerDown()};
_.R.rippleUp_=function(){_.mh(this.hostElement).querySelector("#interaction").triggerUp()};
_.R.onPressedChanged_=function(){var X=_.Q_(_.mh(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Q_(_.mh(this.hostElement).querySelector("#button")).children[0];X&&(X.active=this.pressed)};
XX.prototype.onPressedChanged_=XX.prototype.onPressedChanged_;XX.prototype.rippleUp_=XX.prototype.rippleUp_;XX.prototype.rippleDown_=XX.prototype.rippleDown_;_.T([_.g(),_.N("design:type",String)],XX.prototype,"label",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],XX.prototype,"disabled",void 0);_.T([_.g(),_.N("design:type",Boolean)],XX.prototype,"pressed",void 0);_.T([_.g(),_.N("design:type",Object)],XX.prototype,"toggleable",void 0);
_.T([_.g(),_.N("design:type",Boolean)],XX.prototype,"untabbable",void 0);_.T([_.g(),_.N("design:type",Boolean)],XX.prototype,"keyboardFocused",void 0);_.T([_.Le("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XX.prototype,"rippleDown_",null);_.T([_.Le("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XX.prototype,"rippleUp_",null);
_.T([_.Yh("pressed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XX.prototype,"onPressedChanged_",null);_.T([_.qR({is:"yt-icon-button",disableElementRegistration:!0})],XX);
_.O(XX,"yt-icon-button",function(){if(A4F===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;I5Q===void 0&&(I5Q=document.createElement("template"));var b=I5Q;l.call(H,b.content.cloneNode(!0),X.content.firstChild);A4F=X}X=A4F;return X},{mode:2});var lu6;var obF=function(){var X=document.body,H=X.appendChild;if(lu6===void 0){var l=document.createElement("template");_.n(l,'\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>');
lu6=l}l=lu6;H.call(X,l.content)};
document.body?obF():window.addEventListener("DOMContentLoaded",obF);var bO_=_.W8(["aria-"]),HP={};HP.YtRenderButtonBehavior=[_.L.YtRendererBehavior,_.jj.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!!_.jJ().resolve(_.c$(_.aE))&&_.P("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 X=this.computeHref_(this.endpoint,!0);X?HJ(this.elements_.endpoint,X):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){X=this.buttonClass.split(" ");X=_.C(X);for(var H=X.next();!H.done;H=X.next())H=H.value,_.TW(this.hostElement,H,!0),this.elements_.button&&_.TW(this.elements_.button,H,!0),this.elements_.text&&_.TW(this.elements_.text,H,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(X=null,this.buttonAccessibility&&(X=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=X:X?_.uQ([_.p$(bO_)],this.elements_.button,"aria-label",X):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var X=_.jJ().resolve(_.c$(_.aE));X&&(this.keyboardFocused=X.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Wr("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,_.Uc(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Uc(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(X,H){if(H)for(X=H.split(" "),X=_.C(X),H=X.next();!H.done;H=X.next())H=H.value,_.TW(this.hostElement,H,!1),this.elements_.button&&_.TW(this.elements_.button,H,!1),this.elements_.text&&_.TW(this.elements_.text,H,!1)},
buttonIconChanged_:function(X){this.elements_.icon?X?(this.elements_.icon.icon=X,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Uc(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Nw(this.hostElement,"is-paper-button-with-icon",!1)):X&&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"&&_.Uc(this.elements_.button).appendChild(this.elements_.icon):_.Uc(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Nw(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(X){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,X){var H=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(X){case "yt_icon_button_with_label":H=!0;_.TW(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();X=_.Uc(this.elements_.button).firstElementChild;
this.elements_.icon=X;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Uc(this.elements_.endpoint).appendChild(this.elements_.button);_.Uc(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Wr("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;_.Uc(this.elements_.button).appendChild(this.elements_.text);_.Uc(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":H=!0,this.elements_.button=this.getYtIconButton_(),X=_.Uc(this.elements_.button).firstElementChild,this.elements_.icon=X,this.setIconActive_(this.elements_.icon),
_.Uc(this.elements_.endpoint).appendChild(this.elements_.button)}_.Nw(this.hostElement,"is-icon-button",H);_.Nw(this.hostElement,"is-paper-button",!H);_.Nw(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 l;_.mh((l=this.container.hostElement)!=null?l:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Uc(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(X){if(X!=void 0||this.disabled)this.disabled=X,this.elements_.button&&(this.elements_.button.disabled=X)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(X){_.P("kevlar_system_icons")&&X&&this.data&&(this.data.isSelected!==void 0?X.active=this.data.isSelected:this.data.isToggled!==void 0&&(X.active=this.data.isToggled))},
observeBasicPalette_:function(X){_.Rq(this.hostElement,X)},
disabledChanged_:function(X){this.data&&this.set("data.isDisabled",X)},
onYtButtonTap_:function(X){if(this.disabled)X.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.ci(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(X=this.disableCommandHandlerOverride,!this.data||!this.data.command||X||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.P("handle_service_request_actions")||_.ci(this.hostElement,[this.serviceEndpoint]),
_.QX(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.P("handle_service_request_actions")?(X=[],this.serviceEndpoint&&X.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&X.push(this.data.command),X.length&&_.j7(this.hostElement,X,this.hostElement)):this.data&&this.data.command&&(X=this.data.command,X.accountUnlinkCommand||X.accountLinkCommand||X.insertAdCommand||X.insertHighlightMarkerCommand||
X.createLivestreamHighlightClipCommand||X.getVideoUploadFeedbackCommand||X.musicDeletePrivatelyOwnedEntityCommand||X.ypcCancelRecurrenceEndpoint||X.getMultiSelectCommandEndpoint?_.ci(this.hostElement,[X]):_.j7(this.hostElement,[X],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 X,H=_.mh((X=this.container.hostElement)!=null?X:this.container);H.lastChild&&H.lastChild.tagName!="STYLE";)try{H.removeChild(H.lastChild)}catch(l){break}},
getYtIconButton_:function(){var X=this.reuseEnabled_()?_.Wr("yt-icon-button"):document.createElement("yt-icon-button"),H=_.Uc(X).firstElementChild;if(H&&H.is!="yt-icon"){for(H=_.Uc(X);H.lastChild;)H.removeChild(H.lastChild);H=null}H||(H=this.getIcon_(),this.setIconActive_(H),_.Uc(X).appendChild(H));return X},
reuseEnabled_:function(){return _.P("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Wr("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Wr("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.U5z={};
_.U5z.YtButtonBehavior=[HP.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var X=this.data;X&&(this._setEndpoint(this.computeEndpoint_(X)),this._setServiceEndpoint(this.computeServiceEndpoint_(X)),this._setCommand(this.computeCommand_(X)),this._setButtonIcon(this.computeButtonIcon_(X)),this._setButtonText(this.computeButtonText_(X,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(X)),this._setButtonTooltip(this.computeTooltip_(X)),this._setButtonClass(this.computeButtonClass_(X)),this._setIconPositionType(this.computeIconPositionType_(X)),this.updateRenderedElements())},
setPressedState:function(X){var H;if((H=this.elements_)==null?0:H.button)this.elements_.button.pressed=!!X},
computeIconPositionType_:function(X){return X&&X.iconPosition||null},
computeEndpoint_:function(X){var H=X&&X.navigationEndpoint,l=this.get("data.command.commandMetadata.webCommandMetadata.url"),b=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:X&&X.command&&X.command.modalEndpoint?X.command:l&&!b&&X.command?X.command:null},
computeServiceEndpoint_:function(X){var H=X&&X.serviceEndpoint,l=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:l&&X.command?X.command:null},
computeCommand_:function(X){return X&&X.command||null},
computeButtonIcon_:function(X){return X&&X.icon&&X.icon.iconType?_.jL(X.icon.iconType):null},
computeButtonText_:function(X,H){return!H&&X&&X.text||null},
computeAccessibility_:function(X){return this.get("accessibilityData.accessibilityData",X)||X&&X.accessibility||(X&&X.text?{label:this.getSimpleString(X.text)}:null)},
computeTooltip_:function(X){return X?X.isDisabled&&X.disabledTooltip||X.tooltip||null:null},
computeButtonClass_:function(X){var H=X&&X.style?X.style.toLowerCase().replace(/_/g,"-")+" ":"";H+=X&&X.size?X.size.toLowerCase().replace(/_/g,"-")+" ":"";X.colorData&&X.colorData.basicColorPaletteData&&X.colorData.basicColorPaletteData.borderColor&&(H+="palette-with-border");return H.trim()}}];var Cl={};var $5t;var K0t;var RbF,Ct9=function(){return RbF!==void 0?RbF:RbF=document.createElement("template")};
document.head.appendChild(Ct9().content);var wd6;var d5G,hb9=function(){return d5G!==void 0?d5G:d5G=document.createElement("template")};
document.head.appendChild(hb9().content);var F0C;var BQG,qxH=function(){return BQG!==void 0?BQG:BQG=document.createElement("template")};
document.head.appendChild(qxH().content);var sxt;var MEG=document.head,ufC=MEG.appendChild,ebt;if(sxt===void 0){var yHt=document.createElement("template");_.n(yHt,"\x3c!--css-build:shady--\x3e");yHt.content.insertBefore(qxH().content.cloneNode(!0),yHt.content.firstChild);sxt=yHt}ebt=sxt;ufC.call(MEG,ebt.content);var VEQ=document.head,PtD=VEQ.appendChild,fuQ;if(F0C===void 0){var pdG=document.createElement("template");_.n(pdG,"\x3c!--css-build:shady--\x3e");pdG.content.insertBefore(hb9().content.cloneNode(!0),pdG.content.firstChild);F0C=pdG}fuQ=F0C;PtD.call(VEQ,fuQ.content);var Sxv=document.head,zbt=Sxv.appendChild,nbF;if(wd6===void 0){var kkG=document.createElement("template");_.n(kkG,"\x3c!--css-build:shady--\x3e");kkG.content.insertBefore(Ct9().content.cloneNode(!0),kkG.content.firstChild);wd6=kkG}nbF=wd6;zbt.call(Sxv,nbF.content);var x5t;_.wd("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");x5t=_.P("web_button_rework")&&_.G7("BUTTON_REWORK")||_.P("web_button_rework_with_live");_.lU=function(){return _.a.apply(this,arguments)||this};
_.S(_.lU,_.a);_.lU.prototype.created=function(){this.openPopupConfig=_.gx("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.lU.prototype.onYtNavigate_=function(X){var H=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(X.detail.endpoint);H&&(this.ytOpenPopupBehavior.openPopup(H),X.stopPropagation(),X.preventDefault())};
_.ja.Object.defineProperties(_.lU,{template:{configurable:!0,enumerable:!0,get:function(){if(K0t===void 0){var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
var H=X.content,l=H.insertBefore;$5t===void 0&&($5t=document.createElement("template"));var b=$5t;l.call(H,b.content.cloneNode(!0),X.content.firstChild);K0t=X}X=K0t;return X}}});
_.lU.prototype.onYtNavigate_=_.lU.prototype.onYtNavigate_;_.T([_.k(_.cr.YtOpenPopupBehavior),_.N("design:type",Object)],_.lU.prototype,"ytOpenPopupBehavior",void 0);_.T([_.k(_.U5z.YtButtonBehavior),_.N("design:type",Object)],_.lU.prototype,"ytButtonBehavior",void 0);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],_.lU.prototype,"onYtNavigate_",null);
_.T([_.qR({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:x5t})],_.lU);var D5q;var tEF=_.P("web_button_rework")&&_.G7("BUTTON_REWORK")||_.P("web_button_rework_with_live"),oh=function(){var X=_.a.apply(this,arguments)||this;X.isPressed=!1;X.forceIconButton=!1;X.forceIconOnly=!1;X.forceModernIconButton=!1;X.skipCommandHandling=!1;X.alignByText=!1;X.fitToVisibleBounds=!0;X.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};X.onTap=function(H){_.QX(X.hostElement,"yt-service-request-sent-button-renderer",H)};
return X};
_.S(oh,_.a);_.R=oh.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.R.onClick=function(X){var H,l=this.disabled||((H=this.data)==null?void 0:H.isDisabled);H=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");l&&H&&X.stopPropagation()};
_.R.computeIcon=function(){var X,H,l=(X=this.data)==null?void 0:(H=X.icon)==null?void 0:H.iconType;if(l)return _.jL(l)};
_.R.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.R.handleUpdateButtonAction=function(X){X=_.f(X,D6F);var H=_.f(X==null?void 0:X.updatedButton,_.yB);if(this.data&&X&&H){var l=this.data;l.targetId&&X.targetId&&l.targetId===X.targetId&&(this.data=H)}};
_.ja.Object.defineProperties(oh.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var X=this;if(this.data){var H=Mpk({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.QX(X.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.QX(X.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});H.alignByText=this.alignByText;return H}}}});
_.ja.Object.defineProperties(oh,{template:{configurable:!0,enumerable:!0,get:function(){if(D5q===void 0){var X=document.createElement("template");_.n(X,'\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>');D5q=X}X=D5q;return X}}});
oh.prototype.onClick=oh.prototype.onClick;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],oh.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],oh.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],oh.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],oh.prototype,"isPressed",void 0);
_.T([_.g(),_.N("design:type",Object)],oh.prototype,"forceIconButton",void 0);_.T([_.g(),_.N("design:type",Object)],oh.prototype,"forceIconOnly",void 0);_.T([_.g(),_.N("design:type",Object)],oh.prototype,"forceModernIconButton",void 0);_.T([_.g(),_.N("design:type",Object)],oh.prototype,"skipCommandHandling",void 0);_.T([_.g(),_.N("design:type",Object)],oh.prototype,"alignByText",void 0);_.T([_.g(),_.N("design:type",Object)],oh.prototype,"buttonTooltipPosition",void 0);
_.T([_.g(),_.N("design:type",Object)],oh.prototype,"fitToVisibleBounds",void 0);_.T([_.g({computed:"computeTooltip(data)"}),_.N("design:type",Object)],oh.prototype,"tooltip",void 0);_.T([_.g(),_.N("design:type",Object)],oh.prototype,"overrides",void 0);_.T([_.g(),_.N("design:type",Boolean)],oh.prototype,"disabled",void 0);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],oh.prototype,"onClick",null);
_.T([_.x("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.N("design:type",Object),_.N("design:paramtypes",[])],oh.prototype,"computedButtonShape",null);_.T([_.qR({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!tEF,cssBuildOptOut:!0}),_.qR({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!tEF,cssBuildOptOut:!0})],oh);var W06;var EbQ;var bU=function(){var X=_.a.apply(this,arguments)||this;X.empty_=!0;X.loadTime=Infinity;X.pendingPaint=!1;X.hasChange_=!1;X.oldThumbnail_=null;X.oldDelayedSrc_="";X.objectURL_=null;return X};
_.S(bU,_.a);_.R=bU.prototype;_.R.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.R.ready=function(){var X=this.shouldShowPlaceholder_();_.TW(this.hostElement,"no-transition",!0);X&&this.hostElement.classList.add("with-placeholder")};
_.R.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.R.isThumbPreloaded_=function(X){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",X)};
_.R.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||gbq};
_.R.computeThumbnailSrc_=function(X){return X&&X.thumbnails?_.G0(X.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.R.computeAlt_=function(){var X=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&X||""};
_.R.thumbnailChanged_=function(){var X=_.C([this.thumbnail,this.oldThumbnail_]),H=X.next().value;X=X.next().value;this.oldThumbnail_=H;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(X=this.computeThumbnailSrc_(X),this.computeThumbnailSrc_(H)===X))return;_.P("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(H)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):H&&_.G7("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.N0(this,this.onReload_):_.N0(this,this.onShow_):this.resetImage_();H&&(this.hostElement.style.opacity=""+H.opacity)}};
_.R.delayedSrcChanged_=function(){var X=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===X||this.resetImage_()};
_.R.setSrc_=function(X){X?(_.mh(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.mh(this.hostElement).querySelector("#img").src=X):(_.mh(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.R.resetImage_=function(){eb8(this.hostElement);this.empty_=!0;this.setSrc_(gbq);this.ytRendererBehavior.invalidate(!1)};
_.R.observePlaceholderColor_=function(){var X=this.thumbnail&&this.thumbnail.placeholderColor;X?this.hostElement.style.backgroundColor=_.BM(X):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.R.onLoad_=function(){_.mh(this.hostElement).querySelector("#img").src&&_.mh(this.hostElement).querySelector("#img").src!==gbq&&(ufz(this.hostElement),this.notifyOnLoaded&&_.QX(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.R.onError_=function(){var X=this;if(_.P("web_use_cache_for_image_fallback"))zb8(_.mh(this.hostElement).querySelector("#img").src).then(function(H){X.objectURL_=_.I$(H).toString();X.setSrc_(X.objectURL_)}).catch(function(){_.P("kevlar_woffle_fallback_image")&&X.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.R.onPrescanVisible=function(){this.onShow_()};
_.R.onVisible=function(){if(_.P("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.R.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var X=this.computeSrc_();X!==_.mh(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(X))}};
_.R.onReload_=function(){this.empty_=!1;var X=this.computeSrc_();X!==_.mh(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(X))};
_.R.shouldShowPlaceholder_=function(){return _.P("kevlar_thumbnail_bg")};
bU.prototype.observePlaceholderColor_=bU.prototype.observePlaceholderColor_;bU.prototype.delayedSrcChanged_=bU.prototype.delayedSrcChanged_;bU.prototype.thumbnailChanged_=bU.prototype.thumbnailChanged_;_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],bU.prototype,"alt",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],bU.prototype,"ariaHidden",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],bU.prototype,"ariaLabel",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],bU.prototype,"hidden",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],bU.prototype,"id",void 0);_.T([_.k(_.Vk.YtVisibilityBehavior),_.N("design:type",Object)],bU.prototype,"ytVisibilityBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",String)],bU.prototype,"delayedSrc",void 0);
_.T([_.g(),_.N("design:type",Object)],bU.prototype,"thumbnail",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],bU.prototype,"loaded",void 0);_.T([_.g(),_.N("design:type",Boolean)],bU.prototype,"notifyOnLoaded",void 0);_.T([_.g(),_.N("design:type",Number)],bU.prototype,"height",void 0);_.T([_.g(),_.N("design:type",Number)],bU.prototype,"width",void 0);_.T([_.g({value:function(){return"width"}}),
_.N("design:type",String)],bU.prototype,"dimension",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],bU.prototype,"fit",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],bU.prototype,"fitHeight",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],bU.prototype,"fitWidth",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],bU.prototype,"objectFit",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],bU.prototype,"objectPosition",void 0);_.T([_.g(),_.N("design:type",String)],bU.prototype,"preferredThumbnail",void 0);_.T([_.g({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.N("design:type",String)],bU.prototype,"alt_",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],bU.prototype,"sharedTooltipText",void 0);
_.T([_.g(),_.N("design:type",Boolean)],bU.prototype,"ftlEligible",void 0);_.T([_.g({value:void 0}),_.N("design:type",String)],bU.prototype,"observeHiddenOption",void 0);_.T([_.g({value:"observe_once"}),_.N("design:type",String)],bU.prototype,"observePrescanOption",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],bU.prototype,"roundedContainer",void 0);
_.T([_.oi("thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bU.prototype,"thumbnailChanged_",null);_.T([_.oi("delayedSrc"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bU.prototype,"delayedSrcChanged_",null);_.T([_.Yh("thumbnail.placeholderColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bU.prototype,"observePlaceholderColor_",null);
_.T([_.qR({is:"yt-img-shadow",disableElementRegistration:!0})],bU);var gbq=_.G7("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.mr()(bU,"yt-img-shadow",function(){if(EbQ===void 0){var X=document.createElement("template");_.n(X,'\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">');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;W06===void 0&&(W06=document.createElement("template"));var b=W06;l.call(H,b.content.cloneNode(!0),X.content.firstChild);EbQ=X}X=EbQ;return X},{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 g0O;_.UR=new _.gz("SCREEN_MANAGER_TOKEN");g0O=new _.gz("LOG_INITIAL_SCREEN_TOKEN");var Gkv=hw({entities:{}});_.$S=F8(Gkv)(Gkv.entities,{selectSfvAudioItemPlaybackState:function(X,H){var l,b;X=(b=_.JY(X,"sfvAudioItemCurrentlyPlayingEntity",H))!=null?b:void 0;return(l=X==null?void 0:X.sfvAudioItemPlaybackState)!=null?l:void 0},
playlistLoopStateEntitySelector:yUK,toggleMenuServiceItemEntitySelector:Vpk});_.KL=_.Z(function(X){function H(Y){return _.f(Y,_.fk)}
function l(){var Y=b().isTogglingDisabled||z()&&b().toggledIsTogglingDisabled,Uy=Y||y()?z():!z();t(Uy);G(!1);if(!Y){var Cy;(Cy=w)==null||Cy(!!Uy)}var sy;((sy=K)==null?0:sy())||_.Y8(_.jJ().resolve(_.UR),b().trackingParams);var FO;if(!Uy||!H(b().defaultButtonViewModel)||(FO=K)!=null&&FO()){var ub;!H(b().toggledButtonViewModel)||((ub=K)==null?0:ub())||_.Y8(_.jJ().resolve(_.UR),H(b().toggledButtonViewModel).trackingParams)}else _.Y8(_.jJ().resolve(_.UR),H(b().defaultButtonViewModel).trackingParams)}
var b=X.data,U=X.buttonShapeOverrides,K=X.disableExplicitClickLogging,w=X.onToggle,d=X.style,B=X.useOutlinedIcon,q=X.className,u=function(){var Y,Uy;return z()?(Y=X.animatedTextPropsToggled)==null?void 0:Y.call(X):(Uy=X.animatedTextPropsDefault)==null?void 0:Uy.call(X)},e=_.uL(function(){return u()?Object.assign({},u(),{shouldAnimate:W()}):void 0},void 0,"Zp4uoe"),y=function(){var Y;
return((Y=v())==null?void 0:Y.isToggled)!==void 0},V=_.C(_.Gx(function(){var Y,Uy,Cy;
return y()?(Y=v())==null?void 0:Y.isToggled:(Cy=U==null?void 0:(Uy=U())==null?void 0:Uy.toggled)!=null?Cy:b().isToggled})),p=V.next().value;
V=V.next().value;var z=p,t=V;V=_.C(_.Gx(function(){var Y,Uy;return(Y=X.animatedTextPropsToggled)==null?void 0:(Uy=Y.call(X))==null?void 0:Uy.shouldAnimate}));
p=V.next().value;V=V.next().value;var W=p,G=V;p=_.C(_.FU(!1,void 0,"mq3Zfe"));var r=p.next().value,Q=p.next().value,v=_.Aa(function(Y){a:{var Uy=b().entityKey,Cy=b().toggledStateEntitySelectorType;if(Cy)switch(Cy){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Uy)break;Y=_.$S.selectSfvAudioItemPlaybackState(Y,Uy);if(Y==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Y={isToggled:!0};break a}if(Y){Y={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":Y={isToggled:_.SMm(Y).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":Y={isToggled:_.SMm(Y).includes("engagement-panel-live-chat-item-section")};break a;default:_.x2(new _.qd("Error: entitySelectorType defined but not matched in selector.",Y,Cy))}Y=void 0}return Y}),J=function(){return Object.assign({},U==null?void 0:U(),{onToggle:l,
toggleable:!0,toggled:z(),focused:r()})};
return _.F("toggle-button-view-model",{"on:focusin":_.Nq(function(){var Y=_.jJ().resolve(_.c$(_.aE));Y&&Q(Y.isKeyBoardInUse());return!1}),
"on:focusout":_.Nq(function(){Q(!1);return!1})},_.F(_.M,{cond:function(){return z()?H(b().toggledButtonViewModel):H(b().defaultButtonViewModel)},
then:function(Y){return _.F(_.Qk,{data:Y,className:q,style:d,useOutlinedIcon:B,buttonOverrides:J,animatedTextProps:e})}}))},"fa");
_.KL.idomCompat={callbacks:{onToggle:!0}};_.gC(_.Z(function(X){return _.F("yt-toggle-button-view-model",{class:function(){var H;return(H=X.scopingClassName)==null?void 0:H.call(X)}},_.F(_.KL,{data:function(){var H;
return(H=X.data)==null?void 0:H.call(X)},
buttonShapeOverrides:function(){var H;return(H=X.overrides)==null?void 0:H.call(X)},
animatedTextPropsDefault:function(){var H;return(H=X.animatedTextPropsDefault)==null?void 0:H.call(X)},
animatedTextPropsToggled:function(){var H;return(H=X.animatedTextPropsToggled)==null?void 0:H.call(X)},
disableExplicitClickLogging:function(){var H;return(H=X.disableExplicitClickLogging)==null?void 0:H.call(X)},
onToggle:function(H){var l;return(l=X.onToggle)==null?void 0:l.call(X,H)},
style:function(){var H;return(H=X.style)==null?void 0:H.call(X)},
useOutlinedIcon:function(){var H;return(H=X.useOutlinedIcon)==null?void 0:H.call(X)},
className:function(){var H;return(H=X.className)==null?void 0:H.call(X)}}))},"ga"),"yt-toggle-button-view-model",{props:{data:_.zh,
buttonShapeOverrides:_.zh,overrides:_.zh,animatedTextPropsDefault:_.zh,animatedTextPropsToggled:_.zh,disableExplicitClickLogging:_.zh,onToggle:_.ta,style:_.zh,useOutlinedIcon:_.zh,className:_.zh,scopingClassName:_.zh}});var Rh=function(){return _.a.apply(this,arguments)||this};
_.S(Rh,_.a);Rh.prototype.onTap=function(X){X.stopPropagation();X=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Mf("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:X})):this.ytLiveChatReduxBehavior.dispatch(_.Us("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:X}))};
_.ja.Object.defineProperties(Rh.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.engagementState)==null?void 0:X.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var X=_.f(this.data.toggleButton,_.SR),H;if(Number(((H=this.likeCountState)==null?void 0:H.likeCountIfIndifferentNumber)||"0")===0){var l;H=((l=this.data.likeCountPlaceholder)==null?void 0:l.content)||""}else{var b,U,K;H=((b=this.likeCountState)==null?void 0:(U=b.likeCountIfIndifferent)==null?void 0:U.content)||((K=this.data.likeCountPlaceholder)==null?void 0:K.content)||""}var w,d;l=((w=this.likeCountState)==null?void 0:(d=
w.likeCountIfLiked)==null?void 0:d.content)||"1";w=_.f(X.toggledButtonViewModel,_.fk);return Object.assign({},X,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.f(X.defaultButtonViewModel,_.fk),{title:H})},toggledButtonViewModel:{buttonViewModel:Object.assign({},w,{title:l})}})}}}});
Rh.prototype.onTap=Rh.prototype.onTap;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Rh.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sK),_.N("design:type",Object)],Rh.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Rh.prototype,"data",void 0);
_.T([_.g({selectorArgs:["data.likeCountEntityKey"],selector:zQm}),_.N("design:type",Object)],Rh.prototype,"likeCountState",void 0);_.T([_.g({selectorArgs:["data.engagementStateKey"],selector:gCy}),_.N("design:type",Object)],Rh.prototype,"engagementState",void 0);_.T([_.x("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Rh.prototype,"isLiked",null);
_.T([_.x("data","likeCountState","isLiked"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rh.prototype,"toggleButton",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Rh.prototype,"onTap",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Rh);
_.O(Rh,"yt-live-chat-like-button-view-model",function(){if(iPD===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;ZP9===void 0&&(ZP9=document.createElement("template"));var b=ZP9;l.call(H,b.content.cloneNode(!0),X.content.firstChild);iPD=X}X=iPD;return X},{mode:0});var auq;var ZO6;var hL=function(){return _.a.apply(this,arguments)||this};
_.S(hL,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hL.prototype,"data",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],hL);
_.O(hL,"yt-live-chat-paid-message-footer-renderer",function(){if(ZO6===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;auq===void 0&&(auq=document.createElement("template"));var b=auq;l.call(H,b.content.cloneNode(!0),X.content.firstChild);ZO6=X}X=ZO6;return X},{mode:0});var iO6;var vbQ;var OO_;var m59,QxC=function(){if(m59!==void 0)return m59;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;OO_===void 0&&(OO_=document.createElement("template"));var b=OO_;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return m59=X};var FX=function(){return _.a.apply(this,arguments)||this};
_.S(FX,_.a);FX.prototype.onTap=function(X){X.stopPropagation()};
_.ja.Object.defineProperties(FX.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var X=_.f(this.data.replyButton,_.fk),H,l,b,U,K,w,d,B=Number(((H=this.replyCountState)==null?void 0:H.replyCountNumber)||"0")===0?(l=this.data)==null?void 0:(b=l.replyCountPlaceholder)==null?void 0:b.content:((U=this.replyCountState)==null?void 0:(K=U.replyCount)==null?void 0:K.content)||((w=this.data)==null?void 0:(d=w.replyCountPlaceholder)==null?void 0:d.content)||"",q;return Object.assign({},
X,{title:B,accessibilityText:(q=this.replyCountState)==null?void 0:q.replyButtonAccessibilityText})}}}});
_.ja.Object.defineProperties(FX,{template:{configurable:!0,enumerable:!0,get:function(){return QxC()}}});
FX.prototype.onTap=FX.prototype.onTap;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],FX.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sK),_.N("design:type",Object)],FX.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],FX.prototype,"data",void 0);
_.T([_.g({selectorArgs:["data.replyCountEntityKey"],selector:function(X,H){return _.JY(X.entities,"replyCountEntity",H)}}),
_.N("design:type",Object)],FX.prototype,"replyCountState",void 0);_.T([_.x("data","replyCountState"),_.N("design:type",Object),_.N("design:paramtypes",[])],FX.prototype,"buttonViewModel",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],FX.prototype,"onTap",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],FX);_.O(FX,"yt-live-chat-reply-button-view-model",function(){return QxC()},{mode:0});var TQC;var NQQ;var BP=function(){var X=_.a.apply(this,arguments)||this;X.ariaLabel="";return X};
_.S(BP,_.a);
BP.prototype.dataChanged=function(){for(var X=(0,_.cM)(_.mh(this.hostElement).querySelector("#image"));X.firstChild;)X.removeChild(X.firstChild);if(this.data)if(this.data.icon){var H=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(H.polymerController.icon="yt-sys-icons:shield_empty",H.polymerController.defaultToFilled=!0):H.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();X.appendChild(H)}else if(this.data.customThumbnail){H=document.createElement("img");
var l=_.d5y(this.data.customThumbnail.thumbnails,16);l?(H.src=l,X.appendChild(H),H.setAttribute("alt",this.hostElement.ariaLabel||"")):_.x2(new _.qd("Could not compute URL for thumbnail",this.data.customThumbnail))}};
BP.prototype.identity=function(X){return X};
BP.prototype.computeType=function(X){return Tx(X||void 0)};
BP.prototype.dataChanged=BP.prototype.dataChanged;_.T([_.g(),_.N("design:type",Object)],BP.prototype,"data",void 0);_.T([_.g({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.N("design:type",Object)],BP.prototype,"ariaLabel",void 0);_.T([_.g({computed:"computeType(data)",reflectToAttribute:!0}),_.N("design:type",String)],BP.prototype,"type",void 0);
_.T([_.g({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.N("design:type",String)],BP.prototype,"sharedTooltipText",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_new_shield_moderator_badge")}}),
_.N("design:type",Boolean)],BP.prototype,"enableNewModeratorBadge",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BP.prototype,"dataChanged",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],BP);
_.O(BP,"yt-live-chat-author-badge-renderer",function(){if(NQQ===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;TQC===void 0&&(TQC=document.createElement("template"));var b=TQC;l.call(H,b.content.cloneNode(!0),X.content.firstChild);NQQ=X}X=NQQ;return X},{mode:0});var cH9;var jxD;var qy=function(){return _.a.apply(this,arguments)||this};
_.S(qy,_.a);_.R=qy.prototype;_.R.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"}}}}};
_.R.computeBadgesInsideChip=function(X){return X?X.filter(function(H){return Tx(H.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.R.computeBadgesOutsideChip=function(X){return this.prependChatBadges||!X?[]:X.filter(function(H){H=Tx(H.liveChatAuthorBadgeRenderer);return H!=="verified"&&H!=="owner"})};
_.R.computeBadgesBeforeChip=function(X){return this.prependChatBadges&&X?X.filter(function(H){H=Tx(H.liveChatAuthorBadgeRenderer);return H!=="verified"&&H!=="owner"}):[]};
_.R.computeIsHighlighted=function(X,H){var l=!!XIh(X,"owner"),b=!!XIh(X,"verified");X=!!XIh(X,"moderator");return(l||b&&!X)&&!H};
_.R.computeAuthorType=function(X){return AZh(X)};
_.R.computeAuthorClass=function(X,H){return H?(X?X+" ":"")+"single-line":X};
_.R.onSeedColorChanged=function(){_.P("live_chat_author_name_color_usernames")||_.P("live_chat_seed_color_usernames")||_.P("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):_.P("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
qy.prototype.onSeedColorChanged=qy.prototype.onSeedColorChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],qy.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],qy.prototype,"authorName",void 0);_.T([_.g(),_.N("design:type",Array)],qy.prototype,"authorBadges",void 0);
_.T([_.g({computed:"computeAuthorType(authorBadges)"}),_.N("design:type",String)],qy.prototype,"authorType",void 0);_.T([_.g({computed:"computeAuthorClass(authorType, singleLine)"}),_.N("design:type",String)],qy.prototype,"authorClass",void 0);_.T([_.g({computed:"computeBadgesInsideChip(authorBadges)"}),_.N("design:type",Array)],qy.prototype,"badgesInsideChip",void 0);_.T([_.g({computed:"computeBadgesOutsideChip(authorBadges)"}),_.N("design:type",Array)],qy.prototype,"badgesOutsideChip",void 0);
_.T([_.g({computed:"computeBadgesBeforeChip(authorBadges)"}),_.N("design:type",Array)],qy.prototype,"badgesBeforeChip",void 0);_.T([_.g({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.N("design:type",Boolean)],qy.prototype,"isHighlighted",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_new_shield_moderator_badge")}}),
_.N("design:type",Boolean)],qy.prototype,"enableNewModeratorTextColor",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],qy.prototype,"singleLine",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],qy.prototype,"disableHighlighting",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],qy.prototype,"dashboardMoneyFeed",void 0);_.T([_.g({value:_.P("live_chat_prepend_badges"),reflectToAttribute:!0}),_.N("design:type",Boolean)],qy.prototype,"prependChatBadges",void 0);
_.T([_.g(),_.N("design:type",String)],qy.prototype,"authorNameColor",void 0);_.T([_.A2("#author-name"),_.N("design:type",HTMLDivElement)],qy.prototype,"username",void 0);_.T([_.Yh("authorNameColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qy.prototype,"onSeedColorChanged",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],qy);
_.O(qy,"yt-live-chat-author-chip",function(){if(jxD===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;cH9===void 0&&(cH9=document.createElement("template"));var b=cH9;l.call(H,b.content.cloneNode(!0),X.content.firstChild);jxD=X}X=jxD;return X},{mode:0});var rHQ;var JHt;var sR=function(){var X=_.a.apply(this,arguments)||this;X.debounceCommand=_.qO(function(H){X.ytComponentBehavior.resolveCommand(H)},1500);
return X};
_.S(sR,_.a);sR.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var X=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",H,l,b=this.isHearted?(H=this.data)==null?void 0:H.unheartCommand:(l=this.data)==null?void 0:l.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Mf("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:X}));(X=_.sl(b))&&this.debounceCommand(X)}};
_.ja.Object.defineProperties(sR.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var X,H;if(!((X=this.data)==null?0:(H=X.creatorThumbnail)==null?0:H.sources))return{};X={thumbnails:[]};H={};H.url=this.data.creatorThumbnail.sources[0].url;X.thumbnails.push(H);return X}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((X=this.engagementState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((H=this.engagementState)==null?void 0:H.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((l=this.engagementState)==null?void 0:l.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}}});
sR.prototype.onTap=sR.prototype.onTap;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],sR.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sK),_.N("design:type",Object)],sR.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],sR.prototype,"data",void 0);
_.T([_.g({selectorArgs:["data.engagementStateKey"],selector:gCy}),_.N("design:type",Object)],sR.prototype,"engagementState",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],sR.prototype,"thumbnailDetails",null);_.T([_.x("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sR.prototype,"isHearted",null);_.T([_.x("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sR.prototype,"isEditable",null);
_.T([_.x("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sR.prototype,"showCreatorView",null);_.T([_.x("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sR.prototype,"showButton",null);_.T([_.x("data","isHearted"),_.N("design:type",String),_.N("design:paramtypes",[])],sR.prototype,"label",null);_.T([_.x("data","isHearted"),_.N("design:type",Object),_.N("design:paramtypes",[])],sR.prototype,"heartHoverText",null);
_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sR.prototype,"onTap",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],sR);
_.O(sR,"yt-live-chat-creator-heart-view-model",function(){if(JHt===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;rHQ===void 0&&(rHQ=document.createElement("template"));var b=rHQ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);JHt=X}X=JHt;return X},{mode:0});var L0Q=function(){this.internalMap={}};
_.R=L0Q.prototype;_.R.contains=function(X){return Object.prototype.hasOwnProperty.call(this.internalMap,X)};
_.R.get=function(X){if(this.contains(X))return this.internalMap[X]};
_.R.set=function(X,H){this.internalMap[X]=H};
_.R.getKeys=function(){return Object.keys(this.internalMap)};
_.R.remove=function(X){delete this.internalMap[X]};var My=function(){this.mappings=new L0Q;this.errorCallbacks=new Set};
My.prototype.getModuleId=function(X){return X.serviceId.getModuleId()};
My.prototype.get=function(X){a:{var H=this.mappings.get(X.toString());switch(H.type){case "mapping":X=H.value;break a;case "factory":H=H.value();this.mappings.set(X.toString(),{type:"mapping",value:H});X=H;break a;default:X=_.Hp(H)}}return X};
My.prototype.registerService=function(X,H){this.mappings.set(X.toString(),{type:"mapping",value:H});return X};
My.prototype.onLoadError=function(X){var H=this;this.errorCallbacks.add(X);return function(){H.errorCallbacks.delete(X)}};
new My;var Yxt=function(){};
_.R=Yxt.prototype;
_.R.JSC$14488_getRequest=function(X,H,l){H=H===void 0?{}:H;l=l===void 0?Bc6:l;var b=H;if(this.isNavigationCommand()){var U,K=(U=_.f(X==null?void 0:X.commandMetadata,_.Ip))==null?void 0:U.url;b=_.zW(X.clickTrackingParams,!0,!1,K,this.JSC$14488_getClientScreen(b))}else b=_.zW(X.clickTrackingParams,!1,this.includeCsn);b={context:b};if(U=this.getExtension(X))return this.JSC$14488_buildRequest(b,U,H),U=this.getApiUrl(X),K=Object.assign({},{command:X},this.getRequestConfig(X,H)),b={input:U,requestShell:zP(U),
innerTubeRequest:b,config:K},b.config.authStrategy?b.config.authStrategy.identity=l:b.config.authStrategy={identity:l},(X=this.JSC$14488_getRequestKey(X,H))&&!b.config.requestKey&&(b.config.requestKey=X),b;X=new _.qd("Error: Failed to create Request from Command.",X);_.n2(X)};
_.R.getApiUrl=function(X){var H=_.E9(this.getApiPaths(X)),l;(X=(l=_.f(X.commandMetadata,_.Ip))==null?void 0:l.apiUrl)&&(H=X);return v8h(ikh(H))};
_.R.isNavigationCommand=function(){return!1};
_.R.JSC$14488_getClientScreen=function(){};
_.R.JSC$14488_getRequestKey=function(){};
_.R.getRequestConfig=function(){};
_.ja.Object.defineProperties(Yxt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var uU=function(){};
_.S(uU,Yxt);uU.prototype.JSC$14495_getStoreKey=function(){};
uU.prototype.JSC$14488_getRequestKey=function(X,H){H=H===void 0?{}:H;return this.JSC$14495_getStoreKey(X,H)};var eZ=function(){};
_.S(eZ,uU);eZ.prototype.JSC$14488_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:zP("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
eZ.prototype.getApiPaths=function(){return[]};
eZ.prototype.getExtension=function(){};
eZ.prototype.JSC$14488_buildRequest=function(){};var Iu_={},AHD=(Iu_.GET_DATASYNC_IDS=e2(eZ),Iu_);var XoY,HE9,lT9,CqH,K2q,yK,$cF,oCQ,UcQ,bE6;XoY="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" ");HE9=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.S2=function(X,H,l,b,U,K,w,d,B){this.endpointMap=X;this.networkManager=H;this.authService=l;this.responseProcessorMap=b;this.innertubeResponseStore=U;this.contextProcessors=K;this.asyncContextProcessors=w;this.localInnertubeRouter=d;this.requestSequencer=B;this.inflightRequests=new Map;X.signalEndpointMap||(X.signalEndpointMap={});X.signalEndpointMap=Object.assign({},AHD,X.signalEndpointMap)};
lT9=function(X,H,l,b,U,K,w,d,B){if(_.S2.instance!==void 0){if(b=_.S2.instance,X=[X!==b.endpointMap,H!==b.networkManager,l!==b.authService,U!==b.innertubeResponseStore,K!==b.contextProcessors,w!==b.asyncContextProcessors,d!==b.localInnertubeRouter],X.some(function(q){return q}))throw new _.qd("InnerTubeTransportService is already initialized",X);
}else _.S2.instance=new _.S2(X,H,l,b,U,K,w,d,B)};
_.nl=function(X,H,l){var b=b===void 0?Bc6:b;var U=oCQ(X,H);return U?new _.UA(function(K,w){var d,B,q,u,e;return _.h(function(y){switch(y.nextAddress){case 1:return y.yield(U,2);case 2:d=y.yieldResult;B=d.JSC$14488_getRequest(H,l,b);if(!B){w(new _.qd("Error: Failed to build request for command.",H));y.jumpTo(0);break}e4(B.input);u=((q=B.requestShell)==null?void 0:q.mode)==="cors"?"cors":void 0;if(X.authService.syncHeaders){e=bE6(B.config,u);y.jumpTo(4);break}return y.yield(UcQ(B.config,u),5);case 5:e=
y.yieldResult;case 4:K($cF(X,B,e)),_.m5(y)}})}):_.Cq(new _.qd("Error: No request builder found for command.",H))};
CqH=function(X,H,l,b){var U=U===void 0?Bc6:U;var K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J;return _.h(function(Y){switch(Y.nextAddress){case 1:K=DBW(H,X.endpointMap);if(!K)throw new _.qd("Error: No streaming request builder found for command",H);w=K.JSC$14488_getRequest(H,l,U);if(!w)throw new _.qd("Failed to build YtRequest for streaming Command",H);if((d=X.localInnertubeRouter)==null||!d.shouldPreferLocalResponse(w.input,w.innerTubeRequest)){Y.jumpTo(2);break}return Y.yield(X.localInnertubeRouter.localInnertubeResponse(w.input,
w.innerTubeRequest),3);case 3:return B=Y.yieldResult,q={},B.playerResponse&&(yK(X,B.playerResponse,w),q.player=B.playerResponse,(u=b)==null||u(q,B)),B.watchNextResponse&&(yK(X,B.watchNextResponse,w),q.content=B.watchNextResponse,(e=b)==null||e(q,B)),Y.return(q);case 2:return Y.yield(K2q(X,w),4);case 4:V=((y=w.requestShell)==null?void 0:y.mode)==="cors"?"cors":void 0;if(X.authService.syncHeaders){p=bE6(w.config,V);Y.jumpTo(5);break}return Y.yield(UcQ(w.config,V),6);case 6:p=Y.yieldResult;case 5:return W=
(t=(z=w.requestShell)==null?void 0:z.headers)!=null?t:{},w.requestShell=Object.assign({},w.requestShell,{headers:Object.assign({},W,p)}),G=Object.assign({},w.requestShell),r=JSON.stringify(w.innerTubeRequest),w.requestShell.method==="POST"&&(G=Object.assign({},G,{body:r})),Q=function(Uy,Cy){yK(X,Cy.playerResponse||Cy.watchNextResponse||Cy.reelItemWatchResponse||Cy.reelWatchSequenceResponse,w);b==null||b(Uy,Cy);Cy.playerResponse&&e4G()},v={},Y.yield(RXt(X.networkManager,w.input,G,Q),7);
case 7:return v=Y.yieldResult,((J=w.config)==null?0:J.responseTick)&&_.sf(w.config.responseTick),Y.return(v)}})};
_.pg=function(X,H,l,b,U){U=U===void 0?{authStrategy:{identity:Bc6}}:U;var K=K===void 0?!0:K;var w=function(){};
w=bDk(lEK(l));H.context||(H.context=_.zW(b,K));return new _.UA(function(d){var B,q,u,e,y;return _.h(function(V){if(V.nextAddress==1)return B=ikh(l),q=_.S7(B),X.authService.syncHeaders?(u=bE6(U,q),V.jumpTo(2)):V.yield(UcQ(U,q),3);V.nextAddress!=2&&(u=V.yieldResult);e=v8h(ikh(l));y={input:e,requestShell:zP(e),innerTubeRequest:H,config:U};d($cF(X,y,u,w));_.m5(V)})})};
K2q=function(X,H){var l,b,U,K,w,d,B,q,u,e,y;return _.h(function(V){switch(V.nextAddress){case 1:if(!((l=H)==null?0:(b=l.innerTubeRequest)==null?0:b.context)){V.jumpTo(0);break}U=H.innerTubeRequest.context;if(!(X.asyncContextProcessors&&X.asyncContextProcessors.length>0)){V.jumpTo(3);break}K=[];w=_.C(X.asyncContextProcessors);for(d=w.next();!d.done;d=w.next())B=d.value,q=B.processContext(H),q.wrappedPromise_&&K.push(q.wrappedPromise_);if(!(K.length>0)){V.jumpTo(3);break}return V.yield(Promise.all(K),
3);case 3:u=_.C(X.contextProcessors||[]),e=u.next();case 6:if(e.done){V.jumpTo(0);break}y=e.value;return V.yield(y.processContext(U),7);case 7:e=u.next(),V.jumpTo(6)}})};
yK=function(X,H,l){var b;if(H&&!(H==null?0:(b=H.sequenceMetaData)==null?0:b.skipProcessing)&&X.responseProcessorMap){b=_.C(XoY);for(var U=b.next();!U.done;U=b.next())U=U.value,X.responseProcessorMap[U]&&X.responseProcessorMap[U].handleResponse(H,l)}};
$cF=function(X,H,l,b){b=b===void 0?function(){}:b;
var U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J,Y,Uy,Cy,sy,FO,ub,g8,mm,QZ,Bz,dt;return _.h(function(TK){switch(TK.nextAddress){case 1:w=(U=H.config)==null?void 0:(K=U.storeStrategy)==null?void 0:K.storeKey;if(!(w&&X.innertubeResponseStore&&X.innertubeResponseStore.has(w))||((d=H.config)==null?0:(B=d.storeStrategy)==null?0:B.disableCache)){TK.jumpTo(2);break}return TK.yield(X.innertubeResponseStore.get(w),3);case 3:q=TK.yieldResult;if(!q||q.isExpired()){TK.jumpTo(2);break}u=_.Nf(q);if(!_.P("web_process_response_store_responses")||
q.isProcessed()){TK.jumpTo(5);break}yK(X,u,H);return TK.yield(X.innertubeResponseStore.markAsProcessed(w),5);case 5:return TK.return(Promise.resolve(u));case 2:if((e=X.localInnertubeRouter)==null||!e.shouldPreferLocalResponse(H.input,H.innerTubeRequest)){TK.jumpTo(7);break}return TK.yield(X.localInnertubeRouter.localInnertubeResponse(H.input,H.innerTubeRequest),8);case 8:return y=TK.yieldResult,yK(X,y,H),TK.return(y);case 7:return TK.yield(K2q(X,H),9);case 9:return(z=(p=H.config)==null?void 0:p.requestKey)&&
X.inflightRequests.has(z)?V=X.inflightRequests.get(z):(t=JSON.stringify(H.innerTubeRequest),r=(G=(W=H.requestShell)==null?void 0:W.headers)!=null?G:{},H.requestShell=Object.assign({},H.requestShell,{headers:Object.assign({},r,l)}),Q=Object.assign({},H.requestShell),H.requestShell.method==="POST"&&(Q=Object.assign({},Q,{body:t})),((v=H.config)==null?0:v.requestTick)&&_.sf(H.config.requestTick),J=function(){return X.networkManager.fetch(H.input,Q,H.config)},V=X.requestSequencer?wot(X.requestSequencer,
H,J):J(),z&&X.inflightRequests.set(z,V)),TK.yield(V,10);
case 10:(Y=TK.yieldResult)&&_.P("web_streaming_player")&&Array.isArray(Y)&&(Y=Y[0].playerResponse);if(Y&&"error"in Y&&((Uy=Y)==null?0:(Cy=Uy.error)==null?0:Cy.details))for(sy=Y.error.details,FO=_.C(sy),ub=FO.next();!ub.done;ub=FO.next())g8=ub.value,(mm=g8["@type"])&&HE9.indexOf(mm)>-1&&(delete g8["@type"],Y=g8);z&&X.inflightRequests.has(z)&&X.inflightRequests.delete(z);((QZ=H.config)==null?0:QZ.responseTick)&&_.sf(H.config.responseTick);if(Y||(Bz=X.localInnertubeRouter)==null||!Bz.canProvideFallbackResponse(H.input,
H.innerTubeRequest)){TK.jumpTo(11);break}return TK.yield(X.localInnertubeRouter.localFallbackInnertubeResponse(H.input,H.innerTubeRequest),12);case 12:Y=TK.yieldResult;case 11:return yK(X,Y,H),((dt=H.config)==null?0:dt.processorTick)&&_.sf(H.config.processorTick),b(),TK.return(Y||void 0)}})};
_.zE=function(X,H){return xBO(H,X.endpointMap)};
oCQ=function(X,H){X=tpK(H,X.endpointMap);if(X!==void 0)return Promise.resolve(X)};
UcQ=function(X,H){var l,b,U,K;return _.h(function(w){if(w.nextAddress==1){U=(l=X)==null?void 0:(b=l.authStrategy)==null?void 0:b.sessionIndex;var d=w.yield;var B=_.rZ(SiO({sessionIndex:U}));return d.call(w,B,2)}K=w.yieldResult;return w.return(Promise.resolve(Object.assign({},WMh(H),K)))})};
bE6=function(X,H){var l;X=X==null?void 0:(l=X.authStrategy)==null?void 0:l.sessionIndex;l=SiO({sessionIndex:X});return Object.assign({},WMh(H),l)};var dc_,hXG,F2z,BK_,qgG,svQ,eXz,yD_,fL,VoD,PqH,u2z,fT_;dc_=0;hXG=/tone[1-5]/;F2z=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");BK_="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
qgG=Number.MAX_SAFE_INTEGER;svQ=RegExp("\ufe0f","g");_.VK=function(X){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;X&&_.MoC(this,X)};
_.MoC=function(X,H){try{_.Kt(H,{context:X,onSuccess:function(b,U){Array.isArray(U)?X.load(U):(b=new _.qd("Emoji manager JSON response was not an array!",{response:U}),_.n2(b))},
onError:function(b){b=new _.qd("Failed to retrieve emoji manager initial JSON data!",{url:H,statusCode:_.oF(b).toString()});_.x2(b)}})}catch(b){var l=new _.qd("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:H});
_.x2(l)}};
_.VK.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.VK.prototype.load=function(X,H){if(H)if(X.length)X=X.concat(H.emojis);else{this.emojis=H.emojis;this.emojiMap=H.emojiMap;this.emojiShortcutMap=H.emojiShortcutMap;this.emojiShortcutCharMap=u2z(H);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=H.emojiRegex;return}this.emojis=[].concat(_.LJ(new Set(this.emojis.concat(X))));this.hasInitializedShortcutCharMap=!1;X=Array(this.emojis.length);for(H=0;H<this.emojis.length;H++){var l=this.emojis[H];if(l.emojiId){this.emojiMap[l.emojiId]=l;this.emojiMap[l.emojiId].index=
H;for(var b=0;l.shortcuts&&b<l.shortcuts.length;b++)this.emojiShortcutMap[l.shortcuts[b].toLocaleLowerCase()]=l;X[H]=l.isCustomEmoji&&l.shortcuts?l.shortcuts[0]:l.emojiId}}X.sort(function(U,K){return K.length-U.length});
if(X.length)try{this.emojiRegex=new RegExp(X.join("|").replace("*","\\*"),"gi")}catch(U){this.emojiRegex=/$./}else this.emojiRegex=/$./};
eXz=function(X,H){H=_.C(H);for(var l=H.next();!l.done;l=H.next()){var b=l.value;if(b.emojiId&&X.emojiMap[b.emojiId]){l=Object.assign({},X.emojiMap[b.emojiId],b);X.emojiMap[b.emojiId]=l;var U=void 0;l.index&&((U=X.emojis[l.index])==null?void 0:U.emojiId)===b.emojiId&&(X.emojis[l.index]=l);b=void 0;if((b=l.shortcuts)==null?0:b.length)for(X.hasInitializedShortcutCharMap=!1,b=_.C(l.shortcuts),U=b.next();!U.done;U=b.next())X.emojiShortcutMap[U.value.toLocaleLowerCase()]=l}}};
yD_=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return b.yield(_.dD.getInstance(),2);if(b.nextAddress!=3)return(H=b.yieldResult)?b.yield(H.get("ytlc-emoji-pref"),3):b.return();(l=b.yieldResult)&&eXz(X,Object.keys(l).map(function(U){return{emojiId:U,stickyPrefId:l[U]}}).filter(function(U){return!!U.emojiId&&!!U.stickyPrefId}));
_.m5(b)})};
_.PP=function(X,H,l){return(X=X.emojiMap[H])&&(!X.isLocked||l!==void 0&&l)?X:void 0};
fL=function(X,H,l){l=_.PP(X,H,l===void 0?!1:l);var b=H.match("\u200d");l&&X.skinTone!==0&&(X=(b==null?void 0:b.length)===1?_.PP(X,H.replace("\u200d",F2z[X.skinTone]+"\u200d")):_.PP(X,H+F2z[X.skinTone]))&&(l=X);return l};
VoD=function(X,H){var l=X.emojiMap[H];return(l==null?0:l.stickyPrefId)?X.emojiMap[l.stickyPrefId]:fL(X,H)};
_.c6=function(X,H){X=X.emojiShortcutMap[H.toLocaleLowerCase()];return!X||X.isLocked?null:X};
PqH=function(X,H,l){return u2z(X,l===void 0?!1:l)[H]||{}};
u2z=function(X,H){H=H===void 0?!1:H;if(!X.hasInitializedShortcutCharMap){X.hasInitializedShortcutCharMap=!0;for(var l=0;l<X.emojis.length;l++){var b=X.emojis[l];if(!(b.isLocked||H&&b.isCustomEmoji&&b.emojiId&&!X.pickerCustomEmojiIds.includes(b.emojiId)))for(var U=0;b.shortcuts&&U<b.shortcuts.length;U++){var K=b.shortcuts[U];K.startsWith(":_")&&b.isCustomEmoji&&(X.emojiShortcutCharMap[":_"]==null&&(X.emojiShortcutCharMap[":_"]=Object.create(null)),X.emojiShortcutCharMap[":_"][K]=b);if(!(K.length<3||
!b.isCustomEmoji&&hXG.test(K))){var w=K.substr(0,3).toLocaleLowerCase();X.emojiShortcutCharMap[w]==null&&(X.emojiShortcutCharMap[w]=Object.create(null));X.emojiShortcutCharMap[w][K]=b}}}}return X.emojiShortcutCharMap};
_.VK.prototype.createEmoji=function(X,H){H=H===void 0?!0:H;var l=document.createElement("img");X.isCustomEmoji||l.classList.add("small-emoji");l.classList.add("emoji");l.classList.add("yt-formatted-string");l.src=X.image?_.G0(X.image.thumbnails,this.emojiSize)||"":"";var b=void 0;X.image&&X.image.accessibility&&X.image.accessibility.accessibilityData&&(b=X.image.accessibility.accessibilityData.label);l.alt=b?b:(X.isCustomEmoji&&X.shortcuts?X.shortcuts[0]:X.emojiId)||"";X.isCustomEmoji&&(l.dataset.emojiId=
X.emojiId);_.Jv&&(l.setAttribute("contenteditable","false"),l.setAttribute("unselectable","on"));H&&(X.shortcuts&&X.shortcuts.length&&l.setAttribute("shared-tooltip-text",X.shortcuts[0]),l.id="emoji-"+dc_++);return l};
_.VK.prototype.createDocumentFragment=function(X,H,l,b){H=H===void 0?!1:H;l=l===void 0?!0:l;b=b===void 0?!1:b;X=X.replace(svQ,"");for(var U=document.createDocumentFragment(),K=0,w,d=0;(w=this.emojiRegex.exec(X))!=null;){var B=_.PP(this,w[0])||_.c6(this,w[0]);!B||B.isCustomEmoji&&!H||(B=this.createEmoji(B,l),K!==w.index&&U.appendChild(document.createTextNode(X.substring(K,w.index))),U.appendChild(B),K=w.index+w[0].length,d++)}if(!b||d)return U.appendChild(document.createTextNode(X.substr(K))),U};
fT_=function(X,H,l){var b,U,K,w,d,B,q,u,e;return _.h(function(y){if(y.nextAddress==1){if(!H.emojiId||!X.emojiMap[H.emojiId])return y.return();b=Object.assign({},X.emojiMap[H.emojiId],{stickyPrefId:l});X.emojiMap[H.emojiId]=b;H.index&&((U=X.emojis[H.index])==null?void 0:U.emojiId)===H.emojiId&&(X.emojis[H.index]=b);if((K=H.shortcuts)==null?0:K.length)for(X.hasInitializedShortcutCharMap=!1,w=_.C(H.shortcuts),d=w.next();!d.done;d=w.next())B=d.value,X.emojiShortcutMap[B.toLocaleLowerCase()]=b;return y.yield(_.dD.getInstance(),
2)}if(y.nextAddress!=4)return(q=y.yieldResult)?y.yield(q.get("ytlc-emoji-pref"),4):y.jumpTo(0);e=(u=y.yieldResult)!=null?u:{};e[H.emojiId]=l;return y.yield(q.set("ytlc-emoji-pref",e,qgG),0)})};
_.pL=new _.VK;var zXH;_.SZ={};
zXH={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.P("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:_.P("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 kM(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 X=_.mh(this.hostElement||this).querySelector("#inline-action-button-container");X&&X.setAttribute("aria-hidden","true");this.menuButton=_.mh(this.hostElement).querySelector("#menu-button")},
attached:function(){var X=this.menuButton;X&&(X.addEventListener("focusin",_.J2(this,this.onMenuButtonFocus_)),X.addEventListener("focusout",_.J2(this,this.onMenuButtonBlur_)))},
detached:function(){var X=this.menuButton;X&&(X.removeEventListener("focusin",_.J2(this,this.onMenuButtonFocus_)),X.removeEventListener("focusout",_.J2(this,this.onMenuButtonBlur_)))},
identity:_.GK,truthy:function(X){return!!X},
computeTimestampString:function(X){return X?X.timestampText?this.getSimpleString(X.timestampText):this.TIME_FORMATTER.format(new Date(X.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(X){return X},
computeMenuVisible_:function(X,H){return X||H},
computeHasInlineActionButtons:function(X){if(!X)return!1;var H,l;return!((H=X.inlineActionButtons)==null||!H.length)||!((l=X.additionalInlineActionButtons)==null||!l.length)},
createDocumentFragmentFromString:function(X){var H=_.pL.createDocumentFragment.bind(_.pL),l;if((l=this.participantsManager)==null||!l.viewerRegex)return H(X);l=document.createDocumentFragment();for(var b=0,U;(U=this.participantsManager.viewerRegex.exec(X))!=null;){if(U.index>0){var K=":"+U[0]+":";if((_.PP(_.pL,K)||_.c6(_.pL,K))&&X.indexOf(K)===U.index-1)continue}l.appendChild(H(X.substring(b,U.index)));b=document.createElement("span");b.appendChild(H(U[0]));b.classList.add("mention");l.appendChild(b);
b=U.index+U[0].length}l.appendChild(H(X.substring(b)));return l},
createDocumentFragment:function(X){var H=document.createDocumentFragment();if(X.simpleText)return H.appendChild(this.createDocumentFragmentFromString(X.simpleText)),H;if(!X.runs)return H;for(var l=0;l<X.runs.length;l++){var b=X.runs[l];if(b.emoji)H.appendChild(_.pL.createEmoji(b.emoji));else if(b.text)if(b.navigationEndpoint){var U=document.createElement("a");U.classList.add("yt-simple-endpoint");Qsm(U,b.navigationEndpoint);_.mh(U).appendChild(this.createDocumentFragmentFromString(b.text));H.appendChild(U)}else H.appendChild(this.createDocumentFragmentFromString(b.text))}return H},
hasModerationOverlayVisible:function(){var X;return((X=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:X.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(X){X.composedPath().some(function(H){return(H=H instanceof Element?H:null)?H.tagName&&(H.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||H.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.P("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(X)},
colorFromDecimal:function(X){return xiz(X)},
markAsDeleted:function(X,H){this.set("data.deletedStateMessage",X);this.set("data.showOriginalContentMessage",H)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(X){if(this.data.contextMenuEndpoint){var H=_.jJ().resolve(_.o6),l=this.data.contextMenuEndpoint,b;(b=_.S2.instance)&&_.zE(b,l)?(H=pov(H,l),b=_.pg(b,{},H)):b=_.SgQ(H,l);b.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);X&&X.stopPropagation()}},
handleGetContextMenuResponse_:function(X){var H=_.S2.instance;H&&_.zE(H,{liveChatEndpoint:{}})||(X=X.response);X.liveChatItemContextMenuSupportedRenderers&&X.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(X.liveChatItemContextMenuSupportedRenderers.menuRenderer);X.actions&&_.TP(this.hostElement,"yt-live-chat-actions",[X.actions])},
handleGetContextMenuError:function(X){if(X instanceof Error||X instanceof Object||X instanceof String)var H=X;_.n2(new _.qd("Error encountered calling GetLiveChatItemContextMenu",H))},
showContextMenu_:function(X){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:X}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.QX(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.QX(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.SZ.YtLiveChatItemBehavior=[zXH,_.uJ.YtComponentBehavior,_.cr.YtOpenPopupBehavior];_.zl=function(){};var nCG;var k_Q;var xcY;var Dc6;var nL=function(){var X=_.a.apply(this,arguments)||this;X.active=!1;X.identity=_.GK;return X};
_.S(nL,_.a);nL.prototype.dataChanged=function(){this.active=!1};
nL.prototype.onClick=function(){_.QX(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
nL.prototype.dataChanged=nL.prototype.dataChanged;_.T([_.g(),_.N("design:type",Object)],nL.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],nL.prototype,"active",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nL.prototype,"dataChanged",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],nL);
_.O(nL,"yt-live-chat-text-input-field-suggestion",function(){if(Dc6===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;xcY===void 0&&(xcY=document.createElement("template"));var b=xcY;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Dc6=X}X=Dc6;return X},{mode:0});_.kS=function(X,H,l){return CustomEvent.call(this,X,{detail:{value:H,path:l}})||this};
_.S(_.kS,CustomEvent);_.xS=function(){var X=_.a.apply(this,arguments)||this;X.viewerName=null;X.actionMap={"yt-live-chat-actions":"onChatMessage_"};X.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];X.PARTICIPANT_TIME_USEC_=3E8;return X};
_.S(_.xS,_.a);_.R=_.xS.prototype;_.R.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.R.addParticipant=function(X){var H=_.aLm(this.participants,X,function(b,U){b=b[Object.keys(b)[0]];U=U[Object.keys(U)[0]];b=String(_.D8(b.authorName)).toLowerCase();U=String(_.D8(U.authorName)).toLowerCase();return b<U?-1:b==U?0:1}.bind(this));
if(H>=0){var l=this.participants[H];l[Object.keys(l)[0]].timestampUsec&&this.splice("participants",H,1,X)}else this.splice("participants",-H-1,0,X);X=X[Object.keys(X)[0]];H=_.D8(X.authorName).toLocaleLowerCase();l=H.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(l)||(this.allParticipantsCharMap_[l]={});this.allParticipantsCharMap_[l][H]=X};
_.R.getAuthorsFromPrefix=function(X){return this.allParticipantsCharMap_.hasOwnProperty(X)?this.allParticipantsCharMap_[X]:null};
_.R.computeViewerRegex_=function(X){if(!X)return null;X=X.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var H=X.indexOf("@")===0&&_.P("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(H+X.replace(/ /g,"\\s*")+"|^"+X.replace(/ /g,"\\s*")+"$|^"+X.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+X.replace(/ /g,"\\s*")+"$|(?<=\\s)"+X.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.R.checkForStaleParticipants_=function(){var X=this;this.trimOldParticipants_();this.asyncHandle_&&Rcy(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.fc(function(){X.checkForStaleParticipants_()},3E4))};
_.R.onChatMessage_=function(X){var H=this,l=Date.now()*1E3;X.forEach(function(b){if(b=_.f(b,Cyz)){b=b.item;var U=Object.keys(b)[0];H.SUPPORTED_ITEM_TYPES_.indexOf(U)!=-1&&b[U].timestampUsec>=l-H.PARTICIPANT_TIME_USEC_&&H.addParticipant(b)}},this);
this.checkForStaleParticipants_()};
_.R.trimOldParticipants_=function(){for(var X=Date.now()*1E3,H=this.participants.length-1;H>=0;H--){var l=this.participants[H];l=l[Object.keys(l)[0]];l.timestampUsec&&l.timestampUsec<X-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",H,1)}};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],_.xS.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],_.xS.prototype,"viewerName",void 0);_.T([_.g({computed:"computeViewerRegex_(viewerName)"}),_.N("design:type",Object)],_.xS.prototype,"viewerRegex",void 0);_.T([_.g({value:function(){return[]},
notify:!0}),_.N("design:type",Array)],_.xS.prototype,"participants",void 0);_.T([_.qR({is:"yt-live-chat-participants-manager",noInjection:!0})],_.xS);var toz=/.*([:@#].*?)$/,Do=/\u00a0/g,W2G=String.fromCharCode(160),ECF={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"},tL=function(){var X=_.a.apply(this,arguments)||this;X.disabled=!1;X.liveChatRichMessageInput=null;X.messageInput=null;X.isValidWithNoInputText=!1;X.suggestions=[];X.emojiManager=_.pL;X.inputMethodEditorActive=
!1;X.suggestionIndex=-1;X.JSC$14546_lastSuggestionRange=null;return X};
_.S(tL,_.a);_.R=tL.prototype;_.R.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.R.attached=function(){_.Hf&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.R.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.R.dataChanged=function(){if(!this.ignoreColorMapping){var X=!1,H={},l;for(l in ECF)this.data&&this.data.hasOwnProperty(l)&&(H[ECF[l]]=this.colorFromDecimal(this.data[l]),X=!0);X&&_.j4(this.hostElement,H)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.R.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.R.colorFromDecimal=function(X){X=Math.floor(Number(X));return"rgba("+[X>>16&255,X>>8&255,X&255,(X>>24&255)/255].join()+")"};
_.R.preventDrag=function(X){X.dataTransfer&&(X.dataTransfer.dropEffect="none");X.preventDefault()};
_.R.preventResize=function(X){X.returnValue=!1};
_.R.onInputChange=function(){var X=this.characterCount,H=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&H&&H.remove();if(!H&&this.characterCount>this.maxCharacterLimit){var l=window.getSelection();if(l){var b=l.getRangeAt(0);l.removeAllRanges();l.addRange(b)}}if(l=this.getCurrentRange())b=this.calculateTextBeforeRange(l),this.completeEmojisInRange(l,b,!0)||this.updateSuggestions(l,b);b=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(b);
_.QX(this.hostElement,"yt-live-chat-message-input-change",b);H&&this.characterCount===0&&H.remove();l&&l.commonAncestorContainer.parentElement.id==="input"&&l.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>X):l&&!l.collapsed&&l.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(X=this.input.childNodes.length-1;X>=0;X--)this.input.childNodes[X].nodeName==="BR"&&this.input.childNodes[X].remove()};
_.R.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.R.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var X=this.getCurrentRange();X&&X.commonAncestorContainer.parentElement.id==="input"&&X.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.R.mergeOverflowText=function(X){if(X){var H=document.createRange();H.selectNodeContents(X);H=H.extractContents();this.input.insertBefore(H,X)}};
_.R.checkRangeAtEndOfInput=function(){var X=this.getCurrentRange();if(X){var H=_.mh(this.hostElement).querySelector("#overflow-text"),l=document.createRange();H&&H.previousSibling?H.previousSibling instanceof HTMLImageElement?l.selectNode(H.previousSibling):l.selectNodeContents(H.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?l.selectNode(this.input.lastChild):l.selectNodeContents(this.input.lastChild));l.collapse(!1);return l.isPointInRange(X.startContainer,
X.startOffset)}return!1};
_.R.handleOverflowText=function(X){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var H=_.mh(this.hostElement).querySelector("#overflow-text"),l=this.getCurrentRange();this.input.normalize();X=this.checkRangeAtEndOfInput()&&X;this.mergeOverflowText(H);for(var b,U=0,K=0,w,d=this.input.childNodes,B=0;B<d.length;B++){var q=d[B];q instanceof Text?(K+=q.textContent.length,K>this.maxCharacterLimit&&(b=q,U=this.maxCharacterLimit+q.textContent.length-K)):q instanceof HTMLImageElement&&
(b=void 0,K=q.dataset.emojiId&&((b=this.data)==null?0:b.emojiCharacterCount)?K+this.data.emojiCharacterCount:K+q.alt.length,b=this.input,U=B);if(K>this.maxCharacterLimit&&b){w=document.createRange();w.collapse(!1);H?(K=this.input.lastChild.previousSibling,K instanceof Text?w.setEnd(this.input.lastChild.previousSibling,K.textContent.length):K instanceof HTMLImageElement&&w.setEnd(this.input,this.input.childNodes.length-1)):w.selectNodeContents(this.input);w.setStart(b,U);break}}w&&(b=!1,l&&(X=w.isPointInRange(l.startContainer,
l.startOffset-1)),H||(H=document.createElement("span"),H.id="overflow-text",H.textContent="",H.setAttribute("contenteditable","true"),_.mh(_.mh(this.hostElement).querySelector("#input")).appendChild(H),b=!0),H&&(l=w.extractContents(),H.insertBefore(l,H.firstChild),X&&H.firstChild&&(l=document.createRange(),b?l.setStartAfter(H.lastChild):l.setStartAfter(H.firstChild),l.collapse(!0),H=window.getSelection(),H.removeAllRanges(),H.addRange(l))))}};
_.R.checkForDuplicateSpans=function(){for(var X=0;X<this.input.childNodes.length;X++){var H=this.input.childNodes[X];if(H.nodeName==="SPAN"){var l=document.createRange();l.selectNodeContents(H);l=l.extractContents();this.input.insertBefore(l,H);H.remove()}}this.handleOverflowText(!0)};
_.R.getCurrentRange=function(){var X=window.getSelection();return X&&X.rangeCount?X.getRangeAt(0).cloneRange():null};
_.R.getInputRange=function(){var X=this.getCurrentRange();if(X){for(var H=X.commonAncestorContainer,l=!1,b=_.mh(this.hostElement).querySelector("#input");H;){if(H===b){l=!0;break}H=H.parentNode}l||(X=null)}X||(X=this.getRangeAtEnd());return X};
_.R.getRangeAtEnd=function(){var X=document.createRange(),H=_.mh(this.hostElement).querySelector("#input").lastChild;!H||H.nodeName!=="#text"&&H.nodeName!=="SPAN"?(X.selectNodeContents(_.mh(this.hostElement).querySelector("#input")),X.collapse(!1)):H.nodeName==="#text"?X.setStart(H,H.textContent.length):X.setStart(H,H.childNodes.length);return X};
_.R.getChatParticipantSuggestions=function(X,H,l,b){var U=_.P("live_chat_enable_handles_web_text_input_update");if(H)for(var K in H)if(K.indexOf(X)===0||U&&K.indexOf(l+X)===0){var w=H[K],d=_.D8(w.authorName);b.push({suggestion:{author:!0,authorType:l,image:w.authorPhoto,alt:d,text:d}});if(b.length>=64)break}};
_.R.getSuggestions=function(X){var H=[],l=X.substring(0,3),b=PqH(_.pL,l,!0);if(b)for(var U in b)if(U.toLocaleLowerCase().indexOf(X)===0){var K=b[U];if(K&&K.emojiId){if(K=VoD(_.pL,K.emojiId)){var w=void 0,d=void 0,B=void 0,q=void 0,u=((w=K.image)==null?0:(d=w.accessibility)==null?0:(B=d.accessibilityData)==null?0:B.label)||K.isCustomEmoji?(q=K.shortcuts)==null?void 0:q[0]:K.emojiId;H.push({suggestion:{emoji:!0,image:K.image,alt:u,text:U,textToInsertWhenSelected:K.isCustomEmoji?U:u}})}if(H.length>=
64)break}}if(!this.participantsManager)return null;if(l.indexOf("@")===0||l.indexOf("#")===0)b=l.charAt(0),X=X.substring(1),U=_.P("live_chat_enable_handles_web_text_input_update"),l.indexOf("@")===0&&U&&(U=this.participantsManager.getAuthorsFromPrefix(l.substring(0,2)),this.getChatParticipantSuggestions(X,U,b,H)),l=l.substring(1),l=this.participantsManager.getAuthorsFromPrefix(l),this.getChatParticipantSuggestions(X,l,b,H);return H?H.sort(function(e,y){return y.suggestion.text<e.suggestion.text?-1:
y.suggestion.text===e.suggestion.text?0:1}):null};
_.R.insertSuggestion=function(X){var H=_.P("live_chat_enable_handles_web_text_input_update"),l=X.authorType;H=X.text.indexOf(l)===0&&H?X.text+W2G:l+X.text+W2G;X.emoji?this.insertTextAtRange(this.JSC$14546_lastSuggestionRange,X.textToInsertWhenSelected||""):X.author&&this.insertTextAtRange(this.JSC$14546_lastSuggestionRange,H)};
_.R.updateSuggestionsAtCaret=function(){var X=this.getCurrentRange();X&&this.updateSuggestions(X,this.calculateTextBeforeRange(X))};
_.R.offsetStartOfRangeBy=function(X,H){for(;H>0;)if(X.startOffset-H>=0){X.setStart(X.startContainer,X.startOffset-H);break}else{H=X.startContainer instanceof HTMLImageElement?H-X.startContainer.alt.length:H-X.startOffset;var l=X.startContainer.previousSibling;if(!l){X.setStart(X.startContainer,0);break}if(_.P("live_chat_require_space_for_autocomplete_emoji")){var b=void 0,U=void 0;X.setStart(l,((b=l)==null?void 0:(U=b.textContent)==null?void 0:U.length)||0)}else X.setStart(l,l.childNodes.length||
0)}};
_.R.updateSuggestions=function(X,H){var l=this;this.JSC$14546_lastSuggestionRange&&(this.JSC$14546_lastSuggestionRange.detach(),this.JSC$14546_lastSuggestionRange=null);if((H=toz.exec(H))&&H.length&&(H=H[H.length-1].toLocaleLowerCase(),H.length>2&&(this.offsetStartOfRangeBy(X,H.length),this.JSC$14546_lastSuggestionRange=X,(X=this.getSuggestions(H))&&X.length))){this.suggestions=X;_.N0(this,function(){_.mh(l.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(X.length-1);return}this.dropdown.opened=!1};
_.R.completeEmojisInRange=function(X,H,l){var b=H.replace(/[\s\xa0]+$/,"");H=H.length-b.length;b=b.split(" ");b=b[b.length-1].trim().toLocaleLowerCase();var U=b.lastIndexOf(":");if(l&&!H&&U!==b.length-1)return!1;U!==-1&&(l=b.lastIndexOf(":",U-1),l!==-1&&(b=b.substring(l)));if((l=_.c6(_.pL,b))&&l.emojiId){l=VoD(_.pL,l.emojiId)||null;this.offsetStartOfRangeBy(X,b.length+H);var K,w,d,B;b=(((K=l)==null?0:K.isCustomEmoji)?(w=l)==null?void 0:(d=w.shortcuts)==null?void 0:d[0]:(B=l)==null?void 0:B.emojiId)||
"";H&&(b+=W2G);this.insertTextAtRange(X,b);this.dropdown.opened=!1;return!0}return!1};
_.R.onSuggestion=function(X){this.insertSuggestion(X.detail);this.dropdown.opened=!1};
_.R.onKeyPress=function(X){X.keyCode===13&&(X.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.QX(this.hostElement,"yt-live-chat-send-message"))};
_.R.completeEmojis=function(){var X=document.createRange(),H=_.mh(this.hostElement).querySelector("#input").lastChild;H?X.setStart(H,H.childNodes.length):(X.selectNodeContents(_.mh(this.hostElement).querySelector("#input")),X.collapse(!1));this.completeEmojisInRange(X,this.calculateTextBeforeRange(X),_.P("live_chat_require_space_for_autocomplete_emoji"))};
_.R.maybePreventTextFormatting=function(X){!_.IJ||!X.ctrlKey&&!X.metaKey||X.keyCode!==66&&X.keyCode!==73||(X.stopImmediatePropagation(),X.preventDefault())};
_.R.onKeyDown=function(X){this.maybePreventTextFormatting(X);if(this.dropdown.opened)switch(X.keyCode){case 27:this.dropdown.opened=!1;X.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;X.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);X.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),X.preventDefault()}};
_.R.onKeyUp=function(X){switch(X.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Jv)this.onInputChange()};
_.R.changeSuggestionIndex=function(X){if(this.dropdown.opened){var H=_.mh(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<H.children.length&&(H.children[this.suggestionIndex].active=!1);var l=this.suggestions.length;this.suggestionIndex=(X+l)%l;X=H.children[this.suggestionIndex];X.active=!0;H.scrollTop=X.offsetTop}};
_.R.onInputPaste=function(X){X.preventDefault();(X=X.clipboardData)&&X.types&&(X=X.getData("text/plain")||"",X=X.replace(/\n/g,""),this.insertText(X));(X=this.getCurrentRange())&&X.commonAncestorContainer.parentElement.id==="input"&&X.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.R.onFocus=function(){this._setFocused(!0)};
_.R.onBlur=function(){this._setFocused(!1)};
_.R.insertText=function(X){this.insertTextAtRange(this.getInputRange(),X)};
_.R.insertTextAtRange=function(X,H){if(X&&(X.collapsed||X.deleteContents(),H=_.pL.createDocumentFragment(H,!0,!1))){for(var l=_.C((H==null?void 0:H.childNodes)||[]),b=l.next();!b.done;b=l.next()){b=b.value;var U=void 0,K=void 0,w=void 0,d=void 0,B=void 0;(w=(U=window)==null?void 0:(K=U.ShadyCSS)==null?void 0:K.ScopingShim)==null||(B=(d=w).scopeNode)==null||B.call(d,b,this.hostElement.localName)}l=H.lastChild;X.insertNode(H);this.focused||this.input.focus();if(this.focused){X=X.cloneRange();X.selectNodeContents(l);
X.collapse(!1);if(H=window.getSelection())H.removeAllRanges(),H.addRange(X);X.commonAncestorContainer.parentElement.id==="input"&&X.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}X=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(X);_.QX(this.hostElement,"yt-live-chat-message-input-change",X)}};
_.R.setLiveChatRichMessageInput=function(X){_.mh(_.mh(this.hostElement).querySelector("#input")).textContent="";if(X&&X.textSegments){for(var H=0;H<X.textSegments.length;H++){var l=X.textSegments[H];l.text?_.mh(_.mh(this.hostElement).querySelector("#input")).appendChild(_.pL.createDocumentFragment(l.text,!0,!1)):l.emojiId&&(l=_.PP(_.pL,l.emojiId))&&_.mh(_.mh(this.hostElement).querySelector("#input")).appendChild(_.pL.createEmoji(l,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.R.setText=function(X){this.setLiveChatRichMessageInput(X?{textSegments:[{text:X}]}:null)};
_.R.calculateTextBeforeRange=function(X){var H="",l=X.startContainer;if(l&&l instanceof Text){var b;H=((b=l.textContent)==null?void 0:b.substring(0,X.startOffset))||"";l=l.previousSibling}for(;l&&l instanceof Text;)H=l.textContent+H,l=l.previousSibling;return H.replace(Do," ")};
_.R.calculateLiveChatRichMessageInput=function(){for(var X=[],H="",l=_.mh(_.mh(this.hostElement).querySelector("#input")).childNodes,b=0;b<l.length;b++){var U=l[b];U instanceof Text?H+=U.textContent:U instanceof HTMLImageElement&&(U.dataset.emojiId?(H&&(X.push({text:H.replace(Do," ")}),H=""),X.push({emojiId:U.dataset.emojiId})):H+=U.alt)}H&&X.push({text:H.replace(Do," ")});if(l=_.mh(this.hostElement).querySelector("#overflow-text")){H="";l=l.childNodes;for(b=0;b<l.length;b++)U=l[b],U instanceof Text?
H+=U.textContent:U instanceof HTMLImageElement&&(U.dataset.emojiId?(H&&(X.push({text:H.replace(Do," ")}),H=""),X.push({emojiId:U.dataset.emojiId})):H+=U.alt);H&&X.push({text:H.replace(Do," ")})}return{textSegments:X}};
_.R.computeCharacterCount=function(X){if(!X||!X.textSegments)return 0;for(var H=0,l=0;l<X.textSegments.length;l++){var b=X.textSegments[l];if(b.text)H+=b.text.length;else if(b.emojiId){var U=void 0;if((U=this.data)==null?0:U.emojiCharacterCount)H+=this.data.emojiCharacterCount;else{var K=U=void 0,w=void 0;H+=((K=_.PP(_.pL,(U=b)==null?void 0:U.emojiId))==null?void 0:(w=K.shortcuts)==null?void 0:w[0].length)||0}}}return H};
_.R.characterCountChanged=function(){_.QX(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.R.focusedChanged=function(){this.hostElement.dispatchEvent(new _.kS("focused-changed",this.focused))};
_.R.focus=function(){this.setFocus(!1)};
_.R.focusAtEnd=function(){this.setFocus(!0)};
_.R.setFocus=function(X){X=X?this.getRangeAtEnd():this.getInputRange();_.mh(this.hostElement).querySelector("#input").focus();var H=window.getSelection();H&&(H.removeAllRanges(),H.addRange(X))};
_.R.insertEmoji=function(X){var H,l=((X==null?0:X.isCustomEmoji)?(H=X.shortcuts)==null?void 0:H[0]:X==null?void 0:X.emojiId)||"";this.insertText(l)};
_.R.computeText=function(X){if(!X||!X.textSegments)return"";for(var H="",l=0;l<X.textSegments.length;l++){var b=X.textSegments[l];if(b.text)H+=b.text;else if(b.emojiId){var U=void 0,K=void 0,w=void 0;H+=((K=_.PP(_.pL,(U=b)==null?void 0:U.emojiId))==null?void 0:(w=K.shortcuts)==null?void 0:w[0])||""}}return H};
_.R.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.ja.Object.defineProperties(tL.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.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}}});
tL.prototype.focusedChanged=tL.prototype.focusedChanged;tL.prototype.characterCountChanged=tL.prototype.characterCountChanged;tL.prototype.onSuggestion=tL.prototype.onSuggestion;tL.prototype.onMessageSet=tL.prototype.onMessageSet;tL.prototype.dataChanged=tL.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],tL.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],tL.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tL.prototype,"disabled",void 0);_.T([_.x("disabled"),_.N("design:type",Number),_.N("design:paramtypes",[])],tL.prototype,"inputTabIndex",null);_.T([_.x("data.maxCharacterLimit"),_.g({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],tL.prototype,"maxCharacterLimit",null);
_.T([_.x("liveChatRichMessageInput"),_.g({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],tL.prototype,"characterCount",null);_.T([_.x("maxCharacterLimit, characterCount"),_.g({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],tL.prototype,"remainingCharacterCount",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],tL.prototype,"isChatMessageInput",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],tL.prototype,"inputExpanded",void 0);_.T([_.g({readOnly:!0,notify:!0}),_.N("design:type",Object)],tL.prototype,"liveChatRichMessageInput",void 0);_.T([_.g(),_.N("design:type",Object)],tL.prototype,"messageInput",void 0);_.T([_.g(),_.N("design:type",Boolean)],tL.prototype,"ignoreColorMapping",void 0);_.T([_.x("characterCount"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tL.prototype,"hasText",null);
_.T([_.g(),_.N("design:type",Object)],tL.prototype,"isValidWithNoInputText",void 0);_.T([_.x("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.g(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tL.prototype,"isInputValid",null);_.T([_.g({readOnly:!0,value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],tL.prototype,"focused",void 0);_.T([_.g(),_.N("design:type",Array)],tL.prototype,"suggestions",void 0);
_.T([_.g(),_.N("design:type",_.VK)],tL.prototype,"emojiManager",void 0);_.T([_.g(),_.N("design:type",_.xS)],tL.prototype,"participantsManager",void 0);_.T([_.g(),_.N("design:type",Boolean)],tL.prototype,"noUnderline",void 0);_.T([_.g(),_.N("design:type",Object)],tL.prototype,"inputMethodEditorActive",void 0);_.T([_.A2("#dropdown"),_.N("design:type",Object)],tL.prototype,"dropdown",void 0);_.T([_.A2("#input"),_.N("design:type",HTMLElement)],tL.prototype,"input",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tL.prototype,"dataChanged",null);_.T([_.Yh("messageInput"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tL.prototype,"onMessageSet",null);_.T([_.Le("yt-live-chat-select-suggestion"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],tL.prototype,"onSuggestion",null);
_.T([_.Yh("characterCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tL.prototype,"characterCountChanged",null);_.T([_.Yh("focused"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tL.prototype,"focusedChanged",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],tL);
_.gCQ=_.O(tL,"yt-live-chat-text-input-field-renderer",function(){if(k_Q===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;nCG===void 0&&(nCG=document.createElement("template"));var b=nCG;l.call(H,b.content.cloneNode(!0),X.content.firstChild);k_Q=X}X=k_Q;return X},{mode:0});var WP=function(){var X=_.a.apply(this,arguments)||this;X.buttonOverrides={style:"overlay",type:"filled"};X.allowAnimations=!1;X.modern=_.P("web_button_rework_with_live");X.noPadding=!1;return X};
_.S(WP,_.a);_.R=WP.prototype;_.R.shouldSupportInlineActionButtons=function(){return!0};
_.R.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"}}}}};
_.R.ready=function(){var X=document.querySelector("yt-live-chat-app");X&&X.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.R.attached=function(){this.allowAnimations=!1};
_.R.dataChanged=function(){if(this.data){var X={"--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)};_.j4(this.hostElement,X);this.allowAnimations=!0}};
_.R.messageChanged=function(){var X,H=(X=this.data)==null?void 0:X.message;X=_.mh(_.mh(this.hostElement).querySelector("#message"));X.textContent="";H&&X.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(H))};
_.R.computeShowOnlyHeader=function(X,H){return!X||X.pdgLikeButton||X.replyButton||X.buyFlowButton?!1:this.isEmpty(X,H)&&!X.footer};
_.R.computeShowFooterDivider=function(X,H,l){return X?!!X.footer&&!this.isEmpty(X,H)&&!l:!1};
_.R.computeIsUserEditable=function(X){return!!X.inputField};
_.R.computeHasHeartButton=function(X){return(X==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(X==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(X==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.R.computeNoveltyImage=function(X){if(X.headerOverlayImage&&X.headerOverlayImage.thumbnails.length){var H=X.headerOverlayImage.thumbnails[0],l,b;if((l=X.pdgPurchasedNoveltyLoggingDirectives)==null?0:(b=l.loggingDirectives)==null?0:b.trackingParams){var U,K;aTN((U=X.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(K=U.loggingDirectives)==null?void 0:K.trackingParams)}return H.width||0}return 0};
_.R.computeAuthorPhotoSize=function(X){return(X==null?0:X.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.R.inputFocus=function(){var X=_.mh(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");X&&X.focus()};
_.R.inputInsertEmoji=function(X){var H=_.mh(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");H&&H.insertEmoji(X)};
_.R.inputMessage=function(){var X=_.mh(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),H;return X&&((H=this.data)==null?0:H.inputField)?(X.completeEmojis(),_.VY(X.liveChatRichMessageInput)):null};
_.R.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.R.isEmpty=function(X,H){return X?X.empty||!(X.message||X.inputField||H):!0};
_.R.onLowerBuyButtonClick=function(){var X,H=_.f((X=this.data)==null?void 0:X.buyButton,_.yB);H&&H.trackingParams&&!tUO(H.command)&&(X=_.$l(H.trackingParams))&&(H=_.Bi())&&_.xB(H,X)};
_.R.shouldSupportWholeItemClick=function(){return!0};
_.ja.Object.defineProperties(WP.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
WP.prototype.isDeletedChanged=WP.prototype.isDeletedChanged;WP.prototype.messageChanged=WP.prototype.messageChanged;WP.prototype.dataChanged=WP.prototype.dataChanged;_.T([_.k(lJQ.YtPdgLiveChatItemBehavior),_.N("design:type",Object)],WP.prototype,"ytPdgLiveChatItemBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sK),_.N("design:type",Object)],WP.prototype,"ytLiveChatReduxBehavior",void 0);
_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],WP.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],WP.prototype,"data",void 0);_.T([_.g({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:gCy}),_.N("design:type",Object)],WP.prototype,"engagementState",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.N("design:type",Boolean)],WP.prototype,"isUserEditable",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.N("design:type",Boolean)],WP.prototype,"hasHeartButton",void 0);_.T([_.g({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.N("design:type",Boolean)],WP.prototype,"showOnlyHeader",void 0);
_.T([_.g({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.N("design:type",Boolean)],WP.prototype,"showFooterDivider",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],WP.prototype,"allowAnimations",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],WP.prototype,"dashboardMoneyFeed",void 0);_.T([_.g({computed:"computeNoveltyImage(data)"}),_.N("design:type",Number)],WP.prototype,"noveltyWidth",void 0);
_.T([_.g({computed:"computeAuthorPhotoSize(data)"}),_.N("design:type",Number)],WP.prototype,"authorPhotoSize",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],WP.prototype,"modern",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],WP.prototype,"noPadding",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WP.prototype,"dataChanged",null);
_.T([_.Yh("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WP.prototype,"messageChanged",null);_.T([_.x("data","dashboardMoneyFeed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],WP.prototype,"hideLowerBumper",null);_.T([_.Yh("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WP.prototype,"isDeletedChanged",null);
_.T([_.sq({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],WP);
_.O(WP,"yt-live-chat-paid-message-renderer",function(){if(vbQ===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;iO6===void 0&&(iO6=document.createElement("template"));var b=iO6;l.call(H,b.content.cloneNode(!0),X.content.firstChild);vbQ=X}X=vbQ;return X},{mode:0});var G_t;var aTQ;var ER=function(){var X=_.Hc.apply(this,arguments)||this;X._noAccessors=!0;return X};
_.S(ER,_.Hc);ER.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.gx("openPopupConfig")};
_.T([_.k(_.cr.YtOpenPopupBehavior),_.N("design:type",Object)],ER.prototype,"ytOpenPopupBehavior",void 0);_.T([_.l9()],ER);_.gI=[_.cr.YtOpenPopupBehavior,ER.prototype];var ZE6;var LMy=[_.YM,ZF_,_.eY,_.XOY,_.tw,_.Rpq,_.MI,_.HM,_.IH,_.eg6,_.ku];_.P("web_show_ep_endpoint_response_received")&&LMy.push(_.up);var Ayz=new _.gz("RESPONSE_RECEIVED_COMMANDS"),JUz=new _.gz("RESPONSE_RECEIVED_COMMANDS");var mBK="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),Oay=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],vaN=["GET_UNSEEN_NOTIFICATION_COUNT"];var Gl=function(){var X=_.Hc.apply(this,arguments)||this;X._noAccessors=!0;X.serviceEndpointHandlers=[];return X};
_.S(Gl,_.Hc);Gl.prototype.created=function(){var X=this;this.endpointHandlerActionMap={"yt-service-request":function(H,l,b,U){var K;return ia8(X.hostElement,H,l,b,U,X.serviceEndpointHandlers,(K=X.onEntitiesUpdated)==null?void 0:K.bind(X))}}};
Gl.prototype.attached=function(){_.ik(_.Zq.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Gl.prototype.detached=function(){_.vD(_.Zq.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.T([_.l9()],Gl);_.iE_=[Gl.prototype];var vCD,OEt=function(){return vCD!==void 0?vCD:vCD=document.createElement("template")};
document.head.appendChild(OEt().content);var mct;var QvQ=document.head,TKG=QvQ.appendChild,NKF;if(mct===void 0){var cDG=document.createElement("template");_.n(cDG,"\x3c!--css-build:shady--\x3e");cDG.content.insertBefore(OEt().content.cloneNode(!0),cDG.content.firstChild);mct=cDG}NKF=mct;TKG.call(QvQ,NKF.content);var jvC,rDz=function(){return jvC!==void 0?jvC:jvC=document.createElement("template")};
document.head.appendChild(rDz().content);var JDq;var L2C=document.head,Yg9=L2C.appendChild,IT_;if(JDq===void 0){var AD_=document.createElement("template");_.n(AD_,"\x3c!--css-build:shady--\x3e");AD_.content.insertBefore(rDz().content.cloneNode(!0),AD_.content.firstChild);JDq=AD_}IT_=JDq;Yg9.call(L2C,IT_.content);var X7D;_.wd("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.wd("sharingRendererButtons","buttonRenderer","ytd-button-renderer");X7D=_.P("web_button_rework")&&_.G7("BUTTON_REWORK")||_.P("web_button_rework_with_live");_.ah=function(){var X=_.a.apply(this,arguments)||this;X.isPressed=!1;X.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return X};
_.S(_.ah,_.a);_.R=_.ah.prototype;_.R.created=function(){this.showTooltips=!0};
_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.onHintIdChanged=function(){var X=this,H,l,b=(H=this.ytButtonBehavior.data)==null?void 0:(l=H.hint)==null?void 0:l.hintRenderer;if(b&&b.hintId){H=_.NG(this.hostElement,"yt-get-opened-popups-action");H=(H&&H.length===1?H[0]:[]).length>0;var U=null;b.hintId!=="sponsor-pre-purchase"||H?b.hintId.startsWith("sponsor-post-purchase")&&!H?U=QnH("membership-manage"):b.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!H&&(U=QnH("membership-freebie-join")):U=QnH("membership-join");U&&_.Ss.addLowPriorityJob(function(){for(var K=
_.C(U),w=K.next();!w.done;w=K.next())X.ytComponentBehavior.resolveCommand(w.value)})}};
_.R.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.R.onYtNavigate=function(X){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(X.detail.endpoint);H&&(X.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(H))};
_.R.onYtServiceRequestSent=function(X,H){this.handleServiceRequestActions(H);_.QX(this.hostElement,"yt-service-request-sent-button-renderer")};
_.R.onServiceRequestCompleted=function(X,H){this.handleServiceRequestActions(H);_.QX(this.hostElement,"yt-service-request-completed-button-renderer")};
_.R.updateButton=function(X){var H;if(X=(H=_.f(X,D6F))==null?void 0:H.updatedButton)this.ytButtonBehavior.data=_.f(X,_.yB)};
_.R.handleUpdateButtonAction=function(X){var H=this.ytButtonBehavior.data;H.targetId&&X.updateButtonAction.targetId&&H.targetId===X.updateButtonAction.targetId&&this.updateButton(X)};
_.R.handleServiceRequestActions=function(X){if(X=X.actions)for(var H=0;H<X.length;H++)this.updateButton(X[H])};
_.ja.Object.defineProperties(_.ah,{template:{configurable:!0,enumerable:!0,get:function(){if(ZE6===void 0){var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);ZE6=X}X=ZE6;return X}}});
_.ah.prototype.onServiceRequestCompleted=_.ah.prototype.onServiceRequestCompleted;_.ah.prototype.onYtServiceRequestSent=_.ah.prototype.onYtServiceRequestSent;_.ah.prototype.onYtNavigate=_.ah.prototype.onYtNavigate;_.ah.prototype.onPressedStateChanged=_.ah.prototype.onPressedStateChanged;_.ah.prototype.onHintIdChanged=_.ah.prototype.onHintIdChanged;_.T([_.g(),_.N("design:type",Object)],_.ah.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],_.ah.prototype,"isPressed",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],_.ah.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.U5z.YtButtonBehavior),_.N("design:type",Object)],_.ah.prototype,"ytButtonBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],_.ah.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],_.ah.prototype,"ytComponentBehavior",void 0);
_.T([_.k(HP.YtRenderButtonBehavior),_.N("design:type",Object)],_.ah.prototype,"ytRenderButtonBehavior",void 0);_.T([_.Yh("data.hint.hintRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],_.ah.prototype,"onHintIdChanged",null);_.T([_.Yh("isPressed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],_.ah.prototype,"onPressedStateChanged",null);
_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],_.ah.prototype,"onYtNavigate",null);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],_.ah.prototype,"onYtServiceRequestSent",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],_.ah.prototype,"onServiceRequestCompleted",null);_.T([_.sq({is:"ytd-button-renderer",disableElementRegistration:X7D})],_.ah);var Zo=function(){var X=_.a.apply(this,arguments)||this;X.modern=_.P("web_button_rework_with_live");X.buttonOverrides={style:"overlay",type:"filled"};return X};
_.S(Zo,_.a);_.R=Zo.prototype;_.R.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"}}}}};
_.R.ready=function(){var X=document.querySelector("yt-live-chat-app");X&&X.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.R.dataChanged=function(){if(this.data&&this.data.sticker){var X=_.G0(this.data.sticker.thumbnails,this.stickerWidth);X||_.lQO(X).thenCatch(function(){_.x2(new _.qd("Failed to load Super Sticker with url",X))})}};
_.R.computeAuthorPhotoSize=function(X){return(X==null?0:X.isV2Style)?32:40};
_.R.computeIsV2Style=function(X){return(X==null?0:X.isV2Style)?!0:!1};
_.R.onStickerLoaded=function(X){var H,l,b;(H=_.WM(X))==null||(l=H.parentNode)==null||(b=l.classList)==null||b.add("sticker-loaded")};
_.R.computeNoveltyImageWidth=function(X){var H,l;if(X==null?0:(H=X.headerOverlayImage)==null?0:(l=H.thumbnails)==null?0:l.length){H=X.headerOverlayImage.thumbnails[0];var b,U;if((b=X.pdgPurchasedNoveltyLoggingDirectives)==null?0:(U=b.loggingDirectives)==null?0:U.trackingParams){var K,w;aTN((K=X.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(w=K.loggingDirectives)==null?void 0:w.trackingParams)}return H.width||0}return 0};
_.R.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.R.updateStickerStyles=function(){var X=this.data;X&&(X={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(X.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(X.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(X.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(X.authorNameTextColor)},
_.j4(this.hostElement,X))};
_.R.onBuyButtonClick=function(){var X,H=_.f((X=this.data)==null?void 0:X.buyButton,_.yB);H&&!tUO(H.command)&&this.ytRendererBehavior.logExplicitClick(H)};
_.R.shouldSupportWholeItemClick=function(){return!0};
_.ja.Object.defineProperties(Zo.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 X;return((X=this.data)==null?0:X.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Zo.prototype.updateStickerStyles=Zo.prototype.updateStickerStyles;Zo.prototype.isDeletedChanged=Zo.prototype.isDeletedChanged;Zo.prototype.onStickerLoaded=Zo.prototype.onStickerLoaded;Zo.prototype.dataChanged=Zo.prototype.dataChanged;_.T([_.k(lJQ.YtPdgLiveChatItemBehavior),_.N("design:type",Object)],Zo.prototype,"ytPdgLiveChatItemBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Zo.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],Zo.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Zo.prototype,"data",void 0);
_.T([_.g({computed:"computeAuthorPhotoSize(data)"}),_.N("design:type",Number)],Zo.prototype,"authorPhotoSize",void 0);_.T([_.g(),_.N("design:type",Boolean)],Zo.prototype,"isDeleted",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Zo.prototype,"dashboardMoneyFeed",void 0);_.T([_.g({computed:"computeNoveltyImageWidth(data)"}),_.N("design:type",Number)],Zo.prototype,"noveltyWidth",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Zo.prototype,"modern",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.N("design:type",Boolean)],Zo.prototype,"isV2Style",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zo.prototype,"dataChanged",null);_.T([_.Le("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Zo.prototype,"onStickerLoaded",null);
_.T([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],Zo.prototype,"stickerWidth",null);_.T([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],Zo.prototype,"stickerHeight",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zo.prototype,"hasHeartButton",null);_.T([_.x("data","dashboardMoneyFeed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zo.prototype,"hideLowerBumper",null);
_.T([_.Yh("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zo.prototype,"isDeletedChanged",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zo.prototype,"updateStickerStyles",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Zo);
_.O(Zo,"yt-live-chat-paid-sticker-renderer",function(){if(aTQ===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;G_t===void 0&&(G_t=document.createElement("template"));var b=G_t;l.call(H,b.content.cloneNode(!0),X.content.firstChild);aTQ=X}X=aTQ;return X},{mode:0});var HaF;var laD;var oa_,baD=function(){return oa_!==void 0?oa_:oa_=document.createElement("template")};
document.head.appendChild(baD().content);var UBY,$BQ=function(){return UBY!==void 0?UBY:UBY=document.createElement("template")};
document.head.appendChild($BQ().content);var KMG;var RQq,CPG=function(){return RQq!==void 0?RQq:RQq=document.createElement("template")};
document.head.appendChild(CPG().content);var w7t;var dBH=document.head,hQF=dBH.appendChild,FMG;if(w7t===void 0){var Bl6=document.createElement("template");_.n(Bl6,"\x3c!--css-build:shady--\x3e");Bl6.content.insertBefore(CPG().content.cloneNode(!0),Bl6.content.firstChild);w7t=Bl6}FMG=w7t;hQF.call(dBH,FMG.content);var qMC=document.head,s8t=qMC.appendChild,Mp_;if(KMG===void 0){var iU=document.createElement("template");_.n(iU,"\x3c!--css-build:shady--\x3e");iU.content.insertBefore($BQ().content.cloneNode(!0),iU.content.firstChild);iU.content.insertBefore(baD().content.cloneNode(!0),iU.content.firstChild);KMG=iU}Mp_=KMG;s8t.call(qMC,Mp_.content);var vP=function(){var X=_.Hc.apply(this,arguments)||this;X.focusedIndex=0;X.verticalOffset=0;X.verticalAlign="top";X.dynamicAlign=!0;return X};
_.S(vP,_.Hc);vP.prototype.emojiUrl=function(X){X=_.PP(this.emojiManager,X);if(!X)return"";var H;X=(H=X.image)==null?void 0:H.thumbnails;return _.G0(X,24)||""};
var udz=function(X){var H;X.emojiVariants&&(H=X.data)!=null&&H.target&&_.N0(X,function(){X.set("verticalOffset",-1*X.hostElement.clientHeight);var l=_.mh(X.hostElement).querySelector("img");l&&l.focus()})};
_.R=vP.prototype;_.R.onKeyboardEnter=function(){};
_.R.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.R.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.R.onKeyDown=function(X){switch(X.keyCode){case 13:this.onKeyboardEnter();X.preventDefault();break;case 40:this.changeFocus(1);X.preventDefault();break;case 38:this.changeFocus(-1);X.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.R.onYtEmojiSelect=function(X){var H=this,l,b,U,K,w,d,B,q;return _.h(function(u){if(u.nextAddress==1)return b=(l=H.data)==null?void 0:l.emoji,w=((U=b)==null?void 0:U.stickyPrefId)||((K=b)==null?void 0:K.emojiId),B=(d=X.detail)==null?void 0:d.emojiId,w&&B&&w!==B?u.yield((q=H.emojiManager)==null?void 0:fT_(q,b,B),2):u.return();_.TP(H.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[b,B]);_.m5(u)})};
_.R.changeFocus=function(X){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+X+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(X=_.mh(this.hostElement).querySelector("#variants"))&&X.children[this.focusedIndex].focus())};
_.ja.Object.defineProperties(vP.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
vP.prototype.onYtEmojiSelect=vP.prototype.onYtEmojiSelect;vP.prototype.onKeyDown=vP.prototype.onKeyDown;vP.prototype.onEmojiVariantsChanged=vP.prototype.onEmojiVariantsChanged;vP.prototype.onVerticalOffsetOrPositionTargetChanged=vP.prototype.onVerticalOffsetOrPositionTargetChanged;_.T([_.k(_.f7),_.N("design:type",Object)],vP.prototype,"ironOverlayBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],vP.prototype,"data",void 0);_.T([_.g(),_.N("design:type",_.VK)],vP.prototype,"emojiManager",void 0);
_.T([_.g(),_.N("design:type",Object)],vP.prototype,"emojiVariants",void 0);_.T([_.g(),_.N("design:type",Object)],vP.prototype,"focusedIndex",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],vP.prototype,"positionTarget",null);_.T([_.g({reflectToAttribute:!0}),_.x("verticalOffset","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vP.prototype,"isPositioned",null);_.T([_.g(),_.N("design:type",Object)],vP.prototype,"verticalOffset",void 0);
_.T([_.g(),_.N("design:type",Object)],vP.prototype,"verticalAlign",void 0);_.T([_.g(),_.N("design:type",Object)],vP.prototype,"dynamicAlign",void 0);_.T([_.Yh("verticalOffset","positionTarget"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vP.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.T([_.Yh("emojiVariants"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vP.prototype,"onEmojiVariantsChanged",null);
_.T([_.Le("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],vP.prototype,"onKeyDown",null);_.T([_.Le("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype",Promise)],vP.prototype,"onYtEmojiSelect",null);_.T([_.l9()],vP);var eQ9=[vP.prototype];var yUY;var Vp_;var PP6=/medium-light|medium-dark|light|medium|dark/,faQ=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,p7Q=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),OR=function(){var X=_.a.apply(this,arguments)||this;X.userSelection={left:null,right:null};X.scrollAction="lock";X.isEmojiDraftInProgress=!1;return X};
_.S(OR,_.a);_.R=OR.prototype;_.R.onClick=function(X){X=_.WM(X);X instanceof HTMLImageElement&&this.selectOrUpdateEmoji(X)};
_.R.selectOrUpdateEmoji=function(X){var H=X.getAttribute("selection");H&&(H==="default"?_.QX(this.hostElement,"yt-emoji-select",_.PP(this.emojiManager,X.id)):H==="left"?this.userSelection=Object.assign({},this.userSelection,{left:X.src}):H==="right"?this.userSelection=Object.assign({},this.userSelection,{right:X.src}):H==="user"&&this.userSelection.left&&this.userSelection.right&&_.QX(this.hostElement,"yt-emoji-select",_.PP(this.emojiManager,X.id)))};
_.R.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.R.onMultiSelectorThumbnailRowChanged=function(){var X,H,l;((X=this.data)==null?0:(H=X.emoji)==null?0:(l=H.multiSelectorThumbnailRow)==null?0:l.length)&&this.openSelector()};
_.R.getThumbnailFromEmojiRow=function(X){var H,l;return(X==null?void 0:(H=X.thumbnails)==null?void 0:(l=H[0])==null?void 0:l.url)||""};
_.R.getEmojiAltTextForPartialSelector=function(X){var H;return((H=this.getThumbnailFromEmojiRow(X).match(faQ))==null?void 0:H[0])||""};
_.R.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.R.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.R.getRowSelection=function(X){return["left","right"][X]};
_.R.getIdFromComposedEmoji=function(X){return(X==null?void 0:X.emojiId)||""};
_.R.getEmojiFromPartialSelections=function(X,H){if(!X&&!H)return null;var l,b,U=(l=this.data)==null?void 0:(b=l.emoji)==null?void 0:b.variantIds;if(!U||!U.length)return null;var K;X=(K=X.match(PP6))==null?void 0:K[0];var w;H=(w=H.match(PP6))==null?void 0:w[0];if(!X||!H)return null;var d=p7Q.get(X);w=p7Q.get(H);if(d===w){w=Array.from(p7Q.values()).filter(function(q){return q!==d}).join("|");
var B=new RegExp("^((?!("+w+")).)*"+d+"$")}else B=new RegExp(d+".*"+w);return(U=U.find(function(q){return B.test(q)}))&&_.PP(this.emojiManager,U)||null};
_.R.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var X,H=this.ytEmojiSelectorBehavior.emojiUrl(((X=this.data.emoji)==null?void 0:X.emojiId)||"");_.mh(this.hostElement).querySelector('[selection="user"]').src.includes(H)||(this.isEmojiDraftInProgress=!0)}};
_.R.onDomChange=function(){udz(this.ytEmojiSelectorBehavior)};
_.R.getFocusableElements=function(){return _.mh(this.hostElement).querySelectorAll("img").filter(function(X){return X.getAttribute("role")==="option"})};
_.R.changeFocus=function(X){var H=this.getFocusableElements();H!=null&&H.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+X+H.length)%H.length,this.ytEmojiSelectorBehavior.focusedIndex<H.length&&(X=H[this.ytEmojiSelectorBehavior.focusedIndex])&&X.focus())};
_.R.onKeyboardEnter=function(){var X=this.getFocusableElements();X!=null&&X.length&&(X=X[this.ytEmojiSelectorBehavior.focusedIndex])&&X instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(X),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.ja.Object.defineProperties(OR.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var X=this,H,l,b;return this.emojiManager&&((H=this.data)==null?0:(l=H.emoji)==null?0:(b=l.variantIds)==null?0:b.length)?this.data.emoji.variantIds.map(function(U){return!!U&&_.PP(X.emojiManager,U)}).filter(function(U){return!!U}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var X,H=(X=this.userSelection)==null?void 0:X.left,l;X=(l=this.userSelection)==null?void 0:l.right;return H&&X?this.getEmojiFromPartialSelections(H,X):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.composedEmojiSelection)==null?0:X.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var H;X=(H=this.userSelection)==null?void 0:H.left;var l;H=(l=this.userSelection)==null?void 0:l.right;if(!X&&!H){var b;return this.ytEmojiSelectorBehavior.emojiUrl(((b=this.data.emoji)==null?void 0:b.emojiId)||"")}return X&&!H?X:!X&&H?H:""}}});
OR.prototype.onMultiSelectorThumbnailRowChanged=OR.prototype.onMultiSelectorThumbnailRowChanged;OR.prototype.onClick=OR.prototype.onClick;_.T([_.k(_.f7),_.N("design:type",Object)],OR.prototype,"ironOverlayBehavior",void 0);_.T([_.k(eQ9),_.N("design:type",Object)],OR.prototype,"ytEmojiSelectorBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],OR.prototype,"data",void 0);_.T([_.g(),_.N("design:type",_.VK)],OR.prototype,"emojiManager",void 0);
_.T([_.g(),_.N("design:type",Object)],OR.prototype,"userSelection",void 0);_.T([_.g(),_.N("design:type",Object)],OR.prototype,"scrollAction",void 0);_.T([_.g(),_.N("design:type",Object)],OR.prototype,"isEmojiDraftInProgress",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],OR.prototype,"emojiVariants",null);_.T([_.x("data","userSelection"),_.N("design:type",Object),_.N("design:paramtypes",[])],OR.prototype,"composedEmojiSelection",null);
_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],OR.prototype,"onClick",null);_.T([_.Yh("data.emoji.multiSelectorThumbnailRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OR.prototype,"onMultiSelectorThumbnailRowChanged",null);_.T([_.x("data","userSelection","composedEmojiSelection"),_.N("design:type",String),_.N("design:paramtypes",[])],OR.prototype,"draftEmojiUrl",null);
_.T([_.qR({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],OR);
_.O(OR,"yt-emoji-multi-person-selector",function(){if(Vp_===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;yUY===void 0&&(yUY=document.createElement("template"));var b=yUY;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Vp_=X}X=Vp_;return X},{mode:2});var SMD;var zQD;var mG=function(){var X=_.a.apply(this,arguments)||this;X.tooltip_=null;return X};
_.S(mG,_.a);_.R=mG.prototype;_.R.dataChanged_=function(){var X;if((X=this.data)==null?0:X.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.mh(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.cM)(this.tooltip_).textContent=this.data.tooltip};
_.R.computeTargetId=function(){var X;return((X=this.data)==null?void 0:X.targetId)||""};
_.R.computeId_=function(X){return X};
_.R.computeIcon_=function(X){return _.jL(X)};
_.R.onTap_=function(){this.active=!this.active;_.QX(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.R.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("active-changed",this.active))};
_.ja.Object.defineProperties(mG.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var X,H;if((X=this.data)==null?0:(H=X.icon)==null?0:H.iconType)return this.data.icon.iconType==="SUPER_STICKER";var l,b;return((l=this.data)==null?void 0:(b=l.icon)==null?void 0:b.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
mG.prototype.activeChangedForBinding=mG.prototype.activeChangedForBinding;mG.prototype.dataChanged_=mG.prototype.dataChanged_;_.T([_.k(_.MU.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],mG.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],mG.prototype,"data",void 0);_.T([_.g({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.N("design:type",String)],mG.prototype,"id",void 0);
_.T([_.g({computed:"computeTargetId(data.targetId)"}),_.N("design:type",String)],mG.prototype,"targetId",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],mG.prototype,"active",void 0);_.T([_.g({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.N("design:type",String)],mG.prototype,"icon",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mG.prototype,"dataChanged_",null);
_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mG.prototype,"iconFilled",null);_.T([_.Yh("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mG.prototype,"activeChangedForBinding",null);_.T([_.qR({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],mG);
_.O(mG,"yt-emoji-picker-category-button-renderer",function(){if(zQD===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;SMD===void 0&&(SMD=document.createElement("template"));var b=SMD;l.call(H,b.content.cloneNode(!0),X.content.firstChild);zQD=X}X=zQD;return X},{mode:2});var na9;var ksv;var QK=function(){var X=_.a.apply(this,arguments)||this;X.ariaLabel=null;X.ariaActivedescendant=null;X.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};X.JSC$14611_ignoreNextFocus_=!1;X.longPressTimeoutId=-1;return X};
_.S(QK,_.a);_.R=QK.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.R.emojiChanged_=function(){this.changeFocus_(0,!1);for(var X=_.lv(),H=0;H<this.emoji.length;H++){var l={veType:88013,elementIndex:H},b=this.emoji[H];b.isCustomEmoji&&(b=document.querySelector(("#"+b.emojiId).replace("/","\\/")))&&(l=_.H5(X,l))&&(b.visualElement=l)}};
_.R.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.R.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.R.emojiSkinToneChanged_=function(X){this.skinTone=X};
_.R.dataChanged=function(){this.data&&this.data.emojiData&&eXz(this.emojiManager,this.data.emojiData)};
_.R.emojiUrl=function(X){X=this.getEmoji(X);if(!X)return"";var H;X=(H=X.image)==null?void 0:H.thumbnails;return _.G0(X,24)||""};
_.R.emojiAlt=function(X){var H=this.get("image.accessibility.accessibilityData.label",X);return H?H:X.isCustomEmoji?X.shortcuts[0]:X.emojiId};
_.R.emojiAriaLabel=function(X){return X.shortcuts?X.shortcuts[0]:""};
_.R.emojiAriaSelected=function(X,H,l){return X&&l==H?"true":"false"};
_.R.getEmoji=function(X){if(this.emojiManager)return this.shouldUseStickyPreferences?VoD(this.emojiManager,X):fL(this.emojiManager,X)};
_.R.computeId_=function(X){return X.categoryId||""};
_.R.computeEmoji=function(X){var H=this;return this.emojiManager?X.emojiIds?X.emojiIds.map(function(l){return l?_.PP(H.emojiManager,l):null}).filter(oxO):X.emojiData?X.emojiData.map(function(l){var b=!!l.emojiId&&_.PP(H.emojiManager,l.emojiId);
return b?Object.assign({},b,l):null}).filter(oxO):[]:[]};
_.R.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.R.computeAriaLabel_=function(X){return _.D8(X)};
_.R.computeAriaActivedescendant_=function(X,H){return X&&X[H]?X[H].emojiId||"":""};
_.R.handleLongPressEmojiWithVariants=function(X,H){this.changeFocusToEmoji(X.emojiId,!1);this.openVariantSelector(X,H)};
_.R.onMouseDown=function(X){var H=this;this.hostElement!==document.activeElement&&(this.JSC$14611_ignoreNextFocus_=!0);if(X.button===0){var l=_.WM(X);if(l instanceof HTMLImageElement){var b=_.mh(this.hostElement).querySelector("#repeat").itemForElement(l);this.emojiContainsVariants(b)&&(this.longPressTimeoutId=setTimeout(function(){H.handleLongPressEmojiWithVariants(b,l)},500))}}};
_.R.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.R.onFocus=function(){this.JSC$14611_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14611_ignoreNextFocus_=!1};
_.R.onBlur_=function(){this.showFocus=!1};
_.R.emojiContainsVariants=function(X){return!!(X&&X.variantIds&&X.variantIds.length)};
_.R.onClick=function(X){clearTimeout(this.longPressTimeoutId);X=_.WM(X);if(X instanceof HTMLImageElement){var H=X.id;this.changeFocusToEmoji(H,!1);var l=this.getEmoji(H),b;if(b=this.shouldUseStickyPreferences&&this.emojiContainsVariants(l)){var U;b=!((U=this.emojiManager.emojiMap[H])!=null&&U.stickyPrefId)}b?(U=_.mh(this.hostElement).querySelector("#repeat").itemForElement(X),this.openVariantSelector(U,X)):_.QX(this.hostElement,"yt-emoji-select",l)}};
_.R.isActiveEmojiWithVariants=function(X,H){return X&&H?H.stickyPrefId?X===H.stickyPrefId:X===H.emojiId:!1};
_.R.onCloseEmojiVariantSelector=function(X){this.activeEmojiWithVariantsId===X&&(this.activeEmojiWithVariantsId="")};
_.R.onMouseOver_=function(X){X=_.WM(X);X instanceof HTMLImageElement&&_.QX(this.hostElement,"yt-emoji-hover",_.PP(this.emojiManager,X.id))};
_.R.changeFocus_=function(X,H){this.focusedIndex=(this.focusedIndex+X+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(X=this.emoji[this.focusedIndex],H&&(this.showFocus=!0,_.mh(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.QX(this.hostElement,"yt-emoji-hover",X)))};
_.R.changeFocusToEmoji=function(X,H){if(X){var l=this.emoji.findIndex(function(b){return b.emojiId===X});
l!==-1&&this.changeFocus_(l-this.focusedIndex,H)}};
_.R.onKeyDown_=function(X){switch(X.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var H=this.emoji[this.focusedIndex];if(H&&H.emojiId){if(this.emojiContainsVariants(H)){var l=_.mh(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(H,l)}else _.QX(this.hostElement,"yt-emoji-select",fL(this.emojiManager,H.emojiId)),this.hostElement.focus();X.preventDefault()}}break;case 40:this.changeFocus_(1,!0);X.preventDefault();break;case 38:this.changeFocus_(-1,!0),
X.preventDefault()}};
_.R.onEmojiStickyPreferenceChanged=function(X,H){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&X.emojiId&&X.variantIds&&X.variantIds.includes(H)&&this.activeEmojiWithVariantsId!==H&&this.setStickyEmojiPreference(X.emojiId,H)};
_.R.openVariantSelector=function(X,H){this.activeEmojiWithVariantsId=X.stickyPrefId||X.emojiId||"";_.QX(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:X,target:H})};
_.R.setStickyEmojiPreference=function(X,H){if(this.data){var l=this.emoji.findIndex(function(U){return U.emojiId===X});
if(l!==-1){var b=this.emoji[l];b.stickyPrefId=H;this.set("emoji."+l,Object.assign({},b));this.activeEmojiWithVariantsId=H}}};
QK.prototype.onKeyDown_=QK.prototype.onKeyDown_;QK.prototype.onMouseOver_=QK.prototype.onMouseOver_;QK.prototype.onClick=QK.prototype.onClick;QK.prototype.onBlur_=QK.prototype.onBlur_;QK.prototype.onFocus=QK.prototype.onFocus;QK.prototype.onMouseUp=QK.prototype.onMouseUp;QK.prototype.onMouseDown=QK.prototype.onMouseDown;QK.prototype.dataChanged=QK.prototype.dataChanged;QK.prototype.disableIncrementalLoadingChanged_=QK.prototype.disableIncrementalLoadingChanged_;QK.prototype.emojiManagerChanged_=QK.prototype.emojiManagerChanged_;
QK.prototype.emojiChanged_=QK.prototype.emojiChanged_;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],QK.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],QK.prototype,"data",void 0);_.T([_.g({computed:"computeId_(data)"}),_.N("design:type",String)],QK.prototype,"id",void 0);_.T([_.g({computed:"computeEmoji(data)"}),_.N("design:type",Array)],QK.prototype,"emoji",void 0);_.T([_.g(),_.N("design:type",Number)],QK.prototype,"skinTone",void 0);
_.T([_.g(),_.N("design:type",_.VK)],QK.prototype,"emojiManager",void 0);_.T([_.g(),_.N("design:type",Boolean)],QK.prototype,"disableIncrementalLoading",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],QK.prototype,"focusedIndex",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],QK.prototype,"showFocus",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.N("design:type",Object)],QK.prototype,"ariaLabel",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.N("design:type",Object)],QK.prototype,"ariaActivedescendant",void 0);_.T([_.g({value:60}),_.N("design:type",Number)],QK.prototype,"domRepeatTargetFramerate",void 0);_.T([_.g({value:1}),_.N("design:type",Number)],QK.prototype,"domRepeatInitialCount",void 0);_.T([_.g({value:""}),_.N("design:type",String)],QK.prototype,"activeEmojiWithVariantsId",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],QK.prototype,"shouldUseStickyPreferences",void 0);_.T([_.Yh("emoji"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QK.prototype,"emojiChanged_",null);_.T([_.Yh("emojiManager"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QK.prototype,"emojiManagerChanged_",null);
_.T([_.Yh("disableIncrementalLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QK.prototype,"disableIncrementalLoadingChanged_",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QK.prototype,"dataChanged",null);_.T([_.Le("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],QK.prototype,"onMouseDown",null);
_.T([_.Le("mouseup"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QK.prototype,"onMouseUp",null);_.T([_.Le("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QK.prototype,"onFocus",null);_.T([_.Le("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QK.prototype,"onBlur_",null);
_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],QK.prototype,"onClick",null);_.T([_.Le("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],QK.prototype,"onMouseOver_",null);_.T([_.Le("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],QK.prototype,"onKeyDown_",null);
_.T([_.qR({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],QK);
_.O(QK,"yt-emoji-picker-category-renderer",function(){if(ksv===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;na9===void 0&&(na9=document.createElement("template"));var b=na9;l.call(H,b.content.cloneNode(!0),X.content.firstChild);ksv=X}X=ksv;return X},{mode:2});var xBH;var DBv;var tpY;var WMz;var Tl=function(){var X=_.a.apply(this,arguments)||this;X.ariaLabel=null;X.ariaActivedescendant=null;X.getFormattedStringRawText=_.D8;X.JSC$14617_ignoreNextFocus_=!1;return X};
_.S(Tl,_.a);_.R=Tl.prototype;_.R.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")};
_.R.emojiUrl=function(X){var H,l;X=(H=fL(this.emojiManager,X,!0))==null?void 0:(l=H.image)==null?void 0:l.thumbnails;return _.G0(X,24)||""};
_.R.emojiAlt=function(X){var H=this.get("image.accessibility.accessibilityData.label",X);return H?H:X.isCustomEmoji?X.shortcuts[0]:X.emojiId};
_.R.emojiId=function(X){return"emoji"+X};
_.R.computeId_=function(X){return X.categoryId||""};
_.R.computeAriaActivedescendant_=function(X){return this.emoji&&X<this.emoji.length?this.emojiId(X):""};
_.R.emojiChanged_=function(){this.changeFocus_(0,!1);for(var X=_.lv(),H=0;H<this.emoji.length;H++){var l={veType:88013,elementIndex:H},b=this.emoji[H];b.isCustomEmoji&&(b=document.querySelector(("#"+b.emojiId).replace("/","\\/")))&&(l=_.H5(X,l))&&(b.visualElement=l)}};
_.R.computeEmoji_=function(X){var H=this;return this.emojiManager?X.emojiIds.map(function(l){return _.PP(H.emojiManager,l,!0)}).filter(bKh):[]};
_.R.titleOffsetChanged_=function(){var X=this.hostElement.getBoundingClientRect(),H=_.mh(this.hostElement).querySelector("#title").getBoundingClientRect();X=Math.max(0,Math.min(this.titleOffset,X.height-H.height));_.mh(this.hostElement).querySelector("#title").style.top=X+"px"};
_.R.onEmojiMouseOver_=function(X){_.QX(this.hostElement,"yt-emoji-hover",X.model.item)};
_.R.onEmojiTap_=function(X){this.data.command&&(X=NKb(_.jJ().resolve(_.c$(G3)),this.data.command,X),_.QX(this.hostElement,"yt-navigate",X))};
_.R.emojiAriaLabel=function(X){return X.shortcuts[0]};
_.R.emojiAriaSelected=function(X,H,l){return X&&l==H?"true":"false"};
_.R.changeFocus_=function(X,H){var l=this.emoji.length;this.focusedIndex=(this.focusedIndex+X+l)%l;X=this.emoji[this.focusedIndex];if(H){var b;(b=_.mh(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||b.scrollIntoView(!1);_.QX(this.hostElement,"yt-emoji-hover",X)}};
_.R.onMouseDown_=function(){this.JSC$14617_ignoreNextFocus_=!0};
_.R.onFocus_=function(){this.JSC$14617_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14617_ignoreNextFocus_=!1};
_.R.onBlur_=function(){this.showFocus=!1};
_.R.onKeyDown_=function(X){switch(X.keyCode){case 13:this.onEmojiTap_(X);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);X.preventDefault();break;case 38:this.changeFocus_(-1,!0),X.preventDefault()}};
Tl.prototype.onKeyDown_=Tl.prototype.onKeyDown_;Tl.prototype.onBlur_=Tl.prototype.onBlur_;Tl.prototype.onFocus_=Tl.prototype.onFocus_;Tl.prototype.onMouseDown_=Tl.prototype.onMouseDown_;Tl.prototype.onEmojiTap_=Tl.prototype.onEmojiTap_;Tl.prototype.titleOffsetChanged_=Tl.prototype.titleOffsetChanged_;Tl.prototype.emojiChanged_=Tl.prototype.emojiChanged_;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Tl.prototype,"ytComponentBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],Tl.prototype,"data",void 0);_.T([_.g({computed:"computeId_(data)"}),_.N("design:type",String)],Tl.prototype,"id",void 0);_.T([_.g({computed:"computeEmoji_(data)"}),_.N("design:type",Array)],Tl.prototype,"emoji",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],Tl.prototype,"titleOffset",void 0);_.T([_.g({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.N("design:type",Object)],Tl.prototype,"ariaLabel",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.N("design:type",Object)],Tl.prototype,"ariaActivedescendant",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Tl.prototype,"showFocus",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],Tl.prototype,"focusedIndex",void 0);_.T([_.g(),_.N("design:type",_.VK)],Tl.prototype,"emojiManager",void 0);
_.T([_.Yh("emoji"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tl.prototype,"emojiChanged_",null);_.T([_.Yh("titleOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tl.prototype,"titleOffsetChanged_",null);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Tl.prototype,"onEmojiTap_",null);
_.T([_.Le("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tl.prototype,"onMouseDown_",null);_.T([_.Le("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tl.prototype,"onFocus_",null);_.T([_.Le("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tl.prototype,"onBlur_",null);
_.T([_.Le("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Tl.prototype,"onKeyDown_",null);_.T([_.qR({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Tl);
_.O(Tl,"yt-emoji-picker-upsell-category-renderer",function(){if(WMz===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;tpY===void 0&&(tpY=document.createElement("template"));var b=tpY;l.call(H,b.content.cloneNode(!0),X.content.firstChild);WMz=X}X=WMz;return X},{mode:2});var Ea_;var gaQ;var Ny=function(){var X=_.a.apply(this,arguments)||this;X.scrollAction="lock";X.verticalAlign="top";return X};
_.S(Ny,_.a);_.R=Ny.prototype;_.R.onClick=function(X){X=_.WM(X);X instanceof HTMLImageElement&&_.QX(this.hostElement,"yt-emoji-select",_.PP(this.emojiManager,X.id))};
_.R.openSelector=function(){this.ironOverlayBehavior.open()};
_.R.onDomChange=function(){udz(this.ytEmojiSelectorBehavior)};
_.R.computeIsFamilySelector=function(X){var H;return(X==null?void 0:(H=X.emoji)==null?void 0:H.emojiId)==="\ud83d\udc6a"};
_.R.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var X=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];X&&X.emojiId&&(_.QX(this.hostElement,"yt-emoji-select",_.PP(this.emojiManager,X.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.ja.Object.defineProperties(Ny.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var X=this,H,l,b;return this.emojiManager&&((H=this.data)==null?0:(l=H.emoji)==null?0:(b=l.variantIds)==null?0:b.length)?this.data.emoji.variantIds.map(function(U){return!!U&&_.PP(X.emojiManager,U)}).filter(function(U){return!!U}):[]}}});
Ny.prototype.onClick=Ny.prototype.onClick;_.T([_.k(_.f7),_.N("design:type",Object)],Ny.prototype,"ironOverlayBehavior",void 0);_.T([_.k(eQ9),_.N("design:type",Object)],Ny.prototype,"ytEmojiSelectorBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ny.prototype,"data",void 0);_.T([_.g(),_.N("design:type",_.VK)],Ny.prototype,"emojiManager",void 0);_.T([_.g(),_.N("design:type",Object)],Ny.prototype,"scrollAction",void 0);_.T([_.g(),_.N("design:type",Object)],Ny.prototype,"verticalAlign",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.N("design:type",Boolean)],Ny.prototype,"isFamilySelector",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ny.prototype,"emojiVariants",null);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],Ny.prototype,"onClick",null);_.T([_.qR({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Ny);
_.O(Ny,"yt-emoji-variant-selector",function(){if(gaQ===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Ea_===void 0&&(Ea_=document.createElement("template"));var b=Ea_;l.call(H,b.content.cloneNode(!0),X.content.firstChild);gaQ=X}X=gaQ;return X},{mode:2});var Gsq=/:/g,aaF=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],cP=function(){var X=_.a.apply(this,arguments)||this;X.emojiVariantSelector=null;X.emojiMultiPersonSelector=null;X.identity=_.GK;X.lastAnimationTime_=0;X.animationStart_=null;X.animationEnd_=null;return X};
_.S(cP,_.a);_.R=cP.prototype;
_.R.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}}};
_.R.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.pL)};
_.R.attached=function(){_.Jv&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&yD_(this.emojiManager)};
_.R.dataChanged=function(){var X;if((X=this.data)==null?0:X.categories){X=this.emojiManager;var H=this.getCustomEmojiIds();X.pickerCustomEmojiIds=[].concat(_.LJ(BK_),_.LJ(H))}};
_.R.getCustomEmojiIds=function(){var X,H=(X=this.data.categories)==null?void 0:X.find(function(K){var w;return((w=K.emojiPickerCategoryRenderer)==null?void 0:w.categoryId)&&aaF.includes(K.emojiPickerCategoryRenderer.categoryId)}),l;
X=(l=this.data.categories)==null?void 0:l.find(function(K){return K.emojiPickerUpsellCategoryRenderer});
var b,U;return[H==null?void 0:(b=H.emojiPickerCategoryRenderer)==null?void 0:b.emojiIds,X==null?void 0:(U=X.emojiPickerUpsellCategoryRenderer)==null?void 0:U.emojiIds].flat().filter(function(K){return!!K})};
_.R.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.R.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.R.updateCategoriesAndPlaceholderInternal=function(X,H){var l=this;X&&H&&(this.categories=X.categories||[],this.categoryButtons=X.categoryButtons||[],this.resetPlaceholder(),this.search="",_.fc(function(){l.updateButtons_()}))};
_.R.computeId_=function(X){return X.id||""};
_.R.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(X){return X.emojiPickerCategoryRenderer&&X.emojiPickerCategoryRenderer.emojiData}):!1};
_.R.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.R.onShowEmojiVariantSelector=function(X){var H=X.detail.emojiData;H.variantIds&&H.variantIds.length&&(H.multiSelectorThumbnailRow&&H.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:H,target:X.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:H,target:X.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.R.onIronOverlayClosed=function(X){var H=VoD(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");H&&X.composedPath&&(X.composedPath().includes(_.mh(this.hostElement).querySelector("#emoji-variant-selector"))||X.composedPath().includes(_.mh(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.TP(this.hostElement,"yt-close-emoji-variant-selector",[H.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.R.onEmojiVariantSelectorMouseup=function(X){var H=X.target.firstChild;this.variantSelectorOpened&&H&&_.fc(function(){H.noCancelOnOutsideClick=!1},100)};
_.R.onEmojiVariantSelectorMousedown=function(X){X=X.target.firstChild;this.variantSelectorOpened&&X&&(X.noCancelOnOutsideClick=!1)};
_.R.onSelectCategory_=function(X){var H=this.search!="";this.search="";for(var l=_.mh(this.hostElement).querySelector("#categories").children,b=0;b<l.length;b++){var U=l[b];if(U.id==X.detail.categoryId){H?(_.mh(this.hostElement).querySelector("#categories").scrollTop=U.offsetTop,this.updateButtons_()):(this.animationStart_=_.mh(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=U.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.R.onEmojiHover_=function(X){this.placeholder=X.detail.shortcuts?X.detail.shortcuts[0]:""};
_.R.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.R.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.R.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.R.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.R.computeSearchCategory_=function(X){X=X.replace(Gsq,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();X=X.split(" ");for(var H=[],l=this.emojiManager.emojis,b=0;b<l.length;b++){var U=l[b];if(U.searchTerms)for(var K=0;K<U.searchTerms.length;K++){for(var w=U.searchTerms[K].toLocaleLowerCase(),d=!1,B=0;B<X.length;B++)if(w.indexOf(X[B])!=-1){d=!0;break}if(d&&(!U.isCustomEmoji||!U.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(U.emojiId))){H.push(U.emojiId);
break}}}return{categoryId:-1,emojiIds:H}};
_.R.computeSearchEmptyMessage_=function(X,H){return X&&H&&H.emojiIds&&H.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.R.computeSearching_=function(X){return this.emojiManager&&X.replace(Gsq,"").length>1};
_.R.computeSkinToneHidden=function(){var X;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((X=this.data)==null||!X.hideSkinTonePicker)};
_.R.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.R.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.R.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.R.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.R.selectSkinTone_=function(X){X=Number(X.target.getAttribute("tone"));this.set("emojiManager.skinTone",X);_.TP(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[X]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.R.skinToneChanged_=function(){_.mh(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var X=_.mh(this.hostElement).querySelector("#dropdown-content").children,H=0;H<X.length;H++)H===this.skinTone?X[H].setAttribute("selected",""):X[H].removeAttribute("selected")};
_.R.animateScroll_=function(X){this.lastAnimationTime_||(this.lastAnimationTime_=X);X-=this.lastAnimationTime_;X<200?(_.mh(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*X/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.mh(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.R.searchChanged_=function(){this.updateButtons_()};
_.R.updateButtons_=function(){var X=null;if(!this.search)for(var H=_.mh(this.hostElement).querySelector("#categories").scrollTop,l=_.mh(this.hostElement).querySelector("#categories").children,b=0;b<l.length;b++){var U=l[b];U.offsetTop<=H&&(X=U.id)}H=_.mh(this.hostElement).querySelector("#category-buttons").children;for(l=0;l<H.length;l++)b=H[l],b.active=b.id===X};
cP.prototype.searchChanged_=cP.prototype.searchChanged_;cP.prototype.skinToneChanged_=cP.prototype.skinToneChanged_;cP.prototype.onEmojiHover_=cP.prototype.onEmojiHover_;cP.prototype.onSelectCategory_=cP.prototype.onSelectCategory_;cP.prototype.onShowEmojiVariantSelector=cP.prototype.onShowEmojiVariantSelector;cP.prototype.updateCategoriesAndPlaceholder_=cP.prototype.updateCategoriesAndPlaceholder_;cP.prototype.dataChanged=cP.prototype.dataChanged;
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],cP.prototype,"data",void 0);_.T([_.g({value:function(){return[]}}),
_.N("design:type",Array)],cP.prototype,"categories",void 0);_.T([_.g({value:function(){return[]}}),
_.N("design:type",Array)],cP.prototype,"categoryButtons",void 0);_.T([_.g({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.N("design:type",Boolean)],cP.prototype,"disableScroll",void 0);_.T([_.g({computed:"computeId_(data)",reflectToAttribute:!0}),_.N("design:type",String)],cP.prototype,"id",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],cP.prototype,"selected",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],cP.prototype,"disableIncrementalLoading",void 0);_.T([_.g(),_.N("design:type",String)],cP.prototype,"placeholder",void 0);_.T([_.g({value:""}),_.N("design:type",String)],cP.prototype,"search",void 0);_.T([_.g({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.N("design:type",Boolean)],cP.prototype,"searching",void 0);_.T([_.g({computed:"computeSearchCategory_(search)"}),_.N("design:type",Object)],cP.prototype,"searchCategory",void 0);
_.T([_.g({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.N("design:type",Object)],cP.prototype,"searchEmptyMessage",void 0);_.T([_.g({computed:"identity(emojiManager.skinTone)"}),_.N("design:type",Number)],cP.prototype,"skinTone",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],cP.prototype,"skinToneOpened",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],cP.prototype,"variantSelectorOpened",void 0);
_.T([_.g({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.N("design:type",Boolean)],cP.prototype,"skinToneHidden",void 0);_.T([_.g(),_.N("design:type",_.VK)],cP.prototype,"emojiManager",void 0);_.T([_.g(),_.N("design:type",Object)],cP.prototype,"emojiVariantSelector",void 0);_.T([_.g(),_.N("design:type",Object)],cP.prototype,"emojiMultiPersonSelector",void 0);
_.T([_.g({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.N("design:type",Boolean)],cP.prototype,"shouldUseStickyPreferences",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cP.prototype,"dataChanged",null);_.T([_.Yh("data","selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cP.prototype,"updateCategoriesAndPlaceholder_",null);
_.T([_.Le("yt-show-emoji-variant-selector"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],cP.prototype,"onShowEmojiVariantSelector",null);_.T([_.Le("yt-emoji-picker-select-category"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],cP.prototype,"onSelectCategory_",null);_.T([_.Le("yt-emoji-hover"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],cP.prototype,"onEmojiHover_",null);
_.T([_.Yh("skinTone"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cP.prototype,"skinToneChanged_",null);_.T([_.Yh("search"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cP.prototype,"searchChanged_",null);_.T([_.qR({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],cP);
_.O(cP,"yt-emoji-picker-renderer",function(){if(DBv===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;xBH===void 0&&(xBH=document.createElement("template"));var b=xBH;l.call(H,b.content.cloneNode(!0),X.content.firstChild);DBv=X}X=DBv;return X},{mode:2});var jZ=function(){var X=_.a.apply(this,arguments)||this;X.emojiManager=_.pL;X.isDarkTheme=document.documentElement.hasAttribute("dark");X.selectedIndex=1;X.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return X};
_.S(jZ,_.a);_.R=jZ.prototype;_.R.handleEmojiCustomizationVisible=function(X){this.emojiPickerRenderer.selected=X;this.selectedIndex=1;X?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.R.emojiCustomizationSetChanged=function(){var X;(X=this.data)!=null&&X.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.YN(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.R.updateSaveButtonState=function(X){var H;(H=this.data)!=null&&H.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Us("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:X}))};
_.R.emojiUrl=function(X){X=_.PP(this.emojiManager,X);if(!X)return"";var H;X=(H=X.image)==null?void 0:H.thumbnails;return _.G0(X,24)||""};
_.R.emojiAlt=function(X){var H=_.PP(this.emojiManager,X);if(!H)return X;var l,b,U,K=(H==null?void 0:(l=H.image)==null?void 0:(b=l.accessibility)==null?void 0:(U=b.accessibilityData)==null?void 0:U.label)||"";return K?K:H.isCustomEmoji?H.shortcuts[0]:H.emojiId||X};
_.R.emojiAriaLabel=function(X){var H,l;return((H=_.PP(this.emojiManager,X))==null?void 0:(l=H.shortcuts)==null?void 0:l[0])||X};
_.R.onEmojiClick=function(X){X.model.index!==0&&(this.selectedIndex=X.model.index)};
_.R.onEmojiSelect=function(X){X=X.detail;var H,l;((H=this.data)==null?0:H.emojiCustomizationSetEntityKey)&&((l=this.emojiCustomizationSet)==null?0:l.emojiId)&&X.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,X.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Us("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,X.emojiId,this.selectedIndex)}))};
_.R.canEditEmoji=function(X,H,l){X=X.indexOf(H);return X===l||X===0||l===0?!1:!0};
_.R.getUpdatedEmojiIdList=function(X,H,l){var b=X.indexOf(H);X=[].concat(_.LJ(X));b>=0&&(X[b]=X[l]);X[l]=H;return X};
_.ja.Object.defineProperties(jZ,{template:{configurable:!0,enumerable:!0,get:function(){if(laD===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;HaF===void 0&&(HaF=document.createElement("template"));var b=HaF;l.call(H,b.content.cloneNode(!0),X.content.firstChild);laD=X}X=laD;return X}}});
jZ.prototype.onEmojiSelect=jZ.prototype.onEmojiSelect;_.T([_.k(_.sK),_.N("design:type",Object)],jZ.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],jZ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.A2("yt-emoji-picker-renderer"),_.N("design:type",Object)],jZ.prototype,"emojiPickerRenderer",void 0);
_.T([_.g({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(X,H){return _.JY(X.entities,"emojiCustomizationSetEntity",H)},
observer:"emojiCustomizationSetChanged"}),_.N("design:type",Object)],jZ.prototype,"emojiCustomizationSet",void 0);_.T([_.g(),_.N("design:type",Object)],jZ.prototype,"originalEmojiSet",void 0);_.T([_.g(),_.N("design:type",_.VK)],jZ.prototype,"emojiManager",void 0);_.T([_.g(),_.N("design:type",Object)],jZ.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],jZ.prototype,"isDarkTheme",void 0);_.T([_.g(),_.N("design:type",Object)],jZ.prototype,"selectedIndex",void 0);
_.T([_.Le("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],jZ.prototype,"onEmojiSelect",null);_.T([_.qR({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],jZ);var Zat;var iat;var vaQ;var Oa_;var rI=function(){var X=_.a.apply(this,arguments)||this;X.authorBadges=[];return X};
_.S(rI,_.a);_.R=rI.prototype;_.R.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.R.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]]"}}}}}};
_.R.dataChanged=function(){var X=AZh(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",X)};
_.R.updateMessage=function(){var X=this.data.message,H=_.mh(_.mh(this.hostElement).querySelector("#message"));H.textContent="";X&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(X))};
_.R.shouldSupportWholeItemClick=function(){return!0};
_.R.onShowOriginalClick=function(X){X.preventDefault();this.showOriginal=!0};
_.R.computeShowBar=function(X,H,l){return X&&H||l};
_.R.computeAuthorBadges=function(X){return X.authorBadges||[]};
_.R.computeAuthorIsOwner=function(X){return!!XIh(X.authorBadges,"owner")};
_.R.computeAuthorNameColor=function(X){var H;if(_.P("live_chat_author_name_color_usernames")&&(X==null?0:(H=X.authorName)==null?0:H.simpleText))return _.o4m(_.b6h(X.authorName.simpleText));if(_.P("live_chat_seed_color_usernames")&&(X==null?0:X.authorSeedColorArgb))return _.o4m(_.NR(X.authorSeedColorArgb));if(_.P("live_chat_colored_usernames"))return"#cc0000";var l;return _.P("live_chat_simple_color_usernames")&&(X==null?0:(l=X.authorName)==null?0:l.simpleText)&&(X==null?0:X.authorUsernameColorLight)&&
(X==null?0:X.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.NR(X.authorUsernameColorDark):_.NR(X.authorUsernameColorLight):""};
rI.prototype.updateMessage=rI.prototype.updateMessage;rI.prototype.dataChanged=rI.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],rI.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],rI.prototype,"data",void 0);
_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],rI.prototype,"showOriginal",void 0);_.T([_.g({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.N("design:type",Boolean)],rI.prototype,"isDimmed",void 0);_.T([_.g({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.N("design:type",Boolean)],rI.prototype,"showBar",void 0);
_.T([_.g({computed:"computeAuthorBadges(data)"}),_.N("design:type",Array)],rI.prototype,"authorBadges",void 0);_.T([_.g({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],rI.prototype,"authorIsOwner",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],rI.prototype,"inCollapsedBanner",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],rI.prototype,"inBanner",void 0);
_.T([_.g({value:_.P("live_chat_hide_avatars"),reflectToAttribute:!0}),_.N("design:type",Boolean)],rI.prototype,"avatarHidden",void 0);_.T([_.g({computed:"computeAuthorNameColor(data)"}),_.N("design:type",String)],rI.prototype,"authorNameColor",void 0);_.T([_.g(),_.N("design:type",_.xS)],rI.prototype,"participantsManager",void 0);_.T([_.g({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.N("design:type",Object)],rI.prototype,"filledButtonOverrides",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rI.prototype,"dataChanged",null);_.T([_.Yh("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rI.prototype,"updateMessage",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],rI);
_.O(rI,"yt-live-chat-text-message-renderer",function(){if(Oa_===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;vaQ===void 0&&(vaQ=document.createElement("template"));var b=vaQ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Oa_=X}X=Oa_;return X},{mode:0});var JL=function(){var X=_.a.apply(this,arguments)||this;X.tonalButtonOverrides={type:"tonal",style:"overlay"};return X};
_.S(JL,_.a);
JL.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]]"}}}}}};
JL.prototype.shouldSupportInlineActionButtons=function(){return!0};
JL.prototype.shouldSupportWholeItemClick=function(){return!0};
_.ja.Object.defineProperties(JL.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],JL.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],JL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],JL.prototype,"data",void 0);_.T([_.g(),_.N("design:type",_.xS)],JL.prototype,"participantsManager",void 0);
_.T([_.g(),_.N("design:type",Object)],JL.prototype,"tonalButtonOverrides",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.infoDialogButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],JL.prototype,"hasInfoDialogButton",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],JL);
_.O(JL,"yt-live-chat-auto-mod-message-renderer",function(){if(iat===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Zat===void 0&&(Zat=document.createElement("template"));var b=Zat;l.call(H,b.content.cloneNode(!0),X.content.firstChild);iat=X}X=iat;return X},{mode:0});var mBY;var Q8F;var TlQ;var NlH=function(){return _.a.apply(this,arguments)||this};
_.S(NlH,_.a);_.T([_.g(),_.N("design:type",Object)],NlH.prototype,"data",void 0);_.T([_.sq({is:"ytd-factoid-renderer",disableElementRegistration:!0})],NlH);
_.O(NlH,"ytd-factoid-renderer",function(){if(TlQ!==void 0)return TlQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return TlQ=X},{mode:1});var LL=function(){return _.a.apply(this,arguments)||this};
_.S(LL,_.a);LL.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.T([_.g(),_.N("design:type",Object)],LL.prototype,"data",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],LL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],LL);
_.O(LL,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Q8F===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;mBY===void 0&&(mBY=document.createElement("template"));var b=mBY;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Q8F=X}X=Q8F;return X},{mode:0});var cUY;var j8Q;var YS=function(){return _.a.apply(this,arguments)||this};
_.S(YS,_.a);YS.prototype.ready=function(){var X=document.querySelector("yt-live-chat-app");X&&X.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],YS.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Boolean)],YS.prototype,"menuFocused",void 0);_.T([_.g(),_.N("design:type",Object)],YS.prototype,"data",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],YS.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],YS);
_.O(YS,"yt-live-chat-donation-announcement-renderer",function(){if(j8Q===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;cUY===void 0&&(cUY=document.createElement("template"));var b=cUY;l.call(H,b.content.cloneNode(!0),X.content.firstChild);j8Q=X}X=j8Q;return X},{mode:0});var rUF;var JUC,LMG=function(){if(JUC!==void 0)return JUC;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;rUF===void 0&&(rUF=document.createElement("template"));var b=rUF;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return JUC=X};var Ih=function(){return _.a.apply(this,arguments)||this};
_.S(Ih,_.a);_.ja.Object.defineProperties(Ih,{template:{configurable:!0,enumerable:!0,get:function(){return LMG()}}});
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ih.prototype,"data",void 0);_.T([_.qR({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Ih);_.O(Ih,"yt-live-chat-empty-feed-view-model",function(){return LMG()},{mode:0});var YMF;var IaQ;var AL=function(){return _.a.apply(this,arguments)||this};
_.S(AL,_.a);AL.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"}}}}}};
_.ja.Object.defineProperties(AL.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var X,H;return{runs:[{text:(X=this.data)==null?void 0:(H=X.channelName)==null?void 0:H.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var X=[],H;if((H=this.data)==null||!H.channelBadges)return X;var l;H=_.C((l=this.data)==null?void 0:l.channelBadges);for(l=H.next();!l.done;l=H.next()){l=_.f(l.value,TgQ);var b=void 0,U=void 0;if((b=l)==null?0:(U=b.badgeImage)==null?0:U.sources)b=void 0,U={liveChatAuthorBadgeRenderer:{tooltip:l.tooltip,accessibility:{accessibilityData:{label:(b=_.f(l.rendererContext,_.RB))==null?void 0:b.label}}}},l.badgeImage.sources[0].clientResource?U.liveChatAuthorBadgeRenderer.icon=
{iconType:l.badgeImage.sources[0].clientResource.imageName}:U.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:l.badgeImage.sources},X.push(U)}return X}}});
_.T([_.g(),_.N("design:type",Object)],AL.prototype,"data",void 0);_.T([_.x("data.channelName"),_.N("design:type",Object),_.N("design:paramtypes",[])],AL.prototype,"channelName",null);_.T([_.x("data.channelBadges"),_.N("design:type",Array),_.N("design:paramtypes",[])],AL.prototype,"channelBadges",null);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],AL);
_.O(AL,"yt-live-chat-identity-view-model",function(){if(IaQ===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;YMF===void 0&&(YMF=document.createElement("template"));var b=YMF;l.call(H,b.content.cloneNode(!0),X.content.firstChild);IaQ=X}X=IaQ;return X},{mode:0});var AUQ;var X2t;var HKQ;var lQH;var Xj=function(){var X=_.a.apply(this,arguments)||this;X.hidden=!1;X.supportsInlineActionButtons=!0;return X};
_.S(Xj,_.a);Xj.prototype.ready=function(){var X;((X=document.querySelector("yt-live-chat-app"))==null?0:X.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Xj.prototype.dataChanged=function(X){var H=(0,_.cM)(_.mh(this.hostElement).querySelector("#detail-text"));H.textContent="";(X==null?0:X.detailText)&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(X.detailText))};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],Xj.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g({observer:"dataChanged"}),_.N("design:type",Object)],Xj.prototype,"data",void 0);
_.T([_.g({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.N("design:type",Object)],Xj.prototype,"hidden",void 0);_.T([_.sq({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Xj);
_.O(Xj,"yt-live-chat-legacy-paid-message-renderer",function(){if(lQH===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;HKQ===void 0&&(HKQ=document.createElement("template"));var b=HKQ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);lQH=X}X=lQH;return X},{mode:0});var oxH;var bKz;var UmF={},HO=function(){return _.Hc.apply(this,arguments)||this};
_.S(HO,_.Hc);HO.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
HO.prototype.onLiveChatMembershipItemBehaviorClick=HO.prototype.onLiveChatMembershipItemBehaviorClick;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],HO.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],HO.prototype,"data",void 0);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],HO.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.T([_.l9()],HO);
UmF.YtLiveChatMembershipItemBehavior=[HO.prototype,_.L.YtRendererBehavior];var lf=function(){var X=_.a.apply(this,arguments)||this;X.supportsInlineActionButtons=!0;X.hasPrimaryHeaderText=!1;X.showOnlyHeader=!1;X.authorBadges=[];X.modern=_.P("web_button_rework_with_live");X.buttonOverrides={style:"overlay",type:"filled"};return X};
_.S(lf,_.a);_.R=lf.prototype;_.R.shouldSupportInlineActionButtons=function(){return!0};
_.R.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.R.ready=function(){var X=document.querySelector("yt-live-chat-app");X&&X.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.R.messageChanged=function(){var X=this.data.message,H=(0,_.cM)(_.mh(this.hostElement).querySelector("#message"));H.textContent="";X&&H.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(X))};
_.R.computeHasPrimaryHeaderText=function(X){return!(!X||!X.headerPrimaryText)};
_.R.computeShowOnlyHeader=function(X,H){return this.isMessageEmpty(X,H)};
_.R.computeAuthorBadges=function(X){return X.authorBadges||[]};
_.R.isMessageEmpty=function(X,H){return!X||X.empty?!0:!X.message&&!X.inputField&&!H};
_.R.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.R.getInputElement=function(){return _.mh(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.R.inputFocus=function(){var X=this.getInputElement();X&&X.focus()};
_.R.inputInsertEmoji=function(X){var H=this.getInputElement();H&&H.insertEmoji(X)};
_.R.inputMessage=function(){var X=this.getInputElement();return X&&this.data.inputField?(X.completeEmojis(),_.VY(X.liveChatRichMessageInput)):null};
_.R.onFooterButtonClick=function(){this.data.footerButton&&_.QX(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.R.shouldSupportWholeItemClick=function(){return!0};
lf.prototype.isDeletedChanged=lf.prototype.isDeletedChanged;lf.prototype.messageChanged=lf.prototype.messageChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],lf.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.k(UmF.YtLiveChatMembershipItemBehavior),_.N("design:type",Object)],lf.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],lf.prototype,"data",void 0);_.T([_.g({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.N("design:type",Object)],lf.prototype,"hasPrimaryHeaderText",void 0);_.T([_.g({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.N("design:type",Object)],lf.prototype,"showOnlyHeader",void 0);
_.T([_.g({computed:"computeAuthorBadges(data)"}),_.N("design:type",Array)],lf.prototype,"authorBadges",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],lf.prototype,"modern",void 0);_.T([_.Yh("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lf.prototype,"messageChanged",null);_.T([_.Yh("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lf.prototype,"isDeletedChanged",null);
_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],lf);
_.O(lf,"yt-live-chat-membership-item-renderer",function(){if(bKz===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;oxH===void 0&&(oxH=document.createElement("template"));var b=oxH;l.call(H,b.content.cloneNode(!0),X.content.firstChild);bKz=X}X=bKz;return X},{mode:0});var $m6;var K6H;var oI=function(){return _.a.apply(this,arguments)||this};
_.S(oI,_.a);oI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],oI.prototype,"data",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],oI);
_.O(oI,"yt-live-chat-mode-change-message-renderer",function(){if(K6H===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;$m6===void 0&&($m6=document.createElement("template"));var b=$m6;l.call(H,b.content.cloneNode(!0),X.content.firstChild);K6H=X}X=K6H;return X},{mode:0});var RtH;var CNF;var bf=function(){return _.a.apply(this,arguments)||this};
_.S(bf,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],bf.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],bf.prototype,"data",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],bf);
_.O(bf,"yt-live-chat-moderation-message-renderer",function(){if(CNF===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;RtH===void 0&&(RtH=document.createElement("template"));var b=RtH;l.call(H,b.content.cloneNode(!0),X.content.firstChild);CNF=X}X=CNF;return X},{mode:0});var w2Q;var dmH;var Uv=function(){return _.a.apply(this,arguments)||this};
_.S(Uv,_.a);Uv.prototype.onClick=function(){var X;if((X=this.data)!=null&&X.onClickCommand){var H;_.JF.instance.resolveCommand((H=this.data)==null?void 0:H.onClickCommand)}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sK),_.N("design:type",Object)],Uv.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],Uv.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Uv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Uv.prototype,"data",void 0);
_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Uv);
_.O(Uv,"yt-live-chat-offer-click-count-message-renderer",function(){if(dmH===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;w2Q===void 0&&(w2Q=document.createElement("template"));var b=w2Q;l.call(H,b.content.cloneNode(!0),X.content.firstChild);dmH=X}X=dmH;return X},{mode:0});var htQ;var F6H=function(){return _.a.apply(this,arguments)||this};
_.S(F6H,_.a);_.T([_.g(),_.N("design:type",Object)],F6H.prototype,"data",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],F6H);
_.O(F6H,"yt-live-chat-placeholder-item-renderer",function(){if(htQ===void 0){var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);htQ=X}X=htQ;return X},{mode:0});var BHH;var qkt;var s7t=new kM(7),$W=function(){var X=_.a.apply(this,arguments)||this;X.data={};return X};
_.S($W,_.a);$W.prototype.dataChanged=function(){var X;((X=this.data)==null?0:X.class)&&_.TW(this.hostElement,this.data.class,!0);var H;((H=this.oldData)==null?0:H.class)&&_.TW(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
$W.prototype.computeTimestampString=function(X){return s7t.format(new Date(X/1E3))};
$W.prototype.dataChanged=$W.prototype.dataChanged;_.T([_.g(),_.N("design:type",Object)],$W.prototype,"data",void 0);_.T([_.g({computed:"computeTimestampString(data.timestampUsec)"}),_.N("design:type",String)],$W.prototype,"timestampString",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$W.prototype,"dataChanged",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],$W);
_.O($W,"yt-live-chat-server-error-message",function(){if(qkt===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;BHH===void 0&&(BHH=document.createElement("template"));var b=BHH;l.call(H,b.content.cloneNode(!0),X.content.firstChild);qkt=X}X=qkt;return X},{mode:0});var Md9;var uuY;var K0=function(){var X=_.a.apply(this,arguments)||this;X.defaultToFilledIcon=!1;return X};
_.S(K0,_.a);K0.prototype.computeHasPrimaryColorIcon=function(X){return X==="SPARK"||X==="SPONSORSHIP_STAR"};
K0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],K0.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],K0.prototype,"defaultToFilledIcon",void 0);_.T([_.g(),_.N("design:type",Object)],K0.prototype,"data",void 0);
_.T([_.g({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.N("design:type",Boolean)],K0.prototype,"hasPrimaryColorIcon",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],K0);
_.O(K0,"yt-live-chat-viewer-engagement-message-renderer",function(){if(uuY===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Md9===void 0&&(Md9=document.createElement("template"));var b=Md9;l.call(H,b.content.cloneNode(!0),X.content.firstChild);uuY=X}X=uuY;return X},{mode:0});var etQ;var RI=function(){var X=_.a.apply(this,arguments)||this;X.modernUpdate=!1;X.buttonStyle="overlay";X.buttonType="filled";return X};
_.S(RI,_.a);RI.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
RI.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],RI.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],RI.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],RI.prototype,"modernUpdate",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],RI.prototype,"buttonStyle",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],RI.prototype,"buttonType",void 0);
_.T([_.sq({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],RI);
_.O(RI,"ytd-ad-hover-text-button-renderer",function(){if(etQ!==void 0)return etQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return etQ=X},{mode:1});var yzY;var C0=function(){var X=_.a.apply(this,arguments)||this;X.buttonOverrides={size:"XS"};return X};
_.S(C0,_.a);C0.prototype.onHelpTap=function(X){this.data&&this.data.informationDialog&&(_.QX(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),X.preventDefault(),X.stopPropagation())};
_.T([_.g(),_.N("design:type",Object)],C0.prototype,"buttonOverrides",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],C0.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],C0);
_.O(C0,"ytd-live-chat-purchased-product-message-renderer",function(){if(yzY!==void 0)return yzY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return yzY=X},{mode:1});var Vd_;var PNq;var w2=function(){var X=_.a.apply(this,arguments)||this;X.isContainerDeleted=!1;return X};
_.S(w2,_.a);w2.prototype.onContextMenuClick=function(X){this.ytLiveChatItemBehavior.showContextMenu(X)};
w2.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))};
w2.prototype.isContainerDeletedChanged=w2.prototype.isContainerDeletedChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],w2.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],w2.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],w2.prototype,"isContainerDeleted",void 0);
_.T([_.g(),_.N("design:type",String)],w2.prototype,"deletedStateMessage",void 0);_.T([_.Yh("isContainerDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w2.prototype,"isContainerDeletedChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],w2);
_.O(w2,"ytd-sponsorships-live-chat-header-renderer",function(){if(PNq!==void 0)return PNq;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return PNq=X},{mode:1});var d2=function(){var X=_.a.apply(this,arguments)||this;X.modern=_.P("web_button_rework_with_live");X.buttonOverrides={style:"overlay",type:"filled"};return X};
_.S(d2,_.a);d2.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]]"}}}}}};
d2.prototype.onCtaButtonClick=function(){var X,H=_.f((X=this.data)==null?void 0:X.optInPrompt,_.yB);if(X=this.maybeGetButtonCommand(H)){var l;(l=_.lv())==null||l.clickCommand(X)}};
d2.prototype.maybeGetButtonCommand=function(X){return!X||!X.command||_.f(X.command,DjQ)===void 0&&_.f(X.command,xj9)===void 0?null:X.command};
d2.prototype.shouldHideOptinPrompt=function(X,H){return!X||H};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],d2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],d2.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],d2.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],d2.prototype,"modern",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],d2);
_.O(d2,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Vd_!==void 0)return Vd_;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Vd_=X},{mode:1});var fQH;var hW=function(){return _.a.apply(this,arguments)||this};
_.S(hW,_.a);hW.prototype.onContextMenuClick=function(X){this.ytLiveChatItemBehavior.showContextMenu(X)};
hW.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))};
hW.prototype.isDeletedChanged=hW.prototype.isDeletedChanged;_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],hW.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hW.prototype,"data",void 0);_.T([_.Yh("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hW.prototype,"isDeletedChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],hW);
_.O(hW,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(fQH!==void 0)return fQH;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return fQH=X},{mode:1});var Fj=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return X};
_.S(Fj,_.a);_.R=Fj.prototype;
_.R.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"}}}};
_.R.handleLiveChatAction=function(X){_.f(X,dIF)?this.handleMarkChatItemAsDeletedAction(_.f(X,dIF)):_.f(X,wXC)&&this.handleRemoveChatItemAction(_.f(X,wXC))};
_.R.handleLiveChatActions=function(X){X.forEach(this.handleLiveChatAction,this)};
_.R.handleMarkChatItemAsDeletedAction=function(X){var H=this,l;((l=this.data)==null?0:l.items)&&this.data.items.forEach(function(b,U){var K=Object.keys(b)[0];Object.values(b)[0].id===X.targetItemId&&H.markAsDeleted("data.items",U,K,X.deletedStateMessage,X.showOriginalContentMessage)})};
_.R.handleRemoveChatItemAction=function(X){var H=this,l;((l=this.data)==null?0:l.items)&&this.data.items.forEach(function(b,U){Object.values(b)[0].id===X.targetItemId&&H.splice("data.items",U,1)})};
_.R.markAsDeleted=function(X,H,l,b,U){X=[X,H,l].join(".");this.set(X+".deletedStateMessage",b);this.set(X+".showOriginalContentMessage",U)};
_.T([_.g(),_.N("design:type",Object)],Fj.prototype,"data",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Fj.prototype,"ytActionHandlerBehavior",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Fj);
_.O(Fj,"yt-live-chat-item-display-list-renderer",function(){if(X2t===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;AUQ===void 0&&(AUQ=document.createElement("template"));var b=AUQ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);X2t=X}X=X2t;return X},{mode:0});var p29;var Sk_,ztF=function(){if(Sk_!==void 0)return Sk_;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;p29===void 0&&(p29=document.createElement("template"));var b=p29;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return Sk_=X};var BO=function(){var X=_.a.apply(this,arguments)||this;X.isHeader=!1;return X};
_.S(BO,_.a);BO.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.ja.Object.defineProperties(BO,{template:{configurable:!0,enumerable:!0,get:function(){return ztF()}}});
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],BO.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],BO.prototype,"isHeader",void 0);_.T([_.qR({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],BO);_.O(BO,"yt-live-chat-item-display-renderer",function(){return ztF()},{mode:0});var nxv,kQG,ExQ,W6_;
nxv={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}};kQG={home:"eohps",search:"eosps",watch:"eowps"};_.xmQ=["watch","search","home"];
_.qj=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_=_.gx("PRECONSTRUCTION_DELAY",0);this.signals_=_.ng();this.targetPage_=""};
_.qj.prototype.init=function(X,H){X=X===void 0?"":X;H=H===void 0?null:H;if(this.JSC$14728_isInitialized_)this.abort();else if(this.JSC$14728_isInitialized_=!0,X&&_.Dm_(this,X),H){var l=_.kp(this.signals_,"pcl")?0:10,b=function(){for(var U=0,K;K=_.xmQ[U++];)K!=X&&K!=H&&this.pendingPages_.push(K);_.td9(this)}.bind(this);
this.signals_.parkOrScheduleJob(b,l,"pcl")}};
_.qj.prototype.abort=function(){this.fragmentJobId_&&(_.Ss.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);W6_(this)};
_.Dm_=function(X,H){X.JSC$14728_isInitialized_&&!X.targetPage_&&(X.targetPage_=H,ExQ(X,H),X.isInitialPass_=!1,ExQ(X,H),X.signals_.processSignal(kQG[X.targetPage_]),W6_(X),_.td9(X))};
_.td9=function(X){X.pendingPages_.length&&!X.pagePreparerJobId_&&(X.pagePreparerJobId_=_.eh(_.Ss,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.Dm_(this,this.pendingPages_.shift())}.bind(X),X.DEFAULT_DELAY_))};
ExQ=function(X,H){if(H=nxv[H])for(var l in H){var b=!1,U=l;l.charAt(0)=="~"&&(b=!0,U=l.substring(1));var K=H[l];K=typeof K=="object"?K:{count:K};H[l]=K;K.componentName=U;K.count>0&&(X.isInitialPass_?b||X.isSeenDuringInitialPass_[U]||(X.JSC$14728_queue_.push({componentName:U,count:1,signals:K.signals}),X.isSeenDuringInitialPass_[U]=!0,K.count--):X.JSC$14728_queue_.push(K))}};
W6_=function(X){X.JSC$14728_queue_.length=0;X.targetPage_="";X.isInitialPass_=!0;X.signals_.processSignal("eop")};
_.qj.getInstance=function(){return _.QU(_.qj)};var gx_=function(){this.signals=_.ng();this.init()};
gx_.prototype.startPreconstruction=function(){_.qj.getInstance().init(_.G7("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
gx_.prototype.init=function(){GQY(this);window.Polymer&&A$v&&Lkk();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var X=_.ok.ytcsi;if(X&&X.gt&&(X=X.gt())&&X.tick&&(X.tick.aft>0||X.tick.pbs>0)&&(_.G7("IS_HOMEPAGE_COLD")||_.G7("IS_RESULTS_PAGE_COLD")||_.G7("IS_WATCH_PAGE_COLD"))){aQD(this);break a}MLK(jyK,this.onNotifications,this)}};
var GQY=function(X){var H=function(){X.signals.processSignal("dl")};
document.readyState==="complete"?(_.v$(Error("uh"),"WARNING"),H()):_.cay(window,"load",H)};
gx_.prototype.onNotifications=function(X){X.timer||(_.G7("IS_HOMEPAGE_COLD")||_.G7("IS_RESULTS_PAGE_COLD")||_.G7("IS_WATCH_PAGE_COLD"))&&aQD(this)};
var aQD=function(X){X.signals.parkOrScheduleJob(function(){X.signals.processSignal("eocs")},10,"eor")};
new gx_;var ZKz=function(){return _.Hc.apply(this,arguments)||this};
_.S(ZKz,_.Hc);_.ja.Object.defineProperties(ZKz.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.P("enable_entity_store_from_dependency_injection")?_.tF():_.WF()}}});
_.T([_.l9()],ZKz);_.sv=[CD.prototype,ZKz.prototype];var iKq=["ytd-rich-shelf-renderer"],Mj=function(){var X=_.Hc.apply(this,arguments)||this;X._noAccessors=!0;X.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";X.followUpDialogPromise=null;X.followUpDialogPromiseResolve=null;X.followUpDialogPromiseReject=null;return X};
_.S(Mj,_.Hc);_.R=Mj.prototype;_.R.dismissibleItemIsDismissedChanged_=function(X){_.P("kevlar_fluid_dismiss")&&(X?_.QX(this.hostElement,"yt-dismissible-item-dismissed"):_.QX(this.hostElement,"yt-dismissible-item-undismissed"))};
_.R.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.R.dismissibleItemReset_=function(){var X=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 _.UA(function(H,l){X.followUpDialogPromiseResolve=H;X.followUpDialogPromiseReject=l});
_.QX(this.hostElement,"yt-enable-lockup-interaction")};
_.R.dismissibleItemOnYtServiceRequestSent_=function(X,H){H.actions&&this.dismissibleItemProcessActions(H.actions,X)};
_.R.dismissibleItemOnRequestSent=function(X){for(var H=_.C(X.detail),l=H.next();!l.done;l=H.next()){var b=void 0;(l=(b=_.f(l.value,_.Yu))==null?void 0:b.actions)&&this.dismissibleItemProcessActions(l,X)}};
_.R.dismissibleItemOnCommandSent=function(X,H){H&&this.dismissibleItemProcessActions(H,X)};
_.R.setAndGetDismissedContentId=function(X){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+X};
_.R.replayDismissAction=function(X){this.dismissibleItemProcessActions([X])};
_.R.dismissibleItemProcessActions=function(X,H){for(var l=0;l<X.length;l++){var b=X[l],U=void 0;((U=_.f(b,_.J$))==null?0:U.commands)&&this.dismissibleItemProcessActions(_.f(b,_.J$).commands,H);if(_.f(b,_.XC)){if(U=_.f(b,_.XC),!U.replaceParentSection||iKq.includes(this.hostElement.nodeName.toLowerCase()))U.groupDismissal&&Umb(this,U.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(U),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Us("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:b})),b=void 0,(b=H)==null||b.stopPropagation()}else if(_.f(b,lKt))this.dismissibleItemHandleHideEnclosingAction_(),b=void 0,(b=H)==null||b.stopPropagation();else if(_.f(b,x6G))b=_.f(b,x6G),U=void 0,((U=b)==null?0:U.targetGroupId)&&Umb(this,{targetGroupId:b.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Us("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
b=void 0,(b=H)==null||b.stopPropagation();else if(_.f(b,_.Yu))(b=_.f(b,_.Yu).actions)&&_.j7(this.hostElement,b,this.hostElement),b=void 0,(b=H)==null||b.stopPropagation();else{var K=U=void 0;((U=_.f(b,_.gU))==null?void 0:U.signal)!=="TELL_US_WHY"||((K=_.f(b,_.gU))==null?0:K.targetId)&&_.P("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),b=void 0,(b=H)==null||b.stopPropagation())}}};
_.R.dismissibleItemOnYtServiceRequestCompleted_=function(X,H){var l=this.get("feedbackResponses.0.followUpDialog",H.data);l?this.followUpDialogPromiseResolve(l):H.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(H.actions,X)};
_.R.dismissibleItemHandleReplaceEnclosingAction_=function(X){this.dismissedRenderer=X.item;this.isDismissed=!0;var H=null;(H=_.mh(this.hostElement).querySelector("#dismissed"))&&_.N0(this,function(){_.Qi(H)});
_.QX(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.R.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.R.dismissibleItemHandleUndoFeedbackAction_=function(){_.QX(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.R.dismissibleItemHandleTellUsWhySignalAction_=function(){var X=this;this.followUpDialogPromise.then(function(H){X.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:H}})})};
Mj.prototype.dismissibleItemOnYtServiceRequestCompleted_=Mj.prototype.dismissibleItemOnYtServiceRequestCompleted_;Mj.prototype.dismissibleItemOnCommandSent=Mj.prototype.dismissibleItemOnCommandSent;Mj.prototype.dismissibleItemOnRequestSent=Mj.prototype.dismissibleItemOnRequestSent;Mj.prototype.dismissibleItemOnYtServiceRequestSent_=Mj.prototype.dismissibleItemOnYtServiceRequestSent_;Mj.prototype.dismissibleItemDataChanged_=Mj.prototype.dismissibleItemDataChanged_;
Mj.prototype.dismissibleItemIsDismissedChanged_=Mj.prototype.dismissibleItemIsDismissedChanged_;_.T([_.k(_.gI),_.N("design:type",Object)],Mj.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Mj.prototype,"ytdReduxBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Mj.prototype,"isDismissed",void 0);_.T([_.g(),_.N("design:type",Object)],Mj.prototype,"dismissedRenderer",void 0);
_.T([_.Yh("isDismissed"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],Mj.prototype,"dismissibleItemIsDismissedChanged_",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mj.prototype,"dismissibleItemDataChanged_",null);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],Mj.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.T([_.Le("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Mj.prototype,"dismissibleItemOnRequestSent",null);
_.T([_.Le("yt-dismissible-item-action"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Array]),_.N("design:returntype")],Mj.prototype,"dismissibleItemOnCommandSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],Mj.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.T([_.l9()],Mj);_.uf=[_.gI,_.sv,Mj.prototype];var en=function(){var X=_.Hc.apply(this,arguments)||this;X.disableGridStateAware=!1;X.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};X.currentGridClass="";return X};
_.S(en,_.Hc);en.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.N0(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var X=this.gridStateAwareGetElement();_.TW(X,"grid",!0)}};
en.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
en.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.mh(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
en.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var X="grid-disabled";else{X=_.TN.getInstance();var H=this.get("pageSubtype");X=H&&Tmt.includes(H)?"grid-disabled":X.currentSnapState_?X.currentSnapState_.className:null}(H=this.gridStateAwareGetElement())&&X!==this.currentGridClass&&(X&&_.TW(H,X,!0),this.currentGridClass&&_.TW(H,this.currentGridClass,!1),this.currentGridClass=X)};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],en.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",String)],en.prototype,"gridStateAwareSizingElementSelector",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],en.prototype,"disableGridStateAware",void 0);_.T([_.l9()],en);_.yx=[en.prototype,_.rh.YtActionHandlerBehavior];_.Vx=new _.gz("GUIDE_TOKEN");var f0;_.PO={};f0=function(){var X=_.Hc.apply(this,arguments)||this;X.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 X};
_.S(f0,_.Hc);_.R=f0.prototype;_.R.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.R.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var X=_.jJ().resolve(_.c$(_.Vx));X&&(this.guidePersistentAndVisible=X.getGuidePersistentAndVisible(),this.activeEndpoint=X.getActiveEndpoint(),this.guideOpened=X.getGuideOpened(),this.miniGuideVisible=X.getMiniGuideVisible())};
_.R.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.R.handleGuideStateAction=function(X){this.guidePersistentAndVisible=X};
_.R.handleMiniGuideStateAction=function(X){this.miniGuideVisible=X};
_.R.handleGuideOpenedAction=function(X){this.guideOpened=X};
_.R.handleActiveEndpointAction=function(X){this.activeEndpoint=X};
f0.prototype.onActiveEndpointChange=f0.prototype.onActiveEndpointChange;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],f0.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],f0.prototype,"guidePersistentAndVisible",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],f0.prototype,"miniGuideVisible",void 0);_.T([_.g(),_.N("design:type",Object)],f0.prototype,"activeEndpoint",void 0);
_.T([_.Yh("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],f0.prototype,"onActiveEndpointChange",null);_.T([_.g(),_.N("design:type",Boolean)],f0.prototype,"guideOpened",void 0);_.T([_.l9()],f0);_.PO.YtdGuideStateAwareBehavior=[];_.PO.YtdGuideStateAwareBehavior.push(f0.prototype,_.rh.YtActionHandlerBehavior);var vxF=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],p0=function(){var X=_.Hc.apply(this,arguments)||this;X.hoverJobId=0;X.JSC$14755_touched=!1;return X};
_.S(p0,_.Hc);_.R=p0.prototype;_.R.created=function(){this.useExpandableTooltip=!vxF.includes(this.is)};
_.R.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.R.detached=function(){this.useExpandableTooltip=!1};
_.R.lockupOnDown=function(X){this.interactionElement&&!_.WS(_.t2(X),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.R.lockupOnUp=function(X){this.interactionElement&&!_.WS(_.t2(X),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.R.onTouchStart=function(){this.JSC$14755_touched=!0};
_.R.lockupOnMouseEnter=function(){var X=this,H=_.Yy("kevlar_lockup_hover_delay",-1);this.JSC$14755_touched&&H>=0?(_.Ss.cancelJob(this.hoverJobId),this.hoverJobId=_.Ss.addJob(function(){X.lockupIsHovered=!0},8,H),this.JSC$14755_touched=!1):this.lockupIsHovered=!0};
_.R.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Ss.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.R.lockupOnPopupClosed=function(X,H){var l;((l=H.popupRenderer)==null?void 0:l.is)==="ytd-menu-popup-renderer"&&(X=H.popupRenderer.veData,H=_.Bi(),X&&H&&_.kB(H,[X]))};
_.R.lockupOnLockupRequested=function(X){var H=X.detail.videoIds[0],l;X.detail&&H===((l=this.data)==null?void 0:l.videoId)&&(X.detail.returnValue=[this.data])};
_.R.lockupOnYtServiceRequestSent=function(X,H){if(X=H.actions)for(var l=0;l<X.length;l++){var b=X[l];if(b.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&H.ajaxPromise){var U=void 0,K=(U=_.f(H.endpoint,_.MI))==null?void 0:U.playlistId;U=void 0;b=(U=b.removedVideoId)!=null?U:"";qYD(_.D7(),b,K)}else b.action==="ACTION_REMOVE_VIDEO"&&H.ajaxPromise&&(K=void 0,b=(K=b.setVideoId)!=null?K:"",_.sn_(_.D7(),b))}};
_.R.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.R.lockupOnLockupEnabled=function(){if(!this.$){var X=_.jJ().resolve(_.gd).getCurrentPage(),H=this.getParentRenderer?this.getParentRenderer():void 0;_.x2(new _.qd("component not ready",this.is,this.isAttached,X==null?void 0:X.is,H==null?void 0:H.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
p0.prototype.lockupOnLockupEnabled=p0.prototype.lockupOnLockupEnabled;p0.prototype.lockupOnLockupDisabled=p0.prototype.lockupOnLockupDisabled;p0.prototype.lockupOnYtServiceRequestSent=p0.prototype.lockupOnYtServiceRequestSent;p0.prototype.lockupOnLockupRequested=p0.prototype.lockupOnLockupRequested;p0.prototype.lockupOnPopupClosed=p0.prototype.lockupOnPopupClosed;p0.prototype.lockupOnMouseLeave=p0.prototype.lockupOnMouseLeave;p0.prototype.lockupOnMouseEnter=p0.prototype.lockupOnMouseEnter;
p0.prototype.onTouchStart=p0.prototype.onTouchStart;p0.prototype.lockupOnUp=p0.prototype.lockupOnUp;p0.prototype.lockupOnDown=p0.prototype.lockupOnDown;_.T([_.g(),_.N("design:type",Object)],p0.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],p0.prototype,"lockupIsHovered",void 0);_.T([_.g(),_.N("design:type",Boolean)],p0.prototype,"lockupTouchTriggered",void 0);_.T([_.g(),_.N("design:type",Boolean)],p0.prototype,"useExpandableTooltip",void 0);
_.T([_.A2("#interaction"),_.N("design:type",Object)],p0.prototype,"interactionElement",void 0);_.T([_.Le("down"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],p0.prototype,"lockupOnDown",null);_.T([_.Le("up"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],p0.prototype,"lockupOnUp",null);
_.T([_.Le("touchstart"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p0.prototype,"onTouchStart",null);_.T([_.Le("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p0.prototype,"lockupOnMouseEnter",null);_.T([_.Le("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p0.prototype,"lockupOnMouseLeave",null);
_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],p0.prototype,"lockupOnPopupClosed",null);_.T([_.Le("yt-lockup-requested"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],p0.prototype,"lockupOnLockupRequested",null);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],p0.prototype,"lockupOnYtServiceRequestSent",null);_.T([_.Le("yt-disable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p0.prototype,"lockupOnLockupDisabled",null);
_.T([_.Le("yt-enable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p0.prototype,"lockupOnLockupEnabled",null);_.T([_.l9()],p0);_.Sn=[p0.prototype];_.OK_={YtdReduxBehavior:[]};_.OK_.YtdReduxBehavior.push.apply(_.OK_.YtdReduxBehavior,_.sv);var zC=function(){var X=_.Hc.apply(this,arguments)||this;X._noAccessors=!0;X.disableNowPlaying=!1;X.disableTooltips=!1;X.useHoveredProperty=!1;X.hovered=!1;X.isThumbnailHovered_=!1;X.addBackground=_.P("kevlar_thumbnail_bg");X.nowPlaying=!1;X.disableRounding=!1;X.size="small";return X};
_.S(zC,_.Hc);_.R=zC.prototype;_.R.computeThumbnailOverlaySidePanelWidth_=function(X,H){return X-H};
_.R.computeSize=function(X,H){if(!this.disableRounding){if(!X&&!H)return"small";X=Math.max(X||0,H||0);return X>=256?"large":X>=96?"medium":"small"}};
_.R.computeFinalHoveredState_=function(X,H,l){return this.nowPlaying?!1:_.P("kevlar_thumbnail_fluid")&&X?H:l};
_.R.computeHoverOverlays_=function(X,H){return X&&H?H:void 0};
_.R.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.R.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.R.checkMiniplayer_=function(){var X;if(((X=this.data)==null?0:X.playlistSetVideoId)&&_.P("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{X=_.HW();var H=X.currentEndpoint;!this.disableNowPlaying&&H&&_.f(H,_.ku)&&this.data?(H=_.f(H,_.ku),this.nowPlaying=this.data.playlistId?H.playlistId===this.data.playlistId:H.videoId===this.data.videoId,this.isVideoPlaying=X==null?void 0:X.isVideoPlaying):this.nowPlaying=!1}};
zC.prototype.checkMiniplayer_=zC.prototype.checkMiniplayer_;zC.prototype.onMouseLeave_=zC.prototype.onMouseLeave_;zC.prototype.onMouseEnter_=zC.prototype.onMouseEnter_;zC.prototype.computeHoverOverlays_=zC.prototype.computeHoverOverlays_;zC.prototype.computeFinalHoveredState_=zC.prototype.computeFinalHoveredState_;zC.prototype.computeSize=zC.prototype.computeSize;zC.prototype.computeThumbnailOverlaySidePanelWidth_=zC.prototype.computeThumbnailOverlaySidePanelWidth_;
_.T([_.k(_.sv),_.N("design:type",Object)],zC.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],zC.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Number)],zC.prototype,"height",void 0);_.T([_.g(),_.N("design:type",Boolean)],zC.prototype,"bottomSidePanel",void 0);_.T([_.g(),_.N("design:type",Number)],zC.prototype,"width",void 0);_.T([_.g(),_.N("design:type",Object)],zC.prototype,"disableNowPlaying",void 0);
_.T([_.g({selector:_.s9}),_.N("design:type",Boolean)],zC.prototype,"miniplayerIsActive",void 0);_.T([_.g(),_.N("design:type",Object)],zC.prototype,"disableTooltips",void 0);_.T([_.g(),_.N("design:type",Object)],zC.prototype,"useHoveredProperty",void 0);_.T([_.g(),_.N("design:type",Object)],zC.prototype,"hovered",void 0);_.T([_.g(),_.N("design:type",Object)],zC.prototype,"isThumbnailHovered_",void 0);
_.T([_.g({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.N("design:type",Boolean)],zC.prototype,"finalHoveredState_",void 0);_.T([_.g({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.N("design:type",Number)],zC.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zC.prototype,"addBackground",void 0);
_.T([_.g({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.N("design:type",Object)],zC.prototype,"hoverOverlays_",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zC.prototype,"nowPlaying",void 0);_.T([_.g(),_.N("design:type",Boolean)],zC.prototype,"isVideoPlaying",void 0);_.T([_.g(),_.N("design:type",Object)],zC.prototype,"disableRounding",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.N("design:type",Object)],zC.prototype,"size",void 0);_.T([_.Le("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zC.prototype,"onMouseEnter_",null);_.T([_.Le("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zC.prototype,"onMouseLeave_",null);
_.T([_.Yh("data","disableNowPlaying","miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zC.prototype,"checkMiniplayer_",null);_.T([_.l9()],zC);var mmq=[zC.prototype];_.n0={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(X,H){return X+":"+_.Ly(H)},
getPlayerListener_:function(X,H,l){X=this.getPlayerListenerKey_(X,H);H=this.playerListeners_.get(X);l&&this.playerListeners_.delete(X);return H},
savePlayerListener_:function(X,H){var l=H.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(X,H),l);return l},
listenToPlayerEvent:function(X,H,l){l=this.savePlayerListener_(H,l);X.addEventListener(H,l)},
listenToPlayerEvents:function(X,H){H.forEach(function(l,b){this.listenToPlayerEvent(X,b,l)}.bind(this))},
unlistenFromPlayerEvent:function(X,H,l){l=this.getPlayerListener_(H,l,!0);X.removeEventListener(H,l)},
unlistenFromPlayerEvents:function(X,H){H.forEach(function(l,b){this.unlistenFromPlayerEvent(X,b,l)}.bind(this))}}};
_.kW=function(){};_.Q7Q=new _.gz("PLAYER_API_TOKEN");var CNb=!1,F6O,dmO=!1,qk8;var vS=function(X,H,l,b,U){_.$e.call(this);var K=this;this.playerId=H;this.webPlayerContextConfig=b;this.y17=U;this.pJ1=!1;this.api={};this.ymC=this.sLX=null;this.lXm=new _.RF;this.mP={};this.gxU=this.s2H=this.elementId=this.nEy=this.config=null;this.fYB=!1;this.hN=this.eNU=null;this.efv={};this.wnT=["onReady"];this.lastError=null;this.pPa=NaN;this.ygH={};this.v3v=0;this.iD=this.targetElement=X;_.LY(this,this.lXm);TH6(this);l?this.v3v=setTimeout(function(){K.loadNewVideoConfig(l)},0):b&&(NH_(this),
czF(this))};
_.S(vS,_.$e);vS.prototype.getId=function(){return this.playerId};
vS.prototype.loadNewVideoConfig=function(X){if(!this.isDisposed()){this.v3v&&(clearTimeout(this.v3v),this.v3v=0);var H=X||{};H instanceof P_Q||(H=new P_Q(H));this.config=H;this.setConfig(X);czF(this);this.isReady()&&j79(this)}};
var NH_=function(X){var H;X.webPlayerContextConfig?H=X.webPlayerContextConfig.rootElementId:H=X.config.attrs.id;X.elementId=H||X.elementId;X.elementId==="video-player"&&(X.elementId=X.playerId,X.webPlayerContextConfig?X.webPlayerContextConfig.rootElementId=X.playerId:X.config.attrs.id=X.playerId);var l;((l=X.iD)==null?void 0:l.id)===X.elementId&&(X.elementId+="-player",X.webPlayerContextConfig?X.webPlayerContextConfig.rootElementId=X.elementId:X.config.attrs.id=X.elementId)};
vS.prototype.setConfig=function(X){this.nEy=X;this.config=rzG(X);NH_(this);if(!this.s2H){var H;this.s2H=Jz_(this,((H=this.config.args)==null?void 0:H.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var l;if((l=this.config)==null?0:l.attrs)X=this.config.attrs,(H=X.width)&&this.iD&&(this.iD.style.width=xo(Number(H)||H,!0)),(X=X.height)&&this.iD&&(this.iD.style.height=xo(Number(X)||X,!0))};
vS.prototype.getConfig=function(){return this.nEy};
var j79=function(X){if(X.config&&X.config.loaded!==!0)if(X.config.loaded=!0,!X.config.args||X.config.args.autoplay!=="0"&&X.config.args.autoplay!==0&&X.config.args.autoplay!==!1){var H;X.api.loadVideoByPlayerVars((H=X.config.args)!=null?H:null)}else X.api.cueVideoByPlayerVars(X.config.args)},YkD=function(X){var H=!0,l=X.getPlayerElement();
l&&X.config&&(H=l.dataset.version===L6C(X));return H&&!!_.ij("yt.player.Application.create")},czF=function(X){if(!X.isDisposed()&&!X.fYB){var H=YkD(X);
if(H&&(X.getPlayerElement()?"html5":null)==="html5")X.gxU="html5",X.isReady()||IQ6(X);else if(AzD(X),X.gxU="html5",H&&X.hN&&X.targetElement)X.targetElement.appendChild(X.hN),IQ6(X);else{X.config&&(X.config.loaded=!0);var l=!1;X.eNU=function(){l=!0;var b=X_D(X,"player_bootstrap_method")?_.ij("yt.player.Application.createAlternate")||_.ij("yt.player.Application.create"):_.ij("yt.player.Application.create");var U=X.config?rzG(X.config):void 0;b&&b(X.targetElement,U,X.webPlayerContextConfig,X.y17);IQ6(X)};
X.fYB=!0;H?X.eNU():(_.VX(L6C(X),X.eNU),(H=HsH(X))&&sy8(H||""),lP_(X)&&!l&&_.cQ("yt.player.Application.create",null))}}};
vS.prototype.getPlayerElement=function(){var X=_.iE(document,this.elementId);!X&&this.iD&&this.iD.querySelector&&(X=this.iD.querySelector("#"+this.elementId));return X};
var IQ6=function(X){if(!X.isDisposed()){var H=X.getPlayerElement(),l=!1;H&&H.getApiInterface&&H.getApiInterface()&&(l=!0);if(l){X.fYB=!1;if(!X_D(X,"html5_remove_not_servable_check_killswitch")){var b;if((H==null?0:H.isNotServable)&&X.config&&(H==null?0:H.isNotServable((b=X.config.args)==null?void 0:b.video_id)))return}oFz(X)}else X.pPa=setTimeout(function(){IQ6(X)},50)}},oFz=function(X){TH6(X);
X.pJ1=!0;var H=X.getPlayerElement();if(H){X.sLX=bs_(X,H,"addEventListener");X.ymC=bs_(X,H,"removeEventListener");var l=H.getApiInterface();l=l.concat(H.getInternalApiInterface());for(var b=X.api,U=0;U<l.length;U++){var K=l[U];b[K]||(b[K]=bs_(X,H,K))}}for(var w in X.mP)X.mP.hasOwnProperty(w)&&X.sLX&&X.sLX(w,X.mP[w]);j79(X);X.s2H&&X.s2H(X.api);X.lXm.publish("onReady",X.api)},bs_=function(X,H,l){var b=H[l];
return function(){var U=_.Ab.apply(0,arguments);try{return X.lastError=null,b.apply(H,U)}catch(K){if(l!=="sendAbandonmentPing")throw K.params=l,X.lastError=K,U=new _.qd("PlayerProxy error in method call",{error:K,method:l,playerId:X.playerId}),U.level="WARNING",U;}}},TH6=function(X){X.pJ1=!1;
if(X.ymC)for(var H in X.mP)X.mP.hasOwnProperty(H)&&X.ymC(H,X.mP[H]);for(var l in X.ygH)X.ygH.hasOwnProperty(l)&&clearTimeout(Number(l));X.ygH={};X.sLX=null;X.ymC=null;H=X.api;for(var b in H)H.hasOwnProperty(b)&&(H[b]=null);H.addEventListener=function(U,K){X.addEventListener(U,K)};
H.removeEventListener=function(U,K){X.removeEventListener(U,K)};
H.destroy=function(){X.dispose()};
H.getLastError=function(){return X.getLastError()};
H.getPlayerType=function(){return X.getPlayerType()};
H.getCurrentVideoConfig=function(){return X.getConfig()};
H.loadNewVideoConfig=function(U){X.loadNewVideoConfig(U)};
H.isReady=function(){return X.isReady()}};
vS.prototype.isReady=function(){return this.pJ1};
vS.prototype.addEventListener=function(X,H){var l=this;this.isDisposed();var b=Jz_(this,H);b&&(_.vh(this.wnT,X)||this.mP[X]||(H=UrG(this,X),this.sLX&&this.sLX(X,H)),this.lXm.subscribe(X,b),X==="onReady"&&this.isReady()&&setTimeout(function(){b(l.api)},0))};
vS.prototype.removeEventListener=function(X,H){this.isDisposed()||(H=Jz_(this,H))&&this.lXm.unsubscribe(X,H)};
var Jz_=function(X,H){var l=H;if(typeof H==="string"){if(X.efv[H])return X.efv[H];l=function(){var b=_.Ab.apply(0,arguments),U=_.ij(H);if(U)try{U.apply(_.ok,b)}catch(K){throw b=new _.qd("PlayerProxy error when executing callback",{error:K}),b.level="ERROR",b;}};
X.efv[H]=l}return l?l:null},UrG=function(X,H){var l=function(b){var U=function(){X.isDisposed();
if(!X.isDisposed())try{X.lXm.publish(H,b!=null?b:void 0)}catch(d){var w=new _.qd("PlayerProxy error when creating global callback",{error:d.message,event:H,playerId:X.playerId,data:b,originalStack:d.stack,componentStack:d.componentStack});w.level="WARNING";throw w;}};
if(X_D(X,"web_player_publish_events_immediately"))U();else{var K=setTimeout(function(){U();_.Bb.remove(X.ygH,String(K))},0);
_.Bb.add(X.ygH,String(K),!0)}};
return X.mP[H]=l};
vS.prototype.getPlayerType=function(){return this.gxU||(this.getPlayerElement()?"html5":null)};
vS.prototype.getLastError=function(){return this.lastError};
var AzD=function(X){X.cancel();TH6(X);X.gxU=null;X.config&&(X.config.loaded=!1);var H=X.getPlayerElement();H&&(YkD(X)||!lP_(X)?X.hN=H:(H&&H.destroy&&H.destroy(),X.hN=null));X.targetElement&&_.fx(X.targetElement)};
vS.prototype.cancel=function(){this.eNU&&_.GIk(L6C(this),this.eNU);clearTimeout(this.pPa);this.fYB=!1};
vS.prototype.disposeInternal=function(){AzD(this);if(this.hN&&this.config&&this.hN.destroy)try{this.hN.destroy()}catch(H){var X=new _.qd("PlayerProxy error during disposal",{error:H});X.level="ERROR";throw X;}this.efv=null;for(X in this.mP)this.mP.hasOwnProperty(X)&&delete this.mP[X];this.nEy=this.config=this.api=null;delete this.targetElement;delete this.iD;_.$e.prototype.disposeInternal.call(this)};
var lP_=function(X){var H,l;X=(H=X.config)==null?void 0:(l=H.args)==null?void 0:l.fflags;return!!X&&X.indexOf("player_destroy_old_version=true")!==-1},L6C=function(X){return X.webPlayerContextConfig?X.webPlayerContextConfig.jsUrl:(X=X.config.assets)?X.js:""},HsH=function(X){return X.webPlayerContextConfig?X.webPlayerContextConfig.cssUrl:(X=X.config.assets)?X.css:""},X_D=function(X,H){if(X.webPlayerContextConfig)var l=X.webPlayerContextConfig.serializedExperimentFlags;
else{var b;if((b=X.config)==null?0:b.args)l=X.config.args.fflags}return(l||"").split("&").includes(H+"=true")},rzG=function(X){for(var H={},l=_.C(Object.keys(X)),b=l.next();!b.done;b=l.next()){b=b.value;
var U=X[b];H[b]=typeof U==="object"?_.Bb.clone(U):U}return H};var yzK={},etN="player_uid_"+(Math.random()*1E9>>>0);var xW=function(X,H,l,b,U,K){H=H===void 0?document.createElement("div"):H;this.webPlayerContextConfig=X;this.container=H;this.commandResolver=l;this.apiResolver=fQO();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.cF;b||K?$rC(this):KpQ(this);this.pendingPlayerResponse=b;this.pendingWatchNextResponse=U;this.pendingPlayerVars=K;R8_(this)};
xW.prototype.loadVideoWithPlayerResponse=function(X,H,l){this.loadVideo(X,H,l)};
xW.prototype.loadVideoWithPlayerVars=function(X){return this.loadVideo(void 0,void 0,X)};
xW.prototype.destroy=function(X){if(X=_.iE(document,X))X=etN+"_"+_.Ly(X),(X=yzK[X])&&X.dispose()};
var w_C=function(X,H){var l;_.h(function(b){if(b.nextAddress==1)return X.pendingWatchNextResponse=H,X.synchronousApi?(l=X.synchronousApi,b.jumpTo(2)):b.yield(X.api,3);b.nextAddress!=2&&(l=b.yieldResult);if(!Cl6(X,l))return b.return();X.pendingWatchNextResponse&&(l.updateVideoData({raw_watch_next_response:X.pendingWatchNextResponse}),X.pendingWatchNextResponse=void 0);_.m5(b)})},Cl6=function(X,H){var l;
if(!(H==null?0:(l=H.isReady)==null?0:l.call(H))){var b;_.x2(new _.qd("playerApi is falsey",{synchronousApi:X.synchronousApi,apiResolved:X.apiResolver.resolved,playerApiUndefined:H===void 0,playerApiNull:H===null,playerApiReady:(H==null?void 0:(b=H.isReady)==null?void 0:b.call(H))===!0,playerApiMethods:H?Object.keys(H):[]}));return!1}return!0},drC=function(X,H){if(typeof X[H]==="function")return X[H]()},h8C=function(X){var H=window,l,b=(l=H.ytplayer)==null?void 0:l.bootstrapPlayerContainer;
if((l=b==null?void 0:b.firstElementChild)&&_.gB(l,"html5-video-player")){var U,K,w=(U=H.ytplayer)==null?void 0:(K=U.bootstrapWebPlayerContextConfig)==null?void 0:K.contextId;U=X.webPlayerContextConfig.contextId;if(w&&w===U){b!==X.container&&(b=!1,drC(l,"getPlayerState")===2&&(b=!0),X.container.appendChild(l),b||drC(l,"playVideo"));var d;if((d=H.ytplayer)==null?0:d.bootstrapPlayerResponse)X.bootstrapPlayerResponse=H.ytplayer.bootstrapPlayerResponse}}},R8_=function(X){var H,l,b,U,K;
_.h(function(w){if(w.nextAddress==1)return X.pageReadyOrDataAvailable?w.jumpTo(2):w.yield(X.pageReadyOrDataAvailableResolver.promise,2);if(w.nextAddress!=4)return!_.P("kevlar_player_unified_player_loading")||w2N()&&hty()?w.jumpTo(4):w.yield(MdZ(),4);h8C(X);if(X.pendingPlayerResponse||X.pendingPlayerVars)H=uuK(X.pendingPlayerResponse,X.pendingWatchNextResponse,X.pendingPlayerVars),X.pendingPlayerResponse&&X.pendingPlayerResponse===X.bootstrapPlayerResponse&&(H.loaded=!0),X.bootstrapPlayerResponse=
void 0;l=PNl(X.container,H,X.webPlayerContextConfig);((b=H)==null?0:b.loaded)&&X.pendingWatchNextResponse?(w_C(X,X.pendingWatchNextResponse),X.pendingPlayerResponse=void 0,X.pendingPlayerVars=void 0):FpH(X);U=function(d){l.removeEventListener("onReady",U);X.synchronousApi=d;X.apiResolver.resolve(d)};
l.addEventListener("onReady",U);X.commandResolver!==void 0&&(K=X.commandResolver,l.addEventListener("innertubeCommand",function(d){K(d)}));
_.m5(w)})};
xW.prototype.loadVideo=function(X,H,l){var b=this,U,K,w,d,B,q,u,e,y;return _.h(function(V){if(V.nextAddress==1)return b.pendingPlayerResponse=X,b.pendingWatchNextResponse=H,b.pendingPlayerVars=l,$rC(b),b.synchronousApi?(U=b.synchronousApi,V.jumpTo(2)):V.yield(b.api,3);V.nextAddress!=2&&(U=V.yieldResult);if(!Cl6(b,U))return V.return(new Promise(function(){}));
w=new Promise(function(p){K=p});
d=function(){var p=U.getPlayerResponse();p&&(U.removeEventListener("onVideoDataChange",d),K(p))};
U.addEventListener("onVideoDataChange",d);if(b.pendingPlayerResponse||b.pendingPlayerVars)b.pendingPlayerResponse&&b.pendingPlayerResponse===b.bootstrapPlayerResponse?(K(b.pendingPlayerResponse),b.pendingWatchNextResponse&&w_C(b,b.pendingWatchNextResponse)):(B=uuK(b.pendingPlayerResponse,b.pendingWatchNextResponse,b.pendingPlayerVars),(y=(q=b.pendingPlayerResponse)==null?void 0:(u=q.playerConfig)==null?void 0:(e=u.playbackStartConfig)==null?void 0:e.startPaused)?U.cueVideoByPlayerVars(B.args):U.loadVideoByPlayerVars(B.args)),
FpH(b),b.bootstrapPlayerResponse=void 0;return V.return(w)})};
var KpQ=function(X){if(document.readyState==="complete"||document.readyState==="interactive")$rC(X);else{var H=function(){document.removeEventListener("DOMContentLoaded",H);$rC(X)};
document.addEventListener("DOMContentLoaded",H)}},$rC=function(X){X.pageReadyOrDataAvailable=!0;
X.pageReadyOrDataAvailableResolver.resolve()},FpH=function(X){X.pendingPlayerResponse=void 0;
X.pendingWatchNextResponse=void 0;X.pendingPlayerVars=void 0};
_.ja.Object.defineProperties(xW.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var D$=function(X){Fn.call(this,X===void 0?"document_active":X);var H=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(l){H.transition("document_disposed",{event:l})});
window.addEventListener("beforeunload",function(l){H.transition("document_disposed_preventable",{event:l})});
window.addEventListener("unload",function(l){H.transition("document_disposed",{event:l});H.JSC$14788_hasRun=new Map})};
_.S(D$,Fn);
D$.prototype.runPreventableDispose=function(X,H){if(!this.JSC$14788_hasRun.get("document_disposed_preventable")){X(H==null?void 0:H.event);var l,b;if((H==null?0:(l=H.event)==null?0:l.defaultPrevented)||(H==null?0:(b=H.event)==null?0:b.returnValue)){H.event.returnValue||(H.event.returnValue=!0);H.event.defaultPrevented||H.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")};
D$.prototype.runDispose=function(X,H){this.JSC$14788_hasRun.get("document_disposed")?this.transition("document_active"):(X(H==null?void 0:H.event),this.JSC$14788_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
D$.prototype.runFlush=function(X,H){X(H==null?void 0:H.event);this.transition("document_active")};
D$.prototype.runActive=function(){};var tW=function(X){Fn.call(this,X===void 0?"document_visibility_unknown":X);var H=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(l){document.visibilityState==="visible"?H.transition("document_visible",{event:l}):H.transition("document_hidden",
{event:l})});
_.P("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(l){H.transition("document_backgrounded",{event:l})}),window.addEventListener("focus",function(l){H.transition("document_foregrounded",{event:l})}))};
_.S(tW,Fn);tW.prototype.runVisible=function(X,H){X(H==null?void 0:H.event);_.P("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
tW.prototype.runHidden=function(X,H){X(H==null?void 0:H.event);_.P("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
tW.prototype.runBackgrounded=function(X,H){X(H==null?void 0:H.event)};
tW.prototype.runForegrounded=function(X,H){X(H==null?void 0:H.event)};var WO=function(){this.teardownLifecycle=new D$;this.visibilityLifecycle=new tW};
WO.prototype.install=function(){var X=_.Ab.apply(0,arguments),H=this;X.forEach(function(l){H.teardownLifecycle.install(l)});
X.forEach(function(l){H.visibilityLifecycle.install(l)})};var Ev=function(){WO.call(this);var X={};this.install((X.document_disposed={callback:this.abortSlisAndFlush},X));_.P("combine_ve_grafts")&&(X={},this.install((X.document_disposed={callback:this.flushInteractionLoggingAttachVes},X)));X={};this.install((X.flush_logs={callback:this.logFinalPayload},X));_.P("web_log_cfg_cee_ks")||_.eh(_.Ss,BEY)};
_.S(Ev,WO);var p2Z=function(){Ev.loggingInstance||(Ev.loggingInstance=new Ev);return Ev.loggingInstance};
Ev.prototype.logFinalPayload=function(){if(_.P("web_fp_via_jspb")){var X=new kcH,H=_.Bi();H&&_.KY(X,1,H);H=_.P("jspb_sparse_encoded_pivot")?new uk([{}]):new uk;_.G2(H,380,xoD,X);gpy("finalPayload",H);_.P("web_fp_via_jspb_and_json")&&_.Sh("finalPayload",{csn:_.Bi()})}else _.Sh("finalPayload",{csn:_.Bi()})};
Ev.prototype.abortSlisAndFlush=function(){UC_(nk);k8!=null&&k8.flush()};
Ev.prototype.flushInteractionLoggingAttachVes=function(){n59(_.lv())};
var BEY=function(){var X=_.gx("CLIENT_EXPERIMENT_EVENTS");if(X){var H=wz8();X=_.C(X);for(var l=X.next();!l.done;l=X.next())l=l.value,H(l)&&_.Sh("genericClientExperimentEvent",{eventType:l});delete _.W$.CLIENT_EXPERIMENT_EVENTS}};var qrG={};
qrG.YtPlayerBehavior=[_.n0.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 X=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.cF;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;Sky(function(){X.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.xH(this,"pan-down"),_.P("kevlar_pinch_fullscreen")&&_.XV().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.P("kevlar_pinch_fullscreen")&&_.XV().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(X,H,l){var b=this;Om(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Om(!1,"MainAppPlayer already created.");else{var U=_.P("kevlar_player_container_query_killswitch")?this.$.container:_.mh(this.hostElement).querySelector("#container");this.mainAppPlayer_=new xW(this.getWebPlayerContextConfig_(),U,function(K){return _.Lc(K,b.hostElement)},X,H,l);
this.mainAppPlayer_.api.then(function(K){b.player_=K;b.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&kyq.resolve(K)})}},
loadVideoWithPlayerResponse:function(X,H){var l=this;if(this.useUnifiedPlayer_()){var b=this.watchNextData,U,K=(U=X.videoDetails)==null?void 0:U.videoId,w,d,B;(U=(w=this.watchNextData)==null?void 0:(d=w.currentVideoEndpoint)==null?void 0:(B=d.watchEndpoint)==null?void 0:B.videoId)&&K!=U&&(b=void 0,_.P("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(X,b,H):this.createMainAppPlayer_(X,b,H);this.mainAppPlayer_.api.then(function(){_.QX(l.hostElement,
"yt-player-updated")})}else this.update($mL(X,H))},
loadVideoWithPlayerVars:function(X){var H=this;this.useUnifiedPlayer_()?(_.P("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(X):this.createMainAppPlayer_(void 0,void 0,X),this.mainAppPlayer_.api.then(function(){_.QX(H.hostElement,"yt-player-updated")})):this.update({args:X})},
update:function(X){var H=this;if(this.useUnifiedPlayer_())Om(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(X);var l=Ngy(X.args);l&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==l&&Object.assign(X.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(X).then(function(b){_.QX(H.hostElement,"yt-player-updated",_.P("kevlar_player_updated_obsolete_player_killswitch")?
b:void 0)})}_.k2(new _.qd("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(H.getPlayerPromise(),2);l=b.yieldResult;if(!l)throw Error("wh");X&&H.updatePlayerPlaylist_(X);_.m5(b)})},
acquireApi_:function(X){var H=this;if(this.useUnifiedPlayer_())Om(!1,"Invalid method call in kevlar_unified_player.");else return _.Ss.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Om(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(l){H.shouldAutoplay_(X)?l.loadVideoByPlayerVars(X.args):l.cueVideoByPlayerVars(X.args)})):this.initPlayerPromise_=this.initPlayerContainer_(X),this.initPlayerPromise_},
initPlayerContainer_:function(X){var H=this;if(this.useUnifiedPlayer_())Om(!1,"Invalid method call in kevlar_unified_player.");else return Om(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.x2(Error("xh")),Om(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.P("kevlar_player_container_query_killswitch")?this.$.container:_.mh(this.hostElement).querySelector("#container"),MdZ().then(function(){var l=H.initPlayer_(X);H.playerResolver_.resolve(l);
return l})},
onPlayerReady_:function(X,H){this.useUnifiedPlayer_()?Om(!1,"Invalid method call in kevlar_unified_player."):(X.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&kyq.resolve(X),H(X))},
maybeCallApiMethodOnElement_:function(X,H){if(typeof X[H]==="function")return X[H]()},
maybeAdoptBootstrapPlayer_:function(){var X=window,H,l=(H=X.ytplayer)==null?void 0:H.bootstrapPlayerContainer;if((H=l==null?void 0:l.firstElementChild)&&H.classList.contains("html5-video-player")){var b,U,K=(b=X.ytplayer)==null?void 0:(U=b.bootstrapWebPlayerContextConfig)==null?void 0:U.contextId;b=this.getWebPlayerContextConfig_().contextId;if(K&&K===b){l!==this.playerContainer_&&(l=!1,this.maybeCallApiMethodOnElement_(H,"getPlayerState")===2&&(l=!0),this.playerContainer_.appendChild(H),l||this.maybeCallApiMethodOnElement_(H,
"playVideo"));var w;if((w=X.ytplayer)==null?0:w.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=X.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(X){var H=this;if(this.useUnifiedPlayer_())Om(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(l){H.maybeAdoptBootstrapPlayer_();var b=X?K6O(X):void 0;b&&b==H.bootstrapPlayerResponse_&&(X.loaded=!0);b=H.playerContainer_;var U=H.getWebPlayerContextConfig_();b=PNl(b,X,U);H.player_=b;H.onPlayerReadyEvent_=H.onPlayerReady_.bind(H,H.player_,l);H.player_.addEventListener("onReady",H.onPlayerReadyEvent_);H.player_.addEventListener("innertubeCommand",
H.onPlayerInnerTubeCommand_.bind(H))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(X){X.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(X){X.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var X=_.jJ().resolve(_.gd).getCurrentPage();X&&X.getScrollTop()<=0?_.xH(this,"pan-down"):_.xH(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(X){X.isFullscreen()||X.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(X){X.isFullscreen()&&X.toggleFullscreen()})},
updatePlayerPlaylist_:function(X){var H=this,l,b,U;return _.h(function(K){if(K.nextAddress==1)return l=_.jJ().resolve(_.c$(_.S3)),b=!!(l&&l.playlistComponent&&l.playlistComponent.loopOn),K.yield(H.getPlayerPromise(),2);var w=U=K.yieldResult,d=w.updatePlaylist,B=[];if(_.P("kevlar_player_playlist_use_local_index")){var q,u;var e=(u=(q=X.localCurrentIndex)!=null?q:X.currentIndex)!=null?u:0}else{var y;e=(y=X.currentIndex)!=null?y:0}if(X.contents)for(q=0;q<X.contents.length;q++)if((u=X.contents[q])&&u.playlistPanelVideoRenderer)if(Ony(u)){u=
u.playlistPanelVideoRenderer;y="";u.shortBylineText&&(y=_.D8(u.shortBylineText));var V="";u.title?V=_.D8(u.title):u.unplayableText&&(V=_.D8(u.unplayableText));B.push({author:y,title:V,encrypted_id:u.videoId})}else q<e&&--e;d.call(w,{index:e,list:X.playlistId?X.playlistId:"",loop:b,playlist_title:X.title,playlist_length:B.length,video:B,fetch:0,external_list:"1",title:X.title?X.title:"",playlist_author:X.ownerName?_.D8(X.ownerName):void 0});_.m5(K)})},
focusOnPlayer:function(){_.N0(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var X=this.playerContainer_.querySelector(".html5-video-player");X&&(_.g2(_.jJ().resolve(_.HS)),X.focus())}})},
preparePlayer:function(){var X=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(H){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")H();else{var l=function(){document.removeEventListener("DOMContentLoaded",l);H()};
document.addEventListener("DOMContentLoaded",l)}})).then(function(){return MdZ()}).then(function(){X.initPlayerPromise_||X.preparePlayerJobId_||(X.preparePlayerJobId_=_.eh(_.Ss,function(){X.initPlayerPromise_||(X.initPlayerPromise_=X.initPlayerContainer_())}))}):_.k2(new _.qd("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(X){this.useUnifiedPlayer_()?Om(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(X)||(X.args.autoplay="0")},
shouldAutoplay_:function(X){if(this.useUnifiedPlayer_())Om(!1,"Invalid method call in kevlar_unified_player.");else{var H=this.get("args.el",X);return H&&H!="detailpage"&&this.isMiniplayerActive_()||H&&(H=="sponsorshipsoffer"||H=="handlesclaiming")&&this.get("args.autoplay",X)=="0"?!1:(X=K6O(X))&&this.get("playerConfig.playbackStartConfig.startPaused",X)?!1:!0}},
isMiniplayerActive_:function(){return _.jJ().resolve(_.f9).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var X=this.getPlayer();if(X){var H=X.getPlayerState();_.P("kevlar_player_check_ad_state_on_stop")&&(H=X.getPlayerState(X.getPresentingPlayerType()));H!=5&&X.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(X,H,l){l=l===void 0?!1:l;var b=this,U,K,w,d;return _.h(function(B){if(B.nextAddress==1)return H||(H=b.hostElement),U=b.useUnifiedPlayer_()?!!b.mainAppPlayer_:!!b.initPlayerPromise_,U?B.yield(b.getPlayerPromise(),2):(l?X.insertBefore(H,X.firstChild):X.appendChild(H),B.return());K=B.yieldResult;w=K.getPlayerState(K.getPresentingPlayerType());d=!1;if(w==-1||w==1||w==3)d=!0;l?X.insertBefore(H,X.firstChild):X.appendChild(H);d&&K.playVideo();K.setSize(NaN,NaN);_.m5(B)})},
watchNextDataChanged_:function(X){var H=this;X&&(this.useUnifiedPlayer_()&&_.P("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&w_C(this.mainAppPlayer_,X):this.getPlayerPromise().then(function(l){l.updateVideoData(H.computeWatchNextPlayerVars_(X))}))},
computeWatchNextPlayerVars_:function(X){if(this.useUnifiedPlayer_()&&_.P("kevlar_unified_player_update_watch_next_killswitch"))Om(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:X}},
maybeSendAbandonmentPing_:function(){var X=this.getPlayer();X&&X.getPlayerState()!=5&&X.getPlayerState()!=0&&X.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var X=_.gx("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(X=Object.assign({},X),X.rootElementId=this.playerId);X.serializedExperimentIds&&X.serializedExperimentFlags||_.x2(Error("yh"));return X},
hasWebPlayerContextConfig_:function(){return!!_.gx("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(X){this.useUnifiedPlayer_()?Om(!1,"Invalid method call in kevlar_unified_player."):_.Lc(X,this.hostElement)},
useUnifiedPlayer_:function(){var X=_.P("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.P("kevlar_unified_player")||X}}];var sdQ={};sdQ.YtPlaylistPanelBehavior=[_.L.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(X){X=X.detail;if(X.actions.loop!=void 0||X.actions["yt-icons:loop"]!=void 0)this.loopOn=X.actions.loop||X.actions["yt-icons:loop"];if(X.actions.shuffle!=void 0||X.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=X.actions.shuffle||X.actions["yt-icons:shuffle"]},
setMenuData_:function(X){if(!X||!X.playlistButtons||X.isInfinite)return null;for(var H=X.playlistButtons.menuRenderer.topLevelButtons,l=H.length,b=0;b<l;b++)if(H[b].toggleButtonRenderer){var U=H[b].toggleButtonRenderer;U.defaultIcon.iconType=="LOOP"&&this.loopOn?U.isToggled=this.loopOn:U.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(U.isToggled=this.shuffleOn)}return X.playlistButtons}}];_.GC={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(X,H,l){var b=this.getClickTarget_(H);if(b&&this.isClickAllowed_(b)){H.preventDefault();X=(0,_.Bb.unsafeClone)(X);var U=this.getContainerBoundingRect();H=this.getRelativeClickXy_(H,U);this.expandEndpointUrlMacros_(X,{NX:H[0],NY:H[1],NB:b.code});l&&this.truncateWebCommendMetadataUrl_(X);_.QX(this.hostElement,"yt-navigate",{endpoint:X})}},
getClickTarget_:function(X){if(!this.clickTargetMap)return null;X=_.t2(X)||[];X=_.C(X);for(var H=X.next();!H.done;H=X.next()){H=H.value;if(H===_.mh(this.hostElement).querySelector("#menu"))break;if(H=this.clickTargetMap.get(H.id))return H}return null},
getRelativeClickXy_:function(X,H){var l=Math.round(X.detail.x-H.left);X=Math.round(X.detail.y-H.top);return l<0||X<0?[null,null]:[l,X]},
getContainerBoundingRect:function(){return _.mh(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(X,H){for(var l=_.C(X.loggingUrls||[]),b=l.next();!b.done;b=l.next())b=b.value,b.baseUrl&&(b.baseUrl=coh(b.baseUrl,H));X.urlEndpoint&&X.urlEndpoint.url&&(X.urlEndpoint.url=coh(X.urlEndpoint.url,H));X.commandMetadata&&X.commandMetadata.webCommandMetadata&&X.commandMetadata.webCommandMetadata.url&&(X.commandMetadata.webCommandMetadata.url=coh(X.commandMetadata.webCommandMetadata.url,H))},
truncateWebCommendMetadataUrl_:function(X){if(X.commandMetadata&&X.commandMetadata.webCommandMetadata&&X.commandMetadata.webCommandMetadata.url){var H=X.commandMetadata.webCommandMetadata.url,l=H.indexOf("&pp=");if(l>0){var b=H.indexOf("&",l+1);X.commandMetadata.webCommandMetadata.url=b>l&&b<H.length?H.slice(0,l)+H.slice(b):H.slice(0,l)}}},
configureClickTargets:function(X,H,l){this.containerId=X;this.clickTargetMap=new Map;X=_.C(H);for(H=X.next();!H.done;H=X.next())if(H=H.value,H.location){var b=l.get(H.location);b&&(_.TW(_.mh(this.hostElement).querySelector("#"+b),"yt-simple-endpoint",this.isClickAllowed_(H)),this.clickTargetMap.set(b,H))}},
isClickAllowed_:function(X){return X.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||X.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||X.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||X.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.aI={};
_.aI.YtLazyListBehavior=[_.tx.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 X=(this.constructor.generatedFrom||this).observers;X||(X=[]);X.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
X}},
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 X=this.renderElementsOutsideVisibleArea_;X&&(qjH(X,4),X.processSignal())},
deepLazyListObserver_:function(X){var H=this;if(X){var l=X.value||[];if(this.itemsPath==X.path){var b=this.nonDeferredItemCount;X=0;b>-1&&l.length>b&&(X=_.gx("REMAINING_DOVA_DEFERRED_CHUNKS",-1));X>0?(b>0&&(b=l.slice(0,b),this.setInitialItemsOnDataChanged(b)),(b=this.renderElementsOutsideVisibleArea_)?b.cancel():(b=this.renderElementsOutsideVisibleArea_=new _.EK(2,"eocs"),_.cay(window,"scroll",function(){return H.renderDeferredElements()})),_.gh(b,function(){H.setInitialItemsOnDataChanged(l)}),_.Et("REMAINING_DOVA_DEFERRED_CHUNKS",
X-1)):this.setInitialItemsOnDataChanged(l)}else if(this.itemsPath+".splices"==X.path)this.onItemsUpdated_(l);
else b="shownItems"+X.path.substr(this.itemsPath.length),this.useSignals&&b==="shownItems.length"||this.notifyPath(b,X.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(X){X&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(X),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(X){X=X.indexSplices;for(var H=0,l=X.length;H<l;H++){var b=X[H];if(b.index<this.shownCount&&(b.removed&&this.splice("shownItems",b.index,b.removed.length),b.addedCount)){var U=b.object.slice(b.index,b.index+b.addedCount);b=["shownItems",b.index,0];b.push.apply(b,U);this.splice.apply(this,b)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(X){this.cancelPendingTasks_();X||(X=[]);this.items_=X;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&&(_.G7("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.N0(this,this.tryRenderChunk_)))},
fillRange_:function(X,H){this.canShowMore&&this.items_&&(X=this.items_.slice(X,H),X.unshift("shownItems"),this.push.apply(this,X),this.shownCount=H,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var X=this;this.canShowMore&&_.pc(this,"renderChunk",function(){X.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.G7("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Rs(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var X=this.renderElementsOutsideVisibleArea_;X&&(X.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var X=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(X-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=X;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(X){return Math.ceil(1E3/X)},
onCanShowMoreUpdated_:function(X){this.data&&this.items_!==null&&(X?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(X){!this.shouldUseTaskManager()&&this.data&&(!X&&this.canShowMore?(_.hcK(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):X&&this.partiallyRenderedItems_.has(this.items_)&&(_.P("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Ov;_.Z$={};
Ov=function(){var X=_.Hc.apply(this,arguments)||this;X.atStart=!0;X.atEnd=!0;X.startIndex=0;X.endIndex=0;X.scrollCount=0;X.initialStartIndex=0;X.disableScrollEventListener=!1;X.useFloorScrolling=!1;X.isSearch=!1;X.dragging=!1;X.dragMouseStart=0;X.dragOffsetStart=0;X.disableWheelScroll=!1;X.centerListItems=!1;X.offset=0;X.minComponentWidth=0;X.marginWidthRight=0;X.marginWidthLeft=0;X.setButtonsStateRequested=!1;X.itemsVisibilityObserver=null;X.fullyVisibleItemsIndices=[];X.JSC$14817_onWheelScroll=function(H){if(X.isSearch&&
!X.disableWheelScroll&&_.P("desktop_enable_dmpanel_wheel_scroll")){var l=H.shiftKey?Math.abs(H.deltaY)>Math.abs(H.deltaX)?H.deltaY:H.deltaX:H.deltaX;l!==0&&(H.preventDefault(),X.ytLazyListBehavior.fillRemainingListItems(),X.offset+=l,vO(X),X.reposition_())}};
X.onPointerDown=function(H){MVH(X)&&(X.dragMouseStart=H.clientX,X.dragOffsetStart=X.offset,X.dragging=!0)};
X.onPointerMove=function(H){MVH(X)&&X.dragging&&(X.ytLazyListBehavior.fillRemainingListItems(),X.offset=X.dragOffsetStart-(H.clientX-X.dragMouseStart),vO(X),X.reposition_())};
X.onPointerUp=function(){MVH(X)&&(X.dragging=!1)};
return X};
_.S(Ov,_.Hc);var uzF=function(X){var H=_.mh(X.hostElement).querySelector("#items").children;if(!H)return 0;var l=0;X=_.C(X.fullyVisibleItemsIndices);for(var b=X.next();!b.done;b=X.next())l+=H[b.value].clientWidth;return l},MVH=function(X){return X.isSearch&&_.P("desktop_enable_dmpanel_click_drag_scroll")};
Ov.prototype.created=function(){this.cachedViewportWidth=_.gx("initialInnerWidth")||window.innerWidth;this.JSC$14817_cachedViewportHeight=_.gx("initialInnerHeight")||window.innerHeight;_.gx("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Et("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Ov.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.P("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();e8G(this)};
Ov.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.P("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var X;(X=this.itemsVisibilityObserver)==null||X.disconnect();this.itemsVisibilityObserver=null;var H;(H=this.itemsObserver)==null||H.disconnect()};
var e8G=function(X){var H=_.mh(X.hostElement).querySelector("#scroll-container");if(H){if(!X.itemsVisibilityObserver){var l=window.getComputedStyle(H).marginRight;X.itemsVisibilityObserver=new IntersectionObserver(function(b){ypY(X,b)},{root:H,
rootMargin:l,threshold:.98})}if(H=_.mh(X.hostElement).querySelector("#items"))X.itemsObserver=new lpQ(H,function(b){VVH(X,b)})}},VVH=function(X,H){PlY(X)&&(Array.from(H.addedNodes).filter(function(l){return l.nodeType===Node.ELEMENT_NODE}).forEach(function(l){X.itemsVisibilityObserver&&X.itemsVisibilityObserver.observe(l)}),Array.from(H.removedNodes).filter(function(l){return l.nodeType===Node.ELEMENT_NODE}).forEach(function(l){X.itemsVisibilityObserver&&X.itemsVisibilityObserver.unobserve(l)}))},
ypY=function(X,H){var l=new Set(X.fullyVisibleItemsIndices);
H=_.C(H);for(var b=H.next();!b.done;b=H.next()){b=b.value;var U=b.target.parentElement;U?(U=Array.from(U.children).indexOf(b.target),b.isIntersecting?l.add(U):l.has(U)&&l.delete(U)):_.x2(new _.qd("Parent element not found",b.target.nodeName))}X.fullyVisibleItemsIndices=Array.from(l).sort(function(K,w){return K-w});
l.size===0?_.x2(new _.qd("No visible entries in horizontal list")):(X.startIndex=X.fullyVisibleItemsIndices[0],X.endIndex=X.fullyVisibleItemsIndices[X.fullyVisibleItemsIndices.length-1])},PlY=function(X){X.data?X=(X=X.data)&&X.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===X.itemSizeConstraint:!1:X=!1;
return X};
_.R=Ov.prototype;_.R.addScrollEventListeners=function(){var X=_.mh(this.hostElement).querySelector("#scroll-container");X.style.touchAction="pan-y";X.addEventListener("wheel",this.JSC$14817_onWheelScroll);X.addEventListener("pointerdown",this.onPointerDown);X.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.R.removeScrollEventListeners=function(){var X=_.mh(this.hostElement).querySelector("#scroll-container");X.removeEventListener("wheel",this.JSC$14817_onWheelScroll);X.removeEventListener("pointerdown",this.onPointerDown);X.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.R.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.N0(this,this.setStartIndex,[this.initialStartIndex])};
_.R.reposition_=function(){var X=_.gx("HTML_DIR")=="rtl"?"":"-",H=_.mh(this.hostElement).querySelector("#items");H&&(H.style.transform="translateX("+X+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.R.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.N0(this,this.setButtonsState_))};
_.R.setButtonsState_=function(){this.setButtonsStateRequested=!1;var X=_.mh(this.hostElement).querySelector("#items").firstElementChild;if(X){this.minComponentWidth||(this.minComponentWidth=fPC(this,X));X=_.mh(this.hostElement).querySelector("#scroll-container").clientWidth;var H=_.mh(this.hostElement).querySelector("#items");H=_.P("kevlar_horizontal_list_scroll_width_killswitch")?H.clientWidth:H.scrollWidth;var l=this.get(this.ytLazyListBehavior.itemsPath,this);if(l){var b=Math.round(X/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+b,l.length)-1)}this.ytLazyListBehavior.canShowMore?H+this.minComponentWidth>=this.offset+X&&(this.atEnd=!1):this.atEnd=this.offset+X>=H-20?!0:!1;this.atStart=this.offset<=20}};
_.R.setStartIndex=function(X){if(!this.minComponentWidth){var H=_.mh(this.hostElement).querySelector("#items").firstElementChild;if(!H)return;this.minComponentWidth=fPC(this,H)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*X;vO(this);this.reposition_()};
_.R.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.rb();var X=_.mh(this.hostElement).querySelector("#scroll-container").clientWidth;_.P("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=fPC(this,_.mh(this.hostElement).querySelector("#items").firstElementChild));X=this.useFloorScrolling?Math.floor(X/this.minComponentWidth)||1:Math.round(X/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&p_t(this);this.offset+=PlY(this)?
uzF(this):X*this.minComponentWidth;vO(this);this.reposition_();this.scrollCount++};
_.R.prevClick_=function(){var X=_.mh(this.hostElement).querySelector("#scroll-container").clientWidth;X=this.useFloorScrolling?Math.floor(X/this.minComponentWidth)||1:Math.round(X/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=PlY(this)?uzF(this):this.minComponentWidth*this.scrollCount-1):this.offset-=PlY(this)?uzF(this):X*this.minComponentWidth;this.centerListItems&&p_t(this);vO(this);this.reposition_()};
_.R.onIronResize_=function(){this.resizeSupportEnabled&&_.N0(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.R.onItemsTransitionEnd_=function(X){_.WM(X)===_.mh(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.R.onChildElementFocus_=function(X){X=X.target.closest("#items > *");var H=_.mh(this.hostElement).querySelector("#scroll-container");if(H.contains(X)){if(_.P("web_horizontal_list_behavior_focus_killswitch"))if(X.offsetLeft<this.offset)this.offset=Math.abs(X.offsetLeft)<X.clientWidth?0:X.offsetLeft;else if(X.offsetLeft+X.clientWidth>this.offset+H.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.rb(),this.offset=X.offsetLeft+X.clientWidth-H.clientWidth;else return;else{var l=_.mh(this.hostElement).querySelector("#items"),
b=_.gx("HTML_DIR")==="rtl",U=b?l.clientWidth-X.offsetLeft:X.offsetLeft;l=b?l.clientWidth-(X.offsetLeft+X.clientWidth):X.offsetLeft+X.clientWidth;var K=b?U>this.offset+H.clientWidth:U<this.offset,w=b?l<this.offset:l>this.offset+H.clientWidth,d=b?K:w;if(b?w:K)H=b?l:U,this.offset=Math.abs(H)<X.clientWidth?0:H;else if(d)this.ytLazyListBehavior.fillRemainingListItems(),_.rb(),this.offset=(b?U:l)-H.clientWidth;else return}vO(this);this.reposition_()}};
_.R.observeShownItems_=function(){this.reset()};
_.R.checkComponentWidthResize=function(){var X=_.mh(this.hostElement).querySelector("#items").firstElementChild;X&&(X=fPC(this,X),this.centerListItems||X!==this.minComponentWidth)&&(this.minComponentWidth=X,this.offset=X*this.scrollCount,this.centerListItems&&p_t(this),vO(this),this.reposition_())};
var fPC=function(X,H){var l=window.getComputedStyle(H).marginRight;l=Math.floor(Number(l.replace("px","")));var b=window.getComputedStyle(H).marginLeft;b=Math.floor(Number(b.replace("px","")));X.centerListItems&&!X.marginWidthRight&&(X.marginWidthRight=l,X.marginWidthLeft=b);return X.resizeSupportEnabled?H.getBoundingClientRect().width+l:H.offsetWidth+l},vO=function(X){var H=_.mh(X.hostElement).querySelector("#scroll-container").clientWidth,l=_.mh(X.hostElement).querySelector("#items").clientWidth;
X.offset<0?X.offset=0:X.offset+H>=l&&(X.offset=l-H)},p_t=function(X){X.offset-=(_.mh(X.hostElement).querySelector("#scroll-container").clientWidth+X.marginWidthRight-X.minComponentWidth)/2-X.marginWidthLeft};
_.ja.Object.defineProperties(Ov.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var X=_.gx("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(X==-1)X=this.JSC$14817_cachedViewportHeight,X=X>1320?5:X>1020?4:X>730?3:X>430?2:1;else if(X==0)return 0;_.Et("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",X-1);X=_.gx("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(X>-1)return X;X=this.cachedViewportWidth;X=X>1600?6:X>1400?5:X>1300?4:X>1090?5:X>870?4:X>660?3:2;_.Et("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
X);return X},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.P("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Ov.prototype.observeShownItems_=Ov.prototype.observeShownItems_;Ov.prototype.onChildElementFocus_=Ov.prototype.onChildElementFocus_;Ov.prototype.onItemsTransitionEnd_=Ov.prototype.onItemsTransitionEnd_;Ov.prototype.onIronResize_=Ov.prototype.onIronResize_;Ov.prototype.prevClick_=Ov.prototype.prevClick_;Ov.prototype.nextClick_=Ov.prototype.nextClick_;Ov.prototype.setButtonsState_=Ov.prototype.setButtonsState_;Ov.prototype.requestButtonsStateUpdate_=Ov.prototype.requestButtonsStateUpdate_;
Ov.prototype.reposition_=Ov.prototype.reposition_;Ov.prototype.reset=Ov.prototype.reset;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.aI.YtLazyListBehavior),_.N("design:type",Object)],Ov.prototype,"ytLazyListBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ov.prototype,"atStart",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ov.prototype,"atEnd",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"startIndex",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"endIndex",void 0);_.T([_.g({value:6}),_.N("design:type",Number)],Ov.prototype,"initialCount",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"scrollCount",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"initialStartIndex",void 0);
_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"disableScrollEventListener",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"supportComponentResize",void 0);_.T([_.g({value:function(){var X=this;return function(){return X.prevClick_()}}}),
_.N("design:type",Function)],Ov.prototype,"boundPrevClick",void 0);_.T([_.g({value:function(){var X=this;return function(){return X.nextClick_()}}}),
_.N("design:type",Function)],Ov.prototype,"boundNextClick",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"useFloorScrolling",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"isSearch",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"dragging",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"dragMouseStart",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"dragOffsetStart",void 0);
_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"disableWheelScroll",void 0);_.T([_.g(),_.N("design:type",Object)],Ov.prototype,"centerListItems",void 0);_.T([_.Le("iron-resize"),_.Yh("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ov.prototype,"onIronResize_",null);_.T([_.Le("transitionend"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Ov.prototype,"onItemsTransitionEnd_",null);
_.T([_.Le("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Ov.prototype,"onChildElementFocus_",null);_.T([_.Yh("shownItems"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ov.prototype,"observeShownItems_",null);_.T([_.l9()],Ov);_.Z$.YtdHorizontalListBehavior=[];_.Z$.YtdHorizontalListBehavior.push(_.$s,_.L.YtRendererBehavior,_.aI.YtLazyListBehavior,_.PO.YtdGuideStateAwareBehavior,Ov.prototype);var nxW=["APP_STATE","PI"];var mj,Qx=function(X){this.hostElement=X},TC=function(X,H){if(H&&(tdZ(H.viewableCommands)||tdZ(H.endOfSessionCommands))){var l=Exy(H.viewableCommands);
H=Exy(H.endOfSessionCommands);if(!mj){var b=_.Yy("custom_active_view_tos_timeout_ms");mj=b>0&&b!==36E5?new lny(W6y(),b):new lny(W6y())}b4y(mj,X.hostElement);UAO(mj,X.hostElement,l,H)}},Nj=function(X){mj&&b4y(mj,X.hostElement)};var SrD=_.W8(["about:blank"]),z8Q={pushState:window.history.pushState,replaceState:window.history.replaceState};var cO=function(X){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=X;this.internalPushState=X.pushState.bind(X);this.internalReplaceState=X.replaceState.bind(X)};
cO.prototype.init=function(){this.initialized=!0};
cO.prototype.pushState=function(X,H){this.initialized||this.init();this.internalPushState&&this.internalPushState(X,"",H)};
cO.prototype.replaceState=function(X,H){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(X,"",H)};
cO.prototype.getState=function(){return this.history&&this.history.state};var nFD=function(X){var H=function(){var l=X.apply(this,arguments)||this;l.boundHistoryPushState=!1;l.boundHistoryReplaceState=!1;l.debugInfo={};return l};
_.S(H,X);H.prototype.init=function(){var l=_.XJ("IFRAME");_.RD(l,_.z8(SrD));l.sandbox="allow-same-origin";l.style.display="none";this.iframe=l;document.body.appendChild(l);this.bindHistoryStateFunctions();X.prototype.init.call(this)};
H.prototype.bindHistoryStateFunctions=function(){var l=this,b=[],U;this.iframe&&((U=this.iframe.contentWindow)==null?0:U.history)&&(U=this.iframe.contentWindow.history)&&(b.push(U),Object.getPrototypeOf(U)&&b.push(Object.getPrototypeOf(U)));window.history&&b.push(window.history);U=window.history;Object.getPrototypeOf(U)&&b.push(Object.getPrototypeOf(U));b.push(z8Q);U=function(w){for(var d=null,B=0;B<b.length;B++){var q=b[B][w];if(typeof q==="function"){d=q.bind(window.history);l.debugInfo[w]=B;break}}return d};
if(!this.boundHistoryReplaceState){var K=U("replaceState");K&&(this.internalReplaceState=K,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(U=U("pushState"))&&(this.internalPushState=U,this.boundHistoryPushState=!0)};
return H}(cO),kMC=function(){return nFD.call(this,window.history)||this};
_.S(kMC,nFD);kMC.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var jn=function(X){this.browserHistory=X;this.initialized=!1};
jn.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
jn.prototype.pushState=function(X,H){this.initialized||this.init();this.browserHistory.pushState(X,H)};
jn.prototype.replaceState=function(X,H){this.initialized||this.init();this.browserHistory.replaceState(X,H)};
jn.prototype.handlePopstate=function(X){return X.state};_.xr_=function(X,H,l,b,U){this.endpoint=X;this.forward=H;this.historyEntry=l;this.JSC$31245_savedComponentState=b;this.legacyBorder=U===void 0?!1:U};var Drz=function(X,H){this.rootData=X;this.scrollTop=H};_.r2=new _.gz("EPHEMERAL_STORE_TOKEN");_.JW=function(X){this.data=Object.assign({},X);var H;(H=this.data.innertubeResponse)==null||delete H.frameworkUpdates};
_.JW.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Jl)()};
_.JW.prototype.isProcessed=function(){return!!this.data.isProcessed};
_.Nf=function(X){return Object.assign({},X.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var tVC=function(){this.maxSize=100;this.timeToDataCache=new Map};
tVC.prototype.get=function(X){var H=this.timeToDataCache.get(X);H&&(this.timeToDataCache.delete(X),this.timeToDataCache.set(X,H));if(H&&H.rootData&&(_.P("web_use_response_store_for_history_cache")||_.P("mweb_use_new_history_manager"))){var l=_.jJ().resolve(_.r2),b=WpF(H),U=!!b;if(b){if(b.content){var K=L0(l,b.content);U&&K?H.rootData.response=_.Nf(K):U=!1}b.player&&(K=L0(l,b.player),U&&K?H.rootData.playerResponse=_.Nf(K):U=!1);b.reelSequence&&(l=L0(l,b.reelSequence),U&&l?H.rootData.reelWatchSequenceResponse=
_.Nf(l):U=!1)}U||(this.timeToDataCache.delete(X),H=void 0)}return H};
tVC.prototype.set=function(X,H){if(H.rootData&&(_.P("web_use_response_store_for_history_cache")||_.P("mweb_use_new_history_manager"))){var l=WpF(H),b=Object.assign({},H.rootData);l&&(l.content&&H.rootData.response&&(EFY(this,l.content,H.rootData.response),b.response=null),l.player&&H.rootData.playerResponse&&(EFY(this,l.player,H.rootData.playerResponse),b.playerResponse=null),l.reelSequence&&H.rootData.reelWatchSequenceResponse&&(EFY(this,l.reelSequence,H.rootData.reelWatchSequenceResponse),b.reelWatchSequenceResponse=
null));H=new Drz(b,H.scrollTop)}this.timeToDataCache.has(X)?this.timeToDataCache.delete(X):this.timeToDataCache.size>=this.maxSize&&(l=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(l.value));this.maxSize!==0&&this.timeToDataCache.set(X,H)};
tVC.prototype.clear=function(){this.timeToDataCache.clear()};
var WpF=function(X){var H=_.jJ().resolve(_.c$(_.Fk)),l;if((l=X.rootData)==null?0:l.endpoint)return H==null?void 0:cyz(H,X.rootData.endpoint);var b;_.x2(new _.qd("History snapshot response data does not contain endpoint",(b=X.rootData)==null?void 0:b.url));return null},EFY=function(X,H,l){if(X.maxSize>0){var b;
(X=(b=l.responseContext)==null?void 0:b.maxAgeSeconds)&&Number(X)>0&&(b=_.jJ().resolve(_.r2),l=TE(l,X),b.put(H,new _.JW(l)))}};var gF6=function(X,H,l){this.endpoint=H;this.JSC$31251_savedComponentState=l===void 0?null:l;this.entryTime=X};var GQK=1;var YW=function(X){var H=function(){var l=X.apply(this,[].concat(_.LJ(_.Ab.apply(0,arguments))))||this;l.historyEntryTime=0;l.historySnapshotCache=l.createHistoryCache();return l};
_.S(H,X);H.prototype.createHistoryCache=function(){return new tVC};
H.prototype.saveAndReplace=function(l,b,U){var K=window.location.href;var w=w===void 0?{}:w;var d=(d=this.browserHistory.getState())&&d.entryTime?d.entryTime:aQm();l=this.createNewHistoryEntry(l,w,d);this.saveSnapshot(d,b,U);this.replaceState(l,K||window.location.href)};
H.prototype.saveAndPush=function(l,b,U,K,w){w=w===void 0?{}:w;this.saveSnapshot(this.historyEntryTime,U,K);U=this.historySnapshotCache;K=this.historyEntryTime;var d=U.timeToDataCache.keys();d=_.C(d);for(var B=d.next();!B.done;B=d.next())B=B.value,B>K&&U.timeToDataCache.delete(B);b=this.createNewHistoryEntry(b,w);this.pushState(b,l)};
H.prototype.saveSnapshot=function(l,b,U){this.historySnapshotCache.set(l,new Drz(b,U))};
H.prototype.createNewHistoryEntry=function(l,b,U){U=U===void 0?aQm():U;return new gF6(U,l,b)};
H.prototype.handlePopstate=function(l){var b=X.prototype.handlePopstate.call(this,l),U=null,K=null,w=!1,d=null;b&&b.entryTime&&(d=this.historySnapshotCache.get(b.entryTime)||null,w=b.entryTime>this.historyEntryTime,this.historyEntryTime=b.entryTime,U=b.endpoint,K=b.JSC$31251_savedComponentState);this.handleHistoryCacheLoad(new _.xr_(U,w,d,K),l);return b};
H.prototype.pushState=function(l,b){Number(l==null?void 0:l.entryTime)>=0&&(this.historyEntryTime=l.entryTime);X.prototype.pushState.call(this,l,b)};
H.prototype.replaceState=function(l,b){Number(l==null?void 0:l.entryTime)>=0&&(this.historyEntryTime=l.entryTime);X.prototype.replaceState.call(this,l,b)};
H.prototype.handleHistoryCacheLoad=function(){};
return H}(jn),GM_=function(){var X=YW.call(this,new kMC)||this;
X.dispatchElement=null;X.entryIndex=0;return X};
_.S(GM_,YW);_.R=GM_.prototype;_.R.init=function(X){X=X===void 0?!0:X;YW.prototype.init.call(this);this.initialized||(X||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.R.handlePopstate=function(X){var H=null;X.state||(H="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return YW.prototype.handlePopstate.call(this,X);var l=new CustomEvent("yt-history-pop",{cancelable:!0});_.TP(this.dispatchElement,"yt-history-pop",[l,{errorMsg:H}]);_.NG(this.dispatchElement,"yt-close-all-popups-action");if(!l.defaultPrevented){l=_.jJ().resolve(_.gd);H=l.getCurrentData();var b=l.getCurrentPage();l=0;b?(b=_.TP(this.dispatchElement,"yt-get-page-offset",
[b]),b.length>0&&(l=b[0])):_.x2(new _.qd("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:H?H.page:"undefined"}));H&&(H.csn=_.Bi());this.saveSnapshot(this.historyEntryTime,H,l)}return YW.prototype.handlePopstate.call(this,X)};
_.R.handleHistoryCacheLoad=function(X,H){X.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.C(_.NG(this.dispatchElement,"yt-history-will-navigate",[H])).next().value||_.TP(this.dispatchElement,"yt-history-load",[H,X]))};
_.R.pushState=function(X,H){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var l=new _.qd("history.pushState is not a function",this.getDebugString());_.n2(l)}YW.prototype.pushState.call(this,X,H)};
_.R.replaceState=function(X,H){if(!this.browserHistory.boundHistoryReplaceState){var l=new _.qd("history.replaceState is not a function",this.getDebugString());_.n2(l)}YW.prototype.replaceState.call(this,X,H)};
_.R.saveAndPush=function(X,H,l,b,U){U=U===void 0?{}:U;l&&(l.csn=_.Bi());YW.prototype.saveAndPush.call(this,X,H,l,b,U)};
_.R.getDebugString=function(){var X=[];this.initialized&&X.push("i");this.browserHistory.boundHistoryReplaceState&&X.push("bhr");this.browserHistory.boundHistoryPushState&&X.push("bhs");"replaceState"in this.browserHistory.debugInfo&&X.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&X.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&X.push("ei:"+String(this.entryIndex));return X.join(",")};
_.II=function(X,H){X.init(!0);var l=X.browserHistory.getState();X.replaceState(l,QY(H))};
GM_.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.AW=new _.gz("DESKTOP_HISTORY_MANAGER_TOKEN");var aPQ=[10,20,30,40,50,60],Xr=function(){this.currentPartitionIndex=0},Zst=function(X){Fk9({mainAppWeb:_.ne(),
survivalSli:{partitionMinute:X,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},isz=function(X){Fk9({mainAppWeb:_.ne(),
survivalSli:{partitionMinute:X,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},vFC=function(X){return X.currentPartitionIndex>=0&&X.currentPartitionIndex<aPQ.length?aPQ[X.currentPartitionIndex]:-1},OsQ=function(X){return X.currentPartitionIndex>0&&X.currentPartitionIndex-1<aPQ.length?aPQ[X.currentPartitionIndex-1]:-1};
Xr.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var X=OsQ(this);X>0&&isz(X);X=vFC(this);X>0&&Zst(X);mr9(this)}};
var mr9=function(X){var H=vFC(X);if(H>0){var l=OsQ(X);l<0&&(l=0);X.intervalId=_.Ss.addJob(function(){var b=OsQ(X);b>0&&isz(b);b=vFC(X);b>0&&Zst(b);mr9(X)},3,(H-l)*6E4);
X.currentPartitionIndex+=1}else X.currentPartitionIndex=-1};var QdD=function(X){Kr.call(this,X,132);this.isDocument=X===document.documentElement};
_.S(QdD,Kr);QdD.prototype.calculateScrollDelta=function(X,H,l){var b=0;X<H?b=X<H-100?-48:-8:X>H+l&&(b=X>H+l+100?48:8);return b};
QdD.prototype.JSC$11712_onMouseMove=function(X){this.isDocument||(X.clientX=X.event_.pageX,X.clientY=X.event_.pageY);Kr.prototype.JSC$11712_onMouseMove.call(this,X)};_.TEQ=function(X,H){var l=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14871_dragListGroup=null;this.onDraggerCreated=function(b){var U=b.JSC$11708_dragger;U.scrollTarget_=l.scrollElement;b=b.draggerEl;U&&b.menuOpened&&U.setEnabled(!1)};
this.onDragStart=function(b){var U=b.draggerEl;b=b.currDragItem;var K=Object.assign({},b==null?void 0:b.data);K.trackingParams=void 0;U.data=K;U.style.position="absolute";U.style.width=(b==null?void 0:b.clientWidth)+"px";U.style.zIndex="2030";U.onDrag&&U.onDrag();b=_.uB(U);(K=b.querySelector("ytd-app"))?_.mh(K).appendChild(U):b.body.appendChild(U);l.dragScrollSupport=new QdD(l.scrollElement);l.dragScrollSupport.horizontalScrolling_=!1;U=l.dragScrollSupport;U.constrainScroll_=!!U.margin_&&!1};
this.onDrop=function(b){l.handleDrop(b);l.dragScrollSupport&&(_.Gp(l.dragScrollSupport),l.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(l.JSC$14871_dragListGroup){var b=l.JSC$14871_dragListGroup;qm9(b,b.currDragItem_)}};
this.handleDrop=H};
_.Hm=function(X){X.JSC$14871_dragListGroup&&(_.FE(X.JSC$14871_dragListGroup,$nY,X.onDragStart),_.FE(X.JSC$14871_dragListGroup,wSq,X.onDragStart),X.JSC$14871_dragListGroup.dispose(),X.JSC$14871_dragListGroup=null);X.dragScrollSupport&&(_.Gp(X.dragScrollSupport),X.dragScrollSupport=null);X.scrollElement.removeEventListener("scroll",X.onReorderableScroll)};
_.NEt=function(X,H,l,b){b=b===void 0?"":b;_.Hm(X);l&&(X.scrollElement=l);X.JSC$14871_dragListGroup=new q6;X.JSC$14871_dragListGroup.hysteresisDistance_=2;hit(X.JSC$14871_dragListGroup,H);X.JSC$14871_dragListGroup.draggerElClasses_=qW("dragging").split(" ");b&&FyH(X.JSC$14871_dragListGroup,function(U){var K=U||document,w=null;K.getElementsByClassName?w=K.getElementsByClassName(b)[0]:w=OY9("*",b,U);return w||U});
_.n8(X.JSC$14871_dragListGroup,blz,X.onDraggerCreated);_.n8(X.JSC$14871_dragListGroup,$nY,X.onDragStart);_.n8(X.JSC$14871_dragListGroup,wSq,X.onDrop);X.JSC$14871_dragListGroup.init();X.scrollElement.addEventListener("scroll",X.onReorderableScroll,{passive:!0})};
_.ja.Object.defineProperties(_.TEQ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var cp_=function(){this.skipNextNavigation=!1},jdF=function(X,H,l){if(!H)return!1;
if(X.skipNextNavigation)return X.skipNextNavigation=!1;if(_.f(l,_.aL))return!1;var b,U,K;if((b=_.f(l,_.YM))==null?0:(U=b.browseEndpointContextSupportedConfigs)==null?0:(K=U.browseEndpointContextMainConfig)==null?0:K.skipConfirmation)return!1;var w;return((w=_.f(H.commandMetadata,_.Ip))==null?void 0:w.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
cp_.prototype.showConfirmationDialog=function(X,H){this.navigateParams=H;this.customConfirmationCommand?_.jJ().resolve(_.Vr).resolveCommand(this.customConfirmationCommand):(H={openPopupAction:{popup:{confirmDialogRenderer:{title:_.xM(_.XS("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.xM(_.XS("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.xM(_.XS("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.xM(_.XS("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Zq.getInstance().triggerAction("yt-open-popup-action",H,X))};
cp_.prototype.cancelPendingNavigation=function(){var X;((X=this.navigateParams)==null?void 0:X.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var rp_=function(){},Lp9=function(X,H,l,b,U,K,w){l=l===void 0?{}:l;
w=w===void 0?{}:w;var d=_.jJ().resolve(_.Fk),B,q=(B=_.f(H,_.aL))==null?void 0:B.url;return q?WOz(d,q,l,window.location.href,function(u,e){Jpq(X,u,e,!1,!0,l,K,b)},function(){return!1}):zo(d,H,l,window.location.href,A0(H),function(u,e){Jpq(X,u,e,!1,!0,l,K,b)},U,w)},Jpq=function(X,H,l,b,U,K,w,d){if(!X.JSC$14886_chunkHandler)if(l.page==="learning_journey_watch"&&_.P("web_enable_canvas_on_learning_journey")){var B=!_.f(d,_.YM);
U=U||b;if(B)if(U){if(_.P("kevlar_continue_playback_without_player_response")){var q;var u=(q=_.f(d,_.ku))==null?void 0:q.videoId}b={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:b,previousVideoId:u},tempData:K}}else b={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else b={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};X.JSC$14886_chunkHandler=new alF(_.aq,b,w,B,U)}else if(l.page==="watch"||l.page==="learning_journey_watch")if(U||b){if(_.P("kevlar_continue_playback_without_player_response")){var e;
B=(e=_.f(d,_.ku))==null?void 0:e.videoId}X.JSC$14886_chunkHandler=new vKY(_.aq,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:b,previousVideoId:B},tempData:K},w)}else X.JSC$14886_chunkHandler=new gK_(_.aq);else l.page==="shorts"&&U&&!b?X.JSC$14886_chunkHandler=new i3z(_.aq,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:K},w):X.JSC$14886_chunkHandler=new GF_(w);X.JSC$14886_chunkHandler.processChunk({endpoint:H,data:l});return X.JSC$14886_chunkHandler.ze.promise},
Yrt=function(X,H,l,b,U){(l=_.XlG(l))&&Jpq(X,H,l,!1,!0,b,void 0,U)};_.IPQ=new _.gz("NAVIGATION_SERVICE_TOKEN");var Ap9=function(){this.pendingNavigationPromise=null};
_.R=Ap9.prototype;_.R.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.R.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.R.addEventListener=function(){throw Error("zh");};
_.R.dispatchEvent=function(){throw Error("zh");};
_.R.removeEventListener=function(){throw Error("zh");};var XHG=new _.gz("APP_ROOT");var iKl=null;var Hv6=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],l2=function(){_.zB.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];lkQ(this)};
_.S(l2,_.zB);l2.prototype.verifyUser=function(){var X=lkQ(this),H=X.logout;if(!X.sessionChange)return!0;this.dispatchEvent("ytsessionchange");H&&this.dispatchEvent("ytuserinvalid");return!1};
var lkQ=function(X){var H=Hv6.map(function(U){var K;return(K=_.wL.get(U))!=null?K:""}),l=H.some(function(U,K){return X.sessionCookies&&X.sessionCookies[K]!==""&&U===""}),b=H.some(function(U,K){return X.sessionCookies&&X.sessionCookies[K]!==U});
X.sessionCookies=H;return{logout:l,sessionChange:b}};
l2.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Ss.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var NHk=new _.gz("POSTMESSAGE_TUNNEL_TOKEN");var mml=["/parent_tools","/file_download","/artist_roster"],rzy=[p1v,SHv,zrH,k8v,nY_,fYH,xb9,Db9];var o2=new _.gz("NAVIGATION_CONFIRMATION_SERVICE");var oZH="/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(" "),bv9=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],b2=function(X,H){this.pendingNavigationPromise=null;this.JSC$14909_clientRoot=X;this.historyManager=H;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=
new rp_;this.debugString=X.is;X={"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};_.ik(_.Zq.getInstance(),X,this.JSC$14909_clientRoot)},CAY,wH_,d2H,h9Q,R9_;
_.S(b2,Ap9);b2.prototype.reload=function(){_.y_(window.location.href)};
var oT9=function(X){X.currentEndpoint&&_.f(X.currentEndpoint,_.HM)?X.reload():X.currentEndpoint&&X.navigate(X.currentEndpoint,!0,void 0,{disableCache:!0})};
b2.prototype.navigate=function(X,H,l,b,U,K,w,d){H=H===void 0?!1:H;l=l===void 0?{}:l;b=b===void 0?{}:b;var B=_.jJ().resolve(o2),q;if(!w&&jdF(B,(q=this.currentEndpoint)!=null?q:void 0,X))return B.showConfirmationDialog(this.JSC$14909_clientRoot.parentElement,{endpoint:X,reload:H,params:l,tempData:b,requestType:U,createScreenConfig:K}),!1;var u=_.ng();_.kp(u,"eocs")||u.parkOrScheduleJob(function(){u.processSignal("eocs")},10,"eor");
vxb();w=A0(X);B=b.autonav==="1";q=_.Bi();l2.instance||(l2.instance=new l2);var e=l2.instance.verifyUser(),y;if(_.P("enable_dark_theme_only_on_shorts")){var V=document.documentElement.hasAttribute("dark"),p=_.PM(!0)==="USER_INTERFACE_THEME_DARK";if(w==="shorts"){if(!V)if(_.P("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var z;_.y_((z=_.f(X==null?void 0:X.commandMetadata,_.Ip))==null?void 0:z.url,void 0,void 0,window.top)}}else{var t;_.y_(_.T7((t=_.f(X==
null?void 0:X.commandMetadata,_.Ip))==null?void 0:t.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.P("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!V){var W;_.y_(_.T7((W=_.f(X==null?void 0:X.commandMetadata,_.Ip))==null?void 0:W.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(p!==V){var G;_.y_(_.T7((G=_.f(X==null?void 0:X.commandMetadata,_.Ip))==null?void 0:G.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(w==="watch"){if(U2v(_.jJ().resolve(_.f9),
X)&&(e||_.P("fix_miniplayer_navigation_killswitch")))return!1;_.P("block_all_player_prefetch_requests")||(y=HID(_.QU(_.JO),X,B))}else{var r,Q=(r=_.f(this.currentEndpoint,_.ku))==null?void 0:r.videoId;Q&&_.dD.getInstance().then(function(g8){g8&&g8.set("yt-miniplayer-shown-video-id",Q)})}y&&(l.frags=y.missingFragments_.join(","));
z=null;var v;t=(v=_.f(X==null?void 0:X.commandMetadata,_.Ip))==null?void 0:v.ignoreNavigation;if(!t)if(_.P("kevlar_command_url")){var J;z=(J=_.f(X==null?void 0:X.commandMetadata,_.Ip))==null?void 0:J.url}else z=_.tuL(X,l);if(z&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&z==this.lastNavigationUrl)return _.FS({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.H8(yX(),"CANCELLED")}z&&(this.lastNavigationUrl=z);jrN();_.Et("IS_HOMEPAGE_COLD",
!1);_.Et("IS_RESULTS_PAGE_COLD",!1);_.Et("IS_WATCH_PAGE_COLD",!1);X.loggingUrls&&X.loggingUrls.forEach(function(g8){g8.baseUrl&&_.aw(g8.baseUrl)});
_.IQL(X,K?K.layer:0)&&_.P("kevlar_flush_logs_on_away_navigation")&&_.z3();if(Jzk(X))return!1;GL_(w,U);if(!z)return t||_.x2(new _.qd("Can't construct url for endpoint",X)),_.H8(yX(),"FAILURE"),!1;_.OKy();v=X&&_.f(X,_.YM)&&_.f(X,_.YM).browseId.startsWith("UC");l=(J=_.P("enable_dark_theme_only_on_shorts")&&w==="shorts"?!1:_.fe()&&document.documentElement.hasAttribute("dark")!==_.V_())?{themeRefresh:1}:{};J&&!_.hl()&&_.PM()==="USER_INTERFACE_THEME_DARK"&&(l.theme="dark");v=J||$2Q(z)&&!v&&!_.P("kevlar_disable_url_allowlist");
e||(v=!0);if(v||_.gx("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var Y;var Uy=(Y=window.top)==null?void 0:Y.location.href}catch(g8){var Cy;Uy=(Cy=g8)==null?void 0:Cy.message}_.x2(new _.qd("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Uy}))}X=_.P("kevlar_redirect_on_window_killswitch")?window.top:window;e4(z);_.y_(_.T7(z,l),void 0,void 0,X);_.H8(yX(),"ABORTED");return!1}_.P("kevlar_early_popup_close")&&_.TP(this.JSC$14909_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14886_chunkHandler=void 0;var sy;Uy=A0((sy=this.currentEndpoint)!=null?sy:void 0);(sy=w==="shorts"&&Uy==="shorts")||_.Y6N();_.ZR(vpZ)("nr",void 0);B&&_.FS({webInfo:{navigationReason:"an"}});X.clickTrackingParams&&(b.itct=X.clickTrackingParams,b.csn=q);mtb(b);b.endpoint=JSON.stringify(X);_.P("enable_unknown_lact_fix_on_html5")&&(_.jJ().resolve(_.HS),b.lact=_.JV());_.Bb.isEmpty(b)||_.Ec(z,b);!_.P("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(K=Object.assign({},{layer:0},K,{parentLayer:3}));this.pendingNavigationPromise=K=Lp9(this.pageFetcher,X,b,this.currentEndpoint,this.JSC$14909_isNetworkPromiseStale.bind(this),K,d);K=K.then(this.handleNavigateSuccess.bind(this,K,X,y,b),this.handleNavigateFail.bind(this,K,X));_.HW().navigationFinishPromise=K;H={endpoint:X,pageType:w,url:QY(z),reload:!!H,noProgressBar:sy};U&&(H.type=U);var FO;U=_.LT((FO=this.currentEndpoint)!=null?FO:null);FO=_.LT(X!=null?X:null);this.fireEvent("yt-navigate-start",
H);var ub;(ub=_.jJ().resolve(_.c$(_.IPQ)))==null||ub.publish("navigation-start",{sourcePageSubtype:U,destinationPageSubtype:FO});y&&Yrt(this.pageFetcher,X,y,b,this.currentEndpoint);return!0};
b2.prototype.JSC$14909_isNetworkPromiseStale=function(X){return X!=this.pendingNavigationPromise};
var K3q=function(X,H,l,b,U){var K=A0(H);H={endpoint:H,pageType:K};U&&(H.errorMessage=U);_.x2(l);H.navigationDoneMs=_.sf("nd");H.navigationErrorReason=b;X.fireEvent("yt-navigate-error",H)};
b2.prototype.handleNavigateFail=function(X,H,l){var b=void 0;l instanceof _.nG&&(b=l,xhK(l));if(this.JSC$14909_isNetworkPromiseStale(X))return _.Cq(b);_.H8(yX(),"FAILURE");K3q(this,H,l,"101");return _.Cq(l)};
b2.prototype.handleNavigateSuccess=function(X,H,l,b,U){if(this.JSC$14909_isNetworkPromiseStale(X))return _.rZ();this.pendingNavigationPromise=null;if(!U)return H=new _.qd("Missing data in response for navigation endpoint",H),_.Cq(H);if(U.reload)return window.location.reload(!0),_.rZ();l&&(X={},_.Bb.extend(X,_.XlG(l),U),U=X);var K,w;l=(K=U)==null?void 0:(w=K.timing)==null?void 0:w.responseStart;l!=null&&_.sf("srt",l);_.sf("pdc");var d,B;K=(d=U)==null?void 0:(B=d.timing)==null?void 0:B.info;K!=null&&
(d=_.ZR(_.Qyl)(K),_.FS(d));_.H8(yX(),"SUCCESS");R9_(this,H,U,1,b);return _.rZ()};
var $2Q=function(X){var H=X;_.P("kevlar_no_redirect_to_classic_2_ks")||(H=(new _.xu(X)).getPath());if(H==="/"||H==="/red")return!1;var l=!0;oZH.forEach(function(b){X.indexOf(b)===0&&(l=!1)});
bv9.forEach(function(b){var U=b.url;_.P(b.expFlag)&&X.indexOf(U)===0&&(l=!1)});
return l};
b2.prototype.publishPageData=function(X){this.fireEvent("yt-page-data-fetched",{pageData:X})};
CAY=function(X,H,l,b,U,K){var w=null;H.page!=="watch"&&H.page!=="learning_journey_watch"||b?H.filler||_.TP(X.JSC$14909_clientRoot,"yt-stop-old-player",[H]):w=Jpq(X.pageFetcher,U,H,l,!1,K,void 0,X.currentEndpoint);if(w)return w.then(X.publishPageData.bind(X,H));X.publishPageData(H);return _.rZ()};
wH_=function(X,H,l){var b=null;if(!l)return b=new _.qd("Empty data",X.debugString,H);var U=l.response;if(!U)return b;var K={endpointType:A0(H)||"unknown"};U.responseContext?(U=U.responseContext.errors)&&(b=new _.qd("Errors in response context",X.debugString,H,U,K)):b=U.error||U.errorMetadata?new _.qd("Errors in response",X.debugString,H,U.error,U.errorMetadata,K):new _.qd("responseContext missing",X.debugString,H,Object.keys(U).sort().join(","),K);var w,d,B,q;if(X=l==null?void 0:(w=l.response)==null?
void 0:(d=w.responseContext)==null?void 0:(B=d.webResponseContextExtensionData)==null?void 0:(q=B.webResponseContextDebugData)==null?void 0:q.debugErrorMessages)for(w=0;w<X.length;w++);return b};
d2H=function(X){var H,l,b,U;return X==null?void 0:(H=X.response)==null?void 0:(l=H.responseContext)==null?void 0:(b=l.errors)==null?void 0:(U=b.error)==null?void 0:U["0"]};
h9Q=function(X,H){var l;if(l=H.url&&!H.url.startsWith("/clip"))l=H.url,l=!_.P("webfe_parse_debug_param_in_resolveurl_service")&&X.searchDebugUrlMatcher.test(l)||OAZ(l)?!0:!1;if(l)OAZ(H.url)&&_.QO(window.location.href).themeRefresh?(H=_.lB(H.url,"themeRefresh"),_.II(X.historyManager,H)):H.url&&!gxy(H.url)&&_.II(X.historyManager,H.url);else if(H.endpoint){var b,U,K;(l=(b=H.endpoint)==null?void 0:(U=b.commandMetadata)==null?void 0:(K=U.webCommandMetadata)==null?void 0:K.url)&&!gxy(l)&&_.II(X.historyManager,
l);l&&H.url&&l!=H.url&&!H.url.match("playnext=1")&&new _.qd("Response url mismatch in response data",X.debugString,l,H.url)}};
_.F3Y=function(X,H,l,b,U,K,w,d){K=K===void 0?!1:K;var B=_.jJ().resolve(o2),q;if(!d&&jdF(B,(q=X.currentEndpoint)!=null?q:void 0,H))return B.showConfirmationDialog(X.JSC$14909_clientRoot.parentElement,{endpoint:H,data:l,navigationType:b,tempData:U,isMiniplayer:K,isForwardHistoryNavigation:w==null?void 0:w.forward}),_.rZ();X.pageFetcher.JSC$14886_chunkHandler=void 0;return R9_(X,H,l,b,U,K)};
R9_=function(X,H,l,b,U,K){K=K===void 0?!1:K;X.isMiniplayerExpansion=K;var w=b===2;X.currentEndpoint=H;X.numNavigations++;X.numNavigations&&(xtz.navigationCount=X.numNavigations);_.Et("NUM_NAV",X.numNavigations);var d=wH_(X,H,l);if(d)return K3q(X,H,d,"102",d2H(l)),_.Cq(d);var B,q,u,e;d=l.rootVe||(l==null?void 0:(B=l.response)==null?void 0:(q=B.responseContext)==null?void 0:(u=q.webResponseContextExtensionData)==null?void 0:(e=u.ytConfigData)==null?void 0:e.rootVisualElementType);!w&&l&&h9Q(X,l);var y,
V;B=l==null?void 0:(y=l.response)==null?void 0:(V=y.responseContext)==null?void 0:V.maxAgeSeconds;if(!w&&!isNaN(B)){var p;_.P("kevlar_use_response_ttl_to_invalidate_cache")?p=(0,_.Jl)()+1E3*B:_.P("kevlar_always_invalidate_cache")&&(p=0);isNaN(p)||(l.expirationTime=p)}_.QU(_.JO).prefetchCache_.clear();w||l.page!=="watch"||b!==1?b=CAY(X,l,w,!!K,H,U):(X.publishPageData(l),b=_.rZ());U=b.then(function(){var z=A0(H);z={endpoint:H,pageType:z,fromHistory:w,response:l};z.navigationDoneMs=_.sf("nd");X.fireEvent("yt-navigate-finish",
z);var t;(t=_.jJ().resolve(_.c$(_.IPQ)))==null||t.publish("navigation-end")});
l.csn&&d&&l.clientSideGrafts&&b.then(X.attachClientSideGrafts.bind(X,l,_.F6()));return U};
_.R=b2.prototype;_.R.attachClientSideGrafts=function(X,H){X.clientSideGrafts&&H&&X.clientSideGrafts.forEach(function(l){if(H&&l){var b=_.$l(l);_.P("combine_ve_grafts")?_.lv().graftServerVe(l,H):_.pA(X.csn,H,b)}})};
_.R.handleSignalActionHistoryBack=function(){window.history.back()};
_.R.handleSignalActionCloseWindow=function(){window.close()};
_.R.handleSignalActionReloadPage=function(){this.reload()};
_.R.handleSignalActionSoftReloadPage=function(){oT9(this)};
_.R.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.R.fireEvent=function(X,H){X=new CustomEvent(X,{bubbles:!0,cancelable:!1,composed:!0,detail:H});this.dispatchEvent(X)};
_.R.addEventListener=function(X,H){this.JSC$14909_clientRoot.addEventListener(X,H)};
_.R.dispatchEvent=function(X){return this.JSC$14909_clientRoot.dispatchEvent(X)};
_.R.removeEventListener=function(X,H){this.JSC$14909_clientRoot.removeEventListener(X,H)};
b2[rx]=[XHG,_.AW];var BAq;var q3z=function(){return _.a.apply(this,arguments)||this};
_.S(q3z,_.a);_.ja.Object.defineProperties(q3z,{template:{configurable:!0,enumerable:!0,get:function(){if(BAq===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);BAq=X}X=BAq;return X}}});
_.T([_.k(qrG.YtPlayerBehavior),_.N("design:type",Object)],q3z.prototype,"ytPlayerBehavior",void 0);_.T([_.sq({is:"ytd-player"})],q3z);var stF;var Mrv;var uYF;var UI=function(){var X=_.a.apply(this,arguments)||this;X.forceModernIconButton=!1;X.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return X};
_.S(UI,_.a);UI.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]]"}}}}}};
UI.prototype.handleAccountLinkingStateChangedCommand=function(X){if(X=_.f(X,m8_)){var H,l=(H=this.data)==null?void 0:H.providerKey;H=X.providerKey;l&&H&&l.id===H.id&&l.subject===H.subject&&(X=X.linked,X!==void 0&&(this.set("data.linked",X),this.notifyPath("data.linked"),_.P("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(X)))}};
UI.prototype.setPlayerAccountLinkState=function(X){var H=new bgv;UgQ(H,l7t(new Hgz,X));var l=_.aq();l&&l.getPlayerPromise().then(function(b){b.setAccountLinkState(_.Ik(H.JSC$12637_serializeBinary(),4));b.updateAccountLinkingConfig(X)})};
UI.prototype.handleShowAccountLinkDialog=function(){var X=this.get("button.buttonRenderer.command");X&&_.LN([X],this.hostElement)};
_.ja.Object.defineProperties(UI.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],UI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.T([_.k([_.rh.YtActionHandlerBehavior]),_.N("design:type",Object)],UI.prototype,"actionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],UI.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],UI.prototype,"overrides",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],UI.prototype,"forceModernIconButton",void 0);_.T([_.g({value:"bottom"}),_.N("design:type",String)],UI.prototype,"buttonTooltipPosition",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],UI.prototype,"forceIconButton",void 0);_.T([_.g(),_.N("design:type",Boolean)],UI.prototype,"disableTextTransform",void 0);
_.T([_.x("data","data.linked","data.isWarning"),_.N("design:type",Object),_.N("design:paramtypes",[])],UI.prototype,"button",null);_.T([_.sq({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],UI);
_.O(UI,"ytd-account-link-button-renderer",function(){if(uYF!==void 0)return uYF;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return uYF=X},{mode:1});var e9_;var y6z=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],$X=function(){return _.a.apply(this,arguments)||this};
_.S($X,_.a);$X.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
$X.prototype.updateButtonActiveState=function(){var X=this,H=!!y6z.find(function(l){return X.currentState===l});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.P("enable_web_delhi_icons")&&(H=!1);this.button&&(this.button.isPressed=H)};
_.ja.Object.defineProperties($X.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.playlistLoopStateEntity)==null?void 0:X.state)||((H=this.data)==null?void 0:H.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var X=void 0,H;if(this.currentState&&((H=this.data)==null?0:H.states)){H=_.C(this.data.states);for(var l=H.next();!l.done;l=H.next()){l=_.f(l.value,_.b7v);var b=void 0;if(((b=l)==null?void 0:b.state)===this.currentState){X=l;break}}}return X}}});
$X.prototype.updateButtonActiveState=$X.prototype.updateButtonActiveState;_.T([_.k(_.sv),_.N("design:type",Object)],$X.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.$S.playlistLoopStateEntitySelector}),_.N("design:type",Object)],$X.prototype,"playlistLoopStateEntity",void 0);_.T([_.g(),_.N("design:type",Object)],$X.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],$X.prototype,"forceIconOnly",void 0);_.T([_.A2("ytd-button-renderer"),_.N("design:type",_.ah)],$X.prototype,"button",void 0);
_.T([_.x("data","playlistLoopStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],$X.prototype,"currentState",null);_.T([_.Yh("currentButtonStateRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$X.prototype,"updateButtonActiveState",null);_.T([_.x("currentState"),_.N("design:type",Object),_.N("design:paramtypes",[])],$X.prototype,"currentButtonStateRenderer",null);
_.T([_.sq({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],$X);
_.O($X,"ytd-playlist-loop-button-renderer",function(){if(e9_!==void 0)return e9_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return e9_=X},
{mode:1});var VrD;var PAC=_.XS("DOWNLOAD",{},"Download"),fkG=_.XS("DOWNLOADING",{},"Downloading"),pHt=_.XS("DOWNLOADED",{},"Downloaded"),S36=_.XS("RETRY",{},"Retry"),KV=function(){var X=_.a.apply(this,arguments)||this;X.forceIconButton=!1;X.forceIconOnly=!1;X.overrides=!1;X.buttonTooltipPosition=!1;X.styleActionButton=!1;X.disableTextTransform=!1;X.downloadProgress=0;X.isDownloadComplete=!1;X.isHidden=!0;X.transferState="TRANSFER_STATE_UNKNOWN";X.isVideoDeletedByUser=!1;X.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return X};
_.S(KV,_.a);_.R=KV.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.dataChanged=function(){var X;(X=this.data)!=null&&X.text||(X=_.e0(_.WF().getState(),this.videoId),this.updateButtonState(X))};
_.R.computeVideoId=function(X){return X};
_.R.computePlayerStateEntityKey=function(X){return X};
_.R.showHideButton=function(){this.updateButtonVisibility()};
_.R.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var X;((X=this.playerStateEntity)==null?void 0:X.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};
_.R.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.R.updateButtonState=function(X){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==fkG||!_.b5(X))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(X){case "TRANSFER_STATE_UNKNOWN":X=PAC;var H="OFFLINE_DOWNLOAD";var l="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":X=S36;H="OFFLINE_DOWNLOAD";l="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":X=pHt;H="OFFLINE_PIN";l="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":X=
fkG;H="OFFLINE_DOWNLOADING_ZERO";l="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":X=S36;H="OFFLINE_DOWNLOAD";l="ACTION_RETRY";break;default:X=PAC,H="OFFLINE_DOWNLOAD",l="ACTION_ADD"}this.isVideoDeletedByUser&&(X=PAC,H="OFFLINE_DOWNLOAD",l="ACTION_ADD");var b=Object.assign({},this.data);b.text=_.xM(X);b.tooltip=X;b.icon={iconType:H};b.size="SIZE_DEFAULT";b.style="STYLE_DEFAULT";_.f(b.command,_.Yj)&&(_.f(b.command,_.Yj).action=l);this.set("data",b)}};
_.R.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var X="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?X="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?X="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?X="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?X="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?X="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(X="OFFLINE_PIN",this.isDownloadComplete=!0);var H;X!==((H=this.data.icon)==null?void 0:H.iconType)&&(H=Object.assign({},this.data),H.text=_.xM(fkG),H.tooltip=fkG,H.icon={iconType:X},_.f(H.command,_.Yj)&&(_.f(H.command,_.Yj).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",H))}};
KV.prototype.updateProgress=KV.prototype.updateProgress;KV.prototype.onTransferStateChanged=KV.prototype.onTransferStateChanged;KV.prototype.showHideButton=KV.prototype.showHideButton;KV.prototype.dataChanged=KV.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],KV.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],KV.prototype,"forceIconButton",void 0);
_.T([_.g(),_.N("design:type",Object)],KV.prototype,"forceIconOnly",void 0);_.T([_.g(),_.N("design:type",Object)],KV.prototype,"overrides",void 0);_.T([_.g(),_.N("design:type",Object)],KV.prototype,"buttonTooltipPosition",void 0);_.T([_.g(),_.N("design:type",Object)],KV.prototype,"styleActionButton",void 0);_.T([_.g(),_.N("design:type",Object)],KV.prototype,"disableTextTransform",void 0);
_.T([_.g({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.N("design:type",String)],KV.prototype,"videoId",void 0);_.T([_.g({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.N("design:type",String)],KV.prototype,"playerStateEntityKey",void 0);_.T([_.g(),_.N("design:type",Object)],KV.prototype,"data",void 0);_.T([_.g({selector:VR,selectorArgs:["videoId"]}),_.N("design:type",Object)],KV.prototype,"downloadProgress",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],KV.prototype,"isDownloadComplete",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],KV.prototype,"isHidden",void 0);_.T([_.g({selector:_.e0,selectorArgs:["videoId"]}),_.N("design:type",String)],KV.prototype,"transferState",void 0);_.T([_.g({selector:_.rWm,selectorArgs:["videoId"]}),_.N("design:type",Object)],KV.prototype,"isVideoDeletedByUser",void 0);
_.T([_.g({selector:mjy,selectorArgs:["videoId"]}),_.N("design:type",Object)],KV.prototype,"offlineabilityState",void 0);_.T([_.g({selector:_.T0,selectorArgs:["playerStateEntityKey"]}),_.N("design:type",Object)],KV.prototype,"playerStateEntity",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],KV.prototype,"showTooltips",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],KV.prototype,"sendCommandWhenDisabled",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],KV.prototype,"disabled",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KV.prototype,"dataChanged",null);_.T([_.oi("offlineabilityState","playerStateEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KV.prototype,"showHideButton",null);
_.T([_.oi("transferState","isVideoDeletedByUser"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KV.prototype,"onTransferStateChanged",null);_.T([_.oi("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KV.prototype,"updateProgress",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],KV);
_.O(KV,"ytd-download-button-renderer",function(){if(VrD!==void 0)return VrD;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return VrD=X},{mode:2});var z9H;var nZH,kAt=function(){if(nZH!==void 0)return nZH;var X=document.createElement("template");_.n(X,'\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 nZH=X};var x2G=_.P("web_button_rework")&&_.G7("BUTTON_REWORK")||_.P("web_button_rework_with_live"),D2z=_.Yy("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,R2=function(){var X=_.a.apply(this,arguments)||this;X.isPressed=!1;X.forceIconButton=!1;X.forceIconOnly=!1;X.forceModernIconButton=!1;X.alignByText=!1;X.isShorts=!1;X.animatedText=!1;X.shouldAnimate=!1;X.JSC$14947_browserSupportsAnimation=_.P("web_supports_animations_api");X.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};X.onTap=function(){var H;if((H=X.data)==null||!H.defaultNavigationEndpoint){var l;H=!((l=X.data)==null?0:l.isToggled);var b;if((b=X.data)==null||!b.preventAutoToggle){X.shouldAnimate=!1;X.disableTextUpdateJobId&&_.Ss.cancelJob(X.disableTextUpdateJobId);X.disableTextUpdateJobId=_.Ss.addLowPriorityJob(function(){X.disableTextUpdateJobId=void 0},D2z);
var U;X.set("data.isToggled",!((U=X.data)==null?0:U.isToggled));l=X.getInnertubeIcon();b={toggled:H,actions:{}};l&&(b.actions[l.toLowerCase()]=H);_.QX(X.hostElement,"yt-toggle-button",b)}}};
return X};
_.S(R2,_.a);_.R=R2.prototype;_.R.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Ss.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.toggle=function(X){var H;this.set("data.isToggled",X!==void 0?X:!((H=this.data)==null?0:H.isToggled))};
_.R.handleUpdateToggleButtonStateCommand=function(X){if(this.data){X=_.f(X,Js9);var H,l,b,U=(H=this.data)==null?void 0:(l=H.toggleButtonSupportedData)==null?void 0:(b=l.toggleButtonIdData)==null?void 0:b.id;U&&X&&U===(X==null?void 0:X.buttonId)&&this.set("data.isToggled",X.toggled)}};
_.R.handleUpdateToggleButtonTextAction=function(X){if(this.data){X=_.f(X,Mbq);var H,l,b,U=(H=this.data)==null?void 0:(l=H.toggleButtonSupportedData)==null?void 0:(b=l.toggleButtonIdData)==null?void 0:b.id;U&&X&&U===(X==null?void 0:X.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=X.defaultNumericalValue,this.set("data.defaultText",X.defaultText),this.set("data.toggledText",X.toggledText),this.shouldAnimate=!1)}};
_.R.getInnertubeIcon=function(){var X=this.data;if(X){var H,l,b=((H=X.defaultIcon)==null?0:H.iconType)?(l=X.defaultIcon)==null?void 0:l.iconType:null,U,K;H=((U=X.toggledIcon)==null?0:U.iconType)?(K=X.toggledIcon)==null?void 0:K.iconType:b;return X.isToggled?H:b}};
_.R.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.ja.Object.defineProperties(R2.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var X={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 H=X.renderer;var l=X.element;var b=X.toggled;var U=X.onTapCallback;var K=X.commandClientArgs;var w=X.overrides;var d=X.forceIcon;var B=X.forceModernIconButton;var q=X.forceDisabled;var u=X.useAnimatedText;var e=X.animatedTextProps;X=HsO(H,b);d=!H.defaultIcon||!d&&H.defaultText?H.defaultIcon?"leading":void 0:B?"icon-only":"icon-only-40";d==="icon-only-40"&&(X.type="text");var y;B=Object;var V=B.assign,p;a:switch((p=
H.style)==null?void 0:p.styleType){case "STYLE_COMPACT_GRAY":p={size:"S"};break a;default:p={size:"M"}}var z=!!b;var t=(t=b&&H.toggledText||H.defaultText)?_.ha(t):void 0;u?(u=_.D8(b&&H.toggledText||H.defaultText))&&e&&!isNaN(Number(e.numberValue))?(e.numberText=u,b&&(e.numberValue+=1),u=e):u=void 0:u=void 0;var W,G,r,Q;var v=(e=((G=b?H.toggledAccessibilityData||((v=H.toggledText)==null?void 0:v.accessibility):H.accessibilityData||((W=H.defaultText)==null?void 0:W.accessibility))==null?void 0:(r=G.accessibilityData)==
null?void 0:r.label)||((Q=H.accessibility)==null?void 0:Q.label))?e:_.D8(b&&H.toggledText||H.defaultText);q=q===void 0?H.isDisabled:q;l=X_m(H,b,U,l,K);b=Azm(H,b);b!=null&&b.length?(b=_.uv({innertubeCommand:okN(b),forceNewState:!0}),b=ew(b)?b:void 0):b=void 0;H=V.call(B,{},X,p,{iconPosition:d},w,{focused:!1,toggled:z,toggleable:!0,formattedButtonText:t,animatedTextProps:u,accessibilityLabel:v,disabled:q,onTap:l,aTagConfig:b},hQb((y=H.colorData)==null?void 0:y.basicColorPaletteData));H.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(H.type="filled");return H}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var X=this.getInnertubeIcon();if(X)return _.jL(X)}}});
R2.prototype.resetAnimation=R2.prototype.resetAnimation;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],R2.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],R2.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],R2.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],R2.prototype,"isPressed",void 0);_.T([_.g(),_.N("design:type",Object)],R2.prototype,"forceIconButton",void 0);_.T([_.g(),_.N("design:type",Object)],R2.prototype,"forceIconOnly",void 0);_.T([_.g(),_.N("design:type",Object)],R2.prototype,"forceModernIconButton",void 0);_.T([_.g(),_.N("design:type",Object)],R2.prototype,"alignByText",void 0);_.T([_.g(),_.N("design:type",Object)],R2.prototype,"overrides",void 0);
_.T([_.g(),_.N("design:type",Boolean)],R2.prototype,"disabled",void 0);_.T([_.g(),_.N("design:type",Object)],R2.prototype,"isShorts",void 0);_.T([_.g(),_.N("design:type",Object)],R2.prototype,"buttonTooltipPosition",void 0);_.T([_.g(),_.N("design:type",Object)],R2.prototype,"animatedText",void 0);_.T([_.g(),_.N("design:type",String)],R2.prototype,"textNumberValue",void 0);_.T([_.g({computed:"computeTooltip(data, data.isToggled)"}),_.N("design:type",Object)],R2.prototype,"tooltip",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],R2.prototype,"resetAnimation",null);_.T([_.x("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.N("design:type",Object),_.N("design:paramtypes",[])],R2.prototype,"computedButtonShape",null);_.T([_.x("data.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],R2.prototype,"computedIcon",null);
_.T([_.sq({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],R2);x2G&&_.O(R2,"ytd-toggle-button-renderer",kAt,{mode:2});var tr_=_.Z(function(X){function H(q){var u;return _.h(function(e){if(e.nextAddress==1)return(u=!oFh(q,d())||!d().enabled)?e.jumpTo(2):e.yield(R8k(),3);e.nextAddress!=2&&(u=e.yieldResult);if(u)return e.return();l();setTimeout(function(){w(!1)},1500);
_.m5(e)})}
function l(){setTimeout(function(){w(!0);var q;(q=b.lottieEl)==null||q.goToAndPlay(0)},150)}
var b=_.Jw(),U=_.C(_.FU(!1,void 0,"UfUosc")),K=U.next().value,w=U.next().value,d=_.Eq(X.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.DR(function(){var q,u;((q=X.settings)==null?void 0:(u=q.call(X))==null?void 0:u.uniqueId)==="this is not intended behavior"&&_.x2(new _.qd("Smartimation Settings is undefined"))});
_.Wg(function(){d().experimentEnabled&&(d().enabled?bsy(H):(w(!1),Ury(H)),_.E2(function(){Ury(H)}))},"IHhVmc");
_.Wg(function(){d().timings.join("");d().experimentEnabled&&($rz(d()),_.E2(function(){Kpy(d())}))},"fsfhOe");
var B=_.uL(function(){var q=b,u=d().uniqueId+"-border",e,y;var V="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((y=(e=_.jJ().resolve(_.c$(_.b4)))==null?void 0:e())!=null&&y?"dark":"light")+"_v2.json";return{animationRef:q,animationConfig:{name:u,autoplay:!1,loop:!1,path:V}}},void 0,"UWvUGe");
U={};return _.F("yt-smartimation",{class:_.Qr(X.className,"smartimation",(U["smartimation--experiment-enabled"]=function(){return d().experimentEnabled},U["smartimation--active-border"]=K,U["smartimation--enable-masking"]=ClL(),U))},_.F(_.M,{cond:function(){return d().experimentEnabled},
then:function(){return _.F("div",{class:"smartimation__border"},_.F(_.Jx,{className:"smartimation__border-gradient",data:B,animationName:function(){return B().animationConfig.name}}))}}),_.F("div",{class:"smartimation__content"},X.children))},"ja");
tr_.idomCompat=!0;_.gC(tr_,"yt-smartimation",{props:{className:_.zh,settings:_.zh}});var CV=function(){var X=_.a.apply(this,arguments)||this;X.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};X.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};X.shouldEnableSmartimation=!1;return X};
_.S(CV,_.a);CV.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
CV.prototype.onDataChanged=function(){var X,H;this.shouldEnableSmartimation=(((X=this.data)==null?void 0:(H=X.timedAnimationData)==null?void 0:H.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
CV.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var X=_.f(this.data.likeButton,_.VB),H=_.f(this.data.dislikeButton,_.VB);return!!((X==null?0:X.isToggled)||(H==null?0:H.isToggled))};
CV.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]]"}}}}}};
_.ja.Object.defineProperties(CV.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var X,H,l=((X=this.data)==null?void 0:(H=X.timedAnimationData)==null?void 0:H.animationTiming)||[];return{uniqueId:"like-dislike",timings:l,enabled:this.shouldEnableSmartimation,experimentEnabled:l.length>0}}}});
CV.prototype.onDataChanged=CV.prototype.onDataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],CV.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],CV.prototype,"likeButtonOverride",void 0);_.T([_.g(),_.N("design:type",Object)],CV.prototype,"dislikeButtonOverride",void 0);
_.T([_.x("shouldEnableSmartimation"),_.N("design:type",Object),_.N("design:paramtypes",[])],CV.prototype,"smartimationSettings",null);_.T([_.Yh("data"),_.Le("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CV.prototype,"onDataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],CV);
_.O(CV,"ytd-segmented-like-dislike-button-renderer",function(){if(z9H!==void 0)return z9H;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return z9H=X},{mode:1});var W3z;var EZ9;(EZ9=document.body)==null||EZ9.setAttribute("rounded-container","");var gZt={};gZt.YtToggleButtonBehavior=[_.rh.YtActionHandlerBehavior,HP.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 X=this.data.isToggled;if(!this.isModal_(X)){if(!this.data.preventAutoToggle){this.toggle();var H={toggled:this.data.isToggled,actions:{}};H.actions[this.buttonIcon]=this.data.isToggled;_.QX(this.hostElement,"yt-toggle-button",H)}H=this.data.defaultServiceEndpoint||null;var l=this.data.toggledServiceEndpoint||null;if(H&&l||H&&this.data.preventAutoToggle)X=X?l:H,H=this.disableCommandHandlerOverride,_.P("killswitch_toggle_button_behavior_resolve_command")||H?_.ci(this.hostElement,
[X]):_.Lc(X,this.hostElement),_.QX(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:X})}},
stateChanged_:function(){var X=this.data;if(X){var H=X.isToggled;this._setEndpoint(this.computeEndpoint_(X));this._setServiceEndpoint(this.computeServiceEndpoint_(X));this._setButtonIcon(this.computeButtonIcon_(X,H));this._setButtonText(this.computeButtonText_(X,H));this._setButtonAccessibility(this.computeAccessibility_(X,H));this._setButtonTooltip(this.computeTooltip_(X,H));this._setButtonClass(this.computeButtonClass_(X,H));this._setIconPositionType(this.computeIconPositionType_(X));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=H):this.elements_.button.setAttribute("aria-pressed",H));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=H)}},
shouldSetIconActiveState_:function(){return _.P("kevlar_system_icons")},
toggle:function(X){this.set("data.isToggled",X!==void 0?X:!this.data.isToggled);_.P("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(X){if(X){var H,l;return!!((H=this.data)==null?0:(l=H.toggledServiceEndpoint)==null?0:l.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(X){return X&&X.defaultNavigationEndpoint||null},
computeButtonIcon_:function(X,H){var l=X&&X.defaultIcon?_.jL(X.defaultIcon.iconType):null;X=X&&X.toggledIcon?_.jL(X.toggledIcon.iconType):l;return H?X:l},
handleUpdateToggleButtonStateCommand_:function(X){X=X.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==X.buttonId&&this.toggle(X.toggled)},
computeButtonText_:function(X,H){return X?H&&X.toggledText||X.defaultText||null:null},
computeAccessibility_:function(X,H){return X?(H?this.get("toggledAccessibilityData.accessibilityData",X):this.get("accessibilityData.accessibilityData",X))||X.accessibility||null:null},
computeTooltip_:function(X,H){return X?H&&X.toggledTooltip||X.defaultTooltip||null:null},
computeButtonClass_:function(X,H){if(!X)return"";var l="",b=X.toggledStyle||X.style;if(H=H?b:X.style){H.styleType&&(H=H.styleType);try{l+=H.toLowerCase().replace(/_/g,"-")+" "}catch(U){_.Dq(U,H,typeof H),_.x2(U)}}if(X=X.size){X.sizeType&&(X=X.sizeType);try{l+=X.toLowerCase().replace(/_/g,"-")+" "}catch(U){_.Dq(U,X,typeof X),_.x2(U)}}return l.trim()},
computeIconPositionType_:function(X){return X&&X.iconPosition||null},
computeServiceEndpoint_:function(X){var H=X&&X.serviceEndpoint,l=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return H?H:l&&X.command?X.command:null},
handleUpdateToggleButtonTextAction_:function(X){X=X.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==X.buttonId&&(this.set("data.defaultText",X.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",X.toggledText),this.notifyPath("data.toggledText"))}}];_.wd("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var GAD=_.P("web_button_rework")&&_.G7("BUTTON_REWORK")||_.P("web_button_rework_with_live"),w3=function(){var X=_.a.apply(this,arguments)||this;X.systemIcons=_.P("kevlar_system_icons");X.roundedContainer=!0;return X};
_.S(w3,_.a);w3.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
w3.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var X=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var H={toggled:!!this.data.isToggled,actions:{}};H.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var l,b;H.actions.playlistId=(l=this.data.defaultServiceEndpoint)==null?void 0:(b=l.playlistEditEndpoint)==null?void 0:b.playlistId;_.QX(this.hostElement,"yt-toggle-button",H)}(X=X?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(X)}};
w3.prototype.onYtNavigate=function(X){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(X.detail.endpoint);H&&(X.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(H))};
_.ja.Object.defineProperties(w3,{template:{configurable:!0,enumerable:!0,get:function(){if(W3z===void 0){var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);W3z=X}X=W3z;return X}}});
w3.prototype.onYtNavigate=w3.prototype.onYtNavigate;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],w3.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],w3.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(gZt.YtToggleButtonBehavior),_.N("design:type",Object)],w3.prototype,"ytToggleButtonBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],w3.prototype,"data",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],w3.prototype,"showTooltips",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],w3.prototype,"systemIcons",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],w3.prototype,"roundedContainer",void 0);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],w3.prototype,"onYtNavigate",null);
_.T([_.sq({is:"ytd-toggle-button-renderer",disableElementRegistration:GAD})],w3);var akt,ZvH;_.d3=new _.gz("PANEL_CONTROLLER_TOKEN");_.hT=new _.gz("SHEET_CONTROLLER_TOKEN");_.Fr=new _.gz("DIALOG_CONTROLLER_TOKEN");akt=new _.gz("DIALOG_CONTAINER_TOKEN");ZvH=new _.gz("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.Bm=new _.gz("PERSISTENT_PANEL_CONTROLLER_TOKEN");var uzb=_.XS("DOWNLOAD",{},"Download"),e8y=_.XS("DOWNLOADING",{},"Downloading"),ypK=_.XS("DOWNLOADED",{},"Downloaded"),VVO=_.XS("RETRY",{},"Retry");var iv6=_.Z(function(X){var H=z8N,l=function(){return""},b=PlK(X.data),U=fPz(X.data),K=p_8(X.data),w=Srm(X.data);
H=function(){var d=X.data(),B=sdy(d,b(),U(),K(),w()),q=!!d.videoId,u=B.text;return{title:q?u:void 0,tooltip:q?void 0:u,accessibilityText:u,onTap:B.onTap,iconName:B.iconType,style:d.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:B.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:d.buttonSize}};
l={};l=_.Qr("ytDownloadButtonViewModelHost",(l.ytDownloadButtonViewModelIsHidden=function(){var d=X.data(),B=w();return d.playlistId||B()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||B()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},l));
return _.F("download-button-view-model",{class:l},_.F(_.Qk,{data:H}))},"ka");
iv6.idomCompat=!0;var GMy=new _.gz("SUBMIT_API_SERVICE_TOKEN");var Wpb,EFK,aPy={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var oZO=new _.gz("RENDERER_LOGGER_TOKEN");var ApZ=new _.gz("RENDERER_STAMPER_OPTIONS_TOKEN");var ish;_.H6=new BBy;ish=new Map;var XHy="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),lkN=["notificationTextRenderer","notificationMultiActionRenderer"],
HvL="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),IPN=vFz(function(X){return _.a5(X==null?void 0:X.targetId)}).useUpdatableData;var TEN=null;var Yr8=0,Jpl=new Set;_.l4.debugName="EjJbCe";var vZC=_.Z(function(X){var H=X.data;X=X.className;_.xy(function(){H().formId||_.n2(Error("Dh"))});
var l=_.tVz(function(){return H().formId},function(){return H().beforeSubmitCommand},function(){return H().afterSubmitCommand}),b=l.submitForm,U=l.isValid,K=l.isSubmitting,w=function(){return{state:H().isDisabled||!U()||K()?"disabled":"active"}};
return _.F("yt-submit-button-view-model",{class:_.Qr("ytSubmitButtonViewModelHost",X)},_.F(_.l4,{data:function(){return H().button}},{buttonViewModel:function(d){return _.F(_.Qk,{data:d.data,
buttonOverrides:w,onClick:b})}}))},"na");var m2v=_.Z(function(X){var H=X.backgroundLottieRef;var l=X.foregroundLottieRef;var b=X.children;var U=X.wrapperClass;var K=X.disableAnimation;X=function(){return(_.P("web_animated_actions")||_.P("web_animated_actions_v2"))&&!(K==null?0:K())};
return _.F("yt-animated-action",{class:_.Qr("ytAnimatedActionHost",U)},_.F("div",{class:"ytAnimatedActionContentWithBackground"},_.F(_.M,{cond:X,then:function(){return _.F(Ov9,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:H==null?void 0:H(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(bvZ()?"dark":"light")+"_v5.json"}}}})}}),b),_.F(_.M,{cond:X,
then:function(){return _.F(Ov9,{lottiePlayerProps:function(){return{animationRef:l==null?void 0:l(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(bvZ()?"dark":"light")+"_v4.json"}}}})}}))},"oa");
m2v.idomCompat=!0;var Ov9=_.Z(function(X){var H=X.wrapperClass;var l=X.lottieClass;var b=X.lottiePlayerProps;return _.F("div",{class:_.Qr("ytAnimatedActionLottie",H),"aria-hidden":"true"},_.F(_.Jx,{className:l,data:b,animationName:function(){return b().animationConfig.name}}))},"pa");var U2W={isOpen:!1};var K3l={isAllowed:!1};var CAK={errorMessage:"",title:"",privacy:"",isDisabled:!0};var d2O={isOpen:!1};var F3K={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var QtY={response:void 0};var q3h=function(X,H){X=X===void 0?QtY:X;switch(H.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},X,{response:H.payload});default:return X}};var TA6={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var stb=function(X,H){X=X===void 0?TA6:X;switch(H.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},X,{nextDisabled:H.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},X,{nextCommand:H.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},X,{footerSubmissionData:H.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},X,{isImpersonationValid:H.payload});default:return X}};var NAQ={reportFormData:void 0,reportDetailsFormData:void 0};var MrW=function(X,H){X=X===void 0?NAQ:X;switch(H.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},X,{reportFormData:H.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},X,{reportDetailsFormData:H.payload});default:return X}};var c6z=void 0;_.P("mweb_enable_redux_store_on_demand")||(c6z=new t0(uYb()));var qP=_.P("enable_web_delhi_icons");var jtv=_.Z(function(X){X=_.gT(X,{themeOverride:void 0,animationRef:{}});var H=X.animatedIconType,l=X.active,b=X.themeOverride,U=X.animationRef;X=X.staticIconFn;var K=_.C(_.FU(void 0,void 0,"l48agc")),w=K.next().value,d=K.next().value,B=function(){a:{var t=H();var W=b==null?void 0:b();var G;W=(W==null?void 0:W.useDarkTheme)||((G=_.jJ().resolve(_.c$(_.b4)))==null?void 0:G());switch(t){case "LIKE":c6z||(c6z=new t0(uYb()));t=(t=TQz(c6z.getState()))&&t.animationLightUrl&&t.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:W?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:W?t.animationDarkUrl:t.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(t){W=t;break a}W="animated_like_icon_"+(W?"dark":"light")+"_"+(qP?"v5":"v4");W={lottiePlayerProps:{animationConfig:{name:W,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+W+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(qP?" animated-like-icon-delhi":"")}}},totalFrames:qP?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":W={lottiePlayerProps:{animationConfig:{name:W?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(W?"dark":"light")+(qP?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(qP?" animated-subscribe-icon-delhi":"")}}},totalFrames:qP?120:79,lazyLoad:!1};break a}W=
void 0}return W},q=function(){var t,W;
return(W=(t=B())==null?void 0:t.lottiePlayerProps.animationConfig.name)!=null?W:""},u=function(){if(B()){var t=B().lottiePlayerProps.animationConfig.path;
return Um.get(t)||w()}};
K=_.C(_.FU(!1,void 0,"sDrGId"));var e=K.next().value;K=K.next().value;var y=y6h(K),V=function(){var t=B(),W,G,r;return(r=t==null?void 0:(W=t.lottiePlayerProps.animationConfig)==null?void 0:(G=W.rendererSettings)==null?void 0:G.className)!=null?r:""},p=void 0,z=void 0;
_.Wg(function(){var t=B(),W=q(),G=u(),r=e(),Q=l();if(t&&(z!==W&&(z=W,p=Q,W=U(),y.animationConfig=t.lottiePlayerProps.animationConfig,y.animationRef=W,G&&(y.animationConfig.animationData=G,y.animationConfig.path=void 0),W=t.lottiePlayerProps.animationConfig.path,!Um.get(W)&&t.lazyLoad&&W&&e9y(W,d)),!(r||t.lazyLoad&&!G))){if(G=!U().lottieEl)Q?(r=t.totalFrames,y.animationConfig.initialSegment=[r-1,r]):y.animationConfig.initialSegment=void 0;if(p!==Q&&!G)if(G=U(),Q){var v;(v=G.lottieEl)==null||v.playSegments([0,
t.totalFrames],!0)}else{var J;(J=G.lottieEl)==null||J.playSegments([0,1],!0)}p=Q}},"RQVZ1d");
return _.F("animated-icon",{class:"ytAnimatedIconHost"},_.F(_.M,{cond:function(){var t,W;return!((t=B())==null||!t.lottiePlayerProps.animationConfig.path||((W=B())==null?0:W.lazyLoad)&&!u()||e())},
then:function(){return _.F(_.Jx,{data:y,animationName:q,className:V,animationRef:U})},
else:X}))},"ra");_.sI=_.Z(function(X){var H=_.SJ("yt-subscribe-button-view-model"),l=_.SJ("div"),b=_.SJ("div"),U=_.Jw(),K=_.Jw(),w=_.Jw(),d=_.Aw(pH8,function(){return X.data().stateEntityStoreKey}),B=_.Aw(S3L,function(){var TK,sG;
return(sG=(TK=X.data().notificationStateEntityStoreKeys)==null?void 0:TK.subsNotificationStateKey)!=null?sG:""}),q=function(){return!X.data().enableSubscribeButtonPostClickAnimation},u=_.C(_.FU(0,void 0,"YtsSKb")),e=u.next().value,y=u.next().value;
u=_.C(_.FU(0,void 0,"V6JxRe"));var V=u.next().value,p=u.next().value;u=_.C(_.FU(!1,void 0,"JUCSZ"));var z=u.next().value,t=u.next().value;u=_.C(_.FU(!1,void 0,"oV6jwf"));var W=u.next().value,G=u.next().value;u=_.C(_.FU(!1,void 0,"hK1Whe"));var r=u.next().value,Q=u.next().value,v;u=_.C(_.FU(!1,void 0,"Asaolf"));var J=u.next().value,Y=u.next().value,Uy=function(){G(!0);_.Rs(_.Ss,function(){G(!1)},1500)};
_.Wg(function(){var TK=W();_.h1(function(){TK&&!q()&&d()&&ivL(U,K,w)})},"Qq6Hsf");
_.Wg(function(){var TK=d();_.h1(function(){if(!q()&&TK){var sG;((sG=X.animateWidth)==null?0:sG.call(X))&&ZvO(H.value,!!TK.subscribed,e(),V());var f_,Mv;((f_=v)==null?0:f_.subscribed)||!TK.subscribed||TK.key!==((Mv=v)==null?void 0:Mv.key)||Uy();v=TK}})},"hog8te");
u=_.uL(function(){var TK,sG,f_,Mv=X.data(),nd=!((TK=d())==null||!TK.subscribed);TK=!((sG=X.isOverlay)==null||!sG.call(X));sG=z()?H:void 0;var $U=(f_=B())==null?void 0:f_.state;f_=J();ak8(Mv,$U);return fky({model:Mv,subscribed:nd,isOverlay:TK,element:sG,notificationState:$U,disableTextEllipsis:!0,focused:f_})},void 0,"hc1PRd");
var Cy=function(){var TK;if(!q()&&((TK=X.animateWidth)==null?0:TK.call(X))&&(l==null?0:l.value)&&(b==null?0:b.value)&&!r()){TK=d();var sG=_.C((TK==null?0:TK.subscribed)?[l,b]:[b,l]),f_=sG.next().value;sG=sG.next().value;f_=Math.ceil(f_.value.getBoundingClientRect().width);sG=Math.ceil(sG.value.getBoundingClientRect().width);y(f_);p(sG);ZvO(H.value,!(TK==null||!TK.subscribed),f_,sG);Q(!0)}},sy=_.Nq(function(TK){Cy();
var sG=d();sG&&(TK.detail.endpoint.subscribeEndpoint||TK.detail.endpoint.unsubscribeEndpoint)&&EZZ(H.value,!sG.subscribed,sG)}),FO=function(){var TK=_.jJ().resolve(_.c$(_.aE));
TK&&Y(TK.isKeyBoardInUse())},ub=function(){Y(!1)};
_.OA("yt-player-subscribe",function(TK){var sG=d();sG&&TK===X.data().channelId&&EZZ(H.value,!0,sG)});
_.OA("yt-player-unsubscribe",function(TK){var sG=d();sG&&TK===X.data().channelId&&EZZ(H.value,!1,sG)});
_.OA("yt-update-subscribe-button-action",function(TK){TK=_.f(TK,tfv);var sG=d();sG&&TK&&TK.channelId===X.data().channelId&&EZZ(H.value,!!TK.subscribed,sG)});
_.DR(function(){H.value&&(H.value.addEventListener("focusin",FO),H.value.addEventListener("focusout",ub));var TK=_.eh(_.Ss,function(){Cy()});
t(!0);_.E2(function(){_.Ss.cancelJob(TK);H.value&&(H.value.removeEventListener("focusin",FO),H.value.removeEventListener("focusout",ub))})});
var g8=function(){var TK,sG,f_;if(f_=!((TK=d())==null||!TK.subscribed))TK=!!X.data().disableNotificationBell,f_=(sG=B())==null?void 0:sG.state,f_=!TK&&!!f_;return f_},mm=function(){var TK;
return!((TK=d())==null?0:TK.subscribed)},QZ=function(){var TK,sG;
if(sG=mm()){sG=!!X.data().disableNotificationBell;var f_=(TK=B())==null?void 0:TK.state;sG=!sG&&!!f_}return sG},Bz={},dt={};
return _.F("yt-subscribe-button-view-model",{class:_.Qr(X.className,"ytSubscribeButtonViewModelHost",(Bz.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var TK,sG;return!((TK=d())==null||!TK.subscribed)&&((sG=X.animateWidth)==null?void 0:sG.call(X))&&W()},Bz.ytSubscribeButtonViewModelHostHidden=function(){var TK;
return!((TK=d())==null?0:TK.subscribed)&&X.data().hideWhenUnsubscribed},Bz)),
el:H,"on:yt-service-request-sent":sy},_.F(m2v,{backgroundLottieRef:U,foregroundLottieRef:K,wrapperClass:_.Qr("ytSubscribeButtonViewModelAnimatedActionWrapper",(dt.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var TK;return((TK=X.animateWidth)==null?void 0:TK.call(X))&&W()},dt.ytSubscribeButtonViewModelStaticWidth=function(){var TK;
return!((TK=X.animateWidth)==null?0:TK.call(X))},dt)),
disableAnimation:q},_.F("div",{el:l,class:"ytSubscribeButtonViewModelContainer"},_.F(_.ms,{data:u,icon:function(){return _.F(_.M,{cond:g8,then:function(){var TK=function(){var sG;return W3h((sG=B())==null?void 0:sG.state)};
return _.F(_.M,{cond:function(){return q()||TK()!=="NOTIFICATIONS_NONE"},
then:function(){return _.F(_.Ja,{icon:TK})},
else:function(){return _.F(jtv,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:w})}})}})},
secondaryIconName:function(){return g8()?"EXPAND":void 0}}))),_.F("div",{el:b,
class:"ytSubscribeButtonViewModelInvisible"},_.F(_.M,{cond:function(){var TK;return((TK=X.animateWidth)==null?void 0:TK.call(X))&&!q()&&!r()},
then:function(){return _.F(_.ms,{data:_.uL(function(){var TK;return fky({model:X.data(),subscribed:mm(),isOverlay:!((TK=X.isOverlay)==null||!TK.call(X)),element:H,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var TK;return QZ()?W3h((TK=B())==null?void 0:TK.state):void 0},
secondaryIconName:function(){return QZ()?"EXPAND":void 0}})}})))},"ua");
_.sI.idomCompat=!0;var r6G=_.Z(function(X){var H=X.data;var l=_.Aw(pH8,function(){return H().subscriptionStateEntityKey});
return _.F(_.M,{cond:function(){var b=H(),U=l();return!b.hideWhenUnsubscribed||(U==null?0:U.subscribed)?_.f(H().button,_.fk):void 0},
then:function(b){return _.F("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.F(_.Qk,{data:b,buttonOverrides:function(){return{toggled:!0}}}))}})},"va");
r6G.idomCompat=!0;var J6t,MP;J6t=_.Z(function(X){return _.F(_.l4,{data:function(){return X.actionRow().actions}},{buttonViewModel:function(H){var l=H.data;
return _.F(MP,{isRow:X.isRow,isIconOnlyButton:function(){return vZz(l())},
useIntrinsicWidth:X.useIntrinsicWidth},_.F(_.Qk,{data:l}))},
subscribeButtonViewModel:function(H){return _.F(MP,{isRow:X.isRow},_.F(_.sI,{data:H.data,isOverlay:!1,animateWidth:function(){return!X.isRow()}}))},
downloadButtonViewModel:function(H){var l=H.data;return _.F(MP,{isRow:X.isRow,isIconOnlyButton:function(){return!!l().playlistId}},_.F(iv6,{data:l}))},
submitButtonViewModel:function(H){var l=H.data;return _.F(MP,{isRow:X.isRow,isIconOnlyButton:function(){var b=l();return vZz(_.f(b==null?void 0:b.button,_.fk))}},_.F(vZC,{data:l}))},
toggleButtonViewModel:function(H){var l=H.data;return _.F(MP,{isRow:X.isRow,isIconOnlyButton:function(){var b=l();return vZz(_.f(b.isToggled?b.toggledButtonViewModel:b.defaultButtonViewModel,_.fk))}},_.F(_.KL,{data:l}))},
subscribePlusButtonViewModel:function(H){return _.F(MP,{isRow:X.isRow},_.F(r6G,{data:H.data}))}})},"wa");
MP=_.Z(function(X){var H={};return _.F("div",{class:_.Qr("ytFlexibleActionsViewModelAction",(H.ytFlexibleActionsViewModelActionRowAction=X.isRow,H.ytFlexibleActionsViewModelActionIntrinsicWidth=X.useIntrinsicWidth,H.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,H.ytFlexibleActionsViewModelActionIconOnlyButton=X.isIconOnlyButton,H))},X.children)},"xa");
_.u2=_.Z(function(X){var H=function(){var b;return((b=X.layout)==null?void 0:b.call(X))===1},l={};
return _.F("yt-flexible-actions-view-model",{class:_.Qr("ytFlexibleActionsViewModelHost",X.className,(l.ytFlexibleActionsViewModelInline=function(){return!H()},l.ytFlexibleActionsViewModelScrollable=function(){return X.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},l))},_.F(_.P$,{each:function(){return X.data().actionsRows||[]}},function(b){return _.F(_.M,{cond:H,
then:function(){return _.F("div",{class:"ytFlexibleActionsViewModelActionRow"},_.F(J6t,{actionRow:b,isRow:H,useIntrinsicWidth:function(){return!!X.data().respectActionIntrinsicWidth}}))},
else:function(){return _.F(J6t,{actionRow:b,isRow:H})}})}))},"ya");_.gC(_.u2,"yt-flexible-actions-view-model",{props:{data:_.zh,layout:_.zh,justifyContentOverride:_.zh,className:_.zh}});_.eb=_.Z(function(X){var H=_.Aw(_.Mn,function(){var U;return(U=X.data().dislikeEntityKey)!=null?U:""}),l=_.uL(function(){var U=H();
return U?U.likeStatus==="DISLIKE":_.f(X.data().toggleButtonViewModel,_.SR).isToggled},void 0,"fNr9he"),b=_.uL(function(){return Object.assign({},_.f(X.data().toggleButtonViewModel,_.SR),{isToggled:l()})},void 0,"AezoCc");
return _.F("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.F(_.KL,{data:b,buttonShapeOverrides:X.buttonShapeOverrideables,onToggle:function(U){var K=H();K&&U!==(K.likeStatus==="DISLIKE")&&K.key&&_.Wc(_.Mf("likeStatusEntity",K.key,{likeStatus:U?"DISLIKE":"INDIFFERENT",hadUserInteraction:U}))}}))},"za");
_.eb.idomCompat=!0;_.y7=_.Z(function(X){var H=_.P("web_supports_animations_api"),l=I5N(function(y){var V=q();if(!y){var p,z;return{numberText:(z=V==null?void 0:(p=V.likeCountIfIndifferent)==null?void 0:p.content)!=null?z:"",numberValue:Number(V==null?void 0:V.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var t;p=(V==null?void 0:(t=V.likeCountIfIndifferent)==null?void 0:t.content)!==y.numberText;if(d()||!p)return y;var W;return{numberText:(V==null?void 0:(W=V.likeCountIfIndifferent)==null?void 0:W.content)||
"",numberValue:Number(V==null?void 0:V.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!V}}),b=I5N(function(y){var V=q();
if(!y){var p,z;return{numberText:(z=V==null?void 0:(p=V.likeCountIfLiked)==null?void 0:p.content)!=null?z:"",numberValue:Number(V==null?void 0:V.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var t;p=(V==null?void 0:(t=V.likeCountIfIndifferent)==null?void 0:t.content)!==y.numberText;if(d()||!p)return y;var W;return{numberText:(V==null?void 0:(W=V.likeCountIfLiked)==null?void 0:W.content)||"",numberValue:Number(V==null?void 0:V.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!V}}),U=_.C(_.FU(void 0,
void 0,"xYSlUe")),K=U.next().value,w=U.next().value,d=K,B=_.Aw(_.Mn,function(){var y,V;
return(V=(y=X.data())==null?void 0:y.likeStatusEntityKey)!=null?V:""}),q=_.Aw(zQm,function(){var y,V;
return((y=X.likeCountEntity)==null?void 0:(V=y.call(X))==null?void 0:V.key)||""}),u=_.uL(function(){var y;
return((y=B())==null?void 0:y.likeStatus)==="LIKE"},void 0,"DG5Osd"),e=function(){var y;
return H&&!((y=X.likeCountEntity)==null||!y.call(X))};
return _.F("like-button-view-model",{class:_.Qr("ytLikeButtonViewModelHost",X.className)},_.F(_.KL,{data:function(){var y=Object,V=y.assign,p;var z=_.f((p=X.data())==null?void 0:p.toggleButtonViewModel,_.SR);return V.call(y,{},z||{},{isToggled:u()})},
buttonShapeOverrides:X.buttonShapeOverrideables,animatedTextPropsDefault:function(){return e()?l():void 0},
animatedTextPropsToggled:function(){return e()?b():void 0},
onToggle:function(y){OvZ(y,B(),d(),w)},
style:function(){var y;return((y=X.disableIconAnimation)==null?0:y.call(X))?void 0:{animateIcon:"true"}}}))},"Aa");
_.y7.idomCompat=!0;var L3F=_.Z(function(X){var H=function(){return _.f(X.data().likeButtonViewModel,_.p9)},l=function(){var U;
return((U=H())==null?void 0:U.likeStatusEntityKey)||""},b=_.uL(function(){var U,K;
var w=(K=_.Aw(_.Mn,l)())!=null?K:(U=H())==null?void 0:U.likeStatusEntity;U=X.data();var d;U=(U==null?void 0:(d=U.timedAnimationData)==null?void 0:d.animationTiming)||[];return{uniqueId:"like-dislike",timings:U,enabled:(w==null?void 0:w.likeStatus)==="INDIFFERENT"&&U.length>0,experimentEnabled:U.length>0}},void 0,"zZ3GQb");
return _.F("segmented-like-dislike-button-view-model",{class:_.Qr("ytSegmentedLikeDislikeButtonViewModelHost",X.className),"button-renderer":!0},_.F(tr_,{settings:b},_.F("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.F(_.M,{cond:H,then:function(U){return _.F(_.y7,{data:U,likeCountEntity:function(){return X.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.P("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.F(_.M,{cond:function(){return _.f(X.data().dislikeButtonViewModel,_.SY)},
then:function(U){return _.F(_.eb,{data:U,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Ba");
L3F.idomCompat=!0;_.gC(L3F,"segmented-like-dislike-button-view-model",{props:{data:_.zh,className:_.zh}});var Y3_=_.Z(function(X){var H=X.data;var l=X.className;var b=X.setMinWidth;var U=X.forceIconOnly;var K=_.SJ("account-link-button-view-model"),w=_.Aw(_.m2W,function(){var y;return(y=H().accountLinkStatusEntityKey)!=null?y:""}),d=_.Aw(_.m2W,function(){var y;
return(y=H().accountLinkStatusSecondaryEntityKey)!=null?y:""}),B=function(){if(!_.P("web_account_link_secondary_killswitch")){var y,V;
return((y=w())==null?void 0:y.linked)||((V=d())==null?void 0:V.linked)}var p;return(p=w())==null?void 0:p.linked};
_.Wg(function(){var y=w();if(y){var V=UgQ(new bgv,l7t(new Hgz,!!y.linked));_.j2().then(function(p){p&&(p.setAccountLinkState(_.Ik(V.JSC$12637_serializeBinary(),4)),p.updateAccountLinkingConfig(!!y.linked))})}},"IvZF7");
var q=function(){return _.f(H().toggleButtonViewModel,_.SR)};
_.OA("yt-signal-action-show-account-link-dialog",function(){if(q()){var y=B()?q().toggledButtonViewModel:q().defaultButtonViewModel;y=_.f(y,_.fk);var V;if((V=w())==null?0:V.isWarning){V=_.f(H().warningButtonViewModel,_.fk);if(!V){_.v$(Error("Eh"));return}y=V}var p;(V=_.sl((p=y)==null?void 0:p.onTap))&&_.LN([V],K.value)}else _.v$(Error("Fh"))});
var u=function(){var y=q();return Object.assign({},y,{isToggled:B()})},e=function(){return(U==null?0:U())?{iconPosition:"icon-only"}:{}};
return _.F("account-link-button-view-model",{class:_.Qr("ytwAccountLinkButtonViewModelHost",l,function(){return(b==null?0:b())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:K,"button-renderer":!0},_.F("div",null,_.F(_.M,{cond:function(){var y;if((y=w())==null?0:y.isWarning)return(y=_.f(H().warningButtonViewModel,_.fk))||_.v$(Error("Eh")),y},
then:function(y){return _.F(_.Qk,{data:y,buttonOverrides:e})},
else:function(){return _.F(_.KL,{data:u,buttonShapeOverrides:e})}})))},"Da");_.gC(Y3_,"account-link-button-view-model",{props:{data:_.zh,className:_.ta,setMinWidth:_.ta,forceIconOnly:_.ta}});_.wd("menuRenderer","menuRenderer","ytd-menu-renderer");
var IkQ={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"}},
A69=_.P("web_fix_missing_action_buttons")?100:200,V7=function(){var X=_.a.apply(this,arguments)||this;X.safeArea=!_.P("kevlar_flex_menu_safe_area_killswitch");X.tonalOverride=!1;X.threeDotSize="M";X.isOverlay=!1;X.useOverlayDark=!1;X.topLevelIconsOnly=!1;X.JSC$15082_lastWidth=0;X.maybeUpdateFlexibleMenu=function(){_.P("web_fix_missing_action_buttons")?requestAnimationFrame(X.maybeUpdateFlexibleMenuImpl):X.maybeUpdateFlexibleMenuImpl()};
X.maybeUpdateFlexibleMenuImpl=function(){var H;if((H=X.data)!=null&&H.flexibleItems){X.maybeFlushDebouncer();H=X.hostElement.clientWidth;var l=H>X.JSC$15082_lastWidth,b,U=((b=X.topLevelButtonsContainer)==null?void 0:b.scrollHeight)||0,K;b=((K=X.flexibleItemButtonsContainer)==null?void 0:K.scrollHeight)||0;K=X.hostElement.scrollHeight>Math.max(U,b)+8;l?(X.resetFlexibleItems(),X.JSC$15082_lastWidth=X.hostElement.clientWidth,X.maybeUpdateFlexibleMenu()):K&&(X.shrinkFlexibleMenu(),X.JSC$15082_lastWidth=
H)}};
X.computeThreeDotButtonShape=function(){if(X.tonalOverride)return Object.assign({},{onTap:function(){X.onOverflowTap()},
iconPosition:"icon-only",style:X.isOverlay?X.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:X.threeDotSize,state:"active",accessibilityLabel:X.computeAccessibilityLabel(X.data)},X.threeDotButtonOverride)};
X.onOverflowTap=function(){var H,l,b,U,K,w,d,B,q,u,e;_.h(function(y){switch(y.nextAddress){case 1:if((H=X.data)==null?0:H.fetchMenuCommand)return l=_.jJ().resolve(_.Vr),l.resolveCommand(X.data.fetchMenuCommand,{form:{element:X.hostElement}}),y.return();if(((b=X.data)==null?0:b.isDisabled)&&((U=X.data)==null?0:U.disabledCommand))return _.Lc(X.data.disabledCommand,X.hostElement),y.return();K=X.createMenuRendererVe();w={items:X.items};if((d=X.data)==null?0:d.menuPopupAccessibility)w.menuPopupAccessibility=
X.data.menuPopupAccessibility;if((B=X.data)==null?0:B.footer)w.footer=X.data.footer;q={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:w},veData:K}};u=_.jJ().resolve(_.hT);if(!_.P("ytd-menu-singleton-sheet-killswitch")){y.jumpTo(2);break}return y.yield(u.openSheet({openPopupActionCommand:q},X.hostElement),3);case 3:return y.return();case 2:return y.yield(u.isSheetOpen(),4);case 4:return(e=y.yieldResult)?y.yield(u.closeSheet(),0):y.yield(u.openSheet({openPopupActionCommand:q},X.hostElement),
0)}})};
return X};
_.S(V7,_.a);_.R=V7.prototype;_.R.updateButtonOverrides=function(){if(!_.P("menu_renderer_label_update_upkillswitch")){var X=_.mh(this.hostElement).querySelector("yt-button-view-model");X&&(X.buttonOverrides=this.buttonOverrides)}};
_.R.computeHasItems=function(){var X;return((X=this.topLevelButtonData)==null?void 0:X.length)||this.hasFlexibleItems};
_.R.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.R.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.j4(this.hostElement,{"--ytd-menu-renderer-button-color":_.BM(this.data.iconColor)}))};
_.R.onStamperFinished=function(){this.JSC$15082_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.R.setupFlexibleMenu=function(){var X=this,H;(H=this.data)!=null&&H.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.jw(this.maybeUpdateFlexibleMenu,A69,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){X.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))};
_.R.maybeFlushDebouncer=function(){if(_.P("web_replace_formatted_with_attributed_string")){var X;(X=this.topLevelButtons)==null||X.forEach(function(l){var b;(l=(b=l.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0])&&FNb(l)});
var H;(H=this.flexibleItemButtons)==null||H.forEach(function(l){var b;(l=(b=l.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0])&&FNb(l)})}};
_.R.resetFlexibleItems=function(){var X;if((X=this.data)!=null&&X.flexibleItems){_.P("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var H;this.flexAsTopLevelButtons=(H=this.data.flexibleItems)==null?void 0:H.map(function(l){return _.f(l,_.OL_).topLevelButton});
_.P("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.R.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.R.shrinkFlexibleMenu=function(){var X;(X=this.flexAsTopLevelButtons)!=null&&X.length&&(this.flexAsTopLevelButtons=[].concat(_.LJ(this.flexAsTopLevelButtons.slice(0,-1))))};
_.R.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:IkQ,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:IkQ,events:!0}}};
_.R.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.R.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.R.detached=function(){this.icon="MORE_VERT"};
_.R.computeTopLevelButtonData=function(X){if(!X)return[];var H;X=(H=X==null?void 0:X.topLevelButtons)!=null?H:[];return _.Bb.unsafeClone([].concat(_.LJ(X)))};
_.R.computeItems=function(X,H){if(!X)return[];var l=[];if(H){var b=(X.flexibleItems||[]).map(function(w){return _.f(w,_.OL_)});
b=_.C(b);for(var U=b.next();!U.done;U=b.next())U=U.value,H.includes(U.topLevelButton)||(U=U.menuItem)&&l.push(U)}var K;X=(K=X==null?void 0:X.items)!=null?K:[];return[].concat(_.LJ(l),_.LJ(X))};
_.R.computeMenuActive=function(X,H){return X||H};
_.R.onPopupOpened=function(){this.overlayOpen=!0;_.QX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.R.onPopupClosed=function(){this.overlayOpen=!1;_.QX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.R.onPopupCanceled=function(){this.overlayOpen=!1;_.QX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.R.computeAccessibilityLabel=function(X){return this.get("accessibility.accessibilityData.label",X)};
_.R.isHidden=function(X,H){return this.tonalOverride||!X?!0:X.fetchMenuCommand||X.isDisabled&&X.disabledCommand?!1:!(H==null?0:H.length)};
_.R.isModernOverflowHidden=function(X,H){return this.tonalOverride&&X?X.fetchMenuCommand?!1:!(H==null?0:H.length):!0};
_.R.createMenuRendererVe=function(){var X,H=(X=this.data)==null?void 0:X.trackingParams;X=_.Bi();var l=_.F6();return H&&X&&l?(H=_.$l(H),l=_.cS(7591),_.P("combine_ve_grafts")?_.rg(_.lv(),l,H):_.pA(X,H,l),l):null};
_.ja.Object.defineProperties(V7.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.flexAsTopLevelButtons)==null||!X.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
V7.prototype.onPopupCanceled=V7.prototype.onPopupCanceled;V7.prototype.onPopupClosed=V7.prototype.onPopupClosed;V7.prototype.onPopupOpened=V7.prototype.onPopupOpened;V7.prototype.tonalOverrideChanged=V7.prototype.tonalOverrideChanged;V7.prototype.resetFlexibleItems=V7.prototype.resetFlexibleItems;V7.prototype.setupFlexibleMenu=V7.prototype.setupFlexibleMenu;V7.prototype.iconButtonColorChanged=V7.prototype.iconButtonColorChanged;V7.prototype.updateButtonOverrides=V7.prototype.updateButtonOverrides;
_.T([_.k(_.gI),_.N("design:type",Object)],V7.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.A2("#button-shape"),_.N("design:type",HTMLElement)],V7.prototype,"buttonShape",void 0);_.T([_.A2("#button"),_.N("design:type",Object)],V7.prototype,"button",void 0);
_.T([_.g(),_.N("design:type",Object)],V7.prototype,"data",void 0);_.T([_.g({computed:"computeTopLevelButtonData(data)"}),_.N("design:type",Array)],V7.prototype,"topLevelButtonData",void 0);_.T([_.g(),_.N("design:type",Array)],V7.prototype,"flexAsTopLevelButtons",void 0);_.T([_.g({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.N("design:type",Array)],V7.prototype,"items",void 0);_.T([_.g({value:"MORE_VERT"}),_.N("design:type",String)],V7.prototype,"icon",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],V7.prototype,"safeArea",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.N("design:type",Boolean)],V7.prototype,"menuActive",void 0);_.T([_.g(),_.N("design:type",Boolean)],V7.prototype,"menuFocused",void 0);_.T([_.g({value:"bottom"}),_.N("design:type",String)],V7.prototype,"buttonTooltipPosition",void 0);_.T([_.g(),_.N("design:type",Boolean)],V7.prototype,"overlayOpen",void 0);
_.T([_.g({value:!0}),_.N("design:type",Boolean)],V7.prototype,"forceIconButton",void 0);_.T([_.g(),_.N("design:type",Boolean)],V7.prototype,"styleActionButton",void 0);_.T([_.g(),_.N("design:type",Boolean)],V7.prototype,"disableTextTransformOnButtons",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],V7.prototype,"tonalOverride",void 0);_.T([_.g(),_.N("design:type",Object)],V7.prototype,"threeDotSize",void 0);
_.T([_.g(),_.N("design:type",Object)],V7.prototype,"threeDotButtonOverride",void 0);_.T([_.g(),_.N("design:type",Object)],V7.prototype,"isOverlay",void 0);_.T([_.g(),_.N("design:type",Object)],V7.prototype,"useOverlayDark",void 0);_.T([_.g({computed:"computeButtonOverride(tonalOverride)"}),_.N("design:type",Object)],V7.prototype,"buttonOverride",void 0);_.T([_.g(),_.N("design:type",Boolean)],V7.prototype,"minimizePipBreakages",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],V7.prototype,"hasCustomIconColor",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("flexAsTopLevelButtons"),_.N("design:type",Object),_.N("design:paramtypes",[])],V7.prototype,"hasFlexibleItems",null);_.T([_.g({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.N("design:type",Boolean)],V7.prototype,"hasItems",void 0);_.T([_.g(),_.N("design:type",Object)],V7.prototype,"topLevelIconsOnly",void 0);
_.T([_.Yh("topLevelIconsOnly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V7.prototype,"updateButtonOverrides",null);_.T([_.x("topLevelIconsOnly"),_.N("design:type",Object),_.N("design:paramtypes",[])],V7.prototype,"buttonOverrides",null);_.T([_.A2("#top-level-buttons-computed"),_.N("design:type",HTMLElement)],V7.prototype,"topLevelButtonsContainer",void 0);_.T([_.Xh(".top-level-buttons > *"),_.N("design:type",Array)],V7.prototype,"topLevelButtons",void 0);
_.T([_.A2("#flexible-item-buttons"),_.N("design:type",HTMLElement)],V7.prototype,"flexibleItemButtonsContainer",void 0);_.T([_.Xh("#flexible-item-buttons > *"),_.N("design:type",Array)],V7.prototype,"flexibleItemButtons",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V7.prototype,"iconButtonColorChanged",null);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V7.prototype,"setupFlexibleMenu",null);_.T([_.oi("topLevelIconsOnly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V7.prototype,"resetFlexibleItems",null);_.T([_.Yh("tonalOverride"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V7.prototype,"tonalOverrideChanged",null);
_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V7.prototype,"onPopupOpened",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V7.prototype,"onPopupClosed",null);_.T([_.Le("yt-popup-canceled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V7.prototype,"onPopupCanceled",null);
_.O(V7,"ytd-menu-renderer",function(){if(Mrv===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);Mrv=X}X=Mrv;return X},{mode:2});var XvC;var HpQ;_.Pm=_.Z(function(X){var H=X.data;var l=function(){if(H().icon)a:{var U={iconName:H().icon};for(var K=_.jJ().resolve(_.rT),w=_.C([12,24]),d=w.next();!d.done;d=w.next()){var B=d.value;d=Object.assign({},U,{iconStyle:"youtube_fill",iconSize:B});B=Object.assign({},U,{iconStyle:"youtube_outline",iconSize:B});if(K.resolveIcon(d)){U=d;break a}if(K.resolveIcon(B)){U=B;break a}}U=void 0}else U=void 0;return U};
X={};var b={};return _.F("badge-shape",{class:_.Qr("yt-badge-shape",function(){return r6y(H().type)},(X["yt-badge-shape--overlay"]=function(){return H().isOverlay},X["yt-badge-shape--ads-include-dot"]=function(){return H().adsIncludeDot},X["yt-badge-shape--thumbnail-badge"]=function(){a:switch(H().type){case 17:case 18:case 19:var U=!0;
break a;default:U=!1}return U},X["yt-badge-shape--status-badge"]=function(){a:switch(H().type){case 12:case 13:case 14:case 15:case 16:var U=!0;
break a;default:U=!1}return U},X["yt-badge-shape--no-text"]=function(){return!H().text},X["yt-badge-shape--modern"]=function(){return H().modern||_.P("web_modern_badge_shape")},X["yt-badge-shape--typography"]=function(){a:{var U=H();
if(U.shouldInheritTypography)switch(U.type){case 0:case 1:case 9:U=!0;break a;default:U=!1}else U=!1}return!U},X)),
style:_.rC({"background-color":function(){var U;return(U=H().customColors)==null?void 0:U.backgroundColor}}),
role:function(){return H().accessibilityText?"img":void 0},
"aria-label":function(){return H().accessibilityText}},_.F(_.M,{cond:function(){return H().animation},
then:function(U){return _.F(_.Jx,{className:"yt-badge-shape__icon",data:U,animationName:function(){return U().animationConfig.name||""}})}}),_.F(_.M,{cond:function(){var U;
return l()&&!((U=H())==null?0:U.animation)},
then:function(){return _.F("div",{class:"yt-badge-shape__icon"},_.F(_.Kl,{data:function(){return l()}}))}}),_.F("div",{class:_.Qr("yt-badge-shape__text",(b["yt-badge-shape__text--clip-text-overflow"]=function(){return H().clipTextOverflow},b["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(H().numBadgesInRow||0)>1},b))},function(){var U;
return(U=H())==null?void 0:U.text}))},"Ea");
_.Pm.idomCompat=!0;_.gC(_.Pm,"badge-shape",{props:{data:_.zh}});var fV=function(){var X=_.a.apply(this,arguments)||this;X.systemIcons=_.P("kevlar_system_icons");X.animated=_.P("animated_live_badge_icon");X.useBadgeShape=_.P("web_badge_shape_defrag");return X};
_.S(fV,_.a);_.R=fV.prototype;_.R.addTooltips=function(){for(var X=_.mh(this.hostElement).querySelectorAll(".badge"),H=0,l;l=X[H++];){var b=this.repeatElement.itemForElement(l);l=_.mh(l);l.lastChild&&l.lastChild.is==="tp-yt-paper-tooltip"&&l.removeChild(l.lastChild);if(b=b.metadataBadgeRenderer&&b.metadataBadgeRenderer.tooltip){var U=_.Wr("tp-yt-paper-tooltip");(0,_.cM)(U).textContent=b;U.setAttribute("position","top");U.setAttribute("aria-hidden","true");l.appendChild(U)}}};
_.R.badgesChanged=function(){var X=this;_.ng().parkOrScheduleJob(function(){X.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.R.standaloneRoundedBadgeChanged=function(){var X=this.useRoundedBadge?this.useRoundedBadge:void 0;X&&(this.useRoundedBadge=X)};
_.R.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.R.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.R.computeStyle=function(X){_.P("kevlar_ytb_live_badges")&&X==="BADGE_STYLE_TYPE_LIVE_NOW"&&(X="badge-style-type-live-now-alternate");return X?X.toLowerCase().replace(/_/g,"-"):""};
_.R.computeRole=function(X){return this.computeAriaLabel(X)?"img":"status"};
_.R.computeAriaLabel=function(X){var H;return(X==null?void 0:(H=X.accessibilityData)==null?void 0:H.label)||(X==null?void 0:X.label)};
_.R.computeBadgeShape=function(X){if(X){var H,l;var b=c6h(X.style);var U=jtW(X.style),K=X.label,w=((H=X.accessibilityData)==null?void 0:H.label)||X.label;a:switch(X.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":H=!0;break a;default:H=!1}var d=(l=X.icon)==null?void 0:l.iconType;a:switch(X.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":X=!0;break a;default:X=!1}b={type:b,brNzRatingBadgeType:U,text:K,accessibilityText:w,
isOverlay:H,icon:d!=="PREMIUM"?d:void 0,modern:_.P("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:X}}else b={};return b};
_.R.updateComputedBadges=function(X,H,l){var b=this;(H=H?[H]:l?[l]:void 0)?this.computedBadges=H:this.computedBadges=X==null?void 0:X.filter(function(U){var K;if((K=U.metadataBadgeRenderer)==null?0:K.groups){K=!1;U=_.C(U.metadataBadgeRenderer.groups);for(var w=U.next();!w.done;w=U.next()){w=w.value;var d=void 0;K=K||((d=b.hiddenBadgeGroups)==null?void 0:d.includes(w))}return!K}return!0})};
_.R.useFilledIcons=function(X){return _.P("kevlar_system_icons")&&(X==="AUDIO_BADGE"||X==="CHECK_CIRCLE_THICK"||X==="OFFICIAL_ARTIST_BADGE"||X==="SPONSORSHIP_STAR"||X==="PERSON_RADAR_FILLED"||X==="PERSON_RADAR")};
_.R.computeBadgeShapeStyle=function(X){return this.useBadgeShape?X==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||X==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":X==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.R.computeIcon=function(X){var H,l;X=X==null?void 0:(H=X.metadataBadgeRenderer)==null?void 0:(l=H.icon)==null?void 0:l.iconType;if(X!=="PREMIUM"&&X)return _.jL(X)};
_.R.computeStandaloneBadge=function(X){var H;X=X==null?void 0:(H=X.icon)==null?void 0:H.iconType;return X==="PREMIUM_STANDALONE"||X==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
fV.prototype.hiddenBadgeGroupsChanged=fV.prototype.hiddenBadgeGroupsChanged;fV.prototype.standaloneBadgeChanged=fV.prototype.standaloneBadgeChanged;fV.prototype.standaloneRoundedBadgeChanged=fV.prototype.standaloneRoundedBadgeChanged;fV.prototype.badgesChanged=fV.prototype.badgesChanged;_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fV.prototype,"hidden",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],fV.prototype,"componentBehavior",void 0);
_.T([_.g(),_.N("design:type",Array)],fV.prototype,"badges",void 0);_.T([_.g(),_.N("design:type",Object)],fV.prototype,"topStandaloneBadge",void 0);_.T([_.g(),_.N("design:type",Object)],fV.prototype,"bottomStandaloneBadge",void 0);_.T([_.g(),_.N("design:type",Object)],fV.prototype,"computedBadges",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fV.prototype,"mediumFontAdBadge",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fV.prototype,"useRoundedBadge",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fV.prototype,"largeFontAdBadge",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fV.prototype,"overlayAd",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fV.prototype,"overlayPremium",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fV.prototype,"noDotAdBadge",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fV.prototype,"collectionTruncate",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fV.prototype,"isThumbnailBadge",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fV.prototype,"wrapBadges",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Number)],fV.prototype,"numBadgesInRow",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fV.prototype,"systemIcons",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fV.prototype,"animated",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fV.prototype,"useBadgeShape",void 0);_.T([_.g({value:[]}),_.N("design:type",Array)],fV.prototype,"hiddenBadgeGroups",void 0);_.T([_.A2("#repeat"),_.N("design:type",dT)],fV.prototype,"repeatElement",void 0);_.T([_.oi("badges"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fV.prototype,"badgesChanged",null);
_.T([_.oi("useRoundedBadge"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fV.prototype,"standaloneRoundedBadgeChanged",null);_.T([_.oi("topStandaloneBadge","bottomStandaloneBadge"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fV.prototype,"standaloneBadgeChanged",null);_.T([_.oi("hiddenBadgeGroups"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fV.prototype,"hiddenBadgeGroupsChanged",null);
_.T([_.sq({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],fV);
var l0H=_.mr()(fV,"ytd-badge-supported-renderer",function(){if(HpQ===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);HpQ=X}X=HpQ;return X},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:2});var pV=function(){var X=_.a.apply(this,arguments)||this;X.iconType="STAR";X.plaMedium=_.P("enable_pla_resizing_for_desktop_medium");X.plaLarge=_.P("enable_pla_resizing_for_desktop_large");X.plaExtraLarge=_.P("enable_pla_resizing_for_desktop_extra_large");X.standardizeIconSize=_.P("kevlar_system_icons");X.mediaHoverOverlayInitialVisibility=_.P("enable_top_landscape_image_button_command_web");X.noBottomMargin=!1;X.thumbnailObjectFit="CONTAIN";X.thumbnailFitHeight=!0;X.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return X};
_.S(pV,_.a);_.R=pV.prototype;_.R.created=function(){this.activeView=new Qx(this.hostElement)};
_.R.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"}}}};
_.R.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",pV.JSC$15095_DEFAULT_CLICK_LOCATION_BEHAVIOR,pV.JSC$15095_CLICK_LOCATION_ID_MAP))};
_.R.onTap=function(X){this.onTapOrClick(X)};
_.R.onTapOrClick=function(X){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,X,!1)};
_.R.updateMediaBackgroundImage=function(){var X=this.get("data.image.thumbnail.thumbnails");X&&(X=_.G0(X,0))&&_.j4(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+X+")"})};
_.R.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var X=0;X<this.data.impressionEndpoints.length;X++){var H=this.data.impressionEndpoints[X];H.clickTrackingParams&&delete H.clickTrackingParams;_.jJ().resolve(_.Vr).resolveCommand(H,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var l;((l=this.data)==null?0:l.activeView)&&TC(this.activeView,this.data.activeView)}};
_.R.handleMuteAd=function(){};
_.R.attached=function(){var X=this;_.P("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Nj(X.activeView)})};
_.R.detached=function(){_.P("stop_av_measurement_on_detach")&&Nj(this.activeView)};
_.ja.Object.defineProperties(pV.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.titleText)return"";var H;return _.XS("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((H=this.data)==null?void 0:H.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.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 X;return!((X=this.data)==null||!X.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"}}});
pV.prototype.onTap=pV.prototype.onTap;pV.prototype.dataChanged=pV.prototype.dataChanged;
pV.JSC$15095_CLICK_LOCATION_ID_MAP=_.P("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"]]);
pV.JSC$15095_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.P("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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pV.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],pV.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.uf),_.N("design:type",Object)],pV.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],pV.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.GC.YtSparklesClickLocationBehavior),_.N("design:type",Object)],pV.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.k([_.rh.YtActionHandlerBehavior]),_.N("design:type",Object)],pV.prototype,"actionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pV.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],pV.prototype,"clickCommand",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],pV.prototype,"miniMode",void 0);_.T([_.g(),_.N("design:type",String)],pV.prototype,"iconType",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pV.prototype,"plaMedium",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pV.prototype,"plaLarge",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pV.prototype,"plaExtraLarge",void 0);_.T([_.x("data.titleText"),_.N("design:type",String),_.N("design:paramtypes",[])],pV.prototype,"titleAriaLabel",null);_.T([_.x("data.rating"),_.N("design:type",Object),_.N("design:paramtypes",[])],pV.prototype,"getRating",null);_.T([_.x("data.price"),_.N("design:type",Object),_.N("design:paramtypes",[])],pV.prototype,"getPrice",null);
_.T([_.x("data.thirdLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],pV.prototype,"getThirdLine",null);_.T([_.x("data.fourthLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],pV.prototype,"getFourthLine",null);_.T([_.x("data.fifthLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],pV.prototype,"getFifthLine",null);_.T([_.x("getRating"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pV.prototype,"computeRatingHidden",null);
_.T([_.x("getPrice"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pV.prototype,"computePriceHidden",null);_.T([_.x("getThirdLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pV.prototype,"computeThirdLineHidden",null);_.T([_.x("getFourthLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pV.prototype,"computeFourthLineHidden",null);_.T([_.x("getFifthLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pV.prototype,"computeFifthLineHidden",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data.energyIcon"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pV.prototype,"hasEnergyIcon",null);_.T([_.x("computePriceHidden","computeRatingHidden"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pV.prototype,"computeSecondaryTextHidden",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pV.prototype,"standardizeIconSize",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pV.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pV.prototype,"noBottomMargin",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.layout"),_.N("design:type",String),_.N("design:paramtypes",[])],pV.prototype,"layout",null);_.T([_.x("data.layout"),_.N("design:type",Object),_.N("design:paramtypes",[])],pV.prototype,"mediaThumbnailWidth",null);
_.T([_.x("layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pV.prototype,"useRoundedBadge",null);_.T([_.g(),_.N("design:type",String)],pV.prototype,"thumbnailObjectFit",void 0);_.T([_.g(),_.N("design:type",Object)],pV.prototype,"thumbnailFitHeight",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pV.prototype,"dataChanged",null);
_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pV.prototype,"onTap",null);_.T([_.sq({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],pV);
_.O(pV,"ytd-display-ad-renderer",function(){if(XvC!==void 0)return XvC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return XvC=X},{mode:1});var oJq;var bpC;var UEG;var J68=new Map;var $E_=!1;var Sb=function(){var X=_.a.apply(this,arguments)||this;X.DEFAULT_TOOLTIP_OFFSET="10";X.TOOLTIP_OFFSET_NO_BANNER="-8";X.badges=null;X.noEndpoints=!1;X.wrapText=!1;X.forceVerified=!1;X.tooltipPosition="top";X.compactStyle=!1;X.height=0;X.lineHeight=0;return X};
_.S(Sb,_.a);_.R=Sb.prototype;_.R.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.R.attached=function(){var X=this;this.observer=new MutationObserver(function(H,l){X.handleResized();l.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.R.detached=function(){this.observer&&this.observer.disconnect()};
_.R.logTooltipEvent=function(){_.P("kevlar_wiz_tooltip_event_killswitch")||$E_||(_.L3b("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),$E_=!0)};
_.R.handleWindowResized=function(){this.handleResized()};
_.R.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")))};
_.R.onHeightChanged=function(){if(this.verified){var X=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.gx("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=X:this.textContainerEl.style.marginRight=X}};
_.R.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.gx("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.R.handleResized=function(){var X=this;this.verified&&_.Ss.addLowPriorityJob(function(){X.fitBackgroundToText();var H=getComputedStyle(X.hostElement).lineHeight;H&&(H=H.match(/\d+/))&&H.length&&(X.lineHeight=Number(H[0]));X.height=X.lineHeight&&!X.wrapText?X.lineHeight:X.textEl.offsetHeight})};
_.R.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var X=document.createRange(),H=_.mh(this.textEl).children;H.length>0?X.selectNodeContents(H[0]):X.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(X.getBoundingClientRect().width)+"px"}};
_.R.computeChannelBadgeStyle=function(X){var H;if((X==null?0:(H=X.runs)==null?0:H.length)&&X.runs[0].textColor)return"--ytd-badge-icon-color:"+_.BM(X.runs[0].textColor)+";"};
_.ja.Object.defineProperties(Sb.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"?_.xM(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var X=this.get("badges.0.metadataBadgeRenderer.tooltip");if(X)return X}return _.D8(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
Sb.prototype.onLineHeightChanged=Sb.prototype.onLineHeightChanged;Sb.prototype.onHeightChanged=Sb.prototype.onHeightChanged;Sb.prototype.onChannelNameChanged=Sb.prototype.onChannelNameChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Sb.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Sb.prototype,"badges",void 0);_.T([_.g(),_.N("design:type",Object)],Sb.prototype,"channelName",void 0);
_.T([_.g(),_.N("design:type",Object)],Sb.prototype,"noEndpoints",void 0);_.T([_.g(),_.N("design:type",Object)],Sb.prototype,"wrapText",void 0);_.T([_.g(),_.N("design:type",Object)],Sb.prototype,"forceVerified",void 0);_.T([_.g(),_.N("design:type",Object)],Sb.prototype,"tooltipPosition",void 0);_.T([_.g(),_.N("design:type",String)],Sb.prototype,"tooltip",void 0);_.T([_.g(),_.N("design:type",Boolean)],Sb.prototype,"hasChannelArt",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Sb.prototype,"compactStyle",void 0);_.T([_.A2("#text-container"),_.N("design:type",HTMLElement)],Sb.prototype,"textContainerEl",void 0);_.T([_.A2("#text"),_.N("design:type",Object)],Sb.prototype,"textEl",void 0);_.T([_.A2("#verified-tooltip"),_.N("design:type",HTMLElement)],Sb.prototype,"verifiedTooltip",void 0);_.T([_.g(),_.N("design:type",Object)],Sb.prototype,"height",void 0);
_.T([_.g(),_.N("design:type",Object)],Sb.prototype,"lineHeight",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("badges","forceVerified"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Sb.prototype,"verified",null);_.T([_.x("badges","verified"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Sb.prototype,"hideBadges",null);_.T([_.x("channelName"),_.N("design:type",Object),_.N("design:paramtypes",[])],Sb.prototype,"formattedName",null);
_.T([_.x("badges","verified","formattedName"),_.N("design:type",String),_.N("design:paramtypes",[])],Sb.prototype,"tooltipText",null);_.T([_.x("hasChannelArt"),_.N("design:type",String),_.N("design:paramtypes",[])],Sb.prototype,"tooltipOffset",null);_.T([_.Yh("channelName"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sb.prototype,"onChannelNameChanged",null);
_.T([_.Yh("height"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sb.prototype,"onHeightChanged",null);_.T([_.Yh("lineHeight","height"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sb.prototype,"onLineHeightChanged",null);_.T([_.sq({is:"ytd-channel-name",disableElementRegistration:!0})],Sb);
_.O(Sb,"ytd-channel-name",function(){if(UEG!==void 0)return UEG;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return UEG=X},{mode:2});var z4=function(){var X=_.a.apply(this,arguments)||this;X.standardizeIconSize=_.P("kevlar_system_icons");return X};
_.S(z4,_.a);z4.prototype.basicPaletteChanged=function(){var X;(X=this.data.color)!=null&&X.basicColorPaletteData&&_.Rq(this.hostElement,this.data.color.basicColorPaletteData)};
z4.prototype.useFilledIcons=function(X){return _.P("kevlar_system_icons")&&(X==="CHECK_CIRCLE_THICK"||X==="OFFICIAL_ARTIST_BADGE")};
_.ja.Object.defineProperties(z4.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return this.data.authorCreator||((X=this.data)==null?void 0:(H=X.color)==null?void 0:(l=H.basicColorPaletteData)==null?void 0:l.backgroundColor)}}});
z4.prototype.basicPaletteChanged=z4.prototype.basicPaletteChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],z4.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],z4.prototype,"standardizeIconSize",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.authorUnifiedVerified"),_.N("design:type",Object),_.N("design:paramtypes",[])],z4.prototype,"verified",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],z4.prototype,"creator",null);_.T([_.Yh("data.color.basicColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],z4.prototype,"basicPaletteChanged",null);_.T([_.sq({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],z4);
_.O(z4,"ytd-author-comment-badge-renderer",function(){if(bpC!==void 0)return bpC;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return bpC=X},{mode:1});var KtF;var nV=function(){return _.a.apply(this,arguments)||this};
_.S(nV,_.a);nV.prototype.computeThumbnailWidth=function(X){if(X==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],nV.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],nV.prototype,"data",void 0);_.T([_.g({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],nV.prototype,"icon",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],nV.prototype,"surface",void 0);
_.T([_.g({reflectToAttribute:!0,value:_.P("enable_shrink_image_size_on_web_posts_singleton")}),_.N("design:type",Boolean)],nV.prototype,"searchSxsUx",void 0);_.T([_.g({reflectToAttribute:!0,value:_.P("enable_community_page_on_desktop")}),_.N("design:type",Boolean)],nV.prototype,"useSmallerPostImageAttachments",void 0);_.T([_.sq({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],nV);
_.O(nV,"ytd-backstage-image-renderer",function(){if(KtF!==void 0)return KtF;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return KtF=X},{mode:1});var RS_;var kX=function(){var X=_.a.apply(this,arguments)||this;X.isLoading=!1;X.selectedItemIndex=-1;return X};
_.S(kX,_.a);_.R=kX.prototype;_.R.computeIsChannelOwner=function(X){if(!X)return!0;X=X[0];return!(X&&(X.signinEndpoint||X.selectServiceEndpoint))};
_.R.computeIsImagePoll=function(X){return(X==null?void 0:X.type)==="POLL_TYPE_IMAGE"};
_.R.computeIsTotalVotesDisabled=function(X){return!(X==null?0:X.totalVotes)};
_.R.thumbnailSrc=function(X){var H,l,b,U;return(X==null?0:(H=X.thumbnails)==null?0:(l=H[0])==null?0:l.url)?_.Yn((b=X.thumbnails)==null?void 0:(U=b[0])==null?void 0:U.url):void 0};
_.R.progressWidth=function(X){return"width:"+(X?X*100:0)+"%;"};
_.R.textAreaWidth=function(X){return this.isImagePoll?null:"width:"+(X?X*100:0)+"%;"};
_.R.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.R.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var X=this.data.choices,H=0;H<X.length;H++)if(X[H].selected){this.selectedItemIndex=H;break}};
_.R.onPopupClosed=function(X,H){X=Number(this.pollVotes.selected);H.confirmed&&(this.selectChoice(X,!1),_.TP(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.R.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.R.onYtCommentPollRevert=function(X,H){H&&(this.selectChoice(H.selectedChoiceIndex,!0),this.set("data.totalVotes",H.totalVotes))};
_.R.onYtServiceRequestSent=function(X,H){if(H.actions)for(X=0;X<H.actions.length;X++){var l=H.actions[X];_.f(l,oc)&&this.set("data.totalVotes",_.f(l,oc).totalVotes)}};
_.R.onYtServiceRequestCompleted=function(X){var H=this.get("detail.data.actionResults.0.feedback",X);X=this.get("detail.data.actionResults.0.status",X);if(H==="FEEDBACK_DESELECT"||H==="FEEDBACK_SELECT")this.isLoading=!1,X==="STATUS_FAILED"?_.QX(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.R.getEndpoint=function(X,H){return H===X?this.data.choices[H].deselectServiceEndpoint||null:this.data.choices[X].selectServiceEndpoint||null};
_.R.selectChoice=function(X,H){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var l=0;l<this.data.choices.length;l++){var b;if(X===this.selectedItemIndex){var U=!1;var K=b=null}else b=(U=l===X)?this.data.choices[l].voteRatioIfSelected:this.data.choices[l].voteRatioIfNotSelected,K=U?this.data.choices[l].votePercentageIfSelected:this.data.choices[l].votePercentageIfNotSelected;this.set("data.choices."+l+".voteRatio",b);
this.set("data.choices."+l+".votePercentage",K);this.set("data.choices."+l+".selected",U)}H||(this.isLoading=!0,(H=this.getEndpoint(X,this.selectedItemIndex))&&_.jJ().resolve(_.Vr).resolveCommand(H,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===X?-1:X};
_.ja.Object.defineProperties(kX.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
kX.prototype.onYtServiceRequestCompleted=kX.prototype.onYtServiceRequestCompleted;kX.prototype.onYtServiceRequestSent=kX.prototype.onYtServiceRequestSent;kX.prototype.onYtCommentPollRevert=kX.prototype.onYtCommentPollRevert;kX.prototype.onPopupClosed=kX.prototype.onPopupClosed;kX.prototype.dataChanged=kX.prototype.dataChanged;_.T([_.k(_.zU),_.N("design:type",Object)],kX.prototype,"paperItemBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],kX.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],kX.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],kX.prototype,"isLoading",void 0);_.T([_.g({computed:"computeIsChannelOwner(data.choices)"}),_.N("design:type",Boolean)],kX.prototype,"isChannelOwner",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.N("design:type",Boolean)],kX.prototype,"isImagePoll",void 0);_.T([_.g({computed:"computeIsTotalVotesDisabled(data)"}),_.N("design:type",Boolean)],kX.prototype,"isTotalVotesDisabled",void 0);_.T([_.g(),_.N("design:type",Object)],kX.prototype,"previousPollInfo",void 0);_.T([_.g(),_.N("design:type",Object)],kX.prototype,"selectedItemIndex",void 0);_.T([_.A2("#poll-votes"),_.N("design:type",Object)],kX.prototype,"pollVotes",void 0);
_.T([_.x("isChannelOwner"),_.N("design:type",Object),_.N("design:paramtypes",[])],kX.prototype,"endpointStyle",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kX.prototype,"dataChanged",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],kX.prototype,"onPopupClosed",null);
_.T([_.Le("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],kX.prototype,"onYtCommentPollRevert",null);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],kX.prototype,"onYtServiceRequestSent",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],kX.prototype,"onYtServiceRequestCompleted",null);_.T([_.sq({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],kX);
_.O(kX,"ytd-backstage-poll-renderer",function(){if(RS_!==void 0)return RS_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return RS_=X},{mode:2});var Ch6;var wvH={autoplay:!1,loop:!1},dEQ={simpleText:""},xX=function(){var X=_.a.apply(this,arguments)||this;X.isLoading=!1;X.usesPanelLockup=!1;X.selectedItemIndex=-1;X.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},wvH,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});X.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},wvH,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});X.correctnessAnimationProps=[];X.correctnessAnimationRefs=[];return X};
_.S(xX,_.a);_.R=xX.prototype;_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.R.computeIsChannelOwner=function(X){if(!X)return!0;X=X[0];return!(X&&(X.signinEndpoint||X.selectServiceEndpoint))};
_.R.computeIsTotalVotesDisabled=function(X){return!(X==null?0:X.totalVotes)};
_.R.computeIsImageQuiz=function(X){return(X==null?void 0:X.type)==="POLL_TYPE_IMAGE"};
_.R.onExplanationChanged=function(){this.expander.reset()};
_.R.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var X=this.data.choices;if(X){this.maybeInitializeQuizLotties(X);for(var H=0;H<X.length;H++)if(X[H].isSelected||this.isChannelOwner&&X[H].isCorrect){this.selectedItemIndex=H;return}this.selectedItemIndex=-1}}};
_.R.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var X=this.selectedItemIndex,H=Number(this.quizVotes.selected);this.selectChoice(H);this.sendVoteAction(H,X);this.quizVotes.selected=-1;var l;X=!((l=this.data)==null?0:l.enableAnimation);this.maybePlayAnswerAnimations(X)}};
_.R.onYtCommentPollRevert=function(X,H){H&&(this.selectChoice(H.selectedChoiceIndex),this.set("data.totalVotes",H.totalVotes))};
_.R.onYtServiceRequestSent=function(X,H){if(H.actions)for(X=_.C(H.actions),H=X.next();!H.done;H=X.next())(H=_.f(H.value,oc))&&this.set("data.totalVotes",H.totalVotes)};
_.R.onYtServiceRequestCompleted=function(X){var H=this.get("detail.data.actionResults.0.feedback",X);X=this.get("detail.data.actionResults.0.status",X);if(H==="FEEDBACK_DESELECT"||H==="FEEDBACK_SELECT")this.isLoading=!1,X==="STATUS_FAILED"?_.QX(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.R.getAnimationPropsForChoiceIndex=function(X,H){return H[X]};
_.R.maybePlayAnswerAnimations=function(X){X=X===void 0?!1:X;var H;if((H=this.data)!=null&&H.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){H=_.C(this.correctnessAnimationRefs);for(var l=H.next();!l.done;l=H.next()){var b=void 0,U=void 0;(b=l.value)==null||(U=b.lottieEl)==null||U.stop()}if(!(this.selectedItemIndex<0)){H=0;X&&(H=this.isCorrect?37:25);var K,w;(K=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(w=K.lottieEl)==null||w.goToAndPlay(X?H:0,!0);if(!(this.isCorrect||
(K=this.data.choices.findIndex(function(u){return u.isCorrect}),K<0))){var d,B;
(B=(d=this.correctnessAnimationRefs[K])==null?void 0:d.lottieEl)==null||B.goToAndPlay(37,!0);var q;d=(q=this.fadeContainers)==null?void 0:q.item(K);!X&&d&&this.fadeIn(d)}}}};
_.R.thumbnailSrc=function(X){var H,l,b,U;return(X==null?0:(H=X.thumbnails)==null?0:(l=H[0])==null?0:l.url)?_.Yn((b=X.thumbnails)==null?void 0:(U=b[0])==null?void 0:U.url):void 0};
_.R.a11yVotedText=function(X,H){var l,b,U=((l=this.data)==null?void 0:(b=l.correctVotedText)==null?void 0:b.simpleText)||"",K,w;l=((K=this.data)==null?void 0:(w=K.votedText)==null?void 0:w.simpleText)||"";if(!H)return"";var d,B;if((d=this.data)==null?0:(B=d.choices)==null?0:B[X].isCorrect)return U;var q,u;return((q=this.data)==null?0:(u=q.choices)==null?0:u[X].isSelected)?l:""};
_.R.getEndpoint=function(X,H){return H===X?this.data.choices[X].deselectServiceEndpoint||null:this.data.choices[X].selectServiceEndpoint||null};
_.R.sendVoteAction=function(X,H){if(X=this.getEndpoint(X,H))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(X)};
_.R.selectChoice=function(X){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var H=0;H<this.data.choices.length;H++)this.set("data.choices."+H+".isSelected",X===this.selectedItemIndex?!1:H===X);this.selectedItemIndex=this.selectedItemIndex===X?-1:X};
_.R.maybeInitializeQuizLotties=function(X){var H=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=X.map(function(l){return{animationConfig:l.isCorrect?H.baseCorrectLottiePlayerAnimationConfig:H.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){H.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(l){return l.animationRef||{}})};
_.R.fadeIn=function(X){X.classList.add("fade-in");_.v5(_.Ss,function(){X.classList.remove("fade-in")},900)};
_.ja.Object.defineProperties(xX.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.P("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.D8(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 X,H;return((X=this.data)==null?void 0:(H=X.choices)==null?void 0:H.some(function(l){return l.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null||!X.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?dEQ:this.data.choices[this.selectedItemIndex].explanation||dEQ}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null||!X.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
xX.prototype.onYtServiceRequestCompleted=xX.prototype.onYtServiceRequestCompleted;xX.prototype.onYtServiceRequestSent=xX.prototype.onYtServiceRequestSent;xX.prototype.onYtCommentPollRevert=xX.prototype.onYtCommentPollRevert;xX.prototype.dataChanged=xX.prototype.dataChanged;xX.prototype.onExplanationChanged=xX.prototype.onExplanationChanged;_.T([_.k(_.zU),_.N("design:type",Object)],xX.prototype,"paperItemBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],xX.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.tx.YtTaskEmitterBehavior),_.N("design:type",Object)],xX.prototype,"ytTaskEmitterBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],xX.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xX.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],xX.prototype,"isLoading",void 0);_.T([_.g(),_.N("design:type",Object)],xX.prototype,"usesPanelLockup",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.N("design:type",Boolean)],xX.prototype,"isChannelOwner",void 0);_.T([_.g({computed:"computeIsTotalVotesDisabled(data)"}),_.N("design:type",Boolean)],xX.prototype,"isTotalVotesDisabled",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.N("design:type",Boolean)],xX.prototype,"isImageQuiz",void 0);_.T([_.g(),_.N("design:type",Object)],xX.prototype,"previousQuizInfo",void 0);_.T([_.g(),_.N("design:type",Object)],xX.prototype,"selectedItemIndex",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data","usesPanelLockup"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xX.prototype,"shouldUseModernUi",null);
_.T([_.Xh(".fade-container"),_.N("design:type",Object)],xX.prototype,"fadeContainers",void 0);_.T([_.g(),_.N("design:type",Array)],xX.prototype,"correctnessAnimationProps",void 0);_.T([_.x("explanation","showCorrectAnswer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xX.prototype,"showExplanation",null);_.T([_.x("isChannelOwner","isAttempted"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xX.prototype,"showCorrectAnswer",null);
_.T([_.x("isChannelOwner","isAttempted","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xX.prototype,"isQuizAnsweringDisabled",null);_.T([_.x("isQuizAnsweringDisabled"),_.N("design:type",Object),_.N("design:paramtypes",[])],xX.prototype,"endpointStyle",null);_.T([_.x("data","selectedItemIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xX.prototype,"isAttempted",null);
_.T([_.x("data","selectedItemIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],xX.prototype,"explanation",null);_.T([_.x("data","selectedItemIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xX.prototype,"isCorrect",null);_.T([_.A2("ytd-expander"),_.N("design:type",Object)],xX.prototype,"expander",void 0);_.T([_.A2("#quiz-votes"),_.N("design:type",Object)],xX.prototype,"quizVotes",void 0);
_.T([_.Yh("explanation"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xX.prototype,"onExplanationChanged",null);_.T([_.Yh("data","isChannelOwner"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xX.prototype,"dataChanged",null);_.T([_.Le("yt-comment-quiz-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],xX.prototype,"onYtCommentPollRevert",null);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],xX.prototype,"onYtServiceRequestSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],xX.prototype,"onYtServiceRequestCompleted",null);_.T([_.sq({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],xX);
_.O(xX,"ytd-backstage-quiz-renderer",function(){if(Ch6!==void 0)return Ch6;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Ch6=X},{mode:1});var hS6;var Dm=function(){return _.a.apply(this,arguments)||this};
_.S(Dm,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Dm.prototype,"data",void 0);_.T([_.sq({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],Dm);
_.O(Dm,"ytd-post-uploaded-video-renderer",function(){if(hS6!==void 0)return hS6;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return hS6=X},{mode:1});var FtH;var tT=function(){return _.a.apply(this,arguments)||this};
_.S(tT,_.a);tT.prototype.useFilledIcons=function(X){return X==="SPONSORSHIP_STAR"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],tT.prototype,"data",void 0);_.T([_.sq({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],tT);
var Bp_=_.mr()(tT,"ytd-sponsors-only-badge-renderer",function(){if(FtH===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);FtH=X}X=FtH;return X},{allowedProps:["data"],
mode:1});var qSG;var Wm=function(){return _.a.apply(this,arguments)||this};
_.S(Wm,_.a);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Wm.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Wm.prototype,"data",void 0);_.T([_.sq({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Wm);
_.O(Wm,"ytd-child-video-renderer",function(){if(qSG!==void 0)return qSG;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return qSG=X},{mode:1});var szD;var M_G;var EI=function(){var X=_.a.apply(this,arguments)||this;X.size=0;X.fallbackImageSize={height:void 0,width:9999};X.webModernCollections=!1;return X};
_.S(EI,_.a);_.R=EI.prototype;_.R.computeBlurredImageSize=function(X){return X?{height:X*2,width:X*2}:this.fallbackImageSize};
_.R.computeImageSize=function(X){return X?{height:X,width:X}:this.fallbackImageSize};
_.R.computeObjectFit=function(X){return X?"FILL":"CONTAIN"};
_.R.computePreserve=function(X){return X?!0:!1};
_.R.setBackground=function(){var X,H;if((X=this.data)==null?0:(H=X.thumbnail)==null?0:H.sampledThumbnailColor)X=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+X.red+","+X.green+","+X.blue+",1)"};
EI.prototype.setBackground=EI.prototype.setBackground;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],EI.prototype,"watchFeedThumbnail",void 0);_.T([_.g(),_.N("design:type",Object)],EI.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],EI.prototype,"size",void 0);
_.T([_.g({computed:"computeBlurredImageSize(size)"}),_.N("design:type",Object)],EI.prototype,"blurredImageSize",void 0);_.T([_.g({computed:"computeImageSize(size)"}),_.N("design:type",Object)],EI.prototype,"imageSize",void 0);_.T([_.g({computed:"computePreserve(size)"}),_.N("design:type",String)],EI.prototype,"preserve",void 0);_.T([_.g({computed:"computeObjectFit(size)"}),_.N("design:type",String)],EI.prototype,"objectFit",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],EI.prototype,"webModernCollections",void 0);_.T([_.Yh("data.thumbnail.sampledThumbnailColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EI.prototype,"setBackground",null);_.T([_.sq({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],EI);
_.O(EI,"ytd-playlist-custom-thumbnail-renderer",function(){if(M_G!==void 0)return M_G;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return M_G=X},{mode:1});var uTQ;var g3=function(){return _.a.apply(this,arguments)||this};
_.S(g3,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],g3.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Number)],g3.prototype,"width",void 0);_.T([_.sq({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],g3);
_.O(g3,"ytd-playlist-video-thumbnail-renderer",function(){if(uTQ!==void 0)return uTQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return uTQ=X},{mode:1});var eS9;var G4=function(){return _.a.apply(this,arguments)||this};
_.S(G4,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],G4.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Number)],G4.prototype,"width",void 0);_.T([_.sq({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],G4);
_.O(G4,"ytd-show-custom-thumbnail-renderer",function(){if(eS9!==void 0)return eS9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return eS9=X},{mode:1});var yXC;var a2=function(){return _.a.apply(this,arguments)||this};
_.S(a2,_.a);a2.prototype.useFilledIcons=function(X){return X==="MUSIC"||X==="COURSE"};
a2.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=si(this.overlayColor,"0.8");else if(this.overlayColor){var X=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+X.red+","+X.green+","+X.blue+",0.8)"}};
_.ja.Object.defineProperties(a2.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)}}});
a2.prototype.overlayColorChanged=a2.prototype.overlayColorChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],a2.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],a2.prototype,"overlayColor",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.icon","data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],a2.prototype,"overlayStyle",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data.icon","data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],a2.prototype,"overlayTextStyle",null);_.T([_.Yh("overlayColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a2.prototype,"overlayColorChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],a2);
_.O(a2,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(yXC!==void 0)return yXC;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return yXC=X},{mode:1});var V_Q;var Zm=function(){var X=_.a.apply(this,arguments)||this;X.active=!1;return X};
_.S(Zm,_.a);Zm.prototype.computeIsSpinnerHidden=function(X){return(X==null?void 0:X.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Zm.prototype.computeOverlayIcon=function(X){return(X==null?void 0:X.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(X==null?void 0:X.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Zm.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Zm.prototype,"active",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Zm);
_.O(Zm,"ytd-thumbnail-overlay-downloading-renderer",function(){if(V_Q!==void 0)return V_Q;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return V_Q=X},{mode:1});var Ph9;var i2=function(){return _.a.apply(this,arguments)||this};
_.S(i2,_.a);_.ja.Object.defineProperties(i2.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],i2.prototype,"data",void 0);_.T([_.x("data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],i2.prototype,"text",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],i2);
_.O(i2,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(Ph9!==void 0)return Ph9;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Ph9=X},{mode:1});var f0C,pvv=function(){if(f0C!==void 0)return f0C;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return f0C=X};var OI=function(){return _.a.apply(this,arguments)||this};
_.S(OI,_.a);_.ja.Object.defineProperties(OI,{template:{configurable:!0,enumerable:!0,get:function(){return pvv()}}});
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],OI.prototype,"animateEqualizer",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],OI);_.mr()(OI,"ytd-thumbnail-overlay-equalizer",function(){return pvv()},{allowedProps:["animateEqualizer"],
mode:1});var SSH;var mw=function(){var X=_.a.apply(this,arguments)||this;X.nowPlayingBadge=_.P("web_now_playing_badge");X.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return X};
_.S(mw,_.a);mw.prototype.activeChanged=function(){var X=this;_.P("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.N0(this,function(){_.QX(X.hostElement,"yt-playlist-lockup-now-playing-active",X)})};
mw.prototype.onMiniplayerPlayStateChanged=function(X){var H,l=(H=_.f(_.HW().currentEndpoint,_.ku))==null?void 0:H.videoId;this.isVideoPlaying=X&&(_.P("web_limit_now_playing_animation_killswitch")||this.videoId===l)};
mw.prototype.activeChanged=mw.prototype.activeChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],mw.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],mw.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],mw.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],mw.prototype,"isVideoPlaying",void 0);_.T([_.g(),_.N("design:type",String)],mw.prototype,"videoId",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],mw.prototype,"equalizerOnly",void 0);_.T([_.g(),_.N("design:type",Boolean)],mw.prototype,"isActive",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],mw.prototype,"nowPlayingBadge",void 0);_.T([_.Yh("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mw.prototype,"activeChanged",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],mw);
_.O(mw,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(SSH!==void 0)return SSH;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return SSH=X},{mode:1});var zSQ;var Q7=function(){return _.a.apply(this,arguments)||this};
_.S(Q7,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Q7.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Q7);
_.O(Q7,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(zSQ!==void 0)return zSQ;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return zSQ=X},{mode:2});var nJQ;var T4=function(){return _.a.apply(this,arguments)||this};
_.S(T4,_.a);T4.prototype.onDurationChanged=function(){var X,H;_.mh(this.hostElement).querySelector("#progress").style.width=((H=(X=this.data)==null?void 0:X.percentDurationWatched)!=null?H:0)+"%"};
T4.prototype.onDurationChanged=T4.prototype.onDurationChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],T4.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],T4.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],T4.prototype,"isLive",void 0);_.T([_.Yh("data.percentDurationWatched"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T4.prototype,"onDurationChanged",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],T4);
_.O(T4,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(nJQ!==void 0)return nJQ;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return nJQ=X},{mode:1});var kvC;var NP=function(){var X=_.a.apply(this,arguments)||this;X.bottomPanel=!1;X.richGridOverlay=!1;X.watchFeedOverlay=!1;X.isCompact=!1;return X};
_.S(NP,_.a);NP.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.ja.Object.defineProperties(NP.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:(H=X.icon)==null?void 0:H.iconType)==="PLAY_ALL"&&_.P("kevlar_system_icons")}}});
NP.prototype.widthChanged=NP.prototype.widthChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],NP.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Number)],NP.prototype,"width",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],NP.prototype,"bottomPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],NP.prototype,"richGridOverlay",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],NP.prototype,"watchFeedOverlay",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],NP.prototype,"isCompact",void 0);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],NP.prototype,"isIconFilled",null);_.T([_.Yh("width","watchFeedOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NP.prototype,"widthChanged",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],NP);
_.O(NP,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(kvC!==void 0)return kvC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return kvC=X},{mode:1});var xEG;var DEF=["CLIP","SHORTS"],cm=function(){var X=_.a.apply(this,arguments)||this;X.animated=_.P("animated_live_badge_icon");X.hasIcon=!1;X.updateTimerIntervalId=0;X.timeSinceLive=0;return X};
_.S(cm,_.a);_.R=cm.prototype;_.R.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.R.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.R.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.R.hasIconOrText=function(){var X,H;return!!(((X=this.data)==null?0:X.icon)||((H=this.data)==null?0:H.text))};
_.R.initializeLiveBadgeTimer=function(){var X=this,H,l=(H=this.liveBadgeData)==null?void 0:H.startTimestampSec;if(l&&this.canShowLiveBadgeTimer()){var b;H=Number((b=this.liveBadgeData)==null?void 0:b.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(l);this.updateTimerIntervalId=_.UZ(function(){X.canShowLiveBadgeTimer()?X.timeSinceLive++:(X.timeSinceLive=0,window.clearInterval(X.updateTimerIntervalId))},H)}else this.timeSinceLive=0};
_.R.canShowLiveBadgeTimer=function(){var X=Date.now(),H,l;return X<(Number((H=this.liveBadgeData)==null?void 0:H.endTimestampSec)-1)*1E3&&X>Number((l=this.liveBadgeData)==null?void 0:l.startTimestampSec)*1E3};
_.ja.Object.defineProperties(cm.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Y3k(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 X;return(X=this.data)==null?void 0:X.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 DEF.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
cm.prototype.initializeLiveBadgeTimer=cm.prototype.initializeLiveBadgeTimer;cm.prototype.dataChanged=cm.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],cm.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],cm.prototype,"data",void 0);_.T([_.g({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],cm.prototype,"icon",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],cm.prototype,"animated",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.N("design:type",Boolean)],cm.prototype,"hideTimeStatus",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],cm.prototype,"hasIcon",void 0);_.T([_.g(),_.N("design:type",Object)],cm.prototype,"timeSinceLive",void 0);_.T([_.x("data","timeSinceLive"),_.N("design:type",Object),_.N("design:paramtypes",[])],cm.prototype,"badgeShapeData",null);
_.T([_.x("data","overlayType"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cm.prototype,"hideBadgeShape",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cm.prototype,"dataChanged",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],cm.prototype,"overlayStyle",null);
_.T([_.x("data.liveBadgeData"),_.N("design:type",Object),_.N("design:paramtypes",[])],cm.prototype,"liveBadgeData",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.type"),_.N("design:type",Object),_.N("design:paramtypes",[])],cm.prototype,"overlayType",null);_.T([_.x("overlayType","overlayStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cm.prototype,"useFilledIcon",null);
_.T([_.oi("liveBadgeData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cm.prototype,"initializeLiveBadgeTimer",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],cm);
_.O(cm,"ytd-thumbnail-overlay-time-status-renderer",function(){if(xEG!==void 0)return xEG;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return xEG=X},{mode:2});var t_H;var jb=function(){return _.a.apply(this,arguments)||this};
_.S(jb,_.a);jb.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"}}}}};
jb.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(X){if(this.hasPlaybackProgressBar)return{percentDurationWatched:X.percentDurationWatched}};
jb.prototype.computeHasPlaybackProgressBar=function(X){return!!X.percentDurationWatched&&X.percentDurationWatched>0};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],jb.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.N("design:type",Boolean)],jb.prototype,"hasPlaybackProgressBar",void 0);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],jb);
_.O(jb,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(t_H!==void 0)return t_H;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return t_H=X},{mode:1});var Wtt;var EJC=_.Z(function(X){var H=X.data;var l=X.children;var b=function(){return!!H().doubleStack},U=function(){return!!H().includeStackHeight};
return _.F("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!H().experimentEnabled}},_.F(_.M,{cond:H,
then:function(){var K={};return _.F(_.Xi,null,_.F(_.M,{cond:U,then:function(){var w={};return _.F("div",{class:_.Qr("ytCollectionsStackSpacer",(w.ytCollectionsStackSpacerDoubleStack=b,w))})}}),_.F("div",{class:_.Qr((K.ytCollectionsStackRelativeStack=U,K))},_.F(_.M,{cond:b,
then:function(){var w={};return _.F("div",{class:_.Qr("ytCollectionsStackCollectionStack2",function(){return H().customClassName2ndStack},(w.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return H().enableResponsiveMode},w)),
style:_.rC({"background-color":function(){return A6Z(H())}})})}}),_.F("div",{class:_.Qr("ytCollectionsStackCollectionStack1",function(){return H().customClassName1stStack},function(){return IkN(H().thumbnailSize?H().thumbnailSize:"medium")}),
style:_.rC({"background-color":function(){return A6Z(H())}})}),l))}}))},"Fa");_.gC(EJC,"yt-collections-stack",{props:{data:_.zh}});var r3=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};X.webModernCollections=!1;X.isSearch=!1;X.isDoubleStack=!1;X.thumbnailSize="medium";return X};
_.S(r3,_.a);_.R=r3.prototype;
_.R.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]]"}}}}}};
_.R.getThumbnailDetails=function(X){if(X!=null&&X.thumbnailRenderer){var H=X.thumbnailRenderer,l;if((l=H.playlistVideoThumbnailRenderer)==null?0:l.thumbnail)return H.playlistVideoThumbnailRenderer.thumbnail;var b;if((b=H.playlistCustomThumbnailRenderer)==null?0:b.thumbnail)return H.playlistCustomThumbnailRenderer.thumbnail;X=X.thumbnailRenderer;var U;if((U=X.showCustomThumbnailRenderer)==null?0:U.thumbnail)return X.showCustomThumbnailRenderer.thumbnail}};
_.R.computeOverlayColor=function(X){var H,l;if((H=this.getThumbnailDetails(X))==null?0:(l=H.darkColorPalette)==null?0:l.section2Color)return this.getThumbnailDetails(X).darkColorPalette.section2Color;var b;return(b=this.getThumbnailDetails(X))==null?void 0:b.sampledThumbnailColor};
_.R.computeWebModernCollections=function(X){if(X==null||!X.thumbnailOverlays)return!1;X=_.C(X.thumbnailOverlays);for(var H=X.next();!H.done;H=X.next()){var l=void 0;if((l=H.value)==null?0:l.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.R.computeNavigationEndpoint=function(X){return tjl(X==null?void 0:X.navigationEndpoint)};
_.ja.Object.defineProperties(r3.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var X=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:X==null?void 0:X.sampledThumbnailColor,vibrantColorPalette:X==null?void 0:X.vibrantColorPalette,darkColorPalette:X==null?void 0:X.darkColorPalette,experimentEnabled:!0}}}});
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],r3.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(mmq),_.N("design:type",Object)],r3.prototype,"ytdThumbnailBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],r3.prototype,"componentBehavior",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],r3.prototype,"watchFeedThumbnail",void 0);_.T([_.g(),_.N("design:type",Number)],r3.prototype,"customThumbnailSize",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],r3.prototype,"hideAria",void 0);_.T([_.g(),_.N("design:type",Object)],r3.prototype,"data",void 0);_.T([_.g({computed:"computeOverlayColor(data)"}),_.N("design:type",Object)],r3.prototype,"overlayColor",void 0);
_.T([_.g({computed:"computeWebModernCollections(data)"}),_.N("design:type",Object)],r3.prototype,"webModernCollections",void 0);_.T([_.g({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],r3.prototype,"computedNavigationEndpoint",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],r3.prototype,"isSearch",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],r3.prototype,"isDoubleStack",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],r3.prototype,"thumbnailSize",void 0);_.T([_.x("data","isDoubleStack","thumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],r3.prototype,"collectionStack",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],r3);
_.O(r3,"ytd-playlist-thumbnail",function(){if(Wtt!==void 0)return Wtt;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Wtt=X},{mode:2});var gJ6;_.gC(_.Z(function(X){return _.F("yt-text-view-model",{class:_.Qr("ytTextViewModelHost")},_.F(_.Sj,{text:function(){return X.data().text}}))},"Ga"),"yt-text-view-model",{props:{data:_.zh}});var JT=function(){var X=_.a.apply(this,arguments)||this;X.noEndpoints=!1;X.amsterdamPostMvp=_.P("web_amsterdam_post_mvp_playlists");X.badges=[];X.transferState="TRANSFER_STATE_UNKNOWN";return X};
_.S(JT,_.a);_.R=JT.prototype;_.R.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.R.getMetadata=function(X){if(!X)return[];var H=[],l=X.shortViewCountText||X.viewCountText;l&&H.push(_.D8(l));X.publishedTimeText&&H.push(_.D8(X.publishedTimeText));X.upcomingEventData&&X.upcomingEventData.upcomingEventText&&H.push(_.CS(_.D8(X.upcomingEventData.upcomingEventText),Number(X.upcomingEventData.startTime)));return H};
_.R.observeDataForBylineSeparator=function(){this.data&&_.TW(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.R.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.BM(this.metadataColor)};
_.R.getSimpleString=function(X){return _.D8(X)};
_.R.isBylineHidden=function(X){return this.noByline||!((X==null?0:X.longBylineText)||(X==null?0:X.shortBylineText))};
_.R.isMetadataHidden=function(X){var H;return((H=this.getMetadata(X))==null?void 0:H.length)===0};
_.R.isBylineMetadataSeparatorHidden=function(X){return this.isMetadataHidden(X)||!this.shouldShowVideoInfo};
_.R.isLongByline=function(X,H){return H&&!(X==null||!X.longBylineText)};
_.ja.Object.defineProperties(JT.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var X;return this.amsterdamPostMvp&&!((X=this.data)==null||!X.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 X;return!((X=this.data)==null||!X.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.P("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
JT.prototype.metadataColorChanged=JT.prototype.metadataColorChanged;JT.prototype.observeDataForBylineSeparator=JT.prototype.observeDataForBylineSeparator;_.T([_.k(_.sv),_.N("design:type",Object)],JT.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],JT.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],JT.prototype,"noEndpoints",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],JT.prototype,"isSlimShort",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],JT.prototype,"radioMeta",void 0);_.T([_.g({selector:_.sm}),_.N("design:type",Object)],JT.prototype,"isGridViewEnabled",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],JT.prototype,"richMeta",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],JT.prototype,"amsterdamPostMvp",void 0);
_.T([_.g(),_.N("design:type",Boolean)],JT.prototype,"noByline",void 0);_.T([_.g({computed:"isLongByline(data, radioMeta)"}),_.N("design:type",Boolean)],JT.prototype,"longByline",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],JT.prototype,"truncateMetadataLine",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],JT.prototype,"miniMode",void 0);_.T([_.g(),_.N("design:type",Number)],JT.prototype,"metadataColor",void 0);
_.T([_.g(),_.N("design:type",Array)],JT.prototype,"badges",void 0);_.T([_.g({selector:_.e0,selectorArgs:["data.videoId"]}),_.N("design:type",String)],JT.prototype,"transferState",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],JT.prototype,"isDownloading",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],JT.prototype,"typographyBump",void 0);_.T([_.A2("#metadata-line"),_.N("design:type",HTMLElement)],JT.prototype,"metadataLine",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JT.prototype,"observeDataForBylineSeparator",null);_.T([_.Yh("metadataColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JT.prototype,"metadataColorChanged",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],JT.prototype,"shouldShowVideoInfo",null);
_.T([_.x("badges"),_.N("design:type",String),_.N("design:paramtypes",[])],JT.prototype,"inlineBadgeClass",null);_.T([_.x("longByline"),_.N("design:type",String),_.N("design:paramtypes",[])],JT.prototype,"longBylineClass",null);_.T([_.x("data","longByline"),_.N("design:type",Object),_.N("design:paramtypes",[])],JT.prototype,"bylineText",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],JT.prototype,"hasAttributedBylineText",null);
_.T([_.x("isGridViewEnabled","data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],JT.prototype,"watchFeedBigThumbs",null);_.T([_.sq({is:"ytd-video-meta-block",disableElementRegistration:!0})],JT);
_.O(JT,"ytd-video-meta-block",function(){if(gJ6!==void 0)return gJ6;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return gJ6=X},{mode:2});_.wd("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var LV=function(){var X=_.a.apply(this,arguments)||this;X.displayItemCount=2;X.isBackstagePlaylist=!1;X.isPostCompactPlaylist=!1;X.shouldShowChannelThumbnail=!1;return X};
_.S(LV,_.a);_.R=LV.prototype;_.R.computeFirstVideos=function(X,H){return X===void 0||H===void 0?[]:X.slice(0,H)};
_.R.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var X=this.data.thumbnailRenderer;X.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",X.playlistVideoThumbnailRenderer.thumbnail);X.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",X.playlistCustomThumbnailRenderer.thumbnail)}};
_.R.computeThumbnailHeight=function(X,H,l,b,U){return b?U==="BIG"?280:U==="MASSIVE"?337:234:l?240:H?72:X?118:138};
_.R.computeThumbnailWidth=function(X,H,l,b,U){return b?U==="MEDIUM"?450:U==="BIG"?500:U==="MASSIVE"?600:420:l?360:H?128:X?210:246};
_.R.computeUseBiggerThumbs=function(X){return X&&_.P("enable_desktop_search_bigger_thumbs")};
_.R.computeShouldShowChannelThumbnail=function(X,H){return X&&!(H==null||!H.channelThumbnail)};
_.ja.Object.defineProperties(LV.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
LV.prototype.dataChanged=LV.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],LV.prototype,"ytdLockupBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],LV.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],LV.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],LV.prototype,"displayItemCount",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],LV.prototype,"isBackstagePlaylist",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],LV.prototype,"isPostCompactPlaylist",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],LV.prototype,"isSearch",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.N("design:type",Boolean)],LV.prototype,"useBiggerThumbs",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.I0("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],LV.prototype,"biggerThumbsStyle",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],LV.prototype,"isDownloads",void 0);_.T([_.g({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.N("design:type",Object)],LV.prototype,"shouldShowChannelThumbnail",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LV.prototype,"dataChanged",null);
_.T([_.x("isSearch"),_.N("design:type",String),_.N("design:paramtypes",[])],LV.prototype,"stackThumbnailSize",null);_.T([_.sq({is:"ytd-playlist-renderer",disableElementRegistration:!0})],LV);
_.O(LV,"ytd-playlist-renderer",function(){if(szD===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);szD=X}X=szD;return X},{mode:1});var Gvq;var a0G;var YX=function(){var X=_.a.apply(this,arguments)||this;X.startX=0;return X};
_.S(YX,_.a);YX.prototype.onEndpointMouseDown=function(X){this.startX=X.clientX};
YX.prototype.onEndpointClick=function(X){this.startX!==X.clientX&&(X.preventDefault(),X.stopPropagation())};
YX.prototype.computeObjectFit=function(X){return X==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||X==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||X==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
YX.prototype.computeCardStyle=function(X){return X?X.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.ja.Object.defineProperties(YX.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:(H=X.searchRefinementCardRendererStyle)==null?void 0:H.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],YX.prototype,"data",void 0);_.T([_.g({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.N("design:type",Number)],YX.prototype,"objectFit",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.N("design:type",String)],YX.prototype,"cardStyle",void 0);
_.T([_.g({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],YX.prototype,"roundContainer",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],YX.prototype,"isAlbumCard",null);_.T([_.x("data","isAlbumCard"),_.N("design:type",Object),_.N("design:paramtypes",[])],YX.prototype,"collectionStack",null);_.T([_.sq({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],YX);
_.O(YX,"ytd-search-refinement-card-renderer",function(){if(a0G!==void 0)return a0G;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return a0G=X},{mode:1});var Zp_;var I2=function(){var X=_.a.apply(this,arguments)||this;X.isRichGrid=!1;return X};
_.S(I2,_.a);_.T([_.g(),_.N("design:type",Object)],I2.prototype,"data",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],I2.prototype,"componentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],I2.prototype,"ytdReduxBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],I2.prototype,"isRichGrid",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],I2.prototype,"miniMode",void 0);
_.T([_.sq({is:"ytd-game-details-renderer",disableElementRegistration:!0})],I2);
_.O(I2,"ytd-game-details-renderer",function(){if(Zp_!==void 0)return Zp_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Zp_=X},{mode:1});var ipt;var vJ_;var AT=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return X};
_.S(AT,_.a);_.R=AT.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.currentStateData=function(X){var H=X||this.data;return H&&H.states&&H.currentStateId!=null?H.states.find(function(l){return l.stateId===H.currentStateId})||null:null};
_.R.currentStateRendererData=function(X){return(X=this.currentStateData(X))&&X.state&&X.state.buttonRenderer?X.state.buttonRenderer:null};
_.R.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())};
_.R.computeButtonIcon=function(X){X=this.currentStateRendererData(X);var H;return(X==null?0:(H=X.icon)==null?0:H.iconType)?X.icon.iconType.toLowerCase():null};
_.R.computeAccessibility=function(X){return(X=this.currentStateRendererData(X))&&X.accessibilityData?X.accessibilityData.accessibilityData||null:null};
_.R.computeButtonClass=function(X){var H=this.currentStateRendererData(X);if(!H)return"";X="";var l=H.style;l&&(X+=l.toLowerCase().replace(/_/g,"-")+" ");(H=H.size)&&(X+=H.toLowerCase().replace(/_/g,"-")+" ");return X.trim()};
_.R.computeServiceEndpoint=function(X){if(!X)return null;var H=X&&X.serviceEndpoint,l=this.get("command.commandMetadata.webCommandMetadata.sendPost",X);return H?H:l&&X.command?X.command:null};
_.R.computeBellMenuItemParams=function(X){var H;X=(H=_.f(X==null?void 0:X.command,_.J$))==null?void 0:H.commands;if(!X||X.length===0)return null;H=_.f(X[0],_.by);var l,b;return(H==null?0:(l=H.popup)==null?0:(b=l.menuPopupRenderer)==null?0:b.items)?H.popup.menuPopupRenderer.items.map(function(U){return U.menuServiceItemRenderer.trackingParams}):null};
_.R.handleBellMenuOpenSelectedAction=function(X){var H=X.trackingParams,l=this.computeBellMenuItemParams(this.data);this.data&&H&&l&&l.includes(H)&&this.ytRenderButtonBehavior._setButtonIcon(X.icon.iconType.toLowerCase())};
_.R.onYtServiceRequestCompleted=function(X,H){(X=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",H))&&this.set("data",X)};
_.R.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.R.resetState=function(){this.set("data.currentStateId",3)};
_.R.onYtButtonTapHandler=function(){if(this.data){var X=this.currentStateRendererData(this.data);X&&this.ytRendererBehavior.logExplicitClick(X)}};
AT.prototype.onYtServiceRequestError=AT.prototype.onYtServiceRequestError;AT.prototype.onYtServiceRequestCompleted=AT.prototype.onYtServiceRequestCompleted;AT.prototype.stateChanged=AT.prototype.stateChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],AT.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(HP.YtRenderButtonBehavior),_.N("design:type",Object)],AT.prototype,"ytRenderButtonBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],AT.prototype,"data",void 0);_.T([_.oi("data","data.currentStateId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AT.prototype,"stateChanged",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],AT.prototype,"onYtServiceRequestCompleted",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],AT.prototype,"onYtServiceRequestError",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],AT);
_.O(AT,"ytd-subscription-notification-toggle-button-renderer",function(){if(vJ_!==void 0)return vJ_;var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return vJ_=X},{mode:1});var Opv;var X4=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};X.tapHandler=function(){if(X.data){var H=X.currentStateRendererData();H&&X.ytRendererBehavior.logExplicitClick(H)}};
return X};
_.S(X4,_.a);_.R=X4.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.currentStateData=function(){var X=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(H){return H.stateId===X.data.currentStateId})||null:null};
_.R.currentStateRendererData=function(){var X=this.currentStateData();return X&&X.state&&X.state.buttonRenderer?X.state.buttonRenderer:null};
_.R.computeAccessibilityLabel=function(){var X,H,l;return(X=this.currentStateRendererData())==null?void 0:(H=X.accessibilityData)==null?void 0:(l=H.accessibilityData)==null?void 0:l.label};
_.R.computeBellMenuItemParams=function(){var X,H,l=(H=_.f((X=this.data)==null?void 0:X.command,_.J$))==null?void 0:H.commands;if(!l||l.length===0)return null;X=_.f(l[0],_.by);var b,U;return(X==null?0:(b=X.popup)==null?0:(U=b.menuPopupRenderer)==null?0:U.items)?X.popup.menuPopupRenderer.items.map(function(K){return K.menuServiceItemRenderer.trackingParams}):null};
_.R.handleBellMenuOpenSelectedAction=function(X){var H=X.trackingParams,l=this.computeBellMenuItemParams();if(this.data&&H&&l&&l.includes(H)&&(X==null||!X.isDisabled)){var b;((b=_.f(X.serviceEndpoint,_.Yu))==null?void 0:b.signal)!=="CLIENT_SIGNAL"&&(this.icon=X.icon.iconType)}};
_.R.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.R.onYtServiceRequestCompleted=function(X,H){if(X=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",H))this.icon=void 0,this.set("data",X)};
_.R.onYtServiceRequestError=function(){this.icon=void 0};
_.ja.Object.defineProperties(X4.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var X=this.data,H=this.textLabel,l=this.hostElement,b=this.computeAccessibilityLabel(),U=this.tapHandler,K=this.isOverlay?"overlay":"mono",w=(X==null?0:X.disableButton)?"disabled":"active";H=H?_.ha(H):void 0;return{style:K,type:"tonal",state:w,size:"M",focused:!1,formattedButtonText:H,iconPosition:"leading-trailing",onTap:Hpy(X,U,l),accessibilityLabel:b}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var X=this.currentStateRendererData(),H,l,b=(l=this.icon)!=null?l:X==null?void 0:(H=X.icon)==null?void 0:H.iconType;if(b)return _.jL(b)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(X=this.data)==null?void 0:(H=X.secondaryIcon)==null?void 0:H.iconType;if(l)return _.jL(l)}}});
X4.prototype.onYtServiceRequestError=X4.prototype.onYtServiceRequestError;X4.prototype.onYtServiceRequestCompleted=X4.prototype.onYtServiceRequestCompleted;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],X4.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],X4.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],X4.prototype,"textLabel",void 0);
_.T([_.g(),_.N("design:type",String)],X4.prototype,"icon",void 0);_.T([_.g(),_.N("design:type",Boolean)],X4.prototype,"isOverlay",void 0);_.T([_.x("data.*","textLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],X4.prototype,"computedButtonShape",null);_.T([_.x("data.*","icon"),_.N("design:type",Object),_.N("design:paramtypes",[])],X4.prototype,"computedIcon",null);_.T([_.x("computedIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],X4.prototype,"computedAnimateIcon",null);
_.T([_.x("data.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],X4.prototype,"computedSecondaryIcon",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],X4.prototype,"onYtServiceRequestCompleted",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X4.prototype,"onYtServiceRequestError",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],X4);_.O(X4,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Opv!==void 0)return Opv;var X=document.createElement("template");_.n(X,'\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 Opv=X},{mode:2});var mEG;_.gC(m2v,"yt-animated-action",{props:{backgroundLottieRef:_.zh,foregroundLottieRef:_.zh,wrapperClass:_.zh,disableAnimation:_.zh},unsafeExternallySettableAttributes:new Set(["key"])});var HU=function(){var X=_.a.apply(this,arguments)||this;X.animatedActionEnabled=_.P("web_animated_actions");X.foregroundLottieRef={};X.backgroundLottieRef={};X.forceIconOnly=!1;X.showTextWhileAnimating=!1;X.keyboardFocused=!1;X.isAnimating=!1;X.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return X};
_.S(HU,_.a);_.R=HU.prototype;_.R.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.R.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]]"}}}}}};
_.R.attached=function(){this.keyboardFocused=!1};
_.R.onYtServiceRequestSent=function(X,H){(this.get("endpoint.subscribeEndpoint",H)||this.get("endpoint.unsubscribeEndpoint",H))&&this.updateSubscriptionState(!this.subscribed)};
_.R.onYtServiceRequestCompleted=function(X,H){(X=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",H.data))&&this.bellButton&&(this.bellButton.data=X)};
_.R.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.j4(this.hostElement)};
_.R.onPlayerSubscribe=function(X){this.isCompactRed()||X!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.R.onPlayerUnsubscribe=function(X){this.isCompactRed()||X!==this.data.channelId||this.updateSubscriptionState(!1)};
_.R.handleUpdateSubscribeButtonAction=function(X){X=_.f(X,tfv);var H;X&&X.channelId===((H=this.data)==null?void 0:H.channelId)&&this.updateSubscriptionState(!!X.subscribed)};
_.R.computeButtonStyle=function(X){return this.get("style.styleType",X)||null};
_.R.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.R.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.R.updateSubscriptionState=function(X){if(X!==this.subscribed){this.set("data.subscribed",X);var H,l=(H=this.data)==null?void 0:H.subscribedEntityKey;l&&this.ytdReduxBehavior.dispatch(_.Us("subscriptionStateEntity",l,{key:l,subscribed:X}));this.isCompactRed()||_.QX(this.hostElement,"yt-subscription-changed",X);X||(_.TP(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!X),X&&this.hasBellButton&&this.startAnimation())}};
_.R.startAnimation=function(){var X=this;if(!this.isAnimating){var H=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var l;(l=this.backgroundLottieRef.lottieEl)==null||l.goToAndPlay(0);var b;(b=this.foregroundLottieRef.lottieEl)==null||b.goToAndPlay(0);_.Ss.addJob(function(){X.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Ss.addJob(function(){X.updateContainerToFitContent(!!X.subscribed,!0)},2,1500);
_.Ss.addJob(function(){X.isAnimating=!1},2,H)}};
_.R.maybeAnimateBellIcon=function(){var X=_.Q_(this.hostElement).querySelector("yt-animated-icon");if(X){var H;(H=X.animationRef.lottieEl)==null||H.goToAndPlay(0)}};
_.R.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.R.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.R.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var X;this.unsubscribedWidth=(X=this.subscribeButtonShape)==null?void 0:X.getBoundingClientRect().width}var H;this.subscribedWidth=(H=this.bellButton)==null?void 0:H.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.R.updateContainerToFitContent=function(X,H){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(X?(X=this.subscribedWidth,H=this.isAnimating&&!H,this.subscribedIconOnlyWidth===void 0||H||(X=this.subscribedIconOnlyWidth),this.hostElement.style.width=X+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.R.clearContainerSize=function(){this.hostElement.style.width=""};
_.R.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.R.maybeSetSubscribedButtonIconOnlyWidth=function(){var X=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var H;X.subscribedIconOnlyWidth=(H=X.bellButton)==null?void 0:H.getBoundingClientRect().width;requestAnimationFrame(function(){if(X.bellButton){var l;X.bellButton.textLabel=
(l=X.data)==null?void 0:l.subscribedButtonText}})})))};
_.ja.Object.defineProperties(HU.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 X;return(X=this.data)==null?void 0:X.subscribedButtonText}var H;return this.forceIconOnly?void 0:(H=this.data)==null?void 0:H.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var X,H,l=((X=this.data)==null?void 0:(H=X.timedAnimationData)==null?void 0:H.animationTiming)||[];return{uniqueId:"subscribe",timings:l,enabled:l.length>0&&!this.subscribed,experimentEnabled:l.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var X;return!this.subscribed&&((X=this.data)==null?void 0:X.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 X={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var H=X.renderer;var l=X.element;var b=X.subscribed;var U=X.commandController;var K=X.isOverlay;X=X.stopPropagation;var w=UEy(H,b);K&&(w.style="overlay");K=Object;var d=K.assign,B;a:switch((B=H.style)==null?void 0:B.styleType){case "COMPACT_GRAY":case "COMPACT_RED":B={size:"S"};break a;default:B={size:"M"}}var q=bpz(H,
b);var u=(u=b?H.subscribedButtonText:H.unsubscribedButtonText)?_.ha(u):void 0;return d.call(K,{},w,B,{focused:!1,toggled:b,accessibilityLabel:q,formattedButtonText:u,onTap:oJl(H,b,l,U,X)})}}}});
HU.prototype.onMouseDown=HU.prototype.onMouseDown;HU.prototype.onDataChanged=HU.prototype.onDataChanged;HU.prototype.observedSubscribed=HU.prototype.observedSubscribed;HU.prototype.onYtServiceRequestCompleted=HU.prototype.onYtServiceRequestCompleted;HU.prototype.onYtServiceRequestSent=HU.prototype.onYtServiceRequestSent;HU.prototype.maybeUpdateBellButtonText=HU.prototype.maybeUpdateBellButtonText;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],HU.prototype,"ytComponentBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],HU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],HU.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],HU.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],HU.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],HU.prototype,"data",void 0);
_.T([_.g({selectorArgs:["data.subscribedEntityKey"],selector:pH8}),_.N("design:type",Object)],HU.prototype,"subscriptionStateEntity",void 0);_.T([_.g({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.N("design:type",Boolean)],HU.prototype,"subscribed",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],HU.prototype,"branded",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],HU.prototype,"animatedActionEnabled",void 0);
_.T([_.g(),_.N("design:type",Object)],HU.prototype,"foregroundLottieRef",void 0);_.T([_.g(),_.N("design:type",Object)],HU.prototype,"backgroundLottieRef",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],HU.prototype,"overlayButton",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.N("design:type",Object)],HU.prototype,"buttonStyle",void 0);_.T([_.g(),_.N("design:type",Object)],HU.prototype,"forceIconOnly",void 0);
_.T([_.g(),_.N("design:type",Object)],HU.prototype,"showTextWhileAnimating",void 0);_.T([_.g({value:function(){return!!_.jJ().resolve(_.c$(_.aE))&&_.P("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.N("design:type",Boolean)],HU.prototype,"useKeyboardFocused",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],HU.prototype,"keyboardFocused",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],HU.prototype,"isAnimating",void 0);_.T([_.x("data.notificationPreferenceButton.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],HU.prototype,"hasBellButton",null);
_.T([_.Yh("subscribedButtonText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HU.prototype,"maybeUpdateBellButtonText",null);_.T([_.x("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],HU.prototype,"subscribedButtonText",null);_.T([_.x("data.timedAnimationData.animationTiming","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],HU.prototype,"smartimationSettings",null);
_.T([_.g({reflectToAttribute:!0}),_.x("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],HU.prototype,"subscribeButtonHidden",null);_.T([_.g({reflectToAttribute:!0}),_.x("subscribed","hasBellButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],HU.prototype,"subscribeButtonInvisible",null);
_.T([_.g({reflectToAttribute:!0}),_.x("subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],HU.prototype,"unsubscribeButtonHidden",null);_.T([_.A2("ytd-subscription-notification-toggle-button-renderer-next"),_.N("design:type",Object)],HU.prototype,"bellButton",void 0);_.T([_.A2("#subscribe-button-shape"),_.N("design:type",HTMLElement)],HU.prototype,"subscribeButtonShape",void 0);
_.T([_.x("overlayButton","subscribed","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],HU.prototype,"buttonShape",null);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],HU.prototype,"onYtServiceRequestSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],HU.prototype,"onYtServiceRequestCompleted",null);
_.T([_.Yh("subscribed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HU.prototype,"observedSubscribed",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HU.prototype,"onDataChanged",null);_.T([_.Le("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],HU.prototype,"onMouseDown",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],HU);
_.O(HU,"ytd-subscribe-button-renderer",function(){if(mEG!==void 0)return mEG;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return mEG=X},{mode:1});var lu=function(){var X=_.a.apply(this,arguments)||this;X.isRichGrid=!1;return X};
_.S(lu,_.a);lu.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],lu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],lu.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],lu.prototype,"isRichGrid",void 0);_.T([_.sq({is:"ytd-game-card-renderer",disableElementRegistration:!0})],lu);
_.O(lu,"ytd-game-card-renderer",function(){if(ipt!==void 0)return ipt;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ipt=X},{mode:1});var oX={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.P("defer_menus")&&!sWY?0:void 0,waitForSignal:"eocs"};var Qz6;var TpY;var bu=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return X};
_.S(bu,_.a);_.R=bu.prototype;_.R.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.R.onSeriesReminderStateEntityChange=function(){var X,H,l;((X=this.eventReminderStateEntity)==null?0:X.key)&&((H=this.seriesReminderStateEntity)==null?void 0:H.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((l=this.eventReminderStateEntity)==null?void 0:l.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Us("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.R.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.R.onYtServiceRequestError=function(){var X;this.updateReminderStateEntitiesFromButtonState((X=this.data)==null?void 0:X.currentState)};
_.R.handleUpdateUpcomingEventReminderButtonStateCommand=function(X){if(X=_.f(X,Wjz)){var H,l=(H=this.data)==null?void 0:H.targetId;l&&X.targetId===l&&_.fc(this.updateReminderStateEntitiesFromButtonState.bind(this,X.state))}};
_.R.getButtonStateFromReminderState=function(){var X;if(((X=this.seriesReminderStateEntity)==null?void 0:X.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var H;if(((H=this.eventReminderStateEntity)==null?void 0:H.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var l,b;if(((l=this.seriesReminderStateEntity)==null?void 0:l.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((b=this.eventReminderStateEntity)==
null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var U;return(U=this.data)==null?void 0:U.currentState};
_.R.updateReminderStateEntitiesFromButtonState=function(X){if(X){switch(X){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":X="UPCOMING_EVENT_REMINDER_STATE_NONE";var H="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":X="UPCOMING_EVENT_REMINDER_STATE_SINGLE";H="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":X="UPCOMING_EVENT_REMINDER_STATE_NONE";H="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var l;
((l=this.eventReminderStateEntity)==null?0:l.key)&&this.ytdReduxBehavior.dispatch(_.Us("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:X})));var b;((b=this.seriesReminderStateEntity)==null?0:b.key)&&this.ytdReduxBehavior.dispatch(_.Us("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:H})))}};
_.ja.Object.defineProperties(bu.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var X=this.getButtonStateFromReminderState(),H,l;if(X&&((H=this.data)==null?0:(l=H.states)==null?0:l.length))for(H=_.C(this.data.states),l=H.next();!l.done;l=H.next()){l=l.value;var b=void 0;if(((b=_.f(l,EWz))==null?void 0:b.state)===X)return _.f(l,EWz)}}}});
bu.prototype.onYtServiceRequestError=bu.prototype.onYtServiceRequestError;bu.prototype.onYtServiceRequestCompleted=bu.prototype.onYtServiceRequestCompleted;bu.prototype.onSeriesReminderStateEntityChange=bu.prototype.onSeriesReminderStateEntityChange;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],bu.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],bu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],bu.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],bu.prototype,"data",void 0);_.T([_.g({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:z9O}),_.N("design:type",Object)],bu.prototype,"eventReminderStateEntity",void 0);
_.T([_.g({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(X,H){return _.JY(X.entities,"sportsSeriesReminderStateEntity",H)}}),
_.N("design:type",Object)],bu.prototype,"seriesReminderStateEntity",void 0);_.T([_.x("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],bu.prototype,"currentButtonStateRenderer",null);_.T([_.Yh("seriesReminderStateEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bu.prototype,"onSeriesReminderStateEntityChange",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bu.prototype,"onYtServiceRequestCompleted",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bu.prototype,"onYtServiceRequestError",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],bu);
_.O(bu,"ytd-upcoming-event-reminder-button-renderer",function(){if(TpY!==void 0)return TpY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
return TpY=X},{mode:1});var Np9;var UV=function(){return _.a.apply(this,arguments)||this};
_.S(UV,_.a);UV.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.ja.Object.defineProperties(UV.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(_.P("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],UV.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],UV.prototype,"shelfDismissal",void 0);_.T([_.x("data.responseText"),_.N("design:type",Object),_.N("design:paramtypes",[])],UV.prototype,"text",null);
_.T([_.x("data.responseText"),_.N("design:type",Object),_.N("design:paramtypes",[])],UV.prototype,"textAriaLabel",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],UV);
_.O(UV,"ytd-notification-multi-action-renderer",function(){if(Np9!==void 0)return Np9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Np9=X},{mode:1});var cX_;var $G=function(){return _.a.apply(this,arguments)||this};
_.S($G,_.a);$G.prototype.ready=function(){var X=this;_.mh(this.hostElement).querySelector("#undo").addEventListener("tap",function(){X.onUndoTap()})};
$G.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.jJ().resolve(_.Vr).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$G.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],$G);
_.O($G,"ytd-notification-text-renderer",function(){if(cX_!==void 0)return cX_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return cX_=X},{mode:1});var jzz;var Kn=function(){var X=_.a.apply(this,arguments)||this;X.mouseOverDelayJobId=0;X.fadeInImageDelayJobId=0;X.startTimeMs=-1;X.loadingStartTimeMs=-1;X.loadingEndTimeMs=-1;X.hasVideoPreview=!1;return X};
_.S(Kn,_.a);_.R=Kn.prototype;_.R.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.R.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.R.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.R.showThumbnail=function(){var X=this;this.csn=_.Bi();_.MJ("fmth");_.Ss.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.v5(_.Ss,function(){X.loadingStartTimeMs=(0,_.Jl)();var H=_.mh(X.hostElement).querySelector("#thumbnail");H.complete?X.displayMouseOverImage():H.addEventListener("load",_.J2(X,X.displayMouseOverImage))},150):_.TW(_.mh(this.hostElement).querySelector("#play"),"show",!0)};
_.R.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.R.onTap=function(){this.removeVideoPreview()};
_.R.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var X=this.videoId,H=this.csn,l=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,b=this.startTimeMs,U=this.hasVideoPreview,K=_.$l(this.trackingParams),w={isMovingThumbnail:U};U&&b>0&&(l>0&&(w.movingThumbnailLoadingDurationMs=Math.round(l)),w.durationHoveredMs=Math.round((0,_.Jl)()-b));X&&(w.videoId=X);_.Di(H,K,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:w});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.R.removeVideoPreview=function(){_.Ss.cancelJob(this.mouseOverDelayJobId);_.Ss.cancelJob(this.fadeInImageDelayJobId);var X=_.mh(this.hostElement).querySelector("#thumbnail");_.TW(X,"fade-in",!1);X.removeEventListener("load",_.J2(this,this.displayMouseOverImage));X=_.mh(this.hostElement).querySelector("#play");_.TW(X,"fade-in",!1);_.TW(X,"show",!1)};
_.R.displayMouseOverImage=function(){var X=_.mh(this.hostElement).querySelector("#thumbnail"),H=_.mh(this.hostElement).querySelector("#play");this.isImageAvailable(X)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Jl)(),this.startTimeMs=(0,_.Jl)(),this.fadeInImageDelayJobId=_.v5(_.Ss,function(){_.TW(X,"fade-in",!0)},50)):_.TW(H,"fade-in",!0)};
_.R.computeThumbnail=function(X,H){var l;X&&X.movingThumbnailDetails&&X.movingThumbnailDetails.thumbnails&&H?l=_.G0(X.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):l=H?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(l)return _.Yn(l)};
_.R.isImageAvailable=function(X){return!(!X.src||X.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||X.naturalWidth===120)};
Kn.prototype.onTap=Kn.prototype.onTap;Kn.prototype.dataChanged=Kn.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Kn.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Kn.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Kn.prototype,"csn",void 0);_.T([_.g(),_.N("design:type",Object)],Kn.prototype,"trackingParams",void 0);
_.T([_.g(),_.N("design:type",String)],Kn.prototype,"videoId",void 0);_.T([_.g(),_.N("design:type",Boolean)],Kn.prototype,"isAttachedAndDataSet",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kn.prototype,"dataChanged",null);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kn.prototype,"onTap",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Kn);
_.O(Kn,"ytd-moving-thumbnail-renderer",function(){if(jzz!==void 0)return jzz;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return jzz=X},{mode:1});var rX_;_.Yq=function(X){this.hostElement=X;this.eventSink=null;this.eventList=[]};
_.Yq.prototype.shouldForward=function(){var X,H;return(H=(X=this.eventSink)==null?void 0:X.isConnected)!=null?H:document.body.contains(this.eventSink)};
_.Yq.prototype.start=function(X,H){this.eventSink&&this.stop();for(var l=0;l<X.length;l++)this.hostElement.addEventListener(X[l],_.J2(this,this.forwardEvent));var b;this.eventSink=(b=H.hostElement)!=null?b:H;this.eventList=X};
_.Yq.prototype.stop=function(){for(var X=0;X<this.eventList.length;X++)this.hostElement.removeEventListener(this.eventList[X],_.J2(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Yq.prototype.forwardEvent=function(X,H){this.shouldForward()&&(X.stopPropagation(),this.eventSink instanceof Element?_.QX(this.eventSink,X.type,H):_.x2(new _.qd("eventSink is not an element")))};_.RX={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Yq(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(X,H){this.forwarder_.start(X,H)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Cn=function(){return _.a.apply(this,arguments)||this};
_.S(Cn,_.a);_.R=Cn.prototype;_.R.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=_.gx("HTML_DIR")==="rtl"?"right":"left"};
_.R.dataChanged=function(){this.popupOpen=!1};
_.R.computeAriaLabel=function(X){return _.f(X,rPH).label};
_.R.onTap=function(X){X.stopPropagation();X.preventDefault();this.data.command&&_.jJ().resolve(_.Vr).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.R.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.R.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Cn.prototype.onPopupClosed=Cn.prototype.onPopupClosed;Cn.prototype.onPopupOpened=Cn.prototype.onPopupOpened;Cn.prototype.onTap=Cn.prototype.onTap;Cn.prototype.dataChanged=Cn.prototype.dataChanged;_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],Cn.prototype,"eventForwardingBehavior",void 0);_.T([_.k(_.C7),_.N("design:type",Object)],Cn.prototype,"ironButtonState",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Cn.prototype,"componentBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],Cn.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:-1}),_.N("design:type",Number)],Cn.prototype,"tabindex",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.N("design:type",Object)],Cn.prototype,"ariaLabel",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Cn.prototype,"disableTooltips",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Cn.prototype,"popupOpen",void 0);
_.T([_.g(),_.N("design:type",Element)],Cn.prototype,"eventSink",void 0);_.T([_.A2("#tooltip"),_.N("design:type",Object)],Cn.prototype,"tooltip",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"dataChanged",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Cn.prototype,"onTap",null);
_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"onPopupOpened",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"onPopupClosed",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Cn);
_.O(Cn,"ytd-thumbnail-overlay-button-renderer",function(){if(rX_!==void 0)return rX_;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return rX_=X},{mode:1});var JXD;var wF=function(){return _.a.apply(this,arguments)||this};
_.S(wF,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],wF.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],wF.prototype,"disableAnimation",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],wF.prototype,"rounded",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],wF.prototype,"transparentBackground",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],wF.prototype,"noPadding",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],wF);
_.O(wF,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(JXD!==void 0)return JXD;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return JXD=X},{mode:1});var LtG;var dF=function(){return _.a.apply(this,arguments)||this};
_.S(dF,_.a);dF.prototype.computeIconPosition=function(X){return this.get("iconPosition",X)||null};
dF.prototype.computeIconStyle=function(X){return this.get("iconStyle",X)||null};
dF.prototype.computeIsIconStyleFilled=function(X){if(!X)return!1;var H;return X.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((H=X.icon)==null?void 0:H.iconType)==="ERROR_BLACK"};
_.T([_.g(),_.N("design:type",Object)],dF.prototype,"data",void 0);_.T([_.g({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.N("design:type",Object)],dF.prototype,"iconPosition",void 0);_.T([_.g({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.N("design:type",Object)],dF.prototype,"iconStyle",void 0);_.T([_.g({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],dF.prototype,"iconStyleFilled",void 0);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],dF);
_.O(dF,"ytd-thumbnail-overlay-icon-renderer",function(){if(LtG!==void 0)return LtG;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return LtG=X},{mode:1});var YSY;var hk=function(){return _.a.apply(this,arguments)||this};
_.S(hk,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],hk.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hk.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],hk);
_.O(hk,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(YSY!==void 0)return YSY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return YSY=X},{mode:1});var I0q;var F4=function(){var X=_.a.apply(this,arguments)||this;X.isPreviewLoading=!1;return X};
_.S(F4,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],F4.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],F4.prototype,"isPreviewLoading",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],F4);
_.O(F4,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(I0q!==void 0)return I0q;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return I0q=X},{mode:1});var AXF;var BU=function(){return _.a.apply(this,arguments)||this};
_.S(BU,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],BU.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],BU);
_.O(BU,"ytd-thumbnail-overlay-pinking-renderer",function(){if(AXF!==void 0)return AXF;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return AXF=X},{mode:1});var Xyq;var qX=function(){var X=_.a.apply(this,arguments)||this;X.disableTooltips=!1;X.isLoading=!1;X.useExpandableTooltip=!1;X.toggled=!1;X.hovered=!1;X.mouseoverDelayJobId=0;X.toggleDelayJobId=0;X.expandAnimationDelayJobId=0;return X};
_.S(qX,_.a);_.R=qX.prototype;_.R.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");_.mh(this.hostElement).querySelector("#tooltip").position=_.gx("HTML_DIR")==="rtl"?"right":"left"};
_.R.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Ss.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Ss.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Ss.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.R.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Ss.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Ss.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Ss.cancelJob(this.expandAnimationDelayJobId)};
_.R.computeIcon=function(X,H,l){return(X=l?H:X)&&X.iconType?_.jL(X.iconType):void 0};
_.R.computeAriaLabel=function(X,H,l){return _.f(l?H:X,rPH).label};
_.R.computeTooltip=function(X,H,l){return l?H:X};
_.R.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.R.computeIconOnHover=function(X,H){if((X==null?0:X.iconType)&&!H)return _.jL(X.iconType)};
_.R.onTap=function(X){var H=this;X.stopPropagation();X.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(X=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(X),this.useExpandableTooltip&&(this.toggleDelayJobId=_.v5(_.Ss,function(){H.hovered=!1;H.data&&!H.data.toggledServiceEndpoint&&(H.expandAnimationDelayJobId=_.v5(_.Ss,function(){H.set("data.isToggled",
!1)},200))},2E3))};
_.R.onMouseenter=function(){var X=this;this.mouseoverDelayJobId=_.v5(_.Ss,function(){X.hovered=!0},300)};
_.R.onMouseleave=function(){_.Ss.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.R.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.R.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.R.onServiceRequestCompleted=function(X,H){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(H)||this.set("data.isToggled",!this.data.isToggled)};
_.R.serviceRequestWasSuccessful=function(X){return _.f(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.MI)?X.data.status==="STATUS_SUCCEEDED":!0};
qX.prototype.onServiceRequestCompleted=qX.prototype.onServiceRequestCompleted;qX.prototype.onPopupClosed=qX.prototype.onPopupClosed;qX.prototype.onPopupOpened=qX.prototype.onPopupOpened;qX.prototype.onMouseleave=qX.prototype.onMouseleave;qX.prototype.dataChanged=qX.prototype.dataChanged;_.T([_.k(_.C7),_.N("design:type",Object)],qX.prototype,"ironButtonState",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],qX.prototype,"ytComponentBehavior",void 0);
_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],qX.prototype,"ytEventForwardingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],qX.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.N("design:type",Object)],qX.prototype,"ariaLabel",void 0);_.T([_.g(),_.N("design:type",Object)],qX.prototype,"disableTooltips",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],qX.prototype,"popupOpen",void 0);_.T([_.g(),_.N("design:type",Object)],qX.prototype,"isLoading",void 0);_.T([_.g(),_.N("design:type",Element)],qX.prototype,"eventSink",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],qX.prototype,"useExpandableTooltip",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.N("design:type",Object)],qX.prototype,"toggled",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],qX.prototype,"hovered",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.N("design:type",Object)],qX.prototype,"iconOnHover",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qX.prototype,"dataChanged",null);
_.T([_.Le("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qX.prototype,"onMouseleave",null);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qX.prototype,"onPopupOpened",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qX.prototype,"onPopupClosed",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],qX.prototype,"onServiceRequestCompleted",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],qX);
_.O(qX,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(Xyq!==void 0)return Xyq;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Xyq=X},{mode:2});var HbD;var lXt=_.Z(function(X){var H=X.data;var l=X.thumbnailSize;var b=function(){return H().enableSegmentView};
return _.F("yt-thumbnail-overlay-progress-bar-view-model",{class:_.Qr("ytThumbnailOverlayProgressBarHost",function(){return $Ey(l==null?void 0:l())})},_.F(_.M,{cond:b,
then:function(){return _.F("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.F("div",{class:_.dj("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+H().startPercent+"%"}}),_.F("div",{class:_.dj("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+H().segmentDurationPercent+"%"}},_.F("div",{class:_.dj("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.F("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.F("div",null," ",function(){return H().segmentLabel})),_.F("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.F("div",{class:_.dj("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.F(_.M,{cond:function(){return!b()&&H().startPercent},
then:function(){var U={};return _.F("div",{class:_.dj("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(U.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.P("web_enable_modern_progress_bar_overlay"),U))},_.F("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+H().startPercent+"%"}}))}}))},"Ha");
lXt.idomCompat=!0;_.o_H=_.Z(function(X){var H=_.Jw(),l=_.Aa(function(U){var K,w,d;a:{var B=(K=X.data())==null?void 0:K.animationActivationTargetId;K=((w=X.data())==null?void 0:w.animationActivationEntityKey)||"";w=(d=X.data())==null?void 0:d.animationActivationEntitySelectorType;if(K&&B)switch(w){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":U=_.T0(U,K);d=_.jJ().resolve(_.c$(_.f9));B=!!(U&&U.videoId===B&&(d==null?0:d.isMiniplayerActive()));B={activated:B,playAnimation:B&&U.playerState==="PLAYER_STATE_PLAYING"};
break a}B=void 0}return B});
_.Wg(function(){var U;if((U=l())==null?0:U.activated){var K;if((K=l())==null?0:K.playAnimation){var w;(w=H.lottieEl)==null||w.goToAndPlay(0)}else{var d;(d=H.lottieEl)==null||d.goToAndStop(0)}}},"DbQiXd");
var b=function(){var U,K=!((U=l())==null||!U.activated);if(X.data()){U=X.data();var w=void 0;U.icon&&(w=_.kDW(U.icon),w=ZPZ(w));var d=void 0,B;if((B=U.backgroundColor)==null?0:B.lightTheme){var q;d={backgroundColor:si((q=U.backgroundColor)==null?void 0:q.lightTheme,"0.8")}}if(U.text||w||K){if(K&&U.lottieData&&H){q=U.lottieData;var u,e,y;B={animationConfig:{name:q.url,path:q.url,autoplay:(u=q.settings)==null?void 0:u.autoplay,loop:(y=(e=q.settings)==null?void 0:e.loop)!=null?y:!0},animationRef:H}}else B=
void 0;if(K)u=17;else b:switch(U.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":u=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":u=19;break b;default:u=17}K={type:u,text:K&&U.animatedText?U.animatedText:U.text,icon:w,customColors:d,animation:B}}else K=void 0}else K=void 0;return K};
return _.F("yt-thumbnail-badge-view-model",{class:_.Qr("ytThumbnailBadgeViewModelHost",X.class)},_.F(_.M,{cond:b,then:function(){return _.F(_.Pm,{data:function(){return b()}})}}))},"Ja");var bbz=_.Z(function(X){var H={},l={};return _.F("yt-thumbnail-bottom-overlay-view-model",{class:_.Qr("ytThumbnailBottomOverlayViewModelHost",(H.ytThumbnailBottomOverlayViewModelHostBackground=function(){return X.data().enableGradientBackground},H))},_.F(_.l4,{data:function(){return X.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(b){return _.F(lXt,{data:b.data,
thumbnailSize:X.thumbnailSize})}}),_.F("div",{class:_.Qr("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var b;
return Ktb((b=X.thumbnailSize)==null?void 0:b.call(X))},(l.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var b;
return(b=X.isClip)==null?void 0:b.call(X)},l.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var b;
return!_.P("web_enable_modern_progress_bar_overlay")&&((b=X.thumbnailSize)==null?void 0:b.call(X))==="small"},l))},_.F(_.l4,{data:function(){return X.data().badge}},{thumbnailBadgeViewModel:function(b){return _.F(_.o_H,{data:b.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.F(_.l4,{data:function(){return X.data().badges}},{thumbnailBadgeViewModel:function(b){return _.F(_.o_H,{data:b.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ka");
bbz.idomCompat=!0;_.gC(bbz,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.ta,thumbnailSize:_.ta,isClip:_.ta}});var sV=_.Z(function(X){var H=X.data;var l=X.className;X=X.alwaysShow;var b=_.ChL(),U={};return _.F("thumbnail-hover-overlay-view-model",{el:_.xl(_.Mh(function(){return H().rendererContext})),
class:_.Qr("ytThumbnailHoverOverlayViewModelHost",l,(U.ytThumbnailHoverOverlayViewModelHostForceHover=X,U)),"aria-label":function(){var K;return(K=_.f(H().rendererContext,_.RB))==null?void 0:K.label},
role:function(){return _.qh(H().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.qh(H().rendererContext)!==void 0?0:void 0},
"on:keypress":b},_.F("div",{class:_.Qr("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(H().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var K="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:K="ytThumbnailHoverOverlayViewModelStyleCover"}return K})},_.F(_.M,{cond:function(){return H().icon},
then:function(K){return _.F(_.Dp,{data:K,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.F(_.M,{cond:function(){return H().text},
then:function(K){return _.F(_.Sj,{text:K,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ma");
sV.idomCompat=!0;var U4F=_.Z(function(X){var H=X.data;return _.F(_.l4,{data:function(){return H==null?void 0:H().overlays}},{thumbnailHoverOverlayViewModel:sV})},"Na");
U4F.idomCompat=!0;var $4v={};var Koq=_.Z(function(X){var H=X.data;var l=X.image;var b=X.state;var U=X.iconType;var K=X.overlays;var w=X.isOverlay;var d=_.z7("div");X=_.C(_.FU(!0,void 0,"AA4e7b"));var B=X.next().value,q=X.next().value,u=function(){return!!H().onTap},e=_.Eq(U,"LIVE");
_.Wg(function(){var V=H();requestAnimationFrame(function(){if(d.value===null)var p=!0;else{var z=d.value;p=V.badgeText;var t=M_y(V.size);p in $4v?z=$4v[p]:(z=z.clientWidth,$4v[p]=z);(p=z>t)?d.value.style.display="none":d.value.style.visibility="visible"}q(p)})},"vNdN8b");
var y=function(){var V={};return V["yt-spec-avatar-shape__image"]=!0,V["yt-spec-avatar-shape__image--ads-app"]=H().type===1,V["yt-spec-avatar-shape__image--inscribed-square"]=H().type===2,V};
return _.F("yt-avatar-shape",null,_.F("div",{el:_.xl(eSZ(u,{keydown:function(V){if(V.key==="Enter"){var p;(p=V.currentTarget)==null||p.click()}},
click:function(V){var p,z;return void((z=(p=H()).onTap)==null?void 0:z.call(p,V))}})),
class:function(){var V={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},p=H();V=(V[p.clusterLayoutConfig?PhZ(p.clusterLayoutConfig):f0z(p.size)]=!0,V["yt-spec-avatar-shape__button--tappable"]=u(),V);(p=H().avatarButtonCustomClassName)&&(V[p]=!0);return _.dj(V)},
"aria-label":function(){return u()?H().accessibilityText:""},
role:function(){return u()?"button":void 0},
tabindex:function(){return u()?0:void 0}},_.F("div",{class:function(){var V,p=H(),z=b==null?void 0:b(),t=w==null?void 0:w(),W=!((V=p.decorations)==null||!V.includes(2)||p.size!=="medium"&&p.size!=="large"),G=p.size==="tiny"||p.size==="extra-small",r,Q,v,J,Y={};
V=(Y["yt-spec-avatar-shape--live-ring"]=!!(((r=p.decorations)==null?0:r.includes(0))&&SSO(p.size)),Y["yt-spec-avatar-shape--stories-watched"]=W&&!(z==null||!z.storiesWatched),Y["yt-spec-avatar-shape--stories-unwatched"]=W&&!(z==null?0:z.storiesWatched),Y["yt-spec-avatar-shape--background-border"]=zSN(p.decorations)&&!G,Y["yt-spec-avatar-shape--background-border-thin"]=zSN(p.decorations)&&G,Y["yt-spec-avatar-shape__on-select-border"]=!((Q=p.decorations)==null||!Q.includes(4)),Y["yt-spec-avatar-shape__white-border"]=
!((v=p.decorations)==null||!v.includes(5)),Y["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((J=p.decorations)==null?0:J.includes(5))&&G),Y["yt-spec-avatar-shape--is-overlay"]=!!t,Y);return _.dj(V)},
style:function(){a:{var V=H().clusterLayoutConfig;if(V){b:{var p=V.numAvatarsInCluster;var z=V.avatarIndex;if(z!==p-1){switch(V.clusterSize){case "small":V="32";break;case "medium":V="36";break;case "40":V="40";break;default:p=void 0;break b}p="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+V+"x"+V+"_avatars_"+p+"_index_"+z+".svg"}else p=void 0}if(p){p=_.rC({"-webkit-mask-image":"url("+p+")","mask-image":"url("+p+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}p=void 0}return p}},_.F("div",{class:function(){var V={};
var p=H();V=(V[p.clusterLayoutConfig?yXz(p.clusterLayoutConfig):V_N(p.size)]=!0,V["yt-spec-avatar-shape--no-margin"]=zSN(H().decorations),V["yt-spec-avatar-shape--square"]=H().type===2,V);return _.dj(V)}},_.F(_.Dp,{data:l,
alt:function(){return!u()&&H().accessibilityText?H().accessibilityText:""},
targetWidth:function(){return pvW(H().size)},
targetHeight:function(){return pvW(H().size)},
className:function(){return _.dj(y())}}),_.F(_.M,{cond:function(){var V;
return((V=H().decorations)==null?void 0:V.includes(0))&&SSO(H().size)},
then:function(){return _.F("div",{class:function(){var V={};V=(V["yt-spec-avatar-shape__live-badge"]=!0,V["yt-spec-avatar-shape__live-badge--badge-small"]=H().size==="small",V["yt-spec-avatar-shape__live-badge--badge-medium"]=H().size==="medium"||H().size==="48",V["yt-spec-avatar-shape__live-badge--badge-large"]=H().size==="large",V["yt-spec-avatar-shape__live-badge--badge-extra-large"]=H().size==="extra-large"||H().size==="extra-extra-large"||H().size==="giant",V);return _.dj(V)}},_.F(_.M,{cond:function(){return H().badgeText},
then:function(V){return _.F("div",{class:"yt-spec-avatar-shape__badge-text",el:d},V)}}),_.F(_.M,{cond:B,
then:function(){return _.F("div",{class:"yt-spec-avatar-shape__badge-icon"},_.F(_.Ja,{icon:e,size:function(){a:switch(H().size){case "extra-large":var V=16;break a;default:V=13}return V}}))}}))}}),_.F(_.M,{cond:function(){var V,p;
return((V=H().decorations)==null?void 0:V.includes(1))||((p=H().decorations)==null?void 0:p.includes(0))&&!SSO(H().size)},
then:function(){return _.F("div",{class:function(){var V=H(),p,z,t={};var W=(t["yt-spec-avatar-shape__live-dot"]=!((p=V.decorations)==null||!p.includes(0)||SSO(V.size)),t["yt-spec-avatar-shape__new-content"]=!((z=V.decorations)==null||!z.includes(1)),t);return _.dj(W)}})}}),_.F(_.M,{cond:function(){return!!K},
then:function(){return _.F("div",{class:function(){var V={};V=Object.assign((V["yt-spec-avatar-shape__image-overlays"]=!0,V),y());return _.dj(V)}},K==null?void 0:K())}})))))},"Qa");
Koq.idomCompat={callbacks:{overlays:!0}};_.MX=_.Z(function(X){function H(){l().endpoint&&_.yr(l().endpoint)}
var l=X.data;var b=X.decorations;var U=X.avatarButtonCustomClassName;var K=X.isOverlay;var w=X.clusterLayoutConfig;return _.F("avatar-view-model",null,_.F(_.M,{cond:function(){return l().image},
then:function(d){return _.F(Koq,{data:function(){return kvz({data:l(),onTap:l().endpoint?H:void 0,decorations:b==null?void 0:b(),badgeText:void 0,accessibilityText:l().accessibilityText,avatarButtonCustomClassName:U==null?void 0:U(),clusterLayoutConfig:w==null?void 0:w()})},
image:d,iconType:"RADAR_LIVE",overlays:function(){return _.F(U4F,{data:l})},
isOverlay:K})}}))},"Ra");
_.MX.idomCompat=!0;_.uu=_.Z(function(X){var H=X.data;X=X.className;var l=_.z7("yt-decorated-avatar-view-model"),b=function(){return _.f(H().avatar,_.eu)},U=_.uL(function(){var K,w=H(),d=b(),B=_.qh(H().rendererContext),q=(K=l.value)!=null?K:void 0,u;
if(d){q={data:w,avatar:d,onTap:B,element:q};K=q.data;w=q.avatar;d=q.onTap;B=q.element;q=q.commandController;d=d?Wt8(d,B,q):void 0;B=[];K.liveData&&B.push(0);var e;q=(e=K.liveData)==null?void 0:e.liveBadgeText;e=(u=_.f(K.rendererContext,_.RB))==null?void 0:u.label;u=kvz({data:w,onTap:d,decorations:B,badgeText:q,accessibilityText:e?e:K.a11yLabel})}else u={size:"medium"};return u},void 0,"c00kWd");
return _.F("yt-decorated-avatar-view-model",{class:_.Qr("ytDecoratedAvatarViewModelHost",X),el:l},_.F(_.M,{cond:function(){var K;return(K=b())==null?void 0:K.image},
then:function(K){return _.F(Koq,{data:U,image:K,iconType:"RADAR_LIVE",overlays:function(){return _.F(U4F,{data:b})}})}}))},"Sa");
_.uu.idomCompat=!0;_.eD=_.Z(function(X){var H=function(){var d;return Object.assign({},X.data(),(d=X.overrides)==null?void 0:d.call(X))},l=function(){return _.ss(H().rendererContext)},b=function(){var d=H().avatars,B,q;
return(q=(B=(d==null?0:d[0])?_.f(d[0],_.eu):void 0)==null?void 0:B.avatarImageSize)!=null?q:"AVATAR_SIZE_UNKNOWN"},U=function(){return t_O(H())},K=function(){if(H().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var d=void 0;
else if((d=X.decorations)==null?0:d.call(X))d=X.decorations();else{d=H();var B=0;d.avatars&&(B+=d.avatars.length);d.decoratedText&&(B+=1);d=B>1?[3]:[]}return d},w={};
return _.F("yt-avatar-stack-view-model",{el:_.xl(_.Mh(function(){return H().rendererContext})),
class:_.Qr("yt-avatar-stack-view-model",X.className,(w["yt-avatar-stack-view-model--tappable"]=l,w["yt-avatar-stack-view-model--is-overlay"]=X.isOverlay,w["yt-avatar-stack-view-model--medium-text"]=X.useMediumText,w)),tabindex:function(){return l()?0:void 0},
role:function(){return l()?"link":void 0},
"aria-label":function(){var d,B;return(B=(d=_.f(H().rendererContext,_.RB))==null?void 0:d.label)!=null?B:""}},_.F(_.M,{cond:function(){var d;
return H().avatars&&!((d=X.hideAvatar)==null?0:d.call(X))},
then:function(){return _.F("div",{class:"yt-avatar-stack-view-model__avatars"},_.F(_.M,{cond:function(){return H().decoratedText},
then:function(d){var B={};return _.F("div",{class:_.Qr("yt-avatar-stack-view-model__text-container",(B["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return b()==="AVATAR_SIZE_XXS"||b()==="AVATAR_SIZE_XS"},B["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var q;
return((q=X.isOverlay)==null?void 0:q.call(X))&&(b()==="AVATAR_SIZE_XXS"||b()==="AVATAR_SIZE_XS")},B)),
style:_.rC({width:function(){return U().avatarSizeInPx+"px"},
height:function(){return U().avatarSizeInPx+"px"}})},_.F(_.Sj,{text:d,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.F("div",{style:function(){return _.rC(U().avatarStackStyle)()},
class:function(){return U().avatarStackClass}},_.F(_.l4,{data:function(){return U().avatars.reverse()}},{avatarViewModel:function(d,B){return _.F("div",{style:function(){var q,u;
return _.rC((u=(q=U()).avatarStyle)==null?void 0:u.call(q,B()))()},
class:function(){return U().avatarClass}},_.F(_.MX,{data:d.data,
decorations:K,avatarButtonCustomClassName:function(){return U().avatarButtonCustomClassName},
isOverlay:X.isOverlay,clusterLayoutConfig:function(){var q,u;return(u=(q=U()).clusterLayoutConfig)==null?void 0:u.call(q,B())}}))},
decoratedAvatarViewModel:function(d,B){return _.F("div",{style:function(){var q,u;return _.rC((u=(q=U()).avatarStyle)==null?void 0:u.call(q,B()))()},
class:function(){return U().avatarClass}},_.F(_.uu,{data:d.data}))}})))}}),_.F(_.M,{cond:function(){return H().text},
then:function(d){return _.F(_.Sj,{text:d,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ta");
_.eD.idomCompat=!0;_.gC(_.Z(function(X){var H=X.data;var l=X.thumbnailSize;return _.F("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.F("div",{class:_.Qr("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return EJz(l==null?void 0:l())})},_.F(_.l4,{data:function(){return H().avatarStack}},{avatarStackViewModel:function(b){return _.F(_.eD,{data:b.data,
decorations:[5]})}})))},"Ua"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.zh,
thumbnailSize:_.zh}});var R59=_.Z(function(X){X=_.gT(X,{hidden:!1});var H=X.data;X=X.hidden;return _.F("yt-thumbnail-overlay-title-view-model",{class:_.Qr("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(H().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var l="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:l="ytThumbnailOverlayTitleViewModelPositionTop"}return l}),
hidden:X},_.F(_.M,{cond:function(){return H().leadingContent},
then:function(l){return _.F("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.F(_.l4,{data:l},{decoratedAvatarViewModel:_.uu}))}}),_.F("div",null,_.F(_.Sj,{text:function(){return H().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.F(_.M,{cond:function(){return H().subtitle},
then:function(){return _.F(_.Sj,{text:function(){return H().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Va");
R59.idomCompat=!0;_.gC(R59,"yt-thumbnail-overlay-title-view-model",{props:{data:_.zh,hidden:_.zh}});_.yH=_.Z(function(X){X=_.gT(X,{isClip:!1});var H=X.data,l=X.thumbnailSize,b={};return _.F("yt-thumbnail-overlay-badge-view-model",{class:_.Qr("yt-thumbnail-overlay-badge-view-model",function(){a:switch(H().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var U="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:U="yt-thumbnail-overlay-badge-view-model--bottom-end"}return U},function(){return gJL(l==null?void 0:l())},(b["yt-thumbnail-overlay-badge-view-model--clip"]=X.isClip,
b))},_.F(_.l4,{data:function(){return H().thumbnailBadges}},{thumbnailBadgeViewModel:function(U){return _.F(_.o_H,{data:U.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Wa");
_.yH.idomCompat=!0;_.gC(_.yH,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.zh,thumbnailSize:_.zh,isClip:_.zh}});var C3t=_.Z(function(X){var H=X.data;X=X.hidden;var l=_.uL(function(){return H().indicatorCount||0},void 0,"AbKnMc"),b={};
return _.F("yt-page-indicator-view-model",{class:_.Qr("ytPageIndicatorViewModelHost",(b.ytPageIndicatorViewModelIndicatorHidden=function(){return!H().indicatorCount},b)),
hidden:X},_.F(_.P$,{each:function(){return Array(l())}},function(U,K){var w={};
return _.F("div",{class:_.Qr("ytPageIndicatorViewModelIndicator",(w.ytPageIndicatorViewModelIndicatorSelected=function(){return H().selectedIndex===K()},w))})}))},"Xa");
C3t.idomCompat=!0;_.gC(C3t,"yt-page-indicator-view-model",{props:{data:_.zh,hidden:_.zh}});var VH=function(){var X=_.a.apply(this,arguments)||this;X.eventSink=function(){return X};
X.disableInteraction=!1;X.noRoundedCorners=!1;X.isPreviewLoading=!1;X.isOriginalAspectRatio=!1;X.computedObjectFit=!1;X.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return X};
_.S(VH,_.a);_.R=VH.prototype;
_.R.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:_.P("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"}}};
_.R.onImageLoaded=function(){this.loaded=!0};
_.R.onImageUnloaded=function(){this.loaded=!1};
_.R.computeRichThumbnail=function(X,H,l,b){if(X&&H&&!b&&!_.P("disable_moving_thumbs_handling")&&!l)return H};
_.R.computeImageWidth=function(X,H){return H||9999};
_.R.computeIsOriginalAspectRatio=function(X){return X};
_.R.computeIsLive=function(X){if(X==null?0:X.badges)for(var H=0;H<X.badges.length;H++){var l=X.badges[H];if(l.metadataBadgeRenderer&&l.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(X==null?0:X.thumbnailOverlays)for(H=0;H<X.thumbnailOverlays.length;H++)if(l=X.thumbnailOverlays[H],l.thumbnailOverlayTimeStatusRenderer&&l.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.R.computeObjectFit=function(X,H){return H||(X?"CONTAIN":"")};
_.R.computeNavigationEndpoint=function(X,H,l){return X?H:l};
_.R.computeHasClip=function(X){X=_.C(X||[]);for(var H=X.next();!H.done;H=X.next())if(H.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.R.computeOverlayColor=function(X){var H;return(X==null?0:(H=X.darkColorPalette)==null?0:H.section2Color)?X.darkColorPalette.section2Color:X==null?void 0:X.sampledThumbnailColor};
_.ja.Object.defineProperties(VH.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.$cb(this.width)}}});
VH.prototype.onImageUnloaded=VH.prototype.onImageUnloaded;VH.prototype.onImageLoaded=VH.prototype.onImageLoaded;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],VH.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(mmq),_.N("design:type",Object)],VH.prototype,"ytdThumbnailBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],VH.prototype,"componentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],VH.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],VH.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],VH.prototype,"circular",void 0);
_.T([_.g({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.N("design:type",Object)],VH.prototype,"richThumbnail",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.N("design:type",Boolean)],VH.prototype,"hasClip",void 0);_.T([_.g(),_.N("design:type",Object)],VH.prototype,"eventSink",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],VH.prototype,"queued",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],VH.prototype,"richGridThumbnail",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],VH.prototype,"useExpandableTooltip",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],VH.prototype,"useUntranslatedNavigationEndpoint",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],VH.prototype,"disableInteraction",void 0);
_.T([_.g({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.N("design:type",Object)],VH.prototype,"computedNavigationEndpoint",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],VH.prototype,"nowPlayingEqualizerOnly",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],VH.prototype,"hidePlaybackStatus",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],VH.prototype,"objectFit",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],VH.prototype,"noRoundedCorners",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],VH.prototype,"watchFeedThumbnail",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],VH.prototype,"isPreviewLoading",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.N("design:type",Object)],VH.prototype,"isOriginalAspectRatio",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.N("design:type",Object)],VH.prototype,"computedObjectFit",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.N("design:type",Boolean)],VH.prototype,"isLiveVideo",void 0);
_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],VH.prototype,"loaded",void 0);_.T([_.g({computed:"computeOverlayColor(data.thumbnail)"}),_.N("design:type",Object)],VH.prototype,"overlayColor",void 0);_.T([_.g(),_.N("design:type",Boolean)],VH.prototype,"minimizePipBreakages",void 0);_.T([_.g({selector:_.DjN}),_.N("design:type",Boolean)],VH.prototype,"inlinePreviewIsEnabled",void 0);_.T([_.g(),_.N("design:type",Number)],VH.prototype,"width",void 0);
_.T([_.x("inlinePreviewIsEnabled"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],VH.prototype,"isPreviewDisabled",null);_.T([_.x("width"),_.N("design:type",String),_.N("design:paramtypes",[])],VH.prototype,"thumbnailSize",null);_.T([_.Le("image-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VH.prototype,"onImageLoaded",null);
_.T([_.Le("image-unloaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VH.prototype,"onImageUnloaded",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-thumbnail"})],VH);
_.mr()(VH,"ytd-thumbnail",function(){if(HbD===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);HbD=X}X=HbD;return X},{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 Zpy=function(X){var H=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(l){wyH(H,l)};
this.onLockupMouseLeaveFn=function(l){l=l.relatedTarget;var b,U;((b=document.getElementsByTagName("ytd-video-preview"))==null?0:(U=b.item(0))==null?0:U.contains(l))||(H.terminateVideoPreview(),PU(H))};
this.onThumbnailMouseDownFn=function(){H.terminateVideoPreview();PU(H)};
this.onTouchStart=function(){H.JSC$15355_touched=!0};
this.mediaRenderer=X.mediaRenderer;this.thumbnailElement=X.thumbnailElement;this.lockupElement=X.lockupElement;this.videoPreviewOptsInput=X.videoPreviewOpts;d4H(this);fn(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)):
_.x2(Error("Gh")):_.x2(Error("Hh")):h59(this)},vx=function(X){h59(X);
var H;(H=X.lockupElement)==null||H.removeEventListener("mouseenter",X.onMouseMoveFn);var l;(l=X.lockupElement)==null||l.removeEventListener("mouseleave",X.onLockupMouseLeaveFn);var b;(b=X.lockupElement)==null||b.removeEventListener("touchstart",X.onTouchStart);var U;(U=X.thumbnailElement)==null||U.removeEventListener("mousedown",X.onThumbnailMouseDownFn);PU(X)},d4H=function(X){X.inlinePreviewIsEnabledForUser=_.WF().getState().ui.inlinePreviewIsEnabled;
X.unsubscribeFromInlinePreviewIsEnabled=_.bC(_.WF(),_.DjN,function(H){(X.inlinePreviewIsEnabledForUser=H)||PU(X)});
X.JSC$15355_unsubscribeFromInlinePreviewIsActive=_.bC(_.WF(),_.xjZ,function(H){(X.inlinePreviewIsActive=H)||PU(X)})},h59=function(X){X.unsubscribeFromInlinePreviewIsEnabled();
X.unsubscribeFromInlinePreviewIsEnabled=function(){};
X.JSC$15355_unsubscribeFromInlinePreviewIsActive();X.JSC$15355_unsubscribeFromInlinePreviewIsActive=function(){}},wyH=function(X,H){H.buttons>0||(H=_.Yy("kevlar_lockup_hover_delay",-1),X.JSC$15355_touched&&H>=0?(_.Ss.cancelJob(X.videoPreviewJobId),X.videoPreviewJobId=_.v5(_.Ss,function(){FoF(X)},H),X.JSC$15355_touched=!1):FoF(X))},i1y=function(X){X.videoPreviewJobId=_.v5(_.Ss,function(){return _.h(function(H){return H.yield(B__(X,{isAutoplay:!0}),0)})})},FoF=function(X){!X.previewTriggered&&fn(X)&&
(X.inlinePreviewIsActive&&X.terminateVideoPreview(),X.previewTriggered=!0,X.mediaRenderer.isInlinePreviewTriggered=!0,_.Ss.cancelJob(X.videoPreviewJobId),X.videoPreviewJobId=_.v5(_.Ss,function(){return _.h(function(H){return H.yield(B__(X),0)})}))},B__=function(X,H){H=H===void 0?{}:H;
var l=H.isAutoplay===void 0?!1:H.isAutoplay;var b,U,K,w;return _.h(function(d){if(d.nextAddress==1){if(!fn(X))return d.return();b=X.getVideoPreviewOpts();if(!b)return d.return();l&&(b.isAutoplay=!0);return(K=(U=_.NG(X.mediaRenderer.hostElement,"yt-open-video-preview-action",[b]))&&U[0])?d.yield(U[0],3):d.jumpTo(2)}d.nextAddress!=2&&(K=d.yieldResult===1);if(K){var B=(w=X.mediaRenderer)==null?void 0:w.data;B&&(a0y(B)?delete B.inlinePlayerData:"inlinePlaybackEndpoint"in B&&delete B.inlinePlaybackEndpoint)}_.m5(d)})};
Zpy.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var X,H;if((H=(X=this.videoPreviewOptsInput)==null?void 0:X.videoPreviewData)!=null)X=H;else if(X=this.mediaRenderer.data)if(a0y(X))X={inlinePlaybackEndpoint:_.sl(X.inlinePlayerData.onVisible),navigationEndpoint:_.sl(X.onTap),thumbnail:"image"in X?X.image:X.thumbnail,thumbnailOverlays:void 0,accessibilityText:Gvl(X)};else if("multipleInlinePlaybackEndpoint"in X){var l=_.f(_.f(X.multipleInlinePlaybackEndpoint,FVq),Z1Z);if(l!=
null&&l.playerDescriptors){H=[];l=_.C(l.playerDescriptors);for(var b=l.next();!b.done;b=l.next())b=b.value,H.push({inlinePlaybackEndpoint:b.inlinePlaybackEndpoint,navigationEndpoint:b.navigationEndpoint,thumbnail:b.thumbnail,thumbnailOverlays:b.thumbnailOverlays,accessibilityText:Gvl(X)});X=H}else X=void 0}else X={inlinePlaybackEndpoint:X.inlinePlaybackEndpoint,navigationEndpoint:X.navigationEndpoint,thumbnail:X.thumbnail,thumbnailOverlays:X.thumbnailOverlays,accessibilityText:Gvl(X)};else X=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:X,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var fn=function(X){var H;if(H=X.inlinePreviewIsEnabledForUser)H=(X=X.mediaRenderer.data)?"inlinePlaybackEndpoint"in X&&X.inlinePlaybackEndpoint||a0y(X)&&X.inlinePlayerData||"multipleInlinePlaybackEndpoint"in X&&X.multipleInlinePlaybackEndpoint?!0:!1:!1;return H};
Zpy.prototype.terminateVideoPreview=function(){_.TP(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var PU=function(X){_.Ss.cancelJob(X.videoPreviewJobId);X.inlinePreviewIsActive=!1;X.previewTriggered=!1;X.mediaRenderer.isInlinePreviewTriggered=!1};var qDD=_.W8(["#"]),pn=function(){var X=_.a.apply(this,arguments)||this;X.isDisabled=!1;return X};
_.S(pn,_.a);_.R=pn.prototype;
_.R.configureRendererStamper=function(){return{"data.menu":oX,"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"}}}};
_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.getMetadata=function(X){var H=[];if(X.metadataText&&Object.keys(X.metadataText).length>0){var l=this.ytRendererBehavior.getSimpleString(X.metadataText);X.upcomingEventData&&X.upcomingEventData.upcomingEventText&&(l=_.CS(l,Number(X.upcomingEventData.startTime)));H.push(l)}else X.shortViewCountText&&H.push(this.ytRendererBehavior.getSimpleString(X.shortViewCountText)),X.publishedTimeText&&H.push(this.ytRendererBehavior.getSimpleString(X.publishedTimeText)),X.upcomingEventData&&X.upcomingEventData.upcomingEventText&&
(l=this.ytRendererBehavior.getSimpleString(X.upcomingEventData.upcomingEventText),H.push(_.CS(l,Number(X.upcomingEventData.startTime))));return H};
_.R.calculateBylineText=function(X){return X.shortBylineText?X.shortBylineText:X.bylineText?X.bylineText:null};
_.R.calculateIsDisabled=function(X){return!!X.isDisabled};
_.R.computeHrefWithDefault=function(X){return this.ytComponentBehavior.computeHref_(X)||_.pJK(qDD)};
_.R.onDetailsTap=function(X){var H=this.data&&this.data.navigationEndpoint;H&&!_.WS(_.t2(X)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.P("kevlar_grid_video_renderer_killswitch")?_.QX(this.hostElement,"yt-navigate",{endpoint:H}):this.ytComponentBehavior.resolveCommand(H))};
_.R.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15362_inlinePreviewHoverListener=yE({mediaRenderer:this,lockupElement:_.mh(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.mh(this.hostElement).querySelector("ytd-thumbnail")})};
_.R.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15362_inlinePreviewHoverListener)==null||vx(X)};
_.R.computeThumbnailWidth=function(X,H){return H&&H>0?H:X?360:210};
_.R.computeNumBadgesInRow=function(X){var H;return((H=X.badges)==null?void 0:H.length)||0};
_.R.computeShowChannelThumbnail=function(X,H){var l;return H&&!!(X==null?0:(l=X.channelThumbnailSupportedRenderers)==null?0:l.channelThumbnailWithLinkRenderer)};
_.ja.Object.defineProperties(pn.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$15362_inlinePreviewHoverListener)==null?0:fn(X))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
pn.prototype.dataChanged=pn.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],pn.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],pn.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.k(_.Sn),_.N("design:type",Object)],pn.prototype,"ytdLockupBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],pn.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pn.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],pn.prototype,"noEndpoints",void 0);_.T([_.g({computed:"calculateBylineText(data)"}),_.N("design:type",Object)],pn.prototype,"bylineText",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],pn.prototype,"isSearch",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],pn.prototype,"isDownloading",void 0);_.T([_.g({reflectToAttribute:!0,value:0}),_.N("design:type",Number)],pn.prototype,"width",void 0);_.T([_.g({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.N("design:type",Object)],pn.prototype,"isDisabled",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pn.prototype,"dataChanged",null);_.T([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pn.prototype,"isHovered",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pn.prototype,"hasAttributedBylineText",null);
_.T([_.x("bylineText","hasAttributedBylineText"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pn.prototype,"showBylineText",null);_.T([_.sq({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],pn);
_.O(pn,"ytd-grid-video-renderer",function(){if(Qz6!==void 0)return Qz6;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Qz6=X},{mode:2});var sGQ;var SD=function(){var X=_.a.apply(this,arguments)||this;X.roundedContainer=!0;X.skipRoundingTop=!1;X.disableTopPadding=!1;X.amsterdamEnabled=_.P("enable_desktop_amsterdam_info_panels");X.extractOverlay=!1;return X};
_.S(SD,_.a);SD.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
SD.prototype.onClick=function(X){var H,l=(H=this.data)==null?void 0:H.sourceEndpoint;!_.WS(_.t2(X),this.hostElement,["A".toString()])&&l&&_.QX(this.hostElement,"yt-navigate",{endpoint:l})};
_.ja.Object.defineProperties(SD.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 X;return!((X=this.data)==null||!X.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var X,H;return(H=(X=this.data)==null?void 0:X.paragraphMaxLines)!=null?H:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],SD.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],SD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],SD.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SD.prototype,"showVerticalDividers",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SD.prototype,"roundedContainer",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SD.prototype,"skipRoundingTop",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SD.prototype,"disableTopPadding",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],SD.prototype,"amsterdamEnabled",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SD.prototype,"extractOverlay",void 0);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],SD.prototype,"showMetadataAtTop",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],SD.prototype,"showMetadataBelowTitle",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],SD.prototype,"hasMenu",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data.truncateParagraphs"),_.N("design:type",Object),_.N("design:paramtypes",[])],SD.prototype,"truncateParagraphs",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.paragraphMaxLines"),_.N("design:type",Number),_.N("design:paramtypes",[])],SD.prototype,"paragraphMaxLines",null);
_.T([_.g({type:_.P("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.x("data.background"),_.N("design:type",Object),_.N("design:paramtypes",[])],SD.prototype,"background",null);_.T([_.sq({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],SD);
_.O(SD,"ytd-info-panel-content-renderer",function(){if(sGQ!==void 0)return sGQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return sGQ=X},{mode:2});var MXD;var u__;var e5_;var y7Q;var zi=function(){return _.a.apply(this,arguments)||this};
_.S(zi,_.a);zi.prototype.computeStyle=function(X){return X};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],zi.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],zi.prototype,"style_",void 0);_.T([_.qR({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],zi);
_.O(zi,"yt-channel-thumbnail-with-link-renderer",function(){if(y7Q===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;e5_===void 0&&(e5_=document.createElement("template"));var b=e5_;l.call(H,b.content.cloneNode(!0),X.content.firstChild);y7Q=X}X=y7Q;return X},{mode:2});var nn=function(){return _.a.apply(this,arguments)||this};
_.S(nn,_.a);nn.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"}}}};
nn.prototype.computeTitleStyle=function(X){return X||null};
nn.prototype.computeAvatarStyle=function(X){return X||null};
nn.prototype.computeShowNavigationButton=function(X,H){return!(X==null||!X.navigationButton||H)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],nn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],nn.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.N("design:type",String)],nn.prototype,"titleStyle",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.N("design:type",String)],nn.prototype,"avatarStyle",void 0);_.T([_.g(),_.N("design:type",Boolean)],nn.prototype,"hideNavigationButton",void 0);_.T([_.sq({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],nn);
_.O(nn,"ytd-rich-list-header-renderer",function(){if(u__!==void 0)return u__;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return u__=X},{mode:2});var kG=function(){return _.a.apply(this,arguments)||this};
_.S(kG,_.a);kG.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],kG.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],kG.prototype,"isSearch",void 0);_.T([_.sq({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],kG);
_.O(kG,"ytd-preview-card-renderer",function(){if(MXD!==void 0)return MXD;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return MXD=X},{mode:1});var VXQ;var xG=function(){return _.a.apply(this,arguments)||this};
_.S(xG,_.a);xG.prototype.configureRendererStamper=function(){return{"data.menu":oX}};
xG.prototype.dataChanged=function(){var X=this.get("colorExtractionPalette.section1Color",this.data);X=_.BM(X);_.j4(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":X})};
xG.prototype.computeCardStyle=function(X){return this.get("style.value",X)||null};
xG.prototype.dataChanged=xG.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],xG.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xG.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.N("design:type",String)],xG.prototype,"cardStyle",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xG.prototype,"dataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],xG);
_.O(xG,"ytd-compact-channel-recommendation-card-renderer",function(){if(VXQ!==void 0)return VXQ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return VXQ=X},{mode:1});var P36;var fXQ;var DZ=function(){var X=_.a.apply(this,arguments)||this;X.alignAuto=!1;X.collapsed=!0;X.isToggled=!1;X.alwaysCollapsed=!1;X.canToggle=!0;X.collapsedHeight=80;X.disableToggle=!1;X.alwaysToggleable=!1;X.reversed=!1;X.shouldUseNumberOfLines=!1;X.recomputeOnResize=!1;X.canToggleJobId=0;X.lastReversed=!1;return X};
_.S(DZ,_.a);_.R=DZ.prototype;_.R.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.R.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.R.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var X=_.mh(this.hostElement),H=X.childNodes,l=document.createDocumentFragment(),b=X.childNodes.length-1;b>=0;b--)_.mh(l).appendChild(H[b]);_.P("enable_shadydom_free_scoped_node_methods")?_.Q_(this.hostElement).appendChild(l):X.appendChild(l)}};
_.R.ready=function(){var X=this;_.fc(function(){X.initChildrenObserver()},1)};
_.R.attached=function(){var X;(X=this.resizeObserver)==null||X.observe(this.content)};
_.R.detached=function(){this.detachObserver()};
_.R.toggle=function(X,H){this.canToggle&&(this.isToggled=H,_.QX(this.hostElement,"yt-refit"),X&&X.stopPropagation())};
_.R.reset=function(){this.childrenChanged()};
_.R.onIronResize=function(){this.recomputeOnResize&&!_.P("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.R.computeIsMoreVisible=function(X,H){return X&&!H};
_.R.computeShouldUseNumberOfLines=function(X){try{return!!X&&window.CSS.supports("-webkit-line-clamp","1")}catch(H){}return!1};
_.R.computeIsLessVisible=function(X,H){return X&&H};
_.R.observeCollapsedHeightAndMaxLines=function(){var X=this.collapsedHeight,H=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.j4(this.hostElement,{"--ytd-expander-max-lines":""+H,"--ytd-expander-collapsed-height":""}):_.j4(this.hostElement,{"--ytd-expander-collapsed-height":X+"px","--ytd-expander-max-lines":""})};
_.R.handleMoreTap=function(X){this.disableToggle||(_.QX(this.hostElement,"yt-expander-more-tapped"),this.toggle(X,!0))};
_.R.handleLessTap=function(X){_.QX(this.hostElement,"yt-expander-less-tapped");this.toggle(X,!1)};
_.R.initChildrenObserver=function(){var X=this;this.observer=new MutationObserver(function(){X.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.P("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.jw(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var H;(H=X.resizeThrottle)==null||H.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.R.childrenChanged=function(){var X=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){iv(function(){X.canToggleJobId=0;X.calculateCanCollapse()})}))};
_.R.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};
_.R.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.R.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("collapsed-changed",this.collapsed))};
_.R.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("is-toggled-changed",this.isToggled))};
_.R.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("can-toggle-changed",this.canToggle))};
_.ja.Object.defineProperties(DZ.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
DZ.prototype.canToggleChangedForBinding=DZ.prototype.canToggleChangedForBinding;DZ.prototype.isToggledChangedForBinding=DZ.prototype.isToggledChangedForBinding;DZ.prototype.collapsedChangedForBinding=DZ.prototype.collapsedChangedForBinding;DZ.prototype.observeCollapsedHeightAndMaxLines=DZ.prototype.observeCollapsedHeightAndMaxLines;DZ.prototype.onIronResize=DZ.prototype.onIronResize;DZ.prototype.reversedChanged=DZ.prototype.reversedChanged;DZ.prototype.toggledChanged=DZ.prototype.toggledChanged;
DZ.prototype.alwaysToggleableChanged=DZ.prototype.alwaysToggleableChanged;_.T([_.k(_.$s),_.N("design:type",Object)],DZ.prototype,"ironResizableBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],DZ.prototype,"alignAuto",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],DZ.prototype,"collapsed",void 0);_.T([_.g(),_.N("design:type",Object)],DZ.prototype,"isToggled",void 0);_.T([_.g(),_.N("design:type",Object)],DZ.prototype,"alwaysCollapsed",void 0);
_.T([_.g(),_.N("design:type",Object)],DZ.prototype,"canToggle",void 0);_.T([_.g(),_.N("design:type",Object)],DZ.prototype,"collapsedHeight",void 0);_.T([_.g(),_.N("design:type",Object)],DZ.prototype,"disableToggle",void 0);_.T([_.g(),_.N("design:type",Object)],DZ.prototype,"alwaysToggleable",void 0);_.T([_.g(),_.N("design:type",Object)],DZ.prototype,"reversed",void 0);_.T([_.g(),_.N("design:type",Number)],DZ.prototype,"maxNumberOfLines",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.N("design:type",Object)],DZ.prototype,"shouldUseNumberOfLines",void 0);_.T([_.g(),_.N("design:type",Object)],DZ.prototype,"recomputeOnResize",void 0);_.T([_.A2("#content"),_.N("design:type",HTMLDivElement)],DZ.prototype,"content",void 0);_.T([_.oi("alwaysToggleable"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DZ.prototype,"alwaysToggleableChanged",null);
_.T([_.oi("isToggled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DZ.prototype,"toggledChanged",null);_.T([_.x("canToggleJobId"),_.N("design:type",Object),_.N("design:paramtypes",[])],DZ.prototype,"isResetting",null);_.T([_.Yh("reversed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DZ.prototype,"reversedChanged",null);
_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DZ.prototype,"onIronResize",null);_.T([_.Yh("maxNumberOfLines","collapsedHeight"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DZ.prototype,"observeCollapsedHeightAndMaxLines",null);_.T([_.Yh("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DZ.prototype,"collapsedChangedForBinding",null);
_.T([_.Yh("isToggled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DZ.prototype,"isToggledChangedForBinding",null);_.T([_.Yh("canToggle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DZ.prototype,"canToggleChangedForBinding",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-expander"})],DZ);
_.O(DZ,"ytd-expander",function(){if(fXQ!==void 0)return fXQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return fXQ=X},{mode:1});var tk=function(){return _.a.apply(this,arguments)||this};
_.S(tk,_.a);tk.prototype.computeIsCarousel=function(X){return!!X.isCarousel};
tk.prototype.observeLightsourcePalette=function(){var X,H=(X=this.data)==null?void 0:X.vibrantsourceColorPaletteData;H&&_.Rq(this.hostElement,H)};
tk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
tk.prototype.observeLightsourcePalette=tk.prototype.observeLightsourcePalette;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],tk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],tk.prototype,"data",void 0);_.T([_.g({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],tk.prototype,"isCarousel",void 0);
_.T([_.Yh("data.vibrantsourceColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tk.prototype,"observeLightsourcePalette",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],tk);
_.O(tk,"ytd-media-upsell-renderer",function(){if(P36!==void 0)return P36;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return P36=X},{mode:2});var py_;var WU=function(){var X=_.a.apply(this,arguments)||this;X.JSC$15389_playerEvents=new Map;X.listeningToPlayer=!1;X.startX=0;X.active=!1;X.shouldShowButtons=_.P("web_buttons_hidden_killswitch");X.isHighlighted=!1;X.useHighlightStyling=_.P("web_enable_deeper_metadata_highlight_styling");X.enableProblemWalkthrough=_.P("problem_walkthrough_sd");return X};
_.S(WU,_.a);_.R=WU.prototype;
_.R.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}}}}}};
_.R.created=function(){this.JSC$15389_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.R.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.J2(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.J2(this,this.onActiveUpdate))};
_.R.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.J2(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.J2(this,this.onActiveUpdate))};
_.R.onDataChanged=function(){this.removePlayerListeners()};
_.R.onColorPaletteChange=function(){var X={},H;if(_.PM()==="USER_INTERFACE_THEME_DARK"&&((H=this.data)==null?0:H.darkColorPalette)){var l=this.data.darkColorPalette;X["--ytd-macro-markers-list-item-background-color"]=_.qw(this.get("section2Color",l))}else{var b;_.PM()==="USER_INTERFACE_THEME_LIGHT"&&((b=this.data)==null?0:b.lightColorPalette)&&(l=this.data.lightColorPalette,X["--ytd-macro-markers-list-item-background-color"]=_.qw(this.get("section3Color",l)))}l?(X["--ytd-macro-markers-list-item-title-color"]=
_.qw(this.get("primaryTitleColor",l)),X["--ytd-macro-markers-list-item-secondary-color"]=_.qw(this.get("secondaryTitleColor",l)),X["--ytd-macro-markers-list-item-timestamp-background-color"]=_.qw(this.get("section1Color",l)),this.customButtonProperties={customColors:{color:_.qw(this.get("primaryTitleColor",l))}},this.useColorSampling=!0):(X["--ytd-macro-markers-list-item-background-color"]="initial",X["--ytd-macro-markers-list-item-title-color"]="initial",X["--ytd-macro-markers-list-item-secondary-color"]=
"initial",X["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.j4(this.hostElement,X)};
_.R.onEndpointMouseDown=function(X){this.startX=X.clientX};
_.R.onEndpointClick=function(X){var H=this,l,b,U;return _.h(function(K){if(K.nextAddress==1){if(H.startX!==X.clientX)return X.preventDefault(),K.return();H.data&&H.ytRendererBehavior.logExplicitClick(H.data);if(!H.seekWithAnimationOnClick)return K.jumpTo(0);if(X.button!==0||X.shiftKey||X.altKey||X.metaKey||X.ctrlKey||_.WS(_.t2(X),H.hostElement,["BUTTON".toString()]))return K.return();X.stopPropagation();X.preventDefault();return H.data?K.yield(_.ZH().getPlayerPromise(),3):K.return()}l=K.yieldResult;
U=(b=_.f(H.data.onTap,_.ku))==null?void 0:b.startTimeSeconds;U!==void 0&&l.seekToTimeWithAnimation(U*1E3,_.D8(H.data.title));_.m5(K)})};
_.R.computeLayout=function(X){return X};
_.R.computeIsHighlighted=function(X){return!!X};
_.R.computeCarouselType=function(X){return X};
_.R.hideCarousel=function(X){return this.hideThumbnail(X)};
_.R.hideThumbnail=function(X){return this.enableProblemWalkthrough&&X!==null&&X==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.R.onRepeatButtonToggle=function(X){var H=this;X.detail.toggled&&_.ZH().getPlayerPromise().then(function(l){H.ytPlayerListenerBehavior.listenToPlayerEvents(l,H.JSC$15389_playerEvents);H.listeningToPlayer=!0})};
_.R.onLoopRangeChange=function(X){var H=_.mh(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(H){var l=H.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",H.polymerController.data);if(l){var b=Number(l.endTimeMs);if(Number(l.startTimeMs)!==(X==null?void 0:X.startTimeMs)||b!==(X==null?void 0:X.endTimeMs))H.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.R.removePlayerListeners=function(){var X=this;this.listeningToPlayer&&_.ZH().getPlayerPromise().then(function(H){X.ytPlayerListenerBehavior.unlistenFromPlayerEvents(H,X.JSC$15389_playerEvents);X.listeningToPlayer=!1})};
_.R.onActiveUpdate=function(X){this.active=X.detail.active};
WU.prototype.onColorPaletteChange=WU.prototype.onColorPaletteChange;WU.prototype.onDataChanged=WU.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],WU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],WU.prototype,"ytPlayerListenerBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],WU.prototype,"data",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],WU.prototype,"useCustomColors",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],WU.prototype,"active",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],WU.prototype,"shouldShowButtons",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.N("design:type",String)],WU.prototype,"layout",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.N("design:type",Object)],WU.prototype,"isHighlighted",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],WU.prototype,"useHighlightStyling",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],WU.prototype,"enableProblemWalkthrough",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.N("design:type",String)],WU.prototype,"carouselType",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],WU.prototype,"useColorSampling",void 0);_.T([_.g(),_.N("design:type",Boolean)],WU.prototype,"seekWithAnimationOnClick",void 0);_.T([_.g(),_.N("design:type",Object)],WU.prototype,"customButtonProperties",void 0);
_.T([_.A2("#repeat-button"),_.N("design:type",HTMLElement)],WU.prototype,"repeatButton",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WU.prototype,"onDataChanged",null);_.T([_.Yh("data.lightColorPalette","data.darkColorPalette"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WU.prototype,"onColorPaletteChange",null);
_.T([_.sq({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],WU);
_.O(WU,"ytd-macro-markers-list-item-renderer",function(){if(py_!==void 0)return py_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return py_=X},{mode:1});var SDD;var z5Q;var EV=function(){return _.a.apply(this,arguments)||this};
_.S(EV,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],EV.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],EV);
_.O(EV,"ytd-title-and-button-list-header-renderer",function(){if(z5Q!==void 0)return z5Q;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return z5Q=X},{mode:1});var n_9;var k1Q=new _.gz("BUTTON_RENDERER_TOKEN");_.gF=_.Z(function(X){var H=_.jJ().resolve(k1Q);return _.F(H,Object.assign({},X,{overrides:X.buttonOverrides}))},"Ya");var x49=_.Z(function(X){var H=X.data,l=_.Eq(X.useSquareAspectRatio,!1);return _.F("dismissed-mini-game-card-view-model",null,_.F(_.M,{cond:function(){var b,U;return(b=H().responseText)==null?void 0:(U=b.runs)==null?void 0:U.length},
then:function(){var b={};return _.F("div",{class:_.Qr("yt-mini-game-card-view-model__dismissed-card",(b["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!l()},b["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.P("web_game_card_force_2_by_3")},b["yt-mini-game-card-view-model--dismissed-square-card"]=l,b))},_.F("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.F(_.M,{cond:function(){return H().responseText.runs[0].text},
then:function(U){return _.F("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:U},U)}}),_.F(_.l4,{data:function(){return H().buttons}},{buttonRenderer:_.gF,
buttonViewModel:_.Qk})))}}))},"Za");var D4Q=_.Z(function(X){var H=X.data;return _.F("br-nz-badge-shape",{class:_.Qr(function(){return ip8(H().brNzRatingBadgeType)}),
role:function(){return H().accessibilityText?"img":void 0},
"aria-label":function(){return H().accessibilityText}},function(){var l;
return(l=H())==null?void 0:l.text})},"$a");_.Gi=_.Z(function(X){var H=function(){var l=X.data(),b,U,K,w,d;if(l){var B=!((b=X.workaroundShortsIsThumbnailBadge)==null||!b.call(X));b=(U=X.modern)==null?void 0:U.call(X);U=(K=X.numBadgesInRow)==null?void 0:K.call(X);K=(w=X.clipTextOverflow)==null?void 0:w.call(X);w=(d=X.inheritTypography)==null?void 0:d.call(X);var q;a:switch(l.badgeStyle){case "BADGE_OVERLAY":d=!0;break a;default:d=!1}l={type:B?17:vJk(l.badgeStyle),brNzRatingBadgeType:OpW(l.badgeStyle),text:l.badgeText,icon:l.iconName,isOverlay:d,
modern:b||_.P("web_modern_badge_view_model"),accessibilityText:l.accessibilityLabel||((q=_.f(l.rendererContext,_.RB))==null?void 0:q.label),numBadgesInRow:U,clipTextOverflow:K,shouldInheritTypography:w}}else l=void 0;return l};
return _.F("yt-badge-view-model",{class:_.Qr("ytBadgeViewModelHost",X.class)},_.F(_.ff,null,_.F(_.yO,{when:function(){var l;return!((l=H())==null||!l.brNzRatingBadgeType)}},function(){return _.F(D4Q,{data:function(){return H()}})}),_.F(_.yO,{when:function(){return!!H()&&!H().brNzRatingBadgeType}},function(){return _.F(_.Pm,{data:function(){return H()}})})))},"ab");
_.Gi.idomCompat=!0;var ibq=_.Z(function(X){X=_.gT(X,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var H=X.data,l=X.useFullWidth,b=X.isDesktopWeb,U=X.addSearchResultTopMargin,K=function(){return H().layout},w=function(){return H().title},d=function(){return H().metadataText?H().metadataText:H().genre},B=function(){return H().channelName},q=function(){return H().image},u=function(){return H().colorPalette},e=function(){return H().actionButton},y=function(){return H().overflowButton},
V=function(){return H().avatar},p=function(){return H().ageRating},z=function(){return H().thumbnailOverlays},t=function(){var Q={};
Q=_.Qr("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(Q["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return b()},Q));
return _.F("div",{class:Q},_.F(tXq,{imageData:q,colorPalette:u}),_.F(WoH,{onTap:function(){return H().onTap},
imageData:q,accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
thumbnailOverlays:z,isDesktopWeb:b}),_.F(_.M,{cond:function(){return!b()},
then:function(){return _.F(_.Xi,null,_.F(E_q,{layout:K,colorPalette:u,isDesktopWeb:b,overflowButton:y,avatar:V,onTap:function(){return H().onTap},
genre:d,title:w,channelName:B}),_.F(g_H,{actionButton:e}))}}))},W=function(){var Q={};
Q=_.Qr((Q["yt-mini-game-card-view-model--search-result-desktop"]=function(){return b()},Q["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!b()},Q["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return U()},Q));
return _.F("div",{class:Q},t(),_.F(G1D,{description:function(){return H().description},
isDesktopWeb:b,title:w,genre:d,onTap:function(){return H().onTap},
actionButton:e,overflowButton:y,avatar:V,channelName:B}))},G=function(){var Q={};
Q=_.Qr("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(Q["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return b()},Q["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return b()&&H().width===135},Q["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return b()},Q["yt-mini-game-card-view-model--big-metadata-font"]=function(){return H().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},Q["yt-mini-game-card-view-model--use-full-width"]=
function(){return l()},Q["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.P("web_game_card_force_2_by_3")},Q));
return _.F("div",{class:Q},_.F(aX_,{colorPalette:u,isDesktopWeb:b,onTap:function(){return H().onTap},
accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
actionButton:e,imageData:q,thumbnailOverlays:z}),_.F(E_q,{layout:K,colorPalette:u,isDesktopWeb:b,overflowButton:y,avatar:V,onTap:function(){return H().onTap},
genre:d,title:w,channelName:B}),_.F(_.M,{cond:p,then:function(v){return _.F(ZbH,{ageRating:v})}}))},r=function(){var Q={};
Q=_.Qr("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(Q["yt-mini-game-card-view-model--square-card-desktop"]=function(){return b()},Q["yt-mini-game-card-view-model--use-full-width"]=function(){return l()},Q));
return _.F("div",{class:Q},_.F(WoH,{onTap:function(){return H().onTap},
imageData:q,accessibilityText:function(){return H().accessibilityText},
overlayBadgeText:function(){return H().overlayBadgeText},
iconName:function(){return H().iconName},
unplayableInlinePlaybackIconName:function(){return H().unplayableInlinePlaybackIconName},
thumbnailOverlays:z,isDesktopWeb:b}),_.F(E_q,{layout:K,colorPalette:u,isDesktopWeb:b,overflowButton:y,avatar:V,onTap:function(){return H().onTap},
genre:d,title:w,channelName:B}),_.F(_.M,{cond:p,then:function(v){return _.F(ZbH,{ageRating:v})}}))};
return _.F("mini-game-card-view-model",{class:X.className},_.F(_.ff,null,_.F(_.yO,{when:function(){return K()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return G()}),_.F(_.yO,{when:function(){return K()==="MINI_APP_LAYOUT_SQUARE"}},function(){return r()}),_.F(_.yO,{when:function(){return K()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return W()})))},"bb");
ibq.idomCompat=!0;var g_H=_.Z(function(X){var H=_.Eq(X.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.F(_.l4,{data:X.actionButton},{buttonViewModel:function(l){return _.F("div",{class:H},_.F(_.Qk,{data:l.data}))}})},"cb"),WoH=_.Z(function(X){var H=X.onTap;
var l=X.imageData;var b=X.accessibilityText;var U=X.overlayBadgeText;var K=X.iconName;var w=X.unplayableInlinePlaybackIconName;var d=X.isDesktopWeb;X=X.thumbnailOverlays;return _.F(_.ZE,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:H},_.F(_.Dp,{data:l,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(b==null?void 0:b())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.F(_.l4,{data:X},{thumbnailOverlayBadgeViewModel:_.yH}),_.F(v_6,{overlayBadgeText:U,iconName:K,unplayableInlinePlaybackIconName:w,isDesktopWeb:d}))},"db"),v_6=_.Z(function(X){var H=X.overlayBadgeText;
var l=X.iconName;var b=X.unplayableInlinePlaybackIconName;var U=X.isDesktopWeb;return _.F("div",{class:"yt-mini-game-card-view-model__badge-container"},_.F(_.M,{cond:l,then:function(K){return _.F("div",{class:"yt-mini-game-card-view-model__badge"},_.F("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.F(_.Ja,{icon:K,className:"yt-mini-game-card-view-model__icon",size:12}),_.F("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},H)))}}),_.F(_.M,{cond:function(){return!l()&&
H()},
then:function(){return _.F("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},H)}}),_.F(_.M,{cond:function(){return b()&&U()},
then:function(){return _.F("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.F(_.Ja,{icon:b,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"eb"),tXq=_.Z(function(X){var H=X.colorPalette;
var l=X.imageData;var b=function(){return H().vibrantColorPalette?H().vibrantColorPalette.section2Color:H().sectionTwoColor};
return _.F(_.Xi,null,_.F("div",{class:"yt-mini-game-card-view-model__background-base",style:_.rC({"background-color":function(){return si(b(),"1")}})}),_.F("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.rC({"background-image":function(){return"url("+l().sources[0].url+")"}})}),_.F("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.rC({background:function(){return"linear-gradient(180deg,\n    "+si(b(),".8")+" 0%,\n    "+si(b(),".4")+" 25%,\n    "+si(H().vibrantColorPalette?H().vibrantColorPalette.section4Color:H().sectionFourColor,".8")+" 100%)"}})}))},"fb"),E_q=_.Z(function(X){var H=X.layout;
var l=X.colorPalette;var b=X.overflowButton;var U=X.avatar;var K=X.onTap;var w=X.title;var d=X.channelName;var B=X.genre;var q=function(){var u;return H()!=="MINI_APP_LAYOUT_SQUARE"&&((u=l())==null?0:u.textPrimaryColor)?"color: "+si(l().textPrimaryColor,".7"):""};
return _.F("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.F(_.M,{cond:U,then:function(){return _.F("div",{class:"yt-mini-game-card-view-model__avatar"},_.F(_.l4,{data:U},{avatarViewModel:_.MX}))}}),_.F(_.ZE,{command:K,
className:"yt-mini-game-card-view-model__metadata-details"},_.F("h3",{class:"yt-mini-game-card-view-model__title",title:w},w),_.F(_.M,{cond:U,then:function(){return _.F("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.F("span",{class:"yt-mini-game-card-view-model__genre",title:d,style:q},d),_.F("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:q},B))},
else:function(){return _.F("span",{class:"yt-mini-game-card-view-model__genre",title:B},B)}})),_.F("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.F(_.l4,{data:b},{buttonViewModel:function(u){var e=u.data;
return _.F(_.Qk,{data:function(){return Object.assign({},e(),{customFontColor:H()==="MINI_APP_LAYOUT_SINGLETON"?e().customFontColor:void 0})}})}})))},"gb"),aX_=_.Z(function(X){var H=X.colorPalette;
var l=X.isDesktopWeb;var b=X.onTap;var U=X.accessibilityText;var K=X.overlayBadgeText;var w=X.iconName;var d=X.unplayableInlinePlaybackIconName;var B=X.actionButton;var q=X.imageData;X=X.thumbnailOverlays;return _.F("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.F(tXq,{imageData:q,colorPalette:H}),_.F(WoH,{onTap:b,imageData:q,accessibilityText:U,overlayBadgeText:K,iconName:w,unplayableInlinePlaybackIconName:d,isDesktopWeb:l,thumbnailOverlays:X}),_.F(_.M,{cond:function(){return B==
null?void 0:B()},
then:function(){return _.F(g_H,{actionButton:B})}}))},"hb"),G1D=_.Z(function(X){var H=X.description;
var l=X.isDesktopWeb;var b=X.title;var U=X.genre;var K=X.onTap;var w=X.actionButton;var d=X.overflowButton;var B=X.avatar;X=X.channelName;var q={};q=_.Qr("yt-mini-game-card-view-model--search-result-metadata-wrapper",(q["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=l,q["yt-mini-game-card-view-model--show-unplayable-on-hover"]=l,q["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!l()},q));
var u={};u=_.Qr("yt-mini-game-card-view-model__search-result-info-row",(u["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!l()},u));
return _.F("div",{class:q},_.F("div",{class:u},_.F(_.ZE,{command:K,className:"yt-mini-game-card-view-model__metadata-details"},_.F("h3",{class:"yt-mini-game-card-view-model__title",title:b},b),_.F("span",{class:"yt-mini-game-card-view-model__genre",title:U},U)),_.F(g_H,{actionButton:w,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.F("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.F(_.l4,{data:d},{buttonViewModel:_.Qk}))),_.F("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.F("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.F("div",{class:"yt-mini-game-card-view-model__avatar"},_.F(_.l4,{data:B},{avatarViewModel:function(e){var y=e.data;return _.F(_.MX,{data:function(){return Object.assign({},y(),{avatarImageSize:l()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.F(_.ZE,{command:K,
className:"yt-mini-game-card-view-model__description"},_.F("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},X)),_.F(_.ZE,{command:K,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.F("div",null)))),_.F(_.M,{cond:l,then:function(){return _.F(_.ZE,{command:K,className:"yt-mini-game-card-view-model__description"},H)}}))},"ib"),ZbH=_.Z(function(X){var H=X.ageRating;
return _.F("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.F(_.Dp,{data:function(){return{sources:[{url:H().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.F(_.Gi,{data:function(){return{badgeText:H().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"jb");_.gC(ibq,"mini-game-card-view-model",{props:{data:_.zh,className:_.zh,useFullWidth:_.zh,isDesktopWeb:_.zh,addSearchResultTopMargin:_.zh}});_.gC(x49,"dismissed-mini-game-card-view-model",{props:{data:_.zh,useSquareAspectRatio:_.zh}});var aX=function(){var X=_.a.apply(this,arguments)||this;X.isSearch=!1;X.isRichGrid=!1;return X};
_.S(aX,_.a);_.R=aX.prototype;_.R.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.R.dismissibleItemOnYtServiceRequestSent=function(X,H){H.actions&&this.dismissibleItemProcessActions(X,H.actions)};
_.R.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.R.dataChanged=function(){this.dismissibleItemReset()};
_.R.dismissibleItemProcessActions=function(X,H){for(var l=0;l<H.length;l++){var b=H[l];_.f(b,_.XC)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.f(b,_.XC)),X.stopPropagation())}};
_.R.dismissibleItemHandleReplaceEnclosingAction=function(X){this.dismissedRenderer=X.item;this.isDismissed=!0};
_.ja.Object.defineProperties(aX.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var X;return!!this.data&&!((X=this.dismissedRenderer)==null?0:X.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.dismissedRenderer)==null||!X.notificationMultiActionRenderer)}}});
aX.prototype.dataChanged=aX.prototype.dataChanged;aX.prototype.dismissibleItemOnRequestSent=aX.prototype.dismissibleItemOnRequestSent;aX.prototype.dismissibleItemOnYtServiceRequestSent=aX.prototype.dismissibleItemOnYtServiceRequestSent;_.T([_.g(),_.N("design:type",Object)],aX.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],aX.prototype,"isSearch",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],aX.prototype,"isDismissed",void 0);
_.T([_.g(),_.N("design:type",Object)],aX.prototype,"dismissedRenderer",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],aX.prototype,"isRichGrid",void 0);_.T([_.x("data.layout"),_.N("design:type",Object),_.N("design:paramtypes",[])],aX.prototype,"useSquareAspectRatio",null);_.T([_.x("data","dismissedRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],aX.prototype,"showCard",null);
_.T([_.x("data","dismissedRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],aX.prototype,"showDismissed",null);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],aX.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.T([_.Le("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aX.prototype,"dismissibleItemOnRequestSent",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aX.prototype,"dataChanged",null);_.T([_.qR({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],aX);
_.O(aX,"ytd-mini-game-card-view-model",function(){if(n_9!==void 0)return n_9;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return n_9=X},{mode:2});var Ob6;var m4z;var ZZ=function(){return _.rw.apply(this,arguments)||this};
_.S(ZZ,_.rw);ZZ.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
ZZ.prototype.getContinuationUrl=function(X){var H={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(H.itct=this.data.clickTrackingParams);return _.An(X,H)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ZZ.prototype,"data",void 0);_.T([_.qR({is:"yt-reload-continuation",noInjection:!0})],ZZ);var QGz;var T__;var iu=function(){var X=_.a.apply(this,arguments)||this;X.notificationData={};return X};
_.S(iu,_.a);_.R=iu.prototype;_.R.isMenuExpanded=function(X){return X&&X.length<=1?"undefined":"false"};
_.R.dataChanged_=function(){this.selected=void 0;var X=this.computeSelectedIndex_(this.data);X>=0&&(this.selected=X);X=this.data&&this.data.length>1;_.TW(this.hostElement,"has-items",X);_.mh(this.hostElement).querySelector("#label").tabIndex=X?0:-1};
_.R.onDropdownOpen=function(){var X=_.Bi();if(this.parentTrackingParams&&this.data){var H=_.$l(this.parentTrackingParams);this.data.forEach(function(l){X&&H&&l.trackingParams&&(l=_.$l(l.trackingParams),_.pA(X,H,l),_.nA(X,[l]))})}else this.parentTrackingParams||_.x2(new _.qd("No parent tracking params passed in for yt-dropdown-menu."))};
_.R.hasNotification=function(X){var H;if(X.targetId&&((H=this.notificationData)==null?0:H.targetId)){var l;return X.targetId===((l=this.notificationData)==null?void 0:l.targetId)}};
_.R.computeSelectedIndex_=function(X){if(X)for(var H=0,l=X.length;H<l;H++)if(X[H].selected)return H;return-1};
_.R.computeLabel_=function(X){return this.data&&X!=void 0?this.data[X].title:""};
_.R.computeShowIcon_=function(X,H){return!H&&!!X};
_.R.computeVerticalOffset_=function(X){return X?36:0};
_.R.computeEndpoint_=function(X){return X.endpoint||X.navigationEndpoint};
_.R.onLabelClick_=function(X){this.data&&this.data.length<=1?X.stopPropagation():this.menuExpanded="true"};
_.R.onIronActivate_=function(X){X=X.detail.item;var H=_.mh(this.hostElement).querySelector("#repeat").itemForElement(X);if(H&&H.trackingParams){var l=_.Bi(),b=_.$l(H.trackingParams);l&&_.xB(l,b)}if(H&&H.serviceEndpoint)_.P("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(H.serviceEndpoint):_.ci(this.hostElement,[H.serviceEndpoint]),_.QX(this.hostElement,"yt-playlist-reloading");else a:{if((H=X.querySelector("yt-supported-renderers"))&&
(H=H.rendererElement)&&H.is=="yt-reload-continuation"){H.trigger();break a}(X=X.querySelector("yt-reload-continuation"))&&X.trigger()}};
_.R.onTap_=function(X){X.preventDefault()};
_.R.onItemTap_=function(X){this.ytEndpointBehavior.onEndpointTap_(X)};
_.R.onLinkFocus_=function(X){try{var H=X.target}catch(b){}if(H){var l=H.querySelector("tp-yt-paper-item");l&&_.pc(this,"focus",function(){l.focus()})}};
_.R.onMenuClose_=function(){this.menuExpanded="false"};
_.R.isLabelIconActive_=function(X){return X==="true"};
_.R.computeHasSubtitle_=function(X){return!!X};
_.R.computeHrefForItem_=function(X){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(X))};
_.R.updateSelectedFromBinding=function(X){this.selected=X.detail.value};
_.ja.Object.defineProperties(iu.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
iu.prototype.onMenuClose_=iu.prototype.onMenuClose_;iu.prototype.onTap_=iu.prototype.onTap_;iu.prototype.onIronActivate_=iu.prototype.onIronActivate_;iu.prototype.onDropdownOpen=iu.prototype.onDropdownOpen;iu.prototype.dataChanged_=iu.prototype.dataChanged_;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],iu.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.jj.YtEndpointBehavior),_.N("design:type",Object)],iu.prototype,"ytEndpointBehavior",void 0);
_.T([_.g(),_.N("design:type",Array)],iu.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],iu.prototype,"parentTrackingParams",void 0);_.T([_.g(),_.N("design:type",Object)],iu.prototype,"selected",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],iu.prototype,"useLabel",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],iu.prototype,"useComputedAriaLabel",void 0);_.T([_.g(),_.N("design:type",String)],iu.prototype,"icon",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],iu.prototype,"iconLabel",void 0);_.T([_.g(),_.N("design:type",String)],iu.prototype,"ariaLabel",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],iu.prototype,"disabled",void 0);_.T([_.g({computed:"isMenuExpanded(data)"}),_.N("design:type",String)],iu.prototype,"menuExpanded",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],iu.prototype,"closeOnActivate",void 0);
_.T([_.g({reflectToAttribute:!0,value:_.P("web_modern_buttons")}),_.N("design:type",Boolean)],iu.prototype,"modernButtons",void 0);_.T([_.g(),_.N("design:type",Object)],iu.prototype,"notificationData",void 0);_.T([_.x("ariaLabel, selected"),_.g(),_.N("design:type",String),_.N("design:paramtypes",[])],iu.prototype,"computedAriaLabel",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iu.prototype,"dataChanged_",null);
_.T([_.Le("paper-dropdown-open"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],iu.prototype,"onDropdownOpen",null);_.T([_.Le("iron-activate"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],iu.prototype,"onIronActivate_",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],iu.prototype,"onTap_",null);
_.T([_.Le("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],iu.prototype,"onMenuClose_",null);_.T([_.qR({is:"yt-dropdown-menu",disableElementRegistration:!0})],iu);
_.O(iu,"yt-dropdown-menu",function(){if(T__===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;QGz===void 0&&(QGz=document.createElement("template"));var b=QGz;l.call(H,b.content.cloneNode(!0),X.content.firstChild);T__=X}X=T__;return X},{mode:2});var vU=function(){var X=_.a.apply(this,arguments)||this;X.hasNotification=!1;return X};
_.S(vU,_.a);vU.prototype.computeId=function(X){return X};
vU.prototype.computeHorizontalAlign=function(X){return X?"right":"left"};
vU.prototype.computeAccessibilityLabel=function(X){var H,l;return((H=X.accessibility)==null?void 0:(l=H.accessibilityData)==null?void 0:l.label)||null};
vU.prototype.notificationDataChanged=function(){var X;this.hasNotification=!!this.notificationData&&!((X=this.data)==null?0:X.icon)};
vU.prototype.notificationDataChanged=vU.prototype.notificationDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.MU.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],vU.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],vU.prototype,"data",void 0);_.T([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",String)],vU.prototype,"id",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],vU.prototype,"isRightAligned",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],vU.prototype,"disabled",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],vU.prototype,"closeOnActivate",void 0);_.T([_.g(),_.N("design:type",Object)],vU.prototype,"notificationData",void 0);_.T([_.g(),_.N("design:type",Object)],vU.prototype,"hasNotification",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],vU.prototype,"useComputedAriaLabel",void 0);_.T([_.Yh("notificationData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vU.prototype,"notificationDataChanged",null);_.T([_.qR({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],vU);
_.O(vU,"yt-sort-filter-sub-menu-renderer",function(){if(m4z===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Ob6===void 0&&(Ob6=document.createElement("template"));var b=Ob6;l.call(H,b.content.cloneNode(!0),X.content.firstChild);m4z=X}X=m4z;return X},{mode:2});var N_H=_.Z(function(X){var H=X.data;var l=_.Nq(function(){var K=H().onTap;(K=_.f(K,_.qq))&&_.jJ().resolve(_.Vr).resolveCommand(K);return!1}),b=function(){return{sources:[{url:H().thumbnailUrl,
width:120,height:90}]}},U=function(){return H().rating&&H().ratingA11yLabel&&H().reviewsCount&&H().reviewsCountA11yLabel};
return _.F("place-data-view-model",null,_.F(_.M,{cond:function(){return H().placeName&&H().placeCategory},
then:function(){return _.F("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":l},_.F(_.Dp,{data:b,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.F(_.ZE,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return H().onTap}},_.F("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return H().placeName}},function(){return H().placeName})),_.F("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.F(_.M,{cond:U,
then:function(){return _.F("div",{class:_.Qr("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.F("span",{class:"score",title:function(){return H().ratingA11yLabel}},function(){return H().rating}),_.F("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.F(_.Ja,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.F("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return H().reviewsCountA11yLabel}},function(){return H().reviewsCount}))},
else:function(){return _.F("div",{class:_.Qr("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.F("div",{class:_.Qr("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.F("span",{class:"category",
title:function(){return H().placeCategory}},function(){return H().placeCategory}))))}}))},"kb");
N_H.idomCompat=!0;_.gC(N_H,"place-data-view-model",{props:{data:_.zh}});var c7t=new _.gz("INLINE_PLAYBACK_HOOK_TOKEN");var jGz=hw({sharedUi:fGD});_.ze=F8(jGz)(jGz.sharedUi,{animatedThumbnailEnabledSelector:function(X){return X.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(X){return X.inlinePreviewEnabled},
currentPageTypeSelector:function(X){return X.currentPageType},
currentPageSubTypeSelector:function(X){return X.currentPageSubType},
persistentPanelVisibleSelector:function(X){return X.persistentPanelVisible}});var r7H=function(X){this.setActiveSlideIndex=X;this.jobIds=[];this.isSlideshowPlaying=!1},YDz=function(X,H){X.isSlideshowPlaying||(X.isSlideshowPlaying=!0,J7v(X),LoD(X,H,0))},J7v=function(X){_.v5(_.Ss,function(){X.setActiveSlideIndex(0)},1)},LoD=function(X,H,l){X.jobIds.push(_.v5(_.Ss,function(){var b=l<H-1?l+1:0;
X.setActiveSlideIndex(b);LoD(X,H,b)},1800))};var IX6,Xwq;IX6=new _.gz("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.A7F=new _.gz("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");Xwq=new _.gz("COMMON_MARK_VIEW_MODEL_TOKEN");var H4_=new _.gz("IMAGE_ON_LOAD_HANDLER_TOKEN");var ln_=_.Z(function(X){return _.F("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.F(_.M,{cond:function(){var H;return(H=X.data())==null?void 0:H.thumbnail},
then:function(H){return _.F(_.Dp,{data:H,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"lb");_.ozC=_.Z(function(X){var H=X.data;var l=X.lockupExperiments;X={};return _.F("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.F("div",{class:_.Qr("ytThumbnailOverlayButtonViewModelButton",(X.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var b;return l&&((b=l())==null?void 0:b.useLegacySizedIconButton)},X))},_.F(_.l4,{data:function(){return H().overlayButton}},{buttonViewModel:function(b){return _.F(_.Qk,{data:b.data,
buttonOverrides:function(){var U;return l&&((U=l())==null?0:U.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"mb");
_.ozC.idomCompat=!0;var b4_=_.Z(function(X){return _.F("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Nq(function(H){H.preventDefault();return!1})},_.F(_.l4,{data:function(){return X.data().buttons}},{toggleButtonViewModel:function(H){return _.F("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.F(_.KL,{data:H.data}))}}))},"nb");
b4_.idomCompat=!0;var UAH=_.Z(function(X){var H=function(){var l;return((l=_.f(X.data().rendererContext,_.RB))==null?void 0:l.label)||""};
return _.F("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.F(_.M,{cond:function(){return X.data().image},
then:function(){return _.F("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.F(_.Dp,{data:function(){return X.data().image},
alt:H}))}}),_.F(_.M,{cond:function(){return X.data().text},
then:function(){return _.F("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return X.data().text})}}))},"ob");var $A_=_.ze.animatedThumbnailEnabledSelector,OV=_.Z(function(X){var H=[],l=function(){var y,V;return _.$cb((y=X.width)==null?void 0:y.call(X),(V=X.height)==null?void 0:V.call(X))},b=_.jJ().resolve(_.c$(H4_)),U=_.SJ("yt-thumbnail-view-model",function(){H.push("elRef.value set");
var y;(y=X.playbackRef)==null||y.call(X,{thumbnailElRef:U,thumbnail:X.data().image,thumbnailOverlays:X.data().overlays,thumbnailSize:l()})});
_.DR(function(){H.push("onInit");_.E2(function(){H.push("onCleanup")})});
var K=_.Aa($A_),w=function(){var y,V;return(V=(y=X.aspectRatio)==null?void 0:y.call(X))!=null?V:0},d=function(){return(X.data().image?_.nk8(X.data().image):w())<=1&&w()===0},B=function(){return d()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},q=function(){U.value||_.x2(new _.qd("Thumbnail elRef.value is null",H.join("\n")));
b&&U.value&&b(U.value)},u=function(){var y,V;
return((y=X.hovered)==null?void 0:y.call(X))&&l()!=="large"&&((V=X.data().overlays)==null?void 0:V.some(function(p){return _.f(p,HVF)}))},e={};
return _.F("yt-thumbnail-view-model",{class:_.Qr("ytThumbnailViewModelHost",X.className,function(){return QzL(w())},function(){var y,V;
a:{var p=l(),z=(y=X.disableRounding)==null?void 0:y.call(X);y=(V=X.isClip)==null?void 0:V.call(X);if(!z&&!y)switch(p){case "large":V="ytThumbnailViewModelLarge";break a;case "small":V="ytThumbnailViewModelSmall";break a;default:V="ytThumbnailViewModelMedium";break a}V=void 0}return V},(e.ytThumbnailViewModelCinematic=d,e)),
style:_.rC({"background-color":function(){var y,V=d()?(y=X.data().backgroundColor)==null?void 0:y.lightTheme:void 0;return V?si(V,"1"):void 0}}),
el:U},_.F(_.M,{cond:d,then:function(){return _.F("div",{class:"ytThumbnailViewModelBlurredImage"},_.F(_.Dp,{data:function(){return X.data().image},
alt:"",contentMode:B,targetWidth:X.width,onload:q}))}}),_.F("div",{class:"ytThumbnailViewModelImage"},_.F(_.Dp,{data:function(){return X.data().image},
alt:"",contentMode:B,targetWidth:X.width,onload:q}),null),_.F(_.l4,{data:function(){return u()?void 0:X.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:R59,thumbnailOverlayBadgeViewModel:function(y){return _.F(_.yH,{data:y.data,thumbnailSize:l,isClip:X.isClip})},
thumbnailBottomOverlayViewModel:function(y){return _.F(bbz,{data:y.data,thumbnailSize:l,isClip:X.isClip})},
thumbnailOverlayFullViewModel:UAH,thumbnailOverlayButtonViewModel:function(y){return _.F(_.ozC,{data:y.data,lockupExperiments:X.lockupExperiments})},
channelDisclosureViewModel:function(y){y=y.data;var V;return _.F("div",null,(V=_.jJ().resolve(_.c$(IX6)))==null?void 0:V({data:y}))}}),_.F(_.l4,{data:function(){var y;
return((y=X.hovered)==null?0:y.call(X))?X.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(y){return _.F(sV,{data:y.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:b4_}),_.F(_.l4,{data:function(){var y;return((y=X.hovered)==null?0:y.call(X))&&K()?X.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:ln_}),_.F(_.M,{cond:X.isClip,then:function(){return _.F("div",{class:"ytPinkingNsHost"},_.F("svg",{class:"ytPinkingNsPinkingLeft"},_.F("defs",null,_.F("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.F("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.F("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.F("svg",{class:"ytPinkingNsPinkingRight"},_.F("defs",null,_.F("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.F("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.F("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"pb");
OV.idomCompat={callbacks:{playbackRef:!0}};var KEH=_.Z(function(X){var H=_.C(_.FU(-1,void 0,"RW2Ole")),l=H.next().value,b=H.next().value;_.DR(function(){var U=new r7H(b);YDz(U,X.data().thumbnails.length);_.E2(function(){if(U.isSlideshowPlaying){U.isSlideshowPlaying=!1;for(var K=U.jobIds,w=0,d=K.length;w<d;w++)_.Ss.cancelJob(K[w]);U.jobIds.length=0}})});
return _.F("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.F(_.l4,{data:function(){return X.data().thumbnails}},{thumbnailViewModel:function(U,K){return _.F("div",{class:function(){var w=!X.data().primaryThumbnail,d=K(),B=l(),q=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
w&&d===0&&q.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");d<=B&&q.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return q.join(" ")}},_.F(OV,{data:U.data,
disableRounding:X.disableRounding}))}}))},"qb");
KEH.idomCompat=!0;var TpK=new _.gz("DWELL_DETECTOR_REGISTRY_TOKEN");var Caq=_.Z(function(X){var H=NpZ(X.triggeringElement),l=function(){return!!X.data().primaryThumbnail},b=function(){var K,w=(K=X.data())==null?void 0:K.maxHeight,d;
K=(d=X.maxHeight)==null?void 0:d.call(X);return w!=null&&K!=null?Math.min(w,K):K!=null?K:w},U=function(){var K=b();
if(K){var w;if(l()&&(w=X.includeStackHeight)!=null&&w.call(X)){var d;w=((d=X.doubleStack)==null?0:d.call(X))?8:4}else w=0;K=K-w-1;if(!(K<0)){d=Math;w=d.ceil;var B,q;var u=Ucy((q=(B=X.aspectRatio)==null?void 0:B.call(X))!=null?q:0);return w.call(d,K*u)}}};
return _.F("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.rC({height:function(){return b()?b()+"px":void 0},
width:function(){return U()?U()+"px":void 0}})},_.F(Rjq,{stackEnabled:l,
thumbnailSize:function(){var K,w;return _.$cb((K=X.width)==null?void 0:K.call(X),(w=X.height)==null?void 0:w.call(X))},
doubleStack:X.doubleStack,stackColor:function(){return X.data().stackColor},
includeStackHeight:X.includeStackHeight},_.F(_.l4,{data:function(){return X.data().primaryThumbnail}},{thumbnailViewModel:function(K){var w={};
return _.F(OV,{data:K.data,width:X.width,height:X.height,aspectRatio:X.aspectRatio,disableRounding:X.disableRounding,className:_.Qr((w.ytCollectionThumbnailViewModelHostHasStacks=l,w)),hovered:X.hovered,playbackRef:X.playbackRef})}}),_.F(_.M,{cond:function(){var K;
return H()&&((K=X.data().thumbnails)==null?void 0:K.length)},
then:function(){return _.F("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.F(KEH,{data:X.data,disableRounding:function(){return!l()}}))}})))},"rb");
Caq.idomCompat={callbacks:{playbackRef:!0}};
var Rjq=_.Z(function(X){var H=X.children;var l=X.stackEnabled;var b=X.thumbnailSize;var U=X.doubleStack;var K=X.stackColor;var w=X.includeStackHeight;var d,B=(d=_.jJ().resolve(_.c$(_.b4)))==null?void 0:d();return _.F(_.M,{cond:l,then:function(){return _.F(EJC,{data:function(){var q,u;return{experimentEnabled:!0,thumbnailSize:b(),doubleStack:U==null?void 0:U(),color:B?K==null?void 0:(q=K())==null?void 0:q.darkTheme:K==null?void 0:(u=K())==null?void 0:u.lightTheme,enableResponsiveMode:!1,includeStackHeight:w==
null?void 0:w()}}},H)},
else:function(){return H}})},"sb");var wwD=new _.gz("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");_.dAH=_.Z(function(X){var H=X.data;X=_.SJ("ad-card-badge-view-model");return _.F("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:X},_.F(_.M,{cond:function(){return H().imageBadge},
then:function(l){return _.F(_.Dp,{data:l,alt:""})}}))},"tb");var QH;_.mf={calledOnce:!0,state:"visible"};QH={calledOnce:!0,state:"hidden"};_.Ti=_.Z(function(X){var H=_.gT(X,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});X=Object.assign({},H);var l=H.data;H=H.customCommandResolver;var b=(delete X.data,delete X.customCommandResolver,X);X=_.jh({visibilityCallback:function(d,B){var q,u=(q=l().interaction)==null?void 0:q.onFirstVisible;d&&(u&&_.yr(u),b.setOnErrorHandler()&&cXk(B))},
showOption:_.mf});H=_.P6(function(){return l().interaction},H,function(){var d;
return(d=b.listenToTapEvent)==null?void 0:d.call(b)});
var U=_.C(_.FU(!1,void 0,"wAC0Lc")),K=U.next().value,w=U.next().value;U=_.Nq(function(d){var B;((B=b.setTouchEndHandler)==null?0:B.call(b))&&!K()&&(d.currentTarget.click(),w(!0),setTimeout(function(){w(!1)},100));
return!1});
return _.F("ad-image-view-model",{class:function(){var d,B=[((d=l().interaction)==null?0:d.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],q;((q=b.isGridViewEnabled)==null?0:q.call(b))&&B.push("ytwAdImageViewModelHostInGridView");return B.join(" ")},
el:_.xl(X,H),"on:touchend":U},_.F("div",{class:"ytwAdImageViewModelHostImageContainer"},_.F(_.Dp,{data:function(){var d;return{sources:l().imageSources,contentMode:(d=l().imageProperties)==null?void 0:d.contentMode}},
alt:function(){var d,B;return((d=l().interaction)==null?void 0:(B=d.accessibility)==null?void 0:B.label)||""},
targetHeight:b.targetHeight,targetWidth:b.targetWidth,preserveHeight:b.preserveHeight,preserveWidth:b.preserveWidth,useWidth:b.useWidth,style:function(){var d,B;return"vertical-align: bottom;"+(((d=l().background)==null?0:d.color)?"background-color:"+_.BM((B=l().background)==null?void 0:B.color)+";":"")},
className:function(){return b.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var d,B;return(B=(d=b.setDraggable)==null?void 0:d.call(b))!=null?B:void 0}})))},"vb");var hj_=_.Z(function(X){var H=X.data;var l=X.customCommandResolver;return _.F("carousel-ad-card-image-view-model",{class:function(){var b;return((b=H().interaction)==null?0:b.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.xl(_.jh({visibilityCallback:function(b){var U,K=(U=H().interaction)==null?void 0:U.onFirstVisible;b&&K&&_.yr(K)},
showOption:_.mf}),_.P6(function(){return H().interaction},l)),
"aria-label":function(){var b,U;return(b=H().interaction)==null?void 0:(U=b.accessibility)==null?void 0:U.label}},_.F(_.l4,{data:function(){return H().adImage}},{adImageViewModel:function(b){return _.F(_.Ti,{data:b.data,
customCommandResolver:l})}}),_.F("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.F(_.l4,{data:function(){return H().badge}},{adCardBadgeViewModel:_.dAH})),_.F(_.iJ,{model:{color:4}}))},"wb");var FEz=_.Z(function(X){var H=_.C(_.FU(0,void 0,"JJ0QQc")),l=H.next().value;H.next();var b=H.next().value,U=_.C(_.FU(!1,void 0,"f6YICe"));H=U.next().value;var K=U.next().value,w;_.E2(function(){clearTimeout(w)});
U=_.Nq(function(){var q;((q=X.animate)==null?0:q.call(X))?(K(!0),w=setTimeout(function(){K(!1);d()},200)):d();
return!1});
var d=function(){b(function(q){return(q+X.numShownItems())%X.data().length})},B={};
return _.F("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.F("div",{class:_.Qr("ytwHorizontalCarouselCarouselWrapper")},_.F("div",{class:_.Qr("ytwHorizontalCarouselCarouselInnerWrapper",(B.ytwHorizontalCarouselAnimating=H,B))},_.F(_.P$,{each:X.data,keyBy:"INDEX"},function(q,u){return _.F("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.rC({"flex-basis":function(){return"calc((100% - (8px * "+(X.numShownItems()-1)+")) / "+X.numShownItems()+")"},
order:function(){var e=u-l();e<0&&(e+=X.data().length);return e}})},X.children(q,u))}))),_.F("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":U},X.nextButton()))},"xb");var saQ=_.Z(function(X){var H=X.data;var l=X.customCommandResolver;var b=X.expansive;var U=X.isLockupAttachment;return _.F("carousel-ad-card-collection-view-model",{el:_.xl(_.jh({visibilityCallback:function(K){var w,d=(w=H().interaction)==null?void 0:w.onFirstVisible;K&&d&&_.yr(d)},
showOption:_.mf})),class:"ytwCarouselAdCardCollectionViewModelHost"},_.F(_.M,{cond:function(){return U==null?void 0:U()},
then:function(){return _.F(BPD,{data:H,customCommandResolver:l})},
else:function(){return _.F(q56,{data:H,customCommandResolver:l,expansive:b})}}))},"yb"),BPD=_.Z(function(X){var H=X.data;
var l=X.customCommandResolver;return _.F("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarousel",tabindex:0},_.F(_.l4,{data:function(){return H().carouselAdCards||[]}},{carouselAdCardImageViewModel:function(b){return _.F("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarouselItem"},_.F(hj_,{data:b.data,
customCommandResolver:l}))}}))},"zb"),q56=_.Z(function(X){var H=X.data;
var l=X.customCommandResolver;var b=X.expansive;return _.F(FEz,{data:function(){var U;return((U=H())==null?void 0:U.carouselAdCards)||[]},
nextButton:function(){return _.F(_.l4,{data:function(){return H().nextButton}},{buttonViewModel:function(U){var K=U.data;
return _.F(_.Qk,{data:function(){return(b==null?0:b())?Object.assign({},K(),{style:"mono"}):K()},
className:_.P("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(U){return _.F(_.l4,{data:U},{carouselAdCardImageViewModel:function(K){return _.F(hj_,{data:K.data,customCommandResolver:l})}})})},"Ab");_.NX=_.Z(function(X){var H=X.data;var l=X.customCommandResolver;var b=X.className;var U=X.delayedClassName;var K=X.animationEntityKey;var w=X.isCompactWidth;var d=X.isContentWidth;X=_.C(_.FU(!1,void 0,"B1koDf"));var B=X.next().value,q=X.next().value,u=_.Eq(K,""),e=_.Aw(m5Z,u),y=function(){var FO,ub;return(ub=(FO=e())==null?void 0:FO.value)!=null?ub:!1},V=function(){_.Wc(_.Us("booleanEntity",u(),{key:u(),
value:!0}));v=void 0};
K=_.C(_.Gx(y));var p=K.next().value,z=K.next().value;K=_.C(_.Gx(y));var t=K.next().value,W=K.next().value;K=_.C(_.Gx(function(){var FO;return y()?(FO=H().styleTransitionConfig)==null?void 0:FO.destinationStyle:void 0}));
var G=K.next().value,r=K.next().value,Q=function(){var FO=Object.assign({},H(),G()&&{style:G()});var ub,g8,mm=FO.label,QZ=(ub=FO.interaction)==null?void 0:(g8=ub.accessibility)==null?void 0:g8.label;ub=FO.iconImage?FO.label&&FO.label.content?FO.iconLeading?"leading":"trailing":"icon-only":void 0;FO={formattedButtonText:mm,accessibilityLabel:QZ,style:Lty(FO.style),type:YSK(FO.style),state:"active",size:JXm(FO.size),iconPosition:ub,disabled:!1,aTagConfig:rXk(FO,l)};FO.focused=B();return FO},v;
K=_.jh({visibilityCallback:function(FO){var ub,g8=(ub=H().interaction)==null?void 0:ub.onFirstVisible;FO&&g8&&_.yr(g8)},
showOption:_.mf});var J=function(){return BKk(Q(),!!H().iconImage)};
X={};var Y={};b=_.Qr(function(){return"ytwAdButtonViewModelHost"},function(){return H().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var FO=!!H().delayedAppearanceConfig,ub=p();
return FO?ub?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var FO=!!H().delayedAppearanceConfig,ub=t();
return FO?ub?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!H().delayedAppearanceConfig||p()?U==null?void 0:U():""},(X.ytwAdButtonViewModelHostCompactWidth=function(){return w==null?void 0:w()},X),(Y.ytwAdButtonViewModelHostContentWidth=function(){return d==null?void 0:d()},Y),b!=null?b:"");
var Uy=function(){var FO,ub=(FO=H().delayedAppearanceConfig)==null?void 0:FO.delayedInvisibleSeconds;ub&&(v=_.Rs(_.Ss,function(){z(!0);Cy()},ub*1E3))},Cy=function(){var FO,ub=(FO=H().delayedAppearanceConfig)==null?void 0:FO.delayedVisibleSeconds;
ub&&(v=_.Rs(_.Ss,function(){W(!0);sy()},ub*1E3))},sy=function(){var FO,ub=(FO=H().styleTransitionConfig)==null?void 0:FO.styleTransitionSeconds,g8,mm=(g8=H().styleTransitionConfig)==null?void 0:g8.destinationStyle;
ub&&mm?v=_.Rs(_.Ss,function(){r(mm);V()},ub*1E3):V()};
_.DR(function(){Uy()});
_.E2(function(){v&&_.Ss.cancelJob(v)});
return _.F("ad-button-view-model",{"on:focusin":_.Nq(function(){var FO=_.jJ().resolve(_.c$(_.aE));FO&&q(FO.isKeyBoardInUse());return!1}),
"on:focusout":_.Nq(function(){q(!1);return!1}),
class:b,el:_.xl(K),style:_.rC({"transition-duration":"0.3s"})},_.F(_.M,{cond:Q,then:function(){return _.F(_.ms,{data:Q,icon:function(){return _.F(_.M,{cond:function(){return H().iconImage},
then:function(FO){return _.F(_.Dp,{data:FO,alt:"",targetWidth:J,targetHeight:J,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Bb");var MkC=_.Z(function(X){var H=X.data;X=function(){return H().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var l=_.jh({visibilityCallback:function(K){var w,d=(w=H().interaction)==null?void 0:w.onFirstVisible;K&&d&&_.yr(d)},
showOption:_.mf}),b={},U={};return _.F("ad-button-group-view-model",{class:_.Qr("ytwAdButtonGroupViewModelHost",(b.ytwAdButtonGroupViewModelHostCompactWidth=X,b)),el:_.xl(l)},_.F("div",{class:_.Qr("ytwAdButtonGroupViewModelHostSecondaryButton",(U.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=X,U))},_.F(_.l4,{data:function(){return H().secondaryAdButton}},{adButtonViewModel:function(K){return _.F(_.NX,{data:K.data})}})),_.F("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.F(_.l4,
{data:function(){return H().primaryAdButton}},{adButtonViewModel:function(K){return _.F(_.NX,{data:K.data})}})))},"Cb");var uDF=_.Z(function(X){var H=function(){var l;return((l=X.data())==null?void 0:l.answers)||[]};
return _.F("yt-survey-icons",{class:"ytSurveyIconsHost"},_.F("div",{class:"ytSurveyIconsHeader"},_.F("div",{class:"ytSurveyIconsTitle"},function(){var l;return(l=X.data())==null?void 0:l.text}),_.F("div",null,_.F(_.ms,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var l;(l=X.onDismiss)==null||l.call(X)}}},
iconName:"DISMISSAL"}))),_.F("div",null,_.F("div",{class:"ytSurveyIconsAnswers"},_.F(_.P$,{each:function(){return H()},
keyBy:"INDEX"},function(l,b){return _.F("div",null,_.F(_.ms,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var U;(U=X.onSelect)==null||U.call(X,l(),b)}}},
icon:function(){return _.F(_.Ja,{icon:function(){var U,K;return(U=l())==null?void 0:(K=U.icon)==null?void 0:K.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.F("div",{class:"ytSurveyIconsAnswersText"},_.F("div",null,function(){return H().length?H()[0].text:""}),_.F("div",null,function(){return H().length?H()[H().length-1].text:""}))))},"Db");var ejG=_.Z(function(X){var H=_.xl(_.Mh(function(){var B;return(B=X.data())==null?void 0:B.rendererContext},void 0,void 0,void 0,!0)),l=_.C(_.FU(!1,void 0,"GW0yjf")),b=l.next().value,U=l.next().value,K=_.Aw(QtK,function(){var B;
return(B=X.data().keys)==null?void 0:B.surveyEntityKey}),w=_.Aw(TAL,function(){var B;
return(B=X.data().keys)==null?void 0:B.surveyStateEntityKey});
_.OA("ytd-slimline-survey-show-action",function(){U(!1)});
var d=function(){var B,q;var u=(B=w())==null?void 0:(q=B.questionStack)==null?void 0:q[0];if(u!==void 0){var e,y;return(e=K())==null?void 0:(y=e.questions)==null?void 0:y[u]}};
l={};return _.F("yt-slimline-survey-view-model",{el:H,class:_.Qr("ytSlimlineSurveyViewModelHost",(l.ytSlimlineSurveyViewModelCollapsed=function(){return b()},l))},_.F("div",{class:"ytSlimlineSurveyViewModelContainer"},_.F(_.M,{cond:function(){var B;
return((B=d())==null?void 0:B.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.F(uDF,{data:function(){return d()},
onSelect:function(B,q){var u,e;return _.h(function(y){U(!0);if(e=(u=X.data())==null?void 0:u.onSelectRating)_.yr(e),_.Wc(aG6(q));_.m5(y)})},
onDismiss:function(){U(!0);var B;var q=(B=K())==null?void 0:B.dismissalFeedbackToken;B=q?{feedbackEndpoint:{feedbackToken:q}}:void 0;B&&_.Mq(B,{form:{element:H.value}})}})}})))},"Eb");var ycQ=_.Z(function(X){return _.F("yt-table-view-model",{class:_.Qr("ytTableViewModelHost",X.className)},_.F(_.P$,{each:function(){return X.data().rows||[]}},function(H){var l={};
return _.F("div",{class:_.Qr("ytTableViewModelRow",(l.ytTableViewModelRowBottomBorder=function(){return X.data().showSeparators},l))},_.F(_.P$,{each:function(){return(H==null?void 0:H.cells)||[]}},function(b,U){var K,w={};
return _.F("span",{class:_.Qr((w.ytTableViewModelRowLabel=function(){return U()===0&&X.data().showHorizontalHeaders},w.ytTableViewModelCell=function(){return!X.data().showHorizontalHeaders||U()>0},w))},(K=b.text)==null?void 0:K.content)}))}))},"Fb");var VkG=_.Z(function(X){return _.F("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.F(_.l4,{data:function(){var H;return(H=X.data())==null?void 0:H.attachments}},{flexibleActionsViewModel:function(H){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(_.u2,{data:H.data,
layout:function(){var l;return((l=X.lockupStyle())==null?void 0:l.arrangement)===1?0:1},
justifyContentOverride:function(){var l;return((l=X.lockupStyle())==null?void 0:l.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(H){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(ejG,{data:H.data}))},
expandableMetadataViewModel:function(H){H=H.data;var l;return _.F("div",{class:_.Qr("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(l=_.jJ().resolve(_.c$(wwD)))==null?void 0:l({data:H}))},
adButtonGroupViewModel:function(H){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(MkC,{data:H.data}))},
adButtonViewModel:function(H){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(_.NX,{data:H.data,isCompactWidth:!0}))},
tableViewModel:function(H){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(ycQ,{data:H.data}))},
aiCompanionAttachmentViewModel:function(H){H=H.data;var l;return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},(l=_.jJ().resolve(_.c$(_.A7F)))==null?void 0:l({data:H}))},
carouselAdCardCollectionViewModel:function(H){return _.F("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.F(saQ,{data:H.data,isLockupAttachment:!0}))}}))},"Gb");var o_O=_.Yy("rich_grid_min_item_width",310),Hbm=_.Yy("rich_grid_max_item_width",500);var h5Z,d4O;h5Z=16/9;d4O=2/3;_.cU=_.Z(function(X){var H=X.data;var l=X.className;var b=X.imageSizeConfig;var U=X.notifyOnLoaded;var K=function(){return H().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},w=function(){var y;
return _.ss((y=H())==null?void 0:y.rendererContext)};
X={};X=(X.ytContentPreviewImageViewModelHost=!0,X.ytContentPreviewImageViewModelCircleImage=function(){return K()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},X.ytContentPreviewImageViewModelTappable=function(){return w()},X);
var d=function(){var y,V;return(V=(y=_.f(H().rendererContext,_.RB))==null?void 0:y.label)!=null?V:""},B=function(){return B_k(H())},q=function(){var y=Fob(K(),H().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",b==null?void 0:b(),qDm(B()),H().layoutWidth,H().layoutHeight),V=Object.assign({},y);
y.width&&(V.width=Math.round(y.width));y.height&&(V.height=Math.round(y.height));y.maxWidth&&(V.maxWidth=Math.round(y.maxWidth));y.maxHeight&&(V.maxHeight=Math.round(y.maxHeight));return V},u=_.uL(function(){return q().height},void 0,"CxFlJb"),e=_.uL(function(){return q().width},void 0,"lb8Jhd");
return _.F("yt-content-preview-image-view-model",{el:_.xl(_.Mh(function(){var y;return(y=H())==null?void 0:y.rendererContext})),
role:function(){return w()?"link":void 0},
tabindex:function(){return w()?0:void 0},
class:_.Qr(l,X,function(){var y=K();var V=b==null?void 0:b();y=y==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||y==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||y==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||y==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(V==null?void 0:V.size)!=null&&V.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(V==null?void 0:V.size)!=null&&V.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return y}),
style:function(){var y=q(),V=[];y.width&&V.push("width: "+y.width+"px");y.height&&V.push("height: "+y.height+"px");y.maxWidth&&V.push("max-width: "+y.maxWidth+"px");y.maxHeight&&V.push("max-height: "+y.maxHeight+"px");y.fullWidth&&V.push("width: 100%");return V.join(";")}},_.F(_.M,{cond:B,
then:function(y){return _.F(_.Dp,{data:y,alt:d,"data-disabled$":function(){return!d()},
notifyOnLoaded:U,targetWidth:e,targetHeight:u,preserveWidth:function(){return!!e()},
preserveHeight:function(){return!!u()}})}}),_.F(_.l4,{data:function(){var y;
return(y=H())==null?void 0:y.overlays}},{thumbnailHoverOverlayViewModel:sV,
thumbnailOverlayButtonViewModel:_.ozC}))},"Hb");
_.cU.idomCompat=!0;var jD=_.Z(function(X){var H=X.data;var l=X.className;var b=X.useSmallLayout;var U=X.useMediumText;var K=X.useHeavyText;var w=function(){return!(U==null||!U())||!(K==null||!K())};
X={};return _.F("yt-attribution-view-model",{el:_.xl(_.Mh(function(){var d;return(d=H())==null?void 0:d.rendererContext})),
class:_.Qr(l,(X.ytAttributionViewModelHost=!0,X.ytAttributionViewModelMediumText=U,X.ytAttributionViewModelHeavyText=K,X))},_.F(_.M,{cond:function(){return _.ss(H().rendererContext)},
then:function(){return _.F("button",{class:"ytAttributionViewModelTappable"},_.F(PaF,{data:H,useSmallLayout:b,badgesShouldInheritTypography:w}))},
else:function(){return _.F(PaF,{data:H,useSmallLayout:b,badgesShouldInheritTypography:w})}}))},"Ib"),PaF=_.Z(function(X){var H=X.data;
var l=X.useSmallLayout;var b=X.badgesShouldInheritTypography;var U=function(){return{size:(l==null?0:l())?16:24}};
return _.F(_.Xi,null,_.F(_.l4,{data:function(){return H().contentPreviewImage}},{contentPreviewImageViewModel:function(K){return _.F(_.cU,{data:K.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:U})}}),_.F(_.l4,{data:function(){return H().badge}},{badgeViewModel:function(K){return _.F(_.Gi,{data:K.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:b})}}),_.F(_.M,{cond:function(){return H().text},
then:function(){return _.F(_.Sj,{text:function(){return H().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.F(_.M,{cond:function(){return H().suffix},
then:function(){return _.F(_.Sj,{text:function(){return H().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Jb");
jD.idomCompat=!0;var fn9,pw_,S5Q,zj6,nzY;fn9=_.Z(function(X){var H=X.delimiter;var l=X.max;var b=X.index;var U=X.isStandalone;return _.F(_.M,{cond:function(){return l()-1>b()},
then:function(){var K={};return _.F("span",{class:_.Qr("yt-content-metadata-view-model__delimiter",(K["yt-content-metadata-view-model__delimiter--standalone"]=U,K)),"aria-hidden":!0},H)}})},"Kb");
pw_=_.Z(function(X){var H=X.metadataPart;var l=X.maxLines;return _.F(_.Sj,{text:function(){return H().text},
linkInheritColor:!0,className:function(){return sGy(l())},
userInput:!0})},"Lb");
S5Q=_.Z(function(X){var H=X.metadataPart;var l=X.maxLines;return _.F(_.M,{cond:function(){return H().tooltip},
then:function(b){return _.F("span",{title:b,role:"tooltip"},_.F(pw_,{metadataPart:H,maxLines:l}))},
else:function(){return _.F(pw_,{metadataPart:H,maxLines:l})}})},"Mb");
zj6=_.Z(function(X){var H=X.metadataPart;var l=X.isOverlay;var b=X.useMediumText;var U=X.hideAvatar;var K=function(){return H().maxLines!==void 0?H().maxLines:1};
return _.F(_.Xi,null,_.F(_.l4,{data:function(){return H().avatarStack}},{avatarStackViewModel:function(w){return _.F(_.eD,{data:w.data,
isOverlay:l,useMediumText:b,hideAvatar:U})},
badgeViewModel:_.Gi}),_.F(_.M,{cond:function(){return H().leadingIcon},
then:function(w){return _.F(_.Ja,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return w().name},
size:function(){return w().width}})}}),_.F(_.M,{cond:function(){return H().text},
then:function(){return _.F(S5Q,{metadataPart:H,maxLines:K})}}),_.F(_.M,{cond:function(){return H().icon},
then:function(w){return _.F(_.Ja,{className:"yt-content-metadata-view-model__icon",icon:function(){return w().name},
size:function(){return w().width}})}}))},"Nb");
nzY=_.Z(function(X){var H=X.metadataRow;var l=X.isInline;var b=X.delimiter;var U=X.isOverlay;var K=X.useMediumText;var w=X.extensions;var d=function(){var q,u=w==null?void 0:(q=w())==null?void 0:q.lockupMetadata;q=H();var e,y;return!!((u==null?0:(e=u.byline)==null?0:e.hideAvatar)&&((y=_.f(q,jI9))==null?void 0:y.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},B=function(){return H().metadataParts||[]};
X={};return _.F("div",{class:_.Qr("yt-content-metadata-view-model__metadata-row",(X["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=l,X["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var q,u=w==null?void 0:(q=w())==null?void 0:q.lockupMetadata;q=H();var e,y;return!!((u==null?0:(e=u.byline)==null?0:e.addPadding)&&((y=_.f(q,jI9))==null?void 0:y.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},X["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var q;
return!!(w==null?0:(q=w())==null?0:q.lockupMetadata)&&H().badges&&!H().metadataParts},X))},_.F(_.l4,{data:function(){return H().badges}},{badgeViewModel:function(q){return _.F("div",{class:"yt-content-metadata-view-model__badge"},_.F(_.Gi,{data:q.data,
numBadgesInRow:function(){var u,e;return((u=H())==null?void 0:(e=u.badges)==null?void 0:e.length)||0}}))}}),_.F(_.P$,{each:B},function(q,u){return _.F(_.Xi,null,_.F(zj6,{metadataPart:q,
isOverlay:U,useMediumText:K,hideAvatar:d}),_.F(fn9,{delimiter:b,max:function(){return B().length},
index:u,isStandalone:!1}))}),_.F(_.M,{cond:function(){return H().isSpacerRow&&!l()},
then:function(){return _.F("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Ob");
_.rF=_.Z(function(X){X=_.gT(X,{layout:0,isOverlay:!1});var H=X.data,l=X.layout,b=X.isOverlay,U=X.useMediumText,K=X.extensions,w=function(){return l()===0},d=function(){var q;
return((q=H().metadataRows)==null?void 0:q.filter(function(u){var e,y=K==null?void 0:(e=K())==null?void 0:e.lockupMetadata,V,p;e=!!((y==null?0:(V=y.description)==null?0:V.hideDescription)&&((p=_.f(u,jI9))==null?void 0:p.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var z,t;return!((y==null?0:(z=y.spacer)==null?0:z.hideSpacer)&&((t=_.f(u,jI9))==null?void 0:t.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||e)}))||[]},B={};
return _.F("yt-content-metadata-view-model",{class:_.Qr(X.className,"yt-content-metadata-view-model",(B["yt-content-metadata-view-model--inline"]=w,B["yt-content-metadata-view-model--tappable"]=function(){return _.ss(H().rendererContext)},B["yt-content-metadata-view-model--medium-text"]=U,B)),
el:_.xl(_.Mh(function(){return H().rendererContext}))},_.F(_.P$,{each:d},function(q,u){return _.F(_.Xi,null,_.F(nzY,{metadataRow:q,
isInline:w,delimiter:function(){return H().delimiter},
isOverlay:b,useMediumText:U,extensions:K}),_.F(_.M,{cond:function(){return w()&&!q.isSpacerRow},
then:function(){return _.F(fn9,{delimiter:function(){return H().delimiter},
max:function(){return d().length},
index:u,isStandalone:!0})}}))}))},"Pb");
_.rF.idomCompat=!0;var kzQ=_.Z(function(X){var H=_.jJ().resolve(_.c$(_.b4)),l={};return _.F("yt-lockup-metadata-view-model",{class:_.Qr("yt-lockup-metadata-view-model",function(){a:{var b=X.lockupStyle();if(b==null?0:b.isOverlay)b="yt-lockup-metadata-view-model--overlay";else switch(b==null?void 0:b.arrangement){case 1:b="yt-lockup-metadata-view-model--horizontal";break a;default:b="yt-lockup-metadata-view-model--vertical"}}return b},function(){a:{var b=X.lockupStyle();
switch(b==null?void 0:b.titleMaxLines){case 1:b="yt-lockup-metadata-view-model--title-max-lines-1";break a}b=void 0}return b},function(){a:{var b=X.lockupStyle();
if(b==null?0:b.isTiny)b="yt-lockup-metadata-view-model--tiny";else switch(b==null?void 0:b.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":b="yt-lockup-metadata-view-model--compact";break a;default:b="yt-lockup-metadata-view-model--standard"}}return b},(l["yt-lockup-metadata-view-model--overlay"]=function(){var b;
return(b=X.lockupStyle())==null?void 0:b.isOverlay},l["yt-lockup-metadata-view-model--card"]=function(){var b;
return(b=X.lockupStyle())==null?void 0:b.isCard},l["yt-lockup-metadata-view-model--centered"]=function(){var b;
return(b=X.lockupStyle())==null?void 0:b.isCentered},l["yt-lockup-metadata-view-model--typography-bump"]=function(){var b;
return(b=X.lockupStyle())==null?void 0:b.typographyBump},l["yt-lockup-metadata-view-model--legacy-typography"]=function(){var b;
return(b=X.lockupStyle())==null?void 0:b.useLegacyTypography},l["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var b;
return(b=X.lockupStyle())==null?void 0:b.useRichGridLegacyTypography},l))},_.F(_.l4,{data:function(){return X.data().image}},{avatarStackViewModel:function(b){return _.F("div",{class:"yt-lockup-metadata-view-model__avatar"},_.F(_.eD,{data:b.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(b){return _.F("div",{class:"yt-lockup-metadata-view-model__avatar"},_.F(_.MX,{data:b.data}))},
decoratedAvatarViewModel:function(b){return _.F("div",{class:"yt-lockup-metadata-view-model__avatar"},_.F(_.uu,{data:b.data}))}}),_.F("div",{class:"yt-lockup-metadata-view-model__text-container"},_.F("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var b;return(b=X.data().title)==null?void 0:b.content}},_.F(_.M,{cond:function(){return X.data().title},
then:function(b){return _.F(_.ZE,{command:X.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.rC({color:function(){var U;a:{var K=X.lockupStyle();var w=(U=X.hovered)==null?void 0:U.call(X);U=!(H==null||!H());var d;if((K==null?0:(d=K.onFocusEffect)==null?0:d.textPrimaryColor)&&w&&(K=U?K.onFocusEffect.textPrimaryColor.darkTheme:K.onFocusEffect.textPrimaryColor.lightTheme)){K=Mw(K);break a}K=void 0}return K}}),
ariaLabel:X.lockupAccessibilityLabel},_.F(_.Sj,{text:b,userInput:!0}))}})),_.F("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.rC({color:function(){var b;a:{var U=X.lockupStyle();var K=(b=X.hovered)==null?void 0:b.call(X);b=!(H==null||!H());var w;if((U==null?0:(w=U.onFocusEffect)==null?0:w.textSecondaryColor)&&K&&(U=b?U.onFocusEffect.textSecondaryColor.darkTheme:U.onFocusEffect.textSecondaryColor.lightTheme)){U=Mw(U);break a}U=void 0}return U}})},_.F(_.l4,{data:function(){return X.data().metadata}},{contentMetadataViewModel:function(b){return _.F(_.rF,{data:b.data,
layout:function(){var U,K;return(K=(U=X.layout)==null?void 0:U.call(X))!=null?K:1},
useMediumText:function(){var U,K;return((U=X.lockupStyle())==null?void 0:U.typographyBump)||((K=X.lockupStyle())==null?void 0:K.useRichGridLegacyTypography)},
extensions:function(){var U,K,w,d;return{lockupMetadata:{byline:{hideAvatar:((U=X.lockupStyle())==null?void 0:U.arrangement)===0,addPadding:((K=X.lockupStyle())==null?void 0:K.arrangement)===1},description:{hideDescription:!((w=X.lockupStyle())==null||!w.compactMetadata)},spacer:{hideSpacer:!((d=X.lockupStyle())==null||!d.compactMetadata)}}}}})}})),_.F(_.l4,{data:function(){return X.data().attribution}},{attributionViewModel:function(b){return _.F("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.F(jD,{data:b.data,
useSmallLayout:!0}))}})),_.F("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.F(_.l4,{data:function(){return X.data().menuButton}},{buttonViewModel:function(b){return _.F(_.Qk,{data:b.data,
buttonOverrides:function(){var U;return((U=X.lockupStyle())==null?0:U.isOverlay)?{style:"overlay"}:void 0}})}})))},"Qb");
kzQ.idomCompat=!0;var xAQ=_.Z(function(X){var H=_.SJ("notification-multi-action-renderer");_.xy(function(){requestAnimationFrame(function(){_.Qi(H.value)})});
var l={},b={},U={};return _.F("notification-multi-action-renderer",{class:_.Qr("ytNotificationMultiActionRendererHost",(l.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var K;return(K=X.useLegacyShelfStyle)==null?void 0:K.call(X)},l)),
el:H},_.F("span",{"aria-live":"polite",class:_.Qr("ytNotificationMultiActionRendererTextContainer",(b.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var K;return(K=X.useLegacyShelfStyle)==null?void 0:K.call(X)},b))},_.F(_.Sj,{text:function(){return X.data().responseText}})),_.F("div",{class:_.Qr("ytNotificationMultiActionRendererButtonContainer",(U.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var K;
return(K=X.useLegacyShelfStyle)==null?void 0:K.call(X)},U))},_.F(_.l4,{data:function(){var K;
return(K=X.data().buttons)==null?void 0:K.map(function(w){if(w=w.buttonRenderer){var d,B=Object,q=B.assign,u=(d=w.icon)==null?void 0:d.iconType;d=(d=w.command||w.serviceEndpoint||w.navigationEndpoint)?{innertubeCommand:d}:void 0;w={buttonViewModel:q.call(B,{},{iconName:u,onTap:d,trackingParams:w.trackingParams,titleFormatted:w.text?_.ha(w.text):void 0},u_y(w))}}else w=void 0;return w}).filter(function(w){return!!w})}},{buttonViewModel:function(K,w){return _.F("div",null,_.F(_.Qk,{data:K.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var d;return((d=X.useModernStyles)==null?0:d.call(X))?{type:w()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Sb");var DA6=_.Z(function(X){var H=_.SJ("notification-text-renderer");_.xy(function(){requestAnimationFrame(function(){_.Qi(H.value)})});
return _.F("notification-text-renderer",{el:H,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.F(_.Sj,{text:function(){return X.data().successResponseText}}))},"Ub");_.Jk=_.Z(function(X){var H=_.Aw(trk,function(){var b;return e5k((b=X.contentId)==null?void 0:b.call(X))}),l=function(){var b;
return _.f((b=H())==null?void 0:b.command,_.XC)};
return _.F(_.M,{cond:function(){var b;if(!(b=l())){var U;b=_.f((U=H())==null?void 0:U.command,lKt)}return b},
then:function(){return _.F(_.M,{cond:l,then:function(){var b={};return _.F("div",{class:_.Qr("ytDismissibleItemReplacedContent",function(){var U;return y7y((U=X.aspectRatio)==null?void 0:U.call(X))})},_.F("div",{class:_.Qr((b.ytDismissibleItemAspectRatioContainer=function(){var U;
return((U=X.aspectRatio)==null?void 0:U.call(X))!==void 0},b))},_.F(_.l4,{data:function(){var U;
return(U=l())==null?void 0:U.item}},{notificationMultiActionRenderer:function(U){return _.F(xAQ,{data:U.data,
useModernStyles:X.useModernStyle,useLegacyShelfStyle:X.useLegacyShelfStyle})},
notificationTextRenderer:DA6})))}})},
else:X.children})},"Vb");_.tk6=_.Z(function(X){var H=X.data;var l=X.customCommandResolver;X=_.xl(_.jh({visibilityCallback:function(K){var w,d=(w=H().interaction)==null?void 0:w.onFirstVisible;K&&d&&_.yr(d)},
showOption:_.mf}));var b=function(){var K;return((K=H().interaction)==null?0:K.onTap)?function(w){var d;jzh(w,(d=H().interaction)==null?void 0:d.onTap,l)}:void 0},U=function(){var K,w=H(),d=b(),B=(K=_.f(H().rendererContext,_.RB))==null?void 0:K.label;
a:switch(w.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":K=1;break a;default:K=0}return{size:fXN(w.size),type:K,onTap:d,accessibilityText:B}};
return _.F("ad-avatar-view-model",{class:function(){var K;return((K=H().interaction)==null?0:K.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:X},_.F(_.M,{cond:function(){return H().image},
then:function(K){return _.F(Koq,{data:U,image:K})}}))},"Wb");_.Ln=_.Z(function(X){var H=_.gT(X,{hasDot:!1,usedInMasthead:!1}),l=Object.assign({},H),b=H.data,U=H.hasDot;X=H.customCommandResolver;var K=H.usedInMasthead,w=(delete l.data,delete l.hasDot,delete l.customCommandResolver,delete l.usedInMasthead,l);H=function(){return b().style};
H!==void 0&&H!==null||_.v$(Error("Ih"));X=_.P6(function(){return b().interaction},X);
return _.F("ad-badge-view-model",{class:_.Qr(function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var d=w.adRenderingContextType(),B=K();
b();return d!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||B?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.xl(X)},_.F(_.Pm,{data:function(){var d;b();return{type:2,text:(d=b().label)==null?void 0:d.content,adsIncludeDot:U(),isOverlay:b().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xb");var WEv;_.YG=_.Z(function(X){var H=X.data;var l=X.customCommandResolver;var b=X.adRenderingContextType;return _.F("ad-details-line-view-model",{class:function(){var U;return((U=H().interaction)==null?0:U.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.xl(_.jh({visibilityCallback:function(U){var K,w=(K=H().interaction)==null?void 0:K.onFirstVisible;U&&w&&_.yr(w)},
showOption:_.mf}),_.P6(function(){return H().interaction},l))},_.F(_.M,{cond:function(){return H().style},
then:function(U){return _.F(_.P$,{each:function(){var K;return((K=H())==null?void 0:K.attributes)||[]},
keyBy:"INDEX"},function(K){return _.F(WEv,{attribute:K,style:U,adRenderingContextType:function(){return b()}})})}}))},"Yb");
WEv=_.Z(function(X){var H=X.attribute;var l=X.style;var b=X.adRenderingContextType;return _.F(_.M,{cond:function(){return H().text},
then:function(U){return _.F(_.Sj,{text:U,className:function(){var K=b();l();return K==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Zb");var EzQ=_.Z(function(X){var H=X.data;var l=X.typographyBump;var b=function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},U=function(){return{size:"M"}};
X={};return _.F(_.Xi,null,_.F("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.F(_.Sj,{text:function(){return H().headline},
className:_.Qr((X.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineLegacy=function(){return!_.P("enable_desktop_vdc_components")},X.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline=function(){return _.P("enable_desktop_vdc_components")},X.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return b==null?void 0:b()},X.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(l==null?void 0:l())&&!(b==null?0:b())},X)),
linkInheritColor:!0}),_.F(_.M,{cond:function(){return H().description},
then:function(K){var w={};return _.F(_.Sj,{text:K,className:_.Qr("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(w.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return b==null?void 0:b()},w.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(l==null?void 0:l())&&!(b==null?0:b())},w)),
linkInheritColor:!0})}}),_.F(_.M,{cond:function(){return H().secondaryDescription},
then:function(K){var w={};return _.F(_.Sj,{text:K,className:_.Qr("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(w.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return l==null?void 0:l()},w)),
linkInheritColor:!0})}}),_.F("div",{class:function(){return b()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.F(_.M,{cond:function(){return H().adAvatar},
then:function(){return _.F("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.F(_.l4,{data:function(){return H().adAvatar}},{adAvatarViewModel:_.tk6}))}}),_.F(_.l4,{data:function(){return H().adBadge}},{adBadgeViewModel:function(K){return _.F(_.Ln,{data:K.data,
hasDot:function(){return!!H().adDetailsLine},
adRenderingContextType:function(){return H().adRenderingContextType}})}}),_.F(_.l4,{data:function(){return H().adDetailsLine}},{adDetailsLineViewModel:function(K){return _.F(_.YG,{data:K.data,
adRenderingContextType:function(){return H().adRenderingContextType}})}}))),_.F("div",{class:function(){return _.P("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":b()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.F(_.l4,{data:function(){return H().menu}},{buttonViewModel:function(K){return _.F(_.Qk,{data:K.data,
buttonOverrides:_.P("enable_desktop_vdc_components")?U:function(){a:switch(H().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var w="S";break a;default:w="M"}return{size:w}}})}})))},"$b"),gzC=_.Z(function(X){var H=X.data;
var l=X.noBottomMargin;var b=X.useVideoLockupTopPadding;var U=X.typographyBump;X={};X=_.Qr("ytwFeedAdMetadataViewModelHostMetadata",(X.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return l==null?void 0:l()},X.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return b==null?void 0:b()},X));
var K=function(){return H().adBadge};
K!==void 0&&K!==null||_.v$(Error("Jh"));K={};var w={};return _.F(_.Xi,null,_.F(_.M,{cond:function(){return H().adAvatar},
then:function(){return _.F("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.F(_.l4,{data:function(){return H().adAvatar}},{adAvatarViewModel:function(d){return _.F(_.tk6,{data:d.data})}}))}}),_.F("div",{class:X},_.F("div",{class:_.Qr("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(K.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return U==null?void 0:U()},K.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(U==
null?void 0:U())&&_.P("web_enable_typography_bump_v2")},K))},_.F(_.Sj,{text:function(){return H().headline},
linkInheritColor:!0})),_.F(_.M,{cond:function(){return H().description},
then:function(d){return _.F(_.Sj,{text:d,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.F("div",{class:function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.P("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.F(_.l4,{data:function(){return H().adBadge}},
{adBadgeViewModel:function(d){return _.F(_.Ln,{data:d.data,
hasDot:function(){return!!H().adDetailsLine},
adRenderingContextType:function(){return H().adRenderingContextType}})}}),_.F(_.l4,{data:function(){return H().adDetailsLine}},{adDetailsLineViewModel:function(d){return _.F(_.YG,{data:d.data,
adRenderingContextType:function(){return H().adRenderingContextType}})}})),_.F(_.M,{cond:function(){return H().secondaryDescription},
then:function(d){return _.F(_.Sj,{text:d,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.F("div",{class:_.Qr("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(w.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return b==null?void 0:b()},w))},_.F(_.l4,{data:function(){return H().menu}},{buttonViewModel:_.Qk})))},"ac"),IX=_.Z(function(X){var H=X.data;
var l=X.noBottomMargin;var b=X.listenToTapEvent;var U=X.setTouchEndHandler;var K=X.useVideoLockupTopPadding;var w=X.typographyBump;X=_.jh({visibilityCallback:function(e){var y,V=(y=H().interaction)==null?void 0:y.onFirstVisible;e&&V&&_.yr(V)},
showOption:_.mf});var d=_.P6(function(){return H().interaction},void 0,function(){return b==null?void 0:b()}),B=_.C(_.FU(!1,void 0,"KSFskc")),q=B.next().value,u=B.next().value;
B=_.Nq(function(e){(U==null?0:U())&&!q()&&(e.currentTarget.click(),u(!0),setTimeout(function(){u(!1)},100));
return!1});
return _.F("feed-ad-metadata-view-model",{class:function(){var e;return((e=H().interaction)==null?0:e.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.xl(X,d),"on:touchend":B},_.F(_.ff,null,_.F(_.yO,{when:function(){return H().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.F(EzQ,{data:H,
typographyBump:w})}),_.F(_.yO,{when:function(){return H().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.F(gzC,{data:H,
noBottomMargin:l,useVideoLockupTopPadding:K,typographyBump:w})})))},"bc");var GzH,anv;GzH=_.ze.inlinePreviewEnabledSelector;_.Ak=_.Z(function(X){return _.F("yt-lockup-view-model",{class:_.Qr(X.className,"yt-lockup-view-model--wrapper")},_.F(_.Jk,{contentId:function(){return X.data().contentId},
useModernStyle:!0,aspectRatio:function(){var H,l;return((H=X.containerType)==null?void 0:H.call(X))!==3?C38(X.data().contentType,(l=X.force16By9ThumbnailAspectRatio)==null?void 0:l.call(X)):void 0}},function(){return _.F(anv,Object.assign({},X))}))},"cc");
anv=_.Z(function(X){X=_.gT(X,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0,useOverlayStyling:void 0});var H=X.data,l=X.containerLayoutConfig,b=X.containerType,U=X.sizing,K=X.protectBackground,w=X.typographyBump,d=X.force16By9ThumbnailAspectRatio,B=X.thumbnailFixedWidth,q=X.thumbnailTargetWidth,u=X.lockupExperiments,
e=X.elementsPerRow,y=X.useOverlayStyling,V=_.jJ().resolve(_.c$(_.b4));X=_.xl(_.Mh(function(){var QZ;return(QZ=H())==null?void 0:QZ.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 p=_.Aa(GzH),z=_.jJ().resolve(_.c$(c7t)),t=z?{}:void 0,W=function(){var QZ,Bz,dt;return(dt=(Bz=_.f((QZ=H())==null?void 0:QZ.rendererContext,_.RB))==null?void 0:Bz.label)!=null?dt:void 0},G=function(){var QZ;
return(QZ=_.f(H().metadata,_.rWD))==null?void 0:QZ.endorsement},r=function(){var QZ=l==null?void 0:l(),Bz;
if(QZ==null?0:QZ.containerType){var dt=(Bz=H())==null?void 0:Bz.contentType;Bz=u();var TK=w(),sG=q(),f_=K();QZ=Object.assign({},wyO(U4b(QZ),pS(QZ.responsiveSize),TK,dt,QZ.force16By9ThumbnailAspectRatio,sG,f_,void 0,Bz),{thumbnailFixedWidth:QZ.contentPreviewWidth})}else QZ=wyO(b(),U(),w(),(dt=H())==null?void 0:dt.contentType,d(),q(),K(),y(),u());return QZ};
z&&t&&z({enabled:function(){return p()},
itemPlaybackModel:function(){return H().itemPlayback},
thumbnailElRef:function(){return t.thumbnailElRef},
containerElRef:X,options:function(){var QZ=t.thumbnailOverlays||[],Bz=G(),dt;!Bz||((dt=u())==null?0:dt.onFocusEffect)||QZ.push(Bz);var TK,sG;return{thumbnail:t.thumbnail,thumbnailOverlays:QZ,accessibilityText:W(),thumbnailSize:t.thumbnailSize,enableRounding:r().isCollection,containPlayerWithinThumbnail:r().isCollection,mouseleaveCallback:function(){J(!1)},
trackingParams:(TK=_.f(H().rendererContext,_.o1))==null?void 0:(sG=TK.loggingDirectives)==null?void 0:sG.trackingParams}}});
var Q=0;z=_.C(_.FU(!1,void 0,"hPOYMe"));var v=z.next().value,J=z.next().value;z=_.C(_.FU(!1,void 0,"oGMpeb"));var Y=z.next().value,Uy=z.next().value;z=_.Nq(function(){Y()?(_.Ss.cancelJob(Q),Q=_.Ss.addJob(function(){J(!0)},8,32)):J(!0);
return!0});
var Cy=_.Nq(function(QZ){QZ=QZ.relatedTarget;var Bz=document.querySelector("ytd-video-preview");QZ&&Bz&&Bz.contains(QZ)||(Q&&(_.Ss.cancelJob(Q),Q=0),J(!1))});
_.E2(function(){Q&&(_.Ss.cancelJob(Q),Q=0)});
var sy=P3L(function(){Uy(!0)}),FO=sy.touchFeedbackEvents,ub=sy.touchFeedbackOnPointerUp,g8=sy.touchFeedbackOnPointerDown;
sy=sy.touchFeedbackOnPointerLeave;var mm={};return _.F(_.Xi,null,_.F("div",{el:X,class:_.Qr("yt-lockup-view-model",function(){a:{var QZ=r();if(QZ.metadataOnThumbnail)QZ="yt-lockup-view-model--metadata-on-thumbnail";else switch(QZ.arrangement){case 1:QZ="yt-lockup-view-model--horizontal";break a;default:QZ="yt-lockup-view-model--vertical"}}return QZ},function(){a:{var QZ=r();
if(QZ.metadataOnThumbnail)QZ="yt-lockup-view-model--metadata-on-thumbnail";else{switch(QZ.collectionStackNumber){case 1:QZ="yt-lockup-view-model--collection-stack-1";break a;case 2:QZ="yt-lockup-view-model--collection-stack-2";break a}QZ=void 0}}return QZ},function(){var QZ;
return _.MXm((QZ=H())==null?void 0:QZ.contentId)},(mm["yt-lockup-view-model--card"]=function(){return r().isCard},mm["yt-lockup-view-model--compact"]=function(){return r().isTiny||r().sizing!=="STANDARD"},mm["yt-lockup-view-model--protect-background"]=K,mm["yt-lockup-view-model--add-margins"]=function(){return r().addMarginForFullbleed},mm["yt-lockup-view-model--centered"]=function(){return r().isCentered},mm["yt-lockup-view-model--fullbleed"]=function(){return r().fullbleed},mm["yt-lockup-view-model--single-column-grid"]=
function(){return e()===1&&b()===2},mm["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var QZ;
return(QZ=u())==null?void 0:QZ.useRichGridLegacyMargin},mm["yt-lockup-view-model--flex-none"]=function(){return!_.P("lockup_flex_none_killswitch")},mm)),
"on:mousedown":g8,"on:mouseleave":Cy,"on:mouseup":ub,"on:mouseover":z,"on:touchstart":g8,"on:touchend":ub,"on:pointerleave":sy},_.F(_.iJ,{model:function(){var QZ,Bz,dt=Object,TK=dt.assign,sG=(t==null?void 0:t.thumbnailSize)||"small";a:{var f_=r();var Mv=!!(G()&&((QZ=u())==null?0:QZ.onFocusEffect));switch((t==null?void 0:t.thumbnailSize)||"small"){case "small":QZ=4;break;case "large":QZ=12;break;default:QZ=8}if(Mv)f_=QZ+12;else{switch(f_.collectionStackNumber){case 1:f_=QZ+8;break a;case 2:f_=QZ+12;
break a}f_=void 0}}sG={thumbnailSize:sG,triggerEvents:!0,customTopExtend:f_};var nd;f_=(Bz=u())==null?void 0:Bz.onFocusEffect;Mv=!(V==null||!V());if(f_){var $U,MW;Bz=Mv?($U=f_.onFocusColor)==null?void 0:$U.darkTheme:(MW=f_.onFocusColor)==null?void 0:MW.lightTheme;var ZL,uF;$U=Mv?(ZL=f_.keyLightColor)==null?void 0:ZL.darkTheme:(uF=f_.keyLightColor)==null?void 0:uF.lightTheme;var rt;ZL=Mv?(nd=f_.touchResponseColor)==null?void 0:nd.darkTheme:(rt=f_.touchResponseColor)==null?void 0:rt.lightTheme;nd={background:Bz!==
void 0?Mw(Bz):void 0,keyLight:$U!==void 0?Mw($U):void 0};rt=[];uF=_.C(f_.lightingTechniques||[]);for($U=uF.next();!$U.done;$U=uF.next())switch($U.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":rt.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":rt.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":rt.push(3)}nd={hoverEffect:{palette:nd,lightingTechniques:rt},touchEffect:{palette:{background:ZL!==void 0?Mw(ZL):void 0}}}}else nd={};return TK.call(dt,{},sG,nd)},
hovered:function(){return v()},
pointerDownEvent:FO.pointerDownEvent,pointerUpEvent:FO.pointerUpEvent,pointerLeaveEvent:FO.pointerLeaveEvent}),_.F(_.M,{cond:function(){var QZ;return G()&&v()&&((QZ=u())==null?void 0:QZ.onFocusEffect)},
then:function(){return _.F("div",{class:"yt-lockup-view-model__endorsement"},_.F(_.l4,{data:function(){return G()}},{attributionViewModel:function(QZ){return _.F(jD,{data:QZ.data,
useHeavyText:!0})}}))}}),_.F(_.ZE,{command:function(){var QZ;
return _.qh((QZ=H())==null?void 0:QZ.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(B()||r().thumbnailFixedWidth)&&r().arrangement===1?"width: "+(B()||r().thumbnailFixedWidth):""}},_.F(_.l4,{data:function(){var QZ;
return(QZ=H())==null?void 0:QZ.contentImage}},{thumbnailViewModel:function(QZ){return _.F(OV,{data:QZ.data,
aspectRatio:function(){return r().aspectRatio},
disableRounding:function(){return r().disableRounding},
width:q,hovered:function(){return v()&&!(p()&&H().itemPlayback)},
isClip:function(){var Bz;return((Bz=H())==null?void 0:Bz.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:mEy(t),lockupExperiments:function(){return u()}})},
collectionThumbnailViewModel:function(QZ){return _.F(Caq,{data:QZ.data,aspectRatio:function(){return r().aspectRatio},
disableRounding:function(){return r().disableRounding},
width:q,doubleStack:function(){return r().collectionStackNumber===2},
hovered:function(){return v()&&!(p()&&H().itemPlayback)},
playbackRef:mEy(t)})},
decoratedAvatarViewModel:_.uu})),_.F("div",{class:"yt-lockup-view-model__metadata"},_.F(_.l4,{data:function(){var QZ;return(QZ=H())==null?void 0:QZ.metadata}},{lockupMetadataViewModel:function(QZ){return _.F(kzQ,{data:QZ.data,
hovered:v,lockupStyle:r,lockupCommand:function(){var Bz;return _.qh((Bz=H())==null?void 0:Bz.rendererContext)},
lockupAccessibilityLabel:function(){return W()},
layout:function(){var Bz;return((Bz=u())==null?0:Bz.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(QZ){return _.F(IX,{data:QZ.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:w})}}),_.F(_.l4,{data:function(){var QZ;
return(QZ=H())==null?void 0:QZ.attachmentSlot}},{lockupAttachmentsViewModel:function(QZ){return _.F(VkG,{data:QZ.data,
lockupStyle:r})}}))),_.F(_.l4,{data:function(){var QZ;
return(QZ=H())==null?void 0:QZ.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(QZ){return _.F(VkG,{data:QZ.data,
lockupStyle:r})}}))},"dc");
_.Ak.idomCompat=!0;_.gC(_.Ak,"yt-lockup-view-model",{props:{data:_.zh,containerLayoutConfig:_.zh,containerType:_.zh,sizing:_.zh,protectBackground:_.zh,typographyBump:_.zh,thumbnailFixedWidth:_.zh,thumbnailTargetWidth:_.zh,force16By9ThumbnailAspectRatio:_.zh,className:_.zh,lockupExperiments:_.zh,elementsPerRow:_.zh,useOverlayStyling:_.zh}});var n_Z,Z4F=_.Z(function(X){var H=_.gT(X,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),l=H.text,b=H.alwaysShowTruncationText;X=H.truncationText;var U=H.onTextClick,K=H.maxLines,w=H.disableTextMask,d=H.textStyle,B=H.accessibilityLabel,q=H.textSize,u=H.alwaysTruncateAtMaxLines,e=H.expandOnClick;H=_.C(_.FU(!1,void 0,"EzA1q"));var y=H.next().value,V=H.next().value;H=_.Nq(function(){e()&&V(!y());U==null||U()});
var p=function(){a:switch(q()){case "medium":var Y=2;break a;case "large":Y=2.2;break a;default:Y=1.8}return Y},z=D4y(l,function(){return y()?Infinity:K()},p,w,u,y),t=z.isTruncated;
l=z.displayText;u=z.contentRef;var W=z.hiddenRef,G=z.placeholderTruncationTextRef,r=z.hiddenTruncationTextRef;z=z.truncationTextRef;var Q={},v={},J={};return _.F("truncated-text",{class:_.Qr((Q["yt-truncated-text"]=!0,Q["yt-truncated-text--overlay"]=function(){return d()==="overlay"},Q["yt-truncated-text--medium-text"]=function(){return q()==="medium"},Q["yt-truncated-text--large-text"]=function(){return q()==="large"},Q["yt-truncated-text--primary-text"]=function(){return d()==="primary-text"},Q)),
"on:click":H,style:function(){return"line-height: "+p()+"rem;"}},_.F("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:u,style:function(){return y()?"":"max-height: "+K()*p()+"rem;"}},_.F(_.Sj,{text:l}),_.F("button",{"aria-disabled":!0,
disabled:!0,class:_.Qr((v["yt-truncated-text__inline-button"]=!0,v["yt-truncated-text--hidden"]=function(){return!(!y()&&(b!=null&&b()||t()))},v)),
el:G,style:function(){return"line-height: "+p()+"rem;"}},_.F(_.Sj,{text:X}))),_.F("truncated-text-content",{class:_.Qr("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:W,style:function(){return y()?"":"max-height: "+K()*p()+"rem;"},
"aria-hidden":"true"},_.F(_.Sj,{text:l}),_.F("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:r,style:function(){return"line-height: "+p()+"rem;"}},_.F(_.Sj,{text:X}))),_.F("button",{"aria-label":B,
class:_.Qr((J["yt-truncated-text__absolute-button"]=function(){return!w()},J["yt-truncated-text__bottom-button"]=function(){return w()},J["yt-truncated-text--hidden"]=function(){return!(!y()&&(b!=null&&b()||t()))},J)),
el:z,style:function(){return"line-height: "+p()+"rem;"}},_.F(_.Sj,{text:X})))},"fc");
Z4F.idomCompat={callbacks:{onTextClick:!0}};var O4_=_.Z(function(X){var H=X.data;X=X.className;var l=_.uL(function(){return WoO(H())},void 0,"uDhDke"),b=_.F(_.Xi,null,_.F(_.M,{cond:function(){return H().heroText||H().image},
then:function(){return _.F(i4q,{data:H})}}),_.F(vzF,{data:H,
sizeSmall:function(){return H().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.F("yt-video-attribute-view-model",{class:X},_.F("div",{class:function(){var U=H();a:switch(U.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var K="yt-video-attribute-view-model--vertical";break a;default:K="yt-video-attribute-view-model--horizontal"}a:switch(U.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var w="yt-video-attribute-view-model--image-small";break a;default:w="yt-video-attribute-view-model--image-large"}a:switch(U.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var d=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":d="yt-video-attribute-view-model--image-avatar";break a;default:d=""}a:switch(U.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var B="yt-video-attribute-view-model--metadata-header";break a;default:B=""}a:switch(U.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var q="yt-video-attribute-view-model--container-card";break a;default:q=""}return["yt-video-attribute-view-model",K,w,
d,B,q,WoO(U)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.rC({"background-color":function(){var U=H();if(U.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var K="";else{K=U.lightColorPalette;U=U.darkColorPalette;var w,d=((w=_.jJ().resolve(_.c$(_.b4)))==null?0:w())&&U?U:K;K=(K=d==null?void 0:d.section2Color)?_.qw(K):""}return K}})},_.F(_.M,{cond:l,
then:function(){return _.F(_.ZE,{className:"yt-video-attribute-view-model__content-container",command:l,role:"group",ariaLabel:function(){return H().title}},b)},
else:function(){return _.F("div",{class:"yt-video-attribute-view-model__content-container"},b)}})))},"gc");
O4_.idomCompat=!0;var i4q=_.Z(function(X){var H=X.data;var l,b=(l=_.jJ().resolve(_.c$(_.b4)))==null?void 0:l(),U=function(){return b&&H().darkThemeImage?H().darkThemeImage:H().image},K=_.uL(function(){return E_l(H())},void 0,"UDqj0b");
return _.F("div",{class:"yt-video-attribute-view-model__hero-section"},_.F(_.ff,null,_.F(_.yO,{when:U},function(){return _.F(_.Dp,{data:function(){return U()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.F(_.yO,{when:function(){return H().heroText}},function(){return _.F("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.F("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return H().heroText}))})),_.F(_.M,{cond:function(){return H().overflowMenuOnTap},
then:function(){return _.F("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.F(_.ms,{data:K,iconName:"MORE_VERT"}))}}))},"hc");
i4q.idomCompat=!0;var vzF=_.Z(function(X){var H=X.data;X=X.sizeSmall;var l=function(){return H().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},b=_.uL(function(){return ew(_.uv({innertubeCommand:WoO(H())}))?"link":WoO(H())?"button":"group"},void 0,"e2MmYe"),U={};
return _.F("div",{class:_.Qr("yt-video-attribute-view-model__metadata",(U["yt-video-attribute-view-model--small-font"]=X,U)),role:b},_.F("h1",{class:"yt-video-attribute-view-model__title"},function(){return H().title}),_.F(_.M,{cond:function(){return H().subtitle},
then:function(){return _.F("h4",{class:"yt-video-attribute-view-model__subtitle"},_.F(_.M,{cond:l,then:function(){return _.F(Z4F,{text:function(){return tXl(H().subtitle)},
truncationText:function(){return tXl(H().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.F("span",null,function(){return H().subtitle})}}))}}),_.F(_.M,{cond:function(){return H().secondarySubtitle},
then:function(K){return _.F("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.F(_.Sj,{text:function(){var w=K();if(w!=null&&w.attachmentRuns){for(var d=[],B=_.C(w.attachmentRuns),q=B.next();!q.done;q=B.next())q=q.value,q.element&&d.push(Object.assign({},q,{element:Object.assign({},q.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));w=Object.assign({},w,{attachmentRuns:d})}return w}}))}}),_.F(_.l4,
{data:function(){return H().buttonViewModel}},{buttonViewModel:function(K){return _.F(_.Qk,{data:K.data,
className:"yt-video-attribute-view-model__button"})}}))},"ic");
vzF.idomCompat=!0;_.gC(O4_,"yt-video-attribute-view-model",{props:{data:_.zh,className:_.zh}});var Xg=function(){var X=_.a.apply(this,arguments)||this;X.useHighlightStyling=_.P("web_enable_deeper_metadata_highlight_styling");X.isSearch=!1;X.JSC$15614_lastScrollContainerWidth=NaN;X.pageLoadingFromNavigation=!1;X.currentIndex=0;X.supportComponentResize=!1;return X};
_.S(Xg,_.a);_.R=Xg.prototype;
_.R.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}}}}}};
_.R.attached=function(){document.addEventListener("yt-page-type-changed",_.J2(this,this.onPageChange))};
_.R.detached=function(){document.removeEventListener("yt-page-type-changed",_.J2(this,this.onPageChange))};
_.R.getItemsPath=function(){return"data.cards"};
_.R.onIronResize=function(){this.updateListStyles()};
_.R.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var X;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(X=this.data)==null?void 0:X.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.P("problem_walkthrough_sd")&&!!this.centerItems};
_.R.computeCardListStyle=function(X){return X||null};
_.R.computeEmpty=function(X){return!this.get("cards.length",X)};
_.R.computeThumbnailStyle=function(X){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",X)||null};
_.R.computeHasSubtitle=function(X){return!!this.get("header.richListHeaderRenderer.subtitle",X)};
_.R.computeInitialCountNumber=function(X){return this.hasSquareMiniApp&&X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.R.computeUseFloorScrolling=function(X){return X==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.R.computeHasGameCard=function(X){return(X=this.get("cards",X))?X.some(function(H){return H.gameCardRenderer}):!1};
_.R.computeCenterHeaderTitle=function(X){return!(X==null||!X.centerHeaderTitle)};
_.R.computeHasPortraitMiniApp=function(X){return(X=X==null?void 0:X.cards)?X.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.R.computeHasSquareMiniApp=function(X){return(X=X==null?void 0:X.cards)?X.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.R.computeHasSkinnyWidthPortraitMiniApp=function(X){return(X=X==null?void 0:X.cards)?X.some(function(H){return H.miniGameCardViewModel&&H.miniGameCardViewModel.width===135}):!1};
_.R.computeCenterItems=function(X){return!!X};
_.R.computeHasInfoPanel=function(X){var H;return X==null?void 0:(H=X.cards)==null?void 0:H.some(function(l){return l.infoPanelContentRenderer})};
_.R.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.R.getItemByIndex=function(X){var H=this.items.children;return H&&H.length>X?H[X]:void 0};
_.R.onPageChange=function(){var X=this;this.pageLoadingFromNavigation=!0;_.Ss.addJob(function(){X.pageLoadingFromNavigation=!1;_.NG(X.hostElement,"yt-terminate-video-preview-action")},8)};
_.R.updateListStyles=function(){if(_.P("problem_walkthrough_sd")&&this.JSC$15614_scrollContainer!==void 0){var X=this.JSC$15614_scrollContainer.clientWidth;X!==this.JSC$15614_lastScrollContainerWidth&&(this.JSC$15614_lastScrollContainerWidth=X,_.j4(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(X*.8,415)+"px"}),_.QX(this.hostElement,"iron-resize"))}};
_.ja.Object.defineProperties(Xg.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.P("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return!!((X=this.data)==null?0:(H=X.cards)==null?0:(l=H[0])==null?0:l.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return!!((X=this.data)==null?0:(H=X.cards)==null?0:(l=H[0])==null?0:l.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return _.P("enable_desktop_amsterdam_info_panels")&&!!((X=this.data)==null?0:(H=X.cards)==null?0:(l=H[0])==null?0:l.infoPanelContentRenderer)}}});
Xg.prototype.dataChanged=Xg.prototype.dataChanged;Xg.prototype.onIronResize=Xg.prototype.onIronResize;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.Z$.YtdHorizontalListBehavior),_.N("design:type",Object)],Xg.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.k(_.uf),_.N("design:type",Object)],Xg.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Xg.prototype,"data",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Xg.prototype,"useCustomColors",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Xg.prototype,"useHighlightStyling",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.N("design:type",Object)],Xg.prototype,"cardListStyle",void 0);_.T([_.g({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.N("design:type",Boolean)],Xg.prototype,"empty",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.N("design:type",Boolean)],Xg.prototype,"hasSubtitle",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.N("design:type",Boolean)],Xg.prototype,"thumbnailStyle",void 0);_.T([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.N("design:type",Boolean)],Xg.prototype,"hasGameCard",void 0);_.T([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.N("design:type",Boolean)],Xg.prototype,"centerHeaderTitle",void 0);
_.T([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.N("design:type",Boolean)],Xg.prototype,"hasPortraitMiniApp",void 0);_.T([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.N("design:type",Boolean)],Xg.prototype,"hasSquareMiniApp",void 0);_.T([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.N("design:type",Boolean)],Xg.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.T([_.g({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.N("design:type",Boolean)],Xg.prototype,"hasInfoPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Xg.prototype,"isSearch",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xg.prototype,"inlineStructuredDescription",void 0);_.T([_.A2("#scroll-container"),_.N("design:type",HTMLDivElement)],Xg.prototype,"JSC$15614_scrollContainer",void 0);
_.T([_.g({computed:"computeInitialCountNumber(data.style.type)"}),_.N("design:type",Number)],Xg.prototype,"initialCount",void 0);_.T([_.g({computed:"computeUseFloorScrolling(data.style.type)"}),_.N("design:type",Boolean)],Xg.prototype,"useFloorScrolling",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.N("design:type",Boolean)],Xg.prototype,"centerItems",void 0);_.T([_.g(),_.N("design:type",Object)],Xg.prototype,"pageLoadingFromNavigation",void 0);
_.T([_.g(),_.N("design:type",Object)],Xg.prototype,"currentIndex",void 0);_.T([_.g(),_.N("design:type",Number)],Xg.prototype,"scrollCount",void 0);_.T([_.g(),_.N("design:type",Object)],Xg.prototype,"supportComponentResize",void 0);_.T([_.A2("#items"),_.N("design:type",HTMLDivElement)],Xg.prototype,"items",void 0);_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xg.prototype,"onIronResize",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xg.prototype,"dataChanged",null);_.T([_.g({reflectToAttribute:!0}),_.x("inlineStructuredDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xg.prototype,"hideNavigationButton",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xg.prototype,"modernChapters",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xg.prototype,"hasVideoAttributeViewModels",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xg.prototype,"modernInfoPanels",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Xg);
_.O(Xg,"ytd-horizontal-card-list-renderer",function(){if(SDD!==void 0)return SDD;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return SDD=X},{mode:2});var mAD=_.Z(function(X){var H=X.data;var l={};return _.F("video-summary-content-view-model",{class:_.Qr("videoSummaryContentViewModelHost",X.className,(l.videoSummaryContentViewModelHostIsSearch=X.isSearch,l))},_.F(_.P$,{each:function(){var b=[],U=H().paragraphs;if(U==null||!U.length)return[];for(var K=0;K<U.length;K++){var w=_.f(U[K],jyY),d=void 0;K>0&&(d=_.f(U[K-1],jyY));d&&!!d.marker===!!w.marker?b[b.length-1].paragraphs.push(w):b.push({isList:!!w.marker,paragraphs:[w]})}return b},
keyBy:"INDEX"},function(b){return _.F(_.M,{cond:function(){return b().isList},
then:function(){return _.F("ul",{class:"videoSummaryContentViewModelList"},_.F(_.P$,{each:function(){return b().paragraphs},
keyBy:"INDEX"},function(U){return _.F("li",{class:"videoSummaryContentViewModelListItem"},_.F(_.Sj,{text:function(){return U().text}}))}))},
else:function(){return _.F("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.F(_.P$,{each:function(){return b().paragraphs},
keyBy:"INDEX"},function(U){return _.F("p",{class:"videoSummaryContentViewModelParagraph"},_.F(_.Sj,{text:function(){return U().text}}))}))}})}),_.F(_.M,{cond:function(){return!!_.f(H().likeButtonViewModel,_.p9)&&!!_.f(H().dislikeButtonViewModel,_.SY)},
then:function(){return _.F("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.F("div",{class:"videoSummaryContentViewModelLikeButton"},_.F(_.y7,{data:function(){return _.f(H().likeButtonViewModel,_.p9)},
disableIconAnimation:!0})),_.F(_.eb,{data:function(){return _.f(H().dislikeButtonViewModel,_.SY)}}))}}))},"jc");
mAD.idomCompat=!0;_.gC(mAD,"video-summary-content-view-model",{props:{data:_.zh,isSearch:_.zh,className:_.zh}});var Ha=function(){var X=_.a.apply(this,arguments)||this;var H,l;X.isExpanded=(l=(H=X.data)==null?void 0:H.isExpanded)!=null?l:!1;X.disableExpand=!1;X.showProminentLabel=!1;X.showRightSideLabel=!0;X.toggleExpandableContent=function(b){X.disableExpand||(b.stopPropagation(),_.Em(_.t2(b),X.hostElement,["info","expanded-subtitle"])||(X.isExpanded=!X.isExpanded,X.ytRendererBehavior.logExplicitClick(X.data),X.JSC$15625_cardList&&!_.P("expandable_metadata_a11y_fix_ks")&&_.N0(X,function(){_.mQ(X.hostElement)})))};
X.useSquareThumbnail=!1;X.startX=0;return X};
_.S(Ha,_.a);_.R=Ha.prototype;_.R.computeUseSquareThumbnail=function(){var X;return(X=this.data)==null?void 0:X.useSquareThumbnail};
_.R.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"}}}}};
_.R.dataChanged=function(){if(this.data){var X,H;this.isExpanded=(H=(X=this.data)==null?void 0:X.isExpanded)!=null?H:!1;var l,b,U,K;if(X=this.isDarkTheme()?(l=this.data)==null?void 0:(b=l.colorData)==null?void 0:b.darkColorPalette:(U=this.data)==null?void 0:(K=U.colorData)==null?void 0:K.lightColorPalette){var w,d;if((w=this.data)==null?0:(d=w.colorData)==null?0:d.vibrantColorPalette)X.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Rq(this.hostElement,X)}}};
_.R.isExpandedChanged=function(){this.isExpanded&&this.JSC$15625_cardList&&_.QX(this.JSC$15625_cardList,"iron-resize")};
_.R.computeIsExpanded=function(X){return!!X.isExpanded};
_.R.computeShowProminentLabel=function(X,H){var l;return!!(X==null?0:(l=X.header)==null?0:l.showLeadingCollapsedLabel)&&!H};
_.R.computeShowRightSideLabel=function(X,H){var l;return!(X==null?0:(l=X.header)==null?0:l.showLeadingCollapsedLabel)&&!H};
_.R.captureContentClick=function(X){if(!this.disableExpand)if(_.P("expandable_metadata_fix_killswitch")){var H=X.target;_.wEC(H,"ytd-macro-markers-list-item-renderer")||X.stopPropagation();(H==null?void 0:H.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Em(_.t2(X),this.hostElement,["items"])||_.WS(_.t2(X),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.R.timestampClick=function(X){X.stopPropagation();var H,l;(X=(H=this.data)==null?void 0:(l=H.header)==null?void 0:l.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(X)};
_.R.onDown=function(X){X.stopPropagation();this.startX=X.detail?X.detail.x:0};
_.R.onUp=function(X){this.skipKeyInteraction(X)&&X.stopPropagation()};
_.R.skipKeyInteraction=function(X){var H=X.target;if((H==null?void 0:H.id)==="scroll-container"||(H==null?void 0:H.id)==="items"||X.detail&&X.detail.x!==this.startX)return!0;X=_.t2(X);X=_.C(X);for(H=X.next();!H.done;H=X.next()){H=H.value;if(H===this.hostElement)break;if(H.hasAttribute&&H.hasAttribute("skip-key-interaction"))return!0}return!1};
_.R.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.ja.Object.defineProperties(Ha.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var X;return!!_.f((X=this.data)==null?void 0:X.expandedContent,cOG)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var X;return!!_.f((X=this.data)==null?void 0:X.expandedContent,JWv)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var X,H;return!((X=this.data)==null||!X.useCustomColors)&&!((H=this.data)==null||!H.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var X,H;return!!((X=this.data)==null?0:(H=X.header)==null?0:H.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var X,H;return!!((X=this.data)==null?0:(H=X.header)==null?0:H.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(X=this.data)==null?void 0:(H=X.header)==null?void 0:H.expandedSubtitleTapCommand;X=l&&_.f(l,_.aL);return _.P("web_open_ai_support_links_external_window")&&(X==null?void 0:X.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(X=this.data)==null?void 0:(H=X.header)==null?void 0:H.expandedSubtitleTapCommand;X=l&&_.f(l,_.aL);return _.P("web_open_ai_support_links_external_window")&&(X==null?void 0:X.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var X,H;return!!((X=this.data)==null?0:(H=X.header)==null?0:H.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Ha.prototype.onUp=Ha.prototype.onUp;Ha.prototype.onDown=Ha.prototype.onDown;Ha.prototype.isExpandedChanged=Ha.prototype.isExpandedChanged;Ha.prototype.dataChanged=Ha.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ha.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Ha.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ha.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ha.prototype,"isExpanded",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ha.prototype,"disableExpand",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Ha.prototype,"isSearch",void 0);
_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Ha.prototype,"isWatch",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.N("design:type",Object)],Ha.prototype,"showProminentLabel",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.N("design:type",Object)],Ha.prototype,"showRightSideLabel",void 0);
_.T([_.g({value:!1,reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ha.prototype,"hasVideoSummary",null);_.T([_.g({value:!1,reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ha.prototype,"hasLockupViewModel",null);_.T([_.g({reflectToAttribute:!0}),_.x("data","isWatch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ha.prototype,"useCustomColors",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ha.prototype,"showInfoButton",null);_.T([_.x("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ha.prototype,"showTimestamp",null);_.T([_.x("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ha.prototype,"showExpandedSubtitle",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ha.prototype,"expandedSubtitleTarget",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ha.prototype,"expandedSubtitleRel",null);_.T([_.x("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ha.prototype,"showThumbnail",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ha.prototype,"useVppShoppingDestinationStyle",null);
_.T([_.g(),_.N("design:type",Object)],Ha.prototype,"toggleExpandableContent",void 0);_.T([_.A2("ytd-horizontal-card-list-renderer"),_.N("design:type",Object)],Ha.prototype,"JSC$15625_cardList",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.N("design:type",Object)],Ha.prototype,"useSquareThumbnail",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ha.prototype,"dataChanged",null);
_.T([_.Yh("isExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ha.prototype,"isExpandedChanged",null);_.T([_.Le("down"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ha.prototype,"onDown",null);_.T([_.Le("up"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ha.prototype,"onUp",null);
_.T([_.sq({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Ha);
_.O(Ha,"ytd-expandable-metadata-renderer",function(){if(Gvq!==void 0)return Gvq;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Gvq=X},{mode:1});var QaF,TPq=function(){if(QaF!==void 0)return QaF;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return QaF=X};_.gC(_.eD,"yt-avatar-stack-view-model",{props:{className:_.zh,data:_.zh,overrides:_.zh,isOverlay:_.zh,useMediumText:_.zh,decorations:_.zh,hideAvatar:_.zh}});_.wd("itemSectionRenderer","videoRenderer","ytd-video-renderer");var l_=function(){var X=_.a.apply(this,arguments)||this;X.disableExpand=!1;X.shouldShowChannelInfo=!1;X.hasAttributedBylineText=!1;X.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return X};
_.S(l_,_.a);_.R=l_.prototype;_.R.computeUseSearchUi=function(){var X,H;return this.isSearch||((X=this.data)==null?void 0:(H=X.style)==null?void 0:H.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.R.computeUseThreeLineTitle=function(){var X;return((X=this.data)==null?void 0:X.maxTitleLines)===3};
_.R.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.P("polymer_video_renderer_defer_menu")&&!sWY?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"}}}};
_.R.attached=function(){_.TW(this.hostElement,"blue-links",_.P("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Nw(_.mh(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var X=this.get("data.buttons.buttonRenderer.serviceEndpoint"),H;X&&((H=_.f(X.commandMetadata,_.Ub))==null?0:H.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(X);this.updateInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15630_inlinePreviewHoverListener=yE({mediaRenderer:this,lockupElement:this.JSC$15630_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.R.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15630_inlinePreviewHoverListener)==null||vx(X)};
_.R.onTextWrapperClick=function(X){var H,l,b=this.hideTranslation?(H=this.data)==null?void 0:H.untranslatedNavigationEndpoint:(l=this.data)==null?void 0:l.navigationEndpoint;H=_.Em(_.t2(X),this.hostElement,["expandable-metadata"]);!b||H&&!_.P("expandable_metadata_fix_killswitch")||_.WS(_.t2(X),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.QX(this.hostElement,"yt-navigate",{endpoint:b})};
_.R.computeThumbnailWidth=function(X,H,l,b,U){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:b?U==="MASSIVE"?600:U==="BIG"?500:U==="MEDIUM"?450:420:l?360:H?128:X?210:246};
_.R.computeUseBiggerThumbs=function(X){return X&&_.P("enable_desktop_search_bigger_thumbs")};
_.R.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.R.computeHasAttributedBylineText=function(){var X;return!((X=this.data)==null||!X.attributedBylineText)};
_.R.computeVideoStyle=function(){if(_.P("enable_video_style")){var X,H;return(X=this.data)==null?void 0:(H=X.style)==null?void 0:H.value}};
_.R.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.R.handleHideItemSectionVideosByIdCommand=function(X){var H;X=(H=_.f(X,BD9))==null?void 0:H.videoId;this.data&&this.data.videoId===X&&(this.isHidden=!0)};
_.R.getMetadataSnippetContainerClass=function(X){return X?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.R.computeTitleText=function(X,H,l){return X?l:H};
_.R.computeDescriptionSnippet=function(X,H,l){return X?l:H};
_.R.computeSnippetText=function(X,H,l){return X?l:H};
_.R.computeNavigationEndpoint=function(X,H){return X?H==null?void 0:H.untranslatedNavigationEndpoint:H==null?void 0:H.navigationEndpoint};
_.R.hideInlineTitleIcon=function(X,H){return X||!H};
_.ja.Object.defineProperties(l_.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 X;return(X=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?X:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return!!(this==null?0:(X=this.data)==null?0:(H=X.channelThumbnailSupportedRenderers)==null?0:(l=H.channelThumbnailWithLinkRenderer)==null?0:l.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var X;return!!_.f((X=this.data)==null?void 0:X.avatar,Ljq)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$15630_inlinePreviewHoverListener)==null?0:fn(X))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.ja.Object.defineProperties(l_,{template:{configurable:!0,enumerable:!0,get:function(){return TPq()}}});
l_.prototype.dataChanged=l_.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],l_.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],l_.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],l_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],l_.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.k(_.Sn),_.N("design:type",Object)],l_.prototype,"ytdLockupBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],l_.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],l_.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],l_.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],l_.prototype,"isBackstageVideo",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],l_.prototype,"isPostCompactVideo",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],l_.prototype,"isHistory",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],l_.prototype,"isRichGridVideoPost",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],l_.prototype,"isHidden",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],l_.prototype,"isSearch",void 0);_.T([_.g({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.N("design:type",Boolean)],l_.prototype,"useSearchUi",void 0);_.T([_.g({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.N("design:type",Boolean)],l_.prototype,"useThreeLineTitle",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.N("design:type",Boolean)],l_.prototype,"useBiggerThumbs",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.N("design:type",Object)],l_.prototype,"videoStyle",void 0);_.T([_.g({computed:"computeDisableExpand(videoStyle)"}),_.N("design:type",Object)],l_.prototype,"disableExpand",void 0);
_.T([_.g({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.N("design:type",Object)],l_.prototype,"shouldShowChannelInfo",void 0);_.T([_.g({computed:"computeHasAttributedBylineText(data)"}),_.N("design:type",Object)],l_.prototype,"hasAttributedBylineText",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.I0("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],l_.prototype,"biggerThumbsStyle",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.N("design:type",String)],l_.prototype,"inlineTitleIcon",void 0);_.T([_.g({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.N("design:type",Object)],l_.prototype,"computedNavigationEndpoint",void 0);_.T([_.g({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(X,H){return _.JY(X.entities,"searchVideoResultEntity",H)}}),
_.N("design:type",Object)],l_.prototype,"searchVideoResultEntity",void 0);_.T([_.A2("ytd-thumbnail"),_.N("design:type",HTMLElement)],l_.prototype,"thumbnail",void 0);_.T([_.A2("#dismissible"),_.N("design:type",HTMLElement)],l_.prototype,"JSC$15630_dismissibleMedia",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],l_.prototype,"dataChanged",null);
_.T([_.x("searchVideoResultEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],l_.prototype,"hideTranslation",null);_.T([_.x("searchVideoResultEntity"),_.N("design:type",Array),_.N("design:paramtypes",[])],l_.prototype,"hiddenBadgeGroups",null);_.T([_.x("data","useAvatar"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],l_.prototype,"shouldShowChannelThumbnail",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],l_.prototype,"useAvatar",null);
_.T([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],l_.prototype,"isHovered",null);_.T([_.sq({is:"ytd-video-renderer",disableElementRegistration:!0})],l_);_.O(l_,"ytd-video-renderer",function(){return TPq()},{mode:2});var or=function(){var X=_.a.apply(this,arguments)||this;X.editDialog=null;X.roundedContainer=!0;X.isLoading=!1;X.isRichGrid=!1;X.isRichGridRepost=!1;X.reduceSidePaddings=_.P("reduce_side_paddings_in_shelf");X.JSC$15637_spinnerEl=null;return X};
_.S(or,_.a);_.R=or.prototype;
_.R.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"}}}};
_.R.contentTextChanged=function(){this.expander.reset()};
_.R.dataChanged=function(){var X=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var H=0,l=this.data.actions&&this.data.actions.length;H<l;H++)this.openEditDialog(_.f(this.data.actions[H],Y1q));if((H=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(H=this.get("buttonRenderer.hint.hintRenderer.hintId",H))&&H.startsWith("share-post-hint")){var b=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(b){_.cW.getInstance();var U=j3(_.xM(_.XS("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Ss.addLowPriorityJob(function(){_.j7(X.hostElement,U,b)})}}}};
_.R.updatePoll=function(X){X>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.R.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15637_spinnerEl||(this.JSC$15637_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.mh(this.hostElement).appendChild(this.JSC$15637_spinnerEl));this.JSC$15637_spinnerEl&&(this.JSC$15637_spinnerEl.active=this.isLoading)};
_.R.onYtNavigate=function(X){var H=this.get("updateCommentDialogEndpoint",X.detail.endpoint);H&&(this.openEditDialog(H),X.stopPropagation())};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null};
_.R.onYtCommentPollRevert=function(X,H){H&&this.updatePoll(H.selectedChoiceIndex)};
_.R.onYtServiceRequestSent=function(X,H){var l;H.endpoint&&(_.f(H.endpoint,wOz)||_.f(H.endpoint,Cf6)&&((l=_.f(H.endpoint,Cf6))==null||!l.clientActions))&&(this.isLoading=!0);if(H.actions)for(X=0;X<H.actions.length;X++)l=H.actions[X],_.f(l,oc)&&(l=this.get("updateBackstagePollAction.selectedChoiceIndex",l),l==void 0&&(l=-1),this.updatePoll(l))};
_.R.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.R.openEditDialog=function(X){X&&X.dialog&&(this.editDialog=X.dialog,X=this.editDialogEl.firstElementChild)&&(X.focus(),X.openDialog&&X.openDialog())};
_.R.computeIsPostHidden=function(X,H){return!!X||H};
_.R.computeSurfaceType=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.R.computeUsesCompactLockup=function(X){return X==="BACKSTAGE_SURFACE_TYPE_HOME"||X==="BACKSTAGE_SURFACE_TYPE_SEARCH"||X==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||X==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||X==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||X==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.R.computeShowWithoutToolbar=function(X){return!X.actionButtons&&!X.actionMenu};
_.R.computePostAttachment=function(X){if(X.backstageAttachment){if(_.f(X.backstageAttachment,myC))return"poll";if(_.f(X.backstageAttachment,SR_))return"quiz";if(_.f(X.backstageAttachment,_.YRG))return"video";if(_.f(X.backstageAttachment,zHQ))return"uploaded-videos";if(_.f(X.backstageAttachment,yJD))return X.contentText?"image":"image-only";if(_.f(X.backstageAttachment,VZQ))return"playlist"}return"none"};
_.R.computePostTabIndex=function(X){return X?0:-1};
_.R.computeButtonTooltipPosition=function(X){return this.computeUsesCompactLockup(X)?"top":"bottom"};
_.R.computeHasText=function(X){return!(X==null||!X.contentText)};
_.R.onTap=function(X){var H,l;if(((H=this.data)==null?0:H.navigationEndpoint)&&((l=this.data)==null?void 0:l.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var b;((b=this.data)==null?0:b.navigationEndpoint)&&!_.WS(_.t2(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.ja.Object.defineProperties(or.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.voteCount)||_.xM("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.f(this.data.backstageAttachment,myC))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.f(this.data.backstageAttachment,zHQ))}}});
or.prototype.onYtServiceRequestCompleted=or.prototype.onYtServiceRequestCompleted;or.prototype.onYtServiceRequestSent=or.prototype.onYtServiceRequestSent;or.prototype.onYtCommentPollRevert=or.prototype.onYtCommentPollRevert;or.prototype.onYtCommentboxDismiss=or.prototype.onYtCommentboxDismiss;or.prototype.onYtNavigate=or.prototype.onYtNavigate;or.prototype.isLoadingChanged=or.prototype.isLoadingChanged;or.prototype.dataChanged=or.prototype.dataChanged;or.prototype.contentTextChanged=or.prototype.contentTextChanged;
_.T([_.k(_.uf),_.N("design:type",Object)],or.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],or.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],or.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],or.prototype,"editDialog",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],or.prototype,"roundedContainer",void 0);_.T([_.g(),_.N("design:type",Object)],or.prototype,"isLoading",void 0);_.T([_.g({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.N("design:type",String)],or.prototype,"surface",void 0);
_.T([_.g({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.N("design:type",Boolean)],or.prototype,"usesCompactLockup",void 0);_.T([_.g({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],or.prototype,"showWithoutToolbar",void 0);_.T([_.g({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.N("design:type",String)],or.prototype,"attachment",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],or.prototype,"isRichGrid",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],or.prototype,"isRichGridRepost",void 0);_.T([_.g({reflectToAttribute:!0,value:_.P("use_better_post_dismissals")}),_.N("design:type",Boolean)],or.prototype,"useBetterPostDismissals",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],or.prototype,"reduceSidePaddings",void 0);
_.T([_.g({computed:"computeHasText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],or.prototype,"hasText",void 0);_.T([_.A2("#expander"),_.N("design:type",Object)],or.prototype,"expander",void 0);_.T([_.A2("#action-buttons"),_.N("design:type",Object)],or.prototype,"actionButtons",void 0);_.T([_.A2("#edit-dialog"),_.N("design:type",HTMLElement)],or.prototype,"editDialogEl",void 0);
_.T([_.Yh("data.contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],or.prototype,"contentTextChanged",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],or.prototype,"dataChanged",null);_.T([_.Yh("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],or.prototype,"isLoadingChanged",null);
_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],or.prototype,"onYtNavigate",null);_.T([_.Le("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],or.prototype,"onYtCommentboxDismiss",null);_.T([_.Le("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],or.prototype,"onYtCommentPollRevert",null);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],or.prototype,"onYtServiceRequestSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],or.prototype,"onYtServiceRequestCompleted",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],or.prototype,"voteCount",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],or.prototype,"commentCount",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],or.prototype,"hasPoll",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],or.prototype,"hasUploadedVideo",null);_.T([_.sq({is:"ytd-post-renderer",disableElementRegistration:!0})],or);
_.O(or,"ytd-post-renderer",function(){if(oJq!==void 0)return oJq;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return oJq=X},{mode:1});var NPQ;var ccz;var b_=function(){return _.a.apply(this,arguments)||this};
_.S(b_,_.a);b_.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],b_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.Z$.YtdHorizontalListBehavior),_.N("design:type",Object)],b_.prototype,"ytdHorizontalListBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],b_.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],b_.prototype,"data",void 0);
_.T([_.g({value:"$.items.children"}),_.N("design:type",String)],b_.prototype,"itemsPath",void 0);_.T([_.g({value:1}),_.N("design:type",Number)],b_.prototype,"initialCount",void 0);_.T([_.g({reflectToAttribute:!0,value:_.P("enable_community_page_on_desktop")}),_.N("design:type",Boolean)],b_.prototype,"useSmallerPostImageAttachments",void 0);_.T([_.g(),_.N("design:type",String)],b_.prototype,"surface",void 0);_.T([_.sq({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],b_);
_.O(b_,"ytd-post-multi-image-renderer",function(){if(ccz!==void 0)return ccz;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return ccz=X},{mode:2});var ja6={"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"}}},
UO=function(){var X=_.a.apply(this,arguments)||this;X.hasInlineCommentSection=!1;X.editDialog=null;X.isLoading=!1;X.shouldHideAuthor=!1;X.shouldShowVideoTime=!1;X.isInEngagementPanel=!1;X.hideBorder=!1;X.usesFullLockup=!1;X.shouldShowMenuInCompactView=!1;X.JSC$15652_spinnerEl=null;X.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return X};
_.S(UO,_.a);_.R=UO.prototype;_.R.configureRendererStamper=function(){return ja6};
_.R.computeIsPollHeaderEnabled=function(X){return(X==null?void 0:X.pollMetadataIcon)!=null};
_.R.getPublishTimeStampString=function(X,H){H=new Date((Number(H)-60*((new Date).getTimezoneOffset()-(new Date(Number(H)*1E3)).getTimezoneOffset()))*1E3);H=(new kM(10)).format(H);if(X&&X.runs&&X.runs.length)for(var l=0;l<X.runs.length;l++)X.runs[l].text&&(X.runs[l].text=X.runs[l].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",H));return X};
_.R.created=function(){this.JSC$15652_spinnerEl=null};
_.R.contentTextChanged=function(){this.expander.reset()};
_.R.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var X;if((X=this.data)==null?0:X.actions){X=_.C(this.data.actions);for(var H=X.next();!H.done;H=X.next())this.openEditDialog(_.f(H.value,Y1q))}};
_.R.handleSignalActionOpenPostCommentDialogAction=function(){_.mh(this.hostElement).querySelector("#action-buttons").reply()};
_.R.updatePoll=function(X,H){H&&this.set("data.pollMetadataVoteCountText",H);this.hasInlineCommentSection&&(X=X>=0,H=_.mh(this.hostElement).querySelector("#action-buttons"),X?H.reply():H.hideReplyDialog())};
_.R.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15652_spinnerEl||(this.JSC$15652_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.mh(this.hostElement).appendChild(this.JSC$15652_spinnerEl));this.JSC$15652_spinnerEl&&(this.JSC$15652_spinnerEl.active=this.isLoading)};
_.R.onYtNavigate=function(X){var H=this.get("updateCommentDialogEndpoint",X.detail.endpoint);H&&(this.openEditDialog(H),X.stopPropagation())};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null};
_.R.onYtCommentPollRevert=function(X,H){H&&this.updatePoll(H.selectedChoiceIndex,H.totalVotes)};
_.R.onYtServiceRequestSent=function(X,H){X.stopPropagation();X=_.f(H.endpoint,Cf6);if(_.f(H.endpoint,wOz)||X&&!X.clientActions)this.isLoading=!0;if(H.actions)for(X=0;X<H.actions.length;X++){var l=H.actions[X],b=_.f(l,oc);b&&(l=this.get("updateBackstagePollAction.selectedChoiceIndex",l),l===void 0&&(l=-1),this.updatePoll(l,b.totalVotes))}};
_.R.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.R.openEditDialog=function(X){X&&X.dialog&&(this.editDialog=X.dialog,X=this.editDialogElement.firstElementChild)&&(X.focus(),X.openDialog&&X.openDialog())};
_.R.computeIsBodyHidden=function(X,H){return!!X||H};
_.ja.Object.defineProperties(UO.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var X=this.data,H=X.showPostAuthorBackgroundHighlight,l=X.postAuthorBadgeType,b=X.authorEndpoint;if(!H&&l!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&l!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var U,K,w;X=_.xM(((U=X.authorText)==null?void 0:(K=U.runs)==null?void 0:(w=K[0])==null?void 0:w.text)||"");U=void 0;switch(l){case "POST_AUTHOR_BADGE_TYPE_ARTIST":U={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":U={iconType:H?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:X,authorEndpoint:b,authorCreator:H,icon:U}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var X,H;if((X=this.data)==null?0:(H=X.pollMetadataIcon)==null?0:H.iconType)return _.jL(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.voteCount)||_.xM("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.f(this.data.backstageAttachment,myC))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.f(this.data.backstageAttachment,SR_))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.f(this.data.backstageAttachment,zHQ))}}});
UO.prototype.onYtServiceRequestCompleted=UO.prototype.onYtServiceRequestCompleted;UO.prototype.onYtServiceRequestSent=UO.prototype.onYtServiceRequestSent;UO.prototype.onYtCommentPollRevert=UO.prototype.onYtCommentPollRevert;UO.prototype.onYtCommentboxDismiss=UO.prototype.onYtCommentboxDismiss;UO.prototype.onYtNavigate=UO.prototype.onYtNavigate;UO.prototype.isLoadingChanged=UO.prototype.isLoadingChanged;UO.prototype.dataChanged=UO.prototype.dataChanged;UO.prototype.contentTextChanged=UO.prototype.contentTextChanged;
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],UO.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],UO.prototype,"rendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],UO.prototype,"rendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],UO.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.A2("#contentTextExpander"),_.N("design:type",Object)],UO.prototype,"expander",void 0);_.T([_.A2("#edit-dialog"),_.N("design:type",Element)],UO.prototype,"editDialogElement",void 0);_.T([_.g(),_.N("design:type",Object)],UO.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],UO.prototype,"hasInlineCommentSection",void 0);_.T([_.g(),_.N("design:type",Object)],UO.prototype,"editDialog",void 0);_.T([_.g(),_.N("design:type",Object)],UO.prototype,"isLoading",void 0);
_.T([_.g({computed:"computeIsPollHeaderEnabled(data)"}),_.N("design:type",Boolean)],UO.prototype,"isPollHeaderEnabled",void 0);_.T([_.g(),_.N("design:type",Object)],UO.prototype,"shouldHideAuthor",void 0);_.T([_.g(),_.N("design:type",Object)],UO.prototype,"shouldShowVideoTime",void 0);_.T([_.g(),_.N("design:type",Object)],UO.prototype,"isInEngagementPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],UO.prototype,"hideBorder",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],UO.prototype,"usesFullLockup",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],UO.prototype,"shouldShowMenuInCompactView",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],UO.prototype,"authorCommentBadge",null);_.T([_.x("isInEngagementPanel"),_.N("design:type",Number),_.N("design:paramtypes",[])],UO.prototype,"postTextMaxLines",null);
_.T([_.x("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],UO.prototype,"pollIcon",null);_.T([_.Yh("data.contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UO.prototype,"contentTextChanged",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UO.prototype,"dataChanged",null);
_.T([_.Yh("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UO.prototype,"isLoadingChanged",null);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],UO.prototype,"onYtNavigate",null);_.T([_.Le("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UO.prototype,"onYtCommentboxDismiss",null);
_.T([_.Le("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],UO.prototype,"onYtCommentPollRevert",null);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],UO.prototype,"onYtServiceRequestSent",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],UO.prototype,"onYtServiceRequestCompleted",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],UO.prototype,"voteCount",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],UO.prototype,"commentCount",null);
_.T([_.x("data.backstageAttachment"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],UO.prototype,"hasPoll",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],UO.prototype,"hasQuiz",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],UO.prototype,"hasUploadedVideo",null);_.T([_.sq({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],UO);
_.O(UO,"ytd-backstage-post-renderer",function(){if(NPQ!==void 0)return NPQ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return NPQ=X},{mode:1});var rcQ;var $R=function(){var X=_.a.apply(this,arguments)||this;X.editDialog=null;X.showExpandButton=!1;X.isRichGrid=!1;X.usesFullLockup=!1;return X};
_.S($R,_.a);_.R=$R.prototype;_.R.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"}}}};
_.R.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.R.computeShowExpandButton=function(X){return this.usesCompactLockup||X&&X.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.R.computeUsesCompactLockup=function(X){return!!X.condensedContent};
_.R.computeShowFullContentText=function(X){return!X};
_.R.onYtNavigate=function(X){X=this.get("updateCommentDialogEndpoint",X.detail.endpoint);this.openEditDialog(X)};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null};
_.R.openEditDialog=function(X){X&&X.dialog&&(this.editDialog=X.dialog,X=this.repostEditDialogEl.firstElementChild)&&(X.focus(),X.openDialog&&X.openDialog())};
_.R.onTap=function(X){if(this.data){var H=null;this.usesCompactLockup&&!_.WS(_.t2(X)||[],this.hostElement,["YT-IMG-SHADOW"])?H=this.get("navigationEndpoint",this.data):X.target===this.moreButtonEl&&(H=this.get("navigationEndpoint",X.target.data));H&&_.QX(this.hostElement,"yt-navigate",{endpoint:H})}};
$R.prototype.onYtCommentboxDismiss=$R.prototype.onYtCommentboxDismiss;$R.prototype.onYtNavigate=$R.prototype.onYtNavigate;$R.prototype.dataChanged=$R.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$R.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],$R.prototype,"editDialog",void 0);_.T([_.g({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],$R.prototype,"usesCompactLockup",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],$R.prototype,"showExpandButton",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],$R.prototype,"isRichGrid",void 0);
_.T([_.g({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.N("design:type",Boolean)],$R.prototype,"showFullContentText",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],$R.prototype,"usesFullLockup",void 0);_.T([_.A2("#more"),_.N("design:type",Object)],$R.prototype,"moreButtonEl",void 0);_.T([_.A2("#repost-content-text"),_.N("design:type",HTMLElement)],$R.prototype,"repostContentTextEl",void 0);
_.T([_.A2("#repost-edit-dialog"),_.N("design:type",HTMLElement)],$R.prototype,"repostEditDialogEl",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$R.prototype,"dataChanged",null);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$R.prototype,"onYtNavigate",null);
_.T([_.Le("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$R.prototype,"onYtCommentboxDismiss",null);_.T([_.sq({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],$R);
_.O($R,"ytd-shared-post-renderer",function(){if(rcQ!==void 0)return rcQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return rcQ=X},{mode:1});var JcY;var LEt;var KB=function(){return _.a.apply(this,arguments)||this};
_.S(KB,_.a);KB.prototype.attached=function(){var X=this;this.networkStatusManager||(this.networkStatusManager=new _.iM,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){X.onlineHandler()}))};
KB.prototype.detached=function(){var X=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){X.onlineHandler()}),delete this.networkStatusManager)};
KB.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],KB.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],KB.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],KB);
_.O(KB,"ytd-reload-page-button-renderer",function(){if(LEt!==void 0)return LEt;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
return LEt=X},{mode:1});var Y5z={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"},Rr=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(Rr,_.a);_.R=Rr.prototype;_.R.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.R.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.R.computeHasBodyText=function(X){return!!X.bodyText};
_.R.computeButtons=function(X){var H=[];X.ctaButton&&H.push(X.ctaButton);X.secondaryButton&&H.push(X.secondaryButton);return H};
_.R.computeRendererStyle=function(X){return X.style?X.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():X.icon?"":"no-icon"};
_.R.getIconName=function(X,H){H=H===void 0?!1:H;if(X===void 0)return"";X=this.get("icon.iconType",X);var l;_.P("enable_hlp_client_icon_pick")?l=this.getThemedIcon(X,H):l=X;(H=Y5z[l])||(H="yt-icons");return[H,l].join(":")};
_.R.getThemedIcon=function(X,H){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(X)?H?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(X)?H?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":X};
_.R.isThumbnail=function(X){return!!X.thumbnail};
_.R.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.R.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Rr.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Rr.prototype,"data",void 0);
_.T([_.g({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],Rr.prototype,"rendererStyle",void 0);_.T([_.g({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.N("design:type",String)],Rr.prototype,"iconName",void 0);_.T([_.g({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Rr.prototype,"thumbnail",void 0);_.T([_.g({computed:"computeButtons(data)"}),_.N("design:type",Array)],Rr.prototype,"buttons",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Rr.prototype,"isDarkTheme",void 0);_.T([_.g({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Rr.prototype,"hasBodyText",void 0);_.T([_.sq({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Rr);
_.mr()(Rr,"ytd-background-promo-renderer",function(){if(JcY===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);JcY=X}X=JcY;return X},{allowedProps:["data"],
mode:1});var In_;var CB=function(){return _.a.apply(this,arguments)||this};
_.S(CB,_.a);_.ja.Object.defineProperties(CB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b,U,K;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(X=this.data)==null?void 0:(H=X.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(l=this.data)==null?void 0:(b=l.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(U=this.data)==null?void 0:(K=U.thumbnail)==null?void 0:K.darkColorPalette,experimentEnabled:!0}}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],CB.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],CB.prototype,"collectionStack",null);_.T([_.sq({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],CB);
_.O(CB,"ytd-compact-station-renderer",function(){if(In_!==void 0)return In_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return In_=X},{mode:1});var Acz;var we=function(){var X=_.a.apply(this,arguments)||this;X.isRichGrid=!1;return X};
_.S(we,_.a);we.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],we.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],we.prototype,"isRichGrid",void 0);_.T([_.sq({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],we);
_.O(we,"ytd-grid-channel-renderer",function(){if(Acz!==void 0)return Acz;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Acz=X},{mode:1});var X4z;var de=function(){return _.a.apply(this,arguments)||this};
_.S(de,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],de.prototype,"data",void 0);_.T([_.sq({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],de);
_.O(de,"ytd-grid-movie-playlist-renderer",function(){if(X4z!==void 0)return X4z;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return X4z=X},{mode:1});var HM_;var hK=function(){var X=_.a.apply(this,arguments)||this;X.downloadProgress=0;X.transferState="TRANSFER_STATE_UNKNOWN";X.modernButtons=_.P("web_modern_buttons");return X};
_.S(hK,_.a);hK.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
hK.prototype.configureRendererStamper=function(){return{"data.menu":oX}};
hK.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
hK.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.P("woffle_playlist_renderer_killswitch")){var X,H=lZy(this.entityInfo,this.transferState,this.downloadProgress,(X=this.data)==null?void 0:X.playlistId,this.isOnline);X=H.viewPlaylistText;var l=H.badges;H=H.thumbnailOverlays;this.isDownloads=!!X||!!l;this.set("data.viewPlaylistText",X);l&&l.length>0&&this.set("data.badges",l);H&&H.length>0&&this.set("data.thumbnailOverlays",
H)}};
_.ja.Object.defineProperties(hK.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 X;return!((X=this.data)==null?0:X.menu)}}});
hK.prototype.transferStateChanged=hK.prototype.transferStateChanged;hK.prototype.dataChanged=hK.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],hK.prototype,"ytdLockupBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],hK.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g({selector:_.i0K,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],hK.prototype,"downloadProgress",void 0);_.T([_.g({selector:_.yR,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],hK.prototype,"transferState",void 0);_.T([_.g({selector:Z0y,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],hK.prototype,"entityInfo",void 0);_.T([_.g({selector:_.u5}),_.N("design:type",Boolean)],hK.prototype,"isOnline",void 0);
_.T([_.g(),_.N("design:type",Object)],hK.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],hK.prototype,"downloadRenderData",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],hK.prototype,"modernButtons",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],hK.prototype,"isDownloads",void 0);_.T([_.x("transferState"),_.g({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],hK.prototype,"downloadState",null);
_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hK.prototype,"menuHidden",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hK.prototype,"dataChanged",null);_.T([_.oi("transferState","downloadProgress","isOnline"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hK.prototype,"transferStateChanged",null);
_.T([_.sq({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],hK);
_.O(hK,"ytd-grid-playlist-renderer",function(){if(HM_!==void 0)return HM_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return HM_=X},{mode:1});var l29;var Fg=function(){return _.a.apply(this,arguments)||this};
_.S(Fg,_.a);Fg.prototype.configureRendererStamper=function(){return{"data.menu":oX,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ja.Object.defineProperties(Fg.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b,U,K;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(X=this.data)==null?void 0:(H=X.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(l=this.data)==null?void 0:(b=l.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(U=this.data)==null?void 0:(K=U.thumbnail)==null?void 0:K.darkColorPalette,experimentEnabled:!0}}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],Fg.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],Fg.prototype,"ytdLockupBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Fg.prototype,"data",void 0);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fg.prototype,"collectionStack",null);_.T([_.sq({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Fg);
_.O(Fg,"ytd-grid-radio-renderer",function(){if(l29!==void 0)return l29;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return l29=X},{mode:1});var oL_;var Ba=function(){return _.a.apply(this,arguments)||this};
_.S(Ba,_.a);Ba.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Ba.prototype.computeNavigationEndpoint=function(X){return tjl(X==null?void 0:X.navigationEndpoint)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],Ba.prototype,"ytdLockupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ba.prototype,"data",void 0);_.T([_.g({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],Ba.prototype,"computedNavigationEndpoint",void 0);
_.T([_.sq({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Ba);
_.O(Ba,"ytd-grid-show-renderer",function(){if(oL_!==void 0)return oL_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return oL_=X},{mode:1});var bMt;_.qC=function(X){this.playerClient=X};
_.UNH=function(X,H,l){l=l===void 0?{}:l;return X.playerClient.setOption("ad",H,l)};
_.qC.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.qC.prototype.executeCommand=function(X,H){this.getOptions().includes("executeCommand")?_.UNH(this,"executeCommand",{command:X,layoutId:H}):_.k$("Calling executeCommand when adModule is not loaded")};var sO=function(){return _.a.apply(this,arguments)||this};
_.S(sO,_.a);sO.prototype.getLayoutId=function(){var X=_.ij("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.layoutId:null};
sO.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var X=_.aq(),H=this.getLayoutId(),l=this.data.clickthroughEndpoint;X&&H&&_.P("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?X.getPlayerPromise().then(function(b){(new _.qC(b)).executeCommand(l,H)}):_.QX(this.hostElement,"yt-navigate",{endpoint:l})}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],sO.prototype,"data",void 0);_.T([_.sq({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],sO);
_.O(sO,"ytd-shopping-companion-item-renderer",function(){if(bMt!==void 0)return bMt;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return bMt=X},{mode:1});var $N9;var MC=function(){var X=_.a.apply(this,arguments)||this;X.isExpandableContent=!1;return X};
_.S(MC,_.a);_.ja.Object.defineProperties(MC.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((X=this.data)==null?void 0:X.price)||((H=this.data)==null?void 0:(l=H.dealsData)==null?void 0:l.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var X,H;if((X=this.data)!=null&&X.dealsData&&((H=this.data)==null||!H.priceReplacementText)){X=this.data.dealsData;var l,b,U;return((l=X.salesData)==null?void 0:l.originalPrice)||((b=X.priceDropData)==null?void 0:b.referencePrice)||((U=X.promotionData)==null?void 0:U.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var X,H;return(X=this.data)==null?void 0:(H=X.dealsData)==null?void 0:H.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],MC.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],MC.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],MC.prototype,"isExpandableContent",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"showCta",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"ctaText",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"hasPriceTopPosition",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"hasPriceBottomPosition",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"useNewStyle",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"showPriceReplacementText",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"priceValue",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"showDeal",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"showAffiliateDisclaimer",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"useSaleStyle",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"useFromBrandCtaStyle",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"useFromVendorCtaStyle",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MC.prototype,"useShoppingCollectionCtaStyle",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],MC);
_.O(MC,"ytd-vertical-product-card-renderer",function(){if($N9!==void 0)return $N9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return $N9=X},{mode:1});var K_Q;var u_=function(){return _.a.apply(this,arguments)||this};
_.S(u_,_.a);u_.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],u_.prototype,"ytdLockupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],u_.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],u_);
_.O(u_,"ytd-grid-movie-renderer",function(){if(K_Q!==void 0)return K_Q;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return K_Q=X},{mode:1});var R7q;var eK=function(){var X=_.a.apply(this,arguments)||this;X.roundedFix=_.P("web_enable_merch_item_rounding_fix");X.itemStyle="small-item";return X};
_.S(eK,_.a);eK.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var X,H,l,b,U=(H=_.f((X=this.data)==null?void 0:X.buttonCommand,_.HFz))==null?void 0:(l=H.item)==null?void 0:(b=l.notificationTextRenderer)==null?void 0:b.successResponseText;U&&_.g_O(this.hostElement,U)}};
_.ja.Object.defineProperties(eK.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:X.isProductPlaceholder)!==void 0&&((H=this.data)==null?void 0:H.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],eK.prototype,"roundedFix",void 0);_.T([_.g(),_.N("design:type",Object)],eK.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],eK.prototype,"itemStyle",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],eK.prototype,"hasPrice",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],eK.prototype,"hasPriceReplacementText",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],eK.prototype,"hasAdditionalFeesText",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],eK.prototype,"hasAffiliateDisclaimer",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],eK.prototype,"isProductPlaceholder",null);
_.T([_.g(),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],eK.prototype,"hideOpenInNewIcon",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],eK.prototype,"ariaLabel",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],eK);
_.O(eK,"ytd-merch-shelf-item-renderer",function(){if(R7q!==void 0)return R7q;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return R7q=X},{mode:1});_.gC(_.Z(function(X){return _.F("button-card-view-model",{el:_.xl(_.Mh(function(){return X.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return X.data().title},
role:"button"},_.F(_.iJ,{model:{}}),_.F("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.F("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.F(_.M,{cond:function(){return X.data().image},
then:function(H){return _.F(_.Dp,{data:H,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.F("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return X.data().title})))},"kc"),"button-card-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){X=_.gT(X,{className:void 0});var H=X.data;X=X.className;var l=_.uL(function(){return H().onTapCommand},void 0,"SXkP9e");
return _.F("ytd-shopping-item-card",{class:_.Qr("ytdShoppingItemCardHost",X)},_.F(_.ZE,{command:l,className:"ytdShoppingItemCardHostLink"},_.F("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.F(_.l4,{data:function(){return H().thumbnailViewModel}},{thumbnailViewModel:function(b){return _.F(OV,{data:b.data,
aspectRatio:3})}})),_.F("div",null,_.F("p",{class:"ytdShoppingItemCardHostItemTitle"},_.F(_.Sj,{text:function(){return H().itemTitle}})),_.F("p",{class:"ytdShoppingItemCardHostPrice"},_.F(_.Sj,{text:function(){return H().priceOrStatus}})))))},"lc"),"ytd-shopping-item-card",{props:{data:_.zh,
className:_.zh}});var CO9={isAdsVideo:!0},w4t={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},dNH={showPlayerControls:!1,videoPreviewDurationMs:15E3},h7Q={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},F_q={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var DI=null,G1m={};var ibl="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(" "),y8={},v_L=(y8.FEwhat_to_watch="home",y8.FEhashtag="hashtag",y8.FEtrending="trending",y8.FEhistory="history",y8.SPunlimited="premium",y8.FEmemberships_and_purchases="paid_memberships",y8.SPredeem_code="redeem",y8.SPverify_location="locate",y8.SPminor_moment="minor_moment",
y8.FEmini_app_container="mini_app",y8.FEnews_destination="news",y8.SPopen_in_app="open_in_app",y8.FEexplore="explore",y8.FEsubscriptions="subscriptions",y8.FEsfv_audio_pivot="sfv_audio_pivot",y8.FEplaylist_aggregation="playlist_aggregation",y8);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");_.rZ("init");var BOt,qEF,MCY,uGY,sbt;BOt=function(){};
_.Hmm=_.Z(function(X){var H=X.data;var l=X.inlineMetadata;var b=X.aspectRatio;var U=X.scrimStyle;var K=X.className;var w=X.useDefaultStyle;var d=X.titleStyle;var B=new BOt,q=_.P("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",u=_.uL(function(){return(w==null?0:w())?q==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),e=_.uL(function(){return _.a5(l)||u()||!1},void 0,"GaU7Ef"),y=function(){return(U==null?void 0:
U())!==void 0?U==null?void 0:U():1},V=_.uL(function(){return H().belowThumbnailMetadata||!e()},void 0,"vsyhaf");
X=_.jh({visibilityCallback:function(Uy){var Cy=H().onFirstVisible;Uy&&Cy&&_.yr(Cy)},
showOption:{calledOnce:!0,state:"visible"}});var p=_.xl(),z={},t=_.Qr(function(){return u(),"shortsLockupViewModelHostThumbnailContainer"},(z.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.a5(b)===1},z.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.a5(b)===2},z.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.P("web_shorts_2_by_3_lockups_study")&&!_.P("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
z)),W=_.uL(function(){if(_.a5(b)===1)return 1;
_.a5(b);return 2},void 0,"bBJLCd"),G,r=function(){if(B){var Uy;
(Uy=G)==null||vx(Uy);var Cy;if(B.hostElement&&((Cy=B.data)==null?0:Cy.inlinePlayerData)){var sy,FO;Uy=((sy=B.data)==null?0:(FO=sy.inlinePlayerData)==null?0:FO.enableAudioControl)?Object.assign({},F_q):Object.assign({},h7Q);var ub,g8;((ub=B.data)==null?void 0:(g8=ub.inlinePlayerData)==null?void 0:g8.maxPlaybackLengthSec)!==void 0&&(Uy.videoPreviewDurationMs=B.data.inlinePlayerData.maxPlaybackLengthSec*1E3);G=yE({mediaRenderer:B,lockupElement:B.hostElement,thumbnailElement:p.value,videoPreviewOpts:Uy})}}};
_.Wg(function(){B&&(B.data=H(),r())},"r1zbOc");
var Q=_.uL(function(){return H().thumbnail},void 0,"wZj8b");
z=_.uL(function(){return H().badge},void 0,"qOKyU");
var v=_.uL(function(){return H().onTap},void 0,"p3kB9e"),J={},Y={};
return _.F("ytm-shorts-lockup-view-model",{el:_.xl(function(Uy){B&&(B.hostElement=Uy)},r,X),
class:_.Qr("shortsLockupViewModelHost",K)},_.F(_.Xi,null,_.F(_.ZE,{command:v,className:_.Qr("shortsLockupViewModelHostEndpoint",(J.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!V()},J),"reel-item-endpoint",""),
ariaHidden:function(){return!e()},
tabIndex:function(){return e()?0:-1}},_.F("div",{el:p,
class:_.Qr("shortsLockupViewModelHostThumbnailParentContainer",(Y.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!u()},Y))},_.F(_.M,{cond:Q,
then:function(){return _.F("div",{class:t},_.F(_.Dp,{data:function(){var Uy;return(Uy=Q==null?void 0:Q())!=null?Uy:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.F(_.l4,{data:function(){return H().thumbnailViewModel}},{thumbnailViewModel:function(Uy){return _.F(OV,{data:Uy.data,
aspectRatio:function(){return W()},
disableRounding:function(){return u()}})}}),null),_.F(_.M,{cond:e,
then:function(){return _.F(qEF,{data:H,scrimStyle:y,useDefaultStyle:w,titleStyle:d})}}),_.F(_.l4,{data:z},{badgeViewModel:function(Uy){return _.F(_.Gi,{data:Uy.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.F(_.M,{cond:function(){return e()&&H().menuOnTap},
then:function(){return _.F(sbt,{data:H,inlineMetadata:!0})}}),_.F(_.M,{cond:V,
then:function(){return _.F(MCY,{data:H,useDefaultStyle:w,inlineMetadata:e})}})))},"nc");
qEF=_.Z(function(X){var H=X.data;var l=X.scrimStyle;var b=X.useDefaultStyle;var U=X.titleStyle;var K=_.P("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",w=b&&_.P("web_hide_primary_text_for_pivot_panel"),d=_.uL(function(){return(b==null?0:b())?K==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ou5zO");
X={};X=_.Qr("shortsLockupViewModelHostInlineMetadata",(X.shortsLockupViewModelHostMetadataRounded=function(){return!d()},X.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(l==null?void 0:l())===3&&!_.P("enable_shorts_lockup_new_scrim")},X.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(l==null?void 0:l())===3&&_.P("enable_shorts_lockup_new_scrim")},X.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(l==null?void 0:l())===2||(l==null?void 0:
l())===4},X.shortsLockupViewModelHostShowOverPlayer=function(){return!0},X),"image-overlay-text");
var B={};return _.F("div",{class:X},_.F("h3",{class:_.Qr("shortsLockupViewModelHostMetadataTitle",(B.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(l==null?void 0:l())===4},B.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return H().belowThumbnailMetadata},B.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(U==null?void 0:U())===1},B.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(U==null?void 0:U())===2},B)),
"aria-label":function(){return H().accessibilityText}},_.F(_.M,{cond:function(){var q;
return!((q=H().overlayMetadata)==null||!q.primaryText)&&!w},
then:function(){return _.F(_.Sj,{text:function(){var q;return(q=H().overlayMetadata)==null?void 0:q.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.F(_.M,{cond:function(){var q;
return(q=H().overlayMetadata)==null?void 0:q.secondaryText},
then:function(){return _.F(uGY,{data:H,scrimStyle:l,className:void 0})}}))},"oc");
MCY=_.Z(function(X){var H=X.data;var l=X.useDefaultStyle;var b=X.inlineMetadata;var U=_.P("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",K=_.uL(function(){return(l==null?0:l())?U==="SHORTS_LOCKUP_STYLE_SLIM":H().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"WbzRH"),w=_.xl(),d;
X=_.Nq(function(V){if(_.B6(_.FA(V),w.value,["AVATAR-VIEW-MODEL"]))return!1;var p;(p=d)==null||p.click();return!1});
var B=_.uL(function(){return H().belowThumbnailMetadata||H().overlayMetadata},void 0,"nDfetf"),q=function(){return H().menuOnTap&&!b()},u=function(){var V;
return(V=B())==null?void 0:V.avatar},e={},y={};
return _.F("div",{class:_.Qr(function(){return K()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(e.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!u()},e.shortsLockupViewModelHostOutsideMetadataHasMenu=q,e)),
"on:click":X,el:w,role:"presentation"},_.F(_.l4,{data:u},{avatarViewModel:function(V){return _.F(_.MX,{data:V.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.F("div",null,_.F("h3",{class:_.Qr("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(y.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var V,p;
return!((V=B())==null?0:(p=V.primaryText)==null?0:p.content)},y.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=b,y)),
role:"presentation"},_.F(_.ZE,{ref:function(V){return void(d=V)},
command:function(){return H().onTap},
className:_.Qr("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var V,p;return(V=B())==null?void 0:(p=V.primaryText)==null?void 0:p.content},
"aria-label":function(){return H().accessibilityText}},_.F(_.M,{cond:function(){var V;
return(V=B())==null?void 0:V.primaryText},
then:function(V){return _.F(_.Sj,{text:V,noEndpoints:!0,noStyleRuns:!0})}}))),_.F(_.M,{cond:function(){var V;
return(V=B())==null?void 0:V.secondaryText},
then:function(V){return _.F("div",{class:_.Qr("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.F(_.Sj,{text:V,noStyleRuns:!0}))}})),_.F(_.M,{cond:q,
then:function(){return _.F(sbt,{data:H,inlineMetadata:!1})}}))},"pc");
uGY=_.Z(function(X){var H=X.data;var l=X.scrimStyle;X=X.className;var b={};return _.F("div",{class:_.Qr((b.shortsLockupViewModelHostMetadataSubhead=function(){return(l==null?void 0:l())!==4},b.shortsLockupViewModelHostMetadataSubheadNew=_.P("enable_shorts_lockup_new_scrim"),b.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(l==null?void 0:l())===4},b),X),
"aria-hidden":"true"},_.F(_.Sj,{text:function(){var U;return(U=H().overlayMetadata)==null?void 0:U.secondaryText},
noStyleRuns:!0}))},"qc");
sbt=_.Z(function(X){var H=X.data;var l=X.inlineMetadata;X={};X=_.Qr((X.shortsLockupViewModelHostInlineMetadataMenu=function(){return l()},X.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!l()},X.shortsLockupViewModelHostShowOverPlayer=function(){return!0},X),"image-overlay-text");
return _.F("div",{class:X},_.F(_.ms,{data:function(){return{style:l()?"overlay":"mono",accessibilityLabel:H().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(b){b.preventDefault();b.stopPropagation();var U=_.uv({elementsCommand:H().menuOnTap,forceNewState:!0});if(U==null?0:U.onclick)U.onclick(b)}}},
iconName:"MORE_VERT"}))},"rc");var ocl=_.Z(function(X){var H=X.data;var l=X.inlineMetadata;var b=X.aspectRatio;var U=X.scrimStyle;var K=X.className;var w=X.useDefaultStyle;X=_.uL(function(){var d=H().entityId;return d?d.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.F("ytm-shorts-lockup-view-model-v2",{class:_.Qr("shortsLockupViewModelHost",K)},_.F(_.Jk,{contentId:X,aspectRatio:function(){return(b==null?void 0:b())===1?1:(b==null?void 0:b())===2?2:4}},function(){return _.F(_.Hmm,{data:H,
inlineMetadata:l,aspectRatio:b,scrimStyle:U,className:K,useDefaultStyle:w})}))},"sc");_.gC(ocl,"ytm-shorts-lockup-view-model-v2",{props:{data:_.ta,inlineMetadata:_.ta,aspectRatio:_.ta,scrimStyle:_.ta,className:_.ta,useDefaultStyle:_.ta,titleStyle:_.ta}});var e7Y=16/9*210,V8=function(){var X=_.a.apply(this,arguments)||this;X.isExpandableContent=!1;X.hideShelfHeader=!1;X.engagementPanel=!1;X.buttonClasses=["arrow"];X.isSearch=!1;X.disableScrollEventListener=!1;X.containsLockup=!1;X.overrideArrowPositionForProductCard=!1;X.overrideArrowPositionForShoppingItemCard=!1;X.overrideArrowPositionForReelItems=!1;X.overrideArrowPositionForGridMovie=!1;X.overrideArrowPositionToCenter=!1;X.isSearchPostShelf=!1;X.overrideArrowPositionForMixedShelf=!1;X.overrideArrowPositionForMixedShelfShortsOnly=
!1;X.hasBigThumbsReelItems=!1;X.shouldUseMixedListHeight=!1;X.shouldUseShortsListHeight=!1;X.gridVideoWidth=0;X.isSearchVodShelf=!1;X.disableWheelScroll=!1;X.sizing="COMPACT";X.shortsLockupAspectRatio=0;return X};
_.S(V8,_.a);_.R=V8.prototype;
_.R.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]]"}}}}};
_.R.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.P("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.R.computeInitialCountNumber=function(X){if(!X)return 6;var H=X.items.some(function(K){return!!K.topicRecommendationsChipRenderer}),l=X.items.some(function(K){return!!K.displayAdRenderer}),b=this.computeShouldListItemsHaveEqualHeight(X),U=X.items.some(function(K){return!!K.gridPlaylistRenderer});
X=X.items.some(function(K){return!!K.shoppingItemCardViewModel});
return H?9:l?8:U||b?10:X?7:6};
_.R.computeContainsPost=function(X){return!!X&&!!X.items&&X.items.some(function(H){return!!H.postRenderer})};
_.R.computeContainsLockup=function(){if(_.P("web_horizontal_list_lockup_arrow_killswitch"))return!1;var X,H;return(X=this.data)==null?void 0:(H=X.items)==null?void 0:H.some(function(l){return!!l.lockupViewModel})};
_.R.maybeUpdateLockupAspectRatio=function(){var X,H;if(this.computeContainsLockup()&&((X=this.data)==null?0:(H=X.items)==null?0:H.length)){var l;X=C38((l=this.data.items[0].lockupViewModel)==null?void 0:l.contentType,this.data.force16By9ThumbnailAspectRatio);l=K2l(X);l=this.computeLockupWidth()/l;_.j4(this.hostElement,{"--yt-horizontal-list-content-height":l+"px"})}};
_.R.computeOverrideArrowPositionForProductCard=function(X){if(this.isExpandableContent)return!1;var H;return!!(X==null?0:(H=X.items)==null?0:H.some(function(l){return!!l.verticalProductCardRenderer}))};
_.R.computeOverrideArrowPositionForShoppingItemCard=function(X){var H;return!!(X==null?0:(H=X.items)==null?0:H.some(function(l){return!!l.shoppingItemCardViewModel}))};
_.R.computeOverrideArrowPositionForReelItemRenderer=function(X){return this.containsReelItemRenderer(X)};
_.R.computeHasBigThumbsReelItems=function(X,H){return X&&this.containsReelItemRenderer(H)};
_.R.computeShouldListItemsHaveEqualHeight=function(X){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(X==null?void 0:X.itemSizeConstraint)};
_.R.computeShouldListItemsHaveShortsHeight=function(X){return this.computeShouldListItemsHaveEqualHeight(X)&&!this.containsGridVideoRenderer(X)};
_.R.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.R.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.R.containsReelItemRenderer=function(X){var H;return!!(X==null?0:(H=X.items)==null?0:H.some(function(l){return!(!l.reelItemRenderer&&!l.shortsLockupViewModel)}))};
_.R.containsGridVideoRenderer=function(X){var H;return!!(X==null?0:(H=X.items)==null?0:H.some(function(l){return!!l.gridVideoRenderer||!!l.lockupViewModel}))};
_.R.computeContainsGridMovieRenderer=function(X){var H;return!!(X==null?0:(H=X.items)==null?0:H.some(function(l){return!!l.gridMovieRenderer}))};
_.R.computeOverrideArrowPositionToCenter=function(X){return this.computeIsSearchPostShelf(X)};
_.R.computeIsSearchPostShelf=function(X){var H;return!!(X==null?0:(H=X.items)==null?0:H.some(function(l){var b,U;return((U=(b=l.postRenderer)==null?void 0:b.surface)!=null?U:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.R.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(X){var H;return!!(X==null?0:(H=X.items)==null?0:H.some(function(l){var b,U,K;return((K=(b=l.backgroundPromoRenderer)==null?void 0:(U=b.style)==null?void 0:U.value)!=null?K:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.R.computeIsSearchVodShelf=function(X,H){return X&&this.containsGridVideoRenderer(H)};
_.R.computeDisableWheelScroll=function(X,H){return this.computeIsSearchVodShelf(X,H)};
_.R.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.R.computeShortsLockupAspectRatio=function(){return 1};
_.R.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.j4(this.hostElement,{"--ytd-reel-item-thumbnail-height":e7Y+"px"})};
V8.prototype.dataChanged=V8.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.Z$.YtdHorizontalListBehavior),_.N("design:type",Object)],V8.prototype,"ytdHorizontalListBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],V8.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],V8.prototype,"isExpandableContent",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"hideShelfHeader",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"engagementPanel",void 0);_.T([_.g(),_.N("design:type",Array)],V8.prototype,"buttonClasses",void 0);_.T([_.g(),_.N("design:type",Object)],V8.prototype,"isSearch",void 0);
_.T([_.g(),_.N("design:type",Object)],V8.prototype,"disableScrollEventListener",void 0);_.T([_.g({computed:"computeInitialCountNumber(data)"}),_.N("design:type",Number)],V8.prototype,"initialCount",void 0);_.T([_.g({computed:"computeContainsPost(data)"}),_.N("design:type",Boolean)],V8.prototype,"supportComponentResize",void 0);_.T([_.g({computed:"computeContainsPost(data)"}),_.N("design:type",Boolean)],V8.prototype,"containsPost",void 0);
_.T([_.g({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"containsLockup",void 0);_.T([_.g({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],V8.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.T([_.g({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"overrideArrowPositionForProductCard",void 0);_.T([_.g({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.T([_.g({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"overrideArrowPositionForReelItems",void 0);_.T([_.g({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"overrideArrowPositionForGridMovie",void 0);
_.T([_.g({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"overrideArrowPositionToCenter",void 0);_.T([_.g({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"isSearchPostShelf",void 0);_.T([_.g({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.T([_.g({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.T([_.g({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"hasBigThumbsReelItems",void 0);
_.T([_.g({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"shouldUseMixedListHeight",void 0);_.T([_.g({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"shouldUseShortsListHeight",void 0);_.T([_.g({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"gridVideoWidth",void 0);
_.T([_.g({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"isSearchVodShelf",void 0);_.T([_.g({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],V8.prototype,"disableWheelScroll",void 0);_.T([_.g({computed:"computeSizing(isSearch)"}),_.N("design:type",Object)],V8.prototype,"sizing",void 0);
_.T([_.g({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.N("design:type",Object)],V8.prototype,"shortsLockupAspectRatio",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V8.prototype,"dataChanged",null);
_.O(V8,"yt-horizontal-list-renderer",function(){if(stF===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);stF=X}X=stF;return X},{mode:1});var yeQ=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
yeQ.prototype.subscribe=function(X,H){var l=this.subscriptions.get(X);if(!l)return function(){};
l.add(H);return function(){l.delete(H)}};
yeQ.prototype.unsubscribe=function(X,H){(X=this.subscriptions.get(X))&&X.delete(H)};
yeQ.prototype.publish=function(X,H){H=H===void 0?{}:H;(X=this.subscriptions.get(X))&&X.forEach(function(l){l(H)})};var VCQ;var PO_=[10,12,14,16,18,20,24,28,32,36],f29=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Pa=function(){var X=_.a.apply(this,arguments)||this;X.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";X.hideOverflow=!1;X.useRoboto=!1;X.fontClass="";X.overflown=!1;X.actionMap={"yt-window-resized":"resize"};return X};
_.S(Pa,_.a);_.R=Pa.prototype;
_.R.attached=function(){var X=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();_.N0(this,function(){X.resize()});
if(!_.Jv){var H,l,b;(H=document)==null||(l=H.fonts)==null||(b=l.ready)==null||b.then(function(){X.resize()})}};
_.R.dataChanged=function(){this.resize()};
_.R.guideIsExpandedChanged=function(){this.resize()};
_.R.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 X=this.getMaxNumLines(),H=this.getMinFont(),l=this.getMaxFont(),b=this.useRoboto?PO_:f29;for(b=b.filter(function(K){return K<=l&&K>=H});b.length>1;){var U=Math.floor(b.length/2);
this.updateFontSize(b[U]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=X)b=b.slice(U,b.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>X)b=b.slice(0,U);else break}this.updateFontSize(b[b.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(X)}};
_.R.handleOverflow=function(X){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>X&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",X.toString()))};
_.R.updateFontSize=function(X){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+X;this.textNode.classList.add(this.fontClass)};
_.R.getMaxFont=function(){var X=this.useRoboto?PO_:f29;X=X[X.length-1];return this.maxFontSize&&this.maxFontSize<=X?this.maxFontSize:X};
_.R.getMinFont=function(){var X=(this.useRoboto?PO_:f29)[0];return this.minFontSize&&this.minFontSize>=X?this.minFontSize:X};
_.R.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.R.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.R.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.D8(this.text).split("\n").length-1:Infinity};
_.R.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()}};
Pa.prototype.guideIsExpandedChanged=Pa.prototype.guideIsExpandedChanged;Pa.prototype.dataChanged=Pa.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Pa.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Pa.prototype,"actionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Pa.prototype,"text",void 0);
_.T([_.g(),_.N("design:type",String)],Pa.prototype,"fontFamily",void 0);_.T([_.g(),_.N("design:type",Number)],Pa.prototype,"maxWidth",void 0);_.T([_.g(),_.N("design:type",Number)],Pa.prototype,"maxHeight",void 0);_.T([_.g(),_.N("design:type",Number)],Pa.prototype,"maxFontSize",void 0);_.T([_.g(),_.N("design:type",Number)],Pa.prototype,"minFontSize",void 0);_.T([_.g(),_.N("design:type",Number)],Pa.prototype,"maxLines",void 0);_.T([_.g(),_.N("design:type",Object)],Pa.prototype,"hideOverflow",void 0);
_.T([_.g({selector:_.Svh}),_.N("design:type",Boolean)],Pa.prototype,"guideIsExpanded",void 0);_.T([_.A2("#container"),_.N("design:type",HTMLElement)],Pa.prototype,"containerNode",void 0);_.T([_.A2("#text"),_.N("design:type",HTMLElement)],Pa.prototype,"textNode",void 0);_.T([_.oi("text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pa.prototype,"dataChanged",null);
_.T([_.oi("guideIsExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pa.prototype,"guideIsExpandedChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Pa);
_.O(Pa,"yt-dynamic-sizing-formatted-string",function(){if(VCQ!==void 0)return VCQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return VCQ=X},{mode:1});var p4Q;_.SEG=function(X){_.XO.call(this,X)};
_.S(_.SEG,_.XO);var z7q=function(X){_.XO.call(this,X)};
_.S(z7q,_.SEG);var fB=function(){return _.a.apply(this,arguments)||this};
_.S(fB,_.a);fB.prototype.onTapSuspendedChannel=function(){var X;if((X=this.data)!=null&&X.serviceEndpoint){var H,l;(X=(l=_.f((H=this.data)==null?void 0:H.serviceEndpoint,_.aL))==null?void 0:l.url)?_.y_(X,void 0,void 0,window.top):(H=new z7q("Did not handle suspended account tap. No appealUrl."),_.n2(H))}else H=new z7q("Did not handle suspended account tap. No serviceEndpoint."),_.n2(H)};
fB.prototype.onTap=function(){var X=this,H=_.lv(),l,b=(l=_.H5(H,{veType:7116}))!=null?l:void 0;_.pl(H,{visualElement:b});_.u$();this.saveRoleText();var U;if((U=this.data)==null?0:U.youtubeSuspended)this.onTapSuspendedChannel();else{var K=!1,w,d;(H=(d=_.f((w=this.data)==null?void 0:w.serviceEndpoint,_.sIC))==null?void 0:d.supportedTokens)&&H.forEach(function(B){if(B.accountSigninToken)if(K=!0,X.onAccountItemTap)X.onAccountItemTap(B.accountSigninToken.signinUrl);else _.y_(B.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!K){if(w=this.get("serviceEndpoint",this.data))K=!0,this.ytComponentBehavior.resolveCommand(w);K||_.k2(new z7q("Did not handle account switch tap. No token."))}}};
fB.prototype.saveRoleText=function(){if(this.data){var X=this.data,H=X.channelDelegationRole;if(H){var l,b=(l=_.f(X==null?void 0:X.serviceEndpoint,_.sIC))==null?void 0:l.supportedTokens;if(!b){var U,K,w,d;b=(U=_.f(X==null?void 0:X.serviceEndpoint,_.by))==null?void 0:(K=U.popup)==null?void 0:(w=K.confirmDialogRenderer)==null?void 0:(d=w.confirmButton)==null?void 0:d.buttonRenderer;var B;b=(B=_.f(b==null?void 0:b.command,_.J$))==null?void 0:B.commands;if(!b)return;var q;b=(q=_.f(b[1],_.sIC))==null?
void 0:q.supportedTokens}if(b){B=void 0;q=_.C(b);for(b=q.next();!b.done;b=q.next())if(b=b.value,b.datasyncIdToken){B=b.datasyncIdToken.datasyncIdToken;break}if(B){var u;a:{if(_.gtZ()&&(q=_.Vl(B+"::pom"))){q=new Hr(q);break a}q=void 0}(u=q)==null||u.set("role_text",H);if((rgl?rgl:window.location).href.indexOf("studio")!==-1&&(u=GtW())){q=u.src?(new URL(u.src)).origin:"*";var e;(e=u.contentWindow)==null||e.postMessage({action:"save_pom_role",datasyncId:B,roleText:H},q)}}}}}};
_.ja.Object.defineProperties(fB.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(X=this.data)==null?void 0:(H=X.accountPhoto)==null?void 0:H.thumbnails;return l&&l.length>0&&(l[0].height===36||l[0].height===48)?l[0].height:40}}});
fB.prototype.onTap=fB.prototype.onTap;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],fB.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],fB.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!1}),_.N("design:type",Function)],fB.prototype,"onAccountItemTap",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fB.prototype,"enableRingForActiveAccount",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],fB.prototype,"thumbnailSize",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fB.prototype,"onTap",null);_.T([_.sq({is:"ytd-account-item-renderer",disableElementRegistration:!0})],fB);
_.O(fB,"ytd-account-item-renderer",function(){if(p4Q!==void 0)return p4Q;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return p4Q=X},{mode:1});var nLQ;var pB=function(){return _.a.apply(this,arguments)||this};
_.S(pB,_.a);pB.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.jJ().resolve(_.Vr).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pB.prototype,"data",void 0);_.T([_.sq({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],pB);
_.O(pB,"ytd-identity-chip-renderer",function(){if(nLQ!==void 0)return nLQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return nLQ=X},{mode:1});var knt;var xN_;var DN6;var tCH;var SK=function(){var X=_.a.apply(this,arguments)||this;X.richItemMinWidth=_.Yy("wn_grid_min_item_width",310);X.isShorts=!1;X.isWatchNext=!1;X.isExploreHub=!1;return X};
_.S(SK,_.a);_.ja.Object.defineProperties(SK.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var X=[],H=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.j4(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var l;if(((l=this.data)==null?0:l.rows)&&H)for(H*=this.data.rows,l=0;l<H;l++)X.push({});return X}}});
_.T([_.k(_.sv),_.N("design:type",Object)],SK.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],SK.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.qo,value:3}),_.N("design:type",Number)],SK.prototype,"itemsPerRow",void 0);_.T([_.g({selector:_.pOW,value:6}),_.N("design:type",Number)],SK.prototype,"slimItemsPerRow",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Number)],SK.prototype,"richItemMinWidth",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],SK.prototype,"miniMode",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SK.prototype,"isShorts",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SK.prototype,"isWatchNext",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SK.prototype,"isExploreHub",void 0);
_.T([_.x("isExploreHub"),_.g({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],SK.prototype,"shimmerAnimation",null);_.T([_.x("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.N("design:type",Array),_.N("design:paramtypes",[])],SK.prototype,"cardItems",null);_.T([_.sq({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],SK);
_.W__=_.mr()(SK,"ytd-ghost-grid-renderer",function(){if(tCH===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);tCH=X}X=tCH;return X},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.gC(_.Z(function(X){var H=_.gT(X,{numberOfComments:3}).numberOfComments,l=_.gT(X,{isInitialLoad:!1}).isInitialLoad,b=_.gT(X,{engagementPanel:!1}).engagementPanel,U=function(){return Math.min(Number(H==null?void 0:H())||20,20)};
return _.F("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.F(_.M,{cond:function(){return!(b==null?0:b())&&(l==null?void 0:l())},
then:function(){return _.F("div",{class:"ytGhostCommentsComments"},_.F("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.F("div",{class:_.Qr("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.F("div",{class:_.Qr("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.F("div",{class:"ytGhostCommentsGhostCard"},_.F("div",{class:"ytGhostCommentsAvatar"},_.F("div",{class:"ytGhostCommentsCircle"})),_.F("div",{class:"ytGhostCommentsComments"},_.F("div",{class:"ytGhostCommentsMeta"},
_.F("div",{class:_.Qr("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.F("div",{class:_.Qr("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.F("div",{class:"ytGhostCommentsComments"},_.F(_.P$,{each:function(){return Array((U==null?void 0:U())||3)}},function(){return _.F("div",{class:"ytGhostCommentsGhostCard"},_.F("div",{class:"ytGhostCommentsAvatar"},_.F("div",{class:"ytGhostCommentsCircle"})),_.F("div",{class:"ytGhostCommentsHost"},_.F("div",{class:"ytGhostCommentsMeta"},
_.F("div",{class:_.Qr("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.F("div",{class:_.Qr("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.F("div",{class:_.Qr("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.F("div",{class:"ytGhostCommentsGhostLikeDislike"},_.F("div",{class:_.Qr("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.F("div",{class:_.Qr("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"tc"),"yt-ghost-comments",{props:{numberOfComments:_.zh,
isInitialLoad:_.zh,engagementPanel:_.zh},unsafeExternallySettableAttributes:new Set(["hidden"])});_.wd("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var zg=function(){var X=_.a.apply(this,arguments)||this;X.isOverridable=!1;X.spinnerActive=!1;X.showButton=!1;X.isCommentsSection=!1;X.engagementPanel=!0;X.isShortsGrid=!1;X.isShortsPage=!1;X.isWatchPage=!1;X.originalShowButton=!1;X.endOfList=!1;return X};
_.S(zg,_.a);_.R=zg.prototype;_.R.resetIntersectionObserver=function(){var X;(X=this.observer)==null||X.disconnect();this.observer=void 0};
_.R.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var X,H;((X=this.data)==null?void 0:X.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((H=this.data)==null?0:H.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.R.initializeIntersectionObserver=function(){var X=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(H){H=_.C(H);for(var l=H.next();!l.done;l=H.next())l.value.isIntersecting&&(X.triggerContinuation(),X.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.R.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]]"}}}}}};
_.R.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var X;((X=this.data)==null?0:X.continuationEndpoint)&&(X=_.f(this.data.continuationEndpoint,_.uE))&&this.ytdReduxBehavior.dispatch(_.Of({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:X}}))};
_.R.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.R.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.R.onServiceRequestCompleted=function(X,H){if(!_.P("kevlar_hide_spinner_on_empty_continuation_killswitch")){var l;(l=H.actions)!=null&&l.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.R.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.R.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.R.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.R.numberOfGhostCommentsChanged=function(){var X=3;if(this.engagementPanel){var H,l,b;X=Math.floor(((((H=this.hostElement)==null?void 0:(l=H.parentElement)==null?void 0:(b=l.parentElement)==null?void 0:b.scrollHeight)||108)-108)/108);X=this.isInitialLoad?Math.max(X,3):3}H=[].concat(_.LJ(this.hostElement.querySelectorAll("yt-ghost-comments")));H=_.C(H);for(l=H.next();!l.done;l=H.next())l=l.value,l.numberOfComments=X,l.isInitialLoad=this.isInitialLoad,l.engagementPanel=this.engagementPanel};
_.R.detached=function(){this.resetIntersectionObserver()};
_.ja.Object.defineProperties(zg.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
zg.prototype.numberOfGhostCommentsChanged=zg.prototype.numberOfGhostCommentsChanged;zg.prototype.continuationTriggerOffsetChanged=zg.prototype.continuationTriggerOffsetChanged;zg.prototype.showButtonChanged=zg.prototype.showButtonChanged;zg.prototype.onYtServiceRequestCompletedForButtonRenderer=zg.prototype.onYtServiceRequestCompletedForButtonRenderer;zg.prototype.onServiceRequestCompleted=zg.prototype.onServiceRequestCompleted;zg.prototype.onYtServiceRequestSentForButtonRenderer=zg.prototype.onYtServiceRequestSentForButtonRenderer;
zg.prototype.observeData=zg.prototype.observeData;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],zg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Vk.YtVisibilityBehavior),_.N("design:type",Object)],zg.prototype,"ytVisibilityBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],zg.prototype,"ytComponentBehavior",void 0);
_.T([_.k(_.sv),_.N("design:type",Object)],zg.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],zg.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],zg.prototype,"isOverridable",void 0);_.T([_.g(),_.N("design:type",Object)],zg.prototype,"spinnerActive",void 0);_.T([_.g(),_.N("design:type",Object)],zg.prototype,"showButton",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zg.prototype,"isCommentsSection",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zg.prototype,"engagementPanel",void 0);_.T([_.g(),_.N("design:type",Object)],zg.prototype,"isShortsGrid",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.kCb}),_.N("design:type",Object)],zg.prototype,"isShortsPage",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.nWN}),_.N("design:type",Object)],zg.prototype,"isWatchPage",void 0);_.T([_.g(),_.N("design:type",Number)],zg.prototype,"continuationTriggerOffset",void 0);
_.T([_.g(),_.N("design:type",Object)],zg.prototype,"endOfList",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],zg.prototype,"isInitialLoad",void 0);_.T([_.A2("ytd-button-renderer"),_.N("design:type",_.ah)],zg.prototype,"buttonRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],zg.prototype,"buttonOverrides",void 0);
_.T([_.g(),_.x("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.N("design:type",Object),_.N("design:paramtypes",[])],zg.prototype,"showGhostCardComments",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zg.prototype,"observeData",null);
_.T([_.Le("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zg.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],zg.prototype,"onServiceRequestCompleted",null);
_.T([_.Le("yt-service-request-completed-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zg.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.T([_.oi("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zg.prototype,"showButtonChanged",null);
_.T([_.oi("continuationTriggerOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zg.prototype,"continuationTriggerOffsetChanged",null);_.T([_.Yh("isInitialLoad","engagementPanel"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zg.prototype,"numberOfGhostCommentsChanged",null);_.T([_.sq({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],zg);
_.O(zg,"ytd-continuation-item-renderer",function(){if(DN6!==void 0)return DN6;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return DN6=X},{mode:1});var ELH;var nB=function(){var X=_.a.apply(this,arguments)||this;X.downloadProgress=0;X.transferState="TRANSFER_STATE_UNKNOWN";X.downloadState="DOWNLOAD_STATE_UNKNOWN";X.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";X.offlineVideoPolicyExpirationTimestamp=0;X.downloadedVideoPlaybackPosition=0;return X};
_.S(nB,_.a);nB.prototype.dataChanged=function(){var X;this.videoData=_.f((X=this.data)==null?void 0:X.renderer,jhC);this.transferStateChanged()};
nB.prototype.downloadProgressChanged=function(){if(this.entityInfo){var X=Object.assign({},this.videoData),H=oGy(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),l=H.publishedTimeText,b=H.badges;X.shortViewCountText=H.shortViewCountText;X.publishedTimeText=l;X.badges=b;this.set("videoData",X)}};
nB.prototype.transferStateChanged=function(){if(this.entityInfo){var X=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",H=_.b5(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!oH(this.entityInfo.policyEntity),l=Object.assign({},this.videoData),b=oGy(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),U=b.publishedTimeText,K=b.badges;l.shortViewCountText=
b.shortViewCountText;l.publishedTimeText=U;l.badges=K;l.isDisabled=H;l.isWatched=this.downloadedVideoPlaybackPosition>0;l.navigationEndpoint=H?void 0:xUZ(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var w;X&&((w=this.videoData)==null?0:w.videoId)&&!_.P("dl_resume_click_killswitch")&&(l.isDisabled=!1,l.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});l.thumbnailOverlays=Hn8(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",l)}};
nB.prototype.transferStateChanged=nB.prototype.transferStateChanged;nB.prototype.downloadProgressChanged=nB.prototype.downloadProgressChanged;nB.prototype.dataChanged=nB.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],nB.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],nB.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],nB.prototype,"videoData",void 0);_.T([_.g({selector:VR,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],nB.prototype,"downloadProgress",void 0);_.T([_.g(),_.N("design:type",Number)],nB.prototype,"relativeDateReference",void 0);_.T([_.g({selector:_.e0,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],nB.prototype,"transferState",void 0);
_.T([_.g({selector:JWW,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],nB.prototype,"downloadState",void 0);_.T([_.g({selector:EWh,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],nB.prototype,"offlinePolicyAction",void 0);_.T([_.g({selector:gWy,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],nB.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.T([_.g({selector:PF,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],nB.prototype,"downloadedVideoPlaybackPosition",void 0);_.T([_.g({selector:a$W,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],nB.prototype,"entityInfo",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],nB.prototype,"isDownloading",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nB.prototype,"dataChanged",null);
_.T([_.oi("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nB.prototype,"downloadProgressChanged",null);_.T([_.oi("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nB.prototype,"transferStateChanged",null);
_.T([_.sq({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],nB);
_.O(nB,"ytd-downloaded-video-grid-video-renderer",function(){if(ELH!==void 0)return ELH;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ELH=X},{mode:2});var gLz;var kR=function(){};
kR.prototype.resolve=function(X,H){var l=this;return _.h(function(b){return b.yield(l.resolveCommand(X,H),0)})};var GnG,xR;GnG=vFz(function(X){return X.targetId},{shouldPersist:!1});
xR=GnG.updateData;_.Dw=GnG.useUpdatableData;var a2Q,ZM9;a2Q=vFz(function(X){return X.targetId});
ZM9=a2Q.updateData;_.iMF=a2Q.useUpdatableData;var vLD=QGh.bind(null,xR),OM9=QGh.bind(null,ZM9);(function(X,H,l){var b=_.f(l==null?void 0:l.updatedRenderer,_.PUQ);return b?X({targetId:H},function(){return b}):!1}).bind(null,xR);var tK=function(){};
_.S(tK,kR);tK.prototype.resolveCommand=function(X){var H;return _.h(function(l){H=_.f(X,IaN);if(!H)return l.return();vLD(H.targetId,H);_.m5(l)})};var Wa=function(){var X=_.Hc.apply(this,arguments)||this;X.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 X};
_.S(Wa,_.Hc);_.R=Wa.prototype;_.R.configureContinuationPathMap=function(){return{}};
_.R.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.R.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.R.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.R.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.R.handleAppendContinuationItemsAction=function(X){var H=_.f(X,_.hkQ);if(this.data&&this.data.targetId&&H&&this.continuationPathMap&&H.targetId===this.data.targetId){var l=GeN(X),b=l&&this.continuationPathMap[l];if(b&&l)if(X=this.get(b,this.data)){a:{for(l=0;l<X.length;l++){var U=X[l],K=void 0,w=!!_.f((K=_.f(U,X9q))==null?void 0:K.content,_.QhG);if(_.f(U,_.OF)||w)break a}l=X.length}b="data."+b;H.continuationItems?l===X.length-1?(this.pop(b),this.push.apply(this,[b].concat(_.LJ(H.continuationItems)))):
l===X.length?this.push.apply(this,[b].concat(_.LJ(H.continuationItems))):this.splice.apply(this,[b,l,1].concat(_.LJ(H.continuationItems))):this.splice(b,l,1);(_.P("web_enable_voting_animation")||_.P("enable_music_web_cairo_voting_animation"))&&_.QX(this.hostElement,"yt-append-continuation-items-action-finished");_.QX(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.x2(new _.qd("append continuation items does not exist",l));else _.x2(new _.qd("append continuation path does not exist",
l))}};
_.R.handleReloadContinuationItemsCommand=function(X){var H=_.f(X,IaN);if(this.data&&H){if(!_.P("web_reload_continuation_items_command_resolver_killswitch")){var l=_.jJ().resolve(_.c$(tK));l&&l.resolveCommand(X)}if(this.data.targetId&&this.continuationPathMap&&H.targetId===this.data.targetId&&(!_.P("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||H.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var b;l=(b=H.slot)==null?void 0:b.replace("RELOAD_CONTINUATION_SLOT_",
"");b=(X=GeN(X)+"-"+(l==null?void 0:l.toLowerCase()))&&this.continuationPathMap[X];if(!b||!X||!l)_.x2(new _.qd("reload continuation path does not exist",X));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(H)){if(H.replaceWithFirstItem){var U;this.set("data."+b,((U=H.continuationItems)==null?0:U.length)?H.continuationItems[0]:{})}else this.set("data."+b,H.continuationItems?H.continuationItems:[]);mNt(this)}}}};
_.R.handleRestoreCachedContinuableDataCommand=function(X){X=_.f(X,S8v);var H;(H=this.data)!=null&&H.targetId&&(X==null?void 0:X.targetId)===this.data.targetId&&mNt(this)};
var mNt=function(X){X.continuationIsReloading=!1;X.reloadUiContent=void 0;_.QX(X.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})};
Wa.prototype.handleShowReloadUiCommand=function(X){X=_.f(X,kVH);var H;((H=this.data)==null?0:H.targetId)&&(X==null?0:X.targetId)&&X.targetId===this.data.targetId&&(this.continuationIsReloading=!0,X.content&&(this.reloadUiContent=X.content))};
Wa.prototype.observeData=Wa.prototype.observeData;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Wa.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Wa.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Wa.prototype,"data",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Wa.prototype,"continuationIsReloading",void 0);
_.T([_.g(),_.N("design:type",Object)],Wa.prototype,"reloadUiContent",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wa.prototype,"observeData",null);_.T([_.l9()],Wa);_.EO=[_.uJ.YtComponentBehavior,_.rh.YtActionHandlerBehavior,Wa.prototype];_.ge={};_.ge.YtNextContinuationBehavior=[_.tx.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",_.J2(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.J2(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(X,H){X.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,H,{}):(X={locationRetrieved:function(l){this.makeNextContinuationRequest_(l,H,{})}.bind(this)},_.QX(this.hostElement,"yt-retrieve-location",X))},
makeNextContinuationRequest_:function(X,H,l){_.MJ("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();X=H(X);var b;this.canUseContextualNetworkManager_()&&(b=this.getNetworkManager());b||(b=_.jJ().resolve(_.o6));H=_.S2.instance;if(_.gx("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&H){b=_.E9([X.startsWith("/")?X.substr(1):X]);var U,K;l=_.pg(H,{},b,l==null?void 0:(U=l.context)==null?void 0:(K=U.clickTracking)==null?void 0:K.clickTrackingParams).then(function(w){return{response:w}})}else l=
this.nextContinuation.usePost?b.postData(X,l):b.fetchData(X);
l.then(this.updateNextContinuationData_.bind(this,X));this.pendingContinuationRequest_=l;this.startListeningForNavigate_()},
updateNextContinuationData_:function(X,H){var l=this;_.MJ("ncl");this.pendingContinuationRequest_=void 0;if(H){var b={};this.nextContinuation&&(b=this.nextContinuation);if(H.response&&H.response.continuationContents&&H.response.continuationContents[b.continuationType]){X=H.response.continuationContents[b.continuationType];var U=b.header||"data.header",K=X[b.responseHeaderKey||"header"];K&&this.set(U,K);U=b.contentsArray||"data.contents";K=this.getContents_(X,b.responseContentsKey||"contents")||[];
this.pathExists_(U)?(K.unshift(U),this.push.apply(this,K)):this.set(U,K);K&&(T_k(_.lv(),H.response,this.hostElement,function(w){_.TP(l.hostElement,"yt-store-grafted-ve-action",[w])}),_.QX(this.hostElement,"yt-next-continuation-data-updated",{continuationData:H,
page:this,contentsArray:U}));this.set(b.continuationsArray||"data.continuations",X[b.responseContinuationsKey||"continuations"]||[])}else H.reload?_.x2(new _.qd("Reloading from continuation is unsupported")):H.responseContext&&H.responseContext.errors||(delete H.xsrf_token,delete H.timing,delete H.endpoint,delete H.csn,H.responseContext&&delete H.responseContext.serviceTrackingParams,U={request:_.T7(X,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(H).sort()},H.response&&(U.responseContentKeys=
Object.keys(H.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(U.continuationType=this.nextContinuation.continuationType.substr(0,256)),H=new _.qd("Malformed continuation",U),X.indexOf("/comment_service_ajax")==0?_.x2(H):_.n2(H)),this.set(b.continuationsArray||"data.continuations",[])}else _.k2(new _.qd("Missing continuation response",X))},
getContents_:function(X,H){H=H.split(".");return _.Bb.getValueByKeys(X,H)},
pathExists_:function(X){var H=this;X=X.toString().split(".");for(var l=0;l<X.length;l++)if(H=H[X[l]],H===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var QbG;var TOG;var Gg=function(){var X=_.a.apply(this,arguments)||this;X.triggered_=!1;return X};
_.S(Gg,_.a);_.R=Gg.prototype;_.R.attached=function(){this.maybeTriggerAutoload()};
_.R.detached=function(){this.hasBeenTriggered_=!1};
_.R.onPrescanVisible=function(){this.onShow()};
_.R.onShow=function(){this.showButton||this.trigger()};
_.R.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.QX(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.R.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.R.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.R.computeLabel_=function(X,H){return X===void 0?null:X.label||!H?X.label:this.showMoreText_};
_.R.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.R.getContinuationUrl=function(X){var H={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(H.itct=this.data.clickTrackingParams);return _.An(X,H)};
_.R.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Gg.prototype.showButtonChanged_=Gg.prototype.showButtonChanged_;Gg.prototype.observeData_=Gg.prototype.observeData_;_.T([_.k(_.Vk.YtVisibilityBehavior),_.N("design:type",Object)],Gg.prototype,"ytVisibilityBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Gg.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Gg.prototype,"showButton",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],Gg.prototype,"showIcon",void 0);_.T([_.g({computed:"computeLabel_(data, showButton)"}),_.N("design:type",Object)],Gg.prototype,"label",void 0);_.T([_.g({value:_.xM(_.XS("SHOW_MORE",void 0,"Show More"))}),_.N("design:type",Object)],Gg.prototype,"showMoreText_",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Gg.prototype,"spinnerActive_",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Gg.prototype,"hasBeenTriggered_",void 0);
_.T([_.g({value:void 0}),_.N("design:type",String)],Gg.prototype,"observeVisibleOption",void 0);_.T([_.g({value:void 0}),_.N("design:type",String)],Gg.prototype,"observeHiddenOption",void 0);_.T([_.g({value:"observe_once"}),_.N("design:type",Object)],Gg.prototype,"observePrescanOption",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gg.prototype,"observeData_",null);
_.T([_.Yh("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gg.prototype,"showButtonChanged_",null);_.T([_.qR({is:"yt-next-continuation",disableElementRegistration:!0})],Gg);
_.O(Gg,"yt-next-continuation",function(){if(TOG===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;QbG===void 0&&(QbG=document.createElement("template"));var b=QbG;l.call(H,b.content.cloneNode(!0),X.content.firstChild);TOG=X}X=TOG;return X},{mode:2});var NOQ;var ceY;var ar=function(){return _.a.apply(this,arguments)||this};
_.S(ar,_.a);ar.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ar.prototype,"data",void 0);_.T([_.qR({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],ar);
_.O(ar,"yt-music-pass-small-feature-info-renderer",function(){if(ceY===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;NOQ===void 0&&(NOQ=document.createElement("template"));var b=NOQ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);ceY=X}X=ceY;return X},{mode:2});_.wd("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Zw=function(){var X=_.a.apply(this,arguments)||this;X.isCollapsible=!1;X.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return X};
_.S(Zw,_.a);_.R=Zw.prototype;_.R.computeIsCollapsible=function(X){return!!(((X==null?0:X.showMoreText)||(X==null?0:X.visibleRowCount))&&(X==null?0:X.isCollapsible))};
_.R.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"}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.R.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.R.onIronResize=function(){var X=this;_.pc(this,"updateGridInitItems",function(){X.maybeUpdateInitialItemsDisplayed()})};
_.R.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var X=this.getVisibleWidth();X!==0&&(X=Math.floor(X/214)*(this.data.visibleRowCount||2),X!==this.initialCount&&(this.initialCount=X,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.R.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.R.computeExpandVisible=function(X,H,l,b){return X&&H&&l&&!!b&&!!b.showMoreText};
_.R.computeShowMoreButton=function(X){return{text:X,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.R.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.R.initCollapsed=function(){var X=this;this.ytLazyListBehavior.canShowMore=!1;var H;(this.collapsed=!((H=this.data)==null||!H.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.N0(this,function(){_.NG(X.hostElement,"yt-refit-popups-action")})};
_.R.fillRestIfNotCollapsible=function(){var X=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!X||this.ytLazyListBehavior.fillRemainingListItems()};
_.R.computeViewAllHidden=function(X,H){return X||!H.viewAllEndpoint};
Zw.prototype.fillRestIfNotCollapsible=Zw.prototype.fillRestIfNotCollapsible;Zw.prototype.initCollapsed=Zw.prototype.initCollapsed;Zw.prototype.onIronResize=Zw.prototype.onIronResize;Zw.prototype.persistentGuideChanged=Zw.prototype.persistentGuideChanged;_.T([_.k(_.$s),_.N("design:type",Object)],Zw.prototype,"ironResizableBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Zw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.aI.YtLazyListBehavior),_.N("design:type",Object)],Zw.prototype,"ytLazyListBehavior",void 0);_.T([_.k(_.ge.YtNextContinuationBehavior),_.N("design:type",Object)],Zw.prototype,"ytNextContinuationBehavior",void 0);_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Zw.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.k(_.EO),_.N("design:type",Object)],Zw.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Zw.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],Zw.prototype,"collapsed",void 0);_.T([_.g(),_.N("design:type",Number)],Zw.prototype,"initialCount",void 0);_.T([_.g({computed:"computeShowMoreButton(data.showMoreText)"}),_.N("design:type",Object)],Zw.prototype,"showMoreButton",void 0);
_.T([_.g({computed:"computeIsCollapsible(data)"}),_.N("design:type",Object)],Zw.prototype,"isCollapsible",void 0);_.T([_.A2("#items"),_.N("design:type",HTMLElement)],Zw.prototype,"items",void 0);_.T([_.oi("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zw.prototype,"persistentGuideChanged",null);_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zw.prototype,"onIronResize",null);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zw.prototype,"initCollapsed",null);_.T([_.oi("canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zw.prototype,"fillRestIfNotCollapsible",null);_.T([_.sq({is:"ytd-grid-renderer",disableElementRegistration:!0})],Zw);
_.O(Zw,"ytd-grid-renderer",function(){if(gLz!==void 0)return gLz;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return gLz=X},{mode:2});var i_=function(){return _.a.apply(this,arguments)||this};
_.S(i_,_.a);
i_.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],i_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],i_.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],i_.prototype,"data",void 0);_.T([_.sq({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],i_);
_.O(i_,"ytd-carousel-ad-renderer",function(){if(xN_!==void 0)return xN_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return xN_=X},{mode:1});var jbQ;var va=function(){return _.a.apply(this,arguments)||this};
_.S(va,_.a);_.R=va.prototype;_.R.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"}}}};
_.R.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,va.JSC$15837_CLICK_LOCATION_ID_MAP))};
_.R.onSitelinkTap=function(X){X.stopPropagation();var H,l,b=X==null?void 0:(H=X.model)==null?void 0:(l=H.item)==null?void 0:l.onTap;b&&this.ytSparklesClickLocationBehavior.handleClick(b,X,!1)};
_.R.onTap=function(X){var H=this.data&&this.data.content&&this.data.content.navigationEndpoint;H&&this.ytSparklesClickLocationBehavior.handleClick(H,X,!1)};
_.R.sendImpression=function(){if(this.data&&this.data.content)for(var X=_.C(this.data.content.impressionEndpoints||[]),H=X.next();!H.done;H=X.next()){H=_.C(H.value.loggingUrls||[]);for(var l=H.next();!l.done;l=H.next())l=l.value,l.baseUrl&&ZS(l.baseUrl,l.attributionSrcMode)}};
va.prototype.onTap=va.prototype.onTap;va.prototype.dataChanged=va.prototype.dataChanged;va.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],va.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.GC.YtSparklesClickLocationBehavior),_.N("design:type",Object)],va.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],va.prototype,"data",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],va.prototype,"dataChanged",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],va.prototype,"onTap",null);_.T([_.sq({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],va);
_.O(va,"ytd-promoted-sparkles-text-search-renderer",function(){if(jbQ!==void 0)return jbQ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return jbQ=X},{mode:1});var reD;var OO=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-mute-ad-action":"handleMuteAd"};return X};
_.S(OO,_.a);_.R=OO.prototype;_.R.created=function(){this.activeView=new Qx(this.hostElement)};
_.R.configureRendererStamper=function(){return{"data.menu":{id:_.P("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]]"}}}}}};
_.R.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.R.computeHasAdBadge=function(X){return!(X==null||!X.adBadge)};
_.R.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",OO.JSC$15846_DEFAULT_AD_BADGE_RENDERER),_.TW(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&TC(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,OO.JSC$15846_CLICK_LOCATION_ID_MAP))};
_.R.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var X;(((X=this.data)==null?void 0:X.impressionCommands)||[]).forEach(function(H){H=_.C(H.loggingUrls||[]);for(var l=H.next();!l.done;l=H.next())l=l.value,l.baseUrl&&ZS(l.baseUrl,l.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.R.onTap=function(X){var H,l=(H=this.data)==null?void 0:H.navigationEndpoint,b;(H=(b=this.data)==null?void 0:b.thumbnailNavigationEndpoint)&&_.Em(_.t2(X),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(H,X,!1):l&&this.ytSparklesClickLocationBehavior.handleClick(l,X,!1)};
_.R.handleMuteAd=function(){this.collapsed=!0};
_.R.attached=function(){var X=this;_.P("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Nj(X.activeView)})};
_.R.detached=function(){_.P("stop_av_measurement_on_detach")&&Nj(this.activeView)};
_.ja.Object.defineProperties(OO.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var X;return!(((X=this.data)==null?void 0:X.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var X;return!(((X=this.data)==null?void 0:X.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.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}}});
OO.prototype.dataChanged=OO.prototype.dataChanged;
OO.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"]]);
OO.JSC$15846_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.XS("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],OO.prototype,"actionHandlerBehavior",void 0);
_.T([_.k(_.GC.YtSparklesClickLocationBehavior),_.N("design:type",Object)],OO.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],OO.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],OO.prototype,"collapsed",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],OO.prototype,"useBiggerThumbs",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.I0("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],OO.prototype,"biggerThumbsStyle",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.N("design:type",Boolean)],OO.prototype,"fixAlignmentSmallScreens",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_desktop_search_bigger_thumbs_square")}}),
_.N("design:type",Boolean)],OO.prototype,"useBiggerThumbsSquare",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.mediaHoverOverlay"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OO.prototype,"hideHoverOverlay",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OO.prototype,"webSearchLayout",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OO.prototype,"webSearchLayoutLandscape",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OO.prototype,"webSearchLayoutSquare",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OO.prototype,"sparklesCtaNoBackground",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.actionButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OO.prototype,"hideActionButton",null);_.T([_.g({computed:"computeButtonOverride(uiUpdate)"}),_.N("design:type",Object)],OO.prototype,"buttonOverride",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.N("design:type",Boolean)],OO.prototype,"hasNewAdBadge",void 0);_.T([_.x("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OO.prototype,"useRoundedBadge",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OO.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],OO);
_.O(OO,"ytd-promoted-sparkles-web-renderer",function(){if(reD!==void 0)return reD;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return reD=X},{mode:1});var Je6;var mk=function(){var X=_.a.apply(this,arguments)||this;X.isInlinePreviewTriggered=!1;X.enableMonoStyle=_.P("enable_default_mono_cta_migration_web_client");return X};
_.S(mk,_.a);_.R=mk.prototype;_.R.created=function(){this.activeView=new Qx(this.hostElement)};
_.R.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]]"}}}}}};
_.R.computeShowCta=function(X){return!(X==null||!X.ctaRenderer)};
_.R.onCtaClick=function(){var X,H,l,b=(X=this.data)==null?void 0:(H=X.ctaRenderer)==null?void 0:(l=H.buttonRenderer)==null?void 0:l.command;b&&this.ytComponentBehavior.resolveCommand(b)};
_.R.onWatchButtonClick=function(){var X,H,l,b=(X=this.data)==null?void 0:(H=X.watchButtonRenderer)==null?void 0:(l=H.buttonRenderer)==null?void 0:l.command;b&&this.ytComponentBehavior.resolveCommand(b)};
_.R.onTap=function(){};
_.R.dataChanged=function(){if(this.data){var X;_.P("enable_inline_muted_playback_on_web_search")&&((X=this.data)==null?0:X.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",mk.JSC$15850_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&TC(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",mk.JSC$15850_DEFAULT_CLICK_LOCATION_BEHAVIOR,mk.JSC$15850_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(X=this.thumbnail.getElementsByTagName("a"),X.length>0&&(X=X.namedItem("thumbnail"))&&X.removeAttribute("href"));var H;if(((H=this.data)==null?0:H.forceImpAutoplay)&&_.P("enable_force_imp_autoplay_on_desktop_search")){var l;(l=this.JSC$15851_inlinePreviewHoverListener)==null||i1y(l)}}};
_.R.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var X=_.C(this.data.impressionUrls),H=X.next();!H.done;H=X.next())H=H.value,yaZ(H,Pvz(H));this.data.impressionsFired=!0}};
_.R.maybeComputeHref=function(){return null};
_.R.computeIsShortDR=function(X){return!(X==null||!X.watchButtonRenderer)&&!(X==null||!X.ctaRenderer)&&!!this.enableShortDR};
_.R.computeIsNewUiOrShortDr=function(X){return!!this.enableUiUpdate||this.computeIsShortDR(X)};
_.R.computeIsNewUiAndNotShortDr=function(X){return!!this.enableUiUpdate&&!this.computeIsShortDR(X)};
_.R.computeHideAvatar=function(X){return!((X==null?0:X.channelThumbnail)&&this.computeIsNewUiOrShortDr(X))};
_.R.onClick=function(X){var H,l=(H=this.data)==null?void 0:H.navigationEndpoint;if(this.enableShortDR&&l&&(_.f(l,_.ku)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(l,X,!!_.f(l,_.ku)),X.stopPropagation();else if(l&&_.f(l,_.ku))this.ytSparklesClickLocationBehavior.handleClick(l,X,!0),X.stopPropagation();else if(l){var b,U;((b=this.data)==null?0:b.navigationEndpoint)&&((U=this.data)==null?0:U.adPlaybackContextParams)&&(H=this.data.navigationEndpoint,X=this.data.adPlaybackContextParams,
H.commandMetadata&&_.f(H.commandMetadata,_.Ip)&&_.f(H.commandMetadata,_.Ip).url&&(H=_.QO(_.f(H.commandMetadata,_.Ip).url).adurl)&&_.SfZ(H)&&_.Ec(_.jN(H),{encoded_ad_playback_context:X}));this.ytComponentBehavior.resolveCommand(l)}};
_.R.computeButtonOverride=function(X){if(this.computeIsNewUiOrShortDr(X))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.R.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.R.onThumbnailContainerClick=function(X){this.onClick(X)};
_.R.computeThumbnailWidth=function(X,H){return X?H==="MASSIVE"?600:H==="BIG"?500:H==="MEDIUM"?450:420:360};
_.R.attached=function(){var X=this,H;_.P("enable_inline_muted_playback_on_web_search")&&((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.P("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Nj(X.activeView)})};
_.R.detached=function(){var X;_.P("enable_inline_muted_playback_on_web_search")&&((X=this.data)==null?0:X.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.P("stop_av_measurement_on_detach")&&Nj(this.activeView)};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15851_inlinePreviewHoverListener=yE({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:CO9})};
_.R.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15851_inlinePreviewHoverListener)==null||vx(X)};
mk.prototype.dataChanged=mk.prototype.dataChanged;mk.prototype.onTap=mk.prototype.onTap;mk.JSC$15850_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.XS("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};mk.JSC$15850_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
mk.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],mk.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.GC.YtSparklesClickLocationBehavior),_.N("design:type",Object)],mk.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.A2("#main-container"),_.N("design:type",HTMLElement)],mk.prototype,"mainContainer",void 0);
_.T([_.g(),_.N("design:type",Object)],mk.prototype,"isInlinePreviewTriggered",void 0);_.T([_.g(),_.N("design:type",Object)],mk.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],mk.prototype,"useBiggerThumbs",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_video_display_compact_button_group_for_desktop_search")}}),
_.N("design:type",Boolean)],mk.prototype,"enableShortDR",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_vac_ui_update_for_desktop_search")}}),
_.N("design:type",Boolean)],mk.prototype,"enableUiUpdate",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.I0("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],mk.prototype,"biggerThumbsStyle",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.N("design:type",Boolean)],mk.prototype,"showCta",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.N("design:type",Boolean)],mk.prototype,"isShortDr",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.N("design:type",Boolean)],mk.prototype,"isShortDrOrNewUi",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.N("design:type",Boolean)],mk.prototype,"isNewUiAndNotShortDr",void 0);_.T([_.g({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],mk.prototype,"buttonOverride",void 0);_.T([_.g({computed:"computeSecondaryButtonOverride(data)"}),_.N("design:type",Object)],mk.prototype,"secondaryButtonOverride",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],mk.prototype,"enableMonoStyle",void 0);
_.T([_.A2("ytd-thumbnail"),_.N("design:type",HTMLElement)],mk.prototype,"thumbnail",void 0);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mk.prototype,"onTap",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mk.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],mk);
_.O(mk,"ytd-promoted-video-renderer",function(){if(Je6!==void 0)return Je6;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Je6=X},{mode:1});var L_v;var Q8=function(){var X=_.a.apply(this,arguments)||this;X.useRoundedBadge=!0;X.sitelinkIds=[];return X};
_.S(Q8,_.a);_.R=Q8.prototype;
_.R.configureRendererStamper=function(){return{"data.menu":{id:_.P("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]]"}}}}}};
_.R.dataChanged=function(){var X;(X=this.data)!=null&&X.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Q8.JSC$15856_CLICK_LOCATION_ID_MAP)};
_.R.onTap=function(X){var H,l=(H=this.data)==null?void 0:H.navigationCommand;l&&!_.Em(_.t2(X),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(l,X,!1)};
_.R.onSitelinkTap=function(X){var H,l,b=X==null?void 0:(H=X.model)==null?void 0:(l=H.item)==null?void 0:l.onTap;b&&this.ytSparklesClickLocationBehavior.handleClick(b,X,!1)};
_.R.configureSitelinkClickTargets=function(){var X=this,H,l,b=(H=this.data)==null?void 0:(l=H.clickLocationTargets)==null?void 0:l.find(function(U){return U.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
b&&_.mh(this.hostElement).querySelectorAll(".sitelink").forEach(function(U){_.TW(U,"yt-simple-endpoint",!0);X.sitelinkIds.push(U.id);var K,w;(K=X.ytSparklesClickLocationBehavior)==null||(w=K.clickTargetMap)==null||w.set(U.id,b)})};
_.R.sendImpression=function(){var X,H,l=((X=this.data)==null?void 0:(H=X.impressionCommand)==null?void 0:H.loggingUrls)||[];X=_.C(l);for(H=X.next();!H.done;H=X.next())H=H.value,H.baseUrl&&ZS(H.baseUrl,H.attributionSrcMode)};
_.R.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.ja.Object.defineProperties(Q8.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Q8.prototype.onTap=Q8.prototype.onTap;Q8.prototype.dataChanged=Q8.prototype.dataChanged;Q8.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.GC.YtSparklesClickLocationBehavior),_.N("design:type",Object)],Q8.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Q8.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Q8.prototype,"showFavicon",null);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],Q8.prototype,"useBiggerThumbs",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.I0("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],Q8.prototype,"biggerThumbsStyle",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.N("design:type",Boolean)],Q8.prototype,"enableThumbnailScalingFix",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Q8.prototype,"dataChanged",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Q8.prototype,"onTap",null);_.T([_.sq({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Q8);
_.O(Q8,"ytd-text-image-no-button-layout-renderer",function(){if(L_v!==void 0)return L_v;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return L_v=X},{mode:2});var YE9;var Tg=function(){var X=_.a.apply(this,arguments)||this;X.isInlinePlaybackState=!1;X.uiUpdate=_.P("web_modern_buttons");X.hideCta=_.P("hide_cta_for_home_web_video_ads");X.noBottomMargin=!1;X.animateInTimeStamp=_.Yy("hide_cta_for_home_web_video_ads_animate_in_time");X.animateInCta=!1;X.isHovered=!1;X.enableMonoStyle=_.P("enable_default_mono_cta_migration_web_client");X.player=null;X.JSC$15863_playerEvents=new Map;X.JSC$15863_preventProgressSaveTimer=null;X.delayedCtaJobId=null;return X};
_.S(Tg,_.a);_.R=Tg.prototype;_.R.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]]"}}}}}};
_.R.attached=function(){this.JSC$15863_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15863_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.P("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.R.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15863_playerEvents)};
_.R.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Tg.JSC$15862_DEFAULT_CLICK_LOCATION_BEHAVIOR,Tg.JSC$15862_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.R.hoverChanged=function(){var X=this;this.delayedCtaJobId&&(_.Ss.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.P("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Rs(_.Ss,function(){X.buttonContainer.classList.add("show-delayed-buttons")},_.Yy("delayed_cta_on_web_delay_milliseconds")))};
_.R.setPlayer=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return(H=_.NG(X.hostElement,"yt-get-inline-preview-player-action"))&&H[0]?l.yield(H[0].getPlayerPromise(),3):l.jumpTo(0);X.player=l.yieldResult;X.ytPlayerListenerBehavior.listenToPlayerEvents(X.player,X.JSC$15863_playerEvents);_.m5(l)})};
_.R.onPlaybackStart=function(){var X=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15863_preventProgressSaveTimer=_.v5(_.Ss,function(){X.JSC$15863_preventProgressSaveTimer=null},1E4))};
_.R.onVideoProgress=function(X){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&X>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.R.resetPreventProgressSaveTimer=function(){_.Ss.cancelJob(this.JSC$15863_preventProgressSaveTimer);this.JSC$15863_preventProgressSaveTimer=null};
_.R.getSimpleString=function(X){return _.D8(X)};
_.R.onClick=function(X){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var H,l=(H=this.data)==null?void 0:H.navigationEndpoint,b;H=(b=this.data)==null?void 0:b.channelEndpoint;var U,K;((K=_.f((U=this.data)==null?void 0:U.adCtaButton,_.yB))==null?0:K.command)&&_.Em(_.t2(X),this.hostElement,["call-to-action"])||(H&&_.Em(_.t2(X),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(H,X,!1):!_.Em(_.t2(X),this.hostElement,
["secondary-button"])&&l&&(_.P("enable_short_dr_for_desktop_launchable")?(b=!!_.f(l,_.ku),this.isInlinePlaybackState&&b&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(l,X,b)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(l,X,!0))))}};
_.R.updateWatchEndpointStartTime=function(){var X,H;this.player&&((X=this.data)==null?0:X.inlinePlaybackEndpoint)&&((H=this.data)==null?0:H.navigationEndpoint)&&!this.JSC$15863_preventProgressSaveTimer&&(X=Math.floor(this.player.getCurrentTime()),_.f(this.data.navigationEndpoint,_.ku).startTimeSeconds=X,_.f(this.data.inlinePlaybackEndpoint,_.ku).startTimeSeconds=X)};
_.R.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.R.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.ja.Object.defineProperties(Tg.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.P("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var X,H;return!((X=this.data)==null||!X.watchButton)&&!((H=this.data)==null||!H.adCtaButton)}}});
Tg.prototype.hoverChanged=Tg.prototype.hoverChanged;Tg.prototype.dataChanged=Tg.prototype.dataChanged;
Tg.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"]]);
Tg.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Tg.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.GC.YtSparklesClickLocationBehavior),_.N("design:type",Object)],Tg.prototype,"ytSparklesClickLocationBehavior",void 0);
_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],Tg.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Tg.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Tg.prototype,"isInlinePlaybackState",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Tg.prototype,"miniMode",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Tg.prototype,"uiUpdate",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Tg.prototype,"hideCta",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Tg.prototype,"noBottomMargin",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Tg.prototype,"animateInCta",void 0);_.T([_.g({computed:"computeButtonOverride(uiUpdate)"}),_.N("design:type",Object)],Tg.prototype,"buttonOverride",void 0);
_.T([_.g({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.N("design:type",Object)],Tg.prototype,"secondaryButtonOverride",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Tg.prototype,"isHovered",void 0);_.T([_.A2("#button-container"),_.N("design:type",HTMLElement)],Tg.prototype,"buttonContainer",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Tg.prototype,"typographyBump",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("typographyBump"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tg.prototype,"typographyBumpV2",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Tg.prototype,"enableMonoStyle",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tg.prototype,"dataChanged",null);
_.T([_.Yh("isHovered"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tg.prototype,"hoverChanged",null);_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tg.prototype,"isButtonGroup",null);_.T([_.sq({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Tg);
_.O(Tg,"ytd-ad-inline-playback-meta-block",function(){if(YE9!==void 0)return YE9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return YE9=X},{mode:2});var I2z;var NC=function(){var X=_.a.apply(this,arguments)||this;X.noBottomMargin=!1;X.isInlinePreviewTriggered=!1;X.JSC$15868_activeViewMeasurementDataResolver=_.kj();return X};
_.S(NC,_.a);_.R=NC.prototype;_.R.created=function(){this.activeView=new Qx(this.hostElement)};
_.R.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.attached=function(){var X=this;this.updateInlinePreviewHoverListeners();this.JSC$15868_activeViewMeasurementDataResolver.promise.then(function(H){TC(X.activeView,H)});
_.P("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Nj(X.activeView)})};
_.R.detached=function(){this.clearInlinePreviewHoverListeners();_.P("stop_av_measurement_on_detach")&&Nj(this.activeView)};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15868_inlinePreviewHoverListener=yE({mediaRenderer:this,lockupElement:this.JSC$15868_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:CO9})};
_.R.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15868_inlinePreviewHoverListener)==null||vx(X)};
_.R.onDataChanged=function(){var X;((X=this.data)==null?0:X.activeView)&&this.JSC$15868_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",NC.JSC$15867_DEFAULT_CLICK_LOCATION_BEHAVIOR,NC.JSC$15867_CLICK_LOCATION_ID_MAP);this.thumbnail&&(X=this.thumbnail.getElementsByTagName("a"),X.length>0&&(X=X.namedItem("thumbnail"))&&X.removeAttribute("href"));var H;if((H=this.data)==
null?0:H.forceImpAutoplay){var l;(l=this.JSC$15868_inlinePreviewHoverListener)==null||i1y(l)}};
_.R.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.R.onThumbnailContainerClick=function(X){if(this.data&&this.data.navigationEndpoint){var H,l=(H=this.data)==null?void 0:H.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(l,X,!!_.f(l,_.ku));X.stopPropagation()}};
_.R.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.R.impressionLog=function(){var X=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var H,l,b=(l=_.f((H=this.data)==null?void 0:H.onImpression,_.J$))==null?void 0:l.commands;b&&(b.forEach(function(U){U.clickTrackingParams&&delete U.clickTrackingParams;X.ytComponentBehavior.resolveCommand(U)}),this.data.impressionsFired=!0)}};
_.ja.Object.defineProperties(NC.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$15868_inlinePreviewHoverListener)==null?0:fn(X))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
NC.prototype.onTypographyBumpChanged=NC.prototype.onTypographyBumpChanged;NC.prototype.onDataChanged=NC.prototype.onDataChanged;NC.JSC$15867_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);NC.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([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],NC.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],NC.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],NC.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],NC.prototype,"ytdLockupBehavior",void 0);
_.T([_.k(_.sv),_.N("design:type",Object)],NC.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.GC.YtSparklesClickLocationBehavior),_.N("design:type",Object)],NC.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],NC.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],NC.prototype,"noBottomMargin",void 0);_.T([_.g(),_.N("design:type",Object)],NC.prototype,"isInlinePreviewTriggered",void 0);
_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],NC.prototype,"miniMode",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],NC.prototype,"typographyBump",void 0);_.T([_.A2("ytd-thumbnail"),_.N("design:type",HTMLElement)],NC.prototype,"thumbnail",void 0);_.T([_.A2("#dismissible"),_.N("design:type",HTMLElement)],NC.prototype,"JSC$15868_dismissibleMedia",void 0);
_.T([_.A2("ytd-ad-inline-playback-meta-block"),_.N("design:type",HTMLElement)],NC.prototype,"adInlinePlaybackMetaBlock",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NC.prototype,"onDataChanged",null);_.T([_.oi("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NC.prototype,"onTypographyBumpChanged",null);
_.T([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],NC.prototype,"isHovered",null);_.T([_.sq({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],NC);
_.O(NC,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(I2z!==void 0)return I2z;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return I2z=X},{mode:1});var Ae_;var ca=function(){var X=_.a.apply(this,arguments)||this;X.isInlinePreviewTriggered=!1;X.JSC$15871_activeViewMeasurementDataResolver=_.kj();return X};
_.S(ca,_.a);_.R=ca.prototype;_.R.created=function(){this.activeView=new Qx(this.hostElement)};
_.R.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.attached=function(){var X=this;this.updateInlinePreviewHoverListeners();this.JSC$15871_activeViewMeasurementDataResolver.promise.then(function(H){TC(X.activeView,H)})};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15871_inlinePreviewHoverListener=yE({mediaRenderer:this,lockupElement:this.JSC$15871_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:CO9})};
_.R.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$15871_inlinePreviewHoverListener)==null||vx(X)};
_.R.onDataChanged=function(){var X;((X=this.data)==null?0:X.activeView)&&this.JSC$15871_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",ca.JSC$15870_DEFAULT_CLICK_LOCATION_BEHAVIOR,ca.JSC$15870_CLICK_LOCATION_ID_MAP);this.thumbnail&&(X=this.thumbnail.getElementsByTagName("a"),X.length>0&&(X=X.namedItem("thumbnail"))&&X.removeAttribute("href"))};
_.R.onThumbnailContainerClick=function(X){if(this.data&&this.data.navigationEndpoint){var H,l=(H=this.data)==null?void 0:H.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(l,X,!0);X.stopPropagation()}};
_.R.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.R.impressionLog=function(){var X=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var H,l,b=(l=_.f((H=this.data)==null?void 0:H.onImpression,_.J$))==null?void 0:l.commands;b&&(b.forEach(function(U){U.clickTrackingParams&&delete U.clickTrackingParams;_.jJ().resolve(_.Vr).resolveCommand(U,{form:{element:X.hostElement}})}),this.data.impressionsFired=!0)}};
_.ja.Object.defineProperties(ca.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$15871_inlinePreviewHoverListener)==null?0:fn(X))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ca.prototype.onDataChanged=ca.prototype.onDataChanged;ca.JSC$15870_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);ca.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ca.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],ca.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],ca.prototype,"ytdLockupBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],ca.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.GC.YtSparklesClickLocationBehavior),_.N("design:type",Object)],ca.prototype,"ytSparklesClickLocationBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],ca.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],ca.prototype,"isInlinePreviewTriggered",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],ca.prototype,"miniMode",void 0);_.T([_.A2("ytd-thumbnail"),_.N("design:type",HTMLElement)],ca.prototype,"thumbnail",void 0);_.T([_.A2("#dismissible"),_.N("design:type",HTMLElement)],ca.prototype,"JSC$15871_dismissibleMedia",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ca.prototype,"onDataChanged",null);_.T([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ca.prototype,"isHovered",null);_.T([_.sq({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],ca);
_.O(ca,"ytd-video-display-full-buttoned-renderer",function(){if(Ae_!==void 0)return Ae_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Ae_=X},{mode:1});var i4=function(X,H,l,b){b=b===void 0?!1:b;_.XO.call(this,X);this.adsClientErrorMessage=l;this.aggressivelySample=b;this.args=[];H&&this.args.push(H)};
_.S(i4,_.XO);var as=function(X,H,l,b){b=b===void 0?!1:b;_.XO.call(this,X);this.adsClientErrorMessage=l;this.aggressivelySample=b;this.args=[];H&&this.args.push(H)};
_.S(as,_.XO);var Xsv=function(X){_.$e.call(this);var H=this;this.initializationFunction=X;this.instance=null;this.addOnDisposeCallback(function(){_.Gp(H.instance);H.instance=null})};
_.S(Xsv,_.$e);Xsv.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.k$("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var IXL=function(){var X=new Map;[].forEach(function(H){X.set(H.JSC$31558_getType(),H)});
this.getters=X};new Promise(function(){});var jGh=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"]]),N_O=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"}]]),HmD=function(X){this.experimentApiProvider=X;X=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=X<.1};var jK=function(X,H,l,b){_.$e.call(this);this.adsControlFlowEventListeners=H;this.adEventLogger=l;this.experimentApiProvider=b;this.adsControlFlowManagerHelper=X(this,this,this,this,this);_.LY(this,this.adsControlFlowManagerHelper);X=_.C(H);for(H=X.next();!H.done;H=X.next())_.LY(this,H.value)};
_.S(jK,_.$e);var lx9=function(X,H,l,b){re(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",H,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b);X=_.C(X.adsControlFlowEventListeners);for(b=X.next();!b.done;b=X.next())lx9(b.value,H,l)};
_.R=jK.prototype;_.R.onOpportunityProcessedExternallyManaged=function(X,H,l,b){re(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",X,l,H,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)};
_.R.onSlotReceivedExternallyManaged=function(X,H){JK(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",X,H)};
_.R.onSlotEntered=function(X){if(LB(this.adsControlFlowManagerHelper,X)!=null){JK(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",X);this.adsControlFlowManagerHelper.onSlotEntered(X);for(var H=_.C(this.adsControlFlowEventListeners),l=H.next();!l.done;l=H.next())l.value.onSlotEntered(X);if(LB(this.adsControlFlowManagerHelper,X)!=null&&LB(this.adsControlFlowManagerHelper,X).isOccupyingSlotType()&&YR(this.adsControlFlowManagerHelper,X)&&!ocq(this.adsControlFlowManagerHelper,X)){var b;Ir(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",X,(b=YR(this.adsControlFlowManagerHelper,X))!=null?b:void 0);X=LB(this.adsControlFlowManagerHelper,X);X.slotLifecycleStage!=="entered"&&AK(X.slot,X.slotLifecycleStage,"enterLayoutForSlot");X.slotLifecycleStage="rendering";X.registeredLayoutRenderingAdapter.startRendering(X.layout)}}};
_.R.onSlotExited=function(X){if(LB(this.adsControlFlowManagerHelper,X)!=null){JK(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",X);this.adsControlFlowManagerHelper.onSlotExited(X);for(var H=_.C(this.adsControlFlowEventListeners),l=H.next();!l.done;l=H.next())l.value.onSlotExited(X);LB(this.adsControlFlowManagerHelper,X)!=null&&LB(this.adsControlFlowManagerHelper,X).markedForUnscheduleAfterOutboundAdapterRequests&&bmH(this,X)}};
_.R.onLayoutReceivedExternallyManaged=function(X,H,l){X.managerLayer!=="core"&&Ir(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",X,H,l)};
var U_F=function(X,H,l){if(LB(X.adsControlFlowManagerHelper,H)!=null){Ir(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",H,l);X=_.C(X.adsControlFlowEventListeners);for(var b=X.next();!b.done;b=X.next())U_F(b.value,H,l)}};
jK.prototype.onLayoutExited=function(X,H,l){if(LB(this.adsControlFlowManagerHelper,X)!=null){Ir(this.adEventLogger,c78(l),X,H);this.adsControlFlowManagerHelper.onLayoutExited(X,H);for(var b=_.C(this.adsControlFlowEventListeners),U=b.next();!U.done;U=b.next())U.value.onLayoutExited(X,H,l);(l=YR(this.adsControlFlowManagerHelper,X))&&H.layoutId===l.layoutId&&$_C(this,X)}};
jK.prototype.disposeInternal=function(){var X=KvF(this.adsControlFlowManagerHelper);X=_.C(X);for(var H=X.next();!H.done;H=X.next())bmH(this,H.value);_.$e.prototype.disposeInternal.call(this)};
var bmH=function(X,H){if(LB(X.adsControlFlowManagerHelper,H)!=null)if(LB(X.adsControlFlowManagerHelper,H).JSC$31588_isSlotExitRequested()||LB(X.adsControlFlowManagerHelper,H).JSC$31588_isLayoutExitRequested())LB(X.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(LB(X.adsControlFlowManagerHelper,H).isOccupyingSlotType())LB(X.adsControlFlowManagerHelper,H).markedForUnscheduleAfterOutboundAdapterRequests=!0,$_C(X,H);else if(LB(X.adsControlFlowManagerHelper,H).JSC$31588_isSlotFillRequested())LB(X.adsControlFlowManagerHelper,
H).markedForUnscheduleAfterOutboundAdapterRequests=!0,LB(X.adsControlFlowManagerHelper,H)!=null&&(JK(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",H),H=LB(X.adsControlFlowManagerHelper,H),H.fulfillmentLifecycleStage="fill_cancel_requested",H.registeredFulfillmentAdapter.cancelSlotFilling());else{var l=YR(X.adsControlFlowManagerHelper,H),b;X.experimentApiProvider.get();(b=_.P("h5_enable_layout_unscheduling_events"))&&(l?RTH(X,H,l):_.k$(Error("Mh"),H,l,void 0,!1));JK(X.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",H);var U=LB(X.adsControlFlowManagerHelper,H),K=H.slotEntryTrigger,w=U.registeredSlotEntryTriggerAdapters.get(K.triggerId);w&&(w.unregisterTrigger(K),U.registeredSlotEntryTriggerAdapters.delete(K.triggerId));K=_.C(H.slotFulfillmentTriggers);for(w=K.next();!w.done;w=K.next()){w=w.value;var d=U.registeredFulfillmentTriggerAdapters.get(w.triggerId);d&&(d.unregisterTrigger(w),U.registeredFulfillmentTriggerAdapters.delete(w.triggerId))}K=_.C(H.slotExpirationTriggers);
for(w=K.next();!w.done;w=K.next())if(w=w.value,d=U.registeredExpirationTriggerAdapters.get(w.triggerId))d.unregisterTrigger(w),U.registeredExpirationTriggerAdapters.delete(w.triggerId);U.hasLayout()&&(K=U.layout,X7(U,K.layoutExitNormalTriggers),X7(U,K.layoutExitSkipTriggers),X7(U,K.layoutExitMuteTriggers),X7(U,K.layoutExitUserInputSubmittedTriggers),X7(U,K.layoutExitUserCancelledTriggers));U.registeredFulfillmentAdapter=void 0;U.registeredSlotAdapter!=null&&(U.registeredSlotAdapter.release(),U.registeredSlotAdapter=
void 0);U.registeredLayoutRenderingAdapter!=null&&(U.registeredLayoutRenderingAdapter.release(),U.registeredLayoutRenderingAdapter=void 0);U=X.adsControlFlowManagerHelper;LB(U,H)&&(U=CXH(U,H.slotType+"_"+H.slotPhysicalPosition))&&U.delete(H.slotId);JK(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",H);X=_.C(X.adsControlFlowEventListeners);for(U=X.next();!U.done;U=X.next())U=U.value,U.onSlotUnscheduled(H),l&&!b&&RTH(U,H,l)}},RTH=function(X,H,l){Ir(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
H,l);
Ir(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",H,l);X=_.C(X.adsControlFlowEventListeners);for(var b=X.next();!b.done;b=X.next())b=b.value,l&&RTH(b,H,l)},$_C=function(X,H){if(LB(X.adsControlFlowManagerHelper,H)!=null&&LB(X.adsControlFlowManagerHelper,H).isOccupyingSlotType()){var l=YR(X.adsControlFlowManagerHelper,H);
if(l&&ocq(X.adsControlFlowManagerHelper,H)){if(LB(X.adsControlFlowManagerHelper,H)!=null){var b=X.adEventLogger,U;var K=((U=N_O.get("abandoned"))==null?void 0:U.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Ir(b,K,H,l);X=LB(X.adsControlFlowManagerHelper,H);X.slotLifecycleStage!=="rendering"&&AK(X.slot,X.slotLifecycleStage,"exitLayout");X.slotLifecycleStage="rendering_stop_requested";X.registeredLayoutRenderingAdapter.stopRendering(l,"abandoned")}}else{JK(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
H);try{b=LB(X.adsControlFlowManagerHelper,H);if(!b)throw new as("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");b.slotLifecycleStage!=="enter_requested"&&b.slotLifecycleStage!=="entered"&&b.slotLifecycleStage!=="rendering"&&AK(b.slot,b.slotLifecycleStage,"exitSlot");b.slotLifecycleStage="exit_requested";if(b.registeredSlotAdapter===void 0)throw b.slotLifecycleStage="scheduled",new as("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
b.registeredSlotAdapter.exit()}catch(w){w instanceof as&&w.adsClientErrorMessage?(wsQ(X.adEventLogger,w.adsClientErrorMessage,H),_.k$(w,H,void 0,void 0,w.aggressivelySample)):(wsQ(X.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",H),_.k$(w,H))}}}};var HN=function(X,H,l,b,U,K){_.$e.call(this);this.registry=X;this.experimentApiProvider=K;this.slotMap=new Map};
_.S(HN,_.$e);var CXH=function(X,H){return(X=X.slotMap.get(H))?X:new Map},LB=function(X,H){return CXH(X,H.slotType+"_"+H.slotPhysicalPosition).get(H.slotId)},KvF=function(X){var H=[];
X.slotMap.forEach(function(l){l=_.C(l.values());for(var b=l.next();!b.done;b=l.next())H.push(b.value.slot)});
return H};
HN.prototype.onSlotEntered=function(X){X=LB(this,X);X.slotLifecycleStage!=="enter_requested"&&AK(X.slot,X.slotLifecycleStage,"onSlotEntered");X.slotLifecycleStage="entered"};
var ocq=function(X,H){X=LB(X,H);return X.hasLayout()&&X.isRendering()},YR=function(X,H){(X=LB(X,H))?X.hasLayout()&&!X.layout&&_.k$("Unexpected empty layout",H):_.k$("Unexpected undefined slotState",H);
return(X==null?void 0:X.layout)||null};
HN.prototype.onSlotExited=function(X){X=LB(this,X);X.slotLifecycleStage!=="exit_requested"&&AK(X.slot,X.slotLifecycleStage,"onSlotExited");X.slotLifecycleStage="scheduled"};
HN.prototype.onLayoutExited=function(X,H){X=LB(this,X);X.isPrimaryLayout(H)&&(X.slotLifecycleStage!=="rendering_stop_requested"&&AK(X.slot,X.slotLifecycleStage,"onLayoutExited"),X.slotLifecycleStage="entered")};
var X7=function(X,H){H=_.C(H);for(var l=H.next();!l.done;l=H.next()){l=l.value;var b=X.registeredLayoutExitTriggerAdapters.get(l.triggerId);b&&(b.unregisterTrigger(l),X.registeredLayoutExitTriggerAdapters.delete(l.triggerId))}},AK=function(X,H,l){_.k$("Slot stage was "+H+" when calling method "+l,X)};var hTD=function(X){_.$e.call(this);this.deps=X;this.JSC$15921_adsControlFlowManager=d_C(this)};
_.S(hTD,_.$e);var d_C=function(X){var H=new jK(function(l,b,U,K){return new HN(X.deps.registry,l,b,U,K,X.deps.experimentApiProvider)},new Set(YDh(X.deps.registry).concat(X.deps.listeners)),X.deps.adEventLogger,X.deps.experimentApiProvider);
_.LY(X,H);return H};var DJy=function(){};var FvF=function(X,H){_.$e.call(this);this.experimentApiProvider=X;this.eventLoggingSettingsProvider=H;this.eventCount=0;this.premiumAdSeenEventLogger=tFb()()};
_.S(FvF,_.$e);FvF.prototype.logEvent=function(X){re(this,X)};
var JK=function(X,H,l,b){re(X,H,void 0,void 0,void 0,l,void 0,void 0,void 0,l.adSlotLoggingData,void 0,void 0,b)},Ir=function(X,H,l,b,U){re(X,H,void 0,void 0,void 0,l,b?b:void 0,void 0,void 0,l.adSlotLoggingData,b?b.adLayoutLoggingData:void 0,void 0,U);
l=_.jJ().resolve(_.c$(yJ))==null?void 0:VJ();H=l==null?void 0:l.adsSeenHotConfig;l=l==null?void 0:l.adsHotConfig;(H==null?0:H.logOnAdsSeen)&&(l==null?0:l.webEnablePremiumAdsSeenLogging)&&B09(X,b?b:void 0,U)},wsQ=function(X,H,l){re(X,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,l,void 0,void 0,void 0,l.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:H})},re=function(X,H,l,b,U,K,w,d,B,q,u,e,y){y=y===void 0?0:y;
qPv(X.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+H,"slot:",K,"layout:",w,"ping:",d,"Opportunity:",{opportunityType:l,associatedSlotId:b,slotsFromOpportunity:U,triggerBundle:B,adSlotLoggingData:q,adLayoutLoggingData:u});try{var V=function(){X.experimentApiProvider.get();if(H!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){H||_.k$("Empty PACF event type",K,w);var p=X.eventLoggingSettingsProvider.get();var z;(z=p.alwaysIncludeDebugData)||(p.experimentApiProvider.get(),z=
!1);p=z;z={eventType:H,eventOrder:++X.eventCount};var t={};K&&(t.slotData=J7W(p,K));if(w){var W={type:w.layoutType,controlFlowManagerLayer:jGh.get(w.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};p&&(W.debugData={layoutId:w.layoutId});t.layoutData=W}d&&(t.pingData={pingDispatchStatus:d.dispatchStatus,serializedAdPingMetadata:d.ping.serializedAdPingMetadata,pingIndex:d.index});B&&(t.triggerData=r7O(B.trigger,B.category));l&&(t.opportunityData=Lom(p,l,b,U));z.adClientData=t;q&&(z.serializedSlotAdServingData=
q.serializedSlotAdServingDataEntry);u&&(z.serializedAdServingData=u.serializedAdServingDataEntry);e&&(z.errorInfo=e);_.Sh("adsClientStateChange",{adsClientEvent:z})}};
y&&y>0?_.eh(_.qV(),function(){return V()},y):V()}catch(p){qPv(X.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.eh(_.qV(),function(){_.k$(p instanceof Error?p:String(p),K,w,{pacf_message:"exception during pacf logging"})})}},B09=function(X,H,l){if(H){var b=H.adLayoutLoggingData;
_.eh(_.qV(),function(){X.premiumAdSeenEventLogger!=null&&b&&_.Sh("adsSeenClientLogging",{serializedAdServingDataEntry:b.serializedAdServingDataEntry})},l!=null?l:0)}};var sQC=function(X,H){FvF.call(this,X,H)};
_.S(sQC,FvF);var M$z=function(){},qPv=function(X,H){return _.P(H)};var eTH=function(){var X=new uoz;this.JSC$15946_adsControlFlowManager=(new hTD(X)).JSC$15921_adsControlFlowManager},uoz=function(){_.$e.call(this);
var X=this;this.experimentApiProvider=new Xsv(function(){return new M$z});
var H=new Xsv(function(){return new HmD(X.experimentApiProvider)});
this.adEventLogger=new sQC(this.experimentApiProvider,H);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.S(uoz,_.$e);var yA6=function(){},V$9,ln=function(){V$9||(V$9=new yA6);
return V$9},oY=function(X){if(!X.JSC$15957_externallyManagedSlotAdapterCallback){var H=(new eTH).JSC$15946_adsControlFlowManager;
X.JSC$15957_externallyManagedSlotAdapterCallback=H}return X.JSC$15957_externallyManagedSlotAdapterCallback},PXG=function(X,H,l){var b=H.opportunityType,U=Error("Nh");
if(b!==void 0){var K=oY(X);lx9(K,b,void 0,l)}else _.k$(U,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});K=[];if(H.adSlotAndLayoutMetadata!==void 0){H=_.C(H.adSlotAndLayoutMetadata);for(var w=H.next();!w.done;w=H.next()){var d=w.value;if(w=d.adSlotMetadata)if(K.push(w),X.onSlotReceivedExternallyManaged(w,l),d.adLayoutMetadata){d=_.C(d.adLayoutMetadata);for(var B=d.next();!B.done;B=d.next())X.onLayoutReceivedExternallyManaged(w,B.value,l)}else l>0&&_.k$("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else l>0&&_.k$("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else l>0&&_.k$("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+b,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(b!==void 0)X.onOpportunityProcessedExternallyManaged(b,K,void 0,l);else _.k$(U,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
yA6.prototype.onSlotReceivedExternallyManaged=function(X,H){X=ZI(X);if(X instanceof as)_.k$(X,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else oY(this).onSlotReceivedExternallyManaged(X,H)};
yA6.prototype.onLayoutReceivedExternallyManaged=function(X,H,l){X=ZI(X);H=A7b(H);if(X instanceof as)_.k$(X,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(H instanceof i4)_.k$(H,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else oY(this).onLayoutReceivedExternallyManaged(X,H,l)};
yA6.prototype.onOpportunityProcessedExternallyManaged=function(X,H,l,b){var U=[];H=_.C(H);for(var K=H.next();!K.done;K=H.next())K=ZI(K.value),K instanceof as?_.k$(K,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):U.push(K);oY(this).onOpportunityProcessedExternallyManaged(X,U,l,b)};
var fxH=function(X,H){H=ZI(H);if(H instanceof as)_.k$(H,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var l=oY(X);JK(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",H);l=_.C(l.adsControlFlowEventListeners);for(var b=l.next();!b.done;b=l.next())b=LB(b.value,H),b.slotLifecycleStage!=="not_scheduled"&&AK(b.slot,b.slotLifecycleStage,"onSlotScheduled"),b.slotLifecycleStage="scheduled";X=oY(X);JK(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",H);X=_.C(X.adsControlFlowEventListeners);
for(l=X.next();!l.done;l=X.next())l.value.onSlotEntered(H)}},pst=function(X,H){H=ZI(H);
if(H instanceof as)_.k$(H,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var l=oY(X);JK(l.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",H);l=_.C(l.adsControlFlowEventListeners);for(var b=l.next();!b.done;b=l.next())b.value.onSlotExited(H);X=oY(X);JK(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",H);X=_.C(X.adsControlFlowEventListeners);for(l=X.next();!l.done;l=X.next())l.value.onSlotUnscheduled(H)}},SPC=function(X,H,l){H=ZI(H);
l=A7b(l);if(H instanceof as)_.k$(H,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(l instanceof i4)_.k$(l,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var b=oY(X);Ir(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",H,l);b=_.C(b.adsControlFlowEventListeners);for(var U=b.next();!U.done;U=b.next())U.value.onLayoutScheduled(H,l);X=oY(X);Ir(X.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",H,l);X=_.C(X.adsControlFlowEventListeners);
for(b=X.next();!b.done;b=X.next())U_F(b.value,H,l)}},bn=function(X,H,l){H=ZI(H);
l=A7b(l);if(H instanceof as)_.k$(H,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(l instanceof i4)_.k$(l,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var b=oY(X);Ir(b.adEventLogger,c78("normal"),H,l);b=_.C(b.adsControlFlowEventListeners);for(var U=b.next();!U.done;U=b.next())U.value.onLayoutExited(H,l,"normal");X=oY(X);X=_.C(X.adsControlFlowEventListeners);for(b=X.next();!b.done;b=X.next())RTH(b.value,H,l)}};var zT9=_.Z(function(X){var H=X.data,l=X.listenToTapEvent,b=function(){};
return _.F("ad-button-hover-overlay-view-model",{"on:click":_.Nq(function(U){if(_.P("enable_web_home_top_landscape_image_layout_legacy_click_command")){var K,w=(K=H().interaction)==null?void 0:K.onTap;w&&_.QX(U.currentTarget,"yt-navigate",{endpoint:_.sl(w)})}}),
class:function(){var U;return((U=H().interaction)==null?0:U.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.xl(_.jh({visibilityCallback:function(U){var K,w=(K=H().interaction)==null?void 0:K.onFirstVisible;U&&w&&_.yr(w)},
showOption:_.mf}),_.P6(function(){return H().interaction},void 0,function(){return!_.P("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(l==null?void 0:l())}))},function(){return _.P("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.F(_.l4,{data:function(){return H().button}},{adButtonViewModel:function(U){return _.F(_.NX,{data:U.data,
customCommandResolver:b})}}):_.F(_.l4,{data:function(){return H().button}},{adButtonViewModel:_.NX})}())},"uc");var v6;_.gC(_.Z(function(X){var H=X.data;X=_.jh({visibilityCallback:function(d,B){if(d){var q;(d=(q=H().interaction)==null?void 0:q.onFirstVisible)&&_.yr(d);var u;if(q=(u=H().adLayoutData)==null?void 0:u.activeViewData)Os(B,q),_.P("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&mC(B)})}else _.P("stop_av_measurement_on_detach")&&mC(B)},
showOption:_.mf,hideOption:QH});var l=_.P6(function(){return H().interaction},void 0,function(){return!0}),b=_.C(_.FU(!1,void 0,"VNDDT")),U=b.next().value,K=b.next().value;
b=_.Nq(function(){K(!0)});
var w=_.Nq(function(){K(!1)});
return _.F("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.xl(X,$Ay,l),"on:mouseenter":b,"on:mouseleave":w},_.F("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.rC({"max-width":function(){return _.P("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.F("div",{class:function(){var d;
a:{var B;switch((d=_.f(H().thumbnailImage,BbH))==null?void 0:(B=d.imageProperties)==null?void 0:B.renderingAspect){case "RENDERING_ASPECT_SQUARE":d="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":d="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}d=void 0}return d}},_.F(_.l4,{data:function(){return H().thumbnailImage}},{adImageViewModel:function(d){return _.F(_.Ti,
{data:d.data,
listenToTapEvent:!0,setTouchEndHandler:_.P("enable_top_landscape_image_experiment_dom_id_web")})}})),_.F("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.F(_.M,{cond:function(){var d,B,q;
return(d=_.f(H().thumbnailImage,BbH))==null?void 0:(B=d.imageProperties)==null?void 0:(q=B.overlayIcon)==null?void 0:q.iconImage},
then:function(d){return _.F(_.Dp,{data:d,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.F("div",{class:function(){return U()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.F(_.l4,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(d){return _.F(zT9,
{data:d.data,
listenToTapEvent:!0})}}))),_.F("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.F(_.l4,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(d){return _.F(IX,{data:d.data,
listenToTapEvent:!0,setTouchEndHandler:_.P("enable_top_landscape_image_experiment_dom_id_web")})}})))},"vc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;X=_.jh({visibilityCallback:function(d,B){if(d){var q;(d=(q=H().interaction)==null?void 0:q.onFirstVisible)&&_.yr(d);var u;if(q=(u=H().adLayoutData)==null?void 0:u.activeViewData)Os(B,q),_.P("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&mC(B)})}else _.P("stop_av_measurement_on_detach")&&mC(B)},
showOption:_.mf,hideOption:QH});var l=_.Aa(_.sm),b=_.P6(function(){return H().interaction}),U={},K={},w={};
return _.F("square-image-layout-view-model",{class:_.Qr("ytwSquareImageLayoutViewModelHost",(U.ytwSquareImageLayoutViewModelHostColumn=l,U)),el:_.xl(X,KEO,b)},_.F("div",{class:_.Qr("ytwSquareImageLayoutViewModelHostImage",(K.ytwSquareImageLayoutViewModelHostColumnImage=l,K))},function(){return _.F(_.l4,{data:function(){return H().adImage}},{adImageViewModel:function(d){return _.F(_.Ti,{data:d.data,
isGridViewEnabled:l,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.F("div",{class:_.Qr("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(w.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=l,w))},_.F(_.l4,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:IX}),function(){return _.F(_.l4,{data:function(){return H().adButton}},{adButtonViewModel:function(d){var B={};
return _.F(_.NX,{data:d.data,className:_.Qr((B.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,B.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=l,B))})}})}()))},"wc"),"square-image-layout-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;var l=X.noBottomMargin;var b=X.typographyBump;X=_.jh({visibilityCallback:function(e,y){if(e){var V;(e=(V=H().interaction)==null?void 0:V.onFirstVisible)&&_.yr(e);var p;if(V=(p=H().adLayoutData)==null?void 0:p.activeViewData)Os(y,V),_.P("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&mC(y)})}else _.P("stop_av_measurement_on_detach")&&mC(y)},
showOption:_.mf,hideOption:QH});var U=_.P6(function(){return H().interaction},void 0,function(){return _.P("enable_web_home_top_landscape_image_layout_level_click")}),K=function(){return H().interaction};
K!==void 0&&K!==null||_.v$(Error("Oh"));var w=function(){var e,y,V;return(e=_.f(H().thumbnailImage,BbH))==null?void 0:(y=e.background)==null?void 0:(V=y.backgroundImageSource)==null?void 0:V.imageSources};
K=_.C(_.FU(!1,void 0,"NFjwje"));var d=K.next().value,B=K.next().value;K=_.Nq(function(){B(!0)});
var q=_.Nq(function(){B(!1)}),u=function(){return d()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.F("top-landscape-image-layout-view-model",{class:function(){var e;return((e=H().interaction)==null?0:e.onTap)&&_.P("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.xl(X,Rjl,U),"on:mouseenter":K,"on:mouseleave":q},_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.F(_.M,{cond:function(){return w()&&w().length>0},
then:function(){return _.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.rC({top:"0","background-image":function(){return"url("+String(w()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.F(_.M,{cond:function(){return!!H().adButtonHoverOverlay},
then:function(){return _.F("div",{class:u},_.F(_.l4,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:zT9}))}}),_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.F(_.l4,{data:function(){return H().thumbnailImage}},{adImageViewModel:function(e){return _.F(_.Ti,{data:e.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.P("enable_web_home_top_landscape_image_layout_level_click")})}})),_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.F(_.Dp,{data:{sources:[{clientResource:{imageName:_.P("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.F("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.F(_.l4,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(e){return _.F(IX,{data:e.data,
noBottomMargin:function(){return l==null?void 0:l()},
listenToTapEvent:function(){return _.P("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return b==null?void 0:b()}})}})))},"xc"),"top-landscape-image-layout-view-model",{props:{data:_.zh,
noBottomMargin:_.zh,typographyBump:_.zh}});var nc9=_.Z(function(X){var H=X.data,l=_.jh({visibilityCallback:function(U){var K,w=(K=H().interaction)==null?void 0:K.onFirstVisible;U&&w&&_.yr(w)},
showOption:_.mf});X=_.P6(function(){return H().interaction},X.customCommandResolver);
var b={};return _.F("ad-text-image-view-model",{class:_.Qr("ytwAdTextImageViewModelHost",(b.ytwAdTextImageViewModelHostDarkBackground=function(){return H().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},b)),
el:_.xl(l,X),"aria-label":function(){var U,K;return(U=H().interaction)==null?void 0:(K=U.accessibility)==null?void 0:K.label}},_.F("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.F(_.Sj,{text:function(){return H().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.F(_.M,{cond:function(){return H().overlayIcon},
then:function(U){return _.F("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.F(_.Dp,{data:U,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"yc");var kJv=_.Z(function(X){var H=X.data;return _.F("feed-ad-sitelink-view-model",{class:function(){var l;return((l=H().interaction)==null?0:l.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.xl(_.P6(function(){return H().interaction},X.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var l,b;return(l=H().interaction)==null?void 0:(b=l.accessibility)==null?void 0:b.label},
role:"link",tabindex:0},_.F(_.Sj,{text:function(){return H().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"zc");var x__=_.Z(function(X){var H=X.data;X={};return _.F("feed-ad-sitelinks-carousel-view-model",{el:_.xl(_.jh({visibilityCallback:function(l){var b,U=(b=H().interaction)==null?void 0:b.onFirstVisible;l&&U&&_.yr(U)},
showOption:_.mf})),class:_.Qr("ytwFeedAdSitelinksCarouselViewModelHost",(X.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return H().style==="FEED_AD_SITELINKS_STYLE_NONE"},X))},_.F(_.l4,{data:function(){return H().sitelinks}},{feedAdSitelinkViewModel:kJv}))},"Ac");_.gC(_.Z(function(X){var H=X.data;X=_.jh({visibilityCallback:function(w,d){if(w){var B;(w=(B=H().interaction)==null?void 0:B.onFirstVisible)&&_.yr(w);var q;(B=(q=H().adLayoutData)==null?void 0:q.activeViewData)&&Os(d,B)}},
showOption:_.mf});var l=_.C(_.FU(!1,void 0,"BzPhl")),b=l.next().value,U=l.next().value;l=_.Nq(function(){U(!0)});
var K=_.Nq(function(){U(!1)});
return _.F("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.xl(X),"on:mouseenter":l,"on:mouseleave":K},_.F("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.F("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.F(_.l4,{data:function(){return H().textImage}},{adTextImageViewModel:nc9})),_.F("div",{class:function(){return b()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.F(_.l4,{data:function(){return H().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(w){return _.F(zT9,{data:w.data,
listenToTapEvent:!0})}}))),_.F("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.F(_.l4,{data:function(){return H().feedAdMetadata}},{feedAdMetadataViewModel:function(w){return _.F(IX,{data:w.data,
listenToTapEvent:!0})}}),_.F(_.l4,{data:function(){return H().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:x__})))},"Bc"),"text-image-no-button-layout-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;var l=X.typographyBump;return _.F("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.xl(_.jh({visibilityCallback:function(b,U){if(b){var K;(b=(K=H().interaction)==null?void 0:K.onFirstVisible)&&_.yr(b);var w;(K=(w=H().adLayoutData)==null?void 0:w.activeViewData)&&Os(U,K)}},
showOption:_.mf,hideOption:QH}))},_.F("div",null,_.F(_.l4,{data:function(){return H().videoLockup}},{lockupViewModel:function(b){return _.F(_.Ak,{data:b.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:l})}})))},"Cc"),"video-display-button-group-layout-view-model",{props:{data:_.zh,
noBottomMargin:_.zh,typographyBump:_.zh}});_.gC(_.Z(function(X){var H=X.data;var l=X.className;var b=X.typographyBump;return _.F("video-display-compact-button-group-layout-view-model",{el:_.xl(_.jh({visibilityCallback:function(U,K){if(U){var w;(U=(w=H().interaction)==null?void 0:w.onFirstVisible)&&_.yr(U);var d;(w=(d=H().adLayoutData)==null?void 0:d.activeViewData)&&Os(K,w)}},
showOption:_.mf})),class:_.Qr("videoDisplayCompactButtonGroupLayoutViewModelHost",l)},_.F(_.l4,{data:function(){return H().videoLockup}},{lockupViewModel:function(U){return _.F(_.Ak,{data:U.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:b})}}))},"Dc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.zh,
className:_.zh,typographyBump:_.zh}});_.gC(_.Z(function(X){var H=X.data;var l=X.className;var b=X.typographyBump;return _.F("video-display-compact-buttoned-layout-view-model",{el:_.xl(_.jh({visibilityCallback:function(U,K){if(U){var w;(U=(w=H().interaction)==null?void 0:w.onFirstVisible)&&_.yr(U);var d;(w=(d=H().adLayoutData)==null?void 0:d.activeViewData)&&Os(K,w)}},
showOption:_.mf})),class:_.Qr("videoDisplayCompactButtonedLayoutViewModelHost",l)},_.F(_.l4,{data:function(){return H().videoLockup}},{lockupViewModel:function(U){return _.F(_.Ak,{data:U.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:b})}}))},"Ec"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.zh,
className:_.zh,typographyBump:_.zh}});_.gC(_.Z(function(X){var H=X.data;var l=X.className;var b=X.typographyBump;return _.F("video-display-compact-carousel-button-group-layout-view-model",{el:_.xl(_.jh({visibilityCallback:function(U,K){if(U){var w;(U=(w=H().interaction)==null?void 0:w.onFirstVisible)&&_.yr(U);var d;(w=(d=H().adLayoutData)==null?void 0:d.activeViewData)&&Os(K,w)}},
showOption:_.mf})),class:_.Qr("videoDisplayCompactCarouselButtonGroupLayoutViewModelHost",l)},_.F(_.l4,{data:function(){return H().videoLockup}},{lockupViewModel:function(U){return _.F(_.Ak,{data:U.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:b})}}))},"Fc"),"video-display-compact-carousel-button-group-layout-view-model",{props:{data:_.zh,
className:_.zh,typographyBump:_.zh}});_.gC(_.Z(function(X){var H=X.data;var l=X.className;var b=X.typographyBump;var U=function(){return H().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},K=_.Aa(_.sm);
X=_.jh({visibilityCallback:function(q,u){if(q){var e=H();q=e.adLayoutData;var y;(e=(y=e.interaction)==null?void 0:y.onFirstVisible)&&_.yr(e);(y=q==null?void 0:q.activeViewData)&&Os(u,y)}},
showOption:_.mf});var w=_.uL(function(){return{containerType:U()&&K()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:U()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),d=_.uL(function(){return U()&&K()?"":U()?"168px":"50%"},void 0,"Om6kNe"),B=_.uL(function(){return U()&&K()?9999:void 0},void 0,"S71lKd");
return _.F("video-display-compact-layout-view-model",{el:_.xl(X),class:_.Qr("videoDisplayCompactLayoutViewModelHost",l)},_.F(_.l4,{data:function(){return H().videoLockup}},{lockupViewModel:function(q){return _.F(_.Ak,{data:q.data,
containerLayoutConfig:w,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:d,thumbnailTargetWidth:B,typographyBump:b})}}))},"Gc"),"video-display-compact-layout-view-model",{props:{data:_.zh,
className:_.zh,typographyBump:_.zh}});_.gC(_.Z(function(X){var H=X.data;var l=X.typographyBump;return _.F("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.xl(_.jh({visibilityCallback:function(b,U){if(b){var K;(b=(K=H().interaction)==null?void 0:K.onFirstVisible)&&_.yr(b);var w;(K=(w=H().adLayoutData)==null?void 0:w.activeViewData)&&Os(U,K)}},
showOption:_.mf,hideOption:QH}))},_.F("div",null,_.F(_.l4,{data:function(){return H().videoLockup}},{lockupViewModel:function(b){return _.F(_.Ak,{data:b.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:l})}})))},"Hc"),"video-display-full-layout-view-model",{props:{data:_.zh,
noBottomMargin:_.zh,typographyBump:_.zh}});var D_G=_.Z(function(X){var H=X.data;var l=X.customCommandResolver;var b=X.className;var U=X.buttonClassName;var K=X.animationEntityKey;var w=X.expansive;return _.F("carousel-button-view-model",{class:_.Qr("ytwCarouselButtonViewModelHost",b)},_.F(_.l4,{data:function(){return H().carousel}},{carouselAdCardCollectionViewModel:function(d){return _.F(saQ,{data:d.data,
customCommandResolver:l,expansive:w})}}),_.F(_.l4,{data:function(){return H().button}},{adButtonViewModel:function(d){var B=d.data;
return _.F(_.NX,{data:function(){return(w==null?0:w())?Object.assign({},B(),{style:"AD_BUTTON_STYLE_TONAL"}):B()},
className:U,customCommandResolver:l,animationEntityKey:K})}}))},"Ic");_.t$Y=_.Z(function(X){var H=X.data;X=X.className;var l=_.SJ("pivot-button-view-model");_.DR(function(){var b;((b=H())==null?0:b.backgroundColor)&&l.value.setAttribute("data-background-color",String(H().backgroundColor))});
return _.F("pivot-button-view-model",{el:l,class:_.Qr("ytwPivotButtonViewModelHost",X)},_.F(_.ZE,{command:function(){var b=H();b=b.onClickCommand?_.sl(b.onClickCommand):b.contentDescription?_.Gc(b.contentDescription):void 0;return b},
ariaLabel:function(){return H().contentDescription}},_.F(_.M,{cond:function(){return H().thumbnail},
then:function(b){return _.F(_.Dp,{data:b,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.F(_.M,{cond:function(){return H().icon},
then:function(b){return _.F(_.Ja,{icon:function(){return b().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Jc");_.Wvt=_.Z(function(X){var H=X.data;var l=X.buttonShapeOverrideables;X={};return _.F("reel-action-bar-view-model",{class:_.Qr("ytwReelActionBarViewModelHost",(X.ytwReelActionBarViewModelHostDecluttered=function(){return _.P("enable_shorts_declutter_ui")},X))},_.F(_.l4,{data:function(){return H().buttonViewModels}},{buttonViewModel:function(b){return _.F(_.Qk,{data:b.data,
buttonOverrides:l})},
likeButtonViewModel:function(b){return _.F(_.y7,{data:b.data,buttonShapeOverrideables:l})},
dislikeButtonViewModel:function(b){return _.F(_.eb,{data:b.data,buttonShapeOverrideables:l})},
toggleButtonViewModel:function(b){return _.F(_.KL,{data:b.data,buttonShapeOverrides:l})}}))},"Kc");var EcC=_.Z(function(X){var H=X.avatar;var l=X.headline;var b=X.badge;var U=X.description;var K=X.expansive;X={};return _.F("yt-ad-metadata-shape",{class:_.Qr("ytAdMetadataShapeHost",(X.ytAdMetadataShapeHostLarge=K,X.ytAdMetadataShapeHostDecluttered=function(){return _.P("enable_desktop_small_title_on_immersive_shorts")},X))},_.F("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.F(_.M,{cond:H,
then:function(w){return _.F(_.tk6,{data:function(){return(K==null?0:K())?Object.assign({},w(),{size:"AD_AVATAR_SIZE_M"}):w()}})}}),_.F("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.F(_.Sj,{text:l,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.F(_.M,{cond:b,then:function(w){return _.F(_.Ln,{data:function(){return(K==null?0:K())?Object.assign({},w(),{style:"AD_BADGE_STYLE_STARK"}):w()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.F("h2",{class:"ytAdMetadataShapeHostDescription"},_.F(_.Sj,{text:U,
linkInheritColor:!0,isHeadline:function(){return K==null?void 0:K()}})))},"Lc");var gc_=_.Z(function(X){var H=X.data;var l=X.onShow;var b=X.expansive;X=_.P6(function(){return H().interaction});
_.DR(function(){var K,w=(K=H().animatedRenderingConfig)==null?void 0:K.delayedSecondsToVisible;if(w){var d=setTimeout(l,w*1E3);_.E2(function(){clearTimeout(d)})}});
var U={};return _.F("reels-ad-card-buttoned-view-model",{class:_.Qr(function(){var K;return((K=H().interaction)==null?0:K.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(U.ytwReelsAdCardButtonedViewModelHostExpansive=b,U)),
el:_.xl(X)},_.F(EcC,{avatar:function(){return _.f(H().avatar,dDY)},
headline:function(){return H().headline},
badge:function(){return _.f(H().adBadge,hMv)},
description:function(){return H().description},
expansive:b}),_.F(_.l4,{data:function(){return H().ctaButton}},{adButtonViewModel:function(K){var w=K.data;
return _.F(_.NX,{data:function(){return(b==null?0:b())?Object.assign({},w(),{style:"AD_BUTTON_STYLE_FILLED"}):w()}})}}))},"Mc");var GJv=_.Z(function(X){var H=X.data;X=X.expansive;var l=_.P("web_ad_metadata_clickable")?_.P6(function(){return H().interaction},void 0,function(){return _.P("web_ad_metadata_clickable")}):void 0,b={};
b=_.dj("ytwReelsAdMetadataViewModelHost",(b.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.P("web_ad_metadata_clickable"),b));return _.F("reels-ad-metadata-view-model",{class:b,el:_.xl(l)},_.F(EcC,{avatar:function(){return _.f(H().avatar,dDY)},
headline:function(){return H().headline},
badge:function(){return _.f(H().adBadge,hMv)},
description:function(){return H().description},
expansive:X}))},"Nc");var ax9=_.Z(function(){return _.F("div",{class:"ytwVideoFilteringOverlayHost",style:_.rC({"background-color":function(){return _.qw(_.Yy("exp_shorts_ads_mvp_filtering_hex_value_web"))}})})},"Oc");var ZmH={iconPosition:"icon-with-label",size:"L"},imt=_.Z(function(X){var H=X.data;var l=X.overlayDensity;var b=X.extractOverlay;var U=X.extractActionBar;X=_.SJ("reels-player-overlay-layout-view-model");var K=_.Eq(l,0),w=function(){var V;return(V=H().reelsAdCardButtonedEntityKey)!=null?V:""},d=function(){return w()+"/ad_button"},B=_.Aw(m5Z,w),q=function(){var V,p;
return(p=(V=B())==null?void 0:V.value)!=null?p:!1},u=_.Aa(Cal),e=function(){var V,p=Object.assign({},ZmH,(u()||!((V=U==null?void 0:U())!=null&&V))&&{style:"overlay-dark"});
return _.P("mweb_shorts_rhs_no_background_protection")?Object.assign({},p,{type:"text",style:"overlay"}):p};
l={};var y={};return _.F("reels-player-overlay-layout-view-model",{class:_.Qr("ytwReelsPlayerOverlayLayoutViewModelHost",(l.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!H().extension},l.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},l.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return K()===1&&!(b==null?0:b())},l.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var V;
return(V=b==null?void 0:b())!=null?V:!1},l.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var V;
return(V=U==null?void 0:U())!=null?V:!1},l)),
"overlay-density":function(){return String(K())},
el:X},_.F("div",{class:_.Qr("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(y.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},y))},_.F("div",{"aria-hidden":function(){return q()},
class:_.Qr("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return q()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.rC({"transition-duration":function(){return FEh(H())}})},_.F(_.l4,{data:function(){return H().adMetadata}},{reelsAdMetadataViewModel:function(V){return _.F(GJv,{data:V.data,
expansive:function(){return K()===1}})}}),_.F(_.M,{cond:function(){return H().extension},
then:function(V){return _.F("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.F(_.l4,{data:V},{adButtonViewModel:function(p){return _.F(_.NX,{data:p.data,animationEntityKey:d,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(p){return _.F(D_G,{data:p.data,animationEntityKey:d,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return K()===1}})}}))}})),_.F("div",{"aria-hidden":function(){return!q()},
class:_.Qr("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return q()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.rC({"transition-duration":function(){return FEh(H())}})},_.F(_.l4,{data:function(){return H().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(V){return _.F(gc_,{data:V.data,
onShow:function(){_.Wc(_.Us("booleanEntity",w(),{key:w(),value:!0}))},
expansive:function(){var p;return(p=b==null?void 0:b())!=null?p:!1}})}}))),_.F("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.F(_.l4,{data:function(){return H().actions}},{reelActionBarViewModel:function(V){return _.F(_.Wvt,{data:V.data,
buttonShapeOverrideables:e})}}),_.F(_.l4,{data:function(){return H().menu}},{buttonViewModel:function(V){return _.F(_.Qk,{data:V.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},e())}})}}),_.F(_.l4,{data:function(){return H().pivotButton}},{pivotButtonViewModel:function(V){return _.F(_.t$Y,{data:V.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})),_.F(_.M,{cond:function(){return _.P("exp_shorts_ads_mvp_filtering_web")},
then:function(){return _.F(_.KSL,{root:"ytd-reel-video-renderer[is-active] #video-filtering-overlay-container"},function(){return _.F(ax9,null)})}}))},"Pc");_.gC(imt,"reels-player-overlay-layout-view-model",{props:{data:_.zh,overlayDensity:_.zh,extractOverlay:_.zh,extractActionBar:_.zh}});var Uh=function(){var X=_.a.apply(this,arguments)||this;X.noBottomMargin=!1;X.overlayDensity=0;X.extractOverlay=!1;X.extractActionBar=!1;return X};
_.S(Uh,_.a);_.R=Uh.prototype;
_.R.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:_.P("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]]"}}}}}};
_.R.ready=function(){var X=this;Sky(function(){X.isAttached&&gj(X.JSC$15996_storedAdSlotMetadata,X.JSC$15996_storedAdLayoutMetadata,X.adSlotMetadata,X.adLayoutMetadata)&&bn(ln(),X.JSC$15996_storedAdSlotMetadata,X.JSC$15996_storedAdLayoutMetadata)})};
_.R.attached=function(){gj(this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&SPC(ln(),this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata)};
_.R.detached=function(){gj(this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&bn(ln(),this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata)};
_.R.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.R.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&&bn(ln(),this.JSC$15996_storedAdSlotMetadata,this.JSC$15996_storedAdLayoutMetadata),SPC(ln(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15996_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15996_storedAdSlotMetadata=this.adSlotMetadata)};
_.ja.Object.defineProperties(Uh.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.adLayoutMetadata}}});
Uh.prototype.onAdMetadataChanged=Uh.prototype.onAdMetadataChanged;Uh.prototype.onTypographyBumpChanged=Uh.prototype.onTypographyBumpChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Uh.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Uh.prototype,"rendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Uh.prototype,"ytComponentBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],Uh.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Uh.prototype,"noBottomMargin",void 0);_.T([_.g(),_.N("design:type",Object)],Uh.prototype,"overlayDensity",void 0);_.T([_.g(),_.N("design:type",Object)],Uh.prototype,"extractOverlay",void 0);_.T([_.g(),_.N("design:type",Object)],Uh.prototype,"extractActionBar",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Uh.prototype,"typographyBump",void 0);
_.T([_.x("data.adLayoutMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Uh.prototype,"adLayoutMetadata",null);_.T([_.g(),_.N("design:type",Object)],Uh.prototype,"adSlotMetadata",void 0);_.T([_.A2("ytd-video-display-full-buttoned-and-button-group-renderer"),_.N("design:type",HTMLElement)],Uh.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.T([_.Yh("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uh.prototype,"onTypographyBumpChanged",null);_.T([_.Yh("adLayoutMetadata","adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uh.prototype,"onAdMetadataChanged",null);_.T([_.sq({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Uh);
_.O(Uh,"ytd-in-feed-ad-layout-renderer",function(){if(knt!==void 0)return knt;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return knt=X},
{mode:2});var vcD;var OmQ;_.gC(_.Ln,"ad-badge-view-model",{props:{data:_.zh,hasDot:_.zh,customCommandResolver:_.ta,adRenderingContextType:_.ta,usedInMasthead:_.ta}});_.gC(_.NX,"ad-button-view-model",{props:{data:_.zh,customCommandResolver:_.ta,className:_.ta,delayedClassName:_.ta,animationEntityKey:_.ta,isCompactWidth:_.ta,isContentWidth:_.ta}});var $t=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return X};
_.S($t,_.a);_.R=$t.prototype;_.R.computeHasLiveDescription=function(X){return!(X==null||!X.liveDescription)};
_.R.computeHasByline=function(X){return!(X==null||!X.byline)};
_.R.computeUsesAdButtonViewModel=function(X){return!!_.f(X==null?void 0:X.cta,FY_)};
_.R.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"}}}}}};
_.R.onYtToggleButton=function(X){var H,l=(H=this.data)==null?void 0:H.videoReminderEntityKey;l&&this.ytdReduxBehavior.dispatch(_.Us("upcomingEventReminderStateEntity",l,{key:l,state:X.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.R.attached=function(){this.updateChannelBanner()};
_.R.dataChanged=function(){this.updateChannelBanner()};
_.R.videoReminderStateChanged=function(){var X;this.videoReminderState&&_.f((X=this.data)==null?void 0:X.cta,_.VB)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.R.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var X=_.G0(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);X&&(X.startsWith("//")&&(X="https:"+X),this.hostElement.classList.add("channel-banner"),_.j4(this.hostElement,{"--ytvmh-channel-banner":"url("+X+")"}))}else _.P("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.R.onPlayerReady=function(){this.onIronResize()};
_.R.maybeFlushDebouncer=function(){_.P("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(X){var H;X=(H=X.getElementsByTagName("yt-attributed-string"))==null?void 0:H[0];FNb(X==null?void 0:X.polymerController)})};
_.R.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var X=_.mh(this.hostElement).querySelector("#live-description"),H;X&&((H=this.data)==null?0:H.shortLiveDescription)&&X.clientWidth<X.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
$t.prototype.onIronResize=$t.prototype.onIronResize;$t.prototype.videoReminderStateChanged=$t.prototype.videoReminderStateChanged;$t.prototype.dataChanged=$t.prototype.dataChanged;$t.prototype.onYtToggleButton=$t.prototype.onYtToggleButton;_.T([_.k(_.$s),_.N("design:type",Object)],$t.prototype,"ironResizableBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],$t.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],$t.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],$t.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$t.prototype,"data",void 0);_.T([_.g({selectorArgs:["data.videoReminderEntityKey"],selector:z9O}),_.N("design:type",Object)],$t.prototype,"videoReminderState",void 0);
_.T([_.g({reflectToAttribute:!0,value:_.P("web_modern_buttons")}),_.N("design:type",Boolean)],$t.prototype,"rounded",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.N("design:type",Boolean)],$t.prototype,"hasLiveDescription",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.N("design:type",Boolean)],$t.prototype,"hasByline",void 0);
_.T([_.g({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.N("design:type",String)],$t.prototype,"adRenderingContextType",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],$t.prototype,"isMasthead",void 0);_.T([_.g({computed:"computeUsesAdButtonViewModel(data)"}),_.N("design:type",Boolean)],$t.prototype,"usesAdButtonViewModel",void 0);
_.T([_.g({reflectToAttribute:!0,value:_.P("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.N("design:type",Boolean)],$t.prototype,"resizableAdBannerSafariFix",void 0);_.T([_.Xh("yt-formatted-string"),_.N("design:type",Array)],$t.prototype,"formattedStrings",void 0);_.T([_.A2("#cta-button"),_.N("design:type",HTMLElement)],$t.prototype,"ctaButton",void 0);
_.T([_.Le("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$t.prototype,"onYtToggleButton",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$t.prototype,"dataChanged",null);_.T([_.Yh("videoReminderState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$t.prototype,"videoReminderStateChanged",null);
_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$t.prototype,"onIronResize",null);_.T([_.sq({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],$t);
_.O($t,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(OmQ!==void 0)return OmQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return OmQ=X},{mode:1});var m_Q;var KH=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};X.isLocked=!1;return X};
_.S(KH,_.a);_.R=KH.prototype;_.R.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.R.onExpandedChanged=function(){this.expanded&&_.NG(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.R.onMouseOver=function(){this.maybeExpand()};
_.R.onTap=function(){this.maybeExpand()};
_.R.onExpandableTileExpanding=function(X){X!==this&&(this.expanded=!1)};
_.R.onExpandableTileLockAndCollapse=function(X){this.isLocked=!0;X!==this&&(this.expanded=!1)};
_.R.onExpandableTileUnlock=function(){this.isLocked=!1};
KH.prototype.onTap=KH.prototype.onTap;KH.prototype.onMouseOver=KH.prototype.onMouseOver;KH.prototype.onExpandedChanged=KH.prototype.onExpandedChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],KH.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],KH.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],KH.prototype,"expanded",void 0);_.T([_.oi("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KH.prototype,"onExpandedChanged",null);_.T([_.Le("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KH.prototype,"onMouseOver",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KH.prototype,"onTap",null);
_.T([_.sq({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],KH);
_.O(KH,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(m_Q!==void 0)return m_Q;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return m_Q=X},{mode:1});var QQQ;var RY=function(){var X=_.a.apply(this,arguments)||this;X.buttonOverrides={style:"overlay"};X.useYtdPlayer=_.P("use_ytd_player_for_desktop_masthead");X.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};X.playbackFinished=!1;X.JSC$16010_playerManager=null;X.JSC$16010_mastheadCounter=new yV_;return X};
_.S(RY,_.a);_.R=RY.prototype;_.R.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"}}}};
_.R.created=function(){this.JSC$16010_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$16010_playerManager=new lJ)};
_.R.ready=function(){var X=this;this.JSC$16010_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var H=_.mh(this.hostElement).querySelector("#player");this.useYtdPlayer?H.style.display="none":(this.ytdPlayer.style.display="none",x3Y(this.JSC$16010_playerManager,H,function(){X.onPlaybackEnded()}),_.mh(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var l;
((l=X.data)==null?0:l.navigationEndpoint)&&_.QX(X.hostElement,"yt-navigate",{endpoint:X.data.navigationEndpoint})}))};
_.R.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)};
_.R.attached=function(){var X=this;_.fc(function(){X.maybePlayVideo()})};
_.R.maybePlayVideo=function(){var X=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(){X.JSC$16010_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.R.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16010_playerManager.stopVideo()};
_.R.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var X,H={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((X=this.data.playbackStartMs)!=null?X:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(H);this.setupYtdPlayer()}else tG_(this.JSC$16010_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(D36(this.JSC$16010_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.R.getPlayerPromise=function(){return this.JSC$16010_playerManager.getPlayerPromise()};
_.R.onYtToggleButton=function(X){this.useYtdPlayer?this.toggleMute(X.detail.toggled):X.detail.toggled?this.JSC$16010_playerManager.mute():this.JSC$16010_playerManager.unMute()};
_.R.onYtNavigate=function(X){var H=LU8(X.detail.endpoint),l=YhW(this.data.clickthroughReportingData);H&&l&&(X.detail.endpoint.watchEndpoint?X.detail.tempData=l:_.Ec(H,l,30))};
_.R.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.R.onExpandedChanged=function(){this.expanded?(_.NG(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.R.onMouseOver=function(){this.maybeExpand()};
_.R.onTap=function(){this.maybeExpand()};
_.R.onExpandableTileExpanding=function(X){X!==this&&(this.stopVideo(),this.expanded=!1)};
_.R.onExpandableTileLockAndCollapse=function(X){X!==this&&(this.isLocked=!0,this.expanded=!1)};
_.R.onExpandableTileUnlock=function(){this.isLocked=!1};
_.R.lockAndCollapseExpandableTiles=function(){_.TP(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.R.unlockExpandableTiles=function(){_.TP(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.R.setupYtdPlayer=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return l.yield(X.ytdPlayer.getPlayerPromise(),2);H=l.yieldResult;H.addEventListener("onStateChange",function(b){X.onPlayerStateChange(b)});
H.addEventListener("onCueRangeExit",function(b){X.onCueRangeExit(b)});
_.m5(l)})};
_.R.onPlayerStateChange=function(X){if(X===1&&(X=this.ytdPlayer.getPlayer())){var H=X.getCurrentTime(),l,b,U=H+((b=(l=this.data)==null?void 0:l.playbackDurationMs)!=null?b:0)/1E3;X.addCueRange("playback",H,U);this.JSC$16010_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.R.onCueRangeExit=function(X){X==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.R.toggleMute=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(H.ytdPlayer.getPlayerPromise(),2);l=b.yieldResult;X?l.mute():l.unMute();_.m5(b)})};
RY.prototype.onTap=RY.prototype.onTap;RY.prototype.onMouseOver=RY.prototype.onMouseOver;RY.prototype.onExpandedChanged=RY.prototype.onExpandedChanged;RY.prototype.onYtNavigate=RY.prototype.onYtNavigate;RY.prototype.onYtToggleButton=RY.prototype.onYtToggleButton;RY.prototype.dataChanged=RY.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],RY.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],RY.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],RY.prototype,"expanded",void 0);_.T([_.g(),_.N("design:type",Object)],RY.prototype,"buttonOverrides",void 0);
_.T([_.g(),_.N("design:type",Object)],RY.prototype,"useYtdPlayer",void 0);_.T([_.A2("#ytd-player"),_.N("design:type",Object)],RY.prototype,"ytdPlayer",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"dataChanged",null);_.T([_.Le("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],RY.prototype,"onYtToggleButton",null);
_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],RY.prototype,"onYtNavigate",null);_.T([_.oi("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"onExpandedChanged",null);_.T([_.Le("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"onMouseOver",null);
_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"onTap",null);_.T([_.sq({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],RY);
_.O(RY,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(QQQ!==void 0)return QQQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return QQQ=X},{mode:1});var T0q;var CH=function(){return _.a.apply(this,arguments)||this};
_.S(CH,_.a);CH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
CH.prototype.onShow=function(){var X=_.mh(this.hostElement).querySelector("#live-description"),H;X&&((H=this.data)==null?0:H.shortLiveDescription)&&X.clientWidth<X.scrollWidth&&this.hostElement.classList.add("short-live-description")};
CH.prototype.onYtToggleButton=function(X){var H,l=(H=this.data)==null?void 0:H.videoReminderEntityKey;l&&this.ytdReduxBehavior.dispatch(_.Us("upcomingEventReminderStateEntity",l,{key:l,state:X.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
CH.prototype.videoReminderStateChanged=function(){var X;this.videoReminderState&&_.f((X=this.data)==null?void 0:X.cta,_.VB)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
CH.prototype.videoReminderStateChanged=CH.prototype.videoReminderStateChanged;CH.prototype.onYtToggleButton=CH.prototype.onYtToggleButton;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],CH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],CH.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],CH.prototype,"data",void 0);
_.T([_.g({selectorArgs:["data.videoReminderEntityKey"],selector:z9O}),_.N("design:type",Object)],CH.prototype,"videoReminderState",void 0);_.T([_.Le("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],CH.prototype,"onYtToggleButton",null);_.T([_.Yh("videoReminderState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CH.prototype,"videoReminderStateChanged",null);
_.T([_.sq({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],CH);
_.O(CH,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(T0q!==void 0)return T0q;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return T0q=X},{mode:2});var N0D;var wy=function(){var X=_.a.apply(this,arguments)||this;X.useYtdPlayer=_.P("use_ytd_player_for_desktop_masthead");X.buttonOverrides={style:"overlay"};X.JSC$16018_playerManager=null;X.JSC$16018_mastheadCounter=new yV_;X.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return X};
_.S(wy,_.a);_.R=wy.prototype;_.R.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"}}}};
_.R.created=function(){this.JSC$16018_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$16018_playerManager=new lJ)};
_.R.ready=function(){var X=this;this.JSC$16018_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var H;(H=this.embeddedPlayer)==null||H.remove()}else{var l;(l=this.ytdPlayer)==null||l.remove();x3Y(this.JSC$16018_playerManager,this.embeddedPlayer,function(){X.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){X.data&&X.data.navigationEndpoint&&_.QX(X.hostElement,"yt-navigate",{endpoint:X.data.navigationEndpoint})})}};
_.R.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$16018_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.R.dataChanged=function(){var X=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var H=!this.data.disableAutoPlayback,l,b={autoplay:H,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((l=this.data.playbackStartMs)!=null?l:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(H?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(b);this.setupYtdPlayer()}else tG_(this.JSC$16018_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(D36(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(){_.TP(X.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");X.JSC$16018_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.R.getPlayerPromise=function(){return this.JSC$16018_playerManager.getPlayerPromise()};
_.R.onYtToggleButton=function(X){this.useYtdPlayer?this.toggleMute(X.detail.toggled):X.detail.toggled?this.JSC$16018_playerManager.mute():this.JSC$16018_playerManager.unMute()};
_.R.onYtNavigate=function(X){var H=LU8(X.detail.endpoint),l=YhW(this.data.clickthroughReportingData);H&&l&&(X.detail.endpoint.watchEndpoint?X.detail.tempData=l:_.Ec(H,l,30))};
_.R.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16018_playerManager.stopVideo()};
_.R.setupYtdPlayer=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return l.yield(X.ytdPlayer.getPlayerPromise(),2);H=l.yieldResult;H.addEventListener("onStateChange",function(b){X.onPlayerStateChange(b)});
H.addEventListener("onCueRangeExit",function(b){X.onCueRangeExit(b)});
_.m5(l)})};
_.R.onPlayerStateChange=function(X){if(X===1&&(X=this.ytdPlayer.getPlayer())){var H=X.getCurrentTime(),l,b,U=H+((b=(l=this.data)==null?void 0:l.playbackDurationMs)!=null?b:0)/1E3;X.addCueRange("playback",H,U);_.TP(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$16018_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.R.onCueRangeExit=function(X){X==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.R.toggleMute=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(H.ytdPlayer.getPlayerPromise(),2);l=b.yieldResult;X?l.mute():l.unMute();_.m5(b)})};
_.ja.Object.defineProperties(wy.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var X,H;if(!((X=this.data)==null?0:(H=X.accessibilityData)==null?0:H.label))return"Ad primary link";var l,b;return _.XS("AD_TITLE",{title:(l=this.data)==null?void 0:(b=l.accessibilityData)==null?void 0:b.label})}}});
wy.prototype.onYtMastheadHidden=wy.prototype.onYtMastheadHidden;wy.prototype.onYtNavigate=wy.prototype.onYtNavigate;wy.prototype.onYtToggleButton=wy.prototype.onYtToggleButton;wy.prototype.dataChanged=wy.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],wy.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],wy.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],wy.prototype,"useYtdPlayer",void 0);_.T([_.A2("ytd-toggle-button-renderer"),_.N("design:type",Object)],wy.prototype,"muteButton",void 0);_.T([_.g(),_.N("design:type",Object)],wy.prototype,"buttonOverrides",void 0);
_.T([_.x("data.accessibilityData.label"),_.N("design:type",String),_.N("design:paramtypes",[])],wy.prototype,"titleAriaLabel",null);_.T([_.A2("#replay-button"),_.N("design:type",Object)],wy.prototype,"replayButton",void 0);_.T([_.A2("#player-container"),_.N("design:type",Object)],wy.prototype,"playerContainer",void 0);_.T([_.A2("#player"),_.N("design:type",Object)],wy.prototype,"embeddedPlayer",void 0);_.T([_.A2("#ytd-player"),_.N("design:type",Object)],wy.prototype,"ytdPlayer",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wy.prototype,"dataChanged",null);_.T([_.Le("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],wy.prototype,"onYtToggleButton",null);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],wy.prototype,"onYtNavigate",null);
_.T([_.Le("yt-masthead-hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wy.prototype,"onYtMastheadHidden",null);_.T([_.sq({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],wy);
_.O(wy,"ytd-video-masthead-ad-primary-video-renderer",function(){if(N0D!==void 0)return N0D;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return N0D=X},{mode:2});var cAq;var dy=function(){var X=_.a.apply(this,arguments)||this;X.collapsed=!1;X.impressionResolver=_.kj();X.JSC$16022_activeViewMeasurementDataResolver=_.kj();X.actionMap={"yt-mute-ad-action":"handleMuteAd"};return X};
_.S(dy,_.a);_.R=dy.prototype;_.R.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"}}}};
_.R.created=function(){this.activeView=new Qx(this.hostElement)};
_.R.ready=function(){var X=this;_.mh(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){X.expandAd()});
this.hostElement.addEventListener("yt-action",function(H){if(H.detail.actionName==="yt-service-request"){var l=H.detail.args[1];l.videoMastheadAdMuteCommand&&(X.collapseAd(l.videoMastheadAdMuteCommand.encryptedMastheadId),H.stopPropagation())}})};
_.R.attached=function(){var X=this;_.fc(function(){X.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(H){if(!X.collapsed){H=_.C(H);for(var l=H.next();!l.done;l=H.next())l=l.value,ZS(l.baseUrl,l.attributionSrcMode);X.data.impressionCommand=void 0}});
this.JSC$16022_activeViewMeasurementDataResolver.promise.then(function(H){TC(X.activeView,H)});
_.P("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Nj(X.activeView)})};
_.R.dataChanged=function(){var X;((X=this.data.impressionCommand)==null?0:X.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var H;((H=this.data)==null?0:H.activeView)&&this.JSC$16022_activeViewMeasurementDataResolver.resolve(this.data.activeView);(X=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(X.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.R.computeWidescreen=function(X){var H;return!!(X&&((H=_.f(X,$D6))==null?0:H.isWidescreen))};
_.R.computeExpandable=function(X){return!!(X&&X.length>0)};
_.R.onIronResize=function(){if(this.expandable){var X=_.mh(this.hostElement).querySelector("#expandable-tile-container :first-child");X&&!X.expanded&&(X.expanded=!0)}};
_.R.handleMuteAd=function(){this.collapseAd(null)};
_.R.restoreCollapsedState=function(X){this.collapsed=_.oO().get("HIDDEN_MASTHEAD_ID")===X};
_.R.collapseAd=function(X){if(X){var H=_.oO();H.set("HIDDEN_MASTHEAD_ID",X);H.save()}(X=_.mh(this.hostElement).querySelector("#video"))&&_.QX(X,"yt-masthead-hidden");this.collapsed=!0};
_.R.expandAd=function(){var X=_.oO();X.set("HIDDEN_MASTHEAD_ID",!1);X.save();location.reload()};
_.R.detached=function(){_.P("stop_av_measurement_on_detach")&&Nj(this.activeView)};
dy.prototype.onIronResize=dy.prototype.onIronResize;dy.prototype.dataChanged=dy.prototype.dataChanged;_.T([_.k(_.$s),_.N("design:type",Object)],dy.prototype,"ironResizableBehavior",void 0);_.T([_.k(_.yx),_.N("design:type",Object)],dy.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],dy.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],dy.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.N("design:type",Boolean)],dy.prototype,"widescreen",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.N("design:type",Boolean)],dy.prototype,"expandable",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],dy.prototype,"collapsed",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dy.prototype,"dataChanged",null);_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dy.prototype,"onIronResize",null);_.T([_.sq({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],dy);
_.O(dy,"ytd-video-masthead-ad-v3-renderer",function(){if(cAq!==void 0)return cAq;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return cAq=X},{mode:2});var hg=function(){return _.a.apply(this,arguments)||this};
_.S(hg,_.a);_.R=hg.prototype;_.R.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.R.ready=function(){var X=this;Sky(function(){X.isAttached&&gj(X.JSC$16027_storedAdSlotMetadata,X.JSC$16027_storedAdLayoutMetadata,X.adSlotMetadata,X.adLayoutMetadata)&&bn(ln(),X.JSC$16027_storedAdSlotMetadata,X.JSC$16027_storedAdLayoutMetadata)})};
_.R.attached=function(){gj(this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&SPC(ln(),this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata)};
_.R.detached=function(){gj(this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&bn(ln(),this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata)};
_.R.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&&bn(ln(),this.JSC$16027_storedAdSlotMetadata,this.JSC$16027_storedAdLayoutMetadata),SPC(ln(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$16027_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$16027_storedAdSlotMetadata=this.adSlotMetadata)};
_.ja.Object.defineProperties(hg.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.adLayoutMetadata}}});
hg.prototype.onAdMetadataChanged=hg.prototype.onAdMetadataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],hg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],hg.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hg.prototype,"data",void 0);_.T([_.x("data.adLayoutMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],hg.prototype,"adLayoutMetadata",null);
_.T([_.g(),_.N("design:type",Object)],hg.prototype,"adSlotMetadata",void 0);_.T([_.Yh("adLayoutMetadata","adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hg.prototype,"onAdMetadataChanged",null);_.T([_.sq({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],hg);
_.O(hg,"ytd-page-top-ad-layout-renderer",function(){if(vcD!==void 0)return vcD;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return vcD=
X},{mode:2});var jQY;var F7=function(){var X=_.a.apply(this,arguments)||this;X.noBottomMargin=!1;X.overlayDensity=0;X.typographyBump=!1;X.extractOverlay=!1;X.extractActionBar=!1;return X};
_.S(F7,_.a);_.R=F7.prototype;
_.R.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]]"}}}}}};
_.R.ready=function(){var X=this;Sky(function(){X.isAttached&&X.adSlotMetadata&&pst(ln(),X.adSlotMetadata)})};
_.R.attached=function(){if(this.adSlotMetadata){var X;if(this.adSlotMetadata===((X=this.data)==null?void 0:X.adSlotMetadata))fxH(ln(),this.adSlotMetadata);else{var H;_.x2(Error("Ph`"+this.adSlotMetadata+"`"+((H=this.data)==null?void 0:H.adSlotMetadata)))}}};
_.R.detached=function(){this.adSlotMetadata&&pst(ln(),this.adSlotMetadata)};
_.R.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.R.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&pst(ln(),this.adSlotMetadata),fxH(ln(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.ja.Object.defineProperties(F7.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var X,H,l=_.f((X=this.data)==null?void 0:(H=X.fulfillmentContent)==null?void 0:H.fulfilledLayout,_.RMY),b;return(X=(b=_.f(l==null?void 0:l.renderingContent,KYF))==null?void 0:b.layout)?X.toLowerCase().replace(/_/g,"-"):""}}});
F7.prototype.onAdSlotMetadataChanged=F7.prototype.onAdSlotMetadataChanged;F7.prototype.onTypographyBumpChanged=F7.prototype.onTypographyBumpChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],F7.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],F7.prototype,"rendererBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],F7.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],F7.prototype,"noBottomMargin",void 0);_.T([_.g(),_.N("design:type",Object)],F7.prototype,"overlayDensity",void 0);_.T([_.g(),_.N("design:type",Object)],F7.prototype,"typographyBump",void 0);_.T([_.g(),_.N("design:type",Object)],F7.prototype,"extractOverlay",void 0);_.T([_.g(),_.N("design:type",Object)],F7.prototype,"extractActionBar",void 0);
_.T([_.A2("ytd-in-feed-ad-layout-renderer"),_.N("design:type",HTMLElement)],F7.prototype,"inFeedAdLayoutRenderer",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],F7.prototype,"layout",null);_.T([_.Yh("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F7.prototype,"onTypographyBumpChanged",null);
_.T([_.Yh("data.adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F7.prototype,"onAdSlotMetadataChanged",null);_.T([_.sq({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],F7);
_.O(F7,"ytd-ad-slot-renderer",function(){if(jQY!==void 0)return jQY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return jQY=X},{mode:2});var rAY;var BN=function(){return _.a.apply(this,arguments)||this};
_.S(BN,_.a);_.R=BN.prototype;_.R.created=function(){this.activeView=new Qx(this.hostElement)};
_.R.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"}}}};
_.R.maybeComputeHref=function(){return null};
_.R.onTap=function(){};
_.R.onThumbnailContainerClick=function(X){this.onClick(X)};
_.R.onClick=function(X){var H,l=(H=this.data)==null?void 0:H.navigationEndpoint;l&&_.f(l,_.ku)&&(this.ytSparklesClickLocationBehavior.handleClick(l,X,!1),X.stopPropagation())};
_.R.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var X=_.C(this.data.impressionUrls),H=X.next();!H.done;H=X.next())H=H.value,yaZ(H,Pvz(H));this.data.activeView&&TC(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",BN.JSC$16035_DEFAULT_CLICK_LOCATION_BEHAVIOR,BN.JSC$16035_CLICK_LOCATION_ID_MAP);this.thumbnail&&(X=this.thumbnail.getElementsByTagName("a"),X.length>0&&(X=X.namedItem("thumbnail"))&&X.removeAttribute("href"))}};
_.R.attached=function(){var X=this;_.P("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Nj(X.activeView)})};
_.R.detached=function(){_.P("stop_av_measurement_on_detach")&&Nj(this.activeView)};
_.ja.Object.defineProperties(BN.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.P("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.P("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
BN.prototype.dataChanged=BN.prototype.dataChanged;BN.prototype.onTap=BN.prototype.onTap;BN.JSC$16035_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
BN.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],BN.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],BN.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.GC.YtSparklesClickLocationBehavior),_.N("design:type",Object)],BN.prototype,"ytSparklesClickLocationBehavior",void 0);
_.T([_.g({selector:_.sm}),_.N("design:type",Object)],BN.prototype,"isGridViewEnabled",void 0);_.T([_.x("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],BN.prototype,"watchFeedBigThumbs",null);_.T([_.x("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],BN.prototype,"thumbnailWidth",null);_.T([_.g(),_.N("design:type",Object)],BN.prototype,"data",void 0);
_.T([_.A2("ytd-thumbnail"),_.N("design:type",HTMLElement)],BN.prototype,"thumbnail",void 0);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BN.prototype,"onTap",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BN.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],BN);
_.O(BN,"ytd-compact-promoted-video-renderer",function(){if(rAY!==void 0)return rAY;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return rAY=X},{mode:1});var JAG;_.wd("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var qt=function(){return _.a.apply(this,arguments)||this};
_.S(qt,_.a);qt.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],qt.prototype,"data",void 0);_.T([_.sq({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],qt);
_.O(qt,"ytd-search-pyv-renderer",function(){if(JAG!==void 0)return JAG;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return JAG=X},{mode:1});var LvC;_.wd("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var sh=function(){var X=_.a.apply(this,arguments)||this;X.roundedContainer=!0;X.JSC$16043_handleOpenPostCommentDialogActionAfterStamp=!1;X.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return X};
_.S(sh,_.a);_.R=sh.prototype;
_.R.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}}};
_.R.onStampFinished=function(){this.JSC$16043_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.R.handleSignalActionOpenPostCommentDialogAction=function(){var X=_.mh(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");X?X.openDialog():this.JSC$16043_handleOpenPostCommentDialogActionAfterStamp=!0};
_.R.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.R.computeHideBorder=function(){return this.isInEngagementPanel};
_.R.computeIsCompact=function(){return this.isInEngagementPanel};
_.R.computeUsesCompactLockup=function(X){return X==="BACKSTAGE_SURFACE_TYPE_HOME"||X==="BACKSTAGE_SURFACE_TYPE_SEARCH"||X==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||X==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||X==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||X==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.R.computeUsesFullLockup=function(){var X,H=(X=this.data)==null?void 0:X.post,l;X=(l=_.f(H,VeG))==null?void 0:l.surface;var b;l=(b=_.f(H,pG6))==null?void 0:b.originalPost;var U;if(b=X||((U=_.f(l,VeG))==null?void 0:U.surface))return!this.computeUsesCompactLockup(b)&&this.useUpdatedRepostUi;var K;return((K=_.f(H,pG6))==null?void 0:K.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.ja.Object.defineProperties(sh.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var X,H;return((H=_.f((X=this.data)==null?void 0:X.post,VeG))==null?void 0:H.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.useUpdatedRepostUi}}});
sh.prototype.onYtCommentModerationPanelEmpty=sh.prototype.onYtCommentModerationPanelEmpty;sh.prototype.onStampFinished=sh.prototype.onStampFinished;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],sh.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],sh.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],sh.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],sh.prototype,"roundedContainer",void 0);_.T([_.g({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.N("design:type",Boolean)],sh.prototype,"hideBorder",void 0);_.T([_.g({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.N("design:type",Boolean)],sh.prototype,"isCompact",void 0);
_.T([_.g({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.N("design:type",Boolean)],sh.prototype,"usesFullLockup",void 0);_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sh.prototype,"onStampFinished",null);
_.T([_.Le("ytd-comment-moderation-panel-empty"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],sh.prototype,"onYtCommentModerationPanelEmpty",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sh.prototype,"isInEngagementPanel",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sh.prototype,"useUpdatedRepostUi",null);
_.T([_.sq({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],sh);
_.O(sh,"ytd-backstage-post-thread-renderer",function(){if(LvC!==void 0)return LvC;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return LvC=X},{mode:1});var YPC;var Mt=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(Mt,_.a);Mt.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
Mt.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var X=this.data.thumbnail.thumbnails;this.isDarkTheme&&(X=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(X=_.G0(X,24,void 0,"height"))?X:void 0}};
Mt.prototype.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
Mt.prototype.computeHasText=function(){var X;return!((X=this.data)==null||!X.text)};
_.ja.Object.defineProperties(Mt.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Yn(this.bannerImageUrl))+'");'}}});
Mt.prototype.computeHasText=Mt.prototype.computeHasText;Mt.prototype.computeBannerImageUrl=Mt.prototype.computeBannerImageUrl;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Mt.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Mt.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],Mt.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],Mt.prototype,"isDarkTheme",void 0);_.T([_.g(),_.N("design:type",String)],Mt.prototype,"bannerImageUrl",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.N("design:type",Boolean)],Mt.prototype,"hasText",void 0);_.T([_.Yh("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mt.prototype,"computeBannerImageUrl",null);
_.T([_.Yh("data.text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mt.prototype,"computeHasText",null);_.T([_.x("bannerImageUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],Mt.prototype,"bannerStyle",null);_.T([_.sq({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],Mt);
_.O(Mt,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(YPC!==void 0)return YPC;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return YPC=X},{mode:1});var IxQ;var un=function(){return _.a.apply(this,arguments)||this};
_.S(un,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],un.prototype,"data",void 0);_.T([_.sq({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],un);
_.O(un,"ytd-backstage-zero-state-renderer",function(){if(IxQ!==void 0)return IxQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return IxQ=X},{mode:1});var AAD;var e6=function(){return _.a.apply(this,arguments)||this};
_.S(e6,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],e6.prototype,"data",void 0);_.T([_.g({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],e6.prototype,"icon",void 0);_.T([_.sq({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],e6);
_.O(e6,"ytd-post-filter-zero-state-renderer",function(){if(AAD!==void 0)return AAD;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return AAD=X},{mode:1});var XkY;var HwY={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},yA=function(){return _.a.apply(this,arguments)||this};
_.S(yA,_.a);yA.prototype.configureRendererStamper=function(){return HwY};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],yA.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],yA.prototype,"rendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],yA.prototype,"data",void 0);_.T([_.g({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],yA.prototype,"icon",void 0);_.T([_.sq({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],yA);
_.O(yA,"ytd-post-scheduling-zero-state-renderer",function(){if(XkY!==void 0)return XkY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return XkY=X},{mode:1});var lfQ;var VA=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return X};
_.S(VA,_.a);VA.prototype.onTabsActivate=function(X){this.data&&this.data.tabs&&_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[X.detail.selected].navigationEndpoint})};
VA.prototype.shouldShowTotalCount=function(X){return X&&X.totalCount!==void 0};
VA.prototype.handleUpdatePostsTotalCountAction=function(X){var H=this.get(["data.tabs",1,"totalCount"]),l=this.get("updatePostsTotalCountAction.updateType",X);X=this.get("updatePostsTotalCountAction.number",X);H!==void 0&&l!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&X&&(l==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(H)+X):l==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(H)-X))};
_.ja.Object.defineProperties(VA.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var X=0,H=this.data.tabs.length;X<H;X++)if(this.data.tabs[X].selected)return X;return 0}}});
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],VA.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],VA.prototype,"rendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],VA.prototype,"data",void 0);_.T([_.x("data.tabs"),_.N("design:type",Number),_.N("design:paramtypes",[])],VA.prototype,"selected",null);_.T([_.sq({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],VA);
_.O(VA,"ytd-post-stream-filter-renderer",function(){if(lfQ!==void 0)return lfQ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return lfQ=X},{mode:1});var ofD;var nH=function(){return _.a.apply(this,arguments)||this};
_.S(nH,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],nH.prototype,"kevlarBehaviors",void 0);_.T([_.g(),_.N("design:type",Object)],nH.prototype,"data",void 0);_.T([_.sq({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],nH);
_.O(nH,"ytd-channel-age-gate-renderer",function(){if(ofD!==void 0)return ofD;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ofD=X},{mode:1});var bw_;_.wd("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var kt=function(){var X=_.a.apply(this,arguments)||this;X.data=null;return X};
_.S(kt,_.a);kt.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ja.Object.defineProperties(kt.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((X=this.data)==null?0:(H=X.title)==null?0:(l=H.runs)==null?0:l.length)?147:160}}});
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],kt.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],kt.prototype,"imageSizePx",null);_.T([_.sq({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],kt);
_.O(kt,"ytd-channel-owner-empty-state-renderer",function(){if(bw_!==void 0)return bw_;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return bw_=X},{mode:1});var UYH;var $Y9;var xt=function(){var X=_.a.apply(this,arguments)||this;X.boundSubmitSearch=function(){X.submitSearch()};
X.boundClearSearch=function(){X.clearSearch()};
return X};
_.S(xt,_.a);_.R=xt.prototype;_.R.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]]"}}}}}};
_.R.toggleClearButton=function(){this.hideClearButton=Vyq||!this.input.value};
_.R.submitOnEnterKeyUp=function(X){X.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.R.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.R.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.R.submit=function(){_.QX(this.hostElement,"search-query-changed",this.input.value)};
xt.prototype.toggleClearButton=xt.prototype.toggleClearButton;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],xt.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],xt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xt.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],xt.prototype,"hideClearButton",void 0);_.T([_.g(),_.N("design:type",Object)],xt.prototype,"boundSubmitSearch",void 0);_.T([_.g(),_.N("design:type",Object)],xt.prototype,"boundClearSearch",void 0);_.T([_.A2("#input"),_.N("design:type",Object)],xt.prototype,"input",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xt.prototype,"toggleClearButton",null);
_.T([_.sq({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],xt);
_.O(xt,"ytd-channel-switcher-search-box-renderer",function(){if($Y9!==void 0)return $Y9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return $Y9=X},{mode:1});var K7v;var Dy=function(){var X=_.a.apply(this,arguments)||this;X.boundSubmit=function(){X.submit()};
return X};
_.S(Dy,_.a);_.R=Dy.prototype;_.R.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"}}}}};
_.R.ready=function(){var X=this;this.form.addEventListener("submit",function(H){return X.onSubmit(H)})};
_.R.onSubmit=function(X){X.preventDefault();return!1};
_.R.toggleClearButton=function(){this.hideClearButton=Vyq||!this.input.value};
_.R.submitOnEnterKeyUp=function(X){X.keyCode===13&&this.submit()};
_.R.submit=function(){var X=this.data.endpoint,H=(0,_.Bb.unsafeClone)(X);_.f(H,_.YM)?_.f(H,_.YM).query=this.input.value:_.f(H,_.IH)&&(_.f(H,_.IH).query=this.input.value);var l=_.f(H.commandMetadata,_.Ip);(l==null?0:l.url)?(l.url=_.oZ(l.url,"query",this.input.value),_.QX(this.hostElement,"yt-navigate",{endpoint:H})):_.f(H,XGq)?(_.f(H,XGq).channelSwitcherQuery=this.input.value,_.jJ().resolve(_.Vr).resolveCommand(H,{form:{element:this.hostElement}})):(X=Error("Qh`"+JSON.stringify(X)),_.n2(X))};
_.R.getUrl=function(X){return this.get("commandMetadata.webCommandMetadata.url",X)};
Dy.prototype.toggleClearButton=Dy.prototype.toggleClearButton;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Dy.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Dy.prototype,"hideClearButton",void 0);
_.T([_.g(),_.N("design:type",Object)],Dy.prototype,"boundSubmit",void 0);_.T([_.A2("#form"),_.N("design:type",HTMLFormElement)],Dy.prototype,"form",void 0);_.T([_.A2("#input"),_.N("design:type",Object)],Dy.prototype,"input",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dy.prototype,"toggleClearButton",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Dy);
_.O(Dy,"ytd-search-box-renderer",function(){if(K7v!==void 0)return K7v;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return K7v=X},{mode:2});var tg=function(){var X=_.a.apply(this,arguments)||this;X.showSearchBox=!0;return X};
_.S(tg,_.a);tg.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],tg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],tg.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tg.prototype,"showSearchBox",void 0);_.T([_.sq({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],tg);
_.O(tg,"ytd-channel-switcher-header-renderer",function(){if(UYH!==void 0)return UYH;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return UYH=X},{mode:1});var RUQ;var CS9;var WN=function(){var X=_.a.apply(this,arguments)||this;X.isDisplayed=!0;return X};
_.S(WN,_.a);_.R=WN.prototype;_.R.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.dataChanged=function(){this.isDisplayed=!0};
_.R.computeType=function(X){return X||"UNKNOWN"};
_.R.onYtServiceRequestCompleted=function(X){X.stopPropagation();this.isDisplayed=!1};
_.R.onClose=function(){this.isDisplayed=!1};
WN.prototype.onYtServiceRequestCompleted=WN.prototype.onYtServiceRequestCompleted;WN.prototype.dataChanged=WN.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],WN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],WN.prototype,"data",void 0);
_.T([_.g({computed:"computeType(data.type)",reflectToAttribute:!0}),_.N("design:type",String)],WN.prototype,"type",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],WN.prototype,"isDisplayed",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WN.prototype,"dataChanged",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],WN.prototype,"onYtServiceRequestCompleted",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],WN);
_.O(WN,"ytd-alert-with-button-renderer",function(){if(CS9!==void 0)return CS9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return CS9=X},{mode:1});var Eh=function(){var X=_.a.apply(this,arguments)||this;X.noResult=!1;X.enableAlertBanner=!1;X.dismissedAlertBanner=!1;X.hideCreateChannelButton=!1;X.boundDismissAlertBanner=function(){X.dismissAlertBanner()};
X.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return X};
_.S(Eh,_.a);_.R=Eh.prototype;_.R.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.R.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.R.updateChannelSwitcherAction=function(X){var H;X=(H=_.f(X,Asq))==null?void 0:H.page;_.f(X,Ig6)!==void 0&&(this.data=_.f(X,Ig6))};
_.R.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]]"}}}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.R.searchQueryChanged=function(X,H){if(this.data&&this.data.contents&&this.data.contents.length){X=[];var l=[];this.hideCreateChannelButton=this.noResult=!1;for(var b=document.querySelectorAll("ytd-account-item-renderer"),U=_.C(b),K=U.next();!K.done;K=U.next())K=K.value,l.push(K),K.style.display="block";this.resetRightBorder(l);if(H){this.hideCreateChannelButton=!0;for(l=1;l<this.data.contents.length;l++)if(K=this.data.contents[l],_.f(K,YdG)){var w=void 0,d=void 0;U=(w=_.f(K,YdG))==null?void 0:(d=
w.accountName)==null?void 0:d.simpleText;d=w=void 0;K=(w=_.f(K,YdG))==null?void 0:(d=w.channelHandle)==null?void 0:d.simpleText;(w=b[l-1])&&U&&_.Bh(U,H)?X.push(w):_.P("enable_handle_search_on_channel_switcher")&&w&&K&&_.Bh(K.toString(),H.toString())?X.push(w):w.style.display="none"}X.length===0&&(this.noResult=!0);this.resetRightBorder(X)}}};
_.R.resetRightBorder=function(X){for(var H=0;H<X.length;H++)X[H].style.borderRight=!this.hideCreateChannelButton&&(H+2)%3===0||this.hideCreateChannelButton&&(H+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.R.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.R.setShowSearchBox=function(X){if(X&&X.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var H=0;H<X.contents.length;H++)_.f(X.contents[H],_.OF)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.R.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.ja.Object.defineProperties(Eh.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null?0:X.contents)}}});
Eh.prototype.onContinuationItemsUpdated=Eh.prototype.onContinuationItemsUpdated;Eh.prototype.searchQueryChanged=Eh.prototype.searchQueryChanged;Eh.prototype.onDataChanged=Eh.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Eh.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.EO),_.N("design:type",Object)],Eh.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Eh.prototype,"data",void 0);_.T([_.A2("ytd-channel-switcher-header-renderer"),_.N("design:type",Object)],Eh.prototype,"channelSwitcherHeaderRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],Eh.prototype,"noResult",void 0);
_.T([_.g(),_.N("design:type",Object)],Eh.prototype,"enableAlertBanner",void 0);_.T([_.g(),_.N("design:type",Object)],Eh.prototype,"dismissedAlertBanner",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Eh.prototype,"hideCreateChannelButton",void 0);_.T([_.x("data.contents"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Eh.prototype,"isLoading",null);_.T([_.g(),_.N("design:type",Object)],Eh.prototype,"boundDismissAlertBanner",void 0);
_.T([_.g({computed:"computeButtonOverride()"}),_.N("design:type",Object)],Eh.prototype,"buttonOverride",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Eh.prototype,"onDataChanged",null);_.T([_.Le("search-query-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],Eh.prototype,"searchQueryChanged",null);
_.T([_.Le("yt-next-continuation-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Eh.prototype,"onContinuationItemsUpdated",null);_.T([_.sq({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Eh);
_.O(Eh,"ytd-channel-switcher-page-renderer",function(){if(RUQ!==void 0)return RUQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return RUQ=X},{mode:1});var wk_;var dYC;var gy=function(){var X=_.a.apply(this,arguments)||this;X.images=[];X.selectedImageIndex=0;return X};
_.S(gy,_.a);_.R=gy.prototype;
_.R.ready=function(){_.n8(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.n8(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.n8(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.n8(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,!1,this)};
_.R.onThumbnailClick=function(X){if(X=X.event_.detail)this.selectedImageIndex=this.images.indexOf(X)};
_.R.updateImageThumbnails=function(X){X=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:X.event_.detail});this.images.splice(this.selectedImageIndex,1,X);this.images=[].concat(_.LJ(this.images))};
_.R.cancelImageRepositions=function(){this.selectedImageIndex=0;_.QX(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.R.saveImageRepositions=function(){this.selectedImageIndex=0;_.QX(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.ja.Object.defineProperties(gy.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var X=this;return(this.images||[]).map(function(H,l){return{image:H,selected:l===X.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.A2("ytd-backstage-image-preview-renderer"),_.N("design:type",Object)],gy.prototype,"imagePreviewContainer",void 0);_.T([_.A2(".thumbnail-images-container"),_.N("design:type",HTMLElement)],gy.prototype,"thumbnailImagesContainer",void 0);_.T([_.g(),_.N("design:type",Array)],gy.prototype,"images",void 0);
_.T([_.g(),_.N("design:type",Object)],gy.prototype,"repositionInstructions",void 0);_.T([_.g(),_.N("design:type",Object)],gy.prototype,"selectedImageIndex",void 0);_.T([_.x("images","selectedImageIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],gy.prototype,"thumbnailRendererDatas",null);_.T([_.x("images","selectedImageIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],gy.prototype,"selectedImageData",null);
_.T([_.sq({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],gy);
_.mr()(gy,"ytd-backstage-multi-image-reposition-renderer",function(){if(dYC===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);dYC=X}X=dYC;return X},{allowedProps:["images",
"repositionInstructions"],mode:1});var Gt=function(X,H){_.zB.call(this);this.uploadUrl=X;this.channelId=H;this.imagesUploadData=[]};
_.S(Gt,_.zB);Gt.prototype.getAllUploadStatuses=function(){var X=this,H,l,b;return _.h(function(U){if(U.nextAddress==1)return U.yield(hUv(X),2);H=U.yieldResult;l=H.get("succeed");b=H.get("failed");return U.return(l.concat(b))})};
var B4q=function(X){var H,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(hUv(X),2);H=b.yieldResult;l=H.get("failed");l.length>0&&F7v(X,l);return b.return(X.getAllUploadStatuses())})},hUv=function(X){var H,l,b,U,K,w,d;
return _.h(function(B){if(B.nextAddress==1)return H=new Map,B.yield(Promise.allSettled(X.imagesUploadData.map(function(q){return q.uploadPromise})),2);
l=B.yieldResult;b=[];U=_.C(l);for(K=U.next();!K.done;K=U.next())w=K.value,w.status==="fulfilled"&&b.push(w.value);d=X.imagesUploadData.map(function(q){return q.image}).filter(function(q){return b.every(function(u){return u.id!==q.id})});
H.set("succeed",b);H.set("failed",d);return B.return(H)})},F7v=function(X,H){H=_.C(H);
for(var l=H.next();!l.done;l=H.next()){var b=X;l=l.value;qu9(b,l.id)>=0&&b.cancel(l.id);var U=new sTY(l),K=_.vP9(b.uploadUrl,{"X-YouTube-ChannelId":b.channelId},l.imageBlob);U.transfer=K;U.uploadPromise=MQG(K,l);b.imagesUploadData.push(U);K.run()}};
Gt.prototype.cancel=function(X){var H=qu9(this,X);H!==-1&&((H=this.imagesUploadData[H].transfer)&&H.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(l){return l.image.id!==X}))};
var qu9=function(X,H){return X.imagesUploadData.findIndex(function(l){return l.image.id===H})},MQG=function(X,H){return new Promise(function(l,b){X.listen("l",function(){var U=X.getResponseText();
U?(U=JSON.parse(U).encryptedBlobId,H.encryptedBlobId=U,l(H)):b("upload failed")});
X.listen("n",function(){b("upload failed")})})},sTY=function(X){this.image=X};var BPm=function(X,H,l,b,U){this.id=X;this.imageBlob=H;this.localImageSrc=l;this.naturalWidth=b;this.naturalHeight=U;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 uMz=[".jpeg",".jpg",".png"],aY=function(){var X=_.a.apply(this,arguments)||this;X.showImagesPreview=!1;X.pollOptions=[];X.errorMessage="";X.optionPlaceholderText="";X.optionDefaultText="";X.JSC$16099_imageId=0;X.maxFileSizeMb=0;X.maxAspectRatio=0;X.invalidFileSizeError="";X.invalidAspectRatioError="";X.invalidFileTypeError="";X.imageSelector=new N8(null,"single_file",uMz);return X};
_.S(aY,_.a);_.R=aY.prototype;_.R.ready=function(){_.n8(this.imageSelector,"j",this.onImageSelect,!1,this);_.n8(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.n8(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.R.dataChanged=function(){var X,H,l=_.f((X=this.data)==null?void 0:(H=X.cellTemplate)==null?void 0:H.onEmptyCellTap,gvG);if(l&&l.uploadUrl&&l.channelId){var b;this.maxFileSizeMb=((b=l.imageValidationInfo)==null?void 0:b.maxFileSizeMb)||0;var U;this.maxAspectRatio=((U=l.imageValidationInfo)==null?void 0:U.allowedMaxAspectRatio)||0;var K;this.invalidFileSizeError=this.getSimpleString((K=this.data)==null?void 0:K.invalidFileSizeError);var w;this.invalidAspectRatioError=this.getSimpleString((w=this.data)==
null?void 0:w.invalidAspectRatioError);var d;this.invalidFileTypeError=this.getSimpleString((d=this.data)==null?void 0:d.invalidFileTypeError);this.uploadManager=new Gt(l.uploadUrl,l.channelId)}};
_.R.onEditorInfoChange=function(){this.optionPlaceholderText=_.D8(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.D8(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.R.observeAddImageError=function(){this.errorMessage!==""&&_.QX(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.R.onPollOptionsChange=function(){for(var X=!1,H=[],l=0;l<this.pollOptions.length;l++){var b=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(l+1);this.pollOptions[l].placeholderText!==b?(X=!0,H.push(Object.assign({},this.pollOptions[l],{placeholderText:b}))):H.push(this.pollOptions[l])}X&&(this.pollOptions=H);this.isValid()?_.QX(this.hostElement,"yt-commentbox-post-enable"):_.QX(this.hostElement,"yt-commentbox-post-disable")};
_.R.createPollOptions=function(X){var H=[],l;X=(l=X==null?void 0:X.minPollOptions)!=null?l:0;for(l=0;l<X;l++)H.push(this.createPollOption());return H};
_.R.onImageSelect=function(X){var H=this,l,b,U,K,w,d;return _.h(function(B){if(B.nextAddress==1){if(H.selectedImageIndex===void 0)return B.jumpTo(0);l=X.files[0];H.errorMessage="";b=H.validateImage(l);if(b!=="")return H.errorMessage=b,B.return();U=new ti(H.maxAspectRatio,!1,!0);return B.yield(U.transform(l),3)}if(B.nextAddress!=4)return K=B.yieldResult,K.transformedData?K.invalidAspectRatio?(H.errorMessage=H.invalidAspectRatioError,B.return()):B.yield(q5L(H.JSC$16099_imageId,X.files[0],K.transformedData),
4):(H.errorMessage=H.invalidFileTypeError,B.return());w=B.yieldResult;H.JSC$16099_imageId++;F7v(H.uploadManager,[w]);d=Object.assign({},H.pollOptions[H.selectedImageIndex],{image:w});H.pollOptions.splice(H.selectedImageIndex,1,d);H.refreshPollOptions();_.QX(H.hostElement,"yt-backstage-poll-image-select");_.m5(B)})};
_.R.validateImage=function(X){return X.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.R.refreshPollOptions=function(){this.pollOptions=[].concat(_.LJ(this.pollOptions))};
_.R.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.LJ(this.pollOptions),[this.createPollOption()]))};
_.R.onRemovePollOption=function(X){var H=this.pollOptions[X.model.index];H&&H.image&&this.uploadManager.cancel(H.image.id);this.pollOptions.splice(X.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.QX(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.R.onTextInput=function(){this.refreshPollOptions()};
_.R.onImageButtonClick=function(X){this.selectedImageIndex=X.model.index;this.imageSelector.click()};
_.R.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.R.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.R.saveImageRepositions=function(X){X=X.event_.detail;for(var H=0,l=[],b=_.C(this.pollOptions),U=b.next();!U.done;U=b.next())U=U.value,U.image!==void 0?(U=Object.assign({},U,{image:X[H]}),l.push(U),H++):l.push(U);this.showImagesPreview=!1;this.pollOptions=[].concat(_.LJ(l))};
_.R.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 X=0,H=_.C(this.pollOptions),l=H.next();!l.done;l=H.next())if(l=l.value,l.optionText.trim()!==""||l.image!==void 0){if(!l.image||this.hasCustomOptionText&&l.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;X++}return X>=Number(this.editorInfo.minPollOptions)};
_.R.getAllUploadStatuses=function(){var X=this,H,l,b,U;return _.h(function(K){if(K.nextAddress==1)return K.yield(X.uploadManager.getAllUploadStatuses(),2);H=K.yieldResult;l=_.C(H);for(b=l.next();!b.done;b=l.next())if(U=b.value,U.encryptedBlobId===void 0)return K.return(B4q(X.uploadManager));return K.return(H)})};
_.R.getPostCreateOptions=function(){for(var X=[],H=_.C(this.pollOptions),l=H.next();!l.done;l=H.next())l=l.value,l.image!==void 0&&X.push({text:this.hasCustomOptionText?l.optionText:l.placeholderText,image:l.image});return X};
_.R.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.R.createButtonRenderer=function(X,H){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:X,accessibilityData:{accessibilityData:{label:this.getSimpleString(X)}},isDisabled:H}};
_.R.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.R.computeThumbnailRendererData=function(X){return X?{image:X,selected:!1}:void 0};
_.R.getSimpleString=function(X){return _.D8(X)};
_.R.updateOptionTextFromBinding=function(X){if(X.target){var H=Array.from(_.mh(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(X.target);if(H>=0){var l;this.pollOptions[H].optionText=(l=X.detail.value)!=null?l:""}}};
_.ja.Object.defineProperties(aY.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var X,H;return this.pollOptions.length<((H=(X=this.editorInfo)==null?void 0:X.maxPollOptions)!=null?H:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(X){return X.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(X){return X.image}).map(function(X){return X.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(X){return X.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var X,H=(X=this.data)==null?void 0:X.addOptionButtonText;return H?this.createButtonRenderer(H,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var X,H=(X=this.data)==null?void 0:X.repositionImagesButtonLabel;return H?this.createButtonRenderer(H,!this.hasImages):void 0}}});
aY.prototype.onPollOptionsChange=aY.prototype.onPollOptionsChange;aY.prototype.observeAddImageError=aY.prototype.observeAddImageError;aY.prototype.onEditorInfoChange=aY.prototype.onEditorInfoChange;aY.prototype.dataChanged=aY.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],aY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.A2("ytd-backstage-multi-image-reposition-renderer"),_.N("design:type",Object)],aY.prototype,"imageRepositionContainer",void 0);
_.T([_.g(),_.N("design:type",Object)],aY.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],aY.prototype,"editorInfo",void 0);_.T([_.g(),_.N("design:type",Gt)],aY.prototype,"uploadManager",void 0);_.T([_.g(),_.N("design:type",Object)],aY.prototype,"showImagesPreview",void 0);_.T([_.g(),_.N("design:type",Array)],aY.prototype,"pollOptions",void 0);_.T([_.g(),_.N("design:type",Object)],aY.prototype,"errorMessage",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aY.prototype,"dataChanged",null);_.T([_.oi("editorInfo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aY.prototype,"onEditorInfoChange",null);_.T([_.Yh("errorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aY.prototype,"observeAddImageError",null);
_.T([_.oi("pollOptions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aY.prototype,"onPollOptionsChange",null);_.T([_.x("pollOptions","editorInfo"),_.N("design:type",Object),_.N("design:paramtypes",[])],aY.prototype,"isAllowedToAddOption",null);_.T([_.x("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],aY.prototype,"hasImages",null);
_.T([_.x("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],aY.prototype,"imagesToReposition",null);_.T([_.x("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],aY.prototype,"hasCustomOptionText",null);_.T([_.x("data","isAllowedToAddOption"),_.N("design:type",Object),_.N("design:paramtypes",[])],aY.prototype,"addOptionButton",null);_.T([_.x("data","hasImages"),_.N("design:type",Object),_.N("design:paramtypes",[])],aY.prototype,"repositionImagesButton",null);
_.T([_.sq({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],aY);
_.O(aY,"ytd-backstage-image-poll-editor-renderer",function(){if(wk_!==void 0)return wk_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return wk_=X},{mode:2});var eUq={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 ytH;var Zy=function(){var X=_.a.apply(this,arguments)||this;X.a11yConfig=eUq;X.imageDisplayOffsetTop=0;X.imageDisplayOffsetLeft=0;X.pickerDisplayOffsetTop=0;X.pickerDisplayOffsetLeft=0;X.showPreviewContainer=!0;X.startPicker=!1;X.repositionOptional=!1;X.editOnlyMode=!1;X.savedImageDisplayOffsetTop=0;X.savedImageDisplayOffsetLeft=0;return X};
_.S(Zy,_.a);_.R=Zy.prototype;_.R.created=function(){_.uc.requestAvailability()};
_.R.ready=function(){};
_.R.onArrowKeysDown=function(X){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){X.detail.keyboardEvent.preventDefault();var H=0,l=0,b="";switch(X.detail.keyboardEvent.key){case "ArrowUp":say(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?b=this.a11yConfig.reachBottomOfImage:H=this.imageHeight*.05*-1;break;case "ArrowDown":say(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?b=this.a11yConfig.reachTopOfImage:
H=this.imageHeight*.05;break;case "ArrowLeft":say(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?b=this.a11yConfig.reachRightOfImage:l=this.imageWidth*.05*-1;break;case "ArrowRight":say(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?b=this.a11yConfig.reachLeftOfImage:l=this.imageWidth*.05}b&&_.XS(b)&&_.QX(this.hostElement,"iron-announce",{text:_.XS(b)});if(l||H)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+H)),X=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),X=_.XS(this.a11yConfig.imageVerticalPosition,{x_percent:""+X,y_percent:""+(100-X)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+l)),X=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),X=_.XS(this.a11yConfig.imageHorizontalPosition,{x_percent:""+X,y_percent:""+(100-X)})),X&&_.QX(this.hostElement,"iron-announce",{text:X})}};
_.R.getPreviewPosition=function(X,H,l,b){return Math.round(100*(X+H*.5-l)/b)};
_.R.calculateDisplayPosition=function(){var X=this.imageData.naturalWidth,H=this.imageData.naturalHeight;this.displayScale=Math.max(200/X,200/H);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var l=X*this.displayScale*this.imageData.previewCoordinates.left,b=H*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=H>X?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-l;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=X>H?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-b;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=X*this.displayScale;this.imageHeight=H*this.displayScale};
_.R.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.R.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.R.getSignedPosition=function(X,H,l){return H==="X"&&_.gx("HTML_DIR")==="rtl"?l==="-"?X+"px":X*-1+"px":l==="-"?X*-1+"px":X+"px"};
_.R.pickerMove=function(X){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var H=this.pickerOffsetX-X.clientX,l=this.pickerOffsetY-X.clientY;this.pickerOffsetX=X.clientX;this.pickerOffsetY=X.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
l)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-H))}};
_.R.pickerMoveStart=function(X){this.startPicker=!0;this.pickerOffsetX=X.clientX;this.pickerOffsetY=X.clientY};
_.R.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var X=this.generateCropPreview();X&&_.QX(this.hostElement,"ytd-backstage-image-preview-coordinates-update",X)};
_.R.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.QX(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.R.deleteImage=function(){_.QX(this.hostElement,"ytd-backstage-image-preview-delete")};
_.R.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.R.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var X=this.generateCropPreview();X&&_.QX(this.hostElement,"ytd-backstage-image-preview-coordinates-save",X)};
_.R.getPreviewOffset=function(X,H,l){return H&&X?(l==="X"&&_.gx("HTML_DIR")==="rtl"?300/H*X:300/H*X*-1)+"px":"0px"};
_.R.getSimpleText=function(X){return X?_.D8(X):""};
_.R.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}};
_.ja.Object.defineProperties(Zy.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var X=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.XS(this.a11yConfig.imageVerticalPosition,{x_percent:""+X,y_percent:""+(100-X)})+"\n"+_.XS(this.a11yConfig.verticalRepositionInstruction)}X=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.XS(this.a11yConfig.imageHorizontalPosition,{x_percent:""+X,y_percent:""+(100-X)})+"\n"+_.XS(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 X,H,l=(X=this.instruction)==null?void 0:(H=X.previewInstruction)==null?void 0:H.editButtonLabel;return l?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:l,accessibilityData:{accessibilityData:{label:this.getSimpleText(l)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b,U=this.editOnlyMode?(X=this.instruction)==null?void 0:(H=X.editInstruction)==null?void 0:H.saveImagesButtonLabel:(l=this.instruction)==null?void 0:(b=l.editInstruction)==null?void 0:b.saveButtonLabel;return U?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:U,accessibilityData:{accessibilityData:{label:this.getSimpleText(U)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(X=this.instruction)==null?void 0:(H=X.previewInstruction)==null?void 0:H.deleteButtonLabel;return l?{size:"SIZE_SMALL",text:l,accessibilityData:{accessibilityData:{label:this.getSimpleText(l)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(X=this.instruction)==null?void 0:(H=X.editInstruction)==null?void 0:H.cancelButtonLabel;X=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return l?{style:X,size:"SIZE_SMALL",text:l,accessibilityData:{accessibilityData:{label:this.getSimpleText(l)}}}: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"}}});
Zy.prototype.onEditOnlyModeUpdate=Zy.prototype.onEditOnlyModeUpdate;Zy.prototype.onImageChange=Zy.prototype.onImageChange;_.T([_.g(),_.N("design:type",BPm)],Zy.prototype,"imageData",void 0);_.T([_.g(),_.N("design:type",Object)],Zy.prototype,"instruction",void 0);_.T([_.g(),_.N("design:type",Object)],Zy.prototype,"a11yConfig",void 0);_.T([_.g(),_.N("design:type",Number)],Zy.prototype,"imageWidth",void 0);_.T([_.g(),_.N("design:type",Number)],Zy.prototype,"imageHeight",void 0);
_.T([_.g(),_.N("design:type",Number)],Zy.prototype,"displayScale",void 0);_.T([_.g(),_.N("design:type",Object)],Zy.prototype,"imageDisplayOffsetTop",void 0);_.T([_.g(),_.N("design:type",Object)],Zy.prototype,"imageDisplayOffsetLeft",void 0);_.T([_.g(),_.N("design:type",Object)],Zy.prototype,"pickerDisplayOffsetTop",void 0);_.T([_.g(),_.N("design:type",Object)],Zy.prototype,"pickerDisplayOffsetLeft",void 0);_.T([_.g(),_.N("design:type",Object)],Zy.prototype,"showPreviewContainer",void 0);
_.T([_.g(),_.N("design:type",Object)],Zy.prototype,"startPicker",void 0);_.T([_.g(),_.N("design:type",Number)],Zy.prototype,"pickerOffsetX",void 0);_.T([_.g(),_.N("design:type",Number)],Zy.prototype,"pickerOffsetY",void 0);_.T([_.g(),_.N("design:type",Object)],Zy.prototype,"repositionOptional",void 0);_.T([_.g(),_.N("design:type",Object)],Zy.prototype,"editOnlyMode",void 0);_.T([_.A2("#picker-container"),_.N("design:type",HTMLElement)],Zy.prototype,"JSC$16112_pickerContainer",void 0);
_.T([_.A2("#picker"),_.N("design:type",HTMLElement)],Zy.prototype,"picker",void 0);_.T([_.A2("#preview-clipper"),_.N("design:type",HTMLElement)],Zy.prototype,"previewClipper",void 0);_.T([_.A2("#image-in-picker-background"),_.N("design:type",HTMLImageElement)],Zy.prototype,"JSC$16112_imageInBackground",void 0);_.T([_.A2("#image-in-picker"),_.N("design:type",HTMLImageElement)],Zy.prototype,"JSC$16112_imageInPicker",void 0);
_.T([_.A2("#image-in-preview-clipper"),_.N("design:type",HTMLImageElement)],Zy.prototype,"JSC$16112_imageInPreviewClipper",void 0);_.T([_.x("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],Zy.prototype,"altLabelForImage",null);_.T([_.x("imageHeight","imageWidth"),_.N("design:type",Number),_.N("design:paramtypes",[])],Zy.prototype,"pickerSize",null);
_.T([_.x("imageHeight","imageWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zy.prototype,"imageOrientationStyle",null);_.T([_.x("instruction"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zy.prototype,"editButton",null);_.T([_.x("instruction","editOnlyMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zy.prototype,"saveButton",null);_.T([_.x("instruction"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zy.prototype,"deleteButton",null);
_.T([_.x("instruction","editOnlyMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zy.prototype,"cancelButton",null);_.T([_.x("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.N("design:type",Number),_.N("design:paramtypes",[])],Zy.prototype,"cropOffsetTop",null);_.T([_.x("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.N("design:type",Number),_.N("design:paramtypes",[])],Zy.prototype,"cropOffsetLeft",null);
_.T([_.x("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],Zy.prototype,"pickerBackgroundStyle",null);_.T([_.x("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],Zy.prototype,"pickerDisplayStyle",null);_.T([_.x("cropOffsetLeft","cropOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],Zy.prototype,"imageInPickerStyle",null);
_.T([_.x("cropOffsetLeft","cropOffsetTop","pickerSize"),_.N("design:type",String),_.N("design:paramtypes",[])],Zy.prototype,"previewClipperStyle",null);_.T([_.oi("imageData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zy.prototype,"onImageChange",null);_.T([_.oi("editOnlyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zy.prototype,"onEditOnlyModeUpdate",null);
_.T([_.x("showPreviewContainer"),_.N("design:type",String),_.N("design:paramtypes",[])],Zy.prototype,"pickerModeStyle",null);_.T([_.sq({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Zy);
_.O(Zy,"ytd-backstage-image-preview-renderer",function(){if(ytH!==void 0)return ytH;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ytH=X},{mode:1});var VQz;var PSQ={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 ffq;var pkH;var vN=function(){var X=_.a.apply(this,arguments)||this;X.a11yConfig=PSQ;X.imageDisplayOffsetTop=0;X.imageDisplayOffsetLeft=0;X.pickerDisplayOffsetTop=0;X.pickerDisplayOffsetLeft=0;X.cropCoordinatesSaved=!1;X.previewSize=0;X.startPicker=!1;X.repositionOptional=!1;return X};
_.S(vN,_.a);_.R=vN.prototype;_.R.created=function(){_.uc.requestAvailability()};
_.R.ready=function(){};
_.R.onArrowKeysDown=function(X){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){X.detail.keyboardEvent.preventDefault();var H=0,l=0,b="";switch(X.detail.keyboardEvent.key){case "ArrowUp":Mkz(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?b=this.a11yConfig.reachBottomOfImage:H=this.imageHeight*.05*-1;break;case "ArrowDown":Mkz(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?b=this.a11yConfig.reachTopOfImage:
H=this.imageHeight*.05;break;case "ArrowLeft":Mkz(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?b=this.a11yConfig.reachRightOfImage:l=this.imageWidth*.05*-1;break;case "ArrowRight":Mkz(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?b=this.a11yConfig.reachLeftOfImage:l=this.imageWidth*.05}b&&_.XS(b)&&_.QX(this.hostElement,"iron-announce",{text:_.XS(b)});if(l||H)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+H)),X=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),X=_.XS(this.a11yConfig.imageVerticalPosition,{x_percent:""+X,y_percent:""+(100-X)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+l)),X=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),X=_.XS(this.a11yConfig.imageHorizontalPosition,{x_percent:""+X,y_percent:""+(100-X)})),X&&_.QX(this.hostElement,"iron-announce",{text:X})}};
_.R.getPreviewPosition=function(X,H,l,b){return Math.round(100*(X+H*.5-l)/b)};
_.R.displayImage=function(){var X=this.JSC$16123_pickerContainer.getBoundingClientRect().width,H=this.JSC$16123_pickerContainer.getBoundingClientRect().height,l=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),b=this.JSC$16123_imageInBackground.naturalWidth,U=this.JSC$16123_imageInBackground.naturalHeight;this.displayScale=Math.max(l/b,l/U);this.imageWidth=b*this.displayScale;this.imageHeight=U*this.displayScale;this.pickerDisplayOffsetLeft=(X-l)/2;this.pickerDisplayOffsetTop=
(H-l)/2;this.imageDisplayOffsetLeft=U>b?this.pickerDisplayOffsetLeft:(X-this.imageWidth)/2;this.imageDisplayOffsetTop=b>U?this.pickerDisplayOffsetTop:(H-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.R.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())};
_.R.getSignedPosition=function(X,H,l){return H==="X"&&_.gx("HTML_DIR")==="rtl"?l==="-"?X+"px":X*-1+"px":l==="-"?X*-1+"px":X+"px"};
_.R.pickerMove=function(X){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var H=this.pickerOffsetX-X.clientX,l=this.pickerOffsetY-X.clientY;this.pickerOffsetX=X.clientX;this.pickerOffsetY=X.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
l)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-H))}};
_.R.pickerMoveStart=function(X){this.startPicker=!0;this.pickerOffsetX=X.clientX;this.pickerOffsetY=X.clientY};
_.R.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.R.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.QX(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.R.getPreviewOffset=function(X,H,l,b){return H&&X&&l?(b==="X"&&_.gx("HTML_DIR")==="rtl"?l/H*X:l/H*X*-1)+"px":"0px"};
_.R.getSimpleText=function(X){return X?_.D8(X):""};
_.R.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var X=this.cropOffsetTop/this.imageHeight,H=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,l=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,b=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.mh(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.QX(this.hostElement,"yt-img-crop-coordinates-update",{top:X,right:H,bottom:l,left:b})}};
_.ja.Object.defineProperties(vN.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var X=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.XS(this.a11yConfig.imageVerticalPosition,{x_percent:""+X,y_percent:""+(100-X)})+"\n"+_.XS(this.a11yConfig.verticalRepositionInstruction)}X=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.XS(this.a11yConfig.imageHorizontalPosition,{x_percent:""+X,y_percent:""+(100-X)})+"\n"+_.XS(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 X,H=(X=this.learnMore.runs[0])==null?void 0:X.navigationEndpoint,l;return((l=_.f(H,_.aL))==null?void 0:l.url)||void 0}}}});
vN.prototype.onImageDataChange=vN.prototype.onImageDataChange;_.T([_.g(),_.N("design:type",Object)],vN.prototype,"imageData",void 0);_.T([_.g(),_.N("design:type",Object)],vN.prototype,"instruction",void 0);_.T([_.g(),_.N("design:type",Object)],vN.prototype,"a11yConfig",void 0);_.T([_.g(),_.N("design:type",Number)],vN.prototype,"imageWidth",void 0);_.T([_.g(),_.N("design:type",Number)],vN.prototype,"imageHeight",void 0);_.T([_.g(),_.N("design:type",Number)],vN.prototype,"displayScale",void 0);
_.T([_.g(),_.N("design:type",Object)],vN.prototype,"imageDisplayOffsetTop",void 0);_.T([_.g(),_.N("design:type",Object)],vN.prototype,"imageDisplayOffsetLeft",void 0);_.T([_.g(),_.N("design:type",Object)],vN.prototype,"pickerDisplayOffsetTop",void 0);_.T([_.g(),_.N("design:type",Object)],vN.prototype,"pickerDisplayOffsetLeft",void 0);_.T([_.g(),_.N("design:type",Object)],vN.prototype,"cropCoordinatesSaved",void 0);_.T([_.g(),_.N("design:type",Object)],vN.prototype,"previewSize",void 0);
_.T([_.g(),_.N("design:type",Object)],vN.prototype,"startPicker",void 0);_.T([_.g(),_.N("design:type",Number)],vN.prototype,"pickerOffsetX",void 0);_.T([_.g(),_.N("design:type",Number)],vN.prototype,"pickerOffsetY",void 0);_.T([_.g(),_.N("design:type",Object)],vN.prototype,"repositionOptional",void 0);_.T([_.A2("#picker-container"),_.N("design:type",HTMLElement)],vN.prototype,"JSC$16123_pickerContainer",void 0);_.T([_.A2("#picker"),_.N("design:type",HTMLElement)],vN.prototype,"picker",void 0);
_.T([_.A2("#image-in-picker-background"),_.N("design:type",HTMLImageElement)],vN.prototype,"JSC$16123_imageInBackground",void 0);_.T([_.A2("#image-in-picker"),_.N("design:type",HTMLImageElement)],vN.prototype,"JSC$16123_imageInPicker",void 0);_.T([_.A2("#image-in-preview-clipper"),_.N("design:type",HTMLImageElement)],vN.prototype,"JSC$16123_imageInPreviewClipper",void 0);_.T([_.A2("#full-image-as-preview"),_.N("design:type",HTMLImageElement)],vN.prototype,"imageAsPreview",void 0);
_.T([_.x("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],vN.prototype,"altLabelForImage",null);_.T([_.x("imageHeight","imageWidth"),_.N("design:type",Number),_.N("design:paramtypes",[])],vN.prototype,"pickerSize",null);_.T([_.x("imageHeight","imageWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],vN.prototype,"imageOrientationStyle",null);
_.T([_.x("instruction.previewInstruction.editButtonLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],vN.prototype,"editButton",null);_.T([_.x("instruction.editInstruction.saveButtonLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],vN.prototype,"saveButton",null);_.T([_.x("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.N("design:type",Number),_.N("design:paramtypes",[])],vN.prototype,"cropOffsetTop",null);
_.T([_.x("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.N("design:type",Number),_.N("design:paramtypes",[])],vN.prototype,"cropOffsetLeft",null);_.T([_.x("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],vN.prototype,"pickerBackgroundStyle",null);_.T([_.x("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],vN.prototype,"pickerDisplayStyle",null);
_.T([_.x("cropOffsetLeft","cropOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],vN.prototype,"imageInPickerStyle",null);_.T([_.x("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.N("design:type",String),_.N("design:paramtypes",[])],vN.prototype,"previewClipperStyle",null);_.T([_.Yh("imageData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vN.prototype,"onImageDataChange",null);
_.T([_.x("cropCoordinatesSaved"),_.N("design:type",String),_.N("design:paramtypes",[])],vN.prototype,"pickerModeStyle",null);_.T([_.x("instruction.editInstruction.learnMore"),_.N("design:type",Object),_.N("design:paramtypes",[])],vN.prototype,"learnMore",null);_.T([_.x("learnMore"),_.N("design:type",Object),_.N("design:paramtypes",[])],vN.prototype,"learnMoreUrl",null);_.T([_.qR({is:"yt-img-crop-picker",disableElementRegistration:!0})],vN);
_.O(vN,"yt-img-crop-picker",function(){if(pkH===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;ffq===void 0&&(ffq=document.createElement("template"));var b=ffq;l.call(H,b.content.cloneNode(!0),X.content.firstChild);pkH=X}X=pkH;return X},{mode:2});var Oh=function(){var X=_.a.apply(this,arguments)||this;X.errorMessage="";X.hasPreview=!1;X.isBackstagePost=!1;X.dismissButtonOverrides={size:"XS"};return X};
_.S(Oh,_.a);_.R=Oh.prototype;_.R.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"}}}};
_.R.detached=function(){this.removeOverlay()};
_.R.setPreview=function(X){_.mh(this.hostElement).querySelector("#preview-picker").imageData=X;this.hasPreview=!0;_.QX(this.hostElement,"yt-backstage-image-select-preview")};
_.R.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var X=_.mh(this.hostElement).querySelector("#dropzone");X.classList.remove("dragover");X.classList.remove("error");_.QX(this.hostElement,"yt-backstage-image-select-cancel")};
_.R.setupOverlay=function(){var X=this.imageUploadEndpoint;this.removeOverlay();if(X&&X.imageValidationInfo){var H=_.mh(this.hostElement).querySelector("#dropzone"),l=_.mh(this.hostElement).querySelector("#select");this.overlay=new Eb(X.uploadUrl,X.channelId,X.imageValidationInfo.maxFileSizeMb,X.imageValidationInfo.allowedMaxAspectRatio,H,l,!0);_.n8(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.n8(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.n8(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.n8(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.n8(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.R.removeOverlay=function(){this.overlay&&(_.FE(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.FE(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.FE(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.FE(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.FE(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.R.onDragOver=function(X){var H=_.mh(this.hostElement).querySelector("#dropzone");_.TW(H,"dragover",X.value)};
_.R.onPreview=function(X){this.setPreview(X.value)};
_.R.onImageError=function(X){if(X.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var H;X=(H=this.data)==null?void 0:H.fileSizeError}else if(X.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var l;X=(l=this.data)==null?void 0:l.invalidError}else if(X.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var b;X=(b=this.data)==null?void 0:b.invalidAspectRatioError}else return;this.errorMessage=_.D8(X);_.mh(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.R.onImageAlert=function(X){this.onImageError(X)};
_.R.uploadPromise=function(){var X=this,H=this.overlay&&this.overlay.uploadPromise();if(H)return H.catch(function(){throw Error(X.data?_.D8(X.data.uploadFailureError):"");})};
_.ja.Object.defineProperties(Oh.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var X,H;if((X=this.data)==null?0:(H=X.icon)==null?0:H.iconType)return _.jL(this.data.icon.iconType)}}});
Oh.prototype.setupOverlay=Oh.prototype.setupOverlay;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Oh.prototype,"rendererStamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Oh.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Oh.prototype,"imageUploadEndpoint",void 0);_.T([_.g(),_.N("design:type",Object)],Oh.prototype,"errorMessage",void 0);
_.T([_.g(),_.N("design:type",Eb)],Oh.prototype,"overlay",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Oh.prototype,"hasPreview",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Oh.prototype,"isBackstagePost",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Oh.prototype,"selectionCancel",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Oh.prototype,"previewCancel",null);
_.T([_.x("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],Oh.prototype,"icon",null);_.T([_.g(),_.N("design:type",Object)],Oh.prototype,"dismissButtonOverrides",void 0);_.T([_.Yh("imageUploadEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oh.prototype,"setupOverlay",null);_.T([_.sq({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Oh);
_.O(Oh,"ytd-backstage-image-select-renderer",function(){if(VQz!==void 0)return VQz;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return VQz=X},{mode:1});var SuF;var zUH;var mU=function(){var X=_.a.apply(this,arguments)||this;X.selected=!1;return X};
_.S(mU,_.a);_.R=mU.prototype;_.R.computeSelected=function(X){return X==null?void 0:X.selected};
_.R.computeTransform=function(X,H,l){var b,U,K=(U=(b=this.imageContainer)==null?void 0:b.getBoundingClientRect())!=null?U:{width:0,height:0};b=Math.max(K.width/H,K.height/l);l=l*b*X.top;return"translateX("+this.getSignedPosition(H*b*X.left,"X","-")+") translateY("+this.getSignedPosition(l,"Y","-")+")"};
_.R.getSignedPosition=function(X,H,l){return H==="X"&&_.gx("HTML_DIR")==="rtl"?l==="-"?X+"px":X*-1+"px":l==="-"?X*-1+"px":X+"px"};
_.R.onClick=function(){var X;_.QX(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(X=this.data)==null?void 0:X.image)};
_.R.onKeyPress=function(X){if(X.keyCode===13)this.onClick()};
_.ja.Object.defineProperties(mU.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:(H=X.image)==null?void 0:H.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)!=null&&X.image){var H;X=(H=this.data)==null?void 0:H.image;return X.previewCoordinates.top!==0||X.previewCoordinates.left!==0?(H=this.computeTransform(X.previewCoordinates,X.naturalWidth,X.naturalHeight),X.naturalHeight>=X.naturalWidth?"width:inherit;transform:"+H+";":"height:inherit;transform:"+H+";"):X.naturalHeight>=X.naturalWidth?"width:inherit;":"height:inherit;"}}}});
mU.prototype.onKeyPress=mU.prototype.onKeyPress;_.T([_.A2(".image-container"),_.N("design:type",HTMLElement)],mU.prototype,"imageContainer",void 0);_.T([_.g(),_.N("design:type",Object)],mU.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.N("design:type",Object)],mU.prototype,"selected",void 0);_.T([_.x("data.image"),_.N("design:type",Object),_.N("design:paramtypes",[])],mU.prototype,"thumbnailUrl",null);
_.T([_.x("data.image","data.image.previewCoordinates"),_.N("design:type",Object),_.N("design:paramtypes",[])],mU.prototype,"thumbnailStyle",null);_.T([_.Le("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],mU.prototype,"onKeyPress",null);_.T([_.sq({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],mU);
_.mr()(mU,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(zUH===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);zUH=X}X=zUH;return X},{allowedProps:["data"],
mode:2});var QA=function(X,H,l){l=l===void 0?!1:l;_.zB.call(this);var b=this;this.dropZoneOverlay=new TU(X);this.selectOverlay=l?new N8(H,"multiple_file",["image/*"]):new N8(H,"single_file",["image/*"]);this.handler=new _.C8(this);_.LY(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(H,"click",function(){b.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.S(QA,_.zB);QA.prototype.onChange=function(X){var H;(H=X.files)!=null&&H.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:X.files}))};var Tt=function(){var X=_.a.apply(this,arguments)||this;X.addImageErrorMessage="";X.errorMessage="";X.images=[];X.selectedImageIndex=0;X.modern=_.P("web_modern_buttons");X.maxNumImagesPerPost=_.Yy("max_num_images_per_post_web_ui");X.JSC$16138_imageId=0;return X};
_.S(Tt,_.a);_.R=Tt.prototype;_.R.created=function(){var X=this;this.JSC$16138_ytReorderableController=new _.TEQ(100,function(H){X.handleDrop(H)})};
_.R.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.QX(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.R.observeDragToReorder=function(){var X=this;if(this.showImagesPreview){var H,l=J_Q(_.cW.getInstance(),(H=this.data)==null?void 0:H.dragToReorderTooltip);_.Ss.addLowPriorityJob(function(){_.j7(X.hostElement,l,X.thumbnailDragDropArea)})}};
_.R.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}}};
_.R.computeThumbnail=function(X){return(X==null?void 0:X.localImageSrc)||void 0};
_.R.onRendererstamperFinished=function(){_.NEt(this.JSC$16138_ytReorderableController,_.mh(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.mh(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.R.handleDrop=function(X){var H=X.currDragItem;if(H!=null&&H.data){X=this.images[this.selectedImageIndex];var l=H.data.image,b=this.images.indexOf(l)||0;H=_.ak(H.parentNode.children,H);this.images.splice(b,1);this.images.splice(H,0,l);this.images=[].concat(_.LJ(this.images));this.selectedImageIndex=this.images.indexOf(X)}};
_.R.setUpImagePicker=function(){var X=this.imageUploadEndpoint;X&&X.imageValidationInfo&&(this.uploadManager=new Gt(X.uploadUrl,X.channelId),this.initialPicker||(this.initialPicker=new QA(this.dropzone,this.selectLink,!0),_.n8(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new QA(this.addImageButtonContainer,this.addImageSelectButton),_.n8(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.n8(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.n8(this.imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.n8(_.mh(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.R.detached=function(){this.initialPicker&&(_.FE(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.FE(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.Hm(this.JSC$16138_ytReorderableController)};
_.R.onInitialSelectImages=function(X){var H=this;return _.h(function(l){return l.yield(H.onSelectImages(X,!1),0)})};
_.R.onAddImage=function(X){var H=this;return _.h(function(l){return l.yield(H.onSelectImages(X,!0),0)})};
_.R.onSelectImages=function(X,H){var l=this,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J;return _.h(function(Y){switch(Y.nextAddress){case 1:H?l.addImageErrorMessage="":(l.images=[],l.errorMessage="");b=X.detail;U=l.validateImages([].concat(_.LJ(b)));if(U!=="")return H?l.addImageErrorMessage=U:l.errorMessage=U,Y.return();K=[].concat(_.LJ(b)).map(function(Uy){return(new ti(l.maxAspectRatio,!1,!0)).transform(Uy)});
return Y.yield(Promise.allSettled(K),2);case 2:w=Y.yieldResult,d=_.C(w.entries()),B=d.next();case 3:if(B.done){Y.jumpTo(5);break}q=B.value;u=_.C(q);e=u.next().value;y=u.next().value;V=e;p=y;if(p.status!=="fulfilled"){W=t=z=void 0;H?l.addImageErrorMessage=_.D8((z=l.data)==null?void 0:z.invalidError):l.errorMessage=l.errorMessage===""?_.D8((t=l.data)==null?void 0:t.invalidError):_.D8((W=l.data)==null?void 0:W.multiFileError);Y.jumpTo(4);break}G=p.value;G.cropped&&_.QX(l.hostElement,"yt-backstage-multi-image-cropped");
if(G.invalidAspectRatio){v=Q=r=void 0;H?l.addImageErrorMessage=_.D8((r=l.data)==null?void 0:r.invalidAspectRatioError):l.errorMessage=l.errorMessage===""?_.D8((Q=l.data)==null?void 0:Q.invalidAspectRatioError):_.D8((v=l.data)==null?void 0:v.multiFileError);Y.jumpTo(4);break}return Y.yield(q5L(l.JSC$16138_imageId,X.detail[V],G.transformedData),8);case 8:J=Y.yieldResult,l.images.push(J),l.JSC$16138_imageId++;case 4:B=d.next();Y.jumpTo(3);break;case 5:if(l.errorMessage!==""||l.addImageErrorMessage!==
"")return Y.return();H?F7v(l.uploadManager,[l.images[l.images.length-1]]):F7v(l.uploadManager,l.images);l.images=[].concat(_.LJ(l.images));l.selectedImageIndex=H?Math.max(l.images.length-1,0):0;_.QX(l.hostElement,"yt-backstage-multi-image-select");_.m5(Y)}})};
_.R.onThumbnailClick=function(X){if(X=X.event_.detail)this.selectedImageIndex=this.images.indexOf(X)};
_.R.validateImages=function(X){if(X.length>this.maxNumImagesPerPost){var H;return _.D8((H=this.data)==null?void 0:H.multiImageExceedMaxImageCountError)}var l=1048576*this.maxFileSizeMb;X=X.filter(function(K){return K.size>l}).length;
if(X===0)return"";var b,U;X=X>1?(b=this.data)==null?void 0:b.multiFileError:(U=this.data)==null?void 0:U.fileSizeError;return _.D8(X)};
_.R.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.LJ(this.images));this.selectedImageIndex=0};
_.R.repositionImage=function(X){this.images[this.selectedImageIndex].previewCoordinates=X.event_.detail;this.images=[].concat(_.LJ(this.images))};
_.R.getAllUploadStatuses=function(){var X=this,H,l,b,U;return _.h(function(K){if(K.nextAddress==1)return K.yield(X.uploadManager.getAllUploadStatuses(),2);H=K.yieldResult;l=_.C(H);for(b=l.next();!b.done;b=l.next())if(U=b.value,U.encryptedBlobId===void 0)return K.return(B4q(X.uploadManager));return K.return(H)})};
_.R.hasImages=function(){return this.images.length>0};
_.R.cancel=function(){for(var X=this.uploadManager,H=_.C(X.imagesUploadData),l=H.next();!l.done;l=H.next())X.cancel(l.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.QX(this.hostElement,"yt-backstage-multi-image-cancel")};
_.ja.Object.defineProperties(Tt.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.imageUploadEndpoint)==null?void 0:(H=X.imageValidationInfo)==null?void 0:H.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.imageUploadEndpoint)==null?void 0:(H=X.imageValidationInfo)==null?void 0:H.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var X,H;if((X=this.data)==null?0:(H=X.icon)==null?0:H.iconType)return _.jL(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.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 X=this;return(this.images||[]).map(function(H,l){return{renderer:{image:H,selected:l===X.selectedImageIndex}}})}}});
Tt.prototype.setUpImagePicker=Tt.prototype.setUpImagePicker;Tt.prototype.onRendererstamperFinished=Tt.prototype.onRendererstamperFinished;Tt.prototype.observeDragToReorder=Tt.prototype.observeDragToReorder;Tt.prototype.observeAddImageError=Tt.prototype.observeAddImageError;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Tt.prototype,"rendererStamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);
_.T([_.A2("#dropzone"),_.N("design:type",HTMLElement)],Tt.prototype,"dropzone",void 0);_.T([_.A2("#select-link"),_.N("design:type",HTMLElement)],Tt.prototype,"selectLink",void 0);_.T([_.A2("#thumbnail-drag-drop-area"),_.N("design:type",HTMLElement)],Tt.prototype,"thumbnailDragDropArea",void 0);_.T([_.A2("#add-image-button-container"),_.N("design:type",HTMLElement)],Tt.prototype,"addImageButtonContainer",void 0);
_.T([_.A2("#add-image-button"),_.N("design:type",HTMLElement)],Tt.prototype,"addImageSelectButton",void 0);_.T([_.A2("#image-preview-container"),_.N("design:type",Object)],Tt.prototype,"imagePreviewContainer",void 0);_.T([_.g(),_.N("design:type",Object)],Tt.prototype,"addImageErrorMessage",void 0);_.T([_.g(),_.N("design:type",Object)],Tt.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Tt.prototype,"errorMessage",void 0);
_.T([_.g(),_.N("design:type",Object)],Tt.prototype,"imageUploadEndpoint",void 0);_.T([_.g(),_.N("design:type",Array)],Tt.prototype,"images",void 0);_.T([_.g(),_.N("design:type",QA)],Tt.prototype,"initialPicker",void 0);_.T([_.g(),_.N("design:type",QA)],Tt.prototype,"addImagePicker",void 0);_.T([_.g(),_.N("design:type",Gt)],Tt.prototype,"uploadManager",void 0);_.T([_.g(),_.N("design:type",Object)],Tt.prototype,"selectedImageIndex",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Tt.prototype,"modern",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Tt.prototype,"maxNumImagesPerPost",void 0);_.T([_.x("imageUploadEndpoint"),_.N("design:type",Number),_.N("design:paramtypes",[])],Tt.prototype,"maxAspectRatio",null);_.T([_.x("imageUploadEndpoint"),_.N("design:type",Number),_.N("design:paramtypes",[])],Tt.prototype,"maxFileSizeMb",null);
_.T([_.x("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tt.prototype,"dropIcon",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tt.prototype,"selectionCancel",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tt.prototype,"previewCancel",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tt.prototype,"dataForAddImageButton",null);
_.T([_.x("errorMessage"),_.N("design:type",String),_.N("design:paramtypes",[])],Tt.prototype,"dropzoneClass",null);_.T([_.x("images"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tt.prototype,"showImagesPreview",null);_.T([_.x("images"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tt.prototype,"containMaxImages",null);_.T([_.Yh("addImageErrorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tt.prototype,"observeAddImageError",null);
_.T([_.Yh("showImagesPreview"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tt.prototype,"observeDragToReorder",null);_.T([_.x("images","selectedImageIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tt.prototype,"selectedImageData",null);_.T([_.x("images","selectedImageIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],Tt.prototype,"thumbnailRenderers",null);
_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tt.prototype,"onRendererstamperFinished",null);_.T([_.Yh("imageUploadEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tt.prototype,"setUpImagePicker",null);_.T([_.sq({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Tt);
_.O(Tt,"ytd-backstage-multi-image-select-renderer",function(){if(SuF!==void 0)return SuF;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return SuF=X},{mode:1});var nfF;var kOv;var xYY;var Nt=function(){var X=_.a.apply(this,arguments)||this;X.boundCaptureFocus=function(H){X.onCaptureFocus(H)};
return X};
_.S(Nt,_.a);_.R=Nt.prototype;_.R.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.R.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.R.onCaptureFocus=function(X){_.t2(X).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.R.getIconType=function(X){return X?"yt-icons:"+X.toLowerCase():null};
_.R.onSelect=function(){var X;if((X=this.data)==null?0:X.onSelectCommand)if(_.P("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var H;((H=_.f(this.data.onSelectCommand.commandMetadata,_.Ip))==null?0:H.url)?_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.jJ().resolve(_.Vr).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.ja.Object.defineProperties(Nt.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.D8(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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Nt.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Nt.prototype,"data",void 0);_.T([_.A2("#item"),_.N("design:type",HTMLElement)],Nt.prototype,"item",void 0);_.T([_.x("data.label"),_.N("design:type",String),_.N("design:paramtypes",[])],Nt.prototype,"label",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Nt.prototype,"value",null);_.T([_.sq({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Nt);
_.O(Nt,"ytd-privacy-dropdown-item-renderer",function(){if(xYY!==void 0)return xYY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return xYY=X},{mode:1});var cN=function(){var X=_.a.apply(this,arguments)||this;X.value="";X.label="";X.disabled=!1;return X};
_.S(cN,_.a);_.R=cN.prototype;_.R.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"}}}};
_.R.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.R.dataChanged=function(){this.reset()};
_.R.valueChanged=function(){var X;if(this.value&&(X=this.data)!=null&&X.entries){X=_.C(this.data.entries);for(var H=X.next();!H.done;H=X.next())if((H=this.getRendererForEntry(H.value))&&this.getItemRendererValue(H)===this.value){this.label=this.ytComponentBehavior.getSimpleString(H.label);break}}};
_.R.setInitialLabel=function(){if(this.data&&this.data.entries)for(var X=_.C(this.data.entries),H=X.next();!H.done;H=X.next())if(H=this.getRendererForEntry(H.value)){if(H.isSelected){this.label=this.ytComponentBehavior.getSimpleString(H.label);break}this.data.label&&(this.label=this.data.label)}};
_.R.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var X=_.C(this.data.entries),H=X.next();!H.done;H=X.next()){H=this.getRendererForEntry(H.value);var l=void 0;if((l=H)==null?0:l.isSelected)return this.getItemRendererValue(H)||-1}return-1};
_.R.getItemRendererValue=function(X){return"stringValue"in X||"int32Value"in X?X.stringValue||X.int32Value||null:null};
_.R.getRendererForEntry=function(X){return X.dropdownItemRenderer||X.privacyDropdownItemRenderer||X.navigationDropdownItemRenderer||null};
_.R.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("value-changed",this.value))};
_.R.updateValueFromBinding=function(X){this.value=X.detail.value};
cN.prototype.valueChangedForBinding=cN.prototype.valueChangedForBinding;cN.prototype.valueChanged=cN.prototype.valueChanged;cN.prototype.dataChanged=cN.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],cN.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],cN.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],cN.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],cN.prototype,"value",void 0);_.T([_.g(),_.N("design:type",Object)],cN.prototype,"label",void 0);_.T([_.A2("#entries"),_.N("design:type",Object)],cN.prototype,"entries",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],cN.prototype,"disabled",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cN.prototype,"dataChanged",null);
_.T([_.oi("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cN.prototype,"valueChanged",null);_.T([_.Yh("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cN.prototype,"valueChangedForBinding",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],cN);
_.O(cN,"ytd-flat-dropdown-renderer",function(){if(kOv!==void 0)return kOv;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return kOv=X},{mode:1});var DYt;var j6=function(){var X=_.a.apply(this,arguments)||this;X.quizOptions=[];X.explanationPlaceholderText="";X.optionPlaceholderText="";X.correctAnswerIndex=-1;X.isMarkAnswerTooltipShown=!1;X.timer=0;return X};
_.S(j6,_.a);_.R=j6.prototype;_.R.dataChanged=function(){this.optionPlaceholderText=_.D8(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.D8(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.R.onMarkCorrectAnswer=function(X){var H,l=((H=this.quizOptions[this.correctAnswerIndex])==null?void 0:H.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[X.model.index]=Object.assign({},this.quizOptions[X.model.index],{explanationText:l,isCorrect:!0});this.correctAnswerIndex=X.model.index;this.quizOptions=[].concat(_.LJ(this.quizOptions))};
_.R.updatePlaceholderTexts=function(){for(var X=!1,H=[],l=0;l<this.quizOptions.length;l++){var b=this.optionPlaceholderText+" "+(l+1),U=void 0;((U=this.quizOptions[l])==null?void 0:U.placeholderText)!==b?(X=!0,H.push(Object.assign({},this.quizOptions[l],{placeholderText:b}))):H.push(this.quizOptions[l])}X&&(this.quizOptions=H);this.isValid()?_.QX(this.hostElement,"yt-commentbox-post-enable"):_.QX(this.hostElement,"yt-commentbox-post-disable")};
_.R.getSimpleString=function(X){return _.D8(X)};
_.R.createQuizOptions=function(X){var H=[],l;X=(l=X==null?void 0:X.minQuizOptions)!=null?l:0;for(l=0;l<X;l++)H.push(this.createQuizOption());return H};
_.R.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.LJ(this.quizOptions),[this.createQuizOption()]))};
_.R.onInput=function(){this.quizOptions=[].concat(_.LJ(this.quizOptions))};
_.R.onExplanationInput=function(){_.QX(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.R.onRemoveQuizOption=function(X){this.quizOptions.splice(X.model.index,1);X.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:X.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.LJ(this.quizOptions));this.quizOptions.length===0&&_.QX(this.hostElement,"yt-quiz-attachment-dismiss")};
_.R.updateHintRenderer=function(){var X=this;clearTimeout(this.timer);this.timer=setTimeout(function(){X.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.R.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var X=0,H=0,l=_.C(this.quizOptions),b=l.next();!b.done;b=l.next()){b=b.value;var U=void 0;if(((U=b.optionText)==null?void 0:U.trim())!==""||b.isCorrect){b.isCorrect&&H++;U=void 0;if(this.hasCustomOptionText&&((U=b.optionText)==null?void 0:U.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;X++}}return X>=
Number(this.editorInfo.minQuizOptions)&&H===1};
_.R.getPostCreateOptions=function(){for(var X=[],H=_.C(this.quizOptions),l=H.next();!l.done;l=H.next()){l=l.value;var b=void 0;((b=l.optionText)==null?void 0:b.trim())!==""&&X.push({pollOption:{text:l.optionText,explanation:l.explanationText},isCorrect:l.isCorrect})}return X};
_.R.getExplanationText=function(){var X;return((X=this.quizOptions[this.correctAnswerIndex])==null?void 0:X.explanationText)||""};
_.R.maybeDisplayMarkAnswerEduToolTip=function(){var X,H,l,b,U,K,w;this.shouldShowMarkAnswerTooltip()&&((X=this.editorInfo)==null?0:(H=X.markAnswerButton)==null?0:(l=H.buttonRenderer)==null?0:(b=l.hint)==null?0:(U=b.hintRenderer)==null?0:(K=U.content)==null?0:(w=K.bubbleHintRenderer)==null?0:w.text)&&(_.cW.getInstance(),X=j3(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,(X==null?void 0:X.length)>0&&this.optionSelectors&&_.Lc(X[0],this.optionSelectors[0]))};
_.R.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var X=0,H=_.C(this.quizOptions),l=H.next();!l.done;l=H.next()){l=l.value;var b=void 0;((b=l.optionText)==null?void 0:b.trim())!==""&&X++;if(l.isCorrect)return!1}return X<2?!1:!0};
_.R.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.R.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.R.updateOptionTextFromBinding=function(X){if(X.target){var H=Array.from(_.mh(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(X.target);if(H>=0){var l;this.quizOptions[H].optionText=(l=X.detail.value)!=null?l:""}}};
_.ja.Object.defineProperties(j6.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(X=this.editorInfo)==null?void 0:(H=X.addOptionButton)==null?void 0:H.buttonRenderer;l&&(l.style="STYLE_SUGGESTIVE",l.size="SIZE_SMALL",l.isDisabled=!this.isAllowedToAddOption);return(l==null?0:l.text)?l:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var X,H;return this.quizOptions.length<((H=(X=this.editorInfo)==null?void 0:X.maxQuizOptions)!=null?H:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(X){var H;return(H=X.optionText)==null?void 0:H.trim()})}}});
j6.prototype.updatePlaceholderTexts=j6.prototype.updatePlaceholderTexts;j6.prototype.dataChanged=j6.prototype.dataChanged;_.T([_.g(),_.N("design:type",Object)],j6.prototype,"editorInfo",void 0);_.T([_.g(),_.N("design:type",Array)],j6.prototype,"quizOptions",void 0);_.T([_.g(),_.N("design:type",Object)],j6.prototype,"explanationPlaceholderText",void 0);_.T([_.Xh(".option-selector-button"),_.N("design:type",Array)],j6.prototype,"optionSelectors",void 0);
_.T([_.oi("editorInfo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j6.prototype,"dataChanged",null);_.T([_.x("editorInfo","isAllowedToAddOption","quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],j6.prototype,"addAnswerButton",null);_.T([_.x("editorInfo","quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],j6.prototype,"isAllowedToAddOption",null);
_.T([_.oi("quizOptions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j6.prototype,"updatePlaceholderTexts",null);_.T([_.x("quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],j6.prototype,"hasCustomOptionText",null);_.T([_.sq({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],j6);
_.O(j6,"ytd-backstage-quiz-editor-renderer",function(){if(DYt!==void 0)return DYt;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return DYt=X},{mode:2});var tQQ;var W7q=(Is.FIRSTDAYOFWEEK+1)%7;var EfG;var gfz=[],GOY=0,af_=0;GOY=0;af_=24;if(.25*(af_-GOY)<0)EfG=[];else{for(var ZwY=GOY;ZwY<af_;ZwY+=.25)gfz.push(ZwY);EfG=gfz}var iwD=EfG.map(function(X){X=X*60*60;return{secondsSinceMidnight:X,text:(new kM(7)).format(new Date(0,0,0,0,0,X))}});var vf_;var ry=function(){var X=_.a.apply(this,arguments)||this;X.skipNextOpenDialog=!1;X.errorMessage="";X.previousMonthLabel=_.XS("PREVIOUS_MONTH_LABEL");X.nextMonthLabel=_.XS("NEXT_MONTH_LABEL");return X};
_.S(ry,_.a);_.R=ry.prototype;_.R.attached=function(){var X=this,H=new MutationObserver(function(){X.JSC$16180_calendarMain.scrollHeight>0&&(H.disconnect(),X.calendarConfig&&X.calendarConfig.selectedDate&&X.scrollToDate())});
H.observe(this.JSC$16180_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){H.disconnect()},1E3)};
_.R.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.R.onDateTextChange=function(){if(this.calendarConfig){var X=this.validateDateText();X.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(X.details)):this.textbox.setAttribute("invalid","")}};
_.R.handleDayClick=function(X){X.model.day.date&&(this.commitDate(X.model.day.date),this.dialog.close())};
_.R.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var X=zjL(this.calendarConfig.selectedDate,this.renderData);X!==void 0&&this.JSC$16180_calendarMain.scrollToIndex(X)}};
_.R.scrollToNextMonth=function(){this.JSC$16180_calendarMain.scrollToIndex(this.JSC$16180_calendarMain.firstVisibleIndex+1)};
_.R.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)};
_.R.onFormSubmit=function(X){X.preventDefault();this.calendarConfig&&(X=this.validateDateText(),X.isValid&&(this.commitDate(X.details),this.dialog.close()))};
_.R.onEscOrClickingOutside=function(X){X=X.detail.path&&!!X.detail.path.length&&X.detail.path[0];if(X.classList.contains("ytd-calendar-date-picker")){X===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var H=0;H<this.dropdownButton.children.length;H++)this.dropdownButton.children[H]===X&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}X=this.textbox.value!==this.dateText;H=this.validateDateText();X&&H.isValid&&this.commitDate(H.details);this.dialog.close();this.textbox.value=
this.dateText};
_.R.commitDate=function(X){this.calendarConfig&&(this.set("calendarConfig.selectedDate",X),_.QX(this.hostElement,"ytd-calendar-date-selected",X))};
_.R.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var X=this.textbox.value;var H=new Date;X=(new cch(2)).parse(X,H,{validate:!0})===X.length?pwk(H):void 0;if(!X)return this.errorMessage=_.XS("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};H=this.calendarConfig.start;var l=this.calendarConfig.end;if(ejy(X,H))return this.errorMessage=_.XS("ENTER_DATE_OR_LATER",{allowed_date:fnZ(H)}),{isValid:!1,details:void 0};if(ejy(l,X))return this.errorMessage=
_.XS("ENTER_DATE_OR_EARLIER",{allowed_date:fnZ(l)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:X}};
_.ja.Object.defineProperties(ry.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?fnZ(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var X=this.calendarConfig,H=[],l=0;l<7;l++)H.push(Is.NARROWWEEKDAYS[(l+W7q)%7]);l=[];for(var b=new Date(X.start.year,X.start.month);b.getFullYear()<X.end.year||b.getFullYear()===X.end.year&&b.getMonth()<=X.end.month;){var U=l,K=U.push,w=b.getFullYear(),d=b.getMonth(),B=X,q=void 0,u=[],e=Object.freeze({extraCssClass:"invisible",debugClass:""}),y=new Date(w,d),V=pwk(y);y=y.getDay();for(var p=pwk(new Date);V.month===
d;){y!==W7q&&q||(q=Array.from({length:7}).fill(e),u.push(q));var z={date:{year:w,month:d,day:V.day},extraCssClass:"",debugClass:""};B.selectedDate&&z.date&&uDb(z.date,B.selectedDate)&&(z.extraCssClass+=" selected");if(ejy(V,B.start)||ejy(B.end,V))z.extraCssClass+=" disabled";uDb(V,p)&&(z.extraCssClass+=" today");z.extraCssClass=z.extraCssClass.trim();q[(y-W7q+7)%7]=z;V=Vky(V);y=(y+1)%7}K.call(U,{weeks:u,monthLabel:Is.SHORTMONTHS[d]+" "+w,year:w,month:d,monthLabelExtraCssClass:u[0][2]===e?"shift-down-label":
""});b.setMonth(b.getMonth()+1)}return{months:l,daysOfWeekLabel:H}}}}});
ry.prototype.onEscOrClickingOutside=ry.prototype.onEscOrClickingOutside;ry.prototype.scrollToDate=ry.prototype.scrollToDate;_.T([_.g(),_.N("design:type",Object)],ry.prototype,"calendarConfig",void 0);_.T([_.g(),_.N("design:type",Object)],ry.prototype,"skipNextOpenDialog",void 0);_.T([_.g(),_.N("design:type",Object)],ry.prototype,"errorMessage",void 0);_.T([_.g(),_.N("design:type",Object)],ry.prototype,"previousMonthLabel",void 0);
_.T([_.g(),_.N("design:type",Object)],ry.prototype,"nextMonthLabel",void 0);_.T([_.A2("#textbox"),_.N("design:type",HTMLInputElement)],ry.prototype,"textbox",void 0);_.T([_.A2("#calendar-dialog"),_.N("design:type",Object)],ry.prototype,"dialog",void 0);_.T([_.A2("#calendar-main"),_.N("design:type",Object)],ry.prototype,"JSC$16180_calendarMain",void 0);_.T([_.A2("#date-picker"),_.N("design:type",HTMLElement)],ry.prototype,"dropdownButton",void 0);
_.T([_.x("calendarConfig.selectedDate"),_.N("design:type",String),_.N("design:paramtypes",[])],ry.prototype,"dateText",null);_.T([_.x("calendarConfig","calendarConfig.selectedDate"),_.N("design:type",Object),_.N("design:paramtypes",[])],ry.prototype,"renderData",null);_.T([_.Yh("renderData","calendarConfig.selectedDate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ry.prototype,"scrollToDate",null);
_.T([_.Le("iron-overlay-canceled"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],ry.prototype,"onEscOrClickingOutside",null);_.T([_.qR({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],ry);
_.O(ry,"ytd-calendar-date-picker",function(){if(vf_!==void 0)return vf_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vf_=X},{mode:2});var Owt=_.XS("UTC_OFFSET_FORMAT",{utc_offset:(new kM("Z")).format(new Date)}),mYG=(new Date).getTimezoneOffset()*-60,QTH=new Date,T4Q,N4H=nT(QTH.getTimezoneOffset());T4Q=SmC(nj6(N4H,QTH));var ctz=_.XS("LOCAL_TIME_GMT_LABEL",{gmt_text:T4Q.replace("+0","+").replace("-0","-").replace(":00","")}),Jg=function(){var X=_.a.apply(this,arguments)||this;X.selectedTimeIndex=0;X.selectedTimezoneIndex=0;X.timeOfDayOptions=iwD;return X};
_.S(Jg,_.a);_.R=Jg.prototype;_.R.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var X=Pab();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=X,this.selectedTimeIndex=0;else{var H=S5N(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},X,{selectedDate:H.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(l){return l.secondsSinceMidnight===H.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.R.onDatePicked=function(X){this.selectedDate=X.detail};
_.R.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.QX(this.hostElement,"ytd-date-time-selection-cancelled")};
_.R.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var X=this.selectedDate;X=new Date(X.year,X.month,X.day);_.QX(this.hostElement,"ytd-date-time-selection-update",Math.floor(X.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+X.getTimezoneOffset()*60))}};
_.R.getTimezoneFormat=function(X){return X.localizedDisplayText?X.localizedDisplayText:_.XS("TIMEZONE_FORMAT",{utc_offset_text:""+X.localizedUtcOffset,city_name:""+X.localizedName})};
_.R.updateSelectedTimeIndexFromBinding=function(X){this.selectedTimeIndex=X.detail.value};
_.R.updateSelectedTimezoneIndexFromBinding=function(X){this.selectedTimezoneIndex=X.detail.value};
_.ja.Object.defineProperties(Jg.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var X=this.data.timezoneOptions;var H={name:"Etc/Unknown",localizedName:_.XS("LOCAL_TIME_LABEL"),localizedUtcOffset:Owt,utcOffsetSec:""+mYG,localizedDisplayText:ctz};X?X.length&&X[0].name!==H.name&&(X[0].localizedDisplayText||(H.localizedDisplayText=""),X.unshift(H)):X=[H];return X}}},
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]}}});
Jg.prototype.onDateTimeTimezoneChange=Jg.prototype.onDateTimeTimezoneChange;Jg.prototype.onDatePicked=Jg.prototype.onDatePicked;Jg.prototype.updateDefaultSelectedValue=Jg.prototype.updateDefaultSelectedValue;_.T([_.g(),_.N("design:type",Object)],Jg.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Jg.prototype,"calendarConfig",void 0);_.T([_.g(),_.N("design:type",Object)],Jg.prototype,"selectedDate",void 0);_.T([_.g(),_.N("design:type",Object)],Jg.prototype,"selectedTimeIndex",void 0);
_.T([_.g(),_.N("design:type",Object)],Jg.prototype,"selectedTimezoneIndex",void 0);_.T([_.A2("#time-listbox"),_.N("design:type",Object)],Jg.prototype,"timeListBox",void 0);_.T([_.A2("#timezone-listbox"),_.N("design:type",Object)],Jg.prototype,"timezoneListBox",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Jg.prototype,"rendererStamperBehavior",void 0);_.T([_.x("data.timezoneOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jg.prototype,"timeZones",null);
_.T([_.oi("data","timeZones"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jg.prototype,"updateDefaultSelectedValue",null);_.T([_.x("selectedTimezoneIndex","timeZones"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jg.prototype,"selectedTimezone",null);_.T([_.x("selectedTimeIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jg.prototype,"selectedTime",null);
_.T([_.Le("ytd-calendar-date-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Jg.prototype,"onDatePicked",null);_.T([_.Yh("selectedTimezone","selectedTime","selectedDate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jg.prototype,"onDateTimeTimezoneChange",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Jg);
_.O(Jg,"ytd-date-time-picker-renderer",function(){if(tQQ!==void 0)return tQQ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return tQQ=X},{mode:1});var jTD;var LH=function(){var X=_.a.apply(this,arguments)||this;X.boundOnTapDismissButton=function(){X.dismissTapHandler()};
X.dismissButtonOverrides={size:"XS"};return X};
_.S(LH,_.a);LH.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}}}}}};
LH.prototype.dismissTapHandler=function(){_.QX(this.hostElement,"yt-backstage-attachment-dismissed")};
LH.prototype.computeAttachmentType=function(X){return X?X.backstageImageRenderer?"image":X.videoRenderer?"video":"none":"none"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],LH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],LH.prototype,"attachmentPreview",void 0);_.T([_.g(),_.N("design:type",Object)],LH.prototype,"dismissButton",void 0);_.T([_.g(),_.N("design:type",Object)],LH.prototype,"boundOnTapDismissButton",void 0);
_.T([_.g(),_.N("design:type",Object)],LH.prototype,"dismissButtonOverrides",void 0);_.T([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.N("design:type",String)],LH.prototype,"attachmentType",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],LH);
_.O(LH,"ytd-backstage-dismissable-attachment",function(){if(jTD!==void 0)return jTD;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return jTD=X},{mode:1});var rtq;var Yt=function(){var X=_.a.apply(this,arguments)||this;X.selectedVideoId=void 0;X.picker=void 0;X.dismissButtonOverrides={size:"XS"};X.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return X};
_.S(Yt,_.a);_.R=Yt.prototype;_.R.onServiceRequestCompleted=function(X){X.stopPropagation()};
_.R.handleAddVideoPreviewAction=function(X){X=this.get("addVideoPreviewAction",X);this.onGetVideoPreviewSuccess(X)};
_.R.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}}}}}};
_.R.onLaunchVideoPicker=function(X){var H=this,l=_.D8(this.get("addVideoLinkAction.title",X)),b=this.get("addVideoLinkAction.onePickHostId",X);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",X);b&&(this.picker||(l=_.chQ(_.bHy(b).setTitle(l).addView(m0C()).addView(OiF()),function(U){H.onPickVideo(U)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",X)||l.addView("youtube"),this.picker=l.build()),this.picker.setVisible(!0))};
_.R.onPickVideo=function(X){if(X)if(X.action==="cancel")_.QX(this.hostElement,"yt-video-link-button-cancel");else if(X.action==="picked"){X=X.docs;if(!X||X.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(X=(X==null?0:X.length)?X[0]:void 0)?X.id:void 0;this.setVideoPreview()}};
_.R.setVideoPreview=function(){var X=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){X.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.R.onGetVideoPreviewSuccess=function(X){if(X&&X.videoPreview&&X.cancelButton)this.videoPreview=X.videoPreview,this.cancelButton=X.cancelButton,_.QX(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.R.onGetVideoPreviewError=function(){this.cancel()};
_.R.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.QX(this.hostElement,"yt-video-link-cancel")};
_.R.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Yt.prototype.onServiceRequestCompleted=Yt.prototype.onServiceRequestCompleted;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Yt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Yt.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Yt.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Yt.prototype,"videoPreview",void 0);_.T([_.g(),_.N("design:type",Object)],Yt.prototype,"cancelButton",void 0);_.T([_.g(),_.N("design:type",Object)],Yt.prototype,"getVideoPreviewCommand",void 0);_.T([_.g(),_.N("design:type",Object)],Yt.prototype,"dismissButtonOverrides",void 0);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Yt.prototype,"onServiceRequestCompleted",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Yt);
_.O(Yt,"ytd-backstage-video-link-attachment",function(){if(rtq!==void 0)return rtq;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return rtq=X},{mode:1});var Jt9;var L7Q;var YuH;var IY=function(){return _.a.apply(this,arguments)||this};
_.S(IY,_.a);IY.prototype.dataChanged=function(){this.active=!1};
IY.prototype.onTap=function(){_.QX(this.hostElement,"yt-select-emoji-suggestion",this.data)};
IY.prototype.identity=function(X){return X};
_.ja.Object.defineProperties(IY.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b;if((X=this.data)==null?0:(H=X.image)==null?0:(l=H.thumbnails)==null?0:(b=l[0])==null?0:b.url)return X=this.data.image.thumbnails[0].url,X.startsWith("data:image/svg+xml")?Na(X):_.Yn(X)}}});
IY.prototype.dataChanged=IY.prototype.dataChanged;_.T([_.g(),_.N("design:type",Object)],IY.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],IY.prototype,"active",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IY.prototype,"dataChanged",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],IY.prototype,"imageSrc",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],IY);
_.O(IY,"ytd-emoji-suggestion",function(){if(YuH!==void 0)return YuH;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return YuH=X},{mode:1});var Ifq=/.*([:@#].*?)$/,Ag=function(){var X=_.a.apply(this,arguments)||this;X.suggestions=[];X.suggestionIndex=-1;X.JSC$16208_lastSuggestionRange=null;return X};
_.S(Ag,_.a);_.R=Ag.prototype;_.R.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.R.getSuggestions=function(X){var H=[],l=PqH(this.emojiManager,X.substr(0,3));if(l)for(var b in l)if(b.toLocaleLowerCase().indexOf(X)===0){var U=l[b];if(U&&U.emojiId){U=fL(this.emojiManager,U.emojiId);var K=void 0,w=void 0,d=void 0,B=void 0,q=((K=U)==null?0:K.isCustomEmoji)?(w=U)==null?void 0:(d=w.shortcuts)==null?void 0:d[0]:(B=U)==null?void 0:B.emojiId;K=void 0;H.push({suggestion:{image:(K=U)==null?void 0:K.image,alt:q,text:b}});if(H.length>=64)break}}return H?H.sort(function(u,e){return e.suggestion.text<
u.suggestion.text?-1:e.suggestion.text===u.suggestion.text?0:1}):null};
_.R.insertSuggestion=function(X){_.QX(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16208_lastSuggestionRange,text:X.alt});this.dropdown.opened=!1};
_.R.updateSuggestionsAtCaret=function(X){this.updateSuggestions(X,this.retrieveTextBeforeRange(X))};
_.R.offsetStartOfRangeBy=function(X,H){X.startOffset>=H&&X.setStart(X.startContainer,X.startOffset-H)};
_.R.updateSuggestions=function(X,H){var l=this;this.JSC$16208_lastSuggestionRange&&(this.JSC$16208_lastSuggestionRange.detach(),this.JSC$16208_lastSuggestionRange=null);if((H=Ifq.exec(H))&&H.length&&(H=H[H.length-1].toLocaleLowerCase(),H.length>2||H===":_")&&(this.offsetStartOfRangeBy(X,H.length),this.JSC$16208_lastSuggestionRange=X,(X=this.getSuggestions(H))&&X.length)){this.suggestions=X;_.N0(this,function(){l.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(X.length-1);return}this.dropdown.opened=!1};
_.R.onKeyDown=function(X){if(this.dropdown.opened)switch(X.key){case "Escape":this.dropdown.opened=!1;X.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);X.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);X.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),X.preventDefault()}};
_.R.onKeyUp=function(X,H){switch(X.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(H);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(H)}};
_.R.onKeyPress=function(X){X.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),X.preventDefault())};
_.R.changeSuggestionIndex=function(X){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(X+this.suggestions.length)%this.suggestions.length,X=this.dropdownContent.children[this.suggestionIndex],X.active=!0,this.dropdownContent.scrollTop=X.offsetTop)};
_.R.retrieveTextBeforeRange=function(X){var H=X.startContainer;return H&&H.nodeType===Node.TEXT_NODE?H.textContent.substr(0,X.startOffset):""};
Ag.prototype.onKeyPress=Ag.prototype.onKeyPress;Ag.prototype.onKeyUp=Ag.prototype.onKeyUp;Ag.prototype.onKeyDown=Ag.prototype.onKeyDown;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ag.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Array)],Ag.prototype,"suggestions",void 0);_.T([_.g(),_.N("design:type",_.VK)],Ag.prototype,"emojiManager",void 0);_.T([_.g(),_.N("design:type",Number)],Ag.prototype,"verticalSuggestionsOffset",void 0);
_.T([_.A2("#dropdown"),_.N("design:type",Object)],Ag.prototype,"dropdown",void 0);_.T([_.A2("#dropdown-content"),_.N("design:type",HTMLDivElement)],Ag.prototype,"dropdownContent",void 0);_.T([_.Le("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],Ag.prototype,"onKeyDown",null);_.T([_.Le("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent,Range]),_.N("design:returntype")],Ag.prototype,"onKeyUp",null);
_.T([_.Le("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],Ag.prototype,"onKeyPress",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-emoji-input"})],Ag);
_.O(Ag,"ytd-emoji-input",function(){if(L7Q!==void 0)return L7Q;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return L7Q=X},{mode:2});var AtC;var Xp=function(){var X=_.a.apply(this,arguments)||this;X.hasMaxOptions=!1;return X};
_.S(Xp,_.a);_.R=Xp.prototype;_.R.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.R.setPrefilledChoices=function(X){var H=this;this.set("pollOptions",[]);var l;for(l=0;l<Math.min(X.length,this.data.maxPollOptions);l++)this.push("pollOptions",X[l].substring(0,this.data.maxPollOptionChars));for(;l<this.data.minPollOptions;l++)this.push("pollOptions","");this.hasMaxOptions=l>=this.data.maxPollOptions;_.N0(this,function(){for(var b=H.pollOptions,U=_.mh(H.hostElement).querySelectorAll(".poll-option-input"),K=0;K<U.length;K++)U[K].value=b[K]})};
_.R.focusChanged=function(){_.j4(this.hostElement)};
_.R.onInput=function(){var X=this;_.pc(this,"onInput",function(){X.isValid()?_.QX(X.hostElement,"yt-commentbox-post-enable"):_.QX(X.hostElement,"yt-commentbox-post-disable")},300)};
_.R.setPollOptions=function(){var X=[],H,l=((H=this.data)==null?0:H.minPollOptions)?this.data.minPollOptions:0;for(H=0;H<l;H++)X.push("");return X};
_.R.addPollOption=function(){var X=this;_.QX(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Ss.addLowPriorityJob(function(){var H;(H=_.mh(X.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||H.focus()})};
_.R.onRemovePollOption=function(X){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.QX(this.hostElement,"yt-poll-attachment-dismiss")):(X=this.repeat.indexForElement(X.target.parentNode),X!==null&&(this.splice("pollOptions",X,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.QX(this.hostElement,"yt-commentbox-post-enable"))))};
_.R.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.R.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var X=0,H=this.pollOptions.length;X<H;X++)if(this.pollOptions[X].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.R.getPollOptions=function(){return this.pollOptions};
_.R.setPollOptionsFromInputs=function(){for(var X=_.mh(this.hostElement).querySelectorAll(".poll-option-input"),H=0;H<X.length;H++)this.pollOptions[H]=X[H].value.trim()};
_.R.clearPollOptions=function(){var X=_.mh(this.hostElement).querySelectorAll(".poll-option-input");X=_.C(X);for(var H=X.next();!H.done;H=X.next())H.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.R.getSimpleString=function(X){return _.D8(X)};
_.R.updateValueFromBinding=function(X){if(X.target&&this.pollOptions){var H=Array.from(_.mh(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(X.target);if(H>=0){var l;this.pollOptions[H]=(l=X.detail.value)!=null?l:"";this.notifyPath("pollOptions."+H)}}};
Xp.prototype.dataChanged=Xp.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Xp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Xp.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Array)],Xp.prototype,"pollOptions",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Xp.prototype,"hasMaxOptions",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xp.prototype,"enableCreationBox",void 0);
_.T([_.A2("#repeat"),_.N("design:type",dT)],Xp.prototype,"repeat",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xp.prototype,"dataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Xp);
_.O(Xp,"ytd-poll-attachment",function(){if(AtC!==void 0)return AtC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return AtC=X},{mode:2});var XV6;var H1_;var l49;var odz;var Hn=function(){return _.a.apply(this,arguments)||this};
_.S(Hn,_.a);_.ja.Object.defineProperties(Hn.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Hn.prototype,"rendererBehaviors",void 0);_.T([_.g(),_.N("design:type",Object)],Hn.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Hn.prototype,"focused",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("focused"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hn.prototype,"ariaSelected",null);_.T([_.qR({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Hn);
_.O(Hn,"yt-user-mention-suggestion-renderer",function(){if(odz===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;l49===void 0&&(l49=document.createElement("template"));var b=l49;l.call(H,b.content.cloneNode(!0),X.content.firstChild);odz=X}X=odz;return X},{mode:2});var b1Y;var UTG;var lV=function(){var X=_.a.apply(this,arguments)||this;X.focusedSuggestionIndex=-1;return X};
_.S(lV,_.a);_.R=lV.prototype;_.R.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.R.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.R.setFocusedSuggestionIndex=function(X){!this.data||!this.data.suggestions||X<0||X>=this.data.suggestions.length||(this.focusedSuggestionIndex=X,X=this.getSuggestionId(X),this._setFocusedSuggestionId(X))};
_.R.advanceSuggestion=function(X){this.focusedSuggestionIndex===-1||X!==-1&&X!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+X),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.R.ensureSuggestionVisible=function(X){X=this.getSuggestionId(X);X=_.mh(this.hostElement).querySelector("[id="+X+"]");X!=null&&(X.offsetTop<this.hostElement.scrollTop?X.scrollIntoView(!0):X.offsetTop+X.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&X.scrollIntoView(!1))};
_.R.getSuggestionId=function(X){return"user-mention-suggestion-"+X};
_.R.onSuggestionTap=function(X){var H=_.f(X.model.item,kCF);this.ytRendererBehavior.logExplicitClick(H);_.QX(this.hostElement,"yt-user-mention-suggestion-selected",{data:H,index:X.model.index})};
_.R.onSuggestionMouseMove=function(X){X.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(X.model.index)};
_.R.isSuggestionFocused=function(X,H){return X===H};
_.R.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.R.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("focused-suggestion-id-changed",this.focusedSuggestionId))};
lV.prototype.focusedSuggestionIdChangedForBinding=lV.prototype.focusedSuggestionIdChangedForBinding;lV.prototype.onDomChange=lV.prototype.onDomChange;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],lV.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],lV.prototype,"focusedSuggestionIndex",void 0);_.T([_.g({readOnly:!0}),_.N("design:type",String)],lV.prototype,"focusedSuggestionId",void 0);
_.T([_.Le("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],lV.prototype,"onDomChange",null);_.T([_.Yh("focusedSuggestionId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lV.prototype,"focusedSuggestionIdChangedForBinding",null);_.T([_.qR({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],lV);
_.O(lV,"yt-user-mention-suggestions-dropdown",function(){if(UTG===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;b1Y===void 0&&(b1Y=document.createElement("template"));var b=b1Y;l.call(H,b.content.cloneNode(!0),X.content.firstChild);UTG=X}X=UTG;return X},{mode:2});var og=function(){var X=_.a.apply(this,arguments)||this;X.suggestionsResponse=null;X.activeMention=null;X.selectionChangeListener=X.onSelectionChange.bind(X);X.handlesEnabled=_.P("enable_handles_in_mention_suggest_posts");X.handlesInMentionSuggestionsEnabled=_.P("handles_in_mention_suggest_posts");X.zeroPrefixMentionSuggestionEnabled=_.P("enable_zero_prefix_mention_suggestion_web");X.pendingQuery=null;X.flowNonce=null;return X};
_.S(og,_.a);_.R=og.prototype;_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.R.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.R.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.R.hasSuggestions=function(X){return!!(X&&X.suggestions&&X.suggestions.length>0)};
_.R.onInput=function(){var X=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var H=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),l=this.activeMention.JSC$11664_getText().slice(-1)===" ",b=this.activeMention.JSC$11664_getText().slice(-2,-1)===" ",U="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11664_getText().slice(-2,
-1))>=0;U=this.zeroPrefixMentionSuggestionEnabled&&U;if(this.activeMention.isCollapsed()||(H||b||U)&&l)this.cancelActiveMention();else{var K=this.activeMention.JSC$11664_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.pc(this,"requestSuggestions",function(){X.requestSuggestions(K)},100)}}}};
_.R.onServiceRequestSent=function(X){X.stopPropagation()};
_.R.onServiceRequestCompleted=function(X){X.stopPropagation();X=X.detail.data;X.query&&(!this.pendingQuery||this.pendingQuery!==X.query)||!this.zeroPrefixMentionSuggestionEnabled&&X.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=X,this.hasSuggestions(X)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.R.onServiceRequestError=function(X){X.stopPropagation()};
_.R.onUserMentionSuggestionSelected=function(X){this.selectSuggestion(X.detail.data,X.detail.index)};
_.R.onSelectionChange=function(){if(this.activeMention){var X=_.lg(),H=this.activeMention.JSC$11664_containsRange(X);X=X&&this.containsHelper(this.dropdown,X.getContainer());H||X||this.cancelActiveMention()}};
_.R.containsHelper=function(X,H){var l;if(((l=window.ShadyDOM)==null?void 0:l.noPatch)===!0)return X.contains(H);for(;H;){if(H===X)return!0;H=H instanceof ShadowRoot?H.host:H.parentNode}return!1};
_.R.maybeStartSuggest=function(){var X=_.lg();if(X&&X.isCollapsed()){var H=X.JSC$11664_getStartNode(),l=X.JSC$11664_getStartOffset();if(H instanceof Text&&!(l<1)){var b=H.textContent;!(b=b&&b.charAt(l-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(b)<0||(this.activeMention=_.$E(H,l-1,X.JSC$11664_getEndNode(),X.JSC$11664_getEndOffset()),this.flowNonce=dZ(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.R.updateActiveMention=function(){if(this.activeMention){var X=_.lg();X&&X.isCollapsed()&&(this.activeMention=_.$E(this.activeMention.JSC$11664_getStartNode(),this.activeMention.JSC$11664_getStartOffset(),X.JSC$11664_getEndNode(),X.JSC$11664_getEndOffset()))}};
_.R.requestSuggestions=function(X){if(this.activeMention){var H={suggestions_query:X};this.pendingQuery=X;_.ci(this.hostElement,[this.suggestionsEndpoint,H])}};
_.R.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()};
_.R.focusPreviousSuggestion=function(X){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),X.preventDefault())};
_.R.focusNextSuggestion=function(X){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),X.preventDefault())};
_.R.selectFocusedSuggestion=function(X){if(this.hasSuggestions(this.suggestionsResponse)){var H=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.f(H,kCF)&&(this.selectSuggestion(_.f(H,kCF),this.dropdown.focusedSuggestionIndex),X.preventDefault())}};
_.R.selectSuggestion=function(X,H){if(X){var l=this.activeMention;if(l){var b=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&X.handle?_.nx(b,"\u00a0\u2068@"+X.handle+"\u2069\u00a0"):this.handlesEnabled?_.nx(b,"\u00a0"+X.displayName+"\u00a0"):_.nx(b,"\u00a0@"+X.displayName+"\u00a0");HJ(b,"/channel/"+X.channelId);b.classList.add("yt-formatted-string","yt-simple-endpoint");b.setAttribute("spellcheck","false");l.isCollapsed()||l.JSC$11664_removeContents();l.insertNode(b,!0);X=document.createTextNode(" ");
b.parentNode.insertBefore(X,b.nextSibling);window.getSelection().collapse(X,1);H={suggestionSelected:{suggestionIndex:H}};if(this.zeroPrefixMentionSuggestionEnabled){var U;H.suggestionSelected.isZeroPrefix=((U=this.suggestionsResponse)==null?void 0:U.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",H);this.cancelActiveMention();_.QX(this.hostElement,"yt-mention-inserted")}}};
_.R.getPositionTarget=function(X){return X&&X.getBrowserRangeObject()};
_.R.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.R.onFocusedSuggestionIdChanged=function(X){var H=_.hFZ(this.hostElement)[0];H&&(X.detail.value?H.setAttribute("aria-activedescendant",X.detail.value):H.removeAttribute("aria-activedescendant"))};
_.R.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.R.logGELEvent=function(X,H){X={eventType:X,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};H&&(X=Object.assign(X,H));_.Sh("userMentionAutoCompleteBoxEvent",X)};
og.prototype.onDomChange=og.prototype.onDomChange;og.prototype.onUserMentionSuggestionSelected=og.prototype.onUserMentionSuggestionSelected;og.prototype.onServiceRequestError=og.prototype.onServiceRequestError;og.prototype.onServiceRequestCompleted=og.prototype.onServiceRequestCompleted;og.prototype.onServiceRequestSent=og.prototype.onServiceRequestSent;og.prototype.onInput=og.prototype.onInput;_.T([_.k(_.Yw),_.N("design:type",Object)],og.prototype,"ironA11yKeysBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],og.prototype,"suggestionsEndpoint",void 0);_.T([_.g(),_.N("design:type",Object)],og.prototype,"suggestionsResponse",void 0);_.T([_.g(),_.N("design:type",Object)],og.prototype,"activeMention",void 0);_.T([_.A2("#dropdown"),_.N("design:type",Object)],og.prototype,"dropdown",void 0);_.T([_.A2("#iron-dropdown"),_.N("design:type",Object)],og.prototype,"ironDropdown",void 0);
_.T([_.Le("input"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],og.prototype,"onInput",null);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],og.prototype,"onServiceRequestSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],og.prototype,"onServiceRequestCompleted",null);
_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],og.prototype,"onServiceRequestError",null);_.T([_.Le("yt-user-mention-suggestion-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],og.prototype,"onUserMentionSuggestionSelected",null);
_.T([_.Le("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],og.prototype,"onDomChange",null);_.T([_.qR({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],og);
_.O(og,"yt-user-mention-autosuggest-input",function(){if(H1_===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;XV6===void 0&&(XV6=document.createElement("template"));var b=XV6;l.call(H,b.content.cloneNode(!0),X.content.firstChild);H1_=X}X=H1_;return X},{mode:2});var bV=null;
_.wT({is:"ytd-commentbox",_template:function(){if(Jt9!==void 0)return Jt9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Jt9=X},
behaviors:[_.TGO.YtHostElementBehavior,_.Yw,_.rh.YtActionHandlerBehavior,_.uJ.YtComponentBehavior,_.Gh.YtRendererstamperBehavior,_.OK_.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(X,H){return _.JY(X.entities,"aadcGuidelinesStateEntityPayload",H)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(X,H){return _.JY(X.entities,"commentboxStateEntity",H)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.pL}},
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:_.P("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.P("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",_.J2(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(X){this.fire(X?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(X){this.set("submitButtonDisabled",void 0);this.clear();X&&this.computeIsEmojiButtonDisplayed_(X)&&(X=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&X.updateEmojiCategories()},
observePrefilledImage_:function(X,H,l){this.isValidPrefilledImage_(X,H,l)&&(this.prefilledAttachment_="image",this.prefilledImageData_=H,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(X,H){this.isValidPrefilledVideo_(X,H)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(X){X&&X.pollData&&X.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(X.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.rb();this.focus()},
detached:function(){document.removeEventListener("tap",_.J2(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(X){X=X.detail;X=X.isCustomEmoji?X.shortcuts[0]:X.emojiId;var H=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(H,X);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var X=_.lg();if(X){X=X.getBrowserRangeObject();for(var H=X.commonAncestorContainer;H;){if(H===this.getEditableTextArea_())return X;H=H.parentNode}}X=this.getEditableTextArea_();X=_.Ue(X,X.childNodes.length);X.select();return X.getBrowserRangeObject()},
insertTextWithEmojis_:function(X,H,l){(H=this.emojiManager.createDocumentFragment(H,!0,!1,l===void 0?!0:l))&&H.childNodes.length!==0&&(X.collapsed||X.deleteContents(),l=H.lastChild,X.insertNode(H),_.YlG(l).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var X=_.lg();if(X){var H=X.JSC$11664_getStartNode(),l=X.JSC$11664_getEndNode();if(nzK(H)&&nzK(l)){var b=X.JSC$11664_getStartOffset(),U;if(_.Yi&&H.nodeType===Node.ELEMENT_NODE&&(U=_.mzY(H)))_.Ue(U,0).select();else{U=Nh(H)?H:_.yo(H,Nh);var K=Nh(l)?l:_.yo(l,Nh);if(U||K)if(X.isCollapsed()){if(H.nodeType===Node.TEXT_NODE){X=!0;b===H.length&&(X=!1);if(bV==="end"||bV==="right")X=!1;H=H.parentNode;X=[].concat(_.LJ(H.parentNode.childNodes)).indexOf(H)+(X?0:1);_.Ue(H.parentNode,
X).select()}}else U?U.previousSibling&&U.previousSibling.length>0?_.$E(l,X.JSC$11664_getEndOffset(),U.previousSibling,U.previousSibling.length-1).select():(H=document.createTextNode("\u200b"),U.parentNode.insertBefore(H,U),_.$E(l,X.JSC$11664_getEndOffset(),H,0).select()):K&&(K.nextSibling&&K.nextSibling.length>0?_.$E(H,X.JSC$11664_getStartOffset(),K.nextSibling,1).select():(l=document.createTextNode("\u200b"),K.parentNode.insertBefore(l,K.nextSibling),_.$E(H,X.JSC$11664_getStartOffset(),l,l.length).select()));
bV=null}}else bV=null}else bV=null},
leftKeyPressed_:function(){bV="left"},
rightKeyPressed_:function(){bV="right"},
endKeyPressed_:function(){bV="end"},
maybeDeleteChip_:function(){var X=Ezy(!0);if(X){var H=_.lg(),l=H.JSC$11664_getStartNode();H=H.JSC$11664_getStartOffset();_.bg(l,H,X,X.childNodes.length).select()}},
maybeBackspaceChip_:function(){var X=Ezy(!1);if(X){var H=_.lg(),l=H.JSC$11664_getStartNode();H=H.JSC$11664_getStartOffset();_.bg(l,H,X,0).select()}},
maybeBackspaceChipWordMode_:function(X){var H=_.lg();if(H.isCollapsed()){var l=H.JSC$11664_getStartNode();H=H.JSC$11664_getStartOffset();var b=gzz(l,H,!0);b&&(_.bg(l,H,b,0).select(),document.execCommand("delete"),X.preventDefault(),X.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(X){var H=_.lg();if(H.isCollapsed()){var l=H.JSC$11664_getStartNode();H=H.JSC$11664_getStartOffset();var b=gzz(l,H,!1);b&&(_.bg(l,H,b,b.childNodes.length).select(),document.execCommand("delete"),X.preventDefault(),X.stopImmediatePropagation())}},
onTap_:function(X){if(!X.defaultPrevented&&(X.currentTarget.tagName==="YTD-COMMENTBOX"&&Nh(X.target)&&X.preventDefault(),this.isEmojiPickerDisplayed)){var H=this.$$("#emojis"),l=this.$$("#emoji-button"),b=this.getEditableTextArea_();if((X=X.path?X.path:X.composedPath&&X.composedPath())&&!X.includes(H)&&!X.includes(b)&&!X.includes(l))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(X,H,l){return X==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&H!==void 0&&H.encryptedBlobId!==null&&H.sourceExternalVideoId!==null&&l!==void 0&&l.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(X,H){return X==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!H&&!!H.videoRenderer&&!!H.videoRenderer.videoId},
isValidPrefilledAttachment_:function(X,H,l){return this.isValidPrefilledImage_(X,H,l)||this.isValidPrefilledVideo_(X,l)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.P("enable_multi_image_post_creation")){var X=this.$$("ytd-backstage-multi-image-select-renderer");X&&X.hasImages()&&X.cancel()}else(X=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&X.cancel();(X=this.$["poll-attachment"])&&this.hasPoll_&&X.clearPollOptions();(X=this.$["image-poll-attachment"])&&this.hasImagePoll_&&X.resetPollOptions();(X=this.$["quiz-attachment"])&&this.hasQuiz_&&X.resetQuizOptions();
(X=this.$["video-link-attachment"])&&this.hasVideo_&&X.cancel();(X=this.$["access-restrictions-selector"].firstElementChild)&&X.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 _.mh(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.mh(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(X,H){X=xAy(X,this.emojiManager,H).cloneNode(!0);for(H=X.firstChild;H;)if(H.nodeType!==1)H=H.nextSibling;else switch(H.tagName){case "BR":var l=_.VT();_.LZY(l,H);H=l.nextSibling;break;case "DIV":(l=H.lastChild)&&H.nextSibling&&_.SH(_.VT(),l);H.previousSibling&&(H.previousSibling.nodeType===1||H.previousSibling.nodeType===3&&!H.previousSibling.textContent.endsWith("\n"))&&_.px(_.VT(),H);l&&l.nodeName==="BR"&&_.HE(l);l=H;H.hasChildNodes()?(H=H.firstChild,
_.Y_t(l)):(H=H.nextSibling,_.HE(l));break;default:H=H.nextSibling}return GzO(X)},
onAddImageError_:function(X){X.stopPropagation();this.errorMessage_=_.xM(X.detail)},
setTextAreaValue_:function(X){X||(X="");var H=this.getEditableFormattedString_();H.text="";this.getEditableTextArea_().innerText="";typeof X==="string"&&(X={runs:[{text:X}]});H.text=X},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();bV=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var X=this.getEditableTextArea_();X&&(_.Ue(X,X.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.gx("HTML_DIR")==="rtl"){var X=this.getEditableTextArea_(),H=this.getTextAreaValue()!==""?"auto":"rtl";X.setAttribute("dir",H)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var X;return IDO((X=this.$["quiz-attachment"])==null?void 0:X.getExplanationText())||IDO(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var X=null;if(this.isEmojiButtonDisplayed){var H=this.getInputRange_();H&&(X=this.emojiInput.retrieveTextBeforeRange(H))}this.insertText_(X,!0);this.updateCharCount_();this.setSubmitButton_();X=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=X.scrollHeight>X.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var X=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:X})},
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(X){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(X)},
onPasteEmoji_:function(X){X.preventDefault();X.stopImmediatePropagation();X=X.clipboardData.getData("text/plain");this.insertText_(X,!1,!1)},
insertText_:function(X,H,l){H=H===void 0?!1:H;l=l===void 0?!0:l;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&X){var b=this.getInputRange_().cloneRange();this.emojiManager&&b&&(H&&this.emojiInput.offsetStartOfRangeBy(b,X.length),this.insertTextWithEmojis_(b,X,l),kzy(this.getEditableTextArea_().lastChild)||(b=this.getInputRange_().cloneRange()),b&&(this.emojiInput.updateSuggestions(b,X),this.updateSuggestionOffset_(b)))}},
setSubmitButton_:function(){if(this.data){var X=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",H=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(X||H){var l=this.getTextAreaValue().trim();H=l===this.previousText_;l=!l||this.aboveCharLimit_;X&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(l=this.aboveCharLimit_);this.submitButtonDisabled=
H||l||!this.getTextLength();X&&_.P("enable_post_scheduling")&&(this.submitButtonDisabled=H&&!this.scheduledPublishTimeSec_||l)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.D8,computeCreationBoxClass_:function(X){return X?"focused":"not-focused"},
computeFooterMessageClass_:function(X,H){return H?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(X,H){return H?H:X},
computeFooterMessageHidden_:function(X,H){return!H&&!X},
computePlaceholderText_:function(X,H,l){return(l==="video"||l==="image")&&(X==null?0:X.prefilledPlaceholderText)?X==null?void 0:X.prefilledPlaceholderText:H==="poll"||H==="image-poll"?X==null?void 0:X.pollPostPlaceholderText:H==="quiz"?X==null?void 0:X.quizPostPlaceholderText:H==="image"?X==null?void 0:X.imagePostPlaceholderText:X==null?void 0:X.placeholderText},
computeHideAttachmentButtons_:function(X,H,l,b){return X===void 0?!1:b&&this.getSimpleString(b)===this.getSimpleString(X.rateLimitErrorMessage)?!0:H!=="none"||l!=="none"||!X.videoLinkButton&&!X.pollButton&&!X.imagePollButton&&!X.quizButton&&!X.imageButton},
computeHideDismissableAttachment_:function(X){return X!=="image"&&X!=="video"},
computeHasVideo_:function(X){return X==="video"},
computeHasImage_:function(X){return X==="image"},
computeHasPoll_:function(X){return X==="poll"},
computeHasImagePoll_:function(X){return X==="image-poll"},
computeHasQuiz_:function(X){return X==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(X){return X&&X.backstageAttachment?X.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!X.backstageAttachment.quizRenderer&&!X.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(X){if(this.isValidPrefilledAttachment_(X.purpose,X.prefilledImageData,X.backstageAttachment))return X.backstageAttachment},
computeEditAttachment_:function(X){if(this.computePrefilledContent_(X)===void 0)return X.backstageAttachment},
computeAuthorThumbnailDimension_:function(X,H){return X&&!H?24:40},
computeImageUploadEndpoint_:function(X){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",X)},
computeRateLimitErrorCommands_:function(X){var H,l;return X==null?void 0:(H=X.advancedTierFeatures)==null?void 0:(l=H.rateLimit)==null?void 0:l.rateLimitCommands},
computeIsBackstageComment_:function(X){return!(!X||X!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(X){return this.get("submitButton.buttonRenderer.serviceEndpoint",X)||this.get("replyButton.buttonRenderer.serviceEndpoint",X)||this.get("postButton.buttonRenderer.serviceEndpoint",X)},
computeSubmitButtonOverride:function(){if(_.P("web_modern_buttons")){var X,H;return{segmentedPosition:this.dropdownSchedulePanel_||!((X=this.data)==null?0:(H=X.postOptionsMenu)==null?0:H.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.P("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(X,H){X=this.get("submitButton.buttonRenderer",X)||this.get("replyButton.buttonRenderer",X)||this.get("postButton.buttonRenderer",X);H&&(X=H);X&&(X=Object.assign({},X),X.serviceEndpoint=void 0,X.isDisabled=this.submitButtonDisabled);return X},
computeHasExternalLinksAccess_:function(X){if(_.P("enable_rfa_external_links")){var H,l,b;return(b=X==null?void 0:(H=X.advancedTierFeatures)==null?void 0:(l=H.externalLinks)==null?void 0:l.allowExternalLinks)!=null?b:!0}return!0},
computeIsEmojiButtonDisplayed_:function(X){return X.emojiButton&&X.emojiPicker&&X.emojiPicker.emojiPickerRenderer&&X.emojiPicker.emojiPickerRenderer.categories?X.emojiPicker.emojiPickerRenderer.categories.find(function(H){return H.emojiPickerCategoryRenderer?H.emojiPickerCategoryRenderer.emojiIds&&H.emojiPickerCategoryRenderer.emojiIds.length>0:H.emojiPickerUpsellCategoryRenderer?H.emojiPickerUpsellCategoryRenderer.emojis&&H.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(X){return X.charLimit?X.charLimit:null},
computeDropdownSchedulingPanel_:function(X,H){if(X==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&H)return H},
computeInlineSchedulingPanel_:function(X,H){if(X==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&H)return H},
computeHideAuthorThumbnail_:function(X,H){return X||this.computeUseIdentityChip_(H)},
computeHideIdentityChipRenderer_:function(X,H){return X||!this.computeUseIdentityChip_(H)},
computeUseIdentityChip_:function(X){return!!X&&!!X.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(X){var H,l,b,U;(X==null?0:(H=X.detail)==null?0:(l=H.endpoint)==null?0:l.ypcGetOffersEndpoint)||(X==null?0:(b=X.detail)==null?0:(U=b.endpoint)==null?0:U.ypcOffersEndpoint)?(X.stopPropagation(),_.ci(this,[X.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",X)&&(X.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(X){this.addedAttachment="video";this.selectedVideoId_=X.detail.videoId},
commentboxStateEntityChanged_:function(X){var H=this;(X==null?void 0:X.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(X==null?void 0:X.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){H.focus()})},
onYtServiceRequestSent_:function(X,H){if(H.actions)for(X=_.C(H.actions),H=X.next();!H.done;H=X.next())H.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(X){this.isLoading=!1;var H=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",X),l,b,U,K=X==null?void 0:(l=X.detail)==null?void 0:(b=l.data)==null?void 0:(U=b.actionResult)==null?void 0:U.commentboxStateEntityKey;if(H)this.errorMessage_=H;else if(K){var w;this.dismissData_=X==null?void 0:(w=X.detail)==null?void 0:w.data;this.commentboxStateKey_=K}else{this.clear();var d;this.fire("yt-commentbox-dismiss",X==null?void 0:(d=X.detail)==
null?void 0:d.data)}},
onYtServiceRequestError_:function(X){X.stopPropagation();this.isLoading=!1;var H,l;if(((H=this.data)==null?void 0:H.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((l=this.data)==null?void 0:l.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(H=this.get("detail.error.args",X)||[],H.length>1&&H[1].message){this.handlePostsServiceRequestError_(H[1].message);return}(X=this.get("detail.error.message",X))?this.errorMessage_=this.data.errorMessage||_.xM(X):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(X){if(_.P("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var H=_.C(this.rateLimitErrorCommands),l=H.next();!l.done;l=H.next())if(l=l.value,l.errorLabel===X){_.Lc(l.command,this.hostElement);return}this.errorMessage_=_.xM(X)},
submitIfNotBackstagePost_:function(X){if(!this.isBackstagePost)this.onSubmit_(X)},
onSubmit_:function(X){var H=this,l,b,U,K,w,d,B,q,u,e,y,V,p,z,t;return _.h(function(W){switch(W.nextAddress){case 1:X.stopPropagation();if(!H.serviceEndpoint||!H.isValidInput_())return W.return();if(H.shouldShowPostAadcNotice_())return H.showPostAadcNotice_(),W.return();if(H.shouldShowCommentAadcNotice_())return H.showCommentAadcNotice_(),W.return();if(!(H.$$("ytd-backstage-multi-image-select-renderer")&&H.hasImage_&&_.P("enable_multi_image_post_creation"))){W.jumpTo(2);break}l=H.$$("ytd-backstage-multi-image-select-renderer");
return W.yield(l.getAllUploadStatuses(),3);case 3:b=W.yieldResult;if(!b)return W.return();U=_.C(b);for(K=U.next();!K.done;K=U.next())if(w=K.value,w.encryptedBlobId===void 0)return H.isLoading=!1,B=d=void 0,H.errorMessage_=(B=(d=H.imageUploadEndpoint_)==null?void 0:d.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?B:null,W.return();return W.return(H.submitForm_(void 0,void 0,void 0,void 0,l.images,H.taggedVideoId_));case 2:if(!H.hasImagePoll_||!H.$["image-poll-attachment"]){W.jumpTo(4);
break}return W.yield(H.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:q=W.yieldResult;if(!q)return W.return();u=_.C(q);for(e=u.next();!e.done;e=u.next())if(y=e.value,!y.encryptedBlobId)return H.isLoading=!1,V=void 0,H.errorMessage_=(V=H.data.errorMessage)!=null?V:null,W.return();case 4:z=(p=H.$$("ytd-backstage-image-select-renderer"))&&p.uploadPromise(),t=H.getSharedPostId_(),z?z.then(function(){H.submitForm_.apply(H,_.LJ(_.Ab.apply(0,arguments)))}).catch(function(G){H.isLoading=!1;
H.errorMessage_=_.xM(G.message)}):H.selectedVideoId_?H.submitForm_(void 0,H.selectedVideoId_):H.prefilledAttachment_==="image"?H.submitForm_(H.prefilledImageData_.encryptedBlobId,void 0,void 0,H.prefilledImageData_.sourceExternalVideoId,void 0,H.taggedVideoId_):H.prefilledAttachment_==="video"?H.submitForm_(void 0,H.data.backstageAttachment.videoRenderer.videoId):t?H.submitForm_(void 0,void 0,t):H.taggedVideoId_!==void 0?H.submitForm_(void 0,void 0,void 0,void 0,void 0,H.taggedVideoId_):H.submitForm_(),
_.m5(W)}})},
openSchedulingPanel:function(X){X&&X.scheduleButton&&X.scheduleButton.buttonRenderer&&(this.scheduleButton_=X.scheduleButton.buttonRenderer);X&&X.dateTimePicker&&this.set("data.schedulingDateTimePicker",X.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(X){X.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(X){X.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(X){X.stopPropagation();X.detail.alertMessage&&(this.alertMessage_=X.detail.alertMessage)},
onImageSelected_:function(X){X.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(X){X.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(X){X.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(X.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(X){X.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(X){var H=this.$["video-link-attachment"];H&&H.onLaunchVideoPicker(X)},
onAttachmentDismiss_:function(X){X.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"&&_.P("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.P("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 X;if(this.addedAttachment==="image-poll"&&((X=this.$["image-poll-attachment"])==null||!X.isValid()))return!1;var H;if(this.addedAttachment==="quiz"&&((H=this.$["quiz-attachment"])==null||!H.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;X=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(X=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")X=!0;return X||!!this.getTextAreaValue().trim()},
submitForm_:function(X,H,l,b,U,K){var w=this.getTextAreaValue().trim(),d={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&w===this.previousText_&&(w=void 0);w!==void 0&&(d.comment_text=w);this.isLoading=!0;K!=void 0&&(d.tagged_video_id=K);X?(d.image_blob_id=X,this.imagePreviewCoordinates_&&(d.image_preview_coordinates=this.imagePreviewCoordinates_)):H?d.attached_video_id=H:l?d.shared_post_id=l:U&&U.length>0&&(d.images_data=U.map(function(B){return{encryptedBlobId:B.encryptedBlobId,
previewCoordinates:B.previewCoordinates}}));
b&&(d.source_video_id=b);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(d.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(d.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(d.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(d.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.P("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(d.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.ci(this,[this.serviceEndpoint,d])},
onIsInputFocusChanged_:function(X,H){X?this.fire("yt-autonav-pause-focus"):H!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(X){var H=this.getEditableTextArea_();[].concat(_.LJ(X.dataTransfer.items)).forEach(function(l){l.kind==="string"&&l.type.match("^text/plain")&&l.getAsString(function(b){H.appendChild(document.createTextNode(b))})});
X.preventDefault()},
preventDefault_:function(X){X.preventDefault()},
onSuggestionInsert_:function(X){this.insertTextWithEmojis_(X.detail.range,X.detail.text)},
onEmojiSuggestionClick_:function(X){this.emojiInput.insertSuggestion(X.detail)},
computeSubmitButtonClass_:function(X,H){return!H||X?"":"with-options"},
updateSuggestionOffset_:function(X){if(this.emojiInput&&_.mh(this.emojiInput).querySelector("#dropdown")){var H=this.getEditableTextArea_().getBoundingClientRect().bottom,l=X.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(H-l)+5;H=this.getEditableTextArea_().getBoundingClientRect().left;X=X.getBoundingClientRect().left-H;_.mh(this.emojiInput).querySelector("#dropdown").style.marginLeft=X+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(X){if(_.P("enable_post_scheduling")&&this.data&&this.data.purpose){X=X.detail;if(Math.floor(Date.now()/1E3)>=X)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var H=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(H)||H!==X?this.scheduledPublishTimeSec_=X:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=X;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var X=["image-button","image-poll-button","poll-button","quiz-button"];_.P("auto_convert_posts_video_tag")||X.push("video-link-button");return X},
getButtonRenderer:function(X,H){if(X)switch(H){case "video-link-button":var l;return((l=X.videoLinkButton)==null?void 0:l.buttonRenderer)||void 0;case "image-button":var b;return((b=X.imageButton)==null?void 0:b.buttonRenderer)||void 0;case "poll-button":var U;return((U=X.pollButton)==null?void 0:U.buttonRenderer)||void 0;case "image-poll-button":var K;return((K=X.imagePollButton)==null?void 0:K.buttonRenderer)||void 0;case "quiz-button":var w;return((w=X.quizButton)==null?void 0:w.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var X;return(X=this.data)==null||!X.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var X,H;return!((X=this.data)==null||!X.openAadcDialog)&&!((H=this.aadcGuidelinesState_)==null||!H.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.gx("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var X;((X=this.data)==null?0:X.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.DS("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(X){X.clickTrackingParams&&_.lv().clickCommand(X);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.TP(this,"yt-close-popup-action")},
onHideIdentityChip:function(X){var H;this.set("data.placeholderText",(H=X.hideIdentityChipAction)==null?void 0:H.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var U0=function(){var X=_.a.apply(this,arguments)||this;X.isOpen=!1;X.modern=_.P("web_modern_buttons");X.roundedContainer=!0;X.dropdownButtonOverride=_.P("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;X.inPopupContainer=!1;X.isCommentboxLoading=!1;var H=["image-button","image-poll-button","poll-button"];_.P("enable_quiz_creation")&&H.push("quiz-button");_.P("auto_convert_posts_video_tag")||H.push("video-link-button");X.attachmentButtonIds=H;X.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 X};
_.S(U0,_.a);_.R=U0.prototype;_.R.computeButtonOverride=function(){var X;return((X=this.data)==null?0:X.postOptionsMenu)&&_.P("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.R.configureRendererStamper=function(){var X={"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]]"}}}}};_.P("auto_convert_posts_video_tag")||(X["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return X};
_.R.ready=function(){var X=this,H=_.mh(this.hostElement).querySelector("#placeholder-area"),l=function(b){X.onOpen(b)};
H.addEventListener("tap",l);H.addEventListener("keypress",l)};
_.R.showButtonEduTooltip=function(){var X,H,l,b,U,K,w;if(_.P("enable_quiz_creation")&&((X=this.data)==null?0:(H=X.quizButton)==null?0:(l=H.buttonRenderer)==null?0:(b=l.hint)==null?0:(U=b.hintRenderer)==null?0:(K=U.content)==null?0:(w=K.bubbleHintRenderer)==null?0:w.text)&&(_.cW.getInstance(),X=j3(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(X==null?void 0:
X.length)>0)){this.ytComponentBehavior.resolveCommand(X[0],{form:{element:this.quizButton}});return}var d;if((d=this.data)==null?0:d.imagePollButtonTooltip)if(_.cW.getInstance(),d=j3(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(d==null?void 0:d.length)>0){this.ytComponentBehavior.resolveCommand(d[0],{form:{element:this.imagePollButton}});return}var B;_.P("enable_multi_image_post_creation")&&
((B=this.data)==null?0:B.multiImageButtonTooltip)&&(_.cW.getInstance(),B=j3(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(B==null?void 0:B.length)>0&&this.ytComponentBehavior.resolveCommand(B[0],{form:{element:this.imageButton}}))};
_.R.onCreatePollAction=function(X){_.f(X,JJ6)&&(this.JSC$16263_commentbox.addedAttachment="poll",this.openDialog())};
_.R.onAddVideoLinkAction=function(X){if(_.f(X,NbY))this.JSC$16263_commentbox.onAddVideoLink(X)};
_.R.onShowSchedulingPanelCommand=function(X){(X=_.f(X,unq))&&this.openSchedulingPanel(X)};
_.R.onCreateImagePollCommand=function(X){_.f(X,foQ)&&(this.JSC$16263_commentbox.openImagePollComponent(),this.openDialog())};
_.R.onCreateQuizCommand=function(X){_.f(X,pP9)&&(this.JSC$16263_commentbox.openQuizComponent(),this.openDialog())};
_.R.openSchedulingPanel=function(X){_.P("enable_post_scheduling")&&(this.openDialog(),this.JSC$16263_commentbox.openSchedulingPanel(X))};
_.R.onCreateCommentAction=function(X){this.get("createCommentAction.contents",X)&&(this.JSC$16263_commentbox.clear(),this.closeDialog())};
_.R.onOpen=function(X){X instanceof KeyboardEvent&&X.type==="keypress"&&X.keyCode!==13&&X.keyCode!==32||(this.data.prepareAccountEndpoint?_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.R.onYtCommentboxDismiss=function(){this.closeDialog()};
_.R.onYtCommentboxLoadingStart=function(X){X.stopPropagation();this.isCommentboxLoading=!0};
_.R.onYtCommentboxLoadingEnd=function(X){X.stopPropagation();this.isCommentboxLoading=!1};
_.R.onYtVideoLinkButtonCancel=function(X){X.stopPropagation();this.onOpen(X)};
_.R.onYtVideoLinkSelected=function(X){X.stopPropagation();this.onOpen(X)};
_.R.onIronSelect=function(X){X.stopPropagation();X.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=X.detail.item.value&&(this.accessRestriction?(this.accessRestriction=X.detail.item.value,this.onOpen(X)):this.accessRestriction=X.detail.item.value)};
_.R.onYtNavigate=function(X){this.get("detail.endpoint.backstageImageUploadEndpoint",X)&&(this.JSC$16263_commentbox.addedAttachment="image",this.JSC$16263_commentbox.submitButtonDisabled=!0,this.onOpen(X))};
_.R.onRequestSent=function(X){for(var H=_.C(X.detail),l=H.next();!l.done;l=H.next())_.f(l.value,gvG)&&(this.JSC$16263_commentbox.addedAttachment="image",this.JSC$16263_commentbox.submitButtonDisabled=!0,this.onOpen(X))};
_.R.openDialog=function(){var X;(X=this.data)!=null&&X.isIneligibleForCommunityPagePostCreation||(this.JSC$16263_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16263_commentbox.focus())};
_.R.onPopupClosed=function(){_.cW.getInstance()};
_.R.computeCreationDisabled=function(X){return!!X};
_.R.computeIsCreationDialog=function(X){return!!X&&X==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.R.computeDisabledPostButton=function(X){if(!X)return null;X.isDisabled=!0;return X};
_.R.computeIsCreationDialogWithHeader=function(X){return!this.inPopupContainer&&!!X&&!!X.authorText&&X.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.R.computeIsHeaderHidden=function(X,H){return!X||H};
_.R.computeDropdownRendererClasses=function(X){return X?["text-secondary-style"]:[]};
_.R.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var X=_.mh(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;X&&X.reset()};
U0.prototype.onPopupClosed=U0.prototype.onPopupClosed;U0.prototype.onRequestSent=U0.prototype.onRequestSent;U0.prototype.onYtNavigate=U0.prototype.onYtNavigate;U0.prototype.onIronSelect=U0.prototype.onIronSelect;U0.prototype.onYtVideoLinkSelected=U0.prototype.onYtVideoLinkSelected;U0.prototype.onYtVideoLinkButtonCancel=U0.prototype.onYtVideoLinkButtonCancel;U0.prototype.onYtCommentboxLoadingEnd=U0.prototype.onYtCommentboxLoadingEnd;U0.prototype.onYtCommentboxLoadingStart=U0.prototype.onYtCommentboxLoadingStart;
U0.prototype.onYtCommentboxDismiss=U0.prototype.onYtCommentboxDismiss;U0.prototype.showButtonEduTooltip=U0.prototype.showButtonEduTooltip;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],U0.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],U0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],U0.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],U0.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],U0.prototype,"isOpen",void 0);_.T([_.g({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],U0.prototype,"buttonOverride",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],U0.prototype,"modern",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],U0.prototype,"roundedContainer",void 0);_.T([_.g(),_.N("design:type",Object)],U0.prototype,"dropdownButtonOverride",void 0);_.T([_.g({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.N("design:type",Boolean)],U0.prototype,"creationDisabled",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],U0.prototype,"enableCreationBox",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.N("design:type",Boolean)],U0.prototype,"isCreationDialog",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],U0.prototype,"inPopupContainer",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.N("design:type",Boolean)],U0.prototype,"isCreationDialogWithHeader",void 0);_.T([_.g(),_.N("design:type",Object)],U0.prototype,"accessRestriction",void 0);
_.T([_.g({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.N("design:type",Array)],U0.prototype,"dropdownRendererClasses",void 0);_.T([_.g(),_.N("design:type",Object)],U0.prototype,"isCommentboxLoading",void 0);_.T([_.g(),_.N("design:type",Array)],U0.prototype,"attachmentButtonIds",void 0);_.T([_.A2("#image-button"),_.N("design:type",HTMLElement)],U0.prototype,"imageButton",void 0);
_.T([_.A2("#image-poll-button"),_.N("design:type",HTMLElement)],U0.prototype,"imagePollButton",void 0);_.T([_.A2("#quiz-button"),_.N("design:type",HTMLElement)],U0.prototype,"quizButton",void 0);_.T([_.A2("#commentbox"),_.N("design:type",Object)],U0.prototype,"JSC$16263_commentbox",void 0);_.T([_.Yh("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U0.prototype,"showButtonEduTooltip",null);
_.T([_.Le("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U0.prototype,"onYtCommentboxDismiss",null);_.T([_.Le("yt-commentbox-loading-start"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U0.prototype,"onYtCommentboxLoadingStart",null);
_.T([_.Le("yt-commentbox-loading-end"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U0.prototype,"onYtCommentboxLoadingEnd",null);_.T([_.Le("yt-video-link-button-cancel"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U0.prototype,"onYtVideoLinkButtonCancel",null);
_.T([_.Le("yt-video-link-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U0.prototype,"onYtVideoLinkSelected",null);_.T([_.Le("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U0.prototype,"onIronSelect",null);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U0.prototype,"onYtNavigate",null);
_.T([_.Le("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],U0.prototype,"onRequestSent",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U0.prototype,"onPopupClosed",null);_.T([_.sq({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],U0);
_.O(U0,"ytd-backstage-post-dialog-renderer",function(){if(nfF!==void 0)return nfF;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return nfF=X},{mode:1});var $TY;var K8G;var $5=function(){return _.a.apply(this,arguments)||this};
_.S($5,_.a);_.R=$5.prototype;_.R.computeHeartButtonStyle=function(X){return(X==null?0:X.styleType)?X.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.R.onYtButtonTap=function(){if(this.data.isEnabled){var X=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(X=this.getEndpoint(X))&&_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}})}else(X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(X)};
_.R.toggle=function(X){this.set("data.isHearted",X!==void 0?X:!this.data.isHearted)};
_.R.getEndpoint=function(X){var H,l=(H=this.data)==null?void 0:H.heartEndpoint,b;H=(b=this.data)==null?void 0:b.unheartEndpoint;if(l&&H)return X?H:l};
_.R.computeButtonAccessibility=function(X,H){var l,b,U=X==null?void 0:(l=X.heartedAccessibility)==null?void 0:(b=l.accessibilityData)==null?void 0:b.label,K,w;X=X==null?void 0:(K=X.unheartedAccessibility)==null?void 0:(w=K.accessibilityData)==null?void 0:w.label;return H?U:X};
_.ja.Object.defineProperties($5.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 X;return _.P("kevlar_system_icons")&&!((X=this.data)==null||!X.isHearted)}}});
$5.prototype.onYtButtonTap=$5.prototype.onYtButtonTap;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],$5.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$5.prototype,"data",void 0);_.T([_.x("data.isHearted"),_.N("design:type",Object),_.N("design:paramtypes",[])],$5.prototype,"heartTooltip",null);
_.T([_.x("data.isHearted"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$5.prototype,"iconFilled",null);_.T([_.g({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.N("design:type",String)],$5.prototype,"buttonAccessibility",void 0);_.T([_.g({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],$5.prototype,"heartButtonStyle",void 0);
_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$5.prototype,"onYtButtonTap",null);_.T([_.sq({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],$5);
_.O($5,"ytd-creator-heart-renderer",function(){if(K8G!==void 0)return K8G;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return K8G=X},{mode:1});var Kh=function(){var X=_.a.apply(this,arguments)||this;X.hasCreatorReply=!1;X.buttonOverrides={size:"S",iconPosition:"icon-only"};X.replyButtonOverrides={size:"S",type:"text"};X.forceIconButton=!_.P("web_modern_buttons");X.modern=_.P("web_modern_buttons");X.buttonTooltipPosition="bottom";X.systemIcons=_.P("kevlar_system_icons");X.replyDialog=null;return X};
_.S(Kh,_.a);_.R=Kh.prototype;
_.R.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]]"}}}}}};
_.R.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.R.dataChange=function(){this.replyDialog&&_.mh(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var X,H,l;this.isLiked=this.systemIcons&&!!((X=this.data)==null?0:(H=X.likeButton)==null?0:(l=H.toggleButtonRenderer)==null?0:l.isToggled)};
_.R.computeShowVoteCountBeginning=function(X,H){return X===void 0||H===void 0?!0:X.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.R.computeShowVoteCountEnd=function(X,H){return X===void 0||H===void 0?!0:X.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.R.computeShowCommentCount=function(X,H){return X===void 0||H===void 0?!0:X.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!H&&this.ytRendererBehavior.getSimpleString(H)!=="0"};
_.R.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.R.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.R.showReplyDialog=function(X){X&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.mh(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=X,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.R.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.R.onRequestSent=function(X){X=_.C(X.detail);for(var H=X.next();!H.done;H=X.next())(H=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",H.value))&&this.showReplyDialog(H)};
_.R.onYtNavigate=function(X){var H,l;(X=(H=_.f(X.detail.endpoint,_.aEG))==null?void 0:(l=H.dialog)==null?void 0:l.commentReplyDialogRenderer)&&this.showReplyDialog(X)};
_.R.onYtServiceRequestSent=function(X,H){X.stopPropagation();if(H.actions)for(X=0;X<H.actions.length;X++){var l=_.f(H.actions[X],HRt);l&&this.handleUpdateCommentVoteAction(l)}};
_.R.handleUpdateCommentVoteAction=function(X){this.voteCount=X.voteCount||_.xM("0");X.voteStatus==="LIKE"?this.JSC$16275_ytdDislikeToggleButtonRenderer.toggle(!1):X.voteStatus==="DISLIKE"?this.JSC$16275_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16275_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16275_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.R.computeReplyButtonHidden=function(X){return X};
_.R.computeReplyButtonBeginning=function(X){return(X==null?0:X.replyButton)&&X.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?X.replyButton:void 0};
_.R.computeReplyButtonEnd=function(X){return(X==null?0:X.replyButton)&&X.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?X.replyButton:void 0};
_.R.computeActionButtonStyle=function(X){return(X==null?0:X.style)?X.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.R.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.R.onYtToggleButton=function(X){var H,l;this.isLiked=this.systemIcons&&!!((H=X.detail)==null?0:(l=H.actions)==null?0:l.like)};
Kh.prototype.onYtToggleButton=Kh.prototype.onYtToggleButton;Kh.prototype.onButtonTooltipPositionChanged=Kh.prototype.onButtonTooltipPositionChanged;Kh.prototype.onYtServiceRequestSent=Kh.prototype.onYtServiceRequestSent;Kh.prototype.onYtNavigate=Kh.prototype.onYtNavigate;Kh.prototype.onRequestSent=Kh.prototype.onRequestSent;Kh.prototype.onYtCommentboxDismiss=Kh.prototype.onYtCommentboxDismiss;Kh.prototype.dataChange=Kh.prototype.dataChange;
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Kh.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Kh.prototype,"voteCount",void 0);_.T([_.g(),_.N("design:type",Object)],Kh.prototype,"commentCount",void 0);_.T([_.g(),_.N("design:type",Object)],Kh.prototype,"replyThumbnail",void 0);
_.T([_.g(),_.N("design:type",Object)],Kh.prototype,"hasCreatorReply",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Kh.prototype,"enableCreationBox",void 0);_.T([_.g({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],Kh.prototype,"actionButtonsStyle",void 0);_.T([_.g({computed:"computeReplyButtonBeginning(data)"}),_.N("design:type",Object)],Kh.prototype,"replyButtonBeginning",void 0);
_.T([_.g({computed:"computeReplyButtonEnd(data)"}),_.N("design:type",Object)],Kh.prototype,"replyButtonEnd",void 0);_.T([_.g(),_.N("design:type",Object)],Kh.prototype,"buttonOverrides",void 0);_.T([_.g(),_.N("design:type",Object)],Kh.prototype,"replyButtonOverrides",void 0);_.T([_.g(),_.N("design:type",Object)],Kh.prototype,"forceIconButton",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Kh.prototype,"useCommentIcon",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Kh.prototype,"modern",void 0);_.T([_.g(),_.N("design:type",Object)],Kh.prototype,"buttonTooltipPosition",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Kh.prototype,"systemIcons",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Kh.prototype,"isLiked",void 0);_.T([_.A2("ytd-button-renderer"),_.N("design:type",Object)],Kh.prototype,"ytdReplyButtonRenderer",void 0);
_.T([_.A2("#like-button"),_.N("design:type",Object)],Kh.prototype,"JSC$16275_ytdLikeToggleButtonRenderer",void 0);_.T([_.A2("#dislike-button"),_.N("design:type",Object)],Kh.prototype,"JSC$16275_ytdDislikeToggleButtonRenderer",void 0);_.T([_.A2("#reply-dialog"),_.N("design:type",HTMLElement)],Kh.prototype,"replyDialogElement",void 0);_.T([_.A2("#reply-button"),_.N("design:type",HTMLElement)],Kh.prototype,"replyButtonElement",void 0);
_.T([_.A2("#reply-button-end"),_.N("design:type",HTMLElement)],Kh.prototype,"replyButtonEndElement",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kh.prototype,"dataChange",null);_.T([_.Le("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Kh.prototype,"onYtCommentboxDismiss",null);
_.T([_.Le("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Kh.prototype,"onRequestSent",null);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Kh.prototype,"onYtNavigate",null);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],Kh.prototype,"onYtServiceRequestSent",null);_.T([_.Yh("buttonTooltipPosition"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kh.prototype,"onButtonTooltipPositionChanged",null);
_.T([_.Le("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Kh.prototype,"onYtToggleButton",null);_.T([_.sq({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Kh);
_.O(Kh,"ytd-comment-action-buttons-renderer",function(){if($TY!==void 0)return $TY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return $TY=X},{mode:1});var RYG;var Rg=function(){return _.a.apply(this,arguments)||this};
_.S(Rg,_.a);Rg.prototype.focus=function(){_.mh(this.hostElement).querySelector("#commentbox").focus()};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Rg.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Rg.prototype,"zeroStepChannelCreationRenderer",void 0);_.T([_.sq({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Rg);
_.O(Rg,"ytd-comment-dialog-renderer",function(){if(RYG!==void 0)return RYG;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return RYG=X},{mode:1});var C8Y;var Ch=function(){var X=_.a.apply(this,arguments)||this;X.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.P("enable_web_delhi_icons")};X.replyButtonOverrides={size:"S",type:"text"};return X};
_.S(Ch,_.a);_.R=Ch.prototype;_.R.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.R.detached=function(){this.replyBox&&this.replyBox.remove()};
_.R.showReplyDialog=function(X){if(X){var H=this.replyBox;H||(H=document.createElement("ytd-comment-reply-dialog-renderer"),H.id="replybox",_.mh(this.replyDialogDiv).appendChild(H));H.data=X;this.replyDialogDiv.hidden=!1;H.openDialog()}};
_.R.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.R.handleReplyButtonClick=function(){if(this.isSuperfanOnlyCommentsEligibleUser){var X,H=_.f((X=this.toolbarSurface)==null?void 0:X.superfanOnlySnackbarCommand,_.qq);H&&_.QX(this.hostElement,"yt-show-superfan-only-snackbar",{command:H})}else this.isSubsOnlyCommentsEligibleUser&&(X=_.f((H=this.toolbarSurface)==null?void 0:H.subscribersOnlyDisclaimerSnackbarCommand,_.qq))&&_.QX(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:X})};
_.R.onYtServiceRequestSent=function(X,H){X.stopPropagation();if(H.actions)for(var l=0;l<H.actions.length;l++){var b=_.f(H.actions[l],HRt);b?this.handleUpdateCommentVoteAction(b):X.target===this.heartButton&&this.toggleHeartState()}};
_.R.handleUpdateCommentVoteAction=function(X){var H;(H=this.toolbarState)!=null&&H.key&&this.ytdReduxBehavior.dispatch(_.Mf("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:X.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":X.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.R.toggleHeartState=function(){var X;(X=this.toolbarState)!=null&&X.key&&this.ytdReduxBehavior.dispatch(_.Mf("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.ja.Object.defineProperties(Ch.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return(((X=this.toolbarState)==null?void 0:X.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(H=this.toolbarData)==null?void 0:H.likeCountLiked:(l=this.toolbarData)==null?void 0:l.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.toolbarSurface)==null?void 0:X.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.toolbarSurface)==null?void 0:X.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.toolbarSurface)==null?void 0:X.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
isSuperfanOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.toolbarSurface)==null?void 0:X.superfanOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.toolbarSurface)==null?void 0:X.prepareAccountCommand)!==void 0&&!_.P("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var X,H=_.f((X=this.toolbarSurface)==null?void 0:X.prepareAccountCommand,_.qq),l,b,U,K,w,d,B,q,u;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((l=this.toolbarSharedData)==null||!l.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((b=this.toolbarState)==null?void 0:b.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:H!=null?H:_.f((U=this.toolbarSurface)==null?void 0:U.likeCommand,_.qq),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.f((K=this.toolbarSurface)==null?void 0:K.unlikeCommand,_.qq),defaultCommand:this.isVisiblyDisabled?_.f((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,_.qq):void 0,defaultTooltip:(d=this.toolbarData)==null?void 0:d.likeInactiveTooltip,toggledTooltip:(B=this.toolbarData)==null?void 0:B.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(q=this.toolbarData)==null?void 0:q.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(u=this.toolbarSharedData)==null?void 0:u.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var X,H=_.f((X=this.toolbarSurface)==null?void 0:X.prepareAccountCommand,_.qq),l,b,U,K,w,d,B,q,u,e;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((l=this.toolbarSharedData)==null||!l.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((b=this.toolbarState)==null?void 0:b.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.f((U=this.toolbarSurface)==null?void 0:U.dislikeCommand,_.qq),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:H!=null?H:_.f((K=this.toolbarSurface)==null?void 0:K.undislikeCommand,_.qq),defaultCommand:this.isVisiblyDisabled?_.f((w=this.toolbarSurface)==null?void 0:w.commentDisabledActionCommand,_.qq):void 0,defaultTooltip:(d=this.toolbarData)==null?void 0:d.dislikeInactiveTooltip,toggledTooltip:(B=this.toolbarData)==null?void 0:
B.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(q=this.toolbarSharedData)==null?void 0:q.dislikeReplyButtonA11y:(u=this.toolbarSharedData)==null?void 0:u.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(e=this.toolbarSharedData)==null?void 0:e.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var X,H,l;if(((X=this.toolbarState)==null?void 0:X.heartState)!==void 0&&((H=this.toolbarState)==null?void 0:H.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((l=this.toolbarState)==null?void 0:l.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var b,U,K,w,d,B,q,u,e,y,V,p,z,t;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(b=this.toolbarData)==null?void 0:b.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((U=this.toolbarState)==null?void 0:U.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((K=this.toolbarState)==null?void 0:K.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((w=this.toolbarState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((d=this.toolbarState)==null?void 0:d.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.f((B=this.toolbarSurface)==null?void 0:B.heartCommand,
_.qq),unheartEndpoint:this.isVisiblyDisabled?void 0:_.f((q=this.toolbarSurface)==null?void 0:q.unheartCommand,_.qq),disabledEndpoint:this.isVisiblyDisabled?_.f((u=this.toolbarSurface)==null?void 0:u.commentDisabledActionCommand,_.qq):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(e=this.toolbarData)==null?void 0:e.heartActiveTooltip,unheartedTooltip:(y=this.toolbarData)==null?void 0:y.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((V=
this.toolbarState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(p=this.toolbarSharedData)==null?void 0:p.unheartButtonA11y:(z=this.toolbarSharedData)==null?void 0:z.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(t=this.toolbarSharedData)==null?void 0:t.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.toolbarSurface)==null||!X.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.commentStrings)!=null&&X.replyButtonText){var H,l,b,U;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(H=this.commentStrings)==null?void 0:H.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.f((l=this.toolbarSurface)==null?void 0:l.replyCommand,_.qq),command:this.isVisiblyDisabled?
_.f((b=this.toolbarSurface)==null?void 0:b.commentDisabledActionCommand,_.qq):this.isSubsOnlyCommentsIneligibleUser?_.f((U=this.toolbarSurface)==null?void 0:U.subscribersOnlySnackbarCommand,_.qq):void 0}}}}});
Ch.prototype.onYtServiceRequestSent=Ch.prototype.onYtServiceRequestSent;Ch.prototype.hideReplyDialogDiv=Ch.prototype.hideReplyDialogDiv;_.T([_.g(),_.N("design:type",Object)],Ch.prototype,"commentStrings",void 0);_.T([_.g(),_.N("design:type",Boolean)],Ch.prototype,"isReply",void 0);_.T([_.g(),_.N("design:type",Object)],Ch.prototype,"toolbarData",void 0);_.T([_.g(),_.N("design:type",Object)],Ch.prototype,"toolbarSharedData",void 0);
_.T([_.g(),_.N("design:type",String)],Ch.prototype,"toolbarStateKey",void 0);_.T([_.g(),_.N("design:type",String)],Ch.prototype,"toolbarSurfaceKey",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Ch.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Ch.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.gI),_.N("design:type",Object)],Ch.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.A2("#reply-dialog"),_.N("design:type",HTMLElement)],Ch.prototype,"replyDialogDiv",void 0);_.T([_.A2("#replybox"),_.N("design:type",Object)],Ch.prototype,"replyBox",void 0);_.T([_.A2("ytd-creator-heart-renderer"),_.N("design:type",Object)],Ch.prototype,"heartButton",void 0);_.T([_.g({selector:function(X,H){return _.JY(X.entities,"engagementToolbarStateEntityPayload",H)},
selectorArgs:["toolbarStateKey"]}),_.N("design:type",Object)],Ch.prototype,"toolbarState",void 0);_.T([_.g({selector:kA8,selectorArgs:["toolbarSurfaceKey"]}),_.N("design:type",Object)],Ch.prototype,"toolbarSurface",void 0);_.T([_.g(),_.N("design:type",Object)],Ch.prototype,"buttonOverrides",void 0);_.T([_.Le("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ch.prototype,"hideReplyDialogDiv",null);
_.T([_.x("toolbarData","toolbarState"),_.N("design:type",String),_.N("design:paramtypes",[])],Ch.prototype,"likeCount",null);_.T([_.x("likeCount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ch.prototype,"showLikeCount",null);_.T([_.x("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ch.prototype,"isVisiblyDisabled",null);_.T([_.x("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ch.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.T([_.x("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ch.prototype,"isSubsOnlyCommentsEligibleUser",null);_.T([_.x("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ch.prototype,"isSuperfanOnlyCommentsEligibleUser",null);_.T([_.x("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ch.prototype,"hasPrepareAccountCommand",null);
_.T([_.x("toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ch.prototype,"likeToggleButtonRenderer",null);_.T([_.x("isReply","toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ch.prototype,"dislikeToggleButtonRenderer",null);_.T([_.x("toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ch.prototype,"creatorHeartSupportedRenderer",null);
_.T([_.x("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ch.prototype,"hasReplyCommand",null);_.T([_.x("toolbarSurface","commentStrings","isVisiblyDisabled"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ch.prototype,"replyButtonRenderer",null);_.T([_.g(),_.N("design:type",Object)],Ch.prototype,"replyButtonOverrides",void 0);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],Ch.prototype,"onYtServiceRequestSent",null);_.T([_.sq({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Ch);
_.O(Ch,"ytd-comment-engagement-bar",function(){if(C8Y!==void 0)return C8Y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return C8Y=X},{mode:1});var wVz;var w7=function(){return _.a.apply(this,arguments)||this};
_.S(w7,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],w7.prototype,"data",void 0);_.T([_.sq({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],w7);
_.O(w7,"ytd-comment-inline-thumbnail-renderer",function(){if(wVz!==void 0)return wVz;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return wVz=X},{mode:1});var dTF;var d7=function(){return _.a.apply(this,arguments)||this};
_.S(d7,_.a);d7.prototype.onMessageTap=function(){if(this.onTapCommand){var X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);X&&this.ytdOpenPopupBehavior.openPopup(X)}};
_.ja.Object.defineProperties(d7.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return(X=this.data)==null?void 0:(H=X.button)==null?void 0:(l=H.buttonRenderer)==null?void 0:l.command}}});
_.T([_.k(_.gI),_.N("design:type",Object)],d7.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],d7.prototype,"data",void 0);_.T([_.x("data.button.buttonRenderer.command"),_.N("design:type",Object),_.N("design:paramtypes",[])],d7.prototype,"onTapCommand",null);_.T([_.sq({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],d7);
_.O(d7,"ytd-comment-pause-composer-renderer",function(){if(dTF!==void 0)return dTF;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return dTF=X},{mode:1});var hYz;var F8q;var hu=function(){var X=_.a.apply(this,arguments)||this;X.isOpen=!1;return X};
_.S(hu,_.a);_.R=hu.prototype;_.R.dataChanged=function(){this.isOpen=!1};
_.R.onTap=function(){this.data&&(this.data.navigationEndpoint?_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.R.focus=function(){this.JSC$16304_commentbox.focus()};
_.R.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.R.openDialog=function(){this.isOpen=!0;this.JSC$16304_commentbox.focus();this.JSC$16304_commentbox.maybeHeightChanged()};
hu.prototype.onYtCommentboxDismiss=hu.prototype.onYtCommentboxDismiss;hu.prototype.dataChanged=hu.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hu.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],hu.prototype,"isOpen",void 0);_.T([_.A2("#commentbox"),_.N("design:type",Object)],hu.prototype,"JSC$16304_commentbox",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hu.prototype,"dataChanged",null);_.T([_.Le("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],hu.prototype,"onYtCommentboxDismiss",null);_.T([_.sq({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],hu);
_.O(hu,"ytd-comment-reply-dialog-renderer",function(){if(F8q!==void 0)return F8q;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return F8q=X},{mode:1});var Bav;var Fp=function(){return _.a.apply(this,arguments)||this};
_.S(Fp,_.a);_.ja.Object.defineProperties(Fp.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(X=this.data)==null?void 0:(H=X.icon)==null?void 0:H.iconType;return l?"yt-icons:"+l.toLowerCase():null}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Fp.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Fp.prototype,"data",void 0);_.T([_.g(),_.x("data.icon"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fp.prototype,"icon",null);_.T([_.sq({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Fp);
_.O(Fp,"ytd-pinned-comment-badge-renderer",function(){if(Bav!==void 0)return Bav;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Bav=X},{mode:1});var qNz;var sNz={},MTF={input:!0,meta:!0,br:!0,link:!0,img:!0},Bn=null;sNz.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(){Bn==null&&(Bn=document.createElement("tp-yt-paper-tooltip"),Bn.offset=8,Bn.fitToVisibleBounds=!0)},
onMouseOver_:function(X){if(X=_.yo(X.target,function(U){return U==this||U.getAttribute&&U.getAttribute("shared-tooltip-text")}.bind(this),!0)){var H=X.getAttribute("shared-tooltip-text");
if(H){var l=this,b=null;X!=this&&(X.tagName.toLowerCase()in MTF?l=X.parentElement:l=X,X.id&&(b=X.id));this.polymerController.createTooltipIfRequired_();if(Bn.parentElement!=l||Bn.for!=b)(0,_.cM)(Bn).textContent=H,_.mh(l).appendChild(Bn),Bn.for=b,Bn.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Bn.position=this.polymerController.sharedTooltipPosition}}}};var qx=function(){return _.a.apply(this,arguments)||this};
_.S(qx,_.a);qx.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]]"}}}}}};
qx.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var X;((X=this.data)==null?0:X.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var H;((H=this.data)==null?0:H.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
qx.prototype.colorChanged=function(){var X,H,l,b=(X=this.data)==null?void 0:(H=X.color)==null?void 0:(l=H.basicColorPaletteData)==null?void 0:l.foregroundBodyColor;b&&(this.rgbBadgeColor=_.BM(b));_.mh(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
qx.prototype.tooltipChanged=function(){var X;((X=this.data)==null?0:X.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
qx.prototype.tooltipChanged=qx.prototype.tooltipChanged;qx.prototype.colorChanged=qx.prototype.colorChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(sNz.YtSharedTooltipBehavior),_.N("design:type",Object)],qx.prototype,"ytSharedTooltipBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],qx.prototype,"data",void 0);
_.T([_.g({value:"#4285F4"}),_.N("design:type",String)],qx.prototype,"rgbBadgeColor",void 0);_.T([_.Yh("data.color"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qx.prototype,"colorChanged",null);_.T([_.Yh("data.tooltip"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qx.prototype,"tooltipChanged",null);_.T([_.sq({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],qx);
_.O(qx,"ytd-sponsor-comment-badge-renderer",function(){if(qNz!==void 0)return qNz;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return qNz=X},{mode:1});var uNY;var eYv;var s0=function(){return _.a.apply(this,arguments)||this};
_.S(s0,_.a);s0.prototype.computeState=function(X){switch(X==null?void 0:X.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"}};
s0.prototype.updateStateIdentifier=function(X){if(this.viewModel.triStateKey){var H=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Mf("triStateButtonStateEntityPayload",H,{key:H,stateIdentifier:X}))}};
s0.prototype.onClick=function(){var X=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(){X.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){X.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.ja.Object.defineProperties(s0.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 X;return((X=this.data)==null?void 0:X.buttonText)||""}}});
_.T([_.g(),_.N("design:type",Object)],s0.prototype,"viewModel",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],s0.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],s0.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);_.T([_.g({selector:x2y,selectorArgs:["viewModel.triStateKey"]}),_.N("design:type",Object)],s0.prototype,"triStateButtonStateEntity",void 0);
_.T([_.g({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.N("design:type",String)],s0.prototype,"state",void 0);_.T([_.x("viewModel","state"),_.N("design:type",Object),_.N("design:paramtypes",[])],s0.prototype,"data",null);_.T([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],s0.prototype,"buttonText",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],s0);
_.O(s0,"ytd-tri-state-button-view-model",function(){if(eYv!==void 0)return eYv;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return eYv=X},{mode:1});var yMD;var VT_;var Mx=function(){var X=_.a.apply(this,arguments)||this;X.defaultIconToFilled=!_.P("kevlar_fill_comment_chip_icon_killswitch");return X};
_.S(Mx,_.a);Mx.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Mx.prototype.dataChanged=function(){if(this.data){var X,H;((X=this.data.chipColorPalette)==null?0:X.backgroundColor)&&((H=this.data.chipColorPalette)==null?0:H.foregroundTitleColor)&&_.j4(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.qw(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.qw(this.data.chipColorPalette.foregroundTitleColor)});var l;((l=this.data)==null?0:l.command)?(_.j4(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.j4(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}};
Mx.prototype.onTap=function(){var X;if(this.data&&(X=this.data)!=null&&X.command){var H;this.ytComponentBehavior.resolveCommand((H=this.data)==null?void 0:H.command)}};
Mx.prototype.getIconSize=function(){return _.P("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Mx.prototype.onTap=Mx.prototype.onTap;Mx.prototype.dataChanged=Mx.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Mx.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Yw),_.N("design:type",Object)],Mx.prototype,"ironA11yKeysBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Mx.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],Mx.prototype,"basePriceText",void 0);_.T([_.g(),_.N("design:type",Object)],Mx.prototype,"chipIcon",void 0);_.T([_.g(),_.N("design:type",Object)],Mx.prototype,"defaultIconToFilled",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mx.prototype,"dataChanged",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mx.prototype,"onTap",null);
_.T([_.qR({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Mx);
_.O(Mx,"yt-pdg-comment-chip-renderer",function(){if(VT_===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;yMD===void 0&&(yMD=document.createElement("template"));var b=yMD;l.call(H,b.content.cloneNode(!0),X.content.firstChild);VT_=X}X=VT_;return X},{mode:2});var uV=function(){var X=_.a.apply(this,arguments)||this;X.useSmallAvatars=_.P("small_avatars_for_comments");X.commentThreadingEnabled=_.P("web_delhi_comment_threads");X.webWatchCompactComments=_.P("web_watch_compact_comments");X.editDialog=null;return X};
_.S(uV,_.a);_.R=uV.prototype;_.R.onShow=function(){_.MJ("cmv",void 0,"wn_comments")};
_.R.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"}}}};
_.R.detached=function(){this.editDialog=null;this.expander.reset()};
_.R.updateBackgroundColor=function(){if(this.backgroundColor){var X={"--ytd-comment-paid-background-color":_.qw(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.j4(this.hostElement,X)}else _.j4(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.R.resetExpander=function(){var X;(X=this.expander)==null||X.reset()};
_.R.openEditDialog=function(X){X.dialog&&(this.editDialog=X.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.R.onYtNavigate=function(X){var H=X.detail.endpoint;if(H=_.f(H,_.ZDC)||_.f(H,_.iDD))X.stopPropagation(),this.openEditDialog(H)};
_.R.onYtCommentboxDismiss=function(){this.editDialog=null;_.j4(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.R.onAuthorThumbnailClicked=function(){_.P("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.R.onYtCommentboxResize=function(X){var H;(X==null?0:(H=X.detail)==null?0:H.height)&&_.j4(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":X.detail.height+"px"})};
_.ja.Object.defineProperties(uV.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 X,H=(X=this.commentEntity)==null?void 0:X.author;return H&&(H.isCreator||H.isVerified||H.isArtist)?{renderer:{authorEndpoint:H.channelPageEndpoint?_.f(H.channelPageEndpoint,_.qq):_.f(H.channelCommand,_.qq),authorText:{runs:[{text:H.displayName}]},color:H.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:H.isArtist?{iconType:"AUDIO_BADGE"}:
H.isVerified?{iconType:H.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:H.isArtist||H.isVerified?H.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var X,H=(X=this.commentEntity)==null?void 0:X.author;return H!=null&&H.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:H.sponsorBadgeUrl}]},tooltip:H.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var X;return _.f((X=this.commentSurfaceEntity)==null?void 0:X.pdgCommentChip,_.FGF)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var X;return this.voiceReplyContainerViewModel&&((X=this.voiceReplyContainerViewModel)==null?void 0:X.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var X;return _.f((X=this.commentSurfaceEntity)==null?void 0:X.voiceReplyContainerViewModel,wAv)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var X;return this.voiceReplyContainerViewModel&&(X=this.voiceReplyContainerViewModel)!=null&&X.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var X,H;return(H=(X=this.commentSurfaceEntity)==null?void 0:X.commentBackgroundColor)!=null?H:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.P("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var X,H;return(((X=this.commentEntity)==null?void 0:(H=X.properties)==null?void 0:H.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var X,H;if(_.P("enable_profile_cards_on_comments")&&((X=this.commentEntity)==null?0:(H=X.author)==null?0:H.profileCardEndpoint)&&this.viewModel.allowProfileCard){var l,b;return _.f((l=this.commentEntity)==null?void 0:(b=l.author)==null?void 0:b.profileCardEndpoint,_.qq)}var U,K;return _.f((U=this.commentEntity)==null?void 0:(K=U.avatar)==null?void 0:K.endpoint,_.qq)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var X,H;if(_.P("enable_profile_cards_on_comments")&&((X=this.commentEntity)==null?0:(H=X.author)==null?0:H.channelPageEndpoint)){var l,b;return _.f((l=this.commentEntity)==null?void 0:(b=l.author)==null?void 0:b.channelPageEndpoint,_.qq)}var U,K;return _.f((U=this.commentEntity)==null?void 0:(K=U.avatar)==null?void 0:K.endpoint,_.qq)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b,U=(X=this.commentEntity)==null?void 0:(H=X.avatar)==null?void 0:(l=H.image)==null?void 0:(b=l.sources)==null?void 0:b[0];return U?{thumbnails:[{url:U.url,width:U.width,height:U.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.commentEntity)==null?0:(H=X.author)==null?0:H.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.commentEntity)==null?void 0:(H=X.author)==null?void 0:H.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.commentEntity)==null?void 0:(H=X.properties)==null?void 0:H.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var X;return _.f((X=this.commentSurfaceEntity)==null?void 0:X.publishedTimeCommand,_.qq)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var X,H;if(((X=this.commentEntity)==null?0:X.translatedContent)&&((H=this.translateButtonState)==null?void 0:H.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var l;if((l=this.voiceReplyContainerViewModel)==null?0:l.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var b,U;return((b=this.commentEntity)==null?void 0:(U=b.properties)==null?void 0:U.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.commentSharedEntity)==null?void 0:(H=X.strings)==null?void 0:H.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.commentSharedEntity)==null?void 0:(H=X.strings)==null?void 0:H.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.commentEntity)==null||!X.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var X,H,l=(H=_.f((X=this.viewModel)==null?void 0:X.translateButton,Cd9))!=null?H:{},b,U,K,w,d,B,q,u,e,y,V;return Object.assign({},l,{untoggledStateData:Object.assign({},l.untoggledStateData,{buttonText:(b=this.commentEntity)==null?void 0:(U=b.translateData)==null?void 0:U.text}),togglingStateData:Object.assign({},l.togglingStateData,{buttonText:(K=this.commentSharedEntity)==null?
void 0:(w=K.strings)==null?void 0:w.translatingText}),toggledStateData:Object.assign({},l.toggledStateData,{buttonText:(d=this.commentSharedEntity)==null?void 0:(B=d.strings)==null?void 0:B.seeOriginalText}),transitionCommand:((q=this.commentEntity)==null?0:q.translatedContent)?void 0:_.f((u=this.commentEntity)==null?void 0:(e=u.translateData)==null?void 0:e.translateComment,_.qq),triStateKey:(y=this.commentEntity)==null?void 0:(V=y.properties)==null?void 0:V.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((H=_.f(_.f((X=this.toolbarSurface)==null?void 0:X.menuCommand,_.qq),vvQ))==null?void 0:(l=H.menu)==null?void 0:l.menuRenderer)||null}}});
uV.prototype.onYtCommentboxResize=uV.prototype.onYtCommentboxResize;uV.prototype.onYtCommentboxDismiss=uV.prototype.onYtCommentboxDismiss;uV.prototype.onYtNavigate=uV.prototype.onYtNavigate;uV.prototype.resetExpander=uV.prototype.resetExpander;uV.prototype.updateBackgroundColor=uV.prototype.updateBackgroundColor;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],uV.prototype,"ytdReduxBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],uV.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.A2("#author-thumbnail > button"),_.N("design:type",HTMLElement)],uV.prototype,"authorThumbnailAnchor",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uV.prototype,"linked",null);
_.T([_.x("viewModel","linked"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"linkedCommentBadge",null);_.T([_.g({reflectToAttribute:!0}),_.x("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uV.prototype,"pinned",null);_.T([_.x("viewModel","pinned"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"pinnedCommentBadge",null);
_.T([_.x("commentEntity","commentSharedEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"authorCommentBadge",null);_.T([_.g({reflectToAttribute:!0}),_.x("authorCommentBadge"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"hasAuthorBadge",null);_.T([_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"sponsorCommentBadge",null);
_.T([_.g({reflectToAttribute:!0}),_.x("sponsorCommentBadge"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"hasSponsorBadge",null);_.T([_.x("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"pdgCommentChipRenderer",null);_.T([_.g({reflectToAttribute:!0}),_.x("voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"hasVoiceReply",null);
_.T([_.x("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"voiceReplyContainerViewModel",null);_.T([_.x("voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"voiceReplyUnavailableText",null);_.T([_.g(),_.N("design:type",Object)],uV.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"viewModel",null);
_.T([_.g({selector:function(X,H){return _.JY(X.entities,"commentSharedEntityPayload",H)},
selectorArgs:["viewModel.sharedKey"]}),_.N("design:type",Object)],uV.prototype,"commentSharedEntity",void 0);_.T([_.g({selector:nZO,selectorArgs:["viewModel.commentKey"]}),_.N("design:type",Object)],uV.prototype,"commentEntity",void 0);_.T([_.g({selector:function(X,H){return _.JY(X.entities,"commentSurfaceEntityPayload",H)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.N("design:type",Object)],uV.prototype,"commentSurfaceEntity",void 0);_.T([_.g({selector:kA8,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.N("design:type",Object)],uV.prototype,"toolbarSurface",void 0);_.T([_.g({selector:x2y,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.N("design:type",Object)],uV.prototype,"translateButtonState",void 0);
_.T([_.x("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"backgroundColor",null);_.T([_.g({reflectToAttribute:!0}),_.x("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uV.prototype,"optimalReadingWidthComments",null);_.T([_.A2("ytd-expander"),_.N("design:type",Object)],uV.prototype,"expander",void 0);
_.T([_.Yh("backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uV.prototype,"updateBackgroundColor",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],uV.prototype,"useSmallAvatars",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],uV.prototype,"engagementPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],uV.prototype,"commentThreadingEnabled",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],uV.prototype,"webWatchCompactComments",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"isReply",null);_.T([_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"authorThumbnailEndpoint",null);_.T([_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"authorNameEndpoint",null);
_.T([_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"authorThumbnail",null);_.T([_.x("commentEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],uV.prototype,"authorTextClass",null);_.T([_.x("commentEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],uV.prototype,"authorChannelName",null);_.T([_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"publishedTime",null);
_.T([_.x("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"publishedTimeCommand",null);_.T([_.x("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"contentText",null);_.T([_.Yh("contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uV.prototype,"resetExpander",null);
_.T([_.x("commentEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uV.prototype,"shouldShowReadMoreInitially",null);_.T([_.x("commentSharedEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],uV.prototype,"expandText",null);_.T([_.x("commentSharedEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],uV.prototype,"collapseText",null);_.T([_.x("commentEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uV.prototype,"shouldShowTranslateButton",null);
_.T([_.x("commentEntity","commentSharedEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"translateButton",null);_.T([_.x("toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],uV.prototype,"overflowMenuRenderer",null);_.T([_.g(),_.N("design:type",Object)],uV.prototype,"editDialog",void 0);_.T([_.A2("ytd-comment-dialog-renderer"),_.N("design:type",Object)],uV.prototype,"editCommentDialogContainer",void 0);
_.T([_.A2("ytd-comment-reply-dialog-renderer"),_.N("design:type",Object)],uV.prototype,"editReplyDialogContainer",void 0);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],uV.prototype,"onYtNavigate",null);_.T([_.Le("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],uV.prototype,"onYtCommentboxDismiss",null);
_.T([_.Le("yt-commentbox-resize"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],uV.prototype,"onYtCommentboxResize",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-comment-view-model"})],uV);
_.O(uV,"ytd-comment-view-model",function(){if(uNY!==void 0)return uNY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return uNY=X},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});_.gC(_.Z(function(X){var H={},l={};return _.F("yt-sub-thread",{class:_.Qr("ytSubThreadHost",(H.ytSubThreadHasButton=X.isButton,H.ytSubThreadHovered=X.hovered,H.ytSubThreadTopLevelThread=function(){var b,U;return((b=X.topLevelThread)==null?void 0:b.call(X))&&!(_.P("small_avatars_for_comments")&&((U=X.engagementPanel)==null?0:U.call(X)))},H))},_.F("div",{class:"ytSubThreadThreadline"},_.F(_.M,{cond:function(){var b;
return!((b=X.isTeaser)==null?0:b.call(X))},
then:function(){return _.F("div",{class:"ytSubThreadConnection"})}}),_.F("div",{class:"ytSubThreadContinuation"}),_.F("div",{class:"ytSubThreadShadow"})),_.F("div",{class:_.Qr("ytSubThreadSubThreadContent",(l.ytSubThreadSubThreadContentEngagementPanel=X.engagementPanel,l))},X.children))},"Qc"),"yt-sub-thread",{props:{isButton:_.zh,
isTeaser:_.zh,hovered:_.zh,topLevelThread:_.zh,engagementPanel:_.zh}});var e9=function(){var X=_.a.apply(this,arguments)||this;X.modern=_.P("web_modern_buttons");X.commentThreadingEnabled=_.P("web_delhi_comment_threads");X.isWatchGrid=_.P("kevlar_watch_grid");X.buttonOverrides=X.commentThreadingEnabled?_.P("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};X.JSC$16350_spinnerEl=null;return X};
_.S(e9,_.a);_.R=e9.prototype;_.R.configureContinuationPathMap=function(){return _.P("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.R.shouldShowLegacyTeasers=function(X,H){return X&&!H};
_.R.shouldShowExpandedThreads=function(X,H){return this.commentThreadingEnabled&&H&&(X==null?void 0:X.length)>0};
_.R.shouldShowCollapsedThreads=function(X,H){return this.commentThreadingEnabled&&!H&&X};
_.R.computeCommentViewModel=function(X){return _.f(X,Rkz)};
_.R.computeThreadRenderer=function(X){return _.f(X,lgY)};
_.R.computeIsContinuationItem=function(X){return!!this.computeContinuationItemRenderer(X)};
_.R.computeButtonRenderer=function(X){return _.f(X,_.yB)};
_.R.computeContinuationItemRenderer=function(X){return _.f(X,_.OF)};
_.R.computeShowButton=function(X){var H;return!((H=this.computeContinuationItemRenderer(X))==null||!H.button)};
_.R.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]]"}}}}}};
_.R.attached=function(){this.isShowRepliesVisible=!0};
_.R.dataChanged=function(){var X=this.expanderContents;X&&(X.hidden=!0);this.isLoading=!1};
_.R.endsInContinuation=function(X){return!!X&&X.length>0&&!!this.computeContinuationItemRenderer(X[X.length-1])};
_.R.computeShouldShowHideRepliesButton=function(X,H){return!X&&H};
_.R.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.R.isLoadingChanged=function(){this.isLoading&&!this.JSC$16350_spinnerEl&&(this.JSC$16350_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.mh(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 X;(X=this.contents)==null||X.classList.remove("reloading")}};
_.R.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var X=_.f(this.data.viewReplies,_.yB);X&&this.ytRendererBehavior.logExplicitClick(X);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.R.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var X=_.f(this.data.hideReplies,_.yB);X&&this.ytRendererBehavior.logExplicitClick(X);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.R.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var X=_.mh(this.hostElement).querySelector("#expander-contents");X&&(X.hidden=this.isShowRepliesVisible)}};
_.R.computeAlign=function(){if(this.modern){var X;return!((X=this.data)==null?0:X.viewRepliesCreatorThumbnail)}};
_.ja.Object.defineProperties(e9.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var X,H;return this.endsInContinuation((X=this.data)==null?void 0:X.contents)||this.commentThreadingEnabled&&this.endsInContinuation((H=this.data)==null?void 0:H.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var X;return(X=this.data)==null?void 0:X.teaserContents}}});
e9.prototype.isShowMoreChanged=e9.prototype.isShowMoreChanged;e9.prototype.isLoadingChanged=e9.prototype.isLoadingChanged;e9.prototype.triggerFirstContinuation=e9.prototype.triggerFirstContinuation;e9.prototype.dataChanged=e9.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.EO),_.N("design:type",Object)],e9.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],e9.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],e9.prototype,"modern",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],e9.prototype,"commentThreadingEnabled",void 0);_.T([_.g(),_.N("design:type",Boolean)],e9.prototype,"expanded",void 0);
_.T([_.g(),_.N("design:type",Function)],e9.prototype,"toggleExpanded",void 0);_.T([_.g(),_.N("design:type",Array)],e9.prototype,"addedReplies",void 0);_.T([_.g(),_.N("design:type",Boolean)],e9.prototype,"hovered",void 0);_.T([_.g(),_.N("design:type",Boolean)],e9.prototype,"topLevelThread",void 0);_.T([_.g(),_.N("design:type",Boolean)],e9.prototype,"isLoading",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],e9.prototype,"isShowRepliesVisible",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],e9.prototype,"useNewFormatting",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],e9.prototype,"engagementPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],e9.prototype,"isWatchGrid",void 0);_.T([_.g(),_.N("design:type",Object)],e9.prototype,"buttonOverrides",void 0);_.T([_.A2("#expander-contents"),_.N("design:type",HTMLElement)],e9.prototype,"expanderContents",void 0);
_.T([_.A2("ytd-continuation-item-renderer"),_.N("design:type",Object)],e9.prototype,"continuationItemRenderer",void 0);_.T([_.A2("#contents"),_.N("design:type",HTMLElement)],e9.prototype,"contents",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e9.prototype,"dataChanged",null);_.T([_.x("data.contents","data.subThreads.*"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],e9.prototype,"hasContinuation",null);
_.T([_.x("data.teaserContents"),_.N("design:type",Object),_.N("design:paramtypes",[])],e9.prototype,"subThreadTeasers",null);_.T([_.Le("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e9.prototype,"triggerFirstContinuation",null);_.T([_.Yh("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e9.prototype,"isLoadingChanged",null);
_.T([_.Yh("isShowRepliesVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e9.prototype,"isShowMoreChanged",null);_.T([_.sq({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],e9);
_.O(e9,"ytd-comment-replies-renderer",function(){if(hYz!==void 0)return hYz;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return hYz=X},{mode:1});var P8G;var yQ=function(){var X=_.a.apply(this,arguments)||this;X.isOpen=!1;X.commentDialog=null;X.useSmallAvatars=_.P("small_avatars_for_comments");X.useSmallAvatarsEngagementPanelOnly=_.P("small_avatars_for_comments_ep");X.placeholderFocusListener=null;X.hasOpenedDialog=!1;X.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return X};
_.S(yQ,_.a);_.R=yQ.prototype;_.R.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]]"}}}}}};
_.R.ready=function(){var X=this,H=_.mh(this.hostElement).querySelector("#placeholder-area"),l=_.mh(this.hostElement).querySelector("#simplebox-placeholder"),b=function(U){U.stopPropagation();U instanceof KeyboardEvent&&U.type==="keypress"&&U.keyCode!==13&&U.keyCode!==32||X.openDialog()};
this.placeholderFocusListener=b;l.addEventListener("focus",this.placeholderFocusListener);H.addEventListener("tap",b);H.addEventListener("keypress",b)};
_.R.maybeRemoveFocusEventListener=function(){var X;(X=this.data)!=null&&X.prepareAccountEndpoint&&!_.P("web_comments_simplebox_modal_focus_on_tap_ks")&&(X=_.mh(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(X.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.R.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.R.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.P("web_comment_simplebox_resolve_polymer_command_ks")?_.JF.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Lc(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);X&&this.ytdOpenPopupBehavior.openPopup(X);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(X),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.mh(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.R.onYtCommentboxDismiss=function(X){X.stopPropagation();this.isOpen=!1};
_.R.onCreateCommentAction=function(X){this.get("createCommentAction.contents",X)&&(this.isOpen=!1)};
_.R.computeCommentDialog=function(X){return{placeholderText:X.placeholderText,authorThumbnail:X.authorThumbnail,submitButton:X.submitButton,imageButton:X.imageButton,cancelButton:X.cancelButton,emojiButton:X.emojiButton,emojis:X.emojis,emojiPicker:X.emojiPicker,aadcGuidelinesStateEntityKey:X.aadcGuidelinesStateEntityKey,openAadcDialog:X.openAadcDialog,unicodeEmojisUrl:X.unicodeEmojisUrl}};
_.R.onHideIdentityChip=function(X){_.f(X,LYQ)&&this.set("data.placeholderText",_.f(X,LYQ).placeholderText)};
yQ.prototype.onYtCommentboxDismiss=yQ.prototype.onYtCommentboxDismiss;yQ.prototype.dataChanged=yQ.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],yQ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],yQ.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],yQ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],yQ.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],yQ.prototype,"isOpen",void 0);_.T([_.g(),_.N("design:type",Object)],yQ.prototype,"commentDialog",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],yQ.prototype,"engagementPanel",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],yQ.prototype,"useSmallAvatars",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],yQ.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],yQ.prototype,"enableCreationBox",void 0);_.T([_.g(),_.N("design:type",Boolean)],yQ.prototype,"showCreateDialog",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yQ.prototype,"dataChanged",null);_.T([_.Le("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yQ.prototype,"onYtCommentboxDismiss",null);_.T([_.sq({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],yQ);
_.O(yQ,"ytd-comment-simplebox-renderer",function(){if(P8G!==void 0)return P8G;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return P8G=X},{mode:1});var f4Q;_.wd("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var VQ=function(){var X=_.a.apply(this,arguments)||this;X.addHoverEffect=_.P("swatcheroo_comments_hover_effect");X.useSmallAvatars=_.P("small_avatars_for_comments");X.scrollingEnabled=_.P("web_comment_threading_scroll_on_collapse");X.isSubThread=!1;X.threadHovered=!1;X.expanded=!1;X.removed=!1;X.addedReplies=[];X.actionMap=X.configureActionMap();X.toggleExpanded=function(){X.expanded=!X.expanded;!X.expanded&&X.scrollingEnabled&&_.TP(X.hostElement,"yt-scroll-to-comment-element",[X.commentElement])};
return X};
_.S(VQ,_.a);_.R=VQ.prototype;_.R.configureActionMap=function(){return _.P("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"}:{}};
_.R.createCommentReplyAction=function(X){X=_.f(X,rJY);if(X!=null&&X.contents){var H=X.replyToCommentId,l=X.parentCommentId,b,U=(b=this.commentViewModel)==null?void 0:b.commentId;(U===H||U===l&&!H)&&this.maybeAttachReply(X.contents)}};
_.R.maybeAttachReply=function(X){var H,l;(((H=this.commentEntity)==null?void 0:(l=H.properties)==null?void 0:l.replyLevel)||0)>=3?_.QX(this.hostElement,"yt-pushed-create-comment-reply",X):this.attachReply(X)};
_.R.onPushedCreateCommentReply=function(X){var H,l;(((H=this.commentEntity)==null?void 0:(l=H.properties)==null?void 0:l.replyLevel)||0)>=3||(this.attachReply(X.detail),X.stopPropagation())};
_.R.attachReply=function(X){var H;((H=this.data)==null?0:H.replies)?(H=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+H+".continuationItemRenderer")?H===0?this.push("addedReplies",X):this.splice("data.replies.commentRepliesRenderer.subThreads",H,0,X):this.push("data.replies.commentRepliesRenderer.subThreads",X)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[X],viewReplies:{buttonRenderer:{text:_.Zi(_.XS("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.R.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.LJ(this.addedReplies))),this.set("addedReplies",[]))};
_.R.removeCommentAction=function(X){X=_.f(X,AJQ);var H=X==null?void 0:X.commentId,l;H&&((l=this.commentViewModel)==null?void 0:l.commentId)===H&&this.maybeRemoveComment(X.actionResult)};
_.R.banAuthorAction=function(X){X=_.f(X,cJz);var H=X==null?void 0:X.commentId,l;H&&((l=this.commentViewModel)==null?void 0:l.commentId)===H&&this.maybeRemoveComment(X.actionResult)};
_.R.hideReportedCommentAction=function(X){X=_.f(X,Bs_);var H=X==null?void 0:X.commentId,l;H&&((l=this.commentViewModel)==null?void 0:l.commentId)===H&&this.maybeRemoveComment(X.actionResult)};
_.R.maybeRemoveComment=function(X){X&&X.status==="STATUS_SUCCEEDED"&&(this.feedbackText=X.feedbackText||_.Zi("Reply removed"),this.removed=!0)};
_.R.onTap=function(X){if(this.addHoverEffect&&!this.engagementPanel&&!_.WS(_.t2(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||_.Lc({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.R.attached=function(){var X=this;this.isSubThread&&(this.expanded=!0);var H;(H=this.commentThreadHitbox)==null||H.addEventListener("mouseover",function(){X.threadHovered=!0});
var l;(l=this.commentThreadHitbox)==null||l.addEventListener("mouseout",function(){X.threadHovered=!1});
var b;(b=this.commentThreadHitbox)==null||b.addEventListener("click",function(){X.maybeToggleExpanded()})};
_.R.onDataChanged=function(){var X=_.P("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(X)&&this.set(X,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.R.maybeToggleExpanded=function(){var X,H,l,b=(X=this.data)==null?void 0:(H=X.replies)==null?void 0:(l=H.commentRepliesRenderer)==null?void 0:l.subThreads,U;(b==null?void 0:b.length)===1&&((U=_.f(b[0],_.OF))==null?0:U.button)&&this.expanded||this.toggleExpanded()};
_.ja.Object.defineProperties(VQ.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var X;return _.f((X=this.data)==null?void 0:X.commentViewModel,Rkz)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return _.P("web_delhi_comment_threads")&&!!((X=this.data)==null?0:(H=X.replies)==null?0:(l=H.commentRepliesRenderer)==null?0:l.subThreads)}}});
VQ.prototype.onDataChanged=VQ.prototype.onDataChanged;VQ.prototype.onTap=VQ.prototype.onTap;VQ.prototype.onAppendContinuationItemsActionFinished=VQ.prototype.onAppendContinuationItemsActionFinished;VQ.prototype.onPushedCreateCommentReply=VQ.prototype.onPushedCreateCommentReply;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],VQ.prototype,"ytdReduxBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],VQ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],VQ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],VQ.prototype,"addHoverEffect",void 0);_.T([_.g(),_.N("design:type",Object)],VQ.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],VQ.prototype,"useSmallAvatars",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],VQ.prototype,"scrollingEnabled",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],VQ.prototype,"isSubThread",void 0);_.T([_.A2(".thread-hitbox"),_.N("design:type",HTMLElement)],VQ.prototype,"commentThreadHitbox",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],VQ.prototype,"threadHovered",void 0);_.T([_.A2("#comment"),_.N("design:type",HTMLElement)],VQ.prototype,"commentElement",void 0);
_.T([_.g(),_.N("design:type",Object)],VQ.prototype,"expanded",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],VQ.prototype,"removed",void 0);_.T([_.g(),_.N("design:type",Object)],VQ.prototype,"feedbackText",void 0);_.T([_.g(),_.N("design:type",Array)],VQ.prototype,"addedReplies",void 0);_.T([_.g({selector:nZO,selectorArgs:["commentViewModel.commentKey"]}),_.N("design:type",Object)],VQ.prototype,"commentEntity",void 0);
_.T([_.Le("yt-pushed-create-comment-reply"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],VQ.prototype,"onPushedCreateCommentReply",null);_.T([_.Le("yt-append-continuation-items-action-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VQ.prototype,"onAppendContinuationItemsActionFinished",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],VQ.prototype,"commentViewModel",null);
_.T([_.x("data.replies.commentRepliesRenderer.subThreads"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],VQ.prototype,"hasSubThreading",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],VQ.prototype,"engagementPanel",void 0);_.T([_.Le("tap"),_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],VQ.prototype,"onTap",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VQ.prototype,"onDataChanged",null);_.T([_.sq({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],VQ);
_.O(VQ,"ytd-comment-thread-renderer",function(){if(f4Q!==void 0)return f4Q;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return f4Q=X},{mode:2});var pVC;var Pn=function(){var X=_.a.apply(this,arguments)||this;X.compactHeader=_.P("web_watch_compact_comments_header");X.hidePanelButton=!1;X.isPostSchedulingEnabled=_.P("enable_post_scheduling");X.hasFinishedStamping=!1;X.JSC$16373_handleOpenPostCommentDialogActionAfterStamp=!1;X.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return X};
_.S(Pn,_.a);_.R=Pn.prototype;
_.R.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"}}}};
_.R.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.R.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16373_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.R.onYtServiceRequestSent=function(X,H){if(!_.P("kevlar_command_handler")&&H.actions)for(X=0;X<H.actions.length;X++){var l=H.actions[X];_.f(l,unq)&&_.mh(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.f(l,unq))}};
_.R.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var X;if(this.getPrefilledBackstagePostDialog((X=this.data)==null?void 0:X.actions)){_.mh(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var H=_.mh(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;H&&_.N0(this,function(){H.focus();H.openDialog&&H.openDialog()})}}else this.hasActionsChange=!0};
_.R.computeIsBackstage=function(X){return X};
_.R.onYtCommentboxDismiss=function(){_.mh(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.R.removePrefilledDialog=function(X){if(X==null?0:X.actions){for(var H=X.actions.length-1;H>=0;H--){var l=void 0;((l=_.f(X.actions[H],Ghv))==null?0:l.dialog)&&delete X.actions[H]}this.set("data",void 0);this.set("data",X)}};
_.R.getPrefilledBackstagePostDialog=function(X){if(X)for(var H=0;H<X.length;H++){var l=X[H],b=void 0;if((b=_.f(l,Ghv))==null?0:b.dialog)return _.f(l,Ghv).dialog}return null};
_.R.computeBackstagePostDialog=function(X){return X&&(this.getPrefilledBackstagePostDialog(X.actions)||X.createRenderer)};
_.R.dataChanged=function(){if(this.data){var X=this.data.customEmojis,H=this.data.unicodeEmojisUrl;_.pL.clear();H&&_.MoC(_.pL,H);X&&_.pL.load(X)}};
_.R.handleSignalActionOpenPostCommentDialogAction=function(){var X=_.mh(this.hostElement).querySelector("ytd-comment-simplebox-renderer");X?X.openDialog():this.JSC$16373_handleOpenPostCommentDialogActionAfterStamp=!0};
_.R.onPostHeaderTap=function(){var X;((X=this.data)==null?0:X.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.ja.Object.defineProperties(Pn.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.P("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b,U,K,w;return!this.hidePanelButton&&_.P("kevlar_watch_comments_panel_button")&&((w=_.f((X=this.data)==null?void 0:(H=X.sortMenu)==null?void 0:(l=H.sortFilterSubMenuRenderer)==null?void 0:(b=l.subMenuItems)==null?void 0:(U=b[0])==null?void 0:(K=U.serviceEndpoint)==null?void 0:K.commandMetadata,_.Ip))==null?void 0:w.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.XS("MINIPLAYER_EXPAND_LABEL"),text:_.xM(_.XS("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Pn.prototype.dataChanged=Pn.prototype.dataChanged;Pn.prototype.onYtCommentboxDismiss=Pn.prototype.onYtCommentboxDismiss;Pn.prototype.observePrefilledBackstagePostDialog=Pn.prototype.observePrefilledBackstagePostDialog;Pn.prototype.onYtServiceRequestSent=Pn.prototype.onYtServiceRequestSent;Pn.prototype.onStampFinished=Pn.prototype.onStampFinished;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Pn.prototype,"ytComponentBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Pn.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Pn.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Pn.prototype,"compactHeader",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Pn.prototype,"engagementPanel",void 0);_.T([_.g(),_.N("design:type",Object)],Pn.prototype,"hidePanelButton",void 0);_.T([_.g({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Pn.prototype,"isBackstage",void 0);_.T([_.g({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.N("design:type",Object)],Pn.prototype,"backstagePostDialog",void 0);
_.T([_.g(),_.N("design:type",Object)],Pn.prototype,"isPostSchedulingEnabled",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data","showCommentsPanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pn.prototype,"useSpaceBetween",null);_.T([_.g({reflectToAttribute:!0}),_.x("data","hidePanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pn.prototype,"showCommentsPanelButton",null);
_.T([_.x("data","showCommentsPanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pn.prototype,"commentsPanelButtonData",null);_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pn.prototype,"onStampFinished",null);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],Pn.prototype,"onYtServiceRequestSent",null);
_.T([_.Yh("data.actions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pn.prototype,"observePrefilledBackstagePostDialog",null);_.T([_.Le("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Pn.prototype,"onYtCommentboxDismiss",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pn.prototype,"dataChanged",null);
_.T([_.sq({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Pn);
_.O(Pn,"ytd-comments-header-renderer",function(){if(pVC!==void 0)return pVC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return pVC=X},{mode:1});var SNF;var fh=function(){return _.a.apply(this,arguments)||this};
_.S(fh,_.a);_.T([_.g(),_.N("design:type",Object)],fh.prototype,"data",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.T([_.sq({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],fh);
_.O(fh,"ytd-destination-button-renderer",function(){if(SNF!==void 0)return SNF;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return SNF=X},{mode:1});var zYQ;var ph=function(){var X=_.a.apply(this,arguments)||this;X.isRichGrid=!1;X.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return X};
_.S(ph,_.a);_.R=ph.prototype;_.R.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.R.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.R.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.R.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var X;if((X=this.data)==null||!X.isExpanded){X=this.hostElement.clientWidth;var H;if(X&&(H=this.data)!=null&&H.destinationButtons){H=Math.floor((X+4)/214);X=this.data.destinationButtons.length;var l=Math.ceil(X/H);this.fullyVisibleRows=X%H===1&&l===2?1:Math.min(l,2);this.isShowMoreVisible=this.fullyVisibleRows<l}}}};
_.R.updateRichGridDestinationButtonsVisibility=function(){var X,H;if(this.isRichGrid&&((X=this.data)==null||!X.isExpanded)&&(H=this.data)!=null&&H.destinationButtons){X=this.richGridItemsPerRow+1;H=this.data.destinationButtons.length;var l=Math.ceil(H/X);this.fullyVisibleRows=H%X===1&&l===2?1:Math.min(l,2);this.isShowMoreVisible=this.fullyVisibleRows<l}};
_.R.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
ph.prototype.updateRichGridDestinationButtonsVisibility=ph.prototype.updateRichGridDestinationButtonsVisibility;_.T([_.g(),_.N("design:type",Object)],ph.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Number)],ph.prototype,"fullyVisibleRows",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ph.prototype,"isShowMoreVisible",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ph.prototype,"isRichGrid",void 0);
_.T([_.g({selector:_.qo,value:0}),_.N("design:type",Number)],ph.prototype,"richGridItemsPerRow",void 0);_.T([_.g(),_.N("design:type",Object)],ph.prototype,"gridStateActionMap",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],ph.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],ph.prototype,"ytdReduxBehavior",void 0);_.T([_.Yh("data","richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ph.prototype,"updateRichGridDestinationButtonsVisibility",null);_.T([_.sq({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],ph);
_.O(ph,"ytd-destination-shelf-renderer",function(){if(zYQ!==void 0)return zYQ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return zYQ=X},{mode:1});var ndC;var S9=function(){return _.a.apply(this,arguments)||this};
_.S(S9,_.a);S9.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],S9.prototype,"data",void 0);_.T([_.sq({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],S9);
_.O(S9,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(ndC!==void 0)return ndC;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return ndC=X},{mode:1});var kfG;var z5=function(){var X=_.a.apply(this,arguments)||this;X.disableAnimation=!1;X.isSlimlineSurvey=!1;X.isSlimlineSurveyFollowUp=!1;X.isShortsStyle=!1;return X};
_.S(z5,_.a);z5.prototype.onTap=function(X){X.preventDefault();this.data&&_.QX(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.ja.Object.defineProperties(z5.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 X,H,l,b,U;return((X=this.data)==null?0:X.checked)?(H=this.data)==null?void 0:(l=H.onStateIcon)==null?void 0:l.iconType:(b=this.data)==null?void 0:(U=b.defaultStateIcon)==null?void 0:U.iconType}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],z5.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],z5.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],z5.prototype,"disableAnimation",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],z5.prototype,"isSlimlineSurvey",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],z5.prototype,"isSlimlineSurveyFollowUp",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],z5.prototype,"isShortsStyle",void 0);_.T([_.x("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],z5.prototype,"isAnimatedIcon",null);
_.T([_.x("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Number),_.N("design:paramtypes",[])],z5.prototype,"iconSize",null);_.T([_.x("isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],z5.prototype,"isDarkTheme",null);_.T([_.x("data.checked"),_.N("design:type",Object),_.N("design:paramtypes",[])],z5.prototype,"icon",null);_.T([_.sq({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],z5);
_.O(z5,"ytd-rating-survey-option-renderer",function(){if(kfG!==void 0)return kfG;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return kfG=X},{mode:2});var xTt;var nh=function(){var X=_.a.apply(this,arguments)||this;X.firstResponseText=null;X.lastResponseText=null;X.selectedNonStarOption=null;X.hideOptions=!1;X.hideUndoButton=!0;X.disableAnimation=!1;X.showResponseRangeText=!1;X.selectedRatingIndex=-1;X.isSlimlineSurvey=!1;X.isSlimlineSurveyFollowUp=!1;X.isShortsStyle=!1;X.slimlineSurveyRatingSelectedIndex=-1;return X};
_.S(nh,_.a);_.R=nh.prototype;_.R.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.R.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.R.onOptionChange=function(X,H){var l=this;X=H.onStateIcon&&H.defaultStateIcon&&H.onStateIcon.iconType===H.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(w,d){w.responseText===H.responseText?l.isSlimlineSurvey?(l.selectedRatingIndex=d,l.ytdReduxBehavior.dispatch(aG6(d))):(l.setSurveyOptionValue(d,!0,"checked"),l.setSurveyOptionValue(d,!0,"selected")):(l.setSurveyOptionValue(d,!1,"checked"),l.setSurveyOptionValue(d,
!1,"selected"))});
else if(X)this.selectedNonStarOption=H,this.hideOptions=!0;else{var b=this.ytRendererBehavior.getSimpleString(H.responseText),U=!0;this.getOptionRenderers().forEach(function(w,d){l.setSurveyOptionValue(d,U,"checked");l.setSurveyOptionValue(d,!1,"selected");l.ytRendererBehavior.getSimpleString(w.responseText)===b&&(U=!1,l.setSurveyOptionValue(d,!0,"selected"))})}X=H.responseEndpoint;
var K;H.followUpCommand&&(K=_.f(H.followUpCommand,S79));this.isSlimlineSurvey?(this.resetComponent(),_.TP(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.TP(this.hostElement,"ytd-inline-survey-rating-select-action",[X,K])};
_.R.showSelectedOption=function(){var X=this;_.Ss.addJob(function(){var H=X.getOptionRenderers()[X.slimlineSurveyRatingSelectedIndex];X.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),H)},8,100)};
_.R.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(X){var H;return(H=_.f(X,nsY))!=null?H:{}}):[]};
_.R.onUndoClick=function(){this.resetComponent();_.TP(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.R.setSurveyOptionValue=function(X,H,l){this.notifyPath("data.ratings."+X+".ratingSurveyOptionRenderer."+l);this.set("data.ratings."+X+".ratingSurveyOptionRenderer."+l,H)};
_.R.resetComponent=function(){var X=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var H=this.getOptionRenderers(),l,b;this.firstResponseText=(b=(l=H[0])==null?void 0:l.responseText)!=null?b:null;var U,K;this.lastResponseText=(K=(U=H[H.length-1])==null?void 0:U.responseText)!=null?K:null;H.forEach(function(w,d){X.setSurveyOptionValue(d,!1,"checked");X.setSurveyOptionValue(d,!1,"selected")})};
_.ja.Object.defineProperties(nh.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
nh.prototype.onOptionChange=nh.prototype.onOptionChange;nh.prototype.dataChanged=nh.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],nh.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],nh.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],nh.prototype,"firstResponseText",void 0);_.T([_.g(),_.N("design:type",Object)],nh.prototype,"lastResponseText",void 0);_.T([_.g(),_.N("design:type",Object)],nh.prototype,"selectedNonStarOption",void 0);_.T([_.g(),_.N("design:type",Object)],nh.prototype,"hideOptions",void 0);_.T([_.g(),_.N("design:type",Object)],nh.prototype,"hideUndoButton",void 0);_.T([_.g(),_.N("design:type",Object)],nh.prototype,"disableAnimation",void 0);
_.T([_.g(),_.N("design:type",Object)],nh.prototype,"showResponseRangeText",void 0);_.T([_.g(),_.N("design:type",Object)],nh.prototype,"selectedRatingIndex",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],nh.prototype,"isSlimlineSurvey",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],nh.prototype,"isSlimlineSurveyFollowUp",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],nh.prototype,"isShortsStyle",void 0);_.T([_.g({selector:function(X){return X.ui.slimlineSurveyRatingSelectedIndex}}),
_.N("design:type",Object)],nh.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.T([_.x("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nh.prototype,"isSingleSelect",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nh.prototype,"dataChanged",null);
_.T([_.Le("ytd-rating-survey-option-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],nh.prototype,"onOptionChange",null);_.T([_.sq({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],nh);
_.O(nh,"ytd-rating-survey-renderer",function(){if(xTt!==void 0)return xTt;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return xTt=X},{mode:1});var DTQ;var tTG;var W8t;var Qab=(Is.FIRSTDAYOFWEEK+1)%7,EdQ=function(X,H,l,b){var U="";if(b.selection&&i4l(b.selection))J5(X,b.selection)&&(U+=" selected");else if(b.selection&&vzb(b.selection)){var K=b.selection.selectionState||"START_DATE";J5(X,b.selection.start)&&(U+=" period-start ",K==="START_DATE"&&(U+="selected"));J5(X,b.selection.end)&&(U+=" period-end ",K==="END_DATE"&&(U+="selected"));LS(X,b.selection.start)||LS(b.selection.end,X)||(U+=" highlighted")}if(LS(H,b.start)||LS(b.end,H))U+=" disabled";b.circleToday&&
J5(H,l)&&(U+=" today");return U};var k5=function(){return _.a.apply(this,arguments)||this};
_.S(k5,_.a);_.R=k5.prototype;_.R.attached=function(){var X=this;_.N0(this,function(){X.JSC$16407_calendarMain.scrollHeight>0&&(X.calendarConfig.selection?X.scrollToDate(O4k(X.calendarConfig.selection)):X.scrollToDate(X.calendarConfig.end))})};
_.R.updateSelection=function(X){X=TPl(Object.assign({},this.calendarConfig,{selection:X}),EdQ);this.splice.apply(this,["renderData.months",0,X.length].concat(_.LJ(X)))};
_.R.scrollToDate=function(X){this.renderData&&(X=NPN(X,this.renderData),X!==void 0&&this.JSC$16407_calendarMain.scrollToIndex(X))};
_.R.scrollToNextMonth=function(){this.JSC$16407_calendarMain.scrollToIndex(this.JSC$16407_calendarMain.firstVisibleIndex+1)};
_.R.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)};
_.R.handleDayClick=function(X){_.TP(this.hostElement,"ytd-calendar-date-clicked",[X.model.day.date])};
_.R.handleDayMouseDown=function(X){X.preventDefault();_.TP(this.hostElement,"ytd-calendar-date-mousedown",[X.model.day.date])};
_.R.handleDayMouseUp=function(X){_.TP(this.hostElement,"ytd-calendar-date-mouseup",[X.model.day.date])};
_.R.handleDayMouseEnter=function(X){X.preventDefault();_.TP(this.hostElement,"ytd-calendar-date-mouseenter",[X.model.day.date])};
_.R.handleDayMouseLeave=function(X){_.TP(this.hostElement,"ytd-calendar-date-mouseleave",[X.model.day.date])};
_.ja.Object.defineProperties(k5.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var X=this.calendarConfig,H=EdQ;H=H===void 0?EdQ:H;for(var l=[],b=0;b<7;b++)l.push(Is.NARROWWEEKDAYS[(b+Qab)%7]);return{months:TPl(X,H),daysOfWeekLabel:l}}}});
_.T([_.g(),_.N("design:type",Object)],k5.prototype,"calendarConfig",void 0);_.T([_.A2("#calendar-main"),_.N("design:type",Object)],k5.prototype,"JSC$16407_calendarMain",void 0);_.T([_.x("calendarConfig"),_.N("design:type",Object),_.N("design:paramtypes",[])],k5.prototype,"renderData",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],k5);
_.O(k5,"ytd-scrollable-calendar",function(){if(W8t!==void 0)return W8t;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return W8t=X},{mode:2});var gd_;var Gfq;var x5=function(){var X=_.a.apply(this,arguments)||this;X.hideCharCounter=!1;X.hideLabel=!1;X.noLabelFloat=!1;X.autoValidate=!0;X.invalid=!1;X.disabled=!1;X.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return X};
_.S(x5,_.a);_.R=x5.prototype;_.R.reset=function(X){this.value=X&&this.data?this.data.value=X:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.R.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.R.focusTextInput=function(){this.input.focus()};
_.R.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()};
_.R.valueChanged=function(){var X,H;if(((X=this.data)==null?0:X.value)||((H=this.data)==null?void 0:H.value)==="")this.value=this.data.value;else{var l;((l=this.data)==null?void 0:l.value)!==void 0||this.value||(this.value="")}};
_.R.computeLabel=function(X,H){return H?"":_.D8(X)};
_.R.computeAriaLabel=function(X,H){return H?_.D8(X):""};
_.R.computeErrorMessage=function(X,H,l,b){return!X&&H?l||this.strings.REQUIRED_LABEL:_.Z$Q(_.D8(b))};
_.R.computeType=function(X){return X==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.R.onTextValueChanged=function(X){this.value=X.detail.value;var H;(H=this.onValueChanged)==null||H.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.R.handleUpdateTextInputFormFieldRendererCommand=function(X){(X=_.f(X,rsG))&&this.data&&this.data.id===X.id&&(X.invalid!==void 0&&(this.invalid=X.invalid),X.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",X.invalidValueErrorMessage))};
_.R.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("value-changed",this.value))};
_.R.updateInvalidFromBinding=function(X){this.invalid=X.detail.value};
_.ja.Object.defineProperties(x5.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var X;return!((X=this.data)==null||!X.isMultiline)}}});
x5.prototype.valueChangedForBinding=x5.prototype.valueChangedForBinding;x5.prototype.valueChanged=x5.prototype.valueChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],x5.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],x5.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],x5.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],x5.prototype,"value",void 0);_.T([_.g(),_.N("design:type",String)],x5.prototype,"pattern",void 0);_.T([_.g(),_.N("design:type",String)],x5.prototype,"errorMessage",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],x5.prototype,"componentStyle",void 0);_.T([_.g(),_.N("design:type",Object)],x5.prototype,"hideCharCounter",void 0);
_.T([_.g(),_.N("design:type",Object)],x5.prototype,"hideLabel",void 0);_.T([_.g(),_.N("design:type",Object)],x5.prototype,"noLabelFloat",void 0);_.T([_.g(),_.N("design:type",Function)],x5.prototype,"onValueChanged",void 0);_.T([_.g(),_.N("design:type",Boolean)],x5.prototype,"isMultilineOverride",void 0);_.T([_.g(),_.N("design:type",Object)],x5.prototype,"autoValidate",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],x5.prototype,"invalid",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],x5.prototype,"disabled",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],x5.prototype,"enableOverlayTheme",void 0);_.T([_.g({value:{REQUIRED_LABEL:_.XS("REQUIRED_LABEL",void 0,"Required")}}),_.N("design:type",Object)],x5.prototype,"strings",void 0);_.T([_.A2("#input"),_.N("design:type",Object)],x5.prototype,"input",void 0);
_.T([_.x("data","isMultilineOverride"),_.N("design:type",Object),_.N("design:paramtypes",[])],x5.prototype,"isMultiline",null);_.T([_.oi("data.value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],x5.prototype,"valueChanged",null);_.T([_.Yh("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],x5.prototype,"valueChangedForBinding",null);_.T([_.qR({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],x5);
_.O(x5,"yt-text-input-form-field-renderer",function(){if(Gfq===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;gd_===void 0&&(gd_=document.createElement("template"));var b=gd_;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Gfq=X}X=Gfq;return X},{mode:2});var D_=function(){var X=_.a.apply(this,arguments)||this;X.data=void 0;X.selectionState="START_DATE";X.isStartDateInvalid=!1;X.isEndDateInvalid=!1;X.autoapply=!1;X.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 X};
_.S(D_,_.a);_.R=D_.prototype;_.R.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"}}}}};
_.R.focus=function(){this.startDateInput.focus()};
_.R.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Y$(this.data.selection.start),end:Y$(this.data.selection.end)})};
_.R.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.R.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Hp(this.selectionState)}};
_.R.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.R.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.R.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.R.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var X=this.calendar.calendarConfig,H=X.end;X=jaL({start:X.start,end:this.endDate||H},this.startDateInput.value||"");this.isStartDateInvalid=!X.isValid;X.isValid&&(X=X.value,this.selection=this.endDate?{start:X,end:this.endDate}:X,this.calendar.scrollToDate(X));this.updateInvalidState()}};
_.R.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var X=this.calendar.calendarConfig,H=X.start;X=jaL({start:this.startDate||H,end:X.end},this.endDateInput.value||"");this.isEndDateInvalid=!X.isValid;X.isValid&&(X=X.value,this.selection={start:this.startDate,end:X},this.calendar.scrollToDate(X));this.updateInvalidState()}};
_.R.handleCalendarDateClicked=function(X){var H=this.selection&&O4k(this.selection),l=this.selection&&mAm(this.selection);H&&!LS(X,H)&&this.selectionState==="END_DATE"?(this.selection={start:H,end:X},this.selectionState="START_DATE"):(l&&!LS(l,X)?this.selection={start:X,end:l}:this.selection=X,this.selectionState="END_DATE")};
_.R.handleCalendarDateMouseDown=function(X){this.selection&&!i4l(this.selection)&&(this.dragPivot=J5(X,this.selection.start)?this.selection.end:J5(X,this.selection.end)?this.selection.start:X)};
_.R.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.R.handleCalendarDateMouseEnter=function(X){this.dragPivot&&(this.selection={start:function(H,l){return LS(H,l)?H:l}(this.dragPivot,X),
end:function(H,l){return LS(H,l)?l:H}(this.dragPivot,X)},this.dragPivot||(this.selectionState="START_DATE"))};
_.R.handleCalendarDateMouseLeave=function(){};
_.R.handleCalendarSubmitDateRange=function(){this.selection&&!i4l(this.selection)&&_.TP(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.R.updateInvalidState=function(){var X=function(H,l){l?H.setAttribute("invalid",""):H.removeAttribute("invalid")};
X(this.startDateInput,this.isStartDateInvalid);X(this.endDateInput,this.isEndDateInvalid)};
_.R.updateDateStrings=function(){this.selection&&(i4l(this.selection)?Z4b(this.selection):(Z4b(this.selection.start),Z4b(this.selection.end)))};
_.R.updateCalendarSelection=function(X){this.calendar.updateSelection(Object.assign({},X,{selectionState:this.selectionState}))};
_.R.updateIsStartDateInvalidFromBinding=function(X){this.isStartDateInvalid=X.detail.value};
_.R.updateIsEndDateInvalidFromBinding=function(X){this.isEndDateInvalid=X.detail.value};
_.R.updateStartDateStringFromBinding=function(){};
_.R.updateEndDateStringFromBinding=function(){};
_.ja.Object.defineProperties(D_.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Y$(this.data.dateRangeStart),end:Y$(this.data.dateRangeEnd),selection:{start:Y$(this.data.selection.start),end:Y$(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&O4k(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&mAm(this.selection)}}});
D_.prototype.resetTextboxes=D_.prototype.resetTextboxes;D_.prototype.observeSelection=D_.prototype.observeSelection;D_.prototype.dataChanged=D_.prototype.dataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],D_.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],D_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.A2("#calendar"),_.N("design:type",Object)],D_.prototype,"calendar",void 0);
_.T([_.A2("#start-date"),_.N("design:type",Object)],D_.prototype,"startDateInput",void 0);_.T([_.A2("#end-date"),_.N("design:type",Object)],D_.prototype,"endDateInput",void 0);_.T([_.g(),_.N("design:type",Object)],D_.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],D_.prototype,"selection",void 0);_.T([_.g(),_.N("design:type",String)],D_.prototype,"selectionState",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],D_.prototype,"calendarConfig",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],D_.prototype,"errorMessage",null);_.T([_.x("selection"),_.N("design:type",Object),_.N("design:paramtypes",[])],D_.prototype,"startDate",null);_.T([_.x("selection"),_.N("design:type",Object),_.N("design:paramtypes",[])],D_.prototype,"endDate",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D_.prototype,"dataChanged",null);
_.T([_.Yh("selection","selectionState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D_.prototype,"observeSelection",null);_.T([_.Yh("selectionState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D_.prototype,"resetTextboxes",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],D_);
_.O(D_,"ytd-date-period-picker-renderer",function(){if(tTG!==void 0)return tTG;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return tTG=X},{mode:1});var tu=function(){var X=_.a.apply(this,arguments)||this;var H={};X.actionMap=(H["ytd-date-period-picker-apply"]="handleDateRangeUpdated",H);return X};
_.S(tu,_.a);tu.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
tu.prototype.handleDateRangeUpdated=function(){};
_.T([_.g(),_.N("design:type",Object)],tu.prototype,"data",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],tu.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],tu.prototype,"rendererstamperBehavior",void 0);_.T([_.sq({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],tu);
_.O(tu,"ytd-report-history-section-header-renderer",function(){if(DTQ!==void 0)return DTQ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return DTQ=X},{mode:1});var a49;var Z19;var i1Q;var Wn=function(){return _.a.apply(this,arguments)||this};
_.S(Wn,_.a);_.ja.Object.defineProperties(Wn.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?0:(H=X.icon)==null?0:H.iconType)?_.jL(this.data.icon.iconType):""}}});
_.T([_.g(),_.N("design:type",Object)],Wn.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Wn.prototype,"icon",null);_.T([_.sq({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Wn);
_.O(Wn,"ytd-report-history-table-text-cell-renderer",function(){if(i1Q!==void 0)return i1Q;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return i1Q=X},{mode:1});var E0=function(){return _.a.apply(this,arguments)||this};
_.S(E0,_.a);E0.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],E0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],E0.prototype,"data",void 0);_.T([_.sq({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],E0);
_.O(E0,"ytd-report-history-table-reason-cell-renderer",function(){if(Z19!==void 0)return Z19;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Z19=X},{mode:1});var g7=function(){return _.a.apply(this,arguments)||this};
_.S(g7,_.a);g7.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],g7.prototype,"rendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],g7.prototype,"data",void 0);_.T([_.sq({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],g7);
_.O(g7,"ytd-report-history-table-cell-renderer",function(){if(a49!==void 0)return a49;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
return a49=X},{mode:1});var vdY;var G5=function(){var X=_.a.apply(this,arguments)||this;X.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 X};
_.S(G5,_.a);G5.prototype.onDataChanged=function(){var X;if((X=this.data)==null?0:X.style)this.componentStyle=this.getStyleName(this.data.style)};
G5.prototype.getCellForColumn=function(X){return this.cells.find(function(H){var l;return((l=_.f(H==null?void 0:H.cell,D8Q)||_.f(H==null?void 0:H.cell,x89))==null?void 0:l.columnId)===X.type})};
G5.prototype.getClassForColumn=function(X){switch(X){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
G5.prototype.getStyleName=function(X){switch(X){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.ja.Object.defineProperties(G5.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var X;return(((X=this.data)==null?void 0:X.cells)||[]).map(function(H){return _.f(H,kUQ)})}}});
G5.prototype.onDataChanged=G5.prototype.onDataChanged;_.T([_.g(),_.N("design:type",Object)],G5.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Array)],G5.prototype,"columnRenderData",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],G5.prototype,"componentStyle",void 0);_.T([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],G5.prototype,"cells",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G5.prototype,"onDataChanged",null);_.T([_.sq({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],G5);
_.O(G5,"ytd-report-history-table-row-renderer",function(){if(vdY!==void 0)return vdY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vdY=X},{mode:1});var O1Q;var mT_;var rcN={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},JcK={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var ag=function(){return _.a.apply(this,arguments)||this};
_.S(ag,_.a);ag.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"}}}}}};
ag.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.ja.Object.defineProperties(ag.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.columns)?HMy(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Ach(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var X=this.tableSpec,H=rcN;H=H===void 0?JcK:H;H=X4h(X.columnDimensions,X.columnsToShow||[],H);X=0;H=_.C(H);for(var l=H.next();!l.done;l=H.next())l=l.value,X+=l.minWidth+l.paddingLeft+l.paddingRight;return X}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.T([_.k(_.EO),_.N("design:type",Object)],ag.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ag.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ag.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ag.prototype,"tableSpec",null);_.T([_.x("tableSpec"),_.N("design:type",Array),_.N("design:paramtypes",[])],ag.prototype,"columnRenderData",null);
_.T([_.x("tableSpec"),_.N("design:type",Number),_.N("design:paramtypes",[])],ag.prototype,"totalMinWidth",null);_.T([_.x("totalMinWidth"),_.N("design:type",String),_.N("design:paramtypes",[])],ag.prototype,"tableWidthStyle",null);_.T([_.sq({is:"ytd-table-renderer",disableElementRegistration:!0})],ag);
_.O(ag,"ytd-table-renderer",function(){if(mT_!==void 0)return mT_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return mT_=X},{mode:1});var Z_=function(){return _.a.apply(this,arguments)||this};
_.S(Z_,_.a);Z_.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Z_.prototype,"data",void 0);_.T([_.sq({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Z_);
_.O(Z_,"ytd-report-reason-history-modal-renderer",function(){if(O1Q!==void 0)return O1Q;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return O1Q=X},{mode:1});var QN_;var TaF;var NaY;var iV=function(){return _.a.apply(this,arguments)||this};
_.S(iV,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],iV.prototype,"data",void 0);_.T([_.sq({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],iV);
_.O(iV,"ytd-profile-column-stats-entry-renderer",function(){if(NaY!==void 0)return NaY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return NaY=X},{mode:1});var cM6;var vn=function(){return _.a.apply(this,arguments)||this};
_.S(vn,_.a);vn.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],vn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],vn.prototype,"data",void 0);_.T([_.sq({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],vn);
_.O(vn,"ytd-profile-column-stats-renderer",function(){if(cM6!==void 0)return cM6;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return cM6=X},{mode:1});var jN9;var O0=function(){return _.a.apply(this,arguments)||this};
_.S(O0,_.a);_.ja.Object.defineProperties(O0.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.useThumbnailSize)return 80;var H,l;X=(H=this.data)==null?void 0:(l=H.thumbnail)==null?void 0:l.thumbnails;var b;return X&&((b=X[0])==null?void 0:b.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.useThumbnailSize)return 80;var H,l;X=(H=this.data)==null?void 0:(l=H.thumbnail)==null?void 0:l.thumbnails;var b;return X&&((b=X[0])==null?void 0:b.height)||80}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],O0.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],O0.prototype,"componentStyle",void 0);_.T([_.x("data.useThumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],O0.prototype,"thumbnailWidth",null);
_.T([_.x("data.useThumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],O0.prototype,"thumbnailHeight",null);_.T([_.sq({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],O0);
_.O(O0,"ytd-profile-column-user-info-renderer",function(){if(jN9!==void 0)return jN9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return jN9=X},{mode:1});var mJ=function(){return _.a.apply(this,arguments)||this};
_.S(mJ,_.a);mJ.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],mJ.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],mJ.prototype,"componentStyle",void 0);_.T([_.sq({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],mJ);
_.O(mJ,"ytd-profile-column-renderer",function(){if(TaF!==void 0)return TaF;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return TaF=X},{mode:1});var QQ=function(){var X=_.a.apply(this,arguments)||this;X.componentStyle="NON_CENTERED_PROFILE";return X};
_.S(QQ,_.a);QQ.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
QQ.prototype.getIcon=function(X){return X?"settings:"+X.toLowerCase():null};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],QQ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],QQ.prototype,"data",void 0);_.T([_.sq({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],QQ);
_.O(QQ,"ytd-page-introduction-renderer",function(){if(QN_!==void 0)return QN_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return QN_=X},{mode:1});var rM6;var T5=function(){return _.a.apply(this,arguments)||this};
_.S(T5,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],T5.prototype,"data",void 0);_.T([_.sq({is:"ytd-report-description-renderer",disableElementRegistration:!0})],T5);
_.O(T5,"ytd-report-description-renderer",function(){if(rM6!==void 0)return rM6;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return rM6=X},{mode:1});var JMQ;var L8Q;var Nx=function(){return _.a.apply(this,arguments)||this};
_.S(Nx,_.a);Nx.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Nx.prototype,"data",void 0);_.T([_.sq({is:"ytd-video-report-renderer",disableElementRegistration:!0})],Nx);
_.O(Nx,"ytd-video-report-renderer",function(){if(L8Q!==void 0)return L8Q;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return L8Q=X},{mode:1});var YNz;_.wd("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.wd("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var cn=function(){return _.a.apply(this,arguments)||this};
_.S(cn,_.a);cn.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]]"}}}}}};
cn.prototype.computeMessageStyle=function(X){return X};
cn.prototype.computeButtonOverride=function(X){var H;if((X==null?0:(H=X.style)==null?0:H.value)&&X.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],cn.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],cn.prototype,"shelf",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],cn.prototype,"panel",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.N("design:type",Boolean)],cn.prototype,"componentStyle",void 0);_.T([_.g({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],cn.prototype,"buttonOverride",void 0);_.T([_.sq({is:"ytd-message-renderer",disableElementRegistration:!0})],cn);
_.O(cn,"ytd-message-renderer",function(){if(YNz!==void 0)return YNz;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return YNz=X},{mode:1});var j9=function(){return _.a.apply(this,arguments)||this};
_.S(j9,_.a);j9.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"}}}};
j9.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
j9.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.ja.Object.defineProperties(j9.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var X,H;return!!(((X=this.data)==null?0:X.header)&&((H=this.data)==null?0:H.table))}}});
j9.prototype.onRequestError=j9.prototype.onRequestError;_.T([_.k(_.EO),_.N("design:type",Object)],j9.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],j9.prototype,"data",void 0);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],j9.prototype,"isUnifiedReportHistory",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j9.prototype,"onRequestError",null);_.T([_.sq({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],j9);
_.O(j9,"ytd-report-history-section-renderer",function(){if(JMQ!==void 0)return JMQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return JMQ=X},{mode:1});var I4D;var r7=function(){var X=_.a.apply(this,arguments)||this;X.answerExpanded=!1;return X};
_.S(r7,_.a);r7.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],r7.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],r7.prototype,"answerExpanded",void 0);_.T([_.sq({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],r7);
_.O(r7,"ytd-handles-claiming-faq-renderer",function(){if(I4D!==void 0)return I4D;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return I4D=X},{mode:1});var AMF;var XYH=function(){return _.a.apply(this,arguments)||this};
_.S(XYH,_.a);_.T([_.g(),_.N("design:type",Object)],XYH.prototype,"data",void 0);_.T([_.sq({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],XYH);
_.O(XYH,"ytd-handles-claiming-faq-section-renderer",function(){if(AMF!==void 0)return AMF;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return AMF=X},{mode:1});var HoD;var Ju=function(){var X=_.a.apply(this,arguments)||this;X.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";X.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";X.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";X.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";X.leftSquiggly=X.leftSquigglyLight;X.rightSquiggly=X.rightSquigglyLight;
X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};X.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return X};
_.S(Ju,_.a);_.R=Ju.prototype;_.R.updateLeftSquigglyStyle=function(){_.j4(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.R.updateRightSquigglyStyle=function(){_.j4(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.R.ready=function(){var X=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(X)};
_.R.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.set("isDarkTheme",X),X?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Ju.prototype.updateRightSquigglyStyle=Ju.prototype.updateRightSquigglyStyle;Ju.prototype.updateLeftSquigglyStyle=Ju.prototype.updateLeftSquigglyStyle;_.T([_.g(),_.N("design:type",Object)],Ju.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Ju.prototype,"isDarkTheme",void 0);_.T([_.g(),_.N("design:type",String)],Ju.prototype,"leftSquiggly",void 0);_.T([_.g(),_.N("design:type",String)],Ju.prototype,"rightSquiggly",void 0);
_.T([_.Yh("leftSquiggly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ju.prototype,"updateLeftSquigglyStyle",null);_.T([_.Yh("rightSquiggly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ju.prototype,"updateRightSquigglyStyle",null);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Ju.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ju.prototype,"actionButtonOverride",void 0);_.T([_.sq({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Ju);
_.O(Ju,"ytd-handles-claiming-header-renderer",function(){if(HoD!==void 0)return HoD;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return HoD=X},{mode:1});var ljH;var Lh=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};X.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";X.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";X.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";X.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
X.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";X.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";X.image0SquigglyBackground=X.image0LightSquigglyBackground;X.image1SquigglyBackground=X.image1LightSquigglyBackground;X.image3SquigglyBackground=X.image3LightSquigglyBackground;return X};
_.S(Lh,_.a);_.R=Lh.prototype;_.R.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.R.onDataChanged=function(){this.updateTitleAndImages()};
_.R.onThemeChanged=function(){this.updateTitleAndImages()};
_.R.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.isDarkTheme=X)};
_.R.updateImage0SquigglyBackground=function(){_.j4(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.R.updateImage1SquigglyBackground=function(){_.j4(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.R.updateImage3SquigglyBackground=function(){_.j4(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.R.updateTitleAndImages=function(){var X,H;((X=this.data)==null?void 0:(H=X.titleImages)==null?void 0:H.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
Lh.prototype.updateImage3SquigglyBackground=Lh.prototype.updateImage3SquigglyBackground;Lh.prototype.updateImage1SquigglyBackground=Lh.prototype.updateImage1SquigglyBackground;Lh.prototype.updateImage0SquigglyBackground=Lh.prototype.updateImage0SquigglyBackground;Lh.prototype.onThemeChanged=Lh.prototype.onThemeChanged;Lh.prototype.onDataChanged=Lh.prototype.onDataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Lh.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Lh.prototype,"isDarkTheme",void 0);_.T([_.g(),_.N("design:type",Object)],Lh.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Lh.prototype,"title0",void 0);_.T([_.g(),_.N("design:type",Object)],Lh.prototype,"title1",void 0);_.T([_.g(),_.N("design:type",Object)],Lh.prototype,"title2",void 0);_.T([_.g(),_.N("design:type",Object)],Lh.prototype,"title3",void 0);
_.T([_.g(),_.N("design:type",Object)],Lh.prototype,"title4",void 0);_.T([_.g(),_.N("design:type",Object)],Lh.prototype,"image0",void 0);_.T([_.g(),_.N("design:type",Object)],Lh.prototype,"image1",void 0);_.T([_.g(),_.N("design:type",Object)],Lh.prototype,"image2",void 0);_.T([_.g(),_.N("design:type",Object)],Lh.prototype,"image3",void 0);_.T([_.g(),_.N("design:type",Object)],Lh.prototype,"image4",void 0);_.T([_.g(),_.N("design:type",String)],Lh.prototype,"image0SquigglyBackground",void 0);
_.T([_.g(),_.N("design:type",String)],Lh.prototype,"image1SquigglyBackground",void 0);_.T([_.g(),_.N("design:type",String)],Lh.prototype,"image3SquigglyBackground",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lh.prototype,"onDataChanged",null);_.T([_.Yh("isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lh.prototype,"onThemeChanged",null);
_.T([_.Yh("image0SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lh.prototype,"updateImage0SquigglyBackground",null);_.T([_.Yh("image1SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lh.prototype,"updateImage1SquigglyBackground",null);
_.T([_.Yh("image3SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lh.prototype,"updateImage3SquigglyBackground",null);_.T([_.sq({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Lh);
_.O(Lh,"ytd-handles-claiming-title-images-section-renderer",function(){if(ljH!==void 0)return ljH;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ljH=X},{mode:1});var oA_;var Y5=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(Y5,_.a);Y5.prototype.ready=function(){var X=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(X)};
Y5.prototype.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&this.set("isDarkTheme",X)};
Y5.prototype.onCopyButtonClick=function(){var X=this,H,l,b;return _.h(function(U){return(H=X.data)!=null&&H.primaryChannelUrl?U.yield(navigator.clipboard.writeText(((l=X.data)==null?0:l.encodedChannelUrl)?X.data.encodedChannelUrl:"https://"+_.D8((b=X.data)==null?void 0:b.primaryChannelUrl)),0):U.jumpTo(0)})};
_.T([_.g(),_.N("design:type",Object)],Y5.prototype,"data",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Y5.prototype,"ytComponentBehavior",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Y5.prototype,"isDarkTheme",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Y5.prototype,"ytActionHandlerBehavior",void 0);_.T([_.sq({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Y5);
_.O(Y5,"ytd-handles-claiming-update-social-renderer",function(){if(oA_!==void 0)return oA_;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return oA_=X},{mode:1});var boH;var Ig=function(){var X=_.a.apply(this,arguments)||this;X.JSC$16501_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";X.JSC$16501_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};X.squigglyBackground=X.JSC$16501_squigglyBackgroundLight;return X};
_.S(Ig,_.a);Ig.prototype.updateSquigglyBackgroundStyle=function(){_.j4(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Ig.prototype.ready=function(){var X=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",X);this.squigglyBackground=X?this.JSC$16501_squigglyBackgroundDark:this.JSC$16501_squigglyBackgroundLight};
Ig.prototype.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.set("isDarkTheme",X),this.squigglyBackground=X?this.JSC$16501_squigglyBackgroundDark:this.JSC$16501_squigglyBackgroundLight)};
Ig.prototype.updateSquigglyBackgroundStyle=Ig.prototype.updateSquigglyBackgroundStyle;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ig.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Ig.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ig.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Ig.prototype,"isDarkTheme",void 0);_.T([_.g(),_.N("design:type",String)],Ig.prototype,"squigglyBackground",void 0);_.T([_.Yh("squigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ig.prototype,"updateSquigglyBackgroundStyle",null);_.T([_.sq({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Ig);
_.O(Ig,"ytd-handles-claiming-vanity-info-renderer",function(){if(boH!==void 0)return boH;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return boH=X},{mode:1});var U1v;var Au=function(){var X=_.a.apply(this,arguments)||this;X.JSC$16504_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";X.JSC$16504_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";X.squigglyBackground=X.JSC$16504_squigglyBackgroundLight;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(Au,_.a);_.R=Au.prototype;_.R.ready=function(){var X=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(X)};
_.R.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.set("isDarkTheme",X),this.squigglyBackground=X?this.JSC$16504_squigglyBackgroundDark:this.JSC$16504_squigglyBackgroundLight)};
_.R.updateSquigglyBackgroundStyle=function(){_.j4(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.R.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.R.detached=function(){this.stop()};
_.R.stop=function(){this.playerElement.stop()};
_.R.setupVideoPlayer=function(){var X=this,H,l;return _.h(function(b){H=X.data.videoId;l="http://i1.ytimg.com/vi/"+H+"/maxresdefault.jpg";X.playerElement.loadVideoWithPlayerVars({video_id:H,iurlhq:l});_.m5(b)})};
Au.prototype.onDataChanged=Au.prototype.onDataChanged;Au.prototype.updateSquigglyBackgroundStyle=Au.prototype.updateSquigglyBackgroundStyle;_.T([_.g({value:!1}),_.N("design:type",Boolean)],Au.prototype,"isDarkTheme",void 0);_.T([_.g(),_.N("design:type",String)],Au.prototype,"squigglyBackground",void 0);_.T([_.A2("#player"),_.N("design:type",Object)],Au.prototype,"playerElement",void 0);_.T([_.g(),_.N("design:type",Object)],Au.prototype,"data",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Au.prototype,"ytActionHandlerBehavior",void 0);_.T([_.Yh("squigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Au.prototype,"updateSquigglyBackgroundStyle",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Au.prototype,"onDataChanged",null);
_.T([_.sq({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Au);
_.O(Au,"ytd-handles-claiming-video-item-renderer",function(){if(U1v!==void 0)return U1v;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return U1v=X},{mode:1});var $1_;var HT=function(){var X=_.Hc.apply(this,arguments)||this;X.dragging=!1;X.dragMouseStart=0;X.dragOffsetStart=0;X.containerWidthDiff=0;X.boundPrevClick=function(){X.set("offset",XL(X,X.offset-(X.scrollDistance||320)))};
X.boundNextClick=function(){X.set("offset",XL(X,X.offset+(X.scrollDistance||320)))};
X.boundScrollContainerMouseDown=function(H){X.dragMouseStart=H.clientX;X.dragOffsetStart=X.offset;X.dragging=!0};
X.boundScrollContainerDrag=function(H){X.dragging&&X.set("offset",XL(X,X.dragOffsetStart-(H.clientX-X.dragMouseStart)))};
X.boundMouseUp=function(){X.onMouseUp()};
X.boundWheelScroll=function(H){var l=0;Math.abs(H.deltaX)>=Math.abs(H.deltaY)?l=H.deltaX:H.shiftKey&&(l=H.deltaY);l!==0&&(X.offset+=l,H.stopPropagation(),H.preventDefault())};
X.boundChipCloudChipScrollIntoView=function(H){(H=H.detail)&&X.scrollChipIntoView(H)};
return X};
_.S(HT,_.Hc);HT.prototype.attached=function(){var X=_.mh(this.hostElement).querySelector("#scroll-container");X.addEventListener("wheel",this.boundWheelScroll);X.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);X.style.touchAction="pan-y";X.addEventListener("pointerdown",this.boundScrollContainerMouseDown);X.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
HT.prototype.detached=function(){var X=_.mh(this.hostElement).querySelector("#scroll-container");X.removeEventListener("wheel",this.boundWheelScroll);X.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);X.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);X.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
HT.prototype.reset=function(){this.set("offset",0);_.N0(this,this.setContainerWidthDiff);_.N0(this,this.setButtonsState)};
var XL=function(X,H){return Math.min(Math.max(H,0),X.containerWidthDiff)};
_.R=HT.prototype;_.R.onMouseUp=function(){this.dragging=!1};
_.R.transformContainer=function(){this.offset=XL(this,this.offset);var X=_.gx("HTML_DIR")==="rtl"?"":"-";_.mh(this.hostElement).querySelector("#chips").style.transform="translateX("+X+this.offset+"px)";_.N0(this,this.setButtonsState)};
_.R.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=XL(this,this.offset));this.atStart=this.offset<=0};
_.R.setContainerWidthDiff=function(){var X=_.mh(this.hostElement).querySelector("#scroll-container"),H=_.mh(this.hostElement).querySelector("#chips");X&&H&&(this.containerWidthDiff=H.clientWidth-X.clientWidth)};
_.R.scrollChipIntoView=function(X){var H=_.mh(this.hostElement).querySelector("#scroll-container");if(H){var l=this.atStart?0:106,b=this.atEnd?0:106;X.offsetLeft<this.offset+l?this.offset=XL(this,X.offsetLeft-l):X.offsetLeft+X.clientWidth>this.offset+H.clientWidth-b&&(this.offset=XL(this,X.offsetLeft+X.clientWidth+b-H.clientWidth))}};
HT.prototype.transformContainer=HT.prototype.transformContainer;_.T([_.g({value:0}),_.N("design:type",Number)],HT.prototype,"offset",void 0);_.T([_.g({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],HT.prototype,"atStart",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],HT.prototype,"atEnd",void 0);_.T([_.g(),_.N("design:type",Number)],HT.prototype,"scrollDistance",void 0);
_.T([_.Yh("offset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HT.prototype,"transformContainer",null);_.T([_.l9()],HT);var KHD;var Rwv;_.lm=_.Z(function(X){var H=X.data;X=_.C(_.FU(!1,void 0,"bob3J"));var l=X.next().value,b=X.next().value;X=function(K){if((H==null?void 0:H().state)!==1){var w,d;(d=(w=H()).onTap)==null||d.call(w,K)}};
var U={};return _.F("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Nq(function(){var K=_.jJ().resolve(_.c$(_.aE));if(K){b(K.isKeyBoardInUse());var w,d;(d=(w=H()).onFocusIn)==null||d.call(w)}return!1}),
"on:focusout":_.Nq(function(){b(!1);return!1})},_.F(CGY,{shouldWrapInButton:function(){return H().type!==2},
selected:function(){return H().state===0},
onClick:X,isDropdown:function(){return H().type===1},
accessibilityLabel:function(){return H().type===1?void 0:H().accessibilityLabel}},_.F("div",{class:_.Qr("ytChipShapeChip",function(){a:switch(H==null?void 0:H().state){case 0:var K="ytChipShapeActive";
break a;case 1:K="ytChipShapeDisabled";break a;default:K="ytChipShapeInactive"}return K},function(){var K=H().type===1||H().type===2,w=H();
return K||w!=null&&w.startIcon?w==null||!w.startIcon||w!=null&&w.text?K?"ytChipShapeEndIconPadding":(w==null?0:w.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var K=H();
if((K==null?void 0:K.style)===0&&(K==null?void 0:K.state)===0){var w;K=((w=_.jJ().resolve(_.c$(_.b4)))==null?0:w())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else K="";return K},(U.ytChipShapeFocused=function(){var K;
return l()&&((K=H())==null?void 0:K.state)!==1},U))},_.F(_.M,{cond:function(){return H().startIcon},
then:function(){return _.F(_.Ja,{icon:function(){var K;return(K=H())==null?void 0:K.startIcon},
className:_.Qr(function(){return H().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var K=H(),w,d=(w=_.jJ().resolve(_.c$(_.b4)))==null?void 0:w();
return(K==null?void 0:K.style)===0&&(K==null?void 0:K.state)===0&&d?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return H().text},_.F(wYz,{shape:H,
onClick:X}),_.F(_.iJ,{model:{borderRadius:"8px"}}))))},"Rc");
_.lm.idomCompat=!0;var CGY=_.Z(function(X){var H=_.Nq(function(l){X.onClick(l);return!1});
return _.F(_.M,{cond:X.shouldWrapInButton,then:function(){return _.F("button",{class:"ytChipShapeButtonReset","on:click":H,role:function(){return X.isDropdown()?"combobox":"tab"},
"aria-label":X.accessibilityLabel,"aria-selected":X.selected},X.children)},
else:function(){return X.children}})},"Sc"),wYz=_.Z(function(X){var H=X.shape;
var l=X.onClick;var b=_.Nq(function(U){l(U);return!1});
return _.F(_.ff,null,_.F(_.yO,{when:function(){return H().type===1}},function(){return _.F(_.Ja,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.F(_.yO,{when:function(){return H().type===2}},function(){return _.F("button",{class:"ytChipShapeButtonReset",
"on:click":b},_.F(_.Ja,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.F(_.yO,{when:function(){return H().type===0}},function(){return _.F(_.Xi,null)}))},"Tc");_.gC(_.lm,"chip-shape",{props:{data:_.zh}});var ol=function(){var X=_.a.apply(this,arguments)||this;X.disableDeselectEvent=!1;X.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return X};
_.S(ol,_.a);_.R=ol.prototype;_.R.onSelectChipCommand=function(X){if(!this.selected&&this.data&&(X=_.f(X,ZRF),X.targetId&&X.targetId===this.data.targetId))this.onTap()};
_.R.onFilterChipTransformCommand=function(X){if(!this.selected&&this.data){var H;(X=(H=_.f(X,kHt))==null?void 0:H.chipUniqueId)&&X===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.R.dataChanged=function(){var X=this;_.N0(this,function(){X.data&&X.data.isSelected&&!X.selected&&(X.scrollChipIntoView(),X.onTap())})};
_.R.computeChipStyle=function(X){return X!=null?X:"STYLE_DEFAULT"};
_.R.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.TP(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.TP(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.R.onFocus=function(){var X=_.jJ().resolve(_.c$(_.aE));X&&X.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.R.scrollChipIntoView=function(){_.QX(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.ja.Object.defineProperties(ol.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return R7l({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
ol.prototype.onFocus=ol.prototype.onFocus;ol.prototype.onTap=ol.prototype.onTap;ol.prototype.dataChanged=ol.prototype.dataChanged;_.T([_.k(_.XW),_.N("design:type",Object)],ol.prototype,"ironButtonState",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],ol.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],ol.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Yw),_.N("design:type",Object)],ol.prototype,"ironA11yKeysBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ol.prototype,"disableDeselectEvent",void 0);_.T([_.g(),_.N("design:type",Object)],ol.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.icon"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ol.prototype,"hasIcon",null);
_.T([_.g({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.N("design:type",String)],ol.prototype,"chipStyle",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],ol.prototype,"selected",void 0);_.T([_.x("data","selected"),_.N("design:type",Object),_.N("design:paramtypes",[])],ol.prototype,"chipShapeData",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ol.prototype,"dataChanged",null);
_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ol.prototype,"onTap",null);_.T([_.Le("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ol.prototype,"onFocus",null);_.T([_.qR({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],ol);
_.O(ol,"yt-chip-cloud-chip-renderer",function(){if(Rwv===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;KHD===void 0&&(KHD=document.createElement("template"));var b=KHD;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Rwv=X}X=Rwv;return X},{mode:2});var dNO=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.d1Q=_.Z(function(X){function H(){if(dNO.has(X.data().displayType)){var q=!b(),u;if((u=X.disableDeselection)==null||!u.call(X)||q){X.data().selected=q;u=Object.assign({},w(),{selected:q});d(u);var e;(e=X.callback)==null||e.call(X,u,q)}}}
var l=_.SJ("chip-view-model",function(q){var u=X.data().tooltipTargetId,e=_.AO();u&&_.Iy(e,u,q);return function(){Yp(e,q)}}),b=function(){var q,u;
return!!(((q=X.selected)==null?void 0:q.call(X))!==void 0?(u=X.selected)==null?0:u.call(X):w().selected)},U=_.C(_.Gx(X.data)),K=U.next().value;
U=U.next().value;var w=K,d=U,B=_.Aw(w48,function(){return X.data().chipEntityKey||""});
return _.F("chip-view-model",{class:"ytChipViewModelHost",el:l},_.F(_.lm,{data:function(){var q,u=Object.assign({},w(),{selected:b()}),e=B(),y=(q=X.disableDeselection)==null?void 0:q.call(X);a:switch(u.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":q=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":q=3;break a;default:q=0}return{text:(e==null?void 0:e.text)||u.text,state:u.disabled?1:u.selected?0:2,type:q,onTap:h7N(u,l,H,
y),accessibilityLabel:u.accessibilityLabel||u.text}}}))},"Uc");
_.d1Q.idomCompat={callbacks:{callback:!0}};_.bm=_.Z(function(X){X=_.gT(X,{nextButtonStyle:0});var H=X.data,l=X.callback,b=X.selectionBehavior,U=X.disableChipsScrollAnimation,K=X.nextButtonStyle,w=_.z7("div");X=_.C(_.FU(!0,void 0,"VwW6Jc"));var d=X.next().value,B=X.next().value;X=_.C(_.FU(!1,void 0,"OIoagd"));var q=X.next().value,u=X.next().value,e=!1,y=0,V=function(){switch(K()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.xy(function(){B(t());u(W())});
X=_.C(_.Gx(function(){var Cy={};return H().autoselectedChipIndex!=null?(Cy[H().autoselectedChipIndex]=!0,Cy):{}}));
var p=X.next().value,z=X.next().value,t=function(){var Cy=w.value;return Cy==null||Cy.scrollLeft-1<=0},W=function(){var Cy=w.value;
return Cy==null?!1:Cy.scrollLeft+1>=(Cy==null?NaN:Cy.scrollWidth)-(Cy==null?NaN:Cy.clientWidth)},G=function(){return H().isHorizontallyScrollable},r=function(Cy){w.value!=null&&(_.gx("HTML_DIR")==="rtl"&&(Cy=-Cy),w.value.scrollBy({left:Cy,
behavior:(U==null?0:U())?"instant":"smooth"}))},Q=function(){r(-320)},v=function(){r(320)},J=_.Nq(function(Cy){e=!0;
y=Cy.clientX}),Y=_.Nq(function(Cy){if(e){Cy=Cy.clientX;
var sy=Cy-y;y=Cy;var FO;(FO=w.value)==null||FO.scrollBy({left:-sy})}}),Uy=_.Nq(function(){var Cy=t(),sy=W();
Cy!==d()&&B(Cy);sy!==q()&&u(sy)});
_.Np("pointerup",function(){e&&(e=!1)});
return _.F("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.F(_.Jk,{contentId:function(){return H().contentId},
useModernStyle:!0},function(){var Cy={},sy={};return _.F("div",null,_.F(_.M,{cond:function(){return H().title},
then:function(){return _.F("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.F("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return H().title}),_.F(_.l4,{data:function(){return H().overflowButton}},{buttonViewModel:_.Qk}))}}),_.F("div",{class:_.Qr("ytChipsShelfViewModelChipsShelfContent",V)},_.F(_.M,{cond:function(){return H().previousButton},
then:function(){var FO={};return _.F("div",{class:_.Qr("ytChipsShelfViewModelLeftArrowContainer",(FO.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return d()},FO))},_.F(_.l4,{data:function(){return H().previousButton}},{buttonViewModel:function(ub){return _.F(_.Qk,{data:ub.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:Q})}}))}}),_.F("div",{el:w,
"on:pointerdown":J,"on:pointermove":Y,"on:scroll":Uy,class:_.Qr("ytChipsShelfViewModelChipsScrollContainer",(Cy.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=G,Cy))},_.F("div",{class:_.Qr("ytChipsShelfViewModelChipsContainer",(sy.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=G,sy.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,sy)),role:"tablist"},_.F(_.l4,{data:function(){return H().contents}},{chipViewModel:function(FO,ub){return _.F("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.F(_.d1Q,{data:FO.data,
callback:function(g8,mm){var QZ=ub(),Bz,dt=(Bz=b==null?void 0:b())!=null?Bz:0;dt===1||dt===2?(Bz={},z((Bz[QZ]=mm,Bz))):dt===0&&(Bz={},z(Object.assign({},p(),(Bz[QZ]=mm,Bz))));l==null||l(g8,mm,QZ)},
disableDeselection:function(){return(b==null?void 0:b())===1},
selected:function(){return!!p()[ub()]}}))}}))),_.F(_.M,{cond:function(){return H().nextButton},
then:function(){var FO={};return _.F("div",{class:_.Qr("ytChipsShelfViewModelRightArrowContainer",(FO.ytChipsShelfViewModelRightArrowContainerIsHidden=q,FO))},_.F(_.l4,{data:function(){return H().nextButton}},{buttonViewModel:function(ub){return _.F(_.Qk,{data:ub.data,
className:"ytChipsShelfViewModelRightArrow",onClick:v})}}))}})))}))},"Wc");
_.bm.idomCompat={callbacks:{callback:!0}};var hwG=_.Z(function(X){var H=X.data;var l=X.showChips;var b=X.isUpdateInProgress;var U=X.chipClickCallback;X=_.C(_.FU(!1,void 0,"uth3se"));var K=X.next().value,w=X.next().value;X=_.C(_.FU(!1,void 0,"qED0bb"));var d=X.next().value,B=X.next().value,q=function(){var e,y;return!((e=H())==null?0:e.responseMessage)&&!((y=H())==null||!y.chipsShelf)},u=void 0;
_.Wg(function(){B(!0);var e=(l()||q())&&!b();requestAnimationFrame(function(){w(e)});
u&&clearTimeout(u);u=setTimeout(function(){B(!1)},300)},"OBQBmf");
_.E2(function(){u&&clearTimeout(u)});
X={};return _.F("ytd-ai-response-box-view-model",{class:_.Qr("ytdAiResponseBoxViewModelHost")},_.F("div",{class:_.Qr("ytdAiResponseBoxViewModelResponseMessageContainer",(X.ytdAiResponseBoxViewModelResponseMessageContainerHidden=K,X.ytdAiResponseBoxViewModelNotShown=function(){return K()&&!d()},X))},_.F(_.M,{cond:b,
then:function(){return _.F("div",null,_.F(_.Sj,{text:function(){return H().responsePendingMessage}}))},
else:function(){return _.F(_.Xi,null,_.F(_.M,{cond:function(){var e;return(e=H().responseMessageIcon)==null?void 0:e.iconType},
then:function(e){return _.F("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.F(_.Ja,{icon:e}))}}),_.F("div",null,_.F(_.Sj,{text:function(){return H().responseMessage}})))}})),_.F(_.l4,{data:function(){return H().chipsShelf}},{chipsShelfViewModel:function(e){e=e.data;
var y={};return _.F("div",{class:_.Qr("ytdAiResponseBoxViewModelChipsShelfContainer",(y.ytdAiResponseBoxViewModelChipsShelfContainerShown=K,y.ytdAiResponseBoxViewModelNotShown=function(){return!K()&&!d()},y))},_.F(_.bm,{data:e,
selectionBehavior:3,nextButtonStyle:1,callback:U}))}}))},"Yc");var FHG;FHG=Object.assign({},{continuation:SzC,download:uLQ,canvas:RNK,reportChannelAbuse:tx9,ui:wUz,share:WnG,talkToRecs:Gy_,watch:e3,ypc:OzQ,radioButtonGroup:$XL,collabInviteLink:bnN},pTH,{voiceSearch:Ffk,shorts:Mg});_.Bit=hw(FHG);_.qp_=F8(_.Bit);_.s9_=(0,_.qp_)(_.Bit.talkToRecs,{talkToRecsStateSelector:function(X){return X}});var uyv=_.Z(function(X){var H=_.C((0,_.Dw)(X.data)).next().value,l=_.uL(function(){var ZL;a:{if(ZL=H().onUpdateText)if(ZL=_.f(ZL,_.qq)){var uF;ZL=(uF=_.f(ZL,tez))==null?void 0:uF.stepId;break a}ZL=void 0}return ZL},void 0,"olO2Rd");
X=_.C(_.FU(!1,void 0,"QCzl5d"));var b=X.next().value,U=X.next().value;X=_.C(_.FU(!1,void 0,"cQ7jrd"));var K=X.next().value,w=X.next().value;X=_.C(COZ());var d=X.next().value;X=X.next().value;var B=_.Aa(_.s9_.talkToRecsStateSelector),q=_.C(_.FU("",void 0,"ry2Eac")),u=q.next().value,e=q.next().value;q=_.C(_.FU(!1,void 0,"EwWXmb"));var y=q.next().value,V=q.next().value,p=_.C(_.FU(!1,void 0,"hORmtb"));q=p.next().value;var z=p.next().value;p=_.C(_.FU(!1,void 0,"fBzwv"));var t=p.next().value,W=p.next().value;
p=_.C(_.FU(!1,void 0,"BCC4Zc"));var G=p.next().value,r=p.next().value,Q=_.SJ("div");p=_.C(_.FU(void 0,void 0,"Xvb7gd"));var v=p.next().value,J=p.next().value,Y=void 0,Uy=function(ZL){ZL!==b()&&(w(!0),U(ZL),Y&&clearTimeout(Y),Y=setTimeout(function(){w(!1)},300))},Cy=function(){if(v()!==void 0){var ZL=v();
Uy(window.scrollY>ZL)}},sy=function(){var ZL;
J((ZL=Q.value)==null?void 0:ZL.offsetHeight);d("yt-feed-filter-chip-bar-resize")},FO="";
_.Wg(function(){FO=u()},"UJeAbb");
_.DR(function(){var ZL,uF,rt,xQ=(rt=(uF=F_l(l(),B()))!=null?uF:(ZL=H().textInputValue)==null?void 0:ZL.content)!=null?rt:"";e(xQ);g8(xQ);V(!!H().welcomeBannerTitle&&!xQ);sy();document.addEventListener("scroll",Cy);_.E2(function(){document.removeEventListener("scroll",Cy);Y&&clearTimeout(Y)})});
_.Wg(function(){y();sy()},"AySmPb");
p=_.Nq(function(){W(!0);z(!0)});
var ub=_.Nq(function(){z(!1)});
_.Wg(function(){var ZL=H();W(!1);r(!1);V(!!ZL.welcomeBannerTitle&&!FO);var uF,rt;((rt=_.f((uF=ZL.contents)==null?void 0:uF[0],HDH))==null?0:rt.responseMessageIcon)?(ZL=MWG.cachedUserQuery,e(ZL),g8(ZL)):MWG.cachedUserQuery=FO},"XKdHMd");
var g8=function(ZL){var uF=H().onUpdateText;uF&&_.yr(uF,{form:{userQuery:ZL}})},mm=_.qO(function(ZL){g8(ZL)},150),QZ=_.Nq(function(ZL){ZL=ZL.target.value;
e(ZL);mm(ZL);return!1});
_.Wg(function(){var ZL=F_l(l(),B());ZL!==void 0&&ZL!==FO&&e(ZL)},"S2rE2d");
var Bz=function(){r(!0);V(!1)},dt=function(){var ZL=_.f(H().submitButton,_.fk);
if(ZL==null?0:ZL.trackingParams){var uF=_.$l(ZL.trackingParams),rt=_.Bi();rt&&uF&&_.Di(rt,uF,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(ZL=ZL==null?void 0:ZL.onTap)_.yr(ZL),Bz()},TK=_.Nq(function(ZL){ZL.key==="Enter"&&(g8(ZL.target.value.trim()),dt());
return!1}),sG=function(){dt()},f_=_.Nq(function(){d("yt-feed-customization-scroll-up")}),Mv={},nd={},$U={},MW={};
return _.F("ytd-feed-customization-form-view-model",{class:_.Qr("ytdFeedCustomizationFormViewModelHost",(Mv.ytdFeedCustomizationFormViewModelHostCollapsed=b,Mv)),el:_.xl(X)},_.F("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:Q},_.F("div",{class:_.Qr("ytdFeedCustomizationFormViewModelExpandedContent",(nd.ytdFeedCustomizationFormViewModelNotShown=function(){return b()&&!K()},nd))},_.F(_.M,{cond:function(){return H().disclaimer},
then:function(){return _.F("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.F(_.Sj,{text:function(){return H().disclaimer}}))}}),_.F(_.M,{cond:y,
then:function(){return _.F("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.F("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.F(_.Sj,{text:function(){return H().welcomeBannerTitle}})),_.F("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.F(_.Sj,{text:function(){return H().welcomeBannerSubtitle}})))}}),_.F("div",{class:_.Qr("ytdFeedCustomizationFormViewModelInputContainer",($U.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
q,$U))},_.F("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var ZL;return(ZL=H().textInputPlaceholder)==null?void 0:ZL.content},
"prop:value":u,"on:focus":p,"on:blur":ub,"on:input":QZ,"on:keyup":TK,maxlength:300,disabled:G}),_.F(_.M,{cond:function(){return!!u()&&!G()},
then:function(){return _.F(_.l4,{data:function(){return H().clearButton}},{buttonViewModel:function(ZL){return _.F("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.F(_.Qk,{data:ZL.data}))}})}}),_.F(_.M,{cond:function(){return G()},
then:function(){return _.F(_.l4,{data:function(){return H().inProgressButton}},{buttonViewModel:function(ZL){return _.F("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.F(_.Qk,{data:ZL.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.F(_.l4,{data:function(){return H().submitButton}},{buttonViewModel:function(ZL){return _.F("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.F(_.Qk,{data:ZL.data,
onClick:Bz}))}})}}),_.F(_.l4,{data:function(){return H().menuButton}},{buttonViewModel:function(ZL){return _.F("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.F(_.Qk,{data:ZL.data,
buttonOverrides:function(){return{disabled:G()}}}))}})),_.F(_.l4,{data:function(){return H().contents}},{aiResponseBoxViewModel:function(ZL){return _.F("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.F(hwG,{data:ZL.data,
showChips:t,isUpdateInProgress:G,chipClickCallback:sG}))}})),_.F("div",{class:_.Qr("ytdFeedCustomizationFormViewModelCollapsedContent",(MW.ytdFeedCustomizationFormViewModelNotShown=function(){return!b()&&!K()},MW)),
"on:click":f_},_.F("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var ZL;return u()||((ZL=H().textInputPlaceholder)==null?void 0:ZL.content)}))))},"cd"),ew_=function(){this.cachedUserQuery=""};
ew_.prototype.reset=function(){this.cachedUserQuery=""};
var MWG=new ew_;_.gC(uyv,"ytd-feed-customization-form-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=_.C((0,_.Dw)(X.data)).next().value;return _.F("yt-chip-content-loader-view-model",{class:"ytChipContentLoaderViewModelHost"},_.F(_.l4,{data:function(){return H().contents}},{feedCustomizationFormViewModel:function(l){return _.F(uyv,{data:l.data})}}))},"dd"),"yt-chip-content-loader-view-model",{props:{data:_.zh}});var ymv=_.ze.persistentPanelVisibleSelector,Uz=function(){var X=_.a.apply(this,arguments)||this;X.isDarkTheme=!1;X.notSticky=!1;X.transparentBackground=!1;X.shouldHide=!1;X.disableSticky=!1;X.fluidWidth=!1;X.isClipList=!1;X.defaultChipIndex=0;X.hasSelectedChipContent=!1;X.isPlaylist=!1;X.playlistVotingAnimationEnabled=_.P("web_enable_voting_animation");X.toolbarHeight=0;X.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(Uz,_.a);_.R=Uz.prototype;
_.R.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}}}}}};
_.R.attached=function(){var X=this;document.addEventListener("scroll",_.J2(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.J2(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var H;this.toolbarHeight=((H=document.querySelector("ytd-masthead"))==null?void 0:H.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(l){X.handleIntersect(l)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){X.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.R.detached=function(){var X;(X=this.intersectionObserver)==null||X.disconnect();var H;(H=this.resizeObserver)==null||H.disconnect();document.removeEventListener("scroll",_.J2(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.J2(this,this.onFeedFilterChipBarResize))};
_.R.dataChanged=function(){var X=this,H,l,b=(H=this.data)==null?void 0:(l=H.contents)==null?void 0:l.findIndex(function(K){var w;return!((w=_.f(K,NI9))==null?0:w.navigationEndpoint)});
b&&(this.defaultChipIndex=b);this.updating=!0;var U=this.findSelectedChipIndex();this.selectedIndex!==U&&(this.selectedIndex=-1);_.N0(this,function(){X.selectedIndex=U;X.updateSelectedChipContent(X.selectedIndex);X.updating=!1;X.ytScrollableChipCloudBehavior.reset()})};
_.R.findSelectedChipIndex=function(){var X;if((X=this.data)==null||!X.contents)return 0;X=this.data.contents;for(var H=0;H<X.length;H++){var l=void 0;if((l=_.f(X[H],NI9))==null?0:l.isSelected)return H}return 0};
_.R.computeStyle=function(X){return X};
_.R.handleChipCloudChipSelectAction=function(X){X=this.JSC$16551_chipsSelector.indexOf(X);X>-1&&(this.JSC$16551_chipsSelector.selectIndex(X),this.updateSelectedChipContent(X))};
_.R.updateSelectedChipContent=function(X){var H;if((H=this.data)==null||!H.contents||X<0||X>=this.data.contents.length)this.selectedChipContent=void 0;else{var l;this.selectedChipContent=(l=_.f(this.data.contents[X],NI9))==null?void 0:l.content}};
_.R.handleChipCloudChipDeselectAction=function(){if(_.P("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var X,H,l,b=(l=_.f((X=this.data)==null?void 0:(H=X.contents)==null?void 0:H[this.defaultChipIndex],NI9))==null?void 0:l.navigationEndpoint;b&&_.TP(this.hostElement,"yt-browse-section-list-reload-endpoint",[b]);this.JSC$16551_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.R.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.R.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.R.updateDynamicHeight=function(){var X=this;this.hasSelectedChipContent&&!this.notSticky?_.N0(this,function(){var H=_.mh(X.hostElement).querySelector("#chips-wrapper");H&&_.j4(X.hostElement,{"--ytd-chips-bar-dynamic-height":H.clientHeight+"px"})}):_.j4(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.R.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.R.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.R.onResize=function(){this.updateLayout()};
_.R.updateLayout=function(){var X=this.ytScrollableChipCloudBehavior;_.N0(X,X.setContainerWidthDiff);X=this.ytScrollableChipCloudBehavior;_.N0(X,X.setButtonsState)};
_.R.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.R.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.R.handleIntersect=function(X){this.notSticky=this.isChannelPageGrid||this.disableSticky||X[0].intersectionRatio===1};
_.R.updateDimensions=function(){var X=this.ytRendererBehavior.parentComponent;if(X){var H,l=(H=X.headerElement)!=null?H:X;_.j4(this.hostElement,{"--ytd-rich-grid-chips-bar-width":l.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.R.updateSelectedIndexFromBinding=function(X){this.selectedIndex=X.detail.value};
_.R.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var X;(X=this.sortFilterHeaderRendererElement)==null||X.setAttribute("is-playlist-page-with-filters","")}};
_.R.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(vIY(!this.notSticky))};
_.ja.Object.defineProperties(Uz.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 X,H,l=(X=this.data)==null?void 0:(H=X.contents)==null?void 0:H.find(function(b){return _.f(b,LG6)});
return{sortFilterHeaderRenderer:_.f(l,LG6)}}}});
Uz.prototype.dispatchChipBarIsSticky=Uz.prototype.dispatchChipBarIsSticky;Uz.prototype.isPlaylistPageChanged=Uz.prototype.isPlaylistPageChanged;Uz.prototype.updateChipBarWidthAndTop=Uz.prototype.updateChipBarWidthAndTop;Uz.prototype.onResize=Uz.prototype.onResize;Uz.prototype.onPersistentPanelVisibleChanged=Uz.prototype.onPersistentPanelVisibleChanged;Uz.prototype.onGuideIsExpandedChanged=Uz.prototype.onGuideIsExpandedChanged;Uz.prototype.updateDynamicHeight=Uz.prototype.updateDynamicHeight;
Uz.prototype.onSelectedChipContentChanged=Uz.prototype.onSelectedChipContentChanged;Uz.prototype.dataChanged=Uz.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Uz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Uz.prototype,"actionHandlerBehavior",void 0);
_.T([_.k(_.$s),_.N("design:type",Object)],Uz.prototype,"ironResizableBehavior",void 0);_.T([_.k(),_.N("design:type",HT)],Uz.prototype,"ytScrollableChipCloudBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Uz.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Uz.prototype,"data",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],Uz.prototype,"selectedIndex",void 0);_.T([_.g({value:320}),_.N("design:type",Number)],Uz.prototype,"scrollDistance",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Uz.prototype,"isDarkTheme",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Uz.prototype,"notSticky",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Uz.prototype,"transparentBackground",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.N("design:type",String)],Uz.prototype,"componentStyle",void 0);
_.T([_.g({selector:_.Svh}),_.N("design:type",Boolean)],Uz.prototype,"guideIsExpanded",void 0);_.T([_.g({selector:ymv}),_.N("design:type",Boolean)],Uz.prototype,"persistentPanelVisible",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Uz.prototype,"shouldHide",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Uz.prototype,"disableSticky",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Uz.prototype,"fluidWidth",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Uz.prototype,"isClipList",void 0);_.T([_.g(),_.N("design:type",Object)],Uz.prototype,"defaultChipIndex",void 0);_.T([_.g(),_.N("design:type",Object)],Uz.prototype,"selectedChipContent",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Uz.prototype,"hasSelectedChipContent",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Uz.prototype,"isPlaylist",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Uz.prototype,"playlistVotingAnimationEnabled",void 0);_.T([_.A2("#chips"),_.N("design:type",Object)],Uz.prototype,"JSC$16551_chipsSelector",void 0);_.T([_.A2("ytd-sort-filter-header-renderer"),_.N("design:type",HTMLElement)],Uz.prototype,"sortFilterHeaderRendererElement",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Uz.prototype,"updating",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uz.prototype,"dataChanged",null);_.T([_.Yh("selectedChipContent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uz.prototype,"onSelectedChipContentChanged",null);_.T([_.Yh("hasSelectedChipContent","notSticky"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uz.prototype,"updateDynamicHeight",null);
_.T([_.Yh("guideIsExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uz.prototype,"onGuideIsExpandedChanged",null);_.T([_.Yh("persistentPanelVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uz.prototype,"onPersistentPanelVisibleChanged",null);_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uz.prototype,"onResize",null);
_.T([_.oi("isChannelPageGrid","disableSticky","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uz.prototype,"updateChipBarWidthAndTop",null);_.T([_.x("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Uz.prototype,"isChannelPageGrid",null);_.T([_.x("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Uz.prototype,"isHashtagLandingPage",null);
_.T([_.Yh("isPlaylistPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uz.prototype,"isPlaylistPageChanged",null);_.T([_.x("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Uz.prototype,"isPlaylistPage",null);_.T([_.x("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Uz.prototype,"isDisableDeselectEvent",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Uz.prototype,"sortFilterHeaderRendererData",null);_.T([_.g({reflectToAttribute:!0,selector:_.Wjh}),_.N("design:type",String)],Uz.prototype,"frostedGlassMode",void 0);_.T([_.Yh("notSticky"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uz.prototype,"dispatchChipBarIsSticky",null);_.T([_.sq({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Uz);
_.O(Uz,"ytd-feed-filter-chip-bar-renderer",function(){if($1_!==void 0)return $1_;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return $1_=X},{mode:1});var VWF;var PGF=_.Z(function(X){var H=X.data;var l=X.buttonIndex;var b=X.selectedIndex;var U=X.onSelect;var K=function(){return l()===b()},w=function(){var d,B;
return(B=(d=H().text)==null?void 0:d.content)!=null?B:""};
X=_.h5();return _.F("yt-toggleable-image-button-view-model",{class:function(){var d={};d=(d.toggleableImageButtonViewModelHost=!0,d[""]=!0,d.toggleableImageButtonViewModelSemiTransparent=b()!==-1&&!K(),d);return _.dj(d)},
tabindex:0,"aria-label":w,"aria-pressed":K,role:"button","on:keydown":X,"on:click":_.Nq(function(){U(H().onSubmitCommand);return!1})},_.F(_.M,{cond:function(){return H().logo},
then:function(d){return _.F(_.Dp,{data:d,className:function(){var B={};B=(B.toggleableImageButtonViewModelImage=!0,B.toggleableImageButtonViewModelCircularRadius=!(!H().backgroundColor||!H().backgroundColorDarkMode),B.toggleableImageButtonViewModelGradientRing=!!(K()&&H().backgroundColor&&H().backgroundColorDarkMode),B);return _.dj(B)},
alt:w,useWidth:!1,style:function(){if(K()&&H().backgroundColor&&H().backgroundColorDarkMode){var B=si(Number(H().backgroundColorDarkMode),"1");var q=si(Number(H().backgroundColor),"1");B="background: linear-gradient(180deg,"+B+","+q+") border-box;"}else B="";return B}})}}),_.F(_.iJ,{model:{borderRadius:"16px"}}),_.F("p",{class:function(){var d={};
d=(d.toggleableImageButtonViewModelLabel=!0,d.toggleableImageButtonViewModelBoldText=K(),d);return _.dj(d)}},_.F(_.Sj,{text:function(){return H().text}})))},"ed");
PGF.idomCompat=!0;var pYz=_.Z(function(X){var H=X.data;X=_.C(_.FU({index:-1,command:{}},void 0,"GM3umb"));var l=X.next().value,b=X.next().value;return _.F("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.F("div",{class:"nudgeFormViewModelFormOptions"},_.F(_.l4,{data:function(){return H().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(U,K){return _.F(PGF,{data:U.data,buttonIndex:K,selectedIndex:function(){return l().index},
onSelect:function(w){b({index:K(),command:w})}})}})),_.F(_.Sj,{text:function(){return H().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.F("div",{class:"nudgeFormViewModelSubmit"},_.F(_.l4,{data:function(){return H().submitButton}},{buttonViewModel:function(U){return _.F(fjH,{data:U.data,
isDisabled:function(){return l().index===-1},
onClick:function(){_.yr(l().command)}})}})))},"fd");
pYz.idomCompat=!0;var fjH=_.Z(function(X){var H=_.uL(function(){return Object.assign({},X.data(),{state:X.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.F(_.Qk,{data:H,onClick:X.onClick})},"gd");_.gC(pYz,"yt-nudge-form-view-model",{props:{data:_.zh}});var $I=function(){var X=_.a.apply(this,arguments)||this;X.roundedContainer=!0;X.buttonUpdate=_.P("web_modern_buttons");X.isDarkMode=!1;X.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return X};
_.S($I,_.a);_.R=$I.prototype;_.R.computeNudgeStyle=function(X){return X?"modernized-nudge":""};
_.R.handleDarkModeToggledAction=function(X){this.isDarkMode=X};
_.R.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.R.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"}}}};
_.R.computeIsHorizontalButtons=function(X){return X?!!X.applyModernizedStyle&&!!X.enableHorizontalButtons&&!!X.secondaryButton:!1};
_.ja.Object.defineProperties($I.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var X,H;return(H=(X=this.data)==null?void 0:X.backgroundStyle)!=null?H:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var X,H;return(H=(X=this.data)==null?void 0:X.contentsLocation)!=null?H:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null?0:X.lightIconImage)}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],$I.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],$I.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],$I.prototype,"actionHandlerBehavior",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("isHideEnclosingAction"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$I.prototype,"isHidden",null);_.T([_.g(),_.N("design:type",Object)],$I.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],$I.prototype,"roundedContainer",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],$I.prototype,"buttonUpdate",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.N("design:type",String)],$I.prototype,"nudgeStyle",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.trimStyle"),_.N("design:type",String),_.N("design:paramtypes",[])],$I.prototype,"trimStyle",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.backgroundStyle"),_.N("design:type",String),_.N("design:paramtypes",[])],$I.prototype,"backgroundStyle",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data.contentsLocation"),_.N("design:type",String),_.N("design:paramtypes",[])],$I.prototype,"contentsLocation",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.disableDropShadow"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$I.prototype,"noShadow",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.lightIconImage"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$I.prototype,"noIcon",null);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.N("design:type",Boolean)],$I.prototype,"isHorizontalButtons",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],$I.prototype,"isDarkMode",void 0);_.T([_.sq({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],$I);
_.O($I,"ytd-feed-nudge-renderer",function(){if(VWF!==void 0)return VWF;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return VWF=X},{mode:2});var Sp9;var zwC;var Kz=function(){var X=_.a.apply(this,arguments)||this;X.collapsed=!1;X.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return X};
_.S(Kz,_.a);Kz.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"}}}};
Kz.prototype.handleRatingSelect=function(){var X;((X=this.data)==null?0:X.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Kz.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Kz.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Kz.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.uf),_.N("design:type",Object)],Kz.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Kz.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Kz.prototype,"collapsed",void 0);_.T([_.sq({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Kz);
_.O(Kz,"ytd-slimline-survey-renderer",function(){if(zwC!==void 0)return zwC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return zwC=X},{mode:1});var nAF;var Rl=function(){return _.a.apply(this,arguments)||this};
_.S(Rl,_.a);Rl.prototype.maybeGetBackgroundColor=function(X){return this.isDarkMode?X.section2Color:X.section3Color};
Rl.prototype.colorPaletteChanged=function(){var X=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;X&&(X==null?0:X.secondaryTitleColor)&&this.maybeGetBackgroundColor(X)?(this.hostElement.style.backgroundColor=_.BM(this.maybeGetBackgroundColor(X)),this.hostElement.style.color=_.BM(X.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Rl.prototype.colorPaletteChanged=Rl.prototype.colorPaletteChanged;_.T([_.k(_.sv),_.N("design:type",Object)],Rl.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Rl.prototype,"data",void 0);_.T([_.g({selector:function(X){return X.ui.darkModeIsEnabled}}),
_.N("design:type",Boolean)],Rl.prototype,"isDarkMode",void 0);_.T([_.g(),_.N("design:type",Object)],Rl.prototype,"lightColorPalette",void 0);_.T([_.g(),_.N("design:type",Object)],Rl.prototype,"darkColorPalette",void 0);_.T([_.Yh("darkColorPalette","lightColorPalette","data","isDarkMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Rl.prototype,"colorPaletteChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Rl);
_.O(Rl,"ytd-endorsement-header-renderer",function(){if(nAF!==void 0)return nAF;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return nAF=X},{mode:1});_.gC(_.uu,"yt-decorated-avatar-view-model",{props:{data:_.zh,className:_.zh}});_.Cz=new _.gz("VIEW_TRANSITION_MANAGER_TOKEN");var wG=function(){var X=_.a.apply(this,arguments)||this;X.fullHeight=_.P("web_rich_grid_media_full_height");X.showChannelAvatar=!0;X.hasPlaylistThumbnail=!1;X.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};X.registerThumbnailForPageTransition=function(){_.P("web_thumbnail_to_watch_transition")&&_.km9(_.jJ().resolve(_.Cz),X.thumbnail)};
return X};
_.S(wG,_.a);_.R=wG.prototype;
_.R.configureRendererStamper=function(){return{lazyLoadMenu:oX,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"}}}};
_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.shouldLazyLoadMenu=function(){var X=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.P("kevlar_modern_downloads_page")||!X};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16575_inlinePreviewHoverListener=yE({mediaRenderer:this,lockupElement:this.JSC$16575_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.R.getVideoPreviewOpts=function(){var X={},H;if((H=this.data)==null?0:H.multipleInlinePlaybackEndpoint)X=dNH;this.isRadio&&(X=w4t);return X};
_.R.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$16575_inlinePreviewHoverListener)==null||vx(X)};
_.R.getOwner=function(){var X,H,l;return((X=this.data)==null?void 0:(H=X.channelThumbnailSupportedRenderers)==null?void 0:H.channelThumbnailWithLinkRenderer)||_.f((l=this.data)==null?void 0:l.showProviderChannelThumbnail,v7q)};
_.R.updateLockupSize=function(){var X;((X=this.getOwner())==null?0:X.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.R.getFeedbackEndpoint=function(X){if(_.f(X,_.eY))return X;var H,l;X=(l=(H=_.f(X,_.J$))==null?void 0:H.commands)!=null?l:[];H=_.C(X);for(l=H.next();!l.done;l=H.next())if(l=this.getFeedbackEndpoint(l.value))return l;return null};
_.R.computeNavigationEndpoint=function(X){return tjl(X==null?void 0:X.navigationEndpoint)};
_.R.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var X=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(X)!==JSON.stringify(this.data)&&this.set("data",X)}};
_.R.onDataChanged=function(){var X=this,H=this.getOwner();if(H){this.set("data.owner",H);var l,b,U,K,w,d=((l=this.data)==null?void 0:(b=l.shortBylineText)==null?void 0:(U=b.runs)==null?void 0:(K=U[0])==null?void 0:K.text)||((w=H.name)==null?void 0:w.simpleText);this.set("data.owner.title",d)}var B,q,u,e,y,V;H=((B=this.data)==null?void 0:(q=B.thumbnailRenderer)==null?void 0:q.playlistVideoThumbnailRenderer)||((u=this.data)==null?void 0:(e=u.thumbnailRenderer)==null?void 0:e.playlistCustomThumbnailRenderer)||
((y=this.data)==null?void 0:(V=y.thumbnailRenderer)==null?void 0:V.showCustomThumbnailRenderer);var p;((p=this.data)==null?0:p.thumbnail)||!H||this.set("data.thumbnail",H.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){X.updateLockupSize()});
var z;if(B=((z=this.data)==null?void 0:z.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(B);var t;((t=this.dismissActionToReplayEntity)==null?0:t.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.R.onHiddenChanged=function(){this.updateLockupSize()};
_.R.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.TP(this.hostElement,"yt-terminate-video-preview-action");else{var X;(X=this.videoTitleLink)==null||X.focus()}};
_.R.metadataColorChanged=function(){var X;if(this.metadataColor&&((X=this.videoTitle)==null?0:X.style))this.videoTitle.style.color=_.BM(this.metadataColor);else{var H,l;!this.metadataColor&&((H=this.videoTitle)==null?0:(l=H.style)==null?0:l.color)&&(this.videoTitle.style.color="")}};
_.R.onDetailsClick=function(X){var H=this.computedNavigationEndpoint;H&&(_.WS(_.t2(X),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.QX(this.hostElement,"yt-navigate",{endpoint:H}))};
_.R.onRendererTap=function(){this.registerThumbnailForPageTransition();var X,H,l=((X=this.data)==null?void 0:X.serviceEndpoint)||this.getFeedbackEndpoint((H=this.data)==null?void 0:H.navigationEndpoint);l&&_.f(l,_.eY)&&this.ytComponentBehavior.resolveCommand(l)};
_.R.onMouseDown=function(X){var H=X.target,l=this.computedNavigationEndpoint,b;X=H.href||((b=_.f(l==null?void 0:l.commandMetadata,_.Ip))==null?void 0:b.url);b=H.data||l;X&&b&&JDl(X,b)};
_.R.computeVideoTitleText=function(){var X;if((X=this.data)==null?0:X.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.R.computeHasPlaylistThumbnail=function(X){var H,l,b,U,K;if((((H=X.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((l=X.thumbnailRenderer)==null?0:l.playlistCustomThumbnailRenderer)||((b=X.thumbnailRenderer)==null?0:b.showCustomThumbnailRenderer)||((U=X.thumbnailRenderer)==null?0:U.playlistVideoThumbnailRenderer)||((K=X.thumbnailRenderer)==null?0:K.playlistCustomThumbnailRenderer))&&X.thumbnailOverlays)for(H=0;H<X.thumbnailOverlays.length;H++)if(l=void 0,(l=X.thumbnailOverlays[H])==
null?0:l.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ja.Object.defineProperties(wG.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.P("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var X;return(X=this.data)==null?void 0:X.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var X;return(X=this.data)==null?void 0:X.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$16575_inlinePreviewHoverListener)==null?0:fn(X))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Iwb(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:X.videoId)||((H=this.data)==null?void 0:H.playlistId)||""}}});
wG.prototype.onMouseDown=wG.prototype.onMouseDown;wG.prototype.metadataColorChanged=wG.prototype.metadataColorChanged;wG.prototype.onIsDismissedChanged=wG.prototype.onIsDismissedChanged;wG.prototype.onHiddenChanged=wG.prototype.onHiddenChanged;wG.prototype.onDataChanged=wG.prototype.onDataChanged;wG.prototype.handleReloadDownloadsInfo=wG.prototype.handleReloadDownloadsInfo;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],wG.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],wG.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],wG.prototype,"ytdLockupBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],wG.prototype,"ytdReduxBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],wG.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],wG.prototype,"entitySelectorType",void 0);_.T([_.g(),_.N("design:type",Boolean)],wG.prototype,"noEndpoints",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],wG.prototype,"isRadio",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],wG.prototype,"miniMode",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],wG.prototype,"fullHeight",void 0);
_.T([_.g(),_.N("design:type",Boolean)],wG.prototype,"showDarkVideoMetadata",void 0);_.T([_.g(),_.N("design:type",Boolean)],wG.prototype,"showLightVideoMetadata",void 0);_.T([_.g(),_.N("design:type",Number)],wG.prototype,"metadataColor",void 0);_.T([_.g(),_.N("design:type",Object)],wG.prototype,"showChannelAvatar",void 0);_.T([_.g(),_.N("design:type",Boolean)],wG.prototype,"hidden",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],wG.prototype,"showYtInteraction",void 0);
_.T([_.g(),_.N("design:type",String)],wG.prototype,"dismissedContentId",void 0);_.T([_.g({selectorArgs:["dismissedContentId"],selector:trk}),_.N("design:type",Object)],wG.prototype,"dismissActionToReplayEntity",void 0);
_.T([_.g({selectorArgs:["entitySelectorType","mediaId"],selector:function(X,H,l){if(_.P("kevlar_modern_downloads_page")&&l&&H&&H!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(H){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var b=a$W(X,l);if(b){H=_.e0(X,l);var U=VR(X,l),K=JWW(X,l);X=PF(X,l);var w=oGy(b,H,U,K);U=w.shortViewCountText;var d=w.publishedTimeText;w=w.badges;var B=X>0;K=Hn8(b,H,K,X);b=_.b5(H)||H==="TRANSFER_STATE_FAILED"||H==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!oH(b.policyEntity)?
void 0:xUZ(l,X,b.videoEntity.lengthSeconds);H==="TRANSFER_STATE_PAUSED_BY_USER"&&l&&!_.P("dl_resume_click_killswitch")&&(b={offlineVideoEndpoint:{videoId:l,action:"ACTION_RESUME"}});l={shortViewCountText:U,publishedTimeText:d,badges:w,isWatched:B,navigationEndpoint:b,thumbnailOverlays:K}}else l=void 0;return l;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(H=Z0y(X,l))if(b=_.yR(X,l),K=_.i0K(X,l),b!=="TRANSFER_STATE_UNKNOWN"){l=lZy(H,b,K,l,_.u5(X));break a}l=void 0}return l;default:_.x2(new _.qd("Error: entitySelectorType defined but not matched in selector.",
X,H))}}}),
_.N("design:type",Object)],wG.prototype,"entityDrivenState",void 0);_.T([_.g({computed:"computeVideoTitleText(data)"}),_.N("design:type",Object)],wG.prototype,"videoTitleText",void 0);_.T([_.g({computed:"computeHasPlaylistThumbnail(data)"}),_.N("design:type",Object)],wG.prototype,"hasPlaylistThumbnail",void 0);_.T([_.g({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],wG.prototype,"computedNavigationEndpoint",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],wG.prototype,"typographyBump",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("typographyBump"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wG.prototype,"typographyBumpV2",null);_.T([_.A2("#video-title"),_.N("design:type",HTMLElement)],wG.prototype,"videoTitle",void 0);_.T([_.A2("#video-title-link"),_.N("design:type",HTMLElement)],wG.prototype,"videoTitleLink",void 0);
_.T([_.A2("#thumbnail"),_.N("design:type",HTMLElement)],wG.prototype,"thumbnail",void 0);_.T([_.A2("#dismissible"),_.N("design:type",HTMLElement)],wG.prototype,"JSC$16575_dismissibleMedia",void 0);_.T([_.x("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],wG.prototype,"lazyLoadMenu",null);_.T([_.x("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],wG.prototype,"immediateLoadMenu",null);
_.T([_.oi("entityDrivenState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wG.prototype,"handleReloadDownloadsInfo",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wG.prototype,"onDataChanged",null);_.T([_.oi("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wG.prototype,"onHiddenChanged",null);
_.T([_.Yh("isDismissed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wG.prototype,"onIsDismissedChanged",null);_.T([_.Yh("metadataColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wG.prototype,"metadataColorChanged",null);_.T([_.Le("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],wG.prototype,"onMouseDown",null);
_.T([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wG.prototype,"isHovered",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wG.prototype,"useAvatar",null);_.T([_.x("data","entitySelectorType"),_.N("design:type",String),_.N("design:paramtypes",[])],wG.prototype,"mediaId",null);_.T([_.sq({is:"ytd-rich-grid-media",disableElementRegistration:!0})],wG);
var x1q=_.mr()(wG,"ytd-rich-grid-media",function(){if(Sp9!==void 0)return Sp9;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Sp9=X},{mode:2});var D1_;var dG=function(){var X=_.a.apply(this,arguments)||this;X.removeMaxWidth=!0;X.insetMetadata=!1;return X};
_.S(dG,_.a);_.R=dG.prototype;_.R.configureRendererStamper=function(){return{innerMenu:oX,outerMenu:Object.assign({},oX,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.onDataChanged=function(){var X,H=((X=this.data)==null?void 0:X.trackingParams)||"";H&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(H));var l;((l=this.dismissActionToReplayEntity)==null?0:l.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16580_inlinePreviewHoverListener=yE({mediaRenderer:this,lockupElement:this.JSC$16580_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:h7Q})};
_.R.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$16580_inlinePreviewHoverListener)==null||vx(X)};
_.R.onRendererTap=function(){var X,H,l=(X=this.data)==null?void 0:(H=X.serviceEndpoints)==null?void 0:H[0];_.f(l,_.eY)&&this.componentBehavior.resolveCommand(l)};
_.R.onDetailsClick=function(X){var H,l=(H=this.data)==null?void 0:H.navigationEndpoint;l&&(_.WS(_.t2(X),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(l))};
_.R.onShow=function(){var X=this.data;X.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(X.onFirstVisibleCommand),delete X.onFirstVisibleCommand)};
_.ja.Object.defineProperties(dG.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var X;return this.insetMetadata?void 0:(X=this.data)==null?void 0:X.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var X;return this.insetMetadata?(X=this.data)==null?void 0:X.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var X=this.data;if(X!=null&&X.badge&&(X=_.f(X.badge,ZLt))){var H,l,b;return[{metadataBadgeRenderer:{label:((H=X.label)==null?void 0:(l=H.runs)==null?void 0:l[0].text)||((b=X.label)==null?void 0:b.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var X=this.data;return Object.assign({},X.headline,{accessibility:X.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return this.isSlimShort?(X=this.computedTitle)==null?void 0:(H=X.accessibility)==null?void 0:(l=H.accessibilityData)==null?void 0:l.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.P("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$16580_inlinePreviewHoverListener)==null?0:fn(X))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
dG.prototype.onDataChanged=dG.prototype.onDataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],dG.prototype,"componentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],dG.prototype,"ytdLockupBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.uf),_.N("design:type",Object)],dG.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],dG.prototype,"ytdReduxBehavior",void 0);_.T([_.A2("ytd-thumbnail"),_.N("design:type",HTMLElement)],dG.prototype,"thumbnail",void 0);_.T([_.A2("#dismissible"),_.N("design:type",HTMLElement)],dG.prototype,"JSC$16580_dismissibleMedia",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],dG.prototype,"removeMaxWidth",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],dG.prototype,"insetMetadata",void 0);_.T([_.g(),_.N("design:type",String)],dG.prototype,"dismissedContentId",void 0);_.T([_.g({selectorArgs:["dismissedContentId"],selector:trk}),_.N("design:type",Object)],dG.prototype,"dismissActionToReplayEntity",void 0);_.T([_.x("insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],dG.prototype,"thumbnailObjectFit",null);
_.T([_.x("data","insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],dG.prototype,"innerMenu",null);_.T([_.x("data","insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],dG.prototype,"outerMenu",null);_.T([_.g(),_.N("design:type",Object)],dG.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],dG.prototype,"miniMode",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dG.prototype,"onDataChanged",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],dG.prototype,"shortsBadges",null);_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dG.prototype,"isShort",null);
_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dG.prototype,"isSlimShort",null);_.T([_.x("data","isShort"),_.N("design:type",Object),_.N("design:paramtypes",[])],dG.prototype,"computedTitle",null);_.T([_.x("isSlimShort","computedTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],dG.prototype,"computedAccessibilityLabel",null);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dG.prototype,"shouldForce2By3",null);_.T([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dG.prototype,"isHovered",null);_.T([_.sq({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],dG);
_.O(dG,"ytd-rich-grid-slim-media",function(){if(D1_!==void 0)return D1_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return D1_=X},{mode:2});var tWG;var WHD;var hd=function(){return _.a.apply(this,arguments)||this};
_.S(hd,_.a);hd.prototype.computeIcon=function(X){return X&&X.iconType?"yt-sys-icons:"+X.iconType.toLowerCase():""};
hd.prototype.onMouseEnter=function(){this.isHovered=!0};
hd.prototype.onMouseLeave=function(){this.isHovered=!1};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],hd.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hd.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],hd.prototype,"isHovered",void 0);
_.T([_.sq({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],hd);
_.O(hd,"ytd-expand-on-hover-card-renderer",function(){if(WHD!==void 0)return WHD;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return WHD=X},{mode:1});var EA_,gAv=function(){if(EA_!==void 0)return EA_;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return EA_=X};_.wd("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var FL=function(){var X=_.a.apply(this,arguments)||this;X.compactStyle=!1;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(FL,_.a);_.R=FL.prototype;_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.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"}}}};
_.R.computeHideDot=function(X){return!(X&&X.subscriberCountText&&X.videoCountText)||this.compactStyle};
_.R.hasDualButtons=function(X){return X&&X.purchaseButton&&X.subscribeButton};
_.R.backgroundColorChanged=function(){if(this.data!==void 0){var X=this.data.backgroundColor;this.isDarkTheme&&(X=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=X!=null?_.BM(X):"transparent"}};
_.R.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.R.onTap=function(X){var H,l,b=((H=this.data)==null?void 0:H.navigationEndpoint)||((l=this.data)==null?void 0:l.serviceEndpoint);_.f(b,_.W6)&&(b&&_.jJ().resolve(_.Vr).resolveCommand(b,{form:{element:this.hostElement}}),X.preventDefault())};
_.R.computeChannelEndpoint=function(X){return _.f(X,_.W6)?null:X};
_.R.computeHrefEndpoint=function(X){return _.f(X,_.W6)?null:this.componentBehavior.computeHref_(X)};
_.R.computeChannelRendererStyle=function(X){return X};
_.R.computeIconSize=function(X){return X?108:136};
_.ja.Object.defineProperties(FL,{template:{configurable:!0,enumerable:!0,get:function(){return gAv()}}});
FL.prototype.backgroundColorChanged=FL.prototype.backgroundColorChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],FL.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],FL.prototype,"componentBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],FL.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],FL.prototype,"isDarkTheme",void 0);_.T([_.g({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.N("design:type",String)],FL.prototype,"channelRendererStyle",void 0);_.T([_.g({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],FL.prototype,"dualButtons",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],FL.prototype,"useBiggerThumbs",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.I0("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],FL.prototype,"biggerThumbStyle",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],FL.prototype,"compactStyle",void 0);_.T([_.Yh("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FL.prototype,"backgroundColorChanged",null);_.T([_.sq({is:"ytd-channel-renderer",disableElementRegistration:!0})],FL);_.O(FL,"ytd-channel-renderer",function(){return gAv()},{mode:1});var Gm9;var ajC;_.wd("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var BT=function(){var X=_.a.apply(this,arguments)||this;X.displayItemCount=2;X.hasPlaylistThumbnail=!1;X.stackThumbnailSize="large";return X};
_.S(BT,_.a);_.R=BT.prototype;_.R.attached=function(){this.updateInlinePreviewHoverListeners()};
_.R.detached=function(){this.clearInlinePreviewHoverListeners()};
_.R.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.R.computeFirstVideos=function(X,H){return X&&H?X.slice(0,H):[]};
_.R.computeThumbnailWidth=function(X,H){return X?H==="BIG"?500:H==="MASSIVE"?600:H==="MEDIUM"?450:420:360};
_.R.computeThumbnailHeight=function(X,H){return X?H==="BIG"?280:H==="MASSIVE"?337:234:202};
_.R.clearInlinePreviewHoverListeners=function(){var X;(X=this.JSC$16593_inlinePreviewHoverListener)==null||vx(X)};
_.R.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16593_inlinePreviewHoverListener=yE({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:dNH,thumbnailElement:this.thumbnail})};
_.R.computeHasPlaylistThumbnail=function(X){var H,l;if((((H=X.thumbnailRenderer)==null?0:H.playlistVideoThumbnailRenderer)||((l=X.thumbnailRenderer)==null?0:l.playlistCustomThumbnailRenderer))&&X.thumbnailOverlays)for(H=0;H<X.thumbnailOverlays.length;H++)if(l=void 0,(l=X.thumbnailOverlays[H])==null?0:l.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ja.Object.defineProperties(BT.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.JSC$16593_inlinePreviewHoverListener)==null?0:fn(X))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
BT.prototype.dataChanged=BT.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],BT.prototype,"ytdLockupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],BT.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],BT.prototype,"displayItemCount",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],BT.prototype,"useBiggerThumbs",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.I0("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],BT.prototype,"biggerThumbsStyle",void 0);_.T([_.g({computed:"computeHasPlaylistThumbnail(data)"}),_.N("design:type",Object)],BT.prototype,"hasPlaylistThumbnail",void 0);_.T([_.g(),_.N("design:type",String)],BT.prototype,"stackThumbnailSize",void 0);_.T([_.A2("ytd-thumbnail"),_.N("design:type",HTMLElement)],BT.prototype,"thumbnail",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BT.prototype,"dataChanged",null);
_.T([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],BT.prototype,"isHovered",null);_.T([_.sq({is:"ytd-radio-renderer",disableElementRegistration:!0})],BT);
_.O(BT,"ytd-radio-renderer",function(){if(ajC!==void 0)return ajC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ajC=X},{mode:2});var ZoH;_.wd("itemSectionRenderer","showRenderer","ytd-show-renderer");var q$=function(){return _.a.apply(this,arguments)||this};
_.S(q$,_.a);q$.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
q$.prototype.computeThumbnailWidth=function(X){return X?360:246};
q$.prototype.computeUseProminentThumbs=function(X){return X};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],q$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],q$.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],q$.prototype,"isSearch",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.N("design:type",Boolean)],q$.prototype,"useProminentThumbs",void 0);_.T([_.sq({is:"ytd-show-renderer",disableElementRegistration:!0})],q$);
_.O(q$,"ytd-show-renderer",function(){if(ZoH!==void 0)return ZoH;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ZoH=X},{mode:1});_.wd("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var sz=function(){var X=_.a.apply(this,arguments)||this;X.isRichGrid=!1;return X};
_.S(sz,_.a);sz.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],sz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],sz.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],sz.prototype,"isRichGrid",void 0);_.T([_.sq({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],sz);
_.O(sz,"ytd-feed-entry-renderer",function(){if(Gm9!==void 0)return Gm9;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Gm9=X},{mode:1});var ioC;var M$=function(){return _.a.apply(this,arguments)||this};
_.S(M$,_.a);M$.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.T([_.k(_.sv),_.N("design:type",Object)],M$.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],M$.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],M$.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.qo,value:3}),_.N("design:type",Number)],M$.prototype,"itemsPerRow",void 0);
_.T([_.sq({is:"ytd-link-card-renderer",disableElementRegistration:!0})],M$);
_.O(M$,"ytd-link-card-renderer",function(){if(ioC!==void 0)return ioC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ioC=X},{mode:1});var vA9;var um=function(){return _.a.apply(this,arguments)||this};
_.S(um,_.a);_.R=um.prototype;_.R.configureRendererStamper=function(){return{"data.menu":oX,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R.onRendererTap=function(X){if(!this.ytdDismissibleItemBehavior.isDismissed){var H,l=(H=this.data)==null?void 0:H.navigationEndpoint;l&&!_.WS(_.t2(X),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(l)?_.WS(_.t2(X),this.hostElement,["A"])||_.QX(this.hostElement,"yt-navigate",{endpoint:l}):this.ytComponentBehavior.resolveCommand(l,{}))}};
_.R.maybeComputeHref=function(X){return this.ytComponentBehavior.computeHref_(X,!0)};
_.R.getNavigationCommand=function(X){return this.isNavigationCommand(X)?X:null};
_.R.isNavigationCommand=function(X){return X?_.f(X,_.YM)||_.f(X,_.ku)||_.f(X,_.aL)?!0:!1:!1};
um.prototype.onRendererTap=um.prototype.onRendererTap;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],um.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],um.prototype,"ytComponentBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],um.prototype,"data",void 0);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],um.prototype,"onRendererTap",null);_.T([_.sq({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],um);
_.O(um,"ytd-lumiere-promo-item-image-renderer",function(){if(vA9!==void 0)return vA9;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vA9=X},{mode:1});var Oo_;var ex=function(){return _.a.apply(this,arguments)||this};
_.S(ex,_.a);ex.prototype.computeLandscapeThumbnail=function(){var X;return((X=this.data)==null?void 0:X.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],ex.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ex.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],ex.prototype,"miniMode",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.qo}),_.N("design:type",Number)],ex.prototype,"itemsPerRow",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.N("design:type",Boolean)],ex.prototype,"landscapeThumbnail",void 0);_.T([_.sq({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],ex);
_.O(ex,"ytd-lumiere-shelf-details-renderer",function(){if(Oo_!==void 0)return Oo_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Oo_=X},{mode:2});var m1q;var yM=function(){return _.a.apply(this,arguments)||this};
_.S(yM,_.a);yM.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],yM.prototype,"data",void 0);_.T([_.sq({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],yM);
_.O(yM,"ytd-primetime-promo-details-renderer",function(){if(m1q!==void 0)return m1q;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return m1q=X},{mode:1});var Q9Y;var VM=function(){return _.a.apply(this,arguments)||this};
_.S(VM,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],VM.prototype,"data",void 0);_.T([_.sq({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],VM);
_.O(VM,"ytd-panel-show-style-metadata-renderer",function(){if(Q9Y!==void 0)return Q9Y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Q9Y=X},{mode:1});var TiQ;var PT=function(){return _.a.apply(this,arguments)||this};
_.S(PT,_.a);_.R=PT.prototype;_.R.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.R.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.R.computeThumbnail=function(X){if(X)return X.smallFormFactorBackgroundThumbnail||X.largeFormFactorBackgroundThumbnail};
_.R.maybeComputeHref=function(X){return this.ytComponentBehavior.computeHref_(X,!0)};
_.R.isNavigationCommand=function(X){return X?_.f(X,_.YM)||_.f(X,_.ku)||_.f(X,_.aL)?!0:!1:!1};
_.R.getNavigationCommand=function(X){return this.isNavigationCommand(X)?X:null};
PT.prototype.onPanelTap=PT.prototype.onPanelTap;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],PT.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],PT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],PT.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],PT.prototype,"roundedContainer",void 0);_.T([_.g({reflectToAttribute:!0,value:_.P("web_modern_buttons")}),_.N("design:type",Boolean)],PT.prototype,"modernButtons",void 0);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PT.prototype,"onPanelTap",null);_.T([_.sq({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],PT);
_.O(PT,"ytd-primetime-promo-panel-renderer",function(){if(TiQ!==void 0)return TiQ;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return TiQ=X},{mode:1});_.gC(_.Z(function(X){X=_.gT(X,{data:{},useFullWidth:!1});var H=X.data,l=X.useFullWidth;X={};return _.F("teaser-card-view-model",{class:_.Qr("ytTeaserCardViewModelHost",(X.ytTeaserCardViewModelUseFullWidth=function(){return l()},X))},_.F(_.M,{cond:function(){return H().onTap},
then:function(b){return _.F(_.ZE,{className:"ytTeaserCardViewModelLink",command:b},_.F("div",{class:"ytTeaserCardViewModelImageContainer"},_.F(_.M,{cond:function(){return H().image},
then:function(U){return _.F(_.Dp,{data:U,className:"ytTeaserCardViewModelImage",alt:""})}})),_.F("p",{class:"ytTeaserCardViewModelCaption"},function(){return H().caption}))}}))},"hd"),"teaser-card-view-model",{props:{data:_.zh,
useFullWidth:_.zh}});_.gC(_.Z(function(X){var H=X.data;var l=function(){var b;return _.Su((b=H())==null?void 0:b.iconThemedImage)};
return _.F("yt-edu-card-view-model",null,_.F(_.Jk,{contentId:function(){return H().nudgeId}},function(){return _.F("div",{class:_.Qr("ytEduCardViewModelHost",function(){return H().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.F("div",{class:"ytEduCardViewModelTopCornerButton"},_.F(_.l4,{data:function(){return H().dismissButton}},{buttonViewModel:_.Qk})),_.F("div",{class:"ytEduCardViewModelContentWrapper"},_.F("div",{class:"ytEduCardViewModelHeaderImage"},_.F(_.M,
{cond:l,
then:function(b){return _.F(_.Dp,{data:b,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.F("div",{class:"ytEduCardViewModelTextContainer"},_.F("div",{class:"ytEduCardViewModelTitle"},_.F(_.Sj,{text:function(){return H().title}})),_.F("div",{class:"ytEduCardViewModelSubtitle"},_.F(_.Sj,{text:function(){return H().subtitle}}))),_.F("div",{class:"ytEduCardViewModelContent"},_.F(_.l4,{data:function(){return H().form}},{nudgeFormViewModel:pYz}))),_.F("div",{class:_.Qr("ytEduCardViewModelButtonWrapper",
function(){return H().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.F(_.l4,{data:function(){return H().primaryButton}},{buttonViewModel:function(b){return _.F("div",{class:"ytEduCardViewModelPrimaryButton"},_.F(_.Qk,{data:b.data}))}}),_.F(_.l4,{data:function(){return H().secondaryButton}},{buttonViewModel:function(b){return _.F("div",{class:"ytEduCardViewModelSecondaryButton"},_.F(_.Qk,{data:b.data}))}})))}))},"id"),"yt-edu-card-view-model",{props:{data:_.zh}});var NiD=new _.gz("RICH_GRID_VIDEO_RENDERER_TOKEN");_.gC(_.Z(function(X){var H=X.data;var l=X.showYtInteractionInContent;var b=function(){return!!H().selectableFeedback};
X=_.C(_.FU(!1,void 0,"qxtgaf"));var U=X.next().value,K=X.next().value;_.DR(function(){var y=_.f(H().primaryButton,_.SR);(y==null?0:y.isToggled)&&K(y.isToggled)});
X=_.Nq(function(y){if(!b())return!1;if(U()){var V;var p=(V=H().selectableFeedback)==null?void 0:V.onDeselect}else{var z;p=(z=H().selectableFeedback)==null?void 0:z.onSelect}p&&_.yr(p,{form:{element:y.target}});K(!U());if(y=_.f(H().primaryButton,_.SR))y.isToggled=U();return!1});
var w=function(){if(!b()){var y,V=(y=H().loggingDirectives)==null?void 0:y.trackingParams;V&&_.Y8(_.jJ().resolve(_.UR),V)}},d=_.ChL(),B=function(){var y;
return b()?(y=H().selectableFeedback)==null?void 0:y.a11yLabel:void 0},q=function(){return b()?{toggled:U()}:{}},u=_.jJ().resolve(_.c$(NiD)),e={};
return _.F("yt-feedback-item-renderer",{class:_.Qr("ytFeedbackItemRendererHost",(e.ytFeedbackItemRendererSelectableFeedback=b,e)),"on:click":X,"on:keydown":d,title:B,"aria-label":B,"aria-pressed":function(){return b()?U():void 0},
tabindex:function(){return b()?0:void 0},
role:function(){return b()?"button":void 0}},_.F("div",{class:"ytFeedbackItemRendererContentContainer"},_.F(_.l4,{data:function(){return H().content}},{videoRenderer:function(y){return _.F(u,{data:y.data,
showYtInteraction:l})},
lockupViewModel:function(y){return _.F(_.Ak,{data:y.data,containerType:2})}})),_.F("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.F(_.l4,{data:function(){return H().primaryButton}},{toggleButtonViewModel:function(y){return _.F(_.KL,{data:y.data,
buttonShapeOverrides:q,disableExplicitClickLogging:!0,onToggle:w})}})))},"jd"),"yt-feedback-item-renderer",{props:{data:_.zh,
showYtInteractionInContent:_.zh}});var fz=function(){var X=_.a.apply(this,arguments)||this;X.isShortsGrid=!1;X.isCompactGrid=!1;X.isShortsPanelGrid=!1;X.renderedFromRichGrid=!1;X.isInFirstColumn=!1;X.noGutterMargins=!1;X.noBottomMargin=!1;X.halfBottomMargin=!1;X.isInlineGroupItem=!1;X.insetMetadata=!1;X.noBottomMarginInAds=!0;X.force16By9ThumbnailAspectRatio=!1;X.useCompactList=!1;X.containerType=2;X.thumbnailTargetWidth=9999;X.isResponsiveGrid=!1;X.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};X.hoverListener=
X.hover.bind(X);X.leaveListener=X.leave.bind(X);X.highlighted=!1;X.JSC$16629_unsubscribeFromInlinePreviewIsActive=function(){};
return X};
_.S(fz,_.a);_.R=fz.prototype;_.R.computeContainerType=function(){return this.useCompactList?3:2};
_.R.itemWidthChanged=function(){var X;this.thumbnailTargetWidth=(X=this.itemWidth)!=null?X:9999};
_.R.updateIsInFirstColumn=function(){var X;this.isInFirstColumn=((X=this.data)==null?void 0:X.colIndex)===0};
_.R.observerContainerType=function(){if(this.lockup){var X=this.lockup;X.containerType=this.containerType;X.sizing=this.sizing;X.typographyBump=this.typographyBump;X.itemWidth=this.itemWidth}this.richGridMedia&&_.P("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.P("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.R.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]]"}}}}}};
_.R.leave=function(X){X=X.relatedTarget;var H=document.querySelector("ytd-video-preview");X&&H&&_.Q_(H).contains(X)||this.removeAndCleanupHighlight()};
_.R.hover=function(){var X;!this.highlighted&&(X=this.data)!=null&&X.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(X=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:X,boxShadow:"0 0 0 10px "+X})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.R.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};
_.R.registerHoverHighlightListeners=function(){var X=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16629_unsubscribeFromInlinePreviewIsActive=_.bC(_.WF(),_.xjZ,function(H){X.highlighted&&!H&&X.removeAndCleanupHighlight()})};
_.R.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16629_unsubscribeFromInlinePreviewIsActive()};
_.R.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.R.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.R.getBackgroundColor=function(){var X,H,l=(X=this.data)==null?void 0:(H=X.onFocusEffect)==null?void 0:H.onFocusColor;if(l){if(document.documentElement.hasAttribute("dark")&&(l==null?0:l.darkTheme))return Mw(l==null?void 0:l.darkTheme);if(l==null?0:l.lightTheme)return Mw(l==null?void 0:l.lightTheme)}};
_.R.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var X=_.Bi(),H,l,b;X&&((H=this.data)==null?0:H.trackingParams)&&((l=this.data)==null?void 0:l.colIndex)!=null&&((b=this.data)==null?void 0:b.rowIndex)!=null&&_.tY(X,_.$l(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.R.isSlimMediaRenderer=function(X){return!!_.f(X==null?void 0:X.content,_.dUt)||!!_.f(X==null?void 0:X.content,wrD)||!!_.f(X==null?void 0:X.content,_.eR)||!!_.f(X==null?void 0:X.content,gSG)};
_.R.isPostRenderer=function(){var X,H;return!!_.f((X=this.data)==null?void 0:X.content,fKv)||!!_.f((H=this.data)==null?void 0:H.content,pG6)};
_.R.computeIsGameCardShelf=function(){var X;return!!_.f((X=this.data)==null?void 0:X.content,O76)};
_.R.computeIsMiniGameCardShelf=function(){var X,H;return!!_.f((X=this.data)==null?void 0:X.content,Hk_)||!!_.f((H=this.data)==null?void 0:H.content,lzY)};
_.R.computeIsTeaserCard=function(){var X;return!!_.f((X=this.data)==null?void 0:X.content,lzY)};
_.R.computeIsSelectableFeedbackItem=function(){var X,H;return!((H=_.f((X=this.data)==null?void 0:X.content,bkQ))==null||!H.selectableFeedback)};
_.R.computeContainsLumierePosters=function(){var X,H;return((H=_.f((X=this.data)==null?void 0:X.content,g7F))==null?void 0:H.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.R.computeIsExpandOnHoverCardShelf=function(){var X;return!!_.f((X=this.data)==null?void 0:X.content,E7_)};
_.R.computeIsLinkCardShelf=function(){var X;return!!_.f((X=this.data)==null?void 0:X.content,j2z)};
_.R.computeIsReelItemStyleAvatarCircle=function(X){var H;return((H=_.f(X==null?void 0:X.content,_.eR))==null?void 0:H.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.R.computeIsLinkCardFullWidth=function(X,H){var l;return((l=_.f(X==null?void 0:X.content,j2z))==null?void 0:l.useFullWidth)||H<=2};
_.ja.Object.defineProperties(fz.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var X;return _.P("web_hover_effect_refactor")&&_.f((X=this.data)==null?void 0:X.content,JWv)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.P("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var X;if(_.P("web_hover_effect_refactor")&&_.f((X=this.data)==null?void 0:X.content,JWv))return!1;var H;return!((H=this.data)==null||!H.onFocusEffect)||_.P("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 X;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.P("web_hover_effect_refactor")?(X=this.data)==null?void 0:X.onFocusEffect:void 0}}}});
fz.prototype.richGridHoverHighlightChanged=fz.prototype.richGridHoverHighlightChanged;fz.prototype.observerContainerType=fz.prototype.observerContainerType;fz.prototype.updateIsInFirstColumn=fz.prototype.updateIsInFirstColumn;fz.prototype.itemWidthChanged=fz.prototype.itemWidthChanged;_.T([_.k(_.sv),_.N("design:type",Object)],fz.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],fz.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],fz.prototype,"ytdLockupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],fz.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.N("design:type",Boolean)],fz.prototype,"isPost",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.N("design:type",Boolean)],fz.prototype,"containsLumierePosters",void 0);_.T([_.g({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.N("design:type",Boolean)],fz.prototype,"isSlimMedia",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.N("design:type",Boolean)],fz.prototype,"isGameCardShelf",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.N("design:type",Boolean)],fz.prototype,"isMiniGameCardShelf",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.N("design:type",Boolean)],fz.prototype,"isTeaserCard",void 0);_.T([_.g({computed:"computeIsSelectableFeedbackItem(data)"}),_.N("design:type",Boolean)],fz.prototype,"isSelectableFeedbackItem",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fz.prototype,"isShortsGrid",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fz.prototype,"isSlimGrid",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fz.prototype,"isCompactGrid",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fz.prototype,"isShortsPanelGrid",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.N("design:type",Boolean)],fz.prototype,"isExpandOnHoverCardShelf",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.N("design:type",Boolean)],fz.prototype,"isLinkCardShelf",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.qo,value:3}),_.N("design:type",Number)],fz.prototype,"itemsPerRow",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fz.prototype,"renderedFromRichGrid",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fz.prototype,"isInFirstColumn",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fz.prototype,"noGutterMargins",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fz.prototype,"noBottomMargin",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fz.prototype,"halfBottomMargin",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fz.prototype,"isInlineGroupItem",void 0);_.T([_.g(),_.N("design:type",Object)],fz.prototype,"insetMetadata",void 0);_.T([_.g(),_.N("design:type",Object)],fz.prototype,"noBottomMarginInAds",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],fz.prototype,"isShelfItem",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.N("design:type",Boolean)],fz.prototype,"isReelItemStyleAvatarCircle",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.N("design:type",Boolean)],fz.prototype,"isLinkCardFullWidth",void 0);_.T([_.g(),_.N("design:type",Object)],fz.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fz.prototype,"useCompactList",void 0);_.T([_.g(),_.N("design:type",String)],fz.prototype,"sizing",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],fz.prototype,"typographyBump",void 0);_.T([_.g(),_.N("design:type",Number)],fz.prototype,"itemWidth",void 0);_.T([_.g(),_.N("design:type",Boolean)],fz.prototype,"isHomeShelf",void 0);_.T([_.g(),_.N("design:type",Boolean)],fz.prototype,"isHomeGrid",void 0);
_.T([_.A2("yt-lockup-view-model"),_.N("design:type",HTMLElement)],fz.prototype,"lockup",void 0);_.T([_.A2("ytd-rich-grid-media"),_.N("design:type",HTMLElement)],fz.prototype,"richGridMedia",void 0);_.T([_.A2("ytd-ad-slot-renderer"),_.N("design:type",HTMLElement)],fz.prototype,"adSlotRenderer",void 0);_.T([_.g({computed:"computeContainerType(useCompactList)"}),_.N("design:type",Object)],fz.prototype,"containerType",void 0);_.T([_.g(),_.N("design:type",Object)],fz.prototype,"thumbnailTargetWidth",void 0);
_.T([_.x("showYtInteractionOnRichItem"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fz.prototype,"showYtInteractionOnRichGridMedia",null);_.T([_.x("isSelectableFeedbackItem","richGridHoverHighlight"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fz.prototype,"showYtInteractionOnRichItem",null);_.T([_.x("typographyBump","isHomeGrid"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fz.prototype,"richTypographyBump",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data","isShortsGrid","isCompactGrid"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fz.prototype,"richGridHoverHighlight",null);_.T([_.x("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.N("design:type",Number),_.N("design:paramtypes",[])],fz.prototype,"shortsLockupViewModelAspectRatio",null);_.T([_.x("isInlineGroupItem"),_.N("design:type",Number),_.N("design:paramtypes",[])],fz.prototype,"shortsLockupViewModelScrimStyle",null);
_.T([_.Yh("itemWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fz.prototype,"itemWidthChanged",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fz.prototype,"updateIsInFirstColumn",null);_.T([_.Yh("containerType","sizing","typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fz.prototype,"observerContainerType",null);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fz.prototype,"isResponsiveGrid",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],fz.prototype,"lockupExperiments",null);_.T([_.Yh("richGridHoverHighlight"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fz.prototype,"richGridHoverHighlightChanged",null);_.T([_.sq({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],fz);
_.cmY=_.mr()(fz,"ytd-rich-item-renderer",function(){if(tWG===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);tWG=X}X=tWG;return X},{mode:2});var VCN={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var gLh=_.xM(_.XS("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var f2Z={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},SEy={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},z7l={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var j9_;var pz=function(){var X=_.a.apply(this,arguments)||this;X.useResponsiveGrid=!1;X.hidden=!1;X.isShowMoreHidden=!1;X.isShowLessHidden=!0;X.hasExpansionButton=!1;X.isInnerShelf=!1;X.allVideosCount=0;X.allPlaylistCount=0;X.haveSmartDownloadsCompleted=!1;X.restrictContentsOverflow=!1;X.firstShownIndex=0;X.horizontalOffset=0;X.atEnd=!0;X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
X.disableServiceRequestPropagation=function(H){H.stopPropagation()};
X.nextClick=function(){var H;(H=X.data)!=null&&H.contents&&(X.firstShownIndex+=X.currentElementsPerRow,X.updateHorizontalOffset(),X.updateHorizontalItemVisibility())};
X.previousClick=function(){var H;(H=X.data)!=null&&H.contents&&(X.firstShownIndex-=X.currentElementsPerRow,X.updateHorizontalOffset(),X.updateHorizontalItemVisibility())};
return X};
_.S(pz,_.a);_.R=pz.prototype;
_.R.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:_.gx("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.R.attached=function(){this.requestElementsPerRow();_.P("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.R.detached=function(){_.P("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.R.refreshGridLayoutNew=function(){var X;if((X=this.data)!=null&&X.contents&&this.containerWidth){var H;((H=this.data.responsiveContainerConfiguration)==null?0:H.responsiveSize)?(X=_.a2N(this.data.responsiveContainerConfiguration,this.containerWidth,2),X=_.fS(Object.assign({},X,{standardUnitMinWidth:this.standardUnitMinWidth}))):X=_.fS({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=X.typographyBump;if(this.elementsPerRow!==
X.numItems||this.gutter!==X.gutter)this.elementsPerRow=X.numItems,this.gutter=X.gutter,this.itemWidth=X.itemWidth,_.j4(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":X.gutter+"px"})}};
_.R.computeSizing=function(){if(!this.isLumiere){var X=_.bbh(this.data);return X?X:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.R.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.R.computeButton=function(X){var H=_.f(X,_.yB);X=Object.assign({},_.f(X,_.yB));return H?(X.text||(X.text={simpleText:X.tooltip}),X.style="STYLE_MONO_OUTLINE",X.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",X):H};
_.R.onRowIndexChange=function(){var X=_.Bi(),H,l;((H=this.data)==null?0:H.trackingParams)&&((l=this.data)==null?void 0:l.rowIndex)!=null&&X&&_.tY(X,_.$l(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.R.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var X,H=((X=this.getRichItemRenderers()[0])==null?void 0:X.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*H;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.R.requestElementsPerRow=function(){_.QX(this.hostElement,"yt-request-elements-per-row")};
_.R.onUpdateElementsPerRowAction=function(X,H,l,b,U,K){if(this.containerWidth!==K&&(this.containerWidth=K,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&X&&H&&l&&b&&U&&(this.elementsPerRow!==X||this.postsPerRow!==H||this.slimItemsPerRow!==l||this.gameCardsPerRow!==b||this.miniGameCardsPerRow!==U)&&(this.elementsPerRow=X,this.postsPerRow=H,this.slimItemsPerRow=l,this.gameCardsPerRow=b,this.miniGameCardsPerRow=U,this.updateItemVisibility())};
_.R.isExpandedChanged=function(){var X=this.getRichItemRenderers(),H=this.isExpanded;X.forEach(function(l){l.halfBottomMargin=H})};
_.R.isCollapsedChanged=function(){var X=this.getRichItemRenderers(),H=this.isCollapsed;X.forEach(function(l){l.noBottomMargin=H})};
_.R.getRichItemRenderers=function(){return _.mh(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.R.updateItemVisibility=function(){var X=this;if(this.data&&this.data.contents){var H=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(b,U){var K;((K=X.data)==null?0:K.isExpanded)?(b.hidden=U>H-1,b.ytRendererBehavior.markDirty()):b.hidden=U>X.currentElementsPerRow-1||U>H-1});
var l=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||l||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||l||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.R.setHeightToSingleRow=function(){var X=this.getRichItemRenderers(),H=Number.parseInt(getComputedStyle(X[0]).marginBottom,10)||0;X=X.slice(0,this.currentElementsPerRow).reduce(function(l,b){return Math.max(l,b.getBoundingClientRect().height+H)},0);
this.contents.style.height=X+"px"};
_.R.focusNextExpandedItem=function(){var X;((X=this.data)==null?0:X.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.R.focusItem=function(X,H){var l=this.getRichItemRenderers();if(l[X]&&(X=l[X].querySelector(".focus-on-expand"))){if(H){var b;(b=l[this.currentElementsPerRow])==null||b.scrollIntoView({behavior:"smooth",block:"center"})}X.focus({preventScroll:!0})}};
_.R.onDataChange=function(){var X=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var H;if((H=this.data)==null?0:H.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.N0(this,function(){X.updateItemVisibility()});
var l;if((l=this.data)==null?0:l.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.j4(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),H=0;H<this.data.contents.length;H++)l=_.f(this.data.contents[H],_.$8)||{},l.colIndex=H,l.rowIndex=this.data.rowIndex};
_.R.handleRerenderDownloadsData=function(){_.P("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())};
_.R.blockInlinePreview=function(X){var H=this,l;return _.h(function(b){(l=H.inlinePreviewIsEnabled)&&H.ytdReduxBehavior.dispatch(_.izD(!1));return b.return(new Promise(function(U){X(function(){l&&H.ytdReduxBehavior.dispatch(_.izD(!0));U()})}))})};
_.R.expandShelf=function(){var X=this;if(this.data){var H,l=(H=_.f(this.data.showMoreButton,_.yB))==null?void 0:H.trackingParams;l&&_.Y8(_.lv(),l);this.set("data.isExpanded",!0);this.blockInlinePreview(function(b){X.setHeightToSingleRow();X.updateItemVisibility();X.contents.style.height=X.contents.scrollHeight+"px";_.Ss.addJob(function(){X.contents.style.height="auto";X.focusNextExpandedItem();b()},2,200)})}};
_.R.collapseShelf=function(){var X=this;return _.h(function(H){if(H.nextAddress==1){if(!X.data)return H.return();X.set("data.isExpanded",!1);return H.yield(X.blockInlinePreview(function(l){X.contents.style.height=X.contents.scrollHeight+"px";X.setHeightToSingleRow();_.Ss.addJob(function(){X.updateItemVisibility();X.contents.style.height="auto";l()},2,200)}),2)}_.QX(X.hostElement,"yt-rich-shelf-renderer-collapse",X.data.trackingParams);
X.focusItem(0,!1);_.m5(H)})};
_.R.updateArrowButtonStatus=function(){this.getRichItemRenderers();var X,H;var l=((X=this.data)==null?void 0:(H=X.contents)==null?void 0:H.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=l};
_.R.onChildElementFocus=function(X){this.hasChevronButtons&&(X=X.target.closest("#contents > *"),this.contents.contains(X)&&(X.offsetLeft<this.horizontalOffset?this.previousClick():X.offsetLeft+X.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.R.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.gx("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.R.updateHorizontalOffset=function(){var X=this.getRichItemRenderers(),H,l;var b=((H=this.data)==null?void 0:(l=H.contents)==null?void 0:l.length)||0;var U;X=((U=X[0])==null?void 0:U.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>b?this.firstShownIndex=b-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*X};
_.R.isSlimMediaShelfRenderer=function(){var X,H,l,b=(l=_.f((X=this.data)==null?void 0:(H=X.contents)==null?void 0:H[0],_.$8))==null?void 0:l.content;return!!(_.f(b,_.dUt)||_.f(b,wrD)||_.f(b,_.eR)||_.f(b,gSG))};
_.R.isGameCardShelf=function(){var X,H,l,b=(l=_.f((X=this.data)==null?void 0:(H=X.contents)==null?void 0:H[0],_.$8))==null?void 0:l.content;return!!_.f(b,O76)};
_.R.isMiniGameCardShelf=function(){var X,H,l,b=(l=_.f((X=this.data)==null?void 0:(H=X.contents)==null?void 0:H[0],_.$8))==null?void 0:l.content;return!!_.f(b,Hk_)||!!_.f(b,lzY)};
_.R.hasGameBoxArtAvatarStyle=function(){var X;return((X=this.data)==null?void 0:X.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.R.hasRoundedGameBoxArtAvatarStyle=function(){var X;return((X=this.data)==null?void 0:X.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.R.isShortsShelf=function(){var X,H,l,b=(l=_.f((X=this.data)==null?void 0:(H=X.contents)==null?void 0:H[0],_.$8))==null?void 0:l.content;return!!_.f(b,_.eR)||!!_.f(b,gSG)};
_.R.isPostShelfRenderer=function(){var X,H,l,b=(l=_.f((X=this.data)==null?void 0:(H=X.contents)==null?void 0:H[0],_.$8))==null?void 0:l.content;return!(!_.f(b,fKv)&&!_.f(b,pG6))};
_.R.isLumiereShelf=function(){var X,H,l=_.f((X=this.data)==null?void 0:(H=X.contents)==null?void 0:H[0],_.$8);return!!_.f(l==null?void 0:l.content,g7F)};
_.R.isLumiereShelfWithPosters=function(){var X,H,l=_.f((X=this.data)==null?void 0:(H=X.contents)==null?void 0:H[0],_.$8),b;return((b=_.f(l==null?void 0:l.content,g7F))==null?void 0:b.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.R.isExpandOnHoverCardShelf=function(){var X,H,l,b=(l=_.f((X=this.data)==null?void 0:(H=X.contents)==null?void 0:H[0],_.$8))==null?void 0:l.content;return!!_.f(b,E7_)};
_.R.computeHasFeaturedBadge=function(){var X,H,l=_.f((X=this.data)==null?void 0:(H=X.badges)==null?void 0:H[0],_.lDF);return l?l.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.R.computeHasPaygatedFeaturedBadge=function(){var X,H,l=_.f((X=this.data)==null?void 0:(H=X.badges)==null?void 0:H[0],_.lDF);return l?(l==null?void 0:l.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.R.computeHeaderHidden=function(){var X,H,l,b,U,K;return!((X=this.data)==null?0:X.icon)&&!((H=this.data)==null?0:H.title)&&!((l=this.data)==null?0:l.subtitle)&&!((b=this.data)==null?0:b.thumbnail)&&!((U=this.data)==null?0:U.badges)&&!((K=this.data)==null?0:K.menu)};
_.R.showCtaButton=function(){var X;return!((X=this.data)==null||!X.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.R.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.R.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.R.computeForce16By9ThumbnailAspectRatio=function(){var X,H;return((X=this.data)==null?void 0:(H=X.responsiveContainerConfiguration)==null?void 0:H.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.R.onSectionReactiveDismissal=function(X,H,l){var b,U;var K=(b=this.data)==null?void 0:(U=b.targetingContext)==null?void 0:U.targetGroupId;this&&K&&H.targetGroupId&&K.includes(H.targetGroupId)?(b=this.rowIndex,X=b===void 0?!1:!(H.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&b<=X)):X=!1;X&&(this.hidden=l)};
_.ja.Object.defineProperties(pz.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null?0:X.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var X=this.elementsPerRow;this.isPostShelfRenderer()?X=this.postsPerRow:this.isSlimMediaShelfRenderer()?X=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?X=this.slimItemsPerRow-1:this.isGameCardShelf()?X=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(X=this.miniGameCardsPerRow);return X}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null?0:X.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var X,H;return!((X=this.data)==null||!X.previousButton)&&!((H=this.data)==null||!H.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var X;return((X=_.jJ().resolve(_.gd).getCurrentPage())==null?void 0:X.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b;return!((X=this.data)==null?0:(H=X.thumbnail)==null?0:(l=H.accessibility)==null?0:(b=l.accessibilityData)==null?0:b.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
pz.prototype.onChildElementFocus=pz.prototype.onChildElementFocus;pz.prototype.handleRerenderDownloadsData=pz.prototype.handleRerenderDownloadsData;pz.prototype.onDataChange=pz.prototype.onDataChange;pz.prototype.isCollapsedChanged=pz.prototype.isCollapsedChanged;pz.prototype.isExpandedChanged=pz.prototype.isExpandedChanged;pz.prototype.onRowIndexChange=pz.prototype.onRowIndexChange;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],pz.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],pz.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],pz.prototype,"ytdReduxBehavior",void 0);
_.T([_.g({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.N("design:type",Object)],pz.prototype,"useResponsiveGrid",void 0);_.T([_.g(),_.N("design:type",Object)],pz.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Number)],pz.prototype,"standardUnitMinWidth",void 0);_.T([_.g({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],pz.prototype,"elementsPerRow",void 0);_.T([_.g({value:3}),_.N("design:type",Number)],pz.prototype,"postsPerRow",void 0);
_.T([_.g({value:6}),_.N("design:type",Number)],pz.prototype,"slimItemsPerRow",void 0);_.T([_.g({value:6}),_.N("design:type",Number)],pz.prototype,"gameCardsPerRow",void 0);_.T([_.g({value:6}),_.N("design:type",Number)],pz.prototype,"miniGameCardsPerRow",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pz.prototype,"hidden",void 0);_.T([_.g(),_.N("design:type",Object)],pz.prototype,"isShowMoreHidden",void 0);
_.T([_.g(),_.N("design:type",Object)],pz.prototype,"isShowLessHidden",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pz.prototype,"hasExpansionButton",void 0);_.T([_.x("data.isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pz.prototype,"isExpanded",null);_.T([_.x("data.isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pz.prototype,"isCollapsed",null);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pz.prototype,"isInnerShelf",void 0);_.T([_.g({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.N("design:type",Boolean)],pz.prototype,"isShorts",void 0);_.T([_.g({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.N("design:type",Boolean)],pz.prototype,"isLumiere",void 0);_.T([_.g({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.N("design:type",Boolean)],pz.prototype,"hasBoxArtThumbnailStyle",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.N("design:type",Boolean)],pz.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.N("design:type",Boolean)],pz.prototype,"hasFeaturedBadge",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.N("design:type",Boolean)],pz.prototype,"hasPaygatedFeaturedBadge",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.N("design:type",Boolean)],pz.prototype,"isHeaderHidden",void 0);_.T([_.g({selector:_.GCN}),_.N("design:type",Object)],pz.prototype,"allVideosCount",void 0);_.T([_.g({selector:Gny}),_.N("design:type",Object)],pz.prototype,"allPlaylistCount",void 0);_.T([_.g({selector:cWZ}),_.N("design:type",Object)],pz.prototype,"haveSmartDownloadsCompleted",void 0);
_.T([_.g({selectorArgs:["entitySelectorType"],selector:function(X,H){if(_.P("kevlar_modern_downloads_page")&&H&&H!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var l=X.entities;switch(H){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":H=_.dR(l);X=Xc(H);var b=_.U9(H);l=_.Fe(l);l=_.Zi(kn8(b,l,H.length));return{contents:X,subtitle:l};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return l=_.dR(l),{contents:Xc(l)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return l=
_.h0(l),{contents:Xc(l)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return l=_.hgm(l),{contents:Xc(l)};default:_.x2(new _.qd("Error: entitySelectorType defined but not matched in selector.",X,H))}}}}),
_.N("design:type",Object)],pz.prototype,"entityDrivenRichShelfData",void 0);_.T([_.g({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.N("design:type",Boolean)],pz.prototype,"hasTopCtaButton",void 0);_.T([_.g({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.N("design:type",Boolean)],pz.prototype,"hasBottomCtaButton",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.N("design:type",Boolean)],pz.prototype,"force16By9ThumbnailAspectRatio",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pz.prototype,"restrictContentsOverflow",void 0);_.T([_.g({selector:_.DjN}),_.N("design:type",Boolean)],pz.prototype,"inlinePreviewIsEnabled",void 0);_.T([_.g({computed:"computeSizing(data)"}),_.N("design:type",String)],pz.prototype,"sizing",void 0);
_.T([_.g(),_.N("design:type",Boolean)],pz.prototype,"typographyBump",void 0);_.T([_.g(),_.N("design:type",Number)],pz.prototype,"itemWidth",void 0);_.T([_.g(),_.N("design:type",Object)],pz.prototype,"firstShownIndex",void 0);_.T([_.g(),_.N("design:type",Object)],pz.prototype,"horizontalOffset",void 0);_.T([_.g(),_.N("design:type",Object)],pz.prototype,"atEnd",void 0);_.T([_.A2("#contents"),_.N("design:type",HTMLElement)],pz.prototype,"contents",void 0);
_.T([_.Yh("data.rowIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pz.prototype,"onRowIndexChange",null);_.T([_.Yh("isExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pz.prototype,"isExpandedChanged",null);_.T([_.Yh("isCollapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pz.prototype,"isCollapsedChanged",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pz.prototype,"onDataChange",null);_.T([_.Yh("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pz.prototype,"handleRerenderDownloadsData",null);_.T([_.Le("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],pz.prototype,"onChildElementFocus",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data","isHomePage"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pz.prototype,"isTruncated",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pz.prototype,"showBottomDivider",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],pz.prototype,"hasChevronButtons",null);
_.T([_.x("firstShownIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],pz.prototype,"previousButtonOverride",null);_.T([_.x("atEnd"),_.N("design:type",Object),_.N("design:paramtypes",[])],pz.prototype,"nextButtonOverride",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pz.prototype,"isHomePage",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pz.prototype,"thumbnailAriaHidden",null);
_.T([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],pz.prototype,"entitySelectorType",null);_.T([_.sq({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],pz);
_.rmC=_.mr()(pz,"ytd-rich-shelf-renderer",function(){if(j9_===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);j9_=X}X=j9_;return X},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:2});var JmF;_.gC(OV,"yt-thumbnail-view-model",{props:{data:_.zh,aspectRatio:_.zh,width:_.zh,height:_.zh,disableRounding:_.zh,isClip:_.zh,className:_.zh,hovered:_.zh,playbackRef:_.zh,lockupExperiments:_.zh}});_.gC(_.Gi,"yt-badge-view-model",{props:{data:_.zh,class:_.zh,workaroundShortsIsThumbnailBadge:_.zh,modern:_.zh,numBadgesInRow:_.zh,clipTextOverflow:_.zh,inheritTypography:_.zh}});_.gC(ejG,"yt-slimline-survey-view-model",{props:{data:_.zh}});var Sx=function(){var X=_.a.apply(this,arguments)||this;X.tileLottieAnimationRef={};X.backgroundLottieAnimationRef={};X.isOnHoverBehaviorForLottieEnabled=!0;X.useBiggerShowcaseImage=_.P("enable_desktop_search_bigger_thumbs");X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return X};
_.S(Sx,_.a);_.R=Sx.prototype;_.R.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.R.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"}}}};
_.R.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var X=this.hasStaticTile(this.data)||this.hasTileLottie(this.data)||this.hasThumbnailViewModel(this.data);X!==this.hasTile&&this.set("hasTile",X);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.set("tileImageViewModel",this.getCurrentTileImageViewModel(this.data,this.isDarkTheme));this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.R.hoveredChanged=function(){var X=this.thumbnail;X&&(X.hovered=this.hovered)};
_.R.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.R.currentColorChanged=function(){this.updateButtonPalette()};
_.R.computeBackgroundStyle=function(X){if(X&&this.data){var H=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var l=_.a1((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);l&&H.push('background-image: url("'+l+'");')}var b;((b=X.basicColorData)==null?void 0:b.backgroundColor)!==void 0&&H.push("background-color: "+_.qw(X.basicColorData.backgroundColor)+";");return H.join("")}};
_.R.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&this.set("isDarkTheme",X)};
_.R.getCurrentLogo=function(X,H){if(X)return H?X.darkLogoImage:X.lightLogoImage};
_.R.getCurrentTileImageViewModel=function(X,H){if(X)return X.darkTileImageViewModel?H?X.darkTileImageViewModel:X.tileImageViewModel:X.tileImageViewModel};
_.R.getCurrentStaticTileImage=function(X,H){if(this.hasStaticTile(X))return X.darkTileImage?H?X.darkTileImage:X.tileImage:X.tileImage};
_.R.computeTitleStyle=function(X){if(this.data&&this.data.title&&X&&X.basicColorData&&X.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.BM(X.basicColorData.foregroundTitleColor)+";"};
_.R.computeSubtitleStyle=function(X){if(this.data&&this.data.subtitle&&X&&X.basicColorData&&X.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.BM(X.basicColorData.foregroundBodyColor)+";"};
_.R.computeSupplementalStyle=function(X){if(this.data&&this.data.supplementalText&&X&&X.supplementalTextColor!==void 0)return X=_.BM(X.supplementalTextColor),"color:"+X+";--yt-endpoint-color:"+X+";--yt-endpoint-hover-color:"+X+";--yt-endpoint-visited-color:"+X+";--yt-formatted-string-bold-font-weight:700;"};
_.R.computeDismissIconStyle=function(X){var H,l;if((X==null?0:(H=X.dismissButtonColorData)==null?0:H.foregroundTitleColor)&&(X==null?0:(l=X.dismissButtonColorData)==null?0:l.backgroundColor))return"--yt-button-color:"+_.qw(X.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.qw(X.dismissButtonColorData.backgroundColor)+";"};
_.R.computeOverflowIconStyle=function(X){var H,l;if((X==null?0:(H=X.dismissButtonColorData)==null?0:H.foregroundTitleColor)&&(X==null?0:(l=X.dismissButtonColorData)==null?0:l.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.qw(X.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.qw(X.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.qw(X.dismissButtonColorData.foregroundTitleColor)+";"};
_.R.computeBannerStyle=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.R.computeLocation=function(X){switch(X==null?void 0:X.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.R.shouldShowTileSection=function(X,H,l){return!this.shouldExpandLogo(X,H,l)&&H};
_.R.shouldShowExpandedLogoSection=function(X,H,l){return this.shouldExpandLogo(X,H,l)&&X!==void 0&&this.hasLogo(X)};
_.R.shouldExpandLogo=function(X,H,l){return X&&H?!1:l>=2};
_.R.hasStaticTile=function(X){return!(X==null||!X.tileImage)};
_.R.hasThumbnailViewModel=function(X){return!(X==null||!X.tileImageViewModel)};
_.R.hasTileLottie=function(X){var H;return!!(X==null?0:(H=X.tileLottie)==null?0:H.url)};
_.R.hasLogo=function(X){return this.getCurrentLogo(X,this.isDarkTheme)!==void 0};
_.R.getLogoHeight=function(X){return this.logoWithPadding(X)?"26":"20"};
_.R.getExpandedLogoHeight=function(X){return this.logoWithPadding(X)?"31":"24"};
_.R.getLogoImageId=function(X){return this.logoWithPadding(X)?"logo-image-with-padding":"logo-image"};
_.R.getMaxTitleFontSize=function(X){return X.overrideTitleMaxFontSize?String(X.overrideTitleMaxFontSize):"36"};
_.R.hasBackgroundLottie=function(X){var H;return!!(X==null?0:(H=X.backgroundLottie)==null?0:H.url)};
_.R.onMouseOver=function(){if(this.isOnHoverBehaviorForLottieEnabled){var X,H;(X=this.tileLottieAnimationRef)==null||(H=X.lottieEl)==null||H.play();var l,b;(l=this.backgroundLottieAnimationRef)==null||(b=l.lottieEl)==null||b.play()}this.hovered=!0};
_.R.onMouseLeave=function(){if(this.isOnHoverBehaviorForLottieEnabled){var X,H;(X=this.tileLottieAnimationRef)==null||(H=X.lottieEl)==null||H.pause();var l,b;(l=this.backgroundLottieAnimationRef)==null||(b=l.lottieEl)==null||b.pause()}this.hovered=!1};
_.R.pauseLottie=function(){var X,H;(X=this.tileLottieAnimationRef)==null||(H=X.lottieEl)==null||H.pause();var l,b;(l=this.backgroundLottieAnimationRef)==null||(b=l.lottieEl)==null||b.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.R.performPrimaryButtonAction=function(){var X,H,l;((X=this.data)==null?0:(H=X.primaryButton)==null?0:(l=H.buttonRenderer)==null?0:l.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.R.requestElementsPerRow=function(){_.QX(this.hostElement,"yt-request-elements-per-row")};
_.R.updateButtonPalette=function(){if(this.data&&this.currentColorData){var X;((X=this.data.dismissButton)==null?0:X.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var H;if((H=this.data.primaryButton)==null?0:H.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var l;if((l=this.data.secondaryButton)==
null?0:l.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 b;((b=this.data.primaryButton)==null?0:b.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var U;((U=this.data.primaryButton)==null?0:U.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var K;((K=this.data.secondaryButton)==null?0:K.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var w;((w=this.data.primaryButton)==null?0:w.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.R.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var X=this.getTileLottieDataBasedOnTheme(),H,l;if(X.url!==((H=this.tileLottiePlayerProps)==null?void 0:(l=H.animationConfig)==null?void 0:l.path)){var b,U;(b=this.tileLottieAnimationRef)==null||(U=b.lottieEl)==null||U.destroy();var K;this.isOnHoverBehaviorForLottieEnabled=!((K=X.settings)==null?0:K.autoplay);var w,d;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(d=(w=X.settings)==null?void 0:w.autoplay)!=null?d:!1,loop:this.getLottieLoopValue(X.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof X.url==="string"?this.tileLottiePlayerProps.animationConfig.path=X.url:this.tileLottiePlayerProps.animationConfig.animationData=X.url}}};
_.R.getOverflowButton=function(X){return _.f(X.overflowButton,vS_)};
_.R.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var X=this.getBackgroundLottieDataBasedOnTheme(),H,l;if(X.url!==((H=this.backgroundLottiePlayerProps)==null?void 0:(l=H.animationConfig)==null?void 0:l.path)){var b,U;(b=this.backgroundLottieAnimationRef)==null||(U=b.lottieEl)==null||U.destroy();var K;this.isOnHoverBehaviorForLottieEnabled=!((K=X.settings)==null?0:K.autoplay);var w,d;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(d=(w=X.settings)==null?void 0:w.autoplay)!=null?d:!1,loop:this.getLottieLoopValue(X.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof X.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=X.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
X.url}}};
_.R.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var X;((X=this.tileLottieAnimationRef)==null?void 0:X.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var H;((H=this.backgroundLottieAnimationRef)==null?void 0:H.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.R.getTileLottieDataBasedOnTheme=function(){var X;if(this.isDarkTheme&&((X=this.data)==null?0:X.darkThemeTileLottie))return this.data.darkThemeTileLottie;var H;return((H=this.data)==null?0:H.tileLottie)?this.data.tileLottie:{}};
_.R.getBackgroundLottieDataBasedOnTheme=function(){var X;if(this.isDarkTheme&&((X=this.data)==null?0:X.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var H;return((H=this.data)==null?0:H.backgroundLottie)?this.data.backgroundLottie:{}};
_.R.onUpdateElementsPerRowAction=function(X){X&&this.elementsPerRow!==X&&(this.elementsPerRow=X)};
_.R.getLottieLoopValue=function(X){return X?X.loop!==void 0?X.loop:X.loopCount?X.loopCount-1:!0:!0};
_.R.logoWithPadding=function(X){var H,l,b;return(X=(H=this.getCurrentLogo(X,this.isDarkTheme))==null?void 0:(l=H.thumbnails)==null?void 0:(b=l[0])==null?void 0:b.height)&&X%31===0?!0:!1};
Sx.prototype.currentColorChanged=Sx.prototype.currentColorChanged;Sx.prototype.themeChanged=Sx.prototype.themeChanged;Sx.prototype.hoveredChanged=Sx.prototype.hoveredChanged;Sx.prototype.dataChanged=Sx.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.uf),_.N("design:type",Object)],Sx.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Sx.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Sx.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Sx.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Sx.prototype,"primaryButton",void 0);
_.T([_.g(),_.N("design:type",Object)],Sx.prototype,"tileImageViewModel",void 0);_.T([_.g(),_.N("design:type",Object)],Sx.prototype,"secondaryButton",void 0);_.T([_.g({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],Sx.prototype,"elementsPerRow",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Sx.prototype,"isDarkTheme",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Sx.prototype,"hasTile",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Sx.prototype,"hasMetadata",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Sx.prototype,"showLogoImage",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Sx.prototype,"hovered",void 0);_.T([_.g(),_.N("design:type",Object)],Sx.prototype,"currentColorData",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.N("design:type",String)],Sx.prototype,"bannerStyle",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.N("design:type",String)],Sx.prototype,"location",void 0);_.T([_.g(),_.N("design:type",Object)],Sx.prototype,"tileLottiePlayerProps",void 0);_.T([_.g(),_.N("design:type",Object)],Sx.prototype,"tileLottieAnimationRef",void 0);
_.T([_.g(),_.N("design:type",Object)],Sx.prototype,"backgroundLottiePlayerProps",void 0);_.T([_.g(),_.N("design:type",Object)],Sx.prototype,"backgroundLottieAnimationRef",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Sx.prototype,"useBiggerShowcaseImage",void 0);_.T([_.A2("yt-thumbnail-view-model"),_.N("design:type",HTMLElement)],Sx.prototype,"thumbnail",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Sx.prototype,"isHideEnclosingAction",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sx.prototype,"dataChanged",null);_.T([_.Yh("hovered"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sx.prototype,"hoveredChanged",null);_.T([_.oi("isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sx.prototype,"themeChanged",null);
_.T([_.oi("currentColorData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Sx.prototype,"currentColorChanged",null);_.T([_.sq({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Sx);
_.O(Sx,"ytd-statement-banner-renderer",function(){if(JmF!==void 0)return JmF;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return JmF=X},{mode:1});var LHt;var zy=function(){var X=_.a.apply(this,arguments)||this;X.isSearch=!1;X.hideShelfHeader=!1;X.engagementPanel=!1;X.disableMouseScroll=!0;X.useFloorScrolling=!0;return X};
_.S(zy,_.a);zy.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.XS("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.XS("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
zy.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zy.prototype.onDataChanged=zy.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],zy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],zy.prototype,"isSearch",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zy.prototype,"hideShelfHeader",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zy.prototype,"engagementPanel",void 0);_.T([_.g(),_.N("design:type",Object)],zy.prototype,"disableMouseScroll",void 0);_.T([_.g(),_.N("design:type",Object)],zy.prototype,"useFloorScrolling",void 0);_.T([_.g(),_.N("design:type",Object)],zy.prototype,"data",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zy.prototype,"onDataChanged",null);
_.T([_.sq({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],zy);
_.O(zy,"ytd-reel-shelf-renderer",function(){if(LHt!==void 0)return LHt;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return LHt=X},{mode:_.Qc("kevlar_poly_si_batch_j028")?1:2});var YpG;var IjQ;IjQ=_.W8(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.Am_=_.z8(IjQ);var Xe9=_.Z(function(X){var H=X.data;X=X.useSmallFont;var l={},b={};return _.F("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.F(_.M,{cond:function(){return H().favicon},
then:function(U){return _.F(_.Dp,{data:U,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.F("div",{class:"ytChannelExternalLinkViewModelContainer"},_.F(_.Sj,{text:function(){return H().title},
className:_.Qr("ytChannelExternalLinkViewModelTitle",(l.ytChannelExternalLinkViewModelTitleSmallFont=X,l)),ellipsisTruncate:!0,userInput:!0}),_.F(_.Sj,{text:function(){return H().link},
className:_.Qr("ytChannelExternalLinkViewModelLink",(b.ytChannelExternalLinkViewModelLinkSmallFont=X,b)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"kd");
Xe9.idomCompat=!0;_.gC(Xe9,"yt-channel-external-link-view-model",{props:{data:_.zh,useSmallFont:_.zh}});_.wd("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var nz=function(){var X=_.a.apply(this,arguments)||this;X.revealButtonClass="button";X.businessEmailDisplayState="HIDE_SECTION";return X};
_.S(nz,_.a);_.R=nz.prototype;_.R.refit=function(){var X=this;_.fc(function(){_.NG(X.hostElement,"yt-refit-popups-action")});
_.N0(this,function(){_.NG(X.hostElement,"yt-refit-popups-action")})};
_.R.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.VX(_.Am_),this.businessEmailDisplayState="CAPTCHA")};
_.R.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"};
_.R.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.R.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"}}}};
_.R.computeEmailHref=function(X){return"mailto:"+X};
_.R.computeSafeUrl=function(X){if(X)return _.Yn(X)};
_.R.linkEndpoint=function(X){return _.f(X.onTap,_.qq)};
_.R.linkEndpointToHref=function(X){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(X))};
_.R.onYtServiceRequestCompleted=function(X){var H;if((H=X.detail.data)==null?0:H.businessEmail)this.businessEmail=X.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var l;if((l=X.detail.data)==null?0:l.errorMessage)this.businessEmailErrorMessage=X.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.R.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var X=this.JSC$16744_captchaTextarea.value;if(X){X={recaptcha_response_token:X,channel_id:this.metadata.channelId};var H=_.f(this.metadata.onBusinessEmailRevealClickCommand,_.qq);H&&this.ytComponentBehavior.resolveCommand(H,{form:X})}}};
_.R.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ja.Object.defineProperties(nz.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var X;return _.f((X=this.data)==null?void 0:X.metadata,iFq)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.f(this.metadata.businessEmailRevealButton,_.fk)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var X=new URL(this.metadata.canonicalChannelUrl);return X.host+X.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 _.f(this.metadata.learnMoreOnTap,_.qq)}}});
nz.prototype.onYtServiceRequestCompleted=nz.prototype.onYtServiceRequestCompleted;nz.prototype.businessEmailMetadataChanged=nz.prototype.businessEmailMetadataChanged;nz.prototype.refit=nz.prototype.refit;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],nz.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.A2("#g-recaptcha-response"),_.N("design:type",HTMLTextAreaElement)],nz.prototype,"JSC$16744_captchaTextarea",void 0);_.T([_.g(),_.N("design:type",Object)],nz.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],nz.prototype,"revealButtonClass",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nz.prototype,"metadata",null);
_.T([_.x("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],nz.prototype,"revealButton",null);_.T([_.x("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],nz.prototype,"channelDisplayUrl",null);_.T([_.oi("metadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nz.prototype,"refit",null);_.T([_.x("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],nz.prototype,"formattedDescription",null);
_.T([_.x("metadata","learnMoreCommand"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],nz.prototype,"shouldRendereVerifiedPhoneStatus",null);_.T([_.x("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],nz.prototype,"learnMoreCommand",null);_.T([_.g(),_.N("design:type",String)],nz.prototype,"businessEmailDisplayState",void 0);_.T([_.g(),_.N("design:type",String)],nz.prototype,"businessEmail",void 0);
_.T([_.g(),_.N("design:type",String)],nz.prototype,"businessEmailErrorMessage",void 0);_.T([_.oi("metadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nz.prototype,"businessEmailMetadataChanged",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],nz.prototype,"onYtServiceRequestCompleted",null);
_.T([_.sq({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],nz);
_.O(nz,"ytd-about-channel-renderer",function(){if(YpG!==void 0)return YpG;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return YpG=X},{mode:1});var HCQ;var kI=function(){return _.a.apply(this,arguments)||this};
_.S(kI,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],kI.prototype,"data",void 0);_.T([_.sq({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],kI);
_.O(kI,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(HCQ!==void 0)return HCQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return HCQ=X},{mode:1});var lW_;var xI=function(){return _.a.apply(this,arguments)||this};
_.S(xI,_.a);xI.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xI.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],xI.prototype,"aligment",void 0);_.T([_.sq({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],xI);
_.O(xI,"ytd-channel-list-sub-menu-renderer",function(){if(lW_!==void 0)return lW_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return lW_=
X},{mode:1});var o99;var DG=function(){return _.a.apply(this,arguments)||this};
_.S(DG,_.a);DG.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],DG.prototype,"data",void 0);_.T([_.sq({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],DG);
_.O(DG,"ytd-channel-sub-menu-renderer",function(){if(o99!==void 0)return o99;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return o99=X},{mode:1});var bCv;var ULQ;var td=function(){var X=_.a.apply(this,arguments)||this;X.isCompact=!1;return X};
_.S(td,_.a);_.ja.Object.defineProperties(td.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var X,H;return((H=_.f((X=this.data)==null?void 0:X.endpoint,_.aL))==null?void 0:H.target)==="TARGET_NEW_WINDOW"}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],td.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],td.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],td.prototype,"isCompact",void 0);_.T([_.x("isCompact"),_.N("design:type",Number),_.N("design:paramtypes",[])],td.prototype,"thumbnailWidth",null);
_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],td.prototype,"openNewWindow",null);_.T([_.sq({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],td);
_.O(td,"ytd-media-lockup-renderer",function(){if(ULQ!==void 0)return ULQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ULQ=X},{mode:1});var $L_;var WT=function(){return _.a.apply(this,arguments)||this};
_.S(WT,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],WT.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],WT.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],WT.prototype,"data",void 0);_.T([_.sq({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],WT);
_.O(WT,"ytd-structured-description-channel-lockup-renderer",function(){if($L_!==void 0)return $L_;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return $L_=X},{mode:1});var KbG;var Ez=function(){var X=_.a.apply(this,arguments)||this;X.isCompact=!1;X.collectionsStackColor=_.P("modernize_structured_description_playlist_lockups_v2");return X};
_.S(Ez,_.a);Ez.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:_.P("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.ja.Object.defineProperties(Ez.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b,U,K;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(X=this.data)==null?void 0:(H=X.thumbnail)==null?void 0:H.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(l=this.data)==null?void 0:(b=l.thumbnail)==null?void 0:b.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(U=this.data)==null?void 0:(K=U.thumbnail)==null?
void 0:K.vibrantColorPalette:void 0}}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Ez.prototype,"componentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ez.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ez.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ez.prototype,"showSidePanelThumbnailOverlay",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ez.prototype,"isCompact",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ez.prototype,"collectionsStackColor",void 0);_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ez.prototype,"twoLineTitle",null);_.T([_.x("data","collectionsStackColor"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ez.prototype,"collectionStack",null);
_.T([_.sq({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Ez);
_.O(Ez,"ytd-structured-description-playlist-lockup-renderer",function(){if(KbG!==void 0)return KbG;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return KbG=X},{mode:1});var RWt;var gG=function(){return _.a.apply(this,arguments)||this};
_.S(gG,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],gG.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],gG.prototype,"data",void 0);_.T([_.sq({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],gG);
_.O(gG,"ytd-structured-description-video-lockup-renderer",function(){if(RWt!==void 0)return RWt;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return RWt=X},{mode:2});var Gy=function(){return _.a.apply(this,arguments)||this};
_.S(Gy,_.a);
Gy.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Gy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Gy.prototype,"data",void 0);_.T([_.sq({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Gy);
_.O(Gy,"ytd-compact-infocard-renderer",function(){if(bCv!==void 0)return bCv;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return bCv=X},{mode:1});var CoQ;var al=function(){return _.a.apply(this,arguments)||this};
_.S(al,_.a);al.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ja.Object.defineProperties(al.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.P("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.P("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.P("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],al.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],al.prototype,"ytdReduxBehavior",void 0);_.T([_.g({selector:_.sm}),_.N("design:type",Object)],al.prototype,"isGridViewEnabled",void 0);
_.T([_.x("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],al.prototype,"watchFeedBigThumbs",null);_.T([_.x("isGridViewEnabled","data"),_.g({reflectToAttribute:!0,value:"168"}),_.N("design:type",String),_.N("design:paramtypes",[])],al.prototype,"thumbnailWidth",null);_.T([_.x("isGridViewEnabled","data"),_.g({reflectToAttribute:!0,value:"94"}),_.N("design:type",String),_.N("design:paramtypes",[])],al.prototype,"customThumbnailSize",null);
_.T([_.g(),_.N("design:type",Object)],al.prototype,"data",void 0);_.T([_.sq({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],al);
_.O(al,"ytd-compact-playlist-renderer",function(){if(CoQ!==void 0)return CoQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return CoQ=X},{mode:1});var weq;var ZG=function(){var X=_.a.apply(this,arguments)||this;X.roundedContainer=!0;X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return X};
_.S(ZG,_.a);_.R=ZG.prototype;_.R.attached=function(){this.requestElementsPerRow()};
_.R.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"}}}};
_.R.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.R.computeViewStyle=function(X){return X.style?X.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.R.onUpdateElementsPerRowAction=function(X){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&X===1};
_.R.requestElementsPerRow=function(){_.QX(this.hostElement,"yt-request-elements-per-row")};
ZG.prototype.dataChanged=ZG.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],ZG.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],ZG.prototype,"actionHandlerBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],ZG.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],ZG.prototype,"hideThumbnail",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.N("design:type",String)],ZG.prototype,"viewStyle",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ZG.prototype,"roundedContainer",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZG.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],ZG);
_.O(ZG,"ytd-compact-promoted-item-renderer",function(){if(weq!==void 0)return weq;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return weq=X},{mode:1});var dLQ;var im=function(){return _.a.apply(this,arguments)||this};
_.S(im,_.a);im.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
im.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
im.prototype.onYtNavigate=function(X,H){var l=this;if(H.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",H)){var b=this.get("watchEndpoint.videoId",H.endpoint),U=_.NG(this.hostElement,"yt-get-current-video-id-action")[0];_.P("kevlar_mix_handle_first_endpoint_different")&&b&&U&&b!==U||(X.stopPropagation(),_.ZH().getPlayerPromise().then(function(K){if(K.getPlayerState()===0&&l.data.secondaryNavigationEndpoint)var w=l.data.secondaryNavigationEndpoint;else{w=
Object.assign({},H.endpoint);var d=_.f(w.commandMetadata,_.Ip);d&&(K=Math.floor(K.getCurrentTime()),d.url=_.An(d.url,{t:K}),!_.P("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(d=_.f(w,_.ku)))&&(d.startTimeSeconds=K)}_.QX(l.hostElement,"yt-navigate",{endpoint:w})}))}};
_.ja.Object.defineProperties(im.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.P("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.P("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b,U,K;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(X=this.data)==null?void 0:(H=X.thumbnail)==null?void 0:H.sampledThumbnailColor,vibrantColorPalette:(l=this.data)==null?void 0:(b=l.thumbnail)==null?void 0:b.vibrantColorPalette,darkColorPalette:(U=this.data)==null?void 0:(K=U.thumbnail)==null?void 0:K.darkColorPalette,experimentEnabled:!0}}}});
im.prototype.onYtNavigate=im.prototype.onYtNavigate;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.jj.YtEndpointBehavior),_.N("design:type",Object)],im.prototype,"ytEndpointBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],im.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],im.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.k(_.Sn),_.N("design:type",Object)],im.prototype,"ytdLockupBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],im.prototype,"ytdReduxBehavior",void 0);_.T([_.g({selector:_.sm}),_.N("design:type",Object)],im.prototype,"isGridViewEnabled",void 0);_.T([_.x("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],im.prototype,"watchFeedBigThumbs",null);
_.T([_.x("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],im.prototype,"thumbnailWidth",null);_.T([_.g(),_.N("design:type",Object)],im.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],im.prototype,"collectionStack",null);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],im.prototype,"onYtNavigate",null);
_.T([_.sq({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],im);
_.O(im,"ytd-compact-radio-renderer",function(){if(dLQ!==void 0)return dLQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return dLQ=X},{mode:1});var hWY;var vT=function(){return _.a.apply(this,arguments)||this};
_.S(vT,_.a);vT.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
vT.prototype.computeRendererStyle=function(X){return X.style?X.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.T([_.g(),_.N("design:type",Object)],vT.prototype,"data",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],vT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],vT.prototype,"rendererBehavior",void 0);_.T([_.g({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],vT.prototype,"rendererStyle",void 0);_.T([_.sq({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],vT);
_.O(vT,"ytd-compact-text-promo-renderer",function(){if(hWY!==void 0)return hWY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return hWY=X},{mode:1});var FbY;var Oz=function(){var X=_.a.apply(this,arguments)||this;X.isShortsStyle=!1;return X};
_.S(Oz,_.a);_.R=Oz.prototype;_.R.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"}}}};
_.R.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.QX(this.hostElement,"yt-disable-lockup-interaction"):_.QX(this.hostElement,"yt-enable-lockup-interaction"))};
_.R.isMetaBlockEmpty=function(X){return!X||!X.longBylineText&&!X.shortBylineText&&!X.shortViewCountText&&!X.viewCountText};
_.R.computeHasOneLineTitle=function(X){return this.forceOneLineTitle||!(X==null||!X.buttons)};
_.R.computeDisableInteraction=function(){var X;return!((X=this.data)==null?0:X.navigationEndpoint)};
_.R.hasSingularTopStandaloneBadge=function(){var X;return!((X=this.data)==null||!X.topStandaloneBadge)};
_.ja.Object.defineProperties(Oz.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.P("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.P("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 X;return this.hasSingularTopStandaloneBadge()?[(X=this.data)==null?void 0:X.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var X;return this.shouldShowTopBadges?((X=this.data)==null?void 0:X.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Oz.prototype.disableInteractionChanged=Oz.prototype.disableInteractionChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Oz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],Oz.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],Oz.prototype,"ytdLockupBehavior",void 0);
_.T([_.k(_.sv),_.N("design:type",Object)],Oz.prototype,"ytdReduxBehavior",void 0);_.T([_.g({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.N("design:type",Boolean)],Oz.prototype,"metaBlockEmpty",void 0);_.T([_.g({selector:_.sm}),_.N("design:type",Object)],Oz.prototype,"isGridViewEnabled",void 0);_.T([_.x("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Oz.prototype,"watchFeedBigThumbs",null);
_.T([_.x("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],Oz.prototype,"thumbnailWidth",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Oz.prototype,"isShortsStyle",void 0);_.T([_.g(),_.N("design:type",Object)],Oz.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.N("design:type",Boolean)],Oz.prototype,"hasOneLineTitle",void 0);
_.T([_.g(),_.N("design:type",Boolean)],Oz.prototype,"hideThumbnail",void 0);_.T([_.g(),_.N("design:type",Boolean)],Oz.prototype,"forceOneLineTitle",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.N("design:type",Boolean)],Oz.prototype,"disableInteraction",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Oz.prototype,"musicMetadataVideoLockup",void 0);
_.T([_.Yh("disableInteraction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oz.prototype,"disableInteractionChanged",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Oz.prototype,"shouldShowTopBadges",null);_.T([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],Oz.prototype,"topBadges",null);
_.T([_.x("shouldShowTopBadges","data"),_.N("design:type",Array),_.N("design:paramtypes",[])],Oz.prototype,"inlineMetadataBadges",null);_.T([_.x("shouldShowTopBadges"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Oz.prototype,"shouldShowBadgesBelowMetadata",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Oz.prototype,"compactTitleClass",null);_.T([_.sq({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Oz);
_.O(Oz,"ytd-compact-video-renderer",function(){if(FbY!==void 0)return FbY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return FbY=X},{mode:2});var BS6;_.wd("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var mn=function(){return _.a.apply(this,arguments)||this};
_.S(mn,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],mn.prototype,"data",void 0);_.T([_.sq({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],mn);
_.O(mn,"ytd-counterfactual-renderer",function(){if(BS6!==void 0)return BS6;var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return BS6=X},{mode:1});var qWq;var QM=function(){var X=_.a.apply(this,arguments)||this;X.hidden=!1;return X};
_.S(QM,_.a);QM.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.jJ().resolve(_.Vr).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
QM.prototype.computeHidden=function(X){return!!X};
_.ja.Object.defineProperties(QM.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],QM.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.N("design:type",Object)],QM.prototype,"hidden",void 0);_.T([_.x("data.label"),_.N("design:type",String),_.N("design:paramtypes",[])],QM.prototype,"label",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],QM.prototype,"value",null);
_.T([_.sq({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],QM);
_.O(QM,"ytd-dropdown-item-renderer",function(){if(qWq!==void 0)return qWq;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return qWq=X},{mode:1});var sPQ;var M8G;var Ty=function(){return _.a.apply(this,arguments)||this};
_.S(Ty,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ty.prototype,"data",void 0);_.T([_.g({computed:"getSimpleString(data.label)"}),_.N("design:type",String)],Ty.prototype,"label",void 0);_.T([_.sq({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Ty);
_.O(Ty,"ytd-navigation-dropdown-item-renderer",function(){if(M8G!==void 0)return M8G;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return M8G=X},{mode:1});var N$=function(){var X=_.a.apply(this,arguments)||this;X.disabled=!1;X.value="";X.noLabelFloat=!1;X.noUnderline=!1;X.usePrimaryColor=!1;X.hasBackground=!1;X.verticalAlign="top";X.autosize=!1;X.minAutosizeWidth=100;X.autosizeFont="14px Roboto";return X};
_.S(N$,_.a);_.R=N$.prototype;_.R.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"}}}};
_.R.open=function(){this.inputEl.open()};
_.R.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.R.dataChanged=function(){this.reset()};
_.R.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("value-changed",this.value))};
_.R.stopPropagation=function(X){X.stopPropagation()};
_.R.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var X=this.canvas.getContext("2d");X&&(X.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(X.measureText(this.inputEl.value).width)+24)+"px")}};
_.R.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var X=0,H=this.data.entries.length;X<H;X++){var l=this.data.entries[X],b;for(b in l)if(l.hasOwnProperty(b)){var U=l[b];if("isSelected"in U&&U.isSelected)return"stringValue"in U?U.stringValue||"":"int32Value"in U?U.int32Value||0:0}}return null};
_.R.updateValueFromBinding=function(X){this.value=X.detail.value};
_.ja.Object.defineProperties(N$.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 X=0,H=this.data.entries.length;X<H;X++){var l=this.data.entries[X],b;for(b in l)if(l.hasOwnProperty(b)){var U=l[b];if("isSelected"in U&&U.isSelected&&"label"in U)return this.ytRendererBehavior.getSimpleString(U.label)}}return null}}});
N$.prototype.autoSizeLabel=N$.prototype.autoSizeLabel;N$.prototype.stopPropagation=N$.prototype.stopPropagation;N$.prototype.valueChangedForBinding=N$.prototype.valueChangedForBinding;N$.prototype.dataChanged=N$.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],N$.prototype,"ytRendererStamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],N$.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],N$.prototype,"disabled",void 0);_.T([_.g(),_.N("design:type",Object)],N$.prototype,"value",void 0);_.T([_.g(),_.N("design:type",Object)],N$.prototype,"noLabelFloat",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],N$.prototype,"noUnderline",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],N$.prototype,"theme",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],N$.prototype,"usePrimaryColor",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],N$.prototype,"hasBackground",void 0);_.T([_.g(),_.N("design:type",Object)],N$.prototype,"verticalAlign",void 0);_.T([_.g(),_.N("design:type",Object)],N$.prototype,"autosize",void 0);_.T([_.g(),_.N("design:type",Object)],N$.prototype,"minAutosizeWidth",void 0);_.T([_.g(),_.N("design:type",Object)],N$.prototype,"autosizeFont",void 0);
_.T([_.A2("#entries"),_.N("design:type",Object)],N$.prototype,"entries",void 0);_.T([_.A2("#input"),_.N("design:type",Object)],N$.prototype,"inputEl",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N$.prototype,"dataChanged",null);_.T([_.oi("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N$.prototype,"valueChangedForBinding",null);
_.T([_.Le("iron-overlay-opened"),_.Le("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],N$.prototype,"stopPropagation",null);_.T([_.Le("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N$.prototype,"autoSizeLabel",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],N$.prototype,"label",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],N$);
_.O(N$,"ytd-dropdown-renderer",function(){if(sPQ!==void 0)return sPQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return sPQ=X},{mode:1});var uq_;var cT=function(){var X=_.a.apply(this,arguments)||this;X.isConstrainedList=!1;return X};
_.S(cT,_.a);cT.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"}}}};
cT.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
cT.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
cT.prototype.computeViewAllHidden=function(X,H){return X||!H.viewAllEndpoint};
cT.prototype.fillRestIfNoShowMore=cT.prototype.fillRestIfNoShowMore;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],cT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.aI.YtLazyListBehavior),_.N("design:type",Object)],cT.prototype,"ytLazyListBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],cT.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],cT.prototype,"isConstrainedList",void 0);_.T([_.oi("data","canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cT.prototype,"fillRestIfNoShowMore",null);_.T([_.sq({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],cT);
_.O(cT,"ytd-expanded-shelf-contents-renderer",function(){if(uq_!==void 0)return uq_;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return uq_=X},{mode:2});var eWG;var jx=function(){return _.a.apply(this,arguments)||this};
_.S(jx,_.a);jx.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],jx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],jx.prototype,"data",void 0);_.T([_.sq({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],jx);
_.O(jx,"ytd-feed-channel-filter-header-renderer",function(){if(eWG!==void 0)return eWG;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return eWG=X},{mode:1});var y3t;var V8D;var PoH;var rG=function(){return _.a.apply(this,arguments)||this};
_.S(rG,_.a);_.R=rG.prototype;_.R.onClick=function(X){var H,l=(H=this.data)==null?void 0:H.sectionEndpoint;!_.WS(_.t2(X),this.hostElement,["A".toString()])&&l&&_.QX(this.hostElement,"yt-navigate",{endpoint:l})};
_.R.computeHasSectionEndpoint=function(X){return(X==null?void 0:X.sectionEndpoint)!==void 0};
_.R.computeShowHeaderAsLink=function(X){return(X==null?void 0:X.header)!==void 0&&(X==null?void 0:X.sectionEndpoint)!==void 0};
_.R.computeShowSubheaderAsLink=function(X){return(X==null?void 0:X.subheader)!==void 0&&(X==null?void 0:X.sectionEndpoint)!==void 0&&(X==null?void 0:X.header)===void 0};
_.R.getHeaderAsLinkClass=function(X){var H=[],l;(X==null?0:(l=X.headerIcon)==null?0:l.iconType)&&H.push("header-link-active");return H.join(" ")};
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],rG.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],rG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],rG.prototype,"data",void 0);
_.T([_.g({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],rG.prototype,"hasSectionEndpoint",void 0);_.T([_.g({computed:"computeShowHeaderAsLink(data)"}),_.N("design:type",Boolean)],rG.prototype,"showHeaderAsLink",void 0);_.T([_.g({computed:"computeShowSubheaderAsLink(data)"}),_.N("design:type",Boolean)],rG.prototype,"showSubheaderAsLink",void 0);_.T([_.sq({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],rG);
_.O(rG,"ytd-medical-panel-section-renderer",function(){if(PoH!==void 0)return PoH;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return PoH=X},{mode:1});var Jd=function(){var X=_.a.apply(this,arguments)||this;X.isExpanded=!1;X.roundedContainer=!0;X.skipRoundingTop=!1;X.toggleExpandableSection=function(){X.isExpanded=!X.isExpanded};
return X};
_.S(Jd,_.a);
Jd.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]]"}}}}}};
Jd.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Jd.prototype.dataChanged=Jd.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Jd.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Jd.prototype,"isExpanded",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Jd.prototype,"roundedContainer",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Jd.prototype,"skipRoundingTop",void 0);_.T([_.g(),_.N("design:type",Object)],Jd.prototype,"toggleExpandableSection",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jd.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Jd);
_.O(Jd,"ytd-medical-panel-content-renderer",function(){if(V8D!==void 0)return V8D;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return V8D=X},{mode:1});_.wd("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Lz=function(){var X=_.a.apply(this,arguments)||this;X.roundedContainer=!0;X.extractOverlay=!1;X.amsterdamEnabled=_.P("enable_desktop_amsterdam_info_panels");X.hasTitle=!1;X.linkIcon="OPEN_IN_NEW";X.isDismissed=!1;return X};
_.S(Lz,_.a);Lz.prototype.onOverlayConditionsChange=function(){var X=_.mh(this.hostElement).querySelector("ytd-info-panel-content-renderer");X&&(X.set("extractOverlay",this.extractOverlay),X.set("roundedContainer",this.roundedContainer))};
Lz.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"}}}};
Lz.prototype.computeHasTitle=function(X){return!(X==null||!X.title)};
Lz.prototype.onClick=function(X){var H,l=(H=this.data)==null?void 0:H.headerEndpoint;!_.WS(_.t2(X),this.hostElement,["BUTTON".toString()])&&l&&this.ytComponentBehavior.resolveCommand(l)};
_.ja.Object.defineProperties(Lz.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 X;return((X=this.data)==null?void 0:X.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:X.disableBottomDivider)||!((H=this.data)==null?0:H.title)}}});
Lz.prototype.onOverlayConditionsChange=Lz.prototype.onOverlayConditionsChange;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Lz.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Lz.prototype,"ytdReduxBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],Lz.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Lz.prototype,"roundedContainer",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Lz.prototype,"extractOverlay",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Lz.prototype,"amsterdamEnabled",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.N("design:type",Object)],Lz.prototype,"hasTitle",void 0);
_.T([_.g({type:_.P("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.x("data.background"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lz.prototype,"background",null);_.T([_.g({type:_.P("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.x("data.titleStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lz.prototype,"titleStyle",null);
_.T([_.g({type:_.P("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.x("data.titleStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lz.prototype,"showLinkIcon",null);_.T([_.g(),_.N("design:type",String)],Lz.prototype,"linkIcon",void 0);_.T([_.g({type:_.P("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lz.prototype,"hideDivider",null);
_.T([_.g({selectorArgs:["data.dismissStateEntityKey"],selector:function(X,H){X=_.JY(X.entities,"dismissState",H);return(X==null?void 0:X.isDismissed)||(X==null?void 0:X.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(X==null?void 0:X.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.N("design:type",Object)],Lz.prototype,"isDismissed",void 0);_.T([_.Yh("roundedContainer","extractOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lz.prototype,"onOverlayConditionsChange",null);_.T([_.sq({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Lz);
_.O(Lz,"ytd-info-panel-container-renderer",function(){if(y3t!==void 0)return y3t;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return y3t=X},{mode:1});var fWC;_.wd("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var YI=function(){return _.a.apply(this,arguments)||this};
_.S(YI,_.a);YI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
YI.prototype.computeStyle=function(X){return X?X:""};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],YI.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.N("design:type",String)],YI.prototype,"titleStyle",void 0);
_.T([_.sq({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],YI);
_.mr()(YI,"ytd-item-section-header-renderer",function(){if(fWC===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);fWC=X}X=fWC;return X},{allowedProps:["data"],
mode:1});var peq;var SWH,zW6=function(){return SWH!==void 0?SWH:SWH=document.createElement("template")};
document.head.appendChild(zW6().content);var n9G;_.Il=new _.gz("VOTING_ANIMATION_CONTROLLER_TOKEN");var xL_=_.Z(function(X){var H=X.data;var l=_.SJ("div"),b=_.SJ("div");X=_.C(_.FU("VOTE_STATUS_NONE",void 0,"YPH5mf"));var U=X.next().value,K=X.next().value,w=_.Aw(ZMZ,function(){var y;return(y=H())==null?void 0:y.entityKey}),d=_.P("web_enable_voting_animation")||_.P("enable_music_web_cairo_voting_animation");
_.DR(function(){var y;((y=H().initialState)==null?0:y.status)&&K(H().initialState.status)});
var B=function(){var y,V,p=(V=(y=H().initialState)==null?void 0:y.votes)!=null?V:0,z;y=(z=H().initialState)==null?void 0:z.status;return y==="VOTE_STATUS_UPVOTED"?p-1:y==="VOTE_STATUS_DOWNVOTED"?p+1:p},q=function(){return U()==="VOTE_STATUS_UPVOTED"?B()+1:U()==="VOTE_STATUS_DOWNVOTED"?B()-1:B()},u=function(y){var V=y?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
K(V);var p=q(),z=_.jJ().resolve(_.c$(_.Il)),t=w();t&&(y&&(t==null?0:t.upvoteDefaultButtonOnTap)?_.yr(t.upvoteDefaultButtonOnTap,{form:{element:l.value},disableClickTracking:!0}):(t==null?0:t.upvoteToggledButtonOnTap)&&_.yr(t.upvoteToggledButtonOnTap,{form:{element:l.value},disableClickTracking:!0}));var W;y=(W=t==null?void 0:t.enableOptimisticReordering)!=null?W:H().enableOptimisticReordering;d&&z&&H().itemId&&y&&k9Q(z,H().itemId,p,V)},e=function(y){var V=y?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
K(V);var p=q(),z=_.jJ().resolve(_.c$(_.Il)),t=w();t&&(y&&(t==null?0:t.downvoteDefaultButtonOnTap)?_.yr(t.downvoteDefaultButtonOnTap,{form:{element:b.value},disableClickTracking:!0}):(t==null?0:t.downvoteToggledButtonOnTap)&&_.yr(t.downvoteToggledButtonOnTap,{form:{element:b.value},disableClickTracking:!0}));var W;y=(W=t==null?void 0:t.enableOptimisticReordering)!=null?W:H().enableOptimisticReordering;d&&z&&H().itemId&&y&&k9Q(z,H().itemId,p,V)};
X={};X=_.Qr("ytVotingViewModelVoteCount",(X.ytVotingViewModelVoteCountDisabled=function(){return H().isDisabled},X));
return _.F("voting-view-model",{class:"ytVotingViewModelHost"},_.F("div",{el:l},_.F(_.l4,{data:function(){var y=_.f(H().upvoteButton,_.SR);return{toggleButtonViewModel:Object.assign({},y,{isToggled:U()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(y){return _.F(_.KL,{data:y.data,
onToggle:u})}})),_.F("div",{class:X},function(){var y,V,p;
return U()==="VOTE_STATUS_UPVOTED"?(y=H().initialState)==null?void 0:y.compactVotesUpvoted:U()==="VOTE_STATUS_DOWNVOTED"?(V=H().initialState)==null?void 0:V.compactVotesDownvoted:(p=H().initialState)==null?void 0:p.compactVotes}),_.F("div",{el:b},_.F(_.l4,{data:function(){var y=_.f(H().downvoteButton,_.SR);
return{toggleButtonViewModel:Object.assign({},y,{isToggled:U()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(y){return _.F(_.KL,{data:y.data,
onToggle:e})}})))},"ld");_.gC(_.Z(function(X){var H=X.data;return _.F("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.F("div",{class:_.Qr("ytEngagementBarViewModelEngagementBarWrapper",X.className)},_.F(_.l4,{data:function(){return H().actions}},{votingViewModel:xL_})))},"md"),"engagement-bar-view-model",{props:{data:_.zh,
className:_.zh}});var Ad=function(){var X=_.a.apply(this,arguments)||this;X.playlistVotingAnimationEnabled=_.P("web_enable_voting_animation");X.downloadProgress=0;X.transferState="TRANSFER_STATE_UNKNOWN";X.downloadState="DOWNLOAD_STATE_UNKNOWN";X.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";X.offlineVideoPolicyExpirationTimestamp=0;return X};
_.S(Ad,_.a);_.R=Ad.prototype;_.R.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"}}}};
_.R.canReorderChanged=function(){this.persistentDragHandle=_.P("kevlar_playlist_drag_handles")&&this.canReorder};
_.R.onDrag=function(){if(this.thumbnail){var X=_.mh(this.thumbnail).querySelector("yt-image");X&&(X.shouldRenderLazy=!1)}};
_.R.onMenuOverlayChanged=function(X,H){this.menuOpened=H};
_.R.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.R.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.R.onContentsTap=function(X){var H,l=(H=this.data)==null?void 0:H.serviceEndpoints;if(l&&l.length===1&&_.f(l[0],ObL)&&!_.WS(_.t2(X),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(l[0]);else{var b;(H=(b=this.data)==null?void 0:b.navigationEndpoint)&&_.P("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?DLY(_.jJ().resolve(_.f9),H):(_.HW().playlistSuggestionsShelfActivation=
!0,_.t8H(_.jJ().resolve(_.f9),H)):H&&!_.WS(_.t2(X),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.P("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.QX(this.hostElement,"yt-navigate",{endpoint:H}):this.ytComponentBehavior.resolveCommand(H))}};
_.R.computeStyle=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.R.computeThumbnailWidth=function(X){return X==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.R.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=oGy(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))}};
_.R.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.R.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.R.dataChanged=function(){if(this.data){var X,H,l,b=((X=this.downloadRenderData)==null?void 0:X.badges)&&((H=this.downloadRenderData)==null?void 0:H.badges)!==((l=this.data)==null?void 0:l.badges),U,K,w;X=((U=this.downloadRenderData)==null?void 0:U.thumbnailOverlays)&&((K=this.downloadRenderData)==null?void 0:K.thumbnailOverlays)!==((w=this.data)==null?void 0:w.thumbnailOverlays);(!this.downloadRenderData||b||X)&&this.downloadStateChanged()}};
_.R.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var X,H,l=(X=this.data.menu)==null?void 0:(H=X.menuRenderer)==null?void 0:H.items;if(l)for(X=_.C(l),H=X.next();!H.done;H=X.next())if(H=H.value,l=void 0,_.f((l=H.menuServiceItemRenderer)==null?void 0:l.serviceEndpoint,_.MI)){var b=l=void 0,U=void 0;H=(l=H)==null?void 0:(b=l.menuServiceItemRenderer)==null?void 0:(U=b.serviceEndpoint)==null?void 0:U.playlistEditEndpoint;U=b=void 0;if(l=(b=H)==null?void 0:(U=b.actions)==null?void 0:
U[0])b=void 0,l.setVideoId=(b=this.data)==null?void 0:b.setVideoId;U=b=l=void 0;if(H=(l=H)==null?void 0:(b=l.clientActions)==null?void 0:(U=b[0])==null?void 0:U.playlistRemoveVideosAction)l=void 0,H.setVideoIds=[(l=this.data)==null?void 0:l.setVideoId]}}};
_.ja.Object.defineProperties(Ad.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Ad.prototype.setVideoIdChanged=Ad.prototype.setVideoIdChanged;Ad.prototype.dataChanged=Ad.prototype.dataChanged;Ad.prototype.downloadStateChanged=Ad.prototype.downloadStateChanged;Ad.prototype.onMenuOverlayChanged=Ad.prototype.onMenuOverlayChanged;Ad.prototype.canReorderChanged=Ad.prototype.canReorderChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Ad.prototype,"ytdReduxBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ad.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],Ad.prototype,"ytdLockupBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],Ad.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Ad.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ad.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ad.prototype,"canReorder",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ad.prototype,"menuOpened",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ad.prototype,"handleIsHovered",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ad.prototype,"persistentDragHandle",void 0);_.T([_.g(),_.N("design:type",Object)],Ad.prototype,"downloadRenderData",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],Ad.prototype,"styleType",void 0);_.T([_.g({computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],Ad.prototype,"thumbnailWidth",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Ad.prototype,"isDownloads",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ad.prototype,"playlistVotingAnimationEnabled",void 0);
_.T([_.g({selector:VR,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ad.prototype,"downloadProgress",void 0);_.T([_.g(),_.N("design:type",Number)],Ad.prototype,"relativeDateReference",void 0);_.T([_.g({selector:_.e0,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ad.prototype,"transferState",void 0);_.T([_.g({selector:JWW,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ad.prototype,"downloadState",void 0);
_.T([_.g({selector:EWh,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ad.prototype,"offlinePolicyAction",void 0);_.T([_.g({selector:gWy,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ad.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.T([_.g({selector:a$W,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],Ad.prototype,"entityInfo",void 0);_.T([_.g({selector:_.s9}),_.N("design:type",Boolean)],Ad.prototype,"miniplayerIsActive",void 0);
_.T([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Ad.prototype,"playlistVideoId",null);_.T([_.A2("#thumbnail"),_.N("design:type",Object)],Ad.prototype,"thumbnail",void 0);_.T([_.oi("canReorder"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ad.prototype,"canReorderChanged",null);
_.T([_.Le("yt-menu-overlay-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Boolean]),_.N("design:returntype")],Ad.prototype,"onMenuOverlayChanged",null);_.T([_.oi("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ad.prototype,"downloadStateChanged",null);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ad.prototype,"dataChanged",null);_.T([_.oi("data.setVideoId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ad.prototype,"setVideoIdChanged",null);_.T([_.sq({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Ad);
_.O(Ad,"ytd-playlist-video-renderer",function(){if(n9G!==void 0)return n9G;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);X.content.insertBefore(zW6().content.cloneNode(!0),X.content.firstChild);return n9G=X},{mode:1});var WbC;var Xm=function(){return _.a.apply(this,arguments)||this};
_.S(Xm,_.a);_.T([_.g(),_.N("design:type",Object)],Xm.prototype,"data",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Xm.prototype,"rendererBehavior",void 0);_.T([_.sq({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],Xm);
_.O(Xm,"ytd-premium-browse-footer-renderer",function(){if(WbC!==void 0)return WbC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return WbC=X},{mode:1});var E9Y;var H3=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return X};
_.S(H3,_.a);_.R=H3.prototype;_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.handleDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.R.computeHeaderLogoThumbnail=function(X,H){if(X)return H?X.darkLogo:X.lightLogo};
_.R.computeHeaderLogoHeight=function(X,H){var l,b,U;return(X=(l=this.computeHeaderLogoThumbnail(X,H))==null?void 0:(b=l.thumbnails)==null?void 0:(U=b[0])==null?void 0:U.height)&&X%31===0?"31":"24"};
_.R.computeHeaderLogoMarginBottom=function(X,H){return this.computeHeaderLogoHeight(X,H)==="24"?"0":"-7"};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],H3.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],H3.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],H3.prototype,"isDarkTheme",void 0);_.T([_.g({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.N("design:type",Object)],H3.prototype,"themeLogo",void 0);
_.T([_.g({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.N("design:type",String)],H3.prototype,"logoHeight",void 0);_.T([_.g({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.N("design:type",String)],H3.prototype,"logoMarginBottom",void 0);_.T([_.sq({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],H3);
_.O(H3,"ytd-primetime-promo-header-renderer",function(){if(E9Y!==void 0)return E9Y;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return E9Y=X},{mode:1});var g9Q;_.ls=_.Z(function(X){var H=X.className;var l=X.data;var b=X.isOverlay;var U=X.maxLinesOverride;var K=X.useMediumText;var w=function(){return l().alwaysShowTruncationText},d=function(){return l().truncationText},B=function(){return K!==void 0&&K()?"medium":"small"},q=function(){return b!==void 0&&b()?"overlay":"default"},u=function(){var p,z;
return(z=(p=_.f(l().rendererContext,_.RB))==null?void 0:p.label)!=null?z:""};
X=_.C(_.FU(!1,void 0,"llBUm"));var e=X.next().value,y=X.next().value;X=_.Nq(function(){l().expandOnTap&&y(!e());return!1});
var V={};return _.F("yt-description-preview-view-model",{el:_.xl(_.Mh(function(){return l().rendererContext})),
class:_.Qr("ytDescriptionPreviewViewModelHost",H,(V.ytDescriptionPreviewViewModelClickable=function(){var p;return!((p=_.f(l().rendererContext,_.u4))==null||!p.onTap)},V.ytDescriptionPreviewViewModelIsOverlay=b,V)),
"on:click":X},_.F(_.M,{cond:function(){return l().description},
then:function(p){return _.F(_.M,{cond:e,then:function(){var z={};return _.F("div",{class:_.Qr("ytDescriptionPreviewViewModelDescription",(z.ytDescriptionPreviewViewModelDescriptionMediumText=K,z))},_.F(_.Sj,{text:p}))},
else:function(){return _.F(Z4F,{text:p,alwaysShowTruncationText:w,truncationText:d,maxLines:function(){var z;return(z=U==null?void 0:U())!=null?z:l().maxLines},
textStyle:q,accessibilityLabel:u,textSize:B})}})}}))},"nd");
_.ls.idomCompat=!0;var aWt=_.Z(function(X){var H=_.Nq(function(U){var K;(K=X.onClick)==null||K.call(X,U)}),l={},b={};
return _.F("yt-shelf-header-layout",{class:_.Qr("yt-shelf-header-layout",(l["yt-shelf-header-layout--disable-horizontal-padding"]=X.disableHorizontalPadding,l["yt-shelf-header-layout--disable-vertical-padding"]=X.disableVerticalPadding,l["yt-shelf-header-layout--responsive"]=X.useResponsiveLayout,l["yt-shelf-header-layout--narrow"]=function(){var U,K;return((U=X.useResponsiveLayout)==null?void 0:U.call(X))&&((K=X.forceSmallLayout)==null?void 0:K.call(X))},l["yt-shelf-header-layout--is-overlay"]=X.isOverlay,
l["yt-shelf-header-layout--tappable"]=X.isInteractive,l["yt-shelf-header-layout--optional-medium-layout-padding"]=X.useUpdatedPadding,l)),
"on:click":H,tabindex:function(){var U;return((U=X.isInteractive)==null?0:U.call(X))?0:void 0}},_.F("div",{class:"yt-shelf-header-layout__header-row"},_.F(_.M,{cond:X.leadingIcon,
then:function(U){return _.F("div",{class:"yt-shelf-header-layout__leading-icon"},_.F(_.Ja,{icon:U}))},
else:function(){return _.F(_.M,{cond:X.hasLeadingImage,then:function(){var U,K={};return _.F("div",{class:_.Qr("yt-shelf-header-layout__leading-image",(K["yt-shelf-header-layout__leading-image--circular-image"]=X.circularImage,K))},(U=X.leadingImage)==null?void 0:U.call(X))}})}}),_.F("div",{class:"yt-shelf-header-layout__label-container"},_.F(_.M,{cond:X.hasSuperlabel,
then:function(){var U;return _.F("div",{class:"yt-shelf-header-layout__superlabel"},(U=X.superlabel)==null?void 0:U.call(X))}}),_.F("div",{class:"yt-shelf-header-layout__title-row"},_.F(G9G,{text:X.title,
className:_.Qr("yt-shelf-header-layout__title",(b["yt-shelf-header-layout__title--small-title"]=X.forceSmallLayout,b)),tagLevel:X.tagLevel}),_.F(_.M,{cond:X.hasDetail,then:function(){var U;return _.F("div",{class:"yt-shelf-header-layout__detail"},(U=X.detail)==null?void 0:U.call(X))}})),_.F(_.M,{cond:X.hasSublabel,
then:function(){var U;return _.F("div",{class:"yt-shelf-header-layout__sublabel"},(U=X.sublabel)==null?void 0:U.call(X))}})),_.F(_.M,{cond:X.hasTrailingActions,
then:function(){var U;return _.F("div",{class:"yt-shelf-header-layout__trailing-actions"},(U=X.trailingActions)==null?void 0:U.call(X))}})),_.F(_.M,{cond:X.hasBottomAccessory,
then:function(){var U;return _.F("div",{class:"yt-shelf-header-layout__bottom-accessory"},(U=X.bottomAccessory)==null?void 0:U.call(X))}}))},"od");
aWt.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var G9G=_.Z(function(X){var H=X.text;var l=X.className;var b=X.tagLevel;return _.F(_.ff,null,_.F(_.yO,{when:function(){return(b==null?void 0:b())===0}},function(){return _.F("h2",{class:l},H())}),_.F(_.yO,{when:function(){return(b==null?void 0:b())===1}},function(){return _.F("h3",{class:l},H())}),_.F(_.yO,{when:function(){return(b==null?void 0:b())===2}},function(){return _.F("h4",{class:l},H())}),_.F(_.VO,null,function(){return _.F("h2",{class:l},H())}))},"pd");var v9Q,ZCG,iCt;_.on=_.Z(function(X){var H=X.className;var l=X.data;var b=X.disableHorizontalPadding;var U=X.disableVerticalPadding;var K=X.forceSmallLayout;var w=X.useResponsiveLayout;var d=X.isOverlay;X=X.useUpdatedPadding;return _.F("yt-section-header-view-model",{class:_.Qr("ytSectionHeaderViewModelHost",H),style:_.rC({"background-color":function(){return Hx(l().backgroundColor)?_.qw(Hx(l().backgroundColor)):void 0}})},_.F(aWt,{hasDetail:!1,
title:function(){return _.F(_.Sj,{text:function(){return l().headline}})},
hasTitle:!0,sublabel:function(){return _.F(ZCG,{data:l})},
hasSublabel:function(){return!!l().sublabel||!!l().bottomBadge},
superlabel:function(){return _.F(iCt,{data:l})},
hasSuperlabel:function(){return!!l().superlabel||!!l().topBadge},
leadingImage:function(){return _.F(v9Q,{leadingAccessory:function(){return l().leadingAccessory}})},
hasLeadingImage:function(){return!!l().leadingAccessory},
trailingActions:function(){return _.F(_.l4,{data:function(){return l().trailingActions}},{flexibleActionsViewModel:_.u2})},
hasTrailingActions:function(){return!!l().trailingActions},
disableHorizontalPadding:function(){return(b==null?void 0:b())||l().disableHorizontalPadding},
disableVerticalPadding:U,forceSmallLayout:K,useResponsiveLayout:w,isOverlay:d,isInteractive:function(){return!!_.qh(l().rendererContext)},
onClick:function(B){if(_.ss(l().rendererContext)){var q=_.qh(l().rendererContext);q&&_.Mq(q,{form:{element:B.target,event:B}})}},
bottomAccessory:function(){return _.F(_.l4,{data:function(){return l().bottomAccessory}},{descriptionPreviewViewModel:function(B){return _.F(_.ls,{data:B.data,
useMediumText:!0})},
commonMarkViewModel:function(B){B=B.data;var q;return _.F(_.Xi,null,(q=_.jJ().resolve(_.c$(Xwq)))==null?void 0:q({data:B}))}})},
hasBottomAccessory:function(){return!!l().bottomAccessory},
useUpdatedPadding:X}))},"qd");
v9Q=_.Z(function(X){var H=X.leadingAccessory;return _.F(_.Xi,null,_.F(_.M,{cond:function(){var l;return(l=H().image)!=null?l:_.Su(H().themedImage)},
then:function(l){return _.F(_.Dp,{data:l,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.F(_.M,{cond:function(){return _.f(H().avatar,_.eu)},
then:function(l){return _.F(_.MX,{data:l})}}))},"rd");
ZCG=_.Z(function(X){var H=X.data;return _.F(_.Xi,null,_.F(_.M,{cond:function(){return _.f(H().bottomBadge,QID)},
then:function(l){var b={};return _.F(_.Gi,{data:l,class:_.Qr((b.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!l()&&!!H().sublabel},b))})}}),_.F(_.M,{cond:function(){return H().sublabel},
then:function(l){return _.F(_.Sj,{text:l})}}))},"sd");
iCt=_.Z(function(X){var H=X.data;return _.F(_.Xi,null,_.F(_.M,{cond:function(){return _.f(H().topBadge,QID)},
then:function(l){var b={};return _.F(_.Gi,{data:l,class:_.Qr((b.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!l()&&!!H().superlabel},b))})}}),_.F(_.M,{cond:function(){return H().superlabel},
then:function(l){return _.F(_.Sj,{text:l})}}))},"td");_.gC(_.on,"yt-section-header-view-model",{props:{data:_.zh,className:_.zh,disableHorizontalPadding:_.zh,disableVerticalPadding:_.zh,forceSmallLayout:_.zh,useResponsiveLayout:_.zh,isOverlay:_.zh,useUpdatedPadding:_.zh}});_.wd("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var bs=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return X};
_.S(bs,_.a);_.R=bs.prototype;_.R.attached=function(){this.requestElementsPerRow()};
_.R.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"}}}};
_.R.onDataChange=function(){var X=this;_.N0(this,function(){X.updateItemVisibility()})};
_.R.onUpdateElementsPerRowAction=function(X){X&&this.elementsPerRow!==X&&(this.elementsPerRow=X,this.updateItemVisibility())};
_.R.updateItemVisibility=function(){var X=this;this.data&&this.data.panels&&_.mh(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(H,l){H.hidden=l>X.elementsPerRow-1})};
_.R.requestElementsPerRow=function(){_.QX(this.hostElement,"yt-request-elements-per-row")};
bs.prototype.onDataChange=bs.prototype.onDataChange;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],bs.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],bs.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],bs.prototype,"actionHandlerBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],bs.prototype,"data",void 0);_.T([_.g({value:3}),_.N("design:type",Number)],bs.prototype,"elementsPerRow",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bs.prototype,"onDataChange",null);_.T([_.sq({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],bs);
_.O(bs,"ytd-primetime-promo-renderer",function(){if(g9Q!==void 0)return g9Q;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return g9Q=X},{mode:1});var OCC;var UY=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return X};
_.S(UY,_.a);UY.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
UY.prototype.handleButtonRefreshAction=function(X){if(X=_.f(X,o7H))this.set("data.button",X.membershipButton),this.notifyPath("data.button")};
_.ja.Object.defineProperties(UY.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:(H=X.avatars)==null?void 0:H.slice(0,8))||[]}}});
_.T([_.g(),_.N("design:type",Object)],UY.prototype,"data",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],UY.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],UY.prototype,"rendererBehavior",void 0);_.T([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],UY.prototype,"avatars",null);
_.T([_.sq({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],UY);
_.O(UY,"ytd-recognition-shelf-renderer",function(){if(OCC!==void 0)return OCC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return OCC=X},{mode:1});var mLQ;var QPD;var $K=function(){var X=_.a.apply(this,arguments)||this;X.modernButtons=_.P("web_modern_buttons");return X};
_.S($K,_.a);_.R=$K.prototype;
_.R.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]]"}}}}}};
_.R.dataChanged=function(){this.collapsed=!0};
_.R.computeVisibleItems=function(X,H){return X!==void 0&&X.items?H?X.items.slice(0,this.data.collapsedItemCount):X.items:[]};
_.R.computeHideShowMore=function(X,H,l){return X>=H||!l};
_.R.computeHideShowAll=function(X,H,l){return!(X&&H)||l};
_.R.onMoreClick=function(){this.collapsed=!1};
_.ja.Object.defineProperties($K.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.P("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.I0("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.P("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
$K.prototype.dataChanged=$K.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$K.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],$K.prototype,"isSearch",void 0);
_.T([_.g({computed:"computeVisibleItems(data,collapsed)"}),_.N("design:type",Array)],$K.prototype,"visibleItems",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],$K.prototype,"collapsed",void 0);_.T([_.g({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.N("design:type",Boolean)],$K.prototype,"hideShowMore",void 0);
_.T([_.g({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.N("design:type",Boolean)],$K.prototype,"hideShowAll",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],$K.prototype,"modernButtons",void 0);_.T([_.x("isSearch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$K.prototype,"typographyBump",null);
_.T([_.x("isSearch"),_.N("design:type",Object),_.N("design:paramtypes",[])],$K.prototype,"lockupExperiments",null);_.T([_.x("isSearch"),_.N("design:type",String),_.N("design:paramtypes",[])],$K.prototype,"thumbnailWidth",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$K.prototype,"dataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],$K);
_.O($K,"ytd-vertical-list-renderer",function(){if(QPD!==void 0)return QPD;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return QPD=X},{mode:1});var TSG=_.W8(["#"]);_.wd("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var K3=function(){var X=_.a.apply(this,arguments)||this;X.isConstrainedList=!1;return X};
_.S(K3,_.a);_.R=K3.prototype;
_.R.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"}}}};
_.R.computeThumbnailStyle=function(X){return X||""};
_.R.computePlaceAnnotationUnderTitle=function(){var X;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((X=this.data)==null?void 0:X.thumbnailStyle)||"")};
_.R.computeHrefWithDefault=function(X){return this.ytComponentBehavior.computeHref_(X)||_.pJK(TSG)};
_.R.computeIsPromoShelf=function(X){var H;return(X=X==null?void 0:(H=X[0])==null?void 0:H.metadataBadgeRenderer)?X.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.R.computePlaceBadgeBesideTitle=function(X){var H;return(X==null?0:(H=X[0])==null?0:H.metadataBadgeRenderer)?!this.computeIsPromoShelf(X):!1};
_.R.computeMenuIcon=function(X){return this.computeIsPromoShelf(X)?"yt-icons:more_vert":"yt-icons:more"};
_.R.onDataChange=function(){var X,H;((X=this.data)==null?0:(H=X.content)==null?0:H.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.R.onLockupRequested=function(X){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&X.detail&&X.detail.videoIds){for(var H=this.data.content.gridRenderer.items,l=new Set,b=_.C(X.detail.videoIds),U=b.next();!U.done;U=b.next())l.add(U.value);X.detail.returnValue=H.filter(function(K){return K.gridVideoRenderer&&K.gridVideoRenderer.videoId&&l.has(K.gridVideoRenderer.videoId)}).map(function(K){return K.gridVideoRenderer})}};
_.R.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
K3.prototype.onLockupRequested=K3.prototype.onLockupRequested;K3.prototype.onDataChange=K3.prototype.onDataChange;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],K3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],K3.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],K3.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.$s),_.N("design:type",Object)],K3.prototype,"ironResizableBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],K3.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],K3.prototype,"isSearch",void 0);_.T([_.g(),_.N("design:type",Object)],K3.prototype,"isConstrainedList",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("kevlar_fluid_dismiss")}}),
_.N("design:type",Boolean)],K3.prototype,"enableFluidDismiss",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.N("design:type",String)],K3.prototype,"thumbnailStyle",void 0);_.T([_.g({computed:"computeMenuIcon(data.badges)"}),_.N("design:type",String)],K3.prototype,"menuIcon",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.N("design:type",Boolean)],K3.prototype,"featuredPromo",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K3.prototype,"onDataChange",null);_.T([_.Le("yt-lockup-requested"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],K3.prototype,"onLockupRequested",null);_.T([_.sq({is:"ytd-shelf-renderer",disableElementRegistration:!0})],K3);
_.O(K3,"ytd-shelf-renderer",function(){if(mLQ!==void 0)return mLQ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return mLQ=X},{mode:1});var NSC;var Rn=function(){return _.a.apply(this,arguments)||this};
_.S(Rn,_.a);Rn.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.ja.Object.defineProperties(Rn.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Rn.prototype,"data",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Rn.prototype,"isPlaylist",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Rn.prototype,"isClipList",void 0);
_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Rn.prototype,"isPlaylistPageWithFilters",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rn.prototype,"hasTitle",null);_.T([_.g(),_.x("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rn.prototype,"isRightAligned",null);
_.T([_.sq({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Rn);
_.O(Rn,"ytd-sort-filter-header-renderer",function(){if(NSC!==void 0)return NSC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return NSC=X},{mode:1});var c3H;var C3=function(){var X=_.a.apply(this,arguments)||this;X.enableRightArrowHidden=_.P("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return X};
_.S(C3,_.a);C3.prototype.attached=function(){var X=this;this.enableRightArrowHidden&&(this.JSC$16873_throttledOnResize=new _.jw(function(){var H;(H=X.ytdHorizontalListBehavior)==null||H.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var H;
(H=X.JSC$16873_throttledOnResize)==null||H.fire()}),this.resizeObserver.observe(this.hostElement))};
C3.prototype.detached=function(){if(this.enableRightArrowHidden){var X;(X=this.resizeObserver)==null||X.disconnect();var H;(H=this.JSC$16873_throttledOnResize)==null||H.dispose()}};
C3.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]]"}}}}}};
C3.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.ja.Object.defineProperties(C3.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.P("enable_creator_details_shelf_m2")){var X=[],H;((H=this.data)==null?0:H.creatorVideosButton)&&X.push(this.data.creatorVideosButton);var l;((l=this.data)==null?0:l.creatorAboutButton)&&X.push(this.data.creatorAboutButton);H=_.C(this.data.creatorCustomUrlButtons||[]);for(l=H.next();!l.done;l=H.next())X.push(l.value);return X}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.P("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.Z$.YtdHorizontalListBehavior),_.N("design:type",Object)],C3.prototype,"ytdHorizontalListBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],C3.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],C3.prototype,"engagementPanel",void 0);
_.T([_.g(),_.N("design:type",Object)],C3.prototype,"enableRightArrowHidden",void 0);_.T([_.x("enableRightArrowHidden","atEnd"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C3.prototype,"hideRightArrow",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],C3.prototype,"creatorCustomUrlButtons",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data","creatorCustomUrlButtons"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C3.prototype,"showCreatorCustomUrlButtons",null);_.T([_.x("showCreatorCustomUrlButtons"),_.N("design:type",Number),_.N("design:paramtypes",[])],C3.prototype,"channelAvatarSize",null);_.T([_.sq({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],C3);
_.O(C3,"ytd-video-description-infocards-section-renderer",function(){if(c3H!==void 0)return c3H;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return c3H=X},{mode:2});var jP_;var wm=function(){return _.a.apply(this,arguments)||this};
_.S(wm,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],wm.prototype,"data",void 0);_.T([_.g({computed:"computeIcon_(data.infoIcon)"}),_.N("design:type",Object)],wm.prototype,"infoIcon",void 0);_.T([_.sq({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],wm);
_.O(wm,"ytd-eom-settings-disclaimer-renderer",function(){if(jP_!==void 0)return jP_;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return jP_=X},{mode:1});var r3z;var dm=function(){return _.a.apply(this,arguments)||this};
_.S(dm,_.a);_.ja.Object.defineProperties(dm.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.suppressPaddingDisclaimer)}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],dm.prototype,"componentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],dm.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dm.prototype,"suppressPaddingDisclaimer",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],dm);
_.O(dm,"ytd-product-list-header-renderer",function(){if(r3z!==void 0)return r3z;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return r3z=X},{mode:1});var J3Q;var h_=function(){return _.a.apply(this,arguments)||this};
_.S(h_,_.a);h_.prototype.computeThumbnailStyle=function(X){if(X&&(X=_.BM(X)))return"background-color:"+X+";"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],h_.prototype,"rendererBehaviors",void 0);_.T([_.g(),_.N("design:type",Object)],h_.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],h_);
_.O(h_,"ytd-hashtag-tile-renderer",function(){if(J3Q!==void 0)return J3Q;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return J3Q=X},{mode:1});var LbG;var Fm=function(){return _.a.apply(this,arguments)||this};
_.S(Fm,_.a);Fm.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Fm.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Fm);
_.O(Fm,"ytd-sponsorships-alert-renderer",function(){if(LbG!==void 0)return LbG;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return LbG=X},{mode:1});var YW_;var B3=function(){return _.a.apply(this,arguments)||this};
_.S(B3,_.a);B3.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.ja.Object.defineProperties(B3.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.P("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.P("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.T([_.k(_.uf),_.N("design:type",Object)],B3.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],B3.prototype,"ytdLockupBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.T([_.g({selector:_.sm}),_.N("design:type",Object)],B3.prototype,"isGridViewEnabled",void 0);
_.T([_.x("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],B3.prototype,"watchFeedBigThumbs",null);_.T([_.x("isGridViewEnabled"),_.g({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],B3.prototype,"thumbnailWidth",null);_.T([_.g(),_.N("design:type",Object)],B3.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],B3);
_.O(B3,"ytd-compact-movie-renderer",function(){if(YW_!==void 0)return YW_;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return YW_=X},{mode:1});var IW6;var A39;var XqQ=_.gx("HTML_DIR")==="rtl",qH=function(){var X=_.a.apply(this,arguments)||this;X.engagementPanel=!1;X.maxLines=2;X.expandButtonOffset=0;X.showExpandButton=!1;X.isTruncated=!1;X.isExpanded=!1;X.currentSnippetType=2;X.alwaysShowExpandButton=!1;X.JSC$16890_lastWidth=NaN;X.observer=null;X.left=0;X.right=0;X.mid=0;X.longestSnippetLength=0;X.isFinalSnippet=!1;X.isFirstMutation=!1;X.isResetMutation=!1;X.OVERFLOW_THRESHOLD=5;return X};
_.S(qH,_.a);_.R=qH.prototype;_.R.onClick=function(X){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.WS(_.t2(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;if((H=window.getSelection())==null||!H.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.R.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.R.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.R.updateTextOnSnippetTypeChange=function(){_.P("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.R.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.R.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.x2(new _.qd("AttributedSnippet is empty when the description is not empty",this.text))};
_.R.mutationCallback=function(){if(this.observer!=null){var X=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var H=Math.floor(X*this.maxLines/8);this.setSnippetText(this.text,H);H!==0||this.attributedTextIsEmpty()||_.x2(new _.qd("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;X=X*this.maxLines/8;this.left=0;var l;this.right=Math.min(X*2,(l=(H=this.simpleText)==null?void 0:H.length)!=null?l: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)}}};
_.R.mutationObserve=function(X){var H=this;this.observer||(this.observer=new MutationObserver(function(){H.mutationCallback()}));
this.observer.observe(X,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.R.attached=function(){var X=this;_.N0(this,function(){X.resize()})};
_.R.isExpandedChanged=function(){_.QX(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.R.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)};
_.R.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var X="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((XqQ?"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",X);this.snippetContainer.style.setProperty("mask-image",
X)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(XqQ?"right":"left",this.expandButtonOffset+"px")};
_.R.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.R.setSnippetText=function(X,H){X||(X={});if(_.z0(X)){var l=Sw(X,H);l.attachmentRuns||l.commandRuns||l.decorationRuns||l.styleRuns||l.alignment||l.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:Sw(X,H),headerRuns:MM8(H,this.headerRuns)},this.currentSnippetType=0):_.x2(new _.qd("Tried to set snippet text when HTML element was null",X)):(this.plainSnippetText.textContent=fq(X.content||"",H),this.currentSnippetType=2)}else{a:{l=iMb(X,H);if(l.runs){l=_.C(l.runs);for(var b=
l.next();!b.done;b=l.next())if(b=b.value,b.bold||b.deemphasize||b.italics||b.strikethrough||b.textColor||b.navigationEndpoint||_.f(b,FR)){l=!0;break a}}l=!1}l?this.formattedSnippetText?(this.formattedSnippetText.text=iMb(X,H),this.currentSnippetType=1):_.x2(new _.qd("Tried to set snippet text when HTML element was null",X)):(this.plainSnippetText.textContent=fq(_.D8(X),H),this.currentSnippetType=2)}};
_.R.attributedSnippetIsEmpty=function(){var X=this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl:this.plainSnippetText;return _.P("web_wiz_attributed_string")?X.innerText.length===0:X.childNodes.length===0};
_.R.attributedTextIsEmpty=function(){var X=this.text;if(!_.z0(X))return!0;var H;return((H=X.content)==null?void 0:H.length)===0?!0:!1};
_.R.resize=function(X){if(this.snippetText){if(X===void 0?0:X)this.JSC$16890_lastWidth=NaN;var H=this.hostElement.offsetWidth;if(H!==this.JSC$16890_lastWidth&&!this.isExpanded)if(this.JSC$16890_lastWidth=H,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;X=0;var l,b;H=Math.min(H*this.maxLines/8*2,(b=(l=this.simpleText)==null?void 0:l.length)!=null?b:0)-1;for(l=0;X<=H;)b=Math.floor(X+(H-X)/2),this.setSnippetText(this.text,b),this.isOverflowing()?H=b-1:(X=b+1,l=b);this.setSnippetText(this.text,l);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.R.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.R.onExpandClick=function(){var X=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.P("inline_expander_reset_focus_killswitch")||_.N0(this,function(){var H;((H=_.jJ().resolve(_.c$(_.aE)))==null?0:H.isKeyBoardInUse())&&_.mQ(X.hostElement)});
_.QX(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.R.onCollapseClick=function(){this.collapse();_.QX(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.R.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.R.computeExpandButtonOffset=function(){var X=this.expandSizer;return X?XqQ?X.offsetParent?X.offsetParent.offsetWidth-X.offsetWidth-X.offsetLeft:0:X.offsetLeft:0};
_.ja.Object.defineProperties(qH.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.z0(this.text)?this.text.content||"":_.D8(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 _.z0(this.text)?!0:this.text&&_.P("web_replace_formatted_with_attributed_string")&&T6L(this.text)?(this.text=_.ha(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}}});
qH.prototype.onTextChanged=qH.prototype.onTextChanged;qH.prototype.updateMaskAndExpandButtonOffset=qH.prototype.updateMaskAndExpandButtonOffset;qH.prototype.updateSnippetContainerMaxHeight=qH.prototype.updateSnippetContainerMaxHeight;qH.prototype.isExpandedChanged=qH.prototype.isExpandedChanged;qH.prototype.updateTextOnSnippetTypeChange=qH.prototype.updateTextOnSnippetTypeChange;qH.prototype.updateIsFormattedExpanded=qH.prototype.updateIsFormattedExpanded;qH.prototype.updateIsAttributedExpanded=qH.prototype.updateIsAttributedExpanded;
qH.prototype.onClick=qH.prototype.onClick;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],qH.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],qH.prototype,"text",void 0);_.T([_.g(),_.N("design:type",Array)],qH.prototype,"headerRuns",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],qH.prototype,"engagementPanel",void 0);_.T([_.g(),_.N("design:type",Object)],qH.prototype,"maxLines",void 0);
_.T([_.g(),_.N("design:type",String)],qH.prototype,"expandLabel",void 0);_.T([_.g(),_.N("design:type",String)],qH.prototype,"collapseLabel",void 0);_.T([_.g(),_.N("design:type",Object)],qH.prototype,"expandCommand",void 0);_.T([_.g(),_.N("design:type",Object)],qH.prototype,"expandButtonOffset",void 0);_.T([_.x("text"),_.N("design:type",String),_.N("design:paramtypes",[])],qH.prototype,"simpleText",null);
_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],qH.prototype,"onClick",null);_.T([_.x("text","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],qH.prototype,"expandedText",null);_.T([_.x("headerRuns","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],qH.prototype,"expandedHeaderRuns",null);
_.T([_.x("text"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qH.prototype,"hasAttributedStringText",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],qH.prototype,"showExpandButton",void 0);_.T([_.x("collapseLabel","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],qH.prototype,"showCollapseButton",null);_.T([_.g(),_.N("design:type",Object)],qH.prototype,"isTruncated",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],qH.prototype,"isExpanded",void 0);_.T([_.g(),_.N("design:type",Boolean)],qH.prototype,"isAttributedExpanded",void 0);_.T([_.Yh("isExpanded","hasAttributedStringText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qH.prototype,"updateIsAttributedExpanded",null);_.T([_.g(),_.N("design:type",Boolean)],qH.prototype,"isFormattedExpanded",void 0);
_.T([_.Yh("isExpanded","hasAttributedStringText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qH.prototype,"updateIsFormattedExpanded",null);_.T([_.g(),_.N("design:type",Number)],qH.prototype,"currentSnippetType",void 0);_.T([_.x("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],qH.prototype,"useAttributedSnippet",null);
_.T([_.x("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],qH.prototype,"useFormattedSnippet",null);_.T([_.x("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],qH.prototype,"usePlainSnippet",null);_.T([_.g(),_.N("design:type",Object)],qH.prototype,"alwaysShowExpandButton",void 0);_.T([_.Yh("currentSnippetType"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qH.prototype,"updateTextOnSnippetTypeChange",null);
_.T([_.g(),_.N("design:type",Object)],qH.prototype,"attributedSnippetText",void 0);_.T([_.A2("#snippet"),_.N("design:type",HTMLElement)],qH.prototype,"snippetContainer",void 0);_.T([_.A2("#snippet-text"),_.N("design:type",HTMLElement)],qH.prototype,"snippetText",void 0);_.T([_.A2("#plain-snippet-text"),_.N("design:type",HTMLElement)],qH.prototype,"plainSnippetText",void 0);_.T([_.A2("#formatted-snippet-text"),_.N("design:type",Object)],qH.prototype,"formattedSnippetText",void 0);
_.T([_.A2("#attributed-snippet-text"),_.N("design:type",HTMLElement)],qH.prototype,"attributedSnippetTextEl",void 0);_.T([_.A2("#expand"),_.N("design:type",HTMLElement)],qH.prototype,"expandButton",void 0);_.T([_.A2("#expand-sizer"),_.N("design:type",HTMLElement)],qH.prototype,"expandSizer",void 0);_.T([_.oi("isExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qH.prototype,"isExpandedChanged",null);
_.T([_.Yh("isExpanded","maxLines"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qH.prototype,"updateSnippetContainerMaxHeight",null);_.T([_.Yh("isTruncated","showExpandButton","expandButtonOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qH.prototype,"updateMaskAndExpandButtonOffset",null);
_.T([_.oi("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qH.prototype,"onTextChanged",null);_.T([_.sq({is:"ytd-text-inline-expander",disableElementRegistration:!0})],qH);
_.O(qH,"ytd-text-inline-expander",function(){if(A39===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);A39=X}X=A39;return X},{mode:2});var sY=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return X};
_.S(sY,_.a);sY.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
sY.prototype.handleUpdateDescriptionAction=function(X){if(X=_.f(X,_.s2G))if(X.attributedDescription)this.set("data.attributedDescriptionBodyText",X.attributedDescription);else if(X.description){var H;((H=this.data)==null?0:H.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.ha(X.description)):this.set("data.descriptionBodyText",X.description)}};
_.ja.Object.defineProperties(sY.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var X,H;return!((X=this.data)==null||!X.attributedDescriptionBodyText)||!((H=this.data)==null||!H.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null?0:X.collapsedLineCount){var H;return(H=this.data)==null?void 0:H.collapsedLineCount}X=_.Yy("web_watch_description_collapsed_default_lines",12);if(_.P("ww_desc_line_page_size_ks"))return X;H=Math.round(_.Xs().height*_.Yy("web_watch_description_screen_height_percentage",.5)/20);return Math.max(H,X)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return(l=(X=this.data)==null?void 0:X.descriptionBodyText)!=null?l:(H=this.data)==null?void 0:H.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.sourceAttributions}}});
sY.prototype.panelContentVisibleChanged=sY.prototype.panelContentVisibleChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],sY.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],sY.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],sY.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Boolean)],sY.prototype,"panelContentVisible",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],sY.prototype,"engagementPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],sY.prototype,"shortsPanel",void 0);_.T([_.A2("#inline-expander"),_.N("design:type",Object)],sY.prototype,"inlineExpander",void 0);
_.T([_.Yh("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sY.prototype,"panelContentVisibleChanged",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sY.prototype,"hasDescriptionText",null);_.T([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],sY.prototype,"collapsedLines",null);
_.T([_.x("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.N("design:type",Object),_.N("design:paramtypes",[])],sY.prototype,"descriptionText",null);_.T([_.x("data","data.headerRuns"),_.N("design:type",Object),_.N("design:paramtypes",[])],sY.prototype,"headerRuns",null);_.T([_.x("data","data.sourceAttributions"),_.N("design:type",Object),_.N("design:paramtypes",[])],sY.prototype,"sourceAttributions",null);
_.T([_.sq({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],sY);
_.O(sY,"ytd-expandable-video-description-body-renderer",function(){if(IW6!==void 0)return IW6;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return IW6=X},{mode:2});var HQG;var lbD=_.Z(function(X){var H=X.data;return _.F("factoid-renderer",{class:"ytwFactoidRendererHost"},_.F("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return H().accessibilityText}},_.F("span",{class:"ytwFactoidRendererValue"},_.F(_.Sj,{text:function(){return H().value}})),_.F("span",{class:"ytwFactoidRendererLabel"},_.F(_.Sj,{text:function(){return H().label}}))))},"ud");_.gC(lbD,"factoid-renderer",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;return _.F("upload-time-factoid-renderer",null,_.F(_.l4,{data:function(){return H().factoid}},{factoidRenderer:lbD}))},"vd"),"upload-time-factoid-renderer",{props:{data:_.ta}});_.gC(_.Z(function(X){var H=X.data;return _.F("view-count-factoid-renderer",null,_.F(_.l4,{data:function(){return H().factoid}},{factoidRenderer:lbD}))},"wd"),"view-count-factoid-renderer",{props:{data:_.ta}});var MH=function(){var X=_.a.apply(this,arguments)||this;X.shortsPanel=!1;X.engagementPanel=!1;X.watchWhileSdp=_.P("shorts_desktop_watch_while_sdp");return X};
_.S(MH,_.a);MH.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"}}}}};
_.ja.Object.defineProperties(MH.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var X;return(X=this.data)==null?void 0:X.channel}}});
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],MH.prototype,"componentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],MH.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],MH.prototype,"shortsPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],MH.prototype,"engagementPanel",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],MH.prototype,"watchWhileSdp",void 0);_.T([_.x("shortsPanel","engagementPanel","data.channel"),_.N("design:type",Object),_.N("design:paramtypes",[])],MH.prototype,"showChannelInfo",null);_.T([_.sq({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],MH);
_.O(MH,"ytd-video-description-header-renderer",function(){if(HQG!==void 0)return HQG;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return HQG=X},{mode:1});var o0Q;var us=function(){return _.a.apply(this,arguments)||this};
_.S(us,_.a);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],us.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],us.prototype,"noPadding",void 0);_.T([_.g(),_.N("design:type",Object)],us.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],us);
_.O(us,"ytd-list-item-view-model",function(){if(o0Q!==void 0)return o0Q;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return o0Q=X},{mode:1});var bQv;var UMG;var $MY;var KOz;var et=function(){var X=_.a.apply(this,arguments)||this;X.adaptiveFullWidth=!1;X.modernButtons=_.P("web_modern_buttons");X.buttonOverrides={style:"call-to-action",type:"filled"};X.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return X};
_.S(et,_.a);et.prototype.handleSetTimestamp_=function(X){this.data&&this.data.shortUrl&&(_.mh(this.hostElement).querySelector("#share-url").value=X.isSet?_.Xv(this.data.shortUrl,"t",X.timestamp):this.data.shortUrl)};
et.prototype.handleSignalActionCopyShareUrl_=function(X,H){(_.P("killswitch_copy_link_target_check")||_.mh(this.hostElement).querySelector("#copy-button")===H)&&this.copyUrlToClipboard()};
et.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.mh(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
et.prototype.computeStyle_=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],et.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],et.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.N("design:type",String)],et.prototype,"rendererStyle",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],et.prototype,"adaptiveFullWidth",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],et.prototype,"modernButtons",void 0);_.T([_.g(),_.N("design:type",Object)],et.prototype,"buttonOverrides",void 0);_.T([_.qR({is:"yt-copy-link-renderer",disableElementRegistration:!0})],et);
_.O(et,"yt-copy-link-renderer",function(){if(KOz===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;$MY===void 0&&($MY=document.createElement("template"));var b=$MY;l.call(H,b.content.cloneNode(!0),X.content.firstChild);KOz=X}X=KOz;return X},{mode:2});_.wd("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var yp=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return X};
_.S(yp,_.a);_.R=yp.prototype;_.R.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.R.attached=function(){this.keyboardFocused=!1};
_.R.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var X=_.jJ().resolve(_.c$(_.aE));X&&(this.keyboardFocused=X.isKeyBoardInUse())}};
_.R.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.R.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}};
_.R.onChange_=function(){if(this.data){var X=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;X&&this.ytComponentBehavior.resolveCommand(X);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.R.handleUpdateToggleAction_=function(X){(X=_.f(X,WAY))&&this.data&&X.targetId==this.data.targetId&&this.set("data.toggled",X.toggled)};
_.R.toBoolean_=function(X){return!!X};
_.R.reset=function(){};
_.R.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("data-changed",this.data))};
_.R.updateDataToggledFromBinding=function(X){this.set("data.toggled",X.detail.value)};
yp.prototype.dataChangedForBinding=yp.prototype.dataChangedForBinding;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],yp.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],yp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],yp.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],yp.prototype,"ytRendererBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],yp.prototype,"data",void 0);_.T([_.g({computed:"computeDescription_(data.*)"}),_.N("design:type",Object)],yp.prototype,"description_",void 0);_.T([_.g({value:function(){return!!_.jJ().resolve(_.c$(_.aE))&&_.P("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.N("design:type",Boolean)],yp.prototype,"useKeyboardFocused",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],yp.prototype,"keyboardFocused",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yp.prototype,"dataChangedForBinding",null);_.T([_.qR({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],yp);
_.O(yp,"yt-toggle-form-field-renderer",function(){if(UMG===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;bQv===void 0&&(bQv=document.createElement("template"));var b=bQv;l.call(H,b.content.cloneNode(!0),X.content.firstChild);UMG=X}X=UMG;return X},{mode:2});var R$_;var CrY;var Vp=function(){var X=_.a.apply(this,arguments)||this;X.isDarkTheme=!1;X.isSearch=!1;X.noTopMargin=_.P("kevlar_watch_no_top_margin");X.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 X};
_.S(Vp,_.a);_.R=Vp.prototype;_.R.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}}}}}};
_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.R.dataChanged=function(){var X=this.getSelectedIndex();if(X>0)this.selected=X;else{this.selected=0;var H,l;(H=this.ytScrollableChipCloudBehavior)==null||(l=H.reset)==null||l.call(H)}};
_.R.getSelectedIndex=function(){var X;if((X=this.data)==null||!X.chips)return-1;X=-1;for(var H,l=0;l<((H=this.data)==null?void 0:H.chips.length);l++){var b=void 0,U=void 0;if((b=this.data)==null?0:(U=b.chips[l].chipCloudChipRenderer)==null?0:U.isSelected){X=l;break}}return X};
_.R.onResize=function(){var X=this.ytScrollableChipCloudBehavior;_.N0(X,X.setContainerWidthDiff);X=this.ytScrollableChipCloudBehavior;_.N0(X,X.setButtonsState)};
_.R.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.R.handleRelatedChipCommand=function(X,H){X=this.JSC$16916_chipsSelector.indexOf(H);X!==-1&&this.JSC$16916_chipsSelector.selectIndex(X)};
_.R.handleChipCloudChipSelectAction=function(X){X=this.JSC$16916_chipsSelector.indexOf(X);X>-1&&this.JSC$16916_chipsSelector.selectIndex(X)};
_.R.handleChipCloudChipDeselectAction=function(){var X=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16916_chipsSelector&&((X==null?0:X.continuationCommand)?_.ci(this.hostElement,[X]):(X==null?0:X.searchEndpoint)?this.ytComponentBehavior.resolveCommand(X):X&&_.j7(this.hostElement,[X],this.hostElement),this.JSC$16916_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.R.updateSelectedFromBinding=function(X){this.selected=X.detail.value};
Vp.prototype.onResize=Vp.prototype.onResize;Vp.prototype.dataChanged=Vp.prototype.dataChanged;Vp.prototype.isSearchChanged=Vp.prototype.isSearchChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Vp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Vp.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Vp.prototype,"actionHandlerBehavior",void 0);
_.T([_.k(_.$s),_.N("design:type",Object)],Vp.prototype,"ironResizableBehavior",void 0);_.T([_.k(),_.N("design:type",HT)],Vp.prototype,"ytScrollableChipCloudBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Vp.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Vp.prototype,"data",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],Vp.prototype,"selected",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vp.prototype,"isDarkTheme",void 0);_.T([_.g({value:160}),_.N("design:type",Number)],Vp.prototype,"scrollDistance",void 0);_.T([_.g(),_.N("design:type",Object)],Vp.prototype,"isSearch",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vp.prototype,"noTopMargin",void 0);_.T([_.A2("#chips"),_.N("design:type",Object)],Vp.prototype,"JSC$16916_chipsSelector",void 0);
_.T([_.Yh("isSearch"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vp.prototype,"isSearchChanged",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vp.prototype,"dataChanged",null);_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vp.prototype,"onResize",null);_.T([_.qR({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Vp);
_.O(Vp,"yt-chip-cloud-renderer",function(){if(CrY===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;R$_===void 0&&(R$_=document.createElement("template"));var b=R$_;l.call(H,b.content.cloneNode(!0),X.content.firstChild);CrY=X}X=CrY;return X},{mode:2});var wqF,dM_=function(){return wqF!==void 0?wqF:wqF=document.createElement("template")};
document.head.appendChild(dM_().content);var h$D;var FO_=document.head,BNY=FO_.appendChild,qXD;if(h$D===void 0){var s3_=document.createElement("template");_.n(s3_,"");s3_.content.insertBefore(dM_().content.cloneNode(!0),s3_.content.firstChild);h$D=s3_}qXD=h$D;BNY.call(FO_,qXD.content);var MSC=_.Z(function(X){var H=X.data;return _.F("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.F("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.F("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.F(_.M,{cond:function(){return _.Su(H().image)},
then:function(l){return _.F("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.F(_.Dp,{data:l,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.F("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.F(_.Sj,{text:function(){return H().title}})),_.F("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.F(_.Sj,{text:function(){return H().subtitle}})))),_.F(_.M,{cond:function(){var l;
return(l=H())==null?void 0:l.hasBottomDivider},
then:function(){return _.F("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"xd");var u1t=_.Z(function(X){var H=X.data;return _.F("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.F("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.F(_.l4,{data:function(){var l;return(l=H().offerPlanDetailsItem)!=null?l:[]}},{offerPlanDetailsItemViewModel:function(l){return _.F("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.F(MSC,{data:l.data}))}})),_.F("div",null,_.F(_.M,{cond:function(){return H().hasBottomDivider},
then:function(){return _.F("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.F("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.F("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.F("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.F("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"yd");var e$F=_.Z(function(X){var H=X.data;X=_.C(_.FU(!1,void 0,"MrXxy"));var l=X.next().value,b=X.next().value,U=_.Nq(function(){b(!l());return!1}),K=function(){var w;
return(w=H().offerPlanDetailsContainer)!=null?w:[]};
return _.F("lp-complex-offer-card-details-view-model",null,_.F("div",null,_.F(_.M,{cond:function(){return l()},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.F("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":U,"aria-expanded":l},_.F(_.Sj,{text:function(){return H().expandedTitle}})),_.F("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.F(_.l4,{data:K},{offerPlanDetailsContainerViewModel:function(w){return _.F("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.F(u1t,{data:w.data}))}})),_.F("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.F(_.Sj,{text:function(){return H().legalText}})))},
else:function(){return _.F("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":U,"aria-expanded":l},_.F(_.Sj,{text:function(){return H().collapsedTitle}}),_.F("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.F(_.Ja,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"zd");var yEQ=_.Z(function(X){var H=X.data;return _.F("lp-complex-offer-card-option-view-model",null,_.F("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.F(_.M,{cond:function(){return H().topDividerText},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.F("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.F("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.F("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.F(_.Sj,{text:function(){return H().topDividerText}}))))}}),_.F(_.M,{cond:function(){return H().description},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.F(_.Sj,{text:function(){return H().description}}))}}),_.F(_.M,{cond:function(){return H().planPricingPrimary},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.F(_.Sj,{text:function(){return H().planPricingPrimary}}))}}),_.F(_.M,{cond:function(){return H().planPricingSecondary},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.F(_.Sj,{text:function(){return H().planPricingSecondary}}))}}),_.F(_.M,{cond:function(){return H().primaryButton},
then:function(){return _.F("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.F(_.l4,{data:function(){return H().primaryButton}},{buttonViewModel:function(l){return _.F(_.Qk,{data:l.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Ad");var VSH=_.Z(function(X){var H=X.data;var l=function(){var K;return((K=H())==null?void 0:K.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
X={};var b={},U={};return _.F("ytm-lp-complex-offer-card-view-model",null,_.F("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.F("div",{class:_.Qr((X.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=l,X),"ytmLpComplexOfferCardViewModelCardContainer")},_.F(_.M,{cond:function(){var K;return(K=H())==null?void 0:K.bannerText},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.F("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.F(_.Sj,{text:function(){return H().bannerText}})))}}),_.F(_.M,{cond:function(){return _.Su(H().logo)},
then:function(K){var w={};return _.F("div",{class:_.Qr((w.ytmLpComplexOfferCardViewModelLogoAlignLeft=l,w),"ytmLpComplexOfferCardViewModelLogo")},_.F(_.Dp,{data:K,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.F("div",{class:_.Qr((b.ytmLpComplexOfferCardViewModelTitleAlignLeft=l,b),"ytmLpComplexOfferCardViewModelTitle")},_.F(_.Sj,{text:function(){return H().title}})),_.F(_.M,{cond:function(){var K;
return(K=H())==null?void 0:K.subtitle},
then:function(){var K={};return _.F("div",{class:_.Qr((K.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=l,K),"ytmLpComplexOfferCardViewModelSubtitle")},_.F(_.Sj,{text:function(){return H().subtitle}}))}}),_.F(_.M,{cond:function(){return H().planPricingPrimary},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.F(_.Sj,{text:function(){return H().planPricingPrimary}}))}}),_.F(_.M,{cond:function(){return H().planPricingSecondary},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.F(_.Sj,{text:function(){return H().planPricingSecondary}}))}}),_.F(_.M,{cond:function(){return H().purchaseButton},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.F(_.l4,{data:function(){return H().purchaseButton}},{buttonViewModel:function(K){return _.F(_.Qk,{data:K.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.F(_.M,{cond:function(){var K;
return(K=H())==null?void 0:K.offerOptions},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.F(_.l4,{data:function(){return H().offerOptions}},{lpComplexOfferCardOptionViewModel:yEQ}))}}),_.F("div",{class:_.Qr((U.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=l,U),"ytmLpComplexOfferCardViewModelLegalText")},_.F(_.Sj,{text:function(){return H().legalText}})),_.F(_.M,{cond:function(){var K;
return(K=H())==null?void 0:K.offerCardDetails},
then:function(){return _.F("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.F(_.l4,{data:function(){return H().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:e$F}))}}))))},"Bd");var PrQ=_.Z(function(X){var H=X.data;var l=function(){var w;return((w=H())==null?void 0:w.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
X={};var b={},U={},K={};return _.F("ytm-lp-complex-offer-card-section-view-model",null,_.F("div",{class:_.Qr("ytmLpComplexOfferCardSectionViewModelHost")},_.F("div",{class:_.Qr((X.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=l,X),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.F("div",{class:_.Qr((b.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=l,b),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.F("h2",{class:_.Qr((U.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
l,U),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.F(_.Sj,{text:function(){return H().title}}))),_.F(_.M,{cond:function(){var w;
return(w=H())==null?void 0:w.subtitle},
then:function(){var w={},d={};return _.F("div",{class:_.Qr((w.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=l,w),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.F("div",{class:_.Qr((d.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=l,d),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.F(_.Sj,{text:function(){return H().subtitle}})))}}),_.F("div",{class:_.Qr((K.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=l,K),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.F(_.l4,{data:function(){var w;
return(w=H().offerPlans)!=null?w:[]}},{lpComplexOfferCardViewModel:function(w){return _.F("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.F(VSH,{data:w.data}))}})))))},"Cd");var fbG=_.Z(function(X){return _.F("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.F("div",{class:"ytLpCouponBannerViewModelIcon"},_.F(_.Ja,{icon:function(){return"price_tag"}})),_.F("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.F("div",{class:"ytLpCouponBannerViewModelContent"},_.F("div",{class:"ytLpCouponBannerViewModelHeading"},_.F(_.Sj,{text:function(){var H;
return(H=X.data())==null?void 0:H.title}})),_.F("div",{class:"ytLpCouponBannerViewModelBody"},_.F(_.Sj,{text:function(){var H;
return(H=X.data())==null?void 0:H.subtitle}})))))},"Dd");
fbG.idomCompat=!0;_.P3=vrm.getInstance();var pq_;pq_=_.Z(function(X){return _.F("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":X.shouldAriaHideContent},_.F("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:X.questionId},_.F(_.Sj,{text:X.question})))},"Ed");
_.SXG=_.Z(function(X){var H=X.data;var l=X.themeOverride;X=_.C(_.FU(!1,void 0,"pNli2b"));var b=X.next().value,U=X.next().value;X=_.Nq(function(){U(!b());return!1});
var K=function(){return b()?"EXPAND_LESS":"EXPAND_MORE"},w=("faq-container"+_.uZ(_.P3)).toString(),d="faq-question-and-answers-section-question"+_.uZ(_.P3),B={},q={};
return _.F("faq-entry-view-model",null,_.F("div",{class:_.Qr("ytLpFaqEntryViewModelHost",(B.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return l==null?void 0:l().useDarkTheme},B))},_.F("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":X,role:"button","aria-expanded":b,"aria-labelledby":d.toString(),"tab-index":"0"},_.F(pq_,{question:function(){return H().question},
questionId:d,shouldAriaHideContent:!0}),_.F(_.M,{cond:function(){return b()!==void 0},
then:function(){return _.F("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.F(_.Ja,{icon:K,ariaHidden:!0}),_.F("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.F("div",{class:_.Qr("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(q.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!b()},q))},_.F("div",{id:w},_.F(_.P$,{each:function(){return H().answers||[]}},function(u){return _.F("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.F(_.Sj,
{text:u}))})))))},"Fd");
_.SXG.idomCompat=!0;var z$D=_.Z(function(X){var H=X.data;var l=X.themeOverride;X={};return _.F("lp-faq-section-view-model",null,_.F("div",{class:_.Qr("yt-lp-faq-section-view-model",(X["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},X["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(l==null||!l().useDarkTheme)},X))},_.F("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.F(_.M,{cond:function(){return H().header},
then:function(b){return _.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.F(_.Sj,{text:b}))}}),_.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.F(_.l4,{data:function(){return H().faqs}},{faqEntryViewModel:function(b){return _.F(_.SXG,{data:b.data,
themeOverride:l})}})),_.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.F(_.P$,{each:function(){return H().footers||[]}},function(b){return _.F(_.Sj,{text:b})})),_.F(_.M,{cond:function(){return H().legal},
then:function(b){return _.F("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.F(_.Sj,{text:b}))}}))))},"Gd");
z$D.idomCompat=!0;var n0F=_.Z(function(X){var H=X.data;var l=X.themeOverride;_.DR(function(){var w=H().gtmId;w&&_.UK(w,_.gx("GL",""))});
var b={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var w,d,B;return(B=(w=H().logo)==null?void 0:(d=w.accessibilityData)==null?void 0:d.label)!=null?B:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},U=_.jJ().resolve(_.c$(_.b4)),K=function(){return U&&U()||(l==null?void 0:l().useDarkTheme)};
return _.F("lp-header-section-view-model",null,_.F("div",{class:function(){var w=H().layoutType,d=H().marginType==="LP_SECTION_MARGIN_TYPE_TOP",B=l==null?void 0:l().useDarkTheme,q=["lp-header-section-view-model"];switch(w){case "LP_MODULE_LAYOUT_TYPE_PTC":q.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":q.push("lp-header-section-view-model--narrow-header-layout-type")}d&&q.push("lp-header-section-view-model__lp-header-section-margin");B&&q.push("lp-header-section-view-model--premium-force-dark-mode");
return q.join(" ")}},_.F(_.M,{cond:function(){return H().logo},
then:function(){return _.F("div",null,_.F(_.M,{cond:K,then:function(){return _.F(_.M,{cond:function(){var w;return(w=H().logo)==null?void 0:w.imageDark},
then:function(w){return _.F(_.Dp,Object.assign({},{data:w},b))}})},
else:function(){return _.F(_.M,{cond:function(){var w;return(w=H().logo)==null?void 0:w.imageLight},
then:function(w){return _.F(_.Dp,Object.assign({},{data:w},b))}})}}))}}),_.F(_.M,{cond:function(){return H().title},
then:function(w){return _.F("div",{class:"lp-header-section-view-model__lp-header-title"},_.F(_.Sj,{text:w}))}}),_.F("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.F(_.M,{cond:function(){return H().subtitles},
then:function(w){return _.F(_.P$,{each:w},function(d){return _.F("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.F(_.Sj,{text:d}))})}})),_.F(_.M,{cond:function(){return H().additionalInfo},
then:function(w){return _.F("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.F(_.Sj,{text:w}))}}),_.F("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.F(_.M,{cond:function(){return H().primaryButton},
then:function(w){return _.F("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.F(_.l4,{data:w},{buttonViewModel:_.Qk}))}}),_.F(_.M,{cond:function(){return H().secondaryButton},
then:function(w){return _.F("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.F(_.l4,{data:w},{buttonViewModel:_.Qk}))}})),_.F(_.M,{cond:function(){return H().otherOffersInfo},
then:function(w){return _.F("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.F(_.Sj,{text:w}))}}),_.F("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.F(_.M,{cond:function(){return H().billingInfo},
then:function(w){return _.F(_.P$,{each:w},function(d){return _.F("div",null,_.F(_.Sj,{text:d}))})}}))))},"Hd");
n0F.idomCompat=!0;var k$Y=_.Z(function(X){return _.F("lp-header-upsell-banner-view-model",{class:_.Qr("lpHeaderUpsellBannerViewModelHost",X.className,{})},_.F("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.F(_.Ja,{icon:function(){return"CAMPAIGN"}})),_.F("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.F("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.F("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.F("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.F(_.Sj,{text:function(){var H;
return(H=X.data())==null?void 0:H.description}})))),_.F(_.l4,{data:function(){var H;
return(H=X.data())==null?void 0:H.purchaseButton}},{buttonViewModel:function(H){return _.F(_.Qk,{data:H.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Id");var xMq=_.Z(function(X){var H=X.data;var l=_.Eq(X.themeOverride,{useDarkTheme:!1});X={};X=_.Qr("ytmLpHeadlineSectionViewModelHost",(X.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return l().useDarkTheme},X));
return _.F("lp-headline-section-view-model",null,_.F("div",{class:X},_.F(_.M,{cond:function(){return H().title},
then:function(b){return _.F("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.F(_.Sj,{text:b}))}}),_.F(_.M,{cond:function(){return H().subtitle},
then:function(b){return _.F("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.F(_.Sj,{text:b}))}})))},"Jd");var DMt=_.Z(function(X){var H=X.data;var l=X.themeOverride;var b=_.jJ().resolve(_.c$(_.b4)),U=function(){return b&&b()||(l==null?void 0:l().useDarkTheme)},K=function(){var q,u;
var e=U()?(q=H().textBackgroundImage)==null?void 0:q.imageDark:(u=H().textBackgroundImage)==null?void 0:u.imageLight;return zDh((e==null?void 0:e.sources)||[])},w=function(){var q,u;
return U()?(q=H().featureImage)==null?void 0:q.imageDark:(u=H().featureImage)==null?void 0:u.imageLight},d=function(){return H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},B=function(){var q,u;
return U()?(q=H().logo)==null?void 0:q.imageDark:(u=H().logo)==null?void 0:u.imageLight};
return _.F("ytm-lp-large-feature-section-view-model",null,_.F("div",{class:function(){var q=H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",u=H().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",e=(H().index||0)%2===1,y=l==null?void 0:l().useDarkTheme,V=["yt-lp-large-feature-section-view-model"];q?V.push("yt-lp-large-feature-section-view-model--music-feature-type"):u?V.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):e||V.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
y&&V.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return V.join(" ")}},_.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.F(_.M,{cond:w,
then:function(){return _.F(_.Dp,{data:function(){return w()},
alt:function(){var q,u,e;return(e=(q=H().featureImage)==null?void 0:(u=q.accessibilityData)==null?void 0:u.label)!=null?e:""},
contentMode:d})}})),_.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var q;return((q=K())==null?0:q.url)?"background-image: url("+_.Yn(K().url)+");":""}},_.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.F(_.M,{cond:B,
then:function(){return _.F(_.Dp,{data:function(){return B()},
alt:function(){var q,u,e;return(e=(q=H().logo)==null?void 0:(u=q.accessibilityData)==null?void 0:u.label)!=null?e:""},
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"})}}),_.F(_.M,{cond:function(){return H().eyebrowText},
then:function(){return _.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.F(_.Sj,{text:function(){return H().eyebrowText}}))}}),_.F(_.M,{cond:function(){return H().title},
then:function(){return _.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.F(_.Sj,{text:function(){return H().title}}))}}),_.F(_.M,{cond:function(){return H().subtitles},
then:function(){return _.F("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.F(_.P$,{each:function(){return H().subtitles||[]}},function(q){return _.F(_.Sj,{text:q})}))}})))))},"Kd");
DMt.idomCompat=!0;var tSQ=_.Z(function(X){return _.F("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.F("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.F(_.Ja,{icon:function(){var H;return(H=X.data())==null?void 0:H.iconType},
className:function(){var H;switch((H=X.data())==null?void 0:H.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var H;return((H=X.data())==null?void 0:H.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.F("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.F(_.Sj,{text:function(){var H;
return(H=X.data())==null?void 0:H.text},
className:function(){var H;return((H=X.data())==null?void 0:H.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Ld");var WOC=_.Z(function(X){X=_.gT(X,{config:void 0,themeOverride:void 0});var H=X.data,l=X.config,b=X.themeOverride;X={};X=_.Qr("ytmLpOfferCardOptionViewModelHost",(X.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var d;return(d=b())==null?void 0:d.useDarkTheme},X));
var U=_.Nq(function(){var d,B;(d=l())==null||(B=d.handleRadioButtonClick)==null||B.call(d,H());return!1}),K=function(){var d;
return(d=l())==null?void 0:d.shouldDisplayRadioButton},w=function(){var d;
return(d=H().featureListItems)!=null?d:[]};
return _.F("ytm-lp-offer-card-option-view-model",null,_.F("div",{class:X,"on:click":_.Nq(function(){if(K()){var d,B;(d=l())==null||(B=d.handleRadioButtonClick)==null||B.call(d,H())}return!1})},_.F(_.M,{cond:K,
then:function(){return _.F("div",null,_.F("input",{type:"radio","on:click":U,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var d;return!((d=l())==null||!d.isOptionSelected)}}))}}),_.F("div",null,_.F("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.F(_.Sj,{text:function(){return H().eyebrowText}})),_.F("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.F(_.Sj,{text:function(){return H().title}})),_.F("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.F(_.Sj,
{text:function(){return H().subtitle}})),_.F(_.M,{cond:function(){return w().length>0},
then:function(){return _.F("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.F(_.l4,{data:w},{lpFeatureListItemViewModel:tSQ}))}}),_.F("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.F(_.Sj,{text:function(){return H().description}})))))},"Md");
WOC.idomCompat=!0;var E0H=_.Z(function(X){var H=X.data;var l=X.themeOverride;X=_.C(_.Gx(function(){var K,w=(K=H().offerOptions)==null?void 0:K[0];return _.f(w,klY)||{}}));
var b=X.next().value,U=X.next().value;X={};return _.F("ytm-lp-offer-card-view-model",null,_.F("div",{class:_.Qr("ytmLpOfferCardViewModelHost",(X.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(l==null||!l().useDarkTheme)},X))},_.F("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.F(_.M,{cond:function(){return H().titleIconType},
then:function(){return _.F("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.F(_.Ja,{icon:function(){var K;return((K=H().titleIconType)==null?void 0:K.toString())||""}}))}}),_.F("div",{class:"ytmLpOfferCardViewModelTitleText"},_.F(_.Sj,{text:function(){return H().title}})),_.F(_.l4,{data:function(){return H().titleBadge}},{badgeViewModel:function(K){return _.F("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.F(_.Gi,{data:K.data}))}})),_.F("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.F(_.l4,{data:function(){return H().offerOptions}},{lpOfferCardOptionViewModel:function(K){var w=K.data;
return _.F(_.Xi,null,_.F("div",{class:"ytmLpOfferCardViewModelDivider"}),_.F(WOC,{data:w,config:function(){var d;return{shouldDisplayRadioButton:(H().offerOptions||[]).length>1,isOptionSelected:w().id===((d=b())==null?void 0:d.id),handleRadioButtonClick:function(B){return void U(B)}}},
themeOverride:l}))}})),_.F("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.F(_.l4,{data:function(){var K;
return(K=b())==null?void 0:K.purchaseButtonOverride}},{buttonViewModel:_.Qk}))))},"Nd");
E0H.idomCompat=!0;var g0H=_.Z(function(X){var H=X.data;var l=X.themeOverride;X={};X=_.Qr("ytmLpOfferCardSectionViewModelHost",(X.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var b;return l==null?void 0:(b=l())==null?void 0:b.useDarkTheme},X));
return _.F("ytm-lp-offer-card-section-view-model",null,_.F("div",{class:X},_.F(_.M,{cond:function(){return H().title!==void 0},
then:function(){return _.F("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.F("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.F(_.Sj,{text:function(){return H().title}})),_.F(_.M,{cond:function(){return H().subtitle},
then:function(){return _.F("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.F(_.Sj,{text:function(){return H().subtitle}}))}}))}}),_.F("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.F(_.l4,{data:function(){return H().offerCards}},{lpOfferCardViewModel:function(b){return _.F("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.F(E0H,{data:b.data,
themeOverride:l}))}})),_.F(_.M,{cond:function(){return H().footer},
then:function(){return _.F("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.F(_.Sj,{text:function(){return H().footer}}))}})))},"Od");var G$9=_.Z(function(X){var H=X.data;var l={badgeText:"New",badgeStyle:"BADGE_STATUS_NEW"};return _.F("lp-offer-table-cell-content-view-model",null,_.F("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.F(_.ff,null,_.F(_.yO,{when:function(){return H().title}},function(){return _.F(_.Sj,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return H().title}})}),_.F(_.yO,{when:function(){return H().subTitle}},function(){return _.F(_.Sj,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return H().subTitle}})}),_.F(_.yO,{when:function(){return H().featureDescription}},function(){return _.F(_.Sj,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return H().featureDescription}})}),_.F(_.yO,{when:function(){return H().description}},function(){return _.F(_.Sj,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return H().description}})}),_.F(_.yO,{when:function(){return H().iconType}},function(){return _.F("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.F(_.Ja,{icon:function(){return H().iconType.toString()}}))}),_.F(_.yO,{when:function(){return H().purchaseButton}},function(){return _.F(_.l4,{data:function(){return H().purchaseButton}},{buttonViewModel:function(b){return _.F("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.F(_.Qk,
{data:b.data}))}})}),_.F(_.yO,{when:function(){return H().note}},function(){return _.F(_.Sj,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return H().note}})}),_.F(_.yO,{when:function(){return H().featureDetail}},function(){return _.F(_.Sj,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return H().featureDetail}})}),_.F(_.yO,{when:function(){return H().badge}},function(){return _.F(_.l4,{data:function(){return H().badge}},{badgeViewModel:_.Gi})}),_.F(_.yO,{when:function(){return H().includeBadgeSpacer}},function(){return _.F("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellBadgeSpacer",
"aria-hidden":"true"},_.F(_.Gi,{data:l}))}))))},"Pd");
G$9.idomCompat=!0;var abD=_.Z(function(X){var H=X.data;return _.F("lp-offer-table-cell-view-model",null,_.F("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(H().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.F(_.l4,{data:function(){return H().contents}},{lpOfferTableCellContentViewModel:G$9})))},
"Qd");
abD.idomCompat=!0;var ZQ_=_.Z(function(X){var H=X.data;var l=X.lpTableIsFirstRow;var b=X.lpTableIsLastRow;var U=function(){return(l==null?0:l())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},K=function(){return(l==null?0:l())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(b==null?0:b())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.F("ytm-lp-offer-table-row-view-model",null,_.F("div",{class:"ytLpOfferTableRowViewModelHost"},_.F(_.l4,{data:function(){return H().rowHeaderCell}},{lpOfferTableCellViewModel:function(w){return _.F("div",{class:U},_.F(abD,{data:w.data}))}}),_.F(_.l4,{data:function(){return H().contentCells}},{lpOfferTableCellViewModel:function(w){return _.F("div",{class:K},_.F(abD,{data:w.data}))}})))},"Rd");
ZQ_.idomCompat=!0;var iQQ=_.Z(function(X){var H=X.data;var l=X.themeOverride;var b=_.jJ().resolve(_.c$(_.b4)),U=function(){return _.f(H().logo,JTF)||{}};
X={};return _.F("ytm-lp-offer-table-section-view-model",null,_.F("div",{class:"ytLpOfferTableViewModelHost"},_.F(_.M,{cond:function(){var K,w;return b&&b()||(l==null?0:l().useDarkTheme)?(K=U())==null?void 0:K.imageDark:(w=U())==null?void 0:w.imageLight},
then:function(K){return _.F(_.Dp,{data:K,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var w,d,B;return(B=(w=U())==null?void 0:(d=w.accessibilityData)==null?void 0:d.label)!=null?B:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.F(_.Sj,{text:function(){return H().title}})),_.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.F(_.Sj,{text:function(){return H().subtitle}})),_.F(_.M,{cond:function(){return H().disclaimers},
then:function(K){return _.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.F(_.P$,{each:K},function(w){return _.F("div",null,_.F(_.Sj,{text:w}))}))}}),_.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.F(_.l4,{data:function(){return H().rows}},{lpOfferTableRowViewModel:function(K,w){return _.F(ZQ_,{data:K.data,
lpTableIsFirstRow:function(){return w()===0},
lpTableIsLastRow:function(){return w()===H().rows.length-1}})}})),_.F("div",{class:_.Qr((X.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return H().hasFooterBackground},X))},_.F(_.M,{cond:function(){return H().footer},
then:function(){return _.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.F(_.Sj,{text:function(){return H().footer}}))}}),_.F(_.M,{cond:function(){return H().footerTitle},
then:function(){return _.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.F(_.Sj,{text:function(){return H().footerTitle}}))}}),_.F(_.M,{cond:function(){return H().footerDescription},
then:function(){return _.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.F(_.Sj,{text:function(){return H().footerDescription}}))}}),_.F(_.M,{cond:function(){return H().footerDescriptions},
then:function(K){return _.F("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.F(_.P$,{each:K},function(w){return _.F("div",null,_.F(_.Sj,{text:w}))}))}}))))},"Sd");
iQQ.idomCompat=!0;var v06=_.Z(function(X){var H=X.data;var l=X.themeOverride;var b=_.jJ().resolve(_.c$(_.b4)),U=function(){var d;return l==null?void 0:(d=l())==null?void 0:d.useDarkTheme},K=function(){var d,B;
return b&&b()||U()?(d=H().image)==null?void 0:d.imageDark:(B=H().image)==null?void 0:B.imageLight};
X={};X=_.Qr("ytmLpSmallFeatureSectionViewModelHost",(X.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=U,X));var w=function(){var d,B,q;return(q=(d=H().image)==null?void 0:(B=d.accessibilityData)==null?void 0:B.label)!=null?q:""};
return _.F("ytm-lp-small-feature-section-view-model",{class:X},_.F(_.M,{cond:function(){return K()&&!z5N},
then:function(){return _.F("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.F(_.Dp,{data:function(){return K()},
alt:w,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.F("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.F("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.F(_.M,{cond:function(){return H().title},
then:function(d){return _.F(_.Sj,{text:d})}})),_.F("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.F(_.Sj,{text:function(){return H().description}}))))},"Td");
v06.idomCompat=!0;var OQ_=_.Z(function(X){var H=X.data;var l=X.themeOverride;X={};return _.F("ytm-lp-small-feature-section-group-view-model",null,_.F("div",{class:_.Qr("ytmLpSmallFeatureSectionGroupViewModelHost",(X.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(l==null||!l().useDarkTheme)},X))},_.F("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.F(_.l4,{data:function(){return H().smallFeatures}},{lpSmallFeatureSectionViewModel:function(b){return _.F("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.F(v06,{data:b.data,
themeOverride:l}))}}))))},"Ud");
OQ_.idomCompat=!0;_.gC(_.Z(function(X){var H=X.data;var l=function(){return H().forcedTheme==="USER_INTERFACE_THEME_DARK"},b=function(){return H().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},U=function(){var w="",d,B;
var q=_.jJ().resolve(_.c$(_.b4));q=l()||(q==null?0:q())?(d=H().themedImageViewModel)==null?void 0:d.imageDark:(B=H().themedImageViewModel)==null?void 0:B.imageLight;(d=zDh((q==null?void 0:q.sources)||[]))&&d.url&&(w=b()?"background-image: linear-gradient(to bottom, transparent, "+(H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.Yn(d.url)+");":"background-image: url("+_.Yn(d.url)+");");return w},K=function(){return{useDarkTheme:l()}};
X={};return _.F("yt-section-group-view-model",null,_.F("div",{class:_.Qr("yt-lp-section-group-view-model",(X["yt-lp-section-group-view-model--premium-force-dark-mode"]=l,X["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return H().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},X))},_.F(_.M,{cond:function(){return U().length},
then:function(){var w={};return _.F("div",{class:_.Qr("yt-lp-section-group-view-model__bg-image",(w["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=b,w)),style:U})}}),_.F("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.F(_.l4,{data:function(){return H().sections}},{lpHeaderUpsellBannerViewModel:function(w){return _.F(k$Y,{data:w.data})},
lpFaqSectionViewModel:function(w){return _.F(z$D,{data:w.data,themeOverride:K})},
lpHeaderSectionViewModel:function(w){return _.F(n0F,{data:w.data,themeOverride:K})},
lpHeadlineSectionViewModel:function(w){return _.F(xMq,{data:w.data,themeOverride:K})},
lpLargeFeatureSectionViewModel:function(w){return _.F(DMt,{data:w.data,themeOverride:K})},
lpOfferCardSectionViewModel:function(w){return _.F(g0H,{data:w.data,themeOverride:K})},
lpComplexOfferCardSectionViewModel:function(w){return _.F(PrQ,{data:w.data})},
lpOfferTableSectionViewModel:function(w){return _.F(iQQ,{data:w.data,themeOverride:K})},
lpSmallFeatureSectionGroupViewModel:function(w){return _.F(OQ_,{data:w.data,themeOverride:K})},
lpCouponBannerViewModel:function(w){return _.F(fbG,{data:w.data})}}))))},"Vd"),"yt-section-group-view-model",{props:{data:_.zh}});_.mMQ=_.Z(function(X){var H=_.Aw(vLm,function(){var w;return(w=X.data())==null?void 0:w.chipBarStateEntityKey}),l=function(){return X.data().disableDeselection},b=_.C(_.Gx(function(){var w;
if(((w=H())==null?void 0:w.selectedIndex)!=void 0)return H().selectedIndex;var d,B;w=_.C(((d=X.data())==null?void 0:(B=d.chips)==null?void 0:B.entries())||[]);for(d=w.next();!d.done;d=w.next()){d=_.C(d.value);B=d.next().value;d=d.next().value;var q=void 0;if((q=_.f(d,_.pk))==null?0:q.selected)return B}return-1})),U=b.next().value,K=b.next().value;
return _.F("chip-bar-view-model",{class:_.Qr("ytChipBarViewModelHost",X.className),role:"tablist"},_.F(_.l4,{data:function(){return X.data().chips}},{chipViewModel:function(w,d){return _.F("div",{class:"ytChipBarViewModelChipWrapper"},_.F(_.d1Q,{data:w.data,
selected:function(){return d()===U()},
callback:function(B,q){B=!!q;q=d();K(B?q:-1);var u,e=(u=X.data())==null?void 0:u.chipBarStateEntityKey;e&&B&&_.Wc(_.Us("chipBarStateEntity",e,{key:e,selectedIndex:q}))},
disableDeselection:X.disableDeselection||l}))}}))},"Wd");_.gC(_.mMQ,"chip-bar-view-model",{props:{data:_.ta,className:_.ta,disableDeselection:_.ta}});_.Q36=_.Z(function(X){var H=X.data;X={};return _.F("divider-view-model",{class:_.Qr("dividerViewModelHost",(X.dividerViewModelInsetThinPadding=function(){return H().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},X))},_.F("div",{class:_.Qr("dividerViewModelBaseDivider",function(){return OMZ(H().dividerStyle)})}))},"Xd");
_.Q36.idomCompat=!0;_.gC(_.Q36,"divider-view-model",{props:{data:_.zh}});var lD=new Map,oB=new Map,TOy=0,bD;var L_W=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],Aey={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var TN_,NNG;TN_=function(X){return function(H){return function(){return(H==null?void 0:H())!==void 0?String(H())+X:void 0}}};
_.f3=TN_("px");NNG=TN_("s");_.p3=new _.gz("CHUNK_REGISTRY_TOKEN");_.$q(lxZ,{debugName:"shortsLockupViewModel"});_.JR(_.p3,function(X){_.St(X,"shortsLockupViewModel","dpUCFd",lxZ)});var cEt=_.$q(bmO,{debugName:"shortsLockupViewModelWithDismissible"});_.JR(_.p3,function(X){_.St(X,"shortsLockupViewModelWithDismissible","U9vrqd",bmO)});var j3t=vFz(function(X){return X.targetGroupId}).useUpdatableData;_.zF=_.Z(function(X){function H(Uy){return function(){var Cy=t().numItemsPerGridRow,sy=Uy()*Cy;Cy=sy+Cy;var FO,ub;return(ub=(FO=b().contents)==null?void 0:FO.slice(sy,Cy))!=null?ub:[]}}
var l=_.gT(X,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),b=l.data,U=l.layoutContainerWidth,K=l.shouldUseOwnContainerSize,w=l.marginSettings,d=l.useUpdatedMargin,B=fTy(),q=_.C(j3t(function(){var Uy,Cy;return{targetGroupId:(Uy=b().targetingContext)==null?void 0:(Cy=Uy.targetGroupId)==null?void 0:Cy[0]}})).next().value;
l=_.C(_.FU(!0,void 0,"CC9Rdb"));var u=l.next().value,e=l.next().value,y=function(){var Uy,Cy=(Uy=_.f(b().showMoreButton,_.fk))==null?void 0:Uy.trackingParams;Cy&&_.Y8(_.lv(),Cy);e(!1)},V=function(){var Uy,Cy=(Uy=_.f(b().showLessButton,_.fk))==null?void 0:Uy.trackingParams;
Cy&&_.Y8(_.lv(),Cy);e(!0)};
l=_.C(_.UF({canHaveZeroSize:!1}));var p=l.next().value;l=l.next().value;var z=function(){var Uy;return(Uy=b().contentAspectRatio)!=null?Uy:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},t=_.uL(function(){var Uy=K()&&p.width()>0?p.width()||U():U(),Cy,sy=(Cy=X.data())==null?void 0:Cy.responsiveContainerConfiguration;
Uy=_.fS({containerWidth:Uy,sizing:sy?pS(sy==null?void 0:sy.responsiveSize):"EXTRA_COMPACT",marginSettings:w(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:Uy.maxContainerWidth,numItemsPerGridRow:Uy.numItems,contentPadding:K()?Uy.margin:Uy.contentMargin,itemWidth:Uy.itemWidth,itemMargin:Uy.gutter/2}},void 0,"YIvnde"),W=function(){if(b().enableVerticalExpansion){if(u())return G();
var Uy,Cy,sy=(Cy=(Uy=b().contents)==null?void 0:Uy.length)!=null?Cy:0;return Math.ceil(sy/t().numItemsPerGridRow)}return t().numItemsPerGridRow<=2?2:1},G=function(){var Uy;
return Math.ceil(((Uy=b().minCollapsedItemCount)!=null?Uy:1)/t().numItemsPerGridRow)},r=function(){return b().enableVerticalExpansion&&b().showLessButton&&!u()&&W()>G()},Q=function(){var Uy,Cy;
return b().enableVerticalExpansion&&b().showMoreButton&&u()&&((Cy=(Uy=b().contents)==null?void 0:Uy.length)!=null?Cy:0)>t().numItemsPerGridRow*G()},v=function(){return!r()},J=function(){return!Q()},Y={};
return _.F("grid-shelf-view-model",{class:_.Qr("ytGridShelfViewModelHost",X.className,(Y.ytGridShelfViewModelHostHasBottomButton=function(){return r()||Q()},Y.ytGridShelfViewModelHostIsDismissed=function(){var Uy,Cy=(Uy=q())!=null?Uy:{};
Uy=Cy.behavior;var sy=Cy.isDismissed,FO=Cy.stamperContextTargetId;Cy=Cy.stamperIndex;if(!(_.P("mweb_see_fewer_shorts_group_dismissal")&&sy&&Uy&&FO))return!1;var ub;sy=B;for(var g8,mm,QZ=((g8=sy)==null?0:g8.targetId)?_.a5((mm=sy)==null?void 0:mm.targetId):void 0;((ub=sy)==null?0:ub.parent)&&QZ!==FO;)sy=sy.parent,mm=g8=void 0,QZ=((g8=sy)==null?0:g8.targetId)?_.a5((mm=sy)==null?void 0:mm.targetId):void 0;ub=QZ===FO?sy:void 0;if(!ub)return!1;var Bz;FO=ub==null?void 0:(Bz=ub.stamperIndex)==null?void 0:
Bz.call(ub);return Uy==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||Uy==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&FO!=null&&Cy!=null&&FO>Cy},Y.ytGridShelfViewModelHostOptionalMediumLayoutMargin=d,Y)),
el:_.xl(l),style:_.rC({"margin-left":(0,_.f3)(function(){return t().contentPadding}),
"margin-right":(0,_.f3)(function(){return t().contentPadding})})},_.F(_.M,{cond:function(){return _.f(b().header,oXH)},
then:function(Uy){return _.F(_.on,{data:Uy,useUpdatedPadding:d,disableHorizontalPadding:!0})}}),_.F("div",null,_.F(_.P$,{each:function(){return Array(W())}},function(Uy,Cy){return _.F(rED,{className:X.className,
items:H(Cy),responsiveGridShelfLayout:t,contentAspectRatio:z})})),_.F("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.F(_.l4,{data:function(){return b().showMoreButton}},{buttonViewModel:function(Uy){return _.F("div",{hidden:J},_.F(_.Qk,{data:Uy.data,
onClick:y}))}}),_.F(_.l4,{data:function(){return b().showLessButton}},{buttonViewModel:function(Uy){return _.F("div",{hidden:v},_.F(_.Qk,{data:Uy.data,
onClick:V}))}})))},"Zd");
_.zF.idomCompat=!0;var rED=_.Z(function(X){var H=X.items;var l=X.responsiveGridShelfLayout;var b=X.contentAspectRatio;X=X.className;var U=(0,_.f3)(function(){return-l().itemMargin});
return _.F("div",{el:_.xl(Qby(function(K){a:{for(var w=H(),d=[],B=0;B<w.length;B++){var q=_.f(w[B],gSG);if(!q||q==null||!q.inlinePlayerData){K=null;break a}var u=K.children.item(B);if(!u){K=null;break a}d.push({thumbnailElement:u,videoData:q})}K={gridVideoPreviewData:{gridItems:d}}}return K})),
class:_.Qr("ytGridShelfViewModelGridShelfRow",X),style:_.rC({"margin-left":U,"margin-right":U})},_.F(_.l4,{data:H,replacementWrapper:function(K){return _.F(JEY,{responsiveGridShelfLayout:l},K)}},{shortsLockupViewModel:function(K){return _.F(JEY,{responsiveGridShelfLayout:l},_.F(cEt,{data:K.data,
aspectRatio:function(){return b()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.P("mweb_enable_one_line_title_on_shorts")?1:_.P("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(K){return _.F(JEY,{responsiveGridShelfLayout:l},_.F(_.Ak,{data:K.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"$d"),JEY=_.Z(function(X){return _.F("div",{style:_.rC({width:(0,_.f3)(function(){return X.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+X.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},X.children)},"ae");
_.zF.idomCompat=!0;_.gC(_.zF,"grid-shelf-view-model",{props:{data:_.zh,layoutContainerWidth:_.zh,shouldUseOwnContainerSize:_.zh,marginSettings:_.zh,useUpdatedMargin:_.zh,className:_.zh}});_.LOq=_.Z(function(X){var H=_.C(_.FU(!1,void 0,"FVl30c")),l=H.next().value,b=H.next().value;H={};return _.F("yt-alert-banner-view-model",{class:_.Qr("ytAlertBannerViewModelHost",X.className,function(){var U;a:switch((U=X.data())==null?void 0:U.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":U="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":U="ytAlertBannerViewModelWarning";break a;default:U="ytAlertBannerViewModelInformational"}return U},(H.ytAlertBannerViewModelDismissed=
l,H.ytAlertBannerViewModelFullbleed=X.fullbleed,H.ytAlertBannerViewModelNarrow=X.narrow,H.ytAlertBannerViewModelIsInRichGrid=X.isInRichGrid,H))},_.F(_.M,{cond:function(){var U;
return!((U=X.data())==null?0:U.hideIcon)},
then:function(){return _.F("div",{class:"ytAlertBannerViewModelIcon"},_.F(_.Ja,{icon:function(){return"info_circle"}}))}}),_.F("div",{class:"ytAlertBannerViewModelOuterContainer"},_.F("div",{class:"ytAlertBannerViewModelContainer"},_.F("div",{class:"ytAlertBannerViewModelContent"},_.F("div",{class:"ytAlertBannerViewModelHeading"},_.F(_.Sj,{text:function(){var U;
return(U=X.data())==null?void 0:U.heading}})),_.F("div",{class:"ytAlertBannerViewModelBody"},_.F(_.Sj,{text:function(){var U;
return(U=X.data())==null?void 0:U.body}})))),_.F(_.l4,{data:function(){var U;
return(U=X.data())==null?void 0:U.actionButton}},{buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.F(_.l4,{data:function(){var U;
return(U=X.data())==null?void 0:U.dismissButton}},{buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var K;((K=X.data())==null?0:K.disableLocalDismissBehavior)||b(!0)}})}}))},"be");_.gC(_.LOq,"yt-alert-banner-view-model",{props:{data:_.zh,fullbleed:_.zh,narrow:_.zh,isInRichGrid:_.zh,className:_.zh}});var YXC;_.n3=_.Z(function(X){return _.F("basic-content-view-model",{class:_.Qr("ytBasicContentViewModelHost",_.Eq(X.className))},_.F(_.M,{cond:function(){return X.data().headline},
then:function(H){return _.F("div",{class:"ytBasicContentViewModelHeadline"},_.F(_.Sj,{text:H}))}}),_.F(_.P$,{each:function(){return X.data().paragraphs||[]},
keyBy:"INDEX"},function(H){return _.F("div",{class:"ytBasicContentViewModelParagraph"},_.F(_.M,{cond:function(){var l=H();return!!(l.header||l.customHeader||l.headline)},
then:function(){return _.F(YXC,{paragraph:H})}}),_.F(_.M,{cond:function(){return H().asset||H().text},
then:function(){return _.F("div",{class:"ytBasicContentViewModelParagraphContent"},_.F(_.M,{cond:function(){return H().asset},
then:function(l){return _.F("div",{class:"ytBasicContentViewModelParagraphAsset"},_.F(_.l4,{data:l},{contentPreviewImageViewModel:_.cU}))}}),_.F(_.M,{cond:function(){return H().text},
then:function(l){return _.F("div",{class:"ytBasicContentViewModelParagraphText"},_.F(_.Sj,{text:l}))}}))}}))}))},"ce");
YXC=_.Z(function(X){var H=X.paragraph;return _.F(_.Xi,null,_.F(_.M,{cond:function(){return H().headline},
then:function(l){return _.F(_.Sj,{text:l,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.F(_.l4,{data:function(){return H().header||H().customHeader}},{sectionHeaderViewModel:function(l){return _.F(_.on,{data:l.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"de");_.Ib_=_.Z(function(X){function H(){var V,p;B((p=(V=U)==null?void 0:V.isKeyBoardInUse())!=null?p:!1)}
function l(){B(!1)}
function b(){var V;return d()?(V=X.focusedClassName)==null?void 0:V.call(X):""}
var U=_.jJ().resolve(_.c$(_.aE)),K=_.C(_.FU(!1,void 0,"SgkTXc")),w=K.next().value;K=K.next().value;var d=w,B=K,q=function(){var V,p;return((V=X.toggleable)==null?0:V.call(X))?(p=X.toggled)==null?void 0:p.call(X):void 0},u=_.Nq(function(V){var p,z=(p=X.command)==null?void 0:p.call(X);
z&&_.jJ().resolve(_.Vr).resolveCommand(z);var t;(t=X.onClick)==null||t.call(X,V)}),e=_.Nq(H),y=_.Nq(l);
return _.F(_.M,{cond:function(){var V;if(V=X.command){V=X.command();V=IJl(V);var p=V.href;V=!(!V.navigatingCommand||!p)}return V},
then:function(){return _.F(_.ZE,Object.assign({},{command:X.command,style:X.style,ariaDescribedby:X.ariaDescribedby,ariaHidden:X.ariaHidden,ariaLabel:X.ariaLabel,ariaLabelledby:X.ariaLabelledby,ariaSelected:X.ariaSelected,disabled:X.disabled,dir:X.dir,tabIndex:X.tabIndex,target:X.target,title:X.title,onClick:X.onClick},{className:_.Qr("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",X.className,function(){return b()}),
onFocusin:H,onFocusout:l,ariaCurrent:function(){var V,p;return(p=(V=X.ariaCurrent)==null?void 0:V.call(X))!=null?p:q()}}),X.children)},
else:function(){return _.F("button",{"on:click":u,"on:focusin":e,"on:focusout":y,class:_.Qr("ytButtonOrAnchorHost","ytButtonOrAnchorButton",X.className,function(){return b()}),
style:X.style,"aria-describedby":X.ariaDescribedby,"aria-hidden":X.ariaHidden,"aria-label":X.ariaLabel,"aria-labelledby":X.ariaLabelledby,"aria-pressed":q,dir:X.dir,disabled:X.disabled,tabindex:X.tabIndex,title:X.title},X.children)}})},"ee");var AEv=_.Z(function(X){X=_.gT(X,{disabled:!1});var H=X.active,l=X.disabled;X={};X=_.Qr("ytSwitchShapeTrack",(X.ytSwitchShapeTrackActive=function(){return H()},X.ytSwitchShapeTrackDisabled=function(){return l()},X));
var b={};b=_.Qr("ytSwitchShapeKnob",(b.ytSwitchShapeKnobActive=function(){return H()},b));
return _.F("switch-shape",{class:"ytSwitchShapeHost"},_.F("div",{class:X}),_.F("div",{class:b}))},"fe");var Xh$=_.Z(function(X){var H=_.gT(X,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),l=H.data;X=H.className;var b=H.handleOnTapEventInParent,U=H.parentActive,K=H.onTap;H=_.C(_.Gx(function(){var y;return(y=U())!=null?y:l().switchedOnByDefault||!1}));
var w=H.next().value,d=H.next().value,B=function(){return l().isDisabled},q=_.SJ("button");
H=_.Nq(function(y){return y.key==="Enter"?(y.preventDefault(),q.value.click(),!1):!0});
var u=_.Nq(function(y){if(l().handleOnTapEventInParent||b())return!0;if(B())return!1;if(K)return K(y),!0;$_z(l(),w(),y);d(!w());return!1}),e={};
e=_.Qr("ytSwitchButtonViewModelButton",(e.ytSwitchButtonViewModelTappable=function(){return!B()},e));
return _.F("switch-button-view-model",{class:_.Qr("ytSwitchButtonViewModelHost",X)},_.F("button",{el:q,class:e,"on:click":u,"on:keydown":H,"aria-label":function(){return w()?l().a11yLabelSwitchedOn:l().a11yLabelSwitchedOff},
"aria-checked":w,"aria-disabled":B,role:"switch"},_.F(AEv,{active:w,disabled:B})))},"ge");var Hyy=_.Z(function(X){var H=X.data;var l=X.isLeading;var b=X.hideSelectionTextChevron;var U=X.isToggled;var K=X.shouldNotFillIcon;var w=function(){if(l())var e=H().leadingImage;else{var y;e=(y=H().trailingImage)!=null?y:_.Su(H().themedTrailingImage)}return e},d=function(){a:switch(H().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var e="expand_more";
break a;default:e="chevron_right"}return e};
X={};var B=_.Qr("yt-list-item-view-model__image-container",(X["yt-list-item-view-model__leading"]=l,X["yt-list-item-view-model__trailing"]=function(){return!l()},X)),q=_.Qr("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
X={};var u=_.Qr("yt-list-item-view-model__accessory",(X["yt-list-item-view-model__leading"]=l,X["yt-list-item-view-model__trailing"]=function(){return!l()},X));
return _.F(_.M,{cond:function(){var e=H(),y=l();return!!(y&&(e.leadingImage||e.leadingAccessory)||!y&&(e.trailingImage||e.trailingButton||e.trailingButtons||e.selectionText||e.themedTrailingImage||e.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.F(_.Xi,null,_.F(_.M,{cond:w,then:function(e){return _.F("div",{class:B,"aria-hidden":"true"},_.F(_.Dp,{data:e,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var y=(l()?H().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":H().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?l()?CXO(H().leadingIconAccessorySize):CXO(H().trailingIconAccessorySize):void 0;return y},
className:q,isToggled:function(){return!(K==null?0:K())&&(U==null?void 0:U())}}))}}),_.F(_.M,{cond:function(){return l()&&H().leadingAccessory},
then:function(){return _.F("div",{class:B},_.F(_.l4,{data:function(){return H().leadingAccessory}},{avatarViewModel:function(e){return _.F(_.MX,{data:e.data,
avatarButtonCustomClassName:q})},
collectionThumbnailViewModel:function(e){return _.F(Caq,{data:e.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.F(_.M,{cond:function(){return!l()&&H().trailingButton},
then:function(){return _.F("div",{class:"yt-list-item-view-model__button-container"},_.F(_.l4,{data:function(){return H().trailingButton}},{buttonViewModel:function(e){return _.F(_.Qk,{data:e.data,
className:u})}}))}}),_.F(_.M,{cond:function(){var e;
return!l()&&((e=H().trailingButtons)==null?void 0:e.buttons)},
then:function(){return _.F("div",{class:"yt-list-item-view-model__button-container"},_.F(_.l4,{data:function(){var e;return(e=H().trailingButtons)==null?void 0:e.buttons}},{buttonViewModel:function(e){return _.F(_.Qk,{data:e.data,
className:u})},
accountLinkButtonViewModel:function(e){return _.F(Y3_,{data:e.data,className:u})},
switchButtonViewModel:function(e){return _.F(Xh$,{data:e.data,className:u})},
subscribeButtonViewModel:function(e){return _.F(_.sI,{data:e.data,isOverlay:!1,animateWidth:!1,className:u})},
toggleButtonViewModel:function(e){return _.F(_.KL,{data:e.data,className:u})}}))}}),_.F(_.M,{cond:function(){return!l()&&!!H().selectionText},
then:function(){return _.F(_.Xi,null,_.F(_.Sj,{text:function(){return H().selectionText},
className:_.Qr("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.F(_.M,{cond:function(){return!(b==null?0:b())},
then:function(){return _.F(_.Ja,{icon:d,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.F(_.M,{cond:function(){return!l()&&H().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.F("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"he");var lL5=_.Z(function(X){var H=X.data;return _.F(_.M,{cond:function(){return H().title||H().subtitle},
then:function(){return _.F("div",{class:"yt-list-item-view-model__text-wrapper"},_.F(_.M,{cond:function(){return H().title},
then:function(l){return _.F("div",{class:"yt-list-item-view-model__title-wrapper"},_.F(_.Sj,{text:l,className:"yt-list-item-view-model__title"}))}}),_.F(_.M,{cond:function(){return H().subtitle},
then:function(l){return _.F(_.Sj,{text:l,className:"yt-list-item-view-model__subtitle"})}}))}})},"ie");var oNZ=_.Z(function(X){var H=X.data;var l=X.hideSelectionTextChevron;var b=X.TrailingAccessory;var U=X.isToggled;var K=X.disabled;var w=X.isSelectItem;var d=X.isCompact;var B=X.inPopup;var q=X.disableHorizontalPadding;var u=X.isTappableWithoutSelect;var e=X.useButtonOrAnchor;var y=X.onTap;var V=X.shouldNotFillIcon;var p=function(){return _.F(lL5,{data:H,onTap:y,useButtonOrAnchor:e,isTappableWithoutSelect:u,isToggled:U})};
X={};return _.F("div",{class:_.Qr("yt-list-item-view-model__label",(X["yt-list-item-view-model__container"]=function(){return!(w==null?0:w())},X["yt-list-item-view-model__container--disabled"]=function(){return!!H().isDisabled||!(K==null||!K())},X["yt-list-item-view-model__container--has-subtitle"]=function(){return!!H().subtitle},X["yt-list-item-view-model__container--compact"]=d,X["yt-list-item-view-model__container--tappable"]=u,X["yt-list-item-view-model__container--in-popup"]=B,X["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(q==null?void 0:q())&&!(w==null?0:w())},X))},_.F(Hyy,{data:H,
isLeading:!0,hideSelectionTextChevron:l,isToggled:U,shouldNotFillIcon:V}),_.F(_.M,{cond:function(){return(e==null?void 0:e())&&(u==null?void 0:u())},
then:function(){return _.F(_.Ib_,{command:function(){return _.qh(H().rendererContext)},
onClick:y,className:"yt-list-item-view-model__button-or-anchor",toggleable:U!==void 0,toggled:U},_.F(p,null))},
else:function(){return _.F(p,null)}}),_.F(_.M,{cond:function(){return!!b},
then:function(){return _.F("div",{class:"yt-list-item-view-model__trailing"},b&&_.F(b,null))},
else:function(){return _.F(Hyy,{data:H,isLeading:!1,hideSelectionTextChevron:l,isToggled:U,shouldNotFillIcon:V})}}))},"je");var UW5=_.Z(function(X){var H=_.gT(X,{checked:!1,disabled:!1});X=H.name;var l=H.onChange,b=H.onClick,U=H.checked,K=H.labelRenderable,w=H.hasLeadingLabel,d=H.labelClass,B=H.isCompact,q=H.selectElementClass,u=H.disableHorizontalPadding;H=H.disabled;var e="checkbox"+_.uZ(_.P3),y=_.Nq(function(z){b==null||b(z);return!1}),V=_.Nq(function(z){l==null||l(z);
return!1}),p={};
return _.F("checkbox-shape",null,_.F("label",{class:_.Qr("ytCheckboxShapeHost",d,(p.ytCheckboxShapeHostCompact=B,p.ytCheckboxShapeDisableHorizontalPadding=u,p))},_.F("input",{class:"ytCheckboxShapeInput",id:e,checked:U,name:X,type:"checkbox",disabled:H,"prop:checked":U,"on:change":V,"on:click":y}),_.F(_.M,{cond:function(){return!(w==null?0:w())},
then:function(){return _.F(byp,{isLeading:!0,selectElementClass:q})}}),_.F(_.M,{cond:function(){return!!K},
then:function(){return _.F("div",{class:"ytCheckboxShapeLabel"},K==null?void 0:K())}}),_.F(_.M,{cond:w,
then:function(){return _.F(byp,{isLeading:!1,selectElementClass:q})}})))},"ke");
UW5.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var byp=_.Z(function(X){var H=X.selectElementClass;X={};return _.F("div",{class:_.Qr("ytCheckboxShapeCheckbox",H,(X.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(H==null?0:H())},X)),
"aria-hidden":"true"},_.F(_.Ja,{icon:_.P("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.F(_.Ja,{icon:_.P("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"le");_.kK=_.Z(function(X){var H=X.name;var l=X.onChange;var b=X.onClick;var U=X.checked;var K=X.labelRenderable;var w=X.useCheckIcon;var d=X.hasLeadingLabel;var B=X.labelClass;var q=X.isCompact;var u=X.selectElementClass;var e=X.ariaLabel;var y=X.className;X=X.disabled;var V="radio"+_.uZ(_.P3),p=_.SJ("input"),z=_.P("enable_ios_webview_radio_button_responsiveness"),t=_.Nq(function(Y){p.value.checked=!(U==null||!U());l==null||l(Y);return!1}),W=_.Nq(function(Y){b==null||b(Y);
return!1}),G=_.C(_.FU(!1,void 0,"Ucg5gd")),r=G.next().value,Q=G.next().value;
G=_.Nq(function(){var Y;((Y=_.jJ().resolve(_.c$(_.aE)))==null?0:Y.isKeyBoardInUse())&&Q(!0)});
var v=_.Nq(function(){Q(!1)}),J={};
return _.F("radio-shape",{class:_.Qr("yt-radio-shape",y)},_.F("input",{el:p,class:"yt-radio-shape__input",id:V,"prop:checked":U,name:H,type:"radio",disabled:X,"on:change":t,"on:click":W,"aria-label":e,"on:focusin":G,"on:focusout":v}),_.F("label",{class:_.Qr("yt-radio-shape__label-container",B,(J["yt-radio-shape--compact"]=q,J["yt-radio-shape__label-container--keyboard-focused"]=r,J)),for:V},_.F(_.M,{cond:function(){return!(d==null?0:d())},
then:function(){return _.F($WA,{checked:U,useCheckIcon:w,isLeading:!0,selectElementClass:u,usePassthrough:z})}}),_.F(_.M,{cond:function(){return!!K},
then:function(){var Y={};return _.F("div",{class:_.Qr("yt-radio-shape__label",(Y["yt-radio-shape--event-passthrough"]=z,Y)),"aria-hidden":function(){return(e==null?0:e())?"true":"false"}},K==null?void 0:K())}}),_.F(_.M,{cond:d,
then:function(){return _.F($WA,{checked:U,useCheckIcon:w,isLeading:!1,selectElementClass:u,usePassthrough:z})}})))},"me");
_.kK.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};
var $WA=_.Z(function(X){var H=X.useCheckIcon;var l=X.selectElementClass;X=X.usePassthrough;var b=_.P("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE",U=_.P("enable_web_delhi_icons")?"CIRCLE_FULL":b,K={};return _.F("div",{class:_.Qr("yt-radio-shape__radio",l,(K["yt-radio-shape__radio--check-icon"]=H,K["yt-radio-shape__radio--radio-default-style"]=function(){return!(l==null?0:l())},K["yt-radio-shape--event-passthrough"]=X,K)),
"aria-hidden":"true"},_.F(_.Ja,{icon:function(){return(H==null?0:H())?"CHECK":b}}),_.F(_.Ja,{icon:function(){return(H==null?0:H())?"CHECK":U},
active:function(){return!(H==null?0:H())}}))},"ne");_.xK=_.Z(function(X){var H=X.data;var l=X.isMenuItem;var b=X.isCompact;var U=X.onTap;var K=X.trailingAccessory;var w=X.hideSelectionTextChevron;var d=X.disabled;var B=X.inPopup;var q=X.disableHorizontalPadding;var u=X.isOverlay;var e=X.isToggled;var y=X.ariaLabel;var V=X.ariaPressed;var p=X.shouldNotFillIcon;var z=!_.P("web_enable_killswitch_for_selectable_list_item_on_tap_fix");X=!_.P("web_enable_killswitch_for_skip_child_tags");var t=_.Aa(function(dt){return wsy(H(),dt)}),W=function(){return(q==
null?void 0:q())||H().disableHorizontalPadding},G=function(){var dt;
return!((dt=H())==null||!dt.entitySelectorType)},r=function(){return G()?Object.assign({},H(),t().data):H()},Q=function(){return!!r().isDisabled||!(d==null||!d())},v=_.hTm(function(){return r().rendererContext}),J=function(){return!(r().isSelected===void 0||!r().selectionStyle||r().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},Y=function(){return(_.ss(r().rendererContext)||U)&&!J()},Uy={},Cy=_.Qr("yt-list-item-view-model__container",(Uy["yt-list-item-view-model__container--tappable"]=
function(){return _.ss(r().rendererContext)||J()},Uy["yt-list-item-view-model__container--compact"]=b,Uy["yt-list-item-view-model__container--in-popup"]=B,Uy["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(W==null?void 0:W())&&J()},Uy)),sy=function(){return r().leadingImage||r().leadingAccessory},FO=_.Qr("yt-list-item-view-model__image-container",function(){return sy()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
Uy=_.h5();var ub=_.C(_.FU(!1,void 0,"ef0FO")),g8=ub.next().value,mm=ub.next().value,QZ=function(){return _.F(oNZ,{data:r,hideSelectionTextChevron:w,TrailingAccessory:K,isToggled:e,disabled:d,isSelectItem:J,isCompact:b,inPopup:B,disableHorizontalPadding:W,isTappableWithoutSelect:Y,useButtonOrAnchor:Bz,onTap:U,shouldNotFillIcon:p})},Bz=_.P("web_button_or_anchor_list_item");
ub={};return _.F("yt-list-item-view-model",{el:_.xl(_.Mh(function(){return Q()?void 0:r().rendererContext},void 0,void 0,Bz?["A".toString(),
"BUTTON".toString()]:[]),d_z(function(dt){if(!Q()){var TK;if(TK=z)TK=r().selectionStyle,TK=TK==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||TK==="LIST_ITEM_SELECTION_STYLE_RADIO"||TK==="LIST_ITEM_SELECTION_STYLE_DEFAULT";TK||U==null||U(dt)}},X?["A".toString(),
"BUTTON".toString()]:[]),eSZ(function(){return Y==null?void 0:Y()},{focusin:function(){var dt;
((dt=_.jJ().resolve(_.c$(_.aE)))==null?0:dt.isKeyBoardInUse())&&mm(!0)},
focusout:function(){mm(!1)}})),
class:_.Qr("yt-list-item-view-model",(ub["yt-list-item-view-model--is-overlay"]=u,ub["yt-list-item-view-model--keyboard-focused"]=g8,ub["yt-list-item-view-model--hidden"]=function(){return G()?t().isHidden:!1},ub)),
role:function(){return(l==null?0:l())?"menuitem":"listitem"},
tabindex:function(){var dt=Y();var TK=Bz;J();dt=TK?void 0:_.P("web_enable_killswitch_tabindex_fix")?U||dt?0:void 0:dt?0:void 0;return dt},
"on:keydown":Uy,"aria-label":function(){var dt;return(y==null?void 0:y())||((dt=v())==null?void 0:dt.label)},
"aria-pressed":V},_.F(_.M,{cond:J,then:function(){return _.F(_.ff,null,_.F(_.yO,{when:function(){return r().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.F(UW5,{labelRenderable:QZ,
isCompact:b,checked:function(){return r().isSelected},
hasLeadingLabel:function(){return!!sy()},
labelClass:Cy,selectElementClass:FO,disableHorizontalPadding:W,onClick:z?U:void 0,disabled:Q})}),_.F(_.yO,{when:function(){return r().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.F(_.kK,{labelRenderable:QZ,
isCompact:b,checked:function(){return r().isSelected},
hasLeadingLabel:function(){return!!sy()},
labelClass:Cy,selectElementClass:FO,onClick:z?U:void 0,disabled:Q})}),_.F(_.yO,{when:function(){return r().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.F(_.kK,{labelRenderable:QZ,
isCompact:b,checked:function(){return r().isSelected},
hasLeadingLabel:function(){return!!sy()},
labelClass:Cy,selectElementClass:FO,useCheckIcon:!0,onClick:z?U:void 0,disabled:Q})}),_.F(_.VO,null,QZ))},
else:QZ}))},"oe");
_.xK.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.Dl=_.Z(function(X){var H=_.C(_.UF({canHaveZeroSize:!1})),l=H.next().value;H=H.next().value;var b=function(){return ps8(l.width(),X.data().responsiveContainerConfiguration)||eTO(l.width(),X.data().linearLayoutContainerConfiguration)};
return _.F("yt-linear-layout-view-model",{el:_.xl(H),class:"ytLinearLayoutViewModelHost"},_.F("div",{class:_.Qr("ytLinearLayoutViewModelContainer",function(){a:switch(X.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var U="ytLinearLayoutViewModelHorizontal";break a;default:U="ytLinearLayoutViewModelVertical"}return U},function(){var U=X.data().linearLayoutContainerConfiguration;
return U?[sQz(U.flexDirection),M$h(U.justifyContent),uoh(U.alignItems)].join(" "):""}),
style:function(){var U;var K=((U=b())==null?void 0:U.containerStyles)||{};return _.rC(K)()}},_.F(_.l4,{data:function(){return X.data().items},
wrapper:function(U,K,w){return _.F("div",{style:function(){var d=w(),B;if((B=b())==null)d=void 0;else{var q=B.itemStyles,u,e;var y=(e=(u=X.data().items)==null?void 0:u.length)!=null?e:0;d=q.call(B,d===0,d===y-1)}return _.rC(d||{})()}},U())}},{lockupViewModel:function(U){return _.F(_.Ak,{data:U.data,
containerLayoutConfig:function(){var K;return(K=b())==null?void 0:K.containerLayoutConfig}})},
basicContentViewModel:_.n3,buttonViewModel:_.Qk,linearLayoutViewModel:_.Dl,thumbnailViewModel:OV,descriptionPreviewViewModel:_.ls,listItemViewModel:_.xK,sectionHeaderViewModel:_.on})))},"pe");_.gC(_.Dl,"yt-linear-layout-view-model",{props:{data:_.zh}});_.gC(_.bm,"chips-shelf-view-model",{props:{data:_.zh,callback:_.ta,selectionBehavior:_.zh,disableChipsScrollAnimation:_.zh,nextButtonStyle:_.zh}});_.gC(_.Z(function(X){return _.F("yt-comment-filter-context-view-model",{class:_.Qr("ytCommentFilterContextHost",X.className)},_.F(_.Sj,{text:function(){return X.data().text}}))},"qe"),"yt-comment-filter-context-view-model",{props:{data:_.zh,
className:_.ta}});_.KmA=_.Z(function(X){var H=X.data;var l=X.onTap;var b=X.onSwitch;var U=X.overrideDisabled;X=X.disableHorizontalPadding;var K=_.C(_.Gx(function(){var y;return((y=RTO(u()))==null?void 0:y.switchedOnByDefault)||!1})),w=K.next().value,d=K.next().value;
K=_.C(_.FU(!1,void 0,"V0hCrd"));var B=K.next().value,q=K.next().value,u=function(){var y;if(!(y=H().switchButton)){var V=H();y=U==null?void 0:U();V={switchOnCommand:V.switchOnCommand,switchOffCommand:V.switchOffCommand,switchedOnByDefault:V.switchedOnByDefault,isDisabled:V.isDisabled,a11yLabelSwitchedOn:V.a11yLabelSwitchedOn,a11yLabelSwitchedOff:V.a11yLabelSwitchedOff};y!==void 0&&(V.isDisabled=y);y={switchButtonViewModel:V}}return y},e=function(y){var V=RTO(u());
!V||V.isDisabled||H().ignoreTapUntilCommandCompletes&&B()||(l==null||l(y),$_z(V,w(),y,H().ignoreTapUntilCommandCompletes,q),d(!w()),b==null||b(w()))};
return _.F("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.F(_.xK,{data:function(){return{title:H().title,subtitle:H().attributedSubtitle,leadingImage:H().leadingImage,leadingAccessory:H().leadingAccessory,isDisabled:H().isDisabled}},
onTap:e,isToggled:w,shouldNotFillIcon:!0,trailingAccessory:function(){return _.F(_.l4,{data:u},{switchButtonViewModel:function(y){return _.F(Xh$,{data:y.data,parentActive:w,onTap:e})}})},
disableHorizontalPadding:X}))},"re");var Rza=_.Z(function(X){var H=X.data;X=X.className;var l=function(){var d;return((d=b())==null?void 0:d.isToggled)!==void 0},b=_.Aa(function(d){a:{var B=H().entityKey,q=H().entitySelectorType;
if(q)switch(q){case "TOGGLEABLE_LIST_ITEM_ENTITY_SELECTOR_TYPE_TOGGLE_MENU_SERVICE_ITEM_ENTITY":if(!B)break;var u,e;d={isToggled:(e=(u=_.$S.toggleMenuServiceItemEntitySelector(d,B))==null?void 0:u.isToggled)!=null?e:!1};break a;default:_.x2(new _.qd("Error: entitySelectorType defined but not matched in selector.",d,q))}d=void 0}return d}),U=_.C(_.Gx(function(){var d,B,q;
return l()?(d=b())==null?void 0:d.isToggled:(B=H())==null?void 0:(q=B.initialState)==null?void 0:q.isToggled})),K=U.next().value,w=U.next().value;
return _.F("toggleable-list-item-view-model",{el:_.xl(_.Mh(function(){return H().rendererContext},{onTap:function(d,B){B();
l()||w(!K())}})),
class:_.Qr("toggleableListItemViewModelHost",X)},_.F(_.M,{cond:function(){if(K()){var d=H().toggledListItem;d=_.f(d,_.KS)}else d=H().defaultListItem,d=_.f(d,_.KS);return d},
then:function(d){return _.F(_.xK,{data:d,isToggled:K,ariaLabel:function(){var B=K()?H().toggledListItem:H().defaultListItem,q;B=(q=_.f(B,_.KS))==null?void 0:q.rendererContext;var u;return(u=_.f(B,_.RB))==null?void 0:u.label},
ariaPressed:function(){return K()}})}}))},"se");var Cbd=_.XS("DOWNLOAD",{},"Download"),why=_.XS("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),dWl=_.XS("RETRY",{},"Retry"),hze=_.XS("PAUSE_DOWNLOADING",{},"Pause downloading"),Fm$=_.XS("RESUME_DOWNLOAD",{},"Resume download"),SPz={text:Cbd,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},CG={text:why,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},kJW={text:dWl,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
zTZ={text:hze,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},ncZ={text:Fm$,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var B8Z=_.Z(function(X){var H=function(){var d=X.data();d=_.qh(d.rendererContext);var B;return(B=_.f(d,_.Yj))==null?void 0:B.videoId},l=_.Aa(function(d){var B=H(),q=t$K(X.data());
return B?_.e0(d,B):q?_.yR(d,q):"TRANSFER_STATE_UNKNOWN"}),b=_.Aw(_.rWm,H),U=_.Aa(function(d){return _.O0y(d,H(),t$K(X.data()))}),K=function(){return D_y(l(),b(),_.qh(X.data().rendererContext),!!t$K(X.data()))},w=function(){return U()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.F("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:w},_.F(_.M,{cond:function(){return!w()},
then:function(){return _.F(_.M,{cond:K,then:function(d){return _.F(_.P$,{each:d},function(B){return _.F(_.xK,{data:B,isCompact:X.isCompact,isMenuItem:X.isMenuItem,inPopup:X.inPopup,disableHorizontalPadding:X.disableHorizontalPadding})})}})}}))},"te");
B8Z.idomCompat=!0;_.qye=_.Z(function(X){var H=X.data;var l=X.isCompact;var b=X.hideSelectionTextChevron;var U=X.inPopup;var K=X.isOverlay;var w=X.disableHorizontalPadding;var d=function(){return Wv8(H())&&(U==null?void 0:U())},B=_.P("web_list_view_model_listbox_killswitch")?"menu":"listbox";
X=_.Nq(function(u){if(U!=null&&U()&&_.P("web_enable_arrow_key_navigation_in_dropdown")){var e=_.KmL(u.currentTarget);if(e.length!==0){var y=Array.prototype.indexOf.call(e,document.activeElement);switch(u.key){case "ArrowDown":u.preventDefault();Ecz(e,y);break;case "ArrowUp":u.preventDefault();gcy(e,y);break;case "Tab":u.preventDefault(),u.shiftKey?gcy(e,y):Ecz(e,y)}}}});
var q={};return _.F("yt-list-view-model",{class:_.Qr("ytListViewModelHost",(q.ytListViewModelHostKaiosSpatNav=z5N&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",q)),role:function(){return d()?B:"list"},
style:_.rC({"max-height":function(){var u,e=(u=H())==null?void 0:u.visibleElementCount;if(e)return(e+.5)*40+"px"}}),
"on:keydown":X},_.F(_.l4,{data:function(){return H().listItems}},{listItemViewModel:function(u){return _.F(_.xK,{data:u.data,
isMenuItem:d,isCompact:l,hideSelectionTextChevron:b,inPopup:U,isOverlay:K,disableHorizontalPadding:w})},
toggleableListItemViewModel:function(u){return _.F(Rza,{data:u.data})},
downloadListItemViewModel:function(u){return _.F(B8Z,{data:u.data,isMenuItem:d,isCompact:l,inPopup:U,disableHorizontalPadding:w})},
switchListItemViewModel:function(u){return _.F(_.KmA,{data:u.data,disableHorizontalPadding:w})}}))},"ue");
_.qye.idomCompat=!0;var ska=_.Z(function(X){var H=X.data;var l=X.isOverlay;X={};return _.F("yt-course-perks-view-model",{class:_.Qr("ytwCoursePerksViewModelHost",(X.ytwCoursePerksViewModelHostOverlay=l,X))},_.F("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.F(_.Sj,{text:function(){return H().title}})),_.F("div",null,_.F(_.M,{cond:function(){return H().perks},
then:function(b){return _.F(_.qye,{data:function(){return{listItems:b()}},
isCompact:!0,isOverlay:l})}})))},"ve");_.gC(ska,"yt-course-perks-view-model",{props:{data:_.ta,isOverlay:_.ta}});_.gC(_.Z(function(X){var H=X.data;return _.F("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.F("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.F(_.Sj,{text:function(){return H().title}})),_.F("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.F(_.Sj,{text:function(){return H().progressSummary}})),_.F("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.F("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.rC({width:function(){return H().progressPercentage*100+"%"}})})))},"we"),"yt-course-progress-view-model",{props:{data:_.zh}});var Ml5=_.Z(function(X){var H={};return _.F("yt-progress-view-model",{class:_.Qr("ytwProgressViewModelHost",(H.ytwProgressViewModelHostOverlay=_.Eq(X.isOverlay,!1),H))},_.F(_.M,{cond:function(){return X.data().progressSummary},
then:function(l){return _.F("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.F(_.Sj,{text:l}))}}),_.F("div",{class:"ytwProgressViewModelHostProgressContainer"},_.F(_.M,{cond:function(){return X.data().leadingLabel},
then:function(l){return _.F("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.F(_.Sj,{text:l}))}}),_.F("div",{class:"ytwProgressViewModelHostProgressBar"},_.F("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(X.data().progressPercentage||0)*100+"%"}}))))},"xe");var t_=_.Z(function(X){var H=X.starNumber;var l=X.data;var b=function(){var U;return((U=l())==null?void 0:U.rating)||0};
return _.F(_.M,{cond:function(){return H()},
then:function(U){return _.F(_.ff,null,_.F(_.yO,{when:function(){return b()>=U()-.25}},function(){return _.F("div",{class:"ytStarRatingViewModelHostStar"},_.F(_.Ja,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.F(_.yO,{when:function(){return b()>=U()-.75}},function(){return _.F("div",{class:"ytStarRatingViewModelHostStar"},_.F(_.Ja,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.F(_.VO,null,function(){return _.F("div",{class:"ytStarRatingViewModelHostStar"},_.F(_.Ja,{icon:"STAR",
size:function(){return 24}}))}))}})},"ye"),uOU=_.Z(function(X){X=X.data;
return _.F("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.F(t_,{starNumber:1,data:X}),_.F(t_,{starNumber:2,data:X}),_.F(t_,{starNumber:3,data:X}),_.F(t_,{starNumber:4,data:X}),_.F(t_,{starNumber:5,data:X}))},"ze");_.gC(_.Z(function(X){var H=_.gT(X,{}).data;return _.F("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.F("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.F(_.Sj,{text:function(){var l;return(l=H())==null?void 0:l.title}})),_.F("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.F(_.M,{cond:function(){return H().starProgressViewModels},
then:function(l){return _.F("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.F(_.l4,{data:l},{progressViewModel:Ml5}))}}),_.F("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.F("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.F(_.Sj,{text:function(){var l;
return(l=H())==null?void 0:l.averageRatingLabel}})),_.F(_.M,{cond:function(){return H().zeroStateText},
then:function(l){return _.F("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.F(_.Sj,{text:l}))}}),_.F(_.M,{cond:function(){return H().starRatingViewModel},
then:function(l){return _.F("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.F(_.l4,{data:l},{starRatingViewModel:uOU}))}}),_.F("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.F(_.Sj,{text:function(){var l;
return(l=H())==null?void 0:l.totalRatingsCountLabel}})))))},"Ae"),"yt-course-ratings-view-model",{props:{data:_.ta}});var eza;eza={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"}};_.yyx=_.Z(function(X){var H=_.SJ("yt-learning-journey-loader-view-model"),l=_.Jw();_.xy(function(){requestAnimationFrame(function(){var U;(U=l.lottieEl)==null||U.addEventListener("DOMLoaded",function(){var K;(K=X.onLottieLoaded)==null||K.call(X)})});
var b=X.data().browseEndpoint;b&&_.yr(b)});
return _.F("yt-learning-journey-loader-view-model",{class:_.Qr("learningJourneyLoaderViewModelHost",X.className),"data-target-id":function(){return X.data().targetId||""},
el:H},_.F(_.Jx,{className:_.Qr("learningJourneyLoaderViewModelLoader",X.className),animationName:function(){return eza.animationConfig.name},
data:eza,animationRef:l}))},"Ce");_.gC(_.yyx,"yt-learning-journey-loader-view-model",{props:{data:_.zh,className:_.ta,onLottieLoaded:_.ta}});var Vly=_.Z(function(X){var H=function(){return X.data()},l=function(){return!!_.hG(_.wW(H())).optionColor},b=_.C(_.FU(-1,void 0,"gXOYR")),U=b.next().value,K=b.next().value,w=function(e){return U()===e},d=function(e){return H().correctAnswerIndex===e},B=function(){return U()!==-1};
b=_.C(_.FU("",void 0,"BFwDQb"));var q=b.next().value,u=b.next().value;return _.F("learning-journey-quiz-view-model",{class:_.Qr("learningQuizComponentHost","learningJourneyQuizYoututorHost",X.className),style:_.rC({background:function(){return _.hG(_.wW(H())).backgroundColor}})},_.F("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},q),_.F("div",{class:"learningQuizComponentQuizContainer"},_.F("div",{class:"learningQuizComponentQuiz"},_.F("div",{class:"learningQuizComponentQuizContent"},_.F(_.M,{cond:function(){return!!H().aiGeneratedQuizLabel},
then:function(){return _.F("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.F(_.Sj,{text:function(){return H().aiGeneratedQuizLabel}}))}}),_.F("div",{class:"learningQuizComponentQuizHeader",
style:_.rC({"align-items":function(){return H().overflowMenu?"start":"center"}})},_.F("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.rC({"min-height":function(){return H().overflowMenu?"48px":"26px"}})},_.F("div",{class:"learningJourneyQuizYoututorText",
style:_.rC({color:function(){return _.hG(_.wW(H())).primaryTextColor}})},_.F(_.Sj,{text:function(){return H().questionHeaderText}})))),_.F("div",{class:"learningQuizComponentQuizSubheader",
style:_.rC({color:function(){return _.hG(_.wW(H())).secondaryTextColor}})},_.F(_.Sj,{text:function(){var e=H();
return B()?e.explanationText:e.questionSubheaderText}}))),_.F("div",{role:"group",
class:_.Qr("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.F(_.P$,{each:function(){return H().optionsData||[]}},function(e,y){var V={};
return _.F("button",{class:_.Qr("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(V.learningQuizComponentQuizHover=function(){return!B()},V.learningQuizComponentQuizOptionWithCustomColor=l,V.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return B()&&d(y())},V.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return U()!==H().correctAnswerIndex&&w(y())},V.learningQuizComponentQuizIncorrectShake=
function(){return U()!==H().correctAnswerIndex&&w(y())},V)),
"on:click":_.Nq(function(){_.pl(_.lv(),{data:e});if(B())return!1;K(y());var p,z;u(d(y())?((p=H().successTitle)==null?void 0:p.content)||"":((z=H().failureTitle)==null?void 0:z.content)||"");return!1}),
style:_.rC({background:"transparent"}),"aria-description":function(){var p,z;return B()?d(y())?(p=H().successTitle)==null?void 0:p.content:(z=H().failureTitle)==null?void 0:z.content:""},
"aria-disabled":B},_.F("div",{class:"learningQuizComponentQuizOptionContainer"},_.F(_.Sj,{text:e.optionText}),_.F(_.M,{cond:function(){var p=y();return B()&&(w(p)||d(p))},
then:function(){var p={};return _.F(_.Ja,{className:_.Qr("learningJourneyQuizYoututorOptionIcon",(p.learningQuizComponentQuizPulse=function(){return U()===H().correctAnswerIndex&&d(y())},p)),
size:24,icon:function(){return d(y())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.F(_.M,{cond:B,
then:function(){return _.F("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.F("div",{class:"learningJourneyQuizYoututorExplanationText"},_.F(_.Sj,{text:function(){return H().explanationHeaderText}})),_.F(_.Sj,{text:function(){return H().optionsData[U()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"De");
Vly.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var im8=function(){},Pby;
(Pby=window.requestIdleCallback)==null||Pby.bind(window);var axZ=new Set,GJW=null;var fLl;_.phd=_.Z(function(X){var H=null,l=null,b=null,U=function(){return X.data()},K=function(){return _.hG(_.wW(U()))},w=function(){return!!K().optionColor},d=_.C(_.FU(-1,void 0,"H2gnQb")),B=d.next().value,q=d.next().value,u=function(Q){return B()===Q},e=function(Q){return U().correctAnswerIndex===Q},y=function(){return B()!==-1},V=function(){return B()===U().correctAnswerIndex},p=function(){var Q=U(),v=y(),J=V();
return v?J?Q.successTitle:Q.failureTitle:Q.questionHeaderText},z=function(){var Q=y(),v=V();
return Q?v?264685:264684:264683},t=function(){var Q=U();
return y()?Q.explanationText:Q.questionSubheaderText},W=function(){return!!U().video},G=function(Q){return V()&&e(Q)},r=_.Nq(function(){q(-1);
return!1});
return _.F(_.M,{cond:function(){return U().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.F(Vly,{data:function(){return U()}})},
else:function(){return _.F("learning-journey-quiz-view-model",{class:_.Qr("learningQuizComponentHost",X.className),style:_.rC({background:function(){return K().backgroundColor}})},_.F(_.M,{cond:W,
then:function(){return _.F("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.rC({background:function(){return K().videoBackgroundColor}})},_.F(_.l4,{data:function(){return U().video}},{lockupViewModel:function(Q){return _.F(_.Ak,{data:Q.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.F("div",{class:"learningQuizComponentQuizContainer"},_.F("div",{class:"learningQuizComponentQuiz"},_.F("div",{class:"learningQuizComponentQuizContent"},_.F(_.M,{cond:function(){return!!U().aiGeneratedQuizLabel},
then:function(){return _.F("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.F(_.Sj,{text:function(){return U().aiGeneratedQuizLabel}}))}}),_.F("div",{class:"learningQuizComponentQuizHeader",
style:_.rC({"align-items":function(){return U().overflowMenu?"start":"center"}})},_.F("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.rC({"min-height":function(){return U().overflowMenu?"48px":"26px"}})},_.F("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.xl(function(Q){_.Fc(z(),Q,H,function(v){H=v})}),
style:_.rC({color:function(){return K().primaryTextColor}}),
"client-ve-type":z},_.F(_.Sj,{text:p}))),_.F("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.F(_.M,{cond:y,then:function(){return _.F("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.xl(function(Q){_.Fc(264687,Q,l,function(v){l=v})}),
"on:click":r,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.F("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.rC({fill:function(){return K().primaryTextColor}})},_.F("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"})))}}),
_.F(_.l4,{data:function(){return U().overflowMenu}},{buttonViewModel:function(Q){return _.F(_.Qk,{data:Q.data})}}))),_.F("div",{class:"learningQuizComponentQuizSubheader",
el:_.xl(function(Q){_.Fc(264688,Q,b,function(v){b=v})}),
style:_.rC({color:function(){return K().secondaryTextColor}}),
"client-ve-type":264688},_.F(_.Sj,{text:t}))),_.F("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.F(_.P$,{each:function(){return U().optionsData||[]}},function(Q,v){var J={};
return _.F("button",{class:_.Qr("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(J.learningQuizComponentQuizHover=function(){return!y()},J.learningQuizComponentQuizOptionWithCustomColor=w,J.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return G(v())},J.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!V()&&u(v())},J.learningQuizComponentQuizIncorrectShake=function(){return!V()&&
u(v())},J.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return y()&&!u(v())},J)),
"on:click":_.Nq(function(){_.pl(_.lv(),{data:Q});if(y())return!1;q(v());return!1}),
style:_.rC({background:function(){var Y=v();return y()&&u(Y)?"":w()?K().optionColor:"transparent"}}),
"aria-disabled":y},_.F("div",{class:"learningQuizComponentQuizOptionContainer"},_.F(_.M,{cond:y,then:function(){return _.F(fLl,{isOptionCorrect:e,optionIndex:v,isOptionSelectedAndCorrect:G,colors:K})}}),_.F(_.Sj,{text:Q.optionText})))})))))}})},"Ee");
fLl=_.Z(function(X){var H={};return _.F("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var l=X.optionIndex();return X.isOptionCorrect(l)?"0 0 24 24":"0 -960 960 960"},
class:_.Qr("learningJourneyQuizViewModelQuizOptionIconLeading",(H.learningQuizComponentQuizPulse=function(){return X.isOptionSelectedAndCorrect(X.optionIndex())},H)),
style:_.rC({fill:function(){return X.colors().primaryTextColor}})},_.F("path",{d:function(){var l=X.optionIndex();
return X.isOptionCorrect(l)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))},"Fe");
_.phd.idomCompat=!0;_.gC(_.phd,"learning-journey-quiz-view-model",{props:{data:_.zh,className:_.zh}});var SyY=_.Z(function(X){var H=_.C((0,_.Dw)(function(){var w;return{targetId:(w=X.data().config)==null?void 0:w.suspenseKey,contents:[X.data()]}})).next().value,l=_.jJ().resolve(_.Vr),b=function(){var w=H().contents.length>0?H().contents[0]:void 0;
return w==null?void 0:w.config},U=function(){var w;
return(w=b())==null?void 0:w.entityTriggerConfig},K=_.Aw(ksW,function(){var w,d;
return(d=(w=U())==null?void 0:w.entityKey)!=null?d:""});
_.Wg(function(){var w,d,B,q=(B=Number((w=U())==null?void 0:(d=w.invalidationTimestamp)==null?void 0:d.seconds))!=null?B:0,u,e,y;if(((y=Number((u=K())==null?void 0:(e=u.lastUpdated)==null?void 0:e.seconds))!=null?y:0)>q){var V;(w=(V=b())==null?void 0:V.continuationCommand)&&l.resolveCommand(w)}},"tC8nKe");
return _.F("yt-suspense-view-model",{class:_.Qr("ytSuspenseViewModelHost")},_.F(_.l4,{data:function(){var w;return(w=b())==null?void 0:w.contents}},{lockupViewModel:_.Ak}))},"He");var zzN=_.Z(function(X){var H=_.gT(X,{palette:void 0,isLastItem:!1}),l=H.palette,b=H.isLastItem,U=function(){return X.data().isHighlighted},K=function(){var B;
return vcm((B=l())==null?void 0:B.iconDisabledColor)},w=function(){var B;
return vcm((B=l())==null?void 0:B.primaryTitleColor)},d=function(){var B;
return vcm((B=l())==null?void 0:B.secondaryTitleColor)};
H={};return _.F("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.xl(_.Mh(function(){return X.data().rendererContext}))},_.F(_.l4,{data:function(){return X.data().thumbnail}},{thumbnailViewModel:OV}),_.F("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.F("div",{class:_.Qr("ytMacroMarkerListItemViewModelTimeDescription",(H.ytMacroMarkerListItemViewModelHighlighted=U,H)),
style:_.rC({"background-color":function(){return U()?w():K()},
color:function(){return U()?"":d()}})},_.F(_.Sj,{text:function(){return X.data().timestamp}})),_.F("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.rC({"background-color":function(){return b()?"transparent":K()}})}),_.F("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(U()?w():d())}},_.F(_.Sj,{text:function(){return X.data().title}}))))},"Ie");_.W3=_.Z(function(X){function H(ZL){G("transform:translateX("+(_.gx("HTML_DIR")==="rtl"?"":"-")+ZL+"px)")}
function l(ZL){return Math.min(Math.max(ZL,0),W()-Y())}
function b(ZL){var uF=v()+FO();if(!U())return 0;ZL===void 0&&(ZL=Math.round(Y()/uF)||1);return ZL*uF}
var U=function(){return X.data().items||[]},K=function(){return X.data().previousButton},w=function(){return X.data().nextButton},d=function(){var ZL,uF;
return(uF=(ZL=X.disableArrows)==null?void 0:ZL.call(X))!=null?uF:!1},B=function(){var ZL;
return!((ZL=X.forceNarrowLayout)==null||!ZL.call(X))},q=_.uL(function(){var ZL;
return!((ZL=X.centerAlignItems)==null||!ZL.call(X))&&W()<=Y()},void 0,"iGOqxd"),u=_.SJ("horizontal-shelf-view-model"),e=_.SJ("div"),y=_.C(_.FU(0,void 0,"tieKmf")),V=y.next().value,p=y.next().value;
y=_.C(_.FU(0,void 0,"W2lvv"));var z=y.next().value,t=y.next().value,W=z;z=_.C(_.FU("",void 0,"PEePkc"));y=z.next().value;var G=z.next().value;z=_.C(_.FU(0,void 0,"c7a4W"));var r=z.next().value,Q=z.next().value,v=r;z=_.C(_.FU(0,void 0,"KGhRJf"));r=z.next().value;var J=z.next().value,Y=r;z=_.C(_.FU(!1,void 0,"fgWgyc"));var Uy=z.next().value,Cy=z.next().value;z=_.C(_.FU(0,void 0,"pe79rc"));r=z.next().value;var sy=z.next().value,FO=r;z=_.C(_.FU(0,void 0,"CTqisc"));var ub=z.next().value,g8=z.next().value;
z=_.C(_.FU(0,void 0,"S2Yf1b"));var mm=z.next().value,QZ=z.next().value;z=_.C(_.FU("50%",void 0,"kjP5ke"));var Bz=z.next().value,dt=z.next().value,TK=function(){var ZL,uF=(ZL=X.data())==null?void 0:ZL.responsiveContainerConfiguration,rt,xQ;return uF?pS(uF==null?void 0:uF.responsiveSize):(xQ=(rt=X.sizing)==null?void 0:rt.call(X))!=null?xQ:"STANDARD"},sG=function(){var ZL,uF=(ZL=X.data())==null?void 0:ZL.responsiveContainerConfiguration;
return uF?uF.enableContentSpecificAspectRatio===!1:!1};
z=_.uL(function(){return!d()&&V()>0},void 0,"jT8Bud");
r=_.uL(function(){return!d()&&V()<W()-Y()},void 0,"mt4gsb");
var f_=function(){u.value!==null&&nd()},Mv;
_.DR(function(){nd();window.ResizeObserver?(Mv=new ResizeObserver(_.qO(f_,0)),Mv.observe(u.value)):window.addEventListener("resize",f_)});
_.E2(function(){if(window.ResizeObserver){var ZL;(ZL=Mv)==null||ZL.disconnect()}else window.removeEventListener("resize",f_)});
var nd=function(){var ZL=u.value.clientWidth,uF=X.includeMargin!==void 0?X.includeMargin():!1,rt;var xQ=X.hasPeek!==void 0?X.hasPeek():!((rt=X.data())==null||!rt.hasPeek);ZL=_.fS({containerWidth:ZL,hasPeek:xQ,sizing:TK(),marginSettings:uF?B()?4:1:0});sy(ZL.gutter);g8(ZL.margin);Q(ZL.itemWidth);Cy(ZL.maxContainerWidth<528||B());J(ZL.maxContainerWidth);U()&&t((ZL.itemWidth+ZL.gutter)*U().length-ZL.gutter);if(U()){var AQ;if(((AQ=X.thumbnailAspectRatio)==null?void 0:AQ.call(X))!==void 0){var D3;dt(v()/
Ucy((D3=X.thumbnailAspectRatio)==null?void 0:D3.call(X))/2+"px")}else dt("50%")}},$U={},MW={};
return _.F("horizontal-shelf-view-model",{class:_.Qr("ytwHorizontalShelfViewModelHost",X.className),el:u},_.F(_.M,{cond:function(){var ZL;return X.data().header&&!((ZL=X.horizontalShelfExperiments)==null?0:ZL.call(X).hideHeader)},
then:function(){return _.F("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.rC({width:function(){return Y()+"px"},
padding:function(){return"0 "+ub()+"px"}})},_.F(_.l4,{data:function(){return X.data().header}},{sectionHeaderViewModel:function(ZL){return _.F(_.on,{data:ZL.data,
disableHorizontalPadding:!0,forceSmallLayout:Uy,useResponsiveLayout:!0})}}))}}),_.F("div",{class:_.Qr("ytwHorizontalShelfViewModelOuterContainer",($U.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return q()},$U)),
style:_.rC({"margin-top":function(){var ZL,uF=X.data().header&&!((ZL=X.horizontalShelfExperiments)==null?0:ZL.call(X).hideHeader),rt;return(((rt=X.ensureMarginTop)==null?0:rt.call(X))&&!uF?12:0)+"px"}})},_.F("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.rC({width:function(){return Y()+"px"},
padding:function(){return"0 "+ub()+"px"},
overflow:function(){return d()?"auto":"hidden"}})},_.F("div",{class:_.Qr("ytwHorizontalShelfViewModelItems",(MW.ytwHorizontalShelfViewModelCenterAlignItems=function(){return q()},MW)),
el:e,style:y},_.F(_.l4,{data:U},{macroMarkerListItemViewModel:function(ZL,uF){return _.F("div",{style:_.rC({width:function(){return v()+"px"},
"margin-right":function(){return(uF()===U().length-1?0:FO())+"px"}})},_.F(zzN,{data:ZL.data,
palette:_.Eq(X.palette),isLastItem:function(){return uF()===U().length-1}}))},
lockupViewModel:function(ZL,uF){var rt=ZL.data;return _.F("div",{"on:focusin":_.Nq(function(){var xQ=uF();xQ!==mm()&&(xQ<mm()?p(l(V()-b(1))):p(l(V()+b(1))),H(V()),QZ(xQ));return!0}),
style:_.rC({width:function(){return v()+"px"},
"margin-right":function(){return(uF()===U().length-1?0:FO())+"px"}})},_.F(_.Ak,{data:rt,
containerType:4,sizing:TK,protectBackground:X.protectBackground,thumbnailFixedWidth:function(){return OmN(rt())+"px"},
thumbnailTargetWidth:function(){return OmN(rt())},
force16By9ThumbnailAspectRatio:sG}))},
suspenseViewModel:function(ZL,uF){return _.F("div",{style:_.rC({width:function(){return v()+"px"},
"margin-right":function(){return(uF()===U().length-1?0:FO())+"px"}})},_.F(SyY,{data:ZL.data}))}}))),_.F(_.M,{cond:z,
then:function(){return _.F("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.rC({top:function(){return Bz()}})},_.F(_.l4,{data:K},{buttonViewModel:function(ZL){return _.F(_.Qk,{data:ZL.data,
onClick:function(){p(l(V()-b(void 0)));H(V())}})}}))}}),_.F(_.M,{cond:r,
then:function(){return _.F("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.rC({top:function(){return Bz()}})},_.F(_.l4,{data:w},{buttonViewModel:function(ZL){return _.F(_.Qk,{data:ZL.data,
onClick:function(){p(l(V()+b(void 0)));H(V())}})}}))}})))},"Je");
_.W3.idomCompat=!0;var nNU=_.Z(function(X){var H=function(){return X.data().targetId||""},l=function(){var z;
return((z=X.data())==null?void 0:z.expansionEntityKey)||""},b=_.Aw(_.naZ,l),U=!0,K=function(){var z;
return((z=b())==null?void 0:z.value)===H()},w=function(z){_.Wc(_.Us("stringEntity",l(),{key:l(),
value:z?H():""}))};
_.xy(function(){U=!1;X.data().isExpanded&&w(!0)});
var d=function(){if(K()){var z=!0;X.onCollapse!==void 0&&(z=X.onCollapse());z&&w(!1)}else w(!0)},B=_.Nq(d),q=function(){var z;
return(((z=X.accordionStyle)==null?void 0:z.call(X))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},u=_.SJ("div"),e=function(){var z,t;
return(t=(z=_.f(X.data().rendererContext,_.RB))==null?void 0:z.label)!=null?t:""},y=function(){var z,t;
return{disabled:(z=X.hideIfNotExpanded)==null?void 0:z.call(X),ariaHidden:(t=X.hideIfNotExpanded)==null?void 0:t.call(X)}},V={},p={};
return _.F("yt-accordion-item-view-model",{class:_.Qr("ytAccordionItemViewModelHost",X.className,(V.ytAccordionItemViewModelExpanded=function(){return K()},V.ytAccordionItemViewModelHidden=function(){var z;
return(z=X.hideIfNotExpanded)==null?void 0:z.call(X)},V.ytAccordionItemViewModelMini=q,V)),
"data-target-id":H},_.F("div",{class:"ytAccordionItemViewModelContainer"},_.F("div",{class:"ytAccordionItemViewModelLeftSection","on:click":B,title:e,"aria-hidden":function(){var z;return(z=X.hideIfNotExpanded)==null?void 0:z.call(X)}},_.F(_.Sj,{text:function(){return X.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:e})),_.F("div",{class:"ytAccordionItemViewModelRightSection"},_.F(_.l4,{data:function(){return K()?X.data().expandButton:X.data().collapseButton}},{buttonViewModel:function(z){return _.F(_.Qk,{data:z.data,
className:"ytAccordionItemViewModelToggleButton",onClick:d,buttonOverrides:y})}}))),_.F("div",{class:"ytAccordionItemViewModelContainer"},_.F("div",{class:_.Qr("ytAccordionItemViewModelContent",(p.ytAccordionItemViewModelExpandedSubtitle=function(){return K()},p)),
el:u,style:_.rC({"max-height":function(){return U?"auto":K()?u.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!K()}},_.F(_.M,{cond:function(){return!q()},
then:function(){return _.F(_.Sj,{text:function(){return X.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.F(_.l4,{data:function(){return X.data().content}},{horizontalShelfViewModel:function(z){return _.F(_.W3,{data:z.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Le");_.kKx=_.Z(function(X){var H=_.C((0,_.Dw)(X.data)).next().value,l=function(){return X.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},b=function(){return l()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},U=_.C(_.FU(!0,void 0,"VFpYAb")),K=U.next().value,w=U.next().value,d=function(){return b()&&K()},B=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){w(!K())}}},q=_.Nq(function(){H().onTitleTap&&_.yr(H().onTitleTap||{})});
U={};return _.F("yt-accordion-view-model",{class:_.Qr("ytAccordionViewModelHost",(U.ytAccordionViewModelMinimized=function(){return d()},U)),
"data-target-id":function(){return X.data().targetId||""}},_.F(_.M,{cond:function(){return b()||!!H().title},
then:function(){return _.F("div",{class:"ytAccordionViewModelHeader"},_.F("div",{class:"ytAccordionViewModelTitleSection"},_.F("div",{class:"ytAccordionViewModelTitleWrapper"},_.F(_.M,{cond:function(){return!!X.data().headerIcon},
then:function(){return _.F(_.Ja,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var u;return(u=X.data().headerIcon)==null?void 0:u.iconType}})}}),_.F("div",{class:"ytAccordionViewModelTitle",
"on:click":q},_.F(_.Sj,{className:"ytAccordionViewModelTitleText",text:function(){return H().title}})))),_.F("div",{class:"ytAccordionViewModelButtonSection"},_.F(_.M,{cond:b,
then:function(){return _.F(_.ms,{data:B,iconName:function(){return d()?"chevron_down":"chevron_collapse"}})}})))}}),_.F("div",{class:"ytAccordionViewModelContent"},_.F(_.l4,{data:function(){return H().contents}},{accordionItemViewModel:function(u){return _.F(nNU,{data:u.data,
className:"ytAccordionViewModelRow",accordionStyle:l,hideIfNotExpanded:d,onCollapse:function(){return b()?(w(!0),!1):!0}})}})),_.F("div",null,_.F(_.M,{cond:function(){return!b()&&(!!H().disclaimerFooter||!!H().footer)},
then:function(){return _.F("div",{class:"ytAccordionViewModelFooter"},_.F(_.Sj,{text:function(){return H().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.F(_.l4,{data:function(){return X.data().footer}},{flexibleActionsViewModel:function(u){return _.F(_.u2,{data:u.data,
layout:0})}}))}})))},"Me");_.gC(_.kKx,"yt-accordion-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=null,l=null,b,U=(b=_.jJ().resolve(_.c$(_.b4)))==null?void 0:b(),K=_.C(_.FU(!1,void 0,"CmEVtc"));b=K.next().value;var w=K.next().value;K=_.C(_.FU(!0,void 0,"yo9dR"));var d=K.next().value,B=K.next().value,q=_.SJ("textarea",function(t){_.Fc(264503,t,H,function(W){H=W})}),u=function(t){w(!0);
t={learningJourneyFormData:{query:t}};_.yr(X.data().searchEndpoint||{},{form:{formData:t}});return!1},e=_.Nq(function(t){t.target.closest("button-view-model")&&w(!0)});
K=_.Nq(function(){B(q.value.value.length===0)});
var y=_.Nq(function(t){if(t.key==="Enter"&&!t.shiftKey&&!d()){var W=t.target;t.preventDefault();u(W.value)}}),V={},p={},z={};
return _.F("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.F("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.F(_.Dp,{data:function(){return X.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.F("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.F("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.F("div",{class:_.Qr("ytLearningJourneyZeroStateSearchBar",(V.ytLearningJourneyZeroStateSearchBarDark=U,V))},_.F("textarea",{class:_.Qr("ytLearningJourneyZeroStateTextInput",(p.ytLearningJourneyZeroStateTextInputDark=U,p)),el:q,"on:keyup":K,"on:keydown":y,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.F("div",{class:_.Qr("ytLearningJourneyZeroStateSearchButtonContainer",(z.ytLearningJourneyZeroStateSearchButtonContainerDark=U,z))},_.F(_.Qk,{data:function(){return _.f(X.data().searchButton,_.fk)},
className:"search-button",onClick:function(){return u(q.value.value)},
buttonOverrides:function(){return{disabled:d(),style:U?"mono-inverse":"mono",size:"XL"}}}))),_.F(_.M,{cond:function(){return!!X.data().errorBanner},
then:function(){return _.F("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.xl(function(t){_.Fc(264617,t,l,function(W){l=W})})},_.F(_.l4,{data:function(){return X.data().errorBanner}},{alertBannerViewModel:function(t){return _.F(_.LOq,{data:t.data,
"client-ve-type":264617})}}))}})),_.F(_.M,{cond:b,
then:function(){return _.F("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.F(_.l4,{data:function(){return X.data().loader}},{learningJourneyLoaderViewModel:function(t){return _.F(_.yyx,{data:t.data})}}))},
else:function(){return _.F("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.F(_.M,{cond:function(){return!!X.data().learningJourneyShelf},
then:function(){return _.F("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.F("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return X.data().learningJourneySectionTitle}),_.F(_.l4,{data:function(){return X.data().learningJourneyShelf}},{horizontalShelfViewModel:function(t){return _.F(_.W3,{data:t.data,
centerAlignItems:!0})}}))}}),_.F("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.F("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return X.data().suggestedJourneySectionTitle}),_.F("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":e},_.F(_.l4,{data:function(){return X.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(t){return _.F(_.u2,{data:t.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Ne"),"yt-learning-journey-zero-state",{props:{data:_.zh}});var xWZ=_.Z(function(X){var H=X.data;return _.F("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Qr("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.F(_.Sj,{text:function(){var l;return(l=H())==null?void 0:l.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.F(_.l4,{data:function(){return H().actionButton}},{buttonViewModel:function(l){return _.F(_.Qk,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:l.data})}}))},"Oe");var DWZ=_.Z(function(X){var H=X.data;return _.F("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Qr("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.F(_.Sj,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var l;return(l=H())==null?void 0:l.displayName},
ellipsisTruncate:!0}),_.F(_.l4,{data:function(){return H().badge}},{buttonViewModel:function(l){return _.F(_.Qk,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:l.data})}}))},"Pe");_.gC(_.Z(function(X){var H=X.data;return _.F("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.F("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.F(_.Sj,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var l;return(l=H())==null?void 0:l.rank}})),_.F("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.F(_.l4,{data:function(){return H().avatar}},{avatarViewModel:_.MX})),_.F("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.F(_.l4,{data:function(){return H().content}},{liveLeaderboardItemChannelContentViewModel:DWZ,
liveLeaderboardItemActionContentViewModel:xWZ})),_.F(_.Sj,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var l;return(l=H())==null?void 0:l.points}}))},"Qe"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;return _.F("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.F(_.Sj,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var l,b;return(l=H())==null?void 0:(b=l.ranking)==null?void 0:b.rank}}),_.F("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.F(_.l4,{data:function(){return H().avatar}},{avatarViewModel:_.MX})),_.F(_.Sj,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var l,b;return(l=H())==null?void 0:(b=l.channelContent)==null?void 0:b.channelName}}),_.F(_.Sj,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var l;return(l=H())==null?void 0:l.points}}))},"Re"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.zh}});var tlA=_.Z(function(X){X=_.gT(X,{wrapper:!1}).wrapper;return _.F(_.M,{cond:X,then:function(){return _.F("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.F("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.F("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Se");
tlA.idomCompat=!0;var Wm$=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],ENx=_.Z(function(X){var H=X.data;var l=_.xl(),b=_.uL(function(){return H().command},void 0,"fyYsT");
_.Wg(function(){b()&&_.Mq(b(),{form:{element:l.value}})},"B0nxdb");
return _.F("div",{el:l,class:"YtQrCodeRendererHostContainer"},_.F(_.M,{cond:function(){return H().qrCodeImage},
then:function(U){return _.F(_.Dp,{data:U,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.F(_.M,{cond:function(){return H().spinner},
then:function(){return _.F(tlA,null)}})}}),_.F(_.M,{cond:function(){return H().label},
then:function(U){return _.F(_.Sj,{text:U,className:"YtQrCodeRendererHostLabel"})}}),_.F(_.M,{cond:function(){return H().labels},
then:function(U){return _.F("div",{class:"YtQrCodeRendererHostLabels"},_.F(_.P$,{each:U},function(K){return _.F(_.Sj,{text:K})}))}}))},"Ve");_.gC(_.Z(function(X){var H=X.data;var l=_.uL(function(){return H().qrEntityKey},void 0,"LmZ2xf"),b=_.uL(function(){return H().deleteEntityOnDismiss},void 0,"my0Tzb"),U=_.uL(function(){return H().command},void 0,"hzECIb"),K=_.Aw(Qxz,l);
X=_.uL(function(){return H().qrCodeImage},void 0,"AnD9rc");
var w=_.uL(function(){return H().style&&Wm$.includes(H().style)},void 0,"f5fZv"),d=_.jh({visibilityCallback:function(B){B&&U()&&_.Mq(U())},
showOption:{calledOnce:!0,state:"visible"}});_.DR(function(){_.E2(function(){b()&&l()&&_.tF().dispatch(_.Us("qrCodeEntity",l()))})});
return _.F("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.xl(d)},_.F(_.M,{cond:w,then:function(){return _.F(_.M,{cond:K,then:function(B){return _.F(ENx,{data:B})}})}}),_.F(_.M,{cond:X,
then:function(B){return _.F(_.Dp,{data:B,alt:""})}}))},"Te"),"yt-qr-code-renderer",{props:{data:_.zh}});var GKd=_.Z(function(X){var H=function(){return _.qw(1728053247&(X.barColor!==void 0?Hx(X.barColor()):4278190080))};
return _.F("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.F("div",{class:"ytVideoOverviewGhostCardDetails"},_.F(gNY,{animationDelay:0,percentWidth:100,barColor:function(){return H()}}),_.F(gNY,{animationDelay:600,
percentWidth:60,barColor:function(){return H()}})))},"We"),gNY=_.Z(function(X){return _.F("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+X.percentWidth()+"%"}},_.F("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var H=X.animationDelay(),l=X.barColor();return"animation-delay:"+H+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+l+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Xe");var aL$,Zy$;aL$=_.ze.inlinePreviewEnabledSelector;_.iyZ=_.Z(function(X){function H(W){w(W)}
var l=X.data;var b=_.z7("yt-video-overview-view-model"),U=_.xl();X=_.C(_.FU(-1,void 0,"kc60qe"));var K=X.next().value,w=X.next().value;X=_.C(_.FU(0,void 0,"YSTbVe"));var d=X.next().value,B=X.next().value,q={},u=_.Aw(m_y,function(){return l().asyncDataEntityKey}),e=_.Aa(aL$);
X=_.jJ().resolve(_.c$(c7t));var y=function(){var W;if((W=u())==null?0:W.videoOverviewViewModel){var G;return _.f((G=u())==null?void 0:G.videoOverviewViewModel,l$q)}return l()};
X&&b&&X({enabled:function(){return e()},
itemPlaybackModel:function(){var W;return(W=y())==null?void 0:W.itemPlayback},
thumbnailElRef:function(){return q.thumbnailElRef},
containerElRef:b,options:function(){return{thumbnail:q.thumbnail,thumbnailOverlays:q.thumbnailOverlays||[],thumbnailSize:q.thumbnailSize,mouseleaveCallback:function(){}}}});
_.DR(function(){var W,G=b==null?void 0:(W=b.value)==null?void 0:W.clientWidth;G&&B(Math.min((G-24)/4-8,72))});
var V=function(){var W;return((W=y())==null?void 0:W.headerSubtext)!==void 0?!0:!1},p=function(){var W,G=Hx((W=y())==null?void 0:W.titleColor);
return G?"color: "+_.qw(G)+";":void 0},z=function(){var W,G=Hx((W=y())==null?void 0:W.subtextColor);
return G?"color: "+_.qw(G)+";":void 0},t=function(){return _.F("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.F("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return p()}},_.F(_.Sj,{text:function(){var W;
return(W=y())==null?void 0:W.headerText}})),_.F(_.M,{cond:V,
then:function(){return _.F("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.F("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return z()}},_.F(_.Ja,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.F("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return z()}},_.F(_.Sj,{text:function(){var W;
return(W=y())==null?void 0:W.headerSubtext}})))}}))};
X={};return _.F("yt-video-overview-view-model",{class:_.Qr("ytGenAiVideoOverviewViewModelHost",(X.ytGenAiVideoOverviewViewModelMweb=!1,X.ytGenAiVideoOverviewViewModelDesktop=!0,X)),el:b,style:function(){var W,G=Hx((W=y())==null?void 0:W.backgroundColor);return G?"background-color: "+_.qw(G)+";":void 0}},_.F(_.M,{cond:function(){var W;
return(W=y())==null?void 0:W.isLoading},
then:function(){return _.F(GKd,{barColor:function(){var W;return(W=y())==null?void 0:W.titleColor}})},
else:function(){return _.F(_.Xi,null,null,_.F("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.F(_.l4,{data:function(){var W;return(W=y())==null?void 0:W.thumbnail}},{thumbnailViewModel:function(W){return _.F(OV,{data:W.data,
aspectRatio:0,playbackRef:mEy(q),width:9999})}})),_.F("div",{class:"ytGenAiVideoOverviewViewModelDetails"},t(),_.F(_.M,{cond:function(){var W,G,r,Q;
return((W=y())==null?void 0:(G=W.listItems)==null?void 0:G.length)!==void 0&&((r=y())==null?void 0:(Q=r.listItems)==null?void 0:Q.length)>0?!0:!1},
then:function(){return _.F("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:U},_.F(_.P$,{each:function(){var W;return(W=y())==null?void 0:W.listItems}},function(W,G){return _.F(Zy$,{image:W.image,
index:G,isSelected:function(){return G()===K()},
onClick:H,itemWidth:d})}))}}),_.F("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.F("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return p()}},_.F(_.Sj,{text:function(){var W,G,r,Q,v,J,Y;
return(Y=(W=y())==null?void 0:(G=W.listItems)==null?void 0:(r=G[K()])==null?void 0:r.headline)!=null?Y:(Q=y())==null?void 0:(v=Q.listItems)==null?void 0:(J=v[0])==null?void 0:J.headline}})),_.F("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return z()}},_.F(_.Sj,{text:function(){var W,G,r,Q,v,J,Y;
return(Y=(W=y())==null?void 0:(G=W.listItems)==null?void 0:(r=G[K()])==null?void 0:r.subtext)!=null?Y:(Q=y())==null?void 0:(v=Q.listItems)==null?void 0:(J=v[0])==null?void 0:J.subtext}})))))}}))},"Ye");
Zy$=_.Z(function(X){var H=X.image;var l=X.itemWidth;var b=X.index;var U=X.isSelected;var K=X.onClick;X=_.Nq(function(){b!==void 0&&K!==void 0&&K(b());return!1});
var w={};return _.F("div",{class:_.Qr("ytGenAiVideoOverviewViewModelCarouselItem",(w.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return U==null?void 0:U()},w)),
style:function(){return"width: "+l()+"px;"},
"on:click":X},_.F(_.Dp,{data:H,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.F(_.M,{cond:function(){return U==null?void 0:U()},
then:function(){return _.F("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.F("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ze");
_.iyZ.idomCompat=!0;_.gC(_.iyZ,"yt-video-overview-view-model",{props:{data:_.zh}});_.vNd=_.Z(function(X){var H=X.data;var l=X.topbarOffset;var b,U=((b=_.jJ().resolve(_.c$(_.b4)))==null?void 0:b())||!1;return _.F("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var K=H();var w,d,B=U?(w=K.config)==null?void 0:w.darkThemeBackgroundColor:(d=K.config)==null?void 0:d.lightThemeBackgroundColor;K=B?_.BM(B):void 0;K="background-color: "+K+";";l!==void 0&&(K+="top: -"+l()+"px;");return K},
"aria-hidden":!0},_.F(_.M,{cond:function(){var K,w,d;return!!((K=H().backgroundImageConfig)==null?0:(w=K.image)==null?0:(d=w.sources)==null?0:d.length)},
then:function(){return _.F(_.Dp,{data:function(){var K;return(K=H().backgroundImageConfig)==null?void 0:K.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.F("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+QQy(U,H().gradientColorConfig)+";"}}))},"$e");
_.vNd.idomCompat=!0;var Oyp=_.Z(function(X){var H=X.data;var l=X.isOverlay;return _.F("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.F("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.F(_.l4,{data:function(){return H().header}},{sectionHeaderViewModel:function(b){return _.F(_.on,{data:b.data,
isOverlay:l})}})),_.F("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.F(_.l4,{data:function(){return H().channelInfoButtons}},{flexibleActionsViewModel:_.u2})),_.F("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.F(_.l4,{data:function(){return H().description}},{descriptionPreviewViewModel:function(b){return _.F(_.ls,{data:b.data,
isOverlay:l})}})))},"af");
Oyp.idomCompat=!0;var mWe=_.Z(function(X){var H=X.data;var l={};return _.F("factoid-view-model",{class:_.Qr("ytwFactoidViewModelHost",(l.ytwFactoidViewModelHostOverlay=X.isOverlay,l))},_.F(_.Sj,{text:function(){return H().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.F(_.Sj,{text:function(){return H().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bf");
mWe.idomCompat=!0;var QkZ=_.Z(function(X){var H=X.data;var l=X.isOverlay;return _.F("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.F(_.l4,{data:function(){return H().factoids}},{factoidViewModel:function(b){return _.F(mWe,{data:b.data,
isOverlay:l})}}))},"cf");
QkZ.idomCompat=!0;_.T85=_.Z(function(X){var H=X.data;var l=X.isOverlay;return _.F("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.F(_.l4,{data:function(){return H().items}},{channelInfoViewModel:function(b){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(Oyp,{data:b.data,
isOverlay:l}))},
coursePerksViewModel:function(b){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(ska,{data:b.data,isOverlay:l}))},
descriptionPreviewViewModel:function(b){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(_.ls,{data:b.data,isOverlay:l}))},
factoidsRowViewModel:function(b){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(QkZ,{data:b.data,isOverlay:l}))},
progressViewModel:function(b){return _.F("div",{class:"ytwCourseMetadataViewModelHostItem"},_.F(Ml5,{data:b.data,isOverlay:l}))}}))},"df");var N8p=_.Z(function(X){return _.F("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.F(_.l4,{data:function(){return X.data().content}},{courseMetadataViewModel:function(H){return _.F(_.T85,{data:H.data,
isOverlay:X.isOverlay})},
progressViewModel:function(H){return _.F(Ml5,{data:H.data})}}))},"ef");var cyp=_.Z(function(X){var H=X.data;X=X.className;var l=function(){var U;return _.ss((U=H())==null?void 0:U.rendererContext)},b={};
b=(b.dynamicTextViewModelHost=!0,b.dynamicTextViewModelHostTappable=function(){return l()},b);
return _.F("yt-dynamic-text-view-model",{el:_.xl(_.Mh(function(){var U;return(U=H())==null?void 0:U.rendererContext})),
role:function(){return l()?"link":void 0},
tabindex:function(){return l()?0:void 0},
class:_.Qr(X,b)},_.F("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var U,K,w;return(w=(K=_.f((U=H())==null?void 0:U.rendererContext,_.RB))==null?void 0:K.label)!=null?w:""}},_.F(_.Sj,{text:function(){return H().text},
userInput:!0})))},"ff");
cyp.idomCompat=!0;_.EY=_.Z(function(X){var H=X.data;var l=X.isPositionRelative;var b=_.N0m("(max-width: 527.9px)"),U=function(){var K,w;return(w=(K=H())==null?void 0:K.style)!=null?w:"IMAGE_BANNER_STYLE_FULL_BLEED"};
X={};return _.F("yt-image-banner-view-model",{el:_.xl(_.Mh(function(){var K;return(K=H())==null?void 0:K.rendererContext})),
class:_.Qr((X.ytImageBannerViewModelHost=!0,X.ytImageBannerViewModelInset=function(){return cAl(U())},X.ytImageBannerViewModelPositionAbsolute=function(){return _.a5(!0)&&!(l==null?0:l())},X.ytImageBannerViewModelSmallInset=function(){return cAl(U())&&b()},X.ytImageBannerViewModelTappable=function(){var K;
return _.ss((K=H())==null?void 0:K.rendererContext)},X))},_.F(_.M,{cond:function(){var K;
return(K=H())==null?void 0:K.image},
then:function(){return _.F(_.Dp,{data:function(){return H().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.F(_.l4,{data:function(){var K;
return(K=H())==null?void 0:K.overlays}},{thumbnailHoverOverlayViewModel:sV}))},"gf");
_.EY.idomCompat=!0;var jk5;jk5=_.Z(function(X){var H=X.condition;var l=X.content;return _.F(_.M,{cond:H,then:function(){return _.F("div",{class:"yt-page-header-view-model__scroll-container"},l())},
else:function(){return l()}})},"hf");
_.ryC=_.Z(function(X){var H=X.data;var l=X.noPadding;var b=X.enableBanner;var U=X.cinematicContainerTopbarOffset;var K=X.allowCinematicContainerOverflow;var w=X.displayAsSidebar;var d=X.displayAsPanel;var B=X.alwaysUseMediumTextDescription;var q=jQK(),u=function(){return!!H().image||!!H().animatedImage},e=function(){return!!H().background},y=function(){return(w==null?0:w())||(d==null?0:d())?1:q()},V=function(){return y()===1},p=function(){return V()||y()===2},z=function(){return y()===4},t=function(){var ub=
H();
var g8=!!H().heroImage;var mm=y(),QZ=rAK(H()),Bz=w==null?void 0:w(),dt=!ub.metadata,TK;if(TK=g8?_.f(ub.heroImage,T2t):_.f(ub.animatedImage||ub.image,T2t)){ub=TK.style;var sG=TK.layoutMode;if(sG!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(TK=qDm(B_k(TK)),g8)g8=T0l(mm,ub,sG,TK,Bz);else b:if(dt)g8=mm===1?{size:48}:{size:72};else switch(mm){case 1:g8={size:72};break b;case 2:g8={size:120};break b;default:g8=QZ<4?{size:120}:{size:160}}else g8=void 0}else g8={size:0};return g8};
X={};X=_.Qr((X["yt-page-header-view-model"]=!0,X["yt-page-header-view-model--no-padding"]=function(){return!(l==null||!l())},X["yt-page-header-view-model--small-top-padding"]=function(){return V()&&!H().actions&&!(d==null?0:d())||y()===2&&!(u()||H().heroImage)},X["yt-page-header-view-model--small-bottom-padding"]=function(){return p()&&!H().actions&&!(d==null?0:d())},X["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(K==null?0:K())},X["yt-page-header-view-model--display-as-sidebar"]=
w,X));
var W={},G=_.Qr((W["yt-page-header-view-model__page-header-headline"]=!0,W["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var ub;return(ub=t())==null?void 0:ub.allowFullWidth},W)),r=function(){var ub;
return p()&&!((ub=t())==null?0:ub.allowFullWidth)},Q=function(){return V()&&(!!H().heroImage||u())&&rAK(H())>0},v=function(){return Q()&&(d==null?void 0:d())};
W={};var J=_.Qr((W["yt-page-header-view-model__page-header-title"]=!0,W["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!Q()},W["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return Q()&&!v()},W["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=v,W["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=e,W));
W={};var Y=_.Qr((W["yt-page-header-view-model__page-header-headline-image"]=!0,W["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!H().heroImage&&p()},W));
W={};var Uy=_.Qr((W["yt-page-header-view-model__page-header-banner-container"]=b,W["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var ub;return(b==null?void 0:b())&&((ub=_.f(H().banner,_.cW9))==null?void 0:ub.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},W));
W={};var Cy=_.Qr((W["yt-page-header-view-model__page-header-content-metadata"]=!0,W["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=e,W));W={};var sy=_.Qr((W["yt-page-header-view-model__page-header-flexible-actions"]=!0,W["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!H().metadata||p()},W["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!p()},W));
W={};var FO=_.Qr((W["yt-page-header-view-model__page-header-attribution"]=!0,W["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=e,W));return _.F("yt-page-header-view-model",{class:X},_.F(_.M,{cond:e,then:function(){return _.F("div",{class:"yt-page-header-view-model__page-header-background"},_.F(_.l4,{data:function(){return H().background}},{cinematicContainerViewModel:function(ub){return _.F(_.vNd,{data:ub.data,
topbarOffset:U})}}))}}),_.F(jk5,{condition:function(){return!(w==null||!w())},
content:function(){return _.F("div",{class:"yt-page-header-view-model__page-header-content"},_.F(_.M,{cond:function(){return(b==null?void 0:b())&&H().banner},
then:function(){return _.F("div",{class:Uy},_.F(_.l4,{data:function(){return H().banner}},{imageBannerViewModel:_.EY}))}}),_.F("div",{class:G},_.F(_.M,{cond:u,
then:function(){return _.F(_.l4,{data:function(){var ub;if(!(ub=H().animatedImage)){ub=H();if(u()){var g8=ub=Object.assign({},ub),mm=y(),QZ=rAK(H()),Bz=g8.image,dt=_.f(Bz,N2D),TK=dt==null?void 0:dt.avatar,sG=_.f(TK,_.eu);if(Bz&&TK&&sG){switch(mm){case 1:sG.avatarImageSize="AVATAR_SIZE_XL";break;case 2:sG.avatarImageSize="AVATAR_SIZE_XXL";break;default:QZ<4?sG.avatarImageSize="AVATAR_SIZE_XXL":sG.avatarImageSize="AVATAR_SIZE_XXXL"}_.dC(TK,_.eu,Object.assign({},sG));dt.avatar=Object.assign({},TK);_.dC(Bz,
N2D,Object.assign({},dt));g8.image=Object.assign({},Bz)}}ub=ub.image}return ub}},{contentPreviewImageViewModel:function(ub){return _.F(_.cU,{data:ub.data,
className:Y,imageSizeConfig:t})},
decoratedAvatarViewModel:function(ub){return _.F(_.uu,{data:ub.data,className:Y})}})}}),_.F(_.M,{cond:function(){return!!H().heroImage&&!r()},
then:function(){return _.F(_.l4,{data:function(){return H().heroImage}},{contentPreviewImageViewModel:function(ub){return _.F(_.cU,{data:ub.data,
className:Y,imageSizeConfig:t})}})}}),_.F("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.F(_.M,{cond:function(){return!!H().heroImage&&r()},
then:function(){return _.F("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.F(_.l4,{data:function(){return H().heroImage}},{contentPreviewImageViewModel:function(ub){return _.F(_.cU,{data:ub.data,
className:Y,imageSizeConfig:t})}}))}}),_.F(_.l4,{data:function(){return H().title}},{dynamicTextViewModel:function(ub){return _.F(cyp,{data:ub.data,
className:J})}}),_.F(_.l4,{data:function(){return H().metadata}},{contentMetadataViewModel:function(ub){return _.F(_.rF,{data:ub.data,
layout:function(){return V()?1:0},
className:Cy,isOverlay:e,useMediumText:z})}}),_.F(_.M,{cond:function(){return H().description&&!V()},
then:function(){return _.F(_.l4,{data:function(){return H().description}},{descriptionPreviewViewModel:function(ub){return _.F(_.ls,{data:ub.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:e,maxLinesOverride:function(){return V()?void 0:1},
useMediumText:function(){return(B==null?void 0:B())||z()}})}})}}),_.F(_.M,{cond:function(){return H().attribution&&!p()},
then:function(){return _.F(_.l4,{data:function(){return H().attribution}},{attributionViewModel:function(ub){return _.F(jD,{data:ub.data,
className:FO,useMediumText:z})}})}}),_.F(_.M,{cond:function(){return H().actions&&!p()},
then:function(){return _.F(_.l4,{data:function(){return H().actions}},{flexibleActionsViewModel:function(ub){return _.F(_.u2,{data:ub.data,
layout:function(){return JAy(y())},
className:sy})}})}}))),_.F("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.F(_.M,{cond:function(){return H().description&&V()},
then:function(){return _.F(_.l4,{data:function(){return H().description}},{descriptionPreviewViewModel:function(ub){return _.F(_.ls,{data:ub.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:e,maxLinesOverride:function(){return V()?void 0:1},
useMediumText:function(){return(B==null?void 0:B())||z()}})}})}}),_.F(_.M,{cond:function(){return H().attribution&&p()},
then:function(){return _.F(_.l4,{data:function(){return H().attribution}},{attributionViewModel:function(ub){return _.F(jD,{data:ub.data,
className:FO,useMediumText:z})}})}}),_.F(_.M,{cond:function(){return H().actions&&p()},
then:function(){return _.F(_.l4,{data:function(){return H().actions}},{flexibleActionsViewModel:function(ub){return _.F(_.u2,{data:ub.data,
layout:function(){return JAy(y())},
className:sy})}})}})),_.F("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.F(_.l4,{data:function(){return H().bottomMetadataFlexibleContainer}},{flexibleContainer:function(ub){return _.F(N8p,{data:ub.data,
isOverlay:e})}})))}}))},"jf");
_.ryC.idomCompat=!0;_.gC(_.Z(function(X){var H=_.C(_.FU(!1,void 0,"qvRy4d")),l=H.next().value,b=H.next().value;return _.F("yt-official-card-view-model",{class:_.Qr("ytOfficialCardViewModelHost",X.className),style:_.rC({"background-color":function(){var U,K=Hx((U=X.data())==null?void 0:U.backgroundColor);return K?_.qw(K):void 0}})},_.F(_.l4,{data:function(){return X.data().header}},{pageHeaderViewModel:function(U){return _.F(_.ryC,{data:U.data,
noPadding:!0})}}),_.F(_.l4,{data:function(){return X.data().contents}},{horizontalShelfViewModel:function(U){return _.F(_.W3,{data:U.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.F(_.M,{cond:l,
then:function(){return _.F("div",{class:"ytOfficialCardViewModelExpandedContent"},_.F(_.l4,{data:function(){return X.data().expandedContents}},{horizontalShelfViewModel:function(U){return _.F(_.W3,{data:U.data,
sizing:"MINI"})}}),_.F("div",{class:"ytOfficialCardViewModelCollapseButton"},_.F(_.l4,{data:function(){return X.data().collapseButton}},{buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,
onClick:function(){b(!l())}})}})))},
else:function(){return _.F("div",{class:"ytOfficialCardViewModelExpandButton"},_.F(_.l4,{data:function(){return X.data().expandButton}},{buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,
onClick:function(){b(!l())}})}}))}}))},"kf"),"yt-official-card-view-model",{props:{data:_.zh,
className:_.zh}});var JyZ=_.Z(function(X){var H,l=(H=_.jJ().resolve(_.c$(_.b4)))==null?void 0:H();return _.F("ytw-search-friction-view-model",{class:_.Qr("ytwSearchFrictionViewModelHost",X.className)},_.F("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.F("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.F(_.M,{cond:function(){return l&&X.data().darkThemeImage?X.data().darkThemeImage:X.data().image},
then:function(b){return _.F(_.Dp,{data:b,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.F(_.l4,{data:function(){return X.data().overflowMenuButton}},{buttonViewModel:function(b){return _.F(_.Qk,{data:b.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.F(_.Sj,{text:function(){return X.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.F(_.P$,{each:function(){return X.data().bodyText||[]}},function(b){return _.F(_.Sj,{text:b,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.F(_.l4,{data:function(){return X.data().actions}},{buttonViewModel:function(b){return _.F(_.Qk,{data:b.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.F(_.Sj,{text:function(){return X.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.F(_.Sj,{text:function(){return X.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"lf");
JyZ.idomCompat=!0;_.gC(JyZ,"ytw-search-friction-view-model",{props:{data:_.zh,className:_.zh}});_.gm=_.Z(function(X){var H=_.SJ("markdown-div"),l,b=(l=_.jJ().resolve(_.c$(_.b4)))==null?void 0:l();_.Wg(function(){var U=H.value;var K=new WZC,w=new Map(K.JSC$9608_sanitizerTable.globalAttributePolicies);w.set("style",{policyAction:4});K.JSC$9608_sanitizerTable=new sQ(K.JSC$9608_sanitizerTable.allowedElements,K.JSC$9608_sanitizerTable.elementPolicies,K.JSC$9608_sanitizerTable.allowedGlobalAttributes,w,K.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes);var d=["data-time"];if(d===void 0)w=
new Set(K.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes),w.add("data-"),K.JSC$9608_sanitizerTable=new sQ(K.JSC$9608_sanitizerTable.allowedElements,K.JSC$9608_sanitizerTable.elementPolicies,K.JSC$9608_sanitizerTable.allowedGlobalAttributes,K.JSC$9608_sanitizerTable.globalAttributePolicies,w);else{w=new Set(K.JSC$9608_sanitizerTable.allowedGlobalAttributes);d=_.C(d);for(var B=d.next();!B.done;B=d.next()){B=B.value;if(B.indexOf("data-")!==0)throw Error("la`"+B);w.add(B)}K.JSC$9608_sanitizerTable=
new sQ(K.JSC$9608_sanitizerTable.allowedElements,K.JSC$9608_sanitizerTable.elementPolicies,w,K.JSC$9608_sanitizerTable.globalAttributePolicies,K.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes)}w=new Set(K.JSC$9608_sanitizerTable.allowedGlobalAttributes);w.add("class");K.JSC$9608_sanitizerTable=new sQ(K.JSC$9608_sanitizerTable.allowedElements,K.JSC$9608_sanitizerTable.elementPolicies,w,K.JSC$9608_sanitizerTable.globalAttributePolicies,K.JSC$9608_sanitizerTable.globallyAllowedAttributePrefixes);
_.Ml(U,_.nOC(K.build(),YPz(X.text())));IxN(H.value)},"CUInJc");
l={};return _.F("div",null,_.F("markdown-div",{class:_.Qr("ytwMarkdownDivHost",X.className,(l.ytwMarkdownDivDark=b,l.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var U;return((U=X.isSmallText)==null?void 0:U.call(X))||!1},l.ytwMarkdownDivHostWrapCodeBlocks=function(){var U;
return((U=X.wrapCodeBlocks)==null?void 0:U.call(X))||!1},l.ytwMarkdownDivHostEnableDefaultStyling=function(){var U;
return!((U=X.disableDefaultStyling)==null?0:U.call(X))},l)),
el:H}))},"nf");
_.gm.idomCompat=!0;var Lml=_.Z(function(X){var H=X.imageData;var l=_.Eq(X.isInList,!1),b=function(){return l()?{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 _.F("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.F(_.M,{cond:function(){return H().image},
then:function(U){return _.F(_.Dp,{data:U,alt:function(){return b().alt},
contentMode:function(){return b().contentMode},
targetWidth:function(){return b().targetWidth},
targetHeight:function(){return b().targetHeight},
className:function(){return b().className}})}}),_.F("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.F("div",{class:_.Qr("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.F(_.Sj,{text:function(){return H().title}})),_.F(_.P$,{each:function(){var U;
return(U=H().description)!=null?U:[]}},function(U){return _.F("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.F(GF,{content:U}))})))},"of"),YyZ=_.Z(function(X){var H=X.list;
var l=function(){var b;return(b=H().items)!=null?b:[]};
return _.F("div",{class:"ytwGenAiRichTextViewModelListContent"},_.F(_.M,{cond:function(){return H().title},
then:function(b){return _.F("div",{class:_.Qr("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.F(_.Sj,{text:b}))}}),_.F(_.M,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.F("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.F(_.P$,{each:l},function(b){return _.F("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.F(GF,{content:b,isInList:!0}))}))}}),_.F(_.M,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.F("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.F(_.P$,{each:l},function(b){return _.F("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.F(GF,{content:b,isInList:!0}))}))}}),_.F(_.M,{cond:function(){return H().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.F("div",{class:"ytwGenAiRichTextViewModelImageList"},_.F(_.P$,{each:l},function(b){return _.F("div",{class:"ytwGenAiRichTextViewModelListItem"},_.F(GF,{content:b,isInList:!0}))}))}}))},"pf"),ILZ=_.Z(function(X){var H=X.table;
return _.F("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.F("thead",null,_.F("tr",null,_.F(_.P$,{each:function(){var l,b;return(b=(l=H().header)==null?void 0:l.cells)!=null?b:[]}},function(l){return _.F("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.F(_.P$,{each:function(){return l.contents}},function(b){return _.F(GF,{content:b})}))}))),_.F("tbody",null,_.F(_.P$,{each:function(){var l;
return(l=H().rows)!=null?l:[]}},function(l){return _.F("tr",null,_.F(_.P$,{each:function(){return l.cells}},function(b){return _.F("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.F(_.P$,{each:function(){return b.contents}},function(U){return _.F(GF,{content:U})}))}))})))},"qf"),GF=_.Z(function(X){var H=X.content;
var l=_.Eq(X.isInList,!1),b=function(){var U,K;return(K=(U=H().contentBlock)==null?void 0:U.contents)!=null?K:[]};
return _.F("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.F(_.M,{cond:function(){return H().text},
then:function(U){return _.F(_.Sj,{className:"ytwGenAiRichTextViewModelText",text:U})}}),_.F(_.M,{cond:function(){return H().image},
then:function(U){return _.F(Lml,{imageData:U,isInList:l})}}),_.F(_.M,{cond:function(){return H().list},
then:function(U){return _.F(YyZ,{list:U})}}),_.F(_.M,{cond:function(){return H().contentBlock},
then:function(){return _.F("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.F(_.P$,{each:b},function(U){return _.F(GF,{content:U,isInList:!1})}))}}),_.F(_.M,{cond:function(){return H().table},
then:function(U){return _.F(ILZ,{table:U})}}))},"rf"),Ayp=_.Z(function(X){var H={};
H=_.dj("ytwGenAiRichTextViewModelHost",(H.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.I0("search_overview_link_style")),H));return _.F("gen-ai-rich-text-view-model",{class:H},_.F(GF,{content:function(){return X.data().content}}))},"sf");_.Xz5=_.Z(function(X){var H=X.data;var l=function(){var z;return((z=H().loadingUi)!=null?z:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},b=function(){return H().isLoading&&(l()==="UNSPECIFIED"||l()==="GHOST_CARD")},U=function(){return!H().isLoading},K=function(){return!!H().content&&!H().contents},w=function(){return!!H().contents},d=function(){return!!H().nextQueryButtons},B=function(){return H().isLoading&&l()==="INVISIBLE"},q=function(){var z,t;
return(t=(z=H().headerIcon)==null?void 0:z.iconType)!=null?t:""},u=function(){var z;
return(z=H().content)!=null?z:""},e=function(){return!!H().sourcesSection},y,V=!((y=_.jJ().resolve(_.c$(_.b4)))==null||!y()),p=_.uL(function(){var z=[],t=H().contents;
if(t)for(var W=0;W<t.length;W++){var G=_.f(t&&t[W],H0Q);G&&z.push(G)}return z},void 0,"gcCsZb");
_.DR(function(){H().isLoading||_.sf("so_re",void 0,"search_overview_answer")});
return _.F("ytd-overview-answer-view-model",{class:function(){var z={};z=(z.ytdOverviewAnswerViewModelHost=!0,z.ytdOverviewAnswerViewModelDarkBackground=V&&!B(),z.ytdOverviewAnswerViewModelLightBackground=!V&&!B(),z);return _.dj(z)}},_.F(_.M,{cond:function(){return!B()},
then:function(){return _.F(_.Xi,null,_.F("h2",null,_.F("div",{class:"ytdOverviewAnswerViewModelHeader"},_.F(_.M,{cond:q,then:function(z){return _.F("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.F(_.Ja,{icon:z}))}}),_.F("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.F("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return H().headerText}),_.F("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.F(_.Sj,{text:function(){return H().headerSubtext}}))))),_.F(_.M,{cond:b,
then:function(){return _.F(AAm,null)}}),_.F(_.M,{cond:U,
then:function(){return _.F(_.Xi,null,_.F(_.M,{cond:K,then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelText"},_.F(_.gm,{text:u,isSmallText:!0}))}}),_.F(_.M,{cond:w,
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelRichText"},_.F(_.P$,{each:p},function(z){return _.F(Ayp,{data:z})}))}}),_.F(_.M,{cond:d,
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.F(_.l4,{data:function(){return H().nextQueryButtons}},{buttonViewModel:function(z){return _.F(_.Qk,{data:z.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.W3}))}}),_.F("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.F("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.F(_.M,{cond:function(){return!!_.f(H().likeButtonViewModel,_.p9)&&!!_.f(H().dislikeButtonViewModel,_.SY)},
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.F(_.y7,{data:function(){return _.f(H().likeButtonViewModel,_.p9)},
disableIconAnimation:!0}),_.F(_.eb,{data:function(){return _.f(H().dislikeButtonViewModel,_.SY)}}))}})),_.F(_.M,{cond:function(){var z;
return(z=H().sourcesSection)==null?void 0:z.headerText},
then:function(z){return _.F("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.F(_.Sj,{text:z}))}})),_.F(_.M,{cond:e,
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelSources"},_.F(_.l4,{data:function(){var z;return(z=H().sourcesSection)==null?void 0:z.sourcesShelf}},{buttonViewModel:_.Qk,
horizontalShelfViewModel:function(z){return _.F(_.W3,{data:z.data,includeMargin:!0,hasPeek:!0})}}))}}),_.F(_.M,{cond:function(){return H().disclaimerText},
then:function(){return _.F("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.F(_.Sj,{text:function(){return H().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"tf");var H_y=_.Z(function(X){var H=_.gT(X,{}).data;return _.F("yt-shopping-content-line-item-view-model",{class:_.Qr("ytShoppingContentLineItemViewModelHost")},_.F(_.Sj,{text:function(){var l;return(l=H().text)==null?void 0:l.attributedString}}))},"uf");_.an=_.Z(function(X){X=_.gT(X,{});var H=X.data,l={};return _.F("yt-shopping-content-line-view-model",{class:_.Qr("ytShoppingContentLineViewModelHost",X.className,(l.ytShoppingContentLineViewModelTruncateText=function(){return!H().wrapContent},l)),
style:_.rC({"--shopping-content-line-gap":function(){return H().itemGap?H().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return H().lineHeight?H().lineHeight+"px":void 0}})},_.F(_.P$,{each:function(){return(H().items||[]).map(function(b){return _.f(b,RqQ)}).filter(function(b){return!!b})}},function(b){return _.F(H_y,{data:b})}))},"vf");var l6C=_.Z(function(X){var H=X.data;var l=function(){var K;return((K=H().image)==null?void 0:K.height)||48},b=function(){var K;
return((K=H().image)==null?void 0:K.width)||48},U=function(){return"width: "+b()+"px; height: "+l()+"px;"};
return _.F("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var K,w,d,B=((K=_.jJ().resolve(_.c$(_.b4)))==null?0:K())?(w=H())==null?void 0:w.darkThemeBackgroundColor:(d=H())==null?void 0:d.lightThemeBackgroundColor;return"background-color: "+(B?_.qw(B):"")+";"},
el:_.xl(_.Mh(function(){var K;return(K=H())==null?void 0:K.rendererContext})),
role:"link",tabindex:0},_.F(_.M,{cond:function(){var K,w;return(w=(K=H().image)==null?void 0:K.image)!=null?w:H().thumbnail},
then:function(K){return _.F("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var w;return"background-color: "+(((w=H().image)==null?0:w.backgroundColor)?_.qw(H().image.backgroundColor):"")+";"+U()}},_.F(_.Dp,{data:K,
height:l,width:b,style:U,alt:""}))}}),_.F("div",{class:"ytShoppingDescriptionItemViewModelText"},_.F(_.l4,{data:function(){return H().line1}},{shoppingContentLineViewModel:function(K){return _.F(_.an,{data:K.data})}}),_.F(_.l4,{data:function(){return H().line2}},{shoppingContentLineViewModel:function(K){return _.F(_.an,{data:K.data})}}),_.F(_.l4,{data:function(){return H().line3}},{shoppingContentLineViewModel:function(K){return _.F(_.an,{data:K.data})}})))},"wf");var oQU=_.Z(function(X){var H=X.data;var l=X.active;var b=_.SJ("transcript-segment-view-model");_.Wg(function(){var U,K,w,d=((U=_.jJ().resolve(_.c$(_.b4)))==null?0:U())?(K=H())==null?void 0:K.darkThemeColorPalette:(w=H())==null?void 0:w.lightThemeColorPalette;d&&(d.additiveBackground&&b.value.style.setProperty("--timestamp-active-background-color",_.qw(d.additiveBackground)),d.textSecondary&&b.value.style.setProperty("--timestamp-active-color",_.BM(d.textSecondary)))},"TnVCnb");
X={};return _.F("transcript-segment-view-model",{class:_.Qr("ytwTranscriptSegmentViewModelHost",(X.ytwTranscriptSegmentViewModelHostActive=l,X.ytwTranscriptSegmentViewModelHostModern=_.P("enable_timeline_view_modern_transcript")||_.P("enable_timeline_view_modern_transcript_fe"),X)),el:b},_.F(_.M,{cond:function(){var U;return(U=H())==null?void 0:U.timestamp},
then:function(U){var K={};return _.F(_.Xi,null,_.F("div",{class:_.Qr("ytwTranscriptSegmentViewModelTimestamp",(K.ytwTranscriptSegmentViewModelTimestampActive=l,K)),"aria-hidden":!0},U),_.F("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var w=U().split(":").map(Number),d=_.C(w.reverse());w=d.next().value;var B=d.next().value;d=d.next().value;return _.k4N({hours:d,minutes:B,seconds:w})}))}}),_.F(_.Sj,{text:function(){var U,K,w;
return(w=(U=H())==null?void 0:U.attributedText)!=null?w:{content:(K=H())==null?void 0:K.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"yf");var b_C=_.Z(function(X){var H=X.data;return _.F("div",{class:"videoAttributesSectionViewModelHeader"},_.F("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.F("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return H().headerTitle}),_.F(_.M,{cond:function(){return H().headerInfoButton},
then:function(){return _.F(_.l4,{data:function(){return H().headerInfoButton}},{buttonViewModel:function(l){return _.F(_.Qk,{data:l.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.F(_.M,{cond:function(){return H().headerSubtitle},
then:function(){return _.F("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return H().headerSubtitle})}}))},"zf"),UvU=_.Z(function(X){function H(z){return Math.max(Math.min(z,0),q()-d())}
var l=X.data;var b;X=_.SJ("div",function(z){var t=function(){u(z.clientWidth)};
t();window.ResizeObserver&&(b=new ResizeObserver(t),b.observe(z))});
var U=_.SJ("div",function(z){B(z.scrollWidth)}),K=_.C(_.FU(0,void 0,"C3XQAe")),w=K.next().value;
K=K.next().value;var d=w,B=K;K=_.C(_.FU(0,void 0,"db7y3"));w=K.next().value;K=K.next().value;var q=w,u=K;w=_.C(_.FU(0,void 0,"RchC7"));var e=w.next().value,y=w.next().value;_.E2(function(){var z;(z=b)==null||z.disconnect()});
var V=function(){y(H(e()+q()))},p=function(){y(H(e()-q()))};
return _.F("yt-video-attributes-section-view-model",null,_.F("div",{class:"videoAttributesSectionViewModelHost"},_.F(_.M,{cond:function(){return l().headerTitle},
then:function(){return _.F(b_C,{data:l})}}),_.F("div",{class:_.Qr("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:X},_.F("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.rC({transform:function(){var z=e();_.gx("HTML_DIR")==="rtl"&&(z*=-1);return"translateX("+z+"px)"}}),
el:U},_.F(_.l4,{data:function(){return l().videoAttributeViewModels}},{videoAttributeViewModel:O4_}))),_.F(_.l4,{data:function(){return l().footerButton}},{buttonViewModel:function(z){return _.F(_.Qk,{data:z.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.F(_.M,{cond:function(){return e()<0&&l().previousButton},
then:function(){return _.F("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.F(_.l4,{data:function(){return l().previousButton}},{buttonViewModel:function(z){return _.F(_.Qk,{data:z.data,
onClick:V})}}))}}),_.F(_.M,{cond:function(){return e()>q()-d()&&l().nextButton},
then:function(){return _.F("div",{class:"videoAttributesSectionViewModelRightArrow"},_.F(_.l4,{data:function(){return l().nextButton}},{buttonViewModel:function(z){return _.F(_.Qk,{data:z.data,
onClick:p})}}))}})))},"Af");
UvU.idomCompat=!0;var $vA=_.Z(function(X){var H=X.data;var l=X.active;var b={},U={};return _.F("timeline-item-view-model",{class:_.Qr("ytwTimelineItemViewModelHost",(b.ytwTimelineItemViewModelHostChapterChild=X.chapterChild,b.ytwTimelineItemViewModelModern=_.P("enable_timeline_view_modern_transcript")||_.P("enable_timeline_view_modern_transcript_fe"),b))},_.F("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.F("div",{class:_.Qr("ytwTimelineItemViewModelTimestamp",(U.ytwTimelineItemViewModelTimestampActive=
l,U))},function(){return H().timestamp})),_.F("div",{class:"ytwTimelineItemViewModelContentItems"},_.F(_.l4,{data:function(){return H().contentItems}},{transcriptSegmentViewModel:function(K){return _.F(oQU,{data:K.data,
active:l})},
videoAttributesSectionViewModel:UvU})))},"Bf");var KDA=_.Z(function(X){var H=X.data;X={};return _.F("timeline-chapter-view-model",{class:_.Qr("ytwTimelineChapterViewModelHost")},_.F("div",{class:_.Qr("ytwTimelineChapterViewModelTitle",(X.ytwTimelineChapterViewModelModern=_.P("enable_timeline_view_modern_transcript")||_.P("enable_timeline_view_modern_transcript_fe"),X))},function(){return H().title}),_.F(_.l4,{data:function(){return H().contents}},{timelineItemViewModel:function(l){return _.F($vA,{data:l.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(l){return _.F(UvU,{data:l.data})}}))},"Cf");var RCy=_.Z(function(X){var H=X.data;var l=_.SJ("macro-markers-panel-item-view-model"),b=_.Aw(_.ZOL,function(){var K;return(K=H().markersEngagementPanelSyncEntityKey)!=null?K:""}),U=function(){var K;
return((K=b())==null?void 0:K.activeItemIndex)===H().index};
X=_.Nq(function(K){var w,d,B,q,u;return _.h(function(e){if(e.nextAddress==1)return K.stopPropagation(),_.B6(_.FA(K),l.value,["A".toString(),"BUTTON".toString()])?e.return():(w=_.sl(H().onTap))?e.yield(_.j2(),2):e.return();d=e.yieldResult;q=(B=_.f(w,_.ku))==null?void 0:B.startTimeSeconds;q===void 0||(u=d)!=null&&u.seekTo(q,!0);_.m5(e)})});
return _.F("macro-markers-panel-item-view-model",{class:_.Qr("ytwMacroMarkersPanelItemViewModelHost",{"is-active":U}),el:l,"on:click":X,tabindex:function(){return _.f(H().item,CJQ)?void 0:0},
role:function(){return _.f(H().item,CJQ)?void 0:"button"}},_.F(_.l4,{data:function(){var K;
return(K=H())==null?void 0:K.item}},{timelineChapterViewModel:function(K){return _.F(KDA,{data:K.data,
active:U})},
timelineItemViewModel:function(K){return _.F($vA,{data:K.data,active:U})},
videoAttributeViewModel:O4_,shoppingDescriptionItemViewModel:l6C}))},"Df");
RCy.idomCompat=!0;_.gC(RCy,"macro-markers-panel-item-view-model",{props:{data:_.zh}});_.gC(UvU,"yt-video-attributes-section-view-model",{props:{data:_.zh}});var CFp=_.Z(function(X){var H=function(){var l,b,U;return(U=(l=X.data().leadingLogoAccessibility)==null?void 0:(b=l.accessibilityData)==null?void 0:b.label)!=null?U:""};
return _.F("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.F(_.M,{cond:function(){return X.data().leadingLogo},
then:function(l){return _.F(_.Dp,{className:"ytwFantasySectionHeaderViewModelLogo",data:l,alt:H})}}),_.F("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.F(_.Sj,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return X.data().title}}),_.F(_.Sj,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return X.data().subtitle}})),_.F(_.l4,{data:function(){return X.data().trailingButton}},{buttonViewModel:function(l){return _.F(_.Qk,{data:l.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ef");var wzY=_.Z(function(X){var H={};H=_.Qr("ytwFantasyTeamViewModelHost",(H.ytwFantasyTeamViewModelCompact=function(){var U;return!((U=X.compact)==null||!U.call(X))},H.ytwFantasyTeamViewModelUser=function(){return X.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},H.ytwFantasyTeamViewModelOpponent=function(){return X.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},H));
var l=function(){var U,K,w;return(w=(U=X.data().teamLogoAccessibility)==null?void 0:(K=U.accessibilityData)==null?void 0:K.label)!=null?w:""},b=_.Aw(vby,function(){return X.data().teamEntityKey});
return _.F("ytw-fantasy-team-view-model",{class:H},_.F(_.M,{cond:function(){return X.data().teamLogo},
then:function(U){return _.F(_.Dp,{className:"ytwFantasyTeamViewModelLogo",data:U,alt:l})}}),_.F("div",{class:"ytwFantasyTeamViewModelMetadata"},_.F("div",{class:"ytwFantasyTeamViewModelHeader"},_.F(_.Sj,{className:"ytwFantasyTeamViewModelScore",
text:function(){var U;return(U=b())==null?void 0:U.score}}),_.F(_.Ja,{icon:function(){var U;
return(U=b())==null?void 0:U.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.F(_.Sj,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var U;return(U=b())==null?void 0:U.projectedScore}})),_.F(_.Sj,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return X.data().primaryText}}),_.F(_.Sj,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return X.data().secondaryText}}),_.F(_.Sj,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return X.data().tertiaryText}})),_.F(_.Sj,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var U;return(U=b())==null?void 0:U.score}}))},"Ff");_.gC(_.Z(function(X){return _.F("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.F("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.F(_.l4,{data:function(){return X.data().summaryHeader}},{fantasySectionHeaderViewModel:CFp})),_.F(_.l4,{data:function(){return X.data().userTeam}},{fantasyTeamViewModel:wzY}),_.F(_.l4,{data:function(){return X.data().opponentTeam}},{fantasyTeamViewModel:wzY}))},"Gf"),"fantasy-league-summary-view-model",{props:{data:_.zh}});var dvZ=_.Z(function(X){var H=_.gT(X,{shape:{},useCustomTabRenderable:!1}),l=H.shape;H=H.useCustomTabRenderable;var b=X.customTabRenderable,U=function(){return l().disabled},K=function(){return l().selected},w=function(){return l().title},d=function(){return l().icon},B=_.SJ("yt-tab-shape");
X=_.Nq(function(e){var y;if(!U()&&((y=l().aTagConfig)==null?0:y.onclick))l().aTagConfig.onclick(e);return!1});
var q=_.Nq(function(e){if(e.key==="Enter"||e.key==="ArrowUp"||e.key==="ArrowDown")e.preventDefault(),B.value.click();return!1}),u={};
return _.F("yt-tab-shape",{class:_.Qr("yt-tab-shape",function(){return l().className},(u["yt-tab-shape__tab--last-tab"]=function(){return l().isLastTab},u["yt-tab-shape--host-disabled"]=U,u["yt-tab-shape--host-clickable"]=!b,u)),
role:b?void 0:"tab","aria-selected":K!=null?K:!1,"aria-disabled":U,tabindex:b?void 0:0,"on:click":X,"on:keydown":q,el:B,"tab-identifier":function(){return l().identifier},
"tab-title":w},_.F(_.M,{cond:H,then:function(){return b()},
else:function(){var e={},y={};return _.F(_.Xi,null,_.F("div",{class:_.Qr("yt-tab-shape__tab",(e["yt-tab-shape__tab--tab-selected"]=K,e))},_.F(_.M,{cond:d,then:function(V){return _.F(_.Ja,{className:"yt-tab-shape__tab-icon",icon:function(){return V().iconType}})}}),w),_.F("div",{class:_.Qr("yt-tab-shape__tab-bar",(y["yt-tab-shape__tab-bar--tab-bar-selected"]=K,y))}))}}))},"Hf");
dvZ.idomCompat={callbacks:{customTabRenderable:!0}};_.FDZ=_.Z(function(X){var H=X.shape;X=_.C(_.FU(48,void 0,"nDAx4"));var l=X.next().value,b=X.next().value;X=_.C(_.FU(0,void 0,"GCgjqb"));var U=X.next().value,K=X.next().value,w=function(){return H().tabs},d=_.SJ("yt-tab-group-shape"),B=function(){var y,V;
return(V=(y=w())==null?void 0:y.findIndex(function(p){return p.selected}))!=null?V:-1};
X=_.C(_.FU(!1,void 0,"SU01tf"));var q=X.next().value,u=X.next().value,e=function(){q()||_.Ss.addJob(function(){u(!0)},0)};
_.Wg(function(){var y=B(),V=_.Ss.addJob(function(){var p,z=((p=d.value)==null?void 0:p.querySelectorAll("yt-tab-shape"))||[],t;b(((t=y>-1?z[y]:void 0)==null?void 0:t.getBoundingClientRect().width)||0);for(t=p=0;t<y;t++)p+=z[t].offsetWidth+24;_.gx("HTML_DIR")==="rtl"&&(p=-p);K(p);e()},8,0);
_.E2(function(){_.Ss.cancelJob(V)})},"PMwgb");
X={};return _.F("yt-tab-group-shape",{class:_.Qr("tabGroupShapeHost",(X.tabGroupShapeOverflowHidden=function(){return H().isOverflowHidden},X)),
el:d},_.F(_.M,{cond:w,then:function(y){return _.F(_.Xi,null,_.F("div",{class:"tabGroupShapeTabs",role:"tablist"},_.F(_.P$,{each:y},function(V,p){return _.F(dvZ,{shape:function(){return Object.assign({},V,{isLastTab:p()===y().length-1})},
customTabRenderable:V.customTabRenderable,useCustomTabRenderable:!!V.customTabRenderable})})),_.F(hCx,{width:l,
sliderOffset:U,enableTransition:q}))}}))},"Jf");
_.FDZ.idomCompat=!0;var hCx=_.Z(function(X){var H=_.Eq(X.sliderOffset,0),l=X.width,b=X.enableTransition;X={};return _.F("div",{class:_.Qr("tabGroupShapeSlider",(X.tabGroupShapeSliderTransition=function(){return b()},X)),
style:_.rC({width:function(){return l()+"px"},
transform:function(){return"translateX("+H()+"px)"}})})},"Kf");var BtZ=_.Z(function(X){var H=function(){var K,w,d;return(d=(K=X.data().playerLogoAccessibility)==null?void 0:(w=K.accessibilityData)==null?void 0:w.label)!=null?d:""},l=_.Aw(OOy,function(){return X.data().playerEntityKey}),b={};
b=_.Qr("ytwFantasyPlayerViewModelHost",(b.ytwFantasyPlayerViewModelPlaying=function(){var K;return!((K=l())==null||!K.isPlayerPlaying)},b.ytwFantasyPlayerViewModelOnField=function(){var K;
return((K=l())==null?void 0:K.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},b.ytwFantasyPlayerViewModelRedZone=function(){var K;
return((K=l())==null?void 0:K.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},b));
var U=function(){var K,w,d,B=((K=_.jJ().resolve(_.c$(_.b4)))==null?0:K())?(w=X.data().playerLogoBackgroundColor)==null?void 0:w.darkTheme:(d=X.data().playerLogoBackgroundColor)==null?void 0:d.lightTheme;return B===void 0?"":_.qw(B)};
return _.F("ytw-fantasy-player-view-model",{class:b},_.F(_.M,{cond:function(){return X.data().playerLogo},
then:function(K){return _.F("div",{class:"ytwFantasyPlayerViewModelLogo"},_.F("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.F(_.Dp,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.rC({"background-color":U}),data:K,alt:H})),_.F("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.F(_.Ja,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.F("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.F("div",{class:"ytwFantasyPlayerViewModelHeader"},_.F(_.Sj,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var K;return(K=X.data())==null?void 0:K.playerNameText}}),_.F(_.Sj,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var K;return(K=X.data())==null?void 0:K.playerDescriptionText}})),_.F("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.F(_.Sj,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var K;return(K=l())==null?void 0:K.gamePeriodText}}),_.F(_.Sj,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var K;return(K=X.data())==null?void 0:K.opponentTeamText}}),_.F(_.Sj,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var K;return(K=l())==null?void 0:K.gameStatusText}}),_.F(_.Sj,{className:_.Qr("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var K;return(K=l())==null?void 0:K.playerStatusText}})),_.F("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.F(_.Sj,{text:function(){var K;
return(K=l())==null?void 0:K.playerStatsText}}))),_.F(_.Sj,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var K;return(K=l())==null?void 0:K.fantasyScore}}))},"Lf");var qGy=_.Z(function(X){return _.F("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.F(_.M,{cond:function(){return X.data().players},
then:function(H){return _.F(_.l4,{data:H},{fantasyPlayerViewModel:BtZ})}}))},"Mf");var s_U=_.Z(function(X){var H=_.C(_.Gx(function(){var U;return(U=X.data().selectedTabIdentifierKey)!=null?U:""})),l=H.next().value,b=H.next().value;
_.xy(function(){var U;(U=X.setSelectedTabSignal)==null||U.call(X,l)});
return _.F("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.F("div",{class:"ytTabbedViewModelTabGroup"},_.F(_.FDZ,{shape:function(){var U=X.data(),K=[],w={tabs:K};if(!U.tabs)return w;U=_.C(U.tabs);for(var d=U.next(),B={};!d.done;B={tabViewModel:void 0},d=U.next())if(B.tabViewModel=_.f(d.value,Fwq),B.tabViewModel){var q=d=void 0;K.push({aTagConfig:{onclick:function(u){return function(){var e;b((e=u.tabViewModel.tabIdentifier)!=null?e:"")}}(B)},
identifier:B.tabViewModel.tabIdentifier,selected:l()===B.tabViewModel.tabIdentifier,title:(q=(d=B.tabViewModel.title)==null?void 0:d.content)!=null?q:""})}return w}})),_.F(_.l4,{data:function(){var U,K=_.C((U=X.data().tabs)!=null?U:[]);
for(U=K.next();!U.done;U=K.next())if((U=_.f(U.value,Fwq))&&U.tabIdentifier===l())return U.content}},{fantasyRosterViewModel:qGy}))},"Of");_.gC(_.Z(function(X){var H=_.C(XkK()),l=H.next().value,b=H.next().value;return _.F("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.F(_.Sj,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return X.data().title}}),_.F(_.M,{cond:function(){return X.data().tabbedViewModel},
then:function(U){return _.F(_.l4,{data:U},{tabbedViewModel:function(K){return _.F(s_U,{data:K.data,setSelectedTabSignal:b})}})}}),_.F(_.M,{cond:function(){var U,K=(U=_.f(X.data().tabbedViewModel,B3F))==null?void 0:U.tabs;
U=_.f(K==null?void 0:K[0],Fwq);K=_.f(K==null?void 0:K[1],Fwq);var w=U==null?void 0:U.tabIdentifier;if(l()===w){var d,B;if(!((d=_.f(U==null?void 0:U.content,p9F))==null?0:(B=d.players)==null?0:B.length))return X.data().noUserTeamPlayersText}else{var q,u;if(!((q=_.f(K==null?void 0:K.content,p9F))==null?0:(u=q.players)==null?0:u.length))return X.data().noOpponentTeamPlayersText}},
then:function(U){return _.F(_.Sj,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:U})}}))},"Pf"),"ytw-fantasy-matchup-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){return _.F("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.F(_.Sj,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return X.data().title}}),_.F(_.M,{cond:function(){return X.data().matchupTeamPairs},
then:function(H){return _.F(_.P$,{each:H,keyBy:"INDEX"},function(l){return _.F("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.F(_.l4,{data:function(){return[l().firstTeam,l().secondTeam]}},{fantasyTeamViewModel:function(b){return _.F(wzY,{data:b.data,
compact:!0})}}))})}}))},"Qf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=function(){var U,K,w;return(w=(U=X.data().userLogoAccessibility)==null?void 0:(K=U.accessibilityData)==null?void 0:K.label)!=null?w:""},l=function(){var U,K,w;
return(w=(U=X.data().opponentLogoAccessibility)==null?void 0:(K=U.accessibilityData)==null?void 0:K.label)!=null?w:""},b=_.Aw(iOL,function(){return X.data().entityKey});
return _.F("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.F("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.F(_.M,{cond:function(){return X.data().userLogo},
then:function(U){return _.F(_.Dp,{className:"ytwFantasyWinProbabilityViewModelLogo",data:U,alt:H})}}),_.F("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.F(_.Sj,{text:function(){return X.data().title}})),_.F(_.M,{cond:function(){return X.data().opponentLogo},
then:function(U){return _.F(_.Dp,{className:"ytwFantasyWinProbabilityViewModelLogo",data:U,alt:l})}})),_.F("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.F("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.F(_.Sj,{text:function(){var U;
return(U=b())==null?void 0:U.userWinNumberLabel}})),_.F("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.F("div",{class:_.Qr("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.rC({flex:function(){var U,K;return(K=(U=b())==null?void 0:U.userWinNumber)!=null?K:50}})}),_.F("div",{class:_.Qr("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.rC({flex:function(){var U,K;return(K=(U=b())==null?void 0:U.opponentWinNumber)!=null?K:50}})})),_.F("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.F(_.Sj,{text:function(){var U;
return(U=b())==null?void 0:U.opponentWinNumberLabel}}))))},"Rf"),"fantasy-win-probability-view-model",{props:{data:_.zh}});var Mql={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},uHl=_.Z(function(X){return _.F(_.l4,{data:X.button},{buttonViewModel:function(H){return _.F(_.Qk,{data:H.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Sf"),eCy=_.Z(function(X){return _.F("ytd-backstage-locked-post-view-model",{class:_.Qr("ytdBackstageLockedPostViewModelHost",X.className)},_.F("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.F("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.F(_.l4,
{data:function(){return X.data().authorAvatar}},{decoratedAvatarViewModel:_.uu})),_.F("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.F("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.F(_.Sj,{text:function(){return X.data().authorText}})),_.F("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.F(_.Sj,{text:function(){return X.data().publishedTimeText}}),_.F(_.l4,{data:function(){return X.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(H){return _.F(Bp_,
{data:H.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.F("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.F(_.Sj,{text:function(){return X.data().contentText}})),_.F(_.ff,null,_.F(_.yO,{when:function(){return X.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.F("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.F(_.Dp,{data:Mql,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.F(_.Sj,{text:function(){return X.data().lockedText}}))}),_.F(_.yO,{when:function(){return X.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.F("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.F("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.F(_.Dp,{data:Mql,
alt:""})),_.F(_.Sj,{text:function(){return X.data().lockedText}}))})),_.F("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.F(uHl,{button:function(){return X.data().likeButton}}),_.F("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return X.data().voteCountA11y}},_.F(_.Sj,{text:function(){return X.data().voteCount}})),_.F(uHl,{button:function(){return X.data().dislikeButton}}),_.F(uHl,{button:function(){return X.data().commentButton}}),_.F("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return X.data().commentCountA11y}},_.F(_.Sj,{text:function(){return X.data().commentCount}}))))},"Tf");
eCy.idomCompat=!0;_.gC(eCy,"ytd-backstage-locked-post-view-model",{props:{data:_.zh,className:_.zh}});_.wd("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Zl=function(){var X=_.a.apply(this,arguments)||this;X.darkerPanels=_.P("web_watch_darker_panels");X.commentsHidePanelButton=!1;X.isWatchGrid=!1;X.continuationShowButton=!1;X.isSearch=!1;X.isConstrainedList=!1;X.isWatch=!1;X.eligibleToSwitchToGrid=!1;X.useBigThumbs=!1;X.epRestyle=!1;X.isCarouselInFeed=!0;X.topSpacingZero=!1;X.continuationIsInitialLoad=!0;X.enableSqueezebackPanels=_.P("web_shorts_enable_squeezeback_panels");X.enableAnchoredPanel=_.P("desktop_shorts_v2_anchored_panel");X.notSticky=
!0;X.mastheadHeight=0;X.isStickyChipBarSetup=!1;X.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};X.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return X};
_.S(Zl,_.a);_.R=Zl.prototype;_.R.updateLockupContainerTypes=function(X){if(this.eligibleToSwitchToGrid){var H;(H=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||H.forEach(function(l){l.containerType=X})}};
_.R.getItemsPath=function(){return"data.contents"};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.R.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:_.P("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.P("kevlar_low_priority_continuation")}}};
_.R.created=function(){};
_.R.updateStickySetup=function(){_.P("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.R.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(vIY(!this.notSticky))};
_.R.setupStickyChipBar=function(){var X=this;if(!this.isStickyChipBarSetup&&_.P("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.J2(this,this.updateHeaderState));var H;this.mastheadHeight=((H=document.querySelector("ytd-masthead"))==null?void 0:H.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(l){X.handleIntersect(l)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){X.updateHeaderState();X.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.R.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.J2(this,this.updateHeaderState));var X;(X=this.intersectionObserver)==null||X.disconnect();var H;(H=this.resizeObserver)==null||H.disconnect()}};
_.R.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.R.handleIntersect=function(X){this.notSticky=X[0].intersectionRatio===1};
_.R.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")};
_.R.detached=function(){this.teardownStickyChipBar()};
_.R.updated=function(X){X.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.R.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var X=_.mh(this.hostElement).querySelector("ytd-comments-header-renderer");X&&(X.hidePanelButton=this.commentsHidePanelButton)}};
_.R.onRetrieveLocation=function(X,H){this.containsComments()&&(this.firstCommentsLoaded=H.hasComments=!0)};
_.R.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.R.onLoadReloadContinuation=function(X,H){var l=this;X.stopPropagation();this.isReloading=!0;_.QX(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(b){var U=_.jJ().resolve(_.o6);b=H(b);U.postData(b).then(function(K){l.onReloadContinuationData(K)})}})};
_.R.onReloadContinuationData=function(X){if(X=this.get("response.continuationContents.itemSectionContinuation",X)||this.get("response.contents.itemSectionRenderer",X)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",X)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",X))this.set("data.contents",X.contents||X.results),X.header&&this.set("data.header",X.header),this.set("data.continuations",
X.continuations||[]);this.isReloading=!1};
_.R.computeContentsClass=function(X){return X?"reloading":""};
_.R.computeSectionIdentifier=function(X){return X==null?void 0:X.sectionIdentifier};
_.R.computeFitContainer=function(X){return(X==null?void 0:X.sectionIdentifier)==="youchat-item-section"};
_.R.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.P("kevlar_disable_comments_auto_load")};
_.R.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.R.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.R.computeHasDestinationShelfRenderer=function(X){var H,l;return!!(X==null?0:(H=X.contents)==null?0:(l=H[0])==null?0:l.destinationShelfRenderer)};
_.R.computeHasSectionGroupViewModel=function(X){var H,l;return!!(X==null?0:(H=X.contents)==null?0:(l=H[0])==null?0:l.sectionGroupViewModel)};
_.R.computeHasQrCodeRenderer=function(X){var H,l;return!!(X==null?0:(H=X.contents)==null?0:(l=H[0])==null?0:l.qrCodeRenderer)};
_.R.computeStaticCommentsHeader=function(X){return X&&this.containsComments()};
_.R.computeEpRestyle=function(X){return _.P("web_ep_restyling")&&X&&this.containsComments()};
_.R.computeIsContinuationCommentSection=function(X){return(X==null?void 0:X.targetId)==="shorts-engagement-panel-comments-section"||(X==null?void 0:X.targetId)==="comments-section"||(X==null?void 0:X.targetId)==="engagement-panel-comments-section"};
_.R.computeSuppressPaddingDisclaimer=function(){var X,H,l,b;return!!((X=this.data)==null?0:(H=X.contents)==null?0:(l=H[0])==null?0:(b=l.productListHeaderRenderer)==null?0:b.suppressPaddingDisclaimer)};
_.R.computeHeaderStyle=function(X){switch(X==null?void 0:X.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.R.dataChanged=function(){this.firstCommentsLoaded=!1};
_.R.observeDataContentsLength=function(){var X,H;((X=this.data)==null?0:(H=X.contents)==null?0:H.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.R.onYtDismissibleItemDismissedChange=function(X){this._setItemDismissed(X.type==="yt-dismissible-item-dismissed")};
_.R.triggerContinuations=function(){for(var X=_.mh(this.hostElement).querySelector("#continuations").children,H=0;H<X.length;H++)X[H].trigger()};
_.R.triggerInitialContinuations=function(){for(var X=_.mh(this.hostElement).querySelector("#continuations").children,H=0;H<X.length;H++)X[H].triggerIfNotPreviouslyTriggered()};
_.R.handleYtItemSectionContinuation=function(X,H){var l;H&&((l=this.data)==null?void 0:l.sectionIdentifier)!==H||(this.set("data.continuations",[X]),this.triggerContinuations())};
_.R.handleYtItemSectionReplace=function(X,H){var l;H&&((l=this.data)==null?void 0:l.sectionIdentifier)!==H||(this.set("data.contents",X),this.set("data.continuations",[]))};
_.R.computeUseHeightHack=function(X){return X&&!_.P("kevlar_disable_height_hack")};
_.R.computeTopSpacingZero=function(X){return X};
_.R.continuationShowButtonChanged=function(){var X=_.mh(this.hostElement).querySelector("ytd-continuation-item-renderer");X&&(X.showButton=this.continuationShowButton)};
_.R.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("data-changed",this.data))};
_.ja.Object.defineProperties(Zl.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.P("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 X,H,l;return!!((X=this.data)==null?0:(H=X.contents)==null?0:(l=H[0])==null?0:l.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b,U,K,w;return!!((X=this.data)==null?0:(H=X.contents)==null?0:(l=H[0])==null?0:(b=l.shelfRenderer)==null?0:(U=b.content)==null?0:(K=U.gridRenderer)==null?0:(w=K.targetId)==null?0:w.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return!!((X=this.data)==null?0:(H=X.contents)==null?0:(l=H[0])==null?0:l.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return!!((X=this.data)==null?0:(H=X.contents)==null?0:(l=H[0])==null?0:l.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.I0("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.P("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.P("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.P("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var X,H;return!!((X=this.data)==null?0:(H=X.header)==null?0:H.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.P("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.P("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Zl.prototype.dataChangedForBinding=Zl.prototype.dataChangedForBinding;Zl.prototype.continuationShowButtonChanged=Zl.prototype.continuationShowButtonChanged;Zl.prototype.onYtDismissibleItemDismissedChange=Zl.prototype.onYtDismissibleItemDismissedChange;Zl.prototype.observeDataContentsLength=Zl.prototype.observeDataContentsLength;Zl.prototype.dataChanged=Zl.prototype.dataChanged;Zl.prototype.onServiceRequestCompleted=Zl.prototype.onServiceRequestCompleted;Zl.prototype.onLoadReloadContinuation=Zl.prototype.onLoadReloadContinuation;
Zl.prototype.onRetrieveLocation=Zl.prototype.onRetrieveLocation;Zl.prototype.commentsHidePanelButtonChanged=Zl.prototype.commentsHidePanelButtonChanged;Zl.prototype.dispatchChipBarIsSticky=Zl.prototype.dispatchChipBarIsSticky;Zl.prototype.updateStickySetup=Zl.prototype.updateStickySetup;Zl.prototype.updateLockupContainerTypes=Zl.prototype.updateLockupContainerTypes;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Zl.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.aI.YtLazyListBehavior),_.N("design:type",Object)],Zl.prototype,"ytLazyListBehavior",void 0);_.T([_.k(_.ge.YtNextContinuationBehavior),_.N("design:type",Object)],Zl.prototype,"ytNextContinuationBehavior",void 0);
_.T([_.k(_.EO),_.N("design:type",Object)],Zl.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Zl.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Zl.prototype,"ytdReduxBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Zl.prototype,"darkerPanels",void 0);_.T([_.g(),_.N("design:type",Object)],Zl.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Boolean)],Zl.prototype,"engagementPanel",void 0);_.T([_.g(),_.N("design:type",Object)],Zl.prototype,"commentsHidePanelButton",void 0);_.T([_.g(),_.N("design:type",Object)],Zl.prototype,"isWatchGrid",void 0);_.T([_.g(),_.N("design:type",Object)],Zl.prototype,"continuationShowButton",void 0);_.T([_.g({computed:"computeIsContinuationCommentSection(data)"}),_.N("design:type",Boolean)],Zl.prototype,"continuationIsCommentsSection",void 0);
_.T([_.g({value:!0}),_.N("design:type",Boolean)],Zl.prototype,"autoFill",void 0);_.T([_.g(),_.N("design:type",Boolean)],Zl.prototype,"continuationDisablePrescanVisibility",void 0);_.T([_.g(),_.N("design:type",Boolean)],Zl.prototype,"isReloading",void 0);_.T([_.g(),_.N("design:type",Object)],Zl.prototype,"isSearch",void 0);_.T([_.g(),_.N("design:type",Object)],Zl.prototype,"isConstrainedList",void 0);_.T([_.g(),_.N("design:type",Object)],Zl.prototype,"isWatch",void 0);
_.T([_.g(),_.N("design:type",Object)],Zl.prototype,"eligibleToSwitchToGrid",void 0);_.T([_.g(),_.N("design:type",Object)],Zl.prototype,"useBigThumbs",void 0);_.T([_.g({selector:_.sm,reflectToAttribute:!0}),_.N("design:type",Object)],Zl.prototype,"isGridViewEnabled",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.N("design:type",Object)],Zl.prototype,"epRestyle",void 0);
_.T([_.x("isWatch"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zl.prototype,"hideShortsShelfHeader",null);_.T([_.x("isSearch","isWatch"),_.N("design:type",String),_.N("design:paramtypes",[])],Zl.prototype,"thumbnailWidth",null);_.T([_.x("isSearch","containerWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zl.prototype,"thumbnailTargetWidth",null);
_.T([_.x("isSearch","isWatch","useBigThumbs"),_.N("design:type",String),_.N("design:paramtypes",[])],Zl.prototype,"sizing",null);_.T([_.x("isWatch","isGridViewEnabled","useBigThumbs","data"),_.g({reflectToAttribute:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],Zl.prototype,"lockupContainerType",null);_.T([_.Yh("lockupContainerType","data"),_.N("design:type",Function),_.N("design:paramtypes",[Number]),_.N("design:returntype")],Zl.prototype,"updateLockupContainerTypes",null);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Zl.prototype,"pageSubtype",void 0);_.T([_.g(),_.N("design:type",Number)],Zl.prototype,"containerWidth",void 0);_.T([_.g(),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zl.prototype,"isPlaylist",null);_.T([_.g(),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zl.prototype,"isClipList",null);_.T([_.g(),_.N("design:type",Object)],Zl.prototype,"isCarouselInFeed",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zl.prototype,"isPlaylistVideoContainer",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zl.prototype,"isSearchFrictionPage",null);_.T([_.g({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.N("design:type",Boolean)],Zl.prototype,"useHeightHack",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.N("design:type",Object)],Zl.prototype,"topSpacingZero",void 0);_.T([_.g({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.N("design:type",Boolean)],Zl.prototype,"showButton",void 0);_.T([_.g(),_.N("design:type",Boolean)],Zl.prototype,"firstCommentsLoaded",void 0);_.T([_.g(),_.N("design:type",Object)],Zl.prototype,"continuationIsInitialLoad",void 0);
_.T([_.g({reflectToAttribute:!0,readOnly:!0}),_.N("design:type",Boolean)],Zl.prototype,"itemDismissed",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.N("design:type",String)],Zl.prototype,"sectionIdentifier",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.N("design:type",String)],Zl.prototype,"fitContainer",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.N("design:type",Boolean)],Zl.prototype,"hasDestinationShelfRenderer",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.N("design:type",Boolean)],Zl.prototype,"staticCommentsHeader",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Zl.prototype,"enableSqueezebackPanels",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Zl.prototype,"enableAnchoredPanel",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.N("design:type",Boolean)],Zl.prototype,"hasSectionGroupViewModel",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.N("design:type",Boolean)],Zl.prototype,"hasQrCodeRenderer",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.N("design:type",Boolean)],Zl.prototype,"suppressDisclaimerSeparator",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.N("design:type",String)],Zl.prototype,"headerStyle",void 0);_.T([_.x("isSearch","isWatch","useBigThumbs"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zl.prototype,"lockupExperiments",null);
_.T([_.x("isSearch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zl.prototype,"typographyBump",null);_.T([_.A2("#header"),_.N("design:type",HTMLElement)],Zl.prototype,"header",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Zl.prototype,"notSticky",void 0);_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],Zl.prototype,"useChipBarViewModelHeader",null);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zl.prototype,"expFixPlaylistHeader",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zl.prototype,"expFixPlaylistHeaderV2",null);_.T([_.Yh("pageSubtype"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zl.prototype,"updateStickySetup",null);
_.T([_.Yh("notSticky"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zl.prototype,"dispatchChipBarIsSticky",null);_.T([_.Yh("commentsHidePanelButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zl.prototype,"commentsHidePanelButtonChanged",null);_.T([_.Le("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Zl.prototype,"onRetrieveLocation",null);
_.T([_.Le("yt-load-reload-continuation"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Function]),_.N("design:returntype")],Zl.prototype,"onLoadReloadContinuation",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zl.prototype,"onServiceRequestCompleted",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zl.prototype,"dataChanged",null);
_.T([_.oi("data.contents.length"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zl.prototype,"observeDataContentsLength",null);_.T([_.Le("yt-dismissible-item-dismissed"),_.Le("yt-dismissible-item-undismissed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Zl.prototype,"onYtDismissibleItemDismissedChange",null);
_.T([_.Yh("continuationShowButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zl.prototype,"continuationShowButtonChanged",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zl.prototype,"dataChangedForBinding",null);_.T([_.sq({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Zl);
_.O(Zl,"ytd-item-section-renderer",function(){if(peq!==void 0)return peq;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return peq=X},{mode:1});var yQA;var ofm=_.xM(_.XS("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Vql={},lfN=(Vql[0]={title:_.Zi(_.XS("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Zi(_.XS("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.Gu("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Vql[1]={title:_.Zi(_.XS("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.Gu("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Vql);_.wd("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var is=function(){var X=_.a.apply(this,arguments)||this;X.allVideosCount=0;X.allPlaylistCount=0;X.isOnline=!1;X.shouldRenderDownloadsBanner=!1;X.shouldRenderDownloadsBannerUpsell=!1;X.hasOptedIntoSmartDownloads=!1;X.areAllSmartDownloadsDeleted=!1;X.smartDownloadsCompleted=!1;return X};
_.S(is,_.a);is.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
is.prototype.attached=function(){this.downloadsToRenderChanged()};
is.prototype.detached=function(){this.set("renderableData",{})};
is.prototype.downloadsToRenderChanged=function(){var X=_.WF().getState().entities,H=_.dR(X),l=_.P("kevlar_playlist_dl_page_killswitch")?PfN(X):_.h0(X),b=_.qvk(X),U=_.egL(X),K=_.U9(H);X=_.Fe(X);this.set("renderableData",UYO(l,H,b,U,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,K,X))};
is.prototype.downloadsToRenderChanged=is.prototype.downloadsToRenderChanged;_.T([_.k(_.sv),_.N("design:type",Object)],is.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],is.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],is.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],is.prototype,"renderableData",void 0);_.T([_.g({selector:_.GCN}),_.N("design:type",Object)],is.prototype,"allVideosCount",void 0);_.T([_.g({selector:Gny}),_.N("design:type",Object)],is.prototype,"allPlaylistCount",void 0);_.T([_.g({selector:_.u5}),_.N("design:type",Object)],is.prototype,"isOnline",void 0);_.T([_.g({selector:_.QIm}),_.N("design:type",Object)],is.prototype,"shouldRenderDownloadsBanner",void 0);
_.T([_.g({selector:_.jIZ}),_.N("design:type",Object)],is.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.T([_.g({selector:_.T28}),_.N("design:type",Object)],is.prototype,"hasOptedIntoSmartDownloads",void 0);_.T([_.g({selector:_.N2m}),_.N("design:type",Object)],is.prototype,"areAllSmartDownloadsDeleted",void 0);_.T([_.g({selector:cWZ}),_.N("design:type",Object)],is.prototype,"smartDownloadsCompleted",void 0);
_.T([_.oi("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],is.prototype,"downloadsToRenderChanged",null);_.T([_.sq({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],is);
_.O(is,"ytd-offline-item-section-renderer",function(){if(yQA!==void 0)return yQA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return yQA=X},
{mode:1});var PF5;var f65;var v3=function(){return _.a.apply(this,arguments)||this};
_.S(v3,_.a);
v3.prototype.onDataChanged=function(){if(this.JSC$17186_lastData){var X=this.getFilterClass(this.JSC$17186_lastData.status);X&&this.hostElement.classList.remove(X)}var H;(X=this.getFilterClass((H=this.data)==null?void 0:H.status))&&this.hostElement.classList.add(X);X==="selected"?_.mh(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.mh(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");X==="disabled"?_.mh(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.mh(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17186_lastData=this.data};
v3.prototype.getFilterClass=function(X){switch(X){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
v3.prototype.onDataChanged=v3.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],v3.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],v3.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],v3.prototype,"onDataChanged",null);_.T([_.sq({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],v3);
_.O(v3,"ytd-search-filter-renderer",function(){if(f65!==void 0)return f65;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return f65=X},{mode:2});var OY=function(){return _.a.apply(this,arguments)||this};
_.S(OY,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],OY.prototype,"data",void 0);_.T([_.sq({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],OY);
_.O(OY,"ytd-search-filter-group-renderer",function(){if(PF5!==void 0)return PF5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return PF5=X},{mode:2});var pz5;var md=function(){return _.a.apply(this,arguments)||this};
_.S(md,_.a);md.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.rb());this.isCollapsed=!this.isCollapsed};
md.prototype.navigateToAboutTheseResultsPage=function(){var X=_.Jb("https://www.youtube.com/howyoutubeworks/product-features/search/");X?_.wr(window,X,"_blank"):_.a0(Error("Vh"))};
md.prototype.dataChanged=function(){this.isCollapsed=!0};
md.prototype.computeShowBottomBorder=function(){var X,H,l;return!!((X=this.data)==null?0:(H=X.button)==null?0:H.toggleButtonRenderer)||!((l=this.data)==null||!l.aboutTheseResultsButton)};
md.prototype.dataChanged=md.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],md.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.N("design:type",Boolean)],md.prototype,"showBottomBorder",void 0);_.T([_.g(),_.N("design:type",Boolean)],md.prototype,"renderCollapsibleMenu",void 0);
_.T([_.g(),_.N("design:type",Boolean)],md.prototype,"isCollapsed",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],md.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],md);
_.O(md,"ytd-search-sub-menu-renderer",function(){if(pz5!==void 0)return pz5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return pz5=X},{mode:1});var SGA;var zCa=new _.gz("SECTION_LIST_RENDERER_TOKEN");var nQa;var Qp=function(){return _.a.apply(this,arguments)||this};
_.S(Qp,_.a);Qp.prototype.computeStyle=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Qp.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Qp.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],Qp.prototype,"headerStyle",void 0);_.T([_.sq({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Qp);
_.O(Qp,"ytd-text-header-renderer",function(){if(nQa!==void 0)return nQa;var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return nQa=X},{mode:1});var kYe;var TF=function(){return _.a.apply(this,arguments)||this};
_.S(TF,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],TF.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],TF.prototype,"data",void 0);_.T([_.sq({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],TF);
_.O(TF,"ytd-minor-moment-header-renderer",function(){if(kYe!==void 0)return kYe;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return kYe=X},{mode:1});var xvy;var NH=function(){return _.a.apply(this,arguments)||this};
_.S(NH,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],NH.prototype,"data",void 0);_.T([_.sq({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],NH);
_.O(NH,"ytd-minor-moment-setting-alert-renderer",function(){if(xvy!==void 0)return xvy;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return xvy=X},{mode:1});var DvN;var tqd;var c3=function(){var X=_.a.apply(this,arguments)||this;X.booleanSettingById=!1;X.smartDownloadsEnabledVE=_.cS(128287);X.smartDownloadsDisabledVE=_.cS(128286);X.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return X};
_.S(c3,_.a);_.R=c3.prototype;_.R.attachSmartDownloadsSettingVes=function(){var X;this.activeVeForLogging||((X=this.data)==null?void 0:X.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.rg(_.lv(),this.smartDownloadsEnabledVE),_.rg(_.lv(),this.smartDownloadsDisabledVE))};
_.R.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.QX(this.hostElement,"yt-settings-switch-ready")};
_.R.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.R.onSwitchChange=function(X){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(X=_.WM(X).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.P("kevlar_settings_switch_resolve_command_killswitch")?_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(X)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.R.handleUpdateSettingsSwitch=function(X){(X=_.f(X,NsY))&&this.data&&this.data.id===X.id&&this.set("data.enabled",!!X.enabled)};
_.R.onToggleSettingsSwitch=function(X,H){this.data&&this.data.id===X&&this.set("data.enabled",H!=null?H:!this.data.enabled)};
_.R.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.ac.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.R.maybeLogSmartDownloadsSettingVisibility=function(){var X=_.Bi(),H;X&&((H=this.data)==null?void 0:H.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.nA(X,[this.smartDownloadsEnabledVE]),_.kB(X,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.nA(X,[this.smartDownloadsDisabledVE]),_.kB(X,[this.smartDownloadsEnabledVE])))};
_.R.maybeLogSmartDownloadsSettingClick=function(){var X;((X=this.data)==null?void 0:X.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Lk(_.lv(),this.activeVeForLogging)};
_.R.updateDataEnabledFromBinding=function(X){this.set("data.enabled",X.detail.value)};
_.ja.Object.defineProperties(c3.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var X=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!X&&(X=this.ytRendererBehavior.getSimpleString(this.data.title));return X}}});
c3.prototype.dataChanged=c3.prototype.dataChanged;_.T([_.k(_.sv),_.N("design:type",Object)],c3.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],c3.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],c3.prototype,"ytComponentBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],c3.prototype,"data",void 0);_.T([_.g({selector:function(X,H){if(Object.keys(X==null?void 0:X.entities).length)switch(H){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return f$8(X.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.N("design:type",Object)],c3.prototype,"booleanSettingById",void 0);_.T([_.g(),_.N("design:type",_.h$)],c3.prototype,"activeVeForLogging",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],c3.prototype,"toggleAriaLabel",null);_.T([_.oi("data"),_.oi("booleanSettingById"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c3.prototype,"dataChanged",null);
_.T([_.sq({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],c3);
_.O(c3,"ytd-settings-switch-renderer",function(){if(tqd!==void 0)return tqd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return tqd=X},{mode:1});var jt=function(){return _.a.apply(this,arguments)||this};
_.S(jt,_.a);jt.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}}}}};
_.ja.Object.defineProperties(jt.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var X=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(X+=" remove-left-margin");this.data.extraBottomSpace&&(X+=" extra-bottom-space");return X}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],jt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],jt.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],jt.prototype,"contentsClassName",null);_.T([_.sq({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],jt);
_.O(jt,"ytd-minor-moment-setting-section-renderer",function(){if(DvN!==void 0)return DvN;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return DvN=X},{mode:1});var WDC;var rm=function(){return _.a.apply(this,arguments)||this};
_.S(rm,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],rm.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],rm.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],rm);
_.O(rm,"ytd-empty-product-details-renderer",function(){if(WDC!==void 0)return WDC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return WDC=X},{mode:1});var EQl;var gQa;var J_=function(){var X=_.a.apply(this,arguments)||this;X.expanded=!0;return X};
_.S(J_,_.a);J_.prototype.getBadgeRowClass=function(X,H,l){for(var b=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),U=b.next();!U.done;U=b.next())U.value.onShow();X=X.selected;return l?X!==-1?X===H?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(X!==void 0?X:0)===H?"badge-line":"badge-hidden"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],J_.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],J_.prototype,"expanded",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],J_);
_.O(J_,"ytd-sponsorships-loyalty-badges-renderer",function(){if(gQa!==void 0)return gQa;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return gQa=X},{mode:1});var GYA;var L3=function(){var X=_.a.apply(this,arguments)||this;X.expanded=!0;return X};
_.S(L3,_.a);L3.prototype.getContainerClasses=function(X,H){X=X?"expanded":"collapsed";H&&(X+=" item");return X};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],L3.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],L3.prototype,"expanded",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],L3);
_.O(L3,"ytd-sponsorships-perk-renderer",function(){if(GYA!==void 0)return GYA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return GYA=X},{mode:1});var a6a;var YK=function(){var X=_.a.apply(this,arguments)||this;X.expanded=!0;return X};
_.S(YK,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],YK.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],YK.prototype,"expanded",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],YK);
_.O(YK,"ytd-sponsorships-perks-renderer",function(){if(a6a!==void 0)return a6a;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return a6a=X},{mode:1});var In=function(){var X=_.a.apply(this,arguments)||this;X.isCollapsed=!1;return X};
_.S(In,_.a);In.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
In.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
In.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var X;this.expandCollapseButton=_.f((X=this.data)==null?void 0:X.expandButton,_.yB)}else{var H;this.expandCollapseButton=_.f((H=this.data)==null?void 0:H.collapseButton,_.yB)}};
In.prototype.updateExpandCollapseButton=In.prototype.updateExpandCollapseButton;In.prototype.onDataChanged=In.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],In.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],In.prototype,"isCollapsed",void 0);_.T([_.g(),_.N("design:type",Object)],In.prototype,"expandCollapseButton",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],In.prototype,"onDataChanged",null);_.T([_.oi("data","isCollapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],In.prototype,"updateExpandCollapseButton",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],In);
_.O(In,"ytd-sponsorships-expandable-perks-renderer",function(){if(EQl!==void 0)return EQl;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return EQl=X},{mode:1});var Z_C;var A_=function(){return _.a.apply(this,arguments)||this};
_.S(A_,_.a);A_.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],A_.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],A_.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],A_);
_.O(A_,"ytd-sponsorships-actionable-message-renderer",function(){if(Z_C!==void 0)return Z_C;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Z_C=X},{mode:1});var i_Z;var Xw=function(){return _.a.apply(this,arguments)||this};
_.S(Xw,_.a);_.R=Xw.prototype;_.R.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.R.getExpansionIcon=function(X){return X?"COLLAPSE":"EXPAND"};
_.R.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.R.computeMessageContainerStyle=function(X){var H=X.expandableItems?" style-clickable":"";return X.messageContainerStyle?X.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+H:"style-unspecified"+H};
_.R.isSinglePerk=function(X){return!!X.messageContainerStyle&&(X.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||X.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.R.onExpandedChanged=function(){var X=this;if(this.expanded)for(var H=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),l=H.next();!l.done;l=H.next())l.value.onShow();_.N0(this,function(){_.QX(X.hostElement,"yt-refit")})};
_.R.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Xw.prototype.onDataChanged=Xw.prototype.onDataChanged;Xw.prototype.onExpandedChanged=Xw.prototype.onExpandedChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Xw.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Xw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Xw.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Xw.prototype,"expanded",void 0);
_.T([_.Yh("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xw.prototype,"onExpandedChanged",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xw.prototype,"onDataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Xw);
_.O(Xw,"ytd-sponsorships-expandable-message-renderer",function(){if(i_Z!==void 0)return i_Z;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return i_Z=X},{mode:2});var vQC;var Hl=function(){return _.a.apply(this,arguments)||this};
_.S(Hl,_.a);Hl.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"}}}}};
Hl.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.f(this.data.endButton,_.yB).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Hl.prototype.onDataChanged=Hl.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Hl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Hl.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hl.prototype,"onDataChanged",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Hl);
_.O(Hl,"ytd-sponsorships-heading-renderer",function(){if(vQC!==void 0)return vQC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vQC=X},{mode:1});var O_Y;var l7=function(){return _.a.apply(this,arguments)||this};
_.S(l7,_.a);_.T([_.g(),_.N("design:type",Object)],l7.prototype,"data",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],l7);
_.O(l7,"ytd-sponsorships-links-renderer",function(){if(O_Y!==void 0)return O_Y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return O_Y=X},{mode:1});var mve;var oW=function(){return _.a.apply(this,arguments)||this};
_.S(oW,_.a);_.R=oW.prototype;_.R.onDataChanged=function(){if(this.data&&this.data.expandableItems){var X;(X=_.mh(this.hostElement).querySelector("tp-yt-paper-button"))==null||X.setAttribute("role","button")}else{var H;(H=_.mh(this.hostElement).querySelector("tp-yt-paper-button"))==null||H.removeAttribute("role")}};
_.R.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.R.getExpansionIcon=function(X){return X?"COLLAPSE":"EXPAND"};
_.R.getTileClasses=function(X){return X?"tile expandable-tile":"tile"};
_.R.getButtonDisabled=function(X){return X?void 0:""};
oW.prototype.onDataChanged=oW.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],oW.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],oW.prototype,"expanded",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oW.prototype,"onDataChanged",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],oW);
_.O(oW,"ytd-sponsorships-list-tile-renderer",function(){if(mve!==void 0)return mve;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return mve=X},{mode:1});var Q_A;var TtN;var b7=function(){return _.a.apply(this,arguments)||this};
_.S(b7,_.a);b7.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],b7.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],b7);
_.O(b7,"ytd-sponsorships-promotion-renderer",function(){if(TtN!==void 0)return TtN;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return TtN=X},{mode:1});var Ntl;var UB=function(){return _.a.apply(this,arguments)||this};
_.S(UB,_.a);UB.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],UB.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],UB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],UB.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],UB);
_.O(UB,"ytd-sponsorships-purchase-option-renderer",function(){if(Ntl!==void 0)return Ntl;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Ntl=X},{mode:1});var cQ5;var j_y;var rQy=function(){return _.a.apply(this,arguments)||this};
_.S(rQy,_.a);_.T([_.g(),_.N("design:type",Object)],rQy.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],rQy);
_.O(rQy,"ytd-ypc-offer-promo-renderer",function(){if(j_y!==void 0)return j_y;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return j_y=X},{mode:1});var $T=function(){return _.a.apply(this,arguments)||this};
_.S($T,_.a);_.R=$T.prototype;
_.R.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"}}}}};
_.R.expansionCTA=function(X,H){return X&&(H?X.collapseCallToAction:X.expansionCallToAction)};
_.R.getExpansionIcon=function(X){return X?"COLLAPSE":"EXPAND"};
_.R.expansionCallToActionTap=function(){var X=this;this.expanded=!this.expanded;_.N0(this,function(){_.QX(X.hostElement,"yt-refit")})};
_.R.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var X,H=(X=this.data)==null?void 0:X.onVisible;H&&this.ytComponentBehavior.resolveCommand(H)};
_.R.computeDisplayTitle=function(X){return!(!X||this.titledisplaystatus!=="show")};
_.R.computeDisplaySeparator=function(){return!1};
_.R.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
$T.prototype.onDataChanged=$T.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],$T.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$T.prototype,"data",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],$T.prototype,"expanded",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],$T.prototype,"purchaseButtonClicked",void 0);_.T([_.g({reflectToAttribute:!0,value:"show"}),_.N("design:type",String)],$T.prototype,"titledisplaystatus",void 0);_.T([_.g({computed:"computeDisplayTitle(data.title)"}),_.N("design:type",Boolean)],$T.prototype,"displayTitle",void 0);
_.T([_.g({computed:"computeDisplaySeparator(data)"}),_.N("design:type",Boolean)],$T.prototype,"displaySeparator",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$T.prototype,"onDataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],$T);
_.O($T,"ytd-sponsorships-tier-renderer",function(){if(cQ5!==void 0)return cQ5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return cQ5=X},{mode:2});var KI=function(){return _.a.apply(this,arguments)||this};
_.S(KI,_.a);
KI.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],KI.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],KI.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],KI);
_.O(KI,"ytd-sponsorships-management-renderer",function(){if(Q_A!==void 0)return Q_A;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Q_A=X},{mode:1});var JQA;var RW=function(){return _.a.apply(this,arguments)||this};
_.S(RW,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],RW.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],RW);
_.O(RW,"ytd-open-in-native-app-view-model",function(){if(JQA!==void 0)return JQA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return JQA=X},{mode:2});var LDp;var YGU;var I6p=_.W8(["top-"]),AQN=_.W8(["bottom-"]),Xp5=_.W8(["left-"]),Hdx=_.W8(["right-"]),lAd={},oUe=function(X,H,l){X.removeAttribute("top-"+l);X.removeAttribute("bottom-"+l);X.removeAttribute("left-"+l);X.removeAttribute("right-"+l);H&&(H.top&&_.uQ([_.p$(I6p)],X,"top-"+l,H.top),H.bottom&&_.uQ([_.p$(AQN)],X,"bottom-"+l,H.bottom),H.left&&_.uQ([_.p$(Xp5)],X,"left-"+l,H.left),H.right&&_.uQ([_.p$(Hdx)],X,"right-"+l,H.right))};
lAd.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(X){var H,l=_.mh((H=this.hostElement)!=null?H:this),b;H=this.cardItemBoxBehaviorMarginTargetId&&l?l.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(b=this.hostElement)!=null?b:this;oUe(H,X,"margin")},
cardItemContainerPaddingChanged_:function(X){var H,l=_.mh((H=this.hostElement)!=null?H:this),b;H=this.cardItemBoxBehaviorPaddingTargetId&&l?l.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(b=this.hostElement)!=null?b:this;oUe(H,X,"padding")}}];var CI={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 bde;var UZC;var wq=function(){return _.a.apply(this,arguments)||this};
_.S(wq,_.a);wq.prototype.textColorChanged_=function(){this.hostElement.style.color=CI[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
wq.prototype.textColorChanged_=wq.prototype.textColorChanged_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.T([_.k(lAd.YtCardItemBoxBehavior),_.N("design:type",Object)],wq.prototype,"ytCardItemBoxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],wq.prototype,"data",void 0);_.T([_.Yh("data.textColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wq.prototype,"textColorChanged_",null);
_.T([_.qR({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],wq);
_.O(wq,"yt-card-item-text-renderer",function(){if(UZC===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;bde===void 0&&(bde=document.createElement("template"));var b=bde;l.call(H,b.content.cloneNode(!0),X.content.firstChild);UZC=X}X=UZC;return X},{mode:2});var $Zl;var K$e;var dq=function(){return _.a.apply(this,arguments)||this};
_.S(dq,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],dq.prototype,"data",void 0);_.T([_.qR({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],dq);
_.O(dq,"yt-card-item-badge-renderer",function(){if(K$e===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;$Zl===void 0&&($Zl=document.createElement("template"));var b=$Zl;l.call(H,b.content.cloneNode(!0),X.content.firstChild);K$e=X}X=K$e;return X},{mode:2});var RlN;var Cxl;var hq=function(){return _.a.apply(this,arguments)||this};
_.S(hq,_.a);hq.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hq.prototype,"data",void 0);_.T([_.qR({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],hq);
_.O(hq,"yt-card-item-text-collection-renderer",function(){if(Cxl===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;RlN===void 0&&(RlN=document.createElement("template"));var b=RlN;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Cxl=X}X=Cxl;return X},{mode:2});var wpA;var dZA;var Fw=function(){return _.a.apply(this,arguments)||this};
_.S(Fw,_.a);Fw.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Fw.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Fw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Fw.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Number)],Fw.prototype,"iconSize",void 0);_.T([_.qR({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Fw);
_.O(Fw,"yt-card-item-text-with-button-renderer",function(){if(dZA===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;wpA===void 0&&(wpA=document.createElement("template"));var b=wpA;l.call(H,b.content.cloneNode(!0),X.content.firstChild);dZA=X}X=dZA;return X},{mode:2});var Bl=function(){return _.a.apply(this,arguments)||this};
_.S(Bl,_.a);Bl.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Bl.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Bl.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Bl);
_.O(Bl,"ytd-commerce-cart-summary-line-item-renderer",function(){if(YGU!==void 0)return YGU;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return YGU=X},{mode:1});_.wd("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var q3=function(){var X=_.a.apply(this,arguments)||this;X.hidden=!1;return X};
_.S(q3,_.a);_.R=q3.prototype;_.R.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"}}}}};
_.R.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.R.updateSummary=function(){var X=this.commerceCartCheckoutButtonEntity,H;if(((H=this.data)==null?0:H.cartButton)&&X.checkoutSummaryText){var l,b=qf((l=this.data)==null?void 0:l.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+b+".cardItemTextRenderer.text",sF(X.checkoutSummaryText));if(X.checkoutDetailText){var U;l=qf((U=this.data)==null?void 0:U.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+l+".cardItemTextRenderer.text",sF(X.checkoutDetailText))}if(X.checkoutAdditionalMetadataText){var K;
U=qf((K=this.data)==null?void 0:K.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+U+".cardItemTextRenderer.text",sF(X.checkoutAdditionalMetadataText))}}else X.estimatedTotalPrice&&(K=qf((b=this.data)==null?void 0:b.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+K+".cardItemTextRenderer.text",sF(X.estimatedTotalPrice)))};
_.R.updateIsHidden=function(){var X,H=(X=this.commerceCartCheckoutButtonEntity)==null?void 0:X.isHidden;H!==void 0&&(this.hidden=H)};
_.R.updateCheckoutButton=function(){var X,H=(X=this.commerceCartCheckoutButtonEntity)==null?void 0:X.isDisabled;H!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",H);var l;X=(l=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:l.innertubeCommand;X!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",X);var b;l=(b=this.commerceCartCheckoutButtonEntity)==null?void 0:b.checkoutButtonText;l!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:l})};
q3.prototype.entityChanged=q3.prototype.entityChanged;_.T([_.k(_.sv),_.N("design:type",Object)],q3.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],q3.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],q3.prototype,"fullWidth",void 0);_.T([_.g(),_.N("design:type",Object)],q3.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],q3.prototype,"compact",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],q3.prototype,"hidden",void 0);
_.T([_.g({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:D2h}),_.N("design:type",Object)],q3.prototype,"commerceCartCheckoutButtonEntity",void 0);_.T([_.Yh("commerceCartCheckoutButtonEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q3.prototype,"entityChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],q3);
_.O(q3,"ytd-commerce-cart-checkout-button-renderer",function(){if(LDp!==void 0)return LDp;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return LDp=X},{mode:2});var hlN;_.F$x={};
_.F$x.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",_.J2(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.J2(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(X){!this.tappableItemBehaviorTapEnabled||X.keyCode!==13&&X.keyCode!==32||X.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var X=this.data.onTap;X.ypcGetCartEndpoint?(_.ci(this.hostElement,[X]),this.tappableItemBehaviorTapEnabled=!1):X.ypcOffersEndpoint?_.ci(this.hostElement,[X]):_.j7(this.hostElement,[X],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(X){this.tappableItemBehaviorTapEnabled=!!X},
tappableItemBehaviorOnTapEnabledChanged_:function(){var X=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(X.setAttribute("tabIndex",0),X.setAttribute("role","button")):(X.removeAttribute("tabIndex"),X.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(X){X.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var BYZ;var qay;var sB=function(){return _.a.apply(this,arguments)||this};
_.S(sB,_.a);sB.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.dd("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.dd("sharingToggleButtonAndDefaultButton")}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],sB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],sB.prototype,"data",void 0);_.T([_.qR({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],sB);
_.O(sB,"yt-card-item-actions-renderer",function(){if(qay===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;BYZ===void 0&&(BYZ=document.createElement("template"));var b=BYZ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);qay=X}X=qay;return X},{mode:2});var sC5;var Myx;var u5d;var ele;var yNy;var Vyy;var M3=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return X};
_.S(M3,_.a);M3.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
M3.prototype.handleDarkModeToggledAction_=function(X){this.isDarkTheme_=X};
M3.prototype.computeThemeImage_=function(X,H){if(!X||!X.imageLight)return!1;this.isCircular_=X.isCircular;X.imageWidth&&(this.hostElement.style.width=X.imageWidth+"px");X.imageHeight&&(this.hostElement.style.height=X.imageHeight+"px");X.borderWidth&&(this.image.style.borderWidth=X.borderWidth+"px",this.image.style.borderStyle="solid");X.borderColor&&(this.image.style.borderColor=_.qw(X.borderColor));return H&&X.imageDark?X.imageDark:X.imageLight};
M3.prototype.computeThemeIcon_=function(X){var H,l;if(!(X==null?0:(H=X.themedIcon)==null?0:(l=H.icon)==null?0:l.iconType))return!1;this.icon.style.color=CI[X.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(X.imageWidth||18)+"px";this.icon.style.height=(X.imageHeight||18)+"px";return _.jL(X.themedIcon.icon.iconType)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],M3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(lAd.YtCardItemBoxBehavior),_.N("design:type",Object)],M3.prototype,"ytCardItemBoxBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],M3.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],M3.prototype,"data",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],M3.prototype,"fit",void 0);_.T([_.g(),_.N("design:type",Boolean)],M3.prototype,"isDarkTheme_",void 0);_.T([_.g({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.N("design:type",Object)],M3.prototype,"themeImage_",void 0);_.T([_.g({computed:"computeThemeIcon_(data)"}),_.N("design:type",Object)],M3.prototype,"themeIcon_",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],M3.prototype,"isCircular_",void 0);
_.T([_.A2("#image"),_.N("design:type",Object)],M3.prototype,"image",void 0);_.T([_.A2("#icon"),_.N("design:type",Object)],M3.prototype,"icon",void 0);_.T([_.qR({is:"yt-themed-image-renderer",disableElementRegistration:!0})],M3);
_.O(M3,"yt-themed-image-renderer",function(){if(Vyy===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;yNy===void 0&&(yNy=document.createElement("template"));var b=yNy;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Vyy=X}X=Vyy;return X},{mode:2});var u7=function(){return _.a.apply(this,arguments)||this};
_.S(u7,_.a);u7.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"}}}}};
u7.prototype.computeImagePlacement_=function(X){return X||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],u7.prototype,"data",void 0);_.T([_.g({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.N("design:type",String)],u7.prototype,"imagePlacement",void 0);
_.T([_.qR({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],u7);
_.O(u7,"yt-card-item-text-with-image-renderer",function(){if(ele===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;u5d===void 0&&(u5d=document.createElement("template"));var b=u5d;l.call(H,b.content.cloneNode(!0),X.content.firstChild);ele=X}X=ele;return X},{mode:2});var eG=function(){return _.a.apply(this,arguments)||this};
_.S(eG,_.a);eG.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],eG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],eG.prototype,"data",void 0);_.T([_.qR({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],eG);
_.O(eG,"yt-card-item-error-renderer",function(){if(Myx===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;sC5===void 0&&(sC5=document.createElement("template"));var b=sC5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Myx=X}X=Myx;return X},{mode:2});var Px$;var fAd;_.wd("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var yG=function(){return _.a.apply(this,arguments)||this};
_.S(yG,_.a);_.R=yG.prototype;
_.R.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"}}}}};
_.R.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.R.backgroundColorChanged_=function(){var X,H=(X=this.data)==null?void 0:X.backgroundColor;X=CI[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.mh(this.hostElement).querySelector("#main-content").style.backgroundColor=X};
_.R.headerPromoBackgroundColorChanged_=function(){var X,H=(X=this.data)==null?void 0:X.headerPromoBackgroundColor;X=CI[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.mh(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=X};
_.R.errorRendererVisibilityChanged_=function(){var X=this.isExpanded_,H;this.isErrorRendererVisible_=!((H=this.data)==null||!H.errorRenderer)&&!X};
_.R.onYtToggleButton_=function(X,H){this.isExpanded_=H.toggled};
yG.prototype.onYtToggleButton_=yG.prototype.onYtToggleButton_;yG.prototype.errorRendererVisibilityChanged_=yG.prototype.errorRendererVisibilityChanged_;yG.prototype.headerPromoBackgroundColorChanged_=yG.prototype.headerPromoBackgroundColorChanged_;yG.prototype.backgroundColorChanged_=yG.prototype.backgroundColorChanged_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(lAd.YtCardItemBoxBehavior),_.N("design:type",Object)],yG.prototype,"ytCardItemBoxBehavior",void 0);_.T([_.k(_.F$x.YtTappableItemBehavior),_.N("design:type",Object)],yG.prototype,"ytTappableItemBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],yG.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],yG.prototype,"isExpanded_",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],yG.prototype,"isErrorRendererVisible_",void 0);_.T([_.Yh("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yG.prototype,"backgroundColorChanged_",null);_.T([_.Yh("data.headerPromoBackgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yG.prototype,"headerPromoBackgroundColorChanged_",null);
_.T([_.Yh("data.errorRenderer","isExpanded_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yG.prototype,"errorRendererVisibilityChanged_",null);_.T([_.Le("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],yG.prototype,"onYtToggleButton_",null);_.T([_.qR({is:"yt-card-item-renderer",disableElementRegistration:!0})],yG);
_.O(yG,"yt-card-item-renderer",function(){if(fAd===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Px$===void 0&&(Px$=document.createElement("template"));var b=Px$;l.call(H,b.content.cloneNode(!0),X.content.firstChild);fAd=X}X=fAd;return X},{mode:2});_.wd("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var VG=function(){var X=_.a.apply(this,arguments)||this;X.hidden=!1;return X};
_.S(VG,_.a);_.R=VG.prototype;_.R.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.R.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.R.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var X,H=(X=this.commerceCartHeaderEntity)==null?void 0:X.isHidden;H!==void 0&&(this.hidden=H)}};
_.R.updateTitle=function(){var X=this.commerceCartHeaderEntity.isDisabled,H,l,b=(l=_.f((H=this.data)==null?void 0:H.item,T3H))==null?void 0:l.headingRenderer;b&&(H=qf(b,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+H+".0.cardItemTextRenderer.textColor",X?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.R.updateSummaryText=function(){var X=this.commerceCartHeaderEntity;if(this.compact){var H,l,b=(l=_.f((H=this.data)==null?void 0:H.item,T3H))==null?void 0:l.headingRenderer;b&&(H=qf(b,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+H+".1.cardItemTextRenderer.text",X.shortHeaderSummaryText?sF(X.shortHeaderSummaryText):X.headerSummaryText?sF(X.headerSummaryText):""))}else{var U;if(H=(U=_.f((b=this.data)==null?void 0:b.item,T3H))==null?void 0:U.additionalInfoRenderer)H=qf(H,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".text",X.headerSummaryText?sF(X.headerSummaryText):"")}};
_.R.updateCheckoutButton=function(){var X=this.commerceCartHeaderEntity,H,l,b=(l=_.f((H=this.data)==null?void 0:H.item,T3H))==null?void 0:l.additionalInfoRenderer;H=qf(b,"buttonRenderer");var U;l=(U=this.commerceCartHeaderEntity)==null?void 0:U.isButtonDisabled;var K;U=(K=this.commerceCartHeaderEntity)==null?void 0:K.isButtonHidden;l!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".buttonRenderer.isDisabled",l);U!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
U);var w;X=(w=X.checkoutButtonCommand)==null?void 0:w.innertubeCommand;X!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+H+".buttonRenderer.command",X)};
VG.prototype.entityChanged=VG.prototype.entityChanged;_.T([_.k(_.sv),_.N("design:type",Object)],VG.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],VG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],VG.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],VG.prototype,"compact",void 0);_.T([_.g({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(X,H){return _.JY(X.entities,"commerceCartHeaderEntity",H)}}),
_.N("design:type",Object)],VG.prototype,"commerceCartHeaderEntity",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],VG.prototype,"hidden",void 0);_.T([_.Yh("commerceCartHeaderEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VG.prototype,"entityChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],VG);
_.O(VG,"ytd-commerce-cart-header-renderer",function(){if(hlN!==void 0)return hlN;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return hlN=X},{mode:1});var pp$;var Sal=_.qO(function(X,H){var l;return(l=X.onChangeCallback)==null?void 0:l.call(X,H)},1E3),zlY=_.Z(function(X){var H=X.data;
var l=X.iconMinus;X=X.iconPlus;var b=function(){return!!H().disabled},U=_.C(_.FU(0,void 0,"mKh0af")),K=U.next().value,w=U.next().value;
U=_.Nq(function(){if(K()===1){var e,y;(y=(e=H()).onRemoveCommand)==null||y.call(e)}e=K()>H().maxValue?H().maxValue:K()-1;w(e);Sal(H(),e);return!1});
var d=_.Nq(function(){if(K()===H().maxValue)return!1;var e=K()+1;w(e);Sal(H(),e);return!1});
_.xy(function(){w(H().value)});
var B={},q={},u={};return _.F("quantity-incrementer-shape",null,_.F("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.F("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return K()===(H().onRemoveCommand?0:1)||b()},
"aria-label":function(){return K()!==1?H().minusLabel:H().minimumReachedLabel},
"on:click":U},_.F(_.iJ,{model:{circular:!0}}),_.F("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.F("div",{class:_.Qr("ytSpecQuantityIncrementerShapeIcon",(B.ytSpecQuantityIncrementerShapeIconDisabled=function(){return b()||K()===(H().onRemoveCommand?0:1)},B))},l()))),_.F("div",{class:_.Qr("ytSpecQuantityIncrementerShapeText",(q.ytSpecQuantityIncrementerShapeTextInvalid=function(){return K()>H().maxValue},q.ytSpecQuantityIncrementerShapeTextDisabled=b,q))},K),_.F("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return K()>=H().maxValue||b()},
"aria-label":function(){return K()!==H().maxValue?H().plusLabel:H().maximumReachedLabel},
"on:click":d},_.F(_.iJ,{model:{circular:!0}}),_.F("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.F("div",{class:_.Qr("ytSpecQuantityIncrementerShapeIcon",(u.ytSpecQuantityIncrementerShapeIconDisabled=function(){return K()>=H().maxValue||b()},u))},X())))))},"Vf");_.gC(_.Z(function(X){function H(){l().onRemoveCommand&&_.yr(l().onRemoveCommand)}
var l=X.data;var b=_.Aw(NAN,function(){return l().quantityIncrementerEntityKey});
return _.F("yt-quantity-incrementer-view-model",null,_.F(zlY,{data:function(){var U=l(),K;var w=b()?!((K=b())==null||!K.disabled):!1;var d;K=b()?(d=b())==null?void 0:d.quantity:l().quantity;return RUy(U,w,H,K)},
iconMinus:function(){return _.F(_.Ja,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.F(_.Ja,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Wf"),"yt-quantity-incrementer-view-model",{props:{data:_.zh}});var Pl=function(){var X=_.a.apply(this,arguments)||this;X.compact=!1;X.hasQuantityIncrementer=!1;return X};
_.S(Pl,_.a);Pl.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"}}}};
Pl.prototype.computeHasQuantityIncrementer=function(){var X;return!!_.f((X=this.data)==null?void 0:X.picker,rT9)};
Pl.prototype.onLabelClick=function(){var X;(X=this.dropdownEl)==null||X.open()};
_.T([_.A2("ytd-dropdown-renderer"),_.N("design:type",Object)],Pl.prototype,"dropdownEl",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Pl.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Pl.prototype,"quantityColor",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Pl.prototype,"compact",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.N("design:type",Object)],Pl.prototype,"hasQuantityIncrementer",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Pl);
_.O(Pl,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(pp$!==void 0)return pp$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return pp$=X},{mode:1});var nUa;var kZe;var fI=function(){return _.a.apply(this,arguments)||this};
_.S(fI,_.a);fI.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fI.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
fI.prototype.updateTitle=function(){var X=this.disabledCartItemEntity;X.disableActionName&&this.set("data.title",sF(X.disableActionName))};
fI.prototype.updateButton=function(){var X,H=(X=this.disabledCartItemEntity.undoCommand)==null?void 0:X.innertubeCommand;H!==void 0&&(this.set("data.actionButton.buttonRenderer.command",H),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
fI.prototype.entityChanged=fI.prototype.entityChanged;_.T([_.k(_.sv),_.N("design:type",Object)],fI.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(X,H){return _.JY(X.entities,"disabledCartItemEntity",H)}}),
_.N("design:type",Object)],fI.prototype,"disabledCartItemEntity",void 0);_.T([_.g(),_.N("design:type",Object)],fI.prototype,"data",void 0);_.T([_.Yh("disabledCartItemEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fI.prototype,"entityChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],fI);
_.O(fI,"ytd-disabled-cart-item-renderer",function(){if(kZe!==void 0)return kZe;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return kZe=X},{mode:1});_.wd("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var pI=function(){var X=_.a.apply(this,arguments)||this;X.compact=!1;X.hidden=!1;X.errorHidden=!1;X.noOnTap=!1;return X};
_.S(pI,_.a);_.R=pI.prototype;
_.R.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"}}}};
_.R.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.R.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var X=this.firstButtonElement;X.alignByText=!0;X.iconAlignByText=!0}};
_.R.computeNoOnTap=function(X){return!X};
_.R.updateQuantityColor=function(){if(this.pickerElement){var X,H=(X=this.commerceCartItemEntity)==null?void 0:X.quantityColor;this.pickerElement.quantityColor=H}};
_.R.updateTotalPriceColor=function(){var X,H=(X=this.commerceCartItemEntity)==null?void 0:X.totalPriceColor;if(H){var l;X=_.f((l=this.data)==null?void 0:l.quantityPicker,cTQ);if(l=_.f(X==null?void 0:X.price,N3_))l.textColor=H}};
_.R.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var X,H=(X=this.commerceCartItemEntity)==null?void 0:X.isHidden;H!==void 0&&(this.hidden=H)}};
_.R.updateHideErrorMessage=function(){var X,H=(X=this.commerceCartItemEntity)==null?void 0:X.hideErrorMessage;H!==void 0&&(this.errorHidden=H)};
_.R.updateQuantity=function(){var X=this,H,l=(H=this.commerceCartItemEntity)==null?void 0:H.quantity,b;H=(b=this.commerceCartItemEntity)==null?void 0:b.totalPrice;if(l){this.updateTotalPriceColor();this.updateQuantityColor();var U;b=_.f((U=this.data)==null?void 0:U.quantityPicker,cTQ);if(U=_.f(b==null?void 0:b.price,N3_))U.text=H?{simpleText:H.content}:void 0;if(H=_.f(b==null?void 0:b.picker,rT9))H.quantity=l;var K;if(U=(K=_.f(b==null?void 0:b.picker,cLv))==null?void 0:K.entries){K=!1;H=void 0;U=
_.C(U);for(b=U.next();!b.done;b=U.next())b=b.value,b.dropdownItemRenderer&&(H||(H=b.dropdownItemRenderer),b.dropdownItemRenderer.isSelected=!1,l===b.dropdownItemRenderer.int32Value&&(K=!0,b.dropdownItemRenderer.isSelected=!0));!K&&H&&(H.isSelected=!0)}_.N0(this,function(){var w;X.set("data.quantityPicker",_.Bb.unsafeClone((w=X.data)==null?void 0:w.quantityPicker))})}};
pI.prototype.onYtRendererstamperFinished=pI.prototype.onYtRendererstamperFinished;pI.prototype.entityChanged=pI.prototype.entityChanged;_.T([_.g(),_.N("design:type",Object)],pI.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pI.prototype,"compact",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],pI.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],pI.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(X,H){return _.JY(X.entities,"commerceCartItemEntity",H)}}),
_.N("design:type",Object)],pI.prototype,"commerceCartItemEntity",void 0);_.T([_.g(),_.N("design:type",Object)],pI.prototype,"quantityPicker",void 0);_.T([_.g(),_.N("design:type",Object)],pI.prototype,"compactQuantityPicker",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pI.prototype,"hidden",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pI.prototype,"errorHidden",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.N("design:type",Object)],pI.prototype,"noOnTap",void 0);_.T([_.A2("ytd-commerce-cart-item-quantity-picker-renderer"),_.N("design:type",Object)],pI.prototype,"pickerElement",void 0);_.T([_.A2("yt-button-renderer"),_.N("design:type",Element)],pI.prototype,"firstButtonElement",void 0);
_.T([_.Yh("commerceCartItemEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pI.prototype,"entityChanged",null);_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pI.prototype,"onYtRendererstamperFinished",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],pI);
_.O(pI,"ytd-commerce-cart-item-renderer",function(){if(nUa!==void 0)return nUa;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return nUa=X},{mode:2});var xZe;var DZC;var SG=function(){return _.a.apply(this,arguments)||this};
_.S(SG,_.a);SG.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}}}}}};
SG.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
SG.prototype.updateCheckoutLineItems=function(){var X,H=(X=this.commerceCartCheckoutButtonEntity)==null?void 0:X.checkoutLineItems;H&&(X=H.map(function(l){a:{var b=l.price,U=l.description;switch(l.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":l={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:sF(U),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:sF(b),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:l={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:sF(U),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:sF(b),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 l}),this.set("data.summaryLineItems",X))};
SG.prototype.updateIsHidden=function(){var X,H=(X=this.commerceCartCheckoutButtonEntity)==null?void 0:X.isHidden;H!==void 0&&(this.hostElement.hidden=H)};
SG.prototype.entityChanged=SG.prototype.entityChanged;_.T([_.k(_.sv),_.N("design:type",Object)],SG.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],SG.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],SG.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],SG.prototype,"data",void 0);_.T([_.g({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:D2h}),_.N("design:type",Object)],SG.prototype,"commerceCartCheckoutButtonEntity",void 0);_.T([_.Yh("commerceCartCheckoutButtonEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SG.prototype,"entityChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],SG);
_.O(SG,"ytd-commerce-cart-summary-renderer",function(){if(DZC!==void 0)return DZC;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return DZC=X},{mode:1});var tyU={};tyU.InjectBehavior=[Ozy.InjectBehavior];var W$e;var EU$;var zL=function(){return _.a.apply(this,arguments)||this};
_.S(zL,_.a);
zL.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:_.dd("menuRenderer")}}};
zL.prototype.onMenuTap=function(X){X.stopPropagation()};
_.ja.Object.defineProperties(zL.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 X,H;return!(((X=this.data)==null||!X.sectionHeading)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var X,H;return!(((X=this.data)==null||!X.image)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var X,H;return!(((X=this.data)==null||!X.menu)&&((H=this.data)==null?void 0:H.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.F$x.YtTappableItemBehavior),_.N("design:type",Object)],zL.prototype,"ytTappableItemBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],zL.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("data.accessibilityData"),_.N("design:type",String),_.N("design:paramtypes",[])],zL.prototype,"ariaLabel",null);_.T([_.x("data.sectionHeading","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zL.prototype,"sectionHeadingVisible",null);_.T([_.x("data.image","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zL.prototype,"imageVisible",null);
_.T([_.x("data.menu","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zL.prototype,"menuVisible",null);_.T([_.qR({is:"yt-activity-item-renderer",disableElementRegistration:!0})],zL);
_.O(zL,"yt-activity-item-renderer",function(){if(EU$===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;W$e===void 0&&(W$e=document.createElement("template"));var b=W$e;l.call(H,b.content.cloneNode(!0),X.content.firstChild);EU$=X}X=EU$;return X},{mode:2});var gUY;var GZx;var aAa;var ZdY;var nI=function(){return _.a.apply(this,arguments)||this};
_.S(nI,_.a);
nI.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"}}}}};
nI.prototype.backgroundColorChanged_=function(){var X,H=(X=this.data)==null?void 0:X.backgroundColor;this.hostElement.style.backgroundColor=CI[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
nI.prototype.backgroundColorChanged_=nI.prototype.backgroundColorChanged_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],nI.prototype,"data",void 0);
_.T([_.Yh("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nI.prototype,"backgroundColorChanged_",null);_.T([_.qR({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],nI);
_.O(nI,"yt-offer-item-upsell-renderer",function(){if(ZdY===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;aAa===void 0&&(aAa=document.createElement("template"));var b=aAa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);ZdY=X}X=ZdY;return X},{mode:2});_.wd("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var kT=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};X.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return X};
_.S(kT,_.a);_.R=kT.prototype;
_.R.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:_.dd("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.R.computeContainerStyle_=function(X){return X};
_.R.computeContainerIsHidden_=function(X){return X&&!!X.isHidden};
_.R.computeShowSpinner_=function(X,H){return X&&H==="in-progress"};
_.R.computeShowMoreContentsButton_=function(X,H,l,b,U){return!(!(b&&b.length||U&&U.length&&l)||!X||H)};
_.R.onToggleButton_=function(X){var H=this;X.stopPropagation();this.isExpanded_=X.detail&&X.detail.toggled;var l,b;this.isExpanded_&&!this.data.continuationSection.length&&((l=this.data)==null?0:(b=l.continuation)==null?0:b.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.QX(this.hostElement,"yt-load-next-continuation",function(U){return H.getContinuationUrl_(H.data.continuation.onClickContinuationData,U)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.ci(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.R.onShowMoreContentsButtonClicked_=function(X){var H=this;X.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.QX(this.hostElement,"yt-load-next-continuation",function(l){return H.getContinuationUrl_(H.data.continuations[0].nextContinuationData,l)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.ci(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.R.getContinuationUrl_=function(X,H){var l=X.continuation;X=X.clickTrackingParams;var b=_.Bi();X&&b&&_.xB(b,_.$l(X));return _.An(H,{continuation:l})};
_.R.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var X=_.mh(this.hostElement).querySelector("#continuation-section");X&&(X=X.querySelectorAll("ytmusic-item-section-renderer"))&&X.forEach(function(H){return H.classList.add("memberships-and-purchases")})};
_.R.dataChanged_=function(){var X;this.isExpanded_=!((X=this.data)==null||!X.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.R.updateCardOnClickCommand_=function(X){X=_.f(X,G4D);var H,l;this.data&&((H=this.data)==null?0:H.targetId)&&X&&X.targetId===((l=this.data)==null?void 0:l.targetId)&&X.onClickCommand&&(this.data.onClickCommand=X.onClickCommand,this.isOnClickCommand_=!0)};
_.R.backgroundColorChanged_=function(){var X,H=(X=this.data)==null?void 0:X.backgroundColor;this.hostElement.style.backgroundColor=CI[H||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
kT.prototype.backgroundColorChanged_=kT.prototype.backgroundColorChanged_;kT.prototype.dataChanged_=kT.prototype.dataChanged_;kT.prototype.nextContinuationDataUpdated_=kT.prototype.nextContinuationDataUpdated_;kT.prototype.onToggleButton_=kT.prototype.onToggleButton_;_.T([_.k(_.EO),_.N("design:type",Object)],kT.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],kT.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],kT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.ge.YtNextContinuationBehavior),_.N("design:type",Object)],kT.prototype,"ytNextContinuationBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.T([_.k(tyU.InjectBehavior),_.N("design:type",Object)],kT.prototype,"injectBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],kT.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],kT.prototype,"compact",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],kT.prototype,"isExpanded_",void 0);_.T([_.g({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.N("design:type",String)],kT.prototype,"containerStyle_",void 0);_.T([_.g({value:"not-started"}),_.N("design:type",String)],kT.prototype,"continuationStatus_",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.N("design:type",Boolean)],kT.prototype,"showSpinner_",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],kT.prototype,"isOnClickCommand_",void 0);_.T([_.g({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.N("design:type",Boolean)],kT.prototype,"showMoreContentsButton_",void 0);
_.T([_.g({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(X,H){return!H||X.entities?null:_.JY(X.entities,"cardItemContainerEntity",H)}}),
_.N("design:type",Object)],kT.prototype,"cardItemContainerEntity_",void 0);_.T([_.Le("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],kT.prototype,"onToggleButton_",null);_.T([_.Le("yt-next-continuation-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kT.prototype,"nextContinuationDataUpdated_",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kT.prototype,"dataChanged_",null);_.T([_.Yh("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kT.prototype,"backgroundColorChanged_",null);_.T([_.qR({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],kT);
_.O(kT,"yt-card-item-container-renderer",function(){if(GZx===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;gUY===void 0&&(gUY=document.createElement("template"));var b=gUY;l.call(H,b.content.cloneNode(!0),X.content.firstChild);GZx=X}X=GZx;return X},{mode:2});var xT=function(){return _.a.apply(this,arguments)||this};
_.S(xT,_.a);xT.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"}}}};
xT.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
xT.prototype.computeLoadingHidden=function(){var X;return!((X=this.commerceCartPageStateEntity)==null?0:X.cartActionInProgress)};
xT.prototype.updateNotification=function(){var X,H=(X=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:X.summaryText;H&&this.set("data.cartNotification",sF(H))};
xT.prototype.notificationEntityChanged=xT.prototype.notificationEntityChanged;_.T([_.k(_.sv),_.N("design:type",Object)],xT.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],xT.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],xT.prototype,"data",void 0);_.T([_.g({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(X,H){return _.JY(X.entities,"commerceCartExpandableNotificationEntity",H)}}),
_.N("design:type",Object)],xT.prototype,"commerceCartExpandableNotificationEntity",void 0);_.T([_.g({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(X,H){return _.JY(X.entities,"commerceCartPageStateEntity",H)}}),
_.N("design:type",Object)],xT.prototype,"commerceCartPageStateEntity",void 0);_.T([_.A2("#spinner"),_.N("design:type",HTMLElement)],xT.prototype,"spinner",void 0);_.T([_.Yh("commerceCartExpandableNotificationEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xT.prototype,"notificationEntityChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],xT);
_.O(xT,"ytd-commerce-cart-renderer",function(){if(xZe!==void 0)return xZe;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return xZe=X},{mode:1});var idd;var DB=function(){var X=_.a.apply(this,arguments)||this;X.bigImage=!1;return X};
_.S(DB,_.a);_.ja.Object.defineProperties(DB.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.placeholderImageUrl}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],DB.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],DB.prototype,"bigImage",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],DB.prototype,"placeholderImageUrl",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],DB);
_.O(DB,"ytd-empty-product-shelf-renderer",function(){if(idd!==void 0)return idd;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return idd=X},{mode:1});var vUA;var tq=function(){var X=_.a.apply(this,arguments)||this;X.itemStyle="link-item";X.watchMetadataRefresh=!1;X.skinnyMode=!1;X.metaPanel=!1;X.inStructuredDescription=!1;X.detailedDescriptionOverride=!1;X.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};X.updateOnResizeDebouncer=null;return X};
_.S(tq,_.a);_.R=tq.prototype;_.R.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.R.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"}}}}};
_.R.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.R.attachVEs=function(X){X.trackingParams&&_.lv().graftServerVe(X.trackingParams)};
_.R.handleUpdateMerchShelfAction=function(X){var H=this,l=_.f(X.updateMerchandiseShelfAction.merchandiseShelf,_.KsY);l&&(l.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){H.attachVEs(l);H.data=l},Number(l.renderDelayMs))):(this.attachVEs(l),this.data=l))};
_.R.updateOnResize=function(){if(this.JSC$17354_scrollContainer!==void 0&&this.JSC$17354_scrollContainer.clientWidth!==0&&this.items!==void 0){var X=this.JSC$17354_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-X));this.ytdHorizontalListBehavior.reposition_();var H;switch((H=this.data)==null?void 0:H.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var l,
b;((l=this.data)==null?void 0:(b=l.items)==null?void 0:b.length)===1?this.itemStyle="cta-item":this.itemStyle=X>=740?"large-item":"small-item"}}};
_.R.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Qy(this.updateOnResizeDebouncer,_.DK.after(100),this.updateOnResize)};
tq.prototype.debouncedUpdateOnResize=tq.prototype.debouncedUpdateOnResize;tq.prototype.dataChanged=tq.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.Z$.YtdHorizontalListBehavior),_.N("design:type",Object)],tq.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],tq.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],tq.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],tq.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tq.prototype,"itemStyle",void 0);_.T([_.g({value:6}),_.N("design:type",Number)],tq.prototype,"initialCount",void 0);
_.T([_.g({value:"data.items"}),_.N("design:type",String)],tq.prototype,"itemsPath",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tq.prototype,"watchMetadataRefresh",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tq.prototype,"skinnyMode",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tq.prototype,"metaPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tq.prototype,"inStructuredDescription",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tq.prototype,"detailedDescriptionOverride",void 0);_.T([_.A2("#items"),_.N("design:type",HTMLDivElement)],tq.prototype,"items",void 0);_.T([_.A2("#scroll-container"),_.N("design:type",HTMLDivElement)],tq.prototype,"JSC$17354_scrollContainer",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tq.prototype,"dataChanged",null);
_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tq.prototype,"debouncedUpdateOnResize",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],tq);
_.O(tq,"ytd-merch-shelf-renderer",function(){if(vUA!==void 0)return vUA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vUA=X},{mode:2});var OdA;var Wl=function(){var X=_.a.apply(this,arguments)||this;X.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 X};
_.S(Wl,_.a);_.R=Wl.prototype;
_.R.addBackstagePostAction=function(X){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(X=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",X))&&(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:X}):this.set("data.contents",[{backstagePostThreadRenderer:X}]))};
_.R.addBackstageCommentAction=function(X){var H=this.get("addBackstageCommentAction.parentId",X);X=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",X);if(H&&X){H=this.postIdToIndices(H);for(var l=0;l<H.length;l++){var b=H[l];if(b<0)break;b="data.contents."+b+".backstagePostThreadRenderer.comments";this.get(b)&&(this.get(b+".backstageCommentsRenderer.contents")&&this.push(b+".backstageCommentsRenderer.contents",{commentThreadRenderer:X}),this.get(b+".backstageCommentsRenderer.teaserContents")?
this.push(b+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:X}):this.set(b+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:X}]))}}};
_.R.addBackstageReplyAction=function(X){var H=this.get("addBackstageReplyAction.parentId",X);X=this.get("addBackstageReplyAction.renderer.commentRenderer",X);H&&X&&this.setCreatorReply(H,X)};
_.R.banAuthorAction=function(X){var H=this.get("banAuthorAction.commentId",X);H&&(X=this.get("banAuthorAction.parentCommentId",X)||this.getParentPostId(H),this.removeFromStream(H,X))};
_.R.hideReportedCommentAction=function(X){var H=this.get("hideReportedCommentAction.commentId",X);H&&((X=this.get("hideReportedCommentAction.parentCommentId",X))||(X=this.getParentPostId(H)),this.removeFromStream(H,X))};
_.R.replaceBackstageCommentAction=function(X){var H=this.get("replaceBackstageCommentAction.commentId",X),l=this.get("replaceBackstageCommentAction.parentId",X);X=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",X);if(H&&l&&X){l=this.postIdToIndices(l);for(var b=0;b<l.length;b++){var U=l[b];if(U<0)break;var K=this.commentIdToIndex(H,U,!1);if(K>=0){var w=this.get("data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+K+".commentThreadRenderer.replies.commentRepliesRenderer");
w&&(X.replies={commentRepliesRenderer:w});this.splice("data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",K,1,{commentThreadRenderer:X})}K=this.commentIdToIndex(H,U,!0);if(K>=0){if(w=this.get("data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(K+".commentThreadRenderer.replies.commentRepliesRenderer")))X.replies={commentRepliesRenderer:w};this.splice("data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
K,1,{commentThreadRenderer:X})}}}};
_.R.replaceBackstagePostAction=function(X){var H=this.get("replaceBackstagePostAction.itemId",X);if(H){H=this.postIdToIndices(H);for(var l=0;l<H.length;l++){var b=H[l];if(b<0)break;var U=this.getPostRendererType(b),K=this.get("replaceBackstagePostAction.renderer."+U,X);if(!K&&U!=="sharedPostRenderer")break;var w=!1;K||(w=!0,K=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",X));if(!K)break;var d={};w?(_.dC(d,VeG,K),this.set("data.contents."+b+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
d)):(_.dC(d,new _.Ed(U),K),this.set("data.contents."+b+".backstagePostThreadRenderer.post",d))}}};
_.R.replaceBackstageReplyAction=function(X){var H=this.get("replaceBackstageReplyAction.replyId",X),l=this.get("replaceBackstageReplyAction.parentId",X);X=this.get("replaceBackstageReplyAction.renderer.commentRenderer",X);H&&X&&l&&this.setCreatorReply(l,X)};
_.R.removeCommentAction=function(X){var H=this.get("removeCommentAction.commentId",X);if(H){var l=this.get("removeCommentAction.parentCommentId",X);l&&this.get("removeCommentAction.isCreatorReply",X)?this.setCreatorReply(l,void 0):(l||(l=this.getParentPostId(H)),this.removeFromStream(H,l))}};
_.R.setCreatorReply=function(X,H){var l=this.getParentPostId(X);if(l){l=this.postIdToIndices(l);for(var b=0;b<l.length;b++){var U=l[b];if(U<0)break;var K=this.commentIdToIndex(X,U,!1);if(K>=0){var w="data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+K;K=w+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";w+=".commentThreadRenderer.replies";H==void 0?(this.set(w,{}),this.set(K,!1)):(this.set(w,{commentRepliesRenderer:{teaserContents:[{commentRenderer:H}]}}),
this.set(w+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(K,!0))}K=this.commentIdToIndex(X,U,!0);K>=0&&(K="data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+K,U=K+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",K+=".commentThreadRenderer.replies",H==void 0?(this.set(K,{}),this.set(U,!1)):(this.set(K,{commentRepliesRenderer:{teaserContents:[{commentRenderer:H}]}}),this.set(U,!0)))}}};
_.R.removeFromStream=function(X,H){if(H){H=this.postIdToIndices(H);for(var l=0;l<H.length;l++){var b=H[l];if(b<0)break;var U=this.commentIdToIndex(X,b,!1);U>=0&&this.splice("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",U,1);U=this.commentIdToIndex(X,b,!0);U>=0&&this.splice("data.contents."+b+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",U,1);b="data.contents."+b+".backstagePostThreadRenderer.post.backstagePostRenderer";
U=b+".backstageAttachment.pollRenderer.votedCommentId";this.get(U)===X&&(this.set(U,null),this.set(b+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(H=this.postIdToIndices(X).reverse(),l=0;l<H.length;l++){b=H[l];if(b<0)break;U=this.getPostRendererType(b);var K=this.get("backstagePostThreadRenderer.post."+U,this.data.contents[b]);K.postId===X?this.splice("data.contents",b,1):U==="sharedPostRenderer"&&this.set("data.contents."+b+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);K.scheduledPublishTimeSec&&_.TP(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.R.postIdToIndices=function(X){for(var H=[],l=0;l<this.data.contents.length;l++){var b=this.getPostRendererType(l);this.get("backstagePostThreadRenderer.post."+b+".postId",this.data.contents[l])===X&&H.push(l);if(b==="sharedPostRenderer"){var U=this.get("backstagePostThreadRenderer.post."+b+".originalPost.backstagePostRenderer.postId",this.data.contents[l]);b=this.get("backstagePostThreadRenderer.post."+b+".originalPost.postRenderer.postId",this.data.contents[l]);U!==X&&b!==X||H.push(l)}}return H};
_.R.commentIdToIndex=function(X,H,l){if(H<0)return-1;var b,U,K,w,d=_.f((b=this.data)==null?void 0:(U=b.contents)==null?void 0:(K=U[H])==null?void 0:(w=K.backstagePostThreadRenderer)==null?void 0:w.comments,eMt);return(H=l?d==null?void 0:d.teaserContents:d==null?void 0:d.contents)&&H.length?H.findIndex(function(B){return _.f(B,lgY).comment.commentRenderer.commentId===X}):-1};
_.R.getParentPostId=function(X){X=X.split(".");if(X[1])return X[0]};
_.R.getPostRendererType=function(X){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[X])?"sharedPostRenderer":"backstagePostRenderer"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Wl.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Wl.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:_.P("enable_community_page_on_desktop")}),_.N("design:type",Boolean)],Wl.prototype,"useSmallerPostContainer",void 0);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-backstage-items"})],Wl);
_.O(Wl,"ytd-backstage-items",function(){if(OdA!==void 0)return OdA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return OdA=
X},{mode:1});var mZZ;var QCZ={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},EB=function(){var X=_.a.apply(this,arguments)||this;X.disablePrescanVisibility=!0;X.canScheduleJobs=!0;X.engagementPanel=!1;X.hidePanelButton=!1;X.isWatchGrid=
!1;X.hasShownSubscribersOnlyDisclaimer=!1;X.hasShownSuperfanOnlyDisclaimer=!1;X.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_"};X.TEST_ONLY=void 0;return X};
_.S(EB,_.a);_.R=EB.prototype;_.R.created=function(){this.initCommentsCsi_();_.P("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.P("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.R.contentsChanged_=function(){var X;(X=this.data)!=null&&X.contents&&this.tickForCommentsTimer_("cml")};
_.R.headerChanged_=function(){var X;(X=this.data)!=null&&X.header&&this.tickForCommentsTimer_("cmhl")};
_.R.initCommentsCsi_=function(){_.qJ("wn_comments");var X=_.Bi();X&&_.FS({clientScreenNonce:X},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.R.createCommentAction_=function(X){X=_.Bb.unsafeClone(X);var H,l;if(X=(H=_.f(X,jRz))==null?void 0:(l=H.contents)==null?void 0:l.commentThreadRenderer){var b,U,K,w,d,B;!this.isBackstage&&((b=this.data)==null?0:(U=b.header)==null?0:(K=U.commentsHeaderRenderer)==null?0:(w=K.createRenderer)==null?0:(d=w.commentSimpleboxRenderer)==null?0:(B=d.zeroStep)==null?0:B.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var q,
u,e;this.isBackstage&&_.f((q=this.data)==null?void 0:(u=q.header)==null?void 0:(e=u.commentsHeaderRenderer)==null?void 0:e.zeroStateMessage,PwF)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(X)}};
_.R.doReplyInsert_=function(X,H,l,b){b?this.splice(X,b,0,H):this.push(X,H)};
_.R.getRepliesPath_=function(X){return"data.contents."+X+".commentThreadRenderer.replies"};
_.R.getRepliesContentsPath_=function(X,H){X=this.getRepliesPath_(X);return H?X+".commentRepliesRenderer.teaserContents":X+".commentRepliesRenderer.contents"};
_.R.showSubscribersOnlyDisclaimer_=function(X){(X=X.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(X))&&(_.TP(this.hostElement,"yt-open-popup-action",[X,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.R.showSuperfanOnlyDisclaimer_=function(X){(X=X.detail.command)&&!this.hasShownSuperfanOnlyDisclaimer&&(X=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(X))&&(_.TP(this.hostElement,"yt-open-popup-action",[X,this]),this.hasShownSuperfanOnlyDisclaimer=!0)};
_.R.createCommentReplyAction_=function(X){X=_.Bb.unsafeClone(X);var H=_.f(X,rJY);if(X=H==null?void 0:H.contents){var l=this.commentIdToIndex_(H==null?void 0:H.parentCommentId);if(!(l<0)){var b=this.getRepliesPath_(l);if(this.get(b)){H=H.replyToCommentId;b=this.getRepliesContentsPath_(l,!1);if(this.get(b)){var U=this.get(b).length,K=b+"."+(U-1)+".continuationItemRenderer";this.get(K+".button")?(K=this.replyIdToIndex_(H,l,!1),this.doReplyInsert_(b,X,K,U-1)):this.get(K)||(U=this.replyIdToIndex_(H,l,
!1),this.doReplyInsert_(b,X,U,null))}b=this.getRepliesContentsPath_(l,!0);this.get(b)?(l=this.replyIdToIndex_(H,l,!0),(!H||l>=0)&&this.doReplyInsert_(b,X,l,null)):this.set(b,[X])}else this.set(b,{commentRepliesRenderer:{teaserContents:[X]}})}}};
_.R.hideReportedCommentAction_=function(X){var H=_.f(X,Bs_);if(X=H==null?void 0:H.commentId)(H=this.get("parentCommentId",H))||(H=this.getParentCommentId_(X)),this.remove_(X,H)};
_.R.getParentCommentId_=function(X){X=X.split(".");if(X[1])return X[0]};
_.R.removeCommentAction_=function(X){var H=_.f(X,AJQ);if(X=H==null?void 0:H.commentId)H=(H==null?void 0:H.parentCommentId)||this.getParentCommentId_(X),this.remove_(X,H)};
_.R.pinCommentAction_=function(X){X=_.Bb.unsafeClone(X);var H=_.f(X,IKQ);H!=null&&H.commentId&&(X=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",X))&&(this.remove_(H.commentId),this.insert_(X,!0))};
_.R.unpinCommentAction_=function(X){X=_.Bb.unsafeClone(X);X=_.f(X,XAC);if(X!=null&&X.commentId){var H,l,b=(H=X.actionResult)==null?void 0:(l=H.update)==null?void 0:l.commentThreadRenderer;b&&(this.remove_(X.commentId),this.insert_(b))}};
_.R.banAuthorAction_=function(X){var H=_.f(X,cJz);H!=null&&H.commentId&&(X=H.commentId,H=H.parentCommentId||this.getParentCommentId_(X),this.remove_(X,H))};
_.R.handleScrollToCommentElement_=function(X){this.hostElement.contains(X)&&(this.nearestScrollParent||(this.nearestScrollParent=CSZ(X)),this.isCommentVisibleInScrollParent(X)||X.scrollIntoView({behavior:"smooth",block:"nearest"}))};
_.R.isCommentVisibleInScrollParent=function(X){if(!this.nearestScrollParent)return!1;X=X.getBoundingClientRect();var H=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return X.top>=H.top&&X.bottom<=H.bottom};
_.R.commentIdToIndex_=function(X){var H;return X&&(H=this.data)!=null&&H.contents?this.data.contents.findIndex(function(l){l=l.commentThreadRenderer;var b;return X===((l==null?void 0:l.commentViewModel)&&((b=_.f(l.commentViewModel,Rkz))==null?void 0:b.commentId))}):-1};
_.R.insert_=function(X,H){H=H===void 0?!1:H;var l,b;if((l=this.data)==null?0:(b=l.contents)==null?0:b.some(function(K){return!!K.commentThreadRenderer}))for(l=0,b=this.data.contents.length;l<b;l++){var U=this.data.contents[l].commentThreadRenderer;
if(QCZ[X.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=QCZ[U.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){H&&QCZ[X.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===QCZ[U.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",l,1,{commentThreadRenderer:X}):this.splice("data.contents",l,0,{commentThreadRenderer:X});break}}else this.set("data.contents",[{commentThreadRenderer:X}])};
_.R.doReplyRemove_=function(X,H,l){X=this.replyIdToIndex_(X,H,l);X<0||(H=this.getRepliesContentsPath_(H,l),this.splice(H,X,1))};
_.R.remove_=function(X,H){H=this.commentIdToIndex_(H);H<0?(H=this.commentIdToIndex_(X),H<0||this.splice("data.contents",H,1)):_.P("web_delhi_comment_threads")||(this.doReplyRemove_(X,H,!1),this.doReplyRemove_(X,H,!0))};
_.R.replyIdToIndex_=function(X,H,l){if(H<0)return-1;H=this.getRepliesContentsPath_(H,l);H=this.get(H);if(!H||!H.length)return-1;l=0;for(var b=H.length;l<b;l++){var U=void 0,K=void 0;if(((U=H[l])==null?void 0:(K=U.commentViewModel)==null?void 0:K.commentId)===X)return l}return-1};
_.R.tickForCommentsTimer_=function(X){_.MJ(X,void 0,"wn_comments")};
_.R.reloadComments_=function(X){X=_.f(X,$6H);_.f(X==null?void 0:X.command,_.uE)&&_.ci(this.hostElement,[X==null?void 0:X.command])};
_.ja.Object.defineProperties(EB.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return!!((X=this.data)==null?0:(H=X.header)==null?0:(l=H.commentsHeaderRenderer)==null?0:l.isBackstageContent)}}});
_.ja.Object.defineProperties(EB,{template:{configurable:!0,enumerable:!0,get:function(){if(mZZ===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);mZZ=X}X=mZZ;return X}}});
EB.prototype.showSuperfanOnlyDisclaimer_=EB.prototype.showSuperfanOnlyDisclaimer_;EB.prototype.showSubscribersOnlyDisclaimer_=EB.prototype.showSubscribersOnlyDisclaimer_;EB.prototype.headerChanged_=EB.prototype.headerChanged_;EB.prototype.contentsChanged_=EB.prototype.contentsChanged_;_.T([_.k(_.gI),_.N("design:type",Object)],EB.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",Function)],EB.prototype,"ytPlayerListenerBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],EB.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],EB.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.header.commentsHeaderRenderer.isBackstageContent"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],EB.prototype,"isBackstage",null);
_.T([_.g(),_.N("design:type",Object)],EB.prototype,"disablePrescanVisibility",void 0);_.T([_.g(),_.N("design:type",Object)],EB.prototype,"canScheduleJobs",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],EB.prototype,"engagementPanel",void 0);_.T([_.g(),_.N("design:type",Object)],EB.prototype,"hidePanelButton",void 0);_.T([_.g(),_.N("design:type",Object)],EB.prototype,"isWatchGrid",void 0);_.T([_.g(),_.N("design:type",Object)],EB.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.T([_.g(),_.N("design:type",Object)],EB.prototype,"hasShownSuperfanOnlyDisclaimer",void 0);_.T([_.Yh("data.contents"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EB.prototype,"contentsChanged_",null);_.T([_.Yh("data.header"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EB.prototype,"headerChanged_",null);
_.T([_.Le("yt-show-subscribers-only-disclaimer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],EB.prototype,"showSubscribersOnlyDisclaimer_",null);_.T([_.Le("yt-show-superfan-only-snackbar"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],EB.prototype,"showSuperfanOnlyDisclaimer_",null);_.T([_.sq({is:"ytd-comments"})],EB);var gq=function(){return _.Hc.apply(this,arguments)||this};
_.S(gq,_.Hc);_.R=gq.prototype;_.R.bindIf=function(X,H,l){return X?H:l};
_.R.bindIfDefined=function(X,H){return X!==void 0?X:H};
_.R.booleanString=function(X){return(!!X).toString()};
_.R.equals=function(){for(var X=_.Ab.apply(0,arguments),H=X[0],l=1;l<X.length;l++)if(H!=X[l])return!1;return!0};
_.R.isGreaterThan=function(X,H){return X>H};
_.R.isLessThan=function(X,H){return X<H};
_.R.logicalAND=function(){for(var X=_.Ab.apply(0,arguments),H=!!X[0],l=1;l<X.length;l++)H=H&&!!X[l];return H};
_.R.logicalOR=function(){for(var X=_.Ab.apply(0,arguments),H=!!X[0],l=1;l<X.length;l++)H=H||!!X[l];return H};
_.R.toBool=function(X){return!!X};
gq.prototype.toBool=gq.prototype.toBool;gq.prototype.logicalOR=gq.prototype.logicalOR;gq.prototype.logicalAND=gq.prototype.logicalAND;gq.prototype.isLessThan=gq.prototype.isLessThan;gq.prototype.isGreaterThan=gq.prototype.isGreaterThan;gq.prototype.equals=gq.prototype.equals;gq.prototype.booleanString=gq.prototype.booleanString;gq.prototype.bindIfDefined=gq.prototype.bindIfDefined;gq.prototype.bindIf=gq.prototype.bindIf;_.T([_.l9()],gq);_.TYN=[gq.prototype];var NYU;var cNZ;var GL=function(){return _.a.apply(this,arguments)||this};
_.S(GL,_.a);GL.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
GL.prototype.onBackIconTap_=function(){window.history.back()};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],GL.prototype,"data",void 0);_.T([_.qR({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],GL);
_.O(GL,"yt-header-with-back-renderer",function(){if(cNZ===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;NYU===void 0&&(NYU=document.createElement("template"));var b=NYU;l.call(H,b.content.cloneNode(!0),X.content.firstChild);cNZ=X}X=cNZ;return X},{mode:2});var jC5;var rNx;var aW=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(aW,_.a);_.R=aW.prototype;_.R.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.R.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&(this.isDarkTheme=X,this.setUrl())};
_.R.dataChanged=function(){var X=this;if(this.data){var H=this.setUrl();H&&_.JC({destination:window,iframe:this.iframe,origin:_.LZK(H.toString()),channelName:"yt-iframe",onMessage:function(l){(l=X.getCommunicationCommand(l.data))&&X.ytComponentBehavior.resolveCommand(l)},
onEstablished:function(){}})}};
_.R.setUrl=function(){if(this.data&&this.data.iframeUrl){var X=_.zd(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(X)return _.RD(this.iframe,X),X}};
_.R.getCommunicationCommand=function(X){var H;if((H=this.data)!=null&&H.onCommunicationCommandsMap){H=this.data.onCommunicationCommandsMap.find(function(U){return U.key===X});
if(H==null?0:H.value)return H==null?void 0:H.value;try{var l=zy6(_.Ay(X)),b=this.data.onCommunicationCommandsMap.find(function(U){return U.key===(l==null?void 0:l.getMethodName())});
if(b==null?0:b.value)return b==null?void 0:b.value}catch(U){}}};
aW.prototype.dataChanged=aW.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],aW.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],aW.prototype,"actionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],aW.prototype,"data",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],aW.prototype,"isDarkTheme",void 0);_.T([_.A2("#iframe"),_.N("design:type",HTMLIFrameElement)],aW.prototype,"iframe",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aW.prototype,"dataChanged",null);_.T([_.qR({is:"yt-iframe-renderer",disableElementRegistration:!0})],aW);
_.O(aW,"yt-iframe-renderer",function(){if(rNx===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;jC5===void 0&&(jC5=document.createElement("template"));var b=jC5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);rNx=X}X=rNx;return X},{mode:2});_.ZB=function(X){_.$e.call(this);this.callback=X;this.bezier=new wRz(0,0,.4,0,.2,1,1,1);this.delay=new _.Li(this.next,window,this);this.JSC$17394_animating=!1;_.LY(this,this.delay)};
_.S(_.ZB,_.$e);_.ZB.prototype.isAnimating=function(){return this.JSC$17394_animating};
_.ZB.prototype.start=function(X,H,l){this.config={from:X,to:H,duration:l,startTime:(0,_.Jl)()};this.JSC$17394_animating=!0;this.next()};
_.ZB.prototype.stop=function(){this.delay.stop();this.JSC$17394_animating=!1;this.config=void 0};
_.ZB.prototype.next=function(){if(this.config){var X=this.config,H=X.from,l=X.to,b=X.duration;X=X.startTime;var U=(0,_.Jl)()-X;X=this.bezier;b=ZSY(X,U/b);if(b==0)X=X.y0;else if(b==1)X=X.y3;else{U=xY(X.y0,X.y1,b);var K=xY(X.y1,X.y2,b);X=xY(X.y2,X.y3,b);U=xY(U,K,b);K=xY(K,X,b);X=xY(U,K,b)}X=_.kY(X,0,1);this.callback(H+(l-H)*X);X<1?this.delay.start():this.JSC$17394_animating=!1}};_.i7=new _.gz("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var JNx={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Yay=function(X,H,l,b){_.$e.call(this);this.JSC$17406_miniAppId=X;this.localReleaseId=H;this.derivedDeviceInterface=l;this.isForeground=b;this.JSC$17406_playNonceResolver=new _.cF;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Yy("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Yy("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.P("enable_displaying_ppn");this.JSC$17406_miniAppClientDataProvider=_.jJ().resolve(_.i7);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;L$U(this);var U=setTimeout(function(){_.x2(new _.qd("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17406_playNonceResolver.promise.then(function(){clearTimeout(U)})};
_.S(Yay,_.$e);var ANC=function(X,H){X.JSC$17406_playNonceResolver.resolve(H!=null?H:dZ(8));X.enableDisplayingPpn&&IA5(X).then(function(l){X.JSC$17406_miniAppClientDataProvider.clientData.set("post_play_nonce",l)})},IA5=function(X){return _.h(function(H){return H.nextAddress==1?H.yield(X.JSC$17406_playNonceResolver.promise,2):H.return(H.yieldResult)})},L$U=function(X){var H,l;
_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$17406_playNonceResolver.promise,2);H=b.yieldResult;l={miniAppInfo:{externalPostId:X.JSC$17406_miniAppId,localReleaseId:X.localReleaseId,postPlayNonce:H,derivedDeviceInterface:X.derivedDeviceInterface}};_.FS(l);_.m5(b)})},HXU=function(X){X.state!==0?_.x2(new _.qd("[MiniAppPlayLogger] recordPlayStart failed with state "+JNx[X.state])):(X.state=1,vl(X,"ma_cl"),OB(X,"PLAY_EVENT_TYPE_PLAY_START"),Xue(X))},lrU=function(X){X.isForeground=!1;
OB(X,"PLAY_EVENT_TYPE_PLAY_PAUSE")},onY=function(X){X.state!==1&&X.state!==2?_.x2(new _.qd("[MiniAppPlayLogger] recordPlayEnd failed with state "+JNx[X.state])):(X.state=3,window.clearInterval(X.playPingTimerId),X.playPingTimerId=NaN,I7N(),OB(X,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},bXd=function(X,H){X.state===2&&X.gameReady&&(X.firstClickRecorded?Date.now()-X.clickRecordedMs<X.playClickIntervalMs||(X.clickRecordedMs=Date.now(),OB(X,"PLAY_EVENT_TYPE_PLAY_CLICK")):H&&(vl(X,"ma_fua"),OB(X,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),X.firstClickRecorded=!0,X.clickRecordedMs=Date.now()))};
Yay.prototype.logError=function(X){var H=this,l;_.h(function(b){if(b.nextAddress==1)return X.metadata.externalPostId=H.JSC$17406_miniAppId,l=X.metadata,b.yield(Promise.race([H.JSC$17406_playNonceResolver.promise,new Promise(function(U){setTimeout(function(){U("")},3E4)})]),2);
l.postPlayNonce=b.yieldResult;X.metadata.localReleaseId=H.localReleaseId;X.loggingError.level="WARNING";_.n2(X.loggingError,X.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:X.metadata});_.m5(b)})};
var Ua5=function(X,H,l,b){var U,K,w,d,B,q;_.h(function(u){if(u.nextAddress==1)return u.yield(X.JSC$17406_playNonceResolver.promise,2);U=u.yieldResult;K={externalPostId:X.JSC$17406_miniAppId,localReleaseId:X.localReleaseId,postPlayNonce:U,sdkVersion:l,api:H};b!==void 0&&(K.networkRequestsMeasurement={networkRequests:_.O_(b,1),cachedRequests:_.O_(b,2),transferredBytes:_.O_(b,3)},(w=b)==null?0:_.UC(w,xs,6))&&(K.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((d=_.Al(b,
xs,6))==null?void 0:ue(d,1))||"0",cacheHits:((B=_.Al(b,xs,6))==null?void 0:ue(B,2))||"0",cachedBytes:((q=_.Al(b,xs,6))==null?void 0:ue(q,3))||"0"});_.Sh("miniAppSdkUsage",K);_.m5(u)})},KzC=function(X,H,l){var b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G;
_.h(function(r){if(r.nextAddress==1)return r.yield(X.JSC$17406_playNonceResolver.promise,2);b=r.yieldResult;U={externalPostId:X.JSC$17406_miniAppId,localReleaseId:X.localReleaseId,postPlayNonce:b,sdkVersion:l,measurementWindow:{startTimestampMs:String(BC(H,1)),endTimestampMs:String(BC(H,2))},frameRate:{averageFrameTimeDeltaMs:q7(H,3),averageFrameIdleTimeMs:q7(H,4)}};_.UC(H,DD,5)&&(U.networkRequests={networkRequests:(K=ZD(H))==null?void 0:_.O_(K,1),cachedRequests:(w=ZD(H))==null?void 0:_.O_(w,2),transferredBytes:(d=
ZD(H))==null?void 0:_.O_(d,3),sameOriginStatusCodeToCounts:$aY((B=ZD(H))==null?void 0:_.cNK(B,4,void 0,XpO,XpO)),crossOriginStatusCodeToCounts:$aY((q=ZD(H))==null?void 0:_.cNK(q,5,void 0,XpO,XpO))},(u=ZD(H))==null?0:_.UC(u,xs,6))&&(U.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((e=ZD(H))==null?void 0:(y=_.Al(e,xs,6))==null?void 0:ue(y,1))||"0",cacheHits:((V=ZD(H))==null?void 0:(p=_.Al(V,xs,6))==null?void 0:ue(p,2))||"0",cachedBytes:((z=ZD(H))==null?void 0:(t=_.Al(z,xs,6))==
null?void 0:ue(t,3))||"0"});_.UC(H,FT_,7)&&(U.gameCapture={averageFrameTimeDeltaMs:(W=_.Al(H,FT_,7))==null?void 0:q7(W,1),averageFrameIdleTimeMs:(G=_.Al(H,FT_,7))==null?void 0:q7(G,2)});_.Sh("miniAppPerformanceMetrics",U);_.m5(r)})},Rud=function(X,H){var l,b;
return _.h(function(U){if(U.nextAddress==1)return U.yield(X.JSC$17406_playNonceResolver.promise,2);l=U.yieldResult;b={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:X.JSC$17406_miniAppId,postPlayNonce:l,miniAppReleaseId:X.localReleaseId},derivedDeviceInterface:X.derivedDeviceInterface,adTriggerType:H,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Sh("miniAppAdEvent",b);_.m5(U)})};
Yay.prototype.disposeInternal=function(){_.$e.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var OB=function(X,H,l,b){l=l===void 0?{}:l;b=b===void 0?!1:b;var U,K,w,d;_.h(function(B){if(B.nextAddress==1)return U=X.isForeground,K=X.beforeReady,B.yield(X.JSC$17406_playNonceResolver.promise,2);w=B.yieldResult;d={externalPostId:X.JSC$17406_miniAppId,localReleaseId:X.localReleaseId,derivedDeviceInterface:X.derivedDeviceInterface,postPlayNonce:w,type:H};l.sequenceGroup=w;d.playState=K?"PLAY_STATE_NOT_READY":U?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Sh("miniAppPlayEvent",d,
l);b&&_.z3();_.m5(B)})},vl=function(X,H){var l;
_.h(function(b){if(b.nextAddress==1)return l=(0,_.Jl)(),b.yield(X.JSC$17406_playNonceResolver.promise,2);_.sf(H,l);_.m5(b)})},Xue=function(X){isNaN(X.playPingTimerId)&&(X.playPingTimerId=_.UZ(function(){X.state!==1&&X.state!==2?_.x2(new _.qd("[MiniAppPlayLogger] reportPlayPing failed with state "+JNx[X.state])):OB(X,"PLAY_EVENT_TYPE_PLAY_PING")},X.playPingIntervalMs))},$aY=function(X){return Array.from(X.entries()).map(function(H){var l=_.C(H);
H=l.next().value;l=l.next().value;return{key:H,value:l}})};var CRN=function(){},wux=function(X,H){X.showMiniAppAdCommand=H.showMiniAppAdCommand;
X.isEmbeddedInWebview=H.isEmbeddedInWebview;X.playLogger=H.playLogger},hua=function(X){return _.h(function(H){return H.return(dad(X,1))})},FzY=function(X){return _.h(function(H){return H.return(dad(X,2))})},qUx=function(X,H){return _.h(function(l){return H?l.return(dad(X,3,H)):l.return(Bod(X,3))})},dad=function(X,H,l){var b;
return _.h(function(U){if(U.nextAddress==1){if(!X.showMiniAppAdCommand||!X.isEmbeddedInWebview)return U.return(Bod(X,H));X.adResolver=new _.cF;var K=new Ck;K=_.X$(K,3,H);b=_.KY(K,5,l);yU(X.showMiniAppAdCommand,AIC(b));return U.yield(X.adResolver.promise,2)}return U.return(U.yieldResult)})};
CRN.prototype.onAdFinished=function(X){X=TBF(X);var H;(H=this.adResolver)==null||H.resolve(X)};
var Bod=function(X,H){var l;return _.h(function(b){if(b.nextAddress==1)b=b.yield((l=X.playLogger)==null?void 0:Rud(l,MQy(H)),2);else{var U=b.return;var K=new Qu9;K=_.X$(K,1,2);b=U.call(b,K)}return b})};var s$U=new _.gz("INNERTUBE_MANAGER_TOKEN");var MAl=function(){this.callbacks={}};
MAl.prototype.initialize=function(X){var H=this;this.callbacks=X;window.youtubewebview?window.youtubewebview.onmessage=function(l){u9y(H,l)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(l){u9y(H,l)})};
var u9y=function(X,H){if(H.data)try{var l=zy6(H.data);if(_.DA(_.be(l,1))!=null){var b=jSz(_.sC(l,2));switch(l.getMethodName()){case "yt-mini-app-load-audio-state":var U,K;(K=(U=X.callbacks).onAudioStateLoaded)==null||K.call(U,_.F0(b,Fl(b,Rc,1)));break;case "yt-mute-mini-app":var w,d;(d=(w=X.callbacks).onMuteMiniApp)==null||d.call(w);break;case "yt-unmute-mini-app":var B,q;(q=(B=X.callbacks).onUnmuteMiniApp)==null||q.call(B);break;case "yt-playable-exit":var u,e;(e=(u=X.callbacks).onExit)==null||e.call(u);
break;case "yt-post-play-nonce":var y,V;(V=(y=X.callbacks).onPostPlayNonceReceived)==null||V.call(y,e5(b,2,Rc));break;case "yt-confirm-exit-mini-app":var p,z;(z=(p=X.callbacks).confirmExitMiniApp)==null||z.call(p);break;case "yt-confirm-exit-mini-app-edu":var t,W;(W=(t=X.callbacks).confirmExitMiniAppEdu)==null||W.call(t);break;case "yt-benchmarking-response":var G,r;(r=(G=X.callbacks).onNativeBenchmarkingMessageReceived)==null||r.call(G,e5(b,2,Rc));break;case "yt-mini-app-load-3p-consent-state":var Q,
v;(v=(Q=X.callbacks).multiplayer3pAckStateLoaded)==null||v.call(Q,_.F0(b,Fl(b,Rc,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var J,Y;(Y=(J=X.callbacks).exitMiniAppSeenStateLoaded)==null||Y.call(J,_.F0(b,Fl(b,Rc,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Uy,Cy;(Cy=(Uy=X.callbacks).onNavigateToNewMiniApp)==null||Cy.call(Uy);break;case "yt-game-data-available":var sy,FO;(FO=(sy=X.callbacks).onGameDataAvailable)==null||FO.call(sy,e5(b,2,Rc));break;case "yt-pause-mini-app":var ub,
g8;(g8=(ub=X.callbacks).onPauseMiniApp)==null||g8.call(ub);break;case "yt-resume-mini-app":var mm,QZ;(QZ=(mm=X.callbacks).onResumeMiniApp)==null||QZ.call(mm);break;case "yt-pause-playable-dialog":var Bz,dt;(dt=(Bz=X.callbacks).onPausePlayableDialog)==null||dt.call(Bz);break;case "yt-resume-playable-dialog":var TK,sG;(sG=(TK=X.callbacks).onResumePlayableDialog)==null||sG.call(TK);break;case "yt-playable-ad-finished":var f_,Mv;(Mv=(f_=X.callbacks).onAdFinished)==null||Mv.call(f_,e5(b,2,Rc))}}else _.x2(Error("Wh"))}catch(nd){_.n2(Error("Xh"))}else _.x2(Error("Yh"))};var eUl=function(X){this.rpcErrorCode=X};var mN=function(X,H,l){this.intervalMs=X;this.apiFunc=H;this.type=l;this.schedulerReady=!0};
mN.prototype.call=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1){if(H.type!==1&&X===H.cachedValue)return b.return();H.pendingApiRequestResolver||(H.pendingApiRequestResolver=new _.cF);l=H.pendingApiRequestResolver.promise;H.cachedValue=X;return b.yield(euU(H),2)}return b.return(l)})};
mN.prototype.flush=function(X){X=X===void 0?!1:X;var H=this;return _.h(function(l){return H.cachedValue===void 0?l.return():l.yield(H.apiFunc(H.cachedValue,X),0)})};
var euU=function(X){var H,l,b;return _.h(function(U){switch(U.nextAddress){case 1:if(!X.schedulerReady||!X.pendingApiRequestResolver)return U.return();X.schedulerReady=!1;H=X.pendingApiRequestResolver;X.pendingApiRequestResolver=void 0;_.Ew(U,2);if(X.cachedValue===void 0){U.jumpTo(4);break}return U.yield(X.apiFunc(X.cachedValue),5);case 5:l=U.yieldResult,H.resolve(l);case 4:_.Zt(U,3);break;case 2:b=_.Ow(U),H.reject(b);case 3:setTimeout(function(){return _.h(function(K){X.schedulerReady=!0;return K.yield(euU(X),
0)})},X.intervalMs),_.m5(U)}})};var PSN=window.location.origin+"/miniapp_cloudsaves",ytO=[400,401],yba=_.Yy("cloud_save_game_data_rate_limit_ms",3E3),PRZ=function(X){var H=this;this.JSC$17452_miniAppId=X;this.loadAttempts=0;this.cloudSaveIntervalMs=yba;this.initialDownloadDataSucceeded=!1;this.JSC$17452_playNonceResolver=new _.cF;this.scottyUploadRateLimiter=new mN(this.cloudSaveIntervalMs,function(l,b){return H.uploadData(l,b)},2);
this.downloadDataPromise=VA$(this);this.downloadDataPromise.then(function(){H.initialDownloadDataSucceeded=!0}).catch(function(){})},frC=function(X,H){H.then(function(l){return X.JSC$17452_playNonceResolver.resolve(l)})},pue=function(X){return _.h(function(H){return X.cachedData===void 0?H.return(X.downloadDataPromise):H.return(X.cachedData)})},SUC=function(X,H){return _.h(function(l){X.cachedData=H;
if(!X.initialDownloadDataSucceeded)throw Error("Zh");return l.yield(X.scottyUploadRateLimiter.call(H),0)})},zux=function(){return new Promise(function(X){setTimeout(X,1E3,"")})},nnA=function(X,H){var l,b;
return _.h(function(U){if(U.nextAddress==1)return l=X.JSC$17452_miniAppId,U.yield(Promise.race([X.JSC$17452_playNonceResolver.promise,zux()]),2);b={"X-YouTube-MiniAppId":l,"X-YouTube-PostPlayNonce":U.yieldResult};"DELEGATED_SESSION_ID"in _.W$&&QOb(H,b);return U.return(b)})};
PRZ.prototype.uploadData=function(X,H){H=H===void 0?!1:H;var l=this;return _.h(function(b){return uMh()?_.P("enable_cloud_save_error_popup_after_retry")?b.return(new Promise(function(U,K){var w,d,B,q,u;return _.h(function(e){switch(e.nextAddress){case 1:w=0,d=!0,q=B=null;case 2:if(!(d&&w++<2)){e.jumpTo(4);break}_.Ew(e,5);return e.yield(k2a(l,X,H),7);case 7:B=e.yieldResult;d=B.ok?!1:!ytO.includes(B.status);_.Zt(e,2);break;case 5:q=u=_.Ow(e);d=VQh(q);e.jumpTo(2);break;case 4:B?B.ok?(QG(l,yba),U()):
(QG(l,l.cloudSaveIntervalMs*2),K(Error("$h`"+String(B.status),{cause:{rpcErrorCode:B.status}}))):(QG(l,l.cloudSaveIntervalMs*2),K(q||Error("ai"))),_.m5(e)}})})):b.return(new Promise(function(U,K){var w,d;
return _.h(function(B){if(B.nextAddress==1){if(l.JSC$17452_miniAppId==="")return K(Error("bi")),B.return();_.Ew(B,2);return B.yield(k2a(l,X,H),4)}if(B.nextAddress!=2)return w=B.yieldResult,w.ok?(QG(l,yba),U()):(QG(l,l.cloudSaveIntervalMs*2),K(Error("$h`"+String(w.status),{cause:{rpcErrorCode:w.status}}))),_.Zt(B,0);d=_.Ow(B);QG(l,l.cloudSaveIntervalMs*2);K(d);_.m5(B)})})):b.return()})};
var k2a=function(X,H,l){l=l===void 0?!1:l;var b,U,K;return _.h(function(w){if(w.nextAddress==1)return b=_.Ik((new TextEncoder).encode(H)),U=ffl(),w.yield(nnA(X,U),2);K=w.yieldResult;return w.return(fetch(U,{method:"POST",body:new Blob([b]),headers:K,keepalive:l}))})},VA$=function(X){var H,l;
return _.h(function(b){if(b.nextAddress==1){if(!uMh())return b.return("");if(X.JSC$17452_miniAppId==="")throw Error("bi");if(X.loadAttempts>2)return b.return(X.downloadDataPromise);_.Ew(b,2);return b.yield(xaN(X),4)}if(b.nextAddress!=2)return H=b.yieldResult,b.return(H);l=_.Ow(b);if(VQh(l)&&++X.loadAttempts<2)return b.return(VA$(X));throw l;})},xaN=function(X){var H,l,b,U,K;
return _.h(function(w){switch(w.nextAddress){case 1:return _.Ew(w,2),H=ffl(),w.yield(nnA(X,H),4);case 4:return l=w.yieldResult,w.yield(fetch(H,{method:"GET",headers:l}),5);case 5:return b=w.yieldResult,b.ok?w.yield(b.text(),6):w.return(Promise.reject(Error("ci`"+String(b.status),{cause:new eUl(b.status)})));case 6:return U=w.yieldResult,w.return((new TextDecoder).decode(_.Ay(U)));case 2:return K=_.Ow(w),w.return(Promise.reject(K))}})},QG=function(X,H){X.cloudSaveIntervalMs=H;
X.scottyUploadRateLimiter.intervalMs=X.cloudSaveIntervalMs};
PRZ.prototype.flush=function(){var X=this;return _.h(function(H){return X.initialDownloadDataSucceeded?H.yield(X.scottyUploadRateLimiter.flush(!0),0):H.return()})};var DaY=GU(gM(1),W9(1)),TL=GU(gM(1),W9(3)),N3=function(X){this.callbacks=X};
_.R=N3.prototype;_.R.onAudioToggled=function(X,H){(H===void 0||H)&&_.R6("yt-mini-app-is-audio-enabled",X,2592E3)};
_.R.onPause=function(){this.onAudioToggled(!1,!1)};
_.R.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.R.returnNativeBenchmarkingMessage=function(){};
_.R.sendGameData=function(){};
_.R.sendStartGameFrameCapture=function(){};
var pkO=function(X,H,l){this.callbacks=X;var b=this;this.sdkVersion=new _.cF;this.channel=new TrG(_.JC({destination:window,iframe:H,origin:(new URL(l.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var U=cl;var K=gM(5);var w=new A8q;w=_.Vs(w,1,1E4);K=_.G2(K,4,KTv,w);U(b,K);b.onAudioToggled(b.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){b.sdkVersion.resolve("")},1E4)};
_.S(pkO,N3);_.R=pkO.prototype;_.R.onAudioToggled=function(X,H){N3.prototype.onAudioToggled.call(this,X,H===void 0?!0:H);H=cl;var l=gM(2),b=new Y$_;X=_.cb(b,1,X);X=_.G2(l,3,KTv,X);H(this,X)};
_.R.onPause=function(){N3.prototype.onPause.call(this);cl(this,gM(3))};
_.R.onResume=function(){N3.prototype.onResume.call(this);cl(this,gM(4))};
_.R.returnNativeBenchmarkingMessage=function(X){var H=cl,l=gM(6);var b=W9(_.UC(X,ZO,1)?1:2);X=_.UC(X,ZO,1)?X:null;b=_.G2(b,5,E7,X);H(this,GU(l,b))};
_.R.sendGameData=function(X){var H=cl,l=gM(7);X=_.G2(l,5,KTv,X);H(this,X)};
_.R.sendStartGameFrameCapture=function(){cl(this,gM(9))};
var jG=function(X,H,l){var b,U,K;return _.h(function(w){if(w.nextAddress==1)return b=X.callbacks,U=b.onSdkCalled,K=H,w.yield(X.sdkVersion.promise,2);U.call(b,K,w.yieldResult,l);_.m5(w)})};
pkO.prototype.onMessage=function(){var X=this;return jDQ(ic,function(H){var l,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J,Y,Uy,Cy,sy,FO,ub,g8,mm,QZ,Bz,dt,TK,sG,f_,Mv,nd,$U,MW,ZL,uF,rt,xQ,AQ,D3,YQ,F5,TY,NZ,C_,qZ;return _.h(function(qv){switch(qv.nextAddress){case 1:if(!MzQ(H.data))return _.x2(Error("di")),qv.return();l=_.M7(H.data,1);_.P("enable_iframe_message_get_type_via_fields")&&(b=H.data,l=U=_.M7(b,1));switch(l){case 8:if(H.data.hasMetadata()){var cz=X.sdkVersion,OG=cz.resolve;var Sy=H.data.getMetadata();
Sy=_.sC(Sy,1);OG.call(cz,Sy);clearTimeout(X.sdkVersionTimeoutId)}break;case 6:return qv.jumpTo(2);case 16:if(!_.$g(H.data,wtY,14,v9))return qv.return();K=_.ys(H.data,wtY,14,v9);(d=(w=X.callbacks).onGameFrameReceived)==null||d.call(w,K);return qv.return();case 17:if(!_.$g(H.data,CZH,15,v9))return qv.return();(q=(B=X.callbacks).onGameAudioReceived)==null||q.call(B,_.ys(H.data,CZH,15,v9));return qv.return();case 1:if(cz=_.ys(H.data,ldY,2,v9))switch(_.M7(cz,1)){case 1:X.callbacks.onFirstFrameReady();
if(_.P("enable_network_request_logging_on_game_events")&&_.UC(cz,DD,4)){jG(X,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Al(cz,DD,4));break}jG(X,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Sy=(OG=X.callbacks).onGameReady)==null||Sy.call(OG);if(_.P("enable_network_request_logging_on_game_events")&&_.UC(cz,DD,4)){jG(X,"MINI_APP_SDK_API_GAME_READY",_.Al(cz,DD,4));break}jG(X,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.$g(cz,tI,3,oP9))X.callbacks.onResourceLoaded(_.ys(cz,tI,3,oP9))}return qv.return();
case 3:return qv.jumpTo(3);case 4:return qv.jumpTo(4);case 2:return qv.jumpTo(5);case 9:return qv.jumpTo(6);case 10:return X.callbacks.onClick(),qv.return();case 5:return qv.jumpTo(7);case 11:if(!_.$g(H.data,n7,9,v9))return qv.return();u=_.ys(H.data,n7,9,v9);(y=(e=X.callbacks).onBenchmarkingMessageReceived)==null||y.call(e,u);cz=H.reply;OG=gM(1);Sy=W9(1);var $m=new n7;var mD=new Uint8Array($at(u,Fl(u,c8D,6))|0);$m=$2($m,5,c8D,_.EG(mD,!1));Sy=_.G2(Sy,5,E7,$m);cz.call(H,GU(OG,Sy));return qv.return();
case 12:return qv.jumpTo(8);case 13:return qv.jumpTo(9);case 15:return qv.jumpTo(10);case 14:return qv.jumpTo(11);case 18:return qv.jumpTo(12);default:return qv.return()}qv.jumpTo(0);break;case 2:if(!_.$g(H.data,aS,5,v9))return qv.return();OG=H.data;cz=Fl(OG,v9,5);OG=OG.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;V=L$N(OG,OG[_.K_]|0,aS,cz)||aS[YGN]||(aS[YGN]=I6h(aS));cz=_.iB(V,ks,1,_.vb());p=_.C(cz);z=p.next();case 14:if(z.done){qv.jumpTo(16);break}t=z.value;W=new _.qd;W.level=_.M7(t,2)===
1?"WARNING":"ERROR";G=zUO(t.getSource());return qv.yield(X.sdkVersion.promise,17);case 17:r={source:G,sdkVersion:qv.yieldResult};_.wY(_.be(t,6))!=null?(W.message=t.getMessage(),W.stack=_.sC(t,5),r.sdkErrorType=nfb(_.M7(t,6)),_.wY(_.be(t,7))!=null&&(r.sdkApi=kOW(_.M7(t,7)))):W.stack=void 0;v=Q=void 0;(v=(Q=X.callbacks).onError)==null||v.call(Q,{loggingError:W,metadata:r});z=p.next();qv.jumpTo(14);break;case 16:return qv.return();case 3:return _.Ew(qv,18),cz=qv.yield,OG=X.callbacks,Sy=OG.onSave,$m=
_.ys(H.data,IND,4,v9),$m=_.sC($m,1),cz.call(qv,Sy.call(OG,$m),20);case 20:H.reply(DaY);_.Zt(qv,19);break;case 18:return J=_.Ow(qv),Y=VU,Uy=J,Cy=X.callbacks,sy="MINI_APP_SDK_API_SAVE_DATA",qv.yield(X.sdkVersion.promise,21);case 21:Y(Uy,Cy,sy,qv.yieldResult),H.reply(TL);case 19:return qv.yield(jG(X,"MINI_APP_SDK_API_SAVE_DATA"),22);case 22:return qv.return();case 4:return _.Ew(qv,23),qv.yield(X.callbacks.onLoad(),25);case 25:FO=qv.yieldResult;cz=H.reply;OG=gM(1);Sy=W9(1);$m=new IND;$m=_.KY($m,1,FO);
Sy=_.G2(Sy,3,E7,$m);cz.call(H,GU(OG,Sy));_.Zt(qv,24);break;case 23:return ub=_.Ow(qv),g8=VU,mm=ub,QZ=X.callbacks,Bz="MINI_APP_SDK_API_LOAD_DATA",qv.yield(X.sdkVersion.promise,26);case 26:g8(mm,QZ,Bz,qv.yieldResult),H.reply(TL);case 24:return qv.yield(jG(X,"MINI_APP_SDK_API_LOAD_DATA"),27);case 27:return qv.return();case 5:_.Ew(qv,28);X.callbacks.onSendHighScore(p8(_.ys(H.data,qd_,3,v9).getValue()));H.reply(GU(gM(1),W9(1)));_.Zt(qv,29);break;case 28:return dt=_.Ow(qv),TK=VU,sG=dt,f_=X.callbacks,Mv=
"MINI_APP_SDK_API_SEND_SCORE",qv.yield(X.sdkVersion.promise,30);case 30:TK(sG,f_,Mv,qv.yieldResult),H.reply(TL);case 29:return qv.yield(jG(X,"MINI_APP_SDK_API_SEND_SCORE"),31);case 31:return qv.return();case 6:if(!_.$g(H.data,sMQ,8,v9)){qv.jumpTo(32);break}cz=qv.yield;OG=_.ys(H.data,sMQ,8,v9);OG=_.M7(OG,1);return cz.call(qv,jG(X,kOW(OG)),32);case 32:return qv.return();case 7:return cz=H.reply,OG=gM(1),Sy=W9(1),$m=X.callbacks.getLanguage(),Sy=$2(Sy,4,E7,xU($m)),cz.call(H,GU(OG,Sy)),qv.yield(jG(X,"MINI_APP_SDK_API_GET_LANGUAGE"),
34);case 34:return qv.return();case 8:if(!_.$g(H.data,BzQ,10,v9))return qv.return();nd=_.ys(H.data,BzQ,10,v9);$U=X.callbacks;MW=$U.onSdkPerformanceUpdate;return qv.yield(X.sdkVersion.promise,35);case 35:return MW.call($U,nd,qv.yieldResult),qv.return();case 9:cz=H.data;OG=Fl(cz,v9,11);if(_.DA(_.be(cz,OG))==null)return H.reply(GU(gM(1),W9(2))),qv.return();ZL=e5(H.data,11,v9);X.callbacks.onShareInviteCode(ZL);H.reply(DaY);return qv.yield(jG(X,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),36);case 36:return qv.return();
case 10:if(!_.P("enable_open_yt_content"))return H.reply(TL),qv.return();if(!_.$g(H.data,Rvz,12,v9))return H.reply(GU(gM(1),W9(2))),qv.return();cz=_.ys(H.data,Rvz,12,v9);uF=_.sC(cz,1);X.callbacks.onOpenYTContent(uF);H.reply(DaY);return qv.yield(jG(X,"MINI_APP_SDK_API_OPEN_CONTENT"),37);case 37:return qv.return();case 11:if(_.$g(H.data,Lxv,13,v9)){qv.jumpTo(38);break}return qv.yield(X.callbacks.onShowMiniAppAd(2),39);case 39:return rt=qv.yieldResult,H.reply(GU(gM(1),USH(rt))),qv.yield(jG(X,"MINI_APP_SDK_API_REQUEST_AD"),
40);case 40:return qv.return();case 38:cz=_.ys(H.data,Lxv,13,v9);a:switch(_.M7(cz,1)){case 1:cz={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:cz={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:cz={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}xQ=cz;AQ=xQ.adType;D3=xQ.sdkApi;cz=qv.yield;OG=X.callbacks;Sy=OG.onShowMiniAppAd;$m=_.ys(H.data,Lxv,13,v9);$m=_.sC($m,2);return cz.call(qv,Sy.call(OG,AQ,$m||void 0),41);case 41:return YQ=qv.yieldResult,
H.reply(GU(gM(1),USH(YQ))),qv.yield(jG(X,D3),42);case 42:return qv.return();case 12:_.Ew(qv,43);cz=X.callbacks;OG=cz.onMakeIapPurchase;Sy=_.ys(H.data,dS_,16,v9);Sy=_.sC(Sy,1);OG.call(cz,Sy);H.reply(GU(gM(1),W9(1)));_.Zt(qv,44);break;case 43:return F5=_.Ow(qv),TY=VU,NZ=F5,C_=X.callbacks,qZ="MINI_APP_SDK_API_MAKE_IAP_PURCHASE",qv.yield(X.sdkVersion.promise,45);case 45:TY(NZ,C_,qZ,qv.yieldResult),H.reply(TL);case 44:return qv.yield(jG(X,"MINI_APP_SDK_API_MAKE_IAP_PURCHASE"),46);case 46:return qv.return()}})})};
var cl=function(X,H){_.h(function(l){X.channel.send(H);_.m5(l)})},zr=function(X,H,l){this.callbacks=X;
var b=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;X=qwy(H,(new URL(l.toString())).origin);this.gameSnacks=new $bz(X);this.gameSnacks.page.onReady(function(){b.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){b.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var U,K;(K=(U=b.callbacks).onGameReady)==null||K.call(U)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(U,K){try{b.callbacks.onSendHighScore(K)}catch(w){VU(w,b.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(U,K){var w;return _.h(function(d){if(d.nextAddress==1)return _.Ew(d,2),d.yield(b.callbacks.onSave(b.decoder.decode(K)),4);if(d.nextAddress!=2)return _.Zt(d,0);w=_.Ow(d);VU(w,b.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return d.return()})});
this.gameSnacks.storage.onLoad(function(){var U,K;return _.h(function(w){if(w.nextAddress==1)return _.Ew(w,2),w.yield(b.callbacks.onLoad(),4);if(w.nextAddress!=2)return U=w.yieldResult,w.return(b.encoder.encode(U));K=_.Ow(w);VU(K,b.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return w.return(b.encoder.encode(""))})});
this.gameSnacks.init()};
_.S(zr,N3);zr.prototype.onAudioToggled=function(X,H){N3.prototype.onAudioToggled.call(this,X,H===void 0?!0:H);var l;(l=this.gameSnacks)==null||l.audio.update(X)};
zr.prototype.onPause=function(){N3.prototype.onPause.call(this);var X;(X=this.gameSnacks)==null||X.game.pause()};
zr.prototype.onResume=function(){N3.prototype.onResume.call(this);var X;(X=this.gameSnacks)==null||X.game.resume()};var tAC=xYK,WzZ=_.Z(function(X){var H=X.data;var l=X.loadingProgress;var b=X.forPaused;X=_.C(_.FU("",void 0,"LYYTdd"));var U=X.next().value,K=X.next().value;X=_.C(_.FU(!1,void 0,"K0waae"));var w=X.next().value,d=X.next().value,B=[],q=function(){return"transform: scaleX("+(_.a5(l)||0)+")"},u=null,e=function(){return H()&&u!==null&&u!==void 0?u:u=H().showAnniversaryAnimation?6:tAC()};
_.Wg(function(){var z;if(H().timeOutMessages&&((z=H().timeOutMessages)==null?0:z.length)){u=null;z=_.C(B);for(var t=z.next();!t.done;t=z.next())clearTimeout(t.value);B.length=0;DY8(H().timeOutMessages,B,K,d)}},"BNu9j");
var y=function(){return!!H().persistentErrorMessageTitle},V=function(){return l!==void 0},p=function(){return H().title};
return _.F("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.F("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.F("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.F("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var z,t=(z=H().backgroundImage)==null?void 0:z.sources,W;return(t==null?0:t.length)?"background-image: url("+((W=t[0])==null?void 0:W.url)+")":""}}),_.F("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.F(_.M,{cond:function(){return!y()&&!(b==null?0:b())},
then:function(){var z={};return _.F("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.F("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.F(_.Jx,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+e()},
data:function(){var t="loading_animation_"+e();return{animationConfig:{name:t,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+t+".json",loop:!0,autoplay:!0}}}})),_.F("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.F(_.M,{cond:p,
then:function(){return _.F("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},p)}}),_.F("p",{class:_.Qr("miniAppSplashScreenViewModelTimeoutMessage",(z.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return w()},z)),
"aria-live":"polite"},U),_.F(_.M,{cond:V,then:function(){return _.F("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.F("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:q}))}})))}}),_.F(_.M,{cond:y,
then:function(){return _.F("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.F("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return H().persistentErrorMessageTitle}),_.F(_.M,{cond:function(){return!!H().persistentErrorMessageDescription},
then:function(){return _.F("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return H().persistentErrorMessageDescription})}}))}}),_.F(_.M,{cond:b,
then:function(){return _.F("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.F("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.F("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},p))}})))},"Yf");var EnU=new _.gz("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var gnp=J1;J1=function(X){function H(l){if(l){var b,U;(b=l.__spec)==null||(U=b.didUnmount)==null||U.call(b);for(b=0;b<l.childNodes.length;b++)H(l.childNodes[b])}}
gnp==null||gnp(X);wC(function(){for(var l=0;l<X.length;l++)H(X[l])})};var G2A=_.Z(function(X){var H=X.data;var l=X.score;var b=X.formattedScore;var U=X.onScoreChanged;var K=X.isEmbeddedInWebview;var w=_.z7("yt-mini-app-score-button-view-model"),d=function(){var V;return _.f(H==null?void 0:(V=H())==null?void 0:V.buttonViewModel,_.fk)},B=function(){var V;
return(l==null?void 0:l())||Number(H==null?void 0:(V=H())==null?void 0:V.lastScore)||0},q=function(){var V;
return(b==null?void 0:b())||((V=d())==null?void 0:V.title)||""},u,e=1;
if(X=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))X=Number(X),e=isNaN(X)?1:X/100;_.Wg(function(){U==null||U(B());var V;var p=_.sl((V=d())==null?void 0:V.onTap);if(p){V=_.f(p,i0Y);var z,t,W;V=_.f(V==null?void 0:(z=V.panelLoadingStrategy)==null?void 0:(t=z.inlineContent)==null?void 0:(W=t.dialogViewModel)==null?void 0:W.customContent,XXH)}else V=void 0;if(z=V)z.score=q()},"Aekez");
X=_.Nq(function(){var V,p,z=H==null?void 0:(V=H())==null?void 0:(p=V.loggingDirectives)==null?void 0:p.trackingParams;z&&_.Y8(_.jJ().resolve(_.UR),z);return!1});
_.DR(function(){if(w.value){var V=w.value.querySelector("button"),p=d();V&&p&&W7l(V,p);_.Np("yt-share-playable-with-high-score",function(){var z=B().toString(),t=H==null?void 0:H().onShareHighScoreCommand,W=H==null?void 0:H().highScoreShareClientParamIdentifier,G=K==null?void 0:K();t&&(G?(W=new Svz,z=_.KY(W,2,z),yU(t,z.JSC$12844_serializeBinary())):W&&(_.jJ().resolve(EnU).clientParams.set(W,{miniAppClientParams:{highScore:z}}),hUW(t,!1)))})}});
var y=function(){var V=d();V&&(l==null?0:l())&&V.accessibilityText&&(V.accessibilityText=V.accessibilityText.replace(u,q()));u=q();return{numberValue:B(),numberText:q(),heightPx:36,fontSizeMultiplier:e,shouldAnimate:!(l==null||!l())&&!0}};
return _.F("yt-mini-app-score-button-view-model",{class:function(){var V={};return _.dj("miniAppScoreButtonViewModelHost",(V.miniAppScoreButtonViewModelIsVisible=B()!==0,V))},
el:w,"on:click":X},zVW(!1,function(){return _.F("span",{style:"display:none;"},B)}),_.F(_.l4,{data:function(){var V;
return H==null?void 0:(V=H())==null?void 0:V.buttonViewModel}},{buttonViewModel:function(V){return _.F(_.Qk,{data:V.data,
animatedTextProps:y})}}))},"$f");var OXU=_.Z(function(X){var H,l=(H=_.Ce("yt-mini-app-is-theater-mode-enabled"))!=null?H:!1,b=_.P("enable_playable_container_save_button"),U=_.P("enable_play_next_destination_page_in_toolbar");H={};return _.F("ytm-mini-app-top-bar-view-model",null,_.F("div",{class:_.Qr("yt-mini-app-top-bar-view-model",(H["yt-mini-app-top-bar-view-model--mobile"]=!1,H["yt-mini-app-top-bar-view-model--desktop"]=!0,H))},_.F("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.F(_.M,{cond:function(){var K;return!!X.data().backButtonEdu&&
!((K=X.isExitMiniAppSeen)==null?0:K.call(X))},
then:function(){return _.F(_.l4,{data:function(){return X.data().backButtonEdu}},{buttonViewModel:_.Qk})},
else:function(){return _.F(_.l4,{data:function(){return X.data().backButton}},{buttonViewModel:_.Qk})}}),_.F(_.M,{cond:function(){return X.data().viewAllButton&&!0},
then:function(){return _.F(_.l4,{data:function(){return X.data().viewAllButton}},{buttonViewModel:_.Qk})}}),_.F(_.M,{cond:function(){return X.data().title&&!0},
then:function(){return _.F("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return X.data().title})}})),_.F("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.F(_.M,{cond:function(){var K;
return(K=X.isDesktopPlayPage)==null?void 0:K.call(X)},
then:function(){return _.F(_.Xi,null,_.F(arx,{highScoreButton:function(){return X.data().highScoreButton},
score:X.score,formattedScore:X.formattedScore,onScoreChanged:X.onScoreChanged,isEmbeddedInWebview:X.isEmbeddedInWebview}),_.F(ZX5,{enableSaveButton:function(){return _.a5(b)},
saveButton:function(){return X.data().saveButton},
isSaved:X.isSaved,onSaveToggled:function(){return X.onSaveToggled}}),_.F(iX$,{menuButton:function(){return X.data().menuButton}}))},
else:function(){return _.F(_.M,{cond:function(){return!1},
then:function(){return _.F(_.l4,{data:function(){return X.data().playPageButton}},{buttonViewModel:function(K){return _.F(_.Qk,{data:K.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.F(arx,{highScoreButton:function(){return X.data().highScoreButton},
score:X.score,formattedScore:X.formattedScore,onScoreChanged:X.onScoreChanged,isEmbeddedInWebview:X.isEmbeddedInWebview})}})}})),_.F("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.F(_.l4,{data:function(){return X.data().muteButton}},{toggleButtonViewModel:function(K){var w=K.data;
return _.F(_.KL,{data:function(){var d,B;return Object.assign({},w(),{isToggled:(B=(d=X.isAudioEnabled)==null?void 0:d.call(X))!=null?B:!0})},
onToggle:X.onAudioToggled,useOutlinedIcon:!0})}}),_.F(_.l4,{data:function(){return X.data().theatreModeButton}},{toggleButtonViewModel:function(K){var w=K.data;
return _.F("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.F(_.KL,{data:function(){return Object.assign({},w(),{isToggled:l})},
useOutlinedIcon:!0}))}}),_.F(vnl,{fullscreenButton:function(){return X.data().fullscreenButton}}),_.F(_.M,{cond:function(){return _.a5(U)&&X.data().viewAllButton&&!1},
then:function(){return _.F(_.l4,{data:function(){return X.data().viewAllButton}},{buttonViewModel:_.Qk})}}),_.F(_.M,{cond:function(){var K;
return!((K=X.isDesktopPlayPage)==null?0:K.call(X))},
then:function(){return _.F(_.Xi,null,_.F(ZX5,{enableSaveButton:function(){return _.a5(b)},
saveButton:function(){return X.data().saveButton},
isSaved:X.isSaved,onSaveToggled:function(){return X.onSaveToggled}}),_.F(iX$,{menuButton:function(){return X.data().menuButton}}))}}))))},"ag");
OXU.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var iX$=_.Z(function(X){return _.F(_.l4,{data:X.menuButton},{buttonViewModel:_.Qk})},"bg"),ZX5=_.Z(function(X){var H=X.enableSaveButton;
var l=X.saveButton;var b=X.isSaved;var U=X.onSaveToggled;return _.F(_.M,{cond:function(){return H()&&!(l==null||!l())},
then:function(){return _.F(_.l4,{data:function(){var K=_.f(l==null?void 0:l(),_.SR),w;return{toggleButtonViewModel:Object.assign({},K,{isToggled:(w=b==null?void 0:b())!=null?w:!(K==null||!K.isToggled)})}}},{toggleButtonViewModel:function(K){return _.F(_.KL,{data:K.data,
onToggle:U})}})}})},"cg"),arx=_.Z(function(X){var H=X.highScoreButton;
var l=X.score;var b=X.formattedScore;var U=X.onScoreChanged;var K=X.isEmbeddedInWebview;return _.F(_.l4,{data:H},{miniAppScoreButtonViewModel:function(w){return _.F(G2A,{data:w.data,score:l,formattedScore:b,onScoreChanged:U,isEmbeddedInWebview:K})}})},"dg"),vnl=_.Z(function(X){X=X.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.F(_.Xi,null):_.F(_.l4,{data:X},{buttonViewModel:_.Qk})},"eg");_.may=_.Z(function(X){var H=X.data;var l=X.extractOverlay;X={};return _.F("player-disclosure-view-model",{class:_.Qr("ytwPlayerDisclosureViewModelHost",(X.ytwPlayerDisclosureViewModelExtractOverlay=function(){return l==null?void 0:l()},X))},_.F(_.ZE,{command:function(){return H().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.F(_.M,{cond:function(){return H().iconName},
then:function(b){return _.F(_.Ja,{icon:b})}}),_.F(_.M,{cond:function(){return H().iconName?void 0:H().image},
then:function(b){return _.F(_.Dp,{data:b,alt:function(){return H().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.F(_.M,{cond:function(){return H().title||H().secondaryText},
then:function(){return _.F("div",null,_.F("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return H().title}),_.F("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return H().text}),_.F(_.M,{cond:function(){return H().secondaryText},
then:function(b){return _.F(_.Xi,null,_.F("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.F("div",{class:"ytwPlayerDisclosureViewModelText"},b))}}))},
else:function(){return _.F("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return H().text})}}),_.F(_.M,{cond:function(){return H().showEndChevron},
then:function(){return _.F(_.Ja,{icon:"CHEVRON_RIGHT"})}})))},"fg");_.Q$U=new _.gz("DESKTOP_CURRENT_PAGE");var Jbx=_.Z(function(X){var H=X.data;var l=_.P("force_active_time_logging_webview"),b=!1,U=new MAl,K=void 0,w=void 0,d=_.jJ().resolve(s$U),B=new CRN,q=void 0,u=void 0,e=[],y=void 0,V=void 0,p=!1,z=!1,t=!1,W=!1,G=new _.cF,r=_.jJ().resolve(EnU),Q=_.jJ().resolve(_.i7),v=_.jJ().resolve(_.c$(o2)),J,Y=(J=_.jJ().resolve(_.c$(_.Q$U)))==null?void 0:J.getCurrentPage(),Uy=!1,Cy=0,sy=function(XH){XH.preventDefault();return XH.returnValue=""},FO,ub=_.C(_.FU(!((FO=_.Ce("yt-mini-app-is-audio-enabled"))!=null&&!FO),
void 0,"y7Nkqd")),g8=ub.next().value,mm=ub.next().value,QZ,Bz=_.C(_.FU(!((QZ=_.Ce("exit-mini-app-seen-state"))==null||!QZ),void 0,"ZP6Oxc")),dt=Bz.next().value,TK=Bz.next().value,sG=_.C(_.FU(!1,void 0,"BCKP1c")),f_=sG.next().value,Mv=sG.next().value,nd=_.C(_.FU(void 0,void 0,"bswUUd")),$U=nd.next().value,MW=nd.next().value,ZL=_.C(_.FU(void 0,void 0,"sXcJfc")),uF=ZL.next().value,rt=ZL.next().value,xQ=_.C(_.FU(!0,void 0,"DDj4gb")),AQ=xQ.next().value,D3=xQ.next().value,YQ=_.C(_.FU(!1,void 0,"qXUljf")),
F5=YQ.next().value,TY=YQ.next().value,NZ=_.C(_.FU(!1,void 0,"XqvjOc")),C_=NZ.next().value,qZ=NZ.next().value,qv=_.C(_.FU(void 0,void 0,"S1uX2")),cz=qv.next().value,OG=qv.next().value,Sy=_.C(_.FU(0,void 0,"CGS0ze")),$m=Sy.next().value,mD=Sy.next().value,RC=_.SJ("mini-app-container-view-model"),IC=_.C(_.FU(!1,void 0,"AVpgJ")),R$=IC.next().value,nW=IC.next().value,wX=function(){return H().isEmbeddedInWebview},AR=function(){return H().hasPlayNextShelf};
_.xy(function(){var XH,sa=(XH=_.f(H().contentDisclosure,uXY))==null?void 0:XH.animationParams;if((sa==null?0:sa.shouldHide)&&(sa==null?0:sa.hideDelaySecs)){var tN=setTimeout(function(){nW(!0)},sa.hideDelaySecs*1E3);
_.E2(function(){clearTimeout(tN)})}});
_.Np("yt-page-type-changed",function(XH){if(_.P("enable_is_mini_app_page_active_bugfix"))XH.detail.newPageSubtype==="mini_app"&&XH.detail.newPageType==="ytd-browse"||!AQ()||Yr();else if(XH=_.Es()==="mini_app",XH!==AQ())if(D3(XH),XH){var sa;XH=(sa=H().playableId)==null?void 0:sa.toString();XH!==void 0&&window.location.href.includes(XH)&&!z&&(W=!0,k3(),PJ.value&&zx(PJ.value))}else XH||Yr()});
_.Np("yt-action",function(XH){XH.detail.actionName==="yt-engagement-panel-visible-changed"&&XH.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&XH.detail.args[2]==="PAmini_app_panel"&&Yr();_.P("enable_is_mini_app_page_active_bugfix")?XH.detail.actionName==="yt-history-load"&&!AQ()&&(Y==null?0:Y.active)?(D3(!0),k3(),PJ.value&&zx(PJ.value)):XH.detail.actionName==="yt-history-load"&&AQ()&&!H().isEmbeddedInWebview&&p_():AQ()&&XH.detail.actionName==="yt-history-load"&&(W?W=!1:H().isEmbeddedInWebview||
p_())});
_.E2(function(){KJ()});
_.Wg(function(){k3()},"Jr1tnc");
var k3=function(){var XH=H().playableId,sa=H().localReleaseId,tN=H().derivedDeviceInterface;if(z)_.x2(new _.qd("[MiniAppContainerViewModel] onEnter was called more than once"));else{z=!0;K=new Yay(XH,sa,tN,document.visibilityState==="visible");HXU(K);w=new PRZ(XH);ToN(d,XH);wux(B,{showMiniAppAdCommand:H().showMiniAppAdCommand,isEmbeddedInWebview:H().isEmbeddedInWebview,playLogger:K});nMy()&&(V=document.body.style.backgroundColor,_.ko(document.body,"background-color","black"));$1();hS();G=new _.cF;
if(H().isEmbeddedInWebview){if(XH=(new URLSearchParams(window.location.search)).get("postPlayNonce"))ANC(K,XH),Uy=!0;U.initialize({onAudioStateLoaded:function(rY){Jy(rY)},
onMuteMiniApp:function(){Jy(!1)},
onUnmuteMiniApp:function(){Jy(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(rY){Uy||(ANC(K,rY),Uy=!0)},
confirmExitMiniApp:function(){var rY,Z3,m4;return _.h(function(QW){if(QW.nextAddress==1)return H().confirmExitMiniAppCommand?QW.yield(Promise.race([G.promise,Promise.resolve(!1)]),2):QW.return();(rY=QW.yieldResult)?!H().confirmExitMiniAppCommandEdu||(m4=(Z3=dt)==null?void 0:Z3())!=null&&m4?L2(H().confirmExitMiniAppCommand):(L2(H().confirmExitMiniAppCommandEdu),_.R6("exit-mini-app-seen-state","true",2592E6)):L2(H().closeMiniAppCommand);_.m5(QW)})},
onNativeBenchmarkingMessageReceived:function(rY){rY=r8_(_.T8O(rY));if(_.$g(rY,_.uD,3,NBH)){var Z3=_.ys(rY,_.uD,3,NBH),m4=F7W();var QW=p8(m4.getSeconds())-p8(Z3.getSeconds());Z3=_.O_(m4,2)-_.O_(Z3,2);QW<0&&Z3>0?(QW+=1,Z3-=1E9):QW>0&&Z3<0&&(--QW,Z3+=1E9);QW=(new ZO).setSeconds(QW);QW=_.$n(QW,2,_.dY(Z3),0);_.go(rY,1,QW)}var QP;(QP=u)==null||QP.returnNativeBenchmarkingMessage(rY)},
multiplayer3pAckStateLoaded:function(rY){p_(rY)},
exitMiniAppSeenStateLoaded:function(rY){H().confirmExitMiniAppCommandEdu&&TK(rY)},
onNavigateToNewMiniApp:function(){L2(H().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(rY){rY=new URLSearchParams(rY);var Z3=void 0;rY.has("invite_code")&&(Z3=new H5F,rY=rY.get("invite_code"),Z3=_.KY(Z3,1,rY));if(rY=Z3){var m4;(m4=u)==null||m4.sendGameData(rY)}},
onPauseMiniApp:function(){b=!0;kN()},
onResumeMiniApp:function(){b=!0;ib()},
onPausePlayableDialog:function(){t=!0;kN()},
onResumePlayableDialog:function(){t=!1;ib()},
onAdFinished:function(rY){B.onAdFinished(rY)}});
H().showMultiplayer3pConsentDialogCommand||G.resolve(!0);L2(H().onContainerReadyCommand)}else ANC(K),G.resolve(!0),H().runAttestationCommand&&IA5(K).then(function(rY){var Z3=_.f(wky(H().runAttestationCommand),_.cPY);Z3&&Z3.ids&&(Z3.ids.push({postPlayNonce:rY}),L2(H().runAttestationCommand))});
frC(w,IA5(K));IA5(K).then(function(rY){rY={miniAppPlayData:{postPlayNonce:rY}};var Z3,m4=(Z3=H().loggingDirectives)==null?void 0:Z3.trackingParams;m4&&_.lv().stateChanged(m4,rY)});
XH=H().showSignInDialogCommand;!uMh()&&XH&&(_.R6("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),L2(XH));H().confirmExitMiniAppCommand&&v&&(XH=wky(H().confirmExitMiniAppCommand))&&(v.customConfirmationCommand=XH)}},KJ=function(){V&&_.ko(document.body,"background-color",V);
p=!1;y&&y.release();w.flush().catch(function(XH){_.x2(XH)});
d.flush().catch(function(XH){_.x2(XH)});
onY(K);ef();u=void 0;NoC(r)},Yr=function(){D3(!1);
KJ();Mv(!1);OG(void 0);MW(void 0);rt(void 0);Cy=0;mD(0);z=!1},kN=function(){var XH;
(XH=u)==null||XH.onPause();y&&y.release();w.flush().catch(function(sa){_.x2(sa)});
d.flush().catch(function(sa){_.x2(sa)});
lrU(K);TY(!0)},ib=function(){var XH;
(XH=u)==null||XH.onResume();hS();XH=K;XH.isForeground=!0;OB(XH,"PLAY_EVENT_TYPE_PLAY_RESUME");TY(!1)},Jy=function(XH){var sa;
(sa=u)==null||sa.onAudioToggled(XH);mm(XH)},p_=function(XH){H().showMultiplayer3pConsentDialogCommand&&(H().isEmbeddedInWebview&&XH!==void 0&&G.resolve(XH),!XH&&_.Es()==="mini_app"&&L2(H().showMultiplayer3pConsentDialogCommand))},Pp=function(){var XH,sa,tN,rY;
return _.h(function(Z3){if(Z3.nextAddress==1){!H().isLivestream||H().disableVideoCapture||(XH=u)!=null&&XH.sendStartGameFrameCapture();sa=(new URL(window.location.href)).searchParams;if(sa.has("invite_code")){var m4=new H5F,QW=sa.get("invite_code");tN=_.KY(m4,1,QW);(rY=u)==null||rY.sendGameData(tN)}f_()||(Mv(!0),m4=K,m4.state!==1?_.x2(new _.qd("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+JNx[m4.state])):(_.l0("mini_app_ids_without_game_ready").includes(m4.JSC$17406_miniAppId)&&(m4.gameReady=
!0),m4.state=2,m4.beforeReady=!1,vl(m4,"ma_ffr"),OB(m4,"PLAY_EVENT_TYPE_PLAY_READY")));return Z3.yield(G.promise,2)}L2(H().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();H().isEmbeddedInWebview||p_();_.m5(Z3)})},kn=function(){var XH=K;
XH.gameReady=!0;vl(XH,"ma_gr")},kU=function(XH){var sa;
return _.h(function(tN){if(tN.nextAddress==1)return _.Ew(tN,2),tN.yield(SUC(w,XH),4);if(tN.nextAddress!=2)return _.Zt(tN,0);sa=_.Ow(tN);L2(H().showSavingErrorPopupCommand);throw sa;})},zY=function(){var XH,sa;
return _.h(function(tN){if(tN.nextAddress==1)return _.Ew(tN,2),tN.yield(pue(w),4);if(tN.nextAddress!=2)return XH=tN.yieldResult,tN.return(XH);sa=_.Ow(tN);L2(H().showLoadingErrorDialogCommand);throw sa;})},Sq=function(XH){K.logError(XH)},Oa=function(XH,sa,tN){Ua5(K,XH,sa,tN)},UU=function(XH,sa){KzC(K,XH,sa)},eq=function(){!l&&H().isEmbeddedInWebview||_.rn();
bXd(K,!0);p||(window.addEventListener("beforeunload",sy,{capture:!0}),p=!0)},EH=function(XH){var sa,tN,rY,Z3,m4,QW,QP;
return _.h(function(fG){if(fG.nextAddress==1)return d&&(!q||q<XH)&&XH>0?fG.yield(cbp(d,XH),3):fG.jumpTo(0);sa=fG.yieldResult;tN=_.C(sa);rY=tN.next().value;Z3=tN.next().value;m4=rY;QW=Z3;((QP=m4)==null?0:QP.displayString)&&QW&&(MW(QW),rt(m4.displayString));_.m5(fG)})},RZ=function(XH){var sa=H().onBenchmarkingMessageReceivedCommand;
if(sa){var tN=F7W();_.G2(XH,3,NBH,tN);yU(sa,J89(XH))}},Q2=function(){var XH=H().iapPurchaseCommand;
XH&&yU(XH)},s_=function(XH){var sa=H().onGameFrameReceivedCommand;
if(sa){var tN=new Ck;var rY=new JIY;var Z3=BC(XH,1);rY=_.qp(rY,1,Z3);XH=_.sC(XH,2);XH=_.KY(rY,2,XH);tN=_.go(tN,2,XH);yU(sa,AIC(tN))}},XB=function(XH){var sa=H().onGameAudioDataReceivedCommand;
if(sa){var tN=new Ck;var rY=new Y7v;XH=_.sC(XH,1);rY=_.KY(rY,1,XH);tN=_.go(tN,4,rY);yU(sa,AIC(tN))}},HQ=function(){var XH=new URLSearchParams(window.location.search);
if(H().isEmbeddedInWebview&&XH&&XH.get("override_hl")==="true"&&XH.get("hl"))return XH.get("hl");XH=document.documentElement.lang;return XH!==""?XH:fT},bI=function(XH){var sa=H().onShareInviteCodeCommand;
if(sa)if(H().isEmbeddedInWebview){var tN=new Svz;XH=_.KY(tN,1,XH);yU(sa,nWQ(XH))}else tN=H().inviteCodeShareClientParamIdentifier,r.clientParams.set(tN,{miniAppClientParams:{inviteCode:XH}}),L2(sa)},fN=function(XH){var sa,tN,rY;
return _.h(function(Z3){if(Z3.nextAddress==1)return sa=H().onMiniAppOpenYtContentRequested,d&&_.P("enable_open_yt_content")&&sa?Z3.yield(j$x(d,XH),3):Z3.jumpTo(0);tN=Z3.yieldResult;if(tN==="OK")if(H().isEmbeddedInWebview){var m4=new NMq;rY=$2(m4,2,Rc,xU(XH));yU(sa,rI6(rY))}else Q.clientData.set("video_id",XH),L2(sa);_.m5(Z3)})},RE=function(XH){Cy+=_.O_(XH,3);
XH=Math.min(Math.log(1+Cy/15E6*9)/Math.log(10),.99);mD(XH);M9(XH)},M9=_.qO(function(XH){var sa=H().updateLoadingProgressCommand;
if(sa){var tN=new NMq;XH=$2(tN,3,Rc,_.lx(XH));yU(sa,rI6(XH))}},100),ud=function(XH,sa){switch(XH){case 1:return hua(B);
case 2:return FzY(B);case 3:return qUx(B,sa);default:return Promise.reject(Error("ei"))}},hS=function(){var XH,sa;
((XH=_.LH8())==null?void 0:(sa=XH.wakeLock)==null?void 0:sa.request)!=null&&_.LH8().wakeLock.request("screen").then(function(tN){y=tN}).catch(function(){})},PJ=_.z7("iframe");
_.Wg(function(){H().isSupportedCountry&&(uMh()||_.P("enable_sign_in_promo")||!H().showSignInDialogCommand?PJ.value&&zx(PJ.value):L2(H().onMiniAppReadyCommand))},"I8Fvz");
var U$=function(){return _.F("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return f_()?0:-1},
title:function(){return H().title},
el:PJ})},zx=function(XH,sa){sa=sa===void 0?!1:sa;
var tN=nc();if(tN&&(sa||tN.toString()!==XH.getAttribute("src"))){u=Sub(H().source,{isAudioEnabled:g8,onFirstFrameReady:Pp,onGameReady:kn,onSave:kU,onLoad:zY,onError:Sq,onSdkCalled:Oa,onSdkPerformanceUpdate:UU,onClick:eq,onSendHighScore:EH,onBenchmarkingMessageReceived:RZ,getLanguage:HQ,onShareInviteCode:bI,onResourceLoaded:RE,onOpenYTContent:fN,onShowMiniAppAd:ud,onGameFrameReceived:s_,onGameAudioReceived:XB,onMakeIapPurchase:Q2},XH,tN);MF(XH,"load",function(){vl(K,"ma_il");MF(XH,"load",function(){zx(XH,
!0)})});
var rY=_.Yy("mini_app_container_iframe_src_update_delay_ms");H().isEmbeddedInWebview&&!sa&&rY>0?sTK(XH,tN,rY):_.RD(XH,tN)}},nc=function(){var XH=H().url;
if(XH&&(XH=_.zd(XH),XH!==null)){if(H().source&&H().source==="MINI_APP_SOURCE_GAMESNACKS")XH=_.n$(XH,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.P("enable_origin_query_parameter_bugfix")){var sa=_.T8(_.rjZ(XH.toString()));sa=new URLSearchParams(sa||"");sa.set("origin",window.location.origin);sa=sa.toString();XH=_.OU(XH).toString();XH=_.vu(EOH.exec(XH)[0]+(sa.trim()?"#"+sa:""))}return XH}},oq=function(){var XH={};
XH=_.Qr("yt-mini-app-container-view-model__loading-screen",(XH["yt-mini-app-container-view-model__loading-screen--fade-out"]=f_,XH));var sa=function(){return f_()?1:$m()};
return _.F("div",{class:XH},_.F(_.l4,{data:function(){return H().splashScreen}},{miniAppSplashScreenViewModel:function(tN){return _.F(WzZ,{data:tN.data,
loadingProgress:sa})}}))},le=function(){var XH={};
return _.F("div",{class:_.Qr("yt-mini-app-container-view-model__pause-interstitial",(XH["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!F5()},XH["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=F5,XH))},_.F(_.l4,{data:function(){return H().splashScreen}},{miniAppSplashScreenViewModel:function(sa){return _.F(WzZ,{data:sa.data,
forPaused:!0})}}))},$1=function(){e=[];
e.push(_.n8(window,"visibilitychange",function(){t||b&&wX()||(document.visibilityState==="visible"?ib():kN())}));
e.push(_.n8(window,"pagehide",function(){KJ()}));
e.push(_.n8(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&RC.value.dispatchEvent(new Event("tap"))},0)}));
e.push(_.n8(RC.value,"pointerdown",function(){bXd(K,!1)},!0));
e.push(_.n8(RC.value,"pause",function(){t=!0;kN()}));
e.push(_.n8(RC.value,"play",function(){t=!1;ib()}));
e.push(_.n8(RC.value,"exit",function(){KJ()}));
var XH=navigator.keyboard,sa=XH&&XH.lock;e.push(_.n8(window,AaQ,function(){qZ(HuK());HuK()?(H().hasPlayNextShelf&&CL("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),oV("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),sa&&XH.lock(["Escape"])):(H().hasPlayNextShelf&&oV("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),CL("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),sa&&XH.unlock())}));
H().showMultiplayer3pConsentDialogCommand&&e.push(_.n8(window,"yt-playables-ack-3p-data-usage",function(){rbZ(d)}));
H().confirmExitMiniAppCommandEdu&&e.push(_.n8(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.R6("exit-mini-app-seen-state","true",2592E6)}));
H().onGameAudioDataReceivedCommand&&e.push(_.n8(window,"message",function(tN){tN=tN.event_;var rY,Z3=(rY=PJ.value)==null?void 0:rY.src;if(Z3&&tN.origin===(new URL(Z3)).origin&&tN.data&&tN.data.type==="GAME_AUDIO"&&tN.data.audio&&tN.data.audio.length>0)if(_.P("enable_sending_unwrapped_game_audio_as_serialized_metadata"))quZ(H().onGameAudioDataReceivedCommand,tN.data.audio);else{var m4=new FileReader;m4.onload=function(){var QW=new Ck;var QP=new Y7v;QP=_.KY(QP,1,m4.result);QW=_.go(QW,4,QP);yU(H().onGameAudioDataReceivedCommand,
AIC(QW))};
m4.readAsDataURL(new Blob([tN.data.audio]))}}))},ef=function(){e.forEach(function(XH){Ul(XH)});
window.removeEventListener("beforeunload",sy,{capture:!0})},L2=function(XH){XH&&hUW(XH,H().isEmbeddedInWebview||!1)},oV=function(XH,sa){XH=_.C(RC.value.getElementsByClassName(XH));
for(var tN=XH.next();!tN.done;tN=XH.next())tN.value.classList.add(sa)},CL=function(XH,sa){XH=_.C(RC.value.getElementsByClassName(XH));
for(var tN=XH.next();!tN.done;tN=XH.next())tN.value.classList.remove(sa)};
return function(){var XH={};XH=_.Qr("yt-mini-app-container-view-model",(XH["yt-mini-app-container-view-model--desktop"]=!0,XH["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return H().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},XH["yt-mini-app-container-view-model--ios-web-view"]=nMy(),XH["yt-mini-app-container-view-model--no-top-bar"]=function(){return!H().topBar},XH["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return H().hasPlayNextShelf},XH["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return H().hasPlayNextShelf},XH["yt-mini-app-container-view-model--show-peek-below"]=function(){return!C_()&&H().hasPlayNextShelf},XH));
var sa={};sa=_.Qr("yt-mini-app-container-view-model__content",(sa["yt-mini-app-container-view-model__content--desktop-content"]=!0,sa["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return H().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},sa["yt-mini-app-container-view-model--desktop-play-page"]=function(){return H().hasPlayNextShelf},sa));
return _.F("mini-app-container-view-model",{el:RC},_.F("div",{class:XH},_.F(_.M,{cond:function(){return H().topBar&&!C_()},
then:function(){return _.F(_.l4,{data:function(){return H().topBar}},{miniAppTopBarViewModel:function(tN){return _.F(OXU,{data:tN.data,
isAudioEnabled:g8,onAudioToggled:function(rY){Jy(rY)},
score:$U,formattedScore:uF,onScoreChanged:function(rY){q=rY},
isEmbeddedInWebview:wX,isSaved:cz,onSaveToggled:function(rY){OG(rY)},
isExitMiniAppSeen:dt,isDesktopPlayPage:AR})}})}}),_.F("div",{class:sa},_.F(_.M,{cond:AQ,
then:function(){return U$()}}),_.F(_.M,{cond:function(){return H().isLivestream},
then:function(){return le()}}),_.F(_.M,{cond:function(){return!H().isEmbeddedInWebview},
then:function(){return oq()}}),_.F(_.l4,{data:function(){return H().contentDisclosure}},{playerDisclosureViewModel:function(tN){tN=tN.data;
var rY={};return _.F("div",{class:_.Qr("yt-mini-app-container-view-model__content-disclosure-overlay",(rY["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=R$,rY))},_.F(_.may,{data:tN}))}}))))}()},"jg");
Jbx.idomCompat=!0;_.gC(Jbx,"mini-app-container-view-model",{props:{data:_.zh}});var LzZ=_.Z(function(X){var H=X.data;return _.F("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.F("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Nq(function(){var l=H().onTap;l&&_.yr(l)})},_.F(_.M,{cond:function(){return H().icon},
then:function(l){return _.F(_.Ja,{icon:function(){return l().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.F("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return H().title})))},"kg");
LzZ.idomCompat=!0;var YUe=_.Z(function(X){var H=_.SJ("div"),l=_.C(_.FU(void 0,void 0,"dg3xff")),b=l.next().value,U=l.next().value;l=_.C(_.FU(void 0,void 0,"AgHNfc"));var K=l.next().value,w=l.next().value;l=_.C(_.FU(void 0,void 0,"fuTKCc"));var d=l.next().value,B=l.next().value,q=function(){var W=b();return W!==void 0?Math.abs(W):void 0},u=function(){var W=q();
return W===void 0||W<=3},e=function(){var W=q();
var G=K(),r=d();W=W!==void 0&&G!==void 0&&r!==void 0?G-r-W:void 0;return W===void 0||W<=3},y=function(W){H.value&&H.value.scrollBy({top:0,
left:(_.gx("HTML_DIR")==="rtl"?-1:1)*W*H.value.clientWidth,behavior:"smooth"})},V=function(){var W;
U((W=H.value)==null?void 0:W.scrollLeft);var G;w((G=H.value)==null?void 0:G.scrollWidth);var r;B((r=H.value)==null?void 0:r.clientWidth)},p=function(){y(-.5)},z=function(){y(.5)};
l=_.Nq(function(){V()});
_.xy(function(){V();if(H.value&&window.ResizeObserver){var W=new ResizeObserver(V);W.observe(H.value);_.E2(function(){W.disconnect()})}});
var t={};return _.F("yt-sponsorships-scrollable-shelf",{class:_.Qr("ytdSponsorshipsScrollableShelfHost",X.className)},_.F("div",{class:_.Qr("ytdSponsorshipsScrollableShelfContent",(t.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return X.data().previousButton&&X.data().nextButton&&!u()&&!e()},t.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return X.data().previousButton&&!u()&&e()},t.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return X.data().nextButton&&
u()&&!e()},t)),
el:H,"on:scroll":l},X.children),_.F(_.M,{cond:function(){return!u()},
then:function(){return _.F(_.l4,{data:function(){return X.data().previousButton}},{buttonViewModel:function(W){return _.F(_.Qk,{data:W.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:p})}})}}),_.F(_.M,{cond:function(){return!e()},
then:function(){return _.F(_.l4,{data:function(){return X.data().nextButton}},{buttonViewModel:function(W){return _.F(_.Qk,{data:W.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:z})}})}}))},"mg");
YUe.idomCompat=!0;var Ab$=_.Z(function(X){var H=X.data;X={};return _.F("yt-sponsorships-hub",{class:_.Qr("ytdSponsorshipsHubHost",(X.ytdSponsorshipsHubHostIndented=function(){return H().indented},X))},_.F("div",{class:"ytdSponsorshipsHubHeader"},_.F("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.F("div",{class:"ytdSponsorshipsHubAvatar"},_.F(_.l4,{data:function(){return H().avatar}},{avatarViewModel:_.MX})),_.F(_.M,{cond:function(){return H().badgeImage},
then:function(l){return _.F("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.F("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.F("div",{class:"ytdSponsorshipsHubBadge"},_.F(_.Dp,{data:l,targetWidth:24,targetHeight:24,alt:""}))))}})),_.F("div",{class:"ytdSponsorshipsHubDetails"},_.F("div",{class:"ytdSponsorshipsHubTierName"},function(){return H().tierName}),_.F("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return H().membershipType}),_.F("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return H().membershipDurationOrExpiry})),_.F("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.F(_.l4,{data:function(){return H().manageButton}},{buttonViewModel:function(l){return _.F(_.Qk,{data:l.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.F(_.l4,{data:function(){return H().actionMenuButton}},{buttonViewModel:function(l){return _.F(_.Qk,{data:l.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.F("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return H().perksTitle}),_.F(YUe,{data:function(){return{previousButton:H().previousPerkButton,
nextButton:H().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.F("div",{class:"ytdSponsorshipsHubPerkCards"},_.F(_.l4,{data:function(){return H().perkCards}},{sponsorshipsHubPerkCardViewModel:LzZ}),_.F(_.M,{cond:function(){return H().viewAllPerksButton},
then:function(l){return _.F(IrZ,{data:l})}}))))},"ng");
Ab$.idomCompat=!0;var IrZ=_.Z(function(X){var H=X.data;return _.F("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.F(_.l4,{data:function(){return H().button}},{buttonViewModel:_.Qk}),_.F("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.F("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return H().title}),_.F("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return H().subtitle})))},"og");
IrZ.idomCompat=!0;_.gC(Ab$,"yt-sponsorships-hub",{props:{data:_.zh}});_.XJN=_.Z(function(X){var H=X.data;return _.F("yt-dual-avatar-view-model",{class:_.Qr("ytDualAvatarViewModelHost",X.className),style:_.rC({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var l;return((l=H().badgeCutoutRadius)!=null?l:14)+"px"}})},_.F("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.F(_.l4,{data:function(){return H().startAvatar}},{avatarViewModel:_.MX}),_.F(_.l4,{data:function(){return H().endAvatar}},{avatarViewModel:_.MX})),_.F(_.l4,{data:function(){return H().badge}},
{contentPreviewImageViewModel:function(l){return _.F("div",{class:"ytDualAvatarViewModelBadge"},_.F(_.cU,{data:l.data}))}}))},"pg");
_.XJN.idomCompat=!0;var l3U=_.Z(function(X){var H=X.data;var l,b=!((l=_.jJ().resolve(_.c$(_.b4)))==null||!l());X=_.uL(function(){var u,e,y=b?(u=H().header)==null?void 0:u.backgroundColorDarkMode:(e=H().header)==null?void 0:e.backgroundColorLightMode;if(y!==void 0)return _.qw(y)},void 0,"TDdh7d");
l=_.uL(function(){var u,e;return b?(u=H().header)==null?void 0:u.backgroundImagePart1Dark:(e=H().header)==null?void 0:e.backgroundImagePart1Light},void 0,"X0peMe");
var U=_.uL(function(){var u,e;return b?(u=H().header)==null?void 0:u.backgroundImagePart2Dark:(e=H().header)==null?void 0:e.backgroundImagePart2Light},void 0,"an0Hzd"),K=_.uL(function(){return _.gx("HTML_DIR")==="rtl"},void 0,"BltEgb"),w=_.SJ("yt-sponsorships-perks-list"),d=!1,B=function(){var u=w.value;
if(u&&!d){var e,y=(e=u.parentElement)==null?void 0:e.parentElement;if(y)for(u=u.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),e=0;e<u.length;++e){var V=u[e];if(V instanceof HTMLElement){y.scrollTo({top:V.offsetTop+V.clientHeight/2-y.clientHeight/2,behavior:"smooth"});d=!0;break}}}};
_.DR(function(){var u=w.value;if(u&&window.ResizeObserver){var e=new ResizeObserver(B);e.observe(u);_.E2(function(){e.disconnect()})}});
var q={};return _.F("yt-sponsorships-perks-list",{el:w,class:_.Qr("ytdSponsorshipsPerksListHost",(q.ytdSponsorshipsPerksListHorizontalPadding=function(){return H().horizontalPaddingEnabled},q))},_.F("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.F("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.rC({"background-color":X})},_.F("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.F(_.M,{cond:l,then:function(u){var e={};return _.F("div",{class:_.Qr((e.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=b,e.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!b,e.ytdSponsorshipsPerksListFlipped=K,e))},_.F(_.Dp,{data:u,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.F("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.F(_.M,{cond:U,
then:function(u){var e={};return _.F("div",{class:_.Qr((e.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=b,e.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!b,e.ytdSponsorshipsPerksListFlipped=K,e))},_.F(_.Dp,{data:u,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.F("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.F(_.l4,{data:function(){var u;
return(u=H().header)==null?void 0:u.dualAvatar}},{dualAvatarViewModel:_.XJN})))),_.F("div",{class:"ytdSponsorshipsPerksListBody"},_.F("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return H().title}),_.F(_.M,{cond:function(){return H().perks},
then:function(u){return _.F(_.P$,{each:u},function(e,y){var V={};return _.F("div",{class:_.Qr("ytdSponsorshipsPerksListPerkContainer",(V.ytdSponsorshipsPerksListSelectedPerk=function(){var p=y(),z=H().selectedPerkIndex;return p===z},V))},_.F(_.M,{cond:function(){return y()>0},
then:function(){return _.F("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.F("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.F(_.M,{cond:function(){return e.icon},
then:function(p){return _.F(_.Ja,{icon:function(){return p().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.F("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.F("div",{class:"ytdSponsorshipsPerksListPerkTitle"},e.title),_.F("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.F(_.Sj,{text:e.description})),_.F(_.M,{cond:function(){return e.instructions},
then:function(){var p,z;return _.F("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.F("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(p=e.instructions)==null?void 0:p.title),_.F("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.F(_.Sj,{text:(z=e.instructions)==null?void 0:z.text})))}}))),_.F(_.M,{cond:function(){return e.emoji},
then:function(p){return _.F("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.F(_.P$,{each:function(){return p()}},function(z){return _.F(_.Dp,{data:z,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.F(HJp,{data:e}))})}})))},"qg");
l3U.idomCompat=!0;var HJp=_.Z(function(X){var H=X.data;var l=function(w,d){return w===d},b=function(){var w=H();
w=_.f(w==null?void 0:w.badgesShelf,tnt);return w!==void 0&&w!==null?w:{previousButton:{},nextButton:{}}},U=_.z7("div"),K=function(){var w=U.value;
if(w){var d=w.parentElement;if(d){w=w.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var B=0;B<w.length;++B){var q=w[B];if(q instanceof HTMLElement){d.scrollTo({left:q.offsetLeft+q.clientWidth/2-d.clientWidth/2,behavior:"instant"});break}}}}};
_.DR(function(){var w=U.value;if(w){var d=new ResizeObserver(K);d.observe(w);_.E2(function(){d.disconnect()})}});
return _.F("div",null,_.F(_.M,{cond:function(){return H().badges},
then:function(w){return _.F(YUe,{data:b},_.F("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:U},_.F(_.P$,{each:function(){return w()}},function(d,B){var q={},u={},e={};
return _.F("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.F(_.M,{cond:function(){return B()>0},
then:function(){return _.F("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.F("div",{class:_.Qr("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(q.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return l(B(),H().currentBadgeIndex)},q.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!l(B(),H().currentBadgeIndex)},q))},_.F("div",{class:_.Qr("ytdSponsorshipsPerksListLoyaltyBadge",(u.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return l(B(),
H().currentBadgeIndex)},u.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!l(B(),H().currentBadgeIndex)},u))},_.F(_.M,{cond:function(){return d.image},
then:function(y){var V={};return _.F("div",{class:_.Qr((V.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return l(B(),H().currentBadgeIndex)},V.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!l(B(),H().currentBadgeIndex)},V))},_.F(_.Dp,{data:y,
alt:""}))}})),_.F("div",{class:_.Qr("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(e.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return l(B(),H().currentBadgeIndex)},e))},d.title)))})))}}))},"rg");
HJp.idomCompat=!0;_.gC(l3U,"yt-sponsorships-perks-list",{props:{data:_.zh}});_.gC(_.Z(function(X){return _.F("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.F(_.M,{cond:function(){return X.data().image},
then:function(H){return _.F(_.Dp,{className:"ytwFantasyEmptyStateViewModelImage",data:H,ariaHidden:!0,alt:""})}}),_.F(_.Sj,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return X.data().title}}),_.F(_.Sj,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return X.data().subtitle}}),_.F(_.l4,{data:function(){return X.data().primaryButton}},{buttonViewModel:function(H){return _.F(_.Qk,{data:H.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"sg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.zh}});var oml;var bJe=_.Z(function(X){var H=X.data;var l=X.uniqueId;var b=X.overrides;X=_.uL(function(){var U,K=((U=H().timedAnimationData)==null?void 0:U.animationTiming)||[];return{uniqueId:l(),timings:K,experimentEnabled:K.length>0,enabled:K.length>0}},void 0,"hiuXI");
return _.F("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.F(tr_,{settings:X},_.F(_.l4,{data:function(){return H().buttonRenderer}},{buttonRenderer:function(U){return _.F(_.gF,{data:U.data,
buttonOverrides:b})}})))},"tg");
bJe.idomCompat=!0;_.gC(bJe,"timed-animation-button-renderer",{props:{data:_.zh,uniqueId:_.zh,overrides:_.zh}});var rq=function(){var X=_.a.apply(this,arguments)||this;X.hideJoinButtonBeforeSubscribed=_.P("hide_join_button_before_subscribed");X.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return X};
_.S(rq,_.a);_.R=rq.prototype;_.R.hasShowDialogCommand=function(X){return!!_.f(X,i0Y)};
_.R.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"}}}};
_.R.updateJoinButtonOverrides=function(){var X,H;(X=_.mh(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(H=X.polymerController)==null||H.set("overrides",this.joinButtonOverrides);if(X=_.mh(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))X.overrides=this.joinButtonOverrides};
_.R.handleButtonRefreshAction=function(X){if(X=_.f(X,o7H))this.set("data.membershipButton",X.membershipButton),this.notifyPath("data.membershipButton")};
_.R.onYtServiceRequestError=function(X){_.x$(this.hostElement,X.detail.error.message)};
_.R.onKeydown=function(X){if(X.key==="Enter"){var H;(H=this.data)!=null&&H.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.R.handleUnsubscribeAction=function(){var X,H,l;((X=this.data)==null?void 0:(H=X.membershipButton)==null?void 0:(l=H.buttonRenderer)==null?void 0:l.style)==="STYLE_PRIMARY"&&_.mh(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.ja.Object.defineProperties(rq.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.subscriptionStateEntity)==null||!X.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var X,H=(X=this.data)==null?void 0:X.membershipButton,l;X=(H==null?void 0:H.buttonRenderer)||_.f(H==null?void 0:(l=H.timedAnimationButtonRenderer)==null?void 0:l.buttonRenderer,_.yB);return(X==null?void 0:X.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(X==null?void 0:X.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(X==null?void 0:X.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var X;if(this.hasShowDialogCommand((X=this.data)==null?void 0:X.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var X;if(this.hasShowDialogCommand((X=this.data)==null?void 0:X.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.attributedTitle)}}});
rq.prototype.onYtServiceRequestError=rq.prototype.onYtServiceRequestError;rq.prototype.updateJoinButtonOverrides=rq.prototype.updateJoinButtonOverrides;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],rq.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],rq.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.sv),_.N("design:type",Object)],rq.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],rq.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.C7),_.N("design:type",Object)],rq.prototype,"ironButtonState",void 0);_.T([_.g(),_.N("design:type",Object)],rq.prototype,"data",void 0);_.T([_.x("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],rq.prototype,"hideJoin",null);
_.T([_.g(),_.N("design:type",String)],rq.prototype,"subscribeKey",void 0);_.T([_.g({selectorArgs:["subscribeKey"],selector:pH8}),_.N("design:type",Object)],rq.prototype,"subscriptionStateEntity",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],rq.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.T([_.x("subscriptionStateEntity"),_.g({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],rq.prototype,"subscribed",null);
_.T([_.x("subscribed","data.membershipButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],rq.prototype,"joinButtonOverrides",null);_.T([_.x("data.navigationEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],rq.prototype,"channelNameTabIndex",null);_.T([_.x("data.navigationEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],rq.prototype,"channelNameRole",null);
_.T([_.x("data.attributedTitle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rq.prototype,"hasAttributedTitle",null);_.T([_.Yh("joinButtonOverrides"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rq.prototype,"updateJoinButtonOverrides",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],rq.prototype,"onYtServiceRequestError",null);
_.T([_.sq({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],rq);
var UlC=_.mr()(rq,"ytd-video-owner-renderer",function(){if(oml===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);oml=X}X=oml;return X},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.gC(_.Z(function(X){var H=X.data;var l;X=_.C(_.FU(!((l=_.Ce("yt-mini-app-is-theater-mode-enabled"))==null||!l),void 0,"i2pjVd"));var b=X.next().value,U=X.next().value;l=_.C(_.FU(!1,void 0,"ga7V5c"));var K=l.next().value,w=l.next().value;_.DR(function(){var q=_.n8(window,AaQ,function(){w(HuK())});
_.E2(function(){Ul(q)})});
var d;l=(d=_.jJ().resolve(_.c$(zCa)))!=null?d:function(){return _.F("div",null)};
_.OA("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){U(!0);_.R6("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.OA("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){U(!1);_.R6("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
d={};X={};var B={};return _.F("mini-app-play-page-renderer",{class:_.Qr("miniAppPlayPageRendererHost",(d.miniAppPlayPageRendererHostDetailsView=function(){return!b()},d))},_.F("div",{class:_.Qr("miniAppPlayPageRendererGameContainer",(X.miniAppPlayPageRendererGameContainerDetailsView=function(){return!b()},X))},_.F(_.l4,{data:function(){return H().containerViewModel}},{miniAppContainerViewModel:Jbx}),_.F(_.M,{cond:function(){return H().channel&&H().subscribeButton},
then:function(){var q={};return _.F("div",{class:_.Qr("miniAppPlayPageRendererChannelContainer",(q.miniAppPlayPageRendererHideVisibility=function(){return K()},q))},_.F(_.l4,{data:function(){return H().channel}},{videoOwnerRenderer:function(u){return _.F(UlC,{data:u.data})}}),_.F(_.l4,{data:function(){return H().subscribeButton}},{subscribeButtonViewModel:function(u){return _.F(_.sI,{data:u.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.F(_.M,{cond:function(){return!b()&&H().description},
then:function(){var q={};return _.F("div",{class:_.Qr("miniAppPlayPageRendererMiniAppDescriptionWrapper",(q.miniAppPlayPageRendererHideVisibility=function(){return K()},q))},_.F("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return H().description}))}})),_.F("div",{class:_.Qr("miniAppPlayPageRendererPlayNextContainer",(B.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!b()},B.miniAppPlayPageRendererHideVisibility=function(){return K()},B))},_.F(_.l4,{data:function(){return H().sectionList}},
{sectionListRenderer:l})))},"ug"),"mini-app-play-page-renderer",{props:{data:_.zh}});var Jq=function(){var X=_.a.apply(this,arguments)||this;X.isSearch=!1;X.isConstrainedList=!1;X.hasChipsBar=!1;X.inReplyPanel=!1;X.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"}};X.monitorScroll=!0;X.SCROLL_ANIMATION_DURATION_MS=300;X.nextContinuation={continuationType:"sectionListContinuation"};return X};
_.S(Jq,_.a);_.R=Jq.prototype;
_.R.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(X){switch(X.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:_.P("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.P("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.R.created=function(){var X=this;this.JSC$17552_scrollAnimation=new _.ZB(function(H){X.hostElement.scrollTop=H})};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.R.getItemsPath=function(){return"data.contents"};
_.R.replacePrimaryContent=function(X){this.set("data.contents",X)};
_.R.computeHasSortFilter=function(X){return!!X&&!!X.sortFilterSubMenuRenderer};
_.R.computeShouldScrollInPanel=function(X){var H;return!!(X==null?0:(H=X.scrollPaneStyle)==null?0:H.scrollable)};
_.R.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.TW(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.R.scrollToTop=function(){this.hostElement.scrollTop=0};
_.R.scrollToItemSection=function(X){if(X=this.getItemByIdentifier(X))X=this.getScrollPositionForItem(X),this.hostElement.scrollTop!==X&&this.JSC$17552_scrollAnimation.start(this.hostElement.scrollTop,X,this.SCROLL_ANIMATION_DURATION_MS)};
_.R.getItemByIdentifier=function(X){var H=this.contents.querySelectorAll("ytd-item-section-renderer");if(H&&H.length!==0){var l=Array.from(H).findIndex(function(b){return b.sectionIdentifier===X});
return H[l===-1?0:l]}};
_.R.getScrollPositionForItem=function(X){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===X)return 0;X=_.eP(X).y+this.hostElement.scrollTop-_.eP(this.hostElement).y;return Math.min(X,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.ja.Object.defineProperties(Jq.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.targetId)==="browse-feedFEclips"}}});
Jq.prototype.onScroll=Jq.prototype.onScroll;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.aI.YtLazyListBehavior),_.N("design:type",Object)],Jq.prototype,"ytLazyListBehavior",void 0);_.T([_.k(_.ge.YtNextContinuationBehavior),_.N("design:type",Object)],Jq.prototype,"ytNextContinuationBehavior",void 0);
_.T([_.k(_.TYN),_.N("design:type",Object)],Jq.prototype,"ytBooleanLogicBehavior",void 0);_.T([_.k(_.EO),_.N("design:type",Object)],Jq.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Jq.prototype,"data",void 0);_.T([_.g({value:2}),_.N("design:type",Number)],Jq.prototype,"initialCount",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],Jq.prototype,"autoFill",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.N("design:type",Boolean)],Jq.prototype,"hasSortFilter",void 0);_.T([_.g({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.N("design:type",Boolean)],Jq.prototype,"hideBottomSeparator",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.N("design:type",Boolean)],Jq.prototype,"shouldScrollInPanel",void 0);
_.T([_.g(),_.N("design:type",Object)],Jq.prototype,"isSearch",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Jq.prototype,"isConstrainedList",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Jq.prototype,"responsiveSizing",void 0);_.T([_.g(),_.N("design:type",Object)],Jq.prototype,"hasChipsBar",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Jq.prototype,"pageSubtype",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Jq.prototype,"engagementPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Jq.prototype,"liveChatEngagementPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Jq.prototype,"inReplyPanel",void 0);_.T([_.A2("#action-button"),_.N("design:type",HTMLElement)],Jq.prototype,"actionButton",void 0);_.T([_.g(),_.N("design:type",Object)],Jq.prototype,"scrollUpButtonData",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Jq.prototype,"engagementPanelDropdown",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Jq.prototype,"engagementPanelDialog",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jq.prototype,"isClipList",null);_.T([_.A2("#contents"),_.N("design:type",HTMLElement)],Jq.prototype,"monitorScrollElement",void 0);_.T([_.A2("#contents"),_.N("design:type",HTMLElement)],Jq.prototype,"contents",void 0);
_.T([_.Le("scroll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jq.prototype,"onScroll",null);_.T([_.sq({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Jq);
var $le=_.mr()(Jq,"ytd-section-list-renderer",function(){if(SGA===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);SGA=X}X=SGA;return X},{mode:1});var K5y;var RnN;var CQC;var wJx;var LI=function(){return _.a.apply(this,arguments)||this};
_.S(LI,_.a);LI.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
LI.prototype.onLikeButtonClick=function(X){X.stopPropagation();X.preventDefault()};
_.ja.Object.defineProperties(LI.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)!=null&&X.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],LI.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],LI.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],LI.prototype,"ytRendererStamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],LI.prototype,"data",void 0);
_.T([_.g({selectorArgs:["data.likeStatusEntityKey"],selector:_.Mn}),_.N("design:type",Object)],LI.prototype,"likeStatusEntity",void 0);_.T([_.x("data","likeStatusEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],LI.prototype,"likeButtonRenderer",null);_.T([_.sq({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],LI);
_.O(LI,"ytd-slim-metadata-toggle-button-renderer",function(){if(wJx!==void 0)return wJx;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
return wJx=X},{mode:1});var IW=function(){var X=_.a.apply(this,arguments)||this;X.showEqualizer=_.P("web_enable_playlist_video_lockup_equalizer");X.watchColorUpdate=_.P("kevlar_watch_color_update");X.actionMap={};return X};
_.S(IW,_.a);_.R=IW.prototype;_.R.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"}}}};
_.R.computeEditableClass=function(X){return X&&X.menu?"editable":""};
_.R.computeSelected=function(X){return!(X==null||!X.selected)};
_.R.computeUseColorPalette=function(X){return!!((X==null?0:X.lightColorPalette)&&(X==null?0:X.darkColorPalette))};
_.R.computeLargerPlaylistThumbs=function(X,H){return _.P("web_enable_playlist_bigger_thumbnails")&&!H};
_.R.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.R.onYtServiceRequestSent=function(X,H){H.endpoint&&this.isHideEnclosingAction(H.endpoint)&&!this.selected&&qYD(_.D7(),this.data.videoId)};
_.R.isHideEnclosingAction=function(X){var H=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",X);X=this.get("likeEndpoint.status",X)==="INDIFFERENT";return H||X};
_.R.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.R.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.ja.Object.defineProperties(IW.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.P("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.P("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.P("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 X;return!!(this.withinMiniplayer&&((X=this.data)==null?0:X.actionButtons))}}});
IW.prototype.onYtServiceRequestSent=IW.prototype.onYtServiceRequestSent;IW.prototype.canReorderChanged=IW.prototype.canReorderChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],IW.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],IW.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Sn),_.N("design:type",Object)],IW.prototype,"ytdLockupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],IW.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],IW.prototype,"withinMiniplayer",void 0);_.T([_.g({computed:"computeSelected(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],IW.prototype,"selected",void 0);
_.T([_.g({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],IW.prototype,"useColorPalette",void 0);_.T([_.g({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.N("design:type",Boolean)],IW.prototype,"largerPlaylistThumbs",void 0);_.T([_.g(),_.N("design:type",Object)],IW.prototype,"showEqualizer",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],IW.prototype,"canReorder",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],IW.prototype,"touchPersistentDragHandle",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],IW.prototype,"handleIsHovered",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],IW.prototype,"watchColorUpdate",void 0);_.T([_.g(),_.N("design:type",String),_.N("design:paramtypes",[])],IW.prototype,"reorderIcon",null);
_.T([_.g(),_.N("design:type",String),_.N("design:paramtypes",[])],IW.prototype,"playIcon",null);_.T([_.g({reflectToAttribute:!0}),_.x("withinMiniplayer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],IW.prototype,"minimizePipBreakages",null);_.T([_.x("largerPlaylistThumbs"),_.N("design:type",Number),_.N("design:paramtypes",[])],IW.prototype,"thumbnailWidth",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],IW.prototype,"showActionButtons",null);_.T([_.oi("canReorder"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IW.prototype,"canReorderChanged",null);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],IW.prototype,"onYtServiceRequestSent",null);
_.T([_.sq({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],IW);
_.O(IW,"ytd-playlist-panel-video-renderer",function(){if(CQC!==void 0)return CQC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return CQC=X},{mode:2});var Aq=function(){return _.a.apply(this,arguments)||this};
_.S(Aq,_.a);Aq.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Aq.prototype,"data",void 0);_.T([_.sq({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Aq);
_.O(Aq,"ytd-playlist-panel-supported-items",function(){if(RnN!==void 0)return RnN;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return RnN=
X},{mode:1});X6C=!0;WqF("\\P{N}");var gfh;var dlp=_.XS("END_OF_PLAYLIST",void 0,"End of playlist"),hny=_.XS("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Xb=function(){var X=_.a.apply(this,arguments)||this;X.minimizePipBreakages=_.P("web_pip_minimize_breakages");X.hideHeaderText=!1;X.useColorPalette=!1;X.collapsed=!1;X.collapsedPreServerOverride="not_tracked";X.isHovered=!1;X.expandLabel=_.XS("MINIPLAYER_EXPAND_LABEL");X.collapseLabel=_.XS("MINIPLAYER_COLLAPSE_LABEL");X.isFloating=!1;X.metaPanel=
!1;X.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};X.currentIndex=void 0;return X};
_.S(Xb,_.a);_.R=Xb.prototype;
_.R.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"}}}};
_.R.created=function(){var X=this;this.scrollThrottle=new _.jw(this.onThrottledScroll,1E3,this);this.JSC$17574_ytReorderableController=new _.TEQ(56,function(H){X.handleDrop(H)})};
_.R.onMouseEnter=function(){this.isHovered=!0};
_.R.onMouseLeave=function(){this.isHovered=!1};
_.R.computeOverflowMenuData=function(X){return X&&X.menu?X.menu:null};
_.R.computeCollapsible=function(X){return!X};
_.R.computeHasPlaylistButtons=function(X){return!(!X||!X.playlistButtons)};
_.R.computeHasSeparateSaveButton=function(X){return!(!X||!X.saveButton)};
_.R.computeHasToolbarButton=function(X,H){return!(!X||!(H||X.saveButton||X.menu))};
_.R.computePlaylistType=function(X){if(X&&X.playlistId)return X.playlistId.substring(0,4)};
_.R.computeCanReorder=function(X){return X?X.playlistId&&X.playlistId.startsWith("TLPQ")?!0:!!X.isEditable&&!X.isInfinite:!1};
_.R.attached=function(){var X=this;try{_.jJ().resolve(_.S3).setPlaylistComponent(this.hostElement)}catch(H){if(_.P("kevlar_park_on_playlist_token_killswitch"))throw H;_.ng().parkOrScheduleJob(function(){_.jJ().resolve(_.S3).setPlaylistComponent(X.hostElement)},2,"ci")}_.ap(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.R.detached=function(){_.Zv(this.hostElement);_.Hm(this.JSC$17574_ytReorderableController)};
_.R.computeTrailingIcon=function(X,H,l){return l?H?"yt-icons:collapse":"yt-icons:close":H?"yt-icons:expand":_.P("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.R.computeIndexMessage=function(X,H){return ZwK(X+1)+" / "+ZwK(H)};
_.R.onRenderStamperFinished=function(){if(this.scrollForStampDom){var X=!0;this.isHovered&&(X=!1);if(this.collapsed||this.hidden)X=!1;X&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.R.collapseChanged=function(){var X=this;this.collapsed||(_.oJ(this.ytTaskEmitterBehavior.getTaskManager(),function(){X.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.R.hiddenChanged=function(){var X=this;this.hidden||_.oJ(this.ytTaskEmitterBehavior.getTaskManager(),function(){X.scrollToCurrentVideo()})};
_.R.setupReordering=function(){var X=_.mh(this.hostElement).querySelector("#items");sWY?_.NEt(this.JSC$17574_ytReorderableController,X,X,"playlist-drag-handle"):_.NEt(this.JSC$17574_ytReorderableController,X,X)};
_.R.scrollToCurrentVideo=function(){var X=this;_.Ss.addJob(function(){var H=_.mh(X.hostElement).querySelector("#items");if(H){H.style.setProperty("padding-bottom","");var l=_.mh(X.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(l){H=l.parentElement||_.eH(document);var b=H||_.eH(document);var U=_.eP(l),K=_.eP(b),w=_.VOt(b);if(b==_.eH(document)){var d=U.x-b.scrollLeft;U=U.y-b.scrollTop}else d=U.x-K.x-w.left,U=U.y-K.y-w.top;l=MOv(l);K=b.clientHeight-
l.height;w=b.scrollLeft;var B=b.scrollTop;w+=d-(b.clientWidth-l.width)/2;b=new _.DY(w,B+(U-K/2));H.scrollLeft=b.x;H.scrollTop=b.y}}},8)};
_.R.dataChanged=function(){var X=this;_.Hm(this.JSC$17574_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.N0(this,function(){_.eh(X.ytTaskEmitterBehavior.getTaskManager(),function(){X.ytRendererBehavior.markDirty();X.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.R.onFullBleedPlayerChanged=function(){_.P("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.R.onFullscreenChanged=function(){_.P("web_watch_imax_theater_mode")||_.P("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.R.updateNowPlayingOverlay=function(){_.P("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.R.onPlaylistLockupNowPlaying=function(X,H){H&&(this.activeNowPlayingRenderer=H);this.updateNowPlayingOverlay()};
_.R.onScroll=function(){this.scrollThrottle.fire()};
_.R.onThrottledScroll=function(){var X=this;_.eh(this.ytTaskEmitterBehavior.getTaskManager(),function(){X.ytRendererBehavior.markDirty()})};
_.R.onToggleExpanded=function(X){!this.collapsible||X&&(_.WM(X).tagName==="A"||_.WS(_.t2(X),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.R.setCollapsed=function(X){this.collapsible&&(this.collapsed=X,_.NG(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.R.handleCollapsedFromData=function(X){if(X){var H=X.playlistPanelCollapseState;H==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||H==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),H=H==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==H&&this.setCollapsed(H)):this.currentPlaylistId!==X.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(H=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==H&&this.setCollapsed(H),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=X.playlistId}};
_.R.handleDrop=function(X){var H=X.currDragItem;X=H.data.playlistSetVideoId;var l=_.ak(H.parentNode.childNodes,H),b=void 0;l>0&&(b=H.parentNode.childNodes[l-1].data.playlistSetVideoId);H=_.D7();if(H.responsePlaylistData&&H.responsePlaylistData.contents){var U=ckZ(X,H.responsePlaylistData);H.responsePlaylistData=(0,_.Bb.unsafeClone)(H.responsePlaylistData);iyW(H.responsePlaylistData.contents,U,l);H.queueProxy?NGG(H.queueProxy,U,l,X,b):H.playlistProxy&&NGG(H.playlistProxy,U,l,X,b);_.tO(H,_.WW(H,H.response?
H.response.autoplayRenderer:void 0))}};
_.R.handleDarkModeChange=function(X){X!==this.isDarkTheme&&(this.isDarkTheme=X)};
_.R.colorPaletteChanged=function(){var X,H=((X=this.data)==null?void 0:X.contents)||[],l;X=_.C(H);for(H=X.next();!H.done;H=X.next()){H=H.value;var b=void 0;if((b=H.playlistPanelVideoRenderer)==null?0:b.selected){X=H.playlistPanelVideoRenderer;b=H=void 0;(l=this.isDarkTheme?(H=X)==null?void 0:H.darkColorPalette:(b=X)==null?void 0:b.lightColorPalette)&&_.Rq(this.hostElement,l);break}}this.useColorPalette=!!l};
_.ja.Object.defineProperties(Xb.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.moveThreeDotsMenuToMainHeader)&&_.P("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var X=_.jJ().resolve(_.c$(_.S3)),H;if(((H=this.data)==null?0:H.contents)&&(X==null?0:X.hasAutoplayData())){var l;if(((l=this.playlistLoopStateEntity)==null?void 0:l.state)==="PLAYLIST_LOOP_STATE_ONE"){if(X=this.data.currentIndex,X!==void 0){var b,U;var K=(b=this.data.contents[X])==null?void 0:(U=b.playlistPanelVideoRenderer)==null?void 0:U.title}}else{var w,d=(w=_.f(X.getAutoplayEndpoint(),_.ku))==null?void 0:w.videoId,B,q;K=(B=this.data.contents.find(function(u){var e;
return((e=u.playlistPanelVideoRenderer)==null?void 0:e.videoId)===d}))==null?void 0:(q=B.playlistPanelVideoRenderer)==null?void 0:q.title}return K}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)!=null&&X.nextVideoLabel?this.nextVideoTitle?_.D8(this.data.nextVideoLabel)+":":dlp:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var X;if(((X=this.data)==null?0:X.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.P("web_mix_long_byline_from_data"))return _.xM(hny);var H;return(H=this.data)==null?void 0:H.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b=(X=this.data)==null?void 0:(H=X.playlistButtons)==null?void 0:(l=H.menuRenderer)==null?void 0:l.topLevelButtons;if(b)for(X=_.C(b),H=X.next();!H.done;H=X.next())if(H=H.value,H.playlistLoopButtonRenderer)return H.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var X;return!!(this.collapsed&&((X=this.data)==null?0:X.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.P("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Xb.prototype.colorPaletteChanged=Xb.prototype.colorPaletteChanged;Xb.prototype.onPlaylistLockupNowPlaying=Xb.prototype.onPlaylistLockupNowPlaying;Xb.prototype.updateNowPlayingOverlay=Xb.prototype.updateNowPlayingOverlay;Xb.prototype.onFullscreenChanged=Xb.prototype.onFullscreenChanged;Xb.prototype.onFullBleedPlayerChanged=Xb.prototype.onFullBleedPlayerChanged;Xb.prototype.dataChanged=Xb.prototype.dataChanged;Xb.prototype.hiddenChanged=Xb.prototype.hiddenChanged;Xb.prototype.collapseChanged=Xb.prototype.collapseChanged;
Xb.prototype.onRenderStamperFinished=Xb.prototype.onRenderStamperFinished;Xb.prototype.onMouseLeave=Xb.prototype.onMouseLeave;Xb.prototype.onMouseEnter=Xb.prototype.onMouseEnter;_.T([_.k(_.$s),_.N("design:type",Object)],Xb.prototype,"ironResizableBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Xb.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(sdQ.YtPlaylistPanelBehavior),_.N("design:type",Object)],Xb.prototype,"ytPlaylistPanelBehavior",void 0);_.T([_.k(_.tx.YtTaskEmitterBehavior),_.N("design:type",Object)],Xb.prototype,"ytTaskEmitterBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Xb.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Xb.prototype,"ytdReduxBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Xb.prototype,"actionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Xb.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Xb.prototype,"autoplayData",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xb.prototype,"withinMiniplayer",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Xb.prototype,"minimizePipBreakages",void 0);
_.T([_.g({computed:"setMenuData_(data)"}),_.N("design:type",Object)],Xb.prototype,"menuRendererData",void 0);_.T([_.g({computed:"computeOverflowMenuData(data)"}),_.N("design:type",Object)],Xb.prototype,"overflowMenuDataTopRow",void 0);_.T([_.g({computed:"computeOverflowMenuData(data)"}),_.N("design:type",Object)],Xb.prototype,"overflowMenuData",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Xb.prototype,"hideHeaderText",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Xb.prototype,"useColorPalette",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.N("design:type",Boolean)],Xb.prototype,"collapsible",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Xb.prototype,"collapsed",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xb.prototype,"hidden",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.N("design:type",Boolean)],Xb.prototype,"hasPlaylistButtons",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.N("design:type",Boolean)],Xb.prototype,"hasSeparateSaveButton",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.N("design:type",Boolean)],Xb.prototype,"hasToolbar",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.N("design:type",String)],Xb.prototype,"playlistType",void 0);_.T([_.g(),_.N("design:type",Object)],Xb.prototype,"isHovered",void 0);_.T([_.g({selectorArgs:["playlistLoopStateEntityKey"],selector:_.$S.playlistLoopStateEntitySelector}),_.N("design:type",Object)],Xb.prototype,"playlistLoopStateEntity",void 0);_.T([_.g({computed:"computeCanReorder(data)"}),_.N("design:type",Boolean)],Xb.prototype,"canReorder",void 0);
_.T([_.g(),_.N("design:type",Object)],Xb.prototype,"expandLabel",void 0);_.T([_.g(),_.N("design:type",Object)],Xb.prototype,"collapseLabel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Xb.prototype,"isFloating",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Xb.prototype,"metaPanel",void 0);_.T([_.g({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.N("design:type",String)],Xb.prototype,"trailingIcon",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Xb.prototype,"isDarkTheme",void 0);_.T([_.g({selector:_.s9}),_.N("design:type",Boolean)],Xb.prototype,"miniplayerIsActive",void 0);_.T([_.g({selector:function(X){return X.watch.playerState}}),
_.N("design:type",Number)],Xb.prototype,"playerState",void 0);_.T([_.g({selector:_.qn}),_.N("design:type",Boolean)],Xb.prototype,"isFullscreen",void 0);_.T([_.g({selector:_.BS}),_.N("design:type",Boolean)],Xb.prototype,"isTheaterMode",void 0);_.T([_.g(),_.N("design:type",Object)],Xb.prototype,"activeNowPlayingRenderer",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xb.prototype,"moveThreeDotMenuToTopRow",null);
_.T([_.x("data","autoplayData","playlistLoopStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xb.prototype,"nextVideoTitle",null);_.T([_.x("data","nextVideoTitle"),_.N("design:type",String),_.N("design:paramtypes",[])],Xb.prototype,"nextVideoLabel",null);_.T([_.x("collapsed"),_.N("design:type",String),_.N("design:paramtypes",[])],Xb.prototype,"buttonAriaLabel",null);
_.T([_.x("data","playlistId","longBylineText"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xb.prototype,"mixLongByLine",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xb.prototype,"playlistLoopStateEntityKey",null);_.T([_.Le("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xb.prototype,"onMouseEnter",null);
_.T([_.Le("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xb.prototype,"onMouseLeave",null);_.T([_.g({reflectToAttribute:!0}),_.x("data","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xb.prototype,"showNextVideoHeader",null);_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xb.prototype,"onRenderStamperFinished",null);
_.T([_.Yh("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xb.prototype,"collapseChanged",null);_.T([_.Yh("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xb.prototype,"hiddenChanged",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xb.prototype,"dataChanged",null);
_.T([_.x("isTheaterMode","isFullscreen"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xb.prototype,"isFullBleedPlayer",null);_.T([_.Yh("isTheaterMode","isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xb.prototype,"onFullBleedPlayerChanged",null);_.T([_.Yh("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xb.prototype,"onFullscreenChanged",null);
_.T([_.Yh("playerState","miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xb.prototype,"updateNowPlayingOverlay",null);_.T([_.Le("yt-playlist-lockup-now-playing-active"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Xb.prototype,"onPlaylistLockupNowPlaying",null);
_.T([_.Yh("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xb.prototype,"colorPaletteChanged",null);_.T([_.sq({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Xb);
_.F5N=_.mr()(Xb,"ytd-playlist-panel-renderer",function(){if(K5y===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);K5y=X}X=K5y;return X},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.Br5={};
_.Br5.YtConditionalRendererBehavior=[_.L.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(X,H){var l=this,b,U;return _.h(function(K){switch(K.nextAddress){case 1:if(!H)return l.hidden=!0,l.showSpinner=!1,K.return();if((b=X)==null?0:(U=b.visibilityCondition)==null?0:U.mode)switch(X.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return K.jumpTo(5);default:return K.jumpTo(6)}l.showSpinner=
!1;l.hidden=!0;return K.yield(l.shouldShow_(X),4);case 4:l.hidden=!K.yieldResult;K.jumpTo(0);break;case 5:return K.yield(l.shouldShow_(X),8);case 8:l.showSpinner=K.yieldResult;l.hidden=!1;K.jumpTo(0);break;case 6:return l.showSpinner=!1,K.yield(l.shouldShow_(X),9);case 9:l.hidden=!K.yieldResult,_.m5(K)}})},
shouldShow_:function(X){return X&&X.supportedDatas&&X.supportedDatas.rendererVisibilityConditionData&&X.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(X.supportedDatas.rendererVisibilityConditionData.showIf):X&&X.visibilityCondition&&X.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(X.visibilityCondition.showIf):X&&X.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(X.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(X){switch(X){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(X){switch(X){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var X=_.TP(this.hostElement,"yt-get-mdx-status");return X.length==1&&X[0].connected},
isLocationPermissionGranted_:function(){var X;return _.h(function(H){return H.nextAddress==1?navigator.permissions?H.yield(navigator.permissions.query({name:"geolocation"}),3):H.jumpTo(2):H.nextAddress!=2?(X=H.yieldResult,H.return(Promise.resolve(X.state==="granted"))):H.return(Promise.resolve(!1))})}}];var qwd=WgN("yt-icon",{callbackProps:["onKeydown"]}),sDN=_.P("kevlar_use_wil_icons")?_.Z(function(X){var H=X.icon;var l=X.active;var b=X.className;var U=X.style;var K=X.title;var w=X.size;var d=X.dataSelected;var B=X.dataDisabled;var q=X.role;var u=X.themeOverride;var e=X.animateIcon;var y=X.ariaHidden;var V=X.ariaExpanded;var p=X.ariaLabel;var z=X.tabindex;var t=X.id;var W=X.iconFilter;var G=X.gradientColor;var r=X.onKeydown;var Q=function(){var Y=H==null?void 0:H(),Uy=null,Cy=void 0;Y&&(Y=c4q(Y),
Y=Uiy(Y),Y.length&&(Uy=Y[1],Cy=Y[0]));return{iconName:Uy,iconSetName:Cy}},v=function(){return jUq(Q().iconName,l==null?void 0:l(),void 0,w==null?void 0:w(),Q().iconSetName,_.jJ().resolve(_.rT))},J=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:W==null?void 0:W(),iconColor:G==null?void 0:G()}};
return _.F(_.M,{cond:e,then:function(){return _.F(qwd,{icon:H,active:l,className:b,style:U,title:K,dataSelected:d,dataDisabled:B,role:q,themeOverride:u,ariaHidden:y,ariaExpanded:V,ariaLabel:p,tabindex:z,id:t,iconFilter:W,gradientColor:G,onKeydown:r})},
else:function(){return _.F(_.M,{cond:v,then:function(Y){return _.F("span",{class:_.Qr("ytIconWrapperHost",b),role:q,"aria-label":p,"aria-hidden":y,tabindex:function(){return isNaN(Number(z==null?void 0:z()))?void 0:Number(z==null?void 0:z())},
id:t,style:U,title:K,"on:keydown":_.Nq(function(Uy){return void(r==null?void 0:r(Uy))})},_.F(_.Kl,{data:Y,
options:J}))}})}})},"vg"):qwd;var MiZ=function(X){var H=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Jay();_.cQ("ytglobal.ytUtilActivityCallback_",function(){_.NG(X,"yt-user-activity")});
new js(function(){return H.JSC$17591_onMouseMove});
document.addEventListener("scroll",function(){return H.onScroll});
window.addEventListener("resize",function(){return H.onResize})},u3x=function(X,H,l){H in X.eventJobIds||(l=_.qV().addLowPriorityJob(function(){_.rn();
delete X.eventJobIds[H]},l),X.eventJobIds[H]=l)};
MiZ.prototype.onScroll=function(X){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):X.target===document&&u3x(this,"scroll",200)};
MiZ.prototype.onResize=function(){u3x(this,"resize",200)};
MiZ.prototype.JSC$17591_onMouseMove=function(){u3x(this,"mousemove",100)};
_.g2=function(X){X.scrollEventsToIgnore+=1;X.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){X.scrollEventsToIgnore--},500))};var enN=function(X){this.element=X;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
enN.prototype.showFeedbackDialog=function(X,H,l,b){var U=yr5();if(!U)return!1;var K=JtZ();K.productId=U;H&&(K.flow="submit",K.report={description:H});l&&(yr5()==="59"?K.callback=_.ZR(function(){_.Sh("userFeedbackEvent",{});l()}):K.callback=_.ZR(l));
K.bucket=b||_.gx("GOOGLE_FEEDBACK_BUCKET","Other");ViZ(K);X=PQY(this,"GFEEDBACK",X);try{_.Nzt(K,X)}catch(w){return _.a0(w),!1}return!0};
enN.prototype.showHelpDialog=function(X,H,l){var b=this,U=yr5();if(!U)return!1;var K={helpCenterPath:"/youtube",productData:PQY(this,"GUIDED_HELP",l)};ViZ(K);var w=JtZ();w.context=X||K.productData.context||"default";w.defaultHelpArticleId=H;w.enableSendFeedback=!0;(_.ij("gapi.load")||function(d,B){return B()})("client",function(){try{var d=aSC(U,K);
if(_.P("web_always_load_chat_support")&&!b.chatSupportLoaded)try{d.JSC$10285_loadChatSupport(w),b.chatSupportLoaded=!0}catch(B){}d.startHelp(w)}catch(B){_.a0(B)}})};
var yr5=function(){var X=_.gx("GOOGLE_FEEDBACK_PRODUCT_ID");X||_.a0(Error("ii"));return X},ViZ=function(X){X&&(X.locale=_.P("kevlar_help_use_locale")?_.gx("INNERTUBE_CONTEXT_HL","en"):_.gx("HTML_LANG","en"))},PQY=function(X,H,l){var b=X.productData;
delete b.origin;b.device=_.yZ();var U;a:{if(U=document.createElement("canvas")){var K=U.getContext("experimental-webgl",{stencil:!0});if(K){var w=K.getExtension("WEBGL_debug_renderer_info");if(w){U=K.getParameter(w.UNMASKED_RENDERER_WEBGL);break a}}if(K=U.getContext("webgl")){U=K.getParameter(K.RENDERER);break a}}U=null}b.gpu=U;b.isSDC=!!_.gx("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(U=_.gx("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Bb.extend(b,U);_.jTm(H,b);_.rtl(b);(X=_.NG(X.element,"yt-get-autonav-pause-debug-state"))&&
X.length&&(b.autonav_pause_state=X[0]);X=_.bB();b.browser_resolution=X.width+"\u00d7"+X.height+"@"+(window.devicePixelRatio||1)+"x";l&&_.Bb.extend(b,l);return b};
enN.prototype.resetProductData=function(){this.productData={}};var f3a=function(X){this.feedbackManager=new enN(X)};
f3a.prototype.showFeedbackDialog=function(X,H,l,b){return this.feedbackManager.showFeedbackDialog(X,H,l,b)};
f3a.prototype.showHelpDialog=function(X,H,l){return this.feedbackManager.showHelpDialog(X,H,l)};var pJZ=function(){this.baseUrl="";this.aTag=document.createElement("a")},pov=function(X,H,l){l=l===void 0?{}:l;
l.pbj||(l.pbj=1);l=_.tuL(H,l);X.baseUrl&&l&&!_.Qh(l)[1]&&!_.Nb(l)&&(H=X.baseUrl,Rk(H,"/")&&(H=H.slice(0,-1)),_.Ky(l,"/")&&(l=l.slice(1)),l=H+"/"+l);HJ(X.aTag,_.Jb(l||""));return X.aTag.href};
pJZ.prototype.fetchData=function(X){return _.Ow8(X)};
pJZ.prototype.postData=function(X,H){var l={method:"POST"};if(H){for(var b=_.C(Object.keys(H)),U=b.next();!U.done;U=b.next()){U=U.value;var K=H[U];_.r8(K)&&(H[U]=JSON.stringify(K))}l.postParams=H}return _.Ow8(X,l)};
_.SgQ=function(X,H,l,b,U){X=pov(X,H,l);if(!X)throw b=Error("ji"),Object.assign(b,{params:H}),b;return _.Ow8(X,U,b)};
pJZ.prototype.requestDataForServiceEndpoint=function(X,H){if(_.f(X,_.NlO))return this.fetchData("/getAccountSwitcherEndpoint");H=H||{};var l=_.f(X,$jz);l?H.se=l.base64EncodedServiceEndpoint:H.sej=JSON.stringify(X);(l=_.Bi())&&_.P("enable_service_ajax_csn")&&(H.csn=l);H.theme=_.PM();_.f(X,Q8b)&&_.gx("DELEGATION_CONTEXT")&&(H.delegation_context=JSON.stringify(_.gx("DELEGATION_CONTEXT")));l=null;for(var b in X)if(Rk(b,"Endpoint")||Rk(b,"Command")){l=b;break}if(!l){var U=Error("ki");Object.assign(U,{params:X});
_.keb(U,"WARNING");return new _.UA(function(w,d){d(U)})}b={name:l};
var K;(l=(K=_.f(X,_.Yu))==null?void 0:K.signal)&&(b.signal=l);(K=_.QO(window.location.href))&&K.internalcountrycode&&(b.internalcountrycode=K.internalcountrycode);K="/service_ajax";_.P("debug_forward_web_query_parameters")&&(K=_.jOy(K,window.location.search));K=_.An(K,b);X.clickTrackingParams&&_.Ec(K,{itct:X.clickTrackingParams});return this.postData(K,H)};_.Sw5=new _.gz("GFEEDBACK_TOKEN");var znd;var nm5;var kSe;var xll;var HL=function(){var X=_.a.apply(this,arguments)||this;X.compact=!1;X.dismissButtonDisabled=!1;X.shouldRenderReasonAsFormattedString=!_.P("web_player_error_message_reason_as_formatted_string_killswitch");return X};
_.S(HL,_.a);HL.prototype.computeHasIcon_=function(X){return!!X};
HL.prototype.isSignInIcon_=function(X){return X=="yt-icons:prompted_sign_in"};
HL.prototype.onDismissButtonClick=function(){var X=this,H=this.data.disableOnClick,l,b=(l=this.data.dismissButton)==null?void 0:l.buttonRenderer;H&&!this.dismissButtonDisabled&&b&&setTimeout(function(){X.dismissButtonDisabled=!0},0)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Br5.YtConditionalRendererBehavior),_.N("design:type",Object)],HL.prototype,"ytConditionalRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],HL.prototype,"data",void 0);_.T([_.g({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],HL.prototype,"icon_",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.N("design:type",Boolean)],HL.prototype,"hasIcon_",void 0);_.T([_.g({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.N("design:type",Boolean)],HL.prototype,"signInIcon_",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],HL.prototype,"compact",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],HL.prototype,"dismissButtonDisabled",void 0);
_.T([_.g({type:Boolean}),_.N("design:type",Object)],HL.prototype,"shouldRenderReasonAsFormattedString",void 0);_.T([_.qR({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],HL);
_.O(HL,"yt-player-error-message-renderer",function(){if(xll===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;kSe===void 0&&(kSe=document.createElement("template"));var b=kSe;l.call(H,b.content.cloneNode(!0),X.content.firstChild);xll=X}X=xll;return X},{mode:2});var Dly;var ti$;var l6=function(){return _.a.apply(this,arguments)||this};
_.S(l6,_.a);l6.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
l6.prototype.computeIcon_=function(X){return X?"yt-icons:"+X.iconType.toLowerCase():"error_outline"};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],l6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],l6.prototype,"data",void 0);_.T([_.g({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],l6.prototype,"icon_",void 0);_.T([_.qR({is:"yt-player-kav-renderer",disableElementRegistration:!0})],l6);
_.O(l6,"yt-player-kav-renderer",function(){if(ti$===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Dly===void 0&&(Dly=document.createElement("template"));var b=Dly;l.call(H,b.content.cloneNode(!0),X.content.firstChild);ti$=X}X=ti$;return X},{mode:2});var Ifl=_.W8(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.gC(_.Z(function(X){var H=_.SJ("div"),l=_.C(_.FU(0,void 0,"jxh75d")),b=l.next().value,U=l.next().value;l=_.C(_.FU(null,void 0,"F5Zm8"));var K=l.next().value,w=l.next().value;_.DR(function(){Atz(H.value,U,w);H.value.scrollIntoView()});
l=XVL.bind(null,X.data,b);_.Np("resize",function(){var d=K();if(b()===1&&d!==null){var B;(B=window.grecaptcha)==null||B.reset(d)}});
return _.F("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.F("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.F("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var d,B;return(d=X.data().accessibility)==null?void 0:(B=d.accessibilityData)==null?void 0:B.label}),_.F(_.Sj,{text:l,
className:_.Qr("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.F("div",{el:H,class:"ytwPlayerCaptchaViewModelGridItem"})))},"wg"),"yt-player-captcha-view-model",{props:{data:_.ta}});var H1k=!1;_.W5A=_.Z(function(X){var H=X.data;return _.F("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.F(_.M,{cond:function(){return H().icon},
then:function(l){return _.F("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.F(_.Dp,{data:l,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.F(_.M,{cond:function(){return H().title},
then:function(l){return _.F("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.F(_.Sj,{text:l}))}}),_.F(_.M,{cond:function(){return H().description},
then:function(l){return _.F("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.F(_.Sj,{text:l}))}}),_.F(_.l4,{data:function(){return H().primaryButton}},{buttonViewModel:function(l){return _.F(_.Qk,{data:l.data,
className:"interstitialViewModelFlexItem"})}}),_.F(_.l4,{data:function(){return H().secondaryButton}},{buttonViewModel:function(l){return _.F(_.Qk,{data:l.data,
className:"interstitialViewModelFlexItem"})}}))},"xg");
_.W5A.idomCompat=!0;var Emx=_.Z(function(X){var H=X.data;_.Ds();return _.F("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.F("div",{class:"playerInterstitialRendererScrim"},_.F(_.l4,{data:function(){return H().content}},{interstitialViewModel:_.W5A})))},"yg");
Emx.idomCompat=!0;_.gC(Emx,"yt-player-interstitial-renderer",{props:{data:_.zh}});var oj=function(){var X=_.a.apply(this,arguments)||this;X.noBackground=!1;X.compact=!1;X.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return X};
_.S(oj,_.a);oj.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"}}}};
oj.prototype.onUpdatePlayerErrorMessageCommand_=function(X){if(_.f(X,MZ6)){var H;if(X=(H=_.f(X,MZ6))==null?void 0:H.newPlayerErrorMessageRenderer)this.data=X}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],oj.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],oj.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],oj.prototype,"status",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],oj.prototype,"noBackground",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],oj.prototype,"compact",void 0);_.T([_.qR({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],oj);
var gmU=_.mr()(oj,"yt-playability-error-supported-renderers",function(){if(nm5===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;znd===void 0&&(znd=document.createElement("template"));var b=znd;l.call(H,b.content.cloneNode(!0),X.content.firstChild);nm5=X}X=nm5;return X},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var GSa=WgN("ytd-button-renderer");var l4Z=void 0,b1K=void 0;var K8y=new Vs_;var jg=new _.gz("ENTITY_STATE_TOKEN"),b6=new _.gz("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var a3a=function(X){this.store=X;this.zyU=new _.pBF},Yyv=function(X,H,l){var b,U;
if(!(U=((b=H.playabilityStatus)==null?void 0:b.status)!=="OK")){X=X.store;var K;U=H.offlineState&&((K=H.videoDetails)==null?0:K.videoId)?_.P("enable_pl_r_c_cd")?vSy(X.getState().entities,H.videoDetails.videoId):!!FjZ(X.getState().entities,H.videoDetails.videoId):!1}if(U)return!0;U=dTb(H);if(U===1){if(_.P("ab_v_vid_sig")){var w,d=(w=H.videoDetails)==null?void 0:w.videoId;if(!d||!l||d!==l){var B;H=new _.qd("282054944_vid",{kjx:l,jdI:(B=H.videoDetails)==null?void 0:B.videoId});_.n2(H)}}return!0}nRy=
0;var q,u;B=(d=H.auxiliaryUi)==null?void 0:(q=d.messageRenderers)==null?void 0:(u=q.bkaEnforcementMessageViewModel)==null?void 0:u.displayType;if(U!==3&&(B==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||B==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;B={reason:_.Zi(_.XS("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.P("ks_something_wrong_learn_more")?MCK("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Zi(_.XS("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:_.Zi("282054944")};ZJZ(H,{playerErrorMessageRenderer:B});return!1},ILv=function(X,H){if(NeN(H)){_.J0(1,!0);
var l=(l=NeN(H))&&_.odh()?l:void 0;l?(ZJZ(H,{enforcementMessageViewModel:l}),X.zyU.increment("IN_PLAYER"),_.J0(5)):(X.zyU.increment("SKIP_DISPLAY"),_.J0(2))}},ZJZ=function(X,H){X.playabilityStatus=Object.assign({},X.playabilityStatus,{status:"ERROR",
errorScreen:H});X.videoDetails=void 0};
a3a.prototype.handleResponse=function(X,H){if(X.playabilityStatus){var l,b,U,K=(H==null?void 0:(l=H.innerTubeRequest)==null?void 0:l.videoId)||(H==null?void 0:(b=H.innerTubeRequest)==null?void 0:(U=b.playerRequest)==null?void 0:U.videoId);Yyv(this,X,K)&&ILv(this,X)}};
a3a[rx]=[jg];var Jyv=new _.gz("ADBLOCK_DETECTION_SERVICE_TOKEN");var Gr=function(X){this.ssm=X};
Gr.prototype.bindInnertubeChallengeFetcher=function(X){this.ssm.bicf(X)};
Gr.prototype.registerChallengeFetchedCallback=function(X){this.ssm.bcr(X)};
Gr.prototype.getLatestChallengeResponse=function(){return this.ssm.blc()};var iJC;iJC=_.W8(["https://static.doubleclick.net/instream/ad_status.js"]);_.vmN=_.z8(iJC);var Tra;_.Uo=function(X,H,l){var b=this;this.network=X;this.options=H;this.networkStatusManager=l;this.w2=null;if(H.useBotguardEverywhere){var U=new _.cF;this.w2=U.promise;_.ok.ytAtRC&&_.Rs(_.Ss,function(){var K,w;return _.h(function(d){if(d.nextAddress==1){if(!_.ok.ytAtRC)return d.return();K=OJU(null);return d.yield(b.bUh(K),2)}w=d.yieldResult;_.ok.ytAtRC&&_.ok.ytAtRC(JSON.stringify(w));_.m5(d)})});
MTb().then(function(K){var w,d,B,q;return _.h(function(u){if(u.nextAddress==1)return K.bindInnertubeChallengeFetcher(function(e){return b.bUh(OJU(e))}),u.yield(fRN(),2);
w=u.yieldResult;d=K.getLatestChallengeResponse();B=d.challenge;if(!B)throw Error("mi");q={challenge:B,tN:EF(B),vm:w,bgChallenge:new tG};U.resolve(q);K.registerChallengeFetchedCallback(function(e){e=e.challenge;if(!e)throw Error("ni");e={challenge:e,tN:EF(e),vm:w,bgChallenge:new tG};b.w2=Promise.resolve(e)});
_.m5(u)})})}else H.preload&&mlZ(this,new Promise(function(K){_.eh(_.Ss,function(){K(QD$(b))},0)}))};
Tra=function(X){var H={preload:!0,useBotguardEverywhere:!0},l=!1;if(typeof H==="boolean")var b={preload:H};else typeof H==="undefined"?b={preload:!0}:(b=H,l=!!H.hlG);H=l?void 0:new _.iM;_.Uo.instance=new _.Uo(X,b,H);return _.Uo.instance};
_.Uo.prototype.xVZ=function(){var X=this;return _.h(function(H){return H.nextAddress==1?H.yield(Promise.race([X.w2,null]),2):H.return(!!H.yieldResult)})};
_.Uo.prototype.ydX=function(X,H,l){var b=this,U,K,w;return _.h(function(d){b.w2===null&&mlZ(b,QD$(b));U=!1;K={};w=function(){var B,q,u,e,y;return _.h(function(V){switch(V.nextAddress){case 1:if(!b.options.x5v||!b.options.useBotguardEverywhere){V.jumpTo(2);break}return V.yield(sNh(),3);case 3:return B=V.yieldResult,V.yield((q=B)==null?void 0:q.checkForRefresh(),2);case 2:return V.yield(b.w2,5);case 5:u=V.yieldResult;K.challenge=u.challenge;if(!u.vm){"c1a"in u.tN&&(K.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
V.jumpTo(6);break}e=Object.assign({},{c:u.challenge,e:X},H);_.Ew(V,7);U=!0;return V.yield(u.vm.snapshot({hL:e}),9);case 9:(y=V.yieldResult)?K.webResponse=y:K.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Zt(V,6);break;case 7:_.Ow(V),K.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(X==="ENGAGEMENT_TYPE_PLAYBACK"){var p=u.tN,z={};if(p.c6a){var t=Number(_.gx("DCLKSTAT",0));z.reportingStatus=String(Number(p.c)^(isNaN(t)?0:t))}p.c6b&&(z.broadSpectrumDetectionResult=String(Number(p.c)^Number(_.gx("CATSTAT",
0))));K.adblockReporting=z}return V.return(K)}})};
return d.return(Promise.race([w(),Nr5(l,function(){var B=Object.assign({},K);U&&(B.error="ATTESTATION_ERROR_VM_TIMEOUT");return B})]))})};
var OJU=function(X){var H={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};X&&(H.interpreterHash=X);return H},QD$=function(X,H){H=H===void 0?0:H;
var l,b,U,K,w,d,B,q,u,e,y,V;return _.h(function(p){switch(p.nextAddress){case 1:l=OJU(ftz().uTZ);if(_.P("att_fet_ks"))return _.Ew(p,7),p.yield(X.bUh(l),9);_.Ew(p,4);return p.yield(cr5(X,l),6);case 6:w=p.yieldResult;U=w.dwQ;K=w.qYI;b=w;_.Zt(p,3);break;case 4:return _.Ow(p),_.x2(Error("oi`"+H)),jDU(X,864E5),p.return({challenge:"",tN:{},vm:void 0,bgChallenge:void 0});case 9:b=p.yieldResult;if(!b)throw Error("pi");if(!b.challenge)throw Error("qi");U=b.challenge;K=EF(U);if("c1a"in K&&(!b.bgChallenge||
!b.bgChallenge.program))throw Error("ri");_.Zt(p,3);break;case 7:d=_.Ow(p);_.x2(d);H++;if(H>=5)return _.x2(Error("oi`"+H)),jDU(X,864E5),p.return({challenge:"",tN:{},vm:void 0,bgChallenge:void 0});B=1E3*Math.pow(2,H-1)+Math.random()*1E3;return p.return(new Promise(function(z){_.eh(_.Ss,function(){z(QD$(X,H))},B)}));
case 3:q=qNh(K);jDU(X,q*1E3);u=void 0;if(!("c1a"in K&&b.bgChallenge)){p.jumpTo(10);break}e=BaW(b.bgChallenge);_.Ew(p,11);return p.yield(SZG(ftz(),e),13);case 13:_.Zt(p,12);break;case 11:return y=_.Ow(p),_.x2(y),p.return({challenge:U,tN:K,vm:u,bgChallenge:e});case 12:return _.Ew(p,14),u=new _.S1({challenge:e,yq8:{wx:"aGIf"}}),p.yield(u.flU,16);case 16:_.Zt(p,10);break;case 14:V=_.Ow(p),_.x2(V),u=void 0;case 10:return p.return({challenge:U,tN:K,vm:u,bgChallenge:e})}})},rrp=function(X,H){var l;
return _.h(function(b){if(b.nextAddress==1)return gW(2),_.Ew(b,2),b.yield(X.network.bUh(H),4);if(b.nextAddress!=2)return(l=b.yieldResult)?l.challenge&&!l.bgChallenge?gW(1):gW(4):gW(3),b.return(l);_.Ow(b);gW(3);return b.return(void 0)})};
_.Uo.prototype.bUh=function(X){var H=this,l;return _.h(function(b){l=H.networkStatusManager;if(!l||l.isNetworkAvailable())return b.return(rrp(H,X));_.uH("att_pna",void 0,"attestation_challenge_fetch");return b.return(new Promise(function(U){l.listenOnce("publicytnetworkstatus-online",function(){rrp(H,X).then(U)})}))})};
var Jra=function(X){if(!X)throw Error("pi");if(!X.challenge)throw Error("qi");var H=X.challenge,l=EF(H);if("c1a"in l&&(!X.bgChallenge||!X.bgChallenge.program))throw Error("ri");return Object.assign({},X,{dwQ:H,qYI:l})},cr5=function(X,H){var l,b,U,K,w;
return _.h(function(d){switch(d.nextAddress){case 1:l=void 0,b=0,U={};case 2:if(!(b<5)){d.jumpTo(4);break}if(!(b>0)){d.jumpTo(5);break}U.a9T=1E3*Math.pow(2,b-1)+Math.random()*1E3;return d.yield(new Promise(function(B){return function(q){_.eh(_.Ss,function(){q(void 0)},B.a9T)}}(U)),5);
case 5:return _.Ew(d,7),d.yield(X.bUh(H),9);case 9:return K=d.yieldResult,d.return(Jra(K));case 7:l=w=_.Ow(d),w instanceof Error&&_.x2(w);case 8:b++;U={a9T:void 0};d.jumpTo(2);break;case 4:throw l;}})},mlZ=function(X,H){X.w2=H},L5$=function(X){var H,l,b;
return _.h(function(U){if(U.nextAddress==1)return U.yield(Promise.race([X.w2,null]),2);H=U.yieldResult;var K=QD$(X);X.w2=K;(l=H)==null||(b=l.vm)==null||b.dispose();_.m5(U)})},jDU=function(X,H){var l=Date.now()+H,b=function(){var U;
return _.h(function(K){U=l-Date.now();return U<1E3?K.yield(L5$(X),0):(_.eh(_.Ss,b,Math.min(U,6E4)),K.jumpTo(0))})};
b()},Nr5=function(X,H){return new Promise(function(l){_.eh(_.Ss,function(){l(H())},X)})};var YwZ=function(){};
YwZ.prototype.processContext=function(X){var H=_.Uo.instance;if(!H)return _.Dz();var l=f4N(X);return l?new x8(H.ydX(l,yMm(X),500).then(function(b){var U;(X==null?0:(U=X.innerTubeRequest)==null?0:U.context)||(X.innerTubeRequest.context={});U=X.innerTubeRequest.context;U.request||(U.request={});U.request.attestationResponseData=b})):_.Dz()};var I3Y=function(X){this.innertubeTransportService=X};
I3Y.prototype.bUh=function(X){_.uH("att_fsr",void 0,"attestation_challenge_fetch");return _.pg(this.innertubeTransportService,X,_.E9(_.zaQ)).then(function(H){_.uH("att_frr",void 0,"attestation_challenge_fetch");return H})};_.ArZ=function(X){this.innertubeTransportService=X};var X1Z=new _.gz("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var H$5=function(){},oYl=function(X,H,l,b,U){var K=_.gx("YPC_MB_URL");
_.wYh(K).then(function(){lY5(K,X,H,l,b,U)})},lY5=function(X,H,l,b,U,K){try{var w=_.m9.payments.business.integration,d=_.m9.payments.business.integration.Style.create().withMaterialDesignStyle(),B=w.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.P("enable_window_constrained_buy_flow_dialog")&&(B=B.usingPopupStyle("windowConstrained"));K&&(B=B.usingCloseCallback(K));var q=l?l:_.gx("YPC_GB_LANGUAGE"),u=_.gx("SESSION_INDEX");w.bootstrap.fromPaymentsUrl(X);w.bootstrap.asMashupMode(B).usingGaiaIndex(u).usingLocale(q).usingStyle(d).usingDefaultActivityStatusChangeHandler().inStandaloneContext(w.standaloneContextAuthId.forGaia()).purchaseManager(H,function(e){b&&b(e)}).load(void 0,U)}catch(e){throw U&&U(e),_.n2(e),e;
}};var b$C=new _.gz("PURCHASE_MANAGER_TOKEN");var Ub$=function(){var X=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return X.videos},
getContinuationsPresent:function(){return X.continuationsPresent},
setVideos:function(H){X.videos=H},
getRecommendedVideos:function(){return X.recommendedVideos},
setRecommendedVideos:function(H){X.recommendedVideos=H}}};
Ub$.prototype.addVideos=function(X){X&&(this.videos=X.filter(function(H){return!!_.SNb(H)}).map(function(H){var l=_.SNb(H);
a:{var b;if(H.playlistVideoRenderer&&((b=H.playlistVideoRenderer)==null?0:b.voteSortTiebreaker))var U=H.playlistVideoRenderer.voteSortTiebreaker;else{if(_.f(H,Zs)){var K;if(b=(U=_.f(H,Zs))==null?void 0:(K=U.playlistItemData)==null?void 0:K.voteSortTiebreaker){U=b;break a}}U=""}}return{itemId:l,videoId:_.kfy(H),voteCount:_.xT8(H),voteSortTiebreaker:U}}),this.continuationsPresent=!!_.f(X[X.length-1],_.OF))};
var $bp=function(X,H){return X.videos.findIndex(function(l){return l.itemId===H})},K4N=function(X,H){return X.recommendedVideos.findIndex(function(l){return l.itemId===H})},RrN=function(X){X={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:X}}}}};_.jJ().resolve(_.Vr).resolveCommand(X)};var C1p=function(){Ub$.apply(this,arguments)};
_.S(C1p,Ub$);
var k9Q=function(X,H,l,b){if(!X.parentElem)throw Error("wi");var U=$bp(X,H);U===-1&&(U=K4N(X,H),U=U!==-1?U+X.videos.length:-1);if(U===-1)throw Error("xi");var K=U>=X.videos.length?X.recommendedVideos[U-X.videos.length]:X.videos[U];K.voteCount=l;K.voteSortTiebreaker=Date.now().toString();U>=X.videos.length?X.recommendedVideos.splice(U-X.videos.length,1):X.videos.splice(U,1);var w=X.videos;for(var d=0,B=w.length-1;d<=B;){var q=Math.floor((d+B)/2);if(w[q].voteCount<K.voteCount)B=q-1;else if(w[q].voteCount>K.voteCount)d=
q+1;else{a:{var u=K.voteSortTiebreaker;var e=w[q].voteSortTiebreaker;if(u.length!==e.length)u=u.length>e.length;else{for(var y=0;y<u.length;y++){var V=u.charCodeAt(y),p=e.charCodeAt(y);if(V>p){u=!0;break a}if(V<p)break}u=!1}}u?B=q-1:d=q+1}}w=d;if(w===-1)throw Error("yi");X.videos.splice(w,0,K);U!==w&&w1$(X,U,w,H,l,b)},w1$=function(X,H,l,b,U,K){var w,d=(w=X.parentElem)==null?void 0:w.children,B=Math.min(H,l),q=Math.max(H,l);
if(d)for(w=B;w<=q;w++)d[w].style.viewTransitionName="item-"+String(w);document.startViewTransition(function(){if(X.parentElem){var u=X.parentElem.children;if(!(!u||H<0||H>=u.length||l<0||l>=u.length)){var e=u[H];if(e){e.remove();X.showRefreshPill=l>=X.videos.length-1&&X.continuationsPresent;if(!X.showRefreshPill){u=u[l]||null;var y;(y=X.parentElem)==null||y.insertBefore(e,u)}_.QX(X.parentElem,"yt-update-video-data-voting-animation",{toIdx:l,itemId:b,newVoteCount:U,voteStatus:K,hideItem:X.showRefreshPill})}}}}).finished.then(function(){if(d)for(var u=
B;u<=q;u++)d[u].style.viewTransitionName="";
if(X.showRefreshPill)RrN(_.XS("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var e;if(e=u=(e=X.parentElem)==null?void 0:e.children[l])e=u.getBoundingClientRect(),u=e.bottom,e=!(e.top>=0&&u<=X.clientHeight);e&&(e=_.HK(H>l?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(H-l)),RrN(e))}})};var F4Z=function(X,H){var l=this;X?this.innertubeTransportServicePromise=Promise.resolve(X):H&&(this.innertubeTransportServicePromise=H(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new mN(3E3,function(b){return db$(l,b)},0);
this.validateMiniAppVideoIdRateLimiter=new mN(3E3,function(b){return hrU(l,b)},1)},ToN=function(X,H){X.JSC$17708_miniAppId=H;
X.reportMiniAppValueRateLimiter=new mN(3E3,function(l){return db$(X,l)},0);
X.validateMiniAppVideoIdRateLimiter=new mN(3E3,function(l){return hrU(X,l)},1)},cbp=function(X,H){var l;
return _.h(function(b){if(b.nextAddress==1)return b.yield(X.reportMiniAppValueRateLimiter.call(H),2);l=b.yieldResult;return b.return([l,H])})},db$=function(X,H){var l,b,U,K,w,d,B;
return _.h(function(q){switch(q.nextAddress){case 1:return q.yield(X.innertubeTransportServicePromise,2);case 2:return l=q.yieldResult,b=_.E9(WUz),U=Date.now(),K={externalPostId:X.JSC$17708_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(U/1E3),nanos:Math.round(U%1E3*1E6)},intValue:""+H}},_.Ew(q,3),q.yield(_.pg(l,K,b),5);case 5:w=q.yieldResult;_.Zt(q,4);break;case 3:throw d=_.Ow(q),d;case 4:if(w){if("error"in w&&w.error)throw w.error;if(w.errorMetadata)throw Error("zi`"+
w.errorMetadata.status);if(B=w.userStatResult)return q.return(B);throw Error("Ai");}throw Error("Bi");}})},rbZ=function(X){var H,l,b,U,K;
_.h(function(w){switch(w.nextAddress){case 1:return w.yield(X.innertubeTransportServicePromise,2);case 2:return H=w.yieldResult,l=_.E9(WUz),b={externalPostId:X.JSC$17708_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Ew(w,3),w.yield(_.pg(H,b,l),5);case 5:U=w.yieldResult;_.Zt(w,4);break;case 3:throw K=_.Ow(w),K;case 4:if(U==null)throw Error("Bi");if("error"in U&&U.error)throw U.error;if(U.errorMetadata)throw Error("zi`"+U.errorMetadata.status);_.m5(w)}})};
F4Z.prototype.flush=function(){var X=this;return _.h(function(H){return H.nextAddress==1?H.yield(X.reportMiniAppValueRateLimiter.flush(),2):H.yield(X.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var j$x=function(X,H){return _.h(function(l){return l.nextAddress==1?l.yield(X.validateMiniAppVideoIdRateLimiter.call(H),2):l.return(l.yieldResult)})},hrU=function(X,H){var l,b,U,K,w,d;
return _.h(function(B){switch(B.nextAddress){case 1:return B.yield(X.innertubeTransportServicePromise,2);case 2:return l=B.yieldResult,b=_.E9(pN_),U={videoId:H},_.Ew(B,3),B.yield(_.pg(l,U,b),5);case 5:K=B.yieldResult;_.Zt(B,4);break;case 3:throw w=_.Ow(B),w;case 4:if(K){if("error"in K&&K.error)throw K.error;if(K.errorMetadata)throw Error("zi`"+K.errorMetadata.status);if(d=K.playabilityStatus)return B.return(d.status);throw Error("Ci");}throw Error("Bi");}})};
F4Z[rx]=[_.c$(_.b$),_.c$($H_)];var BXd=function(){this.clientData=new Map};
BXd.prototype.getData=function(X){return this.clientData.get(X)};var qHA=function(X){this.store=X};
qHA.prototype.handleResponse=function(X){(X=_.f(X.frameworkUpdates,xj))&&_.Xe(X,this.store)};
qHA[rx]=[_.qU];var soZ=new _.gz("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var MNZ,uPY,erA;_.$6=new _.gz("FLOW_STATE_MANAGER_TOKEN");MNZ=function(){this.flowStates=new Map};
uPY=function(X,H){X=_.C(X.flowStates.values());for(var l=X.next();!l.done;l=X.next())if(l=l.value,l.flowRenderer.targetId===H)return l};
erA=function(X,H){var l,b=((l=X.flowRenderer.steps)!=null?l:[]).filter(function(U){return!H.includes(_.f(U,_.Kk).stepId)});
X.flowRenderer.steps=b};var ynY=function(X){this.JSC$17732_flowStateManager=X};
_.S(ynY,kR);ynY.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d;return _.h(function(B){l=_.f(X,WVt);U=(b=l)==null?void 0:b.stepIds;w=(K=l)==null?void 0:K.targetId;if(!U||!w)return B.return();d=uPY(H.JSC$17732_flowStateManager,w);if(!d)return B.return();erA(d,U);_.m5(B)})};
var KZ=function(){ynY.apply(this,arguments)};
_.S(KZ,ynY);KZ[rx]=[_.$6];var VNp=function(X,H){this.JSC$17738_reduxStore=X;this.JSC$17738_flowStateManager=H};
_.S(VNp,kR);
VNp.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B,q,u,e,y,V,p;return _.h(function(z){l=_.f(X,_.Esz);b=l.stepId;U=l.targetId;K=uPY(H.JSC$17738_flowStateManager,U);d=(w=K)==null?void 0:w.flowRenderer;B=d.flowStateEntityKey;q=_.iD(H.JSC$17738_reduxStore.getState(),B);if(!q)return z.return();u=q.currentStepId;V=(y=(e=q)==null?void 0:e.stepIdStack)!=null?y:[];p=u===V[V.length-1]?b:u;H.JSC$17738_reduxStore.dispatch(_.Mf("flowStateEntity",B,{currentStepId:b,stepIdStack:[p]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.m5(z)})};
var Rj=function(){VNp.apply(this,arguments)};
_.S(Rj,VNp);Rj[rx]=[_.qU,_.$6];var P1x=function(X,H,l){this.JSC$17745_reduxStore=X;this.JSC$17745_flowStateManager=H;this.JSC$17745_commandHandler=l};
_.S(P1x,kR);
P1x.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q,u,e,y,V,p,z;return _.h(function(t){b=_.f(X,_.gsD);U=b.targetId;K=uPY(l.JSC$17745_flowStateManager,U);d=(w=K)==null?void 0:w.flowRenderer;B=d.flowStateEntityKey;q=_.iD(l.JSC$17745_reduxStore.getState(),B);y=[].concat(_.LJ((e=(u=q)==null?void 0:u.stepIdStack)!=null?e:[]));V=y.pop();((p=q)==null?void 0:p.currentStepId)===V&&(V=y[y.length-1]);if(!V)return(z=b.onFirstStepCommand)&&l.JSC$17745_commandHandler.resolveCommand(z,H),t.return();
l.JSC$17745_reduxStore.dispatch(_.Mf("flowStateEntity",B,{currentStepId:V,stepIdStack:y}));_.m5(t)})};
var CZ=function(){P1x.apply(this,arguments)};
_.S(CZ,P1x);CZ[rx]=[_.qU,_.$6,_.Vr];var fY5=function(X,H){this.innertubeTransportService=X;this.JSC$17750_commandHandler=H};
_.S(fY5,kR);fY5.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d;return _.h(function(B){if(B.nextAddress==1){b=_.f(X,GU6);if(!b)return B.return();_.Ew(B,2);return B.yield(_.nl(l.innertubeTransportService,X),4)}if(B.nextAddress!=2){U=B.yieldResult;if(!U)return B.return();(K=U.updateFlowCommand)&&l.JSC$17750_commandHandler.resolveCommand(K,H);return _.Zt(B,0)}_.Ow(B);(d=(w=b)==null?void 0:w.onFailureCommand)&&l.JSC$17750_commandHandler.resolveCommand(d,H);_.m5(B)})};
var w5=function(){fY5.apply(this,arguments)};
_.S(w5,fY5);w5[rx]=[_.b$,_.Vr];var p1Z=function(X,H){this.JSC$17756_flowStateManager=X;this.JSC$17756_commandHandler=H};
_.S(p1Z,kR);
p1Z.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w;return _.h(function(d){b=_.f(X,_.Z7q);U=b.targetId;K=uPY(l.JSC$17756_flowStateManager,U);if(!K)return d.return(Promise.resolve());var B=K,q=(w=b.steps)!=null?w:[],u,e=(u=B.flowRenderer.steps)!=null?u:[];q=[].concat(_.LJ(e),_.LJ(q));B.flowRenderer.steps=q;b.flowContinuationCommand&&(K.flowRenderer.flowContinuationCommand=b.flowContinuationCommand);b.entityUpdateCommand&&l.JSC$17756_commandHandler.resolveCommand(b.entityUpdateCommand,H);
return d.return(Promise.resolve())})};
var d5=function(){p1Z.apply(this,arguments)};
_.S(d5,p1Z);d5[rx]=[_.$6,_.Vr];var SHZ={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 zr5=new _.gz("ICON_SET_TOKEN"),nYC=new _.gz("ICON_URL_PROVIDER_TOKEN"),k8Z=new _.gz("PREFETCH_ICONS_TOKEN"),xbe=new _.gz("ICON_MAP_FN_TOKEN");var hZ={},Dbe=(hZ.ACCESS_TIME="clock",hZ.ACCOUNT_BOX=_.gx("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",hZ.ACCOUNT_BOX_CAIRO="person_account_cairo",hZ.ACCOUNT_CIRCLE="person_circle",hZ.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",hZ.ACCOUNT_LINKED="account_link_success",hZ.ACCOUNT_UNLINKED="account_link",hZ.ADD_FRIEND="people",hZ.ADD_MODERATOR="shield_add",hZ.ADD_TO_LIBRARY="bookmark",hZ.ADD_TO_PLAYLIST="add",hZ.ADD_TO_QUEUE_TAIL="list_queue",hZ.ADD_TO_REMOTE_QUEUE="list_music",
hZ.ADD_TO_WATCH_LATER="clock",hZ.ADD_VIDEO_LINK="film_strip_add",hZ.ALERT_WARN_RED="alert_triangle",hZ.ARROW_BACK="arrow_left",hZ.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",hZ.ARROW_DROP_DOWN="chevron_down",hZ.ARROW_DROP_UP="chevron_up",hZ.ARROW_FORWARD="arrow_right",hZ.ARTIST="person_music",hZ.AUDIOTRACK="audio",hZ.AUTO_AWESOME="sparkle",hZ.AVATAR_ANONYMOUS="person_circle",hZ.AVATAR_LOGGED_OUT="person_circle",hZ.BACK="arrow_left",hZ.BAR_CHART="bar_graph",hZ.BLOCK="slash_circle_left",
hZ.BLOCK_USER="slash_circle_left",hZ.BOOKMARK_BORDER="bookmark",hZ.BREAKING_NEWS_ALT_1="article_alert",hZ.BROADCAST_CAIRO="podcast_cairo",hZ.BUG_REPORT="bug",hZ.CAMERA_ALT="camera",hZ.CAMPAIGN="megaphone",hZ.CANCEL="x_circle",hZ.CAPTIONS="closed_caption",hZ.CAST_OUTLINE="chromecast",hZ.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",hZ.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",hZ.CHAT="message_bubble_left",hZ.CHAT_BUBBLE="message_bubble_empty",hZ.CHAT_SPARK="spark_message_bubble_left",hZ.CHECK_BOX_OUTLINE_BLANK=
"box_empty",hZ.CHECK_CIRCLE_OUTLINE="check_circle",hZ.CHECK_CIRCLE_THICK="check_circle",hZ.CLARIFY="article_clarify",hZ.CLOSED_CAPTION_SELECTED="closed_caption",hZ.CLOSE="x_mark",hZ.CLOUD_UPLOAD="cloud_arrow_up",hZ.COLLAPSE="chevron_up",hZ.COLLAPSE_CAIRO="chevron_up_cairo",hZ.COLLECTION="layers",hZ.COLOR_LENS="palette",hZ.COMMENT="message_bubble_right",hZ.CONSENT_SHIELD="person_shield",hZ.CONTENT_CUT="scissors",hZ.CONTENT_CUT_CAIRO="scissors_cairo",hZ.COURSE=_.P("web_enable_course_icon_update")?"creator_academy":
"lightbulb",hZ.COURSE_CAIRO=_.P("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",hZ.CREATION_LIVE="radar_live",hZ.CREATION_POST="box_pencil",hZ.CREATION_UPLOAD="my_videos",hZ.CREATION_UPLOAD_RED="upload",hZ.CREATOR_METADATA_MONETIZATION="dollar_sign",hZ.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",hZ.CREATOR_STUDIO="youtube_studio",hZ.DASHBOARD="grid_asymmetrical",hZ.DELETE="trash_can",hZ.DELETE_SWEEP="trash_can",hZ.DESKTOP="laptop",hZ.DISLIKE="thumb_down",hZ.DISLIKE_SELECTED=
"thumb_down",hZ.DISMISSAL="x_mark",hZ.DISMISS_QUEUE="list_remove",hZ.DONE_ALL="check_double",hZ.DOWN_ARROW="arrow_down",hZ.DO_NOT_DISTURB="slash_circle_left",hZ.DRAFT="paper_corner_folded",hZ.DRAG_HANDLE="bars_2",hZ.EDIT="pencil",hZ.EMOJI="face_very_happy",hZ.EMOJI_FLAGS="flag",hZ.EMOJI_OBJECTS="lightbulb",hZ.EMOJI_PEOPLE="face_very_happy",hZ.EMOJI_RECENT="clock",hZ.EMPTY_HEART="heart",hZ.EMPTY_LIKE="thumb_up",hZ.ERROR_BLACK="alert_circle",hZ.ERROR_OUTLINE="alert_circle",hZ.EXIT_APP="arrow_in",hZ.EXIT_TO_APP=
"arrow_in",hZ.EXPAND="chevron_down",hZ.EXPAND_ALL="chevron_expand",hZ.EXPAND_CAIRO="chevron_down_cairo",hZ.EXPAND_LESS="chevron_up",hZ.EXPAND_MORE="chevron_down",hZ.EXPLORE="compass",hZ.EXPLORE_DESTINATION="compass",hZ.EXTERNAL_LINK="open_new",hZ.FAB_UPLOAD="upload",hZ.FACE_HAPPY_OUTLINE="face_happy",hZ.FACT_CHECK="article_check",hZ.FASHION_LOGO="fashion",hZ.FASHION_LOGO_CAIRO="fashion_cairo",hZ.FAVORITE="heart",hZ.FEEDBACK="message_bubble_alert",hZ.FEEDBACK_CAIRO="message_bubble_alert_cairo",hZ.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",hZ.FILL_ARROW_SOLID_UP_16="arrow_solid_up",hZ.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",hZ.FILTER="menu_filter",hZ.FIRST_PAGE="chevron_first",hZ.FLAG="flag",hZ.FULL_HEART="heart",hZ.GAME_CONSOLE_DPAD="game_console_dpad",hZ.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",hZ.GAMING_LOGO="gaming",hZ.GAMING_LOGO_CAIRO="gaming_cairo",hZ.GO_TO_PAGE="arrow_right",hZ.GROUPS="people_group",hZ.HAPPY="face_happy",hZ.HEALTH_AND_SAFETY="shield_plus",hZ.HELP="question_circle",hZ.HELP_CAIRO=
"question_circle_cairo",hZ.HELP_OUTLINE="question_circle",hZ.HIDE="slash_circle_left",hZ.IMAGE="image",hZ.INFINITY_ICON="infinity",hZ.INFO="info_circle",hZ.INFO_OUTLINE="info_circle",hZ.INSERT_CHART="bar_graph_box_vertical",hZ.INSERT_CHART_OUTLINED="bar_graph_box_vertical",hZ.INSERT_PHOTO="image",hZ.KEEP="pin",hZ.KEEP_OFF="pin_off",hZ.KEYBOARD="keyboard",hZ.KEYBOARD_ARROW_DOWN="chevron_down",hZ.KEYBOARD_ARROW_UP="chevron_up",hZ.KIDS_BLOCK="slash_circle_left",hZ.LANGUAGE="globe",hZ.LAST_PAGE="chevron_last",
hZ.LAUNCH="open_new",hZ.LEARNING="lightbulb",hZ.LEARNING_CAIRO="lightbulb_cairo",hZ.LIBRARY_ADD=Edy("library_add"),hZ.LIBRARY_OUTLINE="library",hZ.LIBRARY_REMOVE=Edy(),hZ.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",hZ.LIKES_PLAYLIST="thumb_up",hZ.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",hZ.LIKE="thumb_up",hZ.LIKE_SELECTED="thumb_up",hZ.LIVE="radar_live",hZ.LIVE_CAIRO="radar_live_cairo",hZ.LIVE_UNLISTED="link",hZ.LOCATION_ON="location_point",hZ.LOCATION_PIN="location_point",hZ.LOOP="arrow_repeat",hZ.LOOP_ACTIVE=
"arrow_repeat",hZ.LOOP_ONE="arrow_repeat_1",hZ.LOOP_ONE_ACTIVE="arrow_repeat_1",hZ.MEH="face_meh",hZ.MEMBERS_ONLY_MODE_OFF="message_bubble_left",hZ.MESSAGE="message_bubble_left",hZ.MICROPHONE_ON="mic",hZ.MIX="youtube_mix",hZ.MONETIZATION_ON="dollar_sign_circle",hZ.MONEY_FILL="dollar_sign_container",hZ.MONEY_FILL_JPY="yen_sign_container",hZ.MONEY_HEART="dollar_sign_heart",hZ.MORE_HORIZ="overflow_horizontal",hZ.MORE_VERT="overflow_vertical",hZ.MUSIC="audio",hZ.MUSIC_CAIRO="audio_cairo",hZ.MUSIC_NOTE_SYMBOL=
"music",hZ.MUSIC_SHUFFLE="arrow_shuffle",hZ.MY_CHANNEL="person_circle",hZ.MY_LOCATION="location_point",hZ.NEWS_STORY="news",hZ.NEXT="chevron_right",hZ.NOTIFICATIONS="bell",hZ.NOTIFICATIONS_ACTIVE="bell_on",hZ.NOTIFICATIONS_CAIRO="bell_cairo",hZ.NOTIFICATIONS_DONE_CHECKMARK="check",hZ.NOTIFICATIONS_INBOX="bell",hZ.NOTIFICATIONS_NONE="bell",hZ.NOTIFICATIONS_OFF="bell_off",hZ.NOT_INTERESTED="slash_circle_left",hZ.OFFICIAL_ARTIST_BADGE="audio",hZ.OFFLINE_CLOUD="cloud_off",hZ.OFFLINE_DOWNLOAD="download",
hZ.OFFLINE_DOWNLOAD_CAIRO="download_cairo",hZ.OFFLINE_PAUSE="pause",hZ.OPEN_IN_NEW="open_new",hZ.OUTLINE_ADJUST="adjust",hZ.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",hZ.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",hZ.OUTLINE_BAG="bag",hZ.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",hZ.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",hZ.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",hZ.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",hZ.PAID="dollar_sign",hZ.PAUSE_OUTLINED="pause",hZ.PAYMENT=
"credit_card",hZ.PERSON_RADAR_FILLED="person_radar",hZ.PHONE_DOWNLOAD="mobile_download",hZ.PLAYABLES_LOGO="tic_tac_toe",hZ.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",hZ.PLAYLISTS="list_play_arrow",hZ.PLAYLISTS_CAIRO="list_play_arrow_cairo",hZ.PLAYLIST_ADD=Edy("list_add"),hZ.PLAYLIST_ADD_CHECK=Edy("list_check"),hZ.PLAYLIST_PLAY="list_play_arrow",hZ.PLAY_ALL="play_arrow",hZ.PLAY_CIRCLE="play_arrow_circle",hZ.PLAY_OUTLINED="play_arrow_circle",hZ.PRIVACY_INFO="shield",hZ.PRIVACY_PRIVATE="lock",hZ.PRIVACY_PUBLIC=
"earth",hZ.PRIVACY_UNLISTED="link",hZ.PROMOTE="megaphone",hZ.PURCHASES="price_tag",hZ.PURCHASE_SUPER_CHAT="super_chat",hZ.PURCHASE_SUPER_STICKER="super_sticker",hZ.QUESTION_ANSWER="message_bubble_question",hZ.QUEUE_PLAY_LAST="list_queue_last",hZ.QUEUE_PLAY_NEXT="list_play_arrow",hZ.REMIX_FILLED="youtube_shorts_remix",hZ.REMOVE="bar_circle",hZ.REMOVE_CIRCLE="bar_circle",hZ.REMOVE_CIRCLE_OUTLINE="bar_circle",hZ.REMOVE_DONE="check_double_off",hZ.REMOVE_FROM_HISTORY="bar_circle",hZ.REMOVE_FROM_PLAYLIST=
"bar_circle",hZ.REMOVE_MODERATOR="shield_off",hZ.REPLAY="arrow_circle",hZ.REPLAY_10="skip_back_10",hZ.REPORT_PROBLEM="alert_triangle",hZ.SAD="face_sad",hZ.SAVE_PLAYLIST="bookmark",hZ.SCHEDULE="clock",hZ.SCHOOL="creator_academy",hZ.SCREEN_FULLSCREEN="screen_full",hZ.SEARCH_HISTORY="arrow_time",hZ.SELL="price_tag",hZ.SETTINGS="gear",hZ.SETTINGS_CAIRO="gear_cairo",hZ.SETTINGS_LIGHT="gear",hZ.SETTINGS_MATERIAL="gear",hZ.SHARE_ARROW="share",hZ.SHIELD_WITH_AVATAR="person_shield",hZ.SHOPPING_BAG="bag",hZ.SHOPPING_BAG_CAIRO=
"bag_cairo",hZ.SHOPPING_CART="cart",hZ.SHORTS_COMMENT="youtube_shorts_message_bubble_right",hZ.SHORTS_DISLIKE="youtube_shorts_thumb_down",hZ.SHORTS_LIKE="youtube_shorts_thumb_up",hZ.SHORTS_SHARE="youtube_shorts_share",hZ.SHUFFLE="arrow_shuffle",hZ.SLOW_MODE_OFF="message_bubble_left",hZ.SOCIAL="people",hZ.SORT="menu_sort",hZ.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",hZ.SPEED_1X="1x",hZ.SPEED_1_POINT_2X="1_point_2x",hZ.SPEED_1_POINT_5X="1_point_5x",hZ.SPEED_1_POINT_8X="1_point_8x",hZ.SPEED_2X="2x",
hZ.SPEED_POINT_2X="point_2x",hZ.SPEED_POINT_8X="point_8x",hZ.SPONSORSHIP_STAR="star_circle",hZ.STAFF_PICK="spotlight",hZ.START_DVR="add",hZ.STAR_BORDER="star",hZ.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",hZ.STICKER_EMOTICON="face_happy",hZ.STOP_DVR="stop",hZ.SUBSCRIBE="youtube_logo_icon",hZ.SUBSCRIBE_PLUS="add_cairo",hZ.SUBSCRIPTION_MANAGER="gear",hZ.SUPERVISOR_ACCOUNT="people",hZ.SUPER_CHAT_FOR_GOOD="hands_heart",hZ.SWAP_HORIZ="arrow_swap_horizontal",hZ.SWITCH_ACCOUNTS="person_account",hZ.TAB_ACCOUNT=
"person",hZ.TAB_ACTIVITY="bell",hZ.TAB_BOOKMARK="bookmark",hZ.TAB_EXPLORE="compass",hZ.TAB_HOME="home",hZ.TAB_HOME_CAIRO="home_cairo",hZ.TAB_INBOX="mail",hZ.TAB_LIKED="thumb_up",hZ.TAB_MUSIC_PREMIUM="youtube_music",hZ.TAB_SHORTS="youtube_shorts",hZ.TAB_SHORTS_CAIRO="youtube_shorts_cairo",hZ.TAB_SUBSCRIPTIONS="subscriptions",hZ.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",hZ.TAB_TRENDING="fire",hZ.TIMER="stopwatch",hZ.TRAILER="youtube_originals",hZ.TRENDING="fire",hZ.TRENDING_CAIRO="fire_cairo",hZ.TRENDING_DOWN=
"rating_down",hZ.TRENDING_UP="rating_up",hZ.TROPHY="trophy",hZ.TROPHY_CELEBRATIONS="fireworks",hZ.TUNE="adjust",hZ.UNBLOCK_USER="bar_circle",hZ.UNLIMITED="youtube_logo_icon",hZ.UNPLUGGED_LIVE_GUIDE="radar_live",hZ.UNPLUGGED_SPORTS="eye_off",hZ.UPLOADS="library",hZ.UP_ARROW="arrow_up",hZ.VERTICAL_ALIGN_BOTTOM="download",hZ.VERY_HAPPY="face_very_happy",hZ.VERY_SAD="face_very_sad",hZ.VIDEOGAME_ASSET="gaming",hZ.VIDEOS="play_arrow_circle",hZ.VIDEO_CALL="video_camera_add",hZ.VIDEO_LIBRARY_WHITE="library",
hZ.VIDEO_YOUTUBE="youtube_logo_icon",hZ.VIEW_LIST="list_view",hZ.VIEW_LIST_CAIRO="list_view_cairo",hZ.VISIBILITY="eye",hZ.VISIBILITY_OFF="eye_off",hZ.VOLUME_MUTE="volume_off",hZ.VOLUME_UP="volume_on",hZ.WALLPAPER="image",hZ.WARNING="alert_triangle",hZ.WATCH_HISTORY="arrow_time",hZ.WATCH_HISTORY_CAIRO="arrow_time_cairo",hZ.WATCH_LATER="clock",hZ.WATCH_LATER_CAIRO="clock_cairo",hZ.WATCH_RELATED_MIX="youtube_mix",hZ.WHAT_TO_WATCH="home",hZ.YOUTUBE_MUSIC_MONOCHROME="youtube_music",hZ.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",hZ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",hZ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",hZ.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",hZ.YT_OUTLINE_MUSIC_24="music",hZ);var Fb={},tNe=(Fb.ACCESS_TIME="clock",Fb.ACCOUNT_BOX="person_square",Fb.ACCOUNT_BOX_CAIRO="person_square",Fb.ACCOUNT_CIRCLE="person_circle",Fb.ACCOUNT_CIRCLE_CAIRO="person_circle",Fb.ACCOUNT_LINKED="account_link",Fb.ACCOUNT_UNLINKED="account_link",Fb.ADD_CIRCLE="add_circle",Fb.ADD_CIRCLE_OUTLINE="add_circle",Fb.ADD_FRIEND="person_child",Fb.ADD_MODERATOR="shield_add",Fb.ADD_TO_LIBRARY="bookmark",Fb.ADD_TO_PLAYLIST="add",Fb.ADD_TO_QUEUE_TAIL="queue",Fb.ADD_TO_REMOTE_QUEUE="playlist_audio",Fb.ADD_TO_WATCH_LATER=
"clock",Fb.ADD_VIDEO_LINK="film_strip_add",Fb.ADMIN_PANEL_SETTINGS="person_gear",Fb.ALERT_WARN_RED="alert_triangle",Fb.ALIGN_LEFT="text_align_left",Fb.ARROWS_ALERT="arrow_split_alert",Fb.ARROW_BACK="arrow_left",Fb.ARROW_CIRCLE="arrow_counterclockwise",Fb.ARROW_CIRCLE_PLAY="replay",Fb.ARROW_CIRCLE_RIGHT="arrow_clockwise",Fb.ARROW_DIAGONAL="arrow_up_left",Fb.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Fb.ARROW_DROP_DOWN="triangle_down",Fb.ARROW_DROP_UP="triangle_up",Fb.ARROW_FORWARD="arrow_right",Fb.ARROW_PAUSE=
"pause_history",Fb.ARROW_UNDO="undo",Fb.ARTICLE="text_page",Fb.ARTICLE_ALERT="text_page_alert",Fb.ARTICLE_CHECK="text_page_check",Fb.ARTICLE_CLARIFY="text_page_info",Fb.ARTIST="person_audio",Fb.AUDIOTRACK="audio",Fb.AUDIO_BADGE="audio_badge",Fb.AUDIO_SURROUND="surround_sound",Fb.AUTO_AWESOME="sparkles",Fb.AVATAR_ANONYMOUS="person_circle",Fb.AVATAR_LOGGED_OUT="person_circle",Fb.BACK="arrow_left",Fb.BAR_CHART="chart_bar",Fb.BAR_CIRCLE="minus_circle",Fb.BAR_HORIZONTAL="minus",Fb.BLOCK="circle_slash",
Fb.BLOCK_USER="circle_slash",Fb.BOOKMARK_BORDER="bookmark",Fb.BOX_OPEN_CHECK="quiz",Fb.BOX_PENCIL="square_pencil",Fb.BOX_STACK_3="square3_stack",Fb.BREAKING_NEWS_ALT_1="text_page_alert",Fb.BROADCAST="podcast",Fb.BROADCAST_CAIRO="podcast",Fb.BUG_REPORT="bug",Fb.CAMERA_ALT="camera",Fb.CAMPAIGN="megaphone",Fb.CANCEL="x_circle",Fb.CAPTIONS="closed_captions",Fb.CAST_ICON="chromecast",Fb.CAST_OUTLINE="chromecast",Fb.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Fb.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
Fb.CHAT="text_bubble",Fb.CHAT_BUBBLE="bubble",Fb.CHECK_BOX="check_square",Fb.CHECK_BOX_OUTLINE_BLANK="square",Fb.CHECK_CIRCLE_FILLED="check_circle",Fb.CHECK_CIRCLE_OUTLINE="check_circle",Fb.CHECK_CIRCLE_THICK="check_circle",Fb.CHECK_DOUBLE="check_done",Fb.CHECK_DOUBLE_OFF="check_done_slash",Fb.CHEVRON_LEFT="chevron_left",Fb.CHEVRON_RIGHT="chevron_right",Fb.CHEVRON_RIGHT_CAIRO="chevron_right",Fb.CIRCLES_OVERLAP="account_link",Fb.CLAPPERBOARD_CAIRO="clapperboard",Fb.CLARIFY="text_page_info",Fb.CLOCK_ARROWS=
"clock_split",Fb.CLOCK_ARROWS_ALERT="clock_split_alert",Fb.CLOSED_CAPTION="closed_captions",Fb.CLOSED_CAPTION_SELECTED="closed_captions",Fb.CLOSE="x",Fb.CLOUD_UPLOAD="cloud_arrow_up",Fb.COLLAPSE="chevron_up",Fb.COLLAPSE_CAIRO="chevron_up",Fb.COLLECTION="square3d_stack",Fb.COLOR_LENS="paint_palette",Fb.COMMENT="text_bubble",Fb.CONSENT_SHIELD="person_shield",Fb.CONTENT_CUT="scissors",Fb.CONTENT_CUT_CAIRO="scissors",Fb.COURSE="graduation_cap",Fb.COURSE_CAIRO="graduation_cap",Fb.CREATION_LIVE="live",
Fb.CREATION_POST="square_pencil",Fb.CREATION_UPLOAD="video",Fb.CREATION_UPLOAD_RED="upload",Fb.CREATOR_ACADEMY="graduation_cap",Fb.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",Fb.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",Fb.CREATOR_STUDIO="youtube_studio",Fb.DARK_THEME="theme",Fb.DELETE="trash_can",Fb.DELETE_SWEEP="trash_can",Fb.DESKTOP="laptop",Fb.DISLIKE="thumb_down",Fb.DISLIKE_SELECTED="thumb_down",Fb.DISMISSAL="x",Fb.DISMISS_QUEUE="playlist_x",Fb.DOGFOOD="pawprint",Fb.DOLLAR_SIGN=
"dollar_sign_circle",Fb.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Fb.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Fb.DOWN_ARROW="arrow_down",Fb.DO_NOT_DISTURB="circle_slash",Fb.DRAFT="document",Fb.DRAG_HANDLE="equal",Fb.EARTH="globe",Fb.EDIT="pencil",Fb.EMOJI="face_very_happy",Fb.EMOJI_FLAGS="flag",Fb.EMOJI_OBJECTS="lightbulb",Fb.EMOJI_PEOPLE="face_very_happy",Fb.EMOJI_RECENT="clock",Fb.EMPTY_HEART="heart",Fb.EMPTY_LIKE="thumb_up",Fb.ERROR_BLACK="alert_circle",Fb.ERROR_OUTLINE="alert_circle",Fb.ERROR_WHITE=
"alert_circle",Fb.EXIT_APP="arrow_in",Fb.EXIT_TO_APP="arrow_in",Fb.EXPAND="chevron_down",Fb.EXPAND_ALL="chevron_expand",Fb.EXPAND_CAIRO="chevron_down",Fb.EXPAND_LESS="chevron_up",Fb.EXPAND_MORE="chevron_down",Fb.EXPLORE="compass",Fb.EXPLORE_DESTINATION="compass",Fb.EXTERNAL_LINK="arrow_up_right",Fb.EYE_OFF="eye_slash",Fb.FAB_UPLOAD="upload",Fb.FACE_HAPPY_OUTLINE="face_happy",Fb.FACE_MEH="face_neutral",Fb.FACT_CHECK="text_page_check",Fb.FASHION_LOGO="fashion",Fb.FASHION_LOGO_CAIRO="fashion",Fb.FAVORITE=
"thumb_up",Fb.FEEDBACK="alert_bubble",Fb.FEEDBACK_CAIRO="alert_bubble",Fb.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",Fb.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Fb.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Fb.FIRST_PAGE="chevron_left_end",Fb.FLAG_CAIRO="flag",Fb.FLASH_OFF="flash_slash",Fb.FLASH_ON="flash",Fb.FULL_HEART="heart",Fb.GAMING_LOGO="gaming",Fb.GAMING_LOGO_CAIRO="gaming",Fb.GO_TO_PAGE="arrow_right",Fb.GRID_ASYMMETRICAL="dashboard",Fb.GROUPS="person3",Fb.HAND_SWIPE_LEFT="gesture_swipe_left",
Fb.HAND_SWIPE_RIGHT="gesture_swipe_right",Fb.HAPPY="face_happy",Fb.HEALTH_AND_SAFETY="shield_health",Fb.HEART_BOX="heart_cube",Fb.HELP="help_circle",Fb.HELP_CAIRO="help_circle",Fb.HELP_OUTLINE="help_circle",Fb.HIDE="circle_slash",Fb.INCOGNITO_CAIRO="incognito",Fb.INFINITY_ICON="infinity",Fb.INFO="info_circle",Fb.INFO_OUTLINE="info_circle",Fb.INSERT_CHART="chart_bar_square",Fb.INSERT_CHART_OUTLINED="chart_bar_square",Fb.INSERT_PHOTO="image",Fb.KEEP="pin",Fb.KEEP_OFF="pin_slash",Fb.KEYBOARD="keyboard",
Fb.KEYBOARD_ARROW_DOWN="chevron_down",Fb.KEYBOARD_ARROW_UP="chevron_up",Fb.KIDS_BLOCK="circle_slash",Fb.LANGUAGE="globe",Fb.LAST_PAGE="chevron_right_end",Fb.LAUNCH="arrow_up_right",Fb.LEARNING="lightbulb",Fb.LEARNING_CAIRO="lightbulb",Fb.LIBRARY_ADD="bookmark",Fb.LIBRARY_IMAGE="image_stack",Fb.LIBRARY_MUSIC="audio_square_stack",Fb.LIBRARY_OUTLINE="play_square_stack",Fb.LIBRARY_REMOVE="bookmark",Fb.LIBRARY_SAVED="check_square_stack",Fb.LIKES_PLAYLIST="thumb_up",Fb.LIKES_PLAYLIST_CAIRO="thumb_up",Fb.LIKE=
"thumb_up",Fb.LIKE_SELECTED="thumb_up",Fb.LIST_QUEUE="queue",Fb.LIVE_CAIRO="live",Fb.LIVE_UNLISTED="link",Fb.LOCATION_ON="location_pin",Fb.LOCATION_PIN="location_pin",Fb.LOCATION_POINT="location_pin",Fb.LOOP="repeat",Fb.LOOP_ACTIVE="repeat",Fb.LOOP_ONE="repeat1",Fb.LOOP_ONE_ACTIVE="repeat1",Fb.MEET="google_meet",Fb.MEH="face_neutral",Fb.MEMBERSHIPS="memberships",Fb.MEMBERS_ONLY_MODE_OFF="text_bubble",Fb.MENU_FILTER="filter",Fb.MESSAGE="text_bubble",Fb.MESSAGE_BUBBLE_GEAR="bubble_gear",Fb.MESSAGE_BUBBLE_LEFT=
"text_bubble",Fb.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Fb.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Fb.MESSAGE_BUBBLE_QUESTION="help_bubble",Fb.MICROPHONE_ON="mic",Fb.MONETIZATION_ON="dollar_sign_circle",Fb.MONEY_FILL="dollar_sign_rectangle",Fb.MONEY_FILL_JPY="yen_sign_rectangle",Fb.MONEY_HAND="dollar_sign_circle_hand",Fb.MONEY_HEART="dollar_sign_heart",Fb.MOON_Z="sleep_timer",Fb.MORE_HORIZ="overflow_horizontal",Fb.MORE_VERT="overflow_vertical",Fb.MUSIC="audio",Fb.MUSIC_CAIRO="audio",Fb.MUSIC_EXPLICIT_BADGE=
"explicit",Fb.MUSIC_NEW_RELEASE="audio_badge",Fb.MUSIC_NOTE_SYMBOL="audio",Fb.MUSIC_SCISSORS="audio_scissors",Fb.MUSIC_SHUFFLE="shuffle",Fb.MY_CHANNEL="person_circle",Fb.MY_LOCATION="location_pin",Fb.MY_VIDEOS="video",Fb.MY_VIDEOS_CAIRO="video",Fb.NEWS_CAIRO="news",Fb.NEWS_STORY="news",Fb.NEXT="chevron_right",Fb.NOTE_ADD="bubble_pencil",Fb.NOTIFICATIONS="bell",Fb.NOTIFICATIONS_ACTIVE="bell_waves",Fb.NOTIFICATIONS_CAIRO="bell",Fb.NOTIFICATIONS_DONE_CHECKMARK="check",Fb.NOTIFICATIONS_INBOX="bell",Fb.NOTIFICATIONS_NONE=
"bell",Fb.NOTIFICATIONS_OFF="bell_slash",Fb.NOT_INTERESTED="circle_slash",Fb.OFFICIAL_ARTIST_BADGE="audio",Fb.OFFLINE_CLOUD="cloud_slash",Fb.OFFLINE_DOWNLOAD="download",Fb.OFFLINE_DOWNLOAD_CAIRO="download",Fb.OFFLINE_PAUSE="pause",Fb.OPEN_IN_NEW="arrow_up_right",Fb.OUTLINE_ADJUST="adjust",Fb.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Fb.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Fb.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Fb.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Fb.OUTLINE_BAG="bag",Fb.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",Fb.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Fb.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Fb.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Fb.PAID="dollar_sign_circle",Fb.PAUSE_OUTLINED="pause",Fb.PAYMENT="credit_card",Fb.PEOPLE="person_child",Fb.PEOPLE_2="person2_rectangle",Fb.PEOPLE_GROUP="person3",Fb.PEOPLE_NOTE="bubble_asterisk",Fb.PERSON_2="person2",Fb.PERSON_ACCOUNT="person_square_stack",Fb.PERSON_MINUS="person_x",Fb.PERSON_MUSIC="person_audio",Fb.PERSON_RADAR="person_waves",
Fb.PERSON_RADAR_FILLED="person_waves",Fb.PERSON_SETTING="person_gear",Fb.PHONE="phone",Fb.PHONE_DOWNLOAD="mobile_arrow_down",Fb.PICTURE_IN_PICTURE="picture_in_picture",Fb.PLAYABLES_LOGO="playables",Fb.PLAYABLES_LOGO_CAIRO="playables",Fb.PLAYLISTS="playlist",Fb.PLAYLISTS_CAIRO="playlist",Fb.PLAYLIST_ADD_CHECK="bookmark",Fb.PLAY_ALL="play",Fb.PLAY_ARROW="play",Fb.PLAY_ARROW_CIRCLE="play_circle",Fb.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Fb.PLAY_CIRCLE="play_circle",Fb.PLAY_OUTLINED="play_circle",
Fb.PODCAST_ADD="podcast_add",Fb.PODCAST_CHECK="podcast_check",Fb.PRIVACY_INFO="shield_x",Fb.PRIVACY_PRIVATE="lock",Fb.PRIVACY_PUBLIC="globe",Fb.PRIVACY_UNLISTED="link",Fb.PROMOTE="megaphone",Fb.PURCHASES="price_tag",Fb.PURCHASE_SUPER_CHAT="super_chat",Fb.PURCHASE_SUPER_STICKER="super_sticker",Fb.QUESTION_ANSWER="help_bubble",Fb.QUESTION_CIRCLE="help_circle",Fb.QUEUE_PLAY_LAST="queue_last",Fb.QUEUE_PLAY_NEXT="queue_next",Fb.QUOTATION_MARK="quote",Fb.RADAR_LIVE="live",Fb.REMOVE="minus_circle",Fb.REMOVE_CIRCLE=
"minus_circle",Fb.REMOVE_CIRCLE_OUTLINE="minus_circle",Fb.REMOVE_FROM_HISTORY="minus_circle",Fb.REMOVE_FROM_PLAYLIST="minus_circle",Fb.REMOVE_MODERATOR="shield_slash",Fb.REPLAY="arrow_counterclockwise",Fb.REPLAY_10="skip10_back",Fb.REPLAY_ARROW="replay",Fb.REPORT_PROBLEM="alert_triangle",Fb.RSS_OFF="rss_slash",Fb.SAD="face_sad",Fb.SAVE_PLAYLIST="bookmark",Fb.SCHEDULE="clock",Fb.SCHOOL="graduation_cap",Fb.SCREEN_DEFAULT="player_default",Fb.SCREEN_FULLSCREEN="player_full_enter",Fb.SCREEN_LIGHT="ambient_mode",
Fb.SCREEN_ROTATION="rotate_portrait",Fb.SCREEN_SWITCH="player_switch",Fb.SCREEN_THEATRE="player_theater",Fb.SEARCH_CAIRO="search",Fb.SEARCH_HISTORY="history",Fb.SELL="price_tag",Fb.SETTINGS="gear",Fb.SETTINGS_CAIRO="gear",Fb.SETTINGS_LIGHT="gear",Fb.SETTINGS_MATERIAL="gear",Fb.SETTINGS_REMOTE="remote_waves",Fb.SHARE="share",Fb.SHARE_ARROW="share",Fb.SHARE_CAIRO="share",Fb.SHIELD="shield_x",Fb.SHIELD_EMPTY="shield",Fb.SHIELD_OFF="shield_slash",Fb.SHIELD_WITH_AVATAR="person_shield",Fb.SHOPPING_BAG=
"bag",Fb.SHOPPING_BAG_CAIRO="bag",Fb.SHOPPING_CART="cart",Fb.SHORTS_COMMENT="text_bubble",Fb.SHORTS_DISLIKE="thumb_down",Fb.SHORTS_LIKE="thumb_up",Fb.SHORTS_SHARE="share",Fb.SKIP_FORWARD_30="skip30_forward",Fb.SLASH_CIRCLE_LEFT="circle_slash",Fb.SLASH_CIRCLE_RIGHT="circle_slash",Fb.SLOW_MODE="bubble_slow",Fb.SLOW_MODE_OFF="text_bubble",Fb.SOCIAL="person_child",Fb.SPARKLE="sparkles",Fb.SPARK_IMAGE="image_spark",Fb.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",Fb.SPARK_PENCIL="pencil_spark",Fb.SPARK_RADAR=
"spark_waves",Fb.SPARK_VIDEO="video_spark",Fb.SPEAKER_GROUP="speaker_stack",Fb.SPEAKER_OFF="speaker_slash",Fb.SPEED_1X="n1x",Fb.SPEED_1_POINT_2X="n1point2x",Fb.SPEED_1_POINT_5X="n1point5x",Fb.SPEED_1_POINT_8X="n1point8x",Fb.SPEED_2X="n2x",Fb.SPONSORSHIP_STAR="star_circle",Fb.SPORTS="basketball",Fb.SPOTLIGHT="spotlight",Fb.STAFF_PICK="spotlight",Fb.START_DVR="add",Fb.STAR_BORDER="star",Fb.STAR_CIRCLE_RIBBON="memberships_gift",Fb.STAR_HALF="star_full_half",Fb.STAR_SHOOTING="hype",Fb.STICKER="sticker",
Fb.STICKER_EMOTICON="face_happy",Fb.STOP_DVR="stop",Fb.SUBSCRIBE="youtube",Fb.SUBSCRIBE_PLUS="add",Fb.SUBSCRIPTION_MANAGER="gear",Fb.SUPERSTAR="super_star",Fb.SUPERVISOR_ACCOUNT="person_child",Fb.SUPER_CHAT_FOR_GOOD="hands_heart",Fb.SWAP_HORIZ="arrow_swap_horizontal",Fb.SWITCH_ACCOUNTS="person_square_stack",Fb.TAB_ACCOUNT="person",Fb.TAB_ACTIVITY="bell",Fb.TAB_BOOKMARK="bookmark",Fb.TAB_EXPLORE="compass",Fb.TAB_HOME="home",Fb.TAB_HOME_CAIRO="home",Fb.TAB_INBOX="mail",Fb.TAB_LIKED="thumb_up",Fb.TAB_MUSIC_PREMIUM=
"youtube_music",Fb.TAB_SHORTS="shorts",Fb.TAB_SHORTS_CAIRO="shorts",Fb.TAB_SUBSCRIPTIONS="subscriptions",Fb.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Fb.TAB_TRENDING="trending",Fb.TARGET="target",Fb.TARGET_ADD="target_add",Fb.TEMPLATE_ADD="template_add",Fb.TEXT="font",Fb.TICKET_STAR="star_ticket",Fb.TIMER="stopwatch",Fb.TRENDING_CAIRO="trending",Fb.TRENDING_DOWN="arrow_trend_down",Fb.TRENDING_UP="arrow_trend_up",Fb.TROPHY_CAIRO="trophy",Fb.TROPHY_CELEBRATIONS="fireworks",Fb.TROPHY_STAR="star_trophy",
Fb.TUNE="adjust",Fb.TV_OFF="tv_slash",Fb.UNBLOCK_USER="minus_circle",Fb.UNFAVORITE="thumb_down",Fb.UNLIMITED="youtube",Fb.UNPLUGGED_LIVE_GUIDE="live",Fb.UNPLUGGED_SPORTS="eye_slash",Fb.UPLOADS="play_square_stack",Fb.UP_ARROW="arrow_up",Fb.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Fb.VERTICAL_ALIGN_TOP="chevron_up_end",Fb.VERY_HAPPY="face_very_happy",Fb.VERY_SAD="face_very_sad",Fb.VIDEOS="play_circle",Fb.VIDEO_CALL="video_camera_add",Fb.VIDEO_LIBRARY_WHITE="play_square_stack",Fb.VIDEO_QUALITY_4K="n4k",
Fb.VIDEO_QUALITY_8K="n8k",Fb.VIDEO_YOUTUBE="youtube",Fb.VIEW_LIST_CAIRO="view_list",Fb.VIEW_MODULE="view_column3_row2",Fb.VISIBILITY="eye",Fb.VISIBILITY_OFF="eye_slash",Fb.VOLUME_DOWN="volume_min",Fb.VOLUME_MUTE="volume_mute",Fb.VOLUME_OFF="volume_mute",Fb.VOLUME_STABLE="stable_volume",Fb.VOLUME_UP="volume_max",Fb.WALLPAPER="image",Fb.WARNING="alert_triangle",Fb.WATCH_HISTORY="history",Fb.WATCH_HISTORY_CAIRO="history",Fb.WATCH_LATER="clock",Fb.WATCH_LATER_CAIRO="clock",Fb.WATCH_RELATED_MIX="mix",
Fb.WHAT_TO_WATCH="home",Fb.YOUTUBE_LINKED_TV="tv_mobile",Fb.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Fb.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Fb.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Fb.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Fb.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Fb.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Fb.YOUTUBE_SHORTS_OUTLINE_24="shorts",Fb.YT_OUTLINE_MUSIC_24="audio",Fb);var W4y={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 EYA={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 gYp={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"},BL=function(X){this.iconUrlProvider=X};
BL.prototype.resolveIcon=function(X,H){var l=gYp[X.iconName.toUpperCase()];l&&(X.iconName=l);var b=X.iconName;b=b.replace(/-/g,"_");X=Object.assign({},X,{iconName:this.mapIconTypeToStandardName(b,!!l)||b.toLowerCase()});if(_.P("enable_web_delhi_icons")||l){var U;return tTy(EYA,X,((U=this.iconUrlProvider)==null?void 0:U.getYtStandardUrl)||Gfl,H)}var K;return tTy(W4y,X,((K=this.iconUrlProvider)==null?void 0:K.getYtStandardUrl)||gdy,H)};
BL.prototype.mapIconTypeToStandardName=function(X,H){return _.P("enable_web_delhi_icons")||H?tNe[X.toUpperCase()]:Dbe[X.toUpperCase()]};
BL[rx]=[_.c$(nYC)];var G85=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),aYx=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),Z$N=function(X){this.urlProvider=this.iconUrlProvider=X};
_.S(Z$N,BL);
Z$N.prototype.resolveIcon=function(X,H){X.iconName==="youtube_logo"&&(X.iconName="yt-logo-updated");if(X.iconName==="youtube_premium_logo"||X.iconName==="youtube_red_logo")X.iconName="yt-logo-red-updated";var l=Object.assign({},X);X.iconName==="menu"&&(_.P("enable_web_delhi_icons")||(l.iconName="bars_3"),l.iconStyle="youtube_outline");X.iconSetName==="socialNetworksRound"&&(X.iconName==="mail"&&(l.iconName="email"),X.iconName==="embed"&&(l.iconSize=60));X.iconName==="more"&&(l.iconName="overflow_horizontal");
X.iconName==="fullscreen"&&(l.iconName="screen_full");X.iconName==="premium_standalone"&&(l.iconName="premium_standalone_cairo");_.P("enable_connect_icon_update_web")&&X.iconName==="account_linked"&&(l.iconName="circles_overlap_check",l.iconStyle="youtube_fill");_.P("enable_connect_icon_update_web")&&X.iconName==="account_unlinked"&&(l.iconName="circles_overlap",l.iconStyle="youtube_outline");G85.has(X.iconName)&&(l.iconStyle="youtube_fill");if(_.P("enable_web_delhi_icons")){X.iconName==="playlist_add"&&
(l.iconName="bookmark");X.iconName==="offline_pin"&&(l.iconName="arrow_down_circle",l.iconStyle="youtube_fill");if(X.iconName==="circles_overlap_check"||l.iconName==="circles_overlap_check")l.iconName="account_link",l.iconStyle="youtube_fill";aYx.has(X.iconName)&&(l.iconName+="_updated")}X=Object.assign({},l,{iconName:(BL.prototype.mapIconTypeToStandardName.call(this,l.iconName)||l.iconName).toLowerCase()});var b;return(X=tTy(SHZ,X,((b=this.urlProvider)==null?void 0:b.getUrl)||a4Z,H))?X:BL.prototype.resolveIcon.call(this,
l,H)};
Z$N[rx]=[_.c$(nYC)];_.i$$=1;var qe=function(X,H){this.JSC$17778_commandHandler=X;this.innertubeTransportService=H};
_.S(qe,kR);qe.prototype.resolveCommand=function(X,H){var l=this,b,U,K;return _.h(function(w){return(b=_.f(X,JPC))?w.return(vYe(l,b,(U=H)==null?void 0:(K=U.form)==null?void 0:K.element)):w.return()})};
var vYe=function(X,H,l){H={profileCardContext:H.profileCardContext,profileOwnerExternalChannelId:H.profileOwnerExternalChannelId};var b=_.E9(R1z);return _.pg(X.innertubeTransportService,H,b).then(function(U){if(!U)throw new _.qd("GetProfileCard failed");if(U=U.popupCommand){X.JSC$17778_commandHandler.resolveCommand(U,{form:{element:l}});_.jR(_.lv(),66557);U=U==null?void 0:U.clickTrackingParams;var K=_.F6();U&&K&&_.lv().graftServerVe(U,K)}})};
qe[rx]=[_.Vr,_.b$];var so=function(){};
_.S(so,kR);so.prototype.resolveCommand=function(X){var H,l;return _.h(function(b){H=_.f(X,bF9);if(!H)return b.return();l=Number(H.enableDelayedPacfLoggingTvMs);if(isNaN(l)){var U=ln();PXG(U,H,0)}else PXG(ln(),H,l);_.m5(b)})};_.Me=function(){};
_.S(_.Me,kR);
_.Me.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q;return _.h(function(u){b=_.f(X,UDQ);K=(U=H.form)==null?void 0:U.element;d=(w=K)==null?void 0:w.closest("ytd-enforcement-message-view-model");if(!b||!d)return u.return();l.allowAdsAction||(B=b.fundingChoiceInstructionPageUrl,l.allowAdsAction=new E2q(window,_.zd(B)));var e=l.allowAdsAction;e.wallElement=d;e.allowAdsPopup.style.setProperty("display","flex","important");var y=e.scrollManager;y.isScrollingEnabled&&(y.originalBodyOverflow=y.JSC$10310_domHelper.JSC$9636_document_.body.style.overflow,
y.JSC$10310_domHelper.JSC$9636_document_.body.style.overflow="hidden",y.isScrollingEnabled=!1);e.wallElement.style.setProperty("display","none","important");ISQ(e.accessibilityManager,e.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((q=l.allowAdsAction.allowAdsPopup)&&q instanceof HTMLElement)for(e=_.C(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),y=e.next();!y.done;y=e.next()){var V=_.C(y.value);y=V.next().value;V=V.next().value;
q.style.setProperty(y,V)}_.m5(u)})};
_.Me.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var u6=function(){};
_.S(u6,kR);u6.prototype.resolveCommand=function(X){var H;return _.h(function(l){H=_.f(X,qv_);if(!H)return l.return();Kly(X);_.m5(l)})};_.em=new _.gz("AI_CHAT_CONTROLLER_TOKEN");var yq=function(X,H,l,b){this.JSC$17793_commandHandler=X;this.store=H;this.getPlayerCb=l;this.aiChatController=b};
_.S(yq,kR);yq.prototype.pageContext=function(){var X=_.ze.currentPageSubTypeSelector(this.store.getState()),H;return(H=this.aiChatController)==null?void 0:_.O$Z(H,X)};
yq.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w;return _.h(function(d){l=_.f(X,sRq);U=(b=l)==null?void 0:b.command;if(!U)return d.return();switch((w=l)==null?void 0:w.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var B="youchat-"+Date.now(),q;var u=String(Math.floor(((q=H.getPlayerCb())==null?void 0:q.getCurrentTime())||0)*1E3);K={inputComposerFormData:{clientMessageId:B,playerOffsetMs:u,pageContext:H.pageContext()}}}if(!K)return d.return();H.JSC$17793_commandHandler.resolveCommand(U,
{form:{formData:K}});_.m5(d)})};
yq[rx]=[_.Vr,_.qU,lPk,_.c$(_.em)];var mbl=new _.gz("SESSION_STORAGE");var Vq=function(X){this.sessionStorage=X("conversations")};
_.S(Vq,kR);Vq.prototype.resolveCommand=function(X){var H=this,l;return _.h(function(b){l=_.f(X,Meq);if(!l)return b.return();l.conversationId?H.sessionStorage.set("conversation_id",l.conversationId):H.sessionStorage.remove("conversation_id");_.m5(b)})};
Vq[rx]=[mbl];var PL=function(X){this.JSC$17805_commandHandler=X};
_.S(PL,kR);
PL.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B,q;return _.h(function(u){if(u.nextAddress==1){l=_.f(X,mUG);if((b=l)==null||!b.text||!navigator.clipboard)return u.return();_.Ew(u,2);return u.yield(navigator.clipboard.writeText(l.text),4)}if(u.nextAddress!=2){if(!l.successActions||l.successActions.length===0)return u.return();U=_.C(l.successActions);for(K=U.next();!K.done;K=U.next())w=K.value,H.JSC$17805_commandHandler.resolveCommand(w);return _.Zt(u,0)}_.Ow(u);if(!l.failureActions||l.failureActions.length===
0)return u.return();d=_.C(l.failureActions);for(B=d.next();!B.done;B=d.next())q=B.value,H.JSC$17805_commandHandler.resolveCommand(q);_.m5(u)})};
PL[rx]=[_.Vr];var fZ=function(X){this.JSC$17809_commandHandler=X};
_.S(fZ,kR);
fZ.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q,u,e,y;return _.h(function(V){switch(V.nextAddress){case 1:b=_.f(X,PfQ);if(!b)return V.return();_.Ew(V,2);if(!b.imageBytes&&!b.imageUrl)throw Error("Di");if(!b.imageUrl){if(b.imageBytes){K=b.imageBytes;w=K.replace(/-/g,"+").replace(/_/g,"/");var p=O1y(w);U=_.I$(p)}V.jumpTo(4);break}return V.yield(fetch(b.imageUrl),5);case 5:return d=V.yieldResult,V.yield(d.blob(),6);case 6:B=V.yieldResult,U=_.I$(B);case 4:e=(q=H)==null?void 0:(u=q.form)==
null?void 0:u.element;y=document.createElement("a");HJ(y,U);e.appendChild(y);y.download="";y.click();e.removeChild(y);URL.revokeObjectURL(_.jA(U));b.successCommand&&l.JSC$17809_commandHandler.resolveCommand(b.successCommand);_.Zt(V,0);break;case 2:_.Ow(V),b.errorCommand&&l.JSC$17809_commandHandler.resolveCommand(b.errorCommand),_.m5(V)}})};
fZ[rx]=[_.Vr];var pZ=function(X){this.store=X};
_.S(pZ,kR);pZ.prototype.resolveCommand=function(X){var H=this,l,b,U;return _.h(function(K){b=(l=_.f(X,_.Mc_))==null?void 0:l.entityBatchUpdate;if(!b)return K.jumpTo(0);U=Object.assign({},b,{mutations:[].concat(_.LJ(b.mutations||[]))});return K.yield(_.Xe(U,H.store),0)})};
pZ[rx]=[jg];var Qol=function(X){this.JSC$17816_commandHandler=X;this.feedbackDialogMap=new Map};
Qol.prototype.openDialog=function(X,H){(X=this.feedbackDialogMap.get(X))&&this.JSC$17816_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:X}},H)};
Qol[rx]=[_.Vr];var TXl=new _.gz("FEEDBACK_CONTROLLER_TOKEN");var Sm=function(X,H,l,b){this.dispatch=X;this.controller=H;this.JSC$17819_commandHandler=l;this.innertubeTransportService=b};
_.S(Sm,kR);
Sm.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J,Y,Uy,Cy,sy,FO;return _.h(function(ub){switch(ub.nextAddress){case 1:b=_.f(X,_.eY);if(K=(U=b)==null?void 0:U.contentId)for(d=_.C(((w=b)==null?void 0:w.actions)||[]),B=d.next();!B.done;B=d.next())q=B.value,NX5(l,q,K);y=(u=H)==null?void 0:(e=u.form)==null?void 0:e.element;return _.P("wug_feedback_endpoint_use_its")?(z=new _.PS,z.endpoint=X,W=_.nl(l.innertubeTransportService,X,(t=H)==null?void 0:t.form),z.ajaxPromise=
W,_.QX(y,"yt-service-request-sent",z),ub.yield(W,5)):ub.yield(_.ci(y,[X,{impression:(p=H)==null?void 0:p.disableClickTracking}]).catch(function(){}),4);
case 4:V=ub.yieldResult;ub.jumpTo(3);break;case 5:V=ub.yieldResult,_.QX(y,"yt-service-request-completed",{data:V});case 3:v=((G=V)==null?void 0:(r=G.data)==null?void 0:r.feedbackResponses)||((Q=V)==null?void 0:Q.feedbackResponses);if((J=v)==null?0:J.length)(Uy=(Y=v[0])==null?void 0:Y.followUpDialog)&&K&&(Cy=l.controller)!=null&&Cy.feedbackDialogMap.set(K,Uy),(FO=(sy=v[0])==null?void 0:sy.isThumbnailReporting)&&l.JSC$17819_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.m5(ub)}})};
var NX5=function(X,H,l){var b=_.f(H,_.J$);if(b){b=_.C(b.commands||[]);for(var U=b.next();!U.done;U=b.next())NX5(X,U.value,l)}_.f(H,_.XC)&&X.dispatch(_.Us("commandEntity",e5k(l),{key:l,command:H}));_.f(H,lKt)&&X.dispatch(_.Us("commandEntity",e5k(l),{key:l,command:H}))};
Sm[rx]=[v6D,TXl,_.Vr,_.b$];var z6=function(X){this.controller=X};
_.S(z6,kR);z6.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w;return _.h(function(d){b=_.f(X,_.gU);K=(U=b)==null?void 0:U.targetId;if(((w=b)==null?void 0:w.signal)!=="TELL_US_WHY"||!K)return d.return();l.controller.openDialog(K,H);_.m5(d)})};
z6[rx]=[TXl];var nZ=new _.gz("APP_STORE_TOKEN");var k6=function(X){this.store=X};
_.S(k6,kR);k6.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q;return _.h(function(u){b=_.f(X,mMy);K=(U=b)==null?void 0:U.contentId;B=(w=H)==null?void 0:(d=w.form)==null?void 0:d.element;q=_.ci(B,[X]);K&&l.undo(K);return u.yield(q,0)})};
k6.prototype.undo=function(X){this.store.dispatch(_.Us("commandEntity",e5k(X),{key:X,command:void 0}))};
k6[rx]=[nZ];var x6=function(X){this.JSC$17831_commandHandler=X};
_.S(x6,kR);x6.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B,q;return _.h(function(u){l=_.f(X,aDq);b=l.flowStateKey;U=l.validationFailureCommand;K=l.submitValidFormCommand;w=Nqk(_.iD,[b||""]);d=_.f(w,vs9);((B=d)==null?0:B.isValid)&&K&&H.JSC$17831_commandHandler.resolveCommand(K);((q=d)==null?0:q.isValid)||!U||H.JSC$17831_commandHandler.resolveCommand(U);_.m5(u)})};
x6[rx]=[_.Vr];var Dh=function(X){this.innertubeTransportService=X};
_.S(Dh,kR);Dh.prototype.resolveCommand=function(X,H){var l=this,b;return _.h(function(U){return U.yield(_.nl(l.innertubeTransportService,X,(b=H)==null?void 0:b.form).then(function(K){var w,d;H==null||(w=H.commandController)==null||(d=w.onSuccess)==null||d.call(w,X,K)},function(K){var w,d;
H==null||(w=H.commandController)==null||(d=w.onServerError)==null||d.call(w,X,K)}),0)})};
Dh[rx]=[_.b$];var tZ=function(){};
_.S(tZ,kR);tZ.prototype.resolveCommand=function(X){var H,l,b,U;return _.h(function(K){if(H=_.f(X,_.gXq)){if(l=H.gtmId)b=_.gx("GL",""),_.UK(l,b);(U=H.gtmData)&&_.$v(U)}_.m5(K)})};var WL=function(X,H,l){this.innertubeTransportService=X;this.JSC$17842_actionRouter=H;this.JSC$17842_screenManager=l};
_.S(WL,kR);WL.prototype.resolveCommand=function(X){var H=this,l,b;return _.h(function(U){l=_.f(X,xDz);if(!l)return U.return();b=l.command;if(!b)return U.return();H.JSC$17842_actionRouter.triggerAction("yt-insert-rich-section-action",l);return U.yield(_.nl(H.innertubeTransportService,b,{disableCache:!0}).then(function(K){X.clickTrackingParams&&(K==null?0:K.trackingParams)&&H.JSC$17842_screenManager.graftServerVe(K.trackingParams,_.$l(X.clickTrackingParams))}),0)})};
WL[rx]=[_.b$,GI,_.UR];QNk.bind(null,xR);var cnU=QNk.bind(null,ZM9);cML.bind(null,xR);var joN=cML.bind(null,ZM9);rML.bind(null,xR);var rna=rML.bind(null,ZM9);var Eo=function(){};
_.S(Eo,kR);
Eo.prototype.resolveCommand=function(X){var H,l,b,U,K,w,d,B,q,u;return _.h(function(e){H=_.f(X,q8_);if(!H)return e.return();b=((l=H.operations)==null?void 0:l.operations)||[];U=_.C(b);for(K=U.next();!K.done;K=U.next())if(w=K.value,w.insertItemSectionContent){var y=w.insertItemSectionContent,V=y.contents||[];y.insertByPositionInSection?cnU(y.insertByPositionInSection.sectionTargetId,V,y.insertByPositionInSection.position):y.insertByRelativePositionInSection&&y.insertByRelativePositionInSection.sectionTargetId&&y.insertByRelativePositionInSection.itemTargetId&&
joN(y.insertByRelativePositionInSection.sectionTargetId,y.insertByRelativePositionInSection.itemTargetId,V,y.insertByRelativePositionInSection.relativePosition)}else w.replaceSection?(y=w.replaceSection,V={},y.replaceByTargetId?V=y.replaceByTargetId:y.replaceByGroupId&&(V={targetId:y.replaceByGroupId.groupId,newContent:y.replaceByGroupId.newContent,undoKey:""}),V.newContent&&OM9(V.targetId,{continuationItems:[V.newContent]})):w.removeItem?(y=w.removeItem,y.removeByTargetId&&y.sectionTargetId&&rna(y.sectionTargetId,
y.removeByTargetId.targetIds||[])):w.removeSection&&(w.removeSection.removeByTargetId?(d=void 0,Jn$(((d=w.removeSection)==null?void 0:d.removeByTargetId.targetIds)||[])):w.removeSection.removeByGroupId&&(B=void 0,Jn$(((B=w.removeSection)==null?void 0:B.removeByGroupId.groupIds)||[])));u=((q=H.operations)==null?void 0:q.scrollConfig)||{};L4p(u);_.m5(e)})};
var Jn$=function(X){X=_.C(X);for(var H=X.next();!H.done;H=X.next())OM9(H.value,{continuationItems:[]})},L4p=function(X){if(X.scrollToItem){var H=X.scrollToItem.item||{},l=H.itemTargetId;
H=H.sectionTargetId;if(l&&H){var b=document.querySelector("[data-target-id="+H+"]"),U=b==null?void 0:b.querySelector("[data-target-id="+l+"]");b&&U&&setTimeout(function(){var K=U.offsetTop-b.offsetTop,w;if(((w=X.scrollToItem)==null?void 0:w.scrollPosition)==="SCROLL_POSITION_CENTER")K-=b.offsetHeight/2,K+=U.offsetHeight/2;else{var d;((d=X.scrollToItem)==null?void 0:d.scrollPosition)==="SCROLL_POSITION_END"&&(K-=b.offsetHeight,K+=U.offsetHeight)}var B;b.scroll({top:K,behavior:(X==null?void 0:(B=X.animationConfig)==
null?void 0:B.enableAnimation)===!1?"instant":"smooth"})},100)}}};var g5=new _.gz("CLIENT_NAME_TOKEN");var YHZ=new _.gz("DEFAULT_STORE_EXPIRATION_TOKEN");var LmC=new _.gz("CLIENT_LOCATION_SERVICE_TOKEN");var G6=function(X,H,l){this.clientName=X||_.gx("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=H||_.S4.getInstance();this.JSC$17871_commandHandler=l||_.JF.instance};
_.S(G6,kR);G6.prototype.resolveCommand=function(X){var H=this,l,b;return _.h(function(U){b=(l=_.f(X,IzY))==null?void 0:l.onComplete;H.clientLocationService.clearLocationPlayabilityToken(H.clientName);b&&H.JSC$17871_commandHandler.resolveCommand(b);_.m5(U)})};
G6[rx]=[g5,LmC,_.Vr];var aj=function(X){this.innertubeTransportService=X};
_.S(aj,kR);aj.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w;return _.h(function(d){K=(b=H)==null?void 0:(U=b.form)==null?void 0:U.element;return d.yield(_.nl(l.innertubeTransportService,X,(w=H)==null?void 0:w.form).then(function(B){vCm(K,new CustomEvent("yt-service-request-completed"),{data:B},_.gx("openPopupConfig"))}),0)})};
aj[rx]=[_.b$];var Zh=function(){};
_.S(Zh,kR);Zh.prototype.resolveCommand=function(X){var H,l;return _.h(function(b){H=_.f(X,TM_);l=document.querySelector("mini-app-container-view-model");if(!H||!l)return b.return();H.isPlaying?l.dispatchEvent(new Event("play")):l.dispatchEvent(new Event("pause"));_.m5(b)})};var i6=function(){};
_.S(i6,kR);i6.prototype.resolveCommand=function(X){var H,l,b,U,K,w,d;return _.h(function(B){H=_.f(X,k4Q);if((l=H)==null||!l.paramKeys)return B.return();b=H.paramKeys;U=_.iI(window.location.href);K=_.C(b);for(w=K.next();!w.done;w=K.next())d=w.value,U.JSC$10342_queryData_.remove(d);window.history.replaceState(window.history.state,document.title,U.toString());_.m5(B)})};var IYN=function(){this.dropdownMap=new Map};_.Ane=new _.gz("DROPDOWN_CONTROLLER_TOKEN");var vL=function(X){this.controller=X};
_.S(vL,kR);vL.prototype.resolveCommand=function(X){var H=this,l,b,U,K;return _.h(function(w){l=_.f(X,bVv);if(!l)return w.return();b=l;U=b.dropdownId;K=b.selectedOptionIndex;if(U===void 0||K===void 0)return w.return();var d=H.controller.dropdownMap.get(U);d&&d(K);_.m5(w)})};
vL[rx]=[_.Ane];var Oo=function(X){this.controller=X};
_.S(Oo,kR);Oo.prototype.resolveCommand=function(X){var H=this,l;return _.h(function(b){return(l=_.f(X,hd6))?b.yield(H.controller.closeDialog(),0):b.return()})};
Oo[rx]=[_.Fr];var mg=function(X){this.controller=X};
_.S(mg,kR);mg.prototype.resolveCommand=function(X){var H=this,l,b;return _.h(function(U){l=_.f(X,JOG);if(!l)return U.return();var K,w=l.panelIdentifier||((K=l.identifier)==null?void 0:K.tag);if(!w)throw Error("Ei");return(b=w)?U.yield(H.controller.hidePanel({identifier:b}),0):U.jumpTo(0)})};
mg[rx]=[_.d3];var Qq=function(X){this.controller=X};
_.S(Qq,kR);Qq.prototype.resolveCommand=function(X){var H=this,l;return _.h(function(b){return(l=_.f(X,a$v))?b.yield(H.controller.closeSheet(),0):b.return()})};
Qq[rx]=[_.hT];var T6=function(X,H){this.innertubeTransportService=X;this.controller=H};
_.S(T6,kR);T6.prototype.resolveCommand=function(X){var H=this,l,b,U,K;return _.h(function(w){if(w.nextAddress==1)return l=_.f(X,LWQ),(b=l)!=null&&b.panelId?w.yield(H.controller.getReloadContinuation(l.panelId),2):w.return();if(w.nextAddress!=3)return(U=w.yieldResult)?w.yield(_.nl(H.innertubeTransportService,X,{continuation:U}),3):w.return();K=w.yieldResult;return w.yield(H.controller.updatePanel({identifier:l.panelId,panelContents:K.content,shouldFocus:!1}),0)})};
T6[rx]=[_.b$,_.d3];var Ne=function(X,H,l){this.innertubeTransportService=X;this.JSC$17912_screenManager=H;this.JSC$17912_commandHandler=l};
_.S(Ne,kR);
Ne.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d;return _.h(function(B){if(B.nextAddress==1){l=_.f(X,_.Nh6);if(!l)return B.return();if(l.commands)for(b=_.C(l.commands),U=b.next();!U.done;U=b.next())K=U.value,H.JSC$17912_commandHandler.resolveCommand(K,{disableClickTracking:!0});w=_.$l(X.clickTrackingParams);_.jR(H.JSC$17912_screenManager,21760,w,{layer:7,parentLayer:0});return B.yield(_.nl(H.innertubeTransportService,X),2)}d=B.yieldResult;if(!d)return B.return();H.JSC$17912_screenManager.graftServerVe(d.trackingParams,w,
7);_.m5(B)})};
Ne[rx]=[_.b$,_.UR,_.Vr];var cL=new _.gz("PANEL_LOADING_STRATEGY_TOKEN");var jm=function(X,H){this.controller=X;this.panelLoadingStrategy=H};
_.S(jm,kR);
jm.prototype.resolveCommand=function(X,H){var l=this,b,U,K;return _.h(function(w){b=_.f(X,i0Y);if((U=b)==null||!U.panelLoadingStrategy)return w.return();K=function(d){var B,q,u,e,y,V,p,z,t,W;return _.h(function(G){q=_.f((B=d.dialogViewModel)==null?void 0:B.header,UPz);u={viewModel:d.dialogViewModel};e={};if(p=_.P("web_enable_dialog_header_label")?(y=q)==null?void 0:(V=y.headline)==null?void 0:V.content:void 0)e.ariaLabel=p;b.dismissOnBackgroundTap===!1&&(e.isModal=!0);return d.dialogViewModel?G.yield(l.controller.openDialog(u,
(W=(z=H)==null?void 0:(t=z.form)==null?void 0:t.element)!=null?W:document.body,e),0):G.return()})};
return w.yield(l.panelLoadingStrategy.execute({command:X,data:b.panelLoadingStrategy,renderFn:K,createScreenConfig:{layer:4}}),0)})};
jm[rx]=[_.Fr,cL];var r5=function(X,H,l){this.innertubeTransportService=X;this.controller=H;this.JSC$17932_screenManager=l};
_.S(r5,kR);
r5.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W;return _.h(function(G){switch(G.nextAddress){case 1:b=_.f(X,_.up);if(!b)return G.return();var r,Q=b.panelIdentifier||((r=b.identifier)==null?void 0:r.tag);if(!Q)throw Error("Ei");U=Q;return G.yield(l.controller.isVisible(U,!0),2);case 2:if((K=G.yieldResult)&&b.blockIfPanelOpen)return G.return();B=(d=(w=l.controller).getPanelContent)==null?void 0:d.call(w,U);if(!(r=B))if(b){var v;r=((v=b.globalConfiguration)==null?void 0:
v.initialState)||b.engagementPanel;if(v=!r)v=!!(b==null?0:(Q=b.engagementPanelPresentationConfigs)==null?0:Q.engagementPanelPopupPresentationConfig);v&&(r=_.JMN(b.panelIdentifier,b.identifier))}else r=void 0;q=r;u=b.engagementPanelPresentationConfigs;e=b.engagementPanelExtras;return G.yield(l.controller.showPanel({identifier:U,panelContents:q,config:u,extras:e,target:(y=H)==null?void 0:(V=y.form)==null?void 0:V.element}),3);case 3:if(!b.globalConfiguration){G.jumpTo(0);break}if(b.globalConfiguration.reuseModelAndState&&
_.P("enable_ai_companion")&&(t=(z=(p=l.controller).getPanelContent)==null?void 0:z.call(p,U)))return G.return();_.jR(l.JSC$17932_screenManager,32633);return G.yield(_.nl(l.innertubeTransportService,X),5);case 5:return W=G.yieldResult,l.JSC$17932_screenManager.graftServerVe(W.trackingParams),G.yield(l.controller.updatePanel({identifier:U,panelContents:W.content,shouldFocus:!0,extras:e,updatePanelContinuationData:W.updatePanelContinuationData}),0)}})};
r5[rx]=[_.b$,_.d3,_.UR];var JZ=function(X,H){this.controller=X;this.panelLoadingStrategy=H};
_.S(JZ,kR);
JZ.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q,u,e,y,V,p;return _.h(function(z){b=_.f(X,_.$$);if((U=b)==null||!U.panelLoadingStrategy)return z.return();d=Xb5(l.controller,(K=H)==null?void 0:(w=K.form)==null?void 0:w.element);q=(B=b.contextualSheetPresentationConfig)==null?void 0:B.position;e=(u=b.contextualSheetPresentationConfig)==null?void 0:u.hoverConfig;V=(y=b.contextualSheetPresentationConfig)==null?void 0:y.expandToFullWidth;p=function(t){var W,G;return _.h(function(r){if(!t.sheetViewModel)return r.return();if(e){var Q=
l.controller;Q.shouldPreventClosingWhileHovered=!!e.preventCloseWhileHovered;var v;Q.hideDelayMs=(v=e.hideDelayMs)!=null?v:0}return r.yield(l.controller.openSheet({viewModel:t.sheetViewModel,sheetPosition:q,expandToFullWidth:V},d,(W=H)==null?void 0:(G=W.form)==null?void 0:G.element),0)})};
return z.yield(l.panelLoadingStrategy.execute({command:X,data:b.panelLoadingStrategy,renderFn:p,createScreenConfig:{layer:0}}),0)})};
JZ[rx]=[_.hT,cL];var LZ=function(X,H){this.controller=X;this.JSC$17943_commandHandler=H};
_.S(LZ,kR);LZ.prototype.resolveCommand=function(X,H){var l=this,b,U,K;return _.h(function(w){if(w.nextAddress==1){b=_.f(X,Xr_);var d=_.f(b.showCommand,_.up),B,q,u=(q=d==null?void 0:d.panelIdentifier)!=null?q:d==null?void 0:(B=d.identifier)==null?void 0:B.tag;if(!u)throw Error("Fi");U=u;return w.yield(l.controller.isVisible(U),2)}return(K=w.yieldResult)?w.yield(l.controller.hidePanel({identifier:U}),0):w.yield(l.JSC$17943_commandHandler.resolveCommand(b.showCommand,H),0)})};
LZ[rx]=[_.d3,_.Vr];var Y6=function(X,H,l){this.innertubeTransportService=X;this.controller=H;this.JSC$17946_screenManager=l};
_.S(Y6,kR);
Y6.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J,Y;return _.h(function(Uy){switch(Uy.nextAddress){case 1:return b=l=_.f(X,$yD),U=b.targetPanelIdentifier,K=b.contentSourcePanelIdentifier,w=b.globalConfiguration,((d=U)==null?0:d.tag)&&((B=K)==null?0:B.tag)?w?Uy.yield(H.controller.showPanel({identifier:U.tag,panelContents:_.JMN(U.tag,U)}),5):Uy.yield((y=(e=H.controller).getPanel)==null?void 0:y.call(e,K.tag),4):Uy.return();case 4:V=Uy.yieldResult;q=(p=V)==
null?void 0:(t=(z=p).getPanelContent)==null?void 0:t.call(z);Uy.jumpTo(3);break;case 5:return Uy.yield(_.nl(H.innertubeTransportService,X),6);case 6:W=Uy.yieldResult,((G=W)==null?0:G.trackingParams)&&H.JSC$17946_screenManager.graftServerVe(W.trackingParams),q=(r=W)==null?void 0:r.content,u=(Q=W)==null?void 0:Q.updatePanelContinuationData;case 3:if(J=(v=q)==null?void 0:v.engagementPanelSectionListRenderer)return Uy.yield(H.controller.showPanel({identifier:U.tag,panelUpdatableFields:{content:J.content,
secondaryHeaderContent:(Y=J.header)!=null?Y:{},targetId:J.targetId,loggingDirectives:J.loggingDirectives},updatePanelContinuationData:u}),0);Uy.jumpTo(0)}})};
Y6[rx]=[_.b$,_.d3,_.UR];var Ij=function(){};
_.S(Ij,kR);Ij.prototype.resolveCommand=function(X){var H,l,b;return _.h(function(U){if(U.nextAddress==1)return(H=_.f(X,RdY))?U.yield(_.j2(),2):U.return();l=U.yieldResult;if(!l)return U.return();var K=l,w=(b=H)==null?void 0:b.languageCode,d;(K==null?0:(d=K.isReady)==null?0:d.call(K))&&(w=L8N(K,w))&&K.setAudioTrack(w);_.m5(U)})};var AZ=function(){};
_.S(AZ,uU);_.R=AZ.prototype;_.R.getApiPaths=function(){return l_z};
_.R.getExtension=function(X){return _.f(X,_.ku)};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$14495_getStoreKey=function(X){if((X=this.getExtension(X))&&X.videoId){var H={videoId:X.videoId};X.playlistId&&(H.playlistId=X.playlistId);X.index&&(H.index=X.index);X.params&&(H.params=X.params);return _.nN("next",H)}};
_.R.JSC$14488_getClientScreen=function(X){var H;return((H=X.contentPlaybackContext)==null?void 0:H.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.R.JSC$14488_buildRequest=function(X,H,l){H.videoId&&(X.videoId=H.videoId);H.playlistId&&(X.playlistId=H.playlistId);H.params&&(X.params=H.params);H.index!==void 0&&(X.playlistIndex=H.index);X.racyCheckOk=!(!l.racyCheckOk&&!H.racyCheckOk);X.contentCheckOk=!!H.contentCheckOk;l.contentPlaybackContext&&(X.autonavState=l.contentPlaybackContext.autonavState,X.playbackContext={vis:l.contentPlaybackContext.vis,lactMilliseconds:l.contentPlaybackContext.lactMilliseconds});l.prefetchPlaybackContext&&(X.context.request||
(X.context.request={}),X.context.request.isPrefetch=!0);_.P("captions_hats_killswitch")||(H=_.oO().getFlag(65),H=H!=null?!H:!1,l=!!_.Ce("yt-player-sticky-caption"),X.captionsRequested=H&&l)};
_.R.getRequestConfig=function(X){X=this.JSC$14495_getStoreKey(X);var H;X&&(H={storeStrategy:{storeKey:X}});_.P("web_log_player_watch_next_ticks")&&(H=H||{},H.requestTick="wn_s",H.responseTick="wn_r");return H};
var XZ=function(){};
_.S(XZ,uU);XZ.prototype.getApiPaths=function(){return l_z};
XZ.prototype.getExtension=function(X){return _.f(X,_.uE)};
XZ.prototype.JSC$14488_buildRequest=function(X,H){H.token&&(X.continuation=H.token)};var HI=function(){this.innerTubeTransport=_.jJ().resolve(_.b$);this.miniplayerService=_.jJ().resolve(_.f9)};
_.S(HI,kR);var HYx=function(X){var H;return _.h(function(l){H=_.gx("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;X.JSC$17971_mainAppPlayer=new xW(H);document.addEventListener("yt-navigate-start",X.JSC$17971_pauseOnNavigation.bind(X));_.m5(l)})},le$=function(X,H){var l,b,U,K;
return _.h(function(w){if(w.nextAddress==1){l=new AZ;b=l.JSC$14488_getRequest(H);if(!b)return w.return(void 0);U=b.innerTubeRequest;return w.yield(_.pg(X.innerTubeTransport,U,"/youtubei/v1/next"),2)}K=w.yieldResult;var d;var B,q,u=(d=K.contents)==null?void 0:(B=d.twoColumnWatchNextResults)==null?void 0:(q=B.playlist)==null?void 0:q.playlist,e;d=(u==null?0:(e=u.contents)==null?0:e.length)?u:void 0;return w.return(d)})},oOx=function(X,H){var l,b,U,K,w;
return _.h(function(d){if(d.nextAddress==1)return l=X.JSC$17971_mainAppPlayer,d.yield(l.api,2);if(d.nextAddress!=3)return b=d.yieldResult,H.watchCommand?d.yield(le$(X,H.watchCommand),3):d.return();U=d.yieldResult;if((K=U)==null||!K.contents)return d.return();w=U.contents.map(function(B){var q;return(q=B.playlistPanelVideoRenderer)==null?void 0:q.videoId}).filter(function(B){return!!B}).map(function(B){return{encrypted_id:B}});
b.updatePlaylist({video:w});_.m5(d)})},bYY=function(X,H){var l,b,U;
return _.h(function(K){return K.nextAddress==1?(l=X.JSC$17971_mainAppPlayer,U=(b=H.playerParams)!=null?b:"",H.externalVideoId?K.yield(l.loadVideoWithPlayerVars({videoId:H.externalVideoId,audio_only:"1",player_params:U}),2):K.jumpTo(2)):H.watchCommand?K.yield(oOx(X,H),0):K.jumpTo(0)})};
HI.prototype.JSC$17971_pauseOnNavigation=function(){var X=this,H,l;return _.h(function(b){if(b.nextAddress==1)return H=X.JSC$17971_mainAppPlayer,b.yield(H.api,2);l=b.yieldResult;l.pauseVideo();_.m5(b)})};
HI.prototype.pauseVideo=function(){var X=this,H,l;return _.h(function(b){if(b.nextAddress==1)return H=X.JSC$17971_mainAppPlayer,b.yield(H.api,2);l=b.yieldResult;l.pauseVideo();_.m5(b)})};
HI.prototype.playVideo=function(){var X=this,H,l;return _.h(function(b){if(b.nextAddress==1)return H=X.JSC$17971_mainAppPlayer,b.yield(H.api,2);l=b.yieldResult;l.playVideo();_.m5(b)})};
var Uzx=function(X){var H,l;return _.h(function(b){if(b.nextAddress==1)return H=X.JSC$17971_mainAppPlayer,b.yield(H.api,2);l=b.yieldResult;l.mute();_.m5(b)})},$zU=function(X){var H,l;
return _.h(function(b){if(b.nextAddress==1)return H=X.JSC$17971_mainAppPlayer,b.yield(H.api,2);l=b.yieldResult;l.unMute();_.m5(b)})};
HI.prototype.stopVideo=function(){var X=this,H,l;return _.h(function(b){if(b.nextAddress==1)return H=X.JSC$17971_mainAppPlayer,b.yield(H.api,2);l=b.yieldResult;l.stopVideo();_.m5(b)})};
var KZa=function(X,H){return _.h(function(l){switch(l.nextAddress){case 1:switch(H){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return l.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return l.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return l.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return l.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return l.jumpTo(6)}l.jumpTo(0);break;case 2:return l.yield(X.playVideo(),8);case 8:l.jumpTo(0);break;case 3:return l.yield(X.pauseVideo(),
9);case 9:l.jumpTo(0);break;case 4:return l.yield(X.stopVideo(),10);case 10:l.jumpTo(0);break;case 5:return l.yield(Uzx(X),11);case 11:l.jumpTo(0);break;case 6:return l.yield($zU(X),12);case 12:l.jumpTo(0)}})};
HI.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d;return _.h(function(B){return B.nextAddress==1?(l=_.f(X,gwq),((b=l)==null?0:b.newPlaybackParams)||((U=l)==null?0:U.controlAction)?H.JSC$17971_mainAppPlayer?B.jumpTo(2):B.yield(HYx(H),2):B.return()):((K=l)==null?0:K.newPlaybackParams)?(H.miniplayerService.isMiniplayerActive()&&((w=H.miniplayerService.getPlayerElement())==null||w.pause()),d=l.newPlaybackParams,d.externalVideoId||d.externalPlaylistId?B.yield(bYY(H,d),0):B.return()):B.yield(KZa(H,
l.controlAction),0)})};var lY=function(X){this.JSC$17977_commandHandler=X};
_.S(lY,kR);
lY.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d;return _.h(function(B){if(B.nextAddress==1)return(l=_.f(X,CCC))?B.yield(_.j2(),2):B.return();b=B.yieldResult;if(!b)return B.return();var q=b,u=(U=l)==null?void 0:U.languageCode,e=(K=l)==null?void 0:K.isAutoTranslated;q.getVideoData&&_.I4m(q).length&&((u=XYO(q,u,e))?q.setOption("captions","track",u):(q.setOption("captions","stickyLoading",{}),q.setOption("captions","track",{})));w=b.isSubtitlesOn()?_.XS("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.XS("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");d=_.Gc(w,5E3);H.JSC$17977_commandHandler.resolveCommand(d);_.m5(B)})};
lY[rx]=[_.Vr];var of=function(X,H){this.shortsPlayerPromise=X;this.JSC$17981_commandHandler=H};
_.S(of,kR);
of.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B,q;return _.h(function(u){if(u.nextAddress==1)return(l=_.f(X,WsD))?u.yield(H.shortsPlayerPromise,2):u.return();b=u.yieldResult;var e=Hom(b);e!=null&&e.length||(b.loadModule("captions"),e=Hom(b));U=e;if((K=U)==null||!K.length)return w=_.XS("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),d=_.Gc(w),H.JSC$17981_commandHandler.resolveCommand(d),u.return();b.toggleSubtitles();B=b.isSubtitlesOn()?_.XS("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.XS("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");q=_.Gc(B);H.JSC$17981_commandHandler.resolveCommand(q);_.m5(u)})};
of[rx]=[_.D$t,_.Vr];var bY=function(X){this.JSC$17984_actionRouter=X;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(H,l){H.triggerAction("yt-dismiss-shopping-timely-shelf-action",l);(H=_.jJ().resolve(_.c$(_.Q7Q)))&&H.dismissFeaturedProductOverlay()}]])};
_.S(bY,kR);bY.prototype.resolveCommand=function(X){var H=this,l,b,U;return _.h(function(K){l=_.f(X,FWz);if((b=l)==null||!b.overlayId)return K.return();U=H.dismissPlayerOverlayActions.get(l.overlayId);if(!U)throw Error("Gi`"+l.overlayId);U(H.JSC$17984_actionRouter,l);_.m5(K)})};
bY[rx]=[GI];var Un=function(X){this.JSC$17988_playerPromise=X};
_.S(Un,kR);Un.prototype.resolveCommand=function(X){var H=this,l,b,U,K;return _.h(function(w){if(w.nextAddress==1)return(l=_.f(X,I7Q))?w.yield(H.JSC$17988_playerPromise,2):w.return();b=w.yieldResult;U=b.getVideoData().video_id;l.videoId===U&&(K=Number(l.offsetFromVideoStartMilliseconds),K>=0&&b.seekTo(K/1E3));_.m5(w)})};
Un[rx]=[_.my];var Rme=_.rc("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),$4=function(X){this.store=X};
_.S($4,kR);
var CB$=function(X){var H,l,b,U;return _.h(function(K){if(K.nextAddress==1)return H=_.gx("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,l=_.gx("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,b=H||l,X.JSC$17992_mainAppPlayer=new xW(b),K.yield(X.JSC$17992_mainAppPlayer.api,2);U=K.yieldResult;U.addEventListener("onStateChange",X.JSC$17992_playerStateChangeListener.bind(X));document.addEventListener("yt-page-data-updated",X.JSC$17992_pauseOnNavigation.bind(X));window.addEventListener("state-navigatestart",
X.JSC$17992_pauseOnNavigation.bind(X));_.m5(K)})};
$4.prototype.JSC$17992_playerStateChangeListener=function(X){switch(X){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"}wb$(this)};
var wb$=function(X){X.store.dispatch(_.Us("sfvAudioItemCurrentlyPlayingEntity",Rme,{key:Rme,externalVideoId:X.externalVideoId,sfvAudioItemPlaybackState:X.playbackState,nowPlayingEntityValue:X.nowPlayingEntityValue}))};
$4.prototype.JSC$17992_pauseOnNavigation=function(){var X=this,H,l,b,U;return _.h(function(K){if(K.nextAddress==1){if(!X.JSC$17992_mainAppPlayer){var w=new _.qd("Error: mainAppPlayer is unavailable",X.JSC$17992_mainAppPlayer);_.n2(w);return K.return()}return K.yield(X.JSC$17992_mainAppPlayer.api,2)}H=K.yieldResult;b=(l=H)==null?void 0:l.getPlayerState();b!==1||(U=H)!=null&&U.pauseVideo();_.m5(K)})};
$4.prototype.playVideo=function(X,H,l){var b=this,U,K;return _.h(function(w){if(w.nextAddress==1)return w.yield((U=b.JSC$17992_mainAppPlayer)==null?void 0:U.api,2);K=w.yieldResult;if(!b.JSC$17992_mainAppPlayer||!K){var d=new _.qd("Error: mainAppPlayer is unavailable",b.JSC$17992_mainAppPlayer);_.n2(d);return w.return()}return w.yield(b.JSC$17992_mainAppPlayer.loadVideoWithPlayerVars({videoId:b.externalVideoId,audio_only:"1",start:X/1E3,end:X/1E3+H,player_params:l}),0)})};
$4.prototype.pauseVideo=function(){var X=this,H,l;return _.h(function(b){if(b.nextAddress==1){if(!X.JSC$17992_mainAppPlayer){var U=new _.qd("Error: mainAppPlayer is unavailable",X.JSC$17992_mainAppPlayer);_.n2(U);return b.return()}return b.yield(X.JSC$17992_mainAppPlayer.api,2)}H=b.yieldResult;(l=H)==null||l.pauseVideo();_.m5(b)})};
$4.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q;return _.h(function(v){if(v.nextAddress==1)return l=_.f(X,xy_),U=(b=l)==null?void 0:b.nowPlayingEntityValue,w=(K=l)==null?void 0:K.externalVideoId,e=Number((u=(d=l)==null?void 0:(B=d.defaultStartPoints)==null?void 0:(q=B[0])==null?void 0:q.offsetMs)!=null?u:"0"),W=Number((t=(y=l)==null?void 0:(V=y.defaultStartPoints)==null?void 0:(p=V[0])==null?void 0:(z=p.duration)==null?void 0:z.seconds)!=null?t:"15"),Q=(r=
(G=l)==null?void 0:G.playerParams)!=null?r:"",U&&w?H.JSC$17992_mainAppPlayer?v.jumpTo(2):v.yield(CB$(H),2):v.return();if(v.nextAddress!=6){if(H.nowPlayingEntityValue&&U===H.nowPlayingEntityValue)return H.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?v.yield(H.pauseVideo(),0):v.yield(H.playVideo(e,W,Q),0);H.externalVideoId=w;H.nowPlayingEntityValue=U;H.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return v.yield(H.playVideo(e,W,Q),6)}wb$(H);return v.jumpTo(0)})};
$4[rx]=[jg];var K6=function(X){this.JSC$18010_commandHandler=X};
_.S(K6,kR);K6.prototype.resolveCommand=function(X,H){var l=this,b,U,K;return _.h(function(w){if(w.nextAddress==1)return(b=_.f(X,wW9))?w.yield(_.j2(),2):w.return();U=w.yieldResult;if(!U)return w.return();(K=ljO(U))&&l.JSC$18010_commandHandler.resolveCommand(K,H);_.m5(w)})};
K6[rx]=[_.Vr];var Rf=function(X){this.JSC$18016_commandHandler=X};
_.S(Rf,kR);Rf.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d;return _.h(function(B){if(B.nextAddress==1)return(b=_.f(X,dgG))?B.yield(_.j2(),2):B.return();U=B.yieldResult;if(!U)return B.return();(K=KHm(U))?l.JSC$18016_commandHandler.resolveCommand(K,H):(w=_.XS("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),d=_.Gc(w),l.JSC$18016_commandHandler.resolveCommand(d));_.m5(B)})};
Rf[rx]=[_.Vr];var C6=function(X){this.JSC$18019_playerPromise=X};
_.S(C6,kR);C6.prototype.resolveCommand=function(X){var H=this,l,b;return _.h(function(U){if(U.nextAddress==1)return(l=_.f(X,ur9))?U.yield(H.JSC$18019_playerPromise,2):U.return();b=U.yieldResult;b.isFullscreen()&&b.wakeUpControls();_.m5(U)})};
C6[rx]=[_.my];var w6=function(X){this.JSC$18022_playerPromise=X};
_.S(w6,kR);w6.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w;return _.h(function(d){if(d.nextAddress==1){l=_.f(X,AOC);if(!l)return d.return();b=l.overlayRenderer;return b?(U=_.f(b,fmF))?d.yield(H.JSC$18022_playerPromise,3):d.jumpTo(0):d.return()}K=d.yieldResult;K.renderChapterSeekingAnimation(1,_.D8(U.text),(w=U.icon)==null?void 0:w.iconType);_.m5(d)})};
w6[rx]=[_.my];var d6=function(X){this.store=X};
_.S(d6,kR);
d6.prototype.resolveCommand=function(X){var H=this,l,b,U;return _.h(function(K){if(K.nextAddress==1){l=_.f(X,GVv);if(!l)return K.return();b="";(U=H.store.getState().collabInviteLink)&&l.id===U.playlistId?b=U.inviteLinkURL:l.shortUrl&&(b=l.shortUrl);return b?K.yield(navigator.clipboard.writeText(b),3):K.jumpTo(0)}var w={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.XS("COPY_LINK_SUCCESS_TOAST")}}}}};_.jJ().resolve(_.Vr).resolveCommand(w);_.m5(K)})};
d6[rx]=[nZ];var h9=function(X,H){this.innertubeTransportService=X;this.JSC$18032_commandHandler=H};
_.S(h9,kR);h9.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q,u,e,y;return _.h(function(V){if(V.nextAddress==1)return(b=_.f(X,_.PX))?V.yield(_.nl(l.innertubeTransportService,X,(U=H)==null?void 0:U.form),2):V.return();(K=V.yieldResult)&&K.errorMetadata&&(w=K,d=_.Gc(w.error.message),l.JSC$18032_commandHandler.resolveCommand(d));B=K;if((q=B)==null?0:q.actions)for(u=_.C(B.actions),e=u.next();!e.done;e=u.next())y=e.value,l.JSC$18032_commandHandler.resolveCommand(y);_.m5(V)})};
h9[rx]=[_.b$,_.Vr];var FZ=function(){};
_.S(FZ,kR);FZ.prototype.resolveCommand=function(X){var H;return _.h(function(l){H=_.f(X,pA_);if(!H)return l.return();(new lBt(H)).show();_.m5(l)})};_.BI=new _.gz("PLAYLIST_EDIT_CONTROLLER_TOKEN");var qi=function(X,H,l,b){this.store=X;this.innertubeTransportService=H;this.controller=l;this.JSC$18040_commandHandler=b};
_.S(qi,kR);
qi.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J,Y,Uy,Cy,sy,FO,ub;return _.h(function(g8){if(g8.nextAddress==1){b=_.f(X,_.MI);if(!b)return g8.return();if(b.clientActions){U=_.C(b.clientActions);for(K=U.next();!K.done;K=U.next())w=K.value,l.JSC$18040_commandHandler.resolveCommand(w,H);var mm,QZ=H==null?void 0:(mm=H.form)==null?void 0:mm.element;QZ&&_.QX(QZ,"yt-dismissible-item-action",b.clientActions)}return g8.yield(_.nl(l.innertubeTransportService,X,(d=
H)==null?void 0:d.form),2)}if(B=g8.yieldResult)B.errorMetadata?(q=B,u=_.Gc(q.error.message),l.JSC$18040_commandHandler.resolveCommand(u),"error"in B&&((e=H)==null?0:(y=e.commandController)==null?0:y.onServerError)&&((V=H)==null||(p=V.commandController)==null||p.onServerError(X,B))):(z=H)==null||(t=z.commandController)==null||(G=(W=t).onSuccess)==null||G.call(W,X,B);r=B;((Q=r)==null?0:Q.collaborationInviteLink)&&b.playlistId&&(_.P("web_enable_invite_collaborators_link")||_.P("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
l.store.dispatch(_.Of({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:b.playlistId,inviteLinkUrl:r.collaborationInviteLink}}));((v=r)==null?0:v.redirectEndpoint)&&l.JSC$18040_commandHandler.resolveCommand(r.redirectEndpoint);((J=r)==null?0:(Y=J.newHeader)==null?0:Y.playlistHeaderRenderer)?dzN(l.controller,r.newHeader.playlistHeaderRenderer):((Uy=r)==null?0:(Cy=Uy.newHeader)==null?0:Cy.musicEditablePlaylistDetailHeaderRenderer)&&dzN(l.controller,r.newHeader.musicEditablePlaylistDetailHeaderRenderer);
l.controller.playlistVideoListElement&&((sy=r)==null?0:(FO=sy.playlistEditResults)==null?0:(ub=FO[0])==null?0:ub.playlistEditVideoAddedResultData)&&((QZ=l.controller.playlistVideoListElement)==null||QZ.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:r.playlistEditResults[0].playlistEditVideoAddedResultData})));_.m5(g8)})};
qi[rx]=[_.qU,_.b$,_.BI,_.Vr];var sn=function(X,H){this.controller=X;this.JSC$18050_commandHandler=H};
_.S(sn,kR);sn.prototype.resolveCommand=function(X,H){var l=this,b,U,K;return _.h(function(w){b=_.f(X,agQ);l.controller.showRefreshPill&&((U=b)==null?0:U.command)&&(l.JSC$18050_commandHandler.resolveCommand((K=b)==null?void 0:K.command,H),l.controller.showRefreshPill=!1);_.m5(w)})};
sn[rx]=[_.Il,_.Vr];var Mi=function(X,H){this.store=X;this.JSC$18054_commandHandler=H||_.JF.instance};
_.S(Mi,kR);Mi.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q,u,e,y;return _.h(function(V){b=_.f(X,Y8Q);U=l.store.getState().radioButtonGroup;if((K=b)==null?0:K.command)l.JSC$18054_commandHandler.resolveCommand((w=b)==null?void 0:w.command,H);else if(U&&((d=b)==null?void 0:d.formId)===U.currentFormId)for(B=Object.values(U.commandsMap),q=_.C(B),u=q.next();!u.done;u=q.next())e=u.value,(y=_.sl(e))&&l.JSC$18054_commandHandler.resolveCommand(y,H);_.m5(V)})};
Mi[rx]=[_.qU];var uY=new _.gz("USER_PREFS");var eU=function(X){this.JSC$18059_prefCookie=X};
_.S(eU,kR);eU.prototype.resolveCommand=function(X){var H=this,l;return _.h(function(b){(l=_.f(X,se6))&&typeof l.useListView==="boolean"&&(_.bH(0,155,l.useListView),H.JSC$18059_prefCookie.save());_.m5(b)})};
eU[rx]=[uY];var yw=function(X){this.JSC$18063_prefCookie=X};
_.S(yw,kR);yw.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w;return _.h(function(d){l=_.f(X,nwt);if((b=l)==null||!b.gl)return d.return();U=l.gl;K={persist_gl:"1",gl:U};H.JSC$18063_prefCookie.set("gl",U);H.JSC$18063_prefCookie.save();w=UFO(K);_.y_(w);_.m5(d)})};
yw[rx]=[uY];var Vw=function(X){this.JSC$18067_prefCookie=X};
_.S(Vw,kR);Vw.prototype.resolveCommand=function(X){var H=this,l,b;return _.h(function(U){l=_.f(X,iRz);if(!l)return U.return();b=!1;l.flagNum&&typeof l.value==="boolean"?(_.bH(0,l.flagNum,l.value),b=!0):l.key&&typeof l.stringValue==="string"&&(H.JSC$18067_prefCookie.set(l.key,l.stringValue),b=!0);b&&H.JSC$18067_prefCookie.save();_.m5(U)})};
Vw[rx]=[uY];var PI=new _.gz("PREF_STORAGE_PROMISE_TOKEN");var f6=function(X){this.JSC$18071_prefStoragePromise=X};
_.S(f6,kR);f6.prototype.resolveCommand=function(X){var H=this,l,b;return _.h(function(U){if(U.nextAddress==1)return(l=_.f(X,ORq))?U.yield(H.JSC$18071_prefStoragePromise,2):U.return();b=U.yieldResult;return b===void 0||l.key===void 0||l.value===void 0?U.return():U.yield(b.set(l.key,l.value),0)})};
f6[rx]=[PI];var p6=function(X){this.innertubeTransportService=X};
_.S(p6,kR);p6.prototype.resolveCommand=function(X,H){var l=this,b,U;return _.h(function(K){(b=_.f(X,_.XOY))&&b&&b.isFirstRequest&&(_.qJ("search_overview_answer"),_.sf("so_rq",void 0,"search_overview_answer"));return K.yield(_.nl(l.innertubeTransportService,X,(U=H)==null?void 0:U.form),0)})};
p6[rx]=[_.b$];var hm$=function(){};
_.S(hm$,kR);
hm$.prototype.resolveCommand=function(X){var H,l,b,U,K,w,d,B,q;return _.h(function(u){H=_.f(X,Y6Q);if((l=H)==null?0:l.sectionIdentifier){if(H.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(U=(b=document.getElementsByTagName(H.sectionIdentifier))==null?void 0:b.item(0))U.scrollIntoView({behavior:"smooth"}),(K=vl8(U))&&K.focus({preventScroll:!0});return u.return()}w=document.querySelector("[section-identifier="+H.sectionIdentifier+"]");d=document.querySelector("[section-identifier="+H.referenceSectionIdentifier+
"]");if(!w)return u.return();B=H.verticalScrollOffsetDp?H.verticalScrollOffsetDp:0;d&&(B-=d.offsetTop);window.scrollTo({top:w.offsetTop+B,behavior:"smooth"});(q=vl8(w))&&q.focus({preventScroll:!0})}_.m5(u)})};var SU=function(X){this.JSC$18083_commandHandler=X};
_.S(SU,kR);
SU.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B;return _.h(function(q){if(q.nextAddress==1){l=_.f(X,f$t);if(!l||!l.imageBytes||!navigator.clipboard)return q.return();if(l.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.n2(Error("Ii")),q.return();_.Ew(q,2);U=(b=l)==null?void 0:b.imageBytes;K=U.replace(/-/g,"+").replace(/_/g,"/");w=O1y(K);d={};B=[new ClipboardItem((d[w.type]=w,d))];return q.yield(navigator.clipboard.write(B),4)}if(q.nextAddress!=2)return l.successCommand&&
H.JSC$18083_commandHandler.resolveCommand(l.successCommand),_.Zt(q,0);_.Ow(q);l.errorCommand&&H.JSC$18083_commandHandler.resolveCommand(l.errorCommand);_.m5(q)})};
SU[rx]=[_.Vr];var zR=function(X,H){this.innertubeTransportService=X;this.JSC$18087_commandHandler=H};
_.S(zR,kR);zR.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d;return _.h(function(B){if(B.nextAddress==1)return(b=_.f(X,pOv))?B.yield(_.nl(l.innertubeTransportService,X,(U=H)==null?void 0:U.form),2):B.return();(K=B.yieldResult)&&K.errorMetadata&&b.onFailureCommand&&l.JSC$18087_commandHandler.resolveCommand(b.onFailureCommand);w=K;((d=w)==null?0:d.shareCommand)&&l.JSC$18087_commandHandler.resolveCommand(w.shareCommand,H);_.m5(B)})};
zR[rx]=[_.b$,_.Vr];var n6=function(){};
_.S(n6,kR);n6.prototype.resolveCommand=function(X){var H,l;return _.h(function(b){H=_.f(X,EwY);if(!H||!navigator.share)return b.return();l={url:H.url};try{return b.return(navigator.share(l))}catch(U){}_.m5(b)})};var k4=function(){};
_.S(k4,kR);k4.prototype.resolveCommand=function(){return _.h(function(X){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.m5(X)})};var x4=function(X){this.JSC$18097_navigationConfirmationService=X};
_.S(x4,kR);x4.prototype.resolveCommand=function(){var X=this;return _.h(function(H){X.JSC$18097_navigationConfirmationService.cancelPendingNavigation();_.m5(H)})};
x4[rx]=[o2];var DJ=function(X){this.JSC$18100_screenManager=X};
_.S(DJ,kR);DJ.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q;return _.h(function(u){U=(b=H.form)==null?void 0:b.event;w=(K=H.form)==null?void 0:K.element;if(!U)throw new _.qd("Event not passed in when resolving command");d=_.C(U.composedPath());for(B=d.next();!B.done;B=d.next())if(q=B.value,q.tagName==="YT-COPY-LINK-RENDERER")return q.copyUrlToClipboard(),w&&_.pl(l.JSC$18100_screenManager,w),u.return();_.m5(u)})};
DJ[rx]=[_.UR];var t9=function(){this.JSC$18104_miniAppClientDataProvider=_.jJ().resolve(_.i7)};
_.S(t9,kR);t9.prototype.resolveCommand=function(){var X=this,H,l;return _.h(function(b){if(X.JSC$18104_miniAppClientDataProvider.clientData.has("video_id")){var U=X.JSC$18104_miniAppClientDataProvider,K=U.clientData.get("video_id");K&&U.clientData.delete("video_id");H="https://youtube.com/watch?v="+K;l=_.Jb(H);if(l===void 0)throw Error("Ji`"+H);_.wr(window,l)}_.m5(b)})};var WI=function(){};
_.S(WI,kR);WI.prototype.resolveCommand=function(){return _.h(function(X){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.m5(X)})};var En=function(){};
_.S(En,kR);En.prototype.resolveCommand=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield(_.YbN(window.document.documentElement),2);(X=document.querySelector("mini-app-container-view-model iframe"))&&X.focus();_.m5(H)})};var g6=function(X){this.JSC$18111_navigationConfirmationService=X};
_.S(g6,kR);
g6.prototype.resolveCommand=function(){var X=this;return _.h(function(H){var l=X.JSC$18111_navigationConfirmationService,b=_.jJ().resolve(_.Lg),U;if(((U=l.navigateParams)==null?void 0:U.data)!==void 0){var K;_.F3Y(b,l.navigateParams.endpoint,l.navigateParams.data,(K=l.navigateParams.navigationType)!=null?K:1,l.navigateParams.tempData,l.navigateParams.isMiniplayer,void 0,!0);l.navigateParams=void 0;l.customConfirmationCommand=void 0}else l.navigateParams&&(b.navigate(l.navigateParams.endpoint,l.navigateParams.reload,
l.navigateParams.params,l.navigateParams.tempData,l.navigateParams.requestType,l.navigateParams.createScreenConfig,!0),l.navigateParams=void 0,l.customConfirmationCommand=void 0);_.m5(H)})};
g6[rx]=[o2];var GR=function(){};
_.S(GR,kR);GR.prototype.resolveCommand=function(){return _.h(function(X){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.m5(X)})};var af=function(X){this.JSC$18116_prefStorage=X};
_.S(af,kR);af.prototype.resolveCommand=function(){var X=this,H,l;return _.h(function(b){switch(b.nextAddress){case 1:return b.yield(X.JSC$18116_prefStorage,2);case 2:return(H=b.yieldResult)?b.yield(H.set("sfvle",!1),3):b.return();case 3:return b.yield(H.set("sfvles",!0),4);case 4:l=_.oO(),_.bH(0,203,!1),_.bH(0,204,!0),l.save(),_.m5(b)}})};
af[rx]=[PI];var ZJ=function(X){this.JSC$18119_prefStorage=X};
_.S(ZJ,kR);ZJ.prototype.resolveCommand=function(){var X=this,H,l;return _.h(function(b){switch(b.nextAddress){case 1:return b.yield(X.JSC$18119_prefStorage,2);case 2:return(H=b.yieldResult)?b.yield(H.set("sfvle",!0),3):b.return();case 3:return b.yield(H.set("sfvles",!0),4);case 4:l=_.oO(),_.bH(0,203,!0),_.bH(0,204,!0),l.save(),_.m5(b)}})};
ZJ[rx]=[PI];_.FZA=new _.gz("SNACKBAR_CONTROLLER_TOKEN");_.B9Z=new _.gz("SHOULD_SHOW_PIVOT_BAR_TOKEN");var iY=function(X){this.controller=X};
_.S(iY,kR);iY.prototype.resolveCommand=function(X){var H=this,l;return _.h(function(b){l=_.f(X,Z0G);if(!l)return b.return();var U=H.controller;U.closeSnackbarFn&&U.closeSnackbarFn();_.m5(b)})};
iY[rx]=[_.FZA];var vI=function(X,H){this.controller=X;this.JSC$18126_sheetController=H};
_.S(vI,kR);vI.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B;return _.h(function(q){b=_.f(X,vW6);if(!b)return q.return();w=Xb5(l.JSC$18126_sheetController,(U=H)==null?void 0:(K=U.form)==null?void 0:K.element);d=_.f(b.content,Xm_);if(!d)return q.return();var u=l.controller,e=d,y=(B=b.animationStyle)!=null?B:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(u.showSnackbarFn)u.showSnackbarFn({snackbarViewModel:e,animationStyle:y,durationMs:b.durationSeconds*1E3,target:w});else throw Error("Dj");_.m5(q)})};
vI[rx]=[_.FZA,_.hT];var On=function(){};
_.S(On,kR);On.prototype.resolveCommand=function(X){var H;return _.h(function(l){H=_.f(X,vwC);if(!H||typeof H.key!=="string"||typeof H.value!=="string")return l.return();window.localStorage.setItem(H.key,H.value);_.m5(l)})};var mB=function(X){this.store=X};
_.S(mB,kR);mB.prototype.resolveCommand=function(X){var H=this,l;return _.h(function(b){l=_.f(X,OQk);if(!l||!l.stepId||!l.token)return b.return();H.store.dispatch(EIG({stepId:l.stepId,token:l.token,isSelected:!1}));_.m5(b)})};
mB[rx]=[nZ];var Qw=function(X,H,l){this.innertubeTransportService=X;this.store=H;this.JSC$18138_screenManager=l};
_.S(Qw,kR);
Qw.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J,Y,Uy,Cy,sy,FO,ub,g8;return _.h(function(mm){l=_.f(X,DDz);if(!l||(b=l.stepIds)==null||!b.length)return mm.return();U=H.store.getState().talkToRecs;K=[];w=[];d=_.C(l.stepIds);for(B=d.next();!B.done;B=d.next())for(q=B.value,u=void 0,(e=(u=U.stepStates[q])==null?void 0:u.userQuery)&&w.push({userQuery:l.submitEmptyUserQuery?"":e.userQuery,userQueryToken:e.token}),V=y=void 0,p=(V=(y=U.stepStates[q])==null?void 0:
y.selectionStates)!=null?V:{},z=_.C(Object.entries(p)),t=z.next();!t.done;t=z.next())W=t.value,G=_.C(W),r=G.next().value,Q=G.next().value,v=r,J=Q,J.isSelected&&K.push(v);Y={selectedChipTokens:K,userQueries:w,submittedStepIds:l.stepIds};Uy={browseTalk2recsFormData:Y};l.browseEndpoint?(Cy=X,_.dC(Cy,_.YM,l.browseEndpoint)):l.command&&(Cy=l.command);if(!Cy)return mm.return();sy=_.f(Cy,_.uE);if((FO=sy)==null?0:FO.command)if(ub=_.f(sy.command,kVH))g8=_.JF.instance,g8.resolveCommand(sy.command);return mm.yield(_.nl(H.innertubeTransportService,
Cy,{formData:Uy,disableCache:!0}).then(function(QZ){(QZ==null?0:QZ.trackingParams)&&H.JSC$18138_screenManager.graftServerVe(QZ==null?void 0:QZ.trackingParams)}),0)})};
Qw[rx]=[_.b$,nZ,_.UR];var TR=function(X){this.store=X};
_.S(TR,kR);
TR.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B,q;return _.h(function(u){l=_.f(X,v0L);if(!l||!l.stepId)return u.return();if(l.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")w=(K=(b=H.store.getState().talkToRecs.stepStates[l.stepId])==null?void 0:(U=b.userQuery)==null?void 0:U.userQuery)!=null?K:"",d=w.length>0?". ":"",B=w+d+l.selectedText,H.store.dispatch(gIQ({stepId:l.stepId,userQueryToken:"",userQuery:B}));else if(l.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")H.store.dispatch(gIQ({stepId:l.stepId,userQueryToken:"",
userQuery:(q=l.selectedText)!=null?q:""}));else{if(!l.token)return u.return();H.store.dispatch(EIG({stepId:l.stepId,token:l.token,isSelected:!0}))}_.m5(u)})};
TR[rx]=[nZ];var Ni=function(X){this.store=X};
_.S(Ni,kR);Ni.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B;return _.h(function(q){b=_.f(X,tez);if(!b||!b.stepId)return q.return();d=(w=(U=H)==null?void 0:(K=U.form)==null?void 0:K.userQuery)!=null?w:"";l.store.dispatch(gIQ({stepId:b.stepId,userQuery:d,userQueryToken:(B=b.userQueryToken)!=null?B:""}));_.m5(q)})};
Ni[rx]=[nZ];_.q_U=new _.gz("TIMELY_ACTIONS_CONTROLLER_TOKEN");var cI=function(X){this.controller=X};
_.S(cI,kR);cI.prototype.resolveCommand=function(X){var H=this,l,b,U,K;return _.h(function(w){l=_.f(X,rOH);if(!l)return w.return();b=l;U=b.id;K=b.isVisible;if(U===void 0||K===void 0)return w.return();var d;(d=H.controller.timelyActionsMap.get(U))==null||d(U,K);_.m5(w)})};
cI[rx]=[_.q_U];var sZx=function(){this.timelyActionsMap=new Map};var jU=function(X){this.JSC$18164_commandHandler=X};
_.S(jU,kR);jU.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w;return _.h(function(d){l=_.f(X,_.HFz);if(!l)return d.return();K=(b=l.item)==null?void 0:(U=b.notificationTextRenderer)==null?void 0:U.successResponseText;if(!K)return d.return();w=_.gR(K);H.JSC$18164_commandHandler.resolveCommand(w);_.m5(d)})};
jU[rx]=[_.Vr];var r6=function(X,H){this.innertubeTransportService=X;this.JSC$18169_playerApiPromise=H};
_.S(r6,kR);
r6.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B,q,u;return _.h(function(e){if(e.nextAddress==1)return e.yield(H.JSC$18169_playerApiPromise,2);l=e.yieldResult;b=l.getOption("captions","track");U=Object.assign({},_.f(X,_.Rpq));(w=(K=l.getVideoData())==null?void 0:K.video_id)?U.externalVideoId=w:_.v$(Error("Ki"));if((d=b)==null?0:d.languageCode)U.languageCode=b.languageCode;if((B=b)==null?0:B.kind)U.kind=b.kind;if((q=b)==null?0:q.name)U.name=b.name;u=Object.assign({},X,{getTranscriptEndpoint:U});return e.yield(_.nl(H.innertubeTransportService,
u),0)})};
r6[rx]=[_.b$,_.my];var J9=function(){};
_.S(J9,kR);J9.prototype.resolveCommand=function(X){var H,l,b,U,K,w,d,B;return _.h(function(q){H=_.f(X,LAz);if((l=H)==null||!l.paramKeyValuePairs)return q.return();b=window.location.href;U=_.C(H.paramKeyValuePairs);for(K=U.next();!K.done;K=U.next())w=K.value,w.key&&w.value&&(d={},b=_.T7(b,(d[w.key]=w.value,d)));B=_.jJ().resolve(_.AW);_.II(B,b);_.m5(q)})};_.L6=new _.gz("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var Y4=function(X,H,l,b){this.controller=X;this.JSC$18176_playerApiPromise=H;this.innertubeTransportService=l;this.JSC$18176_commandHandler=b};
_.S(Y4,kR);
Y4.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r;return _.h(function(Q){if(Q.nextAddress==1){l=_.f(X,ey9);if((b=l)==null||!b.watchEndpoint)return Q.return();U=new AZ;K=U.JSC$14488_getRequest(l.watchEndpoint);if(!K)return Q.return();w=l.watchEndpoint.clickTrackingParams;return Q.yield(_.pg(H.innertubeTransportService,K.innerTubeRequest,K.input,w,K.config),2)}if(Q.nextAddress!=3)return d=Q.yieldResult,Q.yield(H.JSC$18176_playerApiPromise,3);B=Q.yieldResult;B.updateVideoData({raw_watch_next_response:d});
if(p=(q=d)==null?void 0:(u=q.contents)==null?void 0:(e=u.twoColumnWatchNextResults)==null?void 0:(y=e.results)==null?void 0:(V=y.results)==null?void 0:V.contents)t=(z=p.find(function(v){return v.videoPrimaryInfoRenderer}))==null?void 0:z.videoPrimaryInfoRenderer,((W=t)==null?0:W.subtitle)&&MPa(H.controller,t.subtitle);
(r=(G=d)==null?void 0:G.onUiReady)&&H.JSC$18176_commandHandler.resolveCommand(r);_.m5(Q)})};
Y4[rx]=[_.L6,_.my,_.b$,_.Vr];var uvl=function(){this.subtitleChangeCallbackMap=new Map},MPa=function(X,H){X=_.C(X.subtitleChangeCallbackMap.values());
for(var l=X.next();!l.done;l=X.next())l=l.value,l(H)};var If=function(X,H){this.JSC$18186_commandHandler=X;this.innertubeTransportService=H};
_.S(If,kR);
If.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r;return _.h(function(Q){switch(Q.nextAddress){case 1:return(K=(b=H)==null?void 0:(U=b.form)==null?void 0:U.element)&&_.kq(K),w=_.oO().get("hl"),d="",_.Ew(Q,2),Q.yield(d1N(w),4);case 4:d=Q.yieldResult;_.Zt(Q,3);break;case 2:return _.Ow(Q),K&&_.xq(K),_.n2(Error("Mi"),"ERROR"),Q.return();case 3:B=_.f(X,tbz);if(!B)return K&&_.xq(K),Q.return();(e=(q=B.commerceActionConfig)==null?void 0:(u=q.commandLifeCycleConfig)==null?
void 0:u.onStartCommand)&&l.JSC$18186_commandHandler.resolveCommand(e);return Q.yield(_.nl(l.innertubeTransportService,X,{client_data:{paymentsClientToken:{token:d}}}),5);case 5:(y=Q.yieldResult)?(K&&_.xq(K),((t=y)==null?0:t.command)&&l.JSC$18186_commandHandler.resolveCommand(y.command),(r=(W=B.commerceActionConfig)==null?void 0:(G=W.commandLifeCycleConfig)==null?void 0:G.onSuccessCommand)&&l.JSC$18186_commandHandler.resolveCommand(r)):(K&&_.xq(K),_.n2(Error("Ni")),(z=(V=B.commerceActionConfig)==
null?void 0:(p=V.commandLifeCycleConfig)==null?void 0:p.onFailureCommand)&&l.JSC$18186_commandHandler.resolveCommand(z)),_.m5(Q)}})};
If[rx]=[_.Vr,_.b$];var A9=function(X,H,l){this.store=X;this.JSC$18202_commandHandler=H;this.innertubeTransportService=l};
_.S(A9,kR);
A9.prototype.resolveCommand=function(X,H){var l=this,b,U,K,w,d,B,q,u,e;return _.h(function(y){b=_.f(X,Ww6);U=b.googlePaymentPayload;b.onStartCommand&&l.JSC$18202_commandHandler.resolveCommand(b.onStartCommand);K=U.encryptedPurchaseParams;w=U.ypcLogWalletAnalyticDataEndpoint;d=b.serializedTransactionFlowLoggingParams;B=U.serializedPaymentsClientParams;q=b.ypcCujContext;e=Bi8(l.innertubeTransportService,(u=H)==null?void 0:u.form,K,w,d,B,q);return y.return(e.then(function(V){hwy(H==null?void 0:H.form,
!1);var p=l.store,z=l.JSC$18202_commandHandler,t=V.integratorData;t==null||t===""||V.error!=null?(String(V.error)==="-1"&&b.onDismissCommand?z.resolveCommand(b.onDismissCommand):String(V.error)!=="-1"&&b.onFailureCommand&&z.resolveCommand(b.onFailureCommand),String(V.error)!=="-1"&&String(V.error)!=="132"&&_.n2(Error("Oi"),"ERROR")):(b.googlePaymentEntityKey&&p.dispatch(_.Us("commerceAcquisitionClientPayloadEntity",b.googlePaymentEntityKey,{key:b.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:t,
fundsGuaranteeCallbackClientData:V.integratorClientCallbackData}}})),b.onSuccessCommand&&z.resolveCommand(b.onSuccessCommand));_.rZ()},function(V){hwy(H==null?void 0:H.form,!1);
_.n2(V,"ERROR");b.onFailureCommand&&l.JSC$18202_commandHandler.resolveCommand(b.onFailureCommand)}))})};
A9[rx]=[jg,_.Vr,_.b$];var Xx=function(X,H){this.JSC$18206_commandHandler=X;this.purchaseManager=H};
_.S(Xx,kR);
Xx.prototype.resolveCommand=function(X){var H=this,l,b,U,K,w,d,B,q,u;return _.h(function(e){l=_.f(X,EXH);((b=l)==null?0:(U=b.commandLifeCycleConfig)==null?0:U.onStartCommand)&&H.JSC$18206_commandHandler.resolveCommand(l.commandLifeCycleConfig.onStartCommand);if(!((K=l)==null?0:(w=K.googlePaymentPurchaseManagerPayload)==null?0:w.securePayloadBytes))return _.n2(Error("Pi"),"ERROR"),e.return();d=glH(_.Ay(l.googlePaymentPurchaseManagerPayload.securePayloadBytes));B=_.oO().get("hl");q=_.kj();oYl(d.serialize(),
B,function(y){q.resolve(y)},function(y){q.reject(y)},q.resolve);
u=q.promise;return e.return(u.then(function(y){if(y)if(y==null?0:y.errorCode){_.n2(Error("Qi`"+y.errorCode),"ERROR");var V,p;((V=l)==null?0:(p=V.commandLifeCycleConfig)==null?0:p.onFailureCommand)&&H.JSC$18206_commandHandler.resolveCommand(l.commandLifeCycleConfig.onFailureCommand)}else if(y==null?0:y.isCancelled){var z,t;((z=l)==null?0:(t=z.commandLifeCycleConfig)==null?0:t.onCancelCommand)&&H.JSC$18206_commandHandler.resolveCommand(l.commandLifeCycleConfig.onCancelCommand)}else{var W,G;((W=l)==
null?0:(G=W.commandLifeCycleConfig)==null?0:G.onSuccessCommand)&&H.JSC$18206_commandHandler.resolveCommand(l.commandLifeCycleConfig.onSuccessCommand)}},function(y){_.n2(y,"ERROR");
var V,p;((V=l)==null?0:(p=V.commandLifeCycleConfig)==null?0:p.onFailureCommand)&&H.JSC$18206_commandHandler.resolveCommand(l.commandLifeCycleConfig.onFailureCommand)}))})};
Xx[rx]=[_.Vr,b$C];var em$=function(X,H){this.JSC$18214_commandHandler=X;this.commandAllowlistOverride=H;var l;this.commandAllowlist=(l=this.commandAllowlistOverride)!=null?l:LMy};
em$.prototype.handleResponse=function(X,H,l){var b,U=H==null?void 0:(b=H.config)==null?void 0:b.command;if(!U||this.commandAllowlist.some(function(K){return!!_.f(U,K)})){H=void 0;
l!==void 0&&(H={form:{element:l}});X.onResponseReceivedCommand&&this.JSC$18214_commandHandler.resolveCommand(X.onResponseReceivedCommand,H);X.onResponseReceivedAction&&this.JSC$18214_commandHandler.resolveCommand(X.onResponseReceivedAction,H);X.onResponseReceivedEndpoint&&this.JSC$18214_commandHandler.resolveCommand(X.onResponseReceivedEndpoint,H);X.command&&this.JSC$18214_commandHandler.resolveCommand(X.command,H);if(X.onResponseReceivedCommands)for(l=_.C(X.onResponseReceivedCommands),b=l.next();!b.done;b=
l.next())this.JSC$18214_commandHandler.resolveCommand(b.value,H);if(X.onResponseReceivedActions)for(l=_.C(X.onResponseReceivedActions),b=l.next();!b.done;b=l.next())this.JSC$18214_commandHandler.resolveCommand(b.value,H);if(X.onResponseReceivedEndpoints)for(l=_.C(X.onResponseReceivedEndpoints),b=l.next();!b.done;b=l.next())this.JSC$18214_commandHandler.resolveCommand(b.value,H);if(X.actions)for(X=_.C(X.actions),l=X.next();!l.done;l=X.next())this.JSC$18214_commandHandler.resolveCommand(l.value,H)}};
em$[rx]=[_.Vr,_.c$(JUz)];var yje=new _.gz("INNERTUBE_TOKEN_SERVICE");var VPy=new _.gz("SCHEDULER_TOKEN");var PB$=function(X){this.scheduler=X;X={};this.tokenMap=(X.app={},X.user={},X)};
PB$.prototype.handleResponse=function(X,H){if(!H)throw Error("Ri");var l;if(X=(l=X.responseContext)==null?void 0:l.innertubeTokenJar){if(X.appTokens){var b,U,K;l=(b=H.innerTubeRequest.context)==null?void 0:(U=b.request)==null?void 0:(K=U.innertubeTokenJar)==null?void 0:K.appTokens;feZ(this,X.appTokens,this.tokenMap.app,l)}if(X.userTokens){var w,d,B;H=(w=H.innerTubeRequest.context)==null?void 0:(d=w.request)==null?void 0:(B=d.innertubeTokenJar)==null?void 0:B.userTokens;feZ(this,X.userTokens,this.tokenMap.user,
H)}}};
PB$.prototype.processContext=function(X){X.request||(X.request={});var H=Object.keys(this.tokenMap.app).length,l=Object.keys(this.tokenMap.user).length;if(H||l)X.request.innertubeTokenJar={},H&&(X.request.innertubeTokenJar.appTokens=[].concat(_.LJ(Object.values(this.tokenMap.app).flat()))),l&&(X.request.innertubeTokenJar.userTokens=[].concat(_.LJ(Object.values(this.tokenMap.user).flat())))};
var feZ=function(X,H,l,b){H=_.C(H);for(var U=H.next(),K={};!U.done;K={token$jscomp$139:void 0},U=H.next()){K.token$jscomp$139=U.value;if(K.token$jscomp$139.type===void 0)throw new _.qd("InnerTube token has no type",K.token$jscomp$139);if(K.token$jscomp$139.clearTokens)l[K.token$jscomp$139.type]=[];else if(K.token$jscomp$139.value!==void 0){l[K.token$jscomp$139.type]||(l[K.token$jscomp$139.type]=[]);if(b!==void 0&&b.length){U=_.C(b);for(var w=U.next(),d={};!w.done;d={requestToken:void 0},w=U.next())d.requestToken=
w.value,w=l[K.token$jscomp$139.type].findIndex(function(B){return function(q){return q===B.requestToken||(0,_.Bb.equals)(q,B.requestToken)}}(d)),w>-1&&l[K.token$jscomp$139.type].splice(w,1)}l[K.token$jscomp$139.type].push(K.token$jscomp$139);
K.token$jscomp$139.maxAgeSeconds&&Number(K.token$jscomp$139.maxAgeSeconds)>0&&X.scheduler.addLowPriorityJob(function(B){return function(){var q=l[B.token$jscomp$139.type].indexOf(B.token$jscomp$139);q>-1&&l[B.token$jscomp$139.type].splice(q,1)}}(K),Number(K.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.qd("InnerTube token has no value",K.token$jscomp$139);
}};
PB$[rx]=[VPy];var pbl=new _.gz("LOCAL_INNERTUBE_ROUTER_TOKEN"),S_p=new _.gz("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var HZ=function(X){this.serviceMap=X};
HZ.prototype.shouldPreferLocalResponse=function(X,H){return(X=zmY(this,X))?X.shouldPreferLocalResponse(H):!1};
HZ.prototype.localInnertubeResponse=function(X,H){var l=this,b;return _.h(function(U){return(b=zmY(l,X))?U.return(b.localInnertubeResponse(H)):U.return(Promise.reject(Error("Si")))})};
HZ.prototype.canProvideFallbackResponse=function(X,H){return(X=zmY(this,X))?X.canProvideFallbackResponse(H):!1};
HZ.prototype.localFallbackInnertubeResponse=function(X,H){var l=this,b;return _.h(function(U){return(b=zmY(l,X))?U.return(b.localFallbackInnertubeResponse(H)):U.return(Promise.reject(Error("Si")))})};
var zmY=function(X,H){H=_.c1(H);return H?(X=X.serviceMap[H])?X:null:null};
HZ[rx]=[S_p];var dk=function(){};
dk.prototype.shouldPreferLocalResponse=function(){return!1};
dk.prototype.localInnertubeResponse=function(){return _.h(function(X){return X.return(Promise.reject(Error("Ti")))})};
dk.prototype.canProvideFallbackResponse=function(){return!0};
dk.prototype.localFallbackInnertubeResponse=function(){var X,H,l;return _.h(function(b){X=A5("CLOSE_POPUP");H={openPopupAction:s9k()};l={actions:[X,H]};return b.return(l)})};var DM8=function(X,H){this.JSC$18263_upliftPromise=X;this.store=H};
_.R=DM8.prototype;_.R.shouldPreferLocalResponse=function(X){var H=X.videoId,l;if(l=H)l=vSy(this.store.getState().entities,X.videoId);return l&&OLy(this.store.getState().entities,H)?uyW(this.store.getState().entities,X.playlistId):!1};
_.R.localInnertubeResponse=function(X){var H=this,l;return _.h(function(b){return(l=H.getPlayerResponse(X))?b.return(Promise.resolve(l)):b.return(Promise.reject(Error("Ui")))})};
_.R.canProvideFallbackResponse=function(X){return!!X.videoId};
_.R.localFallbackInnertubeResponse=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(H.JSC$18263_upliftPromise,2);l=H.getPlayerResponse(X);var U;l?U=b.return(Promise.resolve(l)):U=KT(H.store.getState().entities,X.videoId)?b.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Zi(_.XS("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:uGK()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
b.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Zi(_.XS("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:MCK()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return U})};
_.R.getPlayerResponse=function(X){return FjZ(this.store.getState().entities,X.videoId)};var wk=function(X,H){this.localPlayerService=X;this.localWatchNextService=H};
wk.prototype.shouldPreferLocalResponse=function(X){var H=X.playerRequest;X=X.watchNextRequest;return!!(H&&this.localPlayerService.shouldPreferLocalResponse(H)&&X&&this.localWatchNextService.shouldPreferLocalResponse(X))};
wk.prototype.localInnertubeResponse=function(X){var H=this,l,b,U,K;return _.h(function(w){if(w.nextAddress==1){l=X.playerRequest;b=X.watchNextRequest;if(!l||!b)throw new _.qd("Missing streaming request",X);return w.yield(H.localPlayerService.localInnertubeResponse(l),2)}if(w.nextAddress!=3)return U=w.yieldResult,w.yield(H.localWatchNextService.localInnertubeResponse(b),3);K=w.yieldResult;return w.return({playerResponse:U,watchNextResponse:K})})};
wk.prototype.canProvideFallbackResponse=function(X){var H=X.playerRequest;X=X.watchNextRequest;return!!(H&&this.localPlayerService.canProvideFallbackResponse(H)&&X&&this.localWatchNextService.canProvideFallbackResponse(X))};
wk.prototype.localFallbackInnertubeResponse=function(X){var H=this,l,b,U,K;return _.h(function(w){if(w.nextAddress==1)return l=X.playerRequest,b=X.watchNextRequest,l&&b?w.yield(H.localPlayerService.localFallbackInnertubeResponse(l),2):w.return(Promise.reject(new _.qd("Missing streaming request",X)));if(w.nextAddress!=3)return U=w.yieldResult,w.yield(H.localWatchNextService.localFallbackInnertubeResponse(b),3);K=w.yieldResult;return w.return({playerResponse:U,watchNextResponse:K})})};var K9=function(X){this.JSC$18273_persistentStorePromiseAccessor=X};
K9.prototype.shouldPreferLocalResponse=function(){return!1};
K9.prototype.localInnertubeResponse=function(){return _.h(function(X){return X.return(Promise.reject(Error("Vi")))})};
K9.prototype.canProvideFallbackResponse=function(){return!0};
K9.prototype.localFallbackInnertubeResponse=function(){var X=this,H,l;return _.h(function(b){return b.nextAddress==1?b.yield(X.JSC$18273_persistentStorePromiseAccessor(),2):b.nextAddress!=3?(H=b.yieldResult)?b.yield(H.get("service:guide:fallback"),3):b.return(Promise.reject(Error("Wi"))):(l=b.yieldResult)&&_.Nf(l)?b.return(ewy(_.Nf(l))):b.return(Promise.reject(Error("Xi")))})};var hv=function(){};
hv.prototype.shouldPreferLocalResponse=function(){return!1};
hv.prototype.localInnertubeResponse=function(){return _.h(function(X){return X.return(Promise.reject(Error("Yi")))})};
hv.prototype.canProvideFallbackResponse=function(){return!0};
hv.prototype.localFallbackInnertubeResponse=function(){var X,H,l;return _.h(function(b){X=A5("CLOSE_POPUP");H={openPopupAction:s9k()};l={actions:[X,H]};return b.return(l)})};var $i=function(){this.urlMap=nOl;this.fallbackCommand=_.oy};
$i.prototype.shouldPreferLocalResponse=function(X){return(X=X.url)?!!kpZ(this,X):!1};
$i.prototype.localInnertubeResponse=function(X){var H=this,l;return _.h(function(b){return(l=X.url)?b.return(xzY(X,kpZ(H,l))):b.return(Promise.reject(Error("Zi")))})};
$i.prototype.canProvideFallbackResponse=function(){return!0};
$i.prototype.localFallbackInnertubeResponse=function(X){var H=this,l,b,U,K,w,d,B;return _.h(function(q){l=X.url;if(!l)return q.return(xzY(X,H.fallbackCommand));if(b=kpZ(H,l))return q.return(xzY(X,b));U=void 0;K=_.c1(l);K==="/watch"&&(w=_.Hb(l,"v"))&&(B=(d=_.Hb(l,"list"))!=null?d:void 0,U=_.aO(w,B));U||(U=H.fallbackCommand);return q.return(xzY(X,U))})};
var kpZ=function(X,H){if(H)return X.urlMap[_.jN(H)]},xzY=function(X,H){H&&X.parentTrackingParams&&(H.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:X.parentTrackingParams}},H.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:H})};var RJ=function(X,H,l){this.JSC$18284_upliftPromise=X;this.store=H;this.JSC$18284_persistentStorePromiseAccessor=l};
RJ.prototype.shouldPreferLocalResponse=function(){return!1};
RJ.prototype.localInnertubeResponse=function(){return _.h(function(X){return X.return(Promise.reject(Error("$i")))})};
RJ.prototype.canProvideFallbackResponse=function(){return!0};
RJ.prototype.localFallbackInnertubeResponse=function(){var X=this;return _.h(function(H){return H.return(DzA(X))})};
var DzA=function(X){var H,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(Tr(X.JSC$18284_upliftPromise,X.store),2);H=b.yieldResult;l={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[MWy(H)]}}}};return b.return(tPy(X,l))})},tPy=function(X,H){var l,b;
return _.h(function(U){if(U.nextAddress==1)return U.yield(X.JSC$18284_persistentStorePromiseAccessor(),2);if(U.nextAddress!=3)return l=U.yieldResult,U.yield(cx(l),3);b=U.yieldResult;return U.return({responseContext:{},contents:H,topbar:b})})};var bp=function(X,H,l){this.JSC$18291_upliftPromise=X;this.store=H;this.JSC$18291_persistentStorePromiseAccessor=l};
bp.prototype.shouldPreferLocalResponse=function(X){var H=X.videoId;return H&&vSy(this.store.getState().entities,H)&&OLy(this.store.getState().entities,H)?uyW(this.store.getState().entities,X.playlistId):!1};
bp.prototype.localInnertubeResponse=function(X){var H=this,l,b;return _.h(function(U){if(U.nextAddress==1)return(l=X.videoId)?U.yield(H.JSC$18291_upliftPromise,2):U.return(Promise.reject(Error("aj")));if(U.nextAddress!=3)return U.yield(WZl(H,X,l),3);b=U.yieldResult;return U.return(EO5(H,b,l))})};
bp.prototype.canProvideFallbackResponse=function(X){return X.videoId?!0:!1};
bp.prototype.localFallbackInnertubeResponse=function(X){var H=this,l,b,U,K;return _.h(function(w){switch(w.nextAddress){case 1:return(l=X.videoId)?w.yield(H.JSC$18291_upliftPromise,2):w.return(Promise.reject(Error("aj")));case 2:return w.yield(WZl(H,X,l),3);case 3:b=w.yieldResult;if(KT(H.store.getState().entities,l)){w.jumpTo(4);break}return w.yield(Tr(H.JSC$18291_upliftPromise,H.store),5);case 5:return U=w.yieldResult,w.return(gOC(b,U));case 4:return vSy(H.store.getState().entities,l)&&OLy(H.store.getState().entities,
l)?w.return(EO5(H,b,l)):(K={title:_.Zi(_.XS("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:uGK()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},w.return(gOC(b,K)))}})};
var WZl=function(X,H,l){var b,U,K,w,d;return _.h(function(B){if(B.nextAddress==1)return b=H.playlistId,U=_.aO(l,b),B.yield(X.JSC$18291_persistentStorePromiseAccessor(),2);if(B.nextAddress!=3)return K=B.yieldResult,B.yield(cx(K),3);w=B.yieldResult;d={responseContext:{},currentVideoEndpoint:U,topbar:w};return B.return(d)})},EO5=function(X,H,l){if(X=KT(X.store.getState().entities,l)){var b;
l=X.videoEntity;var U,K={title:iH(l.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.vK((b=l.localizedStrings)==null?void 0:b.viewCount),viewCount:_.vK((U=l.localizedStrings)==null?void 0:U.viewCount)}}};l.publishedTimestampMillis&&(K.dateText=_.vK(G4m(new Date(Number(l.publishedTimestampMillis)))));b={videoPrimaryInfoRenderer:K};U=X.videoEntity;X=X.channelEntity;X={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:iH(_.XS("SHOW_MORE",void 0,"Show more")),
showLessText:iH(_.XS("SHOW_LESS",void 0,"Show less")),description:U.formattedDescription,owner:{videoOwnerRenderer:{title:iH(X.title),thumbnail:X.avatar}}}};H.contents={twoColumnWatchNextResults:{results:{results:{contents:[b,X]}}}}}return H},gOC=function(X,H){X.contents={singleColumnWatchNextResults:{results:{results:{contents:[MWy(H)]}}}};
return X};var C9=function(X,H,l){this.JSC$18296_upliftPromise=X;this.store=H;this.JSC$18296_persistentStorePromiseAccessor=l};
C9.prototype.shouldPreferLocalResponse=function(){return!1};
C9.prototype.localInnertubeResponse=function(){return _.h(function(X){return X.return(Promise.reject(Error("bj")))})};
C9.prototype.canProvideFallbackResponse=function(){return!0};
C9.prototype.localFallbackInnertubeResponse=function(){var X=this,H,l,b,U;return _.h(function(K){switch(K.nextAddress){case 1:return K.yield(X.JSC$18296_persistentStorePromiseAccessor(),2);case 2:return H=K.yieldResult,K.yield(cx(H),3);case 3:return l=K.yieldResult,b={responseContext:{},topbar:l},K.yield(X.JSC$18296_upliftPromise,4);case 4:return K.yield(Tr(X.JSC$18296_upliftPromise,X.store),5);case 5:return U=K.yieldResult,b.watchStatus={backgroundPromoRenderer:U},K.return(b)}})};var GpZ=new _.gz("ENDPOINT_MAP"),ae5=new _.gz("WATCH_ENDPOINT_MAP"),ZYC=new _.gz("REEL_ENDPOINT_MAP");var SpZ=/^[a-zA-Z0-9_\-]{11}$/;var zwz=_.B0(function(){var X,H;return(H=(X=window).matchMedia)==null?void 0:H.call(X,"(prefers-reduced-motion: reduce)").matches});var iYp=_.B0(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 X=_.ij("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");X||(X=_.XJ("VIDEO"),_.cQ("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
X));return!!(X&&X.canPlayType&&X.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var vOU=XMLHttpRequest.prototype.fetch,OYe=vOU&&vOU.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!TT?!0:!1;var lW=function(X){this.JSC$18307_storeWithEntities=X};
_.S(lW,uU);_.R=lW.prototype;_.R.getApiPaths=function(){return pN_};
_.R.getExtension=function(X){return _.f(X,_.ku)||_.f(X,_.HM)||_.f(X,shz)};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$14495_getStoreKey=function(X){if((_.P("kevlar_cache_on_ttl_player")||_.P("mweb_enable_shorts_innertube_player_prefetch")||_.P("mweb_use_new_history_manager")||_.P("web_shorts_prefetch_service_enabled"))&&(X=this.getExtension(X))&&X.videoId){var H={videoId:X.videoId};X.playlistId&&(H.playlistId=X.playlistId);X.playerParams&&(H.params=X.playerParams);return _.nN("player",H)}};
_.R.JSC$14488_getClientScreen=function(X){var H;return((H=X.contentPlaybackContext)==null?void 0:H.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.R.JSC$14488_buildRequest=function(X,H,l){if(_.P("enable_interstitial_entity_check")){var b=this.JSC$18307_storeWithEntities;if(H.videoId)for(var U=_.C(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),K=U.next();!K.done;K=U.next()){K=K.value;var w;var d=void 0,B=void 0,q=H.videoId,u=K;(w=b)?(q=_.rc(q+u,"interstitialInteractionStateEntity"),w=(d=(B=_.JY(w.getState().entities,"interstitialInteractionStateEntity",q))==null?void 0:B.primaryButtonClicked)!=null?d:!1):w=!1;if(w)switch(K){case "CONTENT_CHECK_REQUIRED":H.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":H.racyCheckOk=!0}}}H.videoId&&(X.videoId=H.videoId);H.playlistId&&(X.playlistId=H.playlistId);H.index!==void 0&&(X.playlistIndex=H.index+1);H.playerParams&&(X.params=H.playerParams);"startTimeSeconds"in H&&H.startTimeSeconds&&(_.P("enable_player_request_builder_start_time_floor")?X.startTimeSecs=Math.floor(H.startTimeSeconds):X.startTimeSecs=H.startTimeSeconds);l.contentPlaybackContext&&(X.playbackContext={contentPlaybackContext:l.contentPlaybackContext});l.prefetchPlaybackContext&&
(X.playbackContext=Object.assign({},X.playbackContext,{prefetchPlaybackContext:l.prefetchPlaybackContext}),X.context.request||(X.context.request={}),X.context.request.isPrefetch=!0);X.playbackContext||(X.playbackContext={});b=iYp();X.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!b,supportXhr:OYe};l.overrideMutedAtStart&&(X.overrideMutedAtStart=l.overrideMutedAtStart);X.racyCheckOk=!!H.racyCheckOk;X.contentCheckOk=!!H.contentCheckOk;!_.P("captions_prefs_killswitch")&&(l=(l=_.Ce("yt-player-caption-language-preferences"))?
l:[],l==null?0:l.length)&&(X.captionParams={viewerSelectedCaptionLangs:l})};
_.R.getRequestConfig=function(X){X=this.JSC$14495_getStoreKey(X);var H;X&&(H={storeStrategy:{storeKey:X}});_.P("web_log_player_watch_next_ticks")&&(H=H||{},H.requestTick="ps_s",H.responseTick="ps_r");return H};
lW[rx]=[jg];var oU=function(X,H){this.playerRequestBuilder=X;this.watchNextRequestBuilder=H};
_.S(oU,uU);oU.prototype.getApiPaths=function(){return FU9};
oU.prototype.getExtension=function(X){return _.f(X,_.ku)};
oU.prototype.isNavigationCommand=function(){return!0};
oU.prototype.JSC$14488_buildRequest=function(X,H,l){X.playerRequest={};this.playerRequestBuilder.JSC$14488_buildRequest(X.playerRequest,H,l);if(_.P("web_streaming_watch")||_.P("mweb_streaming_watch"))X.watchNextRequest={},this.watchNextRequestBuilder.JSC$14488_buildRequest(X.watchNextRequest,H,l)};
oU[rx]=[lW,AZ];var mzZ;_.bW=new _.gz("SHORTS_CONTROLLER_TOKEN");mzZ=new _.gz("SHORTS_STATE_STORE_TOKEN");var Uj=function(X,H){var l=_.Ab.apply(2,arguments);X=X===void 0?0:X;_.qd.call(this,H,l);this.errorType=X;Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(Uj,_.qd);var QZ5,T9a,N9C,WOz,zo,cyz,rje,jZe,Ajl,Y_Y,LZZ;QZ5=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(X){return X+"="}).join("|"));
T9a=RegExp(".*\\?.*playnext=1.*");N9C=function(X,H,l,b,U,K){this.watchEndpointMap=X;this.reelWatchEndpointMap=H;this.innerTubeTransportService=l;this.fetchPbj=b;this.ephemeralStore=U;this.reloadOnPlayerFailure=K===void 0?!0:K};
_.cjx=function(X,H){var l=_.Yy("web_pbj_log_warning_rate",0);l=l>0&&Math.random()<l;var b;if((b=_.f(H.commandMetadata,_.Ip))==null||!b.rootVe)return l&&_.x2(Error("gj")),!1;var U;b=(U=_.f(H.commandMetadata,_.Ip))==null?void 0:U.url;if(!b)return l&&_.x2(Error("hj")),!1;if(T9a.test(b))return!0;if(QZ5.test(b))return l&&_.x2(Error("ij`"+b)),!1;if(_.f(H,_.ku)){if(!(X.watchEndpointMap.watchNext&&X.watchEndpointMap.player||_.P("kevlar_fetch_initial_data_op_watch_client")))return l&&_.x2(Error("cj")),!1;
X=_.Yy("web_pbj_log_warning_rate",0);X=X>0&&Math.random()<X;_.f(H,_.ku)?fjO(H)?H=!0:(X&&_.x2(Error("dj")),H=!1):(X&&_.x2(Error("cj")),H=!1);return H}if(_.f(H,_.HM))return pYh(H);if(_.f(H,_.uy))return!0;X=_.zE(X.innerTubeTransportService,H);!X&&l&&_.n2(Error("jj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(H)});return X};
WOz=function(X,H,l,b,U,K){H={url:H};if(l==null?0:l.itct)H.parentTrackingParams=l.itct;var w=_.E9(Et9);return _.pg(X.innerTubeTransportService,H,w).then(function(d){(d=d.endpoint)||(d=_.oy);(l==null?0:l.itct)&&d&&!d.trackingParams&&(d.trackingParams=l.itct);var B=A0(d);return zo(X,d,l,b,B,U,K)})};
zo=function(X,H,l,b,U,K,w,d){d=d===void 0?{}:d;if(X.fetchPbj&&!_.cjx(X,H)&&!_.P("force_one_platform")){var B=X.fetchPbj(H),q=_.rZ(B.then(function(J){if(!J)throw Error("kj");w(q)||K(H,J);return J}));
return q}var u,e,y={rootVe:(u=_.f(H.commandMetadata,_.Ip))==null?void 0:u.rootVe,url:(e=_.f(H.commandMetadata,_.Ip))==null?void 0:e.url,endpoint:H,page:U};if(_.f(H,_.ku)){var V,p={contentPlaybackContext:_.rW(l,(V=_.f(H.commandMetadata,_.Ip))==null?void 0:V.url,b)},z=_.kj(),t,W=(t=X.watchEndpointMap.player)==null?void 0:t().JSC$14495_getStoreKey(H);t=W!==void 0&&((B=X.ephemeralStore)==null?void 0:B.has(W));(_.P("web_streaming_watch")||_.P("mweb_streaming_watch"))&&window.TextDecoderStream&&!t?(B=CqH(X.innerTubeTransportService,
H,p,function(J){!y.response&&J.content&&(y.response=J.content);!y.playerResponse&&J.player&&(y.playerResponse=J.player);K(H,y)}),W=Okl(H),W.length&&(y.preconnect=W,K(H,y)),jZe(B,z,y).catch(function(J){J instanceof Uj&&J.errorType===2&&_.P("web_streaming_watch_fallback")&&rje(X,H,p,y,K,w,z)})):rje(X,H,p,y,K,w,z);
return z.promise}if(_.f(H,_.HM)){var G;if(((G=_.f(H,_.HM))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var r=_.kj();_.JjU(_.jJ().resolve(_.bW),H).then(function(J){LZZ(X,l,b,U,K,r,J)});
return r.promise}B=_.rZ();t={contentPlaybackContext:_.rW(l,(W=_.f(H.commandMetadata,_.Ip))==null?void 0:W.url,b)};(W=X.reelWatchEndpointMap.player)&&(W=W().JSC$14488_getRequest(H,t))&&(B=_.pg(X.innerTubeTransportService,W.innerTubeRequest,W.input,H.clickTrackingParams,W.config));W=_.rZ();(d=X.reelWatchEndpointMap.reelItemWatch)&&(d=d().JSC$14488_getRequest(H))&&(W=_.pg(X.innerTubeTransportService,d.innerTubeRequest,d.input,H.clickTrackingParams,d.config));d=_.rZ();(u=X.reelWatchEndpointMap.reelWatchSequence)&&
_.f(H,_.HM).sequenceParams&&(t=u().JSC$14488_getRequest(H,t))&&(d=_.pg(X.innerTubeTransportService,t.innerTubeRequest,t.input,H.clickTrackingParams,t.config));t=_.rZ(y);u=_.kj();Y_Y(H,t,B,W,d,K,w,u);return u.promise}var Q;if(_.f(H,XNy)&&((Q=_.f(H.commandMetadata,_.Ip))==null?0:Q.url))return B=l_h(_.iI(Mz().location.href),_.iI(_.f(H.commandMetadata,_.Ip).url)).toString(),WOz(X,B,l,b,K,function(){return!1});
if(_.f(H,_.uy))return K(H,y),_.rZ(y);if(_.zE(X.innerTubeTransportService,H)){B=Object.assign({},{tempData:l,disableCache:l.disableCache},d);var v=_.nl(X.innerTubeTransportService,H,B).then(function(J){y.response=J;w(v)||K(H,y);return y});
return v}return _.rZ(y)};
_.Iea=function(X,H,l,b){if(_.f(H,_.ku)||_.f(H,_.HM)&&(_.P("mweb_enable_shorts_innertube_player_prefetch")||_.P("kevlar_enable_shorts_prefetch_in_sequence"))||_.f(H,shz)&&_.P("web_enable_prefetching_videos_on_home")){var U,K={contentPlaybackContext:_.rW(l,(U=_.f(H.commandMetadata,_.Ip))==null?void 0:U.url,b),prefetchPlaybackContext:kmZ(l)},w,d,B;if(((w=_.f(H,_.ku))==null?void 0:(d=w.watchEndpointSupportedPrefetchConfig)==null?void 0:(B=d.prefetchHintConfig)==null?void 0:B.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(l=
X.watchEndpointMap.watchNext)if(K=l().JSC$14488_getRequest(H,K))return Promise.resolve(_.pg(X.innerTubeTransportService,K.innerTubeRequest,K.input,void 0,K.config).then(function(e){return e}))}else if(l=X.watchEndpointMap.player)if(K=l().JSC$14488_getRequest(H,K))return Promise.resolve(_.pg(X.innerTubeTransportService,K.innerTubeRequest,K.input,void 0,K.config).then(function(e){return e}))}else if(_.zE(X.innerTubeTransportService,H)){var q={tempData:l},u=oCQ(X.innerTubeTransportService,H);
return u?new Promise(function(e,y){var V,p;return _.h(function(z){if(z.nextAddress==1)return z.yield(u,2);if(z.nextAddress!=4)return V=z.yieldResult,V.JSC$14495_getStoreKey(H,q)?z.yield(_.nl(X.innerTubeTransportService,H,q),4):(y(new _.qd("Prefetching request builder with no store key.",H)),z.jumpTo(0));p=z.yieldResult;e(p);_.m5(z)})}):Promise.reject(new _.qd("Prefetching unregistered request builder.",H))}return Promise.reject(new _.qd("No request builder available to prefetch endpoint.",H))};
cyz=function(X,H){var l,b,U;if(_.f(H,_.ku)){var K=X.watchEndpointMap.watchNext;K&&(l=K());(X=X.watchEndpointMap.player)&&(b=X())}else if(_.f(H,_.HM))(K=X.reelWatchEndpointMap.reelItemWatch)&&(l=K()),(K=X.reelWatchEndpointMap.player)&&(b=K()),(X=X.reelWatchEndpointMap.reelWatchSequence)&&(U=X());else{a:{X=tpK(H,X.innerTubeTransportService.endpointMap);if(X!==void 0)if(typeof X.then==="function")_.n2(new _.qd("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",H));else break a;
X=void 0}X&&(l=X)}var w,d,B;return{content:(w=l)==null?void 0:w.JSC$14495_getStoreKey(H),player:(d=b)==null?void 0:d.JSC$14495_getStoreKey(H),reelSequence:(B=U)==null?void 0:B.JSC$14495_getStoreKey(H)}};
rje=function(X,H,l,b,U,K,w){var d=_.rZ(),B=X.watchEndpointMap.player;_.P("web_streaming_player")&&(B=yY(oU));B&&(B=B().JSC$14488_getRequest(H,l))&&(d=_.pg(X.innerTubeTransportService,B.innerTubeRequest,B.input,H.clickTrackingParams,B.config));B=_.rZ();var q=X.watchEndpointMap.watchNext;q&&(l=q().JSC$14488_getRequest(H,l))&&(B=_.pg(X.innerTubeTransportService,l.innerTubeRequest,l.input,H.clickTrackingParams,l.config));b=_.rZ(b);Ajl(X,H,b,d,B,U,K,w)};
jZe=function(X,H,l){var b;return _.h(function(U){if(U.nextAddress==1)return U.yield(X,2);_.P("web_streaming_watch_delay_200")||_.P("web_streaming_watch_delay_400")?(b=_.P("web_streaming_watch_delay_200")?200:400,setTimeout(function(){H.resolve(l)},b)):H.resolve(l);
_.m5(U)})};
Ajl=function(X,H,l,b,U,K,w,d){var B,q,u,e,y;_.h(function(V){switch(V.nextAddress){case 1:return V.yield(l,2);case 2:B=V.yieldResult;if(w(d.promise))return d.resolve(B),V.return();K(H,B);q=Okl(H);if(!q.length){V.jumpTo(3);break}return V.yield(l,4);case 4:B.preconnect=q,K(H,B);case 3:return _.Ew(V,5),V.yield(b,7);case 7:u=V.yieldResult;_.Zt(V,6);break;case 5:return e=_.Ow(V),d.reject(e),V.return();case 6:if(u===void 0&&X.reloadOnPlayerFailure)return B.reload=!0,K(H,B),d.resolve(B),V.return();if(w(d.promise))return d.resolve(B),
V.return();B.playerResponse=u;K(H,B);(_.P("web_watch_stop_scheduler_on_player_response")||_.P("mweb_watch_stop_scheduler_on_player_response"))&&e4G();_.Ew(V,8);return V.yield(U,10);case 10:y=V.yieldResult;_.Zt(V,9);break;case 8:_.Ow(V);case 9:if(y===void 0)return B.response={responseContext:{}},d.resolve(B),V.return();if(w(d.promise))return d.resolve(B),V.return();B.response=y;K(H,B);d.resolve(B);_.m5(V)}})};
Y_Y=function(X,H,l,b,U,K,w,d){var B,q,u,e,y,V;_.h(function(p){switch(p.nextAddress){case 1:return p.yield(H,2);case 2:B=p.yieldResult;if(w(d.promise))return d.resolve(B),p.return();K(X,B);q=Okl(X);if(!q.length){p.jumpTo(3);break}return p.yield(H,4);case 4:B.preconnect=q,K(X,B);case 3:return _.Ew(p,5),p.yield(l,7);case 7:u=p.yieldResult;_.Zt(p,6);break;case 5:return e=_.Ow(p),d.reject(e),p.return();case 6:if(u===void 0)return B.reload=!0,K(X,B),d.resolve(B),p.return();if(w(d.promise))return d.resolve(B),
p.return();B.playerResponse=u;K(X,B);(_.P("web_shorts_stop_scheduler_on_player_response")||_.P("mweb_shorts_stop_scheduler_on_player_response"))&&e4G();_.Ew(p,8);return p.yield(b,10);case 10:y=p.yieldResult;_.Zt(p,9);break;case 8:_.Ow(p);case 9:if(y===void 0)return B.response={responseContext:{}},d.resolve(B),p.return();if(w(d.promise))return d.resolve(B),p.return();B.response=y;K(X,B);_.Ew(p,11);return p.yield(U,13);case 13:V=p.yieldResult;_.Zt(p,12);break;case 11:_.Ow(p);case 12:if(w(d.promise))return d.resolve(B),
p.return();V&&(B.reelWatchSequenceResponse=V);K(X,B);d.resolve(B);_.m5(p)}})};
LZZ=function(X,H,l,b,U,K,w){var d,B,q,u,e,y;_.h(function(V){if((d=w)==null||!d.replacementEndpoint)return K.reject(),V.return();B=w.replacementEndpoint;(q=_.f(B,_.HM))?(w.sequenceContinuation&&(q.sequenceParams=w.sequenceContinuation),u=_.jJ().resolve(_.bW),e=q.sequenceParams,XEZ(u,B)&&delete q.sequenceParams,y=zo(X,B,H,l,b,U,function(){return!1}),y.then(function(p){return _.h(function(z){if(z.nextAddress==1)return H8Y(u,{reelWatchEndpoint:{sequenceParams:e}},p),z.yield(0,2);
K.resolve(p);_.m5(z)})})):K.reject();
_.m5(V)})};
N9C[rx]=[ae5,ZYC,_.b$,_.c$(A_t),_.c$(_.r2)];var lMy=function(){var X=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return X.sequenceMap}}},wot=function(X,H,l){var b,U=(b=H.config)==null?void 0:b.sequenceStrategy;
if(!U)return l();X.sequenceMap.has(U.sequenceKey)||X.sequenceMap.set(U.sequenceKey,[]);X=X.sequenceMap.get(U.sequenceKey);switch(U.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return oed(X,H,l);case "REQUEST_SEQUENCE_TYPE_REPLACE":return b8Z(X,H,l);default:throw new _.qd("Request could not be sequenced",H);}},oed=function(X,H,l){var b,U,K;
return _.h(function(w){X.length>0?(U=X[X.length-1],b=U.responsePromise.then(function(){return l()})):b=l();
K={request:H,responsePromise:b};X.push(K);UF5(X,K);return w.return(K.responsePromise)})},b8Z=function(X,H,l){l=l();
if(X.length>0)for(var b=_.C(X),U=b.next();!U.done;U=b.next())U.value.responsePromise=l;var K={request:H,responsePromise:l};X.push(K);UF5(X,K);return Promise.resolve().then(function(){return X.indexOf(K)>0?K.responsePromise.then(function(w){return Object.assign({},w,{sequenceMetaData:{skipProcessing:!0}})}):K.responsePromise})},UF5=function(X,H){H.responsePromise.then(function(){var l=X.indexOf(H);
l>-1&&X.splice(l,1)})};var $FU=new _.gz("REQUEST_SEQUENCING");var $k=function(){};
_.S($k,uU);$k.prototype.getApiPaths=function(){return[]};
$k.prototype.getExtension=function(X){return _.f(X,jMH)};
$k.prototype.JSC$14488_buildRequest=function(X,H){X.recaptchaToken=H.recaptchaToken};
$k.prototype.getApiUrl=function(){return"/das_captcha"};var KP=function(){};
_.S(KP,uU);KP.prototype.getApiPaths=function(){return ERD};
KP.prototype.getExtension=function(X){return _.f(X,S1C)};
KP.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.createBackstagePostParams&&(X.createBackstagePostParams=H.createBackstagePostParams);l.comment_text&&(X.commentText=l.comment_text);if(l.attached_video_id)X.videoAttachment={videoId:l.attached_video_id};else if(l.image_poll_options)X.pollAttachmentData={options:l.image_poll_options};else if(l.poll_options)X.pollAttachment={choices:l.poll_options};else if(l.quiz_options)X.quizAttachmentData={options:l.quiz_options};else if(l.image_blob_id)X.imageAttachment=
{encryptedBlobId:l.image_blob_id},l.source_video_id&&(X.imageAttachment.sourceExternalVideoId=l.source_video_id),l.image_preview_coordinates&&(X.imageAttachment.previewCoordinates=JSON.parse(l.image_preview_coordinates));else if(l.images_data)X.imagesAttachment={imagesData:l.images_data};else if(l.clip_external_video_id!==void 0||l.clip_offset_ms!==void 0||l.clip_duration_ms!==void 0){var b,U,K,w,d;X.clipAttachment={externalVideoId:(K=l.clip_external_video_id)!=null?K:"",offsetMs:(w=(b=l.clip_offset_ms)==
null?void 0:b.toString())!=null?w:"",durationMs:(d=(U=l.clip_duration_ms)==null?void 0:U.toString())!=null?d:""}}else l.shared_post_id&&(X.sharedPostAttachment={postId:l.shared_post_id});l.tagged_video_id&&(X.postCreationData={taggedVideoId:l.tagged_video_id});l.access_restrictions&&(typeof l.access_restrictions==="number"&&(H=l.access_restrictions,X.accessRestrictions={restriction:H!==1&&H===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof l.access_restrictions==="string"&&
(X.accessRestrictionsParams=l.access_restrictions));l.scheduled_publish_time_sec&&(X.scheduledPublishTimeSec=l.scheduled_publish_time_sec.toString())};var RU=function(){};
_.S(RU,uU);RU.prototype.getApiPaths=function(){return OBC};
RU.prototype.getExtension=function(X){return _.f(X,nSt)};
RU.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.decorateMessageParams&&(X.params=H.decorateMessageParams);l.text&&(X.text=l.text)};var CP=function(){};
_.S(CP,uU);CP.prototype.getApiPaths=function(){return KU_};
CP.prototype.getExtension=function(X){return _.f(X,zMQ)};
CP.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;l.video_id&&(X.videoId=l.video_id)};var w$=function(){};
_.S(w$,uU);w$.prototype.getApiPaths=function(){return h1F};
w$.prototype.getExtension=function(X){return _.f(X,_.Yu)};
w$.prototype.JSC$14488_buildRequest=function(X,H,l){l.suggestions_query&&(X.input=l.suggestions_query)};var d$=function(){};
_.S(d$,uU);d$.prototype.getApiPaths=function(){return cgH};
d$.prototype.getExtension=function(X){return _.f(X,n7D)};
d$.prototype.JSC$14488_buildRequest=function(X,H,l){l.comment_text!==void 0&&(X.commentText=l.comment_text);l.scheduled_publish_time_sec&&(X.scheduledPublishTimeSec=l.scheduled_publish_time_sec.toString());X.updateBackstagePostParams=H.updateBackstagePostParams};var h4=function(){};
_.S(h4,uU);h4.prototype.getApiPaths=function(){return aB};
h4.prototype.getExtension=function(X){return _.f(X,_.uE)};
h4.prototype.JSC$14488_buildRequest=function(X,H,l){l.formData&&(X.formData=l.formData);H.token?X.continuation=H.token:H.continuationTokenKey&&(l=_.WF().getState(),H=_.JY(l.entities,"continuationTokenEntity",H.continuationTokenKey))&&(X.continuation=String(H.continuationToken))};
var KKd=function(){};
_.S(KKd,uU);_.R=KKd.prototype;_.R.getApiPaths=function(){return aB};
_.R.getExtension=function(X){return _.f(X,_.YM)};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$14495_getStoreKey=function(X){if((X=this.getExtension(X))&&X.browseId){var H={browseId:X.browseId};X.browseEndpointContextSupportedConfigs&&(H.browseEndpointContextSupportedConfigs=JSON.stringify(X.browseEndpointContextSupportedConfigs));X.params&&(H.params=X.params);X.query&&(H.query=X.query);return _.nN("browse",H)}};
_.R.JSC$14488_buildRequest=function(X,H,l){H.browseId&&(X.browseId=H.browseId);H.params&&(X.params=H.params);H.query&&(X.query=H.query);l.formData?X.formData=l.formData:H.formData&&(X.formData=H.formData);H.browseId==="FEsubscriptions"&&_.oO().getFlag(155)&&(X.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");H.browseId==="SPaccount_playback"&&(l=_.oO(),X.formData||(X.formData={}),X.formData.accountSettingsFormData={flagCaptionsDefaultOff:l.getFlag(65),flagAutoCaptionsDefaultOn:l.getFlag(66),
flagDisableInlinePreview:l.getFlag(186),flagAudioDescriptionDefaultOn:l.getFlag(198)});if(H.browseId==="FEwhat_to_watch"){l=_.oO();var b=l.getFlag(196);l.getFlag(197)&&(X.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:b}}})}H.browseId==="FEwhat_to_watch"&&(H=_.oO().getFlag(186),X.inlineSettingStatus=H?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.R.getRequestConfig=function(X,H){H=H===void 0?{}:H;var l={};if(X=this.JSC$14495_getStoreKey(X,H))l.storeStrategy={storeKey:X,disableCache:H.disableCache};_.P("web_log_browse_ticks_ks")||(l.requestTick="br_s",l.responseTick="br_r");return l};var Fx=function(){};
_.S(Fx,uU);Fx.prototype.getApiPaths=function(){return nR_};
Fx.prototype.getExtension=function(X){return _.f(X,U8z)};
Fx.prototype.JSC$14488_buildRequest=function(X,H,l){X.legacyYoutubeChannelUsername=l.legacyYouTubeChannelUsername||"";X.legacyYoutubeChannelPassword=l.legacyYouTubeChannelPassword||""};var BZ=function(){};
_.S(BZ,uU);BZ.prototype.getApiPaths=function(){return gt9};
BZ.prototype.getExtension=function(X){return _.f(X,GH_)};
BZ.prototype.JSC$14488_buildRequest=function(X,H,l){l.recaptcha_response_token&&(X.recaptchaResponseToken=l.recaptcha_response_token);l.channel_id&&(X.channelId=l.channel_id)};var qu=function(){};
_.S(qu,uU);qu.prototype.getApiPaths=function(){return jY6};
qu.prototype.getExtension=function(X){return _.f(X,mDH)};
qu.prototype.JSC$14488_buildRequest=function(X,H,l){H.externalChannelId&&(X.externalChannelId=H.externalChannelId);l.handle&&(X.handleUpdate={handle:l.handle},H.handleEditSource&&(X.handleUpdate.handleEditSource=H.handleEditSource))};var sj=function(){};
_.S(sj,uU);sj.prototype.getApiPaths=function(){return Yhv};
sj.prototype.getExtension=function(X){return _.f(X,d6t)};
sj.prototype.JSC$14488_buildRequest=function(X,H,l){H.request&&(X.channelId=H.request.channelId);var b;if(l==null?0:(b=l.uploadDefaults)==null?0:b.emojiReactionSet)X.uploadDefaultsRequest||(X.uploadDefaultsRequest={}),X.uploadDefaultsRequest.emojiReactionSet=l.uploadDefaults.emojiReactionSet};var Mu=function(){};
_.S(Mu,uU);Mu.prototype.getApiPaths=function(){return Xn_};
Mu.prototype.getExtension=function(X){return _.f(X,aKq)};
Mu.prototype.JSC$14488_buildRequest=function(X,H,l){H.externalChannelId&&(X.externalChannelId=H.externalChannelId);H.channelHandleEntityKey&&(X.channelHandleEntityKey=H.channelHandleEntityKey);H.handleEditSource&&(X.handleEditSource=H.handleEditSource);l.handle?X.handle=l.handle:l.name&&(X.name=l.name)};var uW=function(){};
_.S(uW,uU);uW.prototype.getApiPaths=function(){return DCH};
uW.prototype.getExtension=function(X){return _.f(X,Cf6)};
uW.prototype.JSC$14488_buildRequest=function(X,H){H.actions?X.actions=H.actions:H.action&&(X.actions=[H.action])};var eM=function(){};
_.S(eM,uU);eM.prototype.getApiPaths=function(){return tKC};
eM.prototype.getExtension=function(X){return _.f(X,_.uE)};
eM.prototype.JSC$14488_buildRequest=function(X,H){H.token&&(X.continuation=H.token)};var yu=function(){};
_.S(yu,uU);yu.prototype.getApiPaths=function(){return UtC};
yu.prototype.getExtension=function(X){return _.f(X,_.uE)};
yu.prototype.JSC$14488_buildRequest=function(X,H){X.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";H.token&&(X.fetchCommentsParams={continuation:H.token})};var Vu=function(){};
_.S(Vu,uU);Vu.prototype.getApiPaths=function(){return awD};
Vu.prototype.getExtension=function(X){return _.f(X,Rgq)};
Vu.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.createReplyParams&&(X.createReplyParams=H.createReplyParams);H.commentText&&(X.commentText=_.D8(H.commentText));l.comment_text&&(X.commentText=l.comment_text);l.image_blob_id&&(X.imageAttachment={encryptedBlobId:l.image_blob_id});l.botguard_response&&(X.botguardResponse=l.botguard_response)};
_.ja.Object.defineProperties(Vu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var PZ=function(){};
_.S(PZ,uU);PZ.prototype.getApiPaths=function(){return ZB9};
PZ.prototype.getExtension=function(X){return _.f(X,_.Kjv)};
PZ.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.createCommentParams&&(X.createCommentParams=H.createCommentParams);H.commentText&&(X.commentText=_.D8(H.commentText));H.videoPositionMention&&(X.videoPositionMention=H.videoPositionMention);H.sources&&(X.sources=H.sources);l.comment_text&&(X.commentText=l.comment_text);l.attached_video_id?X.videoAttachment={videoId:l.attached_video_id}:l.poll_options?X.pollAttachment={choices:l.poll_options}:l.image_blob_id?X.imageAttachment=
{encryptedBlobId:l.image_blob_id}:l.shared_post_id&&(X.sharedPostAttachment={postId:l.shared_post_id});l.access_restrictions&&typeof l.access_restrictions==="number"&&(H=l.access_restrictions,X.accessRestrictions={restriction:H!==1&&H===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});l.botguard_response&&(X.botguardResponse=l.botguard_response)};
_.ja.Object.defineProperties(PZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fP=function(){};
_.S(fP,uU);fP.prototype.getApiPaths=function(){return rgq};
fP.prototype.getExtension=function(X){return _.f(X,djt)};
fP.prototype.JSC$14488_buildRequest=function(X,H,l){H.commentText&&(X.replyText=_.D8(H.commentText));l.comment_text&&(X.replyText=l.comment_text);X.updateReplyParams=H.updateReplyParams};
_.ja.Object.defineProperties(fP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pP=function(){};
_.S(pP,uU);pP.prototype.getApiPaths=function(){return JgG};
pP.prototype.getExtension=function(X){return _.f(X,wOz)};
pP.prototype.JSC$14488_buildRequest=function(X,H,l){H.commentText&&(X.commentText=_.D8(H.commentText));l.comment_text&&(X.commentText=l.comment_text);X.updateCommentParams=H.updateCommentParams};
_.ja.Object.defineProperties(pP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SM=function(){};
_.S(SM,uU);SM.prototype.getApiPaths=function(){return LUt};
SM.prototype.getExtension=function(X){return _.f(X,KAv)};
SM.prototype.JSC$14488_buildRequest=function(X,H){H.settings&&(X.settings=H.settings)};var zD=function(){};
_.S(zD,uU);zD.prototype.getApiPaths=function(){return IwF};
zD.prototype.getExtension=function(X){return _.f(X,ZF_)};
zD.prototype.JSC$14488_buildRequest=function(X,H){H.channelCreationToken&&(X.channelCreationToken=H.channelCreationToken);H.source&&(X.source=H.source)};var nP=function(){};
_.S(nP,uU);nP.prototype.getApiPaths=function(){return GgC};
nP.prototype.getExtension=function(X){return _.f(X,OF_)};
nP.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;if(l.name&&(l.given_name||l.family_name))X=new _.qd("channel creation cannot set both GAIA and YouTube names",H),_.n2(X);else{if(H.zeroStepChannelCreationParams){if(!l.comment_text){X=new _.qd("zero_step_create_comment_params but no zero_step_texts",H);_.n2(X);return}X.zeroStepChannelCreationParams=H.zeroStepChannelCreationParams;X.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(X.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
l.comment_text,l.botguard_response&&(X.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=l.botguard_response))}X.channelCreationToken=H.channelCreationToken;l.given_name&&(X.givenName=l.given_name);l.family_name&&(X.familyName=l.family_name);H.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(X.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(l.name||l.handle||l.avatar_url||l.encryptedBlobId||l.isNameChanged!==void 0||l.isHandleChanged!==void 0||l.isDefaultProfilePhoto!==
void 0||l.obakeImageSource)X.overrideChannelCreationParams={},l.name&&(X.overrideChannelCreationParams.name=l.name),l.handle&&(X.overrideChannelCreationParams.handle=l.handle),l.avatar_url&&(X.overrideChannelCreationParams.avatarUrl=l.avatar_url),l.encryptedBlobId&&(X.overrideChannelCreationParams.blobEncryptionId=l.encryptedBlobId),l.enableIdentityForAllChannelCreationDialog&&(l.encryptedBlobId?X.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
l.isDefaultProfilePhoto!==void 0&&(X.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=l.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),l.isNameChanged!==void 0&&(X.overrideChannelCreationParams.identityForAllChannelCreationNameTag=l.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),l.isHandleChanged!==
void 0&&(X.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=l.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),l.obakeImageSource&&(X.overrideChannelCreationParams.obakeImageSourceType=l.obakeImageSource))}};var kk=function(){};
_.S(kk,uU);kk.prototype.getApiPaths=function(X){return(X=this.getExtension(X))&&X.status==="DISLIKE"?NeQ:X&&X.status==="INDIFFERENT"?xtC:M6q};
kk.prototype.getExtension=function(X){return _.f(X,_.wg)};
kk.prototype.JSC$14488_buildRequest=function(X,H){H.target&&(X.target=H.target);if(H=this.getParams(H))X.params=H};
kk.prototype.getParams=function(X){switch(X==null?void 0:X.status){case "DISLIKE":return X.dislikeParams;case "INDIFFERENT":return X.removeLikeParams;default:return X==null?void 0:X.likeParams}};var xk=function(){};
_.S(xk,uU);xk.prototype.getApiPaths=function(){return vt_};
xk.prototype.getExtension=function(X){return _.f(X,MnH)};
xk.prototype.JSC$14488_buildRequest=function(X,H){H.settingItemId&&(X.settingItemId=H.settingItemId);H.stringValue!=null&&H.stringValue!==void 0?X.newValue={stringValue:H.stringValue}:H.intValue?X.newValue={intValue:H.intValue}:H.boolValue!==null&&H.boolValue!==void 0?X.newValue={boolValue:H.boolValue}:(X=new _.qd("Unknown value type for SetSettingEndpoint.",H),_.n2(X))};var D5=function(){};
_.S(D5,uU);D5.prototype.getApiPaths=function(){return QYC};
D5.prototype.getExtension=function(X){return _.f(X,gW_)||void 0};
D5.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.channelIds&&(X.channelIds=H.channelIds);H.siloName&&(X.siloName=H.siloName);H.params&&(X.params=H.params);l.botguardResponse&&(X.botguardResponse=l.botguardResponse);l.feature&&(X.clientFeature=l.feature)};
_.ja.Object.defineProperties(D5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var t4=function(){};
_.S(t4,uU);t4.prototype.getApiPaths=function(){return Ny6};
t4.prototype.getExtension=function(X){return _.f(X,ujF)||void 0};
t4.prototype.JSC$14488_buildRequest=function(X,H){H.channelIds&&(X.channelIds=H.channelIds);H.siloName&&(X.siloName=H.siloName);H.params&&(X.params=H.params)};
_.ja.Object.defineProperties(t4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var WZ=function(X){this.shareClientParamsProvider=X};
_.S(WZ,uU);WZ.prototype.getApiPaths=function(){return VTk};
WZ.prototype.getExtension=function(X){return _.f(X,ThQ)||_.f(X,_.Nh6)||_.f(X,QEG)};
WZ.prototype.JSC$14488_buildRequest=function(X,H){H.serializedShareEntity&&(X.serializedSharedEntity=H.serializedShareEntity);if(H.clientParamIdentifier){var l;if((l=this.shareClientParamsProvider)==null?0:l.clientParams.has(H.clientParamIdentifier)){l=this.shareClientParamsProvider;H=H.clientParamIdentifier;var b=l.clientParams.get(H);b&&l.clientParams.delete(H);X.clientParams=b}}};
WZ[rx]=[EnU];var Ej=function(){};
_.S(Ej,uU);Ej.prototype.getApiPaths=function(){return paC};
Ej.prototype.getExtension=function(X){return _.f(X,BMz)};
Ej.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var g$=function(){};
_.S(g$,uU);g$.prototype.getApiPaths=function(){return cKC};
g$.prototype.getExtension=function(X){return _.f(X,hpD)};
g$.prototype.JSC$14488_buildRequest=function(X,H){H.dismissal&&(X.items=[H.dismissal])};
_.ja.Object.defineProperties(g$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var GD=function(){};
_.S(GD,uU);GD.prototype.getApiPaths=function(){return qhD};
GD.prototype.getExtension=function(X){return _.f(X,_.eY)||void 0};
GD.prototype.JSC$14488_buildRequest=function(X,H,l){X.feedbackTokens=[];H.feedbackToken&&X.feedbackTokens.push(H.feedbackToken);if(H=H.cpn||l.cpn)X.feedbackContext={cpn:H};X.isFeedbackTokenUnencrypted=!!l.is_feedback_token_unencrypted;X.shouldMerge=!1;l.extra_feedback_tokens&&(X.shouldMerge=!0,X.feedbackTokens=X.feedbackTokens.concat(l.extra_feedback_tokens))};
_.ja.Object.defineProperties(GD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aU=function(){};
_.S(aU,uU);aU.prototype.getApiPaths=function(){return qhD};
aU.prototype.getExtension=function(X){return _.f(X,_.Yu)};
aU.prototype.JSC$14488_buildRequest=function(X,H,l){l.feedback_tokens&&(X.feedbackTokens=l.feedback_tokens,X.shouldMerge=!0)};
_.ja.Object.defineProperties(aU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Z5=function(){};
_.S(Z5,uU);Z5.prototype.getApiPaths=function(){return qhD};
Z5.prototype.getExtension=function(X){return _.f(X,mMy)};
Z5.prototype.JSC$14488_buildRequest=function(X,H){H.undoToken&&(X.feedbackTokens=[H.undoToken]);H.isUndoTokenUnencrypted&&(X.isFeedbackTokenUnencrypted=H.isUndoTokenUnencrypted)};
_.ja.Object.defineProperties(Z5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iW=function(){};
_.S(iW,uU);iW.prototype.getApiPaths=function(){return HhG};
iW.prototype.getExtension=function(X){return _.f(X,CcH)};
iW.prototype.JSC$14488_buildRequest=function(X,H){H.nextEndpoint&&_.f(H.nextEndpoint,_.aL)?X.nextEndpoint={urlEndpoint:_.f(H.nextEndpoint,_.aL)}:H.nextEndpoint&&_.f(H.nextEndpoint,_.ku)&&(X.nextEndpoint={watchEndpoint:_.f(H.nextEndpoint,_.ku)});H.setRacy&&(X.setRacy=H.setRacy);H.setControvercy&&(X.setControvercy=H.setControvercy)};var vZ=function(X){this.JSC$18509_storeWithEntities=X};
_.S(vZ,uU);vZ.prototype.getApiPaths=function(){return rKt};
vZ.prototype.getExtension=function(X){return _.f(X,GU6)};
vZ.prototype.JSC$14488_buildRequest=function(X,H){H.flowId&&(X.flowId=H.flowId);H.targetId&&(X.targetId=H.targetId);H.continuation&&(X.continuation=H.continuation);var l=H.flowStateEntityKey;if(H.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&l&&this.JSC$18509_storeWithEntities){var b;if(H=(b=this.JSC$18509_storeWithEntities.getState())==null?void 0:b.entities)if(b=_.NJ(l).entityType,b=_.JY(H,b,l))X.flowState=b,X.flowStateEntityKey=l}};
_.ja.Object.defineProperties(vZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
vZ[rx]=[jg];var RBZ=function(){};
_.S(RBZ,uU);_.R=RBZ.prototype;_.R.getApiPaths=function(){return ByQ};
_.R.JSC$14495_getStoreKey=function(){return _.nN("guide")};
_.R.getRequestConfig=function(){var X=this.JSC$14495_getStoreKey(),H;X&&(H={storeStrategy:{storeKey:X}});return H};
_.R.isNavigationCommand=function(){return!0};
_.R.getExtension=function(X){return _.f(X,_.Yu)};
_.R.JSC$14488_buildRequest=function(X){X.fetchLiveState=!0};var Oj=function(){};
_.S(Oj,uU);Oj.prototype.getApiPaths=function(){return kgY};
Oj.prototype.getExtension=function(X){return _.f(X,b0F)};
Oj.prototype.JSC$14488_buildRequest=function(){};var ml=function(){};
_.S(ml,uU);ml.prototype.getApiPaths=function(){return xCF};
ml.prototype.getExtension=function(X){return _.f(X,UjG)};
ml.prototype.JSC$14488_buildRequest=function(){};var Qu=function(){};
_.S(Qu,uU);Qu.prototype.getApiPaths=function(){return fw9};
Qu.prototype.getExtension=function(X){return _.f(X,_.uE)};
Qu.prototype.JSC$14488_buildRequest=function(X,H){H.token&&(X.continuation=H.token);var l,b;X==null||(l=X.context)==null||(b=l.user)==null||delete b.onBehalfOfUser};
Qu.prototype.getRequestConfig=function(X){var H={},l;if(((l=this.getExtension(X))==null?void 0:l.sessionIndex)!==void 0){var b;H={authStrategy:{sessionIndex:(b=this.getExtension(X))==null?void 0:b.sessionIndex}}}return H};var TD=function(){};
_.S(TD,uU);TD.prototype.JSC$14488_getRequest=function(X){var H=this.getExtension(X),l=X="";if(H==null?0:H.popup)X="true";if(H==null?0:H.disableSignout)l="true";H={};return{input:"/getAccountSwitcherEndpoint",requestShell:zP("/getAccountSwitcherEndpoint","GET",(H["X-YouTube-Delegation-Context"]=_.gx("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),H["X-YouTube-Account-Switcher-Popup"]=X,H["X-YouTube-Account-Switcher-Disable-Signout"]=l,H)),innerTubeRequest:{}}};
TD.prototype.getApiPaths=function(){return[]};
TD.prototype.getExtension=function(X){return _.f(X,_.NlO)};
TD.prototype.JSC$14488_buildRequest=function(){};var Nu=function(){};
_.S(Nu,uU);Nu.prototype.JSC$14488_getRequest=function(X){var H="/cross_account_channel_transfer";(X=this.getExtension(X))&&(H=fib(H,{target_session:X.targetSessionIndex,source_rapt:X.sourceRapt,rapt:X.targetRapt}));return{input:H,requestShell:zP(H,"GET"),innerTubeRequest:{}}};
Nu.prototype.getApiPaths=function(){return[]};
Nu.prototype.getExtension=function(X){return _.f(X,APQ)};
Nu.prototype.JSC$14488_buildRequest=function(){};var cZ=function(){};
_.S(cZ,uU);cZ.prototype.getApiPaths=function(){return JK9};
cZ.prototype.isNavigationCommand=function(){return!0};
cZ.prototype.getExtension=function(X){return _.f(X,_.Yu)};
cZ.prototype.JSC$14488_buildRequest=function(X){var H=_.oO().get("gsml","");H&&(X.safetyModeLockerObfuscatedGaiaId=H);X.userInterfaceTheme=_.PM(!0);_.fe()?X.deviceTheme="DEVICE_THEME_SELECTED":_.Agk()?X.deviceTheme="DEVICE_THEME_SUPPORTED":X.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var Xf=function(){};
_.S(Xf,uU);Xf.prototype.getApiPaths=function(){return fw9};
Xf.prototype.getExtension=function(X){return _.f(X,XGq)};
Xf.prototype.JSC$14488_buildRequest=function(X,H){if(H&&H.requestType&&(X.requestType=H.requestType,H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var l=H.nextUrl;l&&(_.SfZ(l)||Nk(l))&&(X.nextNavendpoint={urlEndpoint:{url:l}})}H&&H.channelSwitcherQuery&&(X.channelSwitcherQuery=H.channelSwitcherQuery);H&&H.triggerChannelCreation&&(X.triggerChannelCreation=H.triggerChannelCreation);var b;if(H==null?0:(b=H.contentOwnerConfig)==
null?0:b.externalContentOwnerId)X.contentOwnerConfig=H.contentOwnerConfig;X.callCircumstance=H&&H.requestType&&H.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var U,K;H=X==null?void 0:(U=X.context)==null?void 0:(K=U.user)==null?void 0:K.onBehalfOfUser;if(H!==void 0){X.obfuscatedSelectedGaiaId=H;var w,d;X==null||(w=X.context)==null||(d=w.user)==null||delete d.onBehalfOfUser}var B,q;if(U=X==null?void 0:(B=X.context)==null?void 0:(q=B.user)==null?
void 0:q.serializedDelegationContext)X.selectedSerializedDelegationContext=U};var Hd=function(){};
_.S(Hd,uU);Hd.prototype.getApiPaths=function(){return SOQ};
Hd.prototype.getExtension=function(X){return _.f(X,cxC)};
Hd.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var lt=function(){};
_.S(lt,uU);lt.prototype.getApiPaths=function(){return gRY};
lt.prototype.getExtension=function(X){return _.f(X,_.lEY)};
lt.prototype.JSC$14488_buildRequest=function(X,H){if(H=H.createBroadcastRequest)X.useMasks=H.useMasks,X.broadcastType=H.broadcastType,X.broadcastSource=H.broadcastSource,X.broadcastMetadata=H.broadcastMetadata,X.broadcastMetadataMask=H.broadcastMetadataMask,X.videoMetadata=H.videoMetadata,X.videoMetadataMask=H.videoMetadataMask,X.liveChatSettingsUpdate=H.liveChatSettingsUpdate,X.liveChatSettingsUpdateMask=H.liveChatSettingsUpdateMask,X.cloneVideoId=H.cloneVideoId,X.cloneWithOverrides=H.cloneWithOverrides,
X.targetEntity=H.targetEntity,X.scheduledRedirectMetadata=H.scheduledRedirectMetadata};var ox=function(){};
_.S(ox,uU);ox.prototype.getApiPaths=function(){return iBD};
ox.prototype.getExtension=function(X){return _.f(X,jcQ)};
ox.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.params&&(X.params=H.params);l.questionText&&(X.questionText=l.questionText);l.optionText&&l.optionText.length>0&&(X.optionText=l.optionText)};var bt=function(){};
_.S(bt,uU);bt.prototype.getApiPaths=function(){return mCv};
bt.prototype.getExtension=function(X){return _.f(X,NgG)};
bt.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var Ux=function(){};
_.S(Ux,uU);Ux.prototype.getApiPaths=function(){return XNQ};
Ux.prototype.getExtension=function(X){return _.f(X,Okq)};
Ux.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var $b=function(){};
_.S($b,uU);$b.prototype.getApiPaths=function(){return lyQ};
$b.prototype.getExtension=function(X){return _.f(X,mIY)};
$b.prototype.JSC$14488_buildRequest=function(X,H,l){H.params&&(X.params=H.params);H.continuation&&(X.continuation=H.continuation);l.currentPlayerState&&l.currentPlayerState.playerOffsetMs&&(X.currentPlayerState={playerOffsetMs:l.currentPlayerState.playerOffsetMs.toString()})};var KO=function(){};
_.S(KO,uU);KO.prototype.getApiPaths=function(){return ot_};
KO.prototype.getExtension=function(X){return _.f(X,v8z)};
KO.prototype.JSC$14488_buildRequest=function(X,H,l){H.params&&(X.params=H.params);l.continuation&&(X.continuation=l.continuation);"hidden"in l&&(X.webClientInfo={isDocumentHidden:l.hidden});l.isInvalidationTimeoutRequest&&(X.isInvalidationTimeoutRequest=l.isInvalidationTimeoutRequest);l.invalidationPayload&&(H=ikz(_.Ay(L$(l.invalidationPayload))),X.invalidationPayloadLastPublishAtUsec=ue(H,2));l.reloadActionPanel&&(X.reloadActionPanel=l.reloadActionPanel);l.fullReload&&(X.fullReload=l.fullReload);
l.currentPlayerState&&(X.currentPlayerState=l.currentPlayerState)};var Rx=function(){};
_.S(Rx,uU);Rx.prototype.getApiPaths=function(){return u7_};
Rx.prototype.getExtension=function(X){return _.f(X,ciq)};
Rx.prototype.JSC$14488_buildRequest=function(X,H){X.params=H.params};var CO=function(){};
_.S(CO,uU);CO.prototype.getApiPaths=function(){return HHY};
CO.prototype.getExtension=function(X){return _.f(X,RHQ)};
CO.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var wQ=function(){};
_.S(wQ,uU);wQ.prototype.getApiPaths=function(){return bHQ};
wQ.prototype.getExtension=function(X){return _.f(X,CUQ)};
wQ.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var dQ=function(){};
_.S(dQ,uU);dQ.prototype.getApiPaths=function(){return e1_};
dQ.prototype.getExtension=function(X){return _.f(X,riY)};
dQ.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var hH=function(){};
_.S(hH,uU);hH.prototype.getApiPaths=function(){return V6t};
hH.prototype.getExtension=function(X){return _.f(X,Jiz)};
hH.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var Ff=function(){};
_.S(Ff,uU);Ff.prototype.getApiPaths=function(){return Dt_};
Ff.prototype.getExtension=function(X){return _.f(X,JxY)};
Ff.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var Bd=function(){};
_.S(Bd,uU);Bd.prototype.getApiPaths=function(){return ZHY};
Bd.prototype.getExtension=function(X){return _.f(X,_.LRQ)};
Bd.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.params&&(X.params=H.params);l.client_message_id&&(X.clientMessageId=l.client_message_id);l.recaptcha_token&&(X.recaptchaToken=l.recaptcha_token);l.rich_message&&l.rich_message.text_segments?(H=l.rich_message.text_segments.map(function(b){var U={};b.text&&(U.text=b.text);b.emoji_id&&(U.emojiId=b.emoji_id);return U}),X.richMessage={textSegments:H}):l.message&&(X.message=l.message);
l.currentPlayerState&&(X.currentPlayerState=l.currentPlayerState)};var q5=function(){};
_.S(q5,uU);q5.prototype.getApiPaths=function(){return iHQ};
q5.prototype.getExtension=function(X){return _.f(X,YbQ)};
q5.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var sx=function(){};
_.S(sx,uU);sx.prototype.getApiPaths=function(){return TyG};
sx.prototype.getExtension=function(X){return _.f(X,Ait)};
sx.prototype.JSC$14488_buildRequest=function(X,H,l){H.isUserInitiated&&(X.isUserInitiated=H.isUserInitiated);H.initiationSource&&(X.initiationSource=H.initiationSource);l.locationInfo&&(X.context.client.locationInfo=l.locationInfo)};var M5=function(){};
_.S(M5,uU);M5.prototype.getApiPaths=function(){return ygG};
M5.prototype.getExtension=function(X){return _.f(X,ov_)};
M5.prototype.JSC$14488_buildRequest=function(X,H,l){H.metadataUpdateRequest&&(H=H.metadataUpdateRequest,X.encryptedVideoId=H.encryptedVideoId,H.liveChat&&(H=H.liveChat,X.liveChat||(X.liveChat={}),H.performAsExternalChannelId&&(X.liveChat.performAsExternalChannelId=H.performAsExternalChannelId),H.source&&(X.liveChat.source=H.source)));var b;if(l==null?0:(b=l.liveChat)==null?0:b.liveChatSettings)X.liveChat||(X.liveChat={}),l=l.liveChat.liveChatSettings,X.liveChat.newLiveChatSettings=l,X.liveChat.newLiveChatSettingsMask||
(X.liveChat.newLiveChatSettingsMask={}),l.emojiReactionSet&&(X.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var ut=function(){};
_.S(ut,uU);ut.prototype.getApiPaths=function(){return Ag_};
ut.prototype.getExtension=function(X){return _.f(X,_.eg6)};
ut.prototype.JSC$14488_buildRequest=function(X,H,l){l.continuation?X.continuation=l.continuation:H.videoId&&(X.videoId=H.videoId);l.clientParams&&(X.clientParams=l.clientParams)};var eE=function(){};
_.S(eE,uU);eE.prototype.getApiPaths=function(){return UtC};
eE.prototype.getExtension=function(X){return _.f(X,_.sb)};
eE.prototype.JSC$14488_buildRequest=function(X,H){X.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";X.fetchCommentsParams={};H.videoId&&(X.fetchCommentsParams.encryptedVideoId=H.videoId);H.postId&&(X.fetchCommentsParams.postId=H.postId);H.externalChannelId&&(X.fetchCommentsParams.externalChannelId=H.externalChannelId);H.linkedCommentId&&(X.fetchCommentsParams.linkedCommentId=H.linkedCommentId);(0,_.Bb.isEmpty)(X.fetchCommentsParams)&&delete X.fetchCommentsParams};var yg=function(){};
_.S(yg,uU);yg.prototype.getApiPaths=function(){return aB};
yg.prototype.JSC$14488_buildRequest=function(X){X.browseId="FEnotifications_inbox"};
yg.prototype.getExtension=function(X){return _.f(X,_.Yu)};var Vg=function(){};
_.S(Vg,uU);Vg.prototype.getApiPaths=function(){return UtC};
Vg.prototype.JSC$14488_buildRequest=function(X,H){H.signal==="GET_NOTIFICATIONS_MENU"&&(X.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");H.ctoken&&(X.ctoken=H.ctoken)};
var CIp=function(){};
_.S(CIp,Vg);CIp.prototype.getExtension=function(X){return _.f(X,_.Yu)};
var wEl=function(){};
_.S(wEl,Vg);wEl.prototype.getExtension=function(X){return _.f(X,$8F)};var Pd=function(){};
_.S(Pd,uU);Pd.prototype.getApiPaths=function(){return dt6};
Pd.prototype.getExtension=function(X){return _.f(X,_.Yu)};
Pd.prototype.JSC$14488_buildRequest=function(){};var fO=function(){};
_.S(fO,uU);fO.prototype.getApiPaths=function(){return Pn6};
fO.prototype.getExtension=function(X){return _.f(X,B29)||void 0};
fO.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params);H.secondaryParams&&(X.secondaryParams=H.secondaryParams)};var pO=function(){};
_.S(pO,uU);pO.prototype.getApiPaths=function(){return fyq};
pO.prototype.getExtension=function(X){return _.f(X,jE_)};
pO.prototype.JSC$14488_buildRequest=function(X,H){H.undo&&(X.undo=H.undo);H.serializedOptOut&&(X.serializedOptOut=H.serializedOptOut);H.serializedRecordInteractionsRequest&&(X.serializedRecordInteractionsRequest=H.serializedRecordInteractionsRequest)};var SE=function(){};
_.S(SE,uU);SE.prototype.getApiPaths=function(){return z1_};
SE.prototype.getExtension=function(X){return _.f(X,rxQ)};
SE.prototype.JSC$14488_buildRequest=function(X,H){H.serializedInteractionsRequest&&(X.serializedRecordNotificationInteractionsRequest=H.serializedInteractionsRequest)};var zk=function(){};
_.S(zk,uU);zk.prototype.getApiPaths=function(){return P8y};
zk.prototype.getExtension=function(X){return _.f(X,_.tw)};
zk.prototype.JSC$14488_buildRequest=function(X,H,l){H=H===void 0?{}:H;l=l===void 0?{}:l;H.videoId?X.videoId=H.videoId:H.playlistId&&(X.playlistId=H.playlistId);var b;X.crossDeviceDownloadData={isCrossDeviceDownload:(b=H.isCrossDeviceDownload)!=null?b:!1};!l.downloadToMobileEduShown&&H.isCrossDeviceDownload&&(X.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var U;if(b=(U=H.offlineWebClientEligibility)!=null?U:l.offlineWebClientEligibility)X.offlineWebClientEligibility=b;var K;if(U=(K=H.preferredFormatType)!=
null?K:l.preferredFormatType)X.preferredFormatType=U;var w;if(K=(w=H.lastOfflineQualitySettingsSavedMs)!=null?w:l.lastOfflineQualitySettingsSavedMs)X.lastOfflineQualitySettingsSavedMs=K;H.params&&(X.params=H.params)};var nO=function(){};
_.S(nO,uU);nO.prototype.getApiPaths=function(){return gg};
nO.prototype.getExtension=function(X){return _.f(X,_.uE)};
nO.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.token&&(X.continuation=H.token);l.formData&&(X.formData=l.formData)};var kb=function(){};
_.S(kb,uU);kb.prototype.getApiPaths=function(){return gg};
kb.prototype.getExtension=function(X){return _.f(X,LWQ)};
kb.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;X.continuation=l.continuation};var xb=function(){};
_.S(xb,uU);xb.prototype.getApiPaths=function(){return gg};
xb.prototype.getExtension=function(X){return _.f(X,_.up)};
xb.prototype.JSC$14488_buildRequest=function(X,H){var l,b=H.panelIdentifier||((l=H.identifier)==null?void 0:l.tag);b&&(X.panelId=b);var U;if((U=H.globalConfiguration)==null?0:U.params){var K;X.params=(K=H.globalConfiguration)==null?void 0:K.params}if(_.P("enable_ai_companion")){var w;H=H.engagementPanelExtras;if(H==null?0:(w=H.aiCompanionPanelExtras)==null?0:w.includeClientConversationId){var d,B;w=(B=(d=_.jJ().resolve(_.c$(mbl)))==null?void 0:d("conversations"))==null?void 0:B.get("conversation_id")}else w=
void 0;if(d=w)X.formData=Object.assign({},X.formData,{inputComposerFormData:{conversationId:d}})}};
_.ja.Object.defineProperties(xb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Du=function(){};
_.S(Du,uU);Du.prototype.getApiPaths=function(){return gg};
Du.prototype.getExtension=function(X){return _.f(X,i0Y)};
Du.prototype.JSC$14488_buildRequest=function(X,H){H.panelLoadingStrategy&&x1l(X,H.panelLoadingStrategy)};var tH=function(){};
_.S(tH,uU);tH.prototype.getApiPaths=function(){return gg};
tH.prototype.getExtension=function(X){return _.f(X,UyY)};
tH.prototype.JSC$14488_buildRequest=function(X,H){H.loadingStrategy&&x1l(X,H.loadingStrategy)};var Wd=function(){};
_.S(Wd,uU);Wd.prototype.getApiPaths=function(){return gg};
Wd.prototype.getExtension=function(X){return _.f(X,_.$$)};
Wd.prototype.JSC$14488_buildRequest=function(X,H){H.panelLoadingStrategy&&x1l(X,H.panelLoadingStrategy)};var Ex=function(){};
_.S(Ex,uU);Ex.prototype.getApiPaths=function(){return gg};
Ex.prototype.getExtension=function(X){return _.f(X,$yD)};
Ex.prototype.JSC$14488_buildRequest=function(X,H){var l,b=(l=H.contentSourcePanelIdentifier)==null?void 0:l.tag;b&&(X.panelId=b);var U;if((U=H.globalConfiguration)==null?0:U.params){var K;X.params=(K=H.globalConfiguration)==null?void 0:K.params}};var gQ=function(){};
_.S(gQ,uU);gQ.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
gQ.prototype.getExtension=function(X){return _.f(X,KG_)};
gQ.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var Gk=function(){};
_.S(Gk,uU);Gk.prototype.getApiPaths=function(){return IyG};
Gk.prototype.getExtension=function(X){return _.f(X,wP6)};
Gk.prototype.JSC$14488_buildRequest=function(X,H){H.externalChannelId&&(X.externalChannelId=H.externalChannelId);H.superChatAction&&(X.superChatAction=H.superChatAction);H.superStickersAction&&(X.superStickersAction=H.superStickersAction)};var ax=function(){};
_.S(ax,uU);ax.prototype.getApiPaths=function(){return Lk_};
ax.prototype.getExtension=function(X){return _.f(X,oWQ)||_.f(X,HKy)};
ax.prototype.JSC$14488_buildRequest=function(X,H){H.videoIds?X.videoIds=H.videoIds:H.videoId&&(X.videoIds=[H.videoId]);H.playlistId&&(X.playlistId=H.playlistId);H.params&&(X.params=H.params);X.excludeWatchLater=!1};var Zu=function(){};
_.S(Zu,uU);Zu.prototype.getApiPaths=function(){return vRG};
Zu.prototype.getExtension=function(X){return _.f(X,_.PX)};
Zu.prototype.JSC$14488_buildRequest=function(X,H,l){l.create_playlist_title?X.title=l.create_playlist_title:H.title&&(X.title=H.title);if(l.create_playlist_privacy_status&&typeof l.create_playlist_privacy_status==="number"){a:{var b=l.create_playlist_privacy_status;if(b!==0){if(b===1){b="PUBLIC";break a}if(b===2){b="UNLISTED";break a}}b="PRIVATE"}X.privacyStatus=b}else H.privacyStatus&&(X.privacyStatus=H.privacyStatus);l.create_playlist_description&&(X.description=l.create_playlist_description);H.videoIds&&
(X.videoIds=H.videoIds);H.params&&(X.params=H.params);H.sourcePlaylistId&&(X.sourcePlaylistId=H.sourcePlaylistId)};var vd=function(){};
_.S(vd,uU);vd.prototype.getApiPaths=function(){return QrH};
vd.prototype.getExtension=function(X){return _.f(X,hgD)};
vd.prototype.JSC$14488_buildRequest=function(X,H){X.playlistId=H.playlistId};var Ox=function(){};
_.S(Ox,uU);Ox.prototype.getApiPaths=function(){return $tC};
Ox.prototype.getExtension=function(X){return _.f(X,ODF)};
Ox.prototype.JSC$14488_buildRequest=function(X,H){H.playlistId&&(X.playlistId=H.playlistId);H.params&&(X.params=H.params)};var m0=function(){};
_.S(m0,uU);m0.prototype.getApiPaths=function(){return Shq};
m0.prototype.getExtension=function(X){return _.f(X,_.MI)||void 0};
m0.prototype.JSC$14488_buildRequest=function(X,H){H.actions&&(X.actions=H.actions);H.params&&(X.params=H.params);H.playlistId&&(X.playlistId=H.playlistId)};var Qg=function(){};
_.S(Qg,uU);_.R=Qg.prototype;_.R.getApiPaths=function(){return ntQ};
_.R.getExtension=function(X){return _.f(X,_.HM)};
_.R.JSC$14488_buildRequest=function(X,H){H.videoId&&(X.playerRequest={videoId:H.videoId},H.playerParams&&(X.playerRequest.params=H.playerParams),H.racyCheckOk&&(X.playerRequest.racyCheckOk=!!H.racyCheckOk),H.contentCheckOk&&(X.playerRequest.contentCheckOk=!!H.contentCheckOk));H.params&&(X.params=H.params);H.inputType&&(X.inputType=H.inputType);X.disablePlayerResponse=!0};
_.R.getRequestConfig=function(X){var H;(X=this.JSC$14495_getStoreKey(X))&&(H={storeStrategy:{storeKey:X}});_.P("web_log_reels_ticks")&&(H=H||{},H.requestTick="r_wrs",H.responseTick="r_wrr");return H};
_.R.JSC$14495_getStoreKey=function(X){X=this.getExtension(X);if(X!=null&&X.videoId){var H={videoId:X.videoId};X.params&&(H.params=X.params);return _.nN("reel_item_watch",H)}};var Tk=function(){};
_.S(Tk,uU);_.R=Tk.prototype;_.R.getApiPaths=function(){return ktq};
_.R.getExtension=function(X){return _.f(X,_.HM)};
_.R.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;X.sequenceParams=H.sequenceParams;var b;((b=l)==null?0:b.contentPlaybackContext)&&_.P("web_shorts_prefetch_service_enabled")&&(X.playbackContext={contentPlaybackContext:l.contentPlaybackContext})};
_.R.JSC$14495_getStoreKey=function(X){if(_.P("shorts_controller_retrieve_seedless_sequence_v2")&&(X=this.getExtension(X),X==null?0:X.sequenceParams))return _.nN("reel_watch_sequence",{sequenceParams:X.sequenceParams})};
_.R.getRequestConfig=function(X){X=this.JSC$14495_getStoreKey(X);var H;X&&(H={storeStrategy:{storeKey:X}});H=H||{};H.requestTick="r_wsrs";H.responseTick="r_wsrr";H.processorTick="r_wsrp";return H};
var N5=function(){};
_.S(N5,uU);N5.prototype.getApiPaths=function(){return ktq};
N5.prototype.getExtension=function(X){return _.f(X,_.uE)};
N5.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.token&&(X.continuation=H.token);var b;((b=l)==null?0:b.contentPlaybackContext)&&_.P("web_shorts_prefetch_service_enabled")&&(X.playbackContext={contentPlaybackContext:l.contentPlaybackContext})};
N5.prototype.getRequestConfig=function(X){X=this.JSC$14495_getStoreKey(X);var H;X&&(H={storeStrategy:{storeKey:X}});H=H||{};H.requestTick="r_wsrs";H.responseTick="r_wsrr";H.processorTick="r_wsrp";return H};var cd=function(){};
_.S(cd,uU);cd.prototype.getApiPaths=function(){return jrQ};
cd.prototype.getExtension=function(X){return _.f(X,_.tcQ)};
cd.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.flagAction&&(X.action=H.flagAction);H.flagRequestType&&(X.flagRequestType=H.flagRequestType);H.additionalDetailCheckboxChecked&&(X.additionalDetailCheckboxChecked=H.additionalDetailCheckboxChecked);H.legalCheckboxChecked&&(X.legalCheckboxChecked=H.legalCheckboxChecked);H={};l.flag_issue_type!==void 0&&(H.issue=l.flag_issue_type);l.flag_affiliation!==void 0&&(H.affiliation=l.flag_affiliation);l.flag_full_name&&(H.fullName=l.flag_full_name);
Object.keys(H).length&&(X.legalReportDetails=H);if(l.flag_description||l.text)X.userComments=l.flag_description||l.text;H={};l.minutes!==void 0&&l.seconds!==void 0&&(H.minutes=l.minutes,H.seconds=l.seconds);l.vss_id&&(H.vssId=l.vss_id);Object.keys(H).length&&(X.videoReportDetails=H);H={};l.video_ids&&(H.videoIds=l.video_ids);l.impersonated_channel_url&&(H.impersonatedChannelUrl=l.impersonated_channel_url);Object.keys(H).length&&(X.channelAbuseReportDetails=H)};
_.ja.Object.defineProperties(cd.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jE=function(){};
_.S(jE,uU);jE.prototype.getApiPaths=function(){return AKt};
jE.prototype.getExtension=function(X){return _.f(X,KR_)};
jE.prototype.JSC$14488_buildRequest=function(X,H){H.blockedForKidsContent&&(X.blockedForKidsContent=H.blockedForKidsContent)};var rQ=function(){};
_.S(rQ,uU);rQ.prototype.getApiPaths=function(){return t6_};
rQ.prototype.getExtension=function(X){return _.f(X,X28)};
rQ.prototype.JSC$14488_buildRequest=function(X,H,l){X.params=H.params;l.impersonated_channel_url&&(X.impersonatedChannelUrl=l.impersonated_channel_url)};var JH=function(){};
_.S(JH,uU);JH.prototype.getApiPaths=function(){return sYq};
JH.prototype.getExtension=function(X){return _.f(X,_.R6F)};
JH.prototype.JSC$14488_buildRequest=function(X,H){H.items&&(X.items=H.items);H.kidGaiaId&&(X.kidGaiaId=H.kidGaiaId)};var LO=function(){};
_.S(LO,uU);LO.prototype.getApiPaths=function(){return YOF};
LO.prototype.getExtension=function(X){return _.f(X,_.XOY)};
LO.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params);H.targetId&&(X.targetId=H.targetId)};var Yb=function(){};
_.S(Yb,uU);Yb.prototype.getApiPaths=function(){return Gtv};
Yb.prototype.getExtension=function(X){return _.f(X,KV9)};
Yb.prototype.JSC$14488_buildRequest=function(X,H){H.externalVideoId&&(X.externalVideoId=H.externalVideoId);H.query&&(X.query=H.query);H.sourceTimelines&&(X.sourceTimelines=H.sourceTimelines)};var Ix=function(){};
_.S(Ix,uU);Ix.prototype.getApiPaths=function(){return ayz};
Ix.prototype.getExtension=function(X){return _.f(X,_.uE)||void 0};
Ix.prototype.JSC$14488_buildRequest=function(X,H){H.token&&(X.continuation=H.token)};
_.dFe=function(){};
_.S(_.dFe,uU);_.R=_.dFe.prototype;_.R.getApiPaths=function(){return ayz};
_.R.getExtension=function(X){return _.f(X,_.IH)||void 0};
_.R.isNavigationCommand=function(){return!0};
_.R.JSC$14495_getStoreKey=function(X,H){H=H===void 0?{}:H;if(!H.disableCache&&(X=this.getExtension(X))&&X.query)return H={query:X.query},X.params&&(H.params=X.params),_.nN("search",H)};
_.R.JSC$14488_buildRequest=function(X,H,l){H.query&&(X.query=H.query);H.params&&(X.params=H.params);_.P("enable_page_type_in_search_request")&&H.pageType&&(X.searchPageType=H.pageType);if(!_.P("web_forward_suggest_stats_killswitch")){var b=_.f(H,Ev_);b&&(X.suggestStats=b)}var U;!_.P("kevlar_searchbox_stats_killswitch")&&((U=l.tempData)==null?0:U.gs_l)&&!_.f(H,Ev_)&&(X.webSearchboxStatsUrl="/search?oq="+(l.tempData.oq||"")+"&gs_l="+l.tempData.gs_l);var K;if((K=l.tempData)==null?0:K.entityMid)H=X.suggestionSearchParams||
{},H.entityMid=l.tempData.entityMid,X.suggestionSearchParams=H;H=_.oO().getFlag(186);X.inlineSettingStatus=H?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";l.isFromShorts&&(X.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.R.getRequestConfig=function(X,H){H=H===void 0?{}:H;X=this.JSC$14495_getStoreKey(X,H);var l;X&&(l={storeStrategy:{storeKey:X}});_.P("web_log_search_ticks_ks")||(l=l||{},l.requestTick="sr_s",l.responseTick="sr_r");return l};var AH=function(){};
_.S(AH,uU);AH.prototype.getApiPaths=function(){return Cnv};
AH.prototype.getExtension=function(X){return _.f(X,pOv)};
AH.prototype.JSC$14488_buildRequest=function(X,H){H.serializedGetSharingProviderDataParams&&(X.serializedGetSharingProviderDataParams=H.serializedGetSharingProviderDataParams)};var X2=function(){};
_.S(X2,uU);X2.prototype.getApiPaths=function(){return wNQ};
X2.prototype.getExtension=function(X){return _.f(X,zpQ)};
X2.prototype.JSC$14488_buildRequest=function(X,H){H.endpoint&&(X.endpoint=H.endpoint);H.action&&(X.action=H.action)};var hB$=function(){};
_.S(hB$,uU);hB$.prototype.getApiPaths=function(){return TeY};
hB$.prototype.getExtension=function(X){return _.f(X,Fj9)};
hB$.prototype.JSC$14488_buildRequest=function(X,H){X.videoId=H.videoId;H.scheduledRedirectMetadataSourceVideoId&&(X.scheduledRedirectMetadata={sourceVideoId:H.scheduledRedirectMetadataSourceVideoId})};var FKC=function(){};
_.S(FKC,uU);FKC.prototype.getApiPaths=function(){return OHG};
FKC.prototype.getExtension=function(X){return _.f(X,_.dPF)};
FKC.prototype.JSC$14488_buildRequest=function(X,H){X.params=H.params;X.correctionText=H.correctionText};var Bvd=function(){};
_.S(Bvd,uU);Bvd.prototype.getApiPaths=function(){return eYW};
Bvd.prototype.getExtension=function(X){return _.f(X,_.Rpq)};
Bvd.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params);X.searchQuery=H.searchQuery;X.languageCode=H.languageCode;X.kind=H.kind;X.name=H.name;X.externalVideoId=H.externalVideoId};var qT$=function(){};
_.S(qT$,uU);qT$.prototype.getApiPaths=function(){return o5G};
qT$.prototype.getExtension=function(X){return _.f(X,nX_)};
qT$.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.params=H.params)};var Ho=function(X){this.JSC$18785_storeWithEntities=X};
_.S(Ho,uU);Ho.prototype.getApiPaths=function(){return Wk_};
Ho.prototype.getExtension=function(X){return _.f(X,xPQ)||_.f(X,tbz)};
Ho.prototype.JSC$14488_buildRequest=function(X,H,l){l.client_data&&(X.clientData=l.client_data);if(H.commerceActionConfig){var b=H.commerceActionConfig;H=b.actionId;b=b.commerceActionParams;H&&(X.actionId=H);b&&(X.commerceActionParams=b)}else{var U=H.actionId,K=H.commerceActionParams;l=H.entityKeys;U&&(X.actionId=U);K&&(X.commerceActionParams=K);var w;H=(b=this.JSC$18785_storeWithEntities)==null?void 0:(w=b.getState())==null?void 0:w.entities;if(l&&H){b=[];w=_.C(l);for(l=w.next();!l.done;l=w.next())if(U=
l.value,l=_.NJ(U).entityType,U=_.JY(H,l,U))K={},b.push((K[l]=U,K));X.entityMutationPayloads=b}}};
Ho.prototype.getRequestConfig=function(X){var H,l=(H=_.f(X,xPQ))==null?void 0:H.requestSequenceType;if(l&&X.clickTrackingParams&&l!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:X.clickTrackingParams,sequenceType:l}}};
Ho[rx]=[jg];var lq=function(){};
_.S(lq,uU);lq.prototype.getApiPaths=function(){return bh6};
lq.prototype.getExtension=function(X){return _.f(X,_.Lwz)};
lq.prototype.JSC$14488_buildRequest=function(X,H){H.feedbackData&&(X.feedbackData=H.feedbackData);H.params&&(X.itemParams=H.params)};
_.ja.Object.defineProperties(lq.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sAA=function(){};
_.S(sAA,uU);sAA.prototype.getApiPaths=function(){return Ux9};
sAA.prototype.getExtension=function(X){return _.f(X,YI6)};
sAA.prototype.JSC$14488_buildRequest=function(X,H,l){l.payments_payload&&(X.paymentsPayload=l.payments_payload);l.offer_params&&(X.offerParams=l.offer_params);H.transactionParams&&(X.transactionParams=H.transactionParams)};var MOZ=function(){};
_.S(MOZ,uU);MOZ.prototype.getApiPaths=function(){return $xH};
MOZ.prototype.getExtension=function(X){return _.f(X,_.Imv)};
MOZ.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.buybucketParams&&(X.buybucketData={params:H.buybucketParams},H.stickerParams?X.buybucketData.stickerParams=H.stickerParams:(l.rich_chat_message?X.buybucketData.richChatMessage=l.rich_chat_message:l.chat_message_text&&(X.buybucketData.chatMessageText=l.chat_message_text),l.purchase_price_micros&&(X.buybucketData.purchasePriceMicros=l.purchase_price_micros.toString())));H.donationAmountMicros&&(X.tipAmountMicros=H.donationAmountMicros,
H.tipParams&&(X.tipParams=H.tipParams));H.offerParams&&(X.offerParams=H.offerParams);H.productData&&(X.productData=H.productData);H.transactionParams&&(X.transactionParams=H.transactionParams)};var ov=function(){};
_.S(ov,uU);ov.prototype.getApiPaths=function(){return KJF};
ov.prototype.getExtension=function(X){return _.f(X,oR_)};
ov.prototype.JSC$14488_buildRequest=function(X,H){H.updateFopParams&&(X.updateFopParams=H.updateFopParams)};var uJY=function(){};
_.S(uJY,uU);uJY.prototype.getApiPaths=function(){return Rx9};
uJY.prototype.getExtension=function(X){return _.f(X,_.W6)};
uJY.prototype.JSC$14488_buildRequest=function(X,H){H.couponCode&&(X.couponCode=H.couponCode);H.params&&(X.itemParams=H.params)};var eBd=function(){};
_.S(eBd,uU);eBd.prototype.getApiPaths=function(){return CVz};
eBd.prototype.getExtension=function(X){return _.f(X,_.DP6)};
eBd.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;H.params&&(X.params=H.params);l.ctk&&(X.clientToken=l.ctk)};var bq=function(X){this.JSC$18820_storeWithEntities=X};
_.S(bq,uU);bq.prototype.getApiPaths=function(){return wnQ};
bq.prototype.getExtension=function(X){return _.f(X,_.zI)};
bq.prototype.JSC$14488_buildRequest=function(X,H,l){l.purchase_price_micros&&(X.productData={pdgData:{purchasePriceMicros:l.purchase_price_micros.toString()}},l.rich_chat_message&&(X.productData.pdgData.richChatMessage=l.rich_chat_message),l.currency_code&&(X.productData.pdgData.currencyCode=l.currency_code));H.transactionParams&&(X.transactionParams=H.transactionParams);H.clientLocationContext&&(X.clientLocationContext=H.clientLocationContext);l.payments_payload&&(X.paymentsPayload=l.payments_payload);
l.funds_guarantee_callback_client_data&&(X.fundsGuaranteeCallbackClientData=l.funds_guarantee_callback_client_data);var b,U;l=(b=this.JSC$18820_storeWithEntities)==null?void 0:(U=b.getState())==null?void 0:U.entities;if(H.entityKeys&&l){b=[];H=_.C(H.entityKeys);for(U=H.next();!U.done;U=H.next()){var K=U.value;U=_.NJ(K).entityType;if(K=_.JY(l,U,K)){var w={};b.push((w[U]=K,w))}}X.entityMutationPayloads=b}};
bq[rx]=[jg];var yod=function(){};
_.S(yod,uU);yod.prototype.getApiPaths=function(){return dxv};
yod.prototype.getExtension=function(X){return _.f(X,ATz)};
yod.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;l.backend_analytics&&(X.serializedBackendAnalyticsEvent=l.backend_analytics);H.offerParams&&(X.offerParams=H.offerParams)};var VOY=function(){};
_.S(VOY,uU);VOY.prototype.getApiPaths=function(){return Rx9};
VOY.prototype.getExtension=function(X){return _.f(X,ObL)};
VOY.prototype.JSC$14488_buildRequest=function(X,H){H.params&&(X.itemParams=H.params)};var PIC=function(){};
_.S(PIC,uU);PIC.prototype.getApiPaths=function(){return hxG};
PIC.prototype.getExtension=function(X){return _.f(X,_.amt)};
PIC.prototype.JSC$14488_buildRequest=function(X,H,l){l.resume_time_ms&&(X.resumeTimeMs=l.resume_time_ms);H.pauseParams&&(X.pauseParams=H.pauseParams)};var fMA=function(){};
_.S(fMA,uU);fMA.prototype.getApiPaths=function(){return FJG};
fMA.prototype.getExtension=function(X){return _.f(X,_.lwz)};
fMA.prototype.JSC$14488_buildRequest=function(X,H,l){l=l===void 0?{}:l;l.c&&(X.redeemCode=l.c);l.rd&&(X.riskData=l.rd);l.ctk&&(X.clientToken=l.ctk)};var pEC=function(){};
_.S(pEC,uU);pEC.prototype.getApiPaths=function(){return B7Y};
pEC.prototype.getExtension=function(X){return _.f(X,_.ZVQ)};
pEC.prototype.JSC$14488_buildRequest=function(X,H){H.resumeParams&&(X.resumeParams=H.resumeParams)};var Ug=function(X,H){this.clientName=X;this.defaultExpirationDelayMs=H};
Ug.prototype.put=function(X,H){var l=this,b;return _.h(function(U){b=Object.assign({},H.data);b.key=X;b.clientName=l.clientName;b.expireTimestampMs===void 0&&(b.expireTimestampMs=(Math.round((0,_.Jl)())+l.defaultExpirationDelayMs).toString());return U.return(l.putInternal(X,b))})};
Ug[rx]=[g5,YHZ];var STY=function(){Ug.apply(this,arguments);this.JSC$18850_responseStore=new Map};
_.S(STY,Ug);_.R=STY.prototype;_.R.get=function(X){var H=this;return _.h(function(l){return l.return(L0(H,X))})};
_.R.putInternal=function(X,H){var l=this,b,U,K;return _.h(function(w){b=l.defaultExpirationDelayMs;H.expireTimestampMs&&(b=Number(H.expireTimestampMs)-Math.round((0,_.Jl)()),U=_.Yy("mweb_override_response_store_expiration_ms"),U>0&&U<b&&(b=U));K=setTimeout(function(){l.remove(X)},b);
l.JSC$18850_responseStore.set(X,{entryData:H,timer:K});_.m5(w)})};
_.R.remove=function(X){var H=this;return _.h(function(l){zBd(H,X);_.m5(l)})};
_.R.removeAll=function(){var X=this;return _.h(function(H){X.JSC$18850_responseStore.forEach(function(l){clearTimeout(l.timer)});
X.JSC$18850_responseStore.clear();_.m5(H)})};
_.R.has=function(X){return!!this.JSC$18850_responseStore.get(X)};
_.R.getKeys=function(){return this.JSC$18850_responseStore.keys()};
var L0=function(X,H){if(X=X.JSC$18850_responseStore.get(H))return new _.JW(X.entryData)},zBd=function(X,H){var l=X.JSC$18850_responseStore.get(H);
l&&(clearTimeout(l.timer),X.JSC$18850_responseStore.delete(H))};
STY.prototype.markAsProcessed=function(X){var H=this,l;return _.h(function(b){l=H.JSC$18850_responseStore.get(X);if(!l)return b.jumpTo(0);l.entryData.isProcessed=!0;return b.yield(H.putInternal(X,l.entryData),0)})};var D1y;var WHm=function(X,H,l){Ug.call(this,X,H);this.token=l};
_.S(WHm,Ug);_.R=WHm.prototype;_.R.get=function(X){var H=this,l,b;return _.h(function(U){return U.nextAddress==1?U.yield(JG(H.token),2):U.nextAddress!=3?(l=U.yieldResult,U.yield(l.get("ResponseStore",[X,H.clientName]),3)):(b=U.yieldResult)?U.return(new _.JW(b)):U.return(void 0)})};
_.R.putInternal=function(X,H){var l=this,b;return _.h(function(U){if(U.nextAddress==1)return U.yield(JG(l.token),2);b=U.yieldResult;return U.yield(b.put("ResponseStore",H),0)})};
_.R.remove=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(JG(H.token),2);l=b.yieldResult;return b.return(l.delete("ResponseStore",[X,H.clientName]))})};
_.R.removeAll=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return l.yield(JG(X.token),2);H=l.yieldResult;return l.yield(EB_(H,IDBKeyRange.only(X.clientName)),0)})};
_.R.has=function(){throw Error("lj");};
_.R.markAsProcessed=function(X){var H=this,l,b;return _.h(function(U){if(U.nextAddress==1)return U.yield(JG(H.token),2);if(U.nextAddress!=3)return l=U.yieldResult,U.yield(l.get("ResponseStore",[X,H.clientName]),3);b=U.yieldResult;if(!b)return U.jumpTo(0);b.isProcessed=!0;return U.yield(l.put("ResponseStore",b),0)})};_.$C=new _.gz("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var ne$=function(X){var H;this.stateTagsData=(H=X.responseContext)==null?void 0:H.stateTags},kB5=function(X){var H;
return((H=X.stateTagsData)==null?void 0:H.stateTagsModified)||[]};var xFx;xFx=function(X){this.JSC$18863_responseStore=X};
_.n9=function(X,H,l){if(!_.P("state_tags_killswitch")){var b=new ne$(H);if(kB5(b).length>0){var U=X.JSC$18863_responseStore.getKeys();U=_.C(U);for(var K=U.next();!K.done;K=U.next()){K=K.value;var w=L0(X.JSC$18863_responseStore,K);if(w){var d=_.Nf(w);a:{var B=void 0;w=kB5(b);d=((B=(new ne$(d)).stateTagsData)==null?void 0:B.relevantStateTags)||[];B=_.C(d);for(d=B.next();!d.done;d=B.next())if(d=d.value,d.stateTag!=null&&w.includes(d.stateTag)&&d.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){w=
!0;break a}w=!1}w&&zBd(X.JSC$18863_responseStore,K)}}}}var q;b=(q=H.responseContext)==null?void 0:q.maxAgeSeconds;l&&b&&Number(b)>0&&(H=TE(H,b),X.JSC$18863_responseStore.put(l,new _.JW(H)))};
xFx.prototype.handleResponse=function(X,H){if(!H)throw Error("mj");var l,b;H=(l=H.config)==null?void 0:(b=l.storeStrategy)==null?void 0:b.storeKey;_.n9(this,X,H)};
xFx[rx]=[_.r2];_.N8z=new _.gz("STORE_RESPONSE_PROCESSOR_TOKEN");var DFx=function(X){this.JSC$18866_responseStore=X};
DFx.prototype.handleResponse=function(X,H){if(H.input.match(_.E9(ktq))){var l;if(X==null?0:(l=X.entries)==null?0:l.length)for(X=_.C(X.entries),H=X.next();!H.done;H=X.next()){l=H.value.command;var b=void 0;H=(b=_.f(l,_.HM))==null?void 0:b.unserializedPrefetchData;if(!l||!H)break;b=(new Qg).JSC$14495_getStoreKey(l);var U=_.f(H,aoq),K=void 0,w=void 0,d=void 0,B=void 0,q=void 0,u=void 0,e=((K=U)==null?0:(w=K.responseContext)==null?0:w.maxAgeSeconds)&&Number((d=U)==null?void 0:(B=d.responseContext)==null?
void 0:B.maxAgeSeconds)>0?Number((q=U)==null?void 0:(u=q.responseContext)==null?void 0:u.maxAgeSeconds):600;b&&e>0&&(U=TE(U,e),this.JSC$18866_responseStore.put(b,new _.JW(U)));l=(new lW).JSC$14495_getStoreKey(l);H=_.f(H,yL6);B=d=w=K=U=b=void 0;q=((b=H)==null?0:(U=b.responseContext)==null?0:U.maxAgeSeconds)&&Number((K=H)==null?void 0:(w=K.responseContext)==null?void 0:w.maxAgeSeconds)>0?Number((d=H)==null?void 0:(B=d.responseContext)==null?void 0:B.maxAgeSeconds):600;l&&q>0&&(H=TE(H,q),this.JSC$18866_responseStore.put(l,
new _.JW(H)))}}};
DFx[rx]=[_.r2];var tOp=function(X,H){this.innertubeTransportService=X;this.JSC$18869_commandHandler=H};
tOp.prototype.submitForm=function(X,H,l,b,U){var K=this,w,d,B,q,u,e;return _.h(function(y){if(y.nextAddress==1)return w={submitId:X,formData:H,submitBehavior:l,params:b},d=_.E9(mtF),y.yield(_.pg(K.innertubeTransportService,w,d,U),2);B=y.yieldResult;if(!B)return y.return(Promise.reject(new _.qd("Submit API returned an undefined response. Submit ID: "+X)));q=B;(e=(u=q)==null?void 0:u.onResponseReceived)&&K.JSC$18869_commandHandler.resolveCommand(e);return y.return(q)})};
tOp[rx]=[_.b$,_.Vr];var WKa=function(){this.scheduler=_.qV()},EeN;
WKa.prototype.pause=function(){throw Error("nj");};
WKa.prototype.resume=function(){throw Error("nj");};
WKa.prototype.queue=function(X){var H=this,l=_.kj(),b=_.eh(this.scheduler,function(){try{var U;if(_.JF.instance)var K=_.JF.instance;else{var w=new _.qd("Error: Unexpected uninitialized CommandHandler.");_.n2(w);K=void 0}(U=K)==null||U.resolveCommand(X.command);l.resolve()}catch(d){l.reject(d)}});
l.promise.thenCatch(function(U){U instanceof _.nG&&H.scheduler.cancelJob(b)});
return l.promise};
WKa.prototype.queueAll=function(X){var H=new Map;X=_.C(X);for(var l=X.next();!l.done;l=X.next())l=l.value,H.set(l.id,this.queue(l));return H};var GBZ=function(X,H){var l=this;this.taskModel=X;this.onTaskCancelledCallback=H;this.resolver=_.kj();X=X.proto.prefetchConfig;if(!X)throw Error("oj");if(!X.prefetchAction)throw Error("pj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(b){b instanceof _.nG&&(ge5(l,l.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),l.onTaskCancelledCallback(l.taskModel.id,l.jobId),l.tick("pcc"));
throw b;});
this.timerName=this.taskModel.id;_.qJ(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
GBZ.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 ge5=function(X,H){_.FS({prefetchInfo:{cancellationReason:H}},X.timerName)};
GBZ.prototype.tick=function(X){_.sf(X,void 0,this.timerName)};var Rv=function(){var X=this;this.scheduler=_.qV();this.maxInflightTasks=_.Yy("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Yy("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new jsz;this.onTaskCancelled=function(H,l){l&&X.scheduler.cancelJob(l);aMy(X,H);KE(X,3)}},Z8A=function(){Rv.instance||(Rv.instance=new Rv);
return Rv.instance};
Rv.prototype.pause=function(){this.prefetchCoordinatorState=0};
Rv.prototype.resume=function(){KE(this,0)};
Rv.prototype.queue=function(X){X=i8y(this,X);KE(this,1);return X};
Rv.prototype.queueAll=function(X){var H=new Map;X=_.C(X);for(var l=X.next();!l.done;l=X.next())l=l.value,H.set(l.id,i8y(this,l));KE(this,1);return H};
var i8y=function(X,H){var l=X.allPrefetchTasks.get(H.id);if(l)return l.cancellablePromise;try{var b=new GBZ(H,X.onTaskCancelled)}catch(K){return _.Cq(K)}l=b;l.tick("pcq");var U={prefetchInfo:{taskId:l.taskModel.id,isPrefetch:!0,fetchAction:l.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:l.taskModel.command.clickTrackingParams}};l.taskModel.csn&&(U.clientScreenNonce=l.taskModel.csn);_.FS(U,l.timerName);X.allPrefetchTasks.set(H.id,b);X.drainingHeap.insert(-b.getPriority(),b);return b.cancellablePromise},
KE=function(X,H){X.prefetchCoordinatorState===H&&(X.prefetchCoordinatorState=2,veZ(X))},veZ=function(X){for(var H={};X.prefetchCoordinatorState!==0;H={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(X.inflightPrefetchTasks.size>=X.maxInflightTasks){X.prefetchCoordinatorState=3;break}H.prefetchTask$jscomp$1=X.drainingHeap.remove();if(!H.prefetchTask$jscomp$1){X.prefetchCoordinatorState=1;break}H.taskId$jscomp$3=H.prefetchTask$jscomp$1.taskModel.id;if(X.allPrefetchTasks.has(H.taskId$jscomp$3)){var l=-1;X.coordinatorTimeoutMs>0&&(l=_.eh(X.scheduler,function(b){return function(){O8l(X,b.taskId$jscomp$3,Error("qj"))}}(H),X.coordinatorTimeoutMs));
X.inflightPrefetchTasks.set(H.taskId$jscomp$3,l);if(!X.JSC$18886_commandHandler){if(!_.JF.instance){O8l(X,H.taskId$jscomp$3,Error("rj"));continue}X.JSC$18886_commandHandler=_.JF.instance}a:switch(H.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":l=1;break a;default:l=0}H.prefetchTask$jscomp$1.jobId=X.scheduler.addJob(function(b){return function(){b.prefetchTask$jscomp$1.tick("pcr");try{X.JSC$18886_commandHandler.resolveCommand(b.prefetchTask$jscomp$1.taskModel.command)||
O8l(X,b.taskId$jscomp$3,Error("sj"))}catch(U){O8l(X,b.taskId$jscomp$3,U)}}}(H),l,0)}}},mFY=function(X,H){(H=aMy(X,H))!=null&&(H.resolver.resolve(),H.tick("pce"));
KE(X,3)},O8l=function(X,H,l){(H=aMy(X,H,l))!=null&&(H.resolver.reject(l),H.tick("pcc"),ge5(H,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Yy("prefetch_coordinator_error_logging_sampling_rate")&&(l=new _.qd("Prefetch Command failed.",H.taskModel.id,l.message),_.n2(l)));
KE(X,3)},aMy=function(X,H,l){var b=X.allPrefetchTasks.get(H);
b?((l=X.inflightPrefetchTasks.get(H))&&l!==-1&&X.scheduler.cancelJob(l),X.inflightPrefetchTasks.delete(H),X.allPrefetchTasks.delete(H)):_.x2(new _.qd("Unexpected missing prefetch task when deleting task.",H,l==null?void 0:l.message));return b};var QAy=function(X,H,l,b,U){this.id=X;this.triggerOn=H;this.cancelOn=l;this.command=b;this.proto=U};
_.ja.Object.defineProperties(QAy.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var Tvx=function(){this.JSC$18891_prefetchCoordinator=Z8A();EeN||(EeN=new WKa);this.defaultCoordinator=EeN},NvA;
Tvx.getInstance=function(){NvA||(NvA=new Tvx);return NvA};
Tvx.prototype.get=function(X){switch(X){case 0:return this.JSC$18891_prefetchCoordinator;default:return this.defaultCoordinator}};var CE=function(){this.coordinatorSupplier=Tvx.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},roY=function(X){var H=_.Bi()||void 0,l=Object.keys(cop)[0];
if(l){var b=X.taskIdByTriggerId.get(l);if(b!=null){X.taskIdByTriggerId.delete(l);l=[];b=_.C(b);for(var U=b.next();!U.done;U=b.next())if(U=X.tasks.get(U.value))H!=="UNDEFINED_CSN"&&(U.csn=H),l.push(U);l=GmZ(l);H=[];l=_.C(l);for(b=l.next();!b.done;b=l.next()){U=_.C(b.value);b=U.next().value;U=U.next().value;b=X.coordinatorSupplier.get(b).queueAll(U);b=_.C(b);var K=b.next();for(U={};!K.done;U={taskId$jscomp$9:void 0},K=b.next()){var w=_.C(K.value);K=w.next().value;w=w.next().value;U.taskId$jscomp$9=
K;K=w;H.push(U.taskId$jscomp$9);X.queuedPromisesByTask.set(U.taskId$jscomp$9,_.MQ(K,function(d){return function(){jA$(X,d.taskId$jscomp$9)}}(U)))}}}}else _.x2(new _.qd("Unexpected malformed TriggerEvent."))};
CE.prototype.trigger=function(X,H){var l=this,b=this.tasks.get(X);if(!b||this.queuedPromisesByTask.has(X))return!1;JoA(this,X,b.triggerOn);H!=="UNDEFINED_CSN"&&(b.csn=H);H=this.coordinatorSupplier.get(b.taskType).queue(b);this.queuedPromisesByTask.set(X,_.MQ(H,function(){jA$(l,X)}));
return!0};
CE.prototype.cancel=function(X){var H=this.queuedPromisesByTask.get(X);if(H)H.cancel();else return jA$(this,X)};
var jA$=function(X,H){X.queuedPromisesByTask.delete(H);var l=X.tasks.get(H);if(!l)return!1;X.tasks.delete(H);JoA(X,H,l.triggerOn);(l=gAW(l.cancelOn))&&(X=X.taskIdByCancelId.get(l))&&X.delete(H);return!0},JoA=function(X,H,l){(l=Object.keys(l)[0])&&(X=X.taskIdByTriggerId.get(l))&&X.delete(H)};var cop={taskRegistered:{}},LKy=function(){CE.instance||(CE.instance=new CE);this.JSC$18900_taskManager=CE.instance};
_.S(LKy,kR);
LKy.prototype.resolveCommand=function(X){var H=this,l,b;return _.h(function(U){l=_.f(X,GCQ);if((b=l)==null||!b.tasks){var K=new _.qd("RegisterTasksCommand is missing tasks.");_.n2(K);return U.return()}K=H.JSC$18900_taskManager;for(var w=_.C(l.tasks),d=w.next();!d.done;d=w.next())if(d=d.value,d=d.id&&d.triggerOn&&d.cancelOn&&d.command?new QAy(d.id,d.triggerOn,d.cancelOn,d.command,d):void 0,d){var B=Object.keys(d.triggerOn)[0];if(B){var q=gAW(d.cancelOn);q?(K.tasks.set(d.id,d),K.taskIdByTriggerId.has(B)||K.taskIdByTriggerId.set(B,
new Set),K.taskIdByTriggerId.get(B).add(d.id),K.taskIdByCancelId.has(q)||K.taskIdByCancelId.set(q,new Set),K.taskIdByCancelId.get(q).add(d.id)):_.x2(new _.qd("Unexpected malformed cancelOn field."))}else _.x2(new _.qd("Unexpected malformed triggerOn field."))}else _.x2(new _.qd("Unexpected malformed Task proto."));roY(H.JSC$18900_taskManager);_.m5(U)})};var YTy={},IMU=(YTy.rendered={priority:_.P("web_adaptive_early_init")?8:0,callback:function(){var X={};X.numCpu=navigator.hardwareConcurrency;var H={};H.ramGb=_.ok.navigator.deviceMemory;var l={staticContext:{}};H.ramGb&&ZKh(H.ramGb)&&(l.staticContext.memoryTotalKbytes=(H.ramGb*1048576).toString());X.numCpu&&ZKh(X.numCpu)&&(l.staticContext.cpuCores=X.numCpu);if(_.P("web_enable_adaptive_appl_signal")){X={};H=zdl();H=H.length>0?H[0]:void 0;var b,U=(b=_.eF("rses_dpj"))!=null?b:H==null?void 0:H.tick.rses_dpj,
K;b=(K=_.eF("rsef_dpj"))!=null?K:H==null?void 0:H.tick.rsef_dpj;U&&Number(U)>0&&b&&Number(b)>0&&(K=Math.ceil(Number(b)-Number(U)),K>0&&(X.loadLatency=K));X.loadLatency&&ZKh(X.loadLatency)&&(l.appL=X.loadLatency.toString())}_.Sh("applicationStarted",l);iKl=l;_.P("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",vxb)}},YTy);var Aod=new _.gz("WINDOW_ON_ERROR"),Xg5=new _.gz("ERROR_WEIGHT_MAPS"),HWd=new _.gz("INIT_ERROR");var l1U={},o3Z=(l1U.initialized={priority:10,callback:function(X){X.injector.resolve(HWd)()}},l1U);var bWp=function(){},Us$=function(){var X=_.ij("meta_logger_impl");
X||(X=new bWp,_.cQ("meta_logger_impl",X));return X},$sC=function(){Us$().csiSubscriptionKey=MLK("meta_logging_csi_event",function(X){var H=X.timerName;
if(X=X.timelineData){_.qJ(H,{startTime:X.startTime},H);X.infos&&_.FS(X.infos,H);for(var l=_.C(Object.keys(X.ticks)),b=l.next();!b.done;b=l.next())b=b.value,_.sf(b,X.ticks[b],H)}})};
bWp.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&yFh(this.csiSubscriptionKey)};var KXp={},RJC=(KXp.initialized={priority:10,callback:function(){$sC()}},KXp);var CLZ=function(X,H){this.innertubeClientName=X;this.JSC$18911_prefCookie=H};
CLZ.prototype.record=function(){if(_.P("web_li_record_binary_eval_tick")){var X=_.eF("rsef_dpj");var H=_.eF("rses_dpj");X=X!==void 0&&H!==void 0?Math.round(X-H):void 0;if(X!==void 0&&X>0){H=_.Ce(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var l=this.poolSize;if(!(H.valuesSeen>=1E9)){if(H.valuesSample.length<l)H.valuesSample.push(X);else{var b=Math.floor(Math.random()*(H.valuesSeen+1));b<l&&(H.valuesSample[b]=X)}H.valuesSeen+=1}_.R6(this.storagePrefix+"-"+this.innertubeClientName,
H,2592E3);X=H.valuesSample;H=ajz(X);X=X.length<this.poolSize?void 0:H<400?1:H<1700?2:3;X!==void 0&&(this.JSC$18911_prefCookie.set(this.cookiePrefix+this.innertubeClientName,X),this.JSC$18911_prefCookie.save())}}else _.wu(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18911_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18911_prefCookie.save()};
CLZ[rx]=[g5,uY];var wgl=function(){CLZ.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.S(wgl,CLZ);var dse=new _.gz("PAGE_LOAD_TIME_TOKEN");var hJd=function(X){this.signal=X;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;X.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.eh(_.Ss,this.disableLoggingAndSendPayload,1E4)};
hJd.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.Ss.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),FXU(this))};
var FXU=function(X){var H=_.F6();if(H){var l={webClientComponentsData:{components:Array.from(X.ids,function(b){return{id:b}})}};
X.ids.clear();_.lv().visualElementStateChanged(H,l)}};var BfU=hw({a11y:ydY});_.q2C=F8(BfU)(BfU.a11y,{ephemeralActionSelector:function(X){return X.ephemeralAction||null}});var s5y=hw({continuation:SzC});var MIx=F8(s5y)(s5y.continuation,{continuationCommandSelector:function(X){return X.continuationCommand}});var uUZ,y15,eJ5;uUZ=function(){this.loadFns=new Map;this.xidToRendererName=new Map};
_.St=function(X,H,l,b){X.loadFns.has(H)&&X.loadFns.get(H)!==b?_.n2(Error("tj`"+H)):(X.loadFns.set(H,b),X.xidToRendererName.set(l,H))};
y15=function(X,H){if(typeof H==="string"){var l=eJ5(X,H);return X.loadFns.get(l)}return function(){var b;return _.h(function(U){return U.nextAddress==1?(b={},U.yield(Promise.all(H.map(function(K){var w,d;return _.h(function(B){if(B.nextAddress==1){w=eJ5(X,K);d=X.loadFns.get(w);if(!d)return b[w]=void 0,B.jumpTo(0);_.Ew(B,3);return B.yield(d(),5)}if(B.nextAddress!=3)return b[w]=B.yieldResult,_.Zt(B,0);_.Ow(B);b[w]=void 0;_.m5(B)})})),2)):U.return(b)})}};
eJ5=function(X,H){var l;return(l=X.xidToRendererName.get(H))!=null?l:H};var VIe=new _.gz("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var wK=function(X,H){this.JSC$18943_storeWithEntities=X;this.JSC$18943_commandHandler=H;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
wK.prototype.start=function(){this.JSC$18943_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
wK.prototype.observeDownloadingEntities=function(){var X=_.gSy(this.JSC$18943_storeWithEntities.getState().entities).map(function(b){return Gly(b)});
if(X.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var H={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:e7K()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Zi(_.XS("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18943_commandHandler.resolveCommand(H)}this.downloadingEntities=X}else if(this.downloadingEntities.length){var l=ESZ(this.JSC$18943_storeWithEntities.getState().entities).map(function(b){return Gly(b)});
this.downloadingEntities.filter(function(b){return l.includes(b)}).length&&(X={openPopupAction:qpk()},this.JSC$18943_commandHandler.resolveCommand(X));
this.downloadingEntities=[]}};
wK[rx]=[jg,_.Vr];var PLY;_.dK=function(X,H,l,b,U,K,w,d){this.JSC$18946_playerApiPromise=X;this.JSC$18946_commandHandler=H;this.JSC$18946_screenManager=l;this.offlineWebClientEligibility=b;this.JSC$18946_prefStorage=U;this.JSC$18946_actionRouter=K;this.entityTypeMap=w;this.JSC$18946_persistentStorePromiseAccessor=d;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
PLY=function(){var X=_.jJ().resolve(_.dK),H;_.h(function(l){if(l.nextAddress==1)return X.downloadFailureListenerBound?l.return():l.yield(X.JSC$18946_playerApiPromise,2);H=l.yieldResult;H.addEventListener("onOfflineOperationFailure",function(b){if(b.failureReason&&b.entityKey&&b.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(b.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var U=_.NJ(b.entityKey).entityId;U&&X.JSC$18946_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
U)}else if(_.P("kevlar_woffle")){U=X.JSC$18946_commandHandler;var K=U.resolveCommand;b=b.failureReason;var w=_.XS("TRANSFER_FAILED",void 0,"Download failed");b==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(w=_.XS("STORAGE_FULL",void 0,"Storage full"));K.call(U,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Zi(w),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
X.downloadFailureListenerBound=!0;_.m5(l)})};
_.dK.prototype.deleteVideo=function(X,H){var l=this,b,U,K;return _.h(function(w){if(w.nextAddress==1)return w.yield(l.JSC$18946_playerApiPromise,2);b=w.yieldResult;K={offlineLoggingData:{offlineDeleteReason:(U=H)!=null?U:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return w.yield(b.queueOfflineAction(X,l.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",K),0)})};
_.dK.prototype.pauseVideoDownload=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(H.JSC$18946_playerApiPromise,2);l=b.yieldResult;l.pauseVideoDownload(X);_.m5(b)})};
_.dK.prototype.resumeVideoDownload=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(H.JSC$18946_playerApiPromise,2);l=b.yieldResult;return b.yield(l.resumeVideoDownload(X),0)})};
_.dK[rx]=[_.my,_.Vr,_.UR,VIe,PI,GI,MxD,b6];var f1$=new _.gz("DOWNLOAD_STATE_STORE_TOKEN");var pgC=function(X,H){this.JSC$18967_persistentStorePromiseAccessor=X;this.store=H;this.upliftCompletionResolver=new _.cF},n3U=function(){var X=_.jJ().resolve(S2Z),H;
_.h(function(l){switch(l.nextAddress){case 1:if(X.upliftImplPromise)return l.return(X.upliftImplPromise);_.Ew(l,2);X.upliftImplPromise=zJZ(X);return l.yield(X.upliftImplPromise,4);case 4:X.upliftCompletionResolver.resolve();_.Zt(l,3);break;case 2:throw H=_.Ow(l),X.upliftCompletionResolver.reject(H),H;case 3:return l.return(X.upliftImplPromise)}})},zJZ=function(X){var H,l,b;
return _.h(function(U){switch(U.nextAddress){case 1:return _.G7("LOGGED_IN")?U.yield(X.JSC$18967_persistentStorePromiseAccessor(),2):U.return();case 2:H=U.yieldResult;if(!H)return _.sf("vdeur"),U.return();_.sf("vdeus");_.Ew(U,3);return U.yield(kG5(H),5);case 5:l=U.yieldResult;X.store.dispatch(eHO(l));H.observe(function(K){yLL(X.store,K)});
_.Zt(U,4);break;case 3:throw b=_.Ow(U),_.sf("vdeur"),b;case 4:_.sf("vdeuc"),_.m5(U)}})},kG5=function(X){var H;
return _.h(function(l){if(l.nextAddress==1)return l.yield(Q9K(X),2);H=l.yieldResult;return l.return(H.reduce(function(b,U){if(!U.data||!U.key||!U.entityType)return b;b[U.entityType]||(b[U.entityType]={});b[U.entityType][U.key]=U.data;return b},{}))})};
pgC[rx]=[b6,_.qU];var S2Z;S2Z=new _.gz("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.xs5=new _.gz("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Dse=function(X,H){this.JSC$18970_persistentStorePromiseAccessor=X;this.transportService=H};
Dse.prototype.refresh=function(){var X=this,H,l,b,U;return _.h(function(K){if(K.nextAddress==1)return _.G7("LOGGED_IN")?K.yield(X.JSC$18970_persistentStorePromiseAccessor(),2):K.return();if(K.nextAddress!=3)return(H=K.yieldResult)?K.yield(VWb(H),3):K.return();if((l=K.yieldResult)&&!(Number(l.data.refreshTimestampMs||0)<(0,_.Jl)()))return K.return();b={browseId:"SPaccount_downloads"};U=_.E9(aB);_.pg(X.transportService,b,U).then(function(w){var d;if(H&&(w==null?void 0:(d=w.responseContext)==null?void 0:
d.maxAgeSeconds)!==0){var B;d=(w==null?void 0:(B=w.responseContext)==null?void 0:B.maxAgeSeconds)||604800;B=String(Math.floor((0,_.Jl)())+d*1E3);H.put("service:downloads_settings:fallback",new _.JW({innertubeResponse:w,refreshTimestampMs:B}))}});
_.m5(K)})};
Dse[rx]=[_.$C,_.b$];var hD=function(X,H){this.JSC$18974_playerPromise=X;this.store=H;this.started=!1};
hD.prototype.start=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return X.started?l.return():l.yield(X.JSC$18974_playerPromise,2);H=l.yieldResult;H.addEventListener("onOrchestrationBecameLeader",X.updateIsLeader.bind(X,!0));H.addEventListener("onOrchestrationLostLeader",X.updateIsLeader.bind(X,!1));if(H.isOrchestrationLeader)X.updateIsLeader(H.isOrchestrationLeader());else{var b=new _.qd("Function isOrchestrationLeader is undefined",{"player.isReady":H.isReady(),"player.playVideo":H.playVideo?
"defined":"undefined"});_.n2(b);X.updateIsLeader(!1)}X.started=!0;_.m5(l)})};
hD.prototype.updateIsLeader=function(X){this.store.dispatch(_.Of({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:X}}))};
hD[rx]=[_.my,_.qU];var tId=function(X,H){this.networkStatusManager=X;this.JSC$18977_prefStoragePromise=H;this.redirectsToPreload=["https://youtube.com"]},WX5=function(){var X=_.jJ().resolve(tId),H,l,b,U,K,w;
_.h(function(d){switch(d.nextAddress){case 1:return d.yield(X.JSC$18977_prefStoragePromise,2);case 2:H=d.yieldResult;if(!(l=H)){d.jumpTo(3);break}return d.yield(H.get("yt-redirect-prefetch-id"),4);case 4:l=d.yieldResult;case 3:if(l||!X.networkStatusManager.isNetworkAvailable())return d.return();b={cache:"reload",redirect:"manual"};U=_.C(X.redirectsToPreload);K=U.next();case 5:if(K.done){if(!H){d.jumpTo(0);break}return d.yield(H.set("yt-redirect-prefetch-id",!0,86400),0)}w=K.value;_.Ew(d,8);return d.yield(_.ok.fetch(w,
b),10);case 10:_.Zt(d,6);break;case 8:_.Ow(d);case 6:K=U.next(),d.jumpTo(5)}})};var E3d=function(X){this.JSC$18983_pageManager=X},g3y=function(X){var H=[];
j9k(["videoId","contentId"],X.JSC$18983_pageManager.data,new Set,H);return H},GGx=function(X){return g3y(X).filter(function(H){return H.contentType==="video"}).map(function(H){return H.contentId}).filter(function(H){return H!==void 0})};
E3d[rx]=[_.gd];var a1y=new _.gz("PAGE_CONTENT_EXTRACTOR_TOKEN");var ZW$=function(X){X?(this.container=X,this.containerWasInjected=!0):this.containerWasInjected=!1};
ZW$.prototype.openDialog=function(X,H,l){var b=this,U;return _.h(function(K){(U=b.container)==null||U.openDialog(X,H,l);_.m5(K)})};
ZW$.prototype.closeDialog=function(){var X=this,H;return _.h(function(l){(H=X.container)==null||H.closeDialog();_.m5(l)})};
ZW$.prototype.isDialogOpen=function(){var X=this,H,l;return _.h(function(b){return b.return((l=(H=X.container)==null?void 0:H.isDialogOpen())!=null?l:!1)})};
ZW$[rx]=[_.c$(akt)];_.iW$=new _.gz("POPUP_CONTROLLER_TOKEN");var v3N=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
v3N.prototype.registerPanel=function(X,H){if(X){this.panelMap.set(X,H);var l=this.pendingPanelResolvers.get(X);l&&(l.resolve(H),this.pendingPanelResolvers.delete(X))}};
v3N.prototype.getPanel=function(X){var H=this,l;return _.h(function(b){return(l=H.panelMap.get(X))?b.return(l):b.return(OWd(H,X))})};
var OWd=function(X,H){var l,b;return _.h(function(U){if(l=X.pendingPanelResolvers.get(H))return U.return(l.promise);b=new _.cF;X.pendingPanelResolvers.set(H,b);return U.return(b.promise)})},msp=function(X,H){v3N.call(this);
var l=this;this.popupController=X;this.persistentPanelController=H;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return l.panelMap.size}}};
_.S(msp,v3N);_.R=msp.prototype;_.R.getReloadContinuation=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(H.getPanel(X),2);l=b.yieldResult;return b.return(l.getReloadContinuation())})};
_.R.showPanel=function(X){var H=this,l,b,U,K,w,d,B,q,u,e,y,V;return _.h(function(p){if(p.nextAddress==1){l=X;b=l.identifier;U=l.panelContents;K=l.config;w=l.extras;d=l.panelUpdatableFields;B=l.updatePanelContinuationData;q=X.target;B&&H.updatePanelContinuationDatas.set(b,B);if((u=K)==null?0:(e=u.engagementPanelPopupPresentationConfig)==null?0:e.popupType)if(y=K.engagementPanelPopupPresentationConfig.popupType,q===void 0&&(q=document.body),y==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!H.persistentPanelController)return _.x2(new _.qd("Persistent panel controller is not available.")),
p.return();var z=H.persistentPanelController;z.persistentPanelIdentifiers.has(b)||(z.persistentPanelWrapper.appendChild(z.engagementPanelElement({panelIdentifier:b},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),z.persistentPanelIdentifiers.add(b));a:switch(_.ze.currentPageSubTypeSelector(z.store.getState())){case "watch":var t="WATCH";break a;default:t="APP"}_.Q5Y(z,t);z.store.dispatch(Pmq(!0))}else{if(y==="PANEL_POPUP_TYPE_DIALOG"||y==="PANEL_POPUP_TYPE_DROPDOWN"){z=p.return;t=H.popupController;
var W=t.openPopup;a:switch(y){case "PANEL_POPUP_TYPE_DIALOG":var G="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":G="DROPDOWN";break a;default:throw Error("vj`"+y);}return z.call(p,W.call(t,b,U,G,q))}_.x2(new _.qd("Popup type "+y+" not supported in PanelController."))}return p.yield(H.getPanel(b),2)}V=p.yieldResult;(U||d)&&V.updatePanel(U,!1,w,d);V.showPanel(w);_.m5(p)})};
_.R.hidePanel=function(X){var H=this,l,b,U,K;return _.h(function(w){if(w.nextAddress==1)return l=X,b=l.identifier,w.yield(H.getPanel(b),2);U=w.yieldResult;U.hidePanel();H.popupController.closePopup(b);(K=H.persistentPanelController)!=null&&K.persistentPanelIdentifiers.has(b)&&K.store.dispatch(Pmq(!1));_.m5(w)})};
_.R.isVisible=function(X,H){var l=this,b;return _.h(function(U){if(U.nextAddress==1)return H&&!l.panelMap.has(X)?U.return(!1):U.yield(l.getPanel(X),2);b=U.yieldResult;return U.return(b.isVisible())})};
_.R.updatePanel=function(X){var H=this,l,b,U,K,w,d,B,q;return _.h(function(u){if(u.nextAddress==1){l=X;b=l.identifier;U=l.panelContents;K=l.shouldFocus===void 0?!1:l.shouldFocus;w=l.extras;d=l.panelUpdatableFields;B=l.updatePanelContinuationData;if(!U&&!d)return u.return();B&&H.updatePanelContinuationDatas.set(b,B);_.P("enable_ai_companion")&&b==="PAai_companion"&&_.H6.remove("youchat_messages_section");return u.yield(H.getPanel(b),2)}q=u.yieldResult;q.updatePanel(U,K,w,d);U&&_.P("enable_ai_companion")&&
H.registerPanelContent(b,U);_.m5(u)})};
_.R.registerPanelContent=function(X,H){X&&this.panelContentMap.set(X,H)};
_.R.unregisterPanelContent=function(X){this.panelContentMap.delete(X)};
_.R.getPanelContent=function(X){return this.panelContentMap.get(X)};
_.R.getUpdatePanelContinuationData=function(X){return this.updatePanelContinuationDatas.get(X)};
msp[rx]=[_.iW$,_.c$(_.Bm)];var TfC=function(X,H){this.innertubeTransportService=X;this.JSC$19002_screenManager=H},NfN=function(X){var H;
return!((H=X.panelLoadingStrategy)==null||!H.requestTemplate)};
TfC.prototype.makeRequest=function(X){var H=this,l,b;return _.h(function(U){switch(U.nextAddress){case 1:if(!NfN(H)){U.jumpTo(2);break}_.Ew(U,3);return U.yield(_.nl(H.innertubeTransportService,X),5);case 5:return l=U.yieldResult,l?U.return(l.content):(_.n2(Error("wj")),U.return(void 0));case 3:b=_.Ow(U),_.n2(b);case 2:return U.return(void 0)}})};
TfC.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
TfC.prototype.execute=function(X){var H=this,l,b,U,K,w,d,B,q,u,e;return _.h(function(y){if(y.nextAddress==1){l=X;b=l.data;U=l.fallbackVe;K=l.parentVe;w=l.createScreenConfig;d=l.renderFn;B=l.command;H.panelLoadingStrategy=b;var V,p,z=((V=H.panelLoadingStrategy)==null?0:V.screenVe)?(p=H.panelLoadingStrategy)==null?void 0:p.screenVe:U;z&&_.jR(H.JSC$19002_screenManager,z,K,w);return(q=H.getContent())?y.yield(d(q),2):y.jumpTo(2)}return y.nextAddress!=4?NfN(H)?y.yield(H.makeRequest(B),4):y.return():(e=
u=y.yieldResult)?y.yield(d(e),0):y.return()})};
TfC[rx]=[_.b$,_.UR];var c1C;c1C=function(X,H){this.engagementPanelElement=X;this.store=H;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.Q5Y=function(X,H){var l=X.persistentPanelContainerMap.get(H);l?l.contains(X.persistentPanelWrapper)||(X=X.persistentPanelWrapper,_.W5=!0,_.El.set(X,!0),l.insertBefore(X,null),_.El.delete(X),_.W5=!1):_.x2(new _.qd("Persistent panel container not found for surface "+H+"."))};
c1C[rx]=[ZvH,_.qU];var F2=function(){var X=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){X.isHovered=!0};
this.onTargetHoverLeft=function(){X.isHovered=!1};
this.onSheetHoverEntered=function(){X.isHovered=!0;var H;(H=X.hoverEnterCallback)==null||H.call(X)};
this.onSheetHoverLeft=function(){X.isHovered=!1;var H;(H=X.hoverLeaveCallback)==null||H.call(X)}};
F2.prototype.getContainer=function(){return _.gZ()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
F2.prototype.openSheet=function(X,H,l){l=l===void 0?H:l;var b=this,U,K,w,d,B,q,u;return _.h(function(e){switch(e.nextAddress){case 1:return U={stack:[],error:void 0,hasError:!1},_.Ew(e,2,3),K=Jo,e.yield(b.isSheetOpen(),5);case 5:w=e.yieldResult;cQH(U,WQL(K));if(!w){e.jumpTo(6);break}if(!b.shouldPreventClosingWhileHovered){if(!_.P("delay_sheet_open_killswitch")){if(_.P("web_close_sheet_if_same_target_killswitch")&&H&&b.currentTarget===H)return(d=b.getContainer())==null||d.closeSheet(),e.return();b.pendingData=
{data:X,target:Xb5(b,H)};return e.return()}e.jumpTo(6);break}if(b.currentTarget===H)return e.return();j5Z(b);r1Y(b);return e.yield((B=b.getContainer())==null?void 0:B.closeSheet(),6);case 6:if(X.viewModel&&(X={viewModel:X.viewModel,sheetPosition:X.sheetPosition,expandToFullWidth:X.expandToFullWidth}),(q=b.getContainer())==null||q.openSheet(X,H,l),b.currentTarget=H,b.shouldPreventClosingWhileHovered){b.onTargetHoverEntered();var y;(y=b.currentTarget)==null||y.addEventListener("mouseenter",b.onTargetHoverEntered);
var V;(V=b.currentTarget)==null||V.addEventListener("mouseleave",b.onTargetHoverLeft);J1p(b)}else b.hasRegisteredHoverCallbacks&&J1p(b);case 3:_.GS(e);j_q(U);_.vJ(e,0);break;case 2:u=_.Ow(e),U.error=u,U.hasError=!0,e.jumpTo(3)}})};
F2.prototype.closeSheet=function(){var X=this;return _.h(function(H){return X.hideDelayMs?(setTimeout(function(){return _.h(function(l){return l.yield(LXY(X),0)})},X.hideDelayMs),H.return()):H.yield(LXY(X),0)})};
var LXY=function(X){var H;return _.h(function(l){if(l.nextAddress==1){if(X.shouldPreventClosingWhileHovered){if(X.isHovered)return l.return();j5Z(X);r1Y(X)}else X.hasRegisteredHoverCallbacks&&(r1Y(X),X.onSheetHoverLeft());return l.yield((H=X.getContainer())==null?void 0:H.closeSheet(),2)}if(l.nextAddress!=4)return X.resetState(),!X.pendingData||_.P("delay_sheet_open_killswitch")?l.jumpTo(0):l.yield(X.openSheet(X.pendingData.data,X.pendingData.target),4);X.pendingData=void 0;_.m5(l)})};
F2.prototype.isSheetOpen=function(){var X=this,H,l;return _.h(function(b){return b.return((l=(H=X.getContainer())==null?void 0:H.isSheetOpen())!=null?l:!1)})};
F2.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 j5Z=function(X){var H;(H=X.currentTarget)==null||H.removeEventListener("mouseenter",X.onTargetHoverEntered);var l;(l=X.currentTarget)==null||l.removeEventListener("mouseleave",X.onTargetHoverLeft)},J1p=function(X){var H,l=(H=X.getContainer())==null?void 0:H.getSheetContainerElement();
l==null||l.addEventListener("mouseenter",X.onSheetHoverEntered);l==null||l.addEventListener("mouseleave",X.onSheetHoverLeft)},r1Y=function(X){var H,l=(H=X.getContainer())==null?void 0:H.getSheetContainerElement();
l==null||l.removeEventListener("mouseenter",X.onSheetHoverEntered);l==null||l.removeEventListener("mouseleave",X.onSheetHoverLeft)},Xb5=function(X,H){if(!_.P("web_parent_target_for_sheets"))return H;
var l,b;return(b=(l=X.getContainer())==null?void 0:l.getParentTarget(H))!=null?b:H};var LG=window.documentPictureInPicture;var o9Z=_.W8(["dark"]),bCW=_.W8(["system-icons"]),ULN=_.W8(["typography"]),$Lk=_.W8(["lang"]),Kby=_.W8(["style"]),Amy=_.W8(["dir"]),XeZ=_.W8(["rounded-container"]),HCN=_.W8(["style"]),Coy=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Bo=function(X){this.JSC$19020_clientRoot=X;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Bo.prototype.openWindow=function(X){var H=this,l,b;return _.h(function(U){switch(U.nextAddress){case 1:if(!LG||!LG||!xN()||H.currentPipWindow)return U.return(!1);_.Ew(U,2);return U.yield((b=LG?LG:null)==null?void 0:b.requestWindow(X),4);case 4:l=U.yieldResult;_.Zt(U,3);break;case 2:return _.Ow(U),U.return(!1);case 3:if(!l)return U.return(!1);l.addEventListener("pagehide",function(){Y2$(H)});
l.addEventListener("resize",H.handlePipWindowResize);RW8(l);dLy(l);j1y(l);return U.yield(Ijy(l),5);case 5:if(!rmz())return U.return(!1);H.currentPipWindow=l;H.JSC$19020_eventForwarder=wel(l,H.JSC$19020_clientRoot);H.pipWindowResizeDelay=new _.Li(function(){H.currentPipWindow&&_.TP(H.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.tn(H.currentPipWindow.innerWidth,H.currentPipWindow.innerHeight)])},l);
H.pipWindowResizeDelay.start();return U.return(!0)}})};
Bo.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var Y2$=function(X){if(X.currentPipWindow){var H,l;(H=LG?LG:null)==null||(l=H.window)==null||l.close();X.currentPipWindow.removeEventListener("resize",X.handlePipWindowResize);var b;(b=X.pipWindowResizeDelay)==null||b.dispose();X.pipWindowResizeDelay=void 0;var U;(U=X.JSC$19020_eventForwarder)==null||U.stop();X.JSC$19020_eventForwarder=void 0;H=_.C(X.onCloseCallbacks);for(l=H.next();!l.done;l=H.next())l=l.value,l();X.onCloseCallbacks=[];X.currentPipWindow=null}};
Bo.prototype.getWindow=function(){return this.currentPipWindow};
var I1N=function(X,H){var l;(l=X.onCloseCallbacks)==null||l.push(H)};
Bo.prototype.pictureInPictureSupported=function(){return!(!LG||!LG)&&xN()};
_.ja.Object.defineProperties(Bo.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Bo[rx]=[XHG];var A1A=new _.gz("PICTURE_IN_PICTURE_CONTROLLER");var hWK=function(X,H){this.lengthY=this.lengthX=0;this.lengthX=H.x-X.x;this.lengthY=H.y-X.y};var X$U=function(){},dzN=function(X,H){var l;
(l=X.headerElement)==null||l.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:H}))};var Hfx=function(){};
Hfx.prototype.openPopup=function(X,H,l,b){var U=this,K;return _.h(function(w){if(!U.container)return w.return();K={openPopupAction:{popup:H,popupType:l,uniqueId:X}};return w.return(U.container.handleOpenPopupAction(K,b))})};
Hfx.prototype.closePopup=function(X){this.container&&this.container.closePopup(X)};var lRC=function(){this.openTunnels=new Map},THL=function(X,H,l){if(sPN(l)){var b=_.Hb(l,"gclid");
l={handleEvent:function(d){H&&!H.closed&&typeof H.postMessage==="function"&&d&&d.origin&&d.source===H&&d.data&&d.data.action==="gcl_setup"&&H.postMessage(Object.assign({},{action:"gcl_transfer"},b&&{gclid:b},{gadSource:2}),d.origin)}};
for(var U=_.C(X.openTunnels),K=U.next();!K.done;K=U.next()){var w=_.C(K.value);K=w.next().value;w=w.next().value;if(K.closed)try{window.removeEventListener("message",w),X.openTunnels.delete(K)}catch(d){_.n2(d)}}H&&X.openTunnels.size<15&&(X.openTunnels.set(H,l),window.addEventListener("message",l))}};var oy5=function(){this.clientParams=new Map},NoC=function(X){for(var H=_.C(X.clientParams.keys()),l=H.next();!l.done;l=H.next())l=l.value,l.startsWith("yt-mini-app-share")&&X.clientParams.delete(l)};var bfx=function(X,H){_.$e.call(this);var l=this;this.shortsController=X;this.storeWithShorts=H;X=_.bC(this.storeWithShorts,_.dAO,function(b){if(b){var U,K=(U=l.shortsController.getRoot())==null?void 0:U.getPlayer(),w;(U=(w=l.shortsController.alternativePlayerContainerElement)==null?void 0:w.getPlayerContainer())&&(K==null||K.appendTo(U))}else{var d;w=(d=l.shortsController.alternativePlayerContainerElement)==null?void 0:d.getPlayerContainer().querySelector("#player");U=l.shortsController.activeIndex;
(d=(K=l.shortsController.getRoot())==null?void 0:K.querySelector('ytd-reel-video-renderer[id="'+U+'"] #player-container'))&&(w==null||w.appendTo(d,void 0,!0))}});
this.addOnDisposeCallback(X)};
_.S(bfx,_.$e);var qc=function(X,H,l,b){var U=this;this.storeWithShorts=X;this.ephemeralResponseStore=H;this.innertubeTransportService=l;this.innertubeTransportLoader=b;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Aa(_.QE);this.isShortsPipActive=_.Aa(_.Te);this.nextReelVe=_.cS(56921);this.prevReelVe=_.cS(56922);this.backButtonVe=_.cS(22156);this.TEST_ONLY={getActiveModules:function(){return U.activeModules}}},UkY=function(X){X.unsubscribeFromStore=
_.bC(X.storeWithShorts,_.wwm,function(H){X.initOrDisposeActiveModules(H);
!H&&X.storeWithShorts.getState().shorts.isFullscreen&&(_.GP(document.documentElement),X.storeWithShorts.dispatch(_.zFQ(!1)))});
X.initOrDisposeActiveModules(_.wwm(X.storeWithShorts.getState()))},XEZ,H8Y,$kZ;
qc.prototype.initOrDisposeActiveModules=function(X){X?this.activeModules.push(new bfx(this,this.storeWithShorts)):(_.aZ(this.activeModules),this.activeModules.length=0)};
qc.prototype.registerRootElement=function(X){this.rootElement=X;UkY(this)};
qc.prototype.getRoot=function(){return this.rootElement};
qc.prototype.setActiveIndex=function(X){this.activeIndex=X};
_.JjU=function(X,H){var l,b,U,K,w,d,B;return _.h(function(q){switch(q.nextAddress){case 1:return l=new Qg,(b=l.JSC$14495_getStoreKey(H))&&X.ephemeralResponseStore.has(b)?q.yield(X.ephemeralResponseStore.get(b),7):q.yield($kZ(X,H),4);case 4:U=q.yieldResult;if(!b){q.jumpTo(3);break}K=TE(U,3600);return q.yield(X.ephemeralResponseStore.put(b,new _.JW(K)),3);case 7:U=(w=q.yieldResult)==null?void 0:_.Nf(w);case 3:return((d=U)==null?0:d.replacementEndpoint)&&(B=_.f(U.replacementEndpoint,_.HM))&&U.sequenceContinuation&&
(B.sequenceParams=U.sequenceContinuation),q.return(U)}})};
XEZ=function(X,H){H=(new Tk).JSC$14495_getStoreKey(H);return!!H&&X.ephemeralResponseStore.has(H)};
H8Y=function(X,H,l){var b,U,K,w,d;_.h(function(B){if(B.nextAddress==1){b=new Tk;U=b.JSC$14495_getStoreKey(H);if(!U)return B.return();if(l.reelWatchSequenceResponse)return K=TE(l.reelWatchSequenceResponse,3600),X.ephemeralResponseStore.put(U,new _.JW(K)),B.jumpTo(0);if(!X.ephemeralResponseStore.has(U))return B.jumpTo(0);d=l;return B.yield(X.ephemeralResponseStore.get(U),4)}d.reelWatchSequenceResponse=(w=B.yieldResult)==null?void 0:_.Nf(w);_.m5(B)})};
$kZ=function(X,H){var l=l===void 0?{}:l;var b,U,K;return _.h(function(w){switch(w.nextAddress){case 1:if(X.innertubeTransportService){b=X.innertubeTransportService;w.jumpTo(2);break}if(!X.innertubeTransportLoader){_.a0(Error("yj"));w.jumpTo(2);break}return w.yield(X.innertubeTransportLoader(),4);case 4:b=w.yieldResult;case 2:return w.yield((U=b)==null?void 0:_.nl(U,H,l),5);case 5:return K=w.yieldResult,w.return(K)}})};
_.ja.Object.defineProperties(qc.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
qc[rx]=[mzZ,_.r2,_.c$(_.b$),_.c$($H_)];_.Kue=new _.gz("STORAGE_MANAGER_TOKEN");var v9N=["touchmove","scroll"];var ROA=!1;var PoO=!1;var iC8={onSpanEnd:function(X){X.parentId==null&&(ROA||(y38(),setInterval(y38,6E5),ROA=!0),pel(X,"web_tracing_action"))}};var xLy=URL.createObjectURL;var aW8,CjU={traceAllComponents:_.P("web_tracing_all_components"),exportToCsi:_.P("web_tracing_export_to_csi"),enabledSpansArray:_.l0("web_tracing_enabled_spans"),exportToDevTools:_.P("web_tracing_export_to_devtools"),maxBreadcrumbs:_.Yy("tel_max_breadcrumbs",0)};aW8=new k9y(CjU);var ZCy=_.P("web_shorts_enable_tracing");var w$Z=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},dkd;
w$Z.prototype.enqueue=function(X,H){H===1?this.currentPersistentToast=X:this.queue.push(X);_.hOd(this)};
_.hOd=function(X){var H;(H=X.currentToast)!=null&&H.isOpened()||(X.queue.length?(X.currentToast=X.queue.shift(),X.currentToast.open()):X.currentPersistentToast&&X.currentPersistentToast.open())};_.sg=new _.gz("TOAST_MANAGER_TOKEN");var Ful=new _.gz("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var Bxy=new _.gz("VIEW_TRANSITION_COORDINATOR_TOKEN");var qtZ=function(X){this.config=X;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;X=_.C(X.transitionConfigs);for(var H=X.next();!H.done;H=X.next())H=_.C(H.value).next().value,this.transitionTasksMap.set(H,[])};
qtZ.prototype.registerElement=function(X,H,l){l=l===void 0?!1:l;for(var b=_.C(Object.keys(H)),U=b.next(),K={};!U.done;K={viewTransitionName:void 0},U=b.next()){U=U.value;K.viewTransitionName=H[U];var w=this.elementTasksMap.get(X),d=void 0;if((d=w)==null?0:d.has(U)){_.k2(new _.qd("Element already registered for transition",X.tagName,U));break}w=w||new Map;w.set(U,{beforeTransition:function(B){return function(){X.style.viewTransitionName=B.viewTransitionName}}(K),
afterTransition:function(){X.style.viewTransitionName&&(X.style.viewTransitionName="")},
runOnce:l});this.elementTasksMap.set(X,w)}};
_.VE=function(X,H){var l=X.elementTasksMap.get(H);l&&(l.clear(),l.size===0&&X.elementTasksMap.delete(H))};
qtZ[rx]=[Ful];var MJZ=_.Z(function(X){var H=_.SJ("yt-expandable-metadata-header-view-model"),l=_.Nq(function(b){_.pl(_.lv(),{data:X.data()});if(!_.B6(_.FA(b),H.value,["A".toString(),"BUTTON".toString()])){var U;(U=X.expandedCallback)==null||U.call(X,!1)}});
return _.F("yt-expandable-metadata-header-view-model",{el:H,class:"ytExpandableMetadataHeaderViewModelHost"},_.F(_.M,{cond:function(){return X.expanded()},
then:function(){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":l},_.F("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.F(_.M,{cond:function(){return X.data().expandedTitleImage},
then:function(b){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.F(_.Dp,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b}))}}),_.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.F("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.F(_.Sj,{text:function(){return X.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.F(_.Sj,{text:function(){return X.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.F(_.Sj,{text:function(){return X.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.F("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.F(_.l4,{data:function(){return X.data().infoButton}},{buttonViewModel:_.Qk}),_.F(_.l4,{data:function(){return X.data().collapseButton}},{buttonViewModel:function(b){return _.F(_.Qk,{data:b.data,
onClick:function(){var U;(U=X.expandedCallback)==null||U.call(X,!1)}})}})))},
else:function(){return _.F(s0Y,Object.assign({},X))}}))},"Ag"),uie=_.Z(function(X){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.F(_.M,{cond:function(){return X.data().collapsedLabelImage},
then:function(H){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.F(_.Dp,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:H,alt:""}))}}),_.F(_.Sj,{text:function(){return X.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Bg"),s0Y=_.Z(function(X){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Nq(function(){_.pl(_.lv(),{data:X.data()});var H;(H=X.expandedCallback)==null||H.call(X,!0)})},_.F("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.F(_.M,{cond:function(){return X.data().collapsedImage},
then:function(H){return _.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.F(_.Dp,{height:20,preserveHeight:!0,preserveWidth:!0,data:H,alt:""}))}}),_.F(_.M,{cond:function(){return X.data().showLeadingCollapsedLabel},
then:function(){return _.F(uie,Object.assign({},X))}}),_.F("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.F(_.Sj,{text:function(){return X.data().collapsedTitle}}))),_.F("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.F(_.M,{cond:function(){return!X.data().showLeadingCollapsedLabel},
then:function(){return _.F(uie,Object.assign({},X))}}),_.F(_.l4,{data:function(){return X.data().infoButton}},{buttonViewModel:_.Qk}),_.F(_.l4,{data:function(){return X.data().expandButton}},{buttonViewModel:function(H){var l=H.data;
return _.F(_.Qk,{data:l,onClick:function(){_.pl(_.lv(),{data:l});var b;(b=X.expandedCallback)==null||b.call(X,!0)}})}})))},"Cg");_.eOY=_.Z(function(X){var H=_.C(_.Gx(function(){return X.data().initiallyExpanded})),l=H.next().value,b=H.next().value,U,K=(U=_.jJ().resolve(_.c$(_.b4)))==null?void 0:U(),w=function(){var d=X.data().colorData;
if(d)return K?d==null?void 0:d.darkColorPalette:d==null?void 0:d.lightColorPalette};
return _.F("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.rC({"background-color":function(){var d=w();return(d==null?0:d.section2Color)?_.qw(d.section2Color):""}})},_.F(_.l4,{data:function(){return X.data().header}},{expandableMetadataHeaderViewModel:function(d){return _.F(MJZ,{data:d.data,
expanded:function(){return!!l()},
expandedCallback:function(B){b(B)}})}}),_.F(_.M,{cond:function(){return l()},
then:function(){return _.F("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.F(_.l4,{data:function(){return X.data().expandedContent}},{horizontalShelfViewModel:function(d){return _.F(_.W3,{data:d.data,
includeMargin:!0,forceNarrowLayout:!0,palette:w})},
videoSummaryContentViewModel:function(d){return _.F(mAD,{data:d.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(d){return _.F(_.Ak,{data:d.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(d){return _.F(_.n3,{data:d.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.F(_.l4,{data:function(){return X.data().expandedBottomButtons}},{buttonViewModel:function(d){return _.F("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.F(_.Qk,{data:d.data}))}}))}}))},"Dg");var yRA=_.Z(function(X){var H=X.text;var l=X.marqueeSpacing;var b=X.scrollDelay;var U=X.scrollDuration;var K=X.enableMarqueeScroll;X=X.large;var w=_.C(_.FU(!1,void 0,"WyNYFf")),d=w.next().value,B=w.next().value,q=_.C(_.FU(0,void 0,"OoTdhe"));w=q.next().value;var u=q.next().value,e=_.SJ("marquee-scroll");q=_.SJ("div");var y=_.SJ("span"),V=_.jJ().resolve(_.nS);_.Wg(function(){if(K()){var t=y.value.getBoundingClientRect().width,W=e.value.getBoundingClientRect().width;if(t>W){var G=(V==="ltr"?-1:1)*(t+
(l?l():16));Promise.resolve().then(function(){B(!0);u(G)})}}},"dv0Anf");
var p={},z={};return _.F("marquee-scroll",{class:_.Qr("ytMarqueeScrollHost",(p.ytMarqueeScrollHostLarge=X,p)),el:e},_.F("div",{id:"marquee-scroll-inner-container",class:_.Qr("ytMarqueeScrollInnerContainer",(z.ytMarqueeScrollAnimationEnabled=function(){return d()},z)),
el:q,style:_.rC({gap:l?(0,_.f3)(l):"16px","animation-duration":U?NNG(U):"16s","animation-delay":b?NNG(b):"3s","--marquee-translate":(0,_.f3)(w)})},_.F("span",{el:y,dir:"auto"},_.F(_.Sj,{text:H,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.F(_.M,{cond:d,then:function(){return _.F("span",{"aria-hidden":"true",dir:"auto"},_.F(_.Sj,{text:H,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Fg");_.VJZ=_.Z(function(X){var H=X.data;var l=X.overlayDensity;X=_.Nq(function(){H().onTapCommand&&_.yr(H().onTapCommand);return!1});
var b=_.h5(),U=function(){return(l==null?void 0:l())===1?22:16},K={};
return _.F("reel-sound-metadata-view-model",{class:_.Qr("ytReelSoundMetadataViewModelHost",(K.ytReelSoundMetadataViewModelHostLarge=function(){return(l==null?void 0:l())===1},K)),
"on:click":X,tabindex:0,role:"button","on:keydown":b},_.F("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.F(_.M,{cond:function(){return H().musicIcon},
then:function(w){return _.F(_.Dp,{data:w,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:U})}}),_.F("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.F(yRA,{text:function(){return H().soundMetadata},
enableMarqueeScroll:function(){return!!H().enableMarqueeScroll},
large:function(){return(l==null?void 0:l())===1}}))))},"Gg");var Pjy,fRU,zOa,k7Y,Dkp,nya,EyU,Wup;Pjy=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];fRU=_.Yy("wil_icon_max_concurrent_fetches",Infinity);
zOa=function(X,H,l){var b=this;this.iconSet=X;this.appDirection=H;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.ok.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.P("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.P("wil_icon_network_first");this.renderWhenIdle=_.P("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.P("wil_icon_load_immediately");this.isPurging=!1;X=function(){b.cacheStorageAvailable&&(b.cacheStorageAsync=_.ok.caches.open("yt-icons").then(function(K){return b.cacheStorageSync=K}).catch(function(){b.cacheStorageAvailable=!1}))};
l=(l==null?void 0:l())||{};l=_.C(Object.entries(l));for(H=l.next();!H.done;H=l.next()){var U=_.C(H.value);H=U.next().value;U=U.next().value;U=B$(U);p$y(U);this.iconCache[H]=U.cloneNode(!0)}this.isPurging=Stl(this);this.isPurging instanceof Promise?this.isPurging.then(X):X()};
_.$By=function(X,H){var l=X.resolveIcon(H);return l?X.renderingMode===1?nya(X,l,X.renderingMode):(H=X.iconCache[l.url])?(H=H.cloneNode(!0),k7Y(X,H),nya(X,l,X.renderingMode,H)):_.xkd(X,l).then(function(b){var U=b?0:1;k7Y(X,b);return nya(X,l,U,b)}):(_.k2(new _.qd("Icon not found",{iconShape:H})),function(){})};
k7Y=function(X,H){if(H){X.counter+=1;X="_yt"+X.counter;H=[H].concat(_.LJ(H.getElementsByTagName("*")));H=_.C(H);for(var l=H.next();!l.done;l=H.next())if(l=l.value,l.tagName==="style"&&l.textContent)l.textContent=Dkp(l.textContent,X,!0);else for(var b=_.C(l.attributes),U=b.next();!U.done;U=b.next()){U=U.value;U.name==="id"&&(U.value+=X);["mask","fill","clip-path"].includes(U.name)&&(U.value=Dkp(U.value,X));if(U.name==="style"){var K=l.style;try{K.cssText=Dkp(K.cssText,X,!0)}catch(u){var w=void 0,d=
void 0,B=void 0,q=void 0;Mc({error:((w=u)==null?void 0:(B=(d=w).toString)==null?void 0:B.call(d))||"",el:l.outerHTML,style:!!K,cssText:(q=K)==null?void 0:q.cssText})}}U.name==="xlink:href"&&(U.value=U.value.replace(/#(.*)/,"#$1"+X))}}};
Dkp=function(X,H,l){var b=/url\(["']?#(.*?)["']?\)/;(l===void 0?0:l)&&(b=/url\(["']?#(.*?)["']?\)/g);return X.replace(b,"url(#$1"+H+")")};
nya=function(X,H,l,b){return function(U,K){var w;var d=Object.assign({},{iconWidth:H.size+"px",iconHeight:H.size+"px",iconDisplay:"block"},K,{iconColor:(w=K==null?void 0:K.iconColor)!=null?w:"currentcolor"});w=_.XJ("DIV");K=d.iconColor;var B=d.iconFilter;d="width: "+d.iconWidth+"; height: "+d.iconHeight+"; display: "+d.iconDisplay+";";B&&(d+=" filter: "+B+";");l===0&&(d+=" fill: "+K+";");l===1&&(B=H.url,d+=" -webkit-mask: url("+B+") no-repeat center / cover; mask: url("+(B+") no-repeat center / cover; background-color: ")+
K);H.allowMirroring&&X.appDirection==="rtl"&&(d+=" transform: scale(-1, 1); transform-origin: center center;");w.setAttribute("style",d);l===0&&b&&w.appendChild(b);U.appendChild(w)}};
_.xkd=function(X,H){var l,b,U;return _.h(function(K){l=function(w){return bQ(w)};
b=H.url;if(!tJ$(b))throw Error("Bj");U=Wup(X,b);return K.return(U.then(function(w){return w.clone().text()}).then(function(w){var d=l(w);
w=H.size;var B=_.XJ("DIV");_.Ml(B,d);d=_.HE(B.firstElementChild!==void 0?B.firstElementChild:_.IeG(B.firstChild,!0));w=p$y(d,w);X.iconCache[b]=w.cloneNode(!0);delete X.responsePromises[b];return w}).catch(function(){}))})};
EyU=function(X){var H,l=(H=X.requestAninmationFrameResolver)==null?void 0:H.promise;l||(X.requestAninmationFrameResolver=new _.cF,l=X.requestAninmationFrameResolver.promise,_.ok.requestAnimationFrame(function(){var b;(b=X.requestAninmationFrameResolver)==null||b.resolve();X.requestAninmationFrameResolver=null}));
return l};
Wup=function(X,H){var l,b;return _.h(function(U){if(U.nextAddress==1)return X.waitForAnimationFrame?U.yield(EyU(X),2):U.jumpTo(2);l=X.responsePromises[H];l||(b=function(){var K,w,d;return _.h(function(B){switch(B.nextAddress){case 1:if(!X.cacheStorageAvailable){K=void 0;B.jumpTo(2);break}if(w=X.cacheStorageSync){B.jumpTo(3);break}return B.yield(X.cacheStorageAsync,4);case 4:w=B.yieldResult;case 3:K=w;case 2:return d=K,X.isNetworkFirstStrategy?B.return(X.fetchAndUpdateCache(H,d).catch(X.getCacheStorageResponse.bind(X,
H,d))):B.return(X.getCacheStorageResponse(H,d).catch(X.fetchAndUpdateCache.bind(X,H,d)))}})},l=X.renderWhenIdle?new Promise(function(K,w){_.eh(_.Ss,function(){b().then(K).catch(w)},10)}):b(),X.responsePromises[H]=l);
return U.return(l.catch(function(K){delete X.responsePromises[H];Mc({error:(K==null?0:K.toString)?K.toString():"",url:H});throw K;}))})};
zOa.prototype.fetchAndUpdateCache=function(X,H){var l=this;return _.h(function(b){return b.return(gyA(l,X).then(function(U){G7y(l,X,U,H);return U}))})};
var gyA=function(X,H){var l;return _.h(function(b){if(X.numFetches<fRU)return X.numFetches+=1,b.return(aR$(X,H).finally(function(){--X.numFetches;if(Object.keys(X.queuedResponseResolvers).length){var U=Object.keys(X.queuedResponseResolvers)[0],K=X.queuedResponseResolvers[U];delete X.queuedResponseResolvers[U];K.resolve(gyA(X,U))}}));
l=new _.cF;X.queuedResponseResolvers[H]=l;return b.return(l.promise)})},aR$=function(X,H,l){l=l===void 0?2:l;
var b;return _.h(function(U){b={credentials:"same-origin",priority:"low"};return U.return(_.ok.fetch(H,b).then(function(K){return K.ok?K:Promise.reject(Error("Cj`"+K.status+"`"+K.statusText))}).catch(function(K){if(l>0)return aR$(X,H,l-1);
throw K;}))})},G7y=function(X,H,l,b){_.h(function(U){return b?U.return(new Promise(function(K){_.eh(_.Ss,function(){var w,d;
return _.h(function(B){switch(B.nextAddress){case 1:if(!X.isNetworkFirstStrategy){w=void 0;B.jumpTo(2);break}return B.yield(b.match(H).catch(function(){}),3);
case 3:w=B.yieldResult;case 2:if(d=w){B.jumpTo(4);break}return B.yield(b.put(H,l.clone()).catch(function(q){Mc({error:(q==null?0:q.toString)?q.toString():"",url:H})}),4);
case 4:K(),_.m5(B)}})},50)})):U.return()})};
zOa.prototype.getCacheStorageResponse=function(X,H){return _.h(function(l){return H?l.return(H.match(X).then(function(b){return b&&b.ok?b:Promise.reject()})):l.return(Promise.reject())})};
var p$y=function(X,H){H===void 0||X.getAttribute("viewBox")||X.setAttribute("viewBox","0 0 "+H+" "+H);X.setAttribute("focusable","false");X.setAttribute("aria-hidden","true");H=_.P("killswitch_remove_icon_fill_color");X.getAttribute("fill")!=="currentcolor"&&X.getAttribute("fill")!=="currentColor"||H||X.removeAttribute("fill");try{X.style.pointerEvents="none",X.style.display="inherit",X.style.width="100%",X.style.height="100%"}catch(U){var l;Mc({error:((l=U)==null?0:l.toString)?U.toString():""});
try{X.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(K){var b;Mc({error:((b=K)==null?0:b.toString)?K.toString():""})}}return X},tJ$=function(X){for(var H=_.C(Pjy),l=H.next();!l.done;l=H.next())if(X.startsWith(l.value)&&X.endsWith(".svg"))return!0;
return!1};
zOa.prototype.resolveIcon=function(X){return this.iconSet.resolveIcon(X)};
var Mc=function(X){_.x2(new _.qd("Error in IconManager",X))},Stl=function(X){if(_.P("wil_icons_cache_purge_killswitch"))return!1;
try{var H=_.ok.localStorage}catch(K){return!1}if(!H||!X.cacheStorageAvailable)return!1;var l=function(K){try{var w;(w=H)==null||w.setItem("yt-icons-last-purged",K.toString())}catch(B){var d;Mc({error:((d=B)==null?0:d.toString)?B.toString():""})}},b=Number(H.getItem("yt-icons-last-purged"));
if(!b)return b=new Date,b=b.setDate(b.getDate()-Math.floor(Math.random()*90+1)),l(b),!1;if(function(K,w){K=new Date(K);w=new Date(w);return w.getMonth()-K.getMonth()+12*(w.getFullYear()-K.getFullYear())}(b,Date.now())<3)return!1;
try{return _.ok.caches.delete("yt-icons").then(function(K){K&&l(Date.now());return K}).catch(function(){return!1}).finally(function(){X.isPurging=!1})}catch(K){var U;
Mc({error:((U=K)==null?0:U.toString)?K.toString():""});return!1}};
zOa[rx]=[zr5,_.nS,_.c$(xbe)];_.Zfa=function(X,H){this.iconManager=X;this.iconsToFetch=H};
_.Zfa[rx]=[_.rT,_.c$(k8Z)];var ifC=function(){};var vyl=function(X,H,l){this.requestKey=X;this.aLd=H;this.jGf=l;this.edI=function(){return new XMLHttpRequest};
this.qkT=void 0;this.sLh=[]};
vyl.prototype.getLatestChallengeResponse=function(){return this.jGf};
var vrD=function(X,H,l){var b,U,K,w;return _.h(function(d){if(d.nextAddress==1){_.qJ("attestation_challenge_fetch");_.sf("att_fs",void 0,"attestation_challenge_fetch");if(!X.qkT)throw new _.e1(9,"Missing fetcher");return d.yield(X.qkT(H,l),2)}b=d.yieldResult;K=(U=b)==null?void 0:U.bgChallenge;if(!K)throw new _.e1(15,"Missing field");X.jGf=b;X.sLh.forEach(function(B){B(b)});
w=BaW(K);_.sf("att_fc",void 0,"attestation_challenge_fetch");BK("attestation_challenge_fetch");return d.return(w)})},CMF=function(X,H){var l,b,U,K,w;
return _.h(function(d){switch(d.nextAddress){case 1:l=new jP(100,3E5,.25,2),b=void 0;case 2:if(!(l.currBackoffCount_<10)){d.jumpTo(4);break}_.Ew(d,5);if(!(l.currBackoffCount_>0)){d.jumpTo(7);break}return d.yield(mLN(l.getValue()),7);case 7:return d.yield(Ofd(X,H),9);case 9:return U=d.yieldResult,d.return(U);case 5:K=_.Ow(d);K instanceof _.e1?b=K:(w=K instanceof Error?K.message:"Unknown",b=new _.e1(9,w));I1Q(l);d.jumpTo(2);break;case 4:if(b)throw b;throw new _.e1(9,"Unknown error");}})},Ofd=function(X,
H){H=nr_(kTY(new zfQ,H),X.requestKey);
var l=new _.cF,b=X.edI();b.open("POST",X.aLd);b.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");b.setRequestHeader("Content-Type","application/json+protobuf");b.onload=function(){if(_.iAy(b)){var U=iU_(b.responseText);l.resolve(U)}else l.reject(new _.e1(_.cRK(_.oF(b)),b.statusText))};
b.onerror=function(){l.reject(new _.e1(_.cRK(_.oF(b)),b.statusText))};
b.send(H.serialize());return l.promise};var Q0$=function(X){this.networkStatusManager=X;this.isDownloaded=PGb===void 0?function(){return!1}:PGb;
this.isReady=!1;this.kQq=mk5(this)},mk5=function(X){var H;
return _.h(function(l){if(l.nextAddress==1)return l.yield(fRN(),2);if(l.nextAddress!=3)return H=l.yieldResult,l.yield(HW_(H),3);X.aM=l.yieldResult;TSy(X.aM).then(function(){X.isReady=!0});
return l.return(X.aM)})},Txd=function(X,H,l){X.aM?(X=X.aM.t0m({hL:l,
hqo:!0,gLf:!0}),H.serviceIntegrityDimensions={poToken:X}):_.n2(Error("Ej"))};
Q0$.prototype.processContext=function(X){var H=this;if(X.input.match(_.E9(pN_)))var l=X.innerTubeRequest;else if(X.input.match(_.E9(FU9)))l=X.innerTubeRequest.playerRequest;else return _.Dz();var b,U=(b=l)==null?void 0:b.videoId;return!U||this.isDownloaded(l)||this.networkStatusManager&&!this.aM&&!this.networkStatusManager.isNetworkAvailable()||_.P("webpo_exit_on_net_err")&&!this.aM&&(window.bgens===1||window.bgens===3)?_.Dz():this.aM?this.isReady?(Txd(this,l,U),_.Dz()):new x8(TSy(this.aM).then(function(){Txd(H,
l,U)})):new x8(this.kQq.then(function(K){return _.h(function(w){if(w.nextAddress==1)return w.yield(TSy(K),2);
Txd(H,l,U);_.m5(w)})}))};var Nxx=new _.gz("WEB_PO_CONTEXT_PROCESSOR");var cRZ=function(X,H){var l=this;this.naC=0;var b;this.i1v=(b=H==null?void 0:H.i1v)!=null?b:window;this.networkStatusManagerPromise=H==null?void 0:H.networkStatusManagerPromise;var U;this.requestKey=(U=H==null?void 0:H.requestKey)!=null?U:_.I0("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var K;this.dKh=(K=H==null?void 0:H.dKh)!=null?K:function(B){return new zj(B)};
var w;b=(w=H==null?void 0:H.k9G)!=null?w:function(B,q,u){return new vyl(B,q,u)};
this.bgChallenge=BaW(X.bgChallenge);this.ttlSeconds=qNh(EF(X.challenge||""));this.eO=b(this.requestKey,_.P("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.ok.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",X);this.tsu=H==null?void 0:H.tsu;QPm(this.eO);var d;this.u1q=(d=H==null?void 0:H.u1q)!=null?d:function(B){_.n8(l.i1v.document,"visibilitychange",
function(){l.i1v.document.visibilityState==="visible"&&B()})}},rRN=function(X){if(!X.vm){var H={maxAttempts:5,
fIK:X.ttlSeconds*1E3};NSz(X.i1v);X.vm=X.dKh({eO:X.eO,yq8:{disable:_.P("html5_web_po_disable_remote_logging"),wx:"aGIf",haX:EBk("html5_web_po_experiment_ids"),u7Q:_.P("wpo_dis_lfdms")?0:1E3,aTz:function(b){var U=zAQ.get(b);U||(U=new SYG(b),U=new YO(U),zAQ.set(b,U));return U}},
qpm:H,nOu:X.bgChallenge,aG3:c3O});X.naC=Date.now();GTD(X.vm,function(){X.naC=Date.now()});
X.i1v.bgevmc={p:function(){var b;(b=X.vm)==null||b.pause()},
r:function(){var b;(b=X.vm)==null||b.resume()},
cr:function(){var b,U;return(U=(b=X.vm)==null?void 0:b.checkForRefresh())!=null?U:Promise.resolve()}};
nyy(X.vm,function(){return _.h(function(b){return b.return(j0x(X))})});
var l=X.gTL.bind(X);X.networkStatusManagerPromise&&X.ttlSeconds>0&&X.networkStatusManagerPromise.then(function(b){b.listen("publicytnetworkstatus-online",l)});
X.u1q(l)}};
cRZ.prototype.gTL=function(){if(Date.now()>this.naC+this.ttlSeconds*1E3){var X;(X=this.vm)==null||gr_(X)}};
var j0x=function(X){if(X.xZC)return X.xZC;if(!X.vm)throw Error("Fj");X.xZC=new t8({vm:X.vm,eO:X.eO,j9T:!0,onError:c3O,qpm:X.tsu});return X.xZC},r3h=function(X,H){X=new cRZ(X,H);
rRN(X);(H==null?0:H.x3j)||j0x(X)};var JRA=_.q2C.ephemeralActionSelector,LuA=function(X,H){this.store=X;this.queue=[];H==null||H.addEventListener("yt-navigate-start",this.reset.bind(this))};
LuA.prototype.enqueue=function(X){var H=X.command,l=X.durationMs,b=X.elementToFocus;var U=X.label;var K=X.elementToFocus;X.command?U=_.XS("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:U,shortcut:_.XS("SHIFT_PLUS_ENTER")}):K&&(X=U+". "+_.XS("SHIFT_PLUS_ENTER")+" for more information.",U=_.XS("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:U,shortcut:_.XS("SHIFT_PLUS_ENTER")},X));l={announcement:U,durationMs:l!=null?l:8E3};H?l.command=H:b&&(b.classList.add("ephemeral-action-focusable-element"),l.selector=b.tagName+
".ephemeral-action-focusable-element");this.queue.push(l);YtY(this)};
LuA.prototype.activate=function(X){var H=JRA(this.store.getState());if(H){if(H==null?0:H.command)_.Mq(H.command),this.store.dispatch(eFq(null));if(H==null?0:H.selector)H=document.querySelector(H.selector),_.grk(H);X.preventDefault()}};
var YtY=function(X){if(!JRA(X.store.getState())&&X.queue.length){var H=X.queue.shift();H&&(X.previousAnnouncement===H.announcement&&(H.announcement+="\u00a0"),X.store.dispatch(eFq(H)),X.previousAnnouncement=H.announcement,X.JSC$19140_timeoutId=setTimeout(function(){if(H.selector){var l;(l=document.querySelector(H.selector))==null||l.classList.remove("ephemeral-action-focusable-element")}X.store.dispatch(eFq(null));YtY(X)},H.durationMs))}};
LuA.prototype.reset=function(){this.JSC$19140_timeoutId&&clearTimeout(this.JSC$19140_timeoutId);this.store.dispatch(eFq(null));this.queue.length=0;this.JSC$19140_timeoutId=void 0};
LuA[rx]=[_.qU,_.c$(_.Lg)];_.uq=new _.gz("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var IRA=new _.gz("AUTH_SERVICE_TOKEN");var YWk=_.W8(["about:blank"]),Lby;var ARl=new _.gz("API_IFRAME_TOKEN");var mKC;mKC=new _.gz("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.XQx=new _.gz("MISC_UI_SHARED_FLAGS_TOKEN");var Hty=function(){};
Hty.prototype.getFlag=function(X){if(X.configType!==2)throw Error("Gj");return ltZ(X)};
var ltZ=function(X){switch(X.flagType){case "bool":return _.P(X.flagName);case "int":return _.Z6(_.Yy(X.flagName));case "double":return _.Yy(X.flagName);case "string":return _.I0(X.flagName);case "int32_list":return EBk(X.flagName);case "int64_list":return EBk(X.flagName).map(function(H){return _.Z6(H)});
case "string_list":return _.l0(X.flagName);default:throw Error("Hj");}};var eo=function(X,H,l){H=H===void 0?{}:H;Fn.call(this,l===void 0?"uninitialized":l);this.env=X;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];H.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=H.shouldWaitOnAsyncImmediate)};
_.S(eo,Fn);eo.prototype.init=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?b.yield(X(H.env),2):(X(H.env),b.jumpTo(2));if(b.nextAddress!=4)return H.jobSet?b.yield(H.jobSet.completedResolver.promise,4):b.jumpTo(4);l=_.ng();l.parkOrScheduleJob(function(){H.transition("rendering")},10,"ci");
_.m5(b)})};
eo.prototype.initialRender=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?b.yield(X(H.env),2):(X(H.env),b.jumpTo(2));if(b.nextAddress!=4)return H.jobSet?b.yield(H.jobSet.completedResolver.promise,4):b.jumpTo(4);l=_.ng();l.parkOrScheduleJob(function(){H.transition("rendered")},10,"cr");
_.m5(b)})};
eo.prototype.afterRenderImmediate=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return H.processPluginOptions.shouldWaitOnAsyncImmediate?b.yield(X(H.env),2):(X(H.env),b.jumpTo(2));if(b.nextAddress!=4)return H.jobSet?b.yield(H.jobSet.completedResolver.promise,4):b.jumpTo(4);l=_.ng();l.parkOrScheduleJob(function(){H.transition("after-render-deferred")},10,"carml");
_.m5(b)})};
eo.prototype.afterRenderDeferred=function(X){var H=this;return _.h(function(l){X(H.env);_.m5(l)})};_.Et("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var orY={},bt$=(orY.rendered={priority:0,callback:function(X){XF_(X.injector.resolve(yJ))}},orY);var Oyz=new _.gz("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),UdC=new _.gz("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var $dU=function(X){this.callbackFnMap=X;this.configMap={}};
$dU.prototype.handleResponse=function(X){var H;if(X=(H=X.responseContext)==null?void 0:H.serviceTrackingParams)for(H=_.C(X),X=H.next();!X.done;X=H.next()){X=X.value;var l=X.params,b=X.service;if(l&&b){this.configMap[b]||(this.configMap[b]=new L0Q);X=this.configMap[b];var U=void 0,K=(U=this.callbackFnMap)==null?void 0:U[b];l=_.C(l);for(b=l.next();!b.done;b=l.next())U=b.value,b=U.key,U=U.value,b&&U&&(X.set(b,U),K&&K(b,U))}}};
$dU.prototype.getConfig=function(X){return this.configMap[X]||void 0};
$dU[rx]=[_.c$(UdC)];var KPa=!1,UMy=0,HQy=null,bQW=null;var RfC=new _.gz("NETWORK_SLI_TOKEN");var C0x=function(X){this.networkSli=X};
C0x.prototype.fetch=function(X,H,l){var b=this,U;return _.h(function(K){U=wQY(b,X,H);return K.return(fetch(U).then(function(w){return b.handleResponse(w,l)}).catch(function(w){_.x2(w);
if((l==null?0:l.expectJsonStrict)&&w instanceof Uj&&w.errorType===1)return Promise.reject(w)}))})};
var RXt=function(X,H,l,b){var U,K,w,d,B,q,u;return _.h(function(e){switch(e.nextAddress){case 1:return U=wQY(X,H,l),_.Ew(e,2),e.yield(fetch(U),4);case 4:K=e.yieldResult;_.Zt(e,3);break;case 2:throw _.Ow(e),new Uj(2,"Failed to parse streaming response",U.url);case 3:if(!K.redirected&&!K.ok)throw(w=X.networkSli)==null||w.failure(),new _.qd("Streaming fetch request not ok",U.url);if(!K.body)throw new _.qd("No response body in streaming response",U.url);d={};if(_.P("web_streaming_fast"))return B=K.body.getReader(),
e.return(dd$(X,B,d,b));q=K.body.pipeThrough(new TextDecoderStream).getReader();u=new _.Cr;return e.return(hfC(X,q,u,Eay,d,b))}})},wQY=function(X,H,l){if(X.networkSli){var b=_.c1(_.lB(H,"key"))||"/UNKNOWN_PATH";
X.networkSli.start(b)}X=l;_.P("wug_networking_gzip_request")&&(X=TT8(l));return new window.Request(H,X)},dd$=function(X,H,l,b){var U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J,Y,Uy,Cy,sy,FO,ub,g8,mm,QZ,Bz,dt,TK;
return _.h(function(sG){switch(sG.nextAddress){case 1:U=new TextDecoder("utf-8"),K=[],d=w=0,_.Ew(sG,2,3);case 5:return sG.yield(H.read(),8);case 8:B=sG.yieldResult;q=B.value;if(u=B.done){e=0;if(K.length>w)for(e=K[w].length-d,y=w+1;y<K.length;y++)e+=K[y].length;e>0&&(V=$MK(K,e,w,d),p=V.indexOf(123),z=V.lastIndexOf(125),p!==-1&&z!==-1&&z>p&&(t=V.subarray(p,z+1),W=JSON.parse(U.decode(t)),Eay(l,W),G=void 0,(G=b)==null||G(l,W)));r=void 0;(r=X.networkSli)==null||r.success();return sG.return(l)}K.push(q);
Q=w;for(v=d;Q<K.length;)if(J=K[Q],Y=J.indexOf(10,v),Y===-1){if(Q===K.length-1)break;Q++;v=0}else{Uy=Q;Cy=Y+1;sy=0;if(w===Uy)sy=Cy-d;else{sy=K[w].length-d;for(FO=w+1;FO<Uy;FO++)sy+=K[FO].length;sy+=Cy}ub=$MK(K,sy,w,d,Uy,Cy);g8=ub.indexOf(123);mm=ub.lastIndexOf(125);if(g8!==-1&&mm!==-1&&mm>g8){QZ=ub.subarray(g8,mm+1);try{Bz=JSON.parse(U.decode(QZ)),Eay(l,Bz),dt=void 0,(dt=b)==null||dt(l,Bz)}catch(f_){throw new Uj(1,"Failed to parse streaming response object",U.decode(QZ));}}w=Q;v=d=Y+1;d===J.length&&
(w++,d=0,Q=w,v=0)}sG.jumpTo(5);break;case 3:_.GS(sG);H.releaseLock();_.vJ(sG,0);break;case 2:TK=_.Ow(sG);if(TK instanceof Uj)throw TK;throw new Uj(1,"Failed to process streaming response");}})},hfC=function(X,H,l,b,U,K){var w,d,B,q,u,e,y,V,p;
return _.h(function(z){if(z.nextAddress==1)return z.yield(H.read(),2);w=z.yieldResult;d=w.value;if(B=w.done)return(q=X.networkSli)==null||q.success(),z.return(U);try{u=l.parse(d)}catch(t){throw new Uj(1,"Failed to parse streaming response",d);}if(u!=null)for(e=_.C(u),y=e.next();!y.done;y=e.next())V=y.value,b(U,V),p=void 0,(p=K)==null||p(U,V);return z.return(hfC(X,H,l,b,U,K))})};
C0x.prototype.handleResponse=function(X,H){var l=X.text().then(function(b){if((H==null?0:H.jspbResponseCtor)&&X.ok)return dlh(H.jspbResponseCtor,b);b=b.replace(")]}'","");if((H==null?0:H.expectJsonStrict)&&b)try{var U=JSON.parse(b)}catch(w){throw new Uj(1,"JSON parsing failed after fetch");}var K;return(K=U)!=null?K:JSON.parse(b)});
X.redirected||X.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),l=l.then(function(b){_.x2(new _.qd("Error: API fetch failed",X.status,X.url,b));return Object.assign({},b,{errorMetadata:{status:X.status}})}));
return l};
C0x[rx]=[_.c$(RfC)];var FPp=new _.gz("NETWORK_MANAGER_TOKEN");var BLp=[1,2,4,8,16,30],sFl=function(X){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=X.maxTimeMs;this.maxFrameCount=X.maxFrameCount===void 0?Math.ceil(60*X.maxTimeMs/1E3):X.maxFrameCount;X=_.C(BLp);for(var H=X.next();!H.done;H=X.next())this.brokenFrameSummarizers.push(new qZd(H.value/60*1E3))},Mv$=function(X){var H=X.frameCountInternal>=X.maxFrameCount;
return X.elapsedTimeMs>=X.maxTimeMs||H};
sFl.prototype.summarize=function(){for(var X=[],H=_.C(this.brokenFrameSummarizers),l=H.next();!l.done;l=H.next())l=l.value,l=l.brokenFrameCount!==0?{severityMs:Math.round(l.targetFrameTimeMs),eventCount:l.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(l.averageDurationBetweenEventsMs)}:void 0,l&&X.push(l);return{summaries:X,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.ja.Object.defineProperties(sFl.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 qZd=function(X){this.targetFrameTimeMs=X;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.ja.Object.defineProperties(qZd.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var uBN=function(){};
uBN.prototype.start=function(X,H){var l=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var b=new sFl({maxTimeMs:X});this.monitor=b;this.lastSummaryInternal=void 0;this.metadataToLog=H;return new Promise(function(U){var K=function(w){if(w===void 0)l.stop(),U(void 0);else if(l.monitor!==b)w=Object.assign({},b.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),U(w);else{var d=l.monitor;if(!Mv$(d)){d.frameCountInternal++;if(d.prevTime===
void 0)d.startTime=w;else for(var B=w-d.prevTime,q=_.C(d.brokenFrameSummarizers),u=q.next();!u.done;u=q.next()){u=u.value;var e=u.currTimeMs;u.currTimeMs+=B;B>u.targetFrameTimeMs+2&&(u.brokenFrameCount++,u.timeOfFirstBrokenFrameMs===void 0&&(u.timeOfFirstBrokenFrameMs=e),u.timeOfLastBrokenFrameMs=e)}d.prevTime=w}Mv$(l.monitor)?U(l.stop()):_.Ss.addJob(K,5,0)}};
_.Ss.addJob(K,5,0)})};
uBN.prototype.stop=function(X){if(!this.monitor)return this.lastSummaryInternal;var H=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(H.monitoringDurationMs){X=X!=null?X:this.metadataToLog;var l={droppedFramesSummary:H,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};X&&(l[X.type]=X.data);_.Sh("manualSmoothnessMeasurement",l)}this.monitor=void 0;this.lastSummaryInternal=H;this.metadataToLog=void 0;return H};_.efN=new _.gz("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var KOh=Promise.resolve();var ylN;ylN=function(X){this.JSC$19182_expiringStorage=new u0(X)};
_.Vvd=function(X){if(_.CrK()&&(X=_.V0l(_.FB()+"::"+X)))return new ylN(X)};
ylN.prototype.set=function(X,H,l){l=l!==void 0?Date.now()+l:void 0;this.JSC$19182_expiringStorage.set(X,H,l)};
ylN.prototype.get=function(X){return this.JSC$19182_expiringStorage.get(X)};
ylN.prototype.remove=function(X){this.JSC$19182_expiringStorage.remove(X)};_.yj=function(){};
_.yj.getInstance=function(){var X=_.ij("ytglobal.storage_");X||(X=new _.yj,_.cQ("ytglobal.storage_",X));return X};
_.yj.prototype.estimate=function(){var X,H,l;return _.h(function(b){X=navigator;return((H=X.storage)==null?0:H.estimate)?b.return(X.storage.estimate()):((l=X.webkitTemporaryStorage)==null?0:l.queryUsageAndQuota)?b.return(wqb()):b.return()})};
_.cQ("ytglobal.storageClass_",_.yj);var MSz=0;var pqy=!1;var P0d=_.W8(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),ftp=_.W8(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var nOl={"/":_.oy,"/?feature=ytca":_.oy,"/feed/downloads":_.qEb};var pQe=MIx.continuationCommandSelector,UJ=function(X,H,l){this.JSC$19197_upliftPromise=X;this.store=H;this.JSC$19197_persistentStorePromiseAccessor=l};
UJ.prototype.shouldPreferLocalResponse=function(X){return X.browseId==="FEdownloads"||X.browseId==="FEsmart_downloads"&&_.P("kevlar_modern_downloads_page")?!0:!1};
UJ.prototype.localInnertubeResponse=function(X){var H=this;return _.h(function(l){return X.browseId==="FEdownloads"?_.P("kevlar_modern_downloads_page")?l.return(SZa(H)):l.return(zfN(H)):X.browseId==="FEsmart_downloads"&&_.P("kevlar_modern_downloads_page")?l.return(nrC(H)):l.return(Promise.reject(Error("Jj")))})};
UJ.prototype.canProvideFallbackResponse=function(){return!0};
UJ.prototype.localFallbackInnertubeResponse=function(X){var H=this,l,b,U;return _.h(function(K){switch(K.nextAddress){case 1:return K.yield(H.JSC$19197_persistentStorePromiseAccessor(),2);case 2:l=K.yieldResult;if(X.browseId!=="SPaccount_downloads"||!l){K.jumpTo(3);break}return K.yield(VWb(l),4);case 4:if(b=K.yieldResult)return K.return(_.Nf(b));case 3:return X.browseId==="FEwhat_to_watch"?K.return(kTZ(H)):(U=_.P("web_offline_continuation_automatic_retry")||_.P("web_offline_continuation_retry_button"))&&
X.continuation?K.return(xd5(H)):K.return(Dd$(H))}})};
var kTZ=function(X){var H;return _.h(function(l){if(l.nextAddress==1)return l.yield(X.JSC$19197_upliftPromise,2);H=_.hgm(X.store.getState().entities);return H.length?l.return(tvN(X,H)):l.return(Dd$(X))})},zfN=function(X){var H,l;
return _.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$19197_upliftPromise,2);if(b.nextAddress!=3)return H=WPC([{offlineItemSectionRenderer:{}}]),b.yield(ErN(X,H),3);l=b.yieldResult;l.onResponseReceivedActions=[A5("REFRESH_DOWNLOADS")];return b.return(l)})},SZa=function(X){var H,l,b,U,K,w,d,B,q,u,e,y,V,p,z,t;
return _.h(function(W){if(W.nextAddress==1)return W.yield(X.JSC$19197_upliftPromise,2);if(W.nextAddress!=3)return H=X.store.getState(),l=H.entities,b=_.dR(l),U=_.h0(l),K=_.T28(H),w=_.QIm(H),d=_.N2m(H),B=_.qvk(l),q=_.U9(b),u=_.Fe(l),e=_.egL(l),y=_.jIZ(H),V=_.u5(H),p={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.DNL(b,U,B,e,K,w,q,u,d,y,V),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},z="",_.P("kevlar_modern_downloads_skip_downloads_title")||
(z=_.XS("DOWNLOADS",void 0,"Downloads")),W.yield(grC(X,p,z),3);t=W.yieldResult;t.onResponseReceivedActions=[A5("REFRESH_DOWNLOADS")];return W.return(t)})},nrC=function(X){var H,l,b,U,K,w,d,B,q;
return _.h(function(u){if(u.nextAddress==1)return u.yield(X.JSC$19197_upliftPromise,2);if(u.nextAddress!=3)return H=X.store.getState(),l=H.entities,b=_.dR(l),U=_.U9(b),K=_.Fe(l),w={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.W_k(b),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},d=_.XS("SMART_DOWNLOADS",void 0,"Smart downloads"),B=kn8(U,K),u.yield(grC(X,w,d,B),3);q=u.yieldResult;q.onResponseReceivedActions=
[A5("REFRESH_DOWNLOADS")];return u.return(q)})},Dd$=function(X){var H,l;
return _.h(function(b){if(b.nextAddress==1)return b.yield(Tr(X.JSC$19197_upliftPromise,X.store),2);H=b.yieldResult;l=WPC([MWy(H)]);return b.return(ErN(X,l))})},xd5=function(X){var H,l,b,U;
return _.h(function(K){if(K.nextAddress==1)return H={},l=pQe(X.store.getState()),_.dC(H,_.uE,l),K.yield(Tr(X.JSC$19197_upliftPromise,X.store,H,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);b=K.yieldResult;U={};_.dC(U,_.hkQ,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:b}}}],targetId:"browse-feedFEwhat_to_watch"});return K.return({responseContext:{},onResponseReceivedActions:[U]})})},WPC=function(X){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:X}}}}]}}},tvN=function(X,H){var l,b;
return _.h(function(U){var K={contents:Xc(H)};l=K&&K.contents?K:{};_.P("kevlar_modern_downloads_page")&&(l=Object.assign({},_.ELO(H),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));b={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:l}}}]}};return U.return(ErN(X,b))})},ErN=function(X,H){var l,b;
return _.h(function(U){if(U.nextAddress==1)return U.yield(X.JSC$19197_persistentStorePromiseAccessor(),2);if(U.nextAddress!=3)return l=U.yieldResult,U.yield(cx(l),3);b=U.yieldResult;return U.return({responseContext:{},contents:H,topbar:b})})},grC=function(X,H,l,b){var U,K;
return _.h(function(w){if(w.nextAddress==1)return w.yield(X.JSC$19197_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3)return U=w.yieldResult,w.yield(cx(U),3);K=w.yieldResult;var d=w.return;var B=l;var q=b;B=B===void 0?"":B;q=q===void 0?"":q;B={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:B}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.XS("SETTINGS",void 0,"Settings"),accessibilityText:_.XS("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:_.Gu("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:q}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:B};
return d.call(w,{responseContext:{},contents:H,topbar:K,header:{pageHeaderRenderer:B}})})};var GT$=function(X){this.chunkRegistry=X};
GT$.prototype.handleResponse=function(X){var H=this,l,b,U,K,w;return _.h(function(d){K=(U=(l=_.f(X.responseContext,Tbv))==null?void 0:(b=l.webResponseContextPreloadData)==null?void 0:b.preloadMessageNames)!=null?U:[];w=y15(H.chunkRegistry,K);return d.yield(w(),0)})};
GT$[rx]=[_.p3];var H_q=new _.gz("MSS_RESPONSE_PROCESSOR_TOKEN");var atd={},Ztp=(atd.rendered={priority:0,callback:function(X){a:{var H=void 0;try{var l;b:{if(_.gtZ()){var b=_.Vl(_.FB()+"::pom");if(b){var U=new Hr(b);break b}}U=void 0}var K=(l=U)==null?void 0:l.get("role_text");if(!K)break a;H={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:K}]}}}}}}catch(B){}H&&X.injector.resolve(_.Vr).resolveCommand(H)}try{var w=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(w){var d=JSON.parse(w);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
d&&X.injector.resolve(_.Vr).resolveCommand(d)}}catch(B){}}},atd);var itx,vr$={},OtZ=(vr$.initialized={priority:10,callback:function(){itx=B8()}},vr$.rendering={callback:function(X){var H;
return _.h(function(l){if(l.nextAddress==1)return l.yield(itx,2);H=l.yieldResult;if(!H.endpoint)throw Error("Lj`"+_.ok.location.href);MV(X,H);_.m5(l)})}},vr$);var mda={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(_.LJ(_.P("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(X){var H=X.stack;if(H.includes("chrome://")||H.includes("chrome-extension://")||X.message.includes("chrome-extension://")||H.includes("moz-extension://")||
H.includes("local.adguard.org")||H.includes("auctioneer3.50million.club")||H.includes("youtubedownloader")||H.includes("youtube_home_page")||H.includes("is_youtube_video_no_longer_available")||H.includes("switchScreenSizeHack")||H.includes("yt_main_big_banner.js")||H.includes("YouTubeCenter.js")||H.includes("/mytube.js")||H.includes("JSON.parseWrapper")||H.includes("/inj_js/common.js")||H.includes("firebug-lite")||H.includes(".repl.co/")||H.includes("linkfix")||H.includes("playAfterAd")||X.message.includes("Access is denied for this document")&&
H.includes("<anonymous>")||X.fileName==="user-script"||X.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&H.includes("<anonymous>"))return!0;if(H.includes("https://www.youtube.com"))return!1;X=H.split("\n");if(!X.length)return!1;if(X.length<=3&&H.includes("s.onloadeddata"))return!0;H=0;for(var l=_.C(X),b=l.next();!b.done;b=l.next())b=b.value,(b.includes("https://")||b.includes("http://"))&&H++;return H/X.length>.95},
weight:0},{callback:function(X){return X.message==="Unknown Error"&&X.name.indexOf("NS_")===0},
weight:100},{callback:function(X){if(!_.Jv)return!1;var H=X.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||X.message.includes("available to complete this operation"),l=X.stack.includes("webcomponents")&&X.message==="Object doesn't support this action";X=X.message.includes("object that does not implement interface Element");return H||l||X},
weight:0},{callback:function(X){return X.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(X){return X.message==="Operation is not supported"&&(X.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(X){return X.stack.includes("eval code (eval (code:1:1)")||X.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(X){return X.message.includes("Permission denied")&&X.stack.includes("this.domHandler")?!0:X.name.includes("TypeError")&&X.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(X){if(!X.stack)return!1;var H=X.stack.trim().split("\n");H.length&&H[0].endsWith("Error: "+X.message)&&H.shift();H.length&&H[H.length-1].includes("at window.onerror (")&&H.pop();if(!H.length)return!0;if(X.message==="Script error.")return H[0].includes("www.youtube.com")||H.length>=2&&H[0].startsWith("at new")&&H[1].startsWith("at window.onerror");if(X.message==="Unexpected token")return!0;X=_.C(H);for(H=X.next();!H.done;H=X.next())if(H=H.value,!(H.includes("<anonymous>")||
H.startsWith("load@")||H.startsWith("global code@")||H.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(X){return X.message==="Cannot read property 'experiments'"&&X.stack.includes("/s/player/")},
weight:500},{callback:function(X){return X.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(X){return X.stack.includes("/embed.js")?(X.params&&X.params&&(X.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.P("use_error_suppression"))var X=_.gx("SUPPRESS_CLIENT_ERRORS",!1);else{if(X=_.IJ)X=/Chrome\/(\d+)/.exec(_.yZ()),X=(X?parseFloat(X[1]):NaN)>=66;X=!(X||_.Yi&&_.L9(65)||_.Dt&&_.L9(12.1)||TT&&_.L9(79))}return X},
weight:500}]};var QFa={},TLa=(QFa.initialized={priority:10,callback:function(X){X.injector.addProvider({provide:XHG,useValue:X.root});X.injector.addProvider({provide:Aod,useValue:qsl});X.injector.addProvider({provide:Xg5,useValue:mda});var H={};X.injector.addProvider((H.provide=HWd,H.useFactory=function(l,b){return function(){vAZ(l,b)}},H[rx]=[Aod,
Xg5],H));X.injector.addProvider({provide:Xr,useClass:Xr})}},QFa);var NLd={},cle=(NLd.initialized={priority:3,callback:function(){var X;if(X=BRW()){X=X.replace("/",".");var H=_.oO();H.set("tz",X);H.save();X=!0}else X=!1;X||(X=_.oO(),X.set("utco",-Math.floor((new Date).getTimezoneOffset())),X.save())}},NLd);var jFl={},rlU=(jFl.initialized={priority:10,callback:function(X){X.injector.resolve(Xr).start();X=_.ne();var H=_.G7("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.G7("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.G7("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.G7("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Xk(_.fzk(),{mainAppWeb:Object.assign({},X,{pageType:H})});_.Xk(SbL(),{mainAppWeb:Object.assign({},X,{pageType:H})});
_.Xk(z6y(),{mainAppWeb:X});_.Xk(n8N(),{mainAppWeb:X});dJq(function(){_.H8(z6y(),"FAILURE");_.H8(n8N(),"FAILURE")});
ZQy();iQN();Shl()}},jFl);var JlC={},LPp=(JlC.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.sf("dl"),_.ng().processSignal("pcl");else{var X=function(){_.sf("dl");_.ng().processSignal("pcl");window.removeEventListener("load",X)};
window.addEventListener("load",X)}}},JlC);var YZA={},ItZ=(YZA.rendering={priority:0,callback:function(){var X=_.ng();X.parkOrScheduleJob(function(){X.processSignal("eocs")},10,"eor",5E3)}},YZA);var Alp=function(){};
_.S(Alp,kR);
Alp.prototype.resolveCommand=function(X,H){var l,b,U,K,w,d,B,q;return _.h(function(u){U=(l=_.f(X,_.aEG))==null?void 0:(b=l.dialog)==null?void 0:b.commentReplyDialogRenderer;if(!U)throw new _.qd("No dialog in createCommentReplyDialogEndpoint");w=(K=H.form)==null?void 0:K.event;if(!w)throw new _.qd("Event not passed in when resolving command");d=_.C(w.composedPath());for(B=d.next();!B.done;B=d.next())if(q=B.value,q.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||q.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return q.showReplyDialog(U),u.return();
_.m5(u)})};var XBa=function(){};
_.S(XBa,kR);XBa.prototype.resolveCommand=function(){var X;return _.h(function(H){if(X=document.getElementById("creator-chatbots-panel"))X.style.display="none";_.m5(H)})};var HUN=function(){};
_.S(HUN,kR);HUN.prototype.resolveCommand=function(X){var H,l,b,U,K,w,d;return _.h(function(B){switch(B.nextAddress){case 1:return H=_.f(X,jeF),((l=H)==null?void 0:l.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?B.yield((0,_.AS)("NSzT5"),6):(b=H)!=null&&b.externalChannelId?B.yield((0,_.AS)("NSzT5"),4):B.return();case 4:return U=_.RCq,w=(K=H.forceInstall)!=null?K:!1,B.yield(U(H.externalChannelId,w,H.surface),0);case 6:return d=_.RCq,B.yield(d("",!1,H.surface),7);case 7:return B.return()}})};var Vj=function(X){this.JSC$19226_pageRequestService=X;this.JSC$19226_prefetchCoordinator=Z8A()};
_.S(Vj,kR);Vj.prototype.resolveCommand=function(X){var H=this,l,b,U,K;return _.h(function(w){if(w.nextAddress==1){l=_.f(X,shz);if((b=l)==null||!b.taskId)throw Error("Mj");U=l.taskId;_.Ew(w,2);return w.yield(_.Iea(H.JSC$19226_pageRequestService,X,{},"").then(function(d){if(!d)throw Error("Nj");},function(d){throw Error("Oj`"+d);
}),4)}if(w.nextAddress!=2)return mFY(H.JSC$19226_prefetchCoordinator,U),_.Zt(w,0);
K=_.Ow(w);O8l(H.JSC$19226_prefetchCoordinator,U,K);_.m5(w)})};
Vj[rx]=[_.Fk];var Po=function(X,H){this.innertubeTransportService=X;this.JSC$19230_commandHandler=H};
_.S(Po,kR);Po.prototype.resolveCommand=function(X){var H=this,l,b,U;return _.h(function(K){if(K.nextAddress==1){l=_.f(X,MnH);if(l.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||l.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")b=l.boolValue?2:1,_.ac.getInstance().setState(b,!0,!0);return K.yield(_.nl(H.innertubeTransportService,X),2)}U=K.yieldResult;lSN(H,U);_.m5(K)})};
var lSN=function(X,H){H.actions&&H.actions.forEach(function(l){X.JSC$19230_commandHandler.resolveCommand(l)})};
Po[rx]=[_.b$,_.Vr];var fE={},pE=(fE.addToPlaylistEndpoint=Ef(aj),fE.addToToastAction=Ef(jU),fE.adsControlFlowOpportunityReceivedCommand=Ef(so),fE.audioTrackSelectActionCommand=Ef(Ij),fE.backgroundAudioPlaybackCommand=Ef(HI),fE.captionLanguageSelectActionCommand=Ef(lY),fE.captionPickerEndpoint=Ef(of),fE.changeMiniAppPlayStateCommand=Ef(Zh),fE.changeTimelyActionVisibilityCommand=Ef(cI),fE.channelCreationFormEndpoint=Ef(Dh),fE.clearLocationCommand=Ef(G6),fE.clearUrlParamCommand=Ef(i6),fE.copyLinkCommand=Ef(d6),fE.copyTextEndpoint=
Ef(PL),fE.createCommentReplyDialogEndpoint=nvN(Alp),fE.createPlaylistServiceEndpoint=Ef(h9),fE.dismissDialogEndpoint=Ef(Oo),fE.dismissPlayerOverlayCommand=Ef(bY),fE.entityUpdateCommand=Ef(pZ),fE.feedbackEndpoint=Ef(Sm),fE.getAnswerCommand=Ef(p6),fE.getPaymentsClientTokenCommand=Ef(If),fE.getTranscriptEndpoint=Ef(r6),fE.googlePaymentBillingCommand=Ef(A9),fE.googlePaymentPurchaseManagerCommand=Ef(Xx),fE.hideCreatorChatbotEngagementPanelCommand=Ef(XBa),fE.hideEngagementPanelEndpoint=Ef(mg),fE.hideSheetCommand=
Ef(Qq),fE.hideSnackbarCommand=Ef(iY),fE.insertRichSectionCommand=Ef(WL),fE.listMutationCommand=Ef(Eo),fE.logGtmCommand=Ef(tZ),fE.notifyDropdownOptionSelectedCommand=Ef(vL),fE.openAdAllowlistInstructionCommand=Ef(_.Me),fE.openOnePickAddVideoModalCommand=Ef(FZ),fE.persistSubscriptionsDisplayPreferencesCommand=Ef(eU),fE.pingingEndpoint=Ef(u6),fE.playlistEditEndpoint=Ef(qi),fE.playlistVotingRefreshPopupCommand=Ef(sn),fE.profileCardCommand=Ef(qe),fE.refreshPanelEndpoint=Ef(T6),fE.saveImageToDeviceEndpoint=
Ef(fZ),fE.scrollToSectionEndpoint=nvN(hm$),fE.seekToVideoTimestampCommand=Ef(Un),fE.selectCountryCommand=Ef(yw),fE.setCookieCommand=Ef(Vw),fE.setLocalStorageCommand=Ef(On),fE.setPrefStorageEntryCommand=Ef(f6),fE.setSettingEndpoint=Ef(Po),fE.sfvAudioItemPlaybackCommand=Ef($4),fE.shareImageCommand=Ef(SU),fE.sharingProviderDataCommand=Ef(zR),fE.showAudioTrackPickerActionCommand=Ef(K6),fE.showCaptionLanguageSelectActionCommand=Ef(Rf),fE.showCreatorChatbotEngagementPanelCommand=Ef(HUN),fE.showDialogCommand=
Ef(jm),fE.showEngagementPanelEndpoint=Ef(r5),fE.showFullscreenPlayerControlsCommand=Ef(C6),fE.showSheetCommand=Ef(JZ),fE.showSnackbarCommand=Ef(vI),fE.showTransientPlayerScrimOverlayCommand=Ef(w6),fE.submitFormWithValidationFlowCommand=Ef(x6),fE.talkToRecsDeselectCommand=Ef(mB),fE.talkToRecsNextCommand=Ef(Qw),fE.talkToRecsSelectCommand=Ef(TR),fE.talkToRecsUpdateTextCommand=Ef(Ni),fE.toggleEngagementPanelCommand=Ef(LZ),fE.undoFeedbackEndpoint=Ef(k6),fE.updateEngagementPanelContentCommand=Ef(Y6),fE.updateUrlParamCommand=
Ef(J9),fE.updateVideoMetadataCommand=Ef(Y4),fE.verifyCommand=Ef(Dh),fE.webNativeShareCommand=Ef(n6),fE.webSubmitFormCommand=Ef(Mi),fE.ACK_PLAYABLES_3P_DATA_CONSENT=Ef(k4),fE.CANCEL_NAVIGATION=Ef(x4),fE.COPY_SHARE_URL=Ef(DJ),fE.MINI_APP_EXIT_DIALOG_SEEN=Ef(WI),fE.MINI_APP_OPEN_URL=Ef(t9),fE.REQUEST_MINI_APP_FULLSCREEN=Ef(En),fE.RESUME_NAVIGATION=Ef(g6),fE.SHARE_PLAYABLE_WITH_HIGH_SCORE=Ef(GR),fE.TELL_US_WHY=Ef(z6),fE);
_.P("web_enable_prefetching_videos_on_home")&&(pE.prefetchWatchCommand=Ef(Vj),pE.registerTasksCommand=Ef(LKy));_.P("enable_share_panel_navigation_logging_fix_on_web")&&(pE.shareEntityServiceEndpoint=Ef(Ne));_.P("web_use_flow_state_manager")&&(pE.deleteFlowStepsCommand=Ef(KZ),pE.flowNextStepCommand=Ef(Rj),pE.flowPrevStepCommand=Ef(CZ),pE.getFlowCommand=Ef(w5),pE.updateFlowCommand=Ef(d5));_.P("enable_ai_companion")&&(pE.updateConversationIdCommand=Ef(Vq),pE.formDataDecoratorCommand=Ef(yq));
var DxD=Object.assign({},pE);var oVU={},bUy=(oVU.initialized={priority:10,callback:TNk},oVU);var UKx={},$KU=(UKx.initialized={callback:function(X){var H={},l={};p2Z().install((H.document_disposed={callback:function(){_.P("finalize_all_timelines")?I7N():hY();lbm("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.OKy();var b=X.injector.resolve(Xr);b.intervalId!==void 0&&(b.intervalId&&_.Ss.cancelJob(b.intervalId),b.intervalId=void 0,--b.currentPartitionIndex,b=vFC(b),b>0&&Fk9({mainAppWeb:_.ne(),survivalSli:{partitionMinute:b,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));UC_(nk);k8!=null&&
k8.flush();O9&&O9.snapshotAndFlush();b=_.C(zAQ.values());for(var U=b.next();!U.done;U=b.next())U.value.snapshotAndFlush()}},H),(l.flush_logs={callback:function(){_.z3()}},l))}},UKx);var KQU={},RV$=(KQU.rendered={priority:0,callback:function(){var X=new eVq;X.increment("STARTED");if(_.gx("LOGGED_IN")&&!_.gx("IS_DBSC",!1)&&_.gx("SERVER_VERSION")!=="test"&&_.gx("SERVER_VERSION")!=="dev"&&!HYb()&&!XbO()){X.increment("EXECUTING");var H=document.createElement("iframe");H.style.display="none";_.CJ(H,2,_.Yn("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.gx("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(H);X.increment("DONE")}}},
KQU);var CMx={},wBx=(CMx.rendered={callback:function(){Z8A().resume()}},CMx);var dKZ={acknowledgeChannelTouStrikeCommand:e2(Ej),addToPlaylistServiceEndpoint:e2(ax),addToPlaylistEndpoint:e2(ax),addUpcomingEventReminderEndpoint:e2(Hd),browseEndpoint:e2(KKd),channelCreationFormEndpoint:e2(zD),channelCreationServiceEndpoint:e2(nP),claimLegacyYoutubeChannelEndpoint:e2(Fx),clearSearchHistoryEndpoint:e2(Oj),clearWatchHistoryEndpoint:e2(ml),commerceActionCommand:yY(Ho),createBackstagePostEndpoint:e2(KP),createBroadcastCommand:e2(lt),createCommentEndpoint:e2(PZ),createCommentReplyEndpoint:e2(Vu),
createLiveChatPollEndpoint:e2(ox),createPlaylistServiceEndpoint:e2(Zu),crossAccountChannelTransferEndpoint:e2(Nu),deleteLiveChatMessageCommand:e2(bt),deletePlaylistEndpoint:e2(vd),deleteVideoEndpoint:e2(hB$),dismissalEndpoint:e2(g$),feedbackEndpoint:e2(GD),flagEndpoint:e2(cd),getAccountSwitcherEndpoint:e2(TD),verifyCommand:e2($k),getAccountsListInnertubeEndpoint:e2(Xf),getCommentsFromInboxCommand:e2(eE),getDownloadActionCommand:e2(zk),getFlowCommand:yY(vZ),getKidsBlocklistPickerCommand:e2(jE),getNotificationMenuEndpoint:e2(wEl),
getPaymentInstrumentsParamsCommand:e2(eBd),getPaymentsClientTokenCommand:yY(Ho),getPdgBuyFlowCommand:e2(gQ),getReportFormEndpoint:e2(rQ),getSearchInVideoCommand:e2(Yb),getAnswerCommand:e2(LO),getSurveyCommand:e2(X2),getTranscriptEndpoint:e2(Bvd),getPostVideoPreviewEndpoint:e2(CP),decorateMessageEndpoint:e2(RU),likeEndpoint:e2(kk),liveChatActionEndpoint:e2(Rx),liveChatEndpoint:e2(KO),liveChatItemContextMenuEndpoint:e2(Ux),liveChatPurchaseMessageEndpoint:e2(CO),liveChatReplayEndpoint:e2($b),manageLiveChatUserEndpoint:e2(dQ),
metadataUpdateCommand:e2(M5),moderateLiveChatEndpoint:e2(hH),modifyChannelNotificationPreferenceEndpoint:e2(fO),notificationOptOutEndpoint:e2(pO),openSuperStickerBuyFlowCommand:e2(wQ),performCommentActionEndpoint:e2(uW),playlistEditEndpoint:e2(m0),playlistEditorEndpoint:e2(Ox),recordNotificationInteractionsEndpoint:e2(SE),reelWatchEndpoint:e2(Qg),refreshPanelEndpoint:e2(kb),removeUpcomingEventReminderEndpoint:e2(Ff),resolveLocationCommand:e2(sx),revealBusinessEmailCommand:e2(BZ),searchEndpoint:e2(_.dFe),
sendLiveChatMessageEndpoint:e2(Bd),sendLiveChatVoteEndpoint:e2(q5),setSettingEndpoint:e2(xk),shareEntityServiceEndpoint:yY(WZ),sharingProviderDataCommand:e2(AH),showEngagementPanelEndpoint:e2(xb),showMoreDrawerCommand:e2(tH),showSheetCommand:e2(Wd),showDialogCommand:e2(Du),subscribeEndpoint:e2(D5),transcriptSubmitCaptionCorrectionCommand:e2(FKC),undoFeedbackEndpoint:e2(Z5),unsubscribeEndpoint:e2(t4),updateBackstagePostEndpoint:e2(d$),updateCommentEndpoint:e2(pP),updateCommentReplyEndpoint:e2(fP),
updateCommentsSettingsEndpoint:e2(SM),updateCreatorChannelInnertubeCommand:e2(sj),updateKidsBlacklistEndpoint:e2(JH),updateEngagementPanelContentCommand:e2(Ex),updatePdgFeatureEnablementCommand:e2(Gk),updatedMetadataEndpoint:e2(ut),validateChannelHandleCommand:e2(Mu),updateChannelPageSettingsEndpoint:e2(qu),verifyAgeEndpoint:e2(iW),watchEndpoint:yY(lW),whitelistEditEndpoint:e2(qT$),ypcCancelRecurrenceEndpoint:e2(lq),ypcCompleteTransactionEndpoint:e2(sAA),ypcFixInstrumentEndpoint:e2(ov),ypcGetCartEndpoint:e2(MOZ),
ypcGetOffersEndpoint:e2(uJY),ypcHandleTransactionEndpoint:yY(bq),ypcLogWalletAnalyticDataEndpoint:e2(yod),ypcOffersEndpoint:e2(VOY),ypcPauseSubscriptionCommand:e2(PIC),ypcRedeemCodeEndpoint:e2(fMA),ypcResumeSubscriptionCommand:e2(pEC),ypcUpdateFopEndpoint:e2(ov)},So={},hVC=(So.GET_ACCOUNT_MENU=e2(cZ),So.GET_NOTIFICATIONS_MENU=e2(CIp),So.GET_NOTIFICATIONS_INBOX=e2(yg),So.GET_UNSEEN_NOTIFICATION_COUNT=e2(Pd),So.GET_USER_MENTION_SUGGESTIONS=e2(w$),So.LOAD_GUIDE=e2(RBZ),So.SUBMIT_FEEDBACK=e2(aU),So),
z_={},FQZ=(z_.CONTINUATION_REQUEST_TYPE_BROWSE=e2(h4),z_.CONTINUATION_REQUEST_TYPE_SEARCH=e2(Ix),z_.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=e2(XZ),z_.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=e2(Qu),z_.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=e2(yu),z_.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=e2(eM),z_.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=e2(N5),z_.CONTINUATION_REQUEST_TYPE_GET_PANEL=e2(nO),z_),BnU={player:yY(lW),watchNext:e2(AZ)},q4Y={player:yY(lW),reelItemWatch:e2(Qg),reelWatchSequence:e2(Tk)},
swZ={watchEndpoint:yY(oU)},MsC={commandEndpointMap:dKZ,signalEndpointMap:hVC,continuationEndpointMap:FQZ,watchEndpointMap:BnU,reelWatchEndpointMap:q4Y,streamingEndpointMap:swZ};var u$Y,eVy,yVd;_.VsC=((eVy=(u$Y=window).matchMedia)==null?void 0:(yVd=eVy.call(u$Y,"(prefers-reduced-motion: reduce)"))==null?void 0:yVd.matches)||!document.startViewTransition;var PMe={},fSA={disableAllTransitions:_.VsC,ignoredErrors:(PMe.DOCUMENT_HIDDEN=!0,PMe.WINDOW_SIZE_CHANGED=!0,PMe.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,PMe),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 pBx=_.W8("\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(",")),zVZ=function(X){var H=this;this.viewTransitionCoordinator=
X;this.disableTransitionsForUltraHigh=_.P("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=S4C();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.I0("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.P("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.P("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.P("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.I0("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.P("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.Ss.addJob(function(){H.registerRootElement();if(H.isAnyTransitionEnabled){var l=
_.Yy("web_page_transition_exit_ms"),b=_.Yy("web_page_transition_wait_ms"),U=_.Yy("web_page_transition_enter_fast_ms"),K=_.Yy("web_page_transition_watch_exit_ms"),w=_.Yy("web_page_transition_watch_wait_ms"),d=_.Yy("web_page_transition_watch_enter_ms"),B=_.Yy("web_page_transition_watch_next_exit_ms"),q=_.Yy("web_page_transition_watch_next_wait_ms"),u=_.Yy("web_page_transition_watch_next_enter_fast_ms"),e=_.Yy("web_page_transition_enter_ms"),y=_.Yy("web_page_transition_watch_next_enter_ms");H.enableFasterTransitions&&
H.isUltraHighBucketDevice&&(e=U,y=u);isNaN(l)&&isNaN(b)&&isNaN(e)&&isNaN(K)&&isNaN(w)&&isNaN(d)&&isNaN(B)&&isNaN(q)&&isNaN(y)||!(l=lem(pBx,l,b,e,K,w,d,B,q,y))||(b=document.createElement("style"),b.textContent=Emb(l),document.head.appendChild(b))}},8)},S4C=function(){var X=_.ok.navigator.deviceMemory;
return X>=8||X===void 0?!0:!1};
zVZ.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var X={};this.viewTransitionCoordinator.registerElement(document.documentElement,(X.slide="root-slide",X["lockup-to-watch"]="root-lockup-to-watch",X["learning-journey"]="root-learning-journey",X))}};
_.km9=function(X,H){X.isLockupToWatchTransitionEnabled&&X.isLockupThumbnailRegistrationEnabled&&(X.registeredLockupThumbnail?X.lockupThumbnailRegisteredFromWatchEndpoint?_.x2(new _.qd("Lockup thumbnail registration order is incorrect.")):_.x2(new _.qd("Lockup thumbnail already registered.")):(X.registeredLockupThumbnail=H,_.nVY(X,H)))};
_.nVY=function(X,H){var l={};X.viewTransitionCoordinator.registerElement(H,(l["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",l),!0)};
zVZ[rx]=[Bxy];var NNy={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 j38=["videoPrimaryInfoRenderer","title"],rEm=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var kdy;kdy=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.xKA=_.Z(function(X){X=_.gT(X,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var H=X.data,l=X.playlistData,b=X.expanded,U=X.onExpandClick,K=X.isReadyToResume,w=function(){var u;return!((u=l())==null||!u.contents)},d=function(){var u=l();
return u&&u.totalVideos&&u.currentIndex!==void 0?u.currentIndex+1+" / "+u.totalVideos:""};
X=_.Nq(function(){_.nE(_.jJ().resolve(_.f9));return!1});
var B=_.Nq(function(){w()&&U&&U()}),q={};
return _.F("ytd-miniplayer-info-bar",{class:_.Qr("ytdMiniplayerInfoBarHost",(q.ytdMiniplayerInfoBarHasPlaylistData=w,q)),"on:click":B},_.F("div",{class:"ytdMiniplayerInfoBarContent"},_.F("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":X},_.F(_.Sj,{text:function(){var u=H();var e=l();if(e==null?0:e.contents){var y;u=(y=_.Jkk(e))==null?void 0:y.title}else u=u==null?void 0:u.miniplayerTitle;return LOl(u)},
noEndpoints:!0,ellipsisTruncate:!0})),_.F("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.F(_.M,{cond:K,then:function(){return _.F(l0H,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:kdy})}}),_.F("h1",null,_.F(_.Sj,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var u=H();var e=l();u=K()?{simpleText:_.XS("CONTINUE_WATCHING",void 0,"Continue watching")}:(e==null?0:e.contents)?e.titleText:u==null?void 0:u.miniplayerSubtitle;return LOl(u)},
noEndpoints:!0,ellipsisTruncate:!0})),_.F(_.M,{cond:function(){return!!d()&&!K()},
then:function(){return _.F("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.F("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.F("span",null,d))}}))),_.F(_.M,{cond:w,
then:function(){return _.F("div",{class:"ytdMiniplayerInfoBarExpand"},_.F(_.ms,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(u){U&&(U(),u.stopPropagation())}}},
iconName:function(){return b()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ig");var DKe;DKe=_.Z(function(X){return _.F("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.F(_.ms,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:X.onTap}},
iconName:"yt-icons:close"}))},"Jg");
_.tsl=_.Z(function(X){X=_.gT(X,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var H=X.size,l=X.playabilityStatus,b=X.isDisabled,U=X.isPictureInPicture,K=_.SJ("div");X=_.C(_.FU(void 0,void 0,"w4RAU"));var w=X.next().value,d=X.next().value;X=_.Aa(_.Te);var B=!1,q=function(){return H().height<=0};
_.Wg(function(){var V=H(),p=q(),z=w();z&&!p&&z.setInternalSize(V.width,V.height)},"BHFc2b");
_.xy(function(){var V,p,z;return _.h(function(t){if(t.nextAddress==1){V=_.jJ().resolve(_.f9);p=V.getPlayerElement();if(!V.isMiniplayerActive()||!p||!K.value)return t.return();p.appendTo(K.value);return t.yield(p.getPlayerPromise(),2)}z=t.yieldResult;U()||z.setSizeStyle(!1,!0);d(z);_.m5(t)})});
_.E2(function(){u()});
_.Wg(function(){var V=w();if(V)if(b()){var p=V.getPlayerState();(B=p===-1||p===1||p===3)&&V.pauseVideo()}else u()},"Invykd");
var u=function(){if(B){B=!1;var V;(V=w())==null||V.playVideo()}},e=_.Nq(function(){_.nE(_.jJ().resolve(_.f9))}),y={};
return _.F("ytd-miniplayer-player-container",{class:_.Qr("ytdMiniplayerPlayerContainerHost",(y.ytdMiniplayerPlayerContainerHidden=q,y.ytdMiniplayerPlayerContainerHostShortsPip=X,y)),style:_.rC({width:function(){return H().width+"px"},
height:function(){return H().height+"px"}})},_.F("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:K}),_.F(_.M,{cond:function(){return!!l()&&!_.qWl(l())},
then:function(){return _.F(gmU,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var V;return((V=l())==null?void 0:V.errorScreen)||null},
status:function(){var V;return((V=l())==null?void 0:V.status)||null}})}}),_.F(_.M,{cond:b,
then:function(){return _.F("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":e},_.F(DKe,{onTap:function(){_.jJ().resolve(_.f9).close()}}))}}))},"Ng");var $W6;var Cb_=null;var EVZ=_.Z(function(X){var H=X.progressState;var l=X.multiMarkersPlayerBarRenderer;var b=X.progressBarWidth;var U=function(){return FmD(l())},K=function(){return skG(H())},w=function(){return b()*(H().playedTime/H().videoDuration)};
return _.F("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.F(_.P$,{each:U},function(d,B){return _.F(WQA,{modifiedProps:K,chapters:U,index:B,playedProgressWidth:w,backgroundGradientPosition:function(){var q=K(),u=U(),e=B(),y=w();return(q.playedTime-VC(_.f(u[e],yC)))/q.playedTime*y}})}))},"Og"),WQA=_.Z(function(X){var H=X.modifiedProps;
var l=X.chapters;var b=X.index;var U=X.playedProgressWidth;var K=X.backgroundGradientPosition;X={};X=_.Qr("ytChapteredProgressBarChapteredPlayerBarChapter",(X.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return w().isScrubbing},X.ytChapteredProgressBarHoveredMacroMarker=function(){return w().scrubberHovering},X.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return w().videoPosition==="seen"},X));
var w=function(){return MlH(H(),l(),b())},d=function(){var B=H();
var q=l(),u=b();if(MlH(B,q,u).videoPosition!=="active")B=0;else{var e=VC(_.f(q[u],yC));B=(B.playedTime-e)/((VC(_.f(q[u+1],yC))||B.videoDuration)-e)}return B};
return _.F("div",{class:X,style:_.rC({width:function(){var B=H(),q=l(),u=b(),e=_.f(q[u],yC);q=_.f(q[u+1],yC);return(q?VC(q)-VC(e):B.videoDuration-VC(e))/B.videoDuration*100+"%"},
"background-color":function(){a:{var B=w();switch(B.videoPosition){case "pending":B=B.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":B=B.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:B=""}}return B},
"background-size":function(){return(uOQ(w())?U():"")+"px"},
"background-position-x":function(){return(uOQ(w())?K():"")+"px"}})},_.F("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var B=H(),q=l(),u=b();if(MlH(B,q,u).videoPosition==="seen")var e=0;else e=VC(_.f(q[u],yC)),q=VC(_.f(q[u+1],yC))||B.videoDuration,B=B.videoDuration*B.percentLoaded,e=q<=B?1:e>=B?0:(B-e)/(q-e);return"width: "+e*100+"%"}}),_.F("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.rC({width:function(){return d()*100+"%"},
"background-size":function(){return(uOQ(w(),d())?U():"")+"px"},
"background-position-x":function(){return(uOQ(w(),d())?K():"")+"px"}})}))},"Pg");var gV5=function(X,H){H=H===void 0?dVD:H;var l,b=[],U,K=!1;return function(){var w=_.Ab.apply(0,arguments);if(K&&l===this&&H(w,b))return U;U=X.apply(this,w);K=!0;l=this;b=w;return U}}(function(X){var H=X.heatMarkers,l=X.minHeightDp===void 0?0:X.minHeightDp,b=X.maxHeightDp===void 0?60:X.maxHeightDp;
var U=U===void 0?!1:U;var K=1E3/H.length;X=[];X.push({x:0,y:100});for(var w=0;w<H.length;w++){var d=void 0,B=((d=_.f(H[w],P2_))==null?void 0:d.heatMarkerIntensityScoreNormalized)||0;d=(w+.5)*K;B=100-_.kY(B*100,l/321*100,b/321*100);w!==0||U||X.push({x:0,y:B});X.push({x:d,y:B});w===H.length-1&&X.push({x:1E3,y:B})}X.push({x:1E3,y:100});H="";for(l=0;l<X.length;l++)U=X[l],l===0?U="M "+U.x.toFixed(1)+","+U.y.toFixed(1):(b=FbK(X[l-1],X[l-2],U),K=FbK(U,X[l-1],X[l+1],!0),U=" C "+(b.x.toFixed(1)+","+b.y.toFixed(1)+
" "+K.x.toFixed(1)+","+K.y.toFixed(1)+" "+U.x.toFixed(1)+","+U.y.toFixed(1))),H+=U;return H});var Gdp=_.Z(function(X){var H=X.progressBarProps;var l=X.config;var b={};X=_.Qr("ytHeatSeekerHost",(b.ytHeatSeekerHighContrast=X.highContrast,b));var U=function(){return Hyq(l().chapterData)};
return _.F("yt-progress-bar-heatseeker",{class:X,style:function(){var K;return"height: 320px; display: "+(H().isDragging&&((K=U())==null?0:K.heatMarkers)?"block":"none")}},_.F(_.M,{cond:U,
then:function(K){return _.F(_.M,{cond:function(){return K().heatMarkers},
then:function(){return _.F("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.F("path",{d:function(){return gV5(K())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Qg");var aSl=_.Z(function(X){var H=X.progressBarProps;var l=X.config;X={};X=_.Qr("ytProgressBarLineProgressBarLine",(X.ytProgressBarLineProgressBarLineRounded=function(){return l().rounded},X.ytProgressBarLineProgressBarLineBottomInset=function(){return l().position===2},X));
return _.F("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.F("div",{class:X},_.F("div",{class:"ytProgressBarLineProgressBarBackground"}),_.F("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+H().percentLoaded*100+"%"}}),_.F("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var b=H();return"width: "+(b.videoDuration?_.kY(b.hoveredTime/b.videoDuration,0,1):0)*100+"%"}}),_.F("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+Iby(H())*100+"%"}})))},"Rg");
aSl.idomCompat=!0;var ZUY=_.Z(function(X){var H=X.progressBarProps;var l=X.playheadData;var b=X.interpolateDotPosition;var U=X.hidePlayhead;X={};var K=_.Qr("ytProgressBarPlayheadProgressBarPlayheadDot",(X.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return H().isDragging},X.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!H().isDragging&&U()},X));
return _.F("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.rC({"margin-left":function(){return AEW(H())*100+"%"},
transform:function(){return"translateX(-"+(b()?AEW(H())*12:6)+"px)"}})},_.F(_.M,{cond:function(){var w;
return(w=_.Eq(l)())==null?void 0:w.playheadImage},
then:function(w){var d={};return _.F("div",{class:_.Qr("ytProgressBarPlayheadProgressBarPlayheadCustom",(d.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return H().isDragging},d.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!H().isDragging&&U()},d)),
style:_.rC({"transform-origin":function(){return(b()?AEW(H())*20:10)+"px center"}})},_.F(_.Dp,{data:w,
alt:"","aria-hidden":"true"}))},
else:function(){return _.F("div",{class:K,style:_.rC({"transform-origin":function(){return(b()?AEW(H())*12:6)+"px center"}})})}}))},"Sg");
ZUY.idomCompat=!0;var kC=function(X,H,l,b,U,K){this.getProgressBarRect=X;this.updateProgressBarRect=H;this.getFilmstripYPosition=l;this.setFineScrubbingDraggedTime=b;this.updateFilmStripDraggedYDistance=U;this.resetFilmStripYOffset=K;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.jw(this.onThrottledSeek,100,this)},iUd=function(X,H,l){return function(b){X.handleClick(b,H(),l())}},mKl=function(X,H){return function(l){vVU(X,
l,OU5(l),H())}},QwZ=function(X,H){return function(l){vVU(X,l,{x:l.clientX,
y:l.clientY},H())}},NnN=function(X,H,l){return function(b){var U=H(),K=l();
TnZ(X,b,OU5(b),U,K,!0);if(K.onTouchMove)K.onTouchMove(U)}},jwe=function(X,H,l){return function(b){cVY(X,b,H(),l())}},rVa=function(X,H){return function(){X.handleMouseLeave(H())}},LQU=function(X,H,l){return function(){var b=H(),U=l();
JVa(X,b,U);if(U.onTouchEnd)U.onTouchEnd(b)}},Y4C=function(X,H,l){return function(){var b=H(),U=l();
JVa(X,b,U);if(U.onTouchEnd)U.onTouchEnd(b)}},ISU=function(X,H,l){return function(){JVa(X,H(),l())}},AVZ=function(X){return function(H){if(H.keyCode===39||H.keyCode===38){var l,b;
(l=X())==null||(b=l.playerApi)==null||b.seekBy(5,void 0,void 0,72)}else if(H.keyCode===37||H.keyCode===40){var U,K;(U=X())==null||(K=U.playerApi)==null||K.seekBy(-5,void 0,void 0,71)}}},XDZ=function(X,H,l){return function(b){!l().disableScrubbing&&X.startPosition&&cVY(X,b,H(),l())}},H2Y=function(X,H,l){return function(){if(!l().disableScrubbing)if(X.startPosition){var b=H(),U=l();
JVa(X,H(),l());if(U.onTouchEnd)U.onTouchEnd(b)}else H().setState({isDragging:!1})}},OU5=function(X){X=X.touches[0];
return{x:X.clientX,y:X.clientY}},cVY=function(X,H,l,b){if(H.buttons!==1){if(H.movementX||H.movementY)H.preventDefault(),H.stopPropagation(),X=lqd(X,l,H.clientX),l.setState({isHovering:!0,
hoveredTime:X*l.videoDuration})}else o2e(l),TnZ(X,H,{x:H.clientX,y:H.clientY},l,b,!1)};
kC.prototype.handleMouseLeave=function(X){o2e(X)};
var o2e=function(X){X.isHovering&&X.setState({isHovering:!1,hoveredTime:0})},vVU=function(X,H,l,b){X.startPosition||(X.startPosition=l,X.updateProgressBarRect(),X.controlsWereVisibleBeforeDragging=b.controlsVisible,H.stopPropagation(),_.P("medium_progress_bar_modification")||H.preventDefault())},TnZ=function(X,H,l,b,U,K){if(X.startPosition)if(K&&U.isInlinePlayback&&X.startPosition&&!X.hasDraggedTheMinimumDistance&&Math.abs(l.y-X.startPosition.y)>Math.abs(l.x-X.startPosition.x))JVa(X,b,U);
else if(H.preventDefault(),H.stopPropagation(),b.videoDuration&&(X.startPosition&&!X.hasDraggedTheMinimumDistance&&(X.hasDraggedTheMinimumDistance=Math.abs(l.x-X.startPosition.x)>=1),U.enableFineScrubbing&&(X.startPosition&&(X.isDraggedForFineScrubbing=-(l.y-X.startPosition.y)>=60),!X.startPosition||l.y>=X.startPosition.y||(b.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:ezG(b.draggedTime,b,U.chapterData)}),X.setFineScrubbingDraggedTime(b.draggedTime),X.updateFilmStripDraggedYDistance(X.startPosition.y,
l.y,b))),X.hasDraggedTheMinimumDistance)){H=lqd(X,b,l.x);if(X.isDraggedForFineScrubbing){var w;(w=b.playerApi)==null||w.pauseVideo();b.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:b.draggedTime,filmStripXDistance:ezG(H*b.videoDuration,b,U.chapterData)})}U.enableFineScrubbing&&(!U.enableFineScrubbing||X.getFilmstripYPosition(b)<68)||b.setState({draggedTime:H*b.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:X.controlsWereVisibleBeforeDragging});var d;(d=
U.cancelAutohideControlsFn)==null||d.call(U)}},JVa=function(X,H,l){var b=l.enableFineScrubbing&&H.fineScrubbingActiveState!=="off";
if(H.isDragging||b){b={isDragging:!1,playedTime:H.draggedTime,controlsVisible:X.controlsWereVisibleBeforeDragging};l.enableFineScrubbing&&H.fineScrubbingActiveState!=="on"&&(X.resetFilmStripYOffset(),b.fineScrubbingActiveState="off");var U=U===void 0?Cb_:U;var K=_.Bi(0);if(K&&U){var w=Math.round(H.playedTime*1E3),d=Math.round(H.draggedTime*1E3);w>2147483647||d>2147483647||_.Di(K,U,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(w),endMediaTimeMs:String(d),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}H.setState(b);
X.seekThrottle.fire(H.draggedTime,H,7);_.P("mweb_new_progress_bar_play_on_seek")&&X.resumeVideo(H);l.unmuteOnSeek&&(l=H.playerApi,H.volumeMuted&&(l==null||l.unMute()))}else H.setState({controlsVisible:!H.controlsVisible}),(K=l.triggerAutohideControlsAfterDelayFn)==null||K.call(l);X.startPosition=null;X.hasDraggedTheMinimumDistance=!1;X.isDraggedForFineScrubbing=!1;X.controlsWereVisibleBeforeDragging=!1};
kC.prototype.handleClick=function(X,H,l){this.updateProgressBarRect();X.stopPropagation();X=lqd(this,H,X.clientX)*H.videoDuration;H.setState({playedTime:X});if(H.playerState!==2){var b;(b=l.triggerAutohideControlsAfterDelayFn)==null||b.call(l)}this.seekThrottle.fire(X,H,7)};
var lqd=function(X,H,l){X=X.getProgressBarRect(H);return _.kY(0,(l-X.left)/X.width,1)};
kC.prototype.resumeVideo=function(X){if(X.draggedTime<X.videoDuration){var H;(H=X.playerApi)==null||H.playVideo()}};
kC.prototype.onThrottledSeek=function(X,H,l){if(H=H.playerApi){var b;if((b=H.getVideoData())==null?0:b.isLive)b=this.getProgressState(H),X+=(b==null?void 0:b.seekableStart)||0;H.seekTo(X,void 0,void 0,void 0,l)}};
kC.prototype.getProgressState=function(X){var H=X==null?void 0:X.getPresentingPlayerType();return X==null?void 0:X.getProgressState(H)};var $px,Upp,KFY,Ckx,b2N,wDZ,dpe,h2$,FFZ;$px=_.Z(function(X){var H=X.progressBarProps;var l=X.config;var b=X.progressBarWidthPx;var U=X.chapterData;var K=ph_(H,function(){return l().isShortsPage}),w=function(){return!H().isHovering&&!l().isShortsPage};
X={};var d=_.Qr("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(X.ytPlayerStoryboardHostMwebShorts=function(){return l().isShortsPage&&!1},X));
return _.F("yt-player-storyboard",null,_.F(_.M,{cond:function(){return H().isDragging||H().isHovering},
then:function(){return _.F(_.M,{cond:K,then:function(B){return _.F(_.M,{cond:w,then:function(){return _.F("div",{class:d,"aria-hidden":"true"},_.F(b2N,{props:H,config:l,isBigboard:!0,chapterData:U}))},
else:function(){return _.F(Upp,{props:H,frame:B,config:l,progressBarWidthPx:b,chapterData:U})}})}})}}))},"Tg");
_.R2a=_.Z(function(X){var H=X.progressBarProps;var l=ph_(H,X.isShortsPage);return _.F("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.F(_.M,{cond:function(){return H().isDragging||H().isHovering},
then:function(){return _.F(_.M,{cond:l,then:function(b){return _.F(KFY,{frame:b,props:H,isBigboard:!0})}})}}))},"Ug");
Upp=_.Z(function(X){var H=X.props;var l=X.frame;var b=X.config;var U=X.progressBarWidthPx;X=X.chapterData;var K={};K=_.Qr("ytPlayerStoryboardHost",(K.ytPlayerStoryboardHostMwebShorts=function(){return b().isShortsPage&&!1},K.ytPlayerStoryboardHostInlinePlayer=function(){return b().isInlinePlayer},K.ytPlayerStoryboardHostFadeIn=function(){return b().useFadeInAnimation},K));
return _.F("div",{class:K,"aria-hidden":"true",style:function(){var w=H(),d=yyF(l()),B=U();w=Vlq(w)/w.videoDuration;var q=B*w,u=d/2+6;d=B-(d/2+6);return"left: "+(q<=u?u/B*100:q>=d?d/B*100:w*100)+"%"}},_.F(_.M,{cond:function(){var w=H();
return!(b().isShortsPage&&w.videoDuration<15)},
then:function(){return _.F(KFY,{frame:l,props:H,isBigboard:!1})}}),_.F(b2N,{props:H,
config:b,isBigboard:!1,chapterData:X}))},"Vg");
KFY=_.Z(function(X){var H=X.frame;var l=X.props;var b=X.isBigboard;var U=function(){var d,B;return(B=(d=l().playerApi)==null?void 0:d.getVideoContentRect())!=null?B:{width:0,height:0}},K=function(){return yyF(H())},w=function(){var d=H();
return d?d.height/d.rows:0};
X={};X=_.Qr((X.ytPlayerStoryboardBigboardImageWrapper=b,X.ytPlayerStoryboardStoryboardImageWrapper=function(){return!b()},X));
return _.F("div",{class:X,style:function(){return"width: "+(b()?U().width:K())+"px; height: "+(b()?U().height:w())+"px;"}},_.F(Ckx,{frame:H,
storyboardWidth:K,storyboardHeight:w,storyboardScale:function(){return(b()?U().width:K())/K()}}))},"Wg");
Ckx=_.Z(function(X){var H=X.frame;var l=X.storyboardWidth;var b=X.storyboardHeight;var U=X.storyboardScale;var K=function(){var w=H().row,d=H().column,B=l(),q=b(),u=U();return{left:-d*B*u,top:-w*q*u}};
return _.F("img",{src:function(){return H().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+K().left+"px; top: "+K().top+"px; width: "+H().width*U()+"px; height: "+H().height*U()+"px;"}})},"Xg");
b2N=_.Z(function(X){var H=X.props;var l=X.config;var b=X.isBigboard;var U=X.chapterData;X={};X=_.Qr("ytPlayerStoryboardMetadata",(X.ytPlayerStoryboardMetadataBigboard=b,X));return _.F("div",{class:X},_.F(_.M,{cond:b,then:function(){return _.F(_.Xi,null,_.F(wDZ,{props:H,config:l}),_.F(_.M,{cond:function(){a:{var K=H();var w=l(),d=U(),B;if((w==null?0:w.activeChapter)&&((B=_.f(w==null?void 0:w.activeChapter,yC))==null?0:B.title))K=!0;else{w=_.C(lLH(d));for(w=w.next();!w.done;w=w.next()){K=(w=_.f(w.value,
pmH))&&Pbq(K,w);break a}K=!1}}return K},
then:function(){return _.F(dpe,{props:H,config:l,isBigboard:!0,chapterData:U})}}))},
else:function(){return _.F(_.Xi,null,_.F(dpe,{props:H,config:l,isBigboard:!0,chapterData:U}),_.F(wDZ,{props:H,config:l}))}}))},"Yg");
wDZ=_.Z(function(X){var H=X.props;var l=X.config;X={};X=_.Qr("ytPlayerStoryboardTimestamp",(X.ytPlayerStoryboardTimestampShorts=function(){return l().isShortsPage},X.ytPlayerStoryboardTimestampIsHovering=function(){return H().isHovering||l().isShortsPage&&!0},X));
return _.F("div",{class:X},_.F(_.Xi,null,function(){return _.fLC(Vlq(H()))}))},"Zg");
dpe=_.Z(function(X){var H=X.props;var l=X.config;var b=X.isBigboard;var U=X.chapterData;X={};b=_.Qr("ytPlayerStoryboardTitle",(X.ytPlayerStoryboardTitleBigboard=b,X));return _.F("div",{class:b},_.F(_.M,{cond:function(){return!l().isShortsPage},
then:function(){return _.F(h2$,{props:H,activeChapter:function(){return l().activeChapter},
chapterData:U})}}))},"$g");
h2$=_.Z(function(X){var H=X.props;var l=X.activeChapter;var b=X.chapterData;return _.F(_.Xi,null,_.F(_.P$,{each:function(){return lLH(b())},
keyBy:"INDEX"},function(U){return _.F(_.Xi,null,_.F(_.M,{cond:function(){return _.f(U(),pmH)&&Pbq(H(),_.f(U(),pmH))},
then:function(){return _.F(FFZ,{timedMarker:function(){return _.f(U(),pmH)}})}}))}),_.F(_.M,{cond:function(){var U;
return l()&&((U=_.f(l(),yC))==null?void 0:U.title)},
then:function(U){return _.F(_.Sj,{text:U,noPreWrap:!0})}}))},"ah");
FFZ=_.Z(function(X){var H=X.timedMarker;return _.F(_.Xi,null,_.F("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.F(_.Ja,{icon:function(){return H().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.F(_.Sj,{text:function(){return H().label},
noPreWrap:!0}))},"bh");_.BUY=_.Z(function(X){var H=X.progressBarProps;var l=X.playheadData;var b=X.config;X=_.SJ("yt-progress-bar");var U=_.SJ("div"),K=_.SJ("div"),w=_.C(_.FU({width:0,left:0},void 0,"XjZjde")),d=w.next().value,B=w.next().value,q=function(){K.value&&B(K.value.getBoundingClientRect())},u=function(){d().width<=0&&q();
return d()};
_.Np("resize",q);var e=new kC(u,function(){},function(){return 0},function(){},function(){},function(){}),y=function(){return H()};
w=_.C(_.FU(!1,void 0,"uZlOJc"));var V=w.next().value,p=w.next().value;w=_.Nq(function(){p(!0);b().position===2?setTimeout(function(){q()},100):q()});
var z=_.Nq(function(){p(!1);rVa(e,y)()}),t=_.Nq(function(mm){(b().doSeekOnClick||_.P("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&mm instanceof PointerEvent&&mm.pointerType==="mouse")&&iUd(e,y,b)(mm);
return!1}),W=_.Nq(function(mm){mKl(e,y)(mm);
return!1}),G=_.Nq(function(mm){QwZ(e,y)(mm);
return!1}),r=_.Nq(function(mm){NnN(e,y,b)(mm);
return!1}),Q=_.Nq(function(mm){jwe(e,y,b)(mm);
return!1}),v=_.Nq(function(){LQU(e,y,b)();
return!1}),J=_.Nq(function(){Y4C(e,y,b)();
return!1}),Y=_.Nq(function(){ISU(e,y,b)();
return!1}),Uy=_.Nq(function(mm){AVZ(y)(mm);
return!1});
_.Np("mousemove",XDZ(e,y,b));_.Np("mouseup",H2Y(e,y,b));_.DR(function(){whq(U.value);p(!1);q();H2Y(e,y,b)()});
var Cy={};Cy=_.Qr("ytPlayerProgressBarHost",function(){return b().className},(Cy.ytPlayerProgressBarHostReadOnly=function(){return b().disableScrubbing},Cy.ytPlayerProgressBarHostHidden=function(){return b().hideProgressBar&&!V()},Cy.ytPlayerProgressBarHostLowerPlayer=function(){return b().position===0},Cy.ytPlayerProgressBarHostBottomEdge=function(){return b().position===1},Cy.ytPlayerProgressBarHostBottomInset=function(){return b().position===2},Cy.ytPlayerProgressBarHostCustom=function(){return b().position===
3},Cy));
var sy={},FO=_.Qr("ytPlayerProgressBarBackground",(sy.ytPlayerProgressBarBackgroundHide=function(){return b().position===2&&!V()&&!H().isDragging},sy));
sy={};sy=_.Qr("ytPlayerProgressBarDragContainer",(sy.ytPlayerProgressBarDragContainerBottomEdge=function(){return b().position===1},sy));
var ub={};ub=_.Qr("ytPlayerProgressBarProgressBar",(ub.ytPlayerProgressBarProgressBarInset=function(){return b().position===2},ub.ytPlayerProgressBarProgressBarInsetMinimized=function(){return b().position===2&&!V()&&!H().isDragging},ub));
var g8=function(){return Math.floor(Iby(H())*100)};
return _.F("yt-progress-bar",{el:X,class:Cy},_.F(_.M,{cond:function(){return b().position===2},
then:function(){return _.F("div",{class:FO})}}),_.F("div",{el:U,
"on:click":t,"on:touchstart":W,"on:touchmove":r,"on:mouseenter":w,"on:mousedown":G,"on:mouseleave":z,"on:mousemove":Q,"on:mouseup":J,"on:touchend":v,"on:touchcancel":Y,"on:keydown":Uy,class:sy,role:"slider","aria-valuenow":g8,"aria-valuetext":function(){return g8()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return H().videoDuration},
draggable:_.P("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.XS("SEEK_SLIDER")},_.F("div",{el:K,class:ub},_.F(Gdp,{progressBarProps:H,config:b,highContrast:function(){return!!b().isInlinePlayback}}),_.F(_.M,{cond:function(){return b().chapterData&&oNv(b().chapterData)},
then:function(){return _.F(EVZ,{progressState:H,multiMarkersPlayerBarRenderer:function(){return b().chapterData},
progressBarWidth:function(){return d().width}})},
else:function(){return _.F(aSl,{progressBarProps:H,config:b})}}),_.F(ZUY,{progressBarProps:H,
playheadData:l,interpolateDotPosition:function(){return b().position!==2},
hidePlayhead:function(){return b().playheadDotBehavior===1&&!V()}}))),_.F($px,{progressBarProps:H,
config:function(){return{activeChapter:qy9(H(),b().chapterData),getProgressBarWidthPx:function(){return u().width},
isShortsPage:!!b().isShortsPage,isInlinePlayer:!!b().isInlinePlayback,useFadeInAnimation:!!b().isInlinePlayback}},
progressBarWidthPx:function(){return d().width},
chapterData:function(){return b().chapterData}}))},"ch");
_.BUY.idomCompat=!0;Object.assign({},_.byz(),{setState:function(){},
domMeasurements:{},appApi:_.YXz(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var qAd;
_.sLZ=_.Z(function(){var X,H=(X=_.P8(Syt().playerApi))!=null?X:void 0;X=_.C(_.FU(!1,void 0,"Z9NQ1b"));var l=X.next().value,b=X.next().value;X=_.C(_.FU(!1,void 0,"HoVJXe"));var U=X.next().value,K=X.next().value;X=_.C(_.FU(!1,void 0,"DWCY3"));var w=X.next().value,d=X.next().value;X=_.C(_.FU(!1,void 0,"g4C2Zd"));var B=X.next().value,q=X.next().value;X=_.C(_.FU(0,void 0,"lmVfFb"));var u=X.next().value,e=X.next().value;X=_.C(_.FU(0,void 0,"mFLbzb"));var y=X.next().value,V=X.next().value;X=_.C(_.FU(!1,void 0,
"hQN4Wb"));var p=X.next().value,z=X.next().value;X=_.C(_.FU(0,void 0,"WWU0fb"));var t=X.next().value,W=X.next().value;X=_.C(_.FU(0,void 0,"MJ7LMd"));var G=X.next().value,r=X.next().value;X=_.C(_.FU("",void 0,"hnomOe"));var Q=X.next().value,v=X.next().value;X=_.C(_.FU(-1,void 0,"ARe3pf"));var J=X.next().value,Y=X.next().value,Uy=_.uL(function(){var Cy={controlsVisible:l(),isOverlayHidden:U(),shouldWaitToHideControls:w(),isDragging:B(),isHovering:p(),videoDuration:t(),playedTime:G(),videoId:Q(),draggedTime:y(),
hoveredTime:u(),playerState:J()};return Object.assign({},_.byz(),Cy,{domMeasurements:{},setState:function(sy){sy.controlsVisible!==void 0&&b(sy.controlsVisible);sy.isOverlayHidden!==void 0&&K(sy.isOverlayHidden);sy.shouldWaitToHideControls!==void 0&&d(sy.shouldWaitToHideControls);sy.isDragging!==void 0&&q(sy.isDragging);sy.isHovering!==void 0&&z(sy.isHovering);sy.draggedTime!==void 0&&V(sy.draggedTime);sy.hoveredTime!==void 0&&e(sy.hoveredTime);sy.videoDuration!==void 0&&W(sy.videoDuration);sy.playedTime!==
void 0&&r(sy.playedTime);sy.videoId!==void 0&&v(sy.videoId);sy.playerState!==void 0&&Y(sy.playerState)},
appApi:_.YXz(),playerApi:H})},void 0,"Au4PIf");
_.xy(function(){H==null||H.addEventListener("onVideoProgress",RzG(Uy));H==null||H.addEventListener("onVideoDataChange",Km6(Uy));H==null||H.addEventListener("onStateChange",UWH(Uy))});
_.E2(function(){if(H==null?0:H.isReady())H==null||H.removeEventListener("onVideoProgress",RzG(Uy)),H==null||H.removeEventListener("onVideoDataChange",Km6(Uy)),H==null||H.removeEventListener("onStateChange",UWH(Uy))});
return _.F("desktop-shorts-player-controls",null,_.F(qAd,{playerControlsProps:Uy}))},"eh");
qAd=_.Z(function(X){var H=X.playerControlsProps;return _.F("div",{class:"desktopShortsPlayerControlsHost"},_.F(_.BUY,{progressBarProps:H,config:function(){return{isShortsPage:!0,hideProgressBar:H().videoDuration<30&&H().playerState!==2&&!H().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"fh");_.MhC=_.Z(function(X){function H(Cy){Cy!==0||e()?Cy>50&&(e()||!V())?(y(!1),p(!0)):Cy<=50&&(e()||V())&&(y(!1),p(!1)):y(!0)}
function l(Cy,sy){var FO;return _.h(function(ub){if(ub.nextAddress==1)return ub.yield(_.j2(),2);FO=ub.yieldResult;sy&&FO?(FO.unMute(!0),Cy&&(nNQ(Cy,FO.getVolume()),t(FO.getVolume()))):FO&&(FO.mute(!0),Cy&&nNQ(Cy,0));_.m5(ub)})}
function b(Cy){var sy,FO;return _.h(function(ub){if(ub.nextAddress==1)return ub.yield(_.j2(),2);sy=ub.yieldResult;FO=50;sy&&(FO=sy.getVolume(),sy.isMuted()?nNQ(Cy,0):nNQ(Cy,FO));t(FO);_.m5(ub)})}
var U=X.orientation;X=_.SJ("volume-controls");var K=_.SJ("button"),w=_.z7("input"),d=_.C(_.FU(!1,void 0,"JO5fn")),B=d.next().value,q=d.next().value,u=_.C(_.FU(!1,void 0,"zcMjvb"));d=u.next().value;u=u.next().value;var e=d,y=u;u=_.C(_.FU(!0,void 0,"sF9zj"));d=u.next().value;u=u.next().value;var V=d,p=u;d=_.C(_.FU(50,void 0,"Da2bOd"));var z=d.next().value,t=d.next().value;d=_.uL(function(){var Cy=e();return _.P("web_shorts_keyboard_enable_mute_shortcut")?Cy?_.XS("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):
_.XS("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Cy?_.XS("UNMUTE_VOLUME",void 0,"Unmute"):_.XS("MUTE_VOLUME",void 0,"Mute")},void 0,"RUjxdf");
u=_.uL(function(){var Cy=e(),sy=V();return{sources:[{clientResource:{imageName:Cy?"VOLUME_OFF_FILLED":sy?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"EZ2qZd");
var W=_.uL(function(){var Cy=z();return e()?Cy+"% volume muted":Cy+"% volume"},void 0,"ZJcDqc"),G=_.uL(function(){return U()==="vertical_down"},void 0,"OJU9Hf");
_.DR(function(){function Cy(){q(!0)}
function sy(){q(!1)}
w&&w.value&&(w.value.addEventListener("focus",Cy),w.value.addEventListener("focusout",sy),b(w.value).then(function(){H(Number(kKF(w.value)))}));
K&&K.value&&(K.value.addEventListener("focus",Cy),K.value.addEventListener("focusout",sy));_.E2(function(){var FO;w==null||(FO=w.value)==null||FO.removeEventListener("focus",Cy);var ub;w==null||(ub=w.value)==null||ub.removeEventListener("focusout",sy);var g8;K==null||(g8=K.value)==null||g8.removeEventListener("focus",Cy);var mm;K==null||(mm=K.value)==null||mm.removeEventListener("focusout",sy)})});
var r=_.Nq(function(){if(w&&w.value){var Cy=Number(kKF(w.value));zzQ(Cy);t(Cy);w.value.style.setProperty("--gradient-percent",Cy+"%");H(Cy)}return!1}),Q=_.Nq(function(){q(!0)}),v=_.Nq(function(){w&&w.value&&(l(w.value,e()),y(!e()));
return!1}),J={},Y={},Uy={};
return _.F("volume-controls",{"on:pointerleave":_.Nq(function(){q(!1)}),
class:_.Qr("ytdVolumeControlsHost",(J.ytdVolumeControlsHostVertical=G,J.ytdVolumeControlsHostExpanded=function(){return B()},J)),
el:X},_.F(_.M,{cond:function(){return!G()},
then:function(){var Cy={};return _.F("div",{class:_.Qr("ytdVolumeControlsBackgroundScrim",(Cy.ytdVolumeControlsBackgroundScrimExpanded=B,Cy))})}}),_.F("div",{class:_.Qr((Y.ytdVolumeControlsMuteIconButtonContainer=G,Y))},_.F("button",{"aria-label":d,
title:d,el:K,"on:click":v,"on:pointerenter":Q,class:"ytdVolumeControlsMuteIconButton"},u?_.F(_.Dp,{data:u,alt:d,className:"ytdVolumeControlsMuteIcon"}):null)),_.F("div",{class:_.Qr("ytdVolumeControlsSliderContainer",(Uy.ytdVolumeControlsSliderContainerExpanded=B,Uy.ytdVolumeControlsSliderContainerVertical=G,Uy.ytdVolumeControlsSliderContainerVerticalDown=G,Uy.ytdVolumeControlsSliderContainerVerticalExpanded=function(){return B()&&G()},Uy))},_.F("input",{"aria-label":_.XS("VOLUME"),
title:_.XS("VOLUME"),el:w,"on:input":r,type:"range",class:"ytdVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":z,"aria-valuetext":W,"aria-valuemin":0,"aria-valuemax":100})))},"gh");var ulC=_.Z(function(X){var H=X.data;var l=X.overlayDensity;X={};return _.F("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.F(_.l4,{data:function(){return H().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(b){var U=b.data;
return _.F(_.uu,{data:function(){return(l==null?void 0:l())===1?Object.assign({},U(),{avatar:{avatarViewModel:Object.assign({},_.f(U().avatar,_.eu),{avatarImageSize:"AVATAR_SIZE_M"})}}):U()}})}}),_.F(_.l4,{data:function(){return H().avatarStackViewModel}},{avatarStackViewModel:function(b){return _.F(_.eD,{data:b.data})}}),_.F(_.Sj,{className:_.Qr("ytReelChannelBarViewModelChannelName",(X.ytReelChannelBarViewModelChannelNameLarge=function(){return(l==null?void 0:l())===1},X.ytReelChannelBarViewModelChannelNameDecluttered=
function(){return _.P("enable_shorts_declutter_ui")},X)),
text:function(){return H().channelName},
linkInheritColor:!0,userInput:!0}),_.F("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.F(_.l4,{data:function(){return H().subscribeButtonViewModel}},{subscribeButtonViewModel:function(b){var U=b.data;
return _.F(_.sI,{data:function(){return(l==null?void 0:l())===1?Object.assign({},U(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},U().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):U()},
isOverlay:!1})},
buttonViewModel:_.Qk})),_.F("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.F(_.l4,{data:function(){var b,U;return(U=_.f((b=H())==null?void 0:b.sponsorButtonViewModel,Gl_))==null?void 0:U.sponsorButton}},{buttonViewModel:function(b){return _.F(_.Qk,{data:b.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"hh");var e2x=_.Z(function(X){var H=function(){var U;return((U=X.overlayDensity)==null?void 0:U.call(X))===1},l=function(){return H()?22:16},b={};
return _.F("yt-reel-multi-format-link-view-model",{class:_.Qr("ytReelMultiFormatLinkViewModelHost",(b.ytReelMultiFormatLinkViewModelHostTall=!0,b.ytReelMultiFormatLinkViewModelHostLarge=function(){return H()},b))},_.F(_.ZE,{ariaLabel:function(){return X.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return X.data().command}},_.F("h3",{class:function(){return H()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.F(_.M,{cond:function(){return X.data().icon},
then:function(U){return _.F(_.Dp,{data:U,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:l})}}),_.F(_.Sj,{text:function(){return X.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ih");
e2x.idomCompat=!0;var yS5=_.Z(function(X){var H=X.data;var l=X.overlayDensity;var b=X.extractOverlay;var U=_.SJ("yt-shorts-suggested-action-view-model");X=_.C(_.FU(!1,void 0,"cmyYgf"));var K=X.next().value,w=X.next().value;X=_.C(_.FU(!1,void 0,"qY6byb"));var d=X.next().value,B=X.next().value,q=function(){return H().isMultiLineSa},u=_.Aw(m5Z,function(){var sy,FO;
return(FO=(sy=H().toggleableContent)==null?void 0:sy.entityKey)!=null?FO:""}),e=function(){var sy,FO,ub;
return(ub=H().toggleableContent)!=null&&ub.entityKey?(FO=(sy=u())==null?void 0:sy.value)!=null?FO:!1:!1},y=function(){var sy,FO,ub,g8,mm,QZ,Bz,dt,TK,sG,f_;
return H().toggleableContent?e()?(sy=H().toggleableContent)==null?void 0:sy.toggledData:(FO=H().toggleableContent)==null?void 0:FO.untoggledData:{primaryText:(dt=(ub=H().defaultContent)==null?void 0:ub.primaryText)!=null?dt:H().text,secondaryText:(g8=H().defaultContent)==null?void 0:g8.secondaryText,onTapCommand:(TK=(mm=H().defaultContent)==null?void 0:mm.onTapCommand)!=null?TK:H().onTapCommand,icon:(sG=(QZ=H().defaultContent)==null?void 0:QZ.icon)!=null?sG:H().icon,image:(f_=(Bz=H().defaultContent)==
null?void 0:Bz.image)!=null?f_:H().image}},V=function(){return q()?H().trailingTapTarget:void 0},p=function(sy,FO){return function(){return K()?FO:sy}},z=function(sy){return function(){return _.P("enable_shorts_declutter_ui")?sy()+"Decluttered":""}},t=function(){return{leadingSection:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(l==null?void 0:l())===1?p("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):p("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:p("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
X={};X=_.Qr((X.ytShortsSuggestedActionViewModelStaticHost=function(){return!q()},X.ytShortsSuggestedActionViewModelDynamicHost=q,X.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return q()&&d()},X.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return q()&&!d()},X.ytShortsSuggestedActionViewModelExtractOverlay=function(){return b==null?void 0:b()},X));
_.DR(function(){if(q()){var sy=0,FO;if((FO=H().animationParams)==null?0:FO.shouldExpand){var ub,g8;sy=((g8=(ub=H().animationParams)==null?void 0:ub.expansionDelaySecs)!=null?g8:0)*1E3}var mm,QZ=((mm=H().animationParams)==null?0:mm.shouldExpand)?setTimeout(function(){w(!0)},sy):void 0,Bz,dt;
sy=((Bz=H().animationParams)==null?0:Bz.visibilityDelaySecs)?((dt=H().animationParams)==null?NaN:dt.visibilityDelaySecs)*1E3:0;var TK=setTimeout(function(){B(!0)},sy);
_.E2(function(){QZ&&clearTimeout(QZ);clearTimeout(TK)})}});
var W=function(sy){_.yr(sy,Object.assign({},{form:{element:U.value}}))},G=_.Nq(function(){var sy,FO=(sy=y())==null?void 0:sy.onTapCommand;
FO&&W(FO)}),r=_.Nq(function(){var sy,FO;
if(sy=(FO=V())==null?void 0:FO.onTapCommand)return W(sy),!1}),Q=_.P("enable_shorts_declutter_ui")?_.rC({height:function(){return V()?"40px":K()?"44px":"32px"},
padding:"0px","padding-inline-end":function(){return V()?"8px":"16px"}}):_.rC({}),v=_.rC({"vertical-align":"bottom",
"border-radius":function(){var sy;return q()?((sy=H().defaultContent)==null?0:sy.isCircleImage)?"50%":"4px":"0px"},
width:function(){var sy,FO,ub;return q()&&((sy=H().defaultContent)==null?0:sy.imageSize)&&!_.P("enable_shorts_declutter_ui")?((ub=(FO=H().defaultContent)==null?void 0:FO.imageSize)!=null?ub:24)+"px":null},
height:function(){var sy,FO,ub;return q()&&((sy=H().defaultContent)==null?0:sy.imageSize)&&!_.P("enable_shorts_declutter_ui")?((ub=(FO=H().defaultContent)==null?void 0:FO.imageSize)!=null?ub:24)+"px":null}}),J=function(){return q()?t().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},Y=function(){return q()?t().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"},Uy=function(){return q()?t().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
Cy={};
return _.F("yt-shorts-suggested-action-view-model",{class:X,el:U},_.F("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.F("button",{class:_.Qr(function(){return q()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var sy;
return(sy=H().useFullRoundedBorder)!=null&&sy?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!V()&&q()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":q()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var sy;
return(sy=H().disableFixedHeight)!=null&&sy?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(Cy.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(l==null?void 0:l())===1},Cy.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return b==null?void 0:b()},Cy)),
"on:click":G,style:Q},_.F(_.iJ,{model:{color:4}}),_.F("div",{class:_.Qr(function(){return Y()+" "+z(Y)()})},_.F(_.M,{cond:function(){var sy;
return(sy=y())==null?void 0:sy.image},
then:function(sy){return _.F(_.Dp,{data:sy,alt:"",className:function(){return Uy()+" "+z(Uy)()},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:v})}}),_.F(_.M,{cond:function(){var sy,FO;
return(sy=y())==null?void 0:(FO=sy.icon)==null?void 0:FO.iconType},
then:function(sy){return _.F(_.Ja,{icon:sy,active:e,className:function(){return J()+" "+z(J)()}})}})),_.F("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection "+z(function(){return"ytShortsSuggestedActionViewModelStaticHostTextSection"})()},_.F(_.M,{cond:function(){var sy;
return(sy=y())==null?void 0:sy.primaryText},
then:function(sy){var FO={};return _.F("div",{class:_.Qr("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(FO.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(l==null?void 0:l())===1},FO))},_.F(_.Sj,{text:sy}))}}),_.F(_.M,{cond:function(){var sy;
return(sy=y())==null?void 0:sy.secondaryText},
then:function(sy){return _.F("div",{class:function(){return t().secondaryText()}},_.F(_.Sj,{text:sy}))}}))),_.F(_.M,{cond:V,
then:function(sy){return _.F("div",{class:_.Qr(function(){return t().trailingSection()+" "+z(t().trailingSection)()},function(){var FO,ub;
return(b==null?void 0:b())&&((ub=(FO=t()).trailingSectionExtractOverlay)==null?void 0:ub.call(FO))||""}),
"aria-label":function(){var FO;return(FO=sy().a11yLabel)!=null?FO:""},
"on:click":r,role:"button",tabindex:0},_.F(_.iJ,{model:{color:4}}),_.F(_.Ja,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"jh");var Vhy=_.Z(function(X){var H=X.data;var l=X.overlayDensity;var b=_.SJ("yt-shorts-video-title-view-model");X=_.Nq(function(w){if(_.B6(_.FA(w),b.value,["A".toString()]))return!1;(w=H().truncatedTextOnTapCommand)&&_.yr(w);return!1});
var U={},K={};return _.F("yt-shorts-video-title-view-model",{el:b,class:_.Qr("ytShortsVideoTitleViewModelHost",(U.ytShortsVideoTitleViewModelHostClickable=function(){return!!H().truncatedTextOnTapCommand},U)),
"on:click":X},_.F("h2",{class:_.Qr("ytShortsVideoTitleViewModelShortsVideoTitle",(K.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(l==null?void 0:l())===1},K.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.P("enable_shorts_declutter_ui")},K.ytShortsVideoTitleViewModelShortsVideoTitleDecluttered=function(){return _.P("enable_desktop_small_title_on_immersive_shorts")},K))},_.F(_.Sj,{text:function(){return H().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(l==null?void 0:l())===1}})))},"kh");_.PkC=_.Z(function(X){var H=X.data;var l=X.overlayDensity;var b=X.extractOverlay;var U=function(){return(l==null?void 0:l())===1},K=function(){return _.P("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelMetapanelItemDecluttered":"ytReelMetapanelViewModelMetapanelItem"},w=function(){return _.P("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelExpansiveDecluttered":"ytReelMetapanelViewModelExpansiveBlock"};
return _.F("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.F(_.l4,{data:function(){return H().metadataItems}},{badgeViewModel:function(d){d=d.data;
return _.F("div",{class:_.Qr(function(){return U()?w():K()})},_.F(_.Gi,{data:d}))},
playerDisclosureViewModel:function(d){d=d.data;return _.F("div",{class:_.Qr(function(){return U()?w():K()})},_.F(_.may,{data:d,
extractOverlay:b}))},
shortsSuggestedActionViewModel:function(d){d=d.data;return _.F("div",{class:_.Qr(function(){return U()?w():K()})},_.F(yS5,{data:d,
overlayDensity:l,extractOverlay:b}))},
reelChannelBarViewModel:function(d){d=d.data;var B={};return _.F("div",{class:_.Qr(K(),(B.ytReelMetapanelViewModelExpansive=function(){return U()&&!_.P("enable_shorts_declutter_ui")},B.ytReelMetapanelViewModelExpansiveDecluttered=function(){return U()&&_.P("enable_shorts_declutter_ui")},B))},_.F(ulC,{data:d,
overlayDensity:l}))},
reelMultiFormatLinkViewModel:function(d){d=d.data;var B={};return _.F("div",{class:_.Qr(K(),(B.ytReelMetapanelViewModelExpansive=function(){return U()&&!_.P("enable_shorts_declutter_ui")},B.ytReelMetapanelViewModelExpansiveDecluttered=function(){return U()&&_.P("enable_shorts_declutter_ui")},B))},_.F(e2x,{data:d,
overlayDensity:l}))},
shortsVideoTitleViewModel:function(d){d=d.data;var B={};return _.F("div",{class:_.Qr(K(),(B.ytReelMetapanelViewModelExpansive=function(){return U()&&!_.P("enable_shorts_declutter_ui")},B.ytReelMetapanelViewModelExpansiveDecluttered=function(){return U()&&_.P("enable_shorts_declutter_ui")},B))},_.F(Vhy,{data:d,
overlayDensity:l}))},
reelSoundMetadataViewModel:function(d){d=d.data;var B={};return _.F("div",{class:_.Qr(K(),(B.ytReelMetapanelViewModelExpansive=function(){return U()&&!_.P("enable_shorts_declutter_ui")},B.ytReelMetapanelViewModelExpansiveDecluttered=function(){return U()&&_.P("enable_shorts_declutter_ui")},B))},_.F(_.VJZ,{data:d,
overlayDensity:l}))},
toggleButtonViewModel:function(d){d=d.data;var B={};return _.F("div",{class:_.Qr(K(),(B.ytReelMetapanelViewModelExpansive=function(){return U()&&!_.P("enable_shorts_declutter_ui")},B.ytReelMetapanelViewModelExpansiveDecluttered=function(){return U()&&_.P("enable_shorts_declutter_ui")},B))},_.F(_.KL,{data:d}))}}))},"lh");var fqa=_.Z(function(X){var H=_.gT(X,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),l=H.size,b=H.onTap,U=H.disabled,K=H.tooltipText;return _.F("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.F(_.ms,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:l(),disabled:U(),tooltipText:K(),onTap:b}},
iconName:X.iconType}))},"mh"),pDe=_.Z(function(X){function H(u){u.stopPropagation();
u.code==="ArrowUp"?(u.preventDefault(),WmD(d.value)):u.code==="ArrowDown"?(u.preventDefault(),ENF(d.value)):u.code==="KeyM"?xWv():(u.code==="KeyK"||u.code==="Space")&&DWY(B())}
var l=_.gT(X,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});X=l.previousButtonDisabled;var b=l.nextButtonDisabled,U=l.data,K=l.playabilityStatus,w=l.previewThumbnail,d=_.SJ("ytd-shorts-miniplayer-overlay"),B=_.Aa(_.tn8),q;_.xy(function(){(q=_.uB(d.value))&&q.addEventListener("keydown",H)});
_.E2(function(){var u;(u=q)==null||u.removeEventListener("keydown",H)});
l=function(){var u,e;var y=_.f((u=U())==null?void 0:(e=u.reelPlayerOverlayRenderer)==null?void 0:e.buttonBar,tZC);if(y){var V;u=Object.assign({},y,{buttonViewModels:(V=y.buttonViewModels)==null?void 0:V.filter(tl6)})}else u=void 0;return u};
return _.F("ytd-shorts-miniplayer-overlay",{el:d,class:"ytdShortsMiniplayerOverlayHost"},_.F("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.rC({"background-image":function(){var u=w();return u?'url("'+_.a1(u.thumbnails)+'")':""}})}),_.F("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.F("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.F(fqa,{iconType:function(){var u=B();
return u===2||u===-1||u===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){DWY(B())},
tooltipText:function(){var u=B();return u===1||u===3?_.XS("PLAYER_LABEL_PAUSE"):_.XS("PLAYER_LABEL_PLAY")}}),_.F(_.MhC,{orientation:"horizontal_right"})),_.F("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.F(fqa,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:X,onTap:function(){WmD(d.value)},
tooltipText:_.XS("PREVIOUS_VIDEO_LABEL")}),_.F(fqa,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:b,onTap:function(){ENF(d.value)},
tooltipText:_.XS("NEXT_VIDEO_LABEL")}),_.P("web_shorts_pip_like_button")?_.F(_.M,{cond:l,then:function(u){return _.F("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.F(_.Wvt,{data:u,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.F("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.F(_.M,{cond:function(){var u,e;
return _.f((u=U())==null?void 0:(e=u.reelPlayerOverlayRenderer)==null?void 0:e.metapanel,WGQ)},
then:function(u){return _.F("div",{class:_.Qr("ytdShortsMiniplayerOverlayInteractive")},_.F(_.PkC,{data:u}))}})),_.F("div",{class:_.Qr("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var u;return!((u=U())==null||!u.adsOverlay)||K()&&!BSL(K())}},_.F("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.F(_.sLZ,null)))),_.F(_.M,{cond:function(){var u=U(),e,y;
u=_.f(u==null?void 0:(e=u.adsOverlay)==null?void 0:(y=e.fulfillmentContent)==null?void 0:y.fulfilledLayout,Cwq);return _.f(u==null?void 0:u.renderingContent,q1q)},
then:function(u){return _.F("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.F(imt,{data:u}))}}))},"oh");var gNt=_.Z(function(){var X=_.C(_.FU(new _.tn(NaN,NaN),void 0,"ejTaF")),H=X.next().value,l=X.next().value;X=_.C(_.FU(!1,void 0,"aTA69e"));var b=X.next().value,U=X.next().value,K=_.C(_.FU(!1,void 0,"OsC2Ib"));X=K.next().value;var w=K.next().value;K=_.jJ().resolve(_.f9).miniplayerPropSignalMap[0];var d=K.data,B=K.shortsData,q=K.nextButtonDisabled,u=K.shortsPreviewThumbnail,e=K.previousButtonDisabled,y=K.externalPlaylistData,V=K.playabilityStatus,p=K.isDisabled,z=K.playerVe,t=K.closeVe;K=_.Aa(_.Te);
_.OA("yt-pip-window-resized",function(Q){l(Q)});
_.OA("yt-activate-pip-miniplayer",function(){return _.h(function(Q){w(!0);_.m5(Q)})});
var W=function(){var Q;return!((Q=y())==null||!Q.contents)&&b()},G=function(){var Q=H(),v=!!d(),J=W();
Q=Q.clone();v&&(Q.height-=76);J&&(Q.height-=285);return Q},r=function(){U(!b())};
_.Wg(function(){var Q=z(),v=_.Bi(11),J=_.F6(11);v&&J&&Q&&(_.pA(v,J,Q),J=t())&&(_.SF(v,Q,[J]),_.nA(v,[J]))},"h5qKie");
return _.F("ytd-pip-container",{class:"ytdPipContainerHost"},_.F(_.M,{cond:X,then:function(){return _.F(_.tsl,{isDisabled:p,playabilityStatus:V,size:G,isPictureInPicture:!0})}}),_.F(_.M,{cond:d,
then:function(){return _.F(_.xKA,{data:d,expanded:b,onExpandClick:r,playlistData:y})}}),_.F(_.M,{cond:W,
then:function(){return _.F("div",{class:"ytdPipContainerPlaylistPanel"},_.F(_.F5N,{data:y,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.F(_.M,{cond:K,
then:function(){return _.F(pDe,{data:B,nextButtonDisabled:q,previousButtonDisabled:e,playabilityStatus:V,previewThumbnail:u})}}))},"qh");var xC=function(X,H,l){var b=this;this.pipController=X;this.JSC$19363_clientRoot=H;this.JSC$19363_pageRequestService=l;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=cE8();this.JSC$19363_watchPipEnabled=_.P("web_watch_pip");this.watchPipManualOnlyEnabled=_.P("web_watch_pip_manual");this.shortsPipEnabled=_.P("web_shorts_pip");this.JSC$19363_watchWhileEnabled=_.P("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;_.bC(_.WF(),zgN,function(U){b.isSingleOptionSurveyActive=U});
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);_.ik(_.Zq.getInstance(),this.miniplayerServiceActionMap,this.JSC$19363_clientRoot);X.pictureInPictureSupported()&&_.Sh("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},U2v,g2e,DpZ,G3C,DLY,aqU,Z2a,i25,WF$;
xC.prototype.handleMediaSessionPipActivation=function(X){var H=this,l,b;return _.h(function(U){_.HW().mediaSessionPipActivation=!0;l=_.jJ().resolve(_.gd);if(l.isOnWatch()&&H.JSC$19363_watchPipEnabled){if(H.watchPipManualOnlyEnabled&&((b=X)==null?void 0:b.enterPictureInPictureReason)!=="useraction")return lC(),U.return();_.HW().watchPipActivation=!0;_.SAA(H,l.data);return U.jumpTo(0)}return l.isOnShorts()&&H.shortsPipEnabled?(_.HW().shortsPipActivation=!0,_.z2l(H),U.jumpTo(0)):!H.isMiniplayerActive()||
!H.JSC$19363_watchPipEnabled||H.watchWhileMode||H.watchPipManualOnlyEnabled?U.jumpTo(0):U.yield(n2a(H),0)})};
var n2a=function(X){var H,l,b,U;return _.h(function(K){if(K.nextAddress==1)return H=!X.miniplayerToPipMode,l=X.playerElement,b=X.miniplayerData,U=X.watchResponse,K.yield(X.deactivate(),2);if(K.nextAddress!=3)return H?(_.HW().mediaSessionPipActivation=!0,_.HW().watchPipActivation=!0):_.HW().miniplayerButtonActivation=!0,K.yield(X.activate(l,b,U),3);X.miniplayerToPipMode=H;_.m5(K)})};
xC.prototype.onDownloadedVideoDeleted=function(X){var H,l=_.f((H=this.miniplayerData)==null?void 0:H.watchEndpoint,_.ku),b,U;l&&((b=this.watchResponse)==null?void 0:(U=b.playerResponse)==null?void 0:U.offlineState)!==void 0&&(H=l.videoId)&&X&&H===X&&this.close()};
xC.prototype.onShowMiniplayerCommand=function(X){var H=this,l,b,U,K,w,d,B,q,u,e,y;return _.h(function(V){switch(V.nextAddress){case 1:return l=_.f(X,q6F),U=(b=l)==null?void 0:b.miniplayerCommand,K=_.f(U,_.ku),U&&K&&!H.active?V.yield(_.dD.getInstance(),2):V.return();case 2:return w=V.yieldResult,V.yield((d=w)==null?void 0:d.get("yt-miniplayer-shown-video-id"),3);case 3:B=V.yieldResult;q=K.videoId;if(!q||B===q)return V.return();u=_.jJ().resolve(_.gd);if(u.isOnWatch())return _.x2(Error("Xj")),V.return();
e={channelItem:{externalId:btoa(q)}};H.readyToResumeVe=_.cS(121253,void 0,void 0,e);_.HW().showMiniplayerCommandActivation=!0;return V.yield(_.t8H(H,U,!0),4);case 4:return H.active&&(_.DT(H,{readyToResumeVe:H.readyToResumeVe,isReadyToResume:!0}),H.isReadyToResume=!0),V.yield((y=w)==null?void 0:y.set("yt-miniplayer-shown-video-id",K.videoId),5);case 5:H.readyToResumeVe=void 0,_.m5(V)}})};
xC.prototype.init=function(X){this.miniplayerEl?_.x2(new _.qd("MiniplayerService already initialized.")):this.miniplayerEl=X};
xC.prototype.isInitialized=function(){var X=!!this.miniplayerEl;X||_.x2(new _.qd("MiniplayerService used before initialized."));return X};
_.SAA=function(X,H){if(X.isInitialized()){var l=_.JEK(H.response,H.playerResponse),b=_.jJ().resolve(_.gd).getPlayerFromWatch();_.HW().currentEndpoint=l.watchEndpoint||null;X.activate(b,l,H)}};
_.z2l=function(X){if(X.isInitialized()){var H=_.jJ().resolve(_.gd).getPlayerFromShorts();X.activate(H)}};
U2v=function(X,H){var l;(l=!X.isInitialized())||(l=_.jJ().resolve(_.gd).isOnWatch()&&X.watchPipMode,l=!(X.isMiniplayerActive()&&(_.HW().userActivation||_.HW().lockupActivation||l)));if(l)return!1;k3Y(X,H)?_.nE(X):DLY(X,H);return X.watchPipMode?!_.jJ().resolve(_.gd).isOnWatch():!0};
xC.prototype.isMiniplayerActive=function(){return this.active};
var k3Y=function(X,H){var l;H=(l=_.f(H,_.ku))==null?void 0:l.videoId;var b,U;X=(U=_.f((b=X.miniplayerData)==null?void 0:b.watchEndpoint,_.ku))==null?void 0:U.videoId;return H!=null&&H===X};
xC.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.QX(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.TP(this.miniplayerEl,"yt-navigate-home-action"))};
_.t8H=function(X,H,l,b){l=l===void 0?!1:l;var U,K,w,d;return _.h(function(B){switch(B.nextAddress){case 1:if(X.active){B.jumpTo(2);break}U=_.jJ().resolve(_.gd);if(w=(K=X.playerElement)!=null?K:U.getPlayerFromWatch()){B.jumpTo(3);break}return B.yield(_.jJ().resolve(_.my),4);case 4:w=U.getPlayerFromWatch();case 3:if(!w){_.x2(Error("Zj"));B.jumpTo(2);break}return B.yield(X.activate(w,b),2);case 2:return X.active?B.yield(DLY(X,H,l),7):B.return();case 7:(d=X.getPlayerElement())==null||d.focusOnPlayer(),
_.m5(B)}})};
xC.prototype.activate=function(X,H,l){var b=this,U,K,w,d,B,q,u,e,y;return _.h(function(V){switch(V.nextAddress){case 1:if(!b.isInitialized())return V.return();if(!X)return _.x2(Error("Zj")),V.return();if(_.v5v()||b.isMiniplayerActive())var p=!0;else p=_.HW().watchPipActivation||_.HW().watchWhileActivation,_.jJ().resolve(_.gd).isOnWatch()&&!p?(_.x2(new _.qd("miniplayer activated on watch page")),p=!0):p=_.HW().watchWhileActivation?b.userDeactivatedWatchWhile||!!document.pictureInPictureElement||rmz():
!1;if(p)return lC(),V.return();U=_.HW().mediaSessionPipActivation;K=_.HW().shortsPipActivation;w=_.HW().watchPipActivation;B=(d=_.HW().watchWhileActivation)||w;q=w||K;if(!b.pictureInPictureEnabled()||!q){V.jumpTo(2);break}return V.yield(xpa(b,U),3);case 3:if(!V.yieldResult)return _.x2(Error("Yj")),lC(),V.return();case 2:return b.setActive(!0),b.watchResponse=l,b.playerElement=X,b.updateMiniplayerData(H),V.yield(DpZ(b,X),4);case 4:if(!b.active)return _.x2(new _.qd("miniplayer deactivated during activation")),
b.removePlayerListeners(),V.return();p=_.jJ().resolve(_.S3);p.addEventListener("yt-navigate",_.J2(b,b.onPlaylistNavigate));p.addEventListener("yt-playlist-data-updated",_.J2(b,b.JSC$19363_onPlaylistDataUpdated));b.JSC$19363_onPlaylistDataUpdated();lC();b.JSC$19363_watchWhileEnabled&&_.thl(b,d);b.pictureInPictureEnabled()&&b.shortsPipEnabled&&(b.shortsPipMode=K,_.WF().dispatch(nIq(b.shortsPipMode)));b.pictureInPictureEnabled()&&b.JSC$19363_watchPipEnabled&&(b.watchPipMode=w,!b.JSC$19363_watchPipEnabled||
b.watchPipManualOnlyEnabled&&!(_.Jmb()&&_.fLz("Chromium")>=142)||b.watchPipManualOnlyEnabled||_.Ypy(b.handleMediaSessionPipActivation));b.player&&(u=b.player.getPlayerState(),e=u===1,_.WF().dispatch(Zzv(u)),_.NG(b.miniplayerEl,"yt-miniplayer-play-state-changed",[e]),_.HW().isVideoPlaying=e);_.NG(b.miniplayerEl,"yt-miniplayer-endpoint-changed");WF$(b);_.E2y(b);if(b.shortsPipMode||b.watchPipMode)V=V.yield(_.TP(b.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{p=V.yield;var z=_.TP(b.miniplayerEl,
"yt-activate-miniplayer",[B])[0];V=p.call(V,z,6)}return V;case 6:if(b.watchResponse){p=b.getScreenLayer();z=_.Bi(0);var t=Cyh(0);z&&t&&(_.sc(z,t,p),p===0&&KRk(void 0,0))}g2e(b);G3C(b,!0);(y=b.getPlayerElement())==null||y.focusOnPlayer();_.m5(V)}})};
xC.prototype.updateMiniplayerData=function(X){this.miniplayerData=X;_.DT(this,{data:X})};
_.E2y=function(X){var H,l,b=((H=X.miniplayerData)==null?void 0:(l=H.miniplayerRenderer)==null?void 0:l.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";H=X.watchWhileMode||X.watchPipMode?b&&!_.jJ().resolve(_.gd).isOnWatch():b;_.DT(X,{isDisabled:H});var U,K;l=_.f((U=X.miniplayerData)==null?void 0:(K=U.miniplayerRenderer)==null?void 0:K.minimizedEndpoint,_.by);H&&l&&_.jJ().resolve(_.hT).openSheet({openPopupActionCommand:{openPopupAction:l}},X.miniplayerEl)};
g2e=function(X){if(X.watchResponse&&(!X.watchWhileMode||!_.P("kevlar_watch_while_counterfactual"))){var H,l=(H=X.watchResponse.playerResponse)==null?void 0:H.trackingParams;l&&(_.DT(X,{expandVe:_.cS(35989),closeVe:_.cS(34699),readyToResumeCloseVe:_.cS(131070),repositionVe:_.cS(226204),resizeVe:_.cS(226205)}),_.DT(X,{playerVe:_.$l(l)}))}};
DpZ=function(X,H){return _.h(function(l){if(l.nextAddress==1)return H.preparePlayer(),l.yield(H.getPlayerPromise(),2);X.player=l.yieldResult;X.player&&(X.player.addEventListener("onPlayVideo",X.JSC$19363_onPlayerPlayVideo),X.player.addEventListener("onCloseMiniplayer",X.onPlayerCloseMiniplayer),X.player.addEventListener("onExpandMiniplayer",X.onPlayerExpandMiniplayer),X.player.addEventListener("onStateChange",X.onPlayerStateChange));_.m5(l)})};
_.R=xC.prototype;_.R.JSC$19363_onPlayerPlayVideo=function(X){var H=X.sessionData&&"autonav"in X.sessionData,l;X.sessionData&&X.sessionData.itct&&(l=X.sessionData.itct);var b=X.watchEndpoint;H=b&&H?_.RtO(b,l):_.aO(X.videoId,X.listId||void 0,l);X.sessionData&&_.Ec(_.f(H.commandMetadata,_.Ip).url,X.sessionData);DLY(this,H)};
_.R.onPlayerExpandMiniplayer=function(){_.nE(this)};
_.R.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.R.onPlayerStateChange=function(){if(this.player){var X=this.player.getPlayerState(),H=X===1;_.WF().dispatch(Zzv(X));_.WF().dispatch(_.uC(X));_.NG(this.miniplayerEl,"yt-miniplayer-play-state-changed",[H]);_.HW().isVideoPlaying=H;if(X===0){H=!_.ac.getInstance().isAutoplaySetExplicitly();var l,b,U,K,w,d,B=(l=this.watchResponse.response)==null?void 0:(b=l.contents)==null?void 0:(U=b.twoColumnWatchNextResults)==null?void 0:(K=U.autoplay)==null?void 0:(w=K.autoplay)==null?void 0:(d=w.autoplayExplicitChoiceDialogRenderer)==
null?void 0:d.confirmDialogRenderer;H&&B&&this.player.setAutonavState(1)}X===0&&this.watchWhileMode&&this.deactivate()}};
_.R.onPlaylistNavigate=function(X,H){var l=this,b,U,K,w,d,B,q;return _.h(function(u){if(u.nextAddress==1){if(!_.f(H.endpoint,_.ku))return u.return();_.HW().currentEndpoint=H.endpoint;_.NG(l.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.jJ().resolve(_.gd).isOnWatch()&&(l.watchWhileMode||l.watchPipMode))return u.return();X.stopPropagation();(K=(U=_.f((b=H.endpoint)==null?void 0:b.commandMetadata,_.Ip))==null?void 0:U.url)&&H.tempData&&!_.Bb.isEmpty(H.tempData)&&_.Ec(K,H.tempData);w={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};d=new vKY(function(){return l.getPlayerElement()},w,{layer:l.getScreenLayer()});
B=function(e){d.processChunk({endpoint:H.endpoint,data:e})};
aqU(l);l.miniplayerFetchRequest=Z2a(l,H.endpoint,B);_.Ew(u,2);return u.yield(l.miniplayerFetchRequest,4)}if(u.nextAddress!=2)return q=u.yieldResult,i25(l,q),_.Zt(u,0);_.Ow(u);_.m5(u)})};
_.R.JSC$19363_onPlaylistDataUpdated=function(){var X=_.jJ().resolve(_.S3).getPlaylistData();this.hasPlaylistData=!!X;_.DT(this,{externalPlaylistData:X||{}})};
_.R.close=function(X){if(this.isInitialized())if(X){if(!((this.watchWhileMode||this.watchPipMode)&&_.jJ().resolve(_.gd).isOnWatch()||this.shortsPipMode)){var H;(H=this.getPlayerElement())==null||H.stop()}this.deactivate()}else _.D7().closeMiniplayer(this.miniplayerEl)};
_.R.deactivate=function(X){var H=this,l,b,U,K;return _.h(function(w){if(w.nextAddress==1){if(!H.isInitialized()||!H.active)return w.return();H.setActive(!1);aqU(H);(l=!!X&&k3Y(H,X))&&H.isSingleOptionSurveyActive&&_.TP(H.miniplayerEl,"yt-show-watch-page-survey",[H.isSingleOptionSurveyActive]);return w.yield(v2C(H),2)}if(w.nextAddress!=3){G3C(H,!1);H.isReadyToResume=!1;H.watchResponse=void 0;H.updateMiniplayerData(void 0);H.shortsPipMode&&(H.shortsPipMode=!1,_.WF().dispatch(nIq(H.shortsPipMode)),Y2$(H.pipController),
(b=H.player)==null||b.setInternalSize(NaN,NaN));H.watchPipMode&&(H.watchPipMode=!1,Y2$(H.pipController));(U=H.watchWhileMode)&&_.thl(H,!1);H.removePlayerListeners();var d=_.jJ().resolve(_.S3);d.removeEventListener("yt-navigate",_.J2(H,H.onPlaylistNavigate));d.removeEventListener("yt-playlist-data-updated",_.J2(H,H.JSC$19363_onPlaylistDataUpdated));_.HW().currentEndpoint=null;_.NG(H.miniplayerEl,"yt-miniplayer-endpoint-changed");H.playerElement=null;lC();if(H.shortsPipMode||H.watchPipMode)w=w.jumpTo(3);
else{d=w.yield;var B=_.TP(H.miniplayerEl,"yt-deactivate-miniplayer",[l,U])[0];w=d.call(w,B,3)}return w}(K=H.player)==null||K.setInternalSize(NaN,NaN);H.player=null;_.m5(w)})};
var v2C=function(X){var H;return _.h(function(l){H=_.jJ().resolve(_.gd);return X.shortsPipMode?l.yield(H.movePlayerToShorts(X.playerElement),0):l.yield(H.movePlayerToWatch(X.playerElement),0)})};
xC.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))};
xC.prototype.setActive=function(X){this.active=X;this.isSingleOptionSurveyActive?_.TP(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.TP(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.WF().dispatch(_.Of({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.thl=function(X,H){X.watchWhileMode=H;_.DT(X,{watchWhile:H})};
G3C=function(X,H){if(X.shortsPipMode||X.watchPipMode){var l;(l=X.player)==null||l.setDocumentPictureInPicture(H)}else{var b;(b=X.player)==null||b.setMinimized(H)}};
_.nE=function(X){var H;return _.h(function(l){switch(l.nextAddress){case 1:if(!X.isInitialized())return l.return();_.Ew(l,2);return l.yield(X.miniplayerFetchRequest,4);case 4:_.Zt(l,3);break;case 2:_.Ow(l);case 3:X.watchResponse&&X.miniplayerData&&X.miniplayerData.watchEndpoint?(H={url:X.watchResponse.url,endpoint:X.miniplayerData.watchEndpoint,data:X.watchResponse,miniplayer:!0},_.QX(X.miniplayerEl,"yt-navigate-cache",H)):X.miniplayerData&&X.miniplayerData.watchEndpoint&&_.QX(X.miniplayerEl,"yt-navigate",
{endpoint:X.miniplayerData.watchEndpoint}),_.m5(l)}})};
DLY=function(X,H,l){var b,U,K,w;return _.h(function(d){if(d.nextAddress==1){if(k3Y(X,H))return d.return();_.HW().currentEndpoint=H;_.NG(X.miniplayerEl,"yt-miniplayer-endpoint-changed");_.NG(X.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.HW().isVideoPlaying=!1;b={clientParams:{miniplayer:!0,autoSaveToQueue:!l}};U=new vKY(function(){return X.getPlayerElement()},b,{layer:X.getScreenLayer(),
parentLayer:0},void 0,X.readyToResumeVe);K=function(B){var q,u,e=Object.assign({},(q=B.playerResponse)==null?void 0:(u=q.playerConfig)==null?void 0:u.playbackStartConfig,{startPaused:!0}),y;l&&((y=B.playerResponse)==null?0:y.playerConfig)&&(B.playerResponse.playerConfig.playbackStartConfig=e);U.processChunk({endpoint:H,data:B})};
aqU(X);X.miniplayerFetchRequest=Z2a(X,H,K);_.Ew(d,2);return d.yield(X.miniplayerFetchRequest,4)}if(d.nextAddress!=2)return w=d.yieldResult,i25(X,w),_.Zt(d,0);_.Ow(d);_.m5(d)})};
xC.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
aqU=function(X){X.miniplayerFetchRequest&&(X.miniplayerFetchRequest.cancel&&X.miniplayerFetchRequest.cancel("Active request obsolete"),X.miniplayerFetchRequest=null)};
Z2a=function(X,H,l){var b,U=(b=_.f(H.commandMetadata,_.Ip))==null?void 0:b.url,K;b=!U||_.KG("disable_miniplayer_tempdata")?{}:(K=Jih(U))!=null?K:{};return zo(X.JSC$19363_pageRequestService,H,b,window.location.href,"watch",function(w,d){l(d)},function(w){return w!==X.miniplayerFetchRequest})};
i25=function(X,H){var l;_.h(function(b){if(!H)return b.return();X.watchResponse=H;g2e(X);WF$(X);l=_.JEK(H.response,H.playerResponse);if(X.isMiniplayerActive()){H.response&&(X.playerElement.watchNextData=H.response);var U=_.Bb.getValueByKeys.apply(_.Bb,[H].concat(_.LJ(Lnv)));_.Bb.getValueByKeys.apply(_.Bb,[H].concat(_.LJ(H3_)))&&U&&_.jJ().resolve(_.S3).setAutoplayRenderer(U);if(U)if(_.P("kevlar_is_pupi_enabled")){var K,w,d,B,q,u=((K=H.response)==null?0:(w=K.playerOverlays)==null?0:(d=w.playerOverlayRenderer)==
null?0:(B=d.autonavToggle)==null?0:(q=B.autoplaySwitchButtonRenderer)==null?0:q.enabled)?2:1;_.ac.getInstance().setState(u,!1,!1)}else K=M3b()?2:1,(u=X.player)==null||u.setAutonavState(K);X.updateMiniplayerData(l);_.E2y(X)}_.m5(b)})};
WF$=function(X){var H,l,b=(H=X.watchResponse)==null?void 0:(l=H.playerResponse)==null?void 0:l.playabilityStatus,U;H=b==null?void 0:(U=b.miniplayer)==null?void 0:U.miniplayerRenderer;(H==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&H.minimizedEndpoint&&_.ci(X.miniplayerEl,[H.minimizedEndpoint]);_.DT(X,{playabilityStatus:b})};
_.DT=function(X,H){(0,X.miniplayerPropSignalMap[1])(H)};
xC.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var X;return this.playerElement?this.playerElement:(X=_.mh(this.miniplayerEl).querySelector("#player-container"))==null?void 0:X.firstElementChild};
xC.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var xpa=function(X,H){H=H===void 0?!1:H;var l,b,U,K,w,d;return _.h(function(B){if(B.nextAddress==1){if(!X.pictureInPictureSupported()||!aLD()&&!H)return B.return(!1);l=O2d(X);b=l.width;U=l.height;return B.yield(X.pipController.openWindow({width:b,height:U}),2)}K=B.yieldResult;w=X.pipController.getWindow();if(!w||!K)return B.return(!1);w.document.body.style.overflow="hidden";d=GK_(w);I1N(X.pipController,function(){mpe(X);d()});
return B.return(!0)})},O2d=function(X){var H=_.HW().shortsPipActivation,l,b;
X=H?.5625:(b=(l=X.player)==null?void 0:l.getVideoAspectRatio())!=null?b:16/9;l=Math.min(window.innerWidth,window.innerHeight)/2;H=H?0:76;return X>1?new _.tn(l,H+l/X):new _.tn(l*X,H+l)},mpe=function(X){var H;
_.h(function(l){H=_.jJ().resolve(_.gd);return H.isOnWatch()&&X.watchPipMode||H.isOnShorts()&&X.shortsPipMode?l.yield(X.deactivate(),0):X.miniplayerToPipMode?l.yield(n2a(X),0):X.watchPipMode?l.yield(_.nE(X),0):l.jumpTo(0)})};
xC.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19363_watchPipEnabled||this.shortsPipEnabled)};
_.ja.Object.defineProperties(xC.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
xC[rx]=[A1A,XHG,_.Fk];var QLN="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(" "),
TUy="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(" "),NUy="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
cSU="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var jLe=function(X,H,l){_.$e.call(this);this.store=X;this.panelController=H;this.pageContentExtractor=l;this.isInitialized=!1};
_.S(jLe,_.$e);
jLe.prototype.init=function(X){var H=this;this.isInitialized||(this.isInitialized=!0,this.environment=X!=null?X:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.ze.currentPageSubTypeSelector(this.store.getState()),X=_.bC(this.store,_.ze.currentPageSubTypeSelector,function(l){a:if(_.rS5(H))switch(l){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var b=!0;break a;default:b=!1}else b=!1;b&&H.panelController.hidePanel({identifier:"PAai_companion"});
H.pageSubtype!==l&&(H.pageSubtype=l)}),this.addOnDisposeCallback(X))};
_.O$Z=function(X,H){if(_.rS5(X))switch(H){case "watch":var l,b;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(l=_.rd())==null?void 0:(b=l.getVideoData())==null?void 0:b.video_id};case "search":var U,K,w;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(K=(U=X.pageContentExtractor)==null?void 0:GGx(U))!=null?K:[],entityId:(w=(new URLSearchParams(window.location.search)).get("search_query"))!=null?w:void 0};case "companion-canvas":var d,B;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(B=(d=
X.pageContentExtractor)==null?void 0:GGx(d))!=null?B:[]};default:var q,u;X={videoIds:(u=(q=X.pageContentExtractor)==null?void 0:GGx(q))!=null?u:[]};return _.P("enable_ai_companion_default_page_context")?X:void 0}};
_.rS5=function(X){return X.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
jLe[rx]=[_.qU,_.d3,_.c$(a1y)];var JSY=_.Z(function(X){return _.F("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.F(_.gm,{className:X.className,text:function(){return X.data().text||""},
wrapCodeBlocks:X.shouldWrapCodeBlock}))},"sh");_.LFZ=_.Z(function(X){return _.F("yt-ai-companion-attachment-view-model",{el:_.xl(_.Mh(function(){return X.data().rendererContext})),
class:_.Qr("ytAiCompanionAttachmentViewModelHost",X.className)},_.F("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.F(_.M,{cond:function(){return X.data().title},
then:function(H){return _.F("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return H().content}},_.F(_.Sj,{text:H}))}}),_.F(_.M,{cond:function(){return _.Su(X.data().trailingTitleIcon)},
then:function(H){return _.F("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.F(_.Dp,{data:H,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.F(_.M,{cond:function(){return X.data().description},
then:function(H){return _.F("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.F(_.Sj,{text:H}))}}),_.F(_.M,{cond:function(){return X.data().bottomItem},
then:function(H){return _.F("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.F(_.l4,{data:H},{tableViewModel:ycQ}))}}))},"th");_.YAA=_.Z(function(X){return _.F("yt-channel-attribution-view-model",{class:_.Qr("ytChannelAttributionViewModelHost",X.className)},_.F("div",{class:"ytChannelAttributionViewModelUpper"},_.F(_.l4,{data:function(){return X.data().avatar}},{decoratedAvatarViewModel:_.uu}),_.F("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.F(_.Sj,{text:function(){return X.data().title}}))),_.F("div",{class:"ytChannelAttributionViewModelBottom"},_.F(_.Sj,{text:function(){return X.data().subtitle}})))},"uh");var Iqe=_.Z(function(X){var H=_.C(_.FU(!1,void 0,"MFRKRb")),l=H.next().value,b=H.next().value,U=function(){return X.data().activeRenderer},K=function(){return X.data().inactiveRenderer};
return _.F("yt-channel-disclosure-view-model",{"on:mouseleave":_.Nq(function(){b(!1)}),
"on:mouseover":_.Nq(function(){b(!0)}),
class:_.Qr("ytChannelDisclosureViewModelHost",X.className)},_.F(_.M,{cond:function(){return l()},
then:function(){return _.F(_.l4,{data:U},{channelAttributionViewModel:_.YAA})},
else:function(){return _.F(_.l4,{data:K},{decoratedAvatarViewModel:_.uu})}}))},"vh");var ASx=null;var Xjx={},Hia=(Xjx.initialized={priority:10,callback:function(X){var H=_.jJ();H.addProvider({provide:mKC,useClass:Hty});H.addProvider({provide:_.XQx,useFactory:function(){return new Qwv}});
H.addProvider({provide:g5,useValue:_.gx("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});H.addProvider({provide:YHZ,useValue:5184E6});H.addProvider({provide:VPy,useValue:_.qV()});H.addProvider({provide:dse,useClass:XZF});H.addProvider({provide:tK,useClass:tK});H.addProvider({provide:_.my,useFactory:function(){return kyq.promise}});
H.addProvider({provide:_.D$t,useFactory:function(){return _.x$z.promise}});
H.addProvider({provide:lPk,useValue:function(){var B;return((B=_.aq())==null?void 0:B.getPlayer())||null}});
var l={};H.addProvider((l.provide=_.$C,l.useFactory=function(B,q){return function(){return EAk(B,q)}},l[rx]=[g5,
YHZ],l));l={};H.addProvider((l.provide=_.r2,l.useClass=STY,l[rx]=[g5,YHZ],l));l={};H.addProvider((l.provide=_.N8z,l.useClass=xFx,l[rx]=[_.r2],l));H.addProvider({provide:nZ,useFactory:_.WF});H.addProvider({provide:jg,useFactory:_.WF});H.addProvider({provide:f1$,useFactory:_.WF});H.addProvider({provide:_.Q7Q,useFactory:function(){var B;return((B=_.aq())==null?void 0:B.getPlayer())||null}});
H.addProvider({provide:mzZ,useFactory:_.WF});H.addProvider({provide:_.qU,useFactory:_.WF});l={};H.addProvider((l.provide=v6D,l.useFactory=function(B){return B.dispatch.bind(B)},l[rx]=[_.qU],l));
H.addProvider({provide:b6,useValue:_.IO});H.addProvider({provide:IRA,useClass:pMb});H.addProvider({provide:soZ,useClass:qHA});H.addProvider({provide:Ho,useClass:Ho});H.addProvider({provide:lW,useClass:lW});H.addProvider({provide:AZ,useClass:AZ});H.addProvider({provide:oU,useClass:oU});H.addProvider({provide:bq,useClass:bq});H.addProvider({provide:vZ,useClass:vZ});H.addProvider({provide:WZ,useClass:WZ});H.addProvider({provide:GpZ,useValue:MsC});l={};H.addProvider((l.provide=ae5,l.useFactory=function(B){return B.watchEndpointMap||
{}},l[rx]=[GpZ],l));
l={};H.addProvider((l.provide=ZYC,l.useFactory=function(B){return B.reelWatchEndpointMap||{}},l[rx]=[GpZ],l));
H.addProvider({provide:_.UR,useFactory:_.lv});H.addProvider({provide:uY,useFactory:_.oO});l={};H.addProvider((l.provide=g0O,l.useFactory=function(B){return function(q){var u={automatedLogEventSource:5};u=u===void 0?{}:u;var e,y,V=(y=_.f((e=q.endpoint)==null?void 0:e.commandMetadata,_.Ip))==null?void 0:y.rootVe;if(V){var p,z;if(e=q.previousCsn||((z=_.f((p=q.endpoint)==null?void 0:p.commandMetadata,IoY))==null?void 0:z.parentCsn)){var t=t===void 0?{}:t;if(e!==_.Bi(t.layer)||V!==Cyh(t.layer))Bg8(e,t.cttAuthInfo,
t.layer||0),KRk(e,t.layer||0),p=t.layer||0,_.Et(R6b(p===void 0?0:p),V);u.parentCsn=e}q.endpoint&&e?f_F(B,q.endpoint,u):_.jR(B,V,void 0,u);var W;((W=q.response)==null?0:W.trackingParams)&&B.graftServerVe(q.response.trackingParams);var G;((G=q.playerResponse)==null?0:G.trackingParams)&&B.graftServerVe(q.playerResponse.trackingParams);var r;((r=q.reelWatchSequenceResponse)==null?0:r.trackingParams)&&B.graftServerVe(q.reelWatchSequenceResponse.trackingParams)}}},l[rx]=[_.UR],l));
l={};H.addProvider((l.provide=S2Z,l.useClass=pgC,l[rx]=[b6,_.qU],l));l={};H.addProvider((l.provide=hD,l.useClass=hD,l[rx]=[_.my,_.qU],l));l={};H.addProvider((l.provide=wK,l.useClass=wK,l[rx]=[jg,_.Vr],l));H.addProvider({provide:_.iW$,useClass:Hfx});l={};H.addProvider((l.provide=_.d3,l.useClass=msp,l[rx]=[_.iW$,_.c$(_.Bm)],l));H.addProvider({provide:_.L6,useClass:uvl});l={};H.addProvider((l.provide=Y4,l.useClass=Y4,l[rx]=[_.L6,_.my,_.b$,_.Vr],l));H.addProvider({provide:_.hT,useClass:F2});H.addProvider({provide:_.FZA,
useClass:ifC});H.addProvider({provide:_.Fr,useClass:ZW$});_.P("enable_ai_companion")&&(H.addProvider({provide:_.Bm,useClass:c1C}),H.addProvider({provide:_.IPQ,useClass:yeQ}),H.addProvider({provide:a1y,useClass:E3d}),H.addProvider({provide:Vq,useClass:Vq}),H.addProvider({provide:yq,useClass:yq}),H.addProvider({provide:IX6,useValue:Iqe}),H.addProvider({provide:_.A7F,useValue:_.LFZ}),H.addProvider({provide:Xwq,useValue:JSY}));_.P("enable_ai_chat_controller")&&H.addProvider({provide:_.em,useClass:jLe});
l={};H.addProvider((l.provide=_.BI,l.useClass=X$U,l[rx]=[_.BI],l));H.addProvider({provide:_.Il,useClass:C1p});H.addProvider({provide:Dh,useClass:Dh});H.addProvider({provide:HI,useClass:HI});H.addProvider({provide:aj,useClass:aj});l={};H.addProvider((l.provide=qe,l.useClass=qe,l[rx]=[_.Vr,_.b$],l));H.addProvider({provide:cL,useClass:TfC});l={};H.addProvider((l.provide=JZ,l.useClass=JZ,l[rx]=[_.hT,cL],l));l={};H.addProvider((l.provide=Qq,l.useClass=Qq,l[rx]=[_.hT],l));H.addProvider({provide:Sm,useClass:Sm});
H.addProvider({provide:TXl,useClass:Qol});_.P("web_enable_feedback_endpoint_resolver_batch_2")&&(l={},H.addProvider((l.provide=k6,l.useClass=k6,l[rx]=[nZ],l)),l={},H.addProvider((l.provide=z6,l.useClass=z6,l[rx]=[TXl],l)));l={};H.addProvider((l.provide=jm,l.useClass=jm,l[rx]=[_.Fr,cL],l));l={};H.addProvider((l.provide=Oo,l.useClass=Oo,l[rx]=[_.Fr],l));l={};H.addProvider((l.provide=r5,l.useClass=r5,l[rx]=[_.b$,_.d3],l));l={};H.addProvider((l.provide=Ne,l.useClass=Ne,l[rx]=[_.b$,_.UR],l));H.addProvider({provide:SU,
useClass:SU});l={};H.addProvider((l.provide=Mi,l.useClass=Mi,l[rx]=[nZ],l));H.addProvider({provide:vI,useClass:vI});H.addProvider({provide:iY,useClass:iY});l={};H.addProvider((l.provide=mB,l.useClass=mB,l[rx]=[nZ],l));l={};H.addProvider((l.provide=Qw,l.useClass=Qw,l[rx]=[_.b$,nZ],l));l={};H.addProvider((l.provide=TR,l.useClass=TR,l[rx]=[nZ],l));l={};H.addProvider((l.provide=Ni,l.useClass=Ni,l[rx]=[nZ],l));l={};H.addProvider((l.provide=mg,l.useClass=mg,l[rx]=[_.d3],l));l={};H.addProvider((l.provide=
DJ,l.useClass=DJ,l[rx]=[_.UR],l));l={};H.addProvider((l.provide=af,l.useClass=af,l[rx]=[PI],l));l={};H.addProvider((l.provide=ZJ,l.useClass=ZJ,l[rx]=[PI],l));H.addProvider({provide:En,useClass:En});H.addProvider({provide:g6,useClass:g6});H.addProvider({provide:x4,useClass:x4});l={};H.addProvider((l.provide=LZ,l.useClass=LZ,l[rx]=[_.d3,_.Vr],l));H.addProvider({provide:Eo,useClass:Eo});l={};H.addProvider((l.provide=T6,l.useClass=T6,l[rx]=[_.b$,_.d3],l));H.addProvider({provide:Zh,useClass:Zh});l={};
H.addProvider((l.provide=qi,l.useClass=qi,l[rx]=[nZ,_.b$,_.BI],l));l={};H.addProvider((l.provide=h9,l.useClass=h9,l[rx]=[_.b$,_.Vr],l));H.addProvider({provide:c7t,useValue:vdK});H.addProvider({provide:H4_,useValue:ufz});H.addProvider({provide:FZ,useClass:FZ});l={};H.addProvider((l.provide=d6,l.useClass=d6,l[rx]=[nZ],l));l={};H.addProvider((l.provide=sn,l.useClass=sn,l[rx]=[_.Il,_.Vr],l));l={};H.addProvider((l.provide=x6,l.useClass=x6,l[rx]=[_.Vr],l));l={};H.addProvider((l.provide=pZ,l.useClass=pZ,
l[rx]=[jg],l));H.addProvider({provide:LmC,useFactory:_.S4.getInstance});l={};H.addProvider((l.provide=G6,l.useClass=G6,l[rx]=[g5,LmC,_.Vr],l));H.addProvider({provide:tZ,useClass:tZ});H.addProvider({provide:so,useClass:so});H.addProvider({provide:u6,useClass:u6});H.addProvider({provide:_.Me,useClass:_.Me});H.addProvider({provide:r6,useClass:r6});l={};H.addProvider((l.provide=$4,l.useClass=$4,l[rx]=[jg],l));l={};H.addProvider((l.provide=Ij,l.useClass=Ij,l[rx]=[_.Vr],l));l={};H.addProvider((l.provide=
K6,l.useClass=K6,l[rx]=[_.Vr],l));l={};H.addProvider((l.provide=Rf,l.useClass=Rf,l[rx]=[_.Vr],l));_.P("web_enable_prefetching_videos_on_home")&&(H.addProvider({provide:LKy,useClass:LKy}),H.addProvider({provide:Vj,useClass:Vj}));l={};H.addProvider((l.provide=jU,l.useClass=jU,l[rx]=[_.Vr],l));H.addProvider({provide:PL,useClass:PL});l={};H.addProvider((l.provide=zR,l.useClass=zR,l[rx]=[_.b$,_.Vr],l));l={};H.addProvider((l.provide=fZ,l.useClass=fZ,l[rx]=[_.Vr],l));l={};H.addProvider((l.provide=Po,l.useClass=
Po,l[rx]=[_.b$,_.Vr],l));H.addProvider({provide:HUN,useClass:HUN});H.addProvider({provide:XBa,useClass:XBa});H.addProvider({provide:of,useClass:of});l={};H.addProvider((l.provide=lY,l.useClass=lY,l[rx]=[jg,_.Vr],l));H.addProvider({provide:bY,useClass:bY});l={};H.addProvider((l.provide=A9,l.useClass=A9,l[rx]=[jg,_.Vr,_.b$],l));l={};H.addProvider((l.provide=Xx,l.useClass=Xx,l[rx]=[_.Vr],l));l={};H.addProvider((l.provide=If,l.useClass=If,l[rx]=[_.Vr,_.b$],l));l={};H.addProvider((l.provide=p6,l.useClass=
p6,l[rx]=[_.Vr,_.b$],l));l={};H.addProvider((l.provide=w6,l.useClass=w6,l[rx]=[_.my],l));l={};H.addProvider((l.provide=C6,l.useClass=C6,l[rx]=[_.my],l));l={};H.addProvider((l.provide=Un,l.useClass=Un,l[rx]=[_.my],l));H.addProvider({provide:Vw,useClass:Vw});H.addProvider({provide:f6,useClass:f6});H.addProvider({provide:On,useClass:On});H.addProvider({provide:n6,useClass:n6});H.addProvider({provide:yw,useClass:yw});H.addProvider({provide:i6,useClass:i6});H.addProvider({provide:eU,useClass:eU});H.addProvider({provide:_.bW,
useClass:qc});H.addProvider({provide:GI,useFactory:function(){return _.Zq.getInstance()}});
H.addProvider({provide:VIe,useFactory:cmK});H.addProvider({provide:PI,useFactory:function(){return _.dD.getInstance()}});
H.addProvider({provide:MxD,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});l={};H.addProvider((l.provide=_.dK,l.useClass=_.dK,l[rx]=[_.my,_.Vr,_.UR,VIe,PI,GI,MxD,b6],l));H.addProvider({provide:_.AW,useClass:GM_});H.addProvider({provide:_.Ane,useClass:IYN});l={};H.addProvider((l.provide=vL,l.useClass=vL,l[rx]=[_.Ane],l));l={};H.addProvider((l.provide=_.xs5,l.useFactory=function(B){return B.upliftCompletionResolver.promise},l[rx]=[S2Z],l));
l=_.G7("IS_SHELL_LOAD")?"aa":"eocs";var b=_.G7("IS_SHELL_LOAD")?3:2;_.ng().parkOrScheduleJob(function(){n3U()},b,l);
_.ng().parkOrScheduleJob(function(){_.jJ().resolve(hD).start()},2,"eocs");
_.ng().parkOrScheduleJob(function(){PLY()},2,"eocs");
_.ng().parkOrScheduleJob(function(){_.jJ().resolve(wK).start()},2,"eocs");
_.P("kevlar_debug_data_app_registration_ks")||Dmk();H.addProvider({provide:_.HS,useValue:new MiZ(X.root)});H.addProvider({provide:G3,useValue:new OSy});H.addProvider({provide:_.Sw5,useValue:new f3a(X.root)});H.addProvider({provide:_.o6,useValue:new pJZ});H.addProvider({provide:_.Lg,useClass:b2});H.addProvider({provide:A1A,useClass:Bo});_.P("kevlar_network_sli_killswitch")||H.addProvider({provide:RfC,useValue:aBD});H.addProvider({provide:ARl,useFactory:IWL});l={};H.addProvider((l.provide=S_p,l.useFactory=
tSN,l[rx]=[_.xs5,nZ,_.$C],l));l={};H.addProvider((l.provide=pbl,l.useClass=HZ,l[rx]=[S_p],l));H.addProvider({provide:$FU,useClass:lMy});H.addProvider({provide:yje,useClass:PB$});l=[].concat(_.LJ(LMy));l.push(_.uE);l.push(xPQ);_.P("enable_share_panel_navigation_logging_fix_on_web")&&l.push(_.Nh6);H.addProvider({provide:JUz,useValue:l});H.addProvider({provide:Ayz,useClass:em$});H.addProvider({provide:FPp,useClass:C0x});l={};H.addProvider((l.provide=Jyv,l.useClass=a3a,l[rx]=[jg],l));_.Ss.addLowPriorityJob(function(){$TK()});
l={};H.addProvider((l.provide=A_t,l.useFactory=function(B){return function(q){var u,e=(u=_.f(q.commandMetadata,_.Ip))==null?void 0:u.url;if(!e)throw new _.qd("No URL for PBJ Command",q);e=fib(e,{pbj:"1"});u=QOb(e,{})||{};u=Object.assign({},u,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.gx("STS").toString()});q=_.Io({command:JSON.stringify(q),session_token:_.gx("XSRF_TOKEN")});return B.fetch(e,{method:"POST",headers:u,body:q})}},l[rx]=[FPp],l));
H.addProvider({provide:UdC,useFactory:function(){var B={};return B.CSI=XqN(),B.ECATCHER=A3Z(),B}});
H.addProvider({provide:Oyz,useClass:$dU});l=[];l.push(H.resolve(yje));b={};b=(b.client_location=_.S4.getInstance(),b.consistency=_.o5y(),b.entities=H.resolve(soZ),b.response_received_commands=H.resolve(Ayz),b.store=H.resolve(_.N8z),b.tokens=H.resolve(yje),b.service_params=H.resolve(Oyz),b);if(_.P("web_shorts_prefetch_service_enabled")){var U=new DFx(H.resolve(_.r2));b.shorts_prefetch=U}b.adblock_detection=H.resolve(Jyv);_.P("web_enable_chunk_prediction")&&(H.addProvider({provide:_.p3,useClass:uUZ}),
H.addProvider({provide:H_q,useClass:GT$}),b.mss=H.resolve(H_q),_.n8(window,"yt-navigate-start",function(B){var q;B=(q=B.detail)==null?void 0:q.endpoint;var u;if(q=(u=_.f(B==null?void 0:B.commandMetadata,_.Ip))==null?void 0:u.rootVe){u=_.gx("VE_TYPE_TO_XIDS",{});var e,y;B=(y=(e=u["0"])==null?void 0:e.xids)!=null?y:[];var V,p;e=(p=(V=u[q])==null?void 0:V.xids)!=null?p:[];V=B.concat(e);if(q in u&&V.length>0){var z;(z=y15(_.jJ().resolve(_.p3),V))==null||z()}}}));
H.addProvider({provide:_.iM,useClass:_.iM});U=H.resolve(GpZ);var K=[];_.P("PremiumClientSharedConfig__enable_att_context_processor")&&(H.addProvider({provide:X1Z,useClass:YwZ}),K.push(H.resolve(X1Z)));if(_.P("owl_pl_await")){var w={};H.addProvider((w.provide=Nxx,w.useFactory=function(B){return new Q0$(B)},w[rx]=[_.iM],w));
K.push(H.resolve(Nxx))}lT9(U,H.resolve(FPp),H.resolve(IRA),b,H.resolve(_.r2),l,K,H.resolve(pbl),H.resolve($FU));H.addProvider({provide:_.b$,useValue:_.S2.instance});_.P("start_client_gcf")&&H.addProvider({provide:yJ,useValue:YfQ()});H.addProvider({provide:tId,useFactory:function(){return new tId(_.jJ().resolve(_.iM),_.dD.getInstance())}});
_.ng().parkOrScheduleJob(function(){WX5()},1,"eocs");
l={};H.addProvider((l.provide=Dse,l.useClass=Dse,l[rx]=[_.$C,_.b$],l));H.addProvider({provide:_.Kue,useFactory:_.yj.getInstance});_.ng().parkOrScheduleJob(function(){_.jJ().resolve(Dse).refresh()},0,"eocs");
H.addProvider({provide:_.Fk,useClass:N9C});_.P("kevlar_signal_collection_killswitch")||(l={},H.addProvider((l.provide=wgl,l.useClass=wgl,l[rx]=[g5,uY],l)),_.ng().parkOrScheduleJob(function(){_.jJ().resolve(wgl).record()},1,"eocs"));
_.P("web_debug_handler_registration_killswitch")||_.ng().parkOrScheduleJob(function(){kQy("DOWNLOAD_PES",Nim);_.P("offline_client_state_export_ks")||kQy("OFFLINE_CLIENT_STATE",m1l)},0,"eocs");
_.P("kevlar_prevent_polymer_dynamic_font_load")&&_.ng().parkOrScheduleJob(function(){var B=[_.z8(P0d),_.z8(ftp)];B=_.C(B);for(var q=B.next();!q.done;q=B.next()){q=q.value;var u=document.createElement("link");_.ei(u,q,"stylesheet");document.head.appendChild(u)}},1,"eocs");
l=X.injector.resolve(_.b$);_.ArZ.instance=new _.ArZ(l);uNK(Tra(new I3Y(l)));l={};X.injector.addProvider((l.provide=cD,l.useFactory=function(B){(B=B==null?void 0:B.getCurrentPage())?B=B.visibilityObserver:(ASx||(ASx=R1h()),B=ASx);return B},l[rx]=[_.c$(_.gd)],l.skipCache=!0,l));
H.addProvider({provide:_.f9,useClass:xC});H.addProvider({provide:o2,useClass:cp_});X.injector.addProvider({provide:v4F,useValue:sDN});H.addProvider({provide:k1Q,useValue:GSa});H.addProvider({provide:ZvH,useValue:Efy});H.addProvider({provide:_.b4,useValue:cth});X=H.addProvider;dkd||(dkd=new w$Z);X.call(H,{provide:_.sg,useValue:dkd});H.addProvider({provide:_.nS,useValue:_.gx("HTML_DIR")==="rtl"?"rtl":"ltr"});H.addProvider({provide:zr5,useClass:Z$N});H.addProvider({provide:_.rT,useClass:zOa});_.jJ().addProvider({provide:k8Z,
useValue:_.P("enable_web_delhi_icons")?TUy.concat(cSU):QLN.concat(NUy)});H.addProvider({provide:_.Zfa,useClass:_.Zfa});H.addProvider({provide:_.efN,useValue:new uBN});H.addProvider({provide:s$U,useClass:F4Z});H.addProvider({provide:k4,useClass:k4});H.addProvider({provide:t9,useClass:t9});X={};H.addProvider((X.provide=Y6,X.useClass=Y6,X[rx]=[_.b$,_.d3],X));H.addProvider({provide:J9,useClass:J9});H.addProvider({provide:EnU,useClass:oy5});H.addProvider({provide:GR,useClass:GR});H.addProvider({provide:NiD,
useValue:x1q});H.addProvider({provide:_.i7,useClass:BXd});_.P("enable_payments_purchase_manager")&&H.addProvider({provide:b$C,useClass:H$5});H.addProvider({provide:mbl,useFactory:function(){return function(B){return _.Vvd(B)}}});
H.addProvider({provide:_.q_U,useClass:sZx});X={};H.addProvider((X.provide=cI,X.useClass=cI,X[rx]=[_.q_U],X));H.addProvider({provide:WI,useClass:WI});H.addProvider({provide:zCa,useValue:$le});H.addProvider({provide:wwD,useValue:_.eOY});H.addProvider({provide:NHk,useClass:lRC});H.addProvider({provide:Ful,useValue:fSA});X={};H.addProvider((X.provide=Bxy,X.useClass=qtZ,X[rx]=[Ful],X));X={};H.addProvider((X.provide=_.Cz,X.useClass=zVZ,X[rx]=[Bxy],X));X={};H.addProvider((X.provide=_.uq,X.useClass=LuA,X[rx]=
[_.qU,_.Lg],X));if(_.P("web_explore_hub_on_hover")||_.P("web_client_explore_hub_on_hover"))X={},H.addProvider((X.provide=WL,X.useClass=WL,X[rx]=[_.b$,GI],X));if(_.P("web_enable_renderer_logger")){var d=new Mgz;CCz(function(){d.abort()});
H.addProvider({provide:oZO,useValue:new hJd(d.signal)})}H.addProvider({provide:mu_,useValue:ITy});H.addProvider({provide:GMy,useClass:tOp});_.P("web_use_flow_state_manager")&&(H.addProvider({provide:_.$6,useClass:MNZ}),X={},H.addProvider((X.provide=KZ,X.useClass=KZ,X[rx]=[_.$6],X)),X={},H.addProvider((X.provide=Rj,X.useClass=Rj,X[rx]=[_.qU,_.$6],X)),X={},H.addProvider((X.provide=CZ,X.useClass=CZ,X[rx]=[_.qU,_.$6,_.Vr],X)),X={},H.addProvider((X.provide=w5,X.useClass=w5,X[rx]=[_.b$,_.Vr],X)),X={},H.addProvider((X.provide=
d5,X.useClass=d5,X[rx]=[_.$6,_.Vr],X)))}},Xjx);var lCy={},oHp=(lCy.initialized={priority:10,callback:function(){if(!KPa){Jay();lbm("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.UZ(_.lH(lbm,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.P("log_heartbeat_with_lifecycles")){var X={};WO.instance||(WO.instance=new WO);WO.instance.install((X.document_visible={callback:o0y,priority:10},X.document_hidden={callback:o0y,priority:10},X))}else _.cB(document,"visibilitychange",o0y);KPa=!0}(X=_.Bi())&&X!=="UNDEFINED_CSN"&&UIh(X)}},lCy);var biy={},U0p=(biy.initialized={callback:function(X){var H=_.cS(232091),l=X.injector.resolve(_.UR);_.rg(l,H);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?ZyD()&&_.Lk(l,H):(X=X.injector.resolve(mbl)("refresh_detector"))&&(X.get("first_tab_load")?_.Lk(l,H):X.set("first_tab_load","1"))}},biy);var $0Z={},Kc5=($0Z.initialized={priority:0,callback:function(){var X=new u$t,H="other";_.IJ?H="chrome":_.Yi?H="firefox":_.Dt?H="safari":TT&&(H="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(l){X.increment(_.hl(),l,H)}).catch(function(){X.increment(_.hl(),!1,H)}):X.increment(_.hl(),!1,H)}},$0Z);var R3Z={},Czp=(R3Z.rendering={priority:8,callback:iyv},R3Z);var wjl={},d0Z=(wjl.rendering={priority:10,callback:l6_},wjl.rendered={callback:XzH},wjl),h3e={},FcZ=(h3e.rendering={callback:l6_},h3e.rendered={callback:XzH},h3e);var BwC=!1,qLa={},smx=(qLa.initialized={priority:10,callback:function(){BwC||(qcl({didPatch:function(X){X.el&&s3y(X.el,X.props)},
didUnmount:function(X){BNK(X.el)}}),BwC=!0)}},qLa);var Maa=/^\/shorts\/?$/;_.Et("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:{}}}}}}});_.P("kevlar_use_common_module_manager_ks")?(_.Zth(new oQQ),tgO()):b__();
(function(){var X=document.querySelector("ytd-app");if(!X)throw Error("ak");R$k();X=new eo({root:X,injector:_.jJ()});X.install(oHp);var H={};X.install((H.initialized={priority:10,callback:Jgy},H));_.P("wp_lat_b")&&(H={},X.install((H.initialized={priority:10,callback:function(){J3y()}},H)));
H={};X.install((H.rendered={priority:0,callback:cgO},H));H={};X.install((H.rendered={priority:0,callback:function(){_.Ss.addLowPriorityJob(function(){_.i$$>1&&(iHy(),Tyy())},4E4)}},H));
X.install(LPp);X.install(U0p);X.install(smx);z$m();X.install($KU);X.install(TLa);X.install(rlU);X.install(o3Z);X.install(RJC);X.install(bUy);X.install(Hia);X.install(cle);X.install(Kc5);if(!_.G7("IS_SHELL_LOAD")||_.P("kevlar_fetch_initial_data_promise_client")||_.P("sw_nav_preload_pbj")){var l=_.c1(window.location.href);H=l&&l==="/watch";l=l&&l.match(Maa);H?X.install(FcZ):l?X.install(Czp):X.install(d0Z)}else X.install(OtZ);X.install(ItZ);_.P("web_enable_prefetching_videos_on_home")&&X.install(wBx);
_.P("start_client_gcf")&&X.install(bt$);X.install(IMU);(new eVq).increment("INSTALLED");X.install(RV$);X.install(Ztp);X.transition("initialized");OCz();DLK()})();
_.No=[[["dzZqODFzZ3A2MmtpbmQjbHg=","bGtzbzQzMXBsZHZhbHVlI2tr"],"cnRzNG5zbTVxN0FEX1BMQUNFTUVOVF9LSU5EX01JTExJU0VDT05EUyNkag=="]];_.Tc=["cHF3aWJ2NGt6YWdsb2JhbENhbGxiYWNrcyN5dw==","NTJ5MHJhaDAzeG9uQWJub3JtYWxpdHlEZXRlY3RlZCMxNQ==","ZXViNGR5YXhjOG9uQWRTa2lwI29x","eHQ1Ymd1czVpOHJhd19wbGF5ZXJfcmVzcG9uc2UjbDA=","eW54dTc4cWRienBsYXllckFkcyN3dA=="];_.E6="cHF3aWJ2NGt6YWdsb2JhbENhbGxiYWNrcyN5dw== NTJ5MHJhaDAzeG9uQWJub3JtYWxpdHlEZXRlY3RlZCMxNQ== ZXViNGR5YXhjOG9uQWRTa2lwI29x eHQ1Ymd1czVpOHJhd19wbGF5ZXJfcmVzcG9uc2UjbDA= bG4xMXJxY3VocndlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNwNA== aDR1cG9kbzQ1dGFiX3NhX2VmIzY5 eW54dTc4cWRienBsYXllckFkcyN3dA==".split(" ");

_._ModuleManager_initialize=function(X,H){if(!_.eO){if(!_.yW)return;_.Zth(_.yW())}_.eO.setAllModuleInfoString(X,H)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy5/sy2:2/sy3:2/sy4/sy6/sy7:1,2,6/hU04te/kevlar_main_module:3,4,7,8/dpUCFd/U9vrqd/n0DHg/HwlOhd/JoU6vf/dIvQ6c/m9Vw4/mcjWUc/QiZf0e:7/f8YPh:3/b3MoKf:4/NSzT5:5',['sy5','sy6','sy1','sy4','sy3','sy2','sy7','hU04te','NSzT5','b3MoKf','f8YPh','QiZf0e','mcjWUc','m9Vw4','dIvQ6c','JoU6vf','HwlOhd','n0DHg','U9vrqd','dpUCFd','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.Zix=function(X,H){if(_.P("web_enable_chat_autoscroll_to_user_turn")&&X&&H)return X-4+"px"};
}catch(e){_._DumpException(e)}
try{
var SLe,nHx;_.tD=function(X){var H=X.clientMessageId;var l=X.playerOffsetMs;var b=X.pageContext;X=X.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:H},!!l&&{playerOffsetMs:l},!!b&&{pageContext:b},!!X&&{userInputText:X})}};
_.pjp=function(X,H,l){H=H===void 0?5:H;if(H!==0){var b=typeof X==="function"?X():document.querySelector(X);b?(l==null?0:l.enableSmartFocus)?_.grk(b):b.focus():setTimeout(function(){_.pjp(X,H-1,l)},500)}};
SLe=function(X,H){return _.JY(X.entities,"inlineExpansionEntity",H)};
_.z3d=function(X){return{continuationCommand:{token:X,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
nHx=function(X,H){if(H)return"ytCardViewModelCardSelected";switch(X){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
_.kXp=function(X,H){return _.JY(X.entities,"youchatPendingResponseEntity",H)};
_.x0C=function(X){return function(H){_.Wc(_.Us("youchatPendingResponseEntity",X,{entityKey:X,isPendingResponse:H}))}};_.taC=_.Z(function(X){var H=X.data;var l=function(){var b;return _.ss((b=H())==null?void 0:b.rendererContext)};
X={};return _.F("content-list-item-view-model",{el:_.xl(_.Mh(function(){return H().rendererContext})),
class:_.Qr("ytContentListItemViewModelHost",(X.ytContentListItemViewModelTappable=l,X)),role:function(){return l()?"listitem":void 0},
tabindex:function(){return l()?0:void 0},
"on:keydown":_.h5()},_.F("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.F("div",{class:"ytContentListItemViewModelImageContainer"},_.F(_.M,{cond:function(){return H().image},
then:function(b){return _.F(_.Dp,{data:b,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.F(_.l4,{data:function(){var b;
return(b=H())==null?void 0:b.avatar}},{avatarViewModel:_.MX})),_.F("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.F("div",{class:_.Qr("ytContentListItemViewModelTitle",function(){a:{switch(H().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var b="ytContentListItemViewModelProminentTitle";
break a}b=void 0}return b})},_.F(_.Sj,{text:function(){return H().title}})),_.F("div",{class:"ytContentListItemViewModelMetadata"},_.F(_.l4,{data:function(){return H().metadata}},{contentMetadataViewModel:function(b){return _.F(_.rF,{data:b.data,
layout:1})}})))),_.F("div",{class:"ytContentListItemViewModelActionButton"},_.F(_.l4,{data:function(){var b;
return(b=H())==null?void 0:b.actionButton}},{buttonViewModel:_.Qk,
toggleButtonViewModel:_.KL})))},"wh");var WcY=_.Z(function(X){var H=X.data,l=function(){var U;return(U=H())==null?void 0:U.description},b=function(){var U;
return(U=H())==null?void 0:U.title};
return _.F("ytfc-youth-basic-section-header-view-model",{class:_.Qr("ytfcYouthBasicSectionHeaderViewModelHost",X.className)},_.F("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.F(_.l4,{data:function(){var U;return(U=H())==null?void 0:U.avatar}},{avatarViewModel:_.MX}),_.F(_.M,{cond:function(){var U;
return _.Su((U=H())==null?void 0:U.themedImage)},
then:function(U){return _.F(_.Dp,{data:U,alt:function(){var K,w;return(w=(K=b())==null?void 0:K.content)!=null?w:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.F("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.F(_.M,{cond:b,
then:function(){return _.F(_.Sj,{text:b,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.F("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.F(_.l4,{data:function(){var U;
return(U=H())==null?void 0:U.bottomBadge}},{badgeViewModel:function(U){return _.F("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.F(_.Gi,{data:U.data}))}}),_.F(_.M,{cond:l,
then:function(){return _.F(_.Sj,{text:l,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"xh");var EH5=_.Z(function(X){var H=X.data;return _.F("ytfc-youth-section-body-view-model",{class:_.Qr("ytfcYouthSectionBodyViewModelHost",X.className)},_.F(_.l4,{data:function(){var l;return(l=H())==null?void 0:l.topContent}},{avatarStackViewModel:function(l){return _.F(_.eD,{data:l.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.F(_.Sj,{text:function(){var l;
return(l=H())==null?void 0:l.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"yh");var gHd=_.Z(function(X){var H=_.C(_.FU(!1,void 0,"SrK51e")),l=H.next().value,b=H.next().value,U=function(){return X.data().inlineExpansionEntityKey},K=_.Aw(SLe,U),w=function(){if(X.isSelected!==void 0)return X.isSelected();
if(U()){var B;return(B=K())==null?void 0:B.expanded}return l()};
H={};var d={};return _.F("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.Nq(function(){X.isSelected!==void 0||U()||b(!l())})},_.F("div",{class:"ytInlineExpanderViewModelHeader"},_.F(_.l4,{data:function(){return X.data().headerContent}},{youthBasicSectionHeaderViewModel:WcY}),_.F("div",{class:_.Qr("ytInlineExpanderViewModelButton",(H.ytInlineExpanderViewModelButtonExpanded=w,H))},_.F(_.ms,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:w(),accessibilityLabel:w()?_.XS("SHOW_LESS",void 0,"Show Less"):_.XS("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.F("div",{class:_.Qr("ytInlineExpanderViewModelBody",(d.ytInlineExpanderViewModelBodyExpanded=w,d)),"aria-hidden":function(){return!w()}},_.F("div",{class:"ytInlineExpanderViewModelBodyContent"},_.F(_.l4,{data:function(){return X.data().bodyContent}},{youthSectionBodyViewModel:EH5}))))},"zh");var GXy=new _.gz("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.aCe=_.Z(function(X){var H=function(){return X.data().background},l=function(){return X.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},b=function(){return X.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},U=_.jJ().resolve(_.c$(GXy)),K={};
return _.F("yt-card-view-model",{el:_.xl(_.Mh(function(){return X.data().rendererContext})),
class:_.Qr("ytCardViewModelHost",X.className,(K.ytCardViewModelClickable=function(){return _.qh(X.data().rendererContext)},K))},_.F(_.Jk,{contentId:function(){return X.data().contentId}},function(){var w={};
return _.F("div",{class:_.Qr("ytCardViewModelCardViewModelInner",function(){var d;return nHx(X.data().cardStyle,(d=X.isSelected)==null?void 0:d.call(X))},function(){if(X.isSelected===void 0){var d;
a:{switch((d=X.data().cardState)==null?void 0:d.selectionState){case "CARD_SELECTION_STATE_SELECTED":d="ytCardViewModelSelected";break a}d=void 0}return d}})},_.F(_.l4,{data:H},{cinematicContainerViewModel:function(d){return _.F(_.vNd,{data:d.data})}}),_.F("div",{class:"ytCardViewModelContentWrapper"},_.F(_.M,{cond:function(){return!l()},
then:function(){var d={},B={};return _.F("div",{class:"ytCardViewModelTopContentContainer"},_.F("div",{class:_.Qr("ytCardViewModelTopContent",(d.ytCardViewModelInnerPadding=function(){return!X.data().disableTopContentPadding&&X.data().topContent},d))},_.F(_.l4,{data:function(){return X.data().topContent}},{contentListItemViewModel:function(q){return _.F(_.taC,{data:q.data})},
basicContentViewModel:_.n3,linearLayoutViewModel:_.Dl})),_.F("div",{class:_.Qr("ytCardViewModelInlineTrailingAction",(B.ytCardViewModelInlineCenterTrailingAction=b,B.ytCardViewModelInlineTrailingActionMargin=function(){return X.data().trailingAction},B))},_.F(_.l4,{data:function(){return X.data().trailingAction}},{buttonViewModel:function(q){return _.F(_.Qk,{data:q.data})}})))}}),_.F("div",{class:_.Qr((w.ytCardViewModelInnerPadding=function(){return!X.data().disableBodyContentPadding&&X.data().bodyContent},
w))},_.F(_.l4,{data:function(){return X.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.YAA,
contentListItemViewModel:_.taC,descriptionPreviewViewModel:_.ls,inlineExpanderViewModel:function(d){return _.F(gHd,{data:d.data,isSelected:X.isSelected})},
linearLayoutViewModel:_.Dl,listItemViewModel:_.xK},U&&{contentSectionViewModel:U})))),_.F(_.M,{cond:function(){return l()},
then:function(){return _.F("div",{class:"ytCardViewModelOverlayTrailingAction"},_.F(_.l4,{data:function(){return X.data().trailingAction}},{buttonViewModel:function(d){return _.F(_.Qk,{data:d.data})}}))}}))}))},"Ah");
}catch(e){_._DumpException(e)}
try{
var m0l;_.Wo=function(X){var H=document.createElement("link");_.ei(H,X,"stylesheet");document.head.appendChild(H)};
_.Eg=function(X,H){var l,b;return _.h(function(U){l=document.createElement("div");l.id=X.id;X.className&&(l.className=X.className);b=X.element;if(!b)throw Error("bk");if(X.location==="prepend")b.prepend(l);else if(X.location==="appendChild")b.appendChild(l);else if(X.location==="after")b.after(l);else throw Error("ck");return U.return(_.ky(l,H,"Fh"))})};
_.gK=function(X){var H;return _.h(function(l){(H=document.getElementById(X))&&H.remove();_.m5(l)})};
_.G_=function(X,H){var l=document.querySelector(X);l?H(l):setTimeout(function(){_.G_(X,H)},1E3)};
_.Qml=function(X,H,l){var b;_.h(function(U){if(U.nextAddress==1)return(b=document.getElementById(X))?U.jumpTo(2):U.yield(m0l(X,H,l),2);if(b=document.getElementById(X))b.style.display="block";_.m5(U)})};
m0l=function(X,H,l){return _.h(function(b){return b.return(new Promise(function(U){_.G_("div #panels",function(K){_.Eg({element:K,location:"appendChild",id:X,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+l},H);U()})}))})};_.av=_.Z(function(X){var H=X.text;var l=X.onClick;var b=X.color;var U=X.backgroundColor;var K=X.buttonSize;var w=X.disabled;var d=X.iconName;var B=X.iconSize;var q=X.className;var u=X.iconClassName;X=X.ariaLabel;var e=_.Nq(function(V){l(V)}),y={};
return _.F("button",{class:_.Qr("ytpStandardButtonsHost",(y.ytpStandardButtonsLarge=function(){return(K==null?void 0:K())==="large"},y),q),
"on:click":e,style:_.rC({color:b,"background-color":U}),disabled:w,"aria-label":X},_.F(_.M,{cond:d,then:function(){return _.F(_.Ja,{className:_.Qr("ytpStandardButtonsIconContainer",u),icon:d,size:B})}}),H)},"Eh");_.TwZ=_.Z(function(X){var H,l,b={};return _.F("div",{class:_.Qr("ytprototypesEngagementPanelComponentHost",(b.ytprototypesEngagementPanelComponentHostMweb=X.isMweb,b),X.className),id:X.id},_.F("div",{class:_.Qr("ytprototypesEngagementPanelComponentEngagementPanelHeader",X.headerClassName)},_.F("div",null,X.header()),_.F("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.F("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(H=X.HeaderButton)==null?void 0:H.call(X)),
_.F(_.av,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var U;(U=X.onHide)==null||U.call(X);var K;if((K=X.preventDefault)==null||!K.call(X))if(U=X.id(),U=document.getElementById(U))U.style.display="none"}}))),_.F("div",{class:_.Qr("ytprototypesEngagementPanelComponentEngagementPanelContent",X.contentClassName),
style:function(){var U,K;return"height: "+(((U=X.height)==null?0:U.call(X))||((K=X.isMweb)==null?0:K.call(X))?"100%":"800px")+";"}},X.content()),_.F("div",null,(l=X.Footer)==null?void 0:l.call(X)))},"Gh");
}catch(e){_._DumpException(e)}
try{
var Oix=function(X){if(X.backgroundStyle)switch(X.backgroundStyle){case "CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytChatUserTurnViewModelMonoContainer";case "CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytChatUserTurnViewModelGradientContainer";default:return"ytChatUserTurnViewModelDefaultContainer"}return X.hasGradientBackground?"ytChatUserTurnViewModelGradientContainer":"ytChatUserTurnViewModelDefaultContainer"};_.$v6=_.Z(function(X){var H=function(){return X.data().choiceSelectedText};
return _.F("yt-chat-user-turn-view-model",{class:"ytChatUserTurnViewModelHost",style:_.rC({"min-height":function(){var l,b;return _.Zix((l=X.containerHeight)==null?void 0:l.call(X),(b=X.isLastItem)==null?void 0:b.call(X))}}),
"data-target-id":function(){var l;return(l=X.data().itemTargetId)!=null?l:""}},_.F(_.M,{cond:H,
then:function(){return _.F("div",{class:"ytChatUserTurnViewModelChoiceSelected"},_.F(_.Sj,{text:H}))}}),_.F("div",{class:_.Qr("ytChatUserTurnViewModelUserMessage",function(){return Oix(X.data())})},function(){return X.data().text}))},"Dh");
}catch(e){_._DumpException(e)}
try{
var vHZ=function(X){X=_.f(X,iix);if(X==null?0:X.trustedAnimationUrl){var H;return(H=_.zd(X.trustedAnimationUrl))==null?void 0:H.toString()}return X==null?void 0:X.animationUrl},iix=new _.Ed("lottieAnimationViewModel");_.KD6=_.Z(function(X){var H=function(){var K;return((K=_.jJ().resolve(_.c$(_.b4)))==null?0:K())&&X.data().darkThemeAnimation?vHZ(X.data().darkThemeAnimation):X.data().animation?vHZ(X.data().animation):X.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},l=_.Jw(),b=_.jJ().resolve(_.nS);
_.xy(function(){requestAnimationFrame(function(){var K;(K=l.lottieEl)==null||K.addEventListener("DOMLoaded",function(){var w;(w=X.onLottieLoaded)==null||w.call(X)})})});
var U={};return _.F("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){return X.data().targetId||""},
"aria-label":function(){return X.data().loadingAnimationA11yLabel||""},
role:function(){return X.data().loadingAnimationA11yLabel?"progressbar":void 0},
style:_.rC({"min-height":function(){var K,w;return _.Zix((K=X.containerHeight)==null?void 0:K.call(X),(w=X.isLastItem)==null?void 0:w.call(X))}})},_.F(_.Jx,{"aria-hidden":"true",
className:_.Qr((U.ytChatLoadingViewModelRtl=b==="rtl",U)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:H()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||H()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:H()}}},
animationRef:l}))},"Ch");
}catch(e){_._DumpException(e)}
try{
var Nwe,jm5,rhl,Lcd,YLe;Nwe=function(X){return String.raw.apply(String,[{raw:X}].concat(_.LJ(_.Ab.apply(1,arguments).map(function(H){return H instanceof Array?H.join(""):H}))))};
jm5=function(X){var H=_.Ab.apply(1,arguments),l=H.length;if(!Array.isArray(X)||!Array.isArray(X.raw)||X.length!==X.raw.length||!_.ynt&&X===X.raw||!(_.ynt&&!_.VNz||_.mz(X))||l+1!==X.length)throw new TypeError("aa");return new chN(Object.freeze({strings:Object.freeze(X),args:Object.freeze(H)}))};
rhl=function(){return _.Ab.apply(0,arguments).flat().filter(function(X){return X}).join(";")};
Lcd=function(){return jm5(JhY,rhl.apply(null,_.LJ(_.Ab.apply(0,arguments))))};
YLe=function(X){X==null||X.addEventListener("DOMLoaded",function(){X.goToAndPlay(X.totalFrames-48,!0)})};
_.Y3=function(X){this.__isSoyCss=!0;this.css=Nwe.apply(null,[X.strings].concat(_.LJ(X.args)))};
_.Y3.prototype.toString=function(){return this.css};
var chN=function(){_.Y3.apply(this,arguments)};
_.S(chN,_.Y3);var JhY=_.W8(["",""]);var IC5=_.Z(function(X){var H=void 0,l=function(){return X.data()},b=function(){return!!_.hG(_.wW(l())).optionColor},U=_.C(_.FU(-1,void 0,"m6Iyqc")),K=U.next().value,w=U.next().value,d=function(y){return K()===y},B=function(y){return l().correctAnswerIndex===y},q=function(){return K()!==-1};
U=_.C(_.FU("",void 0,"jvMkLd"));var u=U.next().value,e=U.next().value;return _.F("yoututor-quiz-view-model",{class:_.Qr("learningQuizComponentHost","learningYoututorQuizHost",X.className),style:_.rC({background:function(){return _.hG(_.wW(l())).backgroundColor}})},_.F("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},u),_.F("div",{class:"learningQuizComponentQuizContainer"},_.F("div",{class:"learningQuizComponentQuiz"},_.F("div",{class:"learningQuizComponentQuizContent"},_.F(_.M,{cond:function(){return!!l().aiGeneratedQuizLabel},
then:function(){return _.F("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.F(_.Sj,{text:function(){return l().aiGeneratedQuizLabel}}))}}),_.F("div",{class:"learningQuizComponentQuizHeader"},_.F("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.F("div",{class:"learningYoututorQuizText",
style:_.rC({color:function(){return _.hG(_.wW(l())).primaryTextColor}})},_.F(_.Sj,{text:function(){return l().questionHeaderText}}))))),_.F("div",{role:"group",
class:_.Qr("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.F(_.P$,{each:function(){return l().optionsData||[]}},function(y,V){var p={};
return _.F("button",{class:_.Qr("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(p.learningQuizComponentQuizHover=function(){return!q()},p.learningQuizComponentQuizOptionWithCustomColor=b,p.learningYoututorQuizOptionSelectedCorrectOutline=function(){return q()&&B(V())},p.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return K()!==l().correctAnswerIndex&&d(V())},p.learningQuizComponentQuizIncorrectShake=function(){return K()!==
l().correctAnswerIndex&&d(V())},p)),
"on:click":_.Nq(function(){_.pl(_.lv(),{data:y});if(q())return!1;w(V());e(B(V())?l().correctAnswerAriaLabel||"":l().incorrectAnswerAriaLabel||"");return!1}),
style:_.rC({background:"transparent"}),"aria-description":function(){return q()?B(V())?l().correctAnswerAriaLabel:l().incorrectAnswerAriaLabel:""},
"aria-disabled":q,el:_.xl(function(z){_.Fc(271905,z,H,function(t){H=t})}),
"client-ve-type":271905},_.F("div",{class:"learningQuizComponentQuizOptionContainer"},_.F(_.Sj,{text:y.optionText}),_.F(_.M,{cond:function(){var z=V();return q()&&(d(z)||B(z))},
then:function(){var z={};return _.F(_.Ja,{className:_.Qr("learningYoututorQuizOptionIcon",(z.learningQuizComponentQuizPulse=function(){return K()===l().correctAnswerIndex&&B(V())},z)),
size:24,icon:function(){return B(V())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.F(_.M,{cond:q,
then:function(){return _.F("div",{class:"learningYoututorQuizExplanationContainer"},_.F("div",{class:"learningYoututorQuizExplanationText"},_.F(_.Sj,{text:function(){return l().explanationHeaderText}})),_.F(_.Sj,{text:function(){return l().optionsData[K()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Hh");
IC5.idomCompat=!0;var Ahe=_.Z(function(X){var H=X.thumbsUp,l=X.thumbsDown,b=X.rightAlignThumbs;X=_.C(_.FU(!1,void 0,"OxPsH"));var U=X.next().value,K=X.next().value;X=_.C(_.FU(!1,void 0,"V5vWne"));var w=X.next().value,d=X.next().value;X={};return _.F("div",{class:_.Qr("ytwThumbsUpDownThumbs",(X.ytwThumbsUpDownRightAlign=function(){return b==null?void 0:b()},X))},_.F(_.KL,{data:H,
onToggle:function(B){K(B);w()&&d(!1)},
buttonShapeOverrides:function(){return{toggled:U()}}}),_.F(_.KL,{data:l,
onToggle:function(B){d(B);U()&&K(!1)},
buttonShapeOverrides:function(){return{toggled:w()}}}))},"Ih");
Ahe.idomCompat=!0;var Hre=_.Z(function(X){var H=function(){return X.data().pendingStateEntityKey||""},l=_.Aw(_.kXp,H),b=function(){var d;
if(!(d=X.disabled())){var B;d=!((B=l())==null||!B.isPendingResponse)}return d},U=_.C(_.FU(Lcd(""),void 0,"Q6q6y")),K=U.next().value,w=U.next().value;
_.xy(function(){requestAnimationFrame(function(){var d=X.data().onShowAnimationMs||0;d=d>0?Lcd("--chip-animation-duration: "+d+"ms;"):Lcd("");w(d)})});
return _.F("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:K},_.F(_.P$,{each:function(){return X.data().chipData||[]},
keyBy:"REFERENCE"},function(d){return _.F(Xf$,{data:d,disabled:b,pendingStateKey:H,onError:X.onError})}))},"Kh"),Xf$=_.Z(function(X){var H=_.z7("button"),l=_.C(_.FU(!0,void 0,"baSFEf")),b=l.next().value,U=l.next().value,K=function(){return X.data().text.content},w=function(){return X.data().transparentWhenLoading},d=_.Aa(_.ze.currentPageSubTypeSelector),B=function(){var u;
return(u=_.jJ().resolve(_.c$(_.em)))==null?void 0:_.O$Z(u,d())},q=_.Nq(function(u){var e,y,V,p,z,t,W,G;
return _.h(function(r){switch(r.nextAddress){case 1:u.stopPropagation();if(X.disabled())return r.return();y=String(Math.floor(((e=_.rd())==null?void 0:e.getCurrentTime())||0)*1E3);V="youchat-"+Date.now();p=function(){_.Mq(X.data().onClick||{});var Q=_.z3d(X.data().continuation),v=_.tD({clientMessageId:V,playerOffsetMs:y,pageContext:B()});return new Promise(function(J,Y){_.Mq(Q,{form:{formData:v},commandController:{onSuccess:function(Uy,Cy){J(Cy)},
onServerError:function(Uy,Cy){Y(Cy.error)}}})})};
z=_.x0C(X.pendingStateKey());z(!0);_.pjp("#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");U(!1);_.Ew(r,2);return r.yield(p(),4);case 4:_.Zt(r,3);break;case 2:t=_.Ow(r),(G=(W=X).onError)==null||G.call(W,t);case 3:z(!1),_.m5(r)}})});
return _.F(_.M,{cond:b,then:function(){return _.F("div",{class:"ytwYouChatChipsDataChipWrapper"},_.F("button",{el:H,class:"ytwYouChatChipsDataChip","data-disabled":X.disabled,"data-transparent-loading":w,"on:click":q,tabindex:0},K))}})},"Lh");var l9Z=_.Z(function(X){var H=X.data;var l=X.initiallyExpanded;var b=function(){var q;return(q=H().conversationResourceData)==null?void 0:q.learningGuideData};
X=_.C(_.Gx(function(){var q;return(q=l==null?void 0:l())!=null?q:!1}));
var U=X.next().value,K=X.next().value,w=function(){var q,u=_.f((q=b())==null?void 0:q.expandButton,_.fk);u&&_.pl(_.lv(),{data:u});K(!0)},d=_.uL(function(){var q,u;
return(u=(q=b())==null?void 0:q.sections)!=null?u:[]},void 0,"V7sYqc"),B=_.uL(function(){return d().length>4},void 0,"GFFPnd");
X=_.uL(function(){var q;return!U()&&B()&&(q=b())!=null&&q.expandButton?d().slice(0,4):d()},void 0,"Rbi7Ke");
return _.F("yt-conversation-resource-view-model",{class:_.Qr("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.F(_.l4,{data:X},{expandableMetadataViewModel:_.eOY}),_.F(_.M,{cond:function(){return B()&&!U()},
then:function(){return _.F("div",{id:"showMoreButton"},_.F(_.l4,{data:function(){var q;return(q=b())==null?void 0:q.expandButton}},{buttonViewModel:function(q){return _.F(_.Qk,{data:q.data,
onClick:w})}}))}}))},"Mh");_.D0Y=_.Z(function(X){var H=_.P("web_enable_youchat_ux_changes"),l=function(){var v,J;return((v=X.data().text)==null?void 0:v.content)||((J=X.data().textContent)==null?void 0:J.content)||""},b=function(){var v,J;
return(v=X.data().webData)==null?void 0:(J=v.textResult)==null?void 0:J.content},U=_.jJ().resolve(_.nS),K=_.Jw(),w=function(){return X.data().chatResponseStyle},d=function(){return!X.data().transparentBackground},B=function(){return X.data().rightAlignThumbs},q=function(){return X.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||X.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"||!!X.data().icon},
u=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:q()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:X.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},e=function(){var v,J;
return X.data().webData||((v=X.data().text)==null?void 0:v.content)||X.data().videoResultsData||X.data().conversationResourceViewModel||X.data().quiz||X.data().yoututorQuiz||X.data().richContent||X.data().content||((J=X.data().textContent)==null?void 0:J.content)},y=function(){return!!X.data().sectionHeader||e()},V=function(){return X.data().hideIcon||w()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||w()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?!1:y()},p=function(){var v;
return(v=X.data().videoResultsData)==null?void 0:v.videoShelf},z=function(){var v;
return(v=X.data().webData)==null?void 0:v.sourcesShelf},t=function(){return w()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||w()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:X.data().thumbsDownViewModel&&X.data().thumbsUpViewModel},W=function(){return _.f(X.data().thumbsUpViewModel,_.SR)},G=function(){return _.f(X.data().thumbsDownViewModel,_.SR)},r=function(){return q()};
_.xy(function(){requestAnimationFrame(function(){var v;(v=X.shouldAnimateIcon)!=null&&v.call(X)&&YLe(K.lottieEl)})});
var Q={};return _.F("you-chat-item-view-model",{class:_.Qr("ytwYouChatItemViewModelYouChatItemViewModel",(Q.ytwYouChatItemViewModelColumnLayout=r,Q.ytwYouChatItemViewModelYouChatItemViewModelNoZIndex=H,Q)),style:_.rC({"min-height":function(){var v,J;return _.Zix((v=X.containerHeight)==null?void 0:v.call(X),(J=X.isLastItem)==null?void 0:J.call(X))}}),
"data-target-id":function(){return X.data().id||""}},_.F(_.M,{cond:function(){return X.data().removeIcon||q()&&!V()?!1:y()},
then:function(){return _.F("div",{"aria-hidden":"true"},_.F(_.M,{cond:function(){return X.data().icon},
then:function(v){var J={};return _.F(_.Dp,{data:v,className:_.Qr("ytwYouChatItemViewModelIcon",(J.ytwYouChatItemViewModelIconVertical=r,J)),alt:""})},
else:function(){var v={};return _.F(_.Jx,{className:_.Qr("ytwYouChatItemViewModelIcon",(v.ytwYouChatItemViewModelRtl=U==="rtl",v.ytwYouChatItemViewModelHidden=function(){return!V()},v)),
animationName:"YOUCHAT_ICON",data:u,animationRef:K})}}))}}),_.F(_.M,{cond:y,
then:function(){var v={};return _.F("div",{class:_.Qr("ytwYouChatItemViewModelHost",(v.ytwYouChatItemViewModelHostNoPadding=function(){return!!X.data().sectionHeader&&!e()},v.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return w()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},v.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return w()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},v.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return w()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
v.ytwYouChatItemViewModelGradientBackground=d,v.ytwYouChatItemViewModelHostAlignStart=function(){return!q()},v.ytwYouChatItemViewModelHostDefaultFlex=function(){return!q()},v)),
role:"alert"},_.F(_.M,{cond:l,then:function(J){return _.F(_.gm,{text:J,wrapCodeBlocks:!0})}}),_.F(_.l4,{data:function(){return X.data().sectionHeader}},{sectionHeaderViewModel:function(J){var Y={};
return _.F(_.on,{data:J.data,className:_.Qr("ytwYouChatItemViewModelSectionHeader",(Y.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!X.data().sectionHeader&&!e()},Y)),
forceSmallLayout:!0})}}),_.F(_.M,{cond:b,
then:function(J){return _.F(_.gm,{text:J,wrapCodeBlocks:!0})}}),_.F(_.M,{cond:p,
then:function(){return _.F("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.F(_.l4,{data:function(){var J;return(J=X.data().videoResultsData)==null?void 0:J.videoShelf}},{horizontalShelfViewModel:function(J){return _.F(_.W3,{data:J.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.F(_.M,{cond:z,
then:function(){return _.F("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.F(_.l4,{data:function(){var J;return(J=X.data().webData)==null?void 0:J.sourcesShelf}},{horizontalShelfViewModel:function(J){return _.F(_.W3,{data:J.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.F(_.l4,{data:function(){return X.data().conversationResourceViewModel}},{conversationResourceViewModel:l9Z}),_.F(_.l4,{data:function(){return X.data().quiz}},{learningJourneyQuizViewModel:_.phd}),_.F(_.l4,{data:function(){return X.data().yoututorQuiz}},{yoututorQuizViewModel:IC5}),_.F(_.l4,{data:function(){return X.data().richContent}},{cardViewModel:_.aCe,
linearLayoutViewModel:_.Dl}),_.F(_.l4,{data:function(){return X.data().content}},{cardViewModel:_.aCe,
yoututorQuizViewModel:IC5,linearLayoutViewModel:_.Dl,learningJourneyQuizViewModel:_.phd,conversationResourceViewModel:l9Z}),_.F(_.M,{cond:t,then:function(){return _.F(Ahe,{thumbsUp:W,thumbsDown:G,rightAlignThumbs:B})}}))}}),_.F(_.M,{cond:function(){return X.data().chipsData},
then:function(v){return _.F(Hre,{data:v,disabled:X.pending,onError:X.onError})}}))},"Oh");
_.D0Y.idomCompat={callbacks:{onError:!0,onSend:!0}};
}catch(e){_._DumpException(e)}
try{
_.PE("hU04te");
_.UvQ=_.Z(function(X){return _.F("yt-feedback-prompt-view-model",{class:_.Qr("ytFeedbackPromptViewModelHost",X.className)},_.F(_.M,{cond:function(){return X.data().text},
then:function(H){return _.F(_.Sj,{text:H,className:"ytFeedbackPromptViewModelPrompt"})}}),_.F(_.l4,{data:function(){return X.data().likeButton}},{likeButtonViewModel:function(H){return _.F(_.y7,{data:H.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.F(_.l4,{data:function(){return X.data().dislikeButton}},{dislikeButtonViewModel:_.eb}))},"Ph");
_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("NSzT5");
var AwA=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield(_.jJ().resolve(_.my),2);(X=H.yieldResult)&&X.pauseVideo();_.m5(H)})};var X6u=_.W8(["https://portraits.google.com"]),HS$=_.W8(["https://portraits.google.com/gallery?ytChannelId=","&mode=embed"]),lI2=_.W8(["https://portraits.google.com/gallery?ytChannelId=","&mode=linkout"]),o$A=_.z8(X6u),bSz=_.Z(function(X){function H(e){var y;if(e=(y=e.detail)==null?void 0:y.endpoint){y=_.f(e,_.YM);var V;y&&((V=y.browseId)==null?0:V.startsWith("UC"))&&y.browseId!==U()&&(_.gK("creator-chatbots-panel-persistent"),q.removeEventListener("yt-navigate-start",H))}}
var l=X.usePlayerHeight;var b=X.isPersistentPanel;var U=X.creatorChannelId;var K=_.Aa(_.p7N),w=_.xl(function(e){var y=U();y=_.z8(HS$,y);_.CJ(e,1,y)}),d=function(){var e,y,V;
return _.h(function(p){return p.nextAddress==1?p.yield(_.jJ().resolve(_.my),2):(e=p.yieldResult)?p.return({video_id:(V=(y=e.getVideoData())==null?void 0:y.video_id)!=null?V:"",timestamp_sec:e.getCurrentTime().toString()}):p.return({})})};
_.Np("message",function(e){var y,V,p,z,t,W,G,r,Q,v;return _.h(function(J){if(J.nextAddress==1){if(e.origin!==o$A.toString())return console.warn("Received message from untrusted origin:",e.origin),J.return();y=e.data;if(typeof y!=="object"||y===null||!y.action)return J.return();if(y.action==="pause")return J.yield(AwA(),0);if(y.action!=="getYouTubeContext")return J.jumpTo(0);p=((V=b)==null?0:V())?"creator-chatbots-panel-persistent":"creator-chatbots-panel";z=document.getElementById(p);if(((t=b)==null?
0:t())&&z&&z.style.display!=="none"&&e.source)return(W=e.source)==null||W.postMessage(JSON.stringify({youTubeContext:{}}),{targetOrigin:e.origin}),J.jumpTo(0);if(!e.source)return J.jumpTo(0);G=e.source;r=G.postMessage;Q=JSON;v=Q.stringify;return J.yield(d(),8)}r.call(G,v.call(Q,{youTubeContext:J.yieldResult}),{targetOrigin:e.origin});return J.jumpTo(0)})});
var B=function(){var e,y;(e=w.value)==null||(y=e.contentWindow)==null||y.postMessage("ep_closed",o$A.toString())};
_.Np("yt-page-type-changed",function(){if(b==null?0:b()){var e;((e=_.jJ().resolve(_.gd).getCurrentPage())==null?void 0:e.pageSubtype)!=="channels"&&(e=document.getElementById("creator-chatbots-panel-persistent"))&&(e.style.display="none")}else _.jJ().resolve(_.gd).isOnWatch()||document.getElementById("creator-chatbots-panel")&&_.gK("creator-chatbots-panel")});
var q=_.jJ().resolve(_.Lg),u;(u=q)==null||u.addEventListener("yt-navigate-start",H);_.xy(function(){var e=(b==null?0:b())?"creator-chatbots-panel-persistent":"creator-chatbots-panel",y=document.getElementById(e);if(y){var V=new MutationObserver(function(p){p.forEach(function(z){z.type==="attributes"&&z.attributeName==="style"&&y.style.display==="none"&&B()})});
V.observe(y,{attributes:!0});_.E2(function(){V.disconnect()})}});
_.E2(function(){var e;(e=q)==null||e.removeEventListener("yt-navigate-start",H)});
X={};return _.F("div",{class:_.Qr("ytprotoCreatorChatbotsAppHost",(X.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return K()},X)),
style:_.rC({height:function(){return(l==null?0:l())?"var(--ytd-watch-flexy-panel-max-height)":"100%"},
"max-height":function(){return(b==null?0:b())?"800px":void 0}})},_.F(_.TwZ,{id:function(){return(b==null?0:b())?"creator-chatbots-panel-persistent":"creator-chatbots-panel"},
preventDefault:function(){return!(b==null?0:b())},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){b!=null&&b()||(B(),_.gK("creator-chatbots-panel"))},
header:function(){return _.F("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.F("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.F(_.Pm,{data:{text:"AI experiment",type:0,accessibilityText:"AI experiment"}}))},
HeaderButton:function(){return _.F(_.av,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Open in new tab",onClick:function(){var e=_.Jb("https://portraits.google.com/gallery?ytChannelId="+U());e&&_.wr(window,e,"_blank");B()}})},
content:function(){return _.F("iframe",{el:w,class:"ytprotoCreatorChatbotsAppLabsIframe",allow:"microphone; clipboard-read; clipboard-write self "+o$A.toString()})}}))},"Zo"),Uh2=_.Z(function(X){var H=X.creatorChannelId;
var l=_.Aa(_.p7N),b=_.xl(function(K){var w=H();w=_.z8(lI2,w);_.CJ(K,1,w)}),U=_.H5(_.lv(),{veType:281629});
X={};return _.F("div",{class:_.Qr("ytprotoCreatorChatbotsAppHost",(X.ytprotoCreatorChatbotsAppHostSingleColumn=function(){return l()},X)),
style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.F(_.TwZ,{id:"creator-chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.F("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.F("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to Creator's Portrait"),_.F(_.Pm,{data:{text:"AI experiment",
type:0}}))},
content:function(){return _.F("iframe",{el:b,class:"ytprotoCreatorChatbotsAppLabsIframe"})},
Footer:function(){return _.F("div",{class:"ytprotoCreatorChatbotsAppPanelFooter"},_.F(_.av,{iconName:"OPEN_IN_NEW",text:"Chat now",buttonSize:"large",backgroundColor:"#1E6350",iconSize:24,className:"ytprotoCreatorChatbotsAppChatNowButton",iconClassName:"ytprotoCreatorChatbotsAppLinkoutIcon",onClick:function(){var K=_.Jb("https://portraits.google.com/gallery?ytChannelId="+H());K&&_.wr(window,K,"_blank");AwA();U&&_.pl(_.lv(),{visualElement:U})},
"client-ve-type":281629}),_.F("div",null,"This will take you to Google Portraits"))}}))},"$o");var $h9=_.W8(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]),KCr=_.z8($h9);_.wzt=function(X){X=X===void 0?"":X;_.gK("creator-chatbots-panel");_.Wo(KCr);_.G_("ytd-watch-metadata #top-level-buttons-computed",function(){document.getElementById("creator-chatbots-panel")||_.Qml("creator-chatbots-panel",function(){return _.F(bSz,{usePlayerHeight:!0,creatorChannelId:X})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.CFz=function(X){X=X===void 0?"":X;_.gK("creator-chatbots-panel");_.G_("ytd-watch-metadata #top-level-buttons-computed",function(){_.Qml("creator-chatbots-panel",function(){return _.F(Uh2,{creatorChannelId:X})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")})};
_.RCq=function(X,H,l){X=X===void 0?"":X;H=H===void 0?!1:H;l=l===void 0?"CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_UNKNOWN":l;var b,U;return _.h(function(K){if(l==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"){if(b=document.getElementById("creator-chatbots-panel"))b.style.display="block";return K.jumpTo(0)}U=document.getElementById("creator-chatbots-panel-persistent");return!H||U?(!H&&U&&U.style.display==="none"&&(U.style.display="block"),K.jumpTo(0)):K.yield(new Promise(function(w){_.G_("ytd-app",
function(d){_.Eg({element:d,location:"appendChild",id:"creator-chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.F(bSz,{isPersistentPanel:!0,creatorChannelId:X})});
w()})}),0)})};
_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("b3MoKf");

_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("f8YPh");

_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("QiZf0e");

_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("mcjWUc");

_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("m9Vw4");

_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("dIvQ6c");

_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("JoU6vf");

_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("HwlOhd");

_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("n0DHg");

_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("U9vrqd");

_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("dpUCFd");

_.f8();
}catch(e){_._DumpException(e)}
try{
_.PE("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 oEN,ZT,brl,U9$,$9e,KIA,Re5,Cgd,wfU,d9d,heC,FIA,iq,BVy,qeZ,sKN,MBa,uQ5,eeC,yBe,VBe,Pgx,f9N,pfC,SeA,zex,nEa,x9e,D9a,WIl,EEp,gEa,a9Y,Zr$,iry,vE5,vo,m9x,QKx,TV5,Og,NVA,JBd,LIC,YeN,I9U,XiN,HNp,UGC,KeC,bNy,kwa,R0Z,CTa,wiU,m2,Qj,dGd,h0p,BZ5,qcy,M7d,u6$,e0C,y$e,V7$,PTx,fvN,pip,T_,Scd,nuA,kPY,xGe,DG$,t7$,Eud,guC,GPl,avp,vul,ONy,TZe,NZN,jpN,r$x,Ley,Nc,YcA,A$Z,XKU,HAd,oBY,UJZ,$JN,KSA,R4Z,CH5,wKe,dJy,h4e,FSU,BcA,qf$,sOl,MFx,uSd,e4a,yYA,VF$,pKY,Sfe,z4a,nBC,kux,xJZ,DJa,tFx,EBC,gBY,Gup,ail,ZA5,iAa,vBU,OAe,mJZ,
rK,QOx,TcN,Ncl,cYZ,jON,rYY,JD,JYZ,LSA,YfN,IiZ,AYx,XFd,HTp,l8d,oM5,bTa,UoZ,$od,LE,K1y,RPN,C5Y,wFp,doZ,hPe,F1a,BRZ,q9A,sH5,M0A,ueC,ePZ,y05,V0y,P5x,f8C,pFN,zPy,xo$,DoU,t0$,W1N,EMl,gMx,GcC,a8U,ZTy,iTx,vM$,OTZ,moC,Iv,AD,TRd,NRA,c0Z,jHN,r0U,J0C,L1Z,Y9$,I8e,A0e,ohZ,hKY,s6U,M4$,P$C,pMx,V4Z,eKl,t4l,ghp,OeZ,us$,acC,Whp,fcd,Q6$,c2y,J2a,j6x,r2x,Lhd,Xcl,IcN,Hcd,lVa,A2Y,Yie,oDZ,o8,bP,C9x,UM,wcC,dRe,$a,h_x,Frl,BTd,yFp,VLl,fVl,pcY,Sql,z_d,Ka,nDe,kx5,xR$,R8,Ca,tLx,Wr5,wl,gDx,Gxd,dl,ZcY,hU,Fd,B7,qB,OcZ,vDA,mRY,QiU,
sM,TTY,MB,NTd,uP,ep,AFp,y1,X55,Hq5,lpU,V1,Ro$,bqy,KaU,Cvx,UqN,dqd,$qy,BCA,hoZ,Fal,ql5,Mw5,s1Y,Vwl,Sll,Sp,zs,fpN,nlA,p5a,zoy,ka,Da,tU,W7,Lax,vlY,AaU,XS5,HlC,lH5,blp,gl5,G0e,Gs,Zq$,EM,gl,iqd,oja,Yla,apx,Za,sqy,u8Z,eid,M2$,hiY,V2x,pS$,wSy,Riy,CEl,njA,dn$,OM,fHZ,Fy5,PEd,qme,KyY,Bdd,xne,ilN,vja,Oll,mn5,Qql,Tde,cwp,jp,rwC,JwZ,YmC,IHN,Awy,X6l,HSC,lIZ,o$y,bS$,Uhe,rl,$h5,KCA,Rhl,C4a,ssC,JU,qsy,dhp,Bjy,FCZ,hhZ,w6d,MuC,uAd,ehZ,y5d,La,VuZ,P4l,zhN,I8,p6l,Xu,Ya,AU,Ssp,fId,n$l,kex,xhZ,Dhx,tuA,WCA,g$$,GeU,aIp,ZSZ,
iSN,v$5,OSa,mha,Qs$,TjC,c5p,jsp,J5Z,IIZ,A5x,Xxd,lsd,bGC,$fN,K9Y,RZ5,CDY,dfU,hZY,F9y,BWe,qFZ,sBx,Mgl,eZd,yGC,fsa,SFA,nql,pxZ,VgZ,PDZ,tg5,Df$,krp,W9p,xf$,Eq5,iGe,ZGp,GrA,asp,H2,vqd,mf$,QBY,TWU,JGx,L9x,YFy,IsY,AG5,X8U,H9C,lFe,oix,b9U,UVC,$Vl,Kie,REN,Cpl,w8C,dV$,hE$,Fie,Bka,qJU,sJ5,MYl,uk5,yv$,VYx,PpA,fFZ,p8a,SJp,zEZ,nid,koY,xVN,Wip,gid,aFZ,Z9$,i9x,viY,DVZ,tYN,QJa,Tka,Nk$,cv5,jJp,rv5,Jvp,Liy,YJZ,IFa,Ave,XC$,lUY,HjN,bjY,U7$,KqY,RGy,wCN,d7x,Uk,qCY,sVp,u0d,eGx,V55,yC5,pCZ,Pel,fUZ,SCy,zGp,ng5,kbd,x7d,D7Z,
t5Z,Wqx,EgZ,ggA,GbN,aUl,ijC,Zj5,vga,QV5,TJZ,NJN,$x,cC$,jVA,rC$,JC5,LqC,YCa,IUa,ACy,X0d,HxY,lOl,bx$,UON,$Op,KLp,dOe,FLy,B1U,s4d,qQe,MHp,uKN,eId,yfd,PKU,fOU,p0Z,SQl,zIZ,noY,kaN,xON,DOZ,tH5,WLY,aOA,Zxe,go5,Gay,EoZ,ixY,mOd,voe,OxZ,N1Z,Q4Y,T1p,cfC,j4p,rfx,JfZ,YQe,IOa,Af$,HuZ,lNx,bue,$Qx,RRY,wRl,hRe,BBd,suC,uEa,V1y,fNU,pRd,S$5,n1p,zRU,xQa,DQl,t1y,Wx5,R7,E1e,g1A,GjA,r8d,LxZ,Y$C,H5x,dH,ldZ,oPe,b5d,$SC,US5,KTZ,Rvp,CZ5,wtZ,dSd,XMN,hvY,FTd,BzN,CiZ,qdC,sMU,Iv5,MzN,uay,evd,yPe,Vz$,PZ5;
oEN=function(){switch(_.Zqm()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
ZT=function(X){if(!X)return"browse";var H=X.page,l=X.url,b,U,K,w=(b=X.response)==null?void 0:(U=b.responseContext)==null?void 0:(K=U.webResponseContextExtensionData)==null?void 0:K.pageTheme;if(w)H=w.toLowerCase().replace(/_/g,"-");else if(H!=="watch"&&H!=="learning_journey_watch"){var d,B;if((H==="browse"||H==="settings")&&((d=X.response)==null?0:(B=d.sidebar)==null?0:B.settingsSidebarRenderer))H="WEB_PAGE_TYPE_SETTINGS";else{var q,u;H==="browse"&&((q=X.response)==null?0:(u=q.metadata)==null?0:u.channelMetadataRenderer)?
H="channel":l&&(H=_.Iwb(l)||H)}}return H};
brl=function(){return new Promise(function(X){var H=window;H.attmp!==void 0?X(H.attmp):(H.attmq===void 0&&(H.attmq=[]),H.attmq.push(function(l){X(l)}))})};
U9$=function(){var X=_.ij("yt.aba.att");return X?X:_.Uo.instance!==void 0?_.Uo.instance.ydX.bind(_.Uo.instance):null};
$9e=function(X,H){var l,b,U;return _.h(function(K){if(K.nextAddress==1){if(!_.P("attmusi")||!_.P("attmusi_ue"))return K.jumpTo(2);l=window;return l.attmp!==void 0?K.return(l.attmp.s(X,H,6E4)):K.yield(brl(),3)}return K.nextAddress!=2?(b=K.yieldResult,K.return(b.s(X,H,6E4))):(U=U9$())?K.return(U(X,H,6E4)):K.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
KIA=function(X,H,l,b,U){H=H===void 0?[]:H;U=U?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:U}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Zi(X),dialogMessages:H.map(function(K){return _.Zi(K)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Zi(l),serviceEndpoint:U}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Zi(b)}}}}}};
Re5=function(X,H,l,b){l||(X?b&&(b.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||b.WINDOW_SIZE_CHANGED&&(H.width!==window.innerWidth||H.height!==window.innerHeight)||b.SAFARI_ABORTED_BY_NEW_TRANSITION&&X instanceof DOMException&&X.name==="AbortError"&&X.message.includes("Old view transition aborted by new view transition"))||_.n2(X):_.n2(Error("Aj")))};
Cgd=function(X,H){H=H===void 0?{}:H;var l,b,U,K,w,d,B,q,u,e,y,V,p;return _.h(function(z){switch(z.nextAddress){case 1:l=H;b=l.shouldWrap===void 0?!0:l.shouldWrap;U=l.skipTransitionTimeoutMs===void 0?300:l.skipTransitionTimeoutMs;K=l.beforeTransition;w=l.afterTransition;if(!b||!document.startViewTransition||document.visibilityState==="hidden")return z.return(X());d={width:window.innerWidth,height:window.innerHeight};B=!1;(q=K)==null||q();_.Ew(z,2);u=document.startViewTransition(X);e=setTimeout(function(){u.skipTransition();
B=!0},U);
return z.yield(u.ready,4);case 4:return clearTimeout(e),z.yield(u.finished,5);case 5:clearTimeout(e);(y=w)==null||y();_.Zt(z,0);break;case 2:V=_.Ow(z),(p=w)==null||p(),Re5(V,d,B,H.ignoredErrors),_.m5(z)}})};
wfU=function(X,H,l){l=l===void 0?!1:l;var b=_.HW(),U=!!_.D7().queueProxy,K,w,d;X=X==null?void 0:(K=X.response)==null?void 0:(w=K.currentVideoEndpoint)==null?void 0:(d=w.watchEndpoint)==null?void 0:d.playlistId;if((U||X)&&!_.P("web_watch_disable_playlist_auto_miniplayer"))return l&&(b.playlistWatchPageActivation=!0),!0;switch(ZT(H)){case "yts-products":return l&&(b.productDetailsPageActivation=!0),!0;case "mini_app":return l&&(b.miniAppPageActivation=!0),!0;case "playables":return l&&(b.playablesDestPageActivation=
!0),!0;case "companion-canvas":return l&&(b.companionCanvasActivation=!0),!0;default:return!1}};
d9d=function(X){X=_.KmL(X);X.length>0&&X[0].focus()};
heC=function(X,H,l){for(var b=typeof X==="string"?X.split(""):X,U=X.length-1;U>=0;--U)U in b&&H.call(l,b[U],U,X)};
FIA=function(X,H,l){for(var b=X.length,U=typeof X==="string"?X.split(""):X,K=0;K<b;K++)if(K in U&&H.call(l,U[K],K,X))return K;return-1};
iq=function(X,H,l){H=FIA(X,H,l);return H<0?null:typeof X==="string"?X.charAt(H):X[H]};
BVy=function(X,H){H=FIA(X,H);H>=0&&_.tlL(X,H)};
qeZ=function(X){return Array.prototype.concat.apply([],arguments)};
sKN=function(X){var H=void 0;H!=null||(H=_.Bp?1024:0);if(!_.Kd(X))throw _.lF("uint64");var l=typeof X;switch(H){case 512:switch(l){case "string":return _.mvZ(X);case "bigint":return String((0,_.pd)(64,X));default:return _.vQk(X)}case 1024:switch(l){case "string":return _.Q_L(X);case "bigint":return _.Z6((0,_.pd)(64,X));default:return _.O_8(X)}case 0:switch(l){case "string":return _.mvZ(X);case "bigint":return _.Z6((0,_.pd)(64,X));default:return _.i_K(X)}default:return _.Hp(H,"Unknown format requested type for int64")}};
MBa=function(X,H,l){if(H)return _.zZ(X);var b;return(b=_.DA(X))!=null?b:l?"":void 0};
uQ5=function(X){X!=null&&(X=X.JSC$9130_value_||"",X=typeof X==="string"?X:new Uint8Array(X));return X};
eeC=function(X,H){var l=_.zny(H);l!=="javascript:"&&l!=="data:"&&X.setAttribute("href",H)};
yBe=function(X,H,l){return Math.abs(X-H)<=(l||1E-6)};
VBe=function(X,H){var l=[];for(H=H||0;H<X.length;H+=2)_.H88(X[H],X[H+1],l);return l.join("&")};
Pgx=function(X,H){var l=arguments.length==2?VBe(arguments[1],0):VBe(arguments,1);return _.XEK(X,l)};
f9N=function(X,H){if(/-[a-z]/.test(H))return null;if(_.DFF&&X.dataset){if(_.yyb()&&!(H in X.dataset))return null;X=X.dataset[H];return X===void 0?null:X}return X.getAttribute("data-"+_.YE(H))};
pfC=function(){var X=_.Dt&&_.el(_.EEz,10)>=0,H;if(H=_.xZ9)H=_.el(_.WIC,10)>=0;var l=_.IJ&&_.el(_.EEz,85)>=0;return _.Hf||X||H||l};
SeA=function(X){var H=_.eB_(X);return H&&pfC()?-X.scrollLeft:H&&_.GB(X,"overflowX")!="visible"?X.scrollWidth-X.clientWidth-X.scrollLeft:X.scrollLeft};
zex=function(X,H){H=Math.max(H,0);_.eB_(X)?pfC()?X.scrollLeft=-H:X.scrollLeft=X.scrollWidth-H-X.clientWidth:X.scrollLeft=H};
nEa=function(){var X=window.location.hash;X.charAt(0)==="#"&&(X=X.charAt(1)==="!"?X.substring(2):X.substring(1));return _.mu(X)};
x9e=function(){var X=kwa;_.ij("yt.ads.biscotti.getId_")||_.cQ("yt.ads.biscotti.getId_",X)};
D9a=function(X){_.cQ("yt.ads.biscotti.lastId_",X)};
WIl=function(){var X={};for(_.PQ=new tBY(X.handleError===void 0?_.k2:X.handleError,X.logEvent===void 0?_.Sh:X.logEvent);_.ft.length>0;)switch(X=_.ft.shift(),X.type){case "ERROR":_.PQ.logError(X.payload);break;case "EVENT":_.PQ.logEvent(X.eventType,X.payload)}};
EEp=function(X,H,l){return _.OTK(function(b){return l?b.userIdentifier!==void 0&&!X.includes(b.userIdentifier)&&l.includes(b.publicName):b.userIdentifier!==void 0&&!X.includes(b.userIdentifier)},H)};
gEa=function(X){var H,l;return _.h(function(b){if(b.nextAddress==1)return H=_.FB("YtIdbMeta hasAnyMeta other"),b.yield(_.OTK(function(U){return U.userIdentifier!==void 0&&U.userIdentifier!==H},X),2);
l=b.yieldResult;return b.return(l.length>0)})};
a9Y=function(X,H){Gwy||(Gwy=_.Ss.addLowPriorityJob(function(){var l,b,U,K,w;return _.h(function(d){switch(d.nextAddress){case 1:return d.yield(_.jv(),2);case 2:l=d.yieldResult;if(!l)return d.return();b=!0;_.Ew(d,3);return d.yield(EEp(X,l,H),5);case 5:U=d.yieldResult;if(!U.length){b=!1;d.jumpTo(6);break}K=U[0];return d.yield(_.i0(K.actualName),7);case 7:return d.yield(_.mP(K.actualName,l),6);case 6:_.Zt(d,4);break;case 3:w=_.Ow(d),_.pt(w),b=!1;case 4:_.Ss.cancelJob(Gwy),Gwy=0,b&&a9Y(X,H),_.m5(d)}})}))};
Zr$=function(){var X;return _.h(function(H){return H.nextAddress==1?H.yield(_.jv(),2):(X=H.yieldResult)?H.return(gEa(X)):H.return(!1)})};
iry=function(X){var H=100;H=H===void 0?500:H;var l,b,U,K,w,d;return _.h(function(B){return B.nextAddress==1?(l=_.gx("INNERTUBE_CONTEXT_CLIENT_NAME",0),b=[l,(0,_.Jl)()-2592E6],U=[l,(0,_.Jl)()],K=IDBKeyRange.bound(b,U),B.yield(_.hoK(X),2)):B.nextAddress!=3?(w=B.yieldResult,d=[],B.yield(_.OZ(w,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(q){d.length=0;return _.Lt(q.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:K,direction:"prev"},function(u){if(u.getValue()&&d.length<
H)return d.push(u.getValue()),u.delete().then(function(){return u.continue()})})}),3)):B.return(d)})};
vE5=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield(_.jv(),2);X=H.yieldResult;if(!X||!_.BQ()&&!_.P("nwl_init_require_datasync_id_killswitch")||!_.twz())return H.jumpTo(0);_.Ely=!0;_.Way.isNwlInitialized=_.Ely;return H.yield(_.pFQ().awaitInitialization(),0)})};
vo=function(X,H){_.Yly[X]=!0;var l=_.LU();l&&l.publish.apply(l,arguments);_.Yly[X]=!1};
m9x=function(){if(_.kxO()&&!Orx){var X=function(l){l=l.data;if(l.op==="serializedGelBatch"){var b=_.Ymk.get(l.key);b&&(_.Awl(l.serializedBatch,b.client,b.resolve,b.networklessOptions,b.isIsolated,b.useVSSEndpoint,b.dangerousLogToVisitorSession,b.requestsOutstanding),_.Ymk.delete(l.key))}},H=_.nDZ();
H&&(H.addEventListener("message",X),H.onerror=function(){_.Ymk.clear()});
Orx=!0}};
QKx=function(){this.relativeTimeStart_=_.QC()};
TV5=function(X,H){X!=null&&this.append.apply(this,arguments)};
Og=function(){for(var X=Array(36),H=0,l,b=0;b<36;b++)b==8||b==13||b==18||b==23?X[b]="-":b==14?X[b]="4":(H<=2&&(H=33554432+Math.random()*16777216|0),l=H&15,H>>=4,X[b]=_.QuZ[b==19?l&3|8:l]);return X.join("")};
NVA=function(){return _.e7("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
JBd=function(){var X=_.Bb.clone(cBZ),H;return(new _.UA(function(l,b){X.onSuccess=function(U){_.iAy(U)?l(new jKA(U)):b(new rBY("Request failed, status="+_.oF(U),"net.badstatus",U))};
X.onError=function(U){b(new rBY("Unknown request error","net.unknown",U))};
X.onTimeout=function(U){b(new rBY("Request timed out","net.timeout",U))};
H=_.Kt("//googleads.g.doubleclick.net/pagead/id",X)})).thenCatch(function(l){if(l instanceof _.nG){var b;
(b=H)==null||b.abort()}return _.Cq(l)})};
LIC=function(X,H,l){l=l===void 0?!1:l;var b,U,K,w,d;return _.h(function(B){switch(B.nextAddress){case 1:_.dL("SOCS",X,34128E3,"youtube.com",!0);if(_.Yi)return U=fetch(H,{method:"POST",mode:_.S7(H),credentials:_.pN(H),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),K=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.S7("/upgrade_visitor_cookie?eom=1"),credentials:_.pN("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),B.yield(Promise.all([U,K]).then(function(q){return q[1]}),5);
fetch(H,{method:"POST",mode:_.S7(H),credentials:_.pN(H),cache:"no-store",headers:{"Content-Type":"text/plain"}});return B.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.S7("/upgrade_visitor_cookie?eom=1"),credentials:_.pN("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:b=B.yieldResult;B.jumpTo(3);break;case 5:b=w=B.yieldResult;case 3:if(!b.ok)throw Error("vf");return B.yield(b.text(),7);case 7:d=B.yieldResult,
!d.includes('"state_switch":true')&&!l||d.includes("skip_reload_for_test")||window.location.reload(),_.m5(B)}})};
YeN=function(X){return _.h(function(H){return H.nextAddress==1?H.yield(LIC(X.socsCookie,X.savePreferenceUrl,!0),2):H.return()})};
I9U=function(X){return _.h(function(H){return H.nextAddress==1?H.yield(LIC(X.socsCookie,X.savePreferenceUrl),2):H.return()})};
XiN=function(X){a:{var H="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(H="EMBEDDED_PLAYER_MODE_PFL");var l=X.raw_embedded_player_response;if(!l&&(X=X.embedded_player_response))try{l=JSON.parse(X)}catch(U){break a}if(l)b:{X=ABZ;for(var b in X)if(X[b]==l.embeddedPlayerMode){H=X[b];break b}}}return H==="EMBEDDED_PLAYER_MODE_PFL"};
HNp=function(){if(_.P("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.Tgy())return Error("xf");var X=_.gx("PLAYER_VARS",{});if(_.Bb.get(X,"privembed",!1)=="1")return Error("yf");if(XiN(X))return Error("zf")};
UGC=function(X){X=X.xhr.responseText;if(!_.Ky(X,")]}'"))throw new lva;X=JSON.parse(X.substr(4));if((X.type||1)>1)throw new lva;X=X.id;D9a(X);ouU=_.Dz(X);bNy(18E5,2);return X};
KeC=function(X,H){H=new $GA(H);D9a("");ouU=_.MK9(H);X>0&&bNy(12E4,X-1);throw H;};
bNy=function(X,H){_.b0(function(){JBd().then(UGC,function(l){return KeC(H,l)}).thenCatch(_.FK)},X)};
kwa=function(){var X=HNp();if(X!==void 0)return _.Cq(X);ouU||(ouU=JBd().then(UGC).thenCatch(function(H){return KeC(2,H)}));
return ouU};
R0Z=function(){var X=document;return iq(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(H){return"on"+H.toLowerCase()in X})};
CTa=function(X){X.addEventListener("click",function(H){var l=H.target;l&&l.getAttribute("href")&&(l=l.getAttribute("href"),_.wr(window,l,"_blank"),H.preventDefault(),H.stopImmediatePropagation())})};
wiU=function(){var X=_.Uf();X.info||(X.info={});return X.info};
m2=function(){return(_.P("csi_use_time_origin")||_.P("csi_use_time_origin_tvhtml5"))&&_.wc.timeOrigin?Math.floor(_.wc.timeOrigin):_.wc.timing.navigationStart};
Qj=function(X){return Math.round(m2()+X)};
dGd=function(){var X;if(_.P("csi_use_performance_navigation_timing")){var H,l,b,U=_.wc==null?void 0:(X=_.wc.getEntriesByType)==null?void 0:(H=X.call(_.wc,"navigation"))==null?void 0:(l=H[0])==null?void 0:(b=l.toJSON)==null?void 0:b.call(l);U?(U.requestStart=Qj(U.requestStart),U.responseEnd=Qj(U.responseEnd),U.redirectStart=Qj(U.redirectStart),U.redirectEnd=Qj(U.redirectEnd),U.domainLookupEnd=Qj(U.domainLookupEnd),U.connectStart=Qj(U.connectStart),U.connectEnd=Qj(U.connectEnd),U.responseStart=Qj(U.responseStart),
U.secureConnectionStart=Qj(U.secureConnectionStart),U.domainLookupStart=Qj(U.domainLookupStart),U.isPerformanceNavigationTiming=!0,X=U):X=_.wc.timing}else X=_.P("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.wc.timing)):_.wc.timing;return X};
h0p=function(){if(_.wc.getEntriesByType){var X=_.wc.getEntriesByType("paint");if(X=iq(X,function(l){return l.name==="first-paint"}))return Qj(X.startTime)}var H;
_.P("csi_use_performance_navigation_timing")?H=_.wc.getEntriesByType("first-paint")[0].startTime:H=_.wc.timing.msFirstPaint;return H?Math.max(0,H):0};
BZ5=function(){var X=window.location.protocol,H=_.wc.getEntriesByType("resource");H=_.jY(H,function(l){return l.name.indexOf(X+"//fonts.gstatic.com/s/")===0});
(H=Fex(H,function(l,b){return b.duration>l.duration?b:l}))&&H.startTime>0&&H.responseEnd>0&&(_.RO("wffs",Qj(H.startTime)),_.RO("wffe",Qj(H.responseEnd)))};
qcy=function(X,H){X=document.querySelector(X);if(!X)return!1;var l="",b=X.nodeName;b==="SCRIPT"?(l=X.src,l||(l=X.getAttribute("data-timing-href"))&&(l=window.location.protocol+l)):b==="LINK"&&(l=X.href);_.dr(document)&&X.setAttribute("nonce",_.dr(document));return l?(X=_.wc.getEntriesByName(l))&&X[0]&&(X=X[0],l=m2(),_.RO("rsf_"+H,l+Math.round(X.fetchStart)),_.RO("rse_"+H,l+Math.round(X.responseEnd)),X.transferSize!==void 0&&X.transferSize===0)?!0:!1:!1};
M7d=function(X,H){_.ZR(function(){_.KA("").info.actionType=X;H&&_.Et("TIMING_AFT_KEYS",H);_.Et("TIMING_ACTION",X);var l=_.Qyl(_.gx("TIMING_INFO",{}));Object.keys(l).length>0&&_.CA(l);l={isNavigation:!0,actionType:_.Dgk(_.gx("TIMING_ACTION"))};var b=_.gx("PREVIOUS_ACTION");b&&(l.previousAction=_.Dgk(b));if(b=_.gx("CLIENT_PROTOCOL"))l.httpProtocol=b;if(b=_.gx("CLIENT_TRANSPORT"))l.transportProtocol=b;(b=_.Bi())&&b!=="UNDEFINED_CSN"&&(l.clientScreenNonce=b);b=oEN();if(b===1||b===-1)l.isVisible=!0;b=
_.PCN().loadType==="cold";var U=wiU();b||(b=U.yt_lt==="cold");if(b){l.loadType="cold";b=wiU();U=dGd();var K=m2(),w=_.gx("CSI_START_TIMESTAMP_MILLIS",0);w>0&&!_.P("embeds_web_enable_csi_start_override_killswitch")&&(K=w);K&&(_.RO("srt",U.responseStart),b.prerender!==1&&_.GNO(K));b=h0p();b>0&&_.RO("fpt",b);b=dGd();b.isPerformanceNavigationTiming&&_.CA({performanceNavigationTiming:!0},void 0);_.RO("nreqs",b.requestStart,void 0);_.RO("nress",b.responseStart,void 0);_.RO("nrese",b.responseEnd,void 0);
b.redirectEnd-b.redirectStart>0&&(_.RO("nrs",b.redirectStart,void 0),_.RO("nre",b.redirectEnd,void 0));b.domainLookupEnd-b.domainLookupStart>0&&(_.RO("ndnss",b.domainLookupStart,void 0),_.RO("ndnse",b.domainLookupEnd,void 0));b.connectEnd-b.connectStart>0&&(_.RO("ntcps",b.connectStart,void 0),_.RO("ntcpe",b.connectEnd,void 0));b.secureConnectionStart>=m2()&&b.connectEnd-b.secureConnectionStart>0&&(_.RO("nstcps",b.secureConnectionStart,void 0),_.RO("ntcpe",b.connectEnd,void 0));_.wc&&"getEntriesByType"in
_.wc&&BZ5();b=[];if(document.querySelector&&_.wc&&_.wc.getEntriesByName)for(var d in spy)spy.hasOwnProperty(d)&&(U=spy[d],qcy(d,U)&&b.push(U));if(b.length>0)for(l.resourceInfo=[],d=_.C(b),b=d.next();!b.done;b=d.next())l.resourceInfo.push({resourceCache:b.value})}_.CA(l);l=_.$B();l.preLoggedGelInfos||(l.preLoggedGelInfos=[]);d=l.preLoggedGelInfos;l=_.pWz();b=void 0;for(U=0;U<d.length;U++)if(K=d[U],K.loadType){b=K.loadType;break}if(_.PCN().loadType==="cold"&&(l.loadType==="cold"||b==="cold")){b=_.f7b();
U=_.$B();U=U.gelTicks?U.gelTicks:U.gelTicks={};for(var B in b)B in U||typeof b[B]==="number"&&_.RO(B,_.dc(B));B={};b=!1;d=_.C(d);for(U=d.next();!U.done;U=d.next())b=U.value,_.uT(l,b),_.uT(B,b),b=!0;b&&_.CA(B)}_.NDm(!0);B=_.gx("TIMING_ACTION");_.ij("ytglobal.timingready_")&&B&&_.Xrk()&&_.TDL()&&_.OgN()})()};
u6$=function(X){var H,l,b,U=(b=(l=((H=X.mainDownloadsListEntity)!=null?H:{})[_.sIz])==null?void 0:l.refresh)!=null?b:"",K;X=(K=X.refresh)==null?void 0:K[U];U=X!=null?X:{};return(U==null?0:U.refreshTime)?Number(U==null?void 0:U.refreshTime):0};
e0C=function(X,H){var l=_.CT(X);return H.every(function(b){var U;b=b==null?void 0:(U=b.playbackDataEntity)==null?void 0:U.key;if(!b)return!1;U=_.rc(_.NJ(b).entityId,"mainVideoEntity");return!!l[U]})};
y$e=function(X){return X.ui.guideIsVisibleButNotPersistent};
V7$=function(X){return X.ui.scrollAtTop};
PTx=function(X){return X.ui.tabGesturesIsActive};
fvN=function(X){X=_.$M(X.entities);return _.Dyy(X).length};
pip=function(X,H){if(H){var l;X=(l=_.JY(X.entities,"downloadQualityPickerEntity",H))!=null?l:void 0}else X=void 0;return X};
T_=function(X,H,l){var b;return _.h(function(U){if(U.nextAddress==1)return U.yield(H(),2);b=U.yieldResult;l(b,X);_.m5(U)})};
Scd=function(){return _.h(function(X){return X.nextAddress==1?X.yield((HNp()!==void 0?_.Cq(Error("Af")):JBd()).then(function(){return 1},function(H){if(H.message==="Biscotti id is disabled")return 3;
_.x2("Failed fetching bid");return 0}),2):X.return(X.yieldResult)})};
nuA=function(){var X=_.aH("emU3a2UzMmRwbnl0LWhhdmVuLWVtYmVkLXBsYXllciNrcQ=="),H=_.aH("M3BtYWxxMXluNWlmcmFtZSMxbw==");return document.querySelector(H+z0Z+X)?0:1};
kPY=function(X){var H=document.getElementsByTagName("ytd-enforcement-message-view-model");H.length===0||getComputedStyle(H[0]).display==="none"?X(0,"p.h_"):X(1,"p.h_")};
xGe=function(){return _.DCO(_.E6)};
DG$=function(){return _.tKz()===0?0:_.Wky()};
t7$=function(){return _.ZBZ(_.IZK([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
Eud=function(){return _.P_y(WeA)};
guC=function(X){_.h(function(H){switch(H.nextAddress){case 1:return H.yield(T_("b.f_",Scd,X),2);case 2:return H.yield(T_("j.s_",_.yKk,X),3);case 3:return H.yield(T_("r.s_",_.MKZ,X),4);case 4:return H.yield(T_("e.h_",Eud,X),5);case 5:if(!_.P("ab_det_sc_inj")){H.jumpTo(6);break}return H.yield(T_("s.i_",_.kgK,X),6);case 6:if(_.P("ab_deg_unex_thr")){H.jumpTo(8);break}return H.yield(T_("a.o_",_.zay,X),8);case 8:if(_.P("ks_get_o_pp")){H.jumpTo(10);break}return H.yield(T_("g.o_",_.SON,X),10);case 10:if(_.P("ks_det_gpbl")){H.jumpTo(12);
break}return H.yield(T_("p.i_",_.paz,X),12);case 12:return H.yield(T_("f.i_",_.$Cy,X),14);case 14:return H.yield(T_("a.b_",_.qOW,X),15);case 15:return H.yield(T_("p.m_",_.C_L,X),16);case 16:if(!_.P("ab_det_el_h_v2")){H.jumpTo(17);break}return H.yield(T_("n.h_",t7$,X),17);case 17:return H.yield(T_("o.p_",xGe,X),19);case 19:return H.yield(T_("e.i_",nuA,X),20);case 20:if(_.P("ab_det_apm"))return H.yield(T_("o.a_",DG$,X),0);H.jumpTo(0)}})};
GPl=function(X){switch(X){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:_.Hp(X,"unknown result type")}};
avp=function(X,H,l){H=_.cKz[H];l={detected:X===0,source:H.ifT,detectionResult:GPl(X),contentCpn:l};_.Sh("biscottiBasedDetection",l);_.ttG.increment(H.ifT,X);H.tEx!==void 0&&_.Et("CATSTAT",_.TeK(X,H))};
vul=function(){ZNy=0;var X=[_.Xs(!0)];iNx&&_.NG(iNx,"yt-window-resized",X)};
ONy=function(){ZNy||(ZNy=_.Ss.addLowPriorityJob(vul,200))};
TZe=function(){mGp=0;Qpy=_.N9_(document);var X=[Qpy];iNx&&_.NG(iNx,"yt-window-scrolled",X)};
NZN=function(){mGp||(mGp=_.Ss.addLowPriorityJob(TZe,200))};
jpN=function(X){X=X===void 0?null:X;c$d.push(_.cB(window,"resize",ONy));c$d.push(_.cB(window,"scroll",NZN));X&&(iNx=X)};
r$x=function(X){X=X.target.result;X.objectStoreNames.contains("swpushnotificationsstore")&&X.deleteObjectStore("swpushnotificationsstore");X.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
Ley=function(){return J$y?Promise.resolve(J$y):new Promise(function(X,H){var l=self.indexedDB.open("swpushnotificationsdb");l.onerror=H;l.onsuccess=function(){var b=l.result;if(b.objectStoreNames.contains("swpushnotificationsstore"))J$y=b,X(J$y);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),Ley()};
l.onupgradeneeded=r$x})};
Nc=function(X){var H=new _.qd("Error accessing DB");return Ley().then(function(l){return new Promise(function(b,U){try{var K=l.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(X);K.onsuccess=function(){var w=K.result;b(w?w.value:null)};
K.onerror=function(){H.params={key:X,source:"onerror"};U(H)}}catch(w){H.params={key:X,
thrownError:String(w)},U(H)}})},function(){return null})};
YcA=function(X,H){var l={};l.key=X;l.value=H;return Ley().then(function(b){return new Promise(function(U,K){try{var w=b.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(l);w.onsuccess=function(){U()};
w.onerror=function(){K()}}catch(d){K(d)}})})};
A$Z=function(){var X=_.Ke.getLocalStorage();X&&Iv5(X,X.mechanism.__iterator__(!0))};
XKU=function(X){_.h(function(H){if(H.nextAddress==1)return H.yield(X.delete("yt-appshell-assets"),2);_.m5(H)})};
HAd=function(X){return _.vQ((0,_.ec9)(),X)};
oBY=function(){var X;_.h(function(H){return H.nextAddress==1?H.yield(co.getInstance(),2):(X=H.yieldResult)?H.yield(lip(X),0):H.jumpTo(0)})};
UJZ=function(){var X;_.h(function(H){return H.nextAddress==1?H.yield(jo.getInstance(),2):(X=H.yieldResult)?H.yield(bAC(X),0):H.jumpTo(0)})};
$JN=function(X){XKU(X);oBY();UJZ()};
KSA=function(X){var H,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(_.M6l(X),2);if(H=b.yieldResult){var U;a:{if(H.headers&&(U=H.headers.get("date"))&&(U=Date.parse(U),!isNaN(U))){U=Math.round((0,_.Jl)()-U);break a}U=-1}l=U;if(l>-1)return b.return(l)}return b.return(-1)})};
R4Z=function(){var X=_.ok.caches,H=_.G7("IS_SHELL_LOAD"),l,b;_.h(function(U){if(U.nextAddress==1)return l=-1,H?U.yield(KSA(X),3):(b=m2(),l=Math.round((0,_.Jl)()-b),U.jumpTo(2));U.nextAddress!=2&&(l=U.yieldResult);l>=0&&l<2147483648&&_.FS({appInstallDataAgeMs:l});_.m5(U)})};
CH5=function(X){var H=_.iI(_.ok.location.href),l={};"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(b){var U=H.JSC$10342_queryData_.getValues(b);if(U==null?0:U.length)l[b]=U});
return _.n$(X,new Map(Object.entries(l)))};
wKe=function(X){return _.EtZ(_.WUh(X&16777215))<.5};
dJy=function(X){X=X.match(/(.*)::.*::.*/);if(X!==null)return X[1]};
h4e=function(X){if(_.gtZ()){var H=Object.keys(window.localStorage);H=_.C(H);for(var l=H.next();!l.done;l=H.next()){l=l.value;var b=dJy(l);b===void 0||X.includes(b)||self.localStorage.removeItem(l)}}};
FSU=function(){if(!_.gtZ())return!1;var X=_.FB(),H=Object.keys(window.localStorage);H=_.C(H);for(var l=H.next();!l.done;l=H.next())if(l=dJy(l.value),l!==void 0&&l!==X)return!0;return!1};
BcA=function(X){return YcA("NotificationsDisabled",X)};
qf$=function(){var X=_.I0("service_worker_scope");try{return navigator.serviceWorker.getRegistration(X)}catch(H){return Promise.reject(H)}};
sOl=function(){return Notification.permission!="granted"?Promise.resolve():qf$().then(function(X){return X?X.pushManager.getSubscription().then(function(H){if(H)return Promise.resolve();H={userVisibleOnly:!0,applicationServerKey:_.Ay("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return X.pushManager.subscribe(H).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
MFx=function(X){return qf$().then(function(H){if(!H||!H.active)return Promise.reject(new _.qd("serviceworker.postMessage",X,H));try{return H.active.postMessage(X),Promise.resolve()}catch(l){return Promise.reject(l)}})};
uSd=function(){MFx({type:"notifications_register",data:_.gx("ID_TOKEN")})};
e4a=function(X){return!(!X||!X.pushManager)};
yYA=function(){return qf$().then(e4a).catch(function(){return!1})};
VF$=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?yYA():Promise.resolve(!1)};
pKY=function(){var X={isWide:_.wL.get("wide","0")==="1"},H=_.oO();if(H=H.getFlag(165)||H.getFlag(174))X.theme=_.PM(!0);if(_.Agk()){var l=_.V_()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";X.systemTheme=l}!H&&_.P("parent_tools_enable_app_settings")&&_.QO(window.location.href).theme!==void 0&&(X.theme=_.PM());if((H=PHe)?!_.Bb.equals(H,X):X)H={currentValue:X},fix&&(H.timeSinceLastSnapshotSecs=Math.round(((0,_.Jl)()-fix)/1E3)),PHe&&(H.previousValue=PHe),_.Sh("appSettingsCaptured",H),PHe=
X,fix=(0,_.Jl)()};
Sfe=function(){if(!_.G7("LOGGED_IN"))return Promise.resolve(!1);var X=_.I0("service_worker_push_force_notification_prompt_tag");return X?Nc("PromptTags").then(function(H){if(!H)return!0;var l=[];try{l=JSON.parse(H)}catch(b){return!1}return l&&l.indexOf(X)==-1}):Promise.resolve(!1)};
z4a=function(){var X=_.Yy("service_worker_push_prompt_delay_microseconds");return X?Nc("PromptTime").then(function(H){return Promise.resolve(Date.now()-X>(H||0))}):Promise.resolve(!0)};
nBC=function(){var X=_.Yy("service_worker_push_logged_out_prompt_watches");return X==-1?Promise.resolve(!1):Nc("WatchCount").then(function(H){return H>=X})};
kux=function(){var X=_.iE(document,"yt-push-prompt-modal-bg");X&&_.HE(X)};
xJZ=function(){return _.Yy("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):Nc("PromptCount").then(function(X){X||(X=0);return Promise.resolve(X<_.Yy("service_worker_push_prompt_cap"))})};
DJa=function(X){return _.G7("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.G7("LOGGED_IN")&&(X===void 0?0:X)?Sfe().then(function(H){if(H)return!0;H=[xJZ(),z4a()];_.G7("LOGGED_IN")||H.push(nBC());return Promise.all(H).then(function(l){return l.every(function(b){return b})})}):Promise.resolve(!1)};
tFx=function(){Nc("PromptCount").then(function(X){return YcA("PromptCount",X+1)}).then(function(){return YcA("PromptTime",Date.now())}).then(function(){var X=_.I0("service_worker_push_force_notification_prompt_tag");
if(X)return Nc("PromptTags").then(function(H){var l=[];if(H)try{l=JSON.parse(H)}catch(b){return!1}l||(l=[]);l.push(X);return YcA("PromptTags",JSON.stringify(l))})})};
EBC=function(){WSC||kux()};
gBY=function(X){X.style.zIndex=2147483648;X.style.pointerEvents="auto";X.style.backgroundColor="rgba(0, 0, 0, 0.6)";X.style.width="100%";X.style.height="100vh";X.style.position="absolute";X.style.top="0";X.style.left="0";X.style.border="none"};
Gup=function(){var X=_.iE(document,"yt-push-prompt-modal-bg");WSC=_.P("service_worker_push_prompt_modal_ignore_click");X?gBY(X):(X=_.yT("div",{id:"yt-push-prompt-modal-bg"}),gBY(X),document.body.appendChild(X),_.cay(document,"click",EBC))};
ail=function(){var X=arguments;_.P("service_worker_push_prompt_modal_enable")&&Gup();return Notification.requestPermission().then(function(H){kux();var l=document.getElementById("ticker");l&&(l.className=l.classList.remove("show"));if(H=="granted")return sOl().then(function(){BcA(!1);uSd();return Promise.resolve(!0)});
H=="denied"&&uSd();return Promise.resolve(!1)}).catch(function(){kux();
return Promise.reject.apply(Promise,_.LJ(X))})};
ZA5=function(X){X=X===void 0?!1:X;var H=_.zW().client;if(H&&H.browserVersion){var l=H.browserVersion,b=H.browserName=="CHROME"&&_.el(l,"50.0.0")<0;H=H.browserName=="OPERA"&&_.el(l,"42.0.0")<0;if(b||H)return Promise.resolve()}return VF$().then(function(U){if(!U)return Promise.resolve();U=sOl().then(function(){return MFx({type:"notifications_check_registration",data:_.gx("ID_TOKEN")})});
return Notification.permission!="default"?U.catch(function(){}):U.then(function(){return DJa(X)}).then(function(K){if(K)return tFx(),ail().then(function(){})}).catch(function(){})})};
iAa=function(X){return e4a(X)?ZA5():Promise.resolve()};
vBU=function(X){var H=X.installing||X.waiting;return X.active||!H?Promise.resolve(X):new Promise(function(l){var b=function(U){U=U.target;if(U.state==="activated"||U.state==="redundant")H.removeEventListener("statechange",b),l(X)};
H.addEventListener("statechange",b)})};
OAe=function(){var X=new _.Pyk("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Xk(X,{mainAppWeb:_.ne()});var H=_.vTz;_.P("service_worker_forward_exp_params")&&(H=CH5(H));try{var l=_.$xO(H).catch(function(){_.H8(X,"FAILURE");return new Promise(function(){})});
_.P("service_worker_push_enabled")&&l.then(function(b){_.H8(X,"SUCCESS");return b}).then(vBU).then(iAa)}catch(b){if(_.H8(X,"FAILURE"),b.name!=="SecurityError")throw b;
}};
mJZ=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&OAe()};
rK=function(X,H,l,b,U){var K={};H&&(K[H]=l);b?K.errorType=b:U&&(K.errorReason=U);_.Sh(X,K);_.z3()};
QOx=function(X,H){var l={};H&&(l.serializedYpcFamilyCreateLoggingParams=H);_.Sh(X,l);_.z3()};
TcN=function(X,H){var l={};l.serializedYpcRefundFlowLoggingParams=H;X&&(l.eventType=X);_.Sh("ypcRefundFlowEvent",l);_.z3()};
Ncl=function(X){X&&_.RxZ("transactionFlowSucceeded",X)};
cYZ=function(){rK("ypcRedeemFlowStarted")};
jON=function(X){rK("ypcRedeemFlowFailed",void 0,void 0,void 0,X)};
rYY=function(X){X&&rK("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",X,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
JD=function(X){return function(H,l){var b=X||l.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(H,l,{get:function(){var U;return this.$?this.$[b]:(U=_.I6(this))==null?void 0:U.querySelector("#"+b)},
enumerable:!0,configurable:!0})}};
JYZ=function(X){if(X=_.Sjl(X)){var H;(H=X.sources)!=null&&H[0]?(H=_.nk8(X),H=H<1?"VERTICAL":H>1?"HORIZONTAL":"SQUARE"):H=void 0;return H}};
LSA=function(X){return(X=_.Sjl(X))?_.nk8(X):0};
YfN=function(X){var H,l,b,U,K,w,d;_.h(function(B){if(B.nextAddress==1)return B.yield(_.Ptm(),2);if(B.nextAddress!=3){if(!B.yieldResult)return B.return(!1);H=[];return B.yield(_.Ol.keys(),3)}l=B.yieldResult;b=_.C(l);for(U=b.next();!U.done;U=b.next())K=U.value,w=_.yH8(K),d=w.datasyncId,!d||X.includes(d)||H.push(_.Ol.delete(K));return B.return(Promise.all(H).then(function(q){return q.some(function(u){return u})}))})};
IiZ=function(){var X,H,l,b,U,K,w;return _.h(function(d){if(d.nextAddress==1)return d.yield(_.Ptm(),2);if(d.nextAddress!=3){if(!d.yieldResult)return d.return(!1);X=_.FB("cache contains other");return d.yield(_.Ol.keys(),3)}H=d.yieldResult;l=_.C(H);for(b=l.next();!b.done;b=l.next())if(U=b.value,K=_.yH8(U),(w=K.datasyncId)&&w!==X)return d.return(!0);return d.return(!1)})};
AYx=function(X,H){return _.JY(X.entities,"timedMarkersListSyncEntity",H)};
XFd=function(X,H){return _.JY(X.entities,"liveReactionsDataEntity",H)};
HTp=function(X,H){X=_.JY(X.entities,"booleanEntity",H);return!(!X||!X.value)};
l8d=function(X,H){var l=_.Bi();l&&X&&_.pA(l,_.$l(X),H)};
oM5=function(X){return X.watch.isWatchActive};
bTa=function(X){return X.watch.isLearningJourneyActive};
UoZ=function(X){return X.watch.watchWindowSize};
$od=function(X){return!_.p7N(X)};
LE=function(X){return X.watch.watchScrollTop};
K1y=function(X){return X.watch.isLiveChatCollapsed};
RPN=function(X,H){return _.JY(X.entities,"flowStateEntity",H)};
C5Y=function(){var X=_.jJ().resolve(_.c$(_.Q7Q));return X?X.getCurrentTime():0};
wFp=function(X,H){X={videoId:X};H&&(X.playlistId=H);return X};
doZ=function(){var X,H,l,b,U,K,w,d,B,q,u,e,y,V;return _.h(function(p){switch(p.nextAddress){case 1:X={},H=_.ztb(),l=_.C(Object.entries(H)),b=l.next();case 4:if(b.done){p.jumpTo(3);break}U=b.value;K=_.C(U);w=K.next().value;d=K.next().value;B=w;q=d;if(!q){p.jumpTo(5);break}return p.yield(q(),8);case 8:X[B]=p.yieldResult;case 5:b=l.next();p.jumpTo(4);break;case 2:u=_.C(),e=u.next();case 9:if(e.done){p.jumpTo(3);break}y=e.value;V=H[y];if(!V){p.jumpTo(10);break}return p.yield(V(),13);case 13:X[y]=p.yieldResult;
case 10:e=u.next();p.jumpTo(9);break;case 3:return p.return(X)}})};
hPe=function(){var X;_.h(function(H){if(H.nextAddress==1)return H.yield(doZ(),2);X=H.yieldResult;return H.yield(navigator.clipboard.writeText(JSON.stringify(X,null,2)),0)})};
F1a=function(X,H){if(X&&H){var l=_.XA();l().set(X,H);_.gFL(l())}};
BRZ=function(X,H){if(X&&H){var l=_.XA();l().set(X,H);_.gFL(l())}};
q9A=function(X,H){return _.JY(X.entities,"superThanksSelectedTierEntity",H)};
sH5=function(X,H){return _.JY(X.entities,"contextNoteUserRatingEntityPayload",H)};
M0A=function(){_.P("web_watch_log_theater_mode")&&_.L3b("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
ueC=function(X,H,l){if(!X.includes("START_TIME_PLACEHOLDER")||!X.includes("END_TIME_PLACEHOLDER"))return X;var b=new Date(0),U=new Date(0);b.setUTCMilliseconds(H);U.setUTCMilliseconds(l);return X.replace("START_TIME_PLACEHOLDER",_.zc(b,7)).replace("END_TIME_PLACEHOLDER",_.zc(U,7))};
ePZ=function(X,H,l){var b=l.minimumRowsOfVideosBetweenSections===void 0?1:l.minimumRowsOfVideosBetweenSections;return X<(l.minimumRowsOfVideosAtStart===void 0?2:l.minimumRowsOfVideosAtStart)||H!==null&&X-H<=b?!1:!0};
y05=function(X,H){var l=0,b=0;X=_.C(X);for(var U=X.next();!U.done;U=X.next()){var K=U.value;if(K.richItemRenderer)K.richItemRenderer.rowIndex=b,K.richItemRenderer.colIndex=l++,l===H&&(l=0,b++);else if(K.richGroupRenderer&&K.richGroupRenderer.numColumns!==void 0)K.richGroupRenderer.rowIndex=b,K.richGroupRenderer.colIndex=l,l+=K.richGroupRenderer.numColumns,l===H&&(l=0,b++);else if(K.richSectionRenderer){var w=U=void 0;if(K=_.f((U=K)==null?void 0:(w=U.richSectionRenderer)==null?void 0:w.content,_.H79))K.rowIndex=
b++}}};
V0y=function(X,H){var l=H.contentElement;H=H.rendererToTagNameMap;if(l&&H&&H.size!==0){for(var b=new Map,U=_.C(l.children),K=U.next();!K.done;K=U.next()){K=K.value;var w=K.tagName.toLowerCase(),d=b.get(w);d||(d=[],b.set(w,d));d.push(K)}if(b.size!==0)for(U=Math.min(X.length,l.children.length),K=new Map,w=0;w<U;w++){d=Object.keys(X[w])[0];d=H.get(d);if(!d)break;var B=K.get(d);B===void 0&&(B=0,K.set(d,B));var q=b.get(d);if(!q||B>=q.length)break;K.set(d,B+1);d=q[B];B=l.children[w];B!==d&&(_.W5=!0,_.El.set(d,
!0),l.insertBefore(d,B),_.El.delete(d),_.W5=!1)}}};
P5x=function(X,H,l,b,U,K,w){b=b===void 0?{}:b;if(!X||!X.length)return{orderedContent:[]};X=X.slice();var d=[],B=[];U=null;for(var q=0,u=function(r){B.sort(function(J,Y){return Y.skippedOnRow-J.skippedOnRow});
for(var Q,v=(Q=B.shift())==null?void 0:Q.content;v;)!v.richSectionRenderer&&r||d.push(v),Q=void 0,v=(Q=B.shift())==null?void 0:Q.content},e=void 0,y=void 0,V=new Set;X.length>0||B.length>0;){for(var p=[],z=H;z>0;){var t=void 0,W=void 0,G=(W=B[0]&&B[0].skippedOnRow<q?(t=B.shift())==null?void 0:t.content:void 0)!=null?W:X.shift();
if(!G)break;if(G.richItemRenderer)t=G.richItemRenderer.targetId,W=void 0,t&&((W=w)==null?0:W.has(t))&&(W=w.get(t),!e||W&&W.timestamp>e.timestamp)&&(e=W,y&&V.add(y),y=t),p.push(G),z--;else if(G.richGroupRenderer&&G.richGroupRenderer.numColumns!==void 0)G.richGroupRenderer.numColumns<=z?(p.push(G),z-=G.richGroupRenderer.numColumns):z===H&&G.richGroupRenderer.numColumns>H?(p.push({richGroupRenderer:Object.assign({},G.richGroupRenderer,{numColumns:H})}),z=0):B.push({content:G,skippedOnRow:q});else if(G.richSectionRenderer)if(ePZ(q,
U,b)&&z===H){d.push(G);U=q;q++;continue}else B.push({content:G,skippedOnRow:q});else if(G.continuationItemRenderer){u(!0);d.push(G);z=0;break}if(z===0)d.push.apply(d,_.LJ(p));else if(!l&&X.length===0){u(!1);d.push.apply(d,_.LJ(p));z=0;break}}q++;e&&(d.push(e.content),q++);y=e=void 0}y05(d,H);K&&V0y(d,K);return{orderedContent:d,pinnedContentNotShownTargetIds:V}};
f8C=function(X){return X.shorts.isSmallScreenSqueezeback};
pFN=function(X){return X.shorts.isPlaybackStarted};
zPy=function(){if(_.P("kevlar_home_skeleton")&&!S9Z){var X=document.querySelector("#home-page-skeleton");X&&(_.sf("hgcr"),_.HE(X),S9Z=!0)}};
xo$=function(){if(_.Tgy()){var X=_.gx("PLAYER_VARS",{});if(_.Bb.get(X,"privembed",!1)!="1"&&!XiN(X)){var H=function(){nMa=!0;"google_ad_status"in window?_.Et("DCLKSTAT",1):_.Et("DCLKSTAT",2)};
try{_.VX(_.vmN,H)}catch(l){}kc5.push(_.Ss.addLowPriorityJob(function(){if(!(nMa||"google_ad_status"in window)){try{_.GIk(_.vmN.toString(),H)}catch(l){}nMa=!0;_.Et("DCLKSTAT",3)}},5E3))}}};
DoU=function(X){return!!X.getOptions("captions")};
t0$=function(X){return(X=X.getOption("captions","track"))?!!X.displayName:!1};
W1N=function(X){return iq(X,function(H){return H.languageCode==="en"})};
EMl=function(X){var H=YC;if(t0$(X))X.setOption("captions","stickyLoading",{}),X.setOption("captions","track",{});else{var l=iq(_.I4m(X),function(b){return b.displayName===H});
X.setOption("captions","track",l)}};
gMx=function(X,H){return{popup:{searchSuggestionReportDialog:{searchQuery:X,title:_.XS("SBOX_INAPPROPRIATE_TITLE"),suggestions:H,categoryLabel:_.XS("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.XS("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.XS("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.XS("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.XS("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.XS("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.XS("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.XS("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.XS("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.XS("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
GcC=function(X){var H=_.oO();if(H.getFlag(202))H=H.getFlag(201);else{var l;H=(X==null?void 0:(l=X.config)==null?void 0:l.settingOnByDefault)!==void 0?X.config.settingOnByDefault:!_.KG("web_shorts_cinematics_disabled_by_default")}return H};
a8U=function(X){var H=_.oO();_.bH(0,201,X);_.bH(0,202,!0);H.save()};
ZTy=function(X){var H,l,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r;return _.h(function(Q){switch(Q.nextAddress){case 1:return Q.yield(_.IO(),2);case 2:return(H=Q.yieldResult)?Q.yield(_.Ook(H),3):Q.return();case 3:l=Q.yieldResult;if(!l)return Q.return();U=((b=l.offlineVideos)==null?void 0:b.length)||0;w=((K=l.offlinePlaylists)==null?void 0:K.length)||0;if(U===0&&w===0)return Q.return();d=0;if(l.offlineVideos)for(B=_.C(l.offlineVideos),q=B.next();!q.done;q=B.next())u=q.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
u.videoState&&(d+=1);X.offline_videos_count=U.toString();_.P("kevlar_log_offline_current_network_type_ks")||(X.offline_current_network_type=(e=_.sHO())!=null?e:"CONN_INVALID");_.P("kevlar_log_updated_time_for_smart_downloads")&&(y=_.WF().getState().entities,V=_.Fe(y),p=u6$(y),X.offline_smart_downloads_last_sync_time_ms=V.toString(),X.offline_smart_downloads_next_sync_time_ms=p.toString());X.offline_videos_playable=d.toString();X.offline_playlists_count=w.toString();l.offlineVideos&&(z=l.offlineVideos.reduce(function(v,
J){J.downloadedBytes&&(v+=Number(J.downloadedBytes));return v},0).toString())&&(X.offline_used_disk_space_bytes=z);
if(!((t=navigator)==null?0:(W=t.storage)==null?0:W.estimate)){Q.jumpTo(4);break}return Q.yield(navigator.storage.estimate(),5);case 5:G=Q.yieldResult,X.offline_free_disk_space_bytes=(((r=G)==null?void 0:r.quota)||0).toString();case 4:X.offline_client_state=JSON.stringify(l),_.m5(Q)}})};
iTx=function(X){X=X.match(/(.*)::.*::.*/);if(X!==null)return X[1]};
vM$=function(X){if(_.CrK()){var H=Object.keys(window.sessionStorage);H=_.C(H);for(var l=H.next();!l.done;l=H.next()){l=l.value;var b=iTx(l);b===void 0||X.includes(b)||self.sessionStorage.removeItem(l)}}};
OTZ=function(){if(!_.CrK())return!1;var X=_.FB(),H=Object.keys(window.sessionStorage);H=_.C(H);for(var l=H.next();!l.done;l=H.next())if(l=iTx(l.value),l!==void 0&&l!==X)return!0;return!1};
moC=function(X){if(!X)return 0;var H=X.getPresentingPlayerType(),l=X.getVideoData();return l&&l.isLive?(X=X.getProgressState(H),X.seekableEnd-X.seekableStart):X.getDuration(H)};
Iv=function(X,H){_.Fc(H,X,function(){return QH5[H]},function(l){QH5[H]=l;
if(!_.P("mweb_player_ve_show_ks")){var b=_.Bi(0);b&&l&&_.zu(b,l)}})};
AD=function(X){(X=QH5[X])&&_.Lk(_.lv(),X)};
TRd=function(X,H){for(var l=_.C(Object.keys(X)),b=l.next();!b.done;b=l.next())if(b=b.value,X[b]!==H[b])return!1;return!0};
NRA=function(){return document.getElementById("player-control-overlay")};
c0Z=function(X){X!==-1&&!_.P("player_controls_log_creation_killswitch")&&NRA()&&(_.sf("pcu_cs",X),_.sf("pcu_ce"))};
jHN=function(X){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:X}}]}}}};
r0U=function(X,H,l,b){var U=_.P("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;H=Object.assign({},{text:H,hasGradientBackground:l},b&&{backgroundStyle:b},U&&{itemTargetId:U});U=_.P("web_enable_chat_autoscroll_to_user_turn")&&U?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:U,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:H}],
insertByPositionInSection:{sectionTargetId:X,position:"INSERTION_POSITION_LAST"}}}]},U?{scrollConfig:U}:{})}}};
J0C=function(X,H){return _.JY(X.entities,"booleanEntity",H)};
L1Z=function(){return function(X){_.Wc(_.Us("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:X}))}};
Y9$=function(X,H){H.stack&&(X.stack+="\n"+H.stack);return X};
I8e=function(){this.isInputValid_=!0;this.JSC$19609_streamPos_=0;this.leftoverInput_=""};
A0e=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};
ohZ=function(X){var H=XMN(X,"Content-Type");if(!H)return null;H=H.toLowerCase();if(H.startsWith("application/json"))return H.startsWith("application/json+protobuf")?new Hey:new _.Cr;if(H.startsWith("application/x-protobuf")){X=XMN(X,"Content-Transfer-Encoding");if(!X)return new A0e;if(X.toLowerCase()=="base64")return new lcY}return null};
hKY=function(X,H,l,b){var U=new beY(function(d,B){return UwZ.has(B)?d.sentinel==="gal"&&d.event!==void 0:!1},function(d){d.event?(d=$we(d.event),d=!d||KhU(b,d)?!0:_.$g(X.lastEvent,Xd,2,H7)?!_.$g(d,lP,1,H7)&&!_.$g(d,Xd,2,H7):!_.$g(d,lP,1,H7)&&!_.$g(d,Xd,3,H7)):d=!0;
return d});
l=_.n$(X.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",RKa(l)]]));if(X.nestedOrigins!==void 0)for(var K=_.C(X.nestedOrigins),w=K.next();!w.done;w=K.next())l=_.n$(l,new Map([["origin",w.value]]));return C$a(U,l,H).then(function(d){d=wM$(d.event);if(_.$g(d,lP,1,H7)){var B,q=(B=_.ys(d,lP,1,H7))==null?void 0:_.M7(B,2);q&&b.JSC$19664_logErrorEvent(dwd(q));B=_.ys(d,lP,1,H7);_.M7(B,2)===4?(d=_.ys(d,lP,1,H7),d={statusCode:11,statusMessage:_.sC(d,
3)}):(d=_.ys(d,lP,1,H7),d={statusCode:12,statusMessage:_.sC(d,3)});return d}_.$g(d,Xd,3,H7)?(d=_.ys(d,Xd,3,H7),d={statusCode:1,consentLanguageKeys:_.sC(d,2)}):d={statusCode:1};return d}).catch(function(d){return d.errorCode!==void 0?{statusCode:d.errorCode,
statusMessage:d.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
s6U=function(X){var H={};if(X===void 0||X===null)return H;X.getToken()!==void 0&&FhZ(X.getToken())&&FhZ(X.getToken()).length>0&&(H.scopes=new Set(FhZ(X.getToken())));X.getToken()!==void 0&&Bue(X.getToken())&&Bue(X.getToken()).length>0&&(H.capabilities=new Set(Bue(X.getToken())));_.sC(X,3)!==void 0&&(H.consistencyKey=_.sC(X,3));X.getName()!==void 0&&X.getName()!==""&&(H.linkName=X.getName());_.UC(X,qix,4)&&(X=_.Al(X,qix,4),X=Object.assign({},_.sC(X,1)&&{userId:_.sC(X,1)},_.sC(X,2)&&{displayName:_.sC(X,
2)},_.sC(X,3)&&{email:_.sC(X,3)},_.sC(X,5)&&{username:_.sC(X,5)},_.sC(X,4)&&{profilePicture:_.sC(X,4)}),H.profile=X);return H};
M4$=function(X,H){var l=X.flowParams,b;return{serviceId:l.serviceId,sessionId:l.sessionId,currentFlow:X.currentFlow,googleScopesString:H,linkingSessionSerialized:X.session.serialize(),consentLanguageKeys:l.consentLanguageKeys,callerState:X.callerState,dynamicUrlParameters:l.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(b=l.partnerConfigMinReadTimestamp)==null?void 0:b.serialize()}};
P$C=function(X){var H=X.googleScopes!==void 0?Array.from(X.googleScopes).join(","):"";us$(M4$(X,H),X.config.localStorage);H=eKl(X);return H===null?Promise.resolve(y2Z):H.start().then(function(l){var b,U=(b=l.link)==null?void 0:b.consistencyKey;return l.statusCode===1&&X.googleScopes!==void 0&&X.googleScopes.size>0&&U!==void 0?(b=X.flowParams,V4Z(b.serviceId,b.sessionId,X.googleScopes,U,b.galService,X.config,l)):l})};
pMx=function(X){var H=eKl(X);return H===null?Promise.resolve(fcd({statusCode:7,statusMessage:"Failed to create flow object"},X.callerState)):H.complete().then(function(l){var b,U=(b=l.link)==null?void 0:b.consistencyKey;return l.statusCode===1&&X.googleScopes!==void 0&&X.googleScopes.size>0&&U!==void 0?(b=X.flowParams,V4Z(b.serviceId,b.sessionId,X.googleScopes,U,b.galService,X.config,l)):fcd(l,X.callerState)},function(l){return fcd({statusCode:12,
statusMessage:"Failed to complete the flow: "+l.message},X.callerState)})};
V4Z=function(X,H,l,b,U,K,w){return Si5(U,{serviceId:X,sessionId:H,googleScopes:l,consistencyKey:b}).then(function(){return w},function(d){return U.deleteLink({serviceId:X,
sessionId:H,accountLinkingEntryPoint:K.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+d.message}},function(B){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+B.message}})})};
eKl=function(X){switch(X.currentFlow){case 1:var H=X.flowParams;X=_.Al(X.session,zKZ,1);return nhy.createOAuthFlow(H,X);case 2:case 3:return H=X.flowParams,X=_.Al(X.session,kWA,6),xwU.createStreamlinedFlow(H,X);default:return null}};
t4l=function(X,H){X===2&&(X=3);var l=0;Dwy.indexOf(X)!==-1&&(l=Dwy.indexOf(X)+1);for(X=l;X<Dwy.length;X++)if(H.has(Dwy[X]))return Dwy[X]};
ghp=function(X){var H=X.serviceId;var l=X.sessionId;var b=X.config;var U=X.galService;var K=X.capabilities;var w=X.scopes;var d=X.loginHint;var B=X.callerState;var q=X.consentLanguageKeys;var u=X.linkName;var e=X.dynamicUrlParameters;var y=X.partnerConfigMinReadTimestamp;X=b.dataUsageNoticeConfig?b.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return U.startLinkingSession({serviceId:H,sessionId:l,capabilities:K,scopes:w,loginHint:d,callerState:B,supportedFlows:Whp(b.supportedFlows),completionUrl:b.completionUrl,
accountLinkingEntryPoint:b.accountLinkingEntryPoint,consentLanguageKeys:q,dataUsageNoticeConfig:X,linkName:u,dynamicUrlParameters:e,partnerConfigMinReadTimestamp:y}).then(function(V){return new Ehl(H,l,b,U,V,void 0,B,q,e,y)})};
OeZ=function(X,H,l){var b=(new GWZ(H.localStorage)).getSession(X);if(b===null)return Promise.resolve({statusCode:2});acC(X,H.localStorage);var U=Zea(b.linkingSessionSerialized),K=b.googleScopesString!==""&&b.googleScopesString!==void 0?new Set(b.googleScopesString.split(",")):void 0,w=b.partnerConfigMinReadTimestampSerialized?ieZ(b.partnerConfigMinReadTimestampSerialized):void 0;return vhZ(new Ehl(X,b.sessionId,H,l,U,K,b.callerState,b.consentLanguageKeys,b.dynamicUrlParameters,w),b.currentFlow,b.consentLanguageKeys)};
us$=function(X,H){H=new GWZ(H);H.storage!==null&&H.storage.set("SAVED_SESSION",X)};
acC=function(X,H){H=new GWZ(H);if(H.storage!==null){var l=H.storage.get("SAVED_SESSION");l!==void 0&&l.serviceId===X&&H.storage.remove("SAVED_SESSION")}};
Whp=function(X){var H=new Set;X=_.C(X);for(var l=X.next();!l.done;l=X.next())l=l.value,l!==1&&mwY.has(l)&&H.add(mwY.get(l));return H};
fcd=function(X,H){H!==void 0&&(X.callerState=H);return X};
Q6$=function(X){switch(X){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
c2y=function(X){return new TuA(X,new NuC(X))};
J2a=function(X,H){H=H===void 0?!1:H;var l=document.createElement("div");X&&(l.style.transform="scaleX(-1)");l.style.backgroundColor=H?"rgba(138,180,248,.24)":"#e8f0fe";l.style.height="4px";l.style.overflow="hidden";l.style.position="absolute";l.style.top="0";l.style.width="100%";l.style.zIndex="1500";l.setAttribute("aria-label","Loading");l.setAttribute("aria-live","polite");X=document.createElement("style");X.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  }";
l.appendChild(X);X=j6x();X.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";X.style.left="-145.166611%";var b=r2x(H);b.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";X.appendChild(b);l.appendChild(X);X=j6x();X.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";X.style.left="-54.888891%";H=r2x(H);H.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
X.appendChild(H);l.appendChild(X);return l};
j6x=function(){var X=document.createElement("div");X.style.height="100%";X.style.position="absolute";X.style.transformOrigin="top left";X.style.width="100%";return X};
r2x=function(X){var H=document.createElement("span");H.style.borderTop=X?"4px solid #669df6":"4px solid #4285f4";H.style.display="inline-block";H.style.position="absolute";H.style.width="100%";return H};
Lhd=function(X){return X==null?void 0:_.i8q(X).valueOf()};
Xcl=function(X){var H=document.body,l=!1,b=function(){l||(l=!0,Yie(U,K),setTimeout(function(){H.removeChild(K);H.removeChild(U)},150))},U=IcN(X,getComputedStyle(H).direction==="rtl",b),K=A2Y(b);
Yie(U,K);H.appendChild(K);H.appendChild(U);window.requestAnimationFrame(function(){K.style.opacity="1";U.style.opacity="1";U.style.transform="translate(-50%, -50%) scale(1)";U.children[0].focus()})};
IcN=function(X,H,l){var b=document.createElement("div");b.style.position="fixed";b.style.alignItems="center";b.style.backgroundColor=X?"rgb(32, 33, 36)":"white";b.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";b.style.display="flex";b.style.flexDirection="column";b.style.justifyContent="center";b.style.left="50%";b.style.top="50%";b.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";b.style.zIndex="2002";document.body.clientWidth>=
660?(b.style.borderRadius="8px",b.style.minHeight="220px",b.style.maxHeight="90%",b.style.maxWidth="90%",b.style.minWidth="540px"):(b.style.height="100%",b.style.width="100%");b.setAttribute("aria-label","Error");b.setAttribute("aria-modal","true");b.setAttribute("role","alertdialog");b.addEventListener("keydown",function(K){K.key==="Escape"&&l()});
H=Hcd(X,H,l);b.appendChild(lVa(H));b.appendChild(H);var U=document.createElement("img");U.src=X?"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";U.style.height="72px";U.style.width="72px";U.style.color="#9aa0a6";U.setAttribute("alt","");b.appendChild(U);U=document.createElement("h1");U.textContent="Something went wrong.  Try again.";
U.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";U.style.lineHeight="24px";U.style.fontSize="16px";U.style.textAlign="center";U.style.letterSpacing="0.1px";U.style.color=X?"rgb(232,234,237)":"#3c4043";b.appendChild(U);b.appendChild(lVa(H));return b};
Hcd=function(X,H,l){var b=document.createElement("button");b.style.backgroundColor="transparent";b.style.border="none";b.style.borderRadius="50%";b.style.cursor="pointer";b.style.outline="none";b.style.padding="12px";b.setAttribute("aria-label","Close dialog");b.style.position="absolute";b.style.top="0";H?b.style.right="0":b.style.left="0";b.addEventListener("focus",function(){b.style.backgroundColor=X?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
b.addEventListener("blur",function(){b.style.backgroundColor="transparent"});
b.addEventListener("mouseenter",function(){b.style.backgroundColor=X?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
b.addEventListener("mouseleave",function(){b.style.backgroundColor="transparent"});
b.addEventListener("click",l);b.addEventListener("keydown",function(U){U.key!=="Enter"&&U.key!=="Space"||l()});
H=document.createElement("img");H.src=X?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";H.style.display="block";H.style.height="24px";H.style.width="24px";H.setAttribute("alt","");b.appendChild(H);return b};
lVa=function(X){var H=document.createElement("div");H.setAttribute("tabindex","0");H.setAttribute("aria-hidden","true");H.addEventListener("focus",function(){return void X.focus()});
return H};
A2Y=function(X){var H=document.createElement("div");H.style.backgroundColor="rgba(32,33,36,0.6)";H.style.bottom="0";H.style.left="0";H.style.position="fixed";H.style.right="0";H.style.top="0";H.style.transition=" opacity 150 ms linear";H.style.zIndex="2001";H.addEventListener("click",X);return H};
Yie=function(X,H){H.style.opacity="0";X.style.opacity="0";X.style.transform="translate(-50%, -50%) scale(0.8)"};
oDZ=function(X,H){X.sandbox&&X.sandbox.add&&(X.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),X.sandbox.add("allow-downloads"));X.src=H};
o8=function(X){this.JSC$19852_value_=void 0;this.childNodes_={};if(X){var H=_.ySH(X);X=_.ii(X);for(var l=0;l<H.length;l++)this.set(H[l],X[l])}};
bP=function(X){bc$.call(this,X)};
C9x=function(X,H){H=H===void 0?!1:H;this.parsedImageUrl_=null;X instanceof URp||($RN==void 0&&($RN=new KrZ),X=$RN.parse(X.toString(),H));X=this.parsedImageUrl_=X;X.JSC$19877_parsedOptions_==void 0&&((H=X.getOptions())||(H=""),X.JSC$19877_parsedOptions_=(new R_l).parse(H));bc$.call(this,X.JSC$19877_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;X=this.parsedImageUrl_;H=X.uri_.JSC$10342_port_;this.JSC$19879_domain_=X.uri_.JSC$10342_domain_+(H?":"+H:"");this.JSC$19879_query_=
this.parsedImageUrl_.uri_.JSC$10342_queryData_.toString()};
UM=function(X){_.RM.call(this,"upload");this.opts.query=X};
wcC=function(X){this.mode=4;this.data=X;this.parsedData=[];X=0;for(var H=this.data.length;X<H;X++){var l=[],b=this.data.charCodeAt(X);b>65536?(l[0]=240|(b&1835008)>>>18,l[1]=128|(b&258048)>>>12,l[2]=128|(b&4032)>>>6,l[3]=128|b&63):b>2048?(l[0]=224|(b&61440)>>>12,l[1]=128|(b&4032)>>>6,l[2]=128|b&63):b>128?(l[0]=192|(b&1984)>>>6,l[1]=128|b&63):l[0]=b;this.parsedData.push(l)}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))};
dRe=function(X){this.typeNumber=0;this.errorCorrectLevel=X===void 0?2:X;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
$a=function(X,H){if(X.length==void 0)throw Error("Lk`"+X.length+"`"+H);for(var l=0;l<X.length&&X[l]==0;)l++;this.num=Array(X.length-l+H);for(H=0;H<X.length-l;H++)this.num[H]=X[H+l]};
h_x=function(X,H){this.totalCount=X;this.dataCount=H};
Frl=function(){this.buffer=[];this.length=0};
BTd=function(){var X=!1;if(_.phy()){X=_.yZ();var H="";_.nNN()?(H=/Windows (?:NT|Phone) ([0-9.]+)/,H=(X=H.exec(X))?X[1]:"0.0"):_.ty()?(H=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,H=(X=H.exec(X))&&X[1].replace(/_/g,".")):_.zzy()?(H=/Mac OS X ([0-9_.]+)/,H=(X=H.exec(X))?X[1].replace(/_/g,"."):"10"):_.Bh(_.yZ(),"KaiOS")?(H=/(?:KaiOS)\/(\S+)/i,H=(X=H.exec(X))&&X[1]):_.phy()?(H=/Android\s+([^\);]+)(\)|;)/,H=(X=H.exec(X))&&X[1]):_.kKb()&&(H=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,H=(X=H.exec(X))&&X[1]);X=
H||""}return X};
yFp=function(X,H){this.JSC$19908__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(H)for(var l in H)this.JSC$19908__htOption[l]=H[l];this.JSC$19908__htOption.useSVG&&(qqp=siY);this.JSC$19908__android=BTd();this.JSC$19908__el=X;this._oQRCode=null;this._oDrawing=new qqp(this.JSC$19908__el,this.JSC$19908__htOption);this.JSC$19908__htOption.text&&(X=this.JSC$19908__htOption.text,this._oQRCode=new dRe(this.JSC$19908__htOption.correctLevel),MLZ(this._oQRCode,
X),H=this._oQRCode,uh5(H,!1,e_a(H)),this.JSC$19908__el.title=X,this._oDrawing.draw(this._oQRCode),this.makeImage())};
VLl=function(X,H,l,b,U){X.save();var K=new Path2D;K.roundRect(H,l,b*7,b*7,b*2);K.roundRect(H+b,l+b,b*5,b*5,b*1.3);K.roundRect(H+2*b,l+2*b,b*3,b*3,b);X.clip(K,"evenodd");X.fillStyle=U;X.fillRect(0,0,X.canvas.width,X.canvas.height);X.restore()};
fVl=function(){return P9y=P9y||new _.zB};
pcY=function(X){_.NF.call(this,"serverreachability",X)};
Sql=function(X){var H=fVl();H.dispatchEvent(new pcY(H,X))};
z_d=function(X,H){_.NF.call(this,"statevent",X);this.stat=H};
Ka=function(X){var H=fVl();H.dispatchEvent(new z_d(H,X))};
nDe=function(X,H,l,b){_.NF.call(this,"timingevent",X);this.size=H;this.rtt=l;this.retries=b};
kx5=function(X,H,l){var b=fVl();b.dispatchEvent(new nDe(b,X,H,l))};
xR$=function(X,H){if(typeof X!=="function")throw Error("Ok");return _.ok.setTimeout(function(){X()},H)};
R8=function(){this.redactEnabled_=!0};
Ca=function(X,H,l,b,U){this.JSC$19930_channel_=X;this.JSC$19930_channelDebug_=H;this.sid_=l;this.JSC$19930_rid_=b;this.JSC$19930_retryId_=U||1;this.JSC$19930_eventHandler_=new _.C8(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 DRp};
tLx=function(X,H){var l=new R8;l.debug("TestLoadImage: loading "+X);if(_.ok.Image){var b=new Image;b.onload=_.lH(wl,l,"TestLoadImage: loaded",!0,H,b);b.onerror=_.lH(wl,l,"TestLoadImage: error",!1,H,b);b.onabort=_.lH(wl,l,"TestLoadImage: abort",!1,H,b);b.ontimeout=_.lH(wl,l,"TestLoadImage: timeout",!1,H,b);_.ok.setTimeout(function(){if(b.ontimeout)b.ontimeout()},1E4);
b.src=X}else H(!1)};
Wr5=function(X,H){var l=new R8,b=new AbortController,U=setTimeout(function(){b.abort();wl(l,"TestPingServer: timeout",!1,H)},1E4);
fetch(X,{signal:b.signal}).then(function(K){clearTimeout(U);K.ok?wl(l,"TestPingServer: ok",!0,H):wl(l,"TestPingServer: server error",!1,H)}).catch(function(){clearTimeout(U);
wl(l,"TestPingServer: error",!1,H)})};
wl=function(X,H,l,b,U){try{X.debug(H),U&&(U.onload=null,U.onerror=null,U.onabort=null,U.ontimeout=null),b(l)}catch(K){}};
gDx=function(){this.JSC$19944_parser_=new EDe};
Gxd=function(X,H,l){return l&&l.internalChannelParams?l.internalChannelParams[X]||H:H};
dl=function(X){this.serverVersion_=0;this.JSC$19949_outgoingMaps_=[];this.JSC$19949_channelDebug_=new R8;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_=Gxd("failFast",
!1,X);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_=Gxd("baseRetryDelayMs",5E3,X);this.JSC$19949_retryDelaySeedMs_=
Gxd("retryDelaySeedMs",1E4,X);this.JSC$19949_forwardChannelMaxRetries_=Gxd("forwardChannelMaxRetries",2,X);this.JSC$19949_forwardChannelRequestTimeoutMs_=Gxd("forwardChannelRequestTimeoutMs",2E4,X);this.JSC$19949_xmlHttpFactory_=X&&X.xmlHttpFactory||void 0;this.networkTestUrl_=X&&X.networkTestUrl||void 0;this.usesFetchStreams_=X&&X.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19949_supportsCrossDomainXhrs_=X&&X.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=
new aVl(X&&X.concurrentRequestLimit);this.maxMapsPerRequest_=Math.min(X&&X.maxMessagesPerRequest||1E3,1E3);this.wireCodec_=new gDx;this.fastHandshake_=X&&X.fastHandshake||!1;this.encodeInitMessageHeaders_=X&&X.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19949_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=X&&X.blockingHandshake||!1;X&&X.disableRedact&&
this.JSC$19949_channelDebug_.disableRedact();X&&X.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&X&&X.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;X&&X.longPollingTimeout&&X.longPollingTimeout>0&&(this.longPollingTimeout_=X.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
ZcY=function(){};
hU=function(X,H){if(X instanceof hU)this.array_=X.array_;else{var l;if(l=_.ch(X))a:{for(var b=l=0;b<X.length;b++){if(!_.ch(X[b])||l>0&&X[b].length!=l){l=!1;break a}for(var U=0;U<X[b].length;U++)if(typeof X[b][U]!=="number"){l=!1;break a}l==0&&(l=X[b].length)}l=l!=0}if(l)this.array_=_.NW(X);else if(X instanceof _.tn)this.array_=icY(X.height,X.width);else if(typeof X==="number"&&typeof H==="number"&&X>0&&H>0)this.array_=icY(X,H);else throw Error("Sk");}this.size_=new _.tn(this.array_[0].length,this.array_.length)};
Fd=function(X,H){if(typeof X!=="function")throw Error("Ok");return _.ok.setTimeout(function(){X()},H)};
B7=function(X,H,l,b,U){this.JSC$19976_channel_=X;this.JSC$19976_channelDebug_=H;this.sid_=l;this.JSC$19976_rid_=b;this.JSC$19976_retryId_=U||1;this.timeout_=45E3;this.JSC$19976_eventHandler_=new _.C8(this);this.pollingTimer_=new _.ho;this.pollingTimer_.setInterval(250)};
qB=function(){};
OcZ=function(X,H,l,b,U){(new qB).debug("TestLoadImageWithRetries: "+U);if(b==0)l(!1);else{var K=U||0;b--;vDA(X,H,function(w){w?l(!0):_.ok.setTimeout(function(){OcZ(X,H,l,b,K)},K)})}};
vDA=function(X,H,l){var b=new qB;b.debug("TestLoadImage: loading "+X);var U=new Image;U.onload=function(){try{b.debug("TestLoadImage: loaded"),mRY(U),l(!0)}catch(K){}};
U.onerror=function(){try{b.debug("TestLoadImage: error"),mRY(U),l(!1)}catch(K){}};
U.onabort=function(){try{b.debug("TestLoadImage: abort"),mRY(U),l(!1)}catch(K){}};
U.ontimeout=function(){try{b.debug("TestLoadImage: timeout"),mRY(U),l(!1)}catch(K){}};
_.ok.setTimeout(function(){if(U.ontimeout)U.ontimeout()},H);
U.src=X};
mRY=function(X){X.onload=null;X.onerror=null;X.onabort=null;X.ontimeout=null};
QiU=function(X,H){this.JSC$19983_channel_=X;this.JSC$19983_channelDebug_=H;this.JSC$19983_parser_=new EDe};
sM=function(X,H,l){this.state_=1;this.JSC$19986_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19986_channelDebug_=new qB;this.JSC$19986_parser_=new EDe;this.firstTestResults_=X||null;this.secondTestResults_=H!=null?H:null;this.asyncTest_=l||!1};
TTY=function(){this.front_=[];this.back_=[]};
MB=function(X){this.JSC$20001_map_=new _.hB;this.size=0;X&&this.addAll(X)};
NTd=function(X,H){this.action=X;this.params=H||{}};
uP=function(X,H){_.$e.call(this);this.delay_=new _.RA(this.JSC$20075_onTick_,0,this);_.LY(this,this.delay_);this.JSC$20073_interval_=5E3;this.retryCount=this.nextTickTime_=0;if(typeof X==="function")H&&(X=(0,_.K8)(X,H));else if(X&&typeof X.handleEvent==="function")X=(0,_.K8)(X.handleEvent,X);else throw Error("za");this.JSC$20075_listener_=X};
ep=function(X,H,l,b,U,K,w,d,B,q,u,e,y,V,p,z){var t=this;l=l===void 0?!1:l;b=b===void 0?function(){return""}:b;
U=U===void 0?!1:U;K=K===void 0?!1:K;w=w===void 0?!1:w;d=d===void 0?function(){return _.rZ({})}:d;
B=B===void 0?!1:B;u=u===void 0?!1:u;e=e===void 0?!1:e;y=y===void 0?!1:y;V=V===void 0?!1:V;this.JSC$20076_pathPrefix_=X;this.defaultQueryParams_=H;this.pubsub_=new _.RF;this.retryLogger_=z;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!p)?p(function(){t.safeReconnect_()}):new uP(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_=l;this.JSC$20076_getXsrfToken_=b;this.useAsyncBrowserChannelHandler_=K;this.getAuthorizationHeader_=d;this.getAuthorizationHeaderSync_=q;this.enableCachedUpdateAuthorizationHeader_=w;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.rZ();this.enableLoungeTokenRefresh_=U;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
B;this.disableMdxAuthForNonPlaybackMessages_=u;this.disableMdxAuthForAdMessages_=e;this.enableMdxAuthForConnectionOnly_=y;this.disableMdxAuthForShortsMessages_=V;this.JSC$20076_channelOpenedCounter=new cFp;this.JSC$20076_channelClosedCounter=new jiy;this.channelMessageSentCounter=new rFd;this.JSC$20076_channelMessageReceivedCounter=new JFp;this.JSC$20076_channelErrorCounter=new LrA;this.pendingMapsOnClosedCounter=new Yqe;this.undeliveredMapsOnClosedCounter=new IVa};
AFp=function(X){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;X=X||document.location.href;var H=Number(_.Qh(X)[4]||null)||"";H&&(this.port=":"+H);this.domain=_.Nb(X)||"";X=_.yZ();X.search("MSIE")>=0&&_.el(X.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
y1=function(X){X=X||{};this.name=X.name||"";this.id=X.id||X.screenId||"";this.token=X.token||X.loungeToken||"";this.uuid=X.uuid||X.dialId||"";this.idType=X.screenIdType||"normal";this.secret=X.screenIdSecret||""};
X55=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(X){var H=Math.random()*16|0;return(X=="x"?H:H&3|8).toString(16)})};
Hq5=function(X){return _.qz(X,function(H){return{key:H.id,name:H.name}})};
lpU=function(X,H){return iq(X,function(l){return l||H?!l!=!H?!1:l.id==H.id:!0})};
V1=function(X,H){return iq(X,function(l){return ola(l,H)})};
Ro$=function(){var X=bqy(),H=UqN();if($qy()){var l=X,b=_.aLm(l,H);b<0&&_.ENb(l,-(b+1),0,H)}X=KaU(X);if(X.length==0)try{_.hPZ("remote_sid")}catch(U){}else try{_.dL("remote_sid",X.join(","),-1)}catch(U){}};
bqy=function(){var X=_.Ce("yt-remote-connected-devices")||[];X.sort(_.GKy);return X};
KaU=function(X){if(X.length==0)return[];var H=X[0].indexOf("#"),l=H==-1?X[0]:X[0].substring(0,H);return _.qz(X,function(b,U){return U==0?b:b.substring(l.length)})};
Cvx=function(X){_.R6("yt-remote-connected-devices",X,86400)};
UqN=function(){if(w5$)return w5$;var X=_.Ce("yt-remote-device-id");X||(X=X55(),_.R6("yt-remote-device-id",X,31536E3));for(var H=bqy(),l=1,b=X;_.vh(H,b);)l++,b=X+"#"+l;return w5$=b};
dqd=function(){return _.Ce("yt-remote-session-browser-channel")};
$qy=function(){return _.Ce("yt-remote-session-screen-id")};
BCA=function(X){X.length>5&&(X=X.slice(X.length-5));var H=_.qz(hoZ(),function(b){return b.loungeToken}),l=_.qz(X,function(b){return b.loungeToken});
_.t6k(l,function(b){return!_.vh(H,b)})&&Fal();
_.R6("yt-remote-local-screens",X,31536E3)};
hoZ=function(){return _.Ce("yt-remote-local-screens")||[]};
Fal=function(){_.R6("yt-remote-lounge-token-expiration",!0,86400)};
ql5=function(X){X||(_.wu("yt-remote-session-screen-id"),_.wu("yt-remote-session-video-id"));Ro$();X=bqy();_.Oy(X,UqN());Cvx(X)};
Mw5=function(){s1Y();return P7?!!P7.get("yt-remote-use-staging-server"):!1};
s1Y=function(){if(!P7){var X=_.Vl();X&&(P7=new _.sZ(X))}};
Vwl=function(X,H,l,b,U){l=l===void 0?function(){return""}:l;
var K=function(){return new ep(fa(X,"/bc"),H,!1,l,b)};
return _.P("enable_mdx_web_channel_desktop")?new uRY(function(){return new eoA(fa(X,"/wc"),H,l)}):new yae(K,U)};
Sll=function(){var X=Pvl;fpN();pa.push(X);p5a()};
Sp=function(X,H){fpN();var l=zoy(X,String(H));pa.length==0?nlA(l):(p5a(),_.Ot(pa,function(b){b(l)}))};
zs=function(X){Sp("CP",X)};
fpN=function(){pa||(pa=_.ij("yt.mdx.remote.debug.handlers_")||[],_.cQ("yt.mdx.remote.debug.handlers_",pa))};
nlA=function(X){var H=(k0e+1)%50;k0e=H;xqN[H]=X;DqC||(DqC=H==49)};
p5a=function(){var X=pa;if(xqN[0]){var H=DqC?k0e:-1,l={};do l={record$jscomp$15:void 0},H=(H+1)%50,l.record$jscomp$15=xqN[H],_.Ot(X,function(b){return function(U){U(b.record$jscomp$15)}}(l));
while(H!=k0e);xqN=Array(50);k0e=-1;DqC=!1}};
zoy=function(X,H){var l=(Date.now()-twl)/1E3;l.toFixed&&(l=l.toFixed(3));var b=[];b.push("[",l+"s","] ");b.push("[","yt.mdx.remote","] ");b.push(X+": "+H,"\n");return b.join("")};
ka=function(X){na.call(this);this.JSC$20105_logName_=X;this.screens=[]};
Da=function(X){ka.call(this,"LocalScreenService");this.JSC$20112_http_=X;this.loungeTokenRefreshTimer_=NaN;xa(this);this.info("Initializing with "+Waa(this.screens))};
tU=function(X,H){H=H===void 0?!1:H;ka.call(this,"ScreenService");this.JSC$20118_http_=X;this.disableAutomaticScreenCache_=H;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};ElN(this)};
W7=function(X,H,l){na.call(this);this.JSC$20122_logName_=l;this.JSC$20122_screenService_=X;this.receiver_=H;this.screen_=null};
Lax=function(X,H,l){l.disableCastApi?EM("Cannot initialize because disabled by Mdx config."):gl5()?G0e(X,l)&&(apx(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Zq$(H):(window.__onGCastApiAvailable=function(b,U){b?Zq$(H):(gl("Failed to load cast API: "+U),iqd(!1),apx(!1),_.wu("yt-remote-cast-available"),_.wu("yt-remote-cast-receiver"),vlY(),H(!1))},l.loadCastApiSetupScript?_.VX(Oqx):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
mqU()>=60&&Q1a():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?TCY():mqU()>=89?NCd():(cad(),j1N(ray.map(JaN))))):EM("Cannot initialize because not running Chrome")};
vlY=function(){EM("dispose");var X=Gs();X&&X.dispose();_.cQ("yt.mdx.remote.cloudview.instance_",null);Yla(!1);_.Ipk(IpC);IpC.length=0};
AaU=function(){return!!_.Ce("yt-remote-cast-installed")};
XS5=function(){var X=_.Ce("yt-remote-cast-receiver");return X?X.friendlyName:null};
HlC=function(){EM("clearCurrentReceiver");_.wu("yt-remote-cast-receiver")};
lH5=function(){return AaU()?Gs()?Gs().getCastSession():(gl("getCastSelector: Cast is not initialized."),null):(gl("getCastSelector: Cast API is not installed!"),null)};
blp=function(X,H){oja()?Gs().setConnectedScreenStatus(X,H):gl("setConnectedScreenStatus called before ready.")};
gl5=function(){var X=_.yZ().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.IJ||X};
G0e=function(X,H){var l=!1;Gs()||(X=new a8(X,H),X.subscribe("yt-remote-cast2-availability-change",function(b){_.R6("yt-remote-cast-available",b);vo("yt-remote-cast2-availability-change",b)}),X.subscribe("yt-remote-cast2-receiver-selected",function(b){EM("onReceiverSelected: "+b.friendlyName);
_.R6("yt-remote-cast-receiver",b);vo("yt-remote-cast2-receiver-selected",b)}),X.subscribe("yt-remote-cast2-receiver-resumed",function(b){EM("onReceiverResumed: "+b.friendlyName);
_.R6("yt-remote-cast-receiver",b);vo("yt-remote-cast2-receiver-resumed",b)}),X.subscribe("yt-remote-cast2-session-change",function(b){EM("onSessionChange: "+Un5(b));
b||_.wu("yt-remote-cast-receiver");vo("yt-remote-cast2-session-change",b)}),_.cQ("yt.mdx.remote.cloudview.instance_",X),l=!0);
EM("cloudview.createSingleton_: "+l);return l};
Gs=function(){return _.ij("yt.mdx.remote.cloudview.instance_")};
Zq$=function(X){iqd(!0);apx(!1);Gs().init(!1,function(H){H?(Yla(!0),_.AaN("yt-remote-cast2-api-ready")):(gl("Failed to initialize cast API."),iqd(!1),_.wu("yt-remote-cast-available"),_.wu("yt-remote-cast-receiver"),vlY());X(H)})};
EM=function(X){Sp("cloudview",X)};
gl=function(X){Sp("cloudview",X)};
iqd=function(X){EM("setCastInstalled_ "+X);_.R6("yt-remote-cast-installed",X)};
oja=function(){return!!_.ij("yt.mdx.remote.cloudview.apiReady_")};
Yla=function(X){EM("setApiReady_ "+X);_.cQ("yt.mdx.remote.cloudview.apiReady_",X)};
apx=function(X){_.cQ("yt.mdx.remote.cloudview.initializing_",X)};
Za=function(X){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(X)};
sqy=function(X){s1Y();if(!P7||!P7.get("yt-remote-disable-remote-module-for-dev")){X=_.gx("MDX_CONFIG")||X;A$Z();Ro$();$nZ||($nZ=new AFp(X?X.loungeApiHost:void 0),Mw5()&&($nZ.basePath="/api/loungedev"));iP||(iP=_.ij("yt.mdx.remote.deferredProxies_")||[],_.cQ("yt.mdx.remote.deferredProxies_",iP));KyY();var H=Riy();if(!H){var l=new tU($nZ,X?X.disableAutomaticScreenCache||!1:!1);_.cQ("yt.mdx.remote.screenService_",l);H=Riy();var b={};X&&(b={appId:X.appId,disableDial:X.disableDial,theme:X.theme,loadCastApiSetupScript:X.loadCastApiSetupScript,
disableCastApi:X.disableCastApi,enableDialLoungeToken:X.enableDialLoungeToken,enableCastLoungeToken:X.enableCastLoungeToken,forceMirroring:X.forceMirroring});_.cQ("yt.mdx.remote.enableConnectWithInitialState_",X?X.enableConnectWithInitialState||!1:!1);Lax(l,function(K){K?CEl()&&blp(CEl(),"YouTube TV"):l.subscribe("onlineScreenChange",function(){vo("yt-remote-receiver-availability-change")})},b)}if(X&&!_.ij("yt.mdx.remote.initialized_")){_.cQ("yt.mdx.remote.initialized_",!0);
wSy("Initializing: "+_.yD(X));v7.push(_.AV("yt-remote-cast2-api-ready",function(){vo("yt-remote-api-ready")}));
v7.push(_.AV("yt-remote-cast2-availability-change",function(){vo("yt-remote-receiver-availability-change")}));
v7.push(_.AV("yt-remote-cast2-receiver-selected",function(){dn$();vo("yt-remote-auto-connect","cast-selector-receiver")}));
v7.push(_.AV("yt-remote-cast2-receiver-resumed",function(){vo("yt-remote-receiver-resumed","cast-selector-receiver")}));
v7.push(_.AV("yt-remote-cast2-session-change",hiY));v7.push(_.AV("yt-remote-connection-change",function(K){K?blp(CEl(),"YouTube TV"):Fy5()||(blp(null,null),HlC())}));
v7.push(_.AV("yt-remote-cast2-session-failed",function(){vo("yt-remote-connection-failed")}));
b=Bdd();X.isAuto&&(b.id+="#dial");var U=X.capabilities||[];U.length>0&&(b.capabilities=U);b.name=X.device;b.app=X.app;(X=X.theme)&&(b.theme=X);wSy(" -- with channel params: "+_.yD(b));b?(_.R6("yt-remote-session-app",b.app),_.R6("yt-remote-session-name",b.name)):(_.wu("yt-remote-session-app"),_.wu("yt-remote-session-name"));_.cQ("yt.mdx.remote.channelParams_",b);H.start();CEl()||qme()}}};
u8Z=function(){var X=Riy().instance_.$_gos();var H=M2$();H&&OM()&&(lpU(X,H)||X.push(H));return Hq5(X)};
eid=function(){var X=u8Z(),H=M2$();H||(H=Fy5());return iq(X,function(l){return H&&ola(H,l.key)?!0:!1})};
M2$=function(){var X=CEl();if(!X)return null;var H=Riy().getScreens();return V1(H,X)};
hiY=function(X){wSy("remote.onCastSessionChange_: "+Un5(X));if(X){var H=M2$();if(H&&H.id==X.id){if(blp(H.id,"YouTube TV"),X.idType=="shortLived"&&(X=X.token))yw$&&(yw$.token=X),(H=OM())&&H.setLoungeToken(X)}else H&&V2x(),PEd(X,1)}else OM()&&V2x()};
V2x=function(){oja()?Gs().stopSession():gl("stopSession called before API ready.");var X=OM();X&&(X.disconnect(1),fHZ(null))};
pS$=function(){var X=OM();return X&&X.getProxyState()!=3?new mM(OM(),void 0):null};
wSy=function(X){Sp("remote",X)};
Riy=function(){if(!Sml){var X=_.ij("yt.mdx.remote.screenService_");Sml=X?new ziC(X):null}return Sml};
CEl=function(){return _.ij("yt.mdx.remote.currentScreenId_")};
njA=function(X){_.cQ("yt.mdx.remote.currentScreenId_",X)};
dn$=function(){_.cQ("yt.mdx.remote.connectData_",null)};
OM=function(){return _.ij("yt.mdx.remote.connection_")};
fHZ=function(X){var H=OM();dn$();X||njA("");_.cQ("yt.mdx.remote.connection_",X);iP&&(_.Ot(iP,function(l){l(X)}),iP.length=0);
H&&!X?vo("yt-remote-connection-change",!1):!H&&X&&vo("yt-remote-connection-change",!0)};
Fy5=function(){var X=$qy();if(!X)return null;var H=Riy();if(!H)return null;H=H.getScreens();return V1(H,X)};
PEd=function(X,H){kEN?yw$=X:(njA(X.id),X=new Q1($nZ,X,Bdd(),_.ij("yt.mdx.remote.enableConnectWithInitialState_")||!1),X.connect(H,_.ij("yt.mdx.remote.connectData_")),X.subscribe("beforeDisconnect",function(l){vo("yt-remote-before-disconnect",l)}),X.subscribe("beforeDispose",function(){OM()&&fHZ(null)}),X.subscribe("browserChannelAuthError",function(){var l=M2$();
l&&l.idType=="shortLived"&&(oja()?Gs().handleBrowserChannelAuthError():gl("refreshLoungeToken called before API ready."))}),fHZ(X))};
qme=function(){var X=Fy5();X?(wSy("Resume connection to: "+Un5(X)),PEd(X,0)):(ql5(),HlC(),wSy("Skipping connecting because no session screen found."))};
KyY=function(){var X=Bdd();if(_.Bb.isEmpty(X)){X=UqN();var H=_.Ce("yt-remote-session-name")||"",l=_.Ce("yt-remote-session-app")||"";X={device:"REMOTE_CONTROL",id:X,name:H,app:l,mdxVersion:3};X.authuser=String(_.gx("SESSION_INDEX","0"));(H=_.gx("DELEGATED_SESSION_ID"))&&(X.pageId=String(H));_.cQ("yt.mdx.remote.channelParams_",X)}};
Bdd=function(){return _.ij("yt.mdx.remote.channelParams_")||{}};
xne=function(){var X,H;return _.h(function(l){if(l.nextAddress==1)return(_.glO()||_.P("use_new_nwl"))&&_.Dqk().isNetworkAvailable()?l.yield(_.jv(),2):l.return();if(l.nextAddress!=3)return(X=l.yieldResult)?l.yield(iry(X),3):l.return();H=l.yieldResult;if(!H.length)return l.return();H.forEach(function(b){var U={timestamp:b.timestamp};b=b.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:b.appShellAssetLoadReport,options:U}:b.clientError?{payloadName:"clientError",payload:b.clientError,
options:U}:void 0;b&&_.Sh(b.payloadName,b.payload,b.options)});
H.length===100&&_.Ss.addLowPriorityJob(xne);_.m5(l)})};
ilN=function(X,H,l){l=l===void 0?!1:l;var b=Math.max(X.width,Dnl);if(_.P("kevlar_watch_feed_big_thumbs")&&X.width>=1550-Ts()&&X.height>=800)b-=t25;else if(X.width>=NB){var U=Wye+Ejp+c7;_.P("kevlar_watch_feed_big_thumbs")&&(U=gjA);b-=U}else b-=Wye;b=Math.min(b,GEU);U=240;l&&(U=380);H<.5624||(!_.P("kevlar_watch_flexy_disable_small_window_sizing")&&(X.height<630&&X.width>=657||X.height>=630&&X.width>=NB&&X.width<1327)?U=360:!_.P("kevlar_watch_flexy_disable_large_window_sizing")&&X.height>=630&&X.width>=
1327&&(U=480));var K=Math.min(b*H,X.height-(56+aHy+ZlN));K=Math.max(K,U);H<1?b=K/H:X.width>=NB&&(b=ilN(X,.5625,l).width);return new _.tn(Math.round(b),Math.round(K))};
vja=function(X){if(X.playerResponse){if(X=X.playerResponse,X.messages&&X.messages.length>0&&(X=X.messages.find(function(H){return!(!H||!H.mealbarPromoRenderer)}))&&X.mealbarPromoRenderer)return X.mealbarPromoRenderer}else if(X.response&&(X=X.response)&&X.overlay&&X.overlay.mealbarPromoRenderer)return X.overlay.mealbarPromoRenderer};
Oll=function(X){if(X.response){var H=X.response;if(H&&H.overlay&&H.overlay.tooltipRenderer)return H.overlay.tooltipRenderer}if(X.playerResponse&&(X=X.playerResponse,X.messages&&X.messages.length>0&&(X=X.messages.find(function(l){return!(!l||!l.tooltipRenderer)}))&&X.tooltipRenderer))return X.tooltipRenderer};
mn5=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
Qql=function(){var X,H,l;return _.h(function(b){switch(b.nextAddress){case 1:return b.yield(_.dD.getInstance(),2);case 2:X=b.yieldResult;if(!X){H=void 0;b.jumpTo(3);break}return b.yield(X.get("lmqf"),4);case 4:H=b.yieldResult;case 3:switch((l=H)||(l="SD"),l){case "HD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return b.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
Tde=function(X){var H,l,b;return _.h(function(U){if(U.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.P("disable_av1_setting")){var K=window.localStorage["yt-player-av1-pref"];K=K==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":K==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else K="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(H=X===K)return U.jumpTo(2);b=l=X;return U.yield(Qql(),3)}U.nextAddress!=2&&(H=b===U.yieldResult);return U.return(H)})};
cwp=function(){var X=_.Yy("user_engagement_experiments_rate_limit_ms"),H=Nd$.get("last-user-engagement-exp-trigger-timestamp");return!H||(0,_.Jl)()>=H+X?(Nd$.set("last-user-engagement-exp-trigger-timestamp",(0,_.Jl)()),!0):!1};
jp=function(X,H,l,b,U){H=H===void 0?null:H;l=l===void 0?null:l;b=b===void 0?null:b;U=U===void 0?null:U;X={youThereEventType:X};l&&(X.lactThresholdMs=l.lactThresholdMs,X.mediaPosSec=l.promptDelaySec,X.lactServerRequestMs=l.lactServerRequestMs,X.triggerReason=l.triggerReason);U!=null&&(X.renderingMediaPosSec=Math.round(U));H||(H=_.Bi());H&&(X.clientScreenNonce=H);b&&(X.clientPlaybackNonce=b);_.Sh("youThere",X)};
rwC=function(X){if(!jqp&&(X=X||_.gx("ZWIEBACK_PING_URLS"))&&X.length){jqp=!0;for(var H=0;H<X.length;H++)_.aw(X[H])}};
JwZ=function(X){var H=0;X.indexOf("h")!=-1&&(X=X.split("h"),H=X[0]*60*60,X=X[1]);X.indexOf("m")!=-1&&(X=X.split("m"),H=X[0]*60+H,X=X[1]);X.indexOf("s")!=-1?(X=X.split("s"),H=X[0]*1+H):H=X*1+H;return H};
YmC=function(X){if(_.Bb.get(_.gx("PLAYER_VARS",{}),"privembed",!1)!="1"){X&&x9e();try{LyN().then(function(){},function(){}),_.b0(YmC,18E5)}catch(H){_.a0(H)}}};
IHN=function(){var X=_.oO(),H=X.getFlag(119),l=window.devicePixelRatio>1;document.body&&_.gB(document.body,"exp-invert-logo")&&(l&&!_.gB(document.body,"inverted-hdpi")?_.kl(document.body,"inverted-hdpi"):!l&&_.gB(document.body,"inverted-hdpi")&&_.nq(document.body,"inverted-hdpi"));H!=l&&(_.bH(0,119,l),X.save())};
Awy=function(){_.Yy("service_worker_push_logged_out_prompt_watches")!=-1&&Nc("WatchCount").then(function(X){X>=100||YcA("WatchCount",X+1)})};
X6l=function(X){return X.filter(function(H){return"ypcGetCartEndpoint"in H||"ypcFixInstrumentEndpoint"in H})};
HSC=function(X){return X.filter(function(H){return!_.f(H,_.Imv)})};
lIZ=function(X){switch(X){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}};
o$y=function(X,H,l){var b=_.sl(l);X&&H&&b&&X.getPlayerPromise().then(function(U){_.IQL(b)&&_.z3();(new _.qC(U)).executeCommand(b,H);_.P("continue_playback_on_desktop_companion_click")||U.pauseVideo()})};
bS$=function(X){var H=_.aq(),l;if(l=_.ij("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;l=(b=l())==null?void 0:b.layoutId}else l=null;o$y(H,l,X)};
Uhe=function(X){var H=_.aq(),l;if(l=_.ij("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;l=(b=l())==null?void 0:b.layoutId}else l=null;o$y(H,l,X)};
rl=function(X,H){var l=X<0?"-":"";X=Math.abs(X);var b=Math.floor(X/3600),U=Math.floor(X)%3600,K=Math.floor(U/60);U=Math.floor(U)%60;var w="";(H===void 0?0:H)&&(w="."+Math.round((X-Math.floor(X))*10));return b>0?l+b+":"+(K<10?"0"+K:""+K)+":"+(U<10?"0"+U:""+U)+w:l+K+":"+(U<10?"0"+U:""+U)+w};
$h5=function(X){var H=X.match(/[^0-9:\.]/g);if(H&&H.length>0)return null;X=X.split(":");if(X.length===0||X.length>3)return null;H=1;for(var l=0;X.length>0;){var b=X.pop();if(b===void 0)break;var U=Number(b);if(b===""||isNaN(U))return null;l+=U*H;H*=60}return l};
KCA=function(X,H,l,b){X=Math.max(l,X);H=Math.min(H,b-l);X+H>b?(l=b,X=l-H):l=X+H;return{start:X,end:l}};
Rhl=function(X,H,l,b,U,K){X<l?X=l:X+U>b&&(X=b-U);H>b&&(H=b);H=Math.min(X+K,Math.max(X+U,H));return{start:X,end:H}};
C4a=function(X,H,l,b,U,K){H>b?H=b:H-U<l&&(H=l+U);X<l&&(X=l);X=Math.min(H-U,Math.max(H-K,X));return{start:X,end:H}};
ssC=function(X,H){var l=_.Eq(X,{}),b=w6d("top",H),U=w6d("bottom",H),K=w6d("left",H),w=w6d("right",H);return _.rC({top:function(){return JU(l().position,b)},
bottom:function(){return JU(l().position,U)},
left:function(){return JU(l().position,K)},
right:function(){return JU(l().position,w)},
position:function(){return JU(l().positionType,dhp)},
height:function(){return JU(l().height,La)},
width:function(){return JU(l().width,La)},
"min-width":function(){return JU(l().minWidth,La)},
"min-height":function(){return JU(l().minHeight,La)},
"max-width":function(){return JU(l().maxWidth,La)},
"max-height":function(){return JU(l().maxHeight,La)},
"aspect-ratio":function(){return JU(l().aspectRatio,String)},
"margin-top":function(){return JU(l().margin,b)},
"margin-bottom":function(){return JU(l().margin,U)},
"margin-left":function(){return JU(l().margin,K)},
"margin-right":function(){return JU(l().margin,w)},
"padding-top":function(){return JU(l().padding,b)},
"padding-bottom":function(){return JU(l().padding,U)},
"padding-left":function(){return JU(l().padding,K)},
"padding-right":function(){return JU(l().padding,w)},
"flex-direction":function(){return JU(l().flexDirection,hhZ)},
"justify-content":function(){return JU(l().justifyContent,FCZ)},
"align-items":function(){return JU(l().alignItems,Bjy)},
"flex-grow":function(){return JU(l().flexGrow,String)},
"flex-shrink":function(){return JU(l().flexShrink,String)},
"flex-basis":function(){return JU(l().flexBasis,La)},
"align-self":function(){return JU(l().alignSelf,Bjy)},
"flex-wrap":function(){return JU(l().flexWrap,qsy)},
"align-content":function(){return JU(l().alignContent,Bjy)}})};
JU=function(X,H){return X!==void 0?H(X):void 0};
qsy=function(X){switch(X){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
dhp=function(X){switch(X){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Bjy=function(X){switch(X){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"}};
FCZ=function(X){switch(X){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"}};
hhZ=function(X){switch(X){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"}};
w6d=function(X,H){var l=H==="rtl";switch(X){case "top":var b=MuC;break;case "bottom":b=uAd;break;case "left":b=ehZ;break;default:b=y5d}return function(U){return JU(b(U,l),La)}};
MuC=function(X){var H=X.top;var l=X.vertical;X=X.all;var b;return(b=H!=null?H:l)!=null?b:X};
uAd=function(X){var H=X.bottom;var l=X.vertical;X=X.all;var b;return(b=H!=null?H:l)!=null?b:X};
ehZ=function(X,H){var l=X.left;var b=X.end;var U=X.start;var K=X.horizontal;X=X.all;var w,d;return(d=(w=l!=null?l:H?b:U)!=null?w:K)!=null?d:X};
y5d=function(X,H){var l=X.right;var b=X.end;var U=X.start;var K=X.horizontal;X=X.all;var w,d;return(d=(w=l!=null?l:H?U:b)!=null?w:K)!=null?d:X};
La=function(X){var H=X.value;switch(X.unit){case "YPC_DIMENSION_UNIT_POINT":return H+"px";case "YPC_DIMENSION_UNIT_FRACTION":return H+"%";default:return""+H}};
VuZ=function(X){switch(X){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"}};
P4l=function(X){var H=X!=null?X:{};X=H.fontRole;var l=H.fontSize;H=H.fontWeight;if(X!==null&&l!==null)switch(X){case "YPC_FONT_ROLE_DISPLAY":switch(l){case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(l){case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return H===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(l){case "YPC_FONT_SIZE_XL":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return H==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
zhN=function(X,H,l){function b(e){return Object.values(e).map(function(y){var V=y.productId;y=y.pricingOptionIndex;return Ya(U(V).pricingOptions,y).pricingOptionId})}
function U(e){return B().get(e)}
function K(e){e=b(e);l(e)}
function w(e,y){return Array.from(I8(e.pricingOptions)).filter(function(V){V=_.C(V);V.next();V=V.next().value;return AU(V.pricingGroupAttributes,y)}).map(function(V){return _.C(V).next().value})}
var d=fId([X,H],function(e,y){var V=e==null?void 0:e.selectedPricingOptions;e={};var p=!0;if(V&&y.length)for(var z=_.C(y),t=z.next();!t.done;t=z.next()){t=t.value;var W=p6l(t.pricingOptions,function(Q){a:{Q=Q.pricingOptionId;for(var v=_.C(V),J=v.next();!J.done;J=v.next())if(J.value===Q){Q=!0;break a}Q=!1}return Q});
if(W>=0){p=!1;var G=Ya(t.pricingOptions,W),r=void 0;e[t.groupId]={productId:t.productId,pricingOptionIndex:W,pricingGroupAttributes:(r=G)==null?void 0:r.pricingGroupAttributes}}}p&&y.length&&(p=Ya(y[0].pricingOptions,0),e[y[0].groupId]={productId:y[0].productId,pricingOptionIndex:0,pricingGroupAttributes:p==null?void 0:p.pricingGroupAttributes});return e}),B=fId([H],function(e){return new Map(e.map(function(y){return[y.productId,
y]}))}),q=fId([H],function(e){var y=new Map;
e=_.C(e);for(var V=e.next();!V.done;V=e.next()){var p=V.value;V=p.groupId;var z=p.productId;p=_.C(I8(p.pricingOptions));for(var t=p.next();!t.done;t=p.next()){var W=_.C(t.value);t=W.next().value;W=W.next().value;y.set(W.pricingOptionId,{groupId:V,productId:z,index:t,pricingOption:W,pricingGroupAttributes:W.pricingGroupAttributes})}}return y}),u=fId([H],function(e){var y=new Map;
e=_.C(e);for(var V=e.next();!V.done;V=e.next()){var p=V.value;V=p.groupId;var z=p.productId,t=void 0;p=_.C(I8((t=p.pricingGroups)!=null?t:[]));for(t=p.next();!t.done;t=p.next()){var W=_.C(t.value);t=W.next().value;W=W.next().value;y.set(W.pricingGroupId,{groupId:V,productId:z,index:t,pricingGroup:W,pricingGroupAttributes:W.pricingGroupAttributes})}}return y});
return{getProductById:U,isProductSelected:function(e){var y=U(e);if(!y)return!1;var V;return((V=d()[y.groupId])==null?void 0:V.productId)===e},
getSelectedPricingOptions:function(){return Object.values(d()).map(function(e){var y=e.productId;e=e.pricingOptionIndex;return Ya(U(y).pricingOptions,e)})},
getSelectedPricingGroupAttributesByGroupId:function(e){var y;return(e=(y=d()[e])==null?void 0:y.pricingGroupAttributes)?Array.from(e):void 0},
getSelectedProductByGroupId:function(e){var y;return(e=(y=d()[e])==null?void 0:y.productId)?U(e):void 0},
onProductSelected:function(e){var y=U(e);if(y){var V=d(),p;if(((p=V[y.groupId])==null?void 0:p.productId)!==e){var z=(p=(z=V[y.groupId])==null?void 0:z.productId)?U(p):void 0;var t;p=(t=V[y.groupId])==null?void 0:t.pricingGroupAttributes;var W;t=(W=V[y.groupId])==null?void 0:W.pricingOptionIndex;if(z&&t!==void 0)if(p){W=w(z,p).indexOf(t);if(W===-1)throw Error("Cl`"+t+"`"+z.productId);t=w(y,p);W=W<t.length?t[W]:t.length>0?t[0]:0}else W=t<Xu(y.pricingOptions)?t:0;else W=0;Xu(y.pricingOptions)<=W&&(W=
0);t=Ya(y.pricingOptions,W);var G;z={};K(Object.assign({},V,(z[y.groupId]={productId:e,pricingOptionIndex:W,pricingGroupAttributes:(G=t==null?void 0:t.pricingGroupAttributes)!=null?G:[]},z)))}}},
onPricingOptionSelected:function(e){var y=q().get(e);if(y){e=y.groupId;var V=y.productId;y=y.index;var p=d(),z,t;if(((z=p[e])==null?void 0:z.productId)!==V||((t=p[e])==null?void 0:t.pricingOptionIndex)!==y){var W,G;z={};K(Object.assign({},p,(z[e]={productId:V,pricingOptionIndex:y,pricingGroupAttributes:(G=(W=p[e])==null?void 0:W.pricingGroupAttributes)!=null?G:[]},z)))}}},
onPricingGroupSelected:function(e){var y=u().get(e);if(y){e=y.groupId;var V=y.productId,p=y.pricingGroup.pricingGroupAttributes,z=U(V);if(z){y=d();var t=y[e].pricingGroupAttributes,W;if(((W=y[e])==null?void 0:W.productId)!==V||!AU(Ssp(t,Xu(p)),p)){W=Array.from(p);for(p=Xu(p);p<Xu(t);p++){var G="",r=!1,Q=Array.from(W);Q.push(Ya(t,p));for(var v=_.C(z.pricingGroups),J=v.next();!J.done;J=v.next())if(J=J.value,AU(J.pricingGroupAttributes,Q)){W.push(Ya(t,p));r=!0;break}else G===""&&Xu(J.pricingGroupAttributes)===
Q.length&&AU(Ssp(J.pricingGroupAttributes,W.length),W)&&(G=Ya(J.pricingGroupAttributes,p));r||W.push(G)}G=y[e].pricingOptionIndex;p=[];r=new Map;Q=0;z=_.C(I8(z.pricingOptions));for(v=z.next();!v.done;v=z.next())J=_.C(v.value),v=J.next().value,J=J.next().value,AU(J.pricingGroupAttributes,W)&&p.push(v),AU(J.pricingGroupAttributes,t)&&r.set(v,Q++);p.length===0?t=0:(t=r.get(G),t=t!==void 0&&t<p.length?p[t]:p[0]);z={};K(Object.assign({},y,(z[e]={productId:V,pricingOptionIndex:t,pricingGroupAttributes:W},
z)))}}}},
onClearGroupSelected:function(e){var y=d();y[e]&&(y=Object.fromEntries(Object.entries(y).filter(function(V){return _.C(V).next().value!==e})),K(y))}}};
I8=function(X){return function l(){var b,U,K,w,d;return _.IB(l,function(B){switch(B.nextAddress){case 1:_.iQ(B,2),b=0,U=_.C(X),K=U.next();case 4:if(K.done){B.jumpTo(2);break}w=K.value;d=_.AG;return B.yield([b++,w],7);case 7:d(B.yieldResult);K=U.next();B.jumpTo(4);break;case 2:_.GS(B),_.vJ(B,0)}})}()};
p6l=function(X,H){X=_.C(I8(X));for(var l=X.next();!l.done;l=X.next()){var b=_.C(l.value);l=b.next().value;b=b.next().value;if(H(b))return l}return-1};
Xu=function(X){var H=0;for(X=X[Symbol.iterator]();!X.next().done;)++H;return H};
Ya=function(X,H){X=_.C(I8(X));for(var l=X.next();!l.done;l=X.next()){var b=_.C(l.value);l=b.next().value;b=b.next().value;if(l===H)return b}};
AU=function(X,H){if(!X&&!H)return!0;if(!X||!H)return!1;X=Array.from(X);H=Array.from(H);if(X.length!==H.length)return!1;for(var l=0;l<X.length;l++)if(X[l]!==H[l])return!1;return!0};
Ssp=function(X,H){H=H===void 0?Infinity:H;var l=[];X=_.C(I8(X));for(var b=X.next();!b.done;b=X.next()){var U=_.C(b.value);b=U.next().value;U=U.next().value;if(b>=H)break;b>=0&&l.push(U)}return l};
fId=function(X,H){var l,b;return function(){for(var U=X.map(function(w){return w()}),K=0;K<U.length;K++)if(!l||U[K]!==l[K]){l=U;
b=H.apply(null,_.LJ(U));break}return b}};
n$l=function(X,H,l){var b=[];X=_.C(X);for(var U=X.next();!U.done;U=X.next()){U=U.value;var K=void 0;((K=H)==null?0:K.length)&&!AU(U.pricingGroupAttributes,H)||b.push({pricingOption:U,isSelected:l.includes(U.pricingOptionId)})}return b};
kex=function(X,H){return _.JY(X.entities,"pdpStateEntity",H)};
xhZ=function(X){var H,l;return!!(X.productId&&X.groupId&&((H=X.pricingOptions)==null?0:H.length)&&X.pricingOptions.every(function(b){return b.pricingOptionId})&&((l=X.pricingGroups)==null||!l.length||Array.isArray(X.pricingGroups)&&X.pricingGroups.every(function(b){return b.pricingGroupId&&b.pricingGroupAttributes&&b.pricingGroupAttributes.length>0})))};
Dhx=function(X,H,l){return zhN(X,fId([H],function(b){return b.filter(xhZ)}),l)};
tuA=function(X,H){return H.length===0?[X]:[X.slice(0,H[0]),X.slice(H[0])].filter(function(l){return l.length>0})};
WCA=function(X){switch(X){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""}};
g$$=function(X,H,l,b){b=Object.assign({},b);_.dC(b,E$l,{selectedOptionId:X,primaryButtonOverride:l});_.tF().dispatch(_.Us("flowStateEntity",H,b))};
GeU=function(X,H,l){!_.f(l,E$l)&&X.noPreselect&&H!==""&&X.defaultButtonOverride&&g$$("default",H,X.defaultButtonOverride,l)};
aIp=function(X){switch(X){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"}};
ZSZ=function(X){switch(X){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"}};
iSN=function(X,H){H.includes(X)?H=H.filter(function(l){return l!==X}):H.push(X);
return[].concat(_.LJ(H))};
v$5=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("n0DHg"),2);X=_.LOq;return H.return(X)})};
OSa=function(X,H){return _.JY(X.entities,"contextNoteFeedEntityPayload",H)};
mha=function(X,H){switch(X){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return H==null?void 0:H.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return H==null?void 0:H.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return H==null?void 0:H.ratingNotHelpfulText}};
Qs$=function(X,H,l){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:l||X.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:X.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:X.deleteDialogTitle}]},dialogMessages:[{runs:[{text:X.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:X.deleteActionText}]},command:{performCommentActionEndpoint:{action:H}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:X.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
TjC=function(X,H,l){var b;if(X&&((b=H())==null?0:b.includes(X))){var U;l((U=H())==null?void 0:U.filter(function(K){return K!==X}))}else l([].concat(_.LJ(H()||[]),[X]))};
c5p=function(X,H){if(X){var l=[];H=_.C((H==null?void 0:H.checkboxes)||[]);for(var b=H.next();!b.done;b=H.next()){b=_.f(b.value,Njd);var U=void 0;((U=b)==null?0:U.value)&&X.includes(b.key||"")&&l.push(b.value)}return l}};
jsp=function(X,H){return X===H?!0:(X==null?void 0:X.formId)===(H==null?void 0:H.formId)&&(X==null?void 0:X.fieldId)===(H==null?void 0:H.fieldId)};
J5Z=function(X){var H=r5x.get(X);if(H)return H;H=X.replace(/_([a-zA-Z0-9])/g,function(l,b){return b.toUpperCase()});
r5x.set(X,H);return H};
IIZ=function(X){var H=_.uL(function(){var b;return(b=_.a5(X))!=null?b:{}},{equals:jsp},"rjkP8c"),l=_.uL(function(){var b=H(),U=b.formId;
b=b.fieldId;var K;if(K=U&&b){if(b==="formId")throw Error("Jl`"+"Field id cannot be formId.".replace(/\n\s*/g," "));b:{if(U&&(LCa?LCa():(K=_.C(_.FU(0,void 0,"VxY0fb")),LCa=K.next().value,K.next(),K.next(),LCa()),K=Ysl.get(U))){K=K.form;break b}K=void 0}if(K){var w=J5Z(b);K=K[w]}else K=void 0}if(K)throw Error("Jl`"+("Field "+b+" in form "+U+" is not a ScalarField.").replace(/\n\s*/g," "));},void 0,"OhSJ8e");
return function(){return l()}};
A5x=function(X){X.style.height="auto";X.style.height=X.scrollHeight+"px"};
Xxd=function(X){return[X.syncStep,X.asyncStep].filter(function(H){return H!==void 0})};
lsd=function(X){var H,l,b;if(X=(H=X.structuredContextNoteFormSchema)==null?void 0:(l=H.fieldSchemas)==null?void 0:(b=l.noteBody)==null?void 0:b.validationSchema)for(H=_.C(Xxd(X)),l=H.next();!l.done;l=H.next()){l=l.value.rules;if(!l)break;l=_.C(l);for(l=l.next();!l.done;l=l.next())return _.f(l.value,HGd)}};
bGC=function(X){if(X){X=_.C(Xxd(X));for(var H=X.next();!H.done;H=X.next()){H=H.value.rules;if(!H)break;H=_.C(H);for(H=H.next();!H.done;H=H.next())return _.f(H.value,oqA)}}};
$fN=function(X){if(X){X=_.C(Xxd(X));for(var H=X.next();!H.done;H=X.next()){H=H.value.rules;if(!H)break;H=_.C(H);for(H=H.next();!H.done;H=H.next())return _.f(H.value,Ufp)}}};
K9Y=function(X){X=/^https?:\/\//.test(X)?X:"http://"+X;try{var H=_.iI(X)}catch(l){return!1}if(H.toString()!==X)return!1;X=H.JSC$10342_domain_.split(".");return X.length>1&&X.every(function(l){return!!l})};
RZ5=function(X,H,l,b){var U;b=(U=b.structuredContextNoteData)==null?void 0:U.createCommentEndpoint;if(U=_.f(b,_.Kjv))return U.commentText=_.xM(X),U.videoPositionMention=H,U.sources=l,b};
CDY=function(X){return X==null?void 0:X.stringValue};
dfU=function(X,H,l){X=X.map(function(b,U){return{listItemViewModel:{title:b.title,subtitle:b.subtitle,leadingImage:b.leadingImage,trailingImage:U===H?wxp:void 0,rendererContext:{commandContext:{onTap:b.onTap}}}}});
return Object.assign({},l&&{header:{panelHeaderViewModel:{title:l}}},{content:{listViewModel:{listItems:X}}})};
hZY=function(X,H){if(X&&H)switch(H){case "SELECTION_TYPE_BOOL":return X.boolValue;case "SELECTION_TYPE_INT":return X.intValue;case "SELECTION_TYPE_STRING":return X.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return X.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return X.timePickerFormatValue}};
F9y=function(X){var H;X=(H=X.options)==null?void 0:H.findIndex(function(l){return l.isSelected});
return X===void 0?-1:X};
BWe=function(X,H,l){var b=function(){return X().label},U={},K=_.Qr("ytDropdownViewModelLabel",(U.ytDropdownViewModelLabelError=H,U));
return _.F(_.M,{cond:function(){return X().label&&!(l()===-1&&X().label&&!X().placeholderText)},
then:function(){return _.F("div",{class:K},_.F(_.Sj,{text:b}))}})};
qFZ=function(X,H){var l={};l=_.Qr("ytDropdownViewModelTitle",(l.ytDropdownViewModelTitlePlaceholder=function(){return H()===-1},l));
return _.F("div",{class:l},_.F(_.Sj,{text:function(){var b=X();var U=H();if(U===-1)b=b.placeholderText?b.placeholderText:b.label;else{var K,w;b=(K=b.options)==null?void 0:(w=K[U])==null?void 0:w.title}return b}}))};
sBx=function(X,H){var l=function(){return X().hint};
return _.F(_.Xi,null,_.F(_.M,{cond:function(){return l()&&!H()},
then:function(){return _.F("div",{class:_.Qr("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.F(_.Sj,{text:l,className:"ytDropdownViewModelSupportText"}))}}),_.F(_.M,{cond:H,
then:function(){return _.F("div",{id:"dropdown-view-model-error",role:"alert",class:_.Qr("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.F(_.Ja,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.F(_.Sj,{text:H,className:"ytDropdownViewModelSupportText"}))}}))};
Mgl=function(X,H){var l=_.jJ().resolve(_.Ane);_.DR(function(){var b=X().id;b&&l!=null&&l.dropdownMap.set(b,H)})};
eZd=function(X){X=_.f(X.scheduleButton,ucC);X=_.f(X==null?void 0:X.primaryButton,_.fk);X=_.f(X==null?void 0:X.onTap,_.qq);var H,l,b=((l=_.f(X,_.J$))==null?void 0:l.commands)||[X];l=_.C(b);for(X=l.next();!X.done&&!(H=_.f(X.value,_.lEY));X=l.next());var U;H=(U=H)==null?void 0:U.createBroadcastRequest;if(!H)throw Error("Pl");return H};
yGC=function(X){var H,l;return((l=_.f((H=X.steps)==null?void 0:H[0],_.Kk))==null?void 0:l.stepId)||""};
fsa=function(X,H){if(H){var l=_.WF().getState().entities.flowStateEntity,b=VgZ(X),U=[H];b&&b!==H&&U.push(b);var K=!0,w;if(l&&X.flowStateEntityKey&&((w=l[X.flowStateEntityKey])==null?void 0:w.primaryButtonDisabled)!==void 0){var d;K=!((d=l[X.flowStateEntityKey])==null||!d.primaryButtonDisabled)}PDZ(X,b!=null?b:H,U,K)}};
SFA=function(X){return _.bC(_.WF(),function(H){return H.entities.flowStateEntity},function(H,l){if(X.flowStateEntityKey){var b,U=H==null?void 0:(b=H[X.flowStateEntityKey])==null?void 0:b.currentStepId,K;
l=l==null?void 0:(K=l[X.flowStateEntityKey])==null?void 0:K.currentStepId;K=_.WF().getState().talkToRecs;if(U&&U!==l){var w;H=(H==null?void 0:(w=H[X.flowStateEntityKey])==null?void 0:w.stepIdStack)||Object.keys(K.stepStates);w=!pxZ(K==null?void 0:K.stepStates[U]);PDZ(X,U,H,w)}}})};
nql=function(X){return _.bC(_.WF(),zZe,function(H){var l=VgZ(X);if(l){var b=Object.keys(H.stepStates);H=!pxZ(H==null?void 0:H.stepStates[l]);PDZ(X,l,b,H)}})};
pxZ=function(X){var H=Object.keys((X==null?void 0:X.selectionStates)||{}).reduce(function(K,w){return K||(X==null?void 0:X.selectionStates[w].isSelected)},!1),l,b,U=!!(X==null?0:(l=X.userQuery)==null?0:(b=l.userQuery)==null?0:b.trim());
return H||U};
VgZ=function(X){if(X.flowStateEntityKey){var H,l,b=(H=_.WF().getState().entities.flowStateEntity)==null?void 0:(l=H[X.flowStateEntityKey])==null?void 0:l.currentStepId;if(b)return b}};
PDZ=function(X,H,l,b){_.WF().dispatch(_.Us("flowStateEntity",X.flowStateEntityKey,{currentStepId:H,stepIdStack:l,key:X.flowStateEntityKey,primaryButtonDisabled:b}))};
tg5=function(X,H,l){l=l===void 0?{}:l;var b,U;return _.h(function(K){if(b=krp(H))return K.return(b);(U=xf$(X,H,l))&&Df$(H,U);return K.return(U)})};
Df$=function(X,H){var l=W9p(X);l&&H.then(function(b){_.jJ().resolve(_.r2).put(l,new _.JW({innertubeResponse:b}))})};
krp=function(X){if(X=W9p(X)){var H=_.jJ().resolve(_.r2);if(H.has(X))return H.get(X).then(function(l){return l==null?void 0:_.Nf(l)})}return null};
W9p=function(X){var H=_.f(X.endpoint,_.ku);if(H!=null&&H.videoId)return H={videoId:H.videoId},_.P("web_imp_player_mute_params")&&(H.mutedAtStart=X.startPlaybackInMutedState),_.nN("inline_playback",H)};
xf$=function(X,H,l){X=_.nl(X,H.endpoint,Eq5(H,l)).then(function(b){return b});
return Promise.resolve(X)};
Eq5=function(X,H){H=_.P("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!X.startPlaybackInMutedState},H):Object.assign({},{vis:5,autonav:"1"},H);var l;H={contentPlaybackContext:_.rW(H,(l=_.f(X.endpoint.commandMetadata,_.Ip))==null?void 0:l.url,window.location.href)};_.P("web_imp_player_mute_params")&&(H.overrideMutedAtStart=!X.startPlaybackInMutedState);return H};
iGe=function(X,H){var l=window.MutationObserver;l&&(gqp=new l(function(b,U){b=_.C(b);for(var K=b.next();!K.done;K=b.next()){K=K.value;var w;if(w=K.type==="childList"&&K.target)a:{w=X;K=GrA(K.target);w=GrA(w);for(var d=null,B=0;B<K.length;B++)if(w.includes(K[B])){if(B===0){w=!1;break a}d=K[B];break}d?(K=asp(K,d),w=asp(w,d),w=K<w):w=!1}if(w){H();U.disconnect();break}}}),(l=ZGp())&&gqp.observe(l,{childList:!0,
subtree:!0}))};
ZGp=function(){var X=document.getElementsByTagName("ytd-rich-grid-renderer");if(X.length>0)return X[0];X=document.getElementsByTagName("ytd-section-list-renderer");return X.length>0?X[0]:null};
GrA=function(X){for(var H=[];X;)H.push(X),X=X.parentElement;return H};
asp=function(X,H){var l=Array.from(H.children);H=X.indexOf(H);return H>0?l.indexOf(X[H-1]):-1};
H2=function(X,H,l){l=l===void 0?{}:l;return _.XS(X,l,H)};
vqd=function(X){switch(X){case "MUSIC":return!0;default:return!1}};
mf$=function(X){if(X=X==null?void 0:X.find(function(b){var U,K;return((U=_.f(b,OGx))==null?void 0:(K=U.inlinePlaybackBadgeData)==null?void 0:K.replicateAsTimestamp)===!0}))if(X=_.f(X,OGx),X==null?0:X.icon){var H,l;
if((X=(H=_.kDW(X.icon))==null?void 0:(l=H.clientResource)==null?void 0:l.imageName)&&vqd(X))return X}};
QBY=function(X){return X==null?void 0:X.filter(function(H){return H.premiereTrailerBadgeRenderer})};
TWU=function(X){var H,l=X==null?void 0:(H=X.find(function(B){return B.thumbnailOverlayTimeStatusRenderer}))==null?void 0:H.thumbnailOverlayTimeStatusRenderer,b,U;
if((l==null?0:(b=l.icon)==null?0:b.iconType)&&vqd(l==null?void 0:(U=l.icon)==null?void 0:U.iconType)){var K;return{icon:l==null?void 0:(K=l.icon)==null?void 0:K.iconType}}var w;if(H=X==null?void 0:(w=X.find(function(B){return B.thumbnailOverlayBadgeViewModel}))==null?void 0:w.thumbnailOverlayBadgeViewModel)if(w=mf$(H.thumbnailBadges))return{icon:w};
var d;if(X=X==null?void 0:(d=X.find(function(B){return B.thumbnailBottomOverlayViewModel}))==null?void 0:d.thumbnailBottomOverlayViewModel)if(d=mf$(X.badges))return{icon:d};
return{}};
JGx=function(X,H){var l=new NW5(function(K){U(K)},H);
H=_.C(_.FU(cGl(l),void 0,"D2uee"));var b=H.next().value,U=H.next().value;_.Wg(function(){Promise.resolve().then(function(){var K,w=(K=X())!=null?K:{};l.playerControlsData=w;l.lastSeenPlayerApi=_.P8(w.playerApi);jBN(l)});
_.E2(function(){rGU(l)})},"xfRk8b");
return b};
L9x=function(X){return function(H){var l=X(),b={playerState:H};if(H===1){var U;(U=l.playerApi)==null||U.loadModule("captions")}if(H===0){var K;(K=l.playerApi)==null||K.unloadModule("captions")}H!==-1&&l.setState(b)}};
YFy=function(X){return function(H){X().setState({playbackRate:H})}};
IsY=function(X){return function(H){var l=X(),b=l.playerApi,U=b==null?void 0:b.getVideoData(),K=(U==null?void 0:U.isLive)||!1;U=U==null?void 0:U.video_id;K={videoDuration:moC(b||void 0),isLive:K,videoId:U};K.videoId!==l.videoId&&(K=Object.assign({},_.byz(b),K));if(H==null?0:H.playertype)K.playerType=H.playertype;if(b){K.captionsAvailable=DoU(b);H=K;var w;U=(w=b.getStoryboardLevel(b.getNumberOfStoryboardLevels()-1))==null?void 0:w.intervalMs;H.storyboardInterval=U?U/1E3:void 0;K.captionsAvailable&&
(K.captionsEnabled=t0$(b))}K.volumeMuted=!(b==null||!b.isMuted());l.setState(K)}};
AG5=function(X){return function(H){var l=X(),b=l.playerApi;if(b){var U=b.getPresentingPlayerType();H={playedTime:H||0,percentLoaded:b.getVideoLoadedFraction(),playerType:U};l.playerState===0&&(H.playedTime=l.videoDuration);l.isLive&&(U=b.getProgressState(U),H.playedTime-=U.seekableStart,H.videoDuration=moC(b));if(l.playerType===1)b=!1;else{var K;if((K=l.uxConfig)==null?0:K.showCuedOverlay){var w;b=!((w=l.playerApi)==null?0:w.getPlayerStateObject(l.playerType).isDomPaused)}else b=!0}b&&delete H.playedTime;
l.setState(H)}}};
X8U=function(X){return function(){var H=X(),l,b,U,K={volume:(U=(l=H.playerApi)==null?void 0:l.getVolume())!=null?U:0,volumeMuted:!((b=H.playerApi)==null||!b.isMuted())};H.setState(K)}};
H9C=function(X){return function(){var H=X(),l=H.playerApi;if(l){var b={captionsAvailable:DoU(l)};b.captionsAvailable&&(b.captionsEnabled=t0$(l));H.setState(b)}}};
lFe=function(X){return{appApi:Object.assign({},_.YXz(),{showCaptionsToggleToast:function(H){var l,b;(b=(l=X()).showCaptionsToggleToast)==null||b.call(l,H)},
openInMiniplayer:function(){var H,l;(l=(H=X()).openInMiniplayer)==null||l.call(H)}})}};
oix=function(X,H){var l,b,U;return!!(X==null?0:(l=X.playerResponse)==null?0:(b=l.playerConfig)==null?0:(U=b.inlinePlaybackConfig)==null?0:U.showScrubbingControls)&&!(H==null?0:H.hideScrubbingControls)};
b9U=function(X){var H=!X.miniplayerIsActive;return[5,2,0].includes(X.miniplayerPlaybackState)||H};
UVC=function(X){return _.P("web_transcript_cue_id_killswitch")?String(X):"ytd-transcript-renderer_"+X};
$Vl=function(X){return _.P("web_transcript_cue_id_killswitch")?!0:X.startsWith("ytd-transcript-renderer")};
Kie=function(X){var H=_.aq(),l;if(l=_.ij("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var b;l=(b=l())==null?void 0:b.layoutId}else l=null;o$y(H,l,X)};
REN=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("HwlOhd"),2);X=_.mMQ;return H.return(X)})};
Cpl=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("JoU6vf"),2);X=_.zF;return H.return(X)})};
w8C=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("hU04te"),2);X=_.UvQ;return H.return(X)})};
dV$=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("dIvQ6c"),2);X=_.yyx;return H.return(X)})};
hE$=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("m9Vw4"),2);X=_.kKx;return H.return(X)})};
Fie=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("mcjWUc"),2);X=_.iyZ;return H.return(X)})};
Bka=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("QiZf0e"),2);X=_.D0Y;return H.return(X)})};
qJU=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("f8YPh"),2);X=_.KD6;return H.return(X)})};
sJ5=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield((0,_.AS)("b3MoKf"),2);X=_.$v6;return H.return(X)})};
MYl=function(X){X.style.height="auto";X.style.height=Math.min(X.scrollHeight||20,80)+"px"};
uk5=function(){var X;return String(Math.floor(((X=_.rd())==null?void 0:X.getCurrentTime())||0)*1E3)};
yv$=function(X){if(X.onWelcomeCommand)return _.sl(X.onWelcomeCommand);X=_.f(X.inputComposerViewModel,eEZ);if(X==null?0:X.welcomeFeatureContinuation)return _.z3d(X.welcomeFeatureContinuation)};
VYx=function(X){var H=_.aq(),l;l=(l=_.ij("yt.www.ads.eventcache.getLastCompanionData"))?(l=l())&&l.layoutId:null;o$y(H,l,X)};
PpA=function(X){var H=_.aq(),l;l=(l=_.ij("yt.www.ads.eventcache.getLastCompanionData"))?(l=l())&&l.layoutId:null;o$y(H,l,X)};
fFZ=function(X){return X.filter(function(H){return!_.f(H,_.SY)})};
p8a=function(X){var H,l,b,U;if(X=X==null?void 0:(H=X.contents)==null?void 0:(l=H.twoColumnWatchNextResults)==null?void 0:(b=l.results)==null?void 0:(U=b.results)==null?void 0:U.contents){var K,w;return(w=(K=X.find(function(d){return!!d.videoPrimaryInfoRenderer}))==null?void 0:K.videoPrimaryInfoRenderer)==null?void 0:w.updatedMetadataEndpoint}};
SJp=function(X,H){var l;return(l=X.sourceConfigs)==null?void 0:l.find(function(b){return b.videoId===H})};
zEZ=function(X){return X==="End of video"||X==="End of playlist"};
nid=function(X){var H,l,b,U;return(H=X.getWatchNextResponse())==null?void 0:(l=H.contents)==null?void 0:(b=l.twoColumnWatchNextResults)==null?void 0:(U=b.playlist)==null?void 0:U.playlist};
koY=function(X){var H,l,b,U,K,w;return(H=nid(X))==null?void 0:(l=H.playlistButtons)==null?void 0:(b=l.menuRenderer)==null?void 0:(U=b.topLevelButtons)==null?void 0:(K=U[0])==null?void 0:(w=K.playlistLoopButtonRenderer)==null?void 0:w.playlistLoopStateEntityKey};
xVN=function(X){var H=_.jJ().resolve(_.S3),l;return(H=(l=_.f(H.getAutoplayEndpoint(),_.ku))==null?void 0:l.playlistId)&&H===X};
Wip=function(X,H,l,b,U){function K(){_.Ss.cancelJob(lN);var w=DVZ(H,l/X.getPlaybackRate()),d=w.hours,B=w.minutes;w=(w.seconds*1E3||6E4)/X.getPlaybackRate();X.setVideoTimeLeft(tYN(d,B));b&&X.getPlayerState()!==0&&X.setSleepTimerTimeLeft(tYN(d,B,!0));(d>0||B>0)&&!U&&(lN=_.Rs(_.Ss,K,w))}
_.Ss.cancelJob(lN);lN=_.Rs(_.Ss,K)};
gid=function(X,H,l){function b(){_.Ss.cancelJob(Eip);var U=DVZ(H,l),K=U.hours;U=U.minutes;var w=6E4/X.getPlaybackRate();if(K>0||U>0)X.setSleepTimerTimeLeft(tYN(K,U,!0)),Eip=_.Rs(_.Ss,b,w)}
_.Ss.cancelJob(Eip);Eip=_.Rs(_.Ss,b)};
aFZ=function(X,H){var l=X.getVolume()/(H/500),b=function(U){_.Ss.cancelJob(Gol);var K=Math.floor(U-l);X.setVolume(K,!1);K>0&&(Gol=_.Rs(_.Ss,function(){b(K)},500))};
_.Ss.cancelJob(Gol);Gol=_.Rs(_.Ss,function(){b(X.getVolume())})};
Z9$=function(X,H){_.Ss.cancelJob(Gol);H&&X.syncVolume()};
i9x=function(){var X={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.XS("SLEEP_TIMER_DISRUPTED")}}}}};_.jJ().resolve(_.Vr).resolveCommand(X)};
viY=function(X){return(X.getDuration()-X.getProgressState().current)*1E3};
DVZ=function(X,H){X=X+H-(0,_.Jl)();if(X<=0)return{hours:0,minutes:0,seconds:0};var l=new O9e(0,0,0,0,0,0,X);X=l.getHours();H=l.getMinutes();l=l.getSeconds();l!==0&&H++;H!==0&&H%60===0&&(X++,H=0);return{hours:X,minutes:H,seconds:l}};
tYN=function(X,H,l){return X>0&&H>0?l?_.XS("TIME_LEFT_HOURS_MINUTES",{hours:X.toString(),minutes:H.toString()}):_.XS("TIME_HOURS_MINUTES",{hours:X.toString(),minutes:H.toString()}):X>0?l?_.HK("TIME_LEFT_HOURS",X):_.HK("TIME_HOURS",X):l?_.XS("TIME_LEFT_MINUTES",{minutes:H.toString()}):_.XS("TIME_MINUTES",{minutes:H.toString()})};
QJa=function(X,H){if(X.timelyActions)return X.timelyActions.find(function(l){var b;return((b=_.f(l,mV$))==null?void 0:b.cueRangeId)===H})};
Tka=function(X){return _.P("kevlar_watch_cinematics_invisible")||X.fullscreen&&_.P("kevlar_watch_cinematics_invisible_in_fullscreen")||X.theater&&!X.fullscreen&&_.P("kevlar_watch_cinematics_invisible_in_theater")};
Nk$=function(){var X=document.createElement("canvas"),H=X.getContext("2d");if(!H)throw Error("Tl");_.ko(X,{position:"absolute",width:"100%",height:"100%"});return{element:X,context:H}};
cv5=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.P("kevlar_watch_cinematics_css_blur")};
jJp=function(X){var H=X.externalVideoId||"";return H?X.isShortsEligible?"https://www.youtube.com/shorts/"+H:"https://www.youtube.com/watch?v="+H:""};
rv5=function(X){var H=[];X.viewCount&&H.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:X.viewCount});X.likeCount&&H.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:X.likeCount});return H};
Jvp=function(X){var H,l,b={"@context":"https://schema.org","@type":"VideoObject",description:_.D8(X.description),duration:"PT"+(X.lengthSeconds||"0")+"S",embedUrl:X.embed?X.embed.iframeUrl:"",name:_.D8(X.title),thumbnailUrl:((H=X.thumbnail)==null?void 0:(l=H.thumbnails)==null?void 0:l.map(function(u){return u&&u.url||""}))||[],
uploadDate:X.publishDate};_.P("mweb_video_schema_id_killswitch")||(b["@id"]=jJp(X));H=rv5(X);H.length&&(b.interactionStatistic=H);X.category&&(b.genre=X.category);X.ownerChannelName&&(b.author=X.ownerChannelName);X.liveBroadcastDetails&&(b.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:X.liveBroadcastDetails.startTimestamp,endDate:X.liveBroadcastDetails.endTimestamp}]);if(X.learningResource){X=X.learningResource;b["@type"]=["VideoObject","LearningResource"];var U;if((U=X.learningResourceType)==
null?0:U.length)b.learningResourceType=X.learningResourceType[0];var K;if((K=X.educationalAlignment)==null?0:K.length)b.educationalAlignment={"@type":"AlignmentObject",targetName:X.educationalAlignment[0]};var w;if((w=X.educationalLevel)==null?0:w.length){U=X.educationalLevel[0];var d;if((d=X.educationalLevelCountry)==null?0:d.length)U+=" ("+X.educationalLevelCountry+")";b.educationalLevel=U}var B,q;if(((B=X.learningResourceType)==null?0:B.length)&&X.learningResourceType[0]==="Problem walkthrough"&&
((q=X.problemDescriptions)==null?0:q.length))for(b.hasPart=[],d=_.C(X.problemDescriptions),B=d.next();!B.done;B=d.next())U=B.value,B=U.problemDescriptionText,q=U.startOffset,U=U.url,B&&q!==void 0&&U&&b.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:B,text:B,startOffset:q,url:U})}return b};
Liy=function(X){return X?X.status==="LIVE_STREAM_OFFLINE":!1};
YJZ=function(X){return X&&X.contents&&X.contents.twoColumnWatchNextResults&&X.contents.twoColumnWatchNextResults.results&&X.contents.twoColumnWatchNextResults.results.results.contents};
IFa=function(X){if((X==null?void 0:X.value)===void 0||X==null||!X.unit)return"initial";a:{switch(X.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var H="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":H="%";break a}H=void 0}return H?""+X.value+H:"initial"};
Ave=function(X){return X?X.status==="LIVE_STREAM_OFFLINE":!1};
XC$=function(X){return X&&X.contents&&X.contents.twoColumnWatchNextResults&&X.contents.twoColumnWatchNextResults.results&&X.contents.twoColumnWatchNextResults.results.results.contents};
lUY=function(X,H){var l,b,U,K,w,d,B;_.h(function(q){switch(q.nextAddress){case 1:l=_.S4.getInstance();b=_.JF.instance;U=_.S2.instance;if(!U)return HjN(X,b,H),q.return();_.Ew(q,2);X.onLoadingCommand&&b.resolveCommand(X.onLoadingCommand);return q.yield(l.getCurrentPositionFromGeolocation(),4);case 4:K=q.yieldResult;if(!X.resolveLocationCommand){q.jumpTo(5);break}w=l.createLocationInfo(K);return q.yield(_.nl(U,X.resolveLocationCommand,{locationInfo:w}),6);case 6:d=q.yieldResult;if(!d||"error"in d&&d.error||
d.errorMetadata)return HjN(X,b,H),q.return();var u;if(d==null?0:(u=d.onResponseReceivedActions)==null?0:u.length){u=_.C(d.onResponseReceivedActions);for(var e=u.next();!e.done;e=u.next())b.resolveCommand(e.value)}(_.f(X.onSuccessCommand,_.ku)||_.f(X.onSuccessCommand,_.YM))&&_.QX(H.hostElement,"yt-navigate",{endpoint:X.onSuccessCommand,reload:!0});case 5:_.Zt(q,0);break;case 2:B=_.Ow(q);if(B instanceof GeolocationPositionError&&B.code===GeolocationPositionError.PERMISSION_DENIED)return X.onDeniedCommand&&
b.resolveCommand(X.onDeniedCommand),q.return();HjN(X,b,H);_.m5(q)}})};
HjN=function(X,H,l){X.onFailureCommand&&(H.resolveCommand(X.onFailureCommand),_.TP(l.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
bjY=function(X,H){var l=_.f(X,_.ek_);if(l&&H){X=l.videoIds||[l.videoId];var b;H=(b=_.QX(H,"yt-lockup-requested",{videoIds:X}).detail)==null?void 0:b.returnValue;var U;l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?U=H?H:X.map(function(K){return{videoId:K,navigationEndpoint:l.videoCommand}}):H&&(U=H);
U&&(b=U.map(function(K){var w=Object,d=w.assign;var B=K.navigationEndpoint;if(!_.f(B,_.HM)){var q=_.f(B,_.ku);if(q){if(delete q.index,delete q.playlistId,q=_.f(B==null?void 0:B.commandMetadata,_.Ip),q==null?0:q.url){var u=q.url;u=_.lB(u,"list");u=_.lB(u,"index");q.url=u}}else B=void 0}return d.call(w,{},K,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:B})}),ogU(b,l))}};
U7$=function(X){var H=_.D7();if(X=_.f(X,_.ysF))X.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&H.clearQueue(),X.closeMiniplayer&&_.jJ().resolve(_.f9).close(!0)};
KqY=function(X){$7Z(_.D7(),X)};
RGy=function(X){var H;(X=(H=_.f(X,_.Mfv))==null?void 0:H.setVideoIds)&&X.forEach(function(l){_.sn_(_.D7(),l)})};
wCN=function(X){Cey(_.D7(),X)};
d7x=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(X){return!1}};
Uk=function(X,H,l){(_.P("desktop_keyboard_shortcut_usage_log")||l&&_.P("web_shorts_keyboard_shortcut_usage_log"))&&(H?o7.get(X):bN.get(X))&&(X=H?hGa.get(X):Fql.get(X))&&_.xB(_.Bi(),X)};
qCY=function(X){return X.findIndex(function(H){return BJd.indexOf(H.tagName)>-1})>-1};
sVp=function(X,H){return X.findIndex(function(l){return l.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(H.keyCode):!1};
u0d=function(X,H){return _.F(M5Z,{data:X,onYtNavigate:H})};
eGx=function(X,H){return _.JY(X.entities,"pageHeaderEntity",H)};
V55=function(X,H){return X.map(function(l){if(l.tabRenderer)return yC5(l.tabRenderer);if(l.expandableTabRenderer&&H){var b=l.expandableTabRenderer;return{customTabRenderable:function(){return H(b)}}}return{}})};
yC5=function(X){return{identifier:X.tabIdentifier,aTagConfig:_.uv({innertubeCommand:X.endpoint,forceNewState:!0}),title:X.title,selected:X.selected,disabled:X.unselectable,icon:X.icon}};
pCZ=function(X,H,l,b){if(X)return b=b||X.likeStatus,H?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:b==="LIKE",isDisabled:!X.likesAllowed,defaultIcon:{iconType:l},defaultText:b==="LIKE"?X.likeCountWithUnlikeText:X.likeCountText,toggledText:b==="LIKE"?X.likeCountText:X.likeCountWithLikeText,defaultNavigationEndpoint:Pel(X,"LIKE"),defaultServiceEndpoint:fUZ(X,"LIKE"),toggledServiceEndpoint:fUZ(X,"INDIFFERENT"),defaultTooltip:_.D8(X.likeCountTooltipText),toggledTooltip:_.D8(X.likeCountTooltipText),
targetId:X.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:b==="DISLIKE",isDisabled:!X.likesAllowed,defaultIcon:{iconType:l},defaultText:b==="DISLIKE"?X.dislikeCountWithUndislikeText:X.dislikeCountText,toggledText:b==="DISLIKE"?X.dislikeCountText:X.dislikeCountWithDislikeText,defaultNavigationEndpoint:Pel(X,"DISLIKE"),defaultServiceEndpoint:fUZ(X,"DISLIKE"),toggledServiceEndpoint:fUZ(X,"INDIFFERENT"),defaultTooltip:_.D8(X.dislikeCountTooltipText),
toggledTooltip:_.D8(X.dislikeCountTooltipText)}};
Pel=function(X,H){if(H==="LIKE")return X.likeCommand;if(H==="DISLIKE")return X.dislikeNavigationEndpoint};
fUZ=function(X,H){var l;return(l=X.serviceEndpoints)==null?void 0:l.find(function(b){var U;return((U=_.f(b,_.wg))==null?void 0:U.status)===H})};
SCy=function(X,H,l,b){X=H-X;l=b-l;return Math.sqrt(X*X+l*l)};
zGp=function(X){var H=X>>8&255,l=X&255;return"#"+(X>>16&255).toString(16).padStart(2,"0")+H.toString(16).padStart(2,"0")+l.toString(16).padStart(2,"0")};
ng5=function(X,H){X&&_.jJ().resolve(_.Vr).resolveCommand(X,{forceClickLogging:!0,form:{element:H}})};
kbd=function(X){if(X.simpleText)return[{text:X.simpleText}];var H;return(H=X.runs)!=null?H:[]};
x7d=function(X){var H=X.startEndTimeTemplate,l=X.startTimeUtcMillis;X=X.endTimeUtcMillis;if(H&&l&&X)return _.xM(ueC(_.D8(H),Number(l),Number(X)))};
D7Z=function(X,H){var l,b,U=X==null?void 0:(l=X.viewCount)==null?void 0:(b=l.videoViewCountRenderer)==null?void 0:b.shortViewCount;if(!H&&U)return U;var K,w;return X==null?void 0:(K=X.viewCount)==null?void 0:(w=K.videoViewCountRenderer)==null?void 0:w.viewCount};
t5Z=function(X,H){var l=X==null?void 0:X.relativeDateText;return!H&&l?[l,!0]:[X==null?void 0:X.dateText,!1]};
Wqx=function(X,H,l,b,U){b=b===void 0?"":b;U=U===void 0?!1:U;var K=D7Z(X,H),w=_.C(t5Z(X,H)),d=w.next().value;w=w.next().value;H=H?X==null?void 0:X.sponsorsOnlyFirstTimeLongText:X==null?void 0:X.sponsorsOnlyFirstTimeShortText;var B=[];l&&K&&B.push(K);!l&&w||!d||B.push(d);X=[U?X==null?void 0:X.subtitle:void 0].concat(_.LJ(B),[H,X==null?void 0:X.stationName,X==null?void 0:X.rating,X?x7d(X):void 0,X==null?void 0:X.upNextProgramText,X==null?void 0:X.superTitleLink]).filter(function(q){return!!q});
l={runs:[]};for(U=0;U<X.length;U++)l.runs.push.apply(l.runs,_.LJ(kbd(X[U]))),U<X.length-1&&l.runs.push({text:" "+b+" "});return l};
EgZ=function(X,H){var l=_.vP9(H,{},X,!0);return new Promise(function(b,U){l.listenOnce("n",function(){U(Error("fm`"+l.JSC$30547_getErrorDescription()))});
l.listenOnce("l",function(){var K=l.getResponseCode();if(K!==200)U(Error("gm`"+H+"`"+X.type+"`"+X.size+"`"+K));else try{b(JSON.parse(l.getResponseText()).encryptedBlobId)}catch(w){U(w)}});
l.run()})};
ggA=function(X){return X.substring(X.indexOf(":")+1,X.indexOf(";"))};
GbN=function(X){return new Promise(function(H,l){var b=new FileReader;b.onloadend=function(){try{var U=new Uint8Array(b.result);U.length<8&&l(void 0);var K=U.subarray(0,8);U="";for(var w=0;w<K.length;w++)U+=("0"+K[w].toString(16)).substr(-2);U.startsWith("ffd8ff")?H("image/jpeg"):U.startsWith("47494638")?H("image/gif"):U.startsWith("89504e470d0a1a0a")?H("image/png"):U.startsWith("424d")?H("image/bmp"):H(void 0)}catch(d){l(d)}};
b.onerror=l;b.readAsArrayBuffer(X)})};
aUl=function(X){return new Promise(function(H,l){var b=new Image;b.crossOrigin="anonymous";b.onload=function(){var U=document.createElement("canvas");U.width=b.naturalWidth;U.height=b.naturalHeight;var K=U.getContext("2d");if(!K)throw Error("hm");K.drawImage(b,0,0);K=ggA(X);U.toBlob(function(w){w?H(w):l()},K)};
b.src=X})};
ijC=function(X,H){var l;if(((l=_.f(X,_.HM))==null?void 0:l.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var b;_.QX((b=H.hostElement)!=null?b:H,"yt-shorts-reset");_.JjU(_.jJ().resolve(_.bW),X).then(function(K){Zj5(K,H,X)})}else{var U;
_.ci((U=H.hostElement)!=null?U:H,[X]).then(function(K){K&&Zj5(K.data,H,X)})}};
Zj5=function(X,H,l){if(X){var b=_.f(X.replacementEndpoint,_.HM);if(b){X.sequenceContinuation&&(b.sequenceParams=X.sequenceContinuation);var U;_.QX((U=H.hostElement)!=null?U:H,"yt-navigate",{endpoint:X.replacementEndpoint})}else if((X==null?void 0:X.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(X==null?0:X.watchStatus)&&_.f(X.watchStatus,_.$IC)){var K;_.QX((K=H.hostElement)!=null?K:H,"yt-navigate",{endpoint:l})}}};
vga=function(X){var H=_.jJ().resolve(_.qU),l=_.ze.currentPageTypeSelector(H.getState())||"";H=_.ze.currentPageSubTypeSelector(H.getState())||"";l=l==="ytd-browse"&&H==="home";return _.P("web_guide_entry_enable_cache_for_non_home_pages")?(X=(X==null?void 0:X.navigationEndpoint)&&_.LT(X.navigationEndpoint)==="home",{disableCache:l&&X}):{disableCache:l}};
QV5=function(X,H,l,b){if(X&&X.length){var U={};if(H){var K=void 0;l&&(K={commandContext:{onTap:{innertubeCommand:l||{}}}});U.header={panelHeaderViewModel:{title:_.ha(H),rendererContext:K}}}H=[];X=_.C(X);for(l=X.next();!l.done;l=X.next()){K=l.value;l=_.f(K,OjN);K=_.f(K,m7C);var w=void 0,d=void 0;if((w=K)==null?0:(d=w.expandableItems)==null?0:d.length)for(K=_.C(K.expandableItems),w=K.next();!w.done;w=K.next()){w=w.value.guideEntryRenderer;var B=d=void 0;if(((d=w)==null?void 0:(B=d.icon)==null?void 0:
B.iconType)==="VIEW_LIST_CAIRO"){l=w;break}}d=w=void 0;K=((w=l)==null?0:w.formattedTitle)?_.ha((d=l)==null?void 0:d.formattedTitle):void 0;w=void 0;d=(w=l)==null?void 0:w.isPrimary;if(l&&K&&!d){K={title:K};l.navigationEndpoint&&(K.rendererContext={commandContext:{onTap:{innertubeCommand:l.navigationEndpoint}}});w=[];B=d=void 0;if(((d=l)==null?0:(B=d.thumbnail)==null?0:B.thumbnails)&&l.thumbnail.thumbnails.length>0){d=_.C(l.thumbnail.thumbnails);for(B=d.next();!B.done;B=d.next())w.push({url:B.value.url});
K.leadingAccessory={avatarViewModel:{image:{sources:w},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(d=void 0,(d=l.icon)==null?0:d.iconType)w.push({clientResource:{imageName:l.icon.iconType||""}}),K.leadingImage={sources:w};d=w=void 0;((w=l)==null?0:(d=w.badges)==null?0:d.liveBroadcasting)?(K.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",K.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},K.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
l.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?K.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":l.count&&(K.trailingLabel={content:l.count.toString()});H.push({listItemViewModel:K})}}H.length!==0?(U.content={listViewModel:{listItems:H}},b===0&&(U.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):U=void 0;if(U)return H=void 0,b===0&&(H={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:U}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:H}}}}};
TJZ=function(X,H,l,b){if(H!=null&&H.isPrimary){switch(b){case 1:if(H.serviceEndpoint)break;l=QV5(l,H.formattedTitle,H.navigationEndpoint,b);if(!l)break;H.serviceEndpoint=l;H.navigationEndpoint=void 0;break;case 0:!H.mouseEnterEndpoint&&(l=QV5(l,H.formattedTitle,void 0,b))&&(H.mouseEnterEndpoint=l,H.mouseLeaveEndpoint={hideSheetCommand:{}})}X.push({guideEntryRenderer:H})}};
NJN=function(X){if(!X)return!1;try{if(X.host&&X.host.tagName==="YT-FORMATTED-STRING"&&X.host.id==="contenteditable-textarea"||X.nodeType===Node.ELEMENT_NODE&&X.tagName==="YTD-COMMENT-INPUT")return!0}catch(H){return!1}return NJN(X.parentNode)};
$x=function(X){return X?X.tagName==="A"&&X.href&&X.classList.contains("yt-simple-endpoint"):!1};
cC$=function(X){return X?X.tagName==="IMG"&&X.classList.contains("emoji"):!1};
jVA=function(X,H,l){if(!X)return null;var b=$x(X);if(b&&l)return H=X.pathname.substring(X.pathname.indexOf("/channel/")+9),document.createTextNode("@"+H);if(b&&!l)return document.createTextNode("");if(cC$(X))return l=X.alt,X=X.dataset.emojiId,!X&&H&&(H=_.c6(H,l))&&H.isCustomEmoji&&(X=H.emojiId),X?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+X+">"):document.createTextNode(l);b=X.cloneNode(!1);for(var U=0;U<X.childNodes.length;++U){var K=jVA(X.childNodes[U],H,l);K&&b.appendChild(K)}return b};
rC$=function(X){return X?$x(X)?X:rC$(X.lastChild):null};
JC5=function(X){return X?$x(X)?X:JC5(X.firstChild):null};
LqC=function(X){if(!X)return null;for(var H=X.previousSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.previousSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.previousSibling;else break;(H=rC$(H))?X=H:X=(X=X.parentNode)?rC$(X.previousElementSibling):null;return X};
YCa=function(X){if(!X)return null;for(var H=X.nextSibling;H;)if(H.nodeType===Node.ELEMENT_NODE&&H.nodeName==="BR")H=H.nextSibling;else if(H.nodeType===Node.TEXT_NODE&&/\s+/.test(H.textContent))H=H.nextSibling;else break;return(H=JC5(H))?H:YCa(X.parentNode)};
IUa=function(X){var H=_.lg(),l=H.JSC$11664_getStartNode();if(!NJN(l.parentNode))return null;H=H.JSC$11664_getStartOffset();if(l.nodeType===Node.TEXT_NODE){var b=_.yo(l,$x);if(b){if(X&&H===0||!X&&H===l.length)return b}else{if(X&&H===l.length)return!l||l.nodeName==="BR"||l.nextElementSibling&&_.rj(l.nextElementSibling,"display")==="block"?null:JC5(l.nextElementSibling);if(!X&&H===0)return l?rC$(l.previousElementSibling):null}}if(l.nodeType===Node.ELEMENT_NODE)if(X){if(0<=H&&H<l.childNodes.length)return JC5(l.childNodes[H])}else if(0<
H&&H<=l.childNodes.length)return rC$(l.childNodes[H-1]);return null};
ACy=function(X,H,l){if(!X)return null;if(X.nodeType===Node.TEXT_NODE)if(l){var b=LqC(X);if(b&&!/^\s+\S/.test(X.wholeText.substr(0,H)))return b}else if((b=YCa(X))&&!/\S\s+/.test(X.wholeText.substr(H,X.wholeText.length)))return b;return X.nodeType===Node.ELEMENT_NODE?l?LqC(X.childNodes[H]):YCa(X.childNodes[H]):ACy(X.parentNode,H,l)};
X0d=function(X){if(X.hasChildNodes())switch(X.tagName){case "DIV":case "A":case "SPAN":var H="";for(X=X.firstChild;X;X=X.nextSibling)H+=X0d(X);return H;default:return""}else switch(X.nodeType){case 3:return X.textContent;default:return""}};
HxY=function(X){switch(X){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"}};
lOl=function(X){return X.map(function(H){return{settingsRadioOptionRenderer:{title:_.vK(H.name),asideText:_.vK(H.approximateSize),id:HxY(H.format)}}})};
bx$=function(X){if(X&&X.length!==0)return X.filter(oox()).map(function(H){return{settingsRadioOptionRenderer:{title:H.name,asideText:H.approximateSize,id:HxY(H.formatType)}}})};
UON=function(X){if(X)return X.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
$Op=function(X,H){X=new Set(X!=null?X:[]);if(X.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(X.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(X.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(X.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(X.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(H)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
KLp=function(X){var H=X.indexOf("(");return H!==-1?X.substring(H+1,X.length-1):X};
_.CKy=function(X,H,l,b,U){l||(l=RIl);var K;(K=_.f(l.commandMetadata,_.Ip))!=null&&K.url||(l=Error("mm`"+JSON.stringify(l)),_.n2(l),l=RIl);l=_.Bb.unsafeClone(l);K=_.oZ(_.f(l.commandMetadata,_.Ip).url,"search_query",X);_.Hb(location.href,"sv")==="1"&&(_.f(l,_.IH).params="EgOAAgE%3D",K=_.oZ(K,"sv","1"));_.f(l,_.IH)&&(_.f(l,_.IH).query=X);K=K.replace(/%20/g,"+");_.f(l.commandMetadata,_.Ip).url=K;U=_.P("desktop_enable_entity_suggest")?{entityMid:U}:{};_.jJ().resolve(_.Vr).resolveCommand(l,{form:{tempData:Object.assign({},
{gs_l:H,oq:b!=null?b:X},U),isFromShorts:_.Es()==="shorts"}})};
_.w0Z=function(X){var H=_.gx("SBOX_SETTINGS"),l="https://"+(H.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";l+="&delq="+encodeURIComponent(X);(X=H==null?void 0:H.PSUGGEST_TOKEN)&&(l+="&tok="+X);(H=H==null?void 0:H.SESSION_INDEX)&&(l+="&authuser="+H);return l};
dOe=function(X){switch(X){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
FLy=function(X,H,l,b,U,K){var w=_.Bb.clone(hIx);w.locale=_.gx("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;w.report={description:U||"<empty>"};U=_.gx("SBOX_SETTINGS",{});H=H.join(",");var d=Date.now();X={choice_cc:b,choice_id_cc:l,choices_sc:H,gl:U.REQUEST_DOMAIN,hl:U.REQUEST_LANGUAGE,query:X,time:d};K&&(X.choice_additional_comment_cc=K);_.Nzt(w,X)};
B1U=function(X){var H=new Map;H.set("authuser",_.gx("SESSION_INDEX","0"));return _.n$(X,H)};
s4d=function(X){var H;return _.h(function(l){switch(l.nextAddress){case 1:if(!X||!qQe(X))return l.return(null);H=null;switch(_.gx("INNERTUBE_CLIENT_NAME")){case "WEB":return l.jumpTo(2);case "WEB_REMIX":H=X.getPlayer()}l.jumpTo(3);break;case 2:return l.yield(X.getPlayerPromise(),4);case 4:H=l.yieldResult;l.jumpTo(3);break;case 3:return l.return(H)}})};
qQe=function(X){return["ytd-player","ytmusic-player"].includes(String(X.tagName||"").toLowerCase())};
MHp=function(X){X=Math.round(X);return X%2?X-1:X};
uKN=function(X){X=Math.round(X);return X%2===0?X-1:X};
eId=function(X){var H=["h","m","s"],l=_.NW(H);l.reverse();var b={};X=(X.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(w){var d=(w.match(/[hms]/)||[""])[0];return d?(b[d]=parseInt(w.match(/\d+/)[0],10),!1):!0});
for(X.reverse();X.length&&l.length;){var U=l.shift();U in b||(b[U]=parseInt(X.shift(),10))}if(X.length||b.s>59||b.m>59||b.h>9)return null;var K="";H.forEach(function(w){b[w]&&(K+=""+b[w]+w)});
return K||null};
yfd=function(X){var H,l,b;if(X=(H=X.createPlaylistDialogFormSchema)==null?void 0:(l=H.fieldSchemas)==null?void 0:(b=l.title)==null?void 0:b.validationSchema)for(H=[X.syncStep,X.asyncStep].filter(function(U){return U!==void 0}),H=_.C(H),l=H.next();!l.done;l=H.next()){l=l.value.rules;
if(!l)break;l=_.C(l);for(l=l.next();!l.done;l=l.next())return _.f(l.value,HGd)}};
PKU=function(X){var H,l,b;if(X=(H=X.createPlaylistDialogFormSchema)==null?void 0:(l=H.fieldSchemas)==null?void 0:(b=l.visibility)==null?void 0:b.validationSchema)for(H=[X.syncStep,X.asyncStep].filter(function(U){return U!==void 0}),H=_.C(H),l=H.next();!l.done;l=H.next()){l=l.value.rules;
if(!l)break;l=_.C(l);for(b=l.next();!b.done;b=l.next())if(b=_.f(b.value,VHx))return H=void 0,(H=b.translations)==null?void 0:H.visibilityNotValidErrorMessage}};
fOU=function(){var X,H;return(H=(X=_.jJ().resolve(_.c$(_.b4)))==null?void 0:X())!=null?H:!1};
p0Z=function(X){var H=21;if(!X)return H;H+=X.headerTitle?27:0;H+=X.headerTitle&&X.hasHeaderActionHeader?4:0;return H+=X.headerTitle&&X.headerSubtitle?16:0};
SQl=function(X){var H=0;if(!X)return H;H+=X.hasFooterPrimaryButton||X.hasFooterSecondaryButton?48:0;H+=X.footerTrailingLabel||X.footerLeadingLabel?30:0;return H+=X.hasFooterPrimaryButton||X.hasFooterSecondaryButton||!X.footerTrailingLabel&&!X.footerLeadingLabel?0:12};
zIZ=function(X){var H=new _.RF,l=X;return{subscribe:function(b){H.subscribe("changed",b)},
dispatch:function(b,U){var K=l;if(b==="Touch Start")l=Object.assign({},K,{isAnimating:!1,initialY:U.event.touches[0].clientY});else if(b==="Touch Move"){b=U.contentScrollable?-1*(K.initialY-24):0;var w,d=(w=U.headerDivHeight)!=null?w:p0Z(U.header),B;w=(B=U.footerDivHeight)!=null?B:SQl(U.footer);B=Math.min(U.fullContentWrapperHeight,U.heightMap[U.contentWrapperId]+d-w);l=Object.assign({},K,{currentY:Math.max(b,U.event.touches[0].clientY-K.initialY),maxHeightForContentWrapper:Math.min(B,Math.max(0,
(K.isFullScreen?B:U.contentWrapperHeight)-K.currentY))})}else l=b==="Snap To Full Screen"?Object.assign({},K,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:U.maxHeight}):b==="Snap To Neutral Position"?Object.assign({},K,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:U.maxHeight}):b==="Close Sheet"?Object.assign({},K,{isAnimating:!0,currentY:U.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:U.maxHeight}):K;H.publish("changed",l)}}};
noY=function(){_.jJ().resolve(_.hT).closeSheet()};
kaN=function(X){var H,l,b,U,K,w,d,B,q,u,e;return{headerTitle:(H=X.headerTitle)==null?void 0:H.call(X),headerSubtitle:(l=X.headerSubtitle)==null?void 0:l.call(X),headerActionHeader:X.headerActionHeader,footerPrimaryButton:X.footerPrimaryButton,footerSecondaryButton:X.footerSecondaryButton,footerButtonType:(b=X.footerButtonType)==null?void 0:b.call(X),footerLeadingLabel:(U=X.footerLeadingLabel)==null?void 0:U.call(X),footerTrailingLabel:(K=X.footerTrailingLabel)==null?void 0:K.call(X),shouldShowIcons:(w=
X.shouldShowIcons)==null?void 0:w.call(X),skipContentClick:(d=X.skipContentClick)==null?void 0:d.call(X),additionalClassName:(B=X.additionalClassName)==null?void 0:B.call(X),onClosedCallback:X.onClosedCallback,focusOnClose:(q=X.focusOnClose)==null?void 0:q.call(X),isDisabled:(u=X.isDisabled)==null?void 0:u.call(X),disabledCommand:(e=X.disabledCommand)==null?void 0:e.call(X),headerFn:X.headerFn,contentFn:X.contentFn,footerFn:X.footerFn,hasHeaderFn:X.hasHeaderFn(),hasContentFn:X.hasContentFn(),hasFooterFn:X.hasFooterFn(),
hasFooterPrimaryButton:X.hasFooterPrimaryButton(),hasFooterSecondaryButton:X.hasFooterSecondaryButton(),hasHeaderActionHeader:X.hasHeaderActionHeader()}};
xON=function(X){switch(X){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""}};
DOZ=function(X){switch(X){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""}};
tH5=function(X){switch(X){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""}};
WLY=function(X,H,l){H.forEach(function(b){_.Y8(_.jJ().resolve(_.UR),b)});
_.TP(X,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",l])};
aOA=function(X,H,l,b){var U=_.f(l,_.zI).commandLifeCycleConfig;U&&U.onStartCommand&&_.j7(X,[U.onStartCommand],H);_.kq(H);var K=_.S2.instance;K&&_.zE(K,l)?_.nl(K,l,b).then(function(w){if(!w||(w==null?0:w.error))return w=_.f(l,_.zI).serializedTransactionFlowLoggingParams,_.xq(H),_.Cq(new KK("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",w));_.xq(H);return{data:w}}).then(function(w){_.xq(H);
EoZ(w.data);var d=w.data.command;d&&_.j7(X,[d],H);d=go5(l,w.data);if(!d){var B=w.data;w=!1;if(B&&B.command&&_.f(B.command,_.J$)){var q;B=((q=_.f(B.command,_.J$))==null?void 0:q.commands)||[];for(q=0;q<B.length;q++)if(_.f(B[q],_.gXq)){w=!0;break}}w||_.$v('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!d&&U&&U.onSuccessCommand?_.j7(X,[U.onSuccessCommand],H):d&&U&&U.onFailureCommand&&_.j7(X,[U.onFailureCommand],H)},function(){_.xq(H);
U&&U.onFailureCommand&&_.j7(X,[U.onFailureCommand],H);Gay(l)}):_.n2(Error("ym"),"ERROR")};
Zxe=function(X,H,l){var b=[H];l&&b.push(l);return _.ci(X,b).then(function(U){var K=_.f(H,_.zI).serializedTransactionFlowLoggingParams,w=U.data,d=go5(H,w);d?U=_.Cq(new KK(d,K)):EoZ(w);return U},function(){var U=_.f(H,_.zI).serializedTransactionFlowLoggingParams;
Gay(H);return _.Cq(new KK("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",U))})};
go5=function(X,H){X=_.f(X,_.zI).serializedTransactionFlowLoggingParams;var l=null;switch(H.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":l="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":l="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":l="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}l?_.xh(l,X):Ncl(X);return l};
Gay=function(X){_.xh("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.f(X,_.zI).serializedTransactionFlowLoggingParams)};
EoZ=function(X){if(X.trackingParams){var H=_.Bi(),l=_.F6();H&&l&&_.pA(H,l,_.$l(X.trackingParams))}};
ixY=function(X,H,l){var b=_.S2.instance,U=_.wYh(_.gx("YPC_MB_URL")),K=(new _.RwW).init(),w=_.CGK(),d=_.f(l,_.DP6).languageCode;d===void 0?_.n2(Error("Li"),"ERROR"):_.s$([K,U]).then(function(){var B={ctk:_.m9.payments.business.integration.ClientTokenFactory.createClientToken(d,w)};b&&_.zE(b,l)?_.nl(b,l,B).then(function(q){return{data:q}}).then(function(q){_.QX(H,"yt-service-request-completed",q);
q.code!=="ERROR"&&(q=q.data.command)&&_.j7(X,[q],H)}):_.n2(Error("ym"),"ERROR")})};
mOd=function(X,H,l,b){var U=_.S2.instance;U&&_.zE(U,l)?_.nl(U,l,b).then(function(K){return{data:K}}).then(function(K){voe(X,H,l,K)},function(){OxZ(l)}):(U=_.jJ().resolve(_.c$(_.o6)))&&U.requestDataForServiceEndpoint(l,b).then(function(K){voe(X,H,l,K)},function(){OxZ(l)})};
voe=function(X,H,l,b){_.QX(H,"yt-service-request-completed",b);if(b.code&&b.code=="ERROR")OxZ(l);else{(b=b.data.commands)&&_.j7(X,b,H);var U;(X=(U=_.f(l,_.amt))==null?void 0:U.serializedYpcPauseFlowLoggingParams)&&X&&rK("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",X)}};
OxZ=function(X){var H;(X=(H=_.f(X,_.amt))==null?void 0:H.serializedYpcPauseFlowLoggingParams)&&X&&rK("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",X,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
N1Z=function(X,H,l){var b=_.S2.instance;b&&_.zE(b,l)?_.nl(b,l).then(function(U){return{data:U}}).then(function(U){Q4Y(X,H,l,U)},function(){T1p(l)}):(b=_.jJ().resolve(_.c$(_.o6)))&&b.requestDataForServiceEndpoint(l).then(function(U){Q4Y(X,H,l,U)},function(){T1p(l)})};
Q4Y=function(X,H,l,b){_.QX(H,"yt-service-request-completed",b);b.code&&b.code=="ERROR"?T1p(l):((b=b.data.commands)&&_.j7(X,b,H),(X=_.f(l,_.ZVQ).serializedYpcResumeFlowLoggingParams)&&X&&rK("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",X))};
T1p=function(X){(X=_.f(X,_.ZVQ).serializedYpcResumeFlowLoggingParams)&&X&&rK("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",X,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
cfC=function(X){X=X===void 0?{}:X;_.jJ().resolve(_.Sw5).showFeedbackDialog(X.customProductData,X.feedbackContent,X.onFeedbackSubmitted,X.bucket)};
j4p=function(X){X=X===void 0?{}:X;_.jJ().resolve(_.Sw5).showHelpDialog(X.helpContext,X.articleId,X.productData)};
rfx=function(){j4p()};
JfZ=function(){cfC()};
YQe=function(X,H,l){var b,U,K,w,d,B,q;return _.h(function(u){switch(u.nextAddress){case 1:b=_.f(X,LLU);if((U=b)==null?0:U.productId){B={productId:b.productId,bucket:b.bucket,enableAnonymousFeedback:(d=b.enableAnonymousFeedback)!=null?d:!0,allowNonLoggedInFeedback:!0};q={feedbackChoice:l.feedbackChoice};if(!_.P("web_collect_offline_state")){u.jumpTo(8);break}_.Ew(u,9);return u.yield(ZTy(q),11)}w={bucket:(K=b)==null?void 0:K.bucket};if(!_.P("web_collect_offline_state")){u.jumpTo(4);break}w.customProductData=
{};_.Ew(u,5);return u.yield(ZTy(w.customProductData),7);case 7:_.Zt(u,4);break;case 5:_.Ow(u);case 4:cfC(w);u.jumpTo(0);break;case 11:_.Zt(u,8);break;case 9:_.Ow(u);case 8:_.rtl(q),_.jTm("GFEEDBACK",q),b.productId==="5295751"&&(q.client_attestation=Number(_.gx("CATSTAT",0))),b.productId==="5295751"&&(q.client_time=Date.now()/1E3/3600),b.productId==="5295751"&&(q.original_playback_id=_.nKv||""),_.Nzt(B,q),_.m5(u)}})};
IOa=function(X){if(X=_.f(X,_.cDy)){var H={bucket:X.bucketIdentifier};X.additionalDatas&&(H.customProductData={},X.additionalDatas.forEach(function(l){if(l=l.userFeedbackEndpointProductSpecificValueData)H.customProductData[l.key]=l.value}));
cfC(H)}};
Af$=function(X){var H=_.Zq.getInstance();var l=_.XS("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var b=_.XS("DELETE",void 0,"Delete"),U=_.XS("CANCEL",void 0,"Cancel");l=KIA(l,void 0,b,U,{signal:"DELETE_ALL_DOWNLOADS"});_.qD(H,[{openPopupAction:l}],X)};
HuZ=function(){return _.h(function(X){return X.nextAddress==1?X.yield(_.jJ().resolve(_.xs5),2):X.yield(XR$(),0)})};
lNx=function(X){var H,l;return _.h(function(b){return b.nextAddress==1?(l=(H=_.f(X,_.gU))==null?void 0:H.targetId)?b.yield(_.jJ().resolve(_.xs5),3):b.jumpTo(0):b.yield(_.jJ().resolve(_.dK).deleteVideo(l),0)})};
bue=function(X){var H,l;return _.h(function(b){return b.nextAddress==1?(l=(H=_.f(X,_.gU))==null?void 0:H.targetId)?b.yield(_.jJ().resolve(_.xs5),3):b.jumpTo(0):b.yield(o1e(_.jJ().resolve(_.dK),l),0)})};
$Qx=function(X){var H,l;return _.h(function(b){return(l=(H=_.f(X,_.gU))==null?void 0:H.targetId)?b.yield(UQZ(l),0):b.jumpTo(0)})};
RRY=function(){_.P("kevlar_woffle_refresh_dl_load_killswitch")||Kxy()};
wRl=function(){_.P("kevlar_woffle")&&_.pe.instance&&CiZ()};
hRe=function(X){var H;if((H=_.f(X,_.Yj))==null||!H.videoId)return!1;dQp(_.jJ().resolve(_.dK),_.f(X,_.Yj),X.clickTrackingParams);return!0};
BBd=function(X){var H;if((H=_.f(X,_.Iq))==null||!H.playlistId)return!1;FxA(_.jJ().resolve(_.dK),_.f(X,_.Iq),X.clickTrackingParams);return!0};
suC=function(X){var H=_.f(X,_.Vnv);(H==null?void 0:H.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(H==null?void 0:H.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||q$U(_.jJ().resolve(_.dK),_.f(X,_.Vnv))};
uEa=function(X){X=_.f(X,_.LsH);var H;(X==null?0:(H=X.actions)==null?0:H.length)&&M1Z(X)};
V1y=function(X){var H,l;return _.h(function(b){H=_.f(X,eRp);return(l=H)!=null&&l.localWatchHistoryCommandType?b.yield(y8a(H),0):b.return()})};
fNU=function(){return _.h(function(X){return X.yield(PiA(),0)})};
pRd=function(X){setTimeout(function(){requestAnimationFrame(X)},80)};
S$5=function(X){return Object.entries(X).map(function(H){return H.join(":")}).join(";")};
n1p=function(X){var H,l,b;_.h(function(U){if(U.nextAddress==1)return U.yield(zRU(),2);H=U.yieldResult;l=_.JF.instance;switch(H){case "granted":b=X.getLocationCommand;break;case "denied":b=X.openDeniedDialogAction;break;case "prompt":b=X.openCollectionDialogAction;break;default:b=X.openCollectionDialogAction}b&&l.resolveCommand(b);_.m5(U)})};
zRU=function(){var X,H;return _.h(function(l){if(l.nextAddress==1)return X="prompt",navigator.permissions?l.yield(navigator.permissions.query({name:"geolocation"}),3):l.jumpTo(2);l.nextAddress!=2&&(H=l.yieldResult,X=H.state);return l.return(X)})};
xQa=function(){_.h(function(X){return X.yield(_.kjl(),0)})};
DQl=function(){var X,H,l;return _.h(function(b){if(b.nextAddress==1)return X=_.jJ().resolve(_.b$),X?b.yield(_.nl(X,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.x2(Error("Bm")),b.return(void 0));if(H=b.yieldResult){if(H.errorMetadata)return _.x2(Error("Cm`"+H.errorMetadata.status+"`"+H.error)),b.return(void 0);l=H.datasyncIds;_.i$$=l.length;return b.return(l)}_.x2(Error("Dm"));return b.return(void 0)})};
t1y=function(){DQl().then(function(X){X&&(a9Y(X),YfN(X),h4e(X),vM$(X))})};
Wx5=function(X){_.Ss.addLowPriorityJob(function(){var H,l,b,U,K;return _.h(function(w){switch(w.nextAddress){case 1:if(_.P("ytidb_clear_optimizations_killswitch")){w.jumpTo(2);break}H=_.FB("clear");if(H.startsWith("V")&&H.endsWith("||")){var d=[H];a9Y(d);YfN(d);h4e(d);vM$(d);return w.return()}l=FSU();b=OTZ();return w.yield(IiZ(),3);case 3:return U=w.yieldResult,w.yield(Zr$(),4);case 4:if(K=w.yieldResult,!(l||b||U||K))return w.return();case 2:X.isNetworkAvailable()?t1y():X.listenOnce("publicytnetworkstatus-online",
t1y),_.m5(w)}})})};
R7=function(X){X={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.xM(X)}}}};_.JF.instance&&_.JF.instance.resolveCommand(X)};
E1e=function(X){if(X){var H=_.lv();_.jR(H,3854,void 0,{layer:0,parentLayer:4});switch(X){case 1:var l=238708;break;case 2:l=238715;break;case 3:l=238710;break;case 6:l=238709}l&&(X=_.H5(H,{veType:l}))&&_.Lk(H,X)}};
g1A=function(X){if(X){var H=_.lv();_.jR(H,3854,void 0,{layer:0,parentLayer:4});switch(X){case 1:var l=238714;break;case 2:l=238711;break;case 8:l=238709;break;case 7:l=238713;break;case 3:case 4:case 5:l=238712}l&&(X=_.H5(H,{veType:l}))&&_.Lk(H,X)}};
GjA=function(X){switch(X.latencyType){case 0:_.qJ("consent_primitive_flow");_.sf("cpit",X.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.sf("cpist",X.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.sf("cprtif",X.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.sf("cprtli",X.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.sf("cprt",X.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.sf("cpdt",X.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.sf("cpjct",X.timestampEpochMillis,"consent_primitive_flow")}};
r8d=function(X,H){var l,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v;return _.h(function(J){switch(J.nextAddress){case 1:_.Ew(J,2);(b=(l=_.f(X,aNp))==null?void 0:l.serializedConsentRequest)||(b=(U=_.f(X,Zud))==null?void 0:U.serializedConsentRequest);b&&(K=iuZ(_.Ay(b)));if(K===void 0)return J.return();w=v1$(K);w.latencyCallback=GjA;H&&OuY(w,function(){H.then(function(Y){Y.pauseVideo();(new mQ$).increment()})});
return((d=_.f(X,aNp))==null?void 0:d.consentAction)==="CONSENT_ACTION_PREWARM"||((B=_.f(X,Zud))==null?void 0:B.consentAction)==="CONSENT_ACTION_PREWARM"?J.yield(Que(w),5):J.yield(TBx(w),6);case 6:q=J.yieldResult;u=_.RV(q,CK);if(u===1){if(((e=_.ys(q,NB5,1,CK))==null?void 0:_.M7(e,1))===1||((y=_.ys(q,NB5,1,CK))==null?void 0:_.M7(y,1))===2||((V=_.ys(q,NB5,1,CK))==null?void 0:_.M7(V,1))===3)_.f(X,Zud)?R7(_.XS("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
R7(_.XS("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));E1e((p=_.ys(q,NB5,1,CK))==null?void 0:_.M7(p,1),_.iB(q,c8$,3,_.vb()))}else u===2?(((z=ju$(q))==null?void 0:_.M7(z,1))===5?_.f(X,Zud)?R7(_.XS("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):R7(_.XS("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((t=ju$(q))==null?void 0:_.M7(t,1))===1||((W=ju$(q))==null?void 0:_.M7(W,1))===4?
R7(_.XS("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((G=ju$(q))==null?void 0:_.M7(G,1))===7&&((r=K)==null?void 0:(Q=_.Al(r,wH,4))==null?void 0:_.M7(Q,4))!==1&&R7(_.XS("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),g1A((v=ju$(q))==null?void 0:_.M7(v,1))):R7(_.XS("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));J.jumpTo(5);break;case 5:_.Zt(J,0);break;case 2:_.Ow(J),R7(_.XS("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.m5(J)}})};
LxZ=function(){if(!J8e.has("Worker")){J8e.set("Worker",!0);var X={api:"BROWSER_API_WEB_WORKER"};X.available="Worker"in window?!0:!1;_.Sh("apiTest",X)}};
Y$C=function(X){return typeof X==="undefined"?"-1":String(Math.ceil(X/1048576))};
H5x=function(X,H){IN$(new A8y(_.f(H,Xty).addToken,_.f(H,Xty).commonToken)).then(function(){_.QX(X,"yt-invoke-instrument-manager-action-completed")},function(l){_.QX(X,"yt-invoke-instrument-manager-action-error",l)})};
dH=function(){return _.gx("HTML_DIR")==="rtl"};
ldZ=function(){var X,H;return(H=(X=window).matchMedia)==null?void 0:H.call(X,"(prefers-reduced-motion: reduce)").matches};
oPe=function(X){var H=_.jJ().resolve(_.c$(_.Cz));if(H&&H.isAnyTransitionEnabled){var l={};H.viewTransitionCoordinator.registerElement(X,(l.slide="miniplayer-page-transition",l["lockup-to-watch"]="miniplayer-page-transition",l["learning-journey"]="miniplayer-page-transition",l))}};
b5d=function(X,H,l){return{horizontalAlignment:X.x+l.width/2<H.width/2?"west":"east",verticalAlignment:X.y+l.height/2<H.height/2?"north":"south"}};
$SC=function(X,H,l,b,U){U=U===void 0?new _.DY(0,0):U;X=US5(X,H,l,b,!1);return new _.DY(X.x+U.x,X.y+U.y)};
US5=function(X,H,l,b,U){U=(U===void 0?0:U)?400:0;return new _.DY(X==="west"?16+(dH()?U:0):l.width-b.width-16-(dH()?0:U),H==="north"?16:l.height-b.height-16)};
KTZ=function(X,H){var l=0;X&&(l+=76);H&&(l+=285);return l};
Rvp=function(X){return _.S5(X)};
CZ5=function(X){var H=1;X=X.split(":");for(var l=[];H>0&&X.length;)l.push(X.shift()),H--;X.length&&l.push(X.join(":"));return l};
wtZ=function(X){var H=new _.HR;return _.Vs(H,11,X)};
dSd=function(X){var H={};X=X.getAllResponseHeaders().split("\r\n");for(var l=0;l<X.length;l++)if(!_.w8(X[l])){var b=CZ5(X[l]),U=b[0];b=b[1];if(typeof b==="string"){b=b.trim();var K=H[U]||[];H[U]=K;K.push(b)}}return _.Bb.map(H,function(w){return w.join(", ")})};
XMN=function(X,H){return X.JSC$10106_xhr_?X.JSC$10106_xhr_.getResponseHeader(H):null};
hvY=function(X,H){if(X.isDisposed())throw Error("Fa");X.xC.oY("n");var l=_.pu(X.xC,function(){return X.bNI([H.hL,H.kgX,H.yQ1,H.chZ])},"n");
X.xC.ofm(l.length);X.xC.dW();return l};
FTd=function(X,H,l){Array.isArray(l)||(l=[String(l)]);_.xpG(X.JSC$10342_queryData_,H,l);return X};
BzN=function(X){var H=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Lu(X);X.keyMap_.forEach(function(l,b){_.vh(H,b)||this.remove(b)},X)};
CiZ=function(){var X=_.pe.instance;_.h(function(H){return X.deferredInstallPrompt?H.yield(X.deferredInstallPrompt.prompt(),0):H.jumpTo(0)})};
qdC=function(X,H,l){if(_.ch(X))_.Ot(X,H,l);else for(X=_.fiF(X);;){var b=X.next();if(b.done)break;H.call(l,b.value,void 0,X)}};
sMU=function(X,H){var l=[];qdC(H,function(b){try{var U=_.wV.prototype.getWrapper.call(this,b,!0)}catch(K){if(K=="Storage: Invalid value was encountered")return;throw K;}U===void 0?l.push(b):_.PH9(U)&&l.push(b)},X);
return l};
Iv5=function(X,H){sMU(X,H).forEach(function(l){_.wV.prototype.remove.call(this,l)},X)};
MzN=function(X){var H=_.V0;H._minimumZ=Math.max(H._minimumZ,X)};
uay=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];evd=function(X,H){_.Gp(X.vm);X.vm=H};
yPe=function(X,H,l,b){X.setState(5);var U=!!X.mdH&&uay.includes(_.Nb(X.mdH)||"");try{var K=new _.S1({program:H,globalName:l,yq8:{disable:!_.P("att_web_record_metrics")||!_.P("att_skip_metrics_for_cookieless_domains_ks")&&U,wx:"aGIf"}});K.flU.then(function(){X.setState(6);b&&b(H)});
evd(X,K)}catch(w){X.setState(7),w instanceof Error&&_.x2(w)}};
Vz$=function(X,H,l,b,U,K){var w=w===void 0?"trayride":w;l?(X.setState(2),_.VX(_.qF(l),function(){if(window[w])yPe(X,b,w,U);else{X.setState(3);var d=_.azk(l),B=document.getElementById(d);B&&(_.Hlk(d),B.parentNode.removeChild(B));_.x2(new _.qd("BL:ULB",l))}},K)):H?(K=_.XJ("SCRIPT"),H instanceof _.hr?_.ql(K,H):K.textContent=H,K.nonce=_.dr(document),document.head.appendChild(K),document.head.removeChild(K),window[w]?yPe(X,b,w,U):(X.setState(4),_.x2(new _.qd("BL:ULBJ")))):_.x2(new _.qd("BL:ULV"))};
PZ5=function(){this.state=1;this.vm=null;this.mdH=void 0};
_.R=PZ5.prototype;_.R.initialize=function(X,H,l,b){this.mdH=b;if(X.program){var U;b=(U=X.interpreterUrl)!=null?U:null;if(X.interpreterSafeScript)U=_.fVz(X.interpreterSafeScript);else{var K;U=(K=X.interpreterScript)!=null?K:null}X.interpreterSafeUrl&&(b=_.zd(X.interpreterSafeUrl).toString());Vz$(this,U,b,X.program,H,l)}else _.x2(Error("tf"))};
_.R.isInitialized=function(){return!!this.vm};
_.R.getState=function(){return this.state};
_.R.isLoading=function(){return this.state===2};
_.R.invoke=function(X){X=X===void 0?{}:X;var H;this.vm?H=hvY(this.vm,{hL:X}):H=null;return H};
_.R.dispose=function(){evd(this,null);this.setState(8)};
_.R.setState=function(X){this.state=X};
var fdZ=function(X,H){return X.vm.snapshot(H)},ptU=function(X,H){var l=_.Yy("botguard_async_snapshot_timeout_ms",3E3);
H=H===void 0?{}:H;l=l===void 0?3E3:l;return X.vm?new Promise(function(b,U){var K=!1,w=_.Ss.addJob(function(){K=!0;U(Error("uf"))},1,l);
X.vm?fdZ(X,{hL:H}).then(function(d){_.Ss.cancelJob(w);K||b(d)}).catch(function(d){_.Ss.cancelJob(w);
K||U(d)}):(_.Ss.cancelJob(w),b(null))}):Promise.resolve(null)},SdY=["att/log"],RIl;
RIl={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var zvU={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},nPy=function(X,H){return _.HF(X,{mode:"readwrite",enableRetries:!0},function(l){return _.qR8(l,H,"settingEntity")})},kql=function(X,H,l){return _.HF(X,{mode:"readonly",
enableRetries:!0},function(b){return _.Cmv(b,H,l)})},xSy=function(X){if(!X.storage)return!1;
a:{if(X.storage){try{var H=X.storage.get("TLPQtimestamp")}catch(l){}X=Number(H);if(!isNaN(X))break a}X=void 0}return X?Date.now()-X<864E5:!1},DSZ=function(X){if(X.storage){try{var H=X.storage.get("TLPQindex")}catch(l){}X=Number(H);
if(!isNaN(X))return X}},hz=function(X){var H=_.ng();
return _.RAD(H,X,1)},tzd=function(X,H){X.queueProxy&&H.forEach(function(l){if(l.videoId&&l.trackingParams&&X.queueProxy instanceof _.PW){var b=_.Bi();
X.queueProxy.attributionData.set(l.videoId,{enqueueingVe:_.$l(l.trackingParams).getAsJson(),enqueueingCsn:b?b:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Jl)()).toString()})}})},WT5=function(X){var H=_.c_z(X);
H!=X.currentSnapState_&&(X.currentSnapState_=H,X.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Fu=function(X){this.JSC$13541_networkManager_=X;
this.partCallbacks_=[]};
Fu.prototype.getCacheKeyForEndpoint=function(X){return _.oty(X,!1)};
Fu.prototype.onPartsCallback_=function(X){this.partCallbacks_.forEach(function(H){X&&H(X)})};
var B2=function(X,H,l){Fu.call(this,X);this.player_=H;this.autoplayData_=l};
_.S(B2,Fu);B2.prototype.getCacheKeyForEndpoint=function(X){return _.oty(X,!!this.autoplayData_)};
B2.prototype.getTempData=function(X,H){H=H.timeBeforeNextVideo;X={itct:X.clickTrackingParams,lact:_.JV(),pbis:H,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(X.autonav=1);return X};
B2.prototype.getXhrParams=function(X){return Object.assign({pbj:"prefetch"},X)};
B2.prototype.getParams=function(X){X={frags:X.fragmentsRequested.join(",")};_.P("kevlar_droppable_prefetchable_requests")&&(X.prefetch=1);return X};
var EPC=function(X){X.playerEvents_.forEach(function(H){X.player.removeEventListener(H.eventName,H.callback)});
X.playerEvents_.length=0},gPx=function(X,H,l){this.player=X;
this.JSC$13551_taskManager=H;this.prefetchDelay=l;this.completionResolver_=null;this.playerEvents_=[]};
gPx.prototype.start=function(){var X=this;this.completionResolver_=_.kj();_.MQ(this.completionResolver_.promise,function(){EPC(X);X.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Gql=function(X,H,l){X.player.addEventListener(H,l);X.playerEvents_.push({eventName:H,callback:l})},adA={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},Z5C={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},i55=function(X,H,l){gPx.call(this,X,H,l);this.cueId_="playbackTrigger-"+Math.random()};
_.S(i55,gPx);
i55.prototype.prepareTrigger=function(X){var H=this,l=this.player.getDuration(),b=this.player.getVideoData(),U=b.isLive&&b.hasProgressBarBoundaries;if(U&&b.progressBarEndPositionUtcTimeMillis){var K=b.progressBarEndPositionUtcTimeMillis/1E3;isNaN(K)||(l=K)}var w=0;this.prefetchDelay>=0?U?b.progressBarStartPositionUtcTimeMillis&&(b=b.progressBarStartPositionUtcTimeMillis/1E3,isNaN(b)||(w=b+this.prefetchDelay)):w=this.prefetchDelay:w=l+this.prefetchDelay;U?this.player.addUtcCueRange(this.cueId_,w,l):
this.player.addCueRange(this.cueId_,w,l);_.MQ(X.promise,function(){H.player.removeCueRange(H.cueId_)});
Gql(this,"onCueRangeEnter",function(d){d==H.cueId_&&X.resolve(l-w)})};
var vPe=function(X,H){X.fragmentConfiguration_[H].requiredKeys.every(function(l){return!!X.prefetchedData_[l]})&&(X.validatedFragments_.push(H),H=X.missingFragments_.indexOf(H),H!==-1&&X.missingFragments_.splice(H,1))},O5d=function(X){X.prefetchedFragments_.forEach(function(H){vPe(X,H)})},mSZ=function(X,H,l){this.pageFragments_=X;
this.prefetchedFragments_=H;this.fragmentConfiguration_=Z5C;this.prefetchedData_=l;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;O5d(this)},QMy=function(){},TzY=function(X){this.JSC$13565_playlistManager_=X};
_.S(TzY,QMy);TzY.prototype.getPrefetchEndpoint=function(){return this.JSC$13565_playlistManager_.getAutoplayEndpoint()};
var NzY=function(X){this.autonavEndpoints_=X};
_.S(NzY,QMy);NzY.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var cPZ=function(X,H,l,b,U){this.autonavEndpoints=X;this.foregroundTrigger=H;this.backgroundTrigger=l;this.pageType=b;this.isInPlaylist=U},jM5=function(X,H){if(X.webPrefetchData&&X.webPrefetchData.navigationEndpoints&&X.webPrefetchData.navigationEndpoints.length){X=X.webPrefetchData.navigationEndpoints;
var l=_.f(X[0],_.ku);if(l.watchEndpointSupportedPrefetchConfig&&l.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var b=l.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;l=b.playbackRelativeSecondsPrefetchCondition;l=typeof l==="number"&&Math.abs(l)<H.videoDuration?l:void 0;b=b.countdownUiRelativeSecondsPrefetchCondition;b=typeof b!=="number"||_.P("prefetch_job_config_cleanup_ks")&&H.inPlaylist?void 0:b;if(typeof b==="number")return new cPZ(X,H.makeUpNextTrigger(b),H.makePlaybackTrigger(b),
"watch",H.inPlaylist);if(typeof l==="number")return new cPZ(X,H.makePlaybackTrigger(l),null,"watch",H.inPlaylist)}}},rP5=function(X){return X.prefetchJobConfig_.backgroundTrigger?_.ZR(oEN)()==0?X.prefetchJobConfig_.backgroundTrigger:X.prefetchJobConfig_.foregroundTrigger:X.prefetchJobConfig_.foregroundTrigger},JPl=function(X){_.FE(document,"visibilitychange",X.onVisibilityChange_,!1,X)},qm=function(X){Fu.call(this,X)};
_.S(qm,Fu);qm.prototype.getCacheKeyForEndpoint=function(X){return Fu.prototype.getCacheKeyForEndpoint.call(this,X)};
qm.prototype.getTempData=function(){return{}};
qm.prototype.getXhrParams=function(X){return X};
qm.prototype.getParams=function(){return{}};
var LTZ=function(X,H,l){var b=X.prefetchDelay*1E3;if(Math.abs(b)>H)l.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var U=b,K=H-b;b<0&&(U=H+b,K=Math.abs(b));var w=X.JSC$13551_taskManager.addJob(function(){l.resolve(K/1E3)},10,U);
l.promise.thenCatch(function(){X.JSC$13551_taskManager.cancelJob(w)})}},Yda=function(X,H,l){gPx.call(this,X,H,l)};
_.S(Yda,gPx);Yda.prototype.prepareTrigger=function(X){var H=this;Gql(this,"onAutonavCoundownStarted",function(l){LTZ(H,l,X)})};
var IdU=function(X){X.pendingPrefetchJob_&&(X.pendingPrefetchJob_.cancel(),X.pendingPrefetchJob_=null)},APU=function(X,H,l){if(!X.triggeredTargets.has(H)){var b=_.wlC(X,H);
b.action=l;_.C7C(X,H,b)}},XGy=function(X){_.l5q();
_.AOz("cpt")&&_.x2(Error("mh"));_.ok.requestAnimationFrame(function(){_.ok.setTimeout(function(){_.sf("cpt");var H=_.eF("vpl"),l=_.eF("cpt");H&&l&&_.sf("ol",Math.max(H,l))})});
try{_.sf("fr_s"),X()}catch(H){_.n2(H)}_.ok.requestAnimationFrame(function(){_.sf("bcp")})},HFp={FILLED:"youtube_fill",
OUTLINE:"youtube_outline"},lKY=function(X,H){X.serviceEndpointHandlers.push(H)},o75=function(X,H){H=X.pendingPages_.indexOf(H);
H>-1&&X.pendingPages_.splice(H,1)},bFe=function(X,H){var l=_.xmQ.indexOf(H);
l>-1&&_.xmQ.splice(l,1);X.targetPage_==H?(X.abort(),_.td9(X)):o75(X,H)},UDU=function(X,H){X.reloadContinuationItemsCommandMatcher=H},$DA=function(X,H,l){H&&l&&(X.videos.forEach(function(b){b.videoId===H&&(b.itemId=l)}),X.recommendedVideos.forEach(function(b){b.videoId===H&&(b.itemId=l)}))},KYx=function(X){this.onStepChangeCallback=function(){};
this.flowRenderer=X};
KYx.prototype.getCurrentStep=function(){var X=this,H;return((H=this.flowRenderer.steps)!=null?H:[]).map(function(l){return _.f(l,_.Kk)}).find(function(l){return l&&l.stepId===X.currentStepId})};
var RMZ=function(X,H){var l=H.flowStateEntityKey,b=X.flowStates.get(l);if(b)return b;H=new KYx(H);X.flowStates.set(l,H);return H},Cwy=function(X,H){for(var l=_.C(X.flowStates.entries()),b=l.next();!b.done;b=l.next()){var U=_.C(b.value);
b=U.next().value;U=U.next().value;if(U.flowRenderer.targetId===H){X.flowStates.delete(b);break}}},wGA=function(X,H){X.onStepChangeCallback=H;
X.onStepChangeCallback(X.getCurrentStep())},dDZ=function(X,H){var l=X.getCurrentStep();
if(l&&l.stepId===H)return!0;var b;return((b=X.flowRenderer.steps)!=null?b:[]).map(function(U){return _.f(U,_.Kk)}).find(function(U){return U&&U.stepId===H})?(X.currentStepId=H,X.onStepChangeCallback(X.getCurrentStep()),!0):!1},hMZ=function(X,H,l,b){H={challenge:H};
l&&(H.webResponse=l);return _.pg(X.innertubeTransportService,H,_.E9(SdY),b)},FYC=function(X,H,l){if(!H.challenge)throw Error("ti");
if(H.botguardData&&H.botguardData.program){var b=new PZ5;b.initialize(H.botguardData,function(){ptU(b,{atr_challenge:H.challenge}).then(function(U){if(!U)throw Error("ui");return hMZ(X,H.challenge,U,l)}).catch(function(U){_.x2(U);
return hMZ(X,H.challenge,void 0,l)})},void 0)}else hMZ(X,H.challenge,void 0,l)},Bb5=function(X,H,l){var b={};
H.ids&&(b.ids=[].concat(_.LJ(H.ids)));H.engagementType&&(b.engagementType=H.engagementType);return _.pg(X.innertubeTransportService,b,_.E9(_.zaQ),l).then(function(U){if(!U)throw new _.qd("GetAttestationChallenge returned falsy");FYC(X,U,l)}).thenCatch(function(U){_.n2(U)})},q1y=function(X,H,l){return new _.UA(function(b,U){var K;
return _.h(function(w){if(w.nextAddress==1){var d=w.yield,B=H.engagementType,q=H.ids,u={};q=_.C(q!=null?q:[]);for(var e=q.next();!e.done;e=q.next())e=e.value,e.encryptedVideoId?u.encryptedVideoId=e.encryptedVideoId:e.externalChannelId?u.externalChannelId=e.externalChannelId:e.commentId?u.commentId=e.commentId:e.externalOwnerId?u.externalOwnerId=e.externalOwnerId:e.artistId?u.artistId=e.artistId:e.playlistId?u.playlistId=e.playlistId:e.externalPostId?u.externalPostId=e.externalPostId:e.shareId?u.shareId=
e.shareId:e.postPlayNonce&&(u.postPlayNonce=e.postPlayNonce);return d.call(w,$9e(B,u),2)}K=w.yieldResult;if(!K.challenge)return _.x2(Error("vi")),Bb5(X,H,l).then(b,U),w.return();d=K;B={challenge:d.challenge};B.webResponse=d.webResponse;B.engagementType=H.engagementType;B.ids=H.ids;_.pg(X.innertubeTransportService,B,_.E9(SdY),l).then(b,U);_.m5(w)})})},Cey=function(X,H){var l,b,U,K;
_.h(function(w){if(w.nextAddress==1){l=_.f(H,_.Pdz);if(!(l&&l.listId&&X.response&&X.response.playingVideoId)||X.listId!==l.listId)return w.return();X.index===void 0&&(X.index=0);return w.yield(_.rdt(X.JSC$13404_playlistNetworkManager,l.listId,X.index,X.response.playingVideoId),2)}b=w.yieldResult;if(!b)return w.return();U=b.playlistId;K=b.playlistPanelRenderer;X.setPlaylistData(U,K,b.autoplayRenderer);_.m5(w)})},sRy=function(X,H,l){var b=X.getParams(l),U=_.tuL(H,b),K=X.getTempData(H,l);
K.endpoint=JSON.stringify(H);_.P("enable_unknown_lact_fix_on_html5")&&(_.jJ().resolve(_.HS),K.lact=_.JV());var w={headers:{"X-YouTube-STS":_.gx("STS"),"x-youtube-csoc":1}};_.Ec(U,K);return new _.UA(function(d,B){var q=X.getXhrParams(b),u;_.P("kevlar_cache_on_ttl_player")&&(u=_.jJ().resolve(_.Fk));u&&_.cjx(u,H)?_.Iea(u,H,K,window.location.href).then(function(e){e?d(e):B()},B):_.SgQ(X.JSC$13541_networkManager_,H,q,X.onPartsCallback_.bind(X),w).then(function(e){e?d(e):B()},B)})},Mey=function(X,H){X.triggerPromise_=
H.start();
X.triggerPromise_.then(function(l){var b=X.prefetchEndpointProvider_.getPrefetchEndpoint();if(b){var U=adA[X.prefetchJobConfig_.pageType].prefetchedFragments;X.prefetchRequestPromise_=sRy(X.JSC$13577_networkPrefetchRequest_,b,{fragmentsRequested:U,timeBeforeNextVideo:l});X.prefetchResponseCacheKey_=X.JSC$13577_networkPrefetchRequest_.getCacheKeyForEndpoint(b);JPl(X);X.prefetchRequestPromise_.then(function(K){X.storePrefetchedDataCallback_(X.prefetchResponseCacheKey_,K);if(_.P("web_prefetch_preload_video")&&
U.length===1&&U[0]==="pl"&&K&&!K.playerAds&&!K.adPlacements){var w=_.f(b,_.HM),d=w!=null,B={raw_player_response:K,watch_endpoint:w};(K=_.jJ().resolve(d?_.D$t:_.my))&&b&&K.then(function(q){d&&_.P("web_queue_preload_video")?(B.prefer_gapless=!0,q.queueNextVideo(B)):q.preloadVideoByPlayerVars(B)})}})}})},sk=function(X,H,l,b){this.prefetchEndpointProvider_=X;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=H;this.prefetchJobConfig_=l;this.JSC$13577_networkPrefetchRequest_=b;this.prefetchResponseCacheKey_=null};
sk.prototype.enqueue=function(){this.triggerPromise_||(Mey(this,rP5(this)),_.n8(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
sk.prototype.resolve=function(){this.cancel()};
sk.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.");JPl(this)};
sk.prototype.onVisibilityChange_=function(){var X=this;_.ZR(oEN)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){X.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||Mey(this,rP5(this))};
var uny=function(X,H,l,b,U){H&&(H==null?0:H.videoId)&&l&&l.entries&&_.P("kevlar_enable_shorts_prefetch_in_sequence")&&(IdU(X),H=l.entries.map(function(K){var w;return(w=_.f(K.command,_.HM))==null?void 0:w.videoId}).indexOf(H.videoId),l=l.entries[H+1],l!=null&&l.command&&!_.f(l==null?void 0:l.command,_.uy)&&(b=new cPZ([l.command],new i55(b,_.Ss,1),null,"shorts",!1),X.pendingPrefetchJob_=new sk(new NzY(b.autonavEndpoints),function(){return!1},b,new qm(U)),X.pendingPrefetchJob_.enqueue()))},eMY=function(X,
H,l,b,U,K){var w=_.ac.getInstance();
if(!_.P("block_all_player_prefetch_requests")){IdU(X);var d=!!l.getPlaylistId(),B=l.getVideoData().isLive&&l.getVideoData().hasProgressBarBoundaries;if((w.getState()==2||d||B)&&(!l.getVideoData().isLive||B)){w={inPlaylist:d,videoDuration:l.getDuration(),makeUpNextTrigger:function(u){return new Yda(l,_.Ss,u)},
makePlaybackTrigger:function(u){return new i55(l,_.Ss,u)}};
var q=jM5(H,w);q&&(X.pendingPrefetchJob_=new sk(q.isInPlaylist?new TzY(U):new NzY(q.autonavEndpoints),function(u,e){e=new mSZ(adA[q.pageType].pageFragments,adA[q.pageType].prefetchedFragments,e);return _.XlG(e)?(X.prefetchCache_.set(u,e),!0):!1},q,new B2(b,l,K,U)),X.pendingPrefetchJob_.enqueue())}}},yJ$=function(){var X=_.D7();
X.signals.parkOrScheduleJob(function(){var H=X.storage;if(H.storage)if(xSy(H)){var l=H.getPlaylistId();H=DSZ(H);l=!!l&&H!==void 0}else H.clear(),l=!1;else l=!1;if(l){l=X.JSC$13404_pageManager.isOnWatch();a:{var b=X.storage;if(b.storage&&xSy(b)&&(H=b.getPlaylistId(),b=DSZ(b),H&&b!==void 0)){l={recoverPlaylistCommand:{listId:H,index:b,openMiniplayer:!l,openListPanel:l,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}l=void 0}l&&_.qD(X.JSC$13404_actionRouter,[l],null)}},0,"ma")},Vea=function(X,H,l,
b,U,K){var w=_.cS(7111);
_.rg(X.JSC$18946_screenManager,w,K?_.$l(K):void 0);_.Lk(X.JSC$18946_screenManager,w,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:b,offlineId:H,offlineabilityFormatType:l,isDefaultFormatType:U==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:U}})},Pwx=function(X,H,l,b,U){var K,w,d,B,q;
return _.h(function(u){if(u.nextAddress==1)return u.yield(X.JSC$18946_playerApiPromise,2);K=u.yieldResult;Vea(X,H,l,"OFFLINE_OBJECT_TYPE_PLAYLIST",b,U);if(d=_.slQ[X.entityTypeMap.listEntityType])q={},w=(q[d]={maximumDownloadQuality:(B=l)!=null?B:void 0},q);return u.yield(K.queueOfflineAction(H,X.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",w),0)})},fKZ=function(X,H){var l,b,U,K;
return _.h(function(w){if(w.nextAddress==1)return w.yield(X.JSC$18946_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3){l=w.yieldResult;if(!l)return _.x2(new _.qd("PES is undefined")),w.return();b=_.rc(H,"downloadStatusEntity");return w.yield(kql(l,b,"downloadStatusEntity"),3)}U=w.yieldResult;return w.return((K=U)==null?void 0:K.downloadState)})},pGA=function(X,H,l,b,U){var K,w,d,B,q,u;
return _.h(function(e){switch(e.nextAddress){case 1:return e.yield(X.JSC$18946_playerApiPromise,2);case 2:K=e.yieldResult;Vea(X,H,l,"OFFLINE_OBJECT_TYPE_VIDEO",b,U);if(d=_.slQ[X.entityTypeMap.singleEntityType])q={},w=(q[d]={maximumDownloadQuality:(B=l)!=null?B:void 0},q);return e.yield(fKZ(X,H),3);case 3:u=e.yieldResult;if(u!=="DOWNLOAD_STATE_USER_DELETED"){e.jumpTo(4);break}return e.yield(X.deleteVideo(H),4);case 4:return e.yield(K.queueOfflineAction(H,X.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
w),0)}})},S1l=function(X,H,l,b,U){return _.h(function(K){return K.nextAddress==1?K.yield(X.deleteVideo(H,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):K.yield(pGA(X,H,l,b,U),0)})},zMU=function(X,H,l){var b,U;
return _.h(function(K){if(K.nextAddress==1)return K.yield(X.JSC$18946_playerApiPromise,2);b=K.yieldResult;U=_.rc(H,"mainVideoDownloadStateEntity");return K.yield(b.updateDownloadState(U,l),0)})},UQZ=function(X){var H=_.jJ().resolve(_.dK);
return _.h(function(l){if(l.nextAddress==1)return H.previousDownloadStateForVideo[X]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&H.previousDownloadStateForVideo[X]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?l.jumpTo(2):l.yield(H.resumeVideoDownload(X),2);if(l.nextAddress!=4)return l.yield(zMU(H,X,H.previousDownloadStateForVideo[X]),4);delete H.previousDownloadStateForVideo[X];_.m5(l)})},o1e=function(X,H){var l;
return _.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$18946_playerApiPromise,2);l=b.yieldResult;return b.yield(l.queueOfflineAction(H,X.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},XR$=function(){var X=_.jJ().resolve(_.dK),H,l;
return _.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$18946_playerApiPromise,2);if(b.nextAddress!=3)return H=b.yieldResult,l={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},b.yield(H.queueOfflineAction("!*$_ALL_ENTITIES_!*$",X.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",l),3);var U=X.JSC$18946_commandHandler,K=U.resolveCommand,w=_.XS("DELETING_ALL",void 0,"Downloads are being deleted");K.call(U,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Zi(w)}},
popupType:"TOAST"}});_.m5(b)})},n7$=function(X,H){var l,b,U,K,w,d;
return _.h(function(B){if(B.nextAddress==1)return B.yield(X.JSC$18946_persistentStorePromiseAccessor(),2);if(B.nextAddress!=3)return l=B.yieldResult,l?B.yield(kql(l,_.wR,"downloadsPageViewConfigurationEntity"),3):(_.x2(new _.qd("PES is undefined")),B.return());U=(b=B.yieldResult)!=null?b:{};d=(w=(K=U)==null?void 0:K.downloadsUpsellBannerVisibility)!=null?w:{};return d.visibleWithConnection?B.yield(H.refreshAllStaleEntities(0),0):B.jumpTo(0)})},kHY=function(X){var H,l;
return _.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$18946_prefStorage,2);H=b.yieldResult;return b.return((l=H)==null?void 0:l.get("sdois"))})},xDp=function(X){var H,l,b,U,K,w;
return _.h(function(d){if(d.nextAddress==1)return d.yield(X.JSC$18946_persistentStorePromiseAccessor(),2);if(d.nextAddress!=3){H=d.yieldResult;if(!H)return _.x2(new _.qd("PES is undefined")),d.return();l=_.rc("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return d.yield(kql(H,l,"settingEntity"),3)}b=d.yieldResult;return d.return((w=(U=b)==null?void 0:(K=U.settingOptionValue)==null?void 0:K.boolValue)!=null?w:!1)})},DDp=function(X,H){var l,b,U,K;
return _.h(function(w){switch(w.nextAddress){case 1:return((l=H)==null?void 0:l.formatType)===void 0?w.return():w.yield(X.JSC$18946_prefStorage,2);case 2:b=w.yieldResult;if(b===void 0)return w.return();if(((U=H)==null?void 0:U.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return w.yield(b.set("lmqf",H.formatType),8);if(((K=H)==null?void 0:K.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){w.jumpTo(0);break}return w.yield(b.set("lmqf",H.formatType),6);case 6:return w.yield(b.set("lmqflst",
Math.floor((0,_.Jl)())),0);case 8:return w.yield(b.remove("lmqflst"),0)}})},tep=function(X){var H,l;
return _.h(function(b){switch(b.nextAddress){case 1:return b.yield(X.JSC$18946_prefStorage,2);case 2:H=b.yieldResult;if(!H){b.jumpTo(3);break}return b.yield(H.get("lmqflst"),4);case 4:if(l=b.yieldResult,l!==void 0)return b.return(l);case 3:return b.return(0)}})},WY5=function(X){var H,l,b;
return _.h(function(U){return U.nextAddress==1?U.yield(X.JSC$18946_prefStorage,2):U.nextAddress!=3?(H=U.yieldResult,U.yield((l=H)==null?void 0:l.get("ldtmes"),3)):U.return((b=U.yieldResult)!=null?b:!1)})},PiA=function(){var X=_.jJ().resolve(_.dK),H;
return _.h(function(l){if(l.nextAddress==1)return l.yield(X.JSC$18946_prefStorage,2);H=l.yieldResult;return H===void 0?l.return():l.yield(H.set("ldtmes",!0),0)})},E7C=function(X){var H,l;
return _.h(function(b){switch(b.nextAddress){case 1:return b.yield(X.JSC$18946_prefStorage,2);case 2:H=b.yieldResult;if(H===void 0){b.jumpTo(3);break}return b.yield(H.get("lmqf"),4);case 4:if(l=b.yieldResult,l!==void 0)return b.return(l);case 3:return b.return("SD")}})},FxA=function(X,H,l){var b,U,K,w,d,B,q,u;
_.h(function(e){switch(e.nextAddress){case 1:return e.yield(DDp(X,(b=H)==null?void 0:b.actionParams),2);case 2:U=H.playlistId;if(!U)return e.return();if(H.action==="ACTION_ADD")return((w=H.actionParams)==null?0:w.formatType)?e.yield(Pwx(X,U,H.actionParams.formatType,(u=H.actionParams)==null?void 0:u.settingsAction,l),0):e.yield(X.offlineWebClientEligibility,14);if(H.action==="ACTION_REMOVE_WITH_PROMPT"){var y=X.JSC$18946_commandHandler,V=y.resolveCommand,p=_.gx("INNERTUBE_CLIENT_NAME");var z=p===
"WEB_REMIX"?_.XS("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.XS("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var t=p==="WEB_REMIX"?[_.XS("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];p=p==="WEB_REMIX"?_.XS("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.XS("DELETE",void 0,"Delete");var W=_.XS("CANCEL",void 0,"Cancel");z=KIA(z,t,p,W,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:U});V.call(y,{openPopupAction:z});return e.return()}if(H.action===
"ACTION_REMOVE")return e.yield(o1e(X,U),0);if(H.action!=="ACTION_SYNC"){e.jumpTo(0);break}return e.yield(X.JSC$18946_playerApiPromise,9);case 9:return K=e.yieldResult,e.yield(K.queueOfflineAction(U,X.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return d=e.yieldResult,e.yield(E7C(X),15);case 15:return B=e.yieldResult,e.yield(tep(X),16);case 16:q=e.yieldResult,H.onAddCommand&&X.JSC$18946_commandHandler.resolveCommand(H.onAddCommand,{form:{preferredFormatType:B,
offlineWebClientEligibility:d,lastOfflineQualitySettingsSavedMs:q.toString()}}),e.jumpTo(0)}})},dQp=function(X,H,l){var b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J,Y;
_.h(function(Uy){switch(Uy.nextAddress){case 1:return Uy.yield(DDp(X,(b=H)==null?void 0:b.actionParams),2);case 2:U=H.videoId;if(!U)return Uy.return();if(H.action==="ACTION_REMOVE_WITH_PROMPT"){var Cy=X.JSC$18946_commandHandler,sy=Cy.resolveCommand,FO=_.gx("INNERTUBE_CLIENT_NAME");var ub=FO==="WEB_REMIX"?_.XS("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.XS("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var g8=FO==="WEB_REMIX"?[_.XS("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];FO=FO==="WEB_REMIX"?_.XS("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.XS("DELETE",void 0,"Delete");var mm=_.XS("CANCEL",void 0,"Cancel");ub=KIA(ub,g8,FO,mm,{signal:"DELETE_DOWNLOAD",targetId:U});sy.call(Cy,{openPopupAction:ub});return Uy.return()}if(H.action==="ACTION_ADD")return((r=H.actionParams)==null?0:r.formatType)?Uy.yield(pGA(X,U,H.actionParams.formatType,(Y=H.actionParams)==null?void 0:Y.settingsAction,l),0):Uy.yield(X.offlineWebClientEligibility,
29);if(H.action==="ACTION_RETRY")return Uy.yield(E7C(X),25);if(H.action==="ACTION_PAUSE")return Uy.yield(X.pauseVideoDownload(U),0);if(H.action==="ACTION_RESUME")return Uy.yield(X.resumeVideoDownload(U),0);if(H.action==="ACTION_REMOVE")return Uy.yield(fKZ(X,U),19);if(!H.onAddCommand||!_.f(H.onAddCommand,_.tw)){Uy.jumpTo(0);break}K=_.f(H.onAddCommand,_.tw);d=(w=K)==null?void 0:w.isCrossDeviceDownload;if(!d){Uy.jumpTo(0);break}B="HD";return Uy.yield(tep(X),16);case 16:return q=Uy.yieldResult,Uy.yield(WY5(X),
17);case 17:return u=Uy.yieldResult,Uy.yield(X.offlineWebClientEligibility,18);case 18:e=Uy.yieldResult;X.JSC$18946_commandHandler.resolveCommand(H.onAddCommand,{form:{preferredFormatType:B,lastOfflineQualitySettingsSavedMs:q.toString(),downloadToMobileEduShown:u,offlineWebClientEligibility:e}});Uy.jumpTo(0);break;case 19:return y=Uy.yieldResult,X.previousDownloadStateForVideo[U]=(V=y)!=null?V:"DOWNLOAD_STATE_UNKNOWN",Uy.yield(zMU(X,U,"DOWNLOAD_STATE_USER_DELETED"),20);case 20:if(X.previousDownloadStateForVideo[U]!==
"DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&X.previousDownloadStateForVideo[U]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){Uy.jumpTo(21);break}return Uy.yield(X.pauseVideoDownload(U),21);case 21:Cy=_.XS("DELETED_VIDEO",void 0,"Video deleted from downloads.");sy=_.XS("UNDO_ACTION",void 0,"Undo");ub=_.XS("CLOSE",void 0,"Close");p={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Zi(Cy),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Zi(sy),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",targetId:U}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:Cy+" "+sy}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:U}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:ub}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},
popupType:"TOAST"}};X.JSC$18946_commandHandler.resolveCommand(p);Uy.jumpTo(0);break;case 25:z=Uy.yieldResult;z==="UNKNOWN_FORMAT_TYPE"&&(z="SD");t="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((W=H.actionParams)==null?0:W.formatType)z=H.actionParams.formatType,t=(G=H.actionParams)==null?void 0:G.settingsAction;return Uy.yield(S1l(X,U,z,t,l),26);case 26:return Uy.return();case 29:return Q=Uy.yieldResult,Uy.yield(E7C(X),30);case 30:return v=Uy.yieldResult,Uy.yield(tep(X),31);case 31:J=Uy.yieldResult,
H.onAddCommand&&X.JSC$18946_commandHandler.resolveCommand(H.onAddCommand,{form:{preferredFormatType:v,offlineWebClientEligibility:Q,lastOfflineQualitySettingsSavedMs:J.toString()}}),Uy.jumpTo(0)}})},g7x=function(X,H){var l,b,U,K,w,d,B;
return _.h(function(q){if(q.nextAddress==1)return q.yield(X.JSC$18946_persistentStorePromiseAccessor(),2);l=q.yieldResult;if(!l)return _.x2(new _.qd("PES is undefined")),q.return();if((b=H)==null||!b.settingItemId)return q.return();U=H;K=U.settingItemId;w=U.boolValue;d=_.rc(K,"settingEntity");B={key:d,settingOptionValue:{boolValue:w}};return q.yield(nPy(l,B),0)})},GHd=function(X,H){var l,b,U,K,w,d,B;
return _.h(function(q){switch(q.nextAddress){case 1:return q.yield(X.JSC$18946_prefStorage,2);case 2:return l=q.yieldResult,b=_.oO(),q.yield(X.JSC$18946_persistentStorePromiseAccessor(),3);case 3:return U=q.yieldResult,l?U?q.yield(l.get("sdois"),4):(_.x2(new _.qd("PES is undefined")),q.return()):(_.x2(new _.qd("prefStorage is undefined")),q.return());case 4:K=q.yieldResult;d=(w=H)==null?void 0:w.boolValue;d===void 0||_.P("kevlar_set_sd_enabled_flag_killswitch")||_.bH(0,197,!0);K===void 0&&d===void 0&&
(d=!1);if(d===void 0){q.jumpTo(0);break}return q.yield(l.set("sdois",d),6);case 6:return _.P("kevlar_set_sd_enabled_flag_killswitch")||(_.bH(0,196,d),b.save()),B={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:d},q.yield(g7x(X,B),0)}})},aKy=function(X,H,l){var b,U,K,w,d;
return _.h(function(B){switch(B.nextAddress){case 1:return B.yield(kHY(X),2);case 2:return b=B.yieldResult,B.yield(GHd(X,l),3);case 3:return B.yield(kHY(X),4);case 4:return U=B.yieldResult,K=U!==b,B.yield(xDp(X),5);case 5:w=B.yieldResult&&!_.P("kevlar_modern_downloads_page");if((d=!U&&!w)||K)return B.yield(H.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);B.jumpTo(0)}})},Kxy=function(){var X=_.jJ().resolve(_.dK),
H;
_.h(function(l){switch(l.nextAddress){case 1:return l.yield(X.JSC$18946_playerApiPromise,2);case 2:H=l.yieldResult;if(!_.P("kevlar_force_refresh_smart_downloads")){l.jumpTo(3);break}return l.yield(H.refreshAllStaleEntities(0),4);case 4:return l.return();case 3:return l.yield(H.refreshAllStaleEntities(),5);case 5:return l.yield(aKy(X,H),6);case 6:if(_.P("enable_download_pep_for_premium_countries_web"))return l.yield(n7$(X,H),0);l.jumpTo(0)}})},q$U=function(X,H){var l,b;
_.h(function(U){switch(U.nextAddress){case 1:return U.yield(X.JSC$18946_playerApiPromise,2);case 2:l=U.yieldResult;switch((b=H)==null?void 0:b.settingItemId){case "SMART_DOWNLOADS_ENABLED":return U.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return U.jumpTo(4)}U.jumpTo(0);break;case 3:return U.yield(aKy(X,l,H),6);case 6:U.jumpTo(0);break;case 4:return U.yield(g7x(X,H),7);case 7:U.jumpTo(0)}})},ZFd=function(X,H){var l,b,U;
return _.h(function(K){if(K.nextAddress==1)return K.yield(X.JSC$18946_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3){l=K.yieldResult;if(!l)return _.x2(new _.qd("PES is undefined")),K.return(!1);if(!H)return K.return(!1);b=_.rc(H,"mainVideoEntity");return K.yield(kql(l,b,"mainVideoEntity"),3)}U=K.yieldResult;return K.return(U!==void 0)})},M1Z=function(X){var H=_.jJ().resolve(_.dK),l,b,U,K,w,d,B,q,u,e,y;
_.h(function(V){switch(V.nextAddress){case 1:return V.yield(H.JSC$18946_playerApiPromise,2);case 2:l=V.yieldResult;U=(b=X)==null?void 0:b.actions;if(!U)return V.return();K=_.C(U);w=K.next();case 3:if(w.done){V.jumpTo(0);break}d=w.value;q=B=void 0;if(!(((B=d)==null?0:B.entityKey)&&((q=d)==null?0:q.actionType))){V.jumpTo(4);break}u=_.NJ(d.entityKey);e=u.entityId;y=u.entityType;return V.yield(l.queueOfflineAction(e,y,d.actionType),4);case 4:w=K.next(),V.jumpTo(3)}})},iFy=function(X,H){var l,b,U,K,w;
return _.h(function(d){if(d.nextAddress==1)return d.yield(X.JSC$18946_prefStorage,2);if(d.nextAddress!=3)return(l=d.yieldResult)?d.yield(l.get("psi"),3):d.return();b=d.yieldResult;w={isPaused:H,lastSyncTimestamp:(K=(U=b)==null?void 0:U.lastSyncTimestamp)!=null?K:"0"};return d.yield(l.set("psi",w),0)})},y8a=function(X){var H=_.jJ().resolve(_.dK),l,b,U,K,w,d,B,q;
return _.h(function(u){switch(u.nextAddress){case 1:return u.yield(H.JSC$18946_playerApiPromise,2);case 2:l=u.yieldResult;U=((b=X)==null?void 0:b.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((d=X)==null?void 0:d.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":K="!*$_ALL_ENTITIES_!*$";w="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return u.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return u.jumpTo(4)}u.jumpTo(5);break;case 3:return u.yield(iFy(H,U),6);case 6:u.jumpTo(5);break;case 4:return u.yield(ZFd(H,(B=X)==null?void 0:B.videoId),7);case 7:u.yieldResult&&(K=(q=X)==null?void 0:q.videoId,w="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");u.jumpTo(5);break;case 5:if(K&&w)return u.yield(l.queueOfflineAction(K,"videoPlaybackPositionEntity",w),0);u.jumpTo(0)}})},v7y=function(X,H){_.jJ().resolve(_.Bm).persistentPanelContainerMap.set(H,X)},
OFC=function(X,H,l){X.hasRegisteredHoverCallbacks=!0;
X.hoverEnterCallback=H!=null?H:void 0;X.hoverLeaveCallback=l!=null?l:void 0},mD5=function(){return _.jJ().resolve(_.bW).dismissedIndices},QRl=function(){var X=_.jJ().resolve(_.bW);
_.iqy(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(X.isFullscreenEnabled()?_.GP(document.documentElement):_.YbN(document.documentElement))},TbZ=function(X,H){var l;
H!==1||((l=X.currentPersistentToast)==null?0:l.isOpened())?_.hOd(X):X.currentPersistentToast=void 0},NbZ=function(X,H){var l;
return(l=X.transitionTasksMap.get(H))!=null?l:[]},cJp=function(X,H){var l=[];
X.elementTasksMap.forEach(function(b){(b=b.get(H))&&l.push(b)});
return l},jRp=function(X,H,l,b,U){U=U===void 0?{}:U;
var K=H.defaultViewTransitionOptions;return Object.assign({},K,U,{beforeTransition:function(){b.forEach(function(q){q.beforeTransition()});
var w;(w=K.beforeTransition)==null||w.call(K);var d,B;(B=(d=U).beforeTransition)==null||B.call(d);l.forEach(function(q){q.beforeTransition()})},
afterTransition:function(){b.forEach(function(q){q.afterTransition()});
var w;(w=K.afterTransition)==null||w.call(K);var d,B;(B=(d=U).afterTransition)==null||B.call(d);l.forEach(function(q){q.afterTransition()})},
ignoredErrors:X.config.ignoredErrors})},rJZ=function(X,H,l){X.transitionTasksMap.has(H)?X.transitionTasksMap.get(H).push(l):(X=new _.qd("Transition task registered for unknown transition type",H),_.n2(X))},JJA=function(X,H,l){if(X.transitionTasksMap.has(H)){var b=X.transitionTasksMap.get(H).filter(function(U){return U!==l});
X.transitionTasksMap.set(H,b)}},LYU=function(X,H){var l=NbZ(X,H);
l=_.C(l);for(var b=l.next();!b.done;b=l.next())b=b.value,b.runOnce&&JJA(X,H,b);X.elementTasksMap.forEach(function(U,K){U.forEach(function(w,d){w.runOnce&&H===d&&(U.delete(d),U.size===0&&X.elementTasksMap.delete(K))})})},Y1y=function(X,H,l){var b,U,K,w,d,B,q,u,e;
_.h(function(y){if(y.nextAddress==1){if(X.config.disableAllTransitions)return y.return(H());if((b=l)==null||!b.transitionType)return y.return(Cgd(H,Object.assign({},(U=l)==null?void 0:U.viewTransitionOptions,{ignoredErrors:X.config.ignoredErrors})));K=l;w=K.transitionType;d=K.viewTransitionOptions;B=X.config.transitionConfigs.get(w);if(!B)return y.return(H());q=NbZ(X,w);u=cJp(X,w);e=Cgd(H,jRp(X,B,q,u,d));return y.yield(e,2)}LYU(X,w);_.m5(y)})},IKU=function(X,H){var l,b,U,K,w;
_.h(function(d){if(!H.length)return d.return([]);l=[];b=_.C(H);for(U=b.next();!U.done;U=b.next())K=U.value,(w=X.resolveIcon(K))&&!X.iconCache[w.url]&&l.push(_.xkd(X,w).then(function(){}).catch(function(){}));
return d.return(Promise.all(l))})},AJN=function(X,H){var l=[];
H=(new Set(H)).values();H=_.C(H);for(var b=H.next();!b.done;b=H.next()){b=b.value;for(var U=_.C(Object.values(HFp)),K=U.next();!K.done;K=U.next())l.push({iconName:b,iconStyle:K.value})}IKU(X.iconManager,l)},XAl=function(X,H,l){var b=l!=null?l:X.iconsToFetch;
b!=null&&b.length?H!==void 0&&H>=0?_.eh(_.Ss,function(){AJN(X,b)},H):AJN(X,b):Promise.resolve()},HRY=function(){var X,H,l,b;
return _.h(function(U){if(U.nextAddress==1)return X=navigator,(H=X.storage)!=null&&H.persisted?U.yield((l=X.storage)==null?void 0:l.persisted(),2):U.return("PERSISTED_STATE_NOT_SUPPORTED");b=U.yieldResult;return U.return(b?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},lgZ=function(){var X,H,l,b;
return _.h(function(U){if(U.nextAddress==1)return X=navigator,(H=X.storage)!=null&&H.persist?U.yield((l=X.storage)==null?void 0:l.persist(),2):U.return("PERSISTED_STATE_NOT_SUPPORTED");b=U.yieldResult;return U.return(b?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},owe=function(){var X,H;
return _.h(function(l){switch(l.nextAddress){case 1:return X="PERSISTED_STATE_NOT_SUPPORTED",_.Ew(l,2),l.yield(HRY(),4);case 4:X=l.yieldResult;if(X!=="PERSISTED_STATE_NOT_GRANTED"){l.jumpTo(5);break}return l.yield(lgZ(),6);case 6:X=l.yieldResult;case 5:_.Zt(l,3);break;case 2:H=_.Ow(l),H instanceof Error&&_.n2(H);case 3:return _.Sh("persistentStorageStateChecked",{persistedState:X}),l.return(X)}})},bRa=function(X,H,l){if(X.isAnyTransitionEnabled){var b={beforeTransition:function(){l(!0);
H.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){H.style.viewTransitionName&&(H.style.viewTransitionName="",l(!1))}};
rJZ(X.viewTransitionCoordinator,"slide",b);rJZ(X.viewTransitionCoordinator,"lockup-to-watch",b);rJZ(X.viewTransitionCoordinator,"watch-next-appears",b);rJZ(X.viewTransitionCoordinator,"learning-journey",b)}},U6C=function(X,H,l,b){if(X.isLockupToWatchTransitionEnabled){if(H){var U={};
U=(U["watch-next-appears"]="player-watch-next-loaded",U);U["lockup-to-watch"]=X.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";X.viewTransitionCoordinator.registerElement(H,U)}l&&(H={},X.viewTransitionCoordinator.registerElement(l,(H["lockup-to-watch"]="below-lockup-to-watch",H["watch-next-appears"]="below-watch-next-loaded",H)));b&&(l={},X.viewTransitionCoordinator.registerElement(b,(l["watch-next-appears"]="secondary-watch-next-loaded",
l)))}},$65=function(X,H){X.isBrowseTransitionEnabled?Y1y(X.viewTransitionCoordinator,H,{transitionType:"slide"}):(H(),Promise.resolve())},KAZ=function(X,H){X.isLockupToWatchTransitionEnabled?Y1y(X.viewTransitionCoordinator,H,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){X.registeredLockupThumbnail=void 0;X.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(H(),Promise.resolve())},Rkp=function(X,H){X.isLockupToWatchTransitionEnabled?Y1y(X.viewTransitionCoordinator,H,{transitionType:"watch-next-appears"}):(H(),Promise.resolve())},Cde=function(X,H){X.isLearningJourneyTransitionEnabled?Y1y(X.viewTransitionCoordinator,H,{transitionType:"learning-journey"}):(H(),Promise.resolve())},wAZ=function(X,H,l){if(X.isInitialized()){var b=
ZT(l),U=b==="watch";
b=b==="shorts";var K=ZT(H)==="watch";if(U)K||(X.backgroundPageData=H),X.watchPipMode&&K||X.deactivate(l.endpoint);else if(b){if(ZT(H)!=="shorts"){var w;(w=X.getPlayerElement())==null||w.pause()}}else K&&!X.watchPipMode&&(wfU(H,l,!0)?(X.watchWhileMode&&_.thl(X,!1),_.SAA(X,H)):X.isMiniplayerActive()&&X.watchWhileMode&&X.deactivate());K&&_.E2y(X);X.shortsPipMode&&!b&&(window.focus(),X.deactivate());if(X.pictureInPictureEnabled())if(b&&X.shortsPipEnabled||U&&X.JSC$19363_watchPipEnabled&&(!X.watchPipManualOnlyEnabled||
_.Jmb()&&_.fLz("Chromium")>=142))_.Ypy(X.handleMediaSessionPipActivation);else if((!X.isMiniplayerActive()||X.watchPipManualOnlyEnabled)&&(X.shortsPipEnabled||X.JSC$19363_watchPipEnabled)&&_.Jmb()){X=_.LH8().mediaSession;try{X.setActionHandler("enterpictureinpicture",null)}catch(d){}}}},d6Y=function(X,H){var l,b;
_.h(function(U){if(U.nextAddress==1){if(!X||!X.navigationEndpoint)return U.return();_.HW().lockupActivation=!0;var K;H?K=_.xM(_.XS("QUEUE",void 0,"Queue")):K=X.longBylineText;b=(l=K)&&X.title?{miniplayerTitle:X.title,miniplayerSubtitle:l,playlistData:null}:void 0;return U.yield(_.t8H(_.jJ().resolve(_.f9),X.navigationEndpoint,!0,b),2)}_.HW().userActivation=!0;_.m5(U)})},$7Z=function(X,H){var l,b,U,K,w,d;
_.h(function(B){if(B.nextAddress==1){l=_.f(H,_.VfQ);if(!l||!l.listId)return B.return();X.index=l.index||X.index||0;b=X.response&&X.response.playingVideoId||void 0;return B.yield(_.rdt(X.JSC$13404_playlistNetworkManager,l.listId,X.index,b),2)}U=B.yieldResult;if(!U)return B.return();K=U.playlistId;w=U.playlistPanelRenderer;!X.queueProxy&&K&&w&&K.startsWith("TLPQ")&&(X.queueProxy=new _.PW(X.JSC$13404_playlistNetworkManager,K,X.setPlaylistData.bind(X),X.clearQueue.bind(X),_.rkZ(w),X.storage));if(l.openMiniplayer&&
(d=_.Jkk(w))&&!X.JSC$13404_pageManager.isOnWatch()){var q=d,u=l.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";X.isMiniplayerActive()||d6Y(q,u)}X.setPlaylistData(K,w,U.autoplayRenderer);_.m5(B)})},ogU=function(X,H){var l=_.D7();
l.index===void 0&&(l.index=0);l.temporaryItems.push.apply(l.temporaryItems,_.LJ(X));if((H.videoId||H.videoIds)&&l.index!==void 0&&H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!l.queueProxy){var b=[];if(l.response){var U=_.jJ().resolve(_.f9).isMiniplayerActive();if(l.response.playlistPanelRenderer&&l.response.playlistId&&!l.response.playlistId.startsWith("TLPQ")){if(l.JSC$13404_pageManager.isOnWatch()||U)b=_.rkZ(l.response.playlistPanelRenderer)}else l.response.playingVideoId&&!H.openMiniplayer?
b.push(l.response.playingVideoId):U&&l.response.playingVideoId&&H.openMiniplayer&&b.push(l.response.playingVideoId)}l.queueProxy=new _.PW(l.JSC$13404_playlistNetworkManager,"",l.setPlaylistData.bind(l),l.clearQueue.bind(l),b,l.storage);l.queueProxy.JSC$13350_setCurrentIndex(l.index)}l.queueProxy.addVideos(H.videoIds||[H.videoId],H)}tzd(l,X);l.response&&_.tO(l,_.WW(l,l.response.autoplayRenderer));l.JSC$13404_pageManager.isOnWatch()||(X=X[0],H=H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",l.isMiniplayerActive()||
d6Y(X,H))},hkU=function(X,H){var l;
return _.h(function(b){return b.nextAddress==1?H&&X.lastWelcomeContinuationSent!==H?_.rS5(X)?b.yield(X.panelController.isVisible("PAai_companion"),3):b.jumpTo(2):b.return(!1):b.nextAddress==2||(l=b.yieldResult,l)?b.return(!0):b.return(!1)})},FAa=function(X){var H,l,b,U,K;
return _.h(function(w){if(w.nextAddress==1){if(!X.welcomeOptions)return w.return();H=X.welcomeOptions;l=H.command;b=H.setPending;if(l){var d;var B=(d=_.f(l,_.uE))==null?void 0:d.token}else B=void 0;U=B;return w.yield(hkU(X,U),2)}if(!w.yieldResult)return w.return();X.lastWelcomeContinuationSent=U;(K=b)==null||K(!0);B="youchat-"+Date.now();d=(d=_.rd())?String(Math.floor(d.getCurrentTime())*1E3):void 0;_.Mq(l,{form:{formData:_.tD({clientMessageId:B,playerOffsetMs:d,pageContext:_.O$Z(X,X.pageSubtype)})}});
_.m5(w)})},Bsd=function(X,H){_.h(function(l){X.welcomeOptions=H;
return l.yield(FAa(X),0)})},q8C=function(X){var H=_.bx(X);
if(H=="object"||H=="array"){if(typeof X.clone==="function")return X.clone();if(typeof Map!=="undefined"&&X instanceof Map)return new Map(X);if(typeof Set!=="undefined"&&X instanceof Set)return new Set(X);H=H=="array"?[]:{};for(var l in X)H[l]=q8C(X[l]);return H}return X},Fex=function(X,H){return Array.prototype.reduce.call(X,H,{duration:0})},Mm=function(X,H){return _.kYZ(_.be(X,H,void 0,_.HC))},uN=function(X,H){return _.hN(_.be(X,H,void 0,_.HC))},ed=function(X,H){return _.be(X,H,void 0,_.HC,_.oC)},
seA=_.uR(function(X,H,l,b){if(_.c8)return _.bJZ(X,H,l,b);
if(X.nextWireType_!==0)return!1;_.nX(H,l,b,_.z2(X.decoder_,_.JQ));return!0},_.fX,_.xg),MfZ=_.uR(function(X,H,l){if(_.c8)return _.K5l(X,H,l);
if(X.nextWireType_!==1)return!1;var b=X.decoder_;X=_.zb(b);b=_.zb(b);X=_.Nv(X,b);_.eA(H,l,X);return!0},_.Jbb,_.ZXH),uI5=_.uR(function(X,H,l){if(X.nextWireType_!==5)return!1;
_.eA(H,l,_.zb(X.decoder_));return!0},function(X,H,l){H=_.tqy(H);
H!=null&&(_.y2(X,l,5),_.V2(X.encoder_,H))},_.gnz),ekd=_.uR(function(X,H,l){if(X.nextWireType_!==2)return!1;
X=_.VAD(X);_.eA(H,l,X===_.Wz()?void 0:X);return!0},_.XJy,_.OXQ),ysx=_.vnz(function(X,H,l){if(X.nextWireType_!==0&&X.nextWireType_!==2)return!1;
H=_.KX(H,H[_.K_]|0,l);X.nextWireType_==2?_.PRY(X,Rvp,H):H.push(_.S5(X.decoder_));return!0},function(X,H,l){H=_.iXm(_.hN,H,!0);
if(H!=null&&H.length){l=_.k2G(X,l);for(var b=0;b<H.length;b++)_.cbh(X.encoder_,H[b]);_.xaQ(X,l)}},_.maq),VfN=_.uR(function(X,H,l,b){if(X.nextWireType_!==0)return!1;
_.nX(H,l,b,_.S5(X.decoder_));return!0},_.l3N,_.maq),Pdp=function(X,H){return X==H?!0:X&&H?X.width==H.width&&X.height==H.height:!1},yN=function(X,H){X.insertBefore(H,X.childNodes[0]||null)},fgp=function(X){return X.previousElementSibling!==void 0?X.previousElementSibling:_.IeG(X.previousSibling,!1)},ieZ=_.Wu(_.uD),pAd=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(pAd,_.sU);pAd.prototype.getTypeName=function(){return _.sC(this,1).split("/").pop()};
pAd.prototype.getValue=function(){var X=_.be(this,2);if(Array.isArray(X)||X instanceof _.sU)throw Error("X");return _.Kj(this,2)};
var S8Z=[0,2,_.ZU],cFp=function(){var X=_.m1();this.JSC$10227_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Tp("channel_type"))};
cFp.prototype.increment=function(X){this.JSC$10227_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",X)};
var jiy=function(){var X=_.m1();this.JSC$10230_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Tp("channel_type"))};
jiy.prototype.increment=function(X){this.JSC$10230_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",X)};
var JFp=function(){var X=_.m1();this.JSC$10233_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Tp("channel_type"))};
JFp.prototype.increment=function(X){this.JSC$10233_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",X)};
var rFd=function(){var X=_.m1();this.JSC$10236_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
rFd.prototype.increment=function(){this.JSC$10236_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var LrA=function(){var X=_.m1();this.JSC$10239_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Tp("channel_type"),_.Tp("error_type"))};
LrA.prototype.increment=function(X,H){this.JSC$10239_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",X,H)};
var Yqe=function(){var X=_.m1();this.JSC$10242_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
Yqe.prototype.increment=function(){this.JSC$10242_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var IVa=function(){var X=_.m1();this.JSC$10245_streamzService=X;X.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
IVa.prototype.increment=function(){this.JSC$10245_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var mQ$=function(){var X=_.m1();this.JSC$10251_streamzService=X;X.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
mQ$.prototype.increment=function(){this.JSC$10251_streamzService.JSC$10097_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var zky=function(X){return X.getCount&&typeof X.getCount=="function"?X.getCount():_.ch(X)||typeof X==="string"?X.length:_.Bb.getCount(X)},nwY=function(X,H){if(typeof X.every=="function")return X.every(H,void 0);
if(_.ch(X)||typeof X==="string")return Array.prototype.every.call(X,H,void 0);for(var l=_.ySH(X),b=_.ii(X),U=b.length,K=0;K<U;K++)if(!H.call(void 0,b[K],l&&l[K],X))return!1;return!0},kV5=function(X,H,l,b){var U=new _.xu(null);
X&&_.vR(U,X);H&&_.O$(U,H);l&&_.mx(U,l);b&&_.QD(U,b);return U},x6a=function(X){if(X>=48&&X<=57||X>=96&&X<=106||X>=65&&X<=90||_.XQ&&X==0)return!0;
switch(X){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 _.Hf;default:return!1}},D6x=function(X){if(X.altKey&&!X.ctrlKey||X.metaKey||X.keyCode>=112&&X.keyCode<=123)return!1;
if(x6a(X.keyCode))return!0;switch(X.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!_.Hf;default:return X.keyCode<166||X.keyCode>183}},tfZ=[0,
_.tC,uI5,-1],WAZ={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"},Gwy=0,Orx=!1,O9e=function(X,H,l,b,U,K,w){this.date=typeof X==="number"?new Date(X,H||0,l||1,b||0,U||0,K||0,w||0):new Date(X&&X.getTime?X.getTime():_.QC())};
_.To(O9e,_.U8);_.R=O9e.prototype;_.R.getHours=function(){return this.date.getHours()};
_.R.getMinutes=function(){return this.date.getMinutes()};
_.R.getSeconds=function(){return this.date.getSeconds()};
_.R.getMilliseconds=function(){return this.date.getMilliseconds()};
_.R.getUTCDay=function(){return this.date.getUTCDay()};
_.R.getUTCHours=function(){return this.date.getUTCHours()};
_.R.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.R.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.R.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.R.setHours=function(X){this.date.setHours(X)};
_.R.setMinutes=function(X){this.date.setMinutes(X)};
_.R.setSeconds=function(X){this.date.setSeconds(X)};
_.R.setMilliseconds=function(X){this.date.setMilliseconds(X)};
_.R.setUTCHours=function(X){this.date.setUTCHours(X)};
_.R.setUTCMinutes=function(X){this.date.setUTCMinutes(X)};
_.R.setUTCSeconds=function(X){this.date.setUTCSeconds(X)};
_.R.setUTCMilliseconds=function(X){this.date.setUTCMilliseconds(X)};
_.R.add=function(X){_.U8.prototype.add.call(this,X);X.hours&&this.setUTCHours(this.date.getUTCHours()+X.hours);X.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+X.minutes);X.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+X.seconds)};
_.R.JSC$11647_toIsoString=function(X){var H=_.U8.prototype.JSC$11647_toIsoString.call(this,X);return X?H+"T"+_.IV(this.getHours(),2)+":"+_.IV(this.getMinutes(),2)+":"+_.IV(this.getSeconds(),2):H+"T"+_.IV(this.getHours(),2)+_.IV(this.getMinutes(),2)+_.IV(this.getSeconds(),2)};
_.R.equals=function(X){return this.getTime()==X.getTime()};
_.R.toString=function(){return this.JSC$11647_toIsoString()};
_.R.clone=function(){var X=new O9e(this.date);X.firstDayOfWeek_=this.firstDayOfWeek_;X.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return X};
QKx.prototype.set=function(X){this.relativeTimeStart_=X};
QKx.prototype.reset=function(){this.set(_.QC())};
QKx.prototype.get=function(){return this.relativeTimeStart_};
var EwZ=null,gwy=function(){EwZ||(EwZ=new QKx)},GVZ=function(){EwZ||(EwZ=new QKx)};
_.To(GVZ,gwy);_.R=TV5.prototype;_.R.JSC$11673_buffer_="";_.R.set=function(X){this.JSC$11673_buffer_=""+X};
_.R.append=function(X,H,l){this.JSC$11673_buffer_+=String(X);if(H!=null)for(var b=1;b<arguments.length;b++)this.JSC$11673_buffer_+=arguments[b];return this};
_.R.clear=function(){this.JSC$11673_buffer_=""};
_.R.getLength=function(){return this.JSC$11673_buffer_.length};
_.R.toString=function(){return this.JSC$11673_buffer_};
var ABZ={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"},jKA=function(X){this.xhr=X},rBY=function(X,H,l){_.XO.call(this,X+", errorCode="+H);
this.errorCode=H;this.xhr=l;this.name="PromiseAjaxError"};
_.S(rBY,_.XO);var agU=!1,$GA=function(X){_.XO.call(this,X.message||X.description||X.name);this.isMissing=X instanceof lva;this.isTimeout=X instanceof rBY&&X.errorCode=="net.timeout";this.isCanceled=X instanceof _.nG};
_.S($GA,_.XO);$GA.prototype.name="BiscottiError";var lva=function(){_.XO.call(this,"Biscotti ID is missing from server")};
_.S(lva,_.XO);lva.prototype.name="BiscottiMissingError";var cBZ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},ouU=null,LyN=function(){try{var X=_.ij("yt.ads.biscotti.getId_");return X?X():kwa()}catch(H){return _.Cq(H)}},spy={'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"},ZRx=function(X,H){return _.Of({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:X,command:H}})},iRp=function(X){return _.Of({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:X}})},vwl=function(X){return _.Of({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:X}})},ORy=function(X){return _.Of({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:X}})},m6a=function(X){return _.Of({type:"SET_GUIDE_IS_EXPANDED",
payload:X})},QeZ=function(X){return _.Of({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",
payload:X})},Tsd=function(X){return _.Of({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:X})},NsZ=function(X){return _.Of({type:"SET_ONLINE_STATUS",
payload:X})},csY=function(X){return _.Of({type:"SET_IS_WATCH_ACTIVE",
payload:{isWatchActive:X}})},jex=function(X){return _.Of({type:"SET_IS_WATCH_NARROW_WIDTH",
payload:{isWatchNarrowWidth:X}})},rsa=function(X){return _.Of({type:"SET_IS_LIVE_CHAT_COLLAPSED",
payload:{isLiveChatCollapsed:X}})},Jse=function(X,H){return _.Of({type:"SET_TRANSCRIPTION_STATE",
payload:{high:X,low:H}})},LAp=function(X){return _.Of({type:"SET_OVERLAY_STATE",
payload:X})},WeA=[[["ZzZsMG1lZ29rZXByaW1hcnkjYWY=",
null,null],[null,["d2JmdmVhaHJ4OHl0ZC10d28tY29sdW1uLWJyb3dzZS1yZXN1bHRzLXJlbmRlcmVyI2p2","Z3JmZnJ6cTljMnN0eWxlLXNjb3BlI3Fj"],null],["M2Z6ZTk3eTRnYW1hc3RoZWFkLWFkI2I0",["c2RvZmw2OG5md3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjbW0="],null],[null,["eWZtMzV5NWJ2anl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjOG8=","YXEyM3l3cXV3anN0eWxlLXNjb3BlI3hq"],null],[null,["OWd0NWl2NXpza3l0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjdW8=","ZWp3NGtmajVldnN0eWxlLXNjb3BlI3Y2"],null],[null,["eXhvazEzaTQ3NHl0ZC1hZC1zbG90LXJlbmRlcmVyI3lt"],null]],[["dGZ5MTg3dXBnb3BsYXllci1hZHMjajI=",
null,null]],[[null,null,"djdsaWtiaXFvbnl0bHItYmFubmVyLWN0YS1yZW5kZXJlciNrZg=="]]],z0Z="#",Y8U=0,IgA=function(X,H,l){var b=this;this.priority=H;this.delay=l;this.jobId=0;this.completionCallback=_.FK;this.wrappedJob=function(){X();b.completionCallback()};
this.id=++Y8U};
IgA.prototype.enqueue=function(X){this.completionCallback=X;this.jobId=_.Ss.addJob(this.wrappedJob,this.priority,this.delay)};
var VN=function(){_.Zd.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.S(VN,_.Zd);VN.prototype.addJob=function(X,H,l){X=new IgA(X,H,l);this.taskIdToTask.set(X.id,X);this.isActive?Asy(this,X):this.suspendedTasks.add(X);return X.id};
var Asy=function(X,H){X.scheduledTasks.add(H);H.enqueue(function(){X.scheduledTasks.delete(H)})};
VN.prototype.cancelJob=function(X){(X=this.taskIdToTask.get(X))&&(this.scheduledTasks.delete(X)?_.Ss.cancelJob(X.jobId):this.suspendedTasks.delete(X))};
VN.prototype.pause=function(){var X=this;this.isActive=!1;this.scheduledTasks.forEach(function(H){_.Ss.cancelJob(H.jobId);X.suspendedTasks.add(H)});
this.scheduledTasks.clear()};
VN.prototype.start=function(){var X=this;this.isActive=!0;this.suspendedTasks.forEach(function(H){Asy(X,H)});
this.suspendedTasks.clear()};
VN.prototype.reset=function(){this.scheduledTasks.forEach(function(X){_.Ss.cancelJob(X.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var X9y=function(X,H){this.JSC$13530_networkService_=X;this.pageRequestPromise=H};
X9y.prototype.fetchData=function(X){H7e(this,this.JSC$13530_networkService_.fetchData(X))};
X9y.prototype.postData=function(X,H){H7e(this,this.JSC$13530_networkService_.postData(X,H))};
X9y.prototype.requestDataForServiceEndpoint=function(X,H){H7e(this,this.JSC$13530_networkService_.requestDataForServiceEndpoint(X,H))};
var H7e=function(X,H){H.then(X.pageRequestPromise.onSuccess,X.pageRequestPromise.onFailure,X.pageRequestPromise)};
X9y.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var lDx=function(X){this.buildNetworkRequest_=X;this.pendingRequests_=new Set};
lDx.prototype.reset=function(){this.pendingRequests_.forEach(function(X){X.cancel()});
this.pendingRequests_.clear()};
lDx.prototype.fetchData=function(X){var H=osN(this);H.fetchData(X);return H.pageRequestPromise};
lDx.prototype.postData=function(X,H){var l=osN(this);l.postData(X,H);return l.pageRequestPromise};
lDx.prototype.requestDataForServiceEndpoint=function(X,H){var l=osN(this);l.requestDataForServiceEndpoint(X,H);return l.pageRequestPromise};
var osN=function(X){var H=X.buildNetworkRequest_();X.pendingRequests_.add(H);var l=function(){X.pendingRequests_.delete(H)};
H.pageRequestPromise.then(l,l);return H},b7Z=function(X){var H=new VN;
this.JSC$13537_networkService_=X;this.JSC$13537_taskManager_=H;this.JSC$13537_networkManager_=new lDx(this.networkRequestFactory_.bind(this))};
_.R=b7Z.prototype;_.R.networkRequestFactory_=function(){return new X9y(this.JSC$13537_networkService_,new _.rD(this.JSC$13537_taskManager_))};
_.R.reset=function(){this.JSC$13537_taskManager_.reset();this.JSC$13537_networkManager_.reset()};
_.R.start=function(){this.JSC$13537_taskManager_.start()};
_.R.pause=function(){this.JSC$13537_taskManager_.pause()};
_.R.getTaskManager=function(){return this.JSC$13537_taskManager_};
_.R.getNetworkManager=function(){return this.JSC$13537_networkManager_};
var Qpy=null,c$d=[],ZNy=0,mGp=0,iNx=null,J$y=null,jo=function(X){this.token=X};
jo.getInstance=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield(_.jv(),2);X=H.yieldResult;if(!X)return H.return();jo.instance||(jo.instance=new jo(X));return H.return(jo.instance)})};
var bAC=function(X){var H;return _.h(function(l){if(l.nextAddress==1)return l.yield(HAd(X.token),2);H=l.yieldResult;return l.return(H.clear("resource-manifest-assets"))})},co=function(X){this.token=X};
co.getInstance=function(){var X;return _.h(function(H){if(H.nextAddress==1)return H.yield(_.jv(),2);X=H.yieldResult;if(!X)return H.return();co.instance||(co.instance=new co(X));return H.return(co.instance)})};
var lip=function(X){var H;return _.h(function(l){if(l.nextAddress==1)return l.yield(HAd(X.token),2);H=l.yieldResult;return l.yield(H.clear("auth"),0)})},U8p=!1,PHe=null,fix=void 0,WSC=!1,$8x=function(X){if(!_.iE(document,"gtm-noscript")){var H=document.createElement("noscript");
H.id="gtm-noscript";H.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+X+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(H)}},KVe=function(X){_.XO.call(this,X)};
_.S(KVe,_.SEG);
var S9Z=!1,kc5=[],nMa=!1,QH5={},NW5=function(X,H){var l=Rpy,b=this;this.renderFn=X;this.listeners=l;this.context=H;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var U;this.lastSeenPlayerApi=_.P8((U=this.playerControlsData)==null?void 0:U.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.byz(),void 0);_.P("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){cGl(b).setState({playerState:-1});b.resetRecentlyNavigatedJobId&&
_.Ss.cancelJob(b.resetRecentlyNavigatedJobId);b.recentlyNavigated=!0;b.resetRecentlyNavigatedJobId=_.Ss.addJob(function(){b.recentlyNavigated=!1},8,1E4)})};
NW5.prototype.setState=function(X){if(!_.P("mweb_player_skip_no_op_state_changes")||!TRd(X,this.state))if(this.state=Object.assign({},this.state,X),!_.P("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)X=-1,_.P("player_controls_log_creation_killswitch")||NRA()||(X=(0,_.Jl)()),_.sf("pcu_s"),_.sf("pcu_se"),_.sf("pcu_rs"),this.renderFn(cGl(this)),_.sf("pcu_re"),c0Z(X),_.Ss.addJob(function(){_.sf("pcu_ap")},8)};
var cGl=function(X){if(X.getPlayerApi)var H=_.P8(X.getPlayerApi());else{var l;H=_.P8((l=X.playerControlsData)==null?void 0:l.playerApi)}return Object.assign({},X.state,{setState:X.boundSetState,domMeasurements:{progressBarLineRect:X.progressBarLineRect},playerApi:H,appApi:X.context.appApi,playerContainer:X.context.playerContainer,playerControlContainer:X.context.playerControlContainer,uxConfig:X.context.uxConfig})},jBN=function(X){X.listeners.forEach(function(H){X.eventListenerCleanupFunctions.push(H.register(function(){return cGl(X)},
function(){return X.getData()}))})},rGU=function(X){X.eventListenerCleanupFunctions.forEach(function(H){H()});
X.eventListenerCleanupFunctions.length=0};
NW5.prototype.getData=function(){return this.playerControlsData};var mqU=function(){var X=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return X?parseInt(X[1],10):0},Cc5=function(X){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+X)!=-1||document.currentScript.src.indexOf("&"+X)!=-1)},w9e=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},j1N=function(X){X.length?d8N(X.shift(),function(){j1N(X)}):TCY()},JaN=function(X){return"chrome-extension://"+X+"/cast_sender.js"},d8N=function(X,
H,l){var b=document.createElement("script");
b.onerror=H;l&&(b.onload=l);_.sw(b,_.qF(X));(document.head||document.documentElement).appendChild(b)},hp$=function(){var X=mqU(),H=[];
if(X>1){var l=X-1;H.push("//www.gstatic.com/eureka/clank/"+X+"/cast_sender.js");H.push("//www.gstatic.com/eureka/clank/"+l+"/cast_sender.js")}return H},TCY=function(){var X=w9e();
X&&X(!1,"No cast extension found")},cad=function(){if(FVy){var X=2,H=w9e(),l=function(){X--;
X==0&&H&&H(!0)};
window.__onGCastApiAvailable=l;d8N("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",TCY,l)}},Q1a=function(){cad();
var X=hp$();X.push("//www.gstatic.com/eureka/clank/cast_sender.js");j1N(X)},NCd=function(){cad();
var X=hp$();X.push.apply(X,_.LJ(ray.map(JaN)));X.push("//www.gstatic.com/eureka/clank/cast_sender.js");j1N(X)},FVy=Cc5("loadCastFramework")||Cc5("loadCastApplicationFramework"),ray=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var BMp=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(BMp,_.sU);var q7Z=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(q7Z,_.sU);var sSa=function(){var X=new q7Z;return _.PC(X,1,3)};var P2=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(P2,_.sU);var qix=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(qix,_.sU);var McC=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(McC,_.sU);McC.prototype.getToken=function(){return _.sC(this,1)};
McC.prototype.setToken=function(X){return _.Wx(this,1,X)};
var FhZ=function(X){return _.Hu(X,3,_.DA,_.vb())},Bue=function(X){return _.Hu(X,6,_.DA,_.vb())};var fK=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(fK,_.sU);fK.prototype.getToken=function(){return _.Al(this,McC,2)};
fK.prototype.setToken=function(X){return _.go(this,2,X)};
fK.prototype.getName=function(){return _.sC(this,6)};
var uWY=_.Wu(fK);var epp=function(X,H,l){this.requestMessage=X;this.methodDescriptor=H;this.metadata=l};
epp.prototype.getMetadata=function(){return this.metadata};var yIY=function(X,H){H=H===void 0?{}:H;this.responseMessage=X;this.metadata=H;this.status=null};
yIY.prototype.getMetadata=function(){return this.metadata};
yIY.prototype.getStatus=function(){return this.status};var pK=function(X,H,l,b,U){this.name=X;this.methodType="unary";this.requestType=H;this.responseType=l;this.requestSerializeFn=b;this.responseDeserializeFn=U},VcA=function(X,H,l){l=l===void 0?{}:l;
return new epp(H,X,l)};
pK.prototype.getName=function(){return this.name};var Sd=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Sd,_.sU);Sd.prototype.getHeader=function(){return _.Al(this,P2,1)};
Sd.prototype.setHeader=function(X){return _.go(this,1,X)};
Sd.prototype.hasHeader=function(){return _.UC(this,P2,1)};var PcY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(PcY,_.sU);var fDa=new pK("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Sd,PcY,function(X){return X.serialize()},_.Wu(PcY));var zQ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(zQ,_.sU);zQ.prototype.getHeader=function(){return _.Al(this,P2,1)};
zQ.prototype.setHeader=function(X){return _.go(this,1,X)};
zQ.prototype.hasHeader=function(){return _.UC(this,P2,1)};var p9x=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(p9x,_.sU);var S7e=new pK("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",zQ,p9x,function(X){return X.serialize()},_.Wu(p9x));var nK=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(nK,_.sU);nK.prototype.getHeader=function(){return _.Al(this,P2,1)};
nK.prototype.setHeader=function(X){return _.go(this,1,X)};
nK.prototype.hasHeader=function(){return _.UC(this,P2,1)};var zpN=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(zpN,_.sU);zpN.prototype.getValues=function(X){return _.Ru_(this,1,X)};var nsZ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(nsZ,_.sU);nsZ.prototype.getLink=function(){return _.Al(this,fK,1)};var kUN=new pK("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",nK,nsZ,function(X){return X.serialize()},_.Wu(nsZ));var kx=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(kx,_.sU);kx.prototype.getHeader=function(){return _.Al(this,P2,1)};
kx.prototype.setHeader=function(X){return _.go(this,1,X)};
kx.prototype.hasHeader=function(){return _.UC(this,P2,1)};var x8e=new pK("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",kx,fK,function(X){return X.serialize()},uWY);var D8U=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(D8U,_.sU);var tcN=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(tcN,_.sU);tcN.prototype.getUrl=function(){return _.sC(this,2)};
tcN.prototype.setUrl=function(X){return _.Wx(this,2,X)};var WVY=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(WVY,_.sU);var Esp=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Esp,_.sU);var gs$=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(gs$,_.sU);var kWA=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(kWA,_.sU);var zKZ=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(zKZ,_.sU);var GUA=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(GUA,_.sU);var Zea=_.Wu(GUA);var aDy=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(aDy,_.sU);var Z7y=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Z7y,_.sU);_.R=Z7y.prototype;_.R.getHeader=function(){return _.Al(this,P2,1)};
_.R.setHeader=function(X){return _.go(this,1,X)};
_.R.hasHeader=function(){return _.UC(this,P2,1)};
_.R.getCompletionUrl=function(){return _.sC(this,6)};
_.R.getDeviceId=function(){return _.sC(this,11)};var i7C=new pK("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Z7y,GUA,function(X){return X.serialize()},Zea);var vse=new Set(["SAPISIDHASH","APISIDHASH"]);var O7A=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(O7A,_.sU);O7A.prototype.getMessage=function(){return _.sC(this,2)};
var m8d=_.Wu(O7A);var TMC=function(X,H){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=X.nodeReadableStream;this.grpcResponseDeserializeFn=H;this.xhr=X.xhr;this.xhrNodeReadableStream&&QSx(this)},Y7Z=function(X,H){var l=new NMy;
_.n8(X.xhr,"complete",function(){if(X.xhr.isSuccess()){var b=X.xhr.getResponseText();var U;if(U=H)U=X.xhr,U.JSC$10106_xhr_&&U.isComplete()?(U=U.JSC$10106_xhr_.getResponseHeader("Content-Type"),U=U===null?void 0:U):U=void 0,U=U==="text/plain";if(U){if(!atob)throw Error("dk");b=atob(b)}try{var K=X.grpcResponseDeserializeFn(b)}catch(d){cIe(X,Y9$(new _.e1(13,"Error when deserializing response data; error: "+d+(", response: "+b)),l));return}b=_.cRK(X.xhr.getStatus());jSp(X,rIA(X));b===0?JIZ(X,K):cIe(X,
Y9$(new _.e1(b,"Xhr succeeded but the status code is not 200"),l))}else{b=X.xhr.getResponseText();K=rIA(X);if(b){var w=LV5(X,b);b=w.code;U=w.details;w=w.metadata}else b=2,U="Rpc failed due to xhr error. uri: "+String(X.xhr.JSC$10106_lastUri_)+", error code: "+(X.xhr.JSC$10106_lastErrorCode_+", error: ")+X.xhr.getLastError(),w=K;jSp(X,K);cIe(X,Y9$(new _.e1(b,U,w),l))}})},QSx=function(X){X.xhrNodeReadableStream.on("data",function(H){if("1"in H){var l=H["1"];
try{var b=X.grpcResponseDeserializeFn(l)}catch(U){cIe(X,new _.e1(13,"Error when deserializing response data; error: "+U+(", response: "+l)))}b&&JIZ(X,b)}if("2"in H)for(H=LV5(X,H["2"]),l=0;l<X.onStatusCallbacks.length;l++)X.onStatusCallbacks[l](H)});
X.xhrNodeReadableStream.on("end",function(){jSp(X,rIA(X));for(var H=0;H<X.onEndCallbacks.length;H++)X.onEndCallbacks[H]()});
X.xhrNodeReadableStream.on("error",function(){if(X.onErrorCallbacks.length!==0){var H=X.xhr.JSC$10106_lastErrorCode_;H!==0||X.xhr.isSuccess()||(H=6);var l=-1;switch(H){case 0:var b=2;break;case 7:b=10;break;case 8:b=4;break;case 6:l=X.xhr.getStatus();b=_.cRK(l);break;default:b=14}jSp(X,rIA(X));H=_.ltY(H)+", error: "+X.xhr.getLastError();l!==-1&&(H+=", http status code: "+l);cIe(X,new _.e1(b,H))}})},rIA=function(X){var H={},l=dSd(X.xhr);
Object.keys(l).forEach(function(b){H[b]=l[b]});
return H},LV5=function(X,H){var l=2,b={};
try{var U=m8d(H);l=_.O_(U,1);var K=U.getMessage();_.iB(U,pAd,3,_.vb()).length&&(b["grpc-web-status-details-bin"]=H)}catch(w){X.xhr&&X.xhr.getStatus()===404?(l=5,K="Not Found: "+String(X.xhr.JSC$10106_lastUri_)):(l=14,K="Unable to parse RpcStatus: "+w)}return{code:l,details:K,metadata:b}};
TMC.prototype.on=function(X,H){X==="data"?this.onDataCallbacks.push(H):X==="metadata"?this.onMetadataCallbacks.push(H):X==="status"?this.onStatusCallbacks.push(H):X==="end"?this.onEndCallbacks.push(H):X==="error"&&this.onErrorCallbacks.push(H);return this};
var ID5=function(X,H){H=X.indexOf(H);H>-1&&X.splice(H,1)};
TMC.prototype.removeListener=function(X,H){X==="data"?ID5(this.onDataCallbacks,H):X==="metadata"?ID5(this.onMetadataCallbacks,H):X==="status"?ID5(this.onStatusCallbacks,H):X==="end"?ID5(this.onEndCallbacks,H):X==="error"&&ID5(this.onErrorCallbacks,H);return this};
TMC.prototype.cancel=function(){this.xhr.abort()};
var JIZ=function(X,H){for(var l=0;l<X.onDataCallbacks.length;l++)X.onDataCallbacks[l](H)},jSp=function(X,H){for(var l=0;l<X.onMetadataCallbacks.length;l++)X.onMetadataCallbacks[l](H)},cIe=function(X,H){for(var l=0;l<X.onErrorCallbacks.length;l++)X.onErrorCallbacks[l](H)},NMy=function(){var X=Error.call(this);
this.message=X.message;"stack"in X&&(this.stack=X.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.S(NMy,Error);var AIl=function(X){this.JSC$19599_worker_=X.worker||null;this.JSC$19599_streamBinaryChunks_=X.streamBinaryChunks||!1;this.JSC$19599_credentialsMode_=void 0};
_.To(AIl,_.rRy);AIl.prototype.createInstance=function(){var X=new xx(this.JSC$19599_worker_,this.JSC$19599_streamBinaryChunks_);this.JSC$19599_credentialsMode_&&X.setCredentialsMode(this.JSC$19599_credentialsMode_);return X};
AIl.prototype.setCredentialsMode=function(X){this.JSC$19599_credentialsMode_=X};
var xx=function(X,H){_.zB.call(this);this.JSC$19603_worker_=X;this.JSC$19603_streamBinaryChunks_=H;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};
_.To(xx,_.zB);xx.prototype.open=function(X,H){if(this.readyState!=0)throw this.abort(),Error("ek");this.JSC$19603_method_=X;this.JSC$19603_url_=H;this.readyState=1;XX5(this)};
xx.prototype.send=function(X){if(this.readyState!=1)throw this.abort(),Error("fk");if(this.abortController_.signal.aborted)throw this.abort(),Error("gk");this.inProgress_=!0;var H={headers:this.requestHeaders_,method:this.JSC$19603_method_,credentials:this.JSC$19603_credentialsMode_,cache:void 0,signal:this.abortController_.signal};X&&(H.body=X);(this.JSC$19603_worker_||_.ok).fetch(new Request(this.JSC$19603_url_,H)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
xx.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,HkC(this));this.readyState=0};
xx.prototype.handleResponse_=function(X){if(this.inProgress_&&(this.fetchResponse_=X,this.JSC$19603_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19603_responseHeaders_=X.headers,this.readyState=2,XX5(this)),this.inProgress_&&(this.readyState=3,XX5(this),this.inProgress_)))if(this.responseType==="arraybuffer")X.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.ok.ReadableStream!==
"undefined"&&"body"in X){this.currentReader_=X.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;lzZ(this)}else X.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var lzZ=function(X){X.currentReader_.read().then(X.handleDataFromStream_.bind(X)).catch(X.handleSendFailure_.bind(X))};
xx.prototype.handleDataFromStream_=function(X){if(this.inProgress_){if(this.JSC$19603_streamBinaryChunks_&&X.value)this.response.push(X.value);else if(!this.JSC$19603_streamBinaryChunks_){var H=X.value?X.value:new Uint8Array(0);if(H=this.JSC$19603_textDecoder_.decode(H,{stream:!X.done}))this.response=this.responseText+=H}X.done?HkC(this):XX5(this);this.readyState==3&&lzZ(this)}};
xx.prototype.handleResponseText_=function(X){this.inProgress_&&(this.response=this.responseText=X,HkC(this))};
xx.prototype.handleResponseArrayBuffer_=function(X){this.inProgress_&&(this.response=X,HkC(this))};
xx.prototype.handleSendFailure_=function(){this.inProgress_&&HkC(this)};
var HkC=function(X){X.readyState=4;X.fetchResponse_=null;X.currentReader_=null;X.JSC$19603_textDecoder_=null;XX5(X)};
xx.prototype.setRequestHeader=function(X,H){this.requestHeaders_.append(X,H)};
xx.prototype.getResponseHeader=function(X){return this.JSC$19603_responseHeaders_?this.JSC$19603_responseHeaders_.get(X.toLowerCase())||"":""};
xx.prototype.getAllResponseHeaders=function(){if(!this.JSC$19603_responseHeaders_)return"";for(var X=[],H=this.JSC$19603_responseHeaders_.entries(),l=H.next();!l.done;)l=l.value,X.push(l[0]+": "+l[1]),l=H.next();return X.join("\r\n")};
xx.prototype.setCredentialsMode=function(X){this.JSC$19603_credentialsMode_=X};
var XX5=function(X){X.onreadystatechange&&X.onreadystatechange.call(X)};
Object.defineProperty(xx.prototype,"withCredentials",{get:function(){return this.JSC$19603_credentialsMode_==="include"},
set:function(X){this.setCredentialsMode(X?"include":"same-origin")}});var o8x=function(X){var H="";_.Bb.forEach(X,function(l,b){H+=b;H+=":";H+=l;H+="\r\n"});
return H},bkN=function(X,H,l){if(_.Bb.isEmpty(l))return X;
l=o8x(l);if(typeof X==="string")return _.Xv(X,_.YY(H),l);_.OT(X,H,l);return X};I8e.prototype.isInputValid=function(){return this.isInputValid_};
I8e.prototype.decode=function(X){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ik`"+this.JSC$19609_streamPos_+"`stream already broken`"+X);this.leftoverInput_+=X;X=Math.floor(this.leftoverInput_.length/4);if(X==0)return null;try{var H=_.T8O(this.leftoverInput_.slice(0,X*4))}catch(l){throw H=this.leftoverInput_,X=l.message,this.isInputValid_=!1,Error("ik`"+this.JSC$19609_streamPos_+"`"+X+"`"+H);}this.JSC$19609_streamPos_+=X*4;this.leftoverInput_=this.leftoverInput_.slice(X*4);return H};A0e.prototype.isInputValid=function(){return this.state_!=3};
var UIp=function(X,H,l,b){X.state_=3;X.errorMessage_="The stream is broken @"+X.JSC$19612_streamPos_+"/"+l+". Error: "+b+". With input:\n"+H;throw Error(X.errorMessage_);};
A0e.prototype.acceptsBinaryInput=function(){return!0};
A0e.prototype.parse=function(X){function H(B){B&128&&UIp(K,w,d,"invalid tag");(B&7)!=2&&UIp(K,w,d,"invalid wire type");K.tag_=B>>>3;K.tag_!=1&&K.tag_!=2&&K.tag_!=15&&UIp(K,w,d,"unexpected tag");K.state_=1;K.length_=0;K.countLengthBytes_=0}
function l(B){K.countLengthBytes_++;K.countLengthBytes_==5&&B&240&&UIp(K,w,d,"message length too long");K.length_|=(B&127)<<(K.countLengthBytes_-1)*7;B&128||(K.state_=2,K.countMessageBytes_=0,typeof Uint8Array!=="undefined"?K.messageBuffer_=new Uint8Array(K.length_):K.messageBuffer_=Array(K.length_),K.length_==0&&U())}
function b(B){K.messageBuffer_[K.countMessageBytes_++]=B;K.countMessageBytes_==K.length_&&U()}
function U(){if(K.tag_<15){var B={};B[K.tag_]=K.messageBuffer_;K.result_.push(B)}K.state_=0}
for(var K=this,w=X instanceof Array?X:new Uint8Array(X),d=0;d<w.length;){switch(K.state_){case 3:UIp(K,w,d,"stream already broken");break;case 0:H(w[d]);break;case 1:l(w[d]);break;case 2:b(w[d]);break;default:throw Error("jk`"+K.state_);}K.JSC$19612_streamPos_++;d++}X=K.result_;K.result_=[];return X.length>0?X:null};var lcY=function(){this.errorMessage_=null;this.JSC$19615_streamPos_=0;this.base64Decoder_=new I8e;this.pbParser_=new A0e};
lcY.prototype.isInputValid=function(){return this.errorMessage_===null};
var $Il=function(X,H,l){X.errorMessage_="The stream is broken @"+X.JSC$19615_streamPos_+". Error: "+l+". With input:\n"+H;throw Error(X.errorMessage_);};
lcY.prototype.acceptsBinaryInput=function(){return!1};
lcY.prototype.parse=function(X){this.errorMessage_!==null&&$Il(this,X,"stream already broken");var H=null;try{var l=this.base64Decoder_.decode(X);H=l===null?null:this.pbParser_.parse(l)}catch(b){$Il(this,X,b.message)}this.JSC$19615_streamPos_+=X.length;return H};var Hey=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19618_streamPos_=0;this.result_=[];this.statusParsed_=!1};
Hey.prototype.isInputValid=function(){return this.errorMessage_===null};
Hey.prototype.acceptsBinaryInput=function(){return!1};
Hey.prototype.parse=function(X){function H(B){K.state_=6;K.errorMessage_="The stream is broken @"+K.JSC$19618_streamPos_+"/"+w+". Error: "+B+". With input:\n";throw Error(K.errorMessage_);}
function l(){K.jsonStreamParser_=new _.Cr({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function b(B){if(B)for(var q=0;q<B.length;q++){var u={};u[1]=B[q];K.result_.push(u)}}
function U(B){if(B){(K.statusParsed_||B.length>1)&&H("extra status: "+B);K.statusParsed_=!0;var q={};q[2]=B[0];K.result_.push(q)}}
for(var K=this,w=0;w<X.length;){var d;if(d=K.state_!==2){a:{for(;w<X.length;){if(!_.ae(X[w])){d=!0;break a}w++;K.JSC$19618_streamPos_++}d=!1}d=!d}if(d)return null;switch(K.state_){case 6:H("stream already broken");break;case 0:X[w]==="["?(K.state_=1,w++,K.JSC$19618_streamPos_++):H("unexpected input token");break;case 1:X[w]==="["?(K.state_=2,l()):X[w]===","||X.slice(w,w+5)=="null,"?K.state_=3:X[w]==="]"?(K.state_=5,w++,K.JSC$19618_streamPos_++):H("unexpected input token");break;case 2:d=K.jsonStreamParser_.parse(X.substring(w));
b(d);K.jsonStreamParser_.done()?(K.state_=3,d=K.jsonStreamParser_.JSC$11797_buffer_,K.JSC$19618_streamPos_+=X.length-w-d.length,X=d,w=0):(K.JSC$19618_streamPos_+=X.length-w,w=X.length);break;case 3:X[w]===","||X.slice(w,w+5)=="null,"?(K.state_=4,l(),K.jsonStreamParser_.parse("["),w+=X[w]===","?1:5,K.JSC$19618_streamPos_++):X[w]==="]"&&(K.state_=5,w++,K.JSC$19618_streamPos_++);break;case 4:d=K.jsonStreamParser_.parse(X.substring(w));U(d);K.jsonStreamParser_.done()?(K.state_=5,d=K.jsonStreamParser_.JSC$11797_buffer_,
K.JSC$19618_streamPos_+=X.length-w-d.length,X=d,w=0):(K.JSC$19618_streamPos_+=X.length-w,w=X.length);break;case 5:H("extra input after stream end")}}return K.result_.length>0?(X=K.result_,K.result_=[],X):null};var KRC=function(X){this.JSC$19621_xhr_=X;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 _.C8(this);this.JSC$19621_eventHandler_.listen(this.JSC$19621_xhr_,"readystatechange",this.JSC$19623_readyStateChangeHandler_)},DQ=function(X,H){X.status_!=H&&(X.status_=H,X.statusHandler_&&X.statusHandler_())},R6x=function(X){X.JSC$19621_eventHandler_.removeAll();
if(X.JSC$19621_xhr_){var H=X.JSC$19621_xhr_;X.JSC$19621_xhr_=null;H.abort();H.dispose()}};
KRC.prototype.getStatus=function(){return this.status_};
KRC.prototype.JSC$19623_readyStateChangeHandler_=function(X){X=X.target;try{if(X==this.JSC$19621_xhr_)a:{var H=_.PR(this.JSC$19621_xhr_),l=this.JSC$19621_xhr_.JSC$10106_lastErrorCode_,b=this.JSC$19621_xhr_.getStatus(),U=this.JSC$19621_xhr_.getResponseText();X=[];if(this.JSC$19621_xhr_.getResponse()instanceof Array){var K=this.JSC$19621_xhr_.getResponse();K.length>0&&K[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,X=K)}if(!(H<3||H==3&&!U&&X.length==0))if(b=b==200||b==206,H==4&&(l==8?
DQ(this,7):l==7?DQ(this,8):b||DQ(this,3)),this.JSC$19621_parser_||(this.JSC$19621_parser_=ohZ(this.JSC$19621_xhr_),this.JSC$19621_parser_==null&&DQ(this,5)),this.status_>2)R6x(this);else{if(X.length>this.JSC$19621_pos_){var w=X.length;l=[];try{if(this.JSC$19621_parser_.acceptsBinaryInput())for(var d=0;d<w;d++){var B=this.JSC$19621_parser_.parse(Array.from(X[d]));B&&(l=l.concat(B))}else{B="";if(!this.JSC$19621_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("kk");this.JSC$19621_textDecoder_=
new TextDecoder}for(d=0;d<w;d++)B+=this.JSC$19621_textDecoder_.decode(X[d],{stream:H==4&&d==w-1});l=this.JSC$19621_parser_.parse(B)}X.splice(0,w);l&&this.dataHandler_(l)}catch(u){DQ(this,5);R6x(this);break a}}else if(U.length>this.JSC$19621_pos_){d=U.slice(this.JSC$19621_pos_);this.JSC$19621_pos_=U.length;try{var q=this.JSC$19621_parser_.parse(d);q!=null&&this.dataHandler_&&this.dataHandler_(q)}catch(u){DQ(this,5);R6x(this);break a}}H==4?(U.length!=0||this.hasStreamingResponseData_?DQ(this,2):DQ(this,
4),R6x(this)):DQ(this,1)}}}catch(u){DQ(this,6),R6x(this)}};var Cyp=function(X){X=this.xhrReader_=X;var H=(0,_.K8)(this.onData_,this);X.dataHandler_=H;X=this.xhrReader_;H=(0,_.K8)(this.onStatusChange_,this);X.statusHandler_=H;this.JSC$19625_callbackMap_={};this.callbackOnceMap_={}};
_.R=Cyp.prototype;_.R.on=function(X,H){var l=this.JSC$19625_callbackMap_[X];l||(l=[],this.JSC$19625_callbackMap_[X]=l);l.push(H);return this};
_.R.addListener=function(X,H){this.on(X,H);return this};
_.R.removeListener=function(X,H){var l=this.JSC$19625_callbackMap_[X];l&&_.Oy(l,H);(X=this.callbackOnceMap_[X])&&_.Oy(X,H);return this};
_.R.once=function(X,H){var l=this.callbackOnceMap_[X];l||(l=[],this.callbackOnceMap_[X]=l);l.push(H);return this};
_.R.onData_=function(X){var H=this.JSC$19625_callbackMap_.data;H&&wXl(X,H);(H=this.callbackOnceMap_.data)&&wXl(X,H);this.callbackOnceMap_.data=[]};
var wXl=function(X,H){for(var l={},b=0;b<X.length;l={message$jscomp$1008:void 0},b++)l.message$jscomp$1008=X[b],H.forEach(function(U){return function(K){try{K(U.message$jscomp$1008)}catch(w){}}}(l))};
Cyp.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:dIx(this,"readable");break;case 5:case 6:case 4:case 7:case 3:dIx(this,"error");break;case 8:dIx(this,"close");break;case 2:dIx(this,"end")}};
var dIx=function(X,H){var l=X.JSC$19625_callbackMap_[H];l&&l.forEach(function(b){try{b()}catch(U){}});
(l=X.callbackOnceMap_[H])&&l.forEach(function(b){b()});
X.callbackOnceMap_[H]=[]};var h6x=function(){var X={format:"jspb"};X=X===void 0?{}:X;this.suppressCorsPreflight=X.suppressCorsPreflight||_.ij("suppressCorsPreflight",X)||!1;this.withCredentials=X.withCredentials||_.ij("withCredentials",X)||!1;this.streamInterceptors=X.streamInterceptors||[];this.unaryInterceptors=X.unaryInterceptors||[];this.workerScope=X.workerScope;this.chunkedServerStreaming=X.useFetchDownloadStreams||!1},qbC=function(X,H,l,b,U,K){K=K===void 0?{}:K;
var w=H.substring(0,H.length-U.name.length),d,B=(d=K)==null?void 0:d.signal;return FRZ(function(q){return new Promise(function(u,e){if(B==null?0:B.aborted){var y=new _.e1(1,"Aborted");y.cause=B.reason;e(y)}else{var V={},p=BgY(X,q,w);p.on("error",function(z){return void e(z)});
p.on("metadata",function(z){V=z});
p.on("data",function(z){var t=V;t=t===void 0?{}:t;u(new yIY(z,t))});
B&&B.addEventListener("abort",function(){p.cancel();var z=new _.e1(1,"Aborted");z.cause=B.reason;e(z)})}})},X.unaryInterceptors).call(X,VcA(U,l,b)).then(function(q){return q.responseMessage})},sce=function(X,H,l,b,U,K){K=K===void 0?{}:K;
return qbC(X,H,l,b,U,K)};
h6x.prototype.serverStreaming=function(X,H,l,b){var U=this,K=X.substring(0,X.length-b.name.length);return MRd(function(w){var d=w.methodDescriptor,B=w.getMetadata(),q=uC$(U,!1);B=e6Z(U,B,q,K+d.getName());var u=yid(q,d.responseDeserializeFn,!0);w=d.requestSerializeFn(w.requestMessage);q.send(B,"POST",w);return u},this.streamInterceptors).call(this,VcA(b,H,l))};
var BgY=function(X,H,l){var b=H.methodDescriptor,U=H.getMetadata(),K=uC$(X,!0);X=e6Z(X,U,K,l+b.getName());l=yid(K,b.responseDeserializeFn,!1);Y7Z(l,U["X-Goog-Encode-Response-If-Executable"]==="base64");H=b.requestSerializeFn(H.requestMessage);K.send(X,"POST",H);return l},uC$=function(X,H){H=X.chunkedServerStreaming&&!H;
return X.workerScope||H?new _.VD(new AIl({worker:X.workerScope,streamBinaryChunks:H})):new _.VD},e6Z=function(X,H,l,b){H["Content-Type"]="application/json+protobuf";
H["X-User-Agent"]="grpc-web-javascript/0.1";var U=H.Authorization;if(U&&vse.has(U.split(" ")[0])||X.withCredentials)l.JSC$10106_withCredentials_=!0;if(X.suppressCorsPreflight)b=bkN(b,"$httpHeaders",H);else for(X=_.C(Object.keys(H)),U=X.next();!U.done;U=X.next())U=U.value,l.headers.set(U,H[U]);return b},yid=function(X,H,l){if(l){l=new KRC(X);
var b=new Cyp(l)}return new TMC({xhr:X,nodeReadableStream:b},H)},MRd=function(X,H){return H.reduce(function(l,b){return function(U){return b.intercept(U,l)}},X)},FRZ=function(X,H){return H.reduce(function(l,b){return function(U){return b.intercept(U,l)}},X)};var VRe=function(X){this.client_=new h6x;this.hostname_=X==void 0?X:X.replace(/\/+$/,"")};
_.R=VRe.prototype;_.R.JSC$19643_depositGoogleCredential=function(X,H,l){return sce(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",X,H||{},S7e,l)};
_.R.deleteLink=function(X,H,l){return sce(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",X,H||{},fDa,l)};
_.R.JSC$19643_finishOAuth=function(X,H,l){return sce(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",X,H||{},kUN,l)};
_.R.getLink=function(X,H,l){return sce(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",X,H||{},x8e,l)};
_.R.startLinkingSession=function(X,H,l){return sce(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",X,H||{},i7C,l)};var PyC=[0,_.aV,1,ysx,[0,_.OC,[0,_.ie,-1]],[0,ekd],[0,_.cC,-1],[0,ekd]];var fzC=function(){this.storage=new Map},SbA=function(X,H,l,b,U){if(!X.storage.has(H))return null;
X=_.C(X.storage.get(H));for(H=X.next();!H.done;H=X.next())if(H=H.value,!U||H.linkName===U)if(l&&H.scopes&&pXY(H.scopes,l)||b&&H.capabilities&&pXY(H.capabilities,b))return H;return null},z6a=function(X,H,l){if(!l)X.storage.delete(H);
else if(X.storage.has(H)){var b=X.storage.get(H).filter(function(U){return U.linkName!==l});
b.length>0?X.storage.set(H,b):X.storage.delete(H)}},pXY=function(X,H){H=_.C(H);
for(var l=H.next();!l.done;l=H.next())if(!X.has(l.value))return!1;return!0};var n8U=function(){var X=_.gx("LINK_GAL_DOMAIN");this.alsDomain1p=_.gx("LINK_GAL_DOMAIN");this.alsDomain3p=X;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},kId=function(X,H){X.apiKey=H;
return X};
n8U.prototype.build=function(){var X={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("lk");X.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("mk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("nk");X.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(X.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)X.apiKey=
this.apiKey,X.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ok");X.oauthToken=this.oauthToken;X.alsDomain=this.alsDomain3p}X.clientXd3=this.clientXd3;X.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(X.authUser=this.authUser);this.bucket!==void 0&&(X.bucket=this.bucket);this.completionUrl!==void 0&&(X.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(X.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(X.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(X.locale=this.locale);this.localStorage!==void 0&&(X.localStorage=this.localStorage);X.loggerType=this.loggerType;X.clientEnvironment=this.clientEnvironment;X.colorScheme=this.colorScheme;X.showCloseOption=this.showCloseOption;return X};var Xd=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Xd,_.sU);var xIp=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(xIp,_.sU);var DIA=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(DIA,_.sU);var lP=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(lP,_.sU);var tRZ=function(X){return _.M7(X,1)};var WRx=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(WRx,_.sU);var wM$=_.Wu(WRx),H7=[1,2,3,4,5];var $we=function(X){try{return wM$(X)}catch(H){return null}},E8Z=function(){},KhU=function(X,H){switch(_.RV(H,H7)){case 4:return(H=_.ys(H,DIA,4,H7))&&X.logStateTransition(_.M7(H,1)),!0;
case 5:return(H=_.ys(H,xIp,5,H7))&&X.logInternalEvent(_.M7(H,1)),!0}return!1},dwd=function(X){switch(X){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Hp(X)}};var beY=function(X,H){var l=this;this.validator=X;this.messageListener=H;this.dismissCallback=function(){g8y(l,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19672_receiveMessage=function(b){b.type==="message"&&(b=b.event_,b!==null&&(new URL(l.iframe.src)).origin===b.origin&&l.validator(b.data,b.origin)&&!l.messageListener(b.data)&&(l.JSC$19672_resolveCb!==void 0&&l.JSC$19672_resolveCb(b.data),GIC(l)))}},C$a=function(X,H,l){X.uiHandler!==void 0&&g8y(X,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(b,U){X.JSC$19672_resolveCb=b;X.JSC$19672_rejectCb=U;X.iframe=document.createElement("iframe");_.RD(X.iframe,H);X.uiHandler=l.displayContent(X.iframe,X.dismissCallback);_.n8(window,"message",X.JSC$19672_receiveMessage,!1,X)})},g8y=function(X,H){X.JSC$19672_rejectCb!==void 0&&X.JSC$19672_rejectCb(H);
GIC(X)},GIC=function(X){X.uiHandler!==void 0&&X.uiHandler.hideContent();
_.FE(window,"message",X.JSC$19672_receiveMessage,!1,X);X.JSC$19672_resolveCb=void 0;X.JSC$19672_rejectCb=void 0;X.uiHandler=void 0;X.iframe=void 0};var azC=function(X){if(X===2){var H;X=((H=window)==null?0:H.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return X},RKa=function(X){X=azC(X);
switch(X){case 0:return"light";case 1:return"dark";default:_.Hp(X)}};var UwZ=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),ZkZ=function(X,H){this.JSC$19684_linkingSession=X;this.noticeConfig=H;this.displayInfoMap=new Map;var l=new Map;if(_.UC(this.JSC$19684_linkingSession,WVY,7))for(X=_.Al(this.JSC$19684_linkingSession,WVY,7),X=_.iB(X,tcN,1,_.vb()),X=_.C(X),H=X.next();!H.done;H=X.next())H=H.value,l.set(_.M7(H,1),_.Rfk(_.Al(H,_.F8l,3)));if(l.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){H=this.noticeConfig.enabledDataUsageNoticeUis;X=H.has(0)?l.get(1):void 0;H=H.has(1)?l.get(2):void 0;l=X!==void 0&&H!==void 0?l.get(3):void 0;var b=this.noticeConfig.nestedOrigins;var U=new WRx;var K=new Xd;U=_.G2(U,2,H7,K);K=new WRx;var w=new Xd;K=_.G2(K,3,H7,w);w=[];X!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:X,lastEvent:U,nestedOrigins:b}]),w.push({trustedUrl:X,lastEvent:U,nestedOrigins:b}));H!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:H,lastEvent:K,nestedOrigins:b}]),w.push({trustedUrl:H,lastEvent:K,nestedOrigins:b}));l!==void 0?this.displayInfoMap.set(3,[{trustedUrl:l,lastEvent:K,nestedOrigins:b}]):this.displayInfoMap.set(3,w)}};var ikp=function(X){var H=new fzC;this.galService=X;this.galCache=H};
ikp.prototype.getLink=function(X){var H=X.serviceId;var l=X.scopes;var b=X.capabilities;var U=X.linkName;var K=this,w;return _.h(function(d){if(b!==void 0&&l!==void 0)throw Error("pk");w=SbA(K.galCache,H,l,b,U);return w!==null?d.return(w):d.return(K.galService.getLink({serviceId:H,sessionId:Math.floor(Math.random()*2147483648),scopes:l,capabilities:b,linkName:U}).then(function(B){B=s6U(B);var q=K.galCache;q.storage.has(H)?q.storage.get(H).push(B):q.storage.set(H,[B]);return B}))})};
ikp.prototype.deleteLink=function(X,H,l){var b=this;return _.h(function(U){z6a(b.galCache,X,l);return U.return(b.galService.deleteLink({serviceId:X,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:H,linkName:l}).then(function(){return!0}))})};var Oky=function(X,H){var l=this;this.validator=X;this.msgHandler=H;this.closedPopupTimeout=this.JSC$19706_rejectCb=this.JSC$19706_resolveCb=this.popup=null;this.JSC$19706_receiveMessage=function(b){if(b!==null&&(b=b.event_,b.source===l.popup)){var U=b.data;if(l.validator(U,b.origin)){var K;(K=l.msgHandler)!=null&&K.call(l,U)||(l.JSC$19706_resolveCb!==null&&l.JSC$19706_resolveCb(U),v8p(l))}}}};
Oky.prototype.open=function(X,H){var l=this;this.popup!==null&&mIZ(this);return new Promise(function(b,U){l.JSC$19706_resolveCb=b;l.JSC$19706_rejectCb=U;l.popup=_.wr(window,X,"",H);_.n8(window,"message",l.JSC$19706_receiveMessage,!1,l);QcZ(l)})};
var mIZ=function(X,H){X.JSC$19706_rejectCb!==null&&X.JSC$19706_rejectCb(H);v8p(X)},v8p=function(X){X.closedPopupTimeout&&(X.closedPopupTimeout.cancel(),X.closedPopupTimeout=null);
X.popup&&X.popup.close();_.FE(window,"message",X.JSC$19706_receiveMessage,!1,X);X.popup=null;X.JSC$19706_resolveCb=null;X.JSC$19706_rejectCb=null},QcZ=function(X){X.closedPopupTimeout=_.Ytt(100).then(function(){X.popup?X.popup.closed?TgN(X):QcZ(X):mIZ(X,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},TgN=function(X){X.closedPopupTimeout=_.Ytt(100).then(function(){mIZ(X,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var Nga=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),ciy=function(X,H,l,b,U,K,w,d,B,q){var u=this;this.serviceId=X;this.sessionId=H;this.galService=l;this.oauthDetails=b;this.galLogger=U;this.interactionMode=K;this.redirectServiceUrl=w;this.consentLanguageKeys=d;this.dynamicUrlParameters=B;this.partnerConfigMinReadTimestamp=q;this.started=!1;this.JSC$19712_dataValidator=function(e,
y){var V=Nga.has(y);V||u.redirectServiceUrl===void 0||(V=u.redirectServiceUrl===y);return V?e.sentinel==="gdi":!1}};
ciy.prototype.complete=function(){var X=this,H;return _.h(function(l){if(X.interactionMode!==1)return l.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));H=nhy.getRedirectStateFromUri();return H===null?l.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):l.return(jcN(X,H))})};
ciy.prototype.start=function(){var X=this,H;return _.h(function(l){if(X.started)return l.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.sC(X.oauthDetails,1))return l.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(X.interactionMode===1)return nhy.setLocation(_.sC(X.oauthDetails,1)),l.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));X.started=!0;X.galLogger.logStateTransition(5);
H=nhy.getPostMessagePopup(X.JSC$19712_dataValidator);return l.return(H.open(_.sC(X.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(b){X.started=!1;var U=X.galLogger;if((b==null?void 0:b.error)!==void 0)throw U.logInternalEvent(59),Error("qk");if((b==null?void 0:b.redirect_state)===void 0)throw U.logInternalEvent(131),Error("rk");return jcN(X,b.redirect_state)}).catch(function(b){X.started=
!1;
return b.errorCode!==void 0?{statusCode:b.errorCode,statusMessage:b.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var jcN=function(X,H){return _.h(function(l){return l.return(riZ(X.galService,{serviceId:X.serviceId,sessionId:X.sessionId,dynamicUrlParameters:X.dynamicUrlParameters,redirectState:H,consentLanguageKeys:X.consentLanguageKeys,partnerConfigMinReadTimestamp:X.partnerConfigMinReadTimestamp}).then(function(b){var U={statusCode:1,link:s6U(b.getLink())};uQ5(_.Kj(b,3))!==void 0&&(U.callerState=uQ5(_.Kj(b,3)));_.cNK(b,4,zpN,MBa).size>0&&(U.redirectUriParams=new Map(Array.from(_.cNK(b,4,zpN,MBa).entries()).map(function(K){var w=
_.C(K);K=w.next().value;var d=w.next().value;w=[];var B=w.concat;d=_.Hu(d,1,_.DA,_.vb());return[K,B.call(w,_.LJ(d))]})));
X.galLogger.logInternalEvent(134);return U}))})},nhy={getPostMessagePopup:function(X){return new Oky(X)},
getRedirectStateFromUri:function(){var X=_.iI(nhy.getLocation()).fragment_;return(new _.j1(X)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(X){_.gmN(window.location,_.Yn(X))},
createOAuthFlow:function(X,H){return new ciy(X.serviceId,X.sessionId,X.galService,H,X.galLogger,X.interactionMode,X.redirectServiceUrl,X.consentLanguageKeys,X.dynamicUrlParameters,X.partnerConfigMinReadTimestamp)}};var Jip=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Jip,_.sU);var LRU=_.Wu(Jip);var YbU=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),IzZ=function(X,H,l,b,U,K,w,d,B){var q=this;this.serviceId=X;this.sessionId=H;this.galService=l;this.gsiWebFlowDetails=b;this.colorScheme=U;this.showCloseOption=K;this.galLogger=w;this.interactionMode=d;this.redirectServiceUrl=B;this.started=!1;this.JSC$19725_dataValidator=function(u,e){var y=YbU.has(e);y||q.redirectServiceUrl===
void 0||(y=q.redirectServiceUrl===e);return y?u.sentinel==="gal":!1};
this.logEventProcessor=function(u){return u.result?(u=$we(u.result))?KhU(q.galLogger,u):!1:!1}};
IzZ.prototype.complete=function(){var X=this,H,l;return _.h(function(b){if(X.interactionMode!==1)return b.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));H=xwU.getRedirectStateFromUri();if(H===void 0)return X.galLogger.JSC$19664_logErrorEvent(131),b.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return l=AiY(X,H),b.return(XWe(X,l))}catch(U){return b.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
IzZ.prototype.start=function(){var X=this,H;return _.h(function(l){if(X.started)return l.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.sC(X.gsiWebFlowDetails,1))return l.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(X.interactionMode===1)return xwU.setLocation(Hgp(X,_.sC(X.gsiWebFlowDetails,1))),l.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
X.started=!0;H=xwU.getPostMessagePopup(X.JSC$19725_dataValidator,X.logEventProcessor);return l.return(H.open(Hgp(X,_.sC(X.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(b){X.started=!1;if((b==null?void 0:b.result)===void 0)throw X.galLogger.JSC$19664_logErrorEvent(131),Error("rk");b=AiY(X,b.result);return XWe(X,b)}).catch(function(b){X.started=!1;
return b.errorCode!==void 0?{statusCode:b.errorCode,statusMessage:b.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Hgp=function(X,H){X=["result_channel",X.interactionMode===1?"2":"1","color_scheme",RKa(X.colorScheme),"show_close_option",X.showCloseOption];return Pgx(H,X)},XWe=function(X,H){if(H!==null&&_.UC(H,lP,2)){var l,b=H==null?void 0:(l=_.Al(H,lP,2))==null?void 0:_.M7(l,2);
b&&X.galLogger.JSC$19664_logErrorEvent(dwd(b));return tRZ(_.Al(H,lP,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 X.galService.getLink({serviceId:X.serviceId,sessionId:X.sessionId,consistencyKey:_.sC(H,1)}).then(function(U){U=s6U(U);X.galLogger.logInternalEvent(134);return{statusCode:1,link:U}})},AiY=function(X,H){H=LRU(H);
if(!_.UC(H,lP,2)&&_.sC(H,1)==="")throw X.galLogger.JSC$19664_logErrorEvent(5),Error("sk");return H},xwU={getPostMessagePopup:function(X,H){return new Oky(X,H)},
getRedirectStateFromUri:function(){return _.vE(_.iI(xwU.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(X){_.gmN(window.location,_.Yn(X))},
createStreamlinedFlow:function(X,H){return new IzZ(X.serviceId,X.sessionId,X.galService,H,X.colorScheme,X.showCloseOption,X.galLogger,X.interactionMode,X.redirectServiceUrl)}};var GWZ=function(X){this.storage=(X=X?_.Vl("GAL"):_.V0l("GAL"))?new _.sZ(X):null};
GWZ.prototype.getSession=function(X){if(this.storage!==null)try{var H=this.storage.get("SAVED_SESSION");if(H===void 0)return null;if(H.serviceId===X)return H}catch(l){}return null};var l7Y=function(){};
_.S(l7Y,E8Z);l7Y.prototype.logStateTransition=function(){};
l7Y.prototype.logInternalEvent=function(){};
l7Y.prototype.JSC$19664_logErrorEvent=function(){};var opy=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(opy,_.sU);opy.prototype.getCompletionUrl=function(){return _.sC(this,15)};var tz=function(X,H,l,b,U,K){this.serviceId=X;this.environment=H;this.sessionId=l;this.colorSchemeSelected=b;this.colorThemeDisplayed=U;this.JSC$19738_transport=K;this.currentState=1};
_.S(tz,E8Z);tz.prototype.logStateTransition=function(X){var H=bgZ(this);H=_.X$(H,3,this.currentState);H=_.X$(H,1,X);this.currentState=X;X=wtZ(1);this.dispatch(H,X)};
tz.prototype.logInternalEvent=function(X){X=wtZ(X);this.dispatch(bgZ(this),X)};
tz.prototype.JSC$19664_logErrorEvent=function(X){var H=bgZ(this);H=_.X$(H,1,10);X=wtZ(X);this.dispatch(H,X)};
var bgZ=function(X){var H=new opy;H=_.X$(H,1,X.currentState);H=_.KY(H,7,X.serviceId);var l,b;var U=((l=window)==null?0:(b=l.location)==null?0:b.href)?_.iI(window.location.href).JSC$10342_domain_:"NO_PACKAGE_NAME";l=_.KY(H,8,U);l=_.X$(l,6,X.environment);l=_.KY(l,5,"100");l=_.X$(l,11,X.colorSchemeSelected);return _.X$(l,12,X.colorThemeDisplayed)};
tz.prototype.dispatch=function(X,H){H===void 0&&(H=new _.HR);var l=H;X=X.serialize();l=_.KY(l,8,X);_.qp(l,12,this.sessionId);this.JSC$19738_transport.dispatch(H)};var UgU=function(X,H){this.loggerType=X;this.sessionIndex=H!=null?H:0},$gC;
UgU.prototype.create=function(X,H,l,b,U){switch(this.loggerType){case 0:return new l7Y;case 1:return $gC||($gC=(new _.Jj(555,this.sessionIndex.toString())).build()),new tz(X,H,l,b,U,$gC);default:_.Hp(this.loggerType,"unknown logger type")}};var Dwy=[6,2,3,1],mwY=new Map([[4,1],[1,6],[2,2],[3,3]]),y2Z={statusCode:7,statusMessage:"Failed to create flow object"},Ehl=function(X,H,l,b,U,K,w,d,B,q){this.serviceId=X;this.sessionId=H;this.config=l;this.galService=b;this.JSC$19745_linkingSession=U;this.googleScopes=K;this.callerState=w;this.consentLanguageKeys=d;this.dynamicUrlParameters=B;this.partnerConfigMinReadTimestamp=q;this.currentFlow=0;b=this.JSC$19745_linkingSession;U=new Set;_.UC(b,zKZ,1)&&U.add(1);_.UC(b,gs$,2)&&_.UC(b,kWA,6)&&U.add(2);
_.UC(b,Esp,3)&&_.UC(b,kWA,6)&&U.add(3);_.UC(b,D8U,4)&&U.add(6);this.supportedFlows=U;b=l.loggerType;U=l.clientEnvironment;a:{K=l.colorScheme;switch(K){case 0:K=1;break a;case 1:K=2;break a;case 2:K=3;break a;default:_.Hp(K)}K=void 0}a:{w=l.colorScheme;w=azC(w);switch(w){case 0:w=1;break a;case 1:w=2;break a;default:_.Hp(w)}w=void 0}this.galLogger=(new UgU(b,l.authUser)).create(X,U,H,K,w)},CCl=function(X){return new Promise(function(H){var l,b,U,K,w,d,B,q,u,e;
return _.h(function(y){switch(y.nextAddress){case 1:l=t4l(X.currentFlow,X.supportedFlows),b=!1,U=new ZkZ(X.JSC$19745_linkingSession,X.config.dataUsageNoticeConfig);case 2:if(l===void 0){y.jumpTo(4);break}_.Ew(y,5);var V=U,p=l,z=void 0;b?p===1&&(z=V.displayInfoMap.get(2)):p===2||p===3?z=V.displayInfoMap.get(1):p===1&&(z=V.displayInfoMap.get(3));K=z?z:[];w=X.consentLanguageKeys;d=_.C(K);B=d.next();case 7:if(B.done)return X.currentFlow=l,y.yield(P$C(KWy(X,w)),11);q=B.value;return y.yield(hKY(q,X.config.dataUsageNoticeConfig.uiAdapter,
X.config.colorScheme,X.galLogger),10);case 10:u=y.yieldResult;if(u.statusCode!==1)return RdZ(X),H(fcd({statusCode:u.statusCode,statusMessage:u.statusMessage},X.callerState)),y.return();u.consentLanguageKeys!==void 0&&(w=u.consentLanguageKeys);B=d.next();y.jumpTo(7);break;case 11:e=y.yieldResult;if(e.statusCode!==10)return e.statusCode!==6&&RdZ(X),e.statusCode!==1&&X.callerState!==void 0&&(e.callerState=X.callerState),H(e),y.return();_.Zt(y,6);break;case 5:_.Ow(y);case 6:l=t4l(X.currentFlow,X.supportedFlows);
b=!0;y.jumpTo(2);break;case 4:RdZ(X),H(fcd({statusCode:12,statusMessage:"Linking failed"},X.callerState)),_.m5(y)}})})},RdZ=function(X){acC(X.serviceId,X.config.localStorage);
X.currentFlow=0},vhZ=function(X,H,l){X.currentFlow=H;
return pMx(KWy(X,l)).then(function(b){return b.statusCode===10&&X.config.interactionMode===1&&t4l(X.currentFlow,X.supportedFlows)!==void 0?CCl(X):b})},KWy=function(X,H){return{flowParams:{serviceId:X.serviceId,
sessionId:X.sessionId,galService:X.galService,galLogger:X.galLogger,interactionMode:X.config.interactionMode,redirectServiceUrl:X.config.redirectServiceUrl,colorScheme:X.config.colorScheme,consentLanguageKeys:H,dynamicUrlParameters:X.dynamicUrlParameters,showCloseOption:X.config.showCloseOption,partnerConfigMinReadTimestamp:X.partnerConfigMinReadTimestamp},currentFlow:X.currentFlow,config:X.config,session:X.JSC$19745_linkingSession,googleScopes:X.googleScopes,callerState:X.callerState}};var TuA=function(X,H){this.config=X;this.galService=H.getService();this.JSC$19758_galRepository=H.JSC$19776_galRepository};
TuA.prototype.getLink=function(X,H){return wWe(this,X,H)};
var wWe=function(X,H,l){return X.JSC$19758_galRepository.getLink({serviceId:H,scopes:void 0,capabilities:void 0,linkName:l}).then(function(b){return{statusCode:1,link:b}}).catch(function(b){return{statusCode:Q6$(b.code),
statusMessage:b.message}})};
TuA.prototype.deleteLink=function(X,H){return this.JSC$19758_galRepository.deleteLink(X,this.config.accountLinkingEntryPoint,H).then(function(){return{statusCode:1}}).catch(function(l){return{statusCode:Q6$(l.code),
statusMessage:l.message}})};
TuA.prototype.startLinkingSession=function(X){var H=X.serviceId;var l=X.sessionId;return ghp({serviceId:H,sessionId:l!==void 0?l:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:X.loginHint,callerState:X.callerState,consentLanguageKeys:X.consentLanguageKeys,linkName:X.linkName,dynamicUrlParameters:X.dynamicUrlParameters,partnerConfigMinReadTimestamp:X.partnerConfigMinReadTimestamp})};var W2=function(X,H,l,b,U,K,w){this.apiKey=H;this.authUser=l;this.oauthToken=b;this.bucket=U;this.locale=K;this.galSdkEventHandler=w;if(b===void 0){if(H===void 0)throw Error("tk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new VRe(X)};
W2.prototype.deleteLink=function(X){var H=X.serviceId;var l=X.sessionId;var b=X.accountLinkingEntryPoint;var U=X.linkName;var K=this,w;return _.h(function(d){var B=(new Sd).setHeader(K.getHeader(l));var q=dga({serviceId:H,linkName:U});B=_.go(B,2,q);w=_.PC(B,3,b);return d.return(K.makeRequest(K.galServiceClient.deleteLink,w,[1,3],[2,4]))})};
var riZ=function(X,H){var l=H.serviceId;var b=H.sessionId;var U=H.dynamicUrlParameters;var K=H.redirectState;var w=H.consentLanguageKeys;var d=H.partnerConfigMinReadTimestamp;var B;return _.h(function(q){var u=(new nK).setHeader(X.getHeader(b,U));u=_.Wx(u,2,l);B=_.Wx(u,4,K);w!==void 0&&_.Wx(B,5,w);d!==void 0&&_.go(B,6,d);return q.return(X.makeRequest(X.galServiceClient.JSC$19643_finishOAuth,B,[1,3],[2,4]))})};
W2.prototype.getLink=function(X){var H=X.serviceId;var l=X.sessionId;var b=X.scopes;var U=X.capabilities;var K=X.consistencyKey;var w=X.linkName;var d=this,B;return _.h(function(q){var u=(new kx).setHeader(d.getHeader(l)),e=dga({serviceId:H,scopes:b,capabilities:U,linkName:w});B=_.go(u,2,e);K!==void 0&&(u=sSa(),u=_.Wx(u,2,K),_.go(B,3,u));return q.return(d.makeRequest(d.galServiceClient.getLink,B,[1,3],[2,4]))})};
var Si5=function(X,H){var l=H.serviceId;var b=H.sessionId;var U=H.googleScopes;var K=H.consistencyKey;var w;return _.h(function(d){var B=(new zQ).setHeader(X.getHeader(b));B=_.Wx(B,2,l);var q=Array.from(U.values());B=_.bR(B,3,q,_.zZ);q=sSa();q=_.Wx(q,2,K);w=_.go(B,4,q);return d.return(X.makeRequest(X.galServiceClient.JSC$19643_depositGoogleCredential,w,[1,3],[2,4]))})};
W2.prototype.startLinkingSession=function(X){var H=X.serviceId;var l=X.sessionId;var b=X.scopes;var U=X.capabilities;var K=X.loginHint;var w=X.supportedFlows;var d=X.completionUrl;var B=X.usePingPong;var q=X.twoWayLinking;var u=X.accountLinkingEntryPoint;var e=X.callerState;var y=X.consentLanguageKeys;var V=X.googleScopes;var p=X.dataUsageNoticeConfig;var z=X.linkName;var t=X.dynamicUrlParameters;var W=X.partnerConfigMinReadTimestamp;var G=this,r,Q;return _.h(function(v){if(U!==void 0&&b!==void 0)throw Error("pk");
var J=(new Z7y).setHeader(G.getHeader(l,t));r=_.Wx(J,2,H);z!==void 0&&_.Wx(r,14,z);if(U!==void 0){J=r;var Y=Array.from(U.values());_.bR(J,5,Y,_.zZ)}else b!==void 0&&(J=r,Y=Array.from(b.values()),_.bR(J,3,Y,_.zZ));d!==void 0&&_.Wx(r,6,d);B!==void 0&&_.wZ(r,15,B);w!==void 0&&(J=r,Y=Array.from(w.values()),_.bR(J,4,Y,_.Cd));if(q!==void 0){if(q&&(!V||V.size===0))throw Error("uk");_.wZ(r,8,q)}u!==void 0&&_.PC(r,9,u);K!==void 0&&_.Wx(r,13,K);e!==void 0&&(J=r,Y=(new TextEncoder).encode(e),_.$n(J,12,_.EG(Y,
!1),_.Wz()));y!==void 0&&_.Wx(r,16,y);W!==void 0&&_.go(r,18,W);if(p!==void 0&&p.size>0||V!==void 0&&V.size>0)Q=new aDy,V!==void 0&&V.size>0&&(J=Q,Y=Array.from(V.values()),_.bR(J,1,Y,_.zZ)),p!==void 0&&(p.has(0)&&_.ANk(Q,2,_.Cd,1,_.wY),p.has(1)&&_.ANk(Q,2,_.Cd,2,_.wY)),_.go(r,17,Q);return v.return(G.makeRequest(G.galServiceClient.startLinkingSession,r,[1],[2]))})};
W2.prototype.getMetadata=function(){var X=this,H,l;return _.h(function(b){H={};X.useFpa?(H["X-Goog-Api-Key"]=X.apiKey,H["X-Goog-AuthUser"]=X.authUser!==void 0?X.authUser.toString():"0",(l=_.cFh([]))&&(H.Authorization=l)):H.Authorization="Bearer "+X.oauthToken;X.locale&&(H["accept-language"]=X.locale);return b.return(H)})};
W2.prototype.makeRequest=function(X,H,l,b){var U=this,K;return _.h(function(w){if(w.nextAddress==1)return w.yield(U.getMetadata(),2);K=w.yieldResult;hdA(U,l);return w.return(X.bind(U.galServiceClient)(H,K).finally(function(){hdA(U,b)}))})};
var hdA=function(X,H){X.galSdkEventHandler!==void 0&&H.forEach(function(l){X.galSdkEventHandler.onEvent(l)})};
W2.prototype.getHeader=function(X,H){var l=new P2;X=_.$n(l,2,_.dY(X),0);X=_.PC(X,5,3);H=_.bR(X,8,H,_.zZ);this.bucket!==void 0&&_.Wx(H,1,this.bucket);return H};
var dga=function(X){var H=X.serviceId;var l=X.scopes;var b=X.capabilities;X=X.linkName;if(b!==void 0&&l!==void 0)throw Error("pk");var U=new BMp;H=_.Wx(U,1,H);b!==void 0?(l=Array.from(b.values()),_.bR(H,5,l,_.zZ)):l!==void 0&&(l=Array.from(l.values()),_.bR(H,3,l,_.zZ));X!==void 0&&_.Wx(H,6,X);return H};var NuC=function(X){this.galService=new W2(X.alsDomain,X.apiKey,X.authUser,X.oauthToken,X.bucket,X.locale,X.galSdkEventHandler);this.JSC$19776_galRepository=new ikp(this.galService)};
NuC.prototype.getService=function(){return this.galService};var FWp=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(FWp,_.sU);var BDe=function(X){var H=new FWp;return _.X$(H,1,X)};
FWp.prototype.setErrorMessage=function(X){return _.KY(this,2,X)};var q6x=[0,_.N7,_.ZU,_.N7];var Ek=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Ek,_.sU);var syY=[0,[1,2,3],_.mq,[0,_.JbF,uI5,-1],_.mq,[0,MfZ,-1],_.vC];var M3x=[0,_.gJ,1,_.N7,_.ZU,-1,1,_.Qs,_.tC,_.N7,-1,syY];var utU=[0,_.N7,[0,_.Qs,_.tC,[0,_.ZU]],_.Gb,[0,_.N7,-1]];var wH=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(wH,_.sU);var ed$=[0,_.ZU,_.N7,-2,_.gJ,_.N7,_.gJ,_.N7,-2,1,_.Gb];var yOp=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(yOp,_.sU);var V3e=[0,_.gJ];var PCU=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(PCU,_.sU);var f7x=[0,_.N7,utU,V3e,ed$,M3x];var iuZ=_.xn(PCU,f7x);var pWl=[0,PyC];var c8$=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(c8$,_.sU);var S6y=[0,[1,3],VfN,_.N7,VfN];var NB5=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(NB5,_.sU);var zdy=[0,_.N7];var npU=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(npU,_.sU);var ju$=function(X){return _.ys(X,FWp,2,CK)},kNe=function(X){var H=new npU;
return _.G2(H,2,CK,X)},CK=[1,
2];var xgp=[0,CK,_.mq,zdy,_.mq,q6x,_.OC,S6y,1,_.N7,pWl];var DgC=[0,1,[0,[1,2,3],_.mq,[0],_.mq,[0,S8Z],_.mq,[0,PyC]]];var t3C=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(t3C,_.sU);var Epl=function(X){var H=new t3C;return _.G2(H,3,WWY,X)},WWY=[2,
3];var gpa=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(gpa,_.sU);var GN5=function(X,H){return _.go(X,2,H)},a7d=function(X,H){return _.go(X,8,H)},Zgl=function(X,H){return _.go(X,3,H)};var igd=[0,_.N7,xgp,f7x,_.c0,[0,[5,6,7],[0,_.N7,-2],[0,_.gJ,_.N7,_.ZU],[0,syY],[0,_.ZU,_.N7,-1,_.NO,_.N7],_.mq,[0,[0,_.gJ],_.N7,-1],_.mq,[0,[3,4],_.N7,-1,_.mq,[0,[0,_.N7,_.Gb]],_.mq,[0,[0,[0,[1,2,3],_.mq,[0],_.mq,[0],_.mq,[0]]]]],_.mq,[0,_.N7]],_.c0,-1,[0,WWY,_.N7,_.mq,zdy,_.mq,q6x,_.OC,S6y,[0,PyC],DgC]];var vpe=_.xn(gpa,igd),OgU=_.tb(igd);var mg5=function(){_.$e.call(this)};
_.S(mg5,_.$e);mg5.prototype.init=function(){};
new mg5;_.QC();var Qyy=_.W8(["data-"]),TDA=_.W8(["aria-"]),ND$=_.W8(["aria-"]),gH=function(X,H){this.isLatencyMeasurementExperiment=X===void 0?!1:X;this.enableDialogA11yFix=H===void 0?!1:H;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.LZK(_.ok.location.href)},OuY=function(X,H){X.onConsentPrimitiveShownCallback=H},cOa=function(X,H){return X.overriddenIframeLoadTimeout?X.overriddenIframeLoadTimeout:H!==void 0?H:5E3},Que=function(X){if(X.prewarmPromise!==void 0)return X.prewarmPromise;
X.prewarmPromise=new Promise(function(H,l){GQ(X,1);jyZ(X,rO5(X,!0),JOa(X));X.iframe?X.prewarmChannel||LWU(X,X.iframe,H):l(Error("vk"))});
X.prewarmPromise.finally(function(){X.prewarmPromise=void 0});
return X.prewarmPromise};
gH.prototype.showPrimitive=function(){var X=this;if(this.consentPromise!==void 0)return this.consentPromise;var H=Date.now();Y6U(this,H);this.consentPromise=new Promise(function(l,b){GQ(X,0,H);var U=X.isDarkTheme();X.isLatencyMeasurementExperiment||X.initialLoadingStrategy===1||X.initialLoadingStrategy===2||(X.loadingBar||(X.loadingBar=J2a(getComputedStyle(document.body).direction==="rtl",U),X.loadingBar.style.position="fixed",X.loadingBar.style.zIndex="15000"),document.body.appendChild(X.loadingBar));
jyZ(X,rO5(X),JOa(X));X.iframe?X.channel||I7U(X,X.iframe,l,b):(AOl(X),b(Error("vk")))});
this.consentPromise.finally(function(){X.consentPromise=void 0});
return this.consentPromise};
var I7U=function(X,H,l,b){var U,K;_.h(function(w){switch(w.nextAddress){case 1:GQ(X,3);U=!1;setTimeout(function(){if(!U){AOl(X);XrC(X);HD5(X);var d=BDe(7).setErrorMessage("Timeout connecting to iframe");l(a7d(GN5(new gpa,kNe(d)),Epl(d)))}},cOa(X,lEZ(X)));
if(!X.prewarmPromise){w.jumpTo(2);break}_.Ew(w,3);return w.yield(X.prewarmPromise,5);case 5:_.Zt(w,2);break;case 3:_.Ow(w),K=BDe(4).setErrorMessage("Error while prewarming."),l(a7d(GN5(new gpa,kNe(K)),Epl(K)));case 2:X.prewarmChannel&&X.prewarmChannel.send(OgU(Zgl(new gpa,X.consentPrimitiveRequest))),X.channel=_.JC({destination:X.win,iframe:H,origin:ovd(X),channelName:"cpw",onEstablished:function(){U=!0;AOl(X);X.isLatencyMeasurementExperiment||(X.JSC$19805_previousBodyOverflow=document.body.style.overflow,
X.JSC$19805_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,X.JSC$19805_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",X.enableDialogA11yFix&&window.addEventListener("blur",X.focusChangeListener));var d=X.iframe;d.style.bottom="0";d.style.position="fixed";d.style.right="0";d.style.border="none";d.style.left="0";d.style.top=
"0";d.style.zIndex="5000";d.style.pointerEvents="";d.style.visibility="";X.initialLoadingStrategy===2||X.initialLoadingStrategy===3?GQ(X,4):GQ(X,6);var B;(B=X.onConsentPrimitiveShownCallback)==null||B.call(X)},
onMessage:function(d){d=vpe(d.data);switch(_.M7(d,1)){case 1:XrC(X);var B=Lhd(_.Al(d,_.uD,7));B&&(X.initialLoadingStrategy!==2&&X.initialLoadingStrategy!==3||GQ(X,6,B),GQ(X,5,B));if(B=Lhd(_.Al(d,_.uD,6)))GQ(X,7,B),GQ(X,8);var q,u;((q=_.Al(d,npU,2))==null?void 0:_.RV(q,CK))!==0&&((u=_.Al(d,t3C,8))==null?void 0:_.RV(u,WWY))!==0||b(Error("wk"));l(d);break;case 2:HD5(X)}}}),_.m5(w)}})},LWU=function(X,H,l){X.prewarmChannel=_.JC({destination:X.win,
iframe:H,origin:ovd(X),channelName:"pwcp",onEstablished:function(){GQ(X,2);l()}})},ovd=function(X){var H=_.OU(X.src).toString();
return H&&H.indexOf("://")<0&&H.indexOf("//")!==0?X.origin:_.LZK(H)},rO5=function(X,H){H=H===void 0?!1:H;
var l,b=new Map([["origin",X.origin],["hl",(l=bDC(X))!=null?l:null]]);H&&b.set("pw","1");H=_.C([["cpr",X.consentPrimitiveRequest.serialize()]]);for(l=H.next();!l.done;l=H.next()){var U=_.C(l.value);l=U.next().value;U=U.next().value;b.set(l,U)}X.isDarkTheme()&&b.set("color_scheme","dark");return _.n$(X.src,b)},AOl=function(X){X.isLatencyMeasurementExperiment||X.loadingBar&&document.body.removeChild(X.loadingBar)};
gH.prototype.getSrc=function(){var X=_.Nb(this.origin),H;var l=(H=_.Al(this.consentPrimitiveRequest,yOp,3))==null?void 0:_.O_(H,1);H="consent.google.com";l=l?"/u/"+encodeURIComponent(l.toString()):"";(X==null?0:X.endsWith("youtube.com"))?H="consent.youtube.com":(X=X==null?void 0:X.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(H="consent.google."+((X[1]?"co.":"")+encodeURIComponent(X[2])));return _.vu("https://"+H+"/signedin"+l+"/landing")};
var jyZ=function(X,H,l){X.iframe||(X.iframe=document.createElement("iframe"),X.iframe.style.width="100%",X.iframe.style.height="100%",l!==112496729&&(X.iframe.style.colorScheme="auto"),X.isLatencyMeasurementExperiment&&(X.iframe.style.display="none"),_.RD(X.iframe,H),X.iframe.setAttribute("jsname","C5o1O"),UUZ(X.iframe),document.body.appendChild(X.iframe))},UUZ=function(X){X.style.bottom="-200vh";
X.style.position="fixed";X.style.right="-200vw";X.style.border="";X.style.left="";X.style.top="";X.style.zIndex="";X.style.pointerEvents="none";X.style.visibility="hidden"},XrC=function(X){X.iframe&&(X.isLatencyMeasurementExperiment||(X.JSC$19805_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=X.JSC$19805_previousHtmlOverscroll),X.JSC$19805_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=X.JSC$19805_previousBodyOverscroll),X.JSC$19805_previousBodyOverflow!==
void 0&&(document.body.style.overflow=X.JSC$19805_previousBodyOverflow),X.enableDialogA11yFix&&$Ul(X,!1)),UUZ(X.iframe))};
gH.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&($Ul(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var $Ul=function(X,H){var l,b,U=(l=X.iframe)==null?void 0:(b=l.parentElement)==null?void 0:b.children;if(U)for(l=0;l<U.length;l++)b=U[l],b!==X.iframe&&(H?(b.hasAttribute("aria-hidden")&&_.uQ([_.p$(Qyy)],b,"data-old-aria-hidden",b.getAttribute("aria-hidden")),_.uQ([_.p$(TDA)],b,"aria-hidden","true")):(b.removeAttribute("aria-hidden"),b.hasAttribute("data-old-aria-hidden")&&(_.uQ([_.p$(ND$)],b,"aria-hidden",b.getAttribute("data-old-aria-hidden")),b.removeAttribute("data-old-aria-hidden"))))},GQ=function(X,
H,l){var b;
(b=X.latencyCallback)==null||b.call(X,{latencyType:H,timestampEpochMillis:l!=null?l:Date.now()})};var KsZ=function(X,H,l){gH.call(this,H,l===void 0?!1:l);this.consentPrimitiveRequest=X;X=bDC(this);_.RCl(X);this.src=this.getSrc();var b;this.initialLoadingStrategy=(b=_.Al(this.consentPrimitiveRequest,wH,4))==null?void 0:_.M7(b,4)},RqU;
_.S(KsZ,gH);var v1$=function(X){X={request:X,enableDialogA11yFix:!0};RqU||(RqU=new KsZ(X.request,X.isLatencyMeasurementExperiment||_.M7(X.request,1)===2,X.enableDialogA11yFix));return RqU},bDC=function(X){var H;
return(H=_.Al(X.consentPrimitiveRequest,wH,4))==null?void 0:_.sC(H,1)},Y6U=function(X,H){if(!_.UC(X.consentPrimitiveRequest,Ek,5)){var l=X.consentPrimitiveRequest,b=new Ek;
_.go(l,5,b)}var U;if((U=_.Al(X.consentPrimitiveRequest,Ek,5))==null||_.UaH(U,8)==null){var K;(K=_.Al(X.consentPrimitiveRequest,Ek,5))!=null&&_.qp(K,8,H)}},JOa=function(X){var H;
return(H=_.Al(X.consentPrimitiveRequest,Ek,5))==null?void 0:_.O_(H,1)};
KsZ.prototype.isDarkTheme=function(){var X;return((X=_.Al(this.consentPrimitiveRequest,wH,4))==null?void 0:_.M7(X,2))===2};
var lEZ=function(X){var H;return((H=_.Al(X.consentPrimitiveRequest,wH,4))==null?void 0:_.O_(H,5))||void 0},HD5=function(X){X.channel=void 0;
X.prewarmChannel=void 0;X.iframe&&(document.body.contains(X.iframe)&&document.body.removeChild(X.iframe),X.iframe=void 0);RqU=void 0},TBx=function(X){return gH.prototype.showPrimitive.call(X).then(function(H){return _.Al(H,npU,2)})};for(var a7={},CJN=(a7[64]="ma",a7[73]="ogb",a7[89]="cr",a7[21]="test",a7[0]="unkn",a7[137]="con",a7[155]="hl",a7[78]="yt",a7[171]="lp",a7[172]="ap",a7[177]="amo",a7[178]="pqe",a7[74]="gg",a7[1]="gm",a7[140]="am",a7[193]="sc",a7),wr$=_.C(Object.keys(CJN)),dUY=wr$.next();!dUY.done;dUY=wr$.next());var hq5=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(hq5,_.sU);var Fs5=[0,[2,3,4],_.N7,seA,VfN,_.vC];var Bh5=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Bh5,_.sU);var qKa=_.xn(Bh5,[0,_.cC,_.ZU,_.N7,_.ZU,_.N7,Fs5]);var sEp=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(sEp,_.sU);sEp.prototype.getCommand=function(){return _.M7(this,1)};
var Mjp=function(){var X=new sEp;return _.PC(X,1,0)};var uVY=_.tb([0,_.cC,_.ZU,[0,_.N7,_.ZU,-1]]);var eqA=new _.Cu("s"),yx5=new _.Cu("t"),Vjd=new _.Cu("u"),PJl=new _.Cu("v"),fE$=function(X,H,l){_.NF.call(this,eqA);this.mediaKey=X;this.photoUrl=H;this.photoSource=l};
_.S(fE$,_.NF);var pry=function(){_.NF.call(this,yx5)};
_.S(pry,_.NF);var SKC=function(X){X=X===void 0?!1:X;_.NF.call(this,Vjd);this.isError=X};
_.S(SKC,_.NF);var zqa=function(){_.NF.call(this,PJl)};
_.S(zqa,_.NF);var nvU=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,tjy=function(X){if(typeof X=="string"){if(X.charAt(0)==".")return kh$(X.substr(1));if(X.charAt(0)=="["){var H=nvU.exec(X);X=X.indexOf("=")==-1?void 0:H[3];return xUe(H[1],X)}return DUN(X)}return X},kh$=function(X){return function(H){return H.getAttribute&&_.gB(H,X)}},xUe=function(X,H){return function(l){return H!==void 0?l.getAttribute&&l.getAttribute(X)==H:l.hasAttribute&&l.hasAttribute(X)}},DUN=function(X){X=X.toUpperCase();
return function(H){return(H=H.tagName)&&H.toUpperCase()==X}},Ws$=function(){return!0};var ZQ=function(X,H){this.JSC$19833_key_=X;this.JSC$19833_value_=H},EvC=function(X){throw Error("xk`"+X.JSC$19833_key_);
},gva=function(X,H){return new TypeError("yk`"+H+"`"+X.JSC$19833_key_+"`"+X.JSC$19833_value_+"`"+typeof X.JSC$19833_value_)};
ZQ.prototype.string=function(X){return arguments.length==0?GhZ(this):aEa(this,X)};
var aEa=function(X,H){var l;return(l=ZDl(X))!=null?l:H},GhZ=function(X){var H=ZDl(X);
H===null&&EvC(X);return H},ZDl=function(X){var H=X.JSC$19833_value_;
if(H==null)return null;if(typeof H==="string")return H;throw gva(X,"string");};
ZQ.prototype.bool=function(X){if(arguments.length==0){var H=this.optionalBool();H===null&&EvC(this)}else{var l;H=(l=this.optionalBool())!=null?l:X}return H};
ZQ.prototype.optionalBool=function(){var X=this.JSC$19833_value_;if(X==null)return null;if(typeof X==="boolean")return X;if(typeof X==="string"){X=X.toLowerCase();if(X==="true"||X==="1")return!0;if(X==="false"||X==="0")return!1}throw gva(this,"boolean");};
ZQ.prototype.number=function(X){if(arguments.length==0){var H=iD$(this);H===null&&EvC(this)}else H=vvN(this,X);return H};
var vvN=function(X,H){var l;return(l=iD$(X))!=null?l:H},iD$=function(X){var H=X.JSC$19833_value_;
if(H==null)return null;if(typeof H==="number")return H;if(typeof H==="string"){var l=Number(H);if(!isNaN(l)&&(l!==0||H.trim().length!==0))return l}throw gva(X,"number");};
ZQ.prototype.toString=function(){return GhZ(this)};
ZQ.prototype.enum=function(X,H){var l=!0,b=void 0,U;for(U in X){var K=X[U];l&&(l=!1,b=typeof K==="number"?vvN(this,H):aEa(this,H));if(K==b)return b}JSON.stringify(X);return b};
ZQ.prototype.array=function(X){if(arguments.length==0){var H=ODx(this);H===null&&EvC(this);return H}H=ODx(this);return H==null?X:H};
var ODx=function(X){var H=X.JSC$19833_value_;if(H==null)return null;Array.isArray(H)||(typeof H!=="string"?H=[H]:(H=H.trim(),H=H==""?[]:H.split(",").map(function(l){return l.trim()})));
return mUa(X,H)},mUa=function(X,H){var l=X.JSC$19833_key_+"[";
return Array.from(H,function(b,U){return new ZQ(l+U+"]",b)})};
ZQ.prototype.object=function(X){var H=this.JSC$19833_value_;if(H==null)return X===void 0&&EvC(this),X;if(typeof H==="object"&&H.constructor===Object){X={};var l=this.JSC$19833_key_+".",b;for(b in H)X[b]=new ZQ(l+b,H[b]);return X}throw gva(this,"object");};var iN=function(X){this.list_=QEa(X)},QEa=function(X){if(X instanceof iN)X=X.list_;
else if(X[0]instanceof iN){for(var H=new Set,l=0;l<X.length;l++)for(var b=_.C(X[l].list_),U=b.next();!U.done;U=b.next())H.add(U.value);X=H}return[].concat(_.LJ(X))};
_.R=iN.prototype;_.R.each=function(X,H,l){((l===void 0?0:l)?heC:_.Ot)(this.list_,X,H);return this};
_.R.size=function(){return this.list_.length};
_.R.isEmpty=function(){return this.list_.length===0};
_.R.get=function(X){return this.list_[X]||null};
_.R.el=function(){return this.list_[0]||null};
_.R.map=function(X,H){return _.qz(this.list_,X,H)};
_.R.equals=function(X){return this===X||_.YN(this.list_,X.list_)};
_.R.first=function(){return this.list_.length==0?null:new v2(this.list_[0])};
_.R.last=function(){return this.list_.length==0?null:new v2(this.list_[this.list_.length-1])};
_.R.find=function(X){var H=[];this.each(function(l){l=l.querySelectorAll(String(X));for(var b=0;b<l.length;b++)H.push(l[b])});
return new iN(H)};
_.R.parent=function(){var X=[];this.each(function(H){(H=H.parentElement||null)&&!_.vh(X,H)&&X.push(H)});
return new iN(X)};
_.R.children=function(){var X=[];this.each(function(H){H=_.za(H);for(var l=0;l<H.length;l++)X.push(H[l])});
return new iN(X)};
_.R.filter=function(X){X=_.jY(this.list_,tjy(X));return new iN(X)};
_.R.closest=function(X){var H=[],l=tjy(X),b=function(U){return _.rv(U)&&l(U)};
this.each(function(U){(U=_.yo(U,b,!0))&&!_.vh(H,U)&&H.push(U)});
return new iN(H)};
_.R.next=function(X){return ThN(this,_.AjC,X)};
_.R.prev=function(X){return ThN(this,fgp,X)};
var ThN=function(X,H,l){var b=[];var U=l?tjy(l):Ws$;X.each(function(K){(K=H(K))&&U(K)&&b.push(K)});
return new iN(b)};
iN.prototype.setClass=function(X){return this.each(function(H){_.E$(H,X)})};
var NhA=function(X,H){return X.each(function(l){_.kl(l,H)})},cxl=function(X,H){return X.each(function(l){_.nq(l,H)})};
iN.prototype.toggleClass=function(X,H){return H===!0?NhA(this,X):H===!1?cxl(this,X):this.each(function(l){_.gB(l,X)?_.nq(l,X):_.kl(l,X)})};
iN.prototype.setText=function(X){return this.each(function(H){_.nx(H,X)})};
var jEd=function(X){X.each(function(H){H.removeAttribute("aria-hidden")})};
iN.prototype.getStyle=function(X){if(this.list_.length>0){var H=this.list_[0],l=H.style[_.IK(X)];return typeof l!=="undefined"?l:H.style[_.dF9(H,X)]||""}};
iN.prototype.getData=function(X){if(this.list_.length===0)return new ZQ(X,null);var H=f9N(this.list_[0],X);return new ZQ(X,H)};
iN.prototype.focus=function(X){try{X?this.el().focus(X):this.el().focus()}catch(H){}return this};
iN.prototype.click=function(){var X=_.uB(this.el());if(X.createEvent){var H=X.createEvent("MouseEvents");H.initMouseEvent("click",!0,!0,X.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(H)}else X=X.createEventObject(),X.clientX=0,X.clientY=0,X.screenX=0,X.screenY=0,X.altKey=!1,X.ctrlKey=!1,X.shiftKey=!1,X.button=0,this.el().fireEvent("onclick",X)};
var Ok=function(X,H,l,b){function U(d,B,q){var u=B;B&&B.parentNode&&(u=B.cloneNode(!0));d(u,q)}
b=b===void 0?!1:b;if(X.list_.length==1){var K=X.list_[0],w=function(d){return H(d,K)};
l instanceof iN?l.each(w,void 0,b):Array.isArray(l)?(b?heC:_.Ot)(l,w):w(l);return X}return X.each(function(d){l instanceof iN?l.each(function(B){U(H,B,d)}):Array.isArray(l)?_.Ot(l,function(B){U(H,B,d)}):U(H,l,d)})};
_.R=iN.prototype;_.R.append=function(X){return Ok(this,function(H,l){H&&l.appendChild(H)},X)};
_.R.appendTo=function(X){(new iN([X])).append(this);return this};
_.R.remove=function(){return Ok(this,function(X,H){_.HE(H)},null)};
_.R.empty=function(){return Ok(this,function(X,H){_.fx(H)},null)};
_.R.after=function(X,H){return Ok(this,function(l,b){l&&_.SH(l,b)},X,!(H===void 0||H))};
_.R.before=function(X){return Ok(this,function(H,l){H&&_.px(H,l)},X)};
_.R.replaceWith=function(X){return Ok(this,function(H,l){H&&_.LZY(H,l)},X)};
_.R.toggle=function(X){return this.each(function(H){_.mK(H,X)})};
_.R.show=function(){return this.toggle(!0)};
_.R.hide=function(){return this.toggle(!1)};
_.R.trigger=function(X,H,l,b){return rxU(this,X,H,l,b)};
var rxU=function(X,H,l,b,U){return X.each(function(K){_.kdl(_.uB(K)).triggerWizEventInternal(K,H,l,b,U)})},v2=function(X,H){X instanceof iN&&(H=X.list_,X=null);
this.list_=QEa(X!=null?[X]:H)};
_.To(v2,iN);_.R=v2.prototype;_.R.children=function(){return new iN(Array.prototype.slice.call(_.za(this.list_[0])))};
_.R.each=function(X,H){X.call(H,this.list_[0],0);return this};
_.R.size=function(){return 1};
_.R.el=function(){return this.list_[0]};
_.R.first=function(){return this};var m6=function(X,H){H=H===void 0?window:H;this.hostId=X;this.win=H;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$19844_previousHtmlOverscroll=this.JSC$19844_previousBodyOverscroll=this.JSC$19844_previousBodyOverflow="";this.eventTarget=new _.zB;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},YKe=function(X){var H=
JxZ(JxZ(JxZ(new Ls5(78),"po"),"hppp"),"hhc");
H.authUser=Number(_.gx("SESSION_INDEX","0"));H.colorScheme=X;return H};
m6.prototype.getOrigin=function(){return this.origin?this.origin:_.mx(_.O$(_.vR(new _.xu,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
m6.prototype.getTargetOrigin=function(){return _.mx(_.O$(_.vR(new _.xu,this.scheme),this.domain),this.port)};
m6.prototype.preloadIframe=function(X){var H=this;if(this.iframeLoadPromise===void 0){var l=document.createElement("iframe");this.iframe=l;oDZ(l,X);this.iframeLoadPromise=new Promise(function(b,U){var K=!1,w=function(d){d.stopPropagation();l.removeEventListener("error",w);l.removeEventListener("securitypolicyviolation",w);U(Error("zk",{cause:d}))};
l.addEventListener("error",w);l.addEventListener("securitypolicyviolation",w);setTimeout(function(){K||U(Error("Ak"))},3E4);
IEl(H,l,function(){K=!0;l.removeEventListener("error",w);l.removeEventListener("securitypolicyviolation",w);b()})});
Axy(this);X=this.getTargetOrigin().toString();l.setAttribute("allow","camera "+X+"; display-capture "+X);this.parentElement.appendChild(l)}return this.iframeLoadPromise};
var loe=function(X,H){var l,b;return _.h(function(U){if(U.nextAddress==1)return l=J2a(getComputedStyle(X.parentElement).direction==="rtl"),X.parentElement.appendChild(l),document.activeElement instanceof HTMLElement&&(X.elementToFocusAfterClose=document.activeElement),_.Ew(U,2),U.yield(X.preloadIframe(H),4);if(U.nextAddress!=2){X.parentElement.removeChild(l);X.JSC$19844_previousBodyOverflow=X.parentElement.style.overflow;X.JSC$19844_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
X.JSC$19844_previousBodyOverscroll=X.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";X.parentElement.style.overscrollBehavior="contain";X.parentElement.style.overflow="hidden";var K=X.iframe;K.style.bottom="0";K.style.border="none";K.style.height="100%";K.style.left="0";K.style.position=X.iframePosition;K.style.right="0";K.style.top="0";K.style.width="100%";K.style.zIndex="2202";K.setAttribute("aria-hidden","false");K.setAttribute("aria-modal","true");
X.opened=!0;XPN(X);return _.Zt(U,0)}b=_.Ow(U);X.parentElement.removeChild(l);Xcl(X.isDarkTheme());HLa(X,!1);throw Error("Bk",{cause:b});})},HLa=function(X,H){H=H===void 0?!0:H;
X.iframe!==void 0&&(oS5(X),document.documentElement.style.overscrollBehavior=X.JSC$19844_previousHtmlOverscroll,X.parentElement.style.overscrollBehavior=X.JSC$19844_previousBodyOverscroll,X.parentElement.style.overflow=X.JSC$19844_previousBodyOverflow,X.elementToFocusAfterClose!==void 0&&(X.elementToFocusAfterClose.focus(),X.elementToFocusAfterClose=void 0),H?Axy(X):(X.parentElement.removeChild(X.iframe),X.iframe=void 0,X.iframeLoadPromise=void 0,X.mainChannel=void 0),X.opened=!1)},oS5=function(X){X.backgroundElementsAriaHiddenIsNull&&
(jEd(X.backgroundElementsAriaHiddenIsNull),X.backgroundElementsAriaHiddenIsNull=void 0);
X.backgroundElementsAriaHiddenIsFalse&&(X.backgroundElementsAriaHiddenIsFalse.each(function(H){H.setAttribute("aria-hidden","false")}),X.backgroundElementsAriaHiddenIsFalse=void 0);
X.backgroundElementsWithoutInert&&(X.backgroundElementsWithoutInert.each(function(H){H.removeAttribute("inert")}),X.backgroundElementsWithoutInert=void 0)},XPN=function(X){X.backgroundElementsAriaHiddenIsNull=(new v2(X.iframe.parentElement)).children().filter(function(H){return H.getAttribute("aria-hidden")===null&&H!==X.iframe});
X.backgroundElementsAriaHiddenIsNull.each(function(H){H.setAttribute("aria-hidden","true")});
X.backgroundElementsAriaHiddenIsFalse=(new v2(X.iframe.parentElement)).children().filter(function(H){return H.getAttribute("aria-hidden")==="false"&&H!==X.iframe});
X.backgroundElementsAriaHiddenIsFalse.each(function(H){H.setAttribute("aria-hidden","true")});
X.backgroundElementsWithoutInert=(new v2(X.iframe.parentElement)).children().filter(function(H){return!H.hasAttribute("inert")&&H!==X.iframe});
X.backgroundElementsWithoutInert.each(function(H){H.setAttribute("inert","true")})},Axy=function(X){X=X.iframe;
X.style.bottom="-1000px";X.style.position="fixed";X.style.right="-1000px";X.style.border="";X.style.height="";X.style.left="";X.style.top="";X.style.width="";X.style.zIndex="";X.setAttribute("aria-hidden","true");X.setAttribute("aria-modal","false")};
m6.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var Ls5=function(X,H){m6.call(this,CJN[X],H);this.options=[];this.style=""};
_.S(Ls5,m6);var bL$=function(X){X.style="youtube";return X},UyZ=function(X,H){X.eventTarget.listen(Vjd,H);
return X},$y$=function(X,H){X.eventTarget.listen(eqA,H);
return X},JxZ=function(X,H){X.options.push(H);
return X},KGd=function(X){var H=[X.getOrigin()];
X.ancestorOrigins&&H.push.apply(H,_.LJ(X.ancestorOrigins));var l=new _.xu(X.win.location.href),b=X.startUrl?X.startUrl:X.options.includes("po")?"profile-picture/art":"profile-picture";H=FTd(_.QD(X.getTargetOrigin(),b),"origin",H);X.startUrl&&_.OT(H,"startPath",X.startUrl);X.authUser>0&&_.OT(H,"authuser",X.authUser);X.pageId!==void 0&&_.OT(H,"pageId",X.pageId);_.OT(H,"hostId",X.hostId);X.jsMode!==void 0&&_.OT(H,"jsmode",X.jsMode);X.rectangleRatio!==void 0&&_.OT(H,"rectangleRatio",X.rectangleRatio);
X.options.length>0&&_.OT(H,"opts",X.options.join(","));try{for(var U=_.C(["utm_source","utm_medium","utm_campaign","utm_content"]),K=U.next();!K.done;K=U.next()){var w=K.value;_.vE(l,w)&&_.OT(H,w,_.vE(l,w))}var d,B=(d=X.hl)!=null?d:_.vE(l,"hl");B!==void 0&&_.OT(H,"hl",B)}catch(q){if(!(q instanceof URIError))throw q;}X.colorScheme&&_.OT(H,"theme",X.colorScheme);X.style&&_.OT(H,"style",X.style);return H},RHN=function(X,H){X.mainChannel=_.JC({destination:X.win,
iframe:H,origin:X.getTargetOrigin().toString(),channelName:"ow",onMessage:function(l){l=qKa(l.data);if(H===X.iframe)switch(_.M7(l,1)){case 1:X.eventTarget.dispatchEvent(new SKC);HLa(X);break;case 2:X.eventTarget.dispatchEvent(new fE$(_.sC(l,4),_.sC(l,2),_.M7(l,5),_.Al(l,hq5,6)));break;case 0:var b;X.eventTarget.dispatchEvent(new pry(_.sC(l,2),(b=_.M7(l,3))!=null?b:0));break;case 3:X.eventTarget.dispatchEvent(new SKC(!0));HLa(X,!1);break;case 4:X.eventTarget.dispatchEvent(new zqa)}}})},IEl=function(X,
H,l){_.JC({destination:X.win,
iframe:H,origin:_.mx(_.O$(_.vR(new _.xu,X.scheme),X.domain),X.port).toString(),channelName:"owi",onMessage:function(b){H===X.iframe&&(l!==void 0&&l(),RHN(X,H),X.opened&&X.mainChannel.send(uVY(Mjp())),b.reply(),IEl(X,H))}})};
Ls5.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?m6.prototype.preloadIframe.call(this,KGd(this).toString()):this.iframeLoadPromise};
Ls5.prototype.openPicker=function(X){var H=this;return _.h(function(l){if(l.nextAddress==1)return H.startUrl=X?X:H.options.includes("po")?"profile-picture/art":"profile-picture",l.yield(loe(H,KGd(H).toString()),2);if(H.mainChannel){var b=H.mainChannel,U=b.send;var K=Mjp();K=_.KY(K,2,H.startUrl);U.call(b,uVY(K))}_.m5(l)})};var CUU=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(CUU,_.sU);_.R=CUU.prototype;_.R.getSize=function(){return uN(this,1)};
_.R.setSize=function(X){return _.Vs(this,1,X)};
_.R.getWidth=function(){return uN(this,12)};
_.R.getHeight=function(){return uN(this,13)};
_.R.setCenterCrop=function(X){return _.cb(this,20,X)};
_.R.getHtml=function(){return _.F0(this,4)};
_.R.getToken=function(){return _.Aj(this,24)};
_.R.setToken=function(X){return _.KY(this,24,X)};
_.R.getBackgroundColor=function(){return uN(this,87)};
_.R.hasBackgroundColor=function(){return _.hN(_.be(this,87))!=null};
_.R.getStoryboardLevel=function(){return uN(this,109)};o8.prototype.set=function(X,H){wPA(this,X,H,!1)};
o8.prototype.add=function(X,H){wPA(this,X,H,!0)};
var wPA=function(X,H,l,b){for(var U=0;U<H.length;U++){var K=H.charAt(U);X.childNodes_[K]||(X.childNodes_[K]=new o8);X=X.childNodes_[K]}if(b&&X.JSC$19852_value_!==void 0)throw Error("Ck`"+H);X.JSC$19852_value_=l},dyZ=function(X,H){for(var l=0;l<H.length;l++)if(X=X.childNodes_[H.charAt(l)],!X)return;
return X};
o8.prototype.get=function(X){return(X=dyZ(this,X))?X.JSC$19852_value_:void 0};
o8.prototype.getValues=function(){var X=[];hH$(this,X);return X};
var hH$=function(X,H){X.JSC$19852_value_!==void 0&&H.push(X.JSC$19852_value_);for(var l in X.childNodes_)hH$(X.childNodes_[l],H)};
o8.prototype.getKeys=function(X){var H=[];if(X){for(var l=this,b=0;b<X.length;b++){var U=X.charAt(b);if(!l.childNodes_[U])return[];l=l.childNodes_[U]}FGx(l,X,H)}else FGx(this,"",H);return H};
var FGx=function(X,H,l){X.JSC$19852_value_!==void 0&&l.push(H);for(var b in X.childNodes_)FGx(X.childNodes_[b],H+b,l)};
_.R=o8.prototype;_.R.containsKey=function(X){return this.get(X)!==void 0};
_.R.containsValue=function(X){if(this.JSC$19852_value_===X)return!0;for(var H in this.childNodes_)if(this.childNodes_[H].containsValue(X))return!0;return!1};
_.R.clear=function(){this.childNodes_={};this.JSC$19852_value_=void 0};
_.R.remove=function(X){for(var H=this,l=[],b=0;b<X.length;b++){var U=X.charAt(b);if(!H.childNodes_[U])throw Error("Dk`"+X);l.push([H,U]);H=H.childNodes_[U]}X=H.JSC$19852_value_;for(delete H.JSC$19852_value_;l.length>0;)if(b=l.pop(),H=b[0],b=b[1],H.childNodes_[b].isEmpty())delete H.childNodes_[b];else break;return X};
_.R.clone=function(){return new o8(this)};
_.R.getCount=function(){return zky(this.getValues())};
_.R.isEmpty=function(){return this.JSC$19852_value_===void 0&&_.Bb.isEmpty(this.childNodes_)};var R_l=function(){if(!BIe){var X=BIe=new o8,H;for(H in qRY)X.add(H,qRY[H])}},BIe,QN=function(X,H){this.types=X;
this.setters=H},qRY={a:new QN([3,
0],[function(X,H){_.cb(X,21,H)},
function(X,H){_.Vs(X,56,H)}]),
al:new QN([3],[function(X,H){_.cb(X,74,H)}]),
b:new QN([3,0],[function(X,H){_.cb(X,23,H)},
function(X,H){_.Vs(X,38,H)}]),
ba:new QN([0],[function(X,H){_.Vs(X,85,H)}]),
bc:new QN([0],[function(X,H){_.Vs(X,87,H)}]),
br:new QN([0],[function(X,H){_.Vs(X,86,H)}]),
c:new QN([3,0],[function(X,H){_.cb(X,2,H)},
function(X,H){_.Vs(X,39,H)}]),
cc:new QN([3],[function(X,H){_.cb(X,51,H)}]),
ci:new QN([3],[function(X,H){_.cb(X,32,H)}]),
ckm:new QN([3],[function(X,H){_.cb(X,104,H)}]),
cp:new QN([0],[function(X,H){_.Vs(X,92,H)}]),
cr:new QN([3],[function(X,H){_.cb(X,108,H)}]),
cv:new QN([0],[function(X,H){_.Vs(X,94,H)}]),
d:new QN([3],[function(X,H){_.cb(X,3,H)}]),
dc:new QN([5],[function(X,H){_.KY(X,99,H)}]),
df:new QN([3],[function(X,H){_.cb(X,80,H)}]),
dv:new QN([3],[function(X,H){_.cb(X,90,H)}]),
e:new QN([0],[function(X,H){_.Vs(X,15,H)}]),
em:new QN([0],[function(X,H){_.Vs(X,107,H)}]),
f:new QN([4],[function(X,H){_.KY(X,16,H)}]),
fg:new QN([3],[function(X,H){_.cb(X,34,H)}]),
fh:new QN([3],[function(X,H){_.cb(X,30,H)}]),
fm:new QN([3],[function(X,H){_.cb(X,84,H)}]),
fo:new QN([2],[function(X,H){_.HB(X,79,_.lx(H))}]),
ft:new QN([3],[function(X,H){_.cb(X,50,H)}]),
fv:new QN([3],[function(X,H){_.cb(X,31,H)}]),
g:new QN([3],[function(X,H){_.cb(X,14,H)}]),
gce:new QN([4],[function(X,H){_.KY(X,112,H)}]),
gd:new QN([3],[function(X,H){_.cb(X,83,H)}]),
gm:new QN([3],[function(X,H){_.cb(X,105,H)}]),
h:new QN([3,0],[function(X,H){_.cb(X,4,H)},
function(X,H){_.Vs(X,13,H)}]),
i:new QN([3],[function(X,H){_.cb(X,22,H)}]),
ic:new QN([0],[function(X,H){_.Vs(X,71,H)}]),
id:new QN([3],[function(X,H){_.cb(X,70,H)}]),
il:new QN([3],[function(X,H){_.cb(X,96,H)}]),
ip:new QN([3],[function(X,H){_.cb(X,54,H)}]),
iv:new QN([0],[function(X,H){_.qp(X,75,H)}]),
j:new QN([1],[function(X,H){_.HB(X,29,H==null?H:sKN(H))}]),
k:new QN([3,0],[function(X,H){_.cb(X,17,H)},
function(X,H){_.Vs(X,42,H)}]),
l:new QN([0],[function(X,H){_.Vs(X,44,H)}]),
lf:new QN([3],[function(X,H){_.cb(X,65,H)}]),
lo:new QN([3],[function(X,H){_.cb(X,97,H)}]),
m:new QN([0],[function(X,H){_.Vs(X,63,H)}]),
md:new QN([3],[function(X,H){_.cb(X,91,H)}]),
mm:new QN([4],[function(X,H){_.KY(X,81,H)}]),
mo:new QN([3],[function(X,H){_.cb(X,73,H)}]),
mp:new QN([0],[function(X,H){_.Vs(X,115,H)}]),
mv:new QN([3],[function(X,H){_.cb(X,66,H)}]),
n:new QN([3],[function(X,H){X.setCenterCrop(H)}]),
nc:new QN([3],[function(X,H){_.cb(X,55,H)}]),
nd:new QN([3],[function(X,H){_.cb(X,53,H)}]),
ng:new QN([3],[function(X,H){_.cb(X,95,H)}]),
ngm:new QN([3],[function(X,H){_.cb(X,106,H)}]),
no:new QN([3],[function(X,H){_.cb(X,37,H)}]),
ns:new QN([3],[function(X,H){_.cb(X,40,H)}]),
nt0:new QN([4],[function(X,H){_.KY(X,36,H)}]),
ntm:new QN([3],[function(X,H){_.cb(X,114,H)}]),
nu:new QN([3],[function(X,H){_.cb(X,46,H)}]),
nw:new QN([3],[function(X,H){_.cb(X,48,H)}]),
o:new QN([1,3],[function(X,H){_.HB(X,7,H==null?H:sKN(H))},
function(X,H){_.cb(X,27,H)}]),
p:new QN([3,0],[function(X,H){_.cb(X,19,H)},
function(X,H){_.Vs(X,43,H)}]),
pa:new QN([3],[function(X,H){_.cb(X,61,H)}]),
pc:new QN([0],[function(X,H){_.Vs(X,88,H)}]),
pd:new QN([3],[function(X,H){_.cb(X,60,H)}]),
pf:new QN([3],[function(X,H){_.cb(X,67,H)}]),
pg:new QN([3],[function(X,H){_.cb(X,72,H)}]),
pi:new QN([2],[function(X,H){_.HB(X,76,_.lx(H))}]),
pp:new QN([3],[function(X,H){_.cb(X,52,H)}]),
pt:new QN([4],[function(X,H){_.KY(X,111,H)}]),
q:new QN([4],[function(X,H){_.KY(X,28,H)}]),
r:new QN([3,0],[function(X,H){_.cb(X,6,H)},
function(X,H){_.Vs(X,26,H)}]),
ra:new QN([3],[function(X,H){_.cb(X,103,H)}]),
rf:new QN([3],[function(X,H){_.cb(X,100,H)}]),
rg:new QN([3],[function(X,H){_.cb(X,59,H)}]),
rh:new QN([3],[function(X,H){_.cb(X,49,H)}]),
rj:new QN([3],[function(X,H){_.cb(X,57,H)}]),
ro:new QN([2],[function(X,H){_.HB(X,78,_.lx(H))}]),
rp:new QN([3],[function(X,H){_.cb(X,58,H)}]),
rw:new QN([3],[function(X,H){_.cb(X,35,H)}]),
rwa:new QN([3],[function(X,H){_.cb(X,64,H)}]),
rwu:new QN([3],[function(X,H){_.cb(X,41,H)}]),
s:new QN([3,0],[function(X,H){_.cb(X,33,H)},
function(X,H){X.setSize(H)}]),
sb:new QN([0],[function(X,H){_.Vs(X,110,H)}]),
sc:new QN([0],[function(X,H){_.Vs(X,89,H)}]),
sg:new QN([3],[function(X,H){_.cb(X,82,H)}]),
sl:new QN([0],[function(X,H){_.Vs(X,109,H)}]),
sm:new QN([3],[function(X,H){_.cb(X,93,H)}]),
t:new QN([4],[function(X,H){X.setToken(H)}]),
tm:new QN([3],[function(X,H){_.cb(X,113,H)}]),
u:new QN([3],[function(X,H){_.cb(X,18,H)}]),
ut:new QN([3],[function(X,H){_.cb(X,45,H)}]),
v:new QN([0],[function(X,H){_.Vs(X,62,H)}]),
vb:new QN([0],[function(X,H){_.qp(X,68,H)}]),
vf:new QN([4],[function(X,H){_.KY(X,102,H)}]),
vl:new QN([0],[function(X,H){_.qp(X,69,H)}]),
vm:new QN([3],[function(X,H){_.cb(X,98,H)}]),
w:new QN([0],[function(X,H){_.Vs(X,12,H)}]),
x:new QN([0],[function(X,H){_.Vs(X,9,H)}]),
y:new QN([0],[function(X,H){_.Vs(X,10,H)}]),
ya:new QN([2],[function(X,H){_.HB(X,77,_.lx(H))}]),
z:new QN([0],[function(X,H){_.Vs(X,11,H)}])};
R_l.prototype.parse=function(X){var H=new CUU,l=new CUU;if(X=="")X=!0;else{X=X.split("-");for(var b=!0,U=0;U<X.length;U++){var K=X[U];if(K.length==0)b=!1;else{var w=K,d=!1;var B=w;var q=w.charAt(0);q!=q.toLowerCase()&&(d=!0,B=w.charAt(0).toLowerCase()+w.substring(1));var u=BIe;for(q=1;q<=B.length;++q){var e=u,y=B.substring(0,q);if(y.length==0?e.isEmpty():!dyZ(e,y))break}B=q==1?null:(B=u.get(B.substring(0,q-1)))?{option:w.substring(0,q-1),value:w.substring(q-1),signed:d,attributes:B}:null;if(B){w=
[];d=[];q=!1;for(u=0;u<B.attributes.types.length;u++){e=B.attributes.types[u];var V=B.value;y=U;if(B.signed&&e==1)for(var p=V.length;p<12&&y<X.length-1;)V+="-"+X[y+1],p=V.length,++y;else if(e==2)for(;y<X.length-1&&X[y+1].match(/^[\d\.]/);)V+="-"+X[y+1],++y;p=B.attributes.setters[u];V=shp(this,e)(B.option,V,H,l,p);if(V===null){q=!0;U=y;break}else w.push(e),d.push(V)}if(!q)for(B=0;B<d.length;B++)u=w[B],V=d[B],MZA(this,u)(K,V);b=b&&q}else b=!1}}X=b}return new uXZ(H,l,X)};
var eH5=function(X,H,l,b,U,K){U(l,H);X=X.charAt(0);K=K(X==X.toUpperCase());U(b,K)};
_.R=R_l.prototype;_.R.parseAndSetIntOption_=function(X,H,l,b,U){if(H=="")return 0;isFinite(H)&&(H=String(H));H=typeof H==="string"?/^\s*-?0x/i.test(H)?parseInt(H,16):parseInt(H,10):NaN;if(isNaN(H))return 1;eH5(X,H,l,b,U,Number);return null};
_.R.logIntParseError_=function(){};
_.R.parseAndSetFloatOption_=function(X,H,l,b,U){if(H=="")return 0;var K=Number(H);H=K==0&&_.w8(H)?NaN:K;if(isNaN(H))return 1;eH5(X,H,l,b,U,Number);return null};
_.R.logFloatParseError_=function(){};
_.R.parseAndSetBoolOption_=function(X,H,l,b,U){if(H!="")return 2;eH5(X,!0,l,b,U,Boolean);return null};
_.R.logBoolParseError_=function(){};
_.R.parseAndSetStringOption_=function(X,H,l,b,U){if(H=="")return 0;eH5(X,H,l,b,U,function(K){return K?"1":""});
return null};
_.R.logStringParseError_=function(){};
_.R.parseAndSetUint64Base64Option_=function(X,H,l,b,U){if(H=="")return 0;eH5(X,H,l,b,U,function(K){return K?1:0});
return null};
var shp=function(X,H){switch(H){case 0:return(0,_.K8)(X.parseAndSetIntOption_,X);case 2:return(0,_.K8)(X.parseAndSetFloatOption_,X);case 3:return(0,_.K8)(X.parseAndSetBoolOption_,X);case 4:return(0,_.K8)(X.parseAndSetStringOption_,X);case 1:return(0,_.K8)(X.parseAndSetUint64Base64Option_,X);default:return function(){}}},MZA=function(X,H){switch(H){case 0:return(0,_.K8)(X.logIntParseError_,X);
case 2:return(0,_.K8)(X.logFloatParseError_,X);case 3:return(0,_.K8)(X.logBoolParseError_,X);case 4:case 1:return(0,_.K8)(X.logStringParseError_,X);default:return function(){}}},uXZ=function(X,H,l){this.valueProto_=X;
this.signatureFlagProto_=H;this.JSC$19864_valid_=l};
uXZ.prototype.isValid=function(){return this.JSC$19864_valid_};var bc$=function(X){this.JSC$19865_parser_=null;this.JSC$19865_components_=[];this.JSC$19865_parsedOptions_=null;yLA(this,X)},VZN=function(X){X.JSC$19865_parser_==null&&(X.JSC$19865_parser_=new R_l);
return X.JSC$19865_parser_},yLA=function(X,H){X.JSC$19865_parsedOptions_=H?typeof H==="string"?VZN(X).parse(H):H:VZN(X).parse("")},TQ=function(X,H){return X==H?!1:!0};
_.R=bc$.prototype;_.R.JSC$19867_setCrop=function(X){X=X||void 0;var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,_.F0(l,2),_.F0(H.signatureFlagProto_,2))&&_.cb(l,2,X);return this};
_.R.JSC$19867_setCircleCrop=function(X){X=X||void 0;var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,Mm(l,51),Mm(H.signatureFlagProto_,51))&&_.cb(l,51,X);return this};
_.R.JSC$19867_setImageCrop=function(X){X=X||void 0;var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,Mm(l,32),Mm(H.signatureFlagProto_,32))&&_.cb(l,32,X);return this};
_.R.JSC$19867_setHeight=function(X){var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,l.getHeight(),H.signatureFlagProto_.getHeight())&&_.Vs(l,13,X);return this};
_.R.setCenterCrop=function(X){X=X||void 0;var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,_.F0(l,20),_.F0(H.signatureFlagProto_,20))&&l.setCenterCrop(X);return this};
_.R.JSC$19867_setSmartCrop=function(X){X=X||void 0;var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,_.F0(l,19),_.F0(H.signatureFlagProto_,19))&&_.cb(l,19,X);return this};
_.R.JSC$19867_setPad=function(X){X=X||void 0;var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,Mm(l,60),Mm(H.signatureFlagProto_,60))&&_.cb(l,60,X);return this};
_.R.JSC$19867_setSmartCropUseFace=function(X){X=X||void 0;var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,_.F0(l,67),_.F0(H.signatureFlagProto_,67))&&_.cb(l,67,X);return this};
_.R.JSC$19867_setSmartCropNoClip=function(X){X=X||void 0;var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,_.F0(l,52),_.F0(H.signatureFlagProto_,52))&&_.cb(l,52,X);return this};
_.R.setSize=function(X){var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,l.getSize(),H.signatureFlagProto_.getSize())&&l.setSize(X);return this};
_.R.setToken=function(X){X=X||void 0;var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,l.getToken(),H.signatureFlagProto_.getToken())&&l.setToken(X);return this};
_.R.JSC$19867_setWidth=function(X){var H=this.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(X,l.getWidth(),H.signatureFlagProto_.getWidth())&&_.Vs(l,12,X);return this};
_.R.clearOptions=function(){yLA(this,"");return this};
_.R.build=function(){this.JSC$19865_components_.length=0;var X=this.JSC$19865_parsedOptions_,H=X.valueProto_;X=X.signatureFlagProto_;Nm(this,"s",H.getSize(),X.getSize());Nm(this,"w",H.getWidth(),X.getWidth());c2(this,"c",_.F0(H,2),_.F0(X,2));c2(this,"d",_.F0(H,3),_.F0(X,3));Nm(this,"h",H.getHeight(),X.getHeight());c2(this,"s",Mm(H,33),Mm(X,33));c2(this,"h",H.getHtml(),X.getHtml());c2(this,"p",_.F0(H,19),_.F0(X,19));c2(this,"pp",_.F0(H,52),_.F0(X,52));c2(this,"pf",_.F0(H,67),_.F0(X,67));c2(this,"n",
_.F0(H,20),_.F0(X,20));Nm(this,"r",uN(H,26),uN(X,26));c2(this,"r",_.F0(H,6),_.F0(X,6));c2(this,"o",Mm(H,27),Mm(X,27));var l=_.hC(H,7,_.HC);jd(this,"o",l,_.hC(X,7,_.HC));l=_.hC(H,29,_.HC);jd(this,"j",l,_.hC(X,29,_.HC));Nm(this,"x",uN(H,9),uN(X,9));Nm(this,"y",uN(H,10),uN(X,10));Nm(this,"z",uN(H,11),uN(X,11));c2(this,"g",_.F0(H,14),_.F0(X,14));Nm(this,"e",uN(H,15),uN(X,15));jd(this,"f",_.Aj(H,16),_.Aj(X,16));c2(this,"k",Mm(H,17),Mm(X,17));c2(this,"u",Mm(H,18),!0);c2(this,"ut",Mm(H,45),!0);c2(this,"i",
Mm(H,22),!0);c2(this,"a",Mm(H,21),Mm(X,21));c2(this,"b",_.F0(H,23),_.F0(X,23));Nm(this,"b",uN(H,38),uN(X,38));Nm(this,"c",uN(H,39),uN(X,39),16,8);jd(this,"q",_.Aj(H,28),_.Aj(X,28));c2(this,"fh",Mm(H,30),Mm(X,30));c2(this,"fv",Mm(H,31),Mm(X,31));c2(this,"fg",_.F0(H,34),_.F0(X,34));c2(this,"ci",Mm(H,32),Mm(X,32));jd(this,"t",H.getToken(),X.getToken());jd(this,"nt0",_.Aj(H,36),_.Aj(X,36));c2(this,"rw",_.F0(H,35),_.F0(X,35));c2(this,"rwu",_.F0(H,41),_.F0(X,41));c2(this,"rwa",_.F0(H,64),_.F0(X,64));c2(this,
"nw",_.F0(H,48),_.F0(X,48));c2(this,"rh",_.F0(H,49),_.F0(X,49));c2(this,"no",_.F0(H,37),_.F0(X,37));c2(this,"ns",Mm(H,40),Mm(X,40));Nm(this,"k",uN(H,42),uN(X,42));Nm(this,"p",uN(H,43),uN(X,43));Nm(this,"l",uN(H,44),uN(X,44));Nm(this,"v",uN(H,62),uN(X,62));c2(this,"nu",Mm(H,46),Mm(X,46));c2(this,"ft",Mm(H,50),Mm(X,50));c2(this,"cc",Mm(H,51),Mm(X,51));c2(this,"nd",Mm(H,53),Mm(X,53));c2(this,"ip",Mm(H,54),Mm(X,54));c2(this,"nc",Mm(H,55),Mm(X,55));Nm(this,"a",uN(H,56),uN(X,56));c2(this,"rj",Mm(H,57),
Mm(X,57));c2(this,"rp",Mm(H,58),Mm(X,58));c2(this,"rg",Mm(H,59),Mm(X,59));c2(this,"pd",Mm(H,60),Mm(X,60));c2(this,"pa",Mm(H,61),Mm(X,61));Nm(this,"m",uN(H,63),uN(X,63));Nm(this,"vb",_.dJ(H,68,_.HC),_.dJ(X,68,_.HC));Nm(this,"vl",_.dJ(H,69,_.HC),_.dJ(X,69,_.HC));c2(this,"lf",Mm(H,65),Mm(X,65));c2(this,"mv",Mm(H,66),Mm(X,66));c2(this,"id",Mm(H,70),Mm(X,70));Nm(this,"ic",uN(H,71),!0);c2(this,"pg",_.F0(H,72),_.F0(X,72));c2(this,"mo",Mm(H,73),Mm(X,73));c2(this,"al",Mm(H,74),Mm(X,74));Nm(this,"iv",_.dJ(H,
75,_.HC),_.dJ(X,75,_.HC));Nm(this,"pi",ed(H,76),ed(X,76));Nm(this,"ya",ed(H,77),ed(X,77));Nm(this,"ro",ed(H,78),ed(X,78));Nm(this,"fo",ed(H,79),ed(X,79));c2(this,"df",Mm(H,80),Mm(X,80));jd(this,"mm",_.Aj(H,81),_.Aj(X,81));c2(this,"sg",Mm(H,82),Mm(X,82));c2(this,"gd",Mm(H,83),Mm(X,83));c2(this,"fm",Mm(H,84),Mm(X,84));Nm(this,"ba",uN(H,85),uN(X,85));Nm(this,"br",uN(H,86),uN(X,86));Nm(this,"bc",H.getBackgroundColor(),X.getBackgroundColor(),16,8);Nm(this,"pc",uN(H,88),uN(X,88),16,8);Nm(this,"sc",uN(H,
89),uN(X,89),16,8);c2(this,"dv",Mm(H,90),Mm(X,90));c2(this,"md",Mm(H,91),Mm(X,91));Nm(this,"cp",uN(H,92),uN(X,92));c2(this,"sm",Mm(H,93),Mm(X,93));Nm(this,"cv",uN(H,94),uN(X,94));c2(this,"ng",Mm(H,95),Mm(X,95));c2(this,"il",Mm(H,96),Mm(X,96));c2(this,"lo",Mm(H,97),Mm(X,97));c2(this,"vm",Mm(H,98),Mm(X,98));jd(this,"dc",_.Aj(H,99),_.Aj(X,99));c2(this,"rf",Mm(H,100),Mm(X,100));jd(this,"vf",_.Aj(H,102),_.Aj(X,102));c2(this,"ra",_.F0(H,103),_.F0(X,103));c2(this,"ckm",Mm(H,104),Mm(X,104));c2(this,"gm",
Mm(H,105),Mm(X,105));c2(this,"ngm",Mm(H,106),Mm(X,106));Nm(this,"em",uN(H,107),uN(X,107));c2(this,"cr",Mm(H,108),Mm(X,108));Nm(this,"sl",H.getStoryboardLevel(),X.getStoryboardLevel());Nm(this,"sb",uN(H,110),uN(X,110));jd(this,"pt",_.Aj(H,111),_.Aj(X,111));jd(this,"gce",_.Aj(H,112),_.Aj(X,112));c2(this,"tm",Mm(H,113),Mm(X,113));c2(this,"ntm",Mm(H,114),Mm(X,114));Nm(this,"mp",uN(H,115),uN(X,115));return this.JSC$19865_components_.join("-")};
var Nm=function(X,H,l,b,U,K){if(l!=null){var w=U==void 0||U!=10&&U!=16?10:U;l=Number(l).toString(w);U=new TV5;U.append(w==16?"0x":"");w=U.append;K==void 0?K="":(K-=l.length,K=K<=0?"":(0,_.vY9)("0",K));w.call(U,K);U.append(l);PUN(X,H,U.toString(),!!Number(b))}},c2=function(X,H,l,b){l&&PUN(X,H,"",!!b)},jd=function(X,H,l,b){l&&PUN(X,H,String(l),!!Number(b))},PUN=function(X,H,l,b){b&&(H=H.charAt(0).toUpperCase()+H.substring(1));
X.JSC$19865_components_.push(H+l)};_.To(bP,bc$);_.R=bP.prototype;_.R.JSC$19867_setCrop=function(X){X&&rH(this);return bP.superClass_.JSC$19867_setCrop.call(this,X)};
_.R.JSC$19867_setHeight=function(X){X=X==null||X<0?void 0:X;X!=null&&this.setSize();return bP.superClass_.JSC$19867_setHeight.call(this,X)};
_.R.JSC$19867_setImageCrop=function(X){X&&rH(this);return bP.superClass_.JSC$19867_setImageCrop.call(this,X)};
_.R.JSC$19867_setCircleCrop=function(X){X&&rH(this);return bP.superClass_.JSC$19867_setCircleCrop.call(this,X)};
_.R.setSize=function(X){_.r8(X)&&(X=Math.max(X.width,X.height));X=X==null||X<0?void 0:X;X!=null&&(this.JSC$19867_setWidth(),this.JSC$19867_setHeight());return bP.superClass_.setSize.call(this,X)};
_.R.JSC$19867_setSmartCrop=function(X){X&&rH(this);return bP.superClass_.JSC$19867_setSmartCrop.call(this,X)};
_.R.JSC$19867_setSmartCropNoClip=function(X){X&&rH(this);return bP.superClass_.JSC$19867_setSmartCropNoClip.call(this,X)};
_.R.JSC$19867_setSmartCropUseFace=function(X){X&&rH(this);return bP.superClass_.JSC$19867_setSmartCropUseFace.call(this,X)};
_.R.setCenterCrop=function(X){X&&rH(this);return bP.superClass_.setCenterCrop.call(this,X)};
_.R.JSC$19867_setPad=function(X){X&&rH(this);return bP.superClass_.JSC$19867_setPad.call(this,X)};
_.R.JSC$19867_setWidth=function(X){X=X==null||X<0?void 0:X;X!=null&&this.setSize();return bP.superClass_.JSC$19867_setWidth.call(this,X)};
var foN=function(X){X.clearOptions();var H=X.JSC$19865_parsedOptions_,l=H.valueProto_;TQ(!0,_.F0(l,3),_.F0(H.signatureFlagProto_,3))&&_.cb(l,3,!0);return X},rH=function(X){X.setCenterCrop();
X.JSC$19867_setCircleCrop();X.JSC$19867_setCrop();X.JSC$19867_setImageCrop();X.JSC$19867_setPad();X.JSC$19867_setSmartCrop();X.JSC$19867_setSmartCropNoClip();X.JSC$19867_setSmartCropUseFace()};
bP.prototype.build=function(){var X=this.JSC$19865_parsedOptions_.valueProto_;Mm(X,18)||Mm(X,45)?X.getSize()||this.setSize(0):(X=this.JSC$19865_parsedOptions_.valueProto_,X.getSize()||X.getWidth()||X.getHeight()||(this.setSize(),this.JSC$19867_setHeight(),this.JSC$19867_setWidth(),rH(this)));return bP.superClass_.build.call(this)};var pPe=/^[^\/]*\/\//,SRd=function(X,H){H=H===void 0?!1:H;this.original_=X;this.originalPrefix_="";(X=this.original_.match(pPe))&&X[0]?(this.originalPrefix_=X[0],X=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):X="http://"+this.original_;this.uri_=_.iI(X,!0);this.isFreeformUrl_=H;this.JSC$19871_valid_=!0;this.obfuscated_=!1},zHN=function(X,H){X.JSC$19873_pathPrefix_=X.JSC$19873_pathPrefix_?X.JSC$19873_pathPrefix_+("/"+H):H},Jz=function(X){if(X.JSC$19873_components_==
void 0){var H=X.uri_.getPath().substring(1);
X.JSC$19873_pathPrefix_=null;if(X.isFreeformUrl_){X.JSC$19873_components_=[];if((H.match(/=/g)||[]).length>1)return X.JSC$19871_valid_=!1,X.JSC$19873_components_;var l=H.indexOf("=");l!=-1?(X.JSC$19873_components_.push(H.substr(0,l)),X.JSC$19873_components_.push(H.substr(l+1))):X.JSC$19873_components_.push(H);return X.JSC$19873_components_}X.JSC$19873_components_=H.split("/");H=X.JSC$19873_components_.length;H>2&&X.JSC$19873_components_[0]=="u"&&(zHN(X,X.JSC$19873_components_[0]+"/"+X.JSC$19873_components_[1]),
X.JSC$19873_components_.shift(),X.JSC$19873_components_.shift(),H-=2);if(H==0||H==4||H>7)return X.JSC$19871_valid_=!1,X.JSC$19873_components_;if(H==2)zHN(X,X.JSC$19873_components_[0]);else if(X.JSC$19873_components_[0]=="image")zHN(X,X.JSC$19873_components_[0]);else if(H==7||H==3)return X.JSC$19871_valid_=!1,X.JSC$19873_components_;if(H<=3){X.obfuscated_=!0;H==3&&(zHN(X,X.JSC$19873_components_[1]),X.JSC$19873_components_.shift(),--H);--H;l=X.JSC$19873_components_[H];var b=l.indexOf("=");b!=-1&&(X.JSC$19873_components_[H]=
l.substr(0,b),X.JSC$19873_components_.push(l.substr(b+1)))}}return X.JSC$19873_components_};
SRd.prototype.isValid=function(){Jz(this);return this.JSC$19871_valid_};
SRd.prototype.isObfuscated=function(){Jz(this);return this.obfuscated_};
var nSY=function(X){Jz(X);return X.isFreeformUrl_},LK=function(X){Jz(X);
X.JSC$19873_pathPrefix_==void 0&&(X.JSC$19873_pathPrefix_=null);return X.JSC$19873_pathPrefix_},klZ=function(X){switch(Jz(X).length){case 7:return!0;
case 6:return LK(X)==null;case 5:return!1;case 3:return!0;case 2:return LK(X)==null;case 1:return!1;default:return!1}},Yx=function(X,H){if(nSY(X))a:{switch(H){case 7:H=0;
break;case 4:if(!klZ(X)){X=null;break a}H=1;break;default:X=null;break a}X=Jz(X)[H]}else if(X.isObfuscated())a:{var l=LK(X)!=null?1:0;switch(H){case 6:H=l;break;case 4:if(!klZ(X)){X=null;break a}H=1+l;break;default:X=null;break a}X=Jz(X)[H]}else a:{l=LK(X)!=null?1:0;switch(H){case 0:H=l;break;case 1:H=1+l;break;case 2:H=2+l;break;case 3:H=3+l;break;case 4:if(!klZ(X)){X=null;break a}H=4+l;break;case 5:H=klZ(X)?1:0;H=4+l+H;break;default:X=null;break a}X=Jz(X)[H]}return X};
SRd.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Yx(this,4));return this.options_};var KrZ=function(){};
KrZ.prototype.parse=function(X,H){return new URp(X,H===void 0?!1:H)};
var URp=function(X,H){SRd.call(this,X,H===void 0?!1:H)};
_.S(URp,SRd);_.To(C9x,bP);var $RN;C9x.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
C9x.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var X=C9x.superClass_.build.call(this),H=[];LK(this.parsedImageUrl_)!=null&&H.push(LK(this.parsedImageUrl_));var l=nSY(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var b=this.parsedImageUrl_;b.obfuscatedData_==void 0&&(b.obfuscatedData_=Yx(b,6));H.push(b.obfuscatedData_+(X?"="+X:""))}else if(l){b=H.push;var U=this.parsedImageUrl_;U.freeformUrlPath_===void 0&&(U.freeformUrlPath_=
Yx(U,7));b.call(H,U.freeformUrlPath_);X&&H.push(X)}else b=H.push,U=this.parsedImageUrl_,U.obfuscatedGaiaId_==void 0&&(U.obfuscatedGaiaId_=Yx(U,0)),b.call(H,U.obfuscatedGaiaId_),b=H.push,U=this.parsedImageUrl_,U.photoId_==void 0&&(U.photoId_=Yx(U,1)),b.call(H,U.photoId_),b=H.push,U=this.parsedImageUrl_,U.imageVersion_==void 0&&(U.imageVersion_=Yx(U,2)),b.call(H,U.imageVersion_),b=H.push,U=this.parsedImageUrl_,U.signature_==void 0&&(U.signature_=Yx(U,3)),b.call(H,U.signature_),X&&H.push(X),X=H.push,
b=this.parsedImageUrl_,b.filename_==void 0&&(b.filename_=Yx(b,5)),X.call(H,b.filename_);H=l?H.join("="):H.join("/");H=_.iI(this.protocolPrefix_+this.JSC$19879_domain_+"/"+H+(this.JSC$19879_query_?"?"+this.JSC$19879_query_:"")).toString();H.startsWith("%3a//")&&(H=H.replace("%3a//","://"));return H};_.To(UM,_.RM);UM.prototype.JSC$10384_setLabel=function(X){UM.superClass_.JSC$10384_setLabel.call(this,X);return this};
UM.prototype.addUploadMetadata=function(X,H){UM.superClass_.addUploadMetadata.call(this,X,H);return this};var xyC=function(X){if(X!=="youtubebanner"&&X!=="youtube-channel-banner")throw Error("Ek");UM.call(this,X)};
_.S(xyC,UM);xyC.prototype.JSC$10384_setLabel=function(X){UM.prototype.JSC$10384_setLabel.call(this,X);return this};
xyC.prototype.addUploadMetadata=function(X,H){UM.prototype.addUploadMetadata.call(this,X,H);return this};var DyN=[0,_.N7,_.gJ,_.N7,-1,_.gJ,[0,_.Gb,_.ZU,-1],_.N7,-1];var tZl=[0,[1,2,3],_.vC,-2];var WGN=[0,_.N7];var ESe=_.W8(["viewBox"]),gSa=_.W8(["width"]),Gld=_.W8(["height"]),aoy=_.W8(["fill"]),ZLY=_.W8(["id"]),iLx=_.W8(["x"]),vSd=_.W8(["y"]);wcC.prototype.getLength=function(){return this.parsedData.length};
wcC.prototype.write=function(X){for(var H=0,l=this.parsedData.length;H<l;H++)X.put(this.parsedData[H],8)};
var MLZ=function(X,H){var l=new wcC(H);X.dataList.push(l);l=X.errorCorrectLevel;var b=1,U=encodeURI(H).toString().replace(/%[0-9a-fA-F]{2}/g,"a");H=U.length+(U.length!=H?3:0);U=0;for(var K=I7.length;U<=K;U++){var w=0;switch(l){case 1:w=I7[U][0];break;case 0:w=I7[U][1];break;case 3:w=I7[U][2];break;case 2:w=I7[U][3]}if(H<=w)break;else b++}if(b>I7.length)throw Error("Nk");X.typeNumber=b;X.dataCache=null};
dRe.prototype.isDark=function(X,H){if(X<0||this.moduleCount<=X||H<0||this.moduleCount<=H)throw Error("Fk`"+X+"`"+H);return this.modules[X][H]};
for(var uh5=function(X,H,l){X.moduleCount=X.typeNumber*4+17;X.modules=Array(X.moduleCount);for(var b=0;b<X.moduleCount;b++){X.modules[b]=Array(X.moduleCount);for(var U=0;U<X.moduleCount;U++)X.modules[b][U]=null}OLd(X,0,0);OLd(X,X.moduleCount-7,0);OLd(X,0,X.moduleCount-7);b=myl[X.typeNumber-1];for(U=0;U<b.length;U++)for(var K=0;K<b.length;K++){var w=b[U],d=b[K];if(X.modules[w][d]==null)for(var B=-2;B<=2;B++)for(var q=-2;q<=2;q++)X.modules[w+B][d+q]=B==-2||B==2||q==-2||q==2||B==0&&q==0?!0:!1}for(b=
8;b<X.moduleCount-8;b++)X.modules[b][6]==null&&(X.modules[b][6]=b%2==0);for(b=8;b<X.moduleCount-8;b++)X.modules[6][b]==null&&(X.modules[6][b]=b%2==0);b=X.errorCorrectLevel<<3|l;for(U=b<<10;Az(U)-Az(1335)>=0;)U^=1335<<Az(U)-Az(1335);b=(b<<10|U)^21522;for(U=0;U<15;U++)K=!H&&(b>>U&1)==1,U<6?X.modules[U][8]=K:U<8?X.modules[U+1][8]=K:X.modules[X.moduleCount-15+U][8]=K;for(U=0;U<15;U++)K=!H&&(b>>U&1)==1,U<8?X.modules[8][X.moduleCount-U-1]=K:U<9?X.modules[8][15-U-1+1]=K:X.modules[8][15-U-1]=K;X.modules[X.moduleCount-
8][8]=!H;if(X.typeNumber>=7){b=X.typeNumber;for(U=b<<12;Az(U)-Az(7973)>=0;)U^=7973<<Az(U)-Az(7973);b=b<<12|U;for(U=0;U<18;U++)K=!H&&(b>>U&1)==1,X.modules[Math.floor(U/3)][U%3+X.moduleCount-8-3]=K;for(U=0;U<18;U++)K=!H&&(b>>U&1)==1,X.modules[U%3+X.moduleCount-8-3][Math.floor(U/3)]=K}if(X.dataCache==null){U=X.typeNumber;K=X.dataList;H=X.errorCorrectLevel;b=Qha(U,H);if(b==void 0)throw Error("Mk`"+U+"`"+H);w=b.length/3;H=[];for(d=0;d<w;d++){B=b[d*3];q=b[d*3+1];for(var u=b[d*3+2],e=0;e<B;e++)H.push(new h_x(q,
u))}b=new Frl;for(w=0;w<K.length;w++)d=K[w],b.put(d.mode,4),b.put(d.getLength(),TI5(d.mode,U)),d.write(b);for(w=U=0;w<H.length;w++)U+=H[w].dataCount;if(b.length>U*8)throw Error("Gk`"+b.length+"`"+U*8);for(b.length+4<=U*8&&b.put(0,4);b.length%8!=0;)NIe(b,!1);for(;!(b.length>=U*8);){b.put(236,8);if(b.length>=U*8)break;b.put(17,8)}K=U=q=0;w=Array(H.length);d=Array(H.length);for(B=0;B<H.length;B++){e=H[B].dataCount;var y=H[B].totalCount-e;U=Math.max(U,e);K=Math.max(K,y);w[B]=Array(e);for(u=0;u<w[B].length;u++)w[B][u]=
255&b.buffer[u+q];q+=e;u=y;e=new $a([1],0);for(y=0;y<u;y++)e=e.multiply(new $a([1,cLZ(y)],0));u=e;e=(new $a(w[B],u.getLength()-1)).mod(u);d[B]=Array(u.getLength()-1);for(u=0;u<d[B].length;u++)y=u+e.getLength()-d[B].length,d[B][u]=y>=0?e.get(y):0}for(u=b=0;u<H.length;u++)b+=H[u].totalCount;b=Array(b);for(u=q=0;u<U;u++)for(B=0;B<H.length;B++)u<w[B].length&&(b[q++]=w[B][u]);for(u=0;u<K;u++)for(B=0;B<H.length;B++)u<d[B].length&&(b[q++]=d[B][u]);X.dataCache=b}H=X.dataCache;b=-1;U=X.moduleCount-1;K=7;w=
0;for(d=X.moduleCount-1;d>0;d-=2)for(d==6&&d--;;){for(B=0;B<2;B++)X.modules[U][d-B]==null&&(q=!1,w<H.length&&(q=(H[w]>>>K&1)==1),jhl(l,U,d-B)&&(q=!q),X.modules[U][d-B]=q,K--,K==-1&&(w++,K=7));U+=b;if(U<0||X.moduleCount<=U){U-=b;b=-b;break}}},OLd=function(X,H,l){for(var b=-1;b<=7;b++)if(!(H+b<=-1||X.moduleCount<=H+b))for(var U=-1;U<=7;U++)l+U<=-1||X.moduleCount<=l+U||(X.modules[H+b][l+U]=0<=b&&b<=6&&(U==0||U==6)||0<=U&&U<=6&&(b==0||b==6)||2<=b&&b<=4&&2<=U&&U<=4?!0:!1)},e_a=function(X){for(var H=0,
l=0,b=0;b<8;b++){uh5(X,!0,b);
var U=X;for(var K=U.moduleCount,w=0,d=0;d<K;d++)for(var B=0;B<K;B++){for(var q=0,u=U.isDark(d,B),e=-1;e<=1;e++)if(!(d+e<0||K<=d+e))for(var y=-1;y<=1;y++)B+y<0||K<=B+y||(e!=0||y!=0)&&u==U.isDark(d+e,B+y)&&q++;q>5&&(w+=3+q-5)}for(d=0;d<K-1;d++)for(B=0;B<K-1;B++)if(q=0,U.isDark(d,B)&&q++,U.isDark(d+1,B)&&q++,U.isDark(d,B+1)&&q++,U.isDark(d+1,B+1)&&q++,q==0||q==4)w+=3;for(d=0;d<K;d++)for(B=0;B<K-6;B++)U.isDark(d,B)&&!U.isDark(d,B+1)&&U.isDark(d,B+2)&&U.isDark(d,B+3)&&U.isDark(d,B+4)&&!U.isDark(d,B+5)&&
U.isDark(d,B+6)&&(w+=40);for(B=0;B<K;B++)for(d=0;d<K-6;d++)U.isDark(d,B)&&!U.isDark(d+1,B)&&U.isDark(d+2,B)&&U.isDark(d+3,B)&&U.isDark(d+4,B)&&!U.isDark(d+5,B)&&U.isDark(d+6,B)&&(w+=40);for(B=q=0;B<K;B++)for(d=0;d<K;d++)U.isDark(d,B)&&q++;U=w+=Math.abs(100*q/K/K-50)/5*10;if(b==0||H>U)H=U,l=b}return l},myl=[[],
[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]],Az=function(X){for(var H=0;X!=0;)H++,X>>>=1;return H},jhl=function(X,H,l){switch(X){case 0:return(H+l)%2==0;
case 1:return H%2==0;case 2:return l%3==0;case 3:return(H+l)%3==0;case 4:return(Math.floor(H/2)+Math.floor(l/3))%2==0;case 5:return H*l%2+H*l%3==0;case 6:return(H*l%2+H*l%3)%2==0;case 7:return(H*l%3+(H+l)%2)%2==0;default:throw Error("Hk`"+X);}},TI5=function(X,H){if(1<=H&&H<10)switch(X){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ik`"+X);}else if(H<27)switch(X){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ik`"+X);}else if(H<41)switch(X){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ik`"+X);}else throw Error("Jk`"+H);},JLa=function(X){if(X<1)throw Error("Kk`"+X);
return rLa[X]},cLZ=function(X){for(;X<0;)X+=255;
for(;X>=256;)X-=255;return Xz[X]},Xz=Array(256),rLa=Array(256),LGA=0;LGA<8;LGA++)Xz[LGA]=1<<LGA;
for(var H_=8;H_<256;H_++)Xz[H_]=Xz[H_-4]^Xz[H_-5]^Xz[H_-6]^Xz[H_-8];for(var YRa=0;YRa<255;YRa++)rLa[Xz[YRa]]=YRa;$a.prototype.get=function(X){return this.num[X]};
$a.prototype.getLength=function(){return this.num.length};
$a.prototype.multiply=function(X){for(var H=Array(this.getLength()+X.getLength()-1),l=0;l<this.getLength();l++)for(var b=0;b<X.getLength();b++)H[l+b]^=cLZ(JLa(this.get(l))+JLa(X.get(b)));return new $a(H,0)};
$a.prototype.mod=function(X){if(this.getLength()-X.getLength()<0)return this;for(var H=JLa(this.get(0))-JLa(X.get(0)),l=Array(this.getLength()),b=0;b<this.getLength();b++)l[b]=this.get(b);for(b=0;b<X.getLength();b++)l[b]^=cLZ(JLa(X.get(b))+H);return(new $a(l,0)).mod(X)};
var IoZ=[[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]],Qha=function(X,H){switch(H){case 1:return IoZ[(X-1)*4];case 0:return IoZ[(X-1)*4+1];case 3:return IoZ[(X-1)*4+2];case 2:return IoZ[(X-1)*4+3]}};
Frl.prototype.get=function(X){return(this.buffer[Math.floor(X/8)]>>>7-X%8&1)==1};
Frl.prototype.put=function(X,H){for(var l=0;l<H;l++)NIe(this,(X>>>H-l-1&1)==1)};
var NIe=function(X,H){var l=Math.floor(X.length/8);X.buffer.length<=l&&X.buffer.push(0);H&&(X.buffer[l]|=128>>>X.length%8);X.length++},I7=[[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]],siY=function(){var X=function(H,l){this.JSC$19905__el=H;this.JSC$19905__htOption=l};
X.prototype.draw=function(H){function l(u,e){u=document.createElementNS("http://www.w3.org/2000/svg",u);for(var y in e)e.hasOwnProperty(y)&&(y==="href"?eeC(u,e[y]):_.uQ([_.p$(ESe),_.p$(gSa),_.p$(Gld),_.p$(aoy),_.p$(ZLY),_.p$(iLx),_.p$(vSd)],u,y,e[y]));return u}
var b=this.JSC$19905__htOption,U=this.JSC$19905__el,K=H.moduleCount;this.clear();var w=l("svg",{viewBox:"0 0 "+String(K)+" "+String(K),width:"100%",height:"100%",fill:b.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});U.appendChild(w);w.appendChild(l("rect",{fill:b.colorLight,width:"100%",height:"100%"}));w.appendChild(l("rect",{fill:b.colorDark,width:"1",height:"1",id:"template"}));for(var d=0;d<K;d++)for(var B=0;B<K;B++)if(H.isDark(d,B)){var q=l("use",{x:String(d),y:String(B),href:"#template"});
w.appendChild(q)}};
X.prototype.clear=function(){for(;this.JSC$19905__el.hasChildNodes();)this.JSC$19905__el.removeChild(this.JSC$19905__el.lastChild)};
return X}(),qqp=document.documentElement.tagName.toLowerCase()==="svg"?siY:typeof CanvasRenderingContext2D!="undefined"?function(){var X=function(H,l){this._bIsPainted=!1;
BTd();this.JSC$19905__htOption=l;this._elCanvas=document.createElement("canvas");this._elCanvas.width=l.width;this._elCanvas.height=l.height;H.appendChild(this._elCanvas);this.JSC$19905__el=H;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$19905__el.appendChild(this._elImage);this._bSupportDataURI=null};
X.prototype._onMakeImage=function(){var H=this._elCanvas.toDataURL("image/png");this._elImage.src=H;this._elImage.style.display="block";this._elCanvas.style.display="none"};
X.prototype._safeSetDataURI=function(H,l){var b=this;b._fFail=l;b._fSuccess=H;b._bSupportDataURI===null?(H=_.XJ("IMG"),l=function(){b._bSupportDataURI=!1;b._fFail&&b._fFail.call(b)},H.onabort=l,H.onerror=l,H.onload=function(){b._bSupportDataURI=!0;
b._fSuccess&&b._fSuccess.call(b)},H.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):b._bSupportDataURI===!0&&b._fSuccess?b._fSuccess.call(b):b._bSupportDataURI===!1&&b._fFail&&b._fFail.call(b)};
X.prototype.draw=function(H){var l=this._oContext,b=this.JSC$19905__htOption,U=H.moduleCount,K=b.width/U,w=b.height/U,d=Math.round(K),B=Math.round(w);this._elImage.style.display="none";this.clear();for(var q=0;q<U;q++)for(var u=0;u<U;u++){var e=H.isDark(q,u),y=u*K,V=q*w;l.strokeStyle=e?b.colorDark:b.colorLight;l.lineWidth=1;l.fillStyle=e?b.colorDark:b.colorLight;l.fillRect(y,V,K,w);l.strokeRect(Math.floor(y)+.5,Math.floor(V)+.5,d,B);l.strokeRect(Math.ceil(y)-.5,Math.ceil(V)-.5,d,B)}this._bIsPainted=
!0};
X.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
X.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
X.prototype.round=function(H){return H?Math.floor(H*1E3)/1E3:H};
return X}():function(){var X=function(H,l){this.JSC$19905__el=H;
this.JSC$19905__htOption=l};
X.prototype.draw=function(H){for(var l=this.JSC$19905__htOption,b=this.JSC$19905__el,U=H.moduleCount,K=Math.floor(l.width/U),w=Math.floor(l.height/U),d=['<table style="border:0;border-collapse:collapse;">'],B=0;B<U;B++){d.push("<tr>");for(var q=0;q<U;q++)d.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+K+"px;height:"+w+"px;background-color:"+(H.isDark(B,q)?l.colorDark:l.colorLight)+';"></td>');d.push("</tr>")}d.push("</table>");H=d.join("");H=_.nOC(_.xzt,H);_.Ml(b,H);
H=b.childNodes[0];U=(l.width-H.offsetWidth)/2;K=(l.height-H.offsetHeight)/2;U>0&&K>0&&(H.style.margin=K+"px "+U+"px")};
X.prototype.clear=function(){this.JSC$19905__el.textContent=""};
return X}();
yFp.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19908__android||this.JSC$19908__android>=3)&&this._oDrawing.makeImage()};
yFp.prototype.clear=function(){this._oDrawing.clear()};
_.ok.QRCode=yFp;var ALC={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var EDe=function(){};
EDe.prototype.stringify=function(X){return _.ok.JSON.stringify(X,void 0)};
EDe.prototype.parse=function(X){return _.ok.JSON.parse(X,void 0)};var XOZ=function(){_.NF.call(this,"z")};
_.To(XOZ,_.NF);var H0N=function(){_.NF.call(this,"y")};
_.To(H0N,_.NF);var P9y=null;_.To(pcY,_.NF);_.To(z_d,_.NF);_.To(nDe,_.NF);R8.prototype.disableRedact=function(){this.redactEnabled_=!1};
var l$y=function(X,H,l,b,U,K){X.info(function(){if(X.redactEnabled_)if(K){var w="";for(var d=K.split("&"),B=0;B<d.length;B++){var q=d[B].split("=");if(q.length>1){var u=q[0];q=q[1];var e=u.split("_");w=e.length>=2&&e[1]=="type"?w+(u+"="+q+"&"):w+(u+"=redacted&")}}}else w=null;else w=K;return"XMLHTTP REQ ("+b+") [attempt "+U+"]: "+H+"\n"+l+"\n"+w})},oWU=function(X,H,l,b,U,K,w){X.info(function(){return"XMLHTTP RESP ("+b+") [ attempt "+U+"]: "+H+"\n"+l+"\n"+K+" "+w})},ll=function(X,H,l,b){X.info(function(){return"XMLHTTP TEXT ("+
H+"): "+b0x(X,l)+(b?" "+b:"")})},Uja=function(X,H){X.info(function(){return"TIMEOUT: "+H})};
R8.prototype.debug=function(){};
R8.prototype.info=function(){};
R8.prototype.warning=function(){};
var b0x=function(X,H){if(!X.redactEnabled_)return H;if(!H)return null;try{var l=JSON.parse(H);if(l)for(var b=0;b<l.length;b++)if(Array.isArray(l[b])){var U=l[b];if(!(U.length<2)){var K=U[1];if(Array.isArray(K)&&!(K.length<1)){var w=K[0];if(w!="noop"&&w!="stop"&&w!="close")for(var d=1;d<K.length;d++)K[d]=""}}}return _.yD(l)}catch(B){return X.debug("Exception parsing expected JS array - probably was not JS"),H}};var DRp=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},$jp=function(X,H){switch(X){case 0:return"Non-200 return code ("+H+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},KjZ={},Rgy={};
Ca.prototype.setTimeout=function(X){this.timeout_=X};
var wOp=function(X,H,l){X.JSC$19930_type_=1;X.JSC$19930_baseUri_=_.J8(H.clone());X.JSC$19930_postData_=l;X.decodeChunks_=!0;CfA(X,null)},CfA=function(X,H){X.JSC$19930_requestStartTime_=Date.now();
djY(X);X.JSC$19930_requestUri_=X.JSC$19930_baseUri_.clone();FTd(X.JSC$19930_requestUri_,"t",X.JSC$19930_retryId_);X.JSC$19930_xmlHttpChunkStart_=0;var l=X.JSC$19930_channel_.JSC$19949_supportsCrossDomainXhrs_;X.fetchResponseState_=new DRp;X.JSC$19930_xmlHttp_=hg$(X.JSC$19930_channel_,l?H:null,!X.JSC$19930_postData_);X.JSC$19930_readyStateChangeThrottleMs_>0&&(X.JSC$19930_readyStateChangeThrottle_=new _.jw((0,_.K8)(X.JSC$19934_xmlHttpHandler_,X,X.JSC$19930_xmlHttp_),X.JSC$19930_readyStateChangeThrottleMs_));
X.JSC$19930_eventHandler_.listen(X.JSC$19930_xmlHttp_,"readystatechange",X.JSC$19934_readyStateChangeHandler_);H=X.JSC$19930_extraHeaders_?_.Bb.clone(X.JSC$19930_extraHeaders_):{};X.JSC$19930_postData_?(X.JSC$19930_verb_||(X.JSC$19930_verb_="POST"),H["Content-Type"]="application/x-www-form-urlencoded",X.JSC$19930_xmlHttp_.send(X.JSC$19930_requestUri_,X.JSC$19930_verb_,X.JSC$19930_postData_,H)):(X.JSC$19930_verb_="GET",X.JSC$19930_xmlHttp_.send(X.JSC$19930_requestUri_,X.JSC$19930_verb_,null,H));Sql(1);
l$y(X.JSC$19930_channelDebug_,X.JSC$19930_verb_,X.JSC$19930_requestUri_,X.JSC$19930_rid_,X.JSC$19930_retryId_,X.JSC$19930_postData_)};
Ca.prototype.JSC$19934_readyStateChangeHandler_=function(X){X=X.target;var H=this.JSC$19930_readyStateChangeThrottle_;H&&_.PR(X)==3?(this.JSC$19930_channelDebug_.debug("Throttling readystatechange."),H.fire()):this.JSC$19934_xmlHttpHandler_(X)};
Ca.prototype.JSC$19934_xmlHttpHandler_=function(X){try{X==this.JSC$19930_xmlHttp_?Fje(this):this.JSC$19930_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(H){this.JSC$19930_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),B2e(this)}finally{}};
var Fje=function(X){var H=_.PR(X.JSC$19930_xmlHttp_),l=X.JSC$19930_xmlHttp_.JSC$10106_lastErrorCode_,b=X.JSC$19930_xmlHttp_.getStatus();if(!(H<3||H==3&&!B2e(X))){X.JSC$19930_cancelled_||H!=4||l==7||(l==8||b<=0?Sql(3):Sql(2));qvC(X);var U=X.JSC$19930_xmlHttp_.getStatus();X.JSC$19930_lastStatusCode_=U;l=sIl(X);B2e(X)||X.JSC$19930_channelDebug_.debug(function(){return"No response text for uri "+X.JSC$19930_requestUri_+" status "+U});
X.JSC$19930_successful_=U==200;oWU(X.JSC$19930_channelDebug_,X.JSC$19930_verb_,X.JSC$19930_requestUri_,X.JSC$19930_rid_,X.JSC$19930_retryId_,H,U);if(X.JSC$19930_successful_){if(X.decodeInitialResponse_&&!X.initialResponseDecoded_)if(b=Mn5(X))ll(X.JSC$19930_channelDebug_,X.JSC$19930_rid_,b,"Initial handshake response via X-HTTP-Initial-Response"),X.initialResponseDecoded_=!0,ujx(X,b);else{X.JSC$19930_successful_=!1;X.JSC$19930_lastError_=3;Ka(12);X.JSC$19930_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
X.JSC$19930_rid_+")");od(X);egA(X);return}X.decodeChunks_?yWl(X,H,l):(ll(X.JSC$19930_channelDebug_,X.JSC$19930_rid_,l,null),ujx(X,l));H==4&&od(X);X.JSC$19930_successful_&&!X.JSC$19930_cancelled_&&(H==4?VnZ(X.JSC$19930_channel_,X):(X.JSC$19930_successful_=!1,djY(X)))}else dSd(X.JSC$19930_xmlHttp_),U==400&&l.indexOf("Unknown SID")>0?(X.JSC$19930_lastError_=3,Ka(12),X.JSC$19930_channelDebug_.warning("XMLHTTP Unknown SID ("+X.JSC$19930_rid_+")")):(X.JSC$19930_lastError_=0,Ka(13),X.JSC$19930_channelDebug_.warning("XMLHTTP Bad status "+
U+" ("+X.JSC$19930_rid_+")")),od(X),egA(X)}},Mn5=function(X){return X.JSC$19930_xmlHttp_&&(X=XMN(X.JSC$19930_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.w8(X)?X:null},sIl=function(X){if(!PfU(X))return X.JSC$19930_xmlHttp_.getResponseText();
var H=X.JSC$19930_xmlHttp_.getResponse();if(H==="")return"";var l="",b=H.length,U=_.PR(X.JSC$19930_xmlHttp_)==4;if(!X.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return od(X),egA(X),"";X.fetchResponseState_.textDecoder=new _.ok.TextDecoder}for(var K=0;K<b;K++)X.fetchResponseState_.responseArrivedForFetch=!0,l+=X.fetchResponseState_.textDecoder.decode(H[K],{stream:!(U&&K==b-1)});H.length=0;X.fetchResponseState_.responseBuffer+=l;X.JSC$19930_xmlHttpChunkStart_=0;return X.fetchResponseState_.responseBuffer},
B2e=function(X){return X.JSC$19930_xmlHttp_?X.fetchResponseState_.responseArrivedForFetch?!0:!(!X.JSC$19930_xmlHttp_.getResponseText()&&!X.JSC$19930_xmlHttp_.getResponse()):!1},PfU=function(X){return X.JSC$19930_xmlHttp_?X.JSC$19930_verb_=="GET"&&X.JSC$19930_type_!=2&&X.JSC$19930_channel_.usesFetchStreams_:!1},yWl=function(X,H,l){for(var b=!0,U;!X.JSC$19930_cancelled_&&X.JSC$19930_xmlHttpChunkStart_<l.length;)if(U=f$Y(X,l),U==Rgy){H==4&&(X.JSC$19930_lastError_=4,Ka(14),b=!1);
ll(X.JSC$19930_channelDebug_,X.JSC$19930_rid_,null,"[Incomplete Response]");break}else if(U==KjZ){X.JSC$19930_lastError_=4;Ka(15);ll(X.JSC$19930_channelDebug_,X.JSC$19930_rid_,l,"[Invalid Chunk]");b=!1;break}else ll(X.JSC$19930_channelDebug_,X.JSC$19930_rid_,U,null),ujx(X,U);PfU(X)&&X.JSC$19930_xmlHttpChunkStart_!=0&&(X.fetchResponseState_.responseBuffer=X.fetchResponseState_.responseBuffer.slice(X.JSC$19930_xmlHttpChunkStart_),X.JSC$19930_xmlHttpChunkStart_=0);H!=4||l.length!=0||X.fetchResponseState_.responseArrivedForFetch||
(X.JSC$19930_lastError_=1,Ka(16),b=!1);X.JSC$19930_successful_=X.JSC$19930_successful_&&b;b?l.length>0&&!X.firstByteReceived_&&(X.firstByteReceived_=!0,H=X.JSC$19930_channel_,H.JSC$19949_backChannelRequest_==X&&H.detectBufferingProxy_&&!H.bpDetectionDone_&&(H.JSC$19949_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+l.length),pOZ(H),H.bpDetectionDone_=!0,Ka(11))):(ll(X.JSC$19930_channelDebug_,X.JSC$19930_rid_,l,"[Invalid Chunked Response]"),od(X),egA(X))},f$Y=function(X,
H){var l=X.JSC$19930_xmlHttpChunkStart_,b=H.indexOf("\n",l);
if(b==-1)return Rgy;l=Number(H.substring(l,b));if(isNaN(l))return KjZ;b+=1;if(b+l>H.length)return Rgy;H=H.slice(b,b+l);X.JSC$19930_xmlHttpChunkStart_=b+l;return H};
Ca.prototype.cancel=function(){this.JSC$19930_cancelled_=!0;od(this)};
var djY=function(X){X.JSC$19930_watchDogTimeoutTime_=Date.now()+X.timeout_;Svp(X,X.timeout_)},Svp=function(X,H){if(X.JSC$19930_watchDogTimerId_!=null)throw Error("Pk");
X.JSC$19930_watchDogTimerId_=xR$((0,_.K8)(X.JSC$19934_onWatchDogTimeout_,X),H)},qvC=function(X){X.JSC$19930_watchDogTimerId_&&(_.ok.clearTimeout(X.JSC$19930_watchDogTimerId_),X.JSC$19930_watchDogTimerId_=null)};
Ca.prototype.JSC$19934_onWatchDogTimeout_=function(){this.JSC$19930_watchDogTimerId_=null;var X=Date.now();X-this.JSC$19930_watchDogTimeoutTime_>=0?(Uja(this.JSC$19930_channelDebug_,this.JSC$19930_requestUri_),this.JSC$19930_type_!=2&&(Sql(3),Ka(17)),od(this),this.JSC$19930_lastError_=2,egA(this)):(this.JSC$19930_channelDebug_.warning("WatchDog timer called too early"),Svp(this,this.JSC$19930_watchDogTimeoutTime_-X))};
var egA=function(X){X.JSC$19930_channel_.state_==0||X.JSC$19930_cancelled_||VnZ(X.JSC$19930_channel_,X)},od=function(X){qvC(X);
_.Gp(X.JSC$19930_readyStateChangeThrottle_);X.JSC$19930_readyStateChangeThrottle_=null;X.JSC$19930_eventHandler_.removeAll();if(X.JSC$19930_xmlHttp_){var H=X.JSC$19930_xmlHttp_;X.JSC$19930_xmlHttp_=null;H.abort();H.dispose()}};
Ca.prototype.getLastError=function(){return this.JSC$19930_lastError_};
var ujx=function(X,H){try{var l=X.JSC$19930_channel_;if(l.state_!=0&&(l.JSC$19949_backChannelRequest_==X||zgU(l.forwardChannelRequestPool_,X)))if(!X.initialResponseDecoded_&&zgU(l.forwardChannelRequestPool_,X)&&l.state_==3){try{var b=l.wireCodec_.JSC$19944_parser_.parse(H)}catch(d){b=null}if(Array.isArray(b)&&b.length==3){H=b;if(H[0]==0)a:if(l.JSC$19949_channelDebug_.debug("Server claims our backchannel is missing."),l.JSC$19949_backChannelTimerId_)l.JSC$19949_channelDebug_.debug("But we are currently starting the request.");
else{if(l.JSC$19949_backChannelRequest_)if(l.JSC$19949_backChannelRequest_.JSC$19930_requestStartTime_+3E3<X.JSC$19930_requestStartTime_)nWU(l),kCx(l);else break a;else l.JSC$19949_channelDebug_.warning("We do not have a BackChannel established");xje(l);Ka(18)}else{l.JSC$19949_lastPostResponseArrayId_=H[1];var U=l.JSC$19949_lastPostResponseArrayId_-l.JSC$19949_lastArrayId_;if(0<U){var K=H[2];l.JSC$19949_channelDebug_.debug(K+" bytes (in "+U+" arrays) are outstanding on the BackChannel");K<37500&&
l.enableStreaming_&&l.JSC$19949_backChannelRetryCount_==0&&!l.JSC$19949_deadBackChannelTimerId_&&(l.JSC$19949_deadBackChannelTimerId_=xR$((0,_.K8)(l.JSC$19951_onBackChannelDead_,l),6E3))}}if(DjU(l.forwardChannelRequestPool_)<=1&&l.forwardChannelFlushedCallback_){try{l.forwardChannelFlushedCallback_()}catch(d){}l.forwardChannelFlushedCallback_=void 0}}else l.JSC$19949_channelDebug_.debug("Bad POST response data returned"),bl(l,11)}else if((X.initialResponseDecoded_||l.JSC$19949_backChannelRequest_==
X)&&nWU(l),!_.w8(H)){var w=l.wireCodec_.JSC$19944_parser_.parse(H);l.onInput_(w,X)}Sql(4)}catch(d){}};var tnY=function(X,H){this.JSC$19937_mapId=X;this.map=H;this.context=null};var aVl=function(X){this.maxPoolSizeConfigured_=X||10;_.ok.PerformanceNavigationTiming?(X=_.ok.performance.getEntriesByType("navigation"),X=X.length>0&&(X[0].nextHopProtocol=="hq"||X[0].nextHopProtocol=="h2")):X=!!(_.ok.chrome&&_.ok.chrome.loadTimes&&_.ok.chrome.loadTimes()&&_.ok.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19940_maxSize_=X?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19940_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19940_request_=null;this.JSC$19940_pendingMessages_=
[]},Wjp=function(X){return X.JSC$19940_request_?!0:X.requestPool_?X.requestPool_.size>=X.JSC$19940_maxSize_:!1},DjU=function(X){return X.JSC$19940_request_?1:X.requestPool_?X.requestPool_.size:0},zgU=function(X,H){return X.JSC$19940_request_?X.JSC$19940_request_==H:X.requestPool_?X.requestPool_.has(H):!1},EWp=function(X,H){X.requestPool_?X.requestPool_.add(H):X.JSC$19940_request_=H},gWd=function(X,H){X.JSC$19940_request_&&X.JSC$19940_request_==H?X.JSC$19940_request_=null:X.requestPool_&&X.requestPool_.has(H)&&
X.requestPool_.delete(H)};
aVl.prototype.cancel=function(){this.JSC$19940_pendingMessages_=GCU(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 X=_.C(this.requestPool_.values()),H=X.next();!H.done;H=X.next())H.value.cancel();this.requestPool_.clear()}};
var GCU=function(X){if(X.JSC$19940_request_!=null)return X.JSC$19940_pendingMessages_.concat(X.JSC$19940_request_.JSC$19930_pendingMessages_);if(X.requestPool_!=null&&X.requestPool_.size!==0){var H=X.JSC$19940_pendingMessages_;X=_.C(X.requestPool_.values());for(var l=X.next();!l.done;l=X.next())H=H.concat(l.value.JSC$19930_pendingMessages_);return H}return _.NW(X.JSC$19940_pendingMessages_)},a$Z=function(X,H){X.JSC$19940_pendingMessages_=X.JSC$19940_pendingMessages_.concat(H)};dl.prototype.JSC$19951_channelVersion_=8;dl.prototype.state_=1;
dl.prototype.connect=function(X,H,l,b){this.JSC$19949_channelDebug_.debug("connect()");Ka(0);this.JSC$19949_path_=X;this.JSC$19949_extraParams_=H||{};l&&b!==void 0&&(this.JSC$19949_extraParams_.OSID=l,this.JSC$19949_extraParams_.OAID=b);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19949_channelDebug_.debug("connectChannel_()");X=Z0a(this,null,this.JSC$19949_path_);this.JSC$19949_channelDebug_.debug("GetForwardChannelUri: "+X);this.JSC$19949_forwardChannelUri_=X;i0Z(this)};
dl.prototype.disconnect=function(){this.JSC$19949_channelDebug_.debug("disconnect()");vWA(this);if(this.state_==3){var X=this.JSC$19949_nextRid_++,H=this.JSC$19949_forwardChannelUri_.clone();_.OT(H,"SID",this.sid_);_.OT(H,"RID",X);_.OT(H,"TYPE","terminate");O0N(this,H);X=new Ca(this,this.JSC$19949_channelDebug_,this.sid_,X);X.JSC$19930_type_=2;X.JSC$19930_baseUri_=_.J8(H.clone());H=!1;if(_.ok.navigator&&_.ok.navigator.sendBeacon)try{H=_.ok.navigator.sendBeacon(X.JSC$19930_baseUri_.toString(),"")}catch(l){}!H&&
_.ok.Image&&((new Image).src=X.JSC$19930_baseUri_,H=!0);H||(X.JSC$19930_xmlHttp_=hg$(X.JSC$19930_channel_,null),X.JSC$19930_xmlHttp_.send(X.JSC$19930_baseUri_));X.JSC$19930_requestStartTime_=Date.now();djY(X)}mjd(this)};
var kCx=function(X){X.JSC$19949_backChannelRequest_&&(pOZ(X),X.JSC$19949_backChannelRequest_.cancel(),X.JSC$19949_backChannelRequest_=null)},vWA=function(X){kCx(X);
X.JSC$19949_backChannelTimerId_&&(_.ok.clearTimeout(X.JSC$19949_backChannelTimerId_),X.JSC$19949_backChannelTimerId_=null);nWU(X);X.forwardChannelRequestPool_.cancel();X.JSC$19949_forwardChannelTimerId_&&(typeof X.JSC$19949_forwardChannelTimerId_==="number"&&_.ok.clearTimeout(X.JSC$19949_forwardChannelTimerId_),X.JSC$19949_forwardChannelTimerId_=null)};
dl.prototype.getState=function(){return this.state_};
var i0Z=function(X){Wjp(X.forwardChannelRequestPool_)||X.JSC$19949_forwardChannelTimerId_||(X.JSC$19949_forwardChannelTimerId_=!0,_.qQ(X.JSC$19951_onStartForwardChannelTimer_,X),X.JSC$19949_forwardChannelRetryCount_=0)},T2Y=function(X,H){if(DjU(X.forwardChannelRequestPool_)>=X.forwardChannelRequestPool_.JSC$19940_maxSize_-(X.JSC$19949_forwardChannelTimerId_?1:0))return!1;
if(X.JSC$19949_forwardChannelTimerId_)return X.JSC$19949_channelDebug_.debug("Use the retry request that is already scheduled."),X.JSC$19949_outgoingMaps_=H.JSC$19930_pendingMessages_.concat(X.JSC$19949_outgoingMaps_),!0;if(X.state_==1||X.state_==2||X.JSC$19949_forwardChannelRetryCount_>=(X.JSC$19949_failFast_?0:X.JSC$19949_forwardChannelMaxRetries_))return!1;X.JSC$19949_channelDebug_.debug("Going to retry POST");X.JSC$19949_forwardChannelTimerId_=xR$((0,_.K8)(X.JSC$19951_onStartForwardChannelTimer_,
X,H),QI$(X,X.JSC$19949_forwardChannelRetryCount_));X.JSC$19949_forwardChannelRetryCount_++;return!0};
dl.prototype.JSC$19951_onStartForwardChannelTimer_=function(X){if(this.JSC$19949_forwardChannelTimerId_)if(this.JSC$19949_forwardChannelTimerId_=null,this.JSC$19949_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!X){this.JSC$19949_channelDebug_.debug("open_()");this.JSC$19949_nextRid_=Math.floor(Math.random()*1E5);X=this.JSC$19949_nextRid_++;var H=new Ca(this,this.JSC$19949_channelDebug_,"",X),l=this.JSC$19949_extraHeaders_;this.initHeaders_&&(l?(l=_.Bb.clone(l),_.Bb.extend(l,this.initHeaders_)):
l=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(H.JSC$19930_extraHeaders_=l,l=null);var b;if(this.fastHandshake_)a:{for(var U=b=0;U<this.JSC$19949_outgoingMaps_.length;U++){b:{var K=this.JSC$19949_outgoingMaps_[U];if("__data__"in K.map&&(K=K.map.__data__,typeof K==="string")){K=K.length;break b}K=void 0}if(K===void 0)break;b+=K;if(b>4096){b=U;break a}if(b===4096||U===this.JSC$19949_outgoingMaps_.length-1){b=U+1;break a}}b=this.maxMapsPerRequest_}else b=
this.maxMapsPerRequest_;b=N2$(this,H,b);U=this.JSC$19949_forwardChannelUri_.clone();_.OT(U,"RID",X);_.OT(U,"CVER",22);this.httpSessionIdParam_&&_.OT(U,"X-HTTP-Session-Id",this.httpSessionIdParam_);O0N(this,U);l&&(this.encodeInitMessageHeaders_?b="headers="+_.YY(o8x(l))+"&"+b:this.httpHeadersOverwriteParam_&&bkN(U,this.httpHeadersOverwriteParam_,l));EWp(this.forwardChannelRequestPool_,H);this.blockingHandshake_&&_.OT(U,"TYPE","init");this.fastHandshake_?(_.OT(U,"$req",b),_.OT(U,"SID","null"),H.decodeInitialResponse_=
!0,wOp(H,U,null)):wOp(H,U,b);this.state_=2}}else this.state_==3&&(X?cWe(this,X):this.JSC$19949_outgoingMaps_.length==0?this.JSC$19949_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Wjp(this.forwardChannelRequestPool_)||(cWe(this),this.JSC$19949_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var cWe=function(X,H){var l;H?l=H.JSC$19930_rid_:l=X.JSC$19949_nextRid_++;var b=X.JSC$19949_forwardChannelUri_.clone();_.OT(b,"SID",X.sid_);_.OT(b,"RID",l);_.OT(b,"AID",X.JSC$19949_lastArrayId_);O0N(X,b);X.httpHeadersOverwriteParam_&&X.JSC$19949_extraHeaders_&&bkN(b,X.httpHeadersOverwriteParam_,X.JSC$19949_extraHeaders_);l=new Ca(X,X.JSC$19949_channelDebug_,X.sid_,l,X.JSC$19949_forwardChannelRetryCount_+1);X.httpHeadersOverwriteParam_===null&&(l.JSC$19930_extraHeaders_=X.JSC$19949_extraHeaders_);
H&&(X.JSC$19949_outgoingMaps_=H.JSC$19930_pendingMessages_.concat(X.JSC$19949_outgoingMaps_));H=N2$(X,l,X.maxMapsPerRequest_);l.setTimeout(Math.round(X.JSC$19949_forwardChannelRequestTimeoutMs_*.5)+Math.round(X.JSC$19949_forwardChannelRequestTimeoutMs_*.5*Math.random()));EWp(X.forwardChannelRequestPool_,l);wOp(l,b,H)},O0N=function(X,H){X.JSC$19949_extraParams_&&_.Bb.forEach(X.JSC$19949_extraParams_,function(l,b){_.OT(H,b,l)});
X.handler_&&_.Bb.forEach({},function(l,b){_.OT(H,b,l)})},N2$=function(X,H,l){l=Math.min(X.JSC$19949_outgoingMaps_.length,l);
var b=X.handler_?(0,_.K8)(X.handler_.JSC$19955_badMapError,X.handler_,X):null;a:{for(var U=X.JSC$19949_outgoingMaps_,K=-1;;){var w=["count="+l];K==-1?l>0?(K=U[0].JSC$19937_mapId,w.push("ofs="+K)):K=0:w.push("ofs="+K);for(var d=!0,B=0;B<l;B++){var q=U[B].JSC$19937_mapId,u=U[B].map;q-=K;if(q<0)K=Math.max(0,U[B].JSC$19937_mapId-100),d=!1;else try{q="req"+q+"_"||"";try{var e=u instanceof Map?u:Object.entries(u);for(var y=_.C(e),V=y.next();!V.done;V=y.next()){var p=_.C(V.value),z=p.next().value,t=p.next().value,
W=t;_.r8(t)&&(W=_.yD(t));w.push(q+z+"="+encodeURIComponent(W))}}catch(G){throw w.push(q+"type="+encodeURIComponent("_badmap")),G;}}catch(G){b&&b(u)}}if(d){e=w.join("&");break a}}e=void 0}X=X.JSC$19949_outgoingMaps_.splice(0,l);H.JSC$19930_pendingMessages_=X;return e},jIe=function(X){X.JSC$19949_backChannelRequest_||X.JSC$19949_backChannelTimerId_||(X.JSC$19949_backChannelAttemptId_=1,_.qQ(X.JSC$19951_onStartBackChannelTimer_,X),X.JSC$19949_backChannelRetryCount_=0)},xje=function(X){if(X.JSC$19949_backChannelRequest_||
X.JSC$19949_backChannelTimerId_||X.JSC$19949_backChannelRetryCount_>=3)return!1;
X.JSC$19949_channelDebug_.debug("Going to retry GET");X.JSC$19949_backChannelAttemptId_++;X.JSC$19949_backChannelTimerId_=xR$((0,_.K8)(X.JSC$19951_onStartBackChannelTimer_,X),QI$(X,X.JSC$19949_backChannelRetryCount_));X.JSC$19949_backChannelRetryCount_++;return!0};
dl.prototype.JSC$19951_onStartBackChannelTimer_=function(){this.JSC$19949_backChannelTimerId_=null;rW$(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 X=4*this.handshakeRttMs_;this.JSC$19949_channelDebug_.info("BP detection timer enabled: "+X);this.bpDetectionTimerId_=xR$((0,_.K8)(this.onBpDetectionTimer_,
this),X)}};
dl.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 X=this.JSC$19949_backChannelRequest_.JSC$19930_xmlHttp_.getResponseText();X&&this.JSC$19949_channelDebug_.warning("Timer should have been cancelled : "+X)}this.JSC$19949_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Ka(10);kCx(this);rW$(this)}else this.JSC$19949_channelDebug_.warning("Invalid operation.")};
var pOZ=function(X){X.bpDetectionTimerId_!=null&&(X.JSC$19949_channelDebug_.debug("Cancel the BP detection timer."),_.ok.clearTimeout(X.bpDetectionTimerId_),X.bpDetectionTimerId_=null)},rW$=function(X){X.JSC$19949_channelDebug_.debug("Creating new HttpRequest");
X.JSC$19949_backChannelRequest_=new Ca(X,X.JSC$19949_channelDebug_,X.sid_,"rpc",X.JSC$19949_backChannelAttemptId_);X.httpHeadersOverwriteParam_===null&&(X.JSC$19949_backChannelRequest_.JSC$19930_extraHeaders_=X.JSC$19949_extraHeaders_);X.JSC$19949_backChannelRequest_.JSC$19930_readyStateChangeThrottleMs_=0;var H=X.JSC$19949_backChannelUri_.clone();_.OT(H,"RID","rpc");_.OT(H,"SID",X.sid_);_.OT(H,"AID",X.JSC$19949_lastArrayId_);_.OT(H,"CI",X.enableStreaming_?"0":"1");!X.enableStreaming_&&X.longPollingTimeout_&&
_.OT(H,"TO",X.longPollingTimeout_);_.OT(H,"TYPE","xmlhttp");O0N(X,H);X.httpHeadersOverwriteParam_&&X.JSC$19949_extraHeaders_&&bkN(H,X.httpHeadersOverwriteParam_,X.JSC$19949_extraHeaders_);X.backChannelRequestTimeoutMs_&&X.JSC$19949_backChannelRequest_.setTimeout(X.backChannelRequestTimeoutMs_);var l=X.JSC$19949_backChannelRequest_,b=X.JSC$19949_hostPrefix_;l.JSC$19930_type_=1;l.JSC$19930_baseUri_=_.J8(H.clone());l.JSC$19930_postData_=null;l.decodeChunks_=!0;CfA(l,b);X.JSC$19949_channelDebug_.debug("New Request created")};
dl.prototype.JSC$19951_onBackChannelDead_=function(){this.JSC$19949_deadBackChannelTimerId_!=null&&(this.JSC$19949_deadBackChannelTimerId_=null,kCx(this),xje(this),Ka(19))};
var nWU=function(X){X.JSC$19949_deadBackChannelTimerId_!=null&&(_.ok.clearTimeout(X.JSC$19949_deadBackChannelTimerId_),X.JSC$19949_deadBackChannelTimerId_=null)},VnZ=function(X,H){X.JSC$19949_channelDebug_.debug("Request complete");
var l=null;if(X.JSC$19949_backChannelRequest_==H){nWU(X);pOZ(X);X.JSC$19949_backChannelRequest_=null;var b=2}else if(zgU(X.forwardChannelRequestPool_,H))l=H.JSC$19930_pendingMessages_,gWd(X.forwardChannelRequestPool_,H),b=1;else return;if(X.state_!=0)if(H.JSC$19930_successful_)b==1?(kx5(H.JSC$19930_postData_?H.JSC$19930_postData_.length:0,Date.now()-H.JSC$19930_requestStartTime_,X.JSC$19949_forwardChannelRetryCount_),i0Z(X)):jIe(X);else{var U=H.JSC$19930_lastStatusCode_,K=H.getLastError();if(K==3||
K==0&&U>0)X.JSC$19949_channelDebug_.debug("Not retrying due to error type"),U>200&&(X.errorResponseStatusCode_=H.JSC$19930_lastStatusCode_);else{X.JSC$19949_channelDebug_.debug(function(){return"Maybe retrying, last error: "+$jp(K,X.errorResponseStatusCode_)});
if(b==1&&T2Y(X,H)||b==2&&xje(X))return;X.JSC$19949_channelDebug_.debug("Exceeded max number of retries")}l&&l.length>0&&a$Z(X.forwardChannelRequestPool_,l);X.JSC$19949_channelDebug_.debug("Error: HTTP request failed");switch(K){case 1:bl(X,5);break;case 4:bl(X,10);break;case 3:bl(X,6);break;default:bl(X,2)}}},QI$=function(X,H){var l=X.JSC$19949_baseRetryDelayMs_+Math.floor(Math.random()*X.JSC$19949_retryDelaySeedMs_);
X.isActive()||(X.JSC$19949_channelDebug_.debug("Inactive channel"),l*=2);return l*H};
dl.prototype.onInput_=function(X,H){for(var l=0;l<X.length;l++){var b=X[l],U=b[0];if(U<=this.JSC$19949_lastArrayId_)this.JSC$19949_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+U+", lastArrayId: "+this.JSC$19949_lastArrayId_);else if(U>this.JSC$19949_lastArrayId_+1&&this.JSC$19949_lastArrayId_>-1&&this.JSC$19949_channelDebug_.warning("Received non-consecutive message with arrayId: "+U+", lastArrayId: "+this.JSC$19949_lastArrayId_),this.JSC$19949_lastArrayId_=U,
b=b[1],this.state_==2)if(b[0]=="c"){this.sid_=b[1];this.JSC$19949_hostPrefix_=b[2];U=b[3];U!=null&&(this.JSC$19951_channelVersion_=U,this.JSC$19949_channelDebug_.info("VER="+this.JSC$19951_channelVersion_));U=b[4];U!=null&&(this.serverVersion_=U,this.JSC$19949_channelDebug_.info("SVER="+this.serverVersion_));b=b[5];b!=null&&typeof b==="number"&&b>0&&(this.backChannelRequestTimeoutMs_=b*=1.5,this.JSC$19949_channelDebug_.info("backChannelRequestTimeoutMs_="+b));if(b=H.JSC$19930_xmlHttp_){var K=XMN(b,
"X-Client-Wire-Protocol");K&&(U=this.forwardChannelRequestPool_,!U.requestPool_&&(_.hy(K,"spdy")||_.hy(K,"quic")||_.hy(K,"h2"))&&(U.JSC$19940_maxSize_=U.maxPoolSizeConfigured_,U.requestPool_=new Set,U.JSC$19940_request_&&(EWp(U,U.JSC$19940_request_),U.JSC$19940_request_=null)));this.httpSessionIdParam_&&((b=XMN(b,"X-HTTP-Session-Id"))?(this.httpSessionId_=b,_.OT(this.JSC$19949_forwardChannelUri_,this.httpSessionIdParam_,b)):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()-H.JSC$19930_requestStartTime_,this.JSC$19949_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));b=H;U=Z0a(this,this.JSC$19949_supportsCrossDomainXhrs_?this.JSC$19949_hostPrefix_:null,this.JSC$19949_path_);this.JSC$19949_channelDebug_.debug("GetBackChannelUri: "+U);this.JSC$19949_backChannelUri_=U;b.initialResponseDecoded_?(this.JSC$19949_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
gWd(this.forwardChannelRequestPool_,b),U=b,(K=this.backChannelRequestTimeoutMs_)&&U.setTimeout(K),U.JSC$19930_watchDogTimerId_&&(qvC(U),djY(U)),this.JSC$19949_backChannelRequest_=b):jIe(this);this.JSC$19949_outgoingMaps_.length>0&&i0Z(this)}else b[0]!="stop"&&b[0]!="close"||bl(this,7);else this.state_==3&&(b[0]=="stop"||b[0]=="close"?b[0]=="stop"?bl(this,7):this.disconnect():b[0]!="noop"&&this.handler_&&this.handler_.JSC$19955_channelHandleArray(b),this.JSC$19949_backChannelRetryCount_=0)}};
var bl=function(X,H){X.JSC$19949_channelDebug_.info("Error code "+H);if(H==2){var l=(0,_.K8)(X.testNetworkCallback_,X),b=X.networkTestUrl_,U=!b;b=new _.xu(b||"//www.google.com/images/cleardot.gif");_.ok.location&&_.ok.location.protocol=="http"||_.vR(b,"https");_.J8(b);U?tLx(b.toString(),l):Wr5(b.toString(),l)}else Ka(2);X.onError_(H)};
dl.prototype.testNetworkCallback_=function(X){X?(this.JSC$19949_channelDebug_.info("Successfully pinged google.com"),Ka(2)):(this.JSC$19949_channelDebug_.info("Failed to ping google.com"),Ka(1))};
dl.prototype.onError_=function(X){this.JSC$19949_channelDebug_.debug("HttpChannel: error - "+X);this.state_=0;this.handler_&&this.handler_.JSC$19955_channelError(X);mjd(this);vWA(this)};
var mjd=function(X){X.state_=0;X.nonAckedMapsAtChannelClose_=[];if(X.handler_){var H=GCU(X.forwardChannelRequestPool_);if(H.length!=0||X.JSC$19949_outgoingMaps_.length!=0)X.JSC$19949_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+H.length+", outgoing: "+X.JSC$19949_outgoingMaps_.length}),_.jl(X.nonAckedMapsAtChannelClose_,H),_.jl(X.nonAckedMapsAtChannelClose_,X.JSC$19949_outgoingMaps_),X.forwardChannelRequestPool_.JSC$19940_pendingMessages_.length=0,_.NW(X.JSC$19949_outgoingMaps_),
X.JSC$19949_outgoingMaps_.length=0;
X.handler_.JSC$19955_channelClosed()}},JWZ=function(X){if(X.state_==0)return X.nonAckedMapsAtChannelClose_;
var H=[];_.jl(H,GCU(X.forwardChannelRequestPool_));_.jl(H,X.JSC$19949_outgoingMaps_);return H},Z0a=function(X,H,l){var b=_.iI(l);
b.JSC$10342_domain_!=""?(H&&_.O$(b,H+"."+b.JSC$10342_domain_),_.mx(b,b.JSC$10342_port_)):(b=_.ok.location,b=kV5(b.protocol,H?H+"."+b.hostname:b.hostname,+b.port,l));H=X.httpSessionIdParam_;l=X.httpSessionId_;H&&l&&_.OT(b,H,l);_.OT(b,"VER",X.JSC$19951_channelVersion_);O0N(X,b);return b},hg$=function(X,H,l){if(H&&!X.JSC$19949_supportsCrossDomainXhrs_)throw Error("Qk");
H=X.usesFetchStreams_&&!X.JSC$19949_xmlHttpFactory_?new _.VD(new AIl({streamBinaryChunks:l})):new _.VD(X.JSC$19949_xmlHttpFactory_);H.JSC$10106_withCredentials_=X.JSC$19949_supportsCrossDomainXhrs_;return H};
dl.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Ljy=function(){};
_.R=Ljy.prototype;_.R.JSC$19955_channelOpened=function(){};
_.R.JSC$19955_channelHandleArray=function(){};
_.R.JSC$19955_channelError=function(){};
_.R.JSC$19955_channelClosed=function(){};
_.R.isActive=function(){return!0};
_.R.JSC$19955_badMapError=function(){};var $F=function(X,H){_.zB.call(this);this.JSC$19958_channel_=new dl(H);this.JSC$19958_url_=X;this.messageUrlParams_=H&&H.messageUrlParams||null;X=H&&H.messageHeaders||null;H&&H.clientProtocolHeaderRequired&&(X?_.Bb.set(X,"X-Client-Protocol","webchannel"):X=_.Bb.create("X-Client-Protocol","webchannel"));this.JSC$19958_channel_.JSC$19949_extraHeaders_=X;X=H&&H.initMessageHeaders||null;H&&H.messageContentType&&(X?_.Bb.set(X,"X-WebChannel-Content-Type",H.messageContentType):X=_.Bb.create("X-WebChannel-Content-Type",
H.messageContentType));H&&H.clientProfile&&(X?_.Bb.set(X,"X-WebChannel-Client-Profile",H.clientProfile):X=_.Bb.create("X-WebChannel-Client-Profile",H.clientProfile));this.JSC$19958_channel_.initHeaders_=X;(X=H&&H.httpHeadersOverwriteParam)&&!_.w8(X)&&(this.JSC$19958_channel_.httpHeadersOverwriteParam_=X);this.supportsCrossDomainXhr_=H&&H.supportsCrossDomainXhr||!1;this.sendRawJson_=H&&H.sendRawJson||!1;(H=H&&H.httpSessionIdParam)&&!_.w8(H)&&(this.JSC$19958_channel_.httpSessionIdParam_=H,_.Bb.containsKey(this.messageUrlParams_,
H)&&_.Bb.remove(this.messageUrlParams_,H));this.channelHandler_=new Ur(this)};
_.To($F,_.zB);$F.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)};
$F.prototype.close=function(){this.JSC$19958_channel_.disconnect()};
$F.prototype.send=function(X){var H=this.JSC$19958_channel_;if(typeof X==="string"){var l={};l.__data__=X;X=l}else this.sendRawJson_&&(l={},l.__data__=_.yD(X),X=l);H.JSC$19949_outgoingMaps_.push(new tnY(H.JSC$19949_nextMapId_++,X));H.state_==3&&i0Z(H)};
$F.prototype.disposeInternal=function(){this.JSC$19958_channel_.handler_=null;delete this.channelHandler_;this.JSC$19958_channel_.disconnect();delete this.JSC$19958_channel_;$F.superClass_.disposeInternal.call(this)};
var Yvd=function(X){XOZ.call(this);X.__headers__&&(this.headers=X.__headers__,this.statusCode=X.__status__,delete X.__headers__,delete X.__status__);var H=X.__sm__;H?this.data=(this.metadataKey=_.Bb.getAnyKey(H))?_.Bb.get(H,this.metadataKey):H:this.data=X};
_.To(Yvd,XOZ);var I$a=function(X){H0N.call(this);this.status=1;this.errorCode=X};
_.To(I$a,H0N);var Ur=function(X){this.JSC$19965_channel_=X};
_.To(Ur,Ljy);Ur.prototype.JSC$19955_channelOpened=function(){this.JSC$19965_channel_.dispatchEvent("w")};
Ur.prototype.JSC$19955_channelHandleArray=function(X){this.JSC$19965_channel_.dispatchEvent(new Yvd(X))};
Ur.prototype.JSC$19955_channelError=function(X){this.JSC$19965_channel_.dispatchEvent(new I$a(X))};
Ur.prototype.JSC$19955_channelClosed=function(){this.JSC$19965_channel_.dispatchEvent("x")};
var AW5=function(X,H){this.transportChannel_=X;this.JSC$19968_channel_=H},Xmd=function(X){return JWZ(X.JSC$19968_channel_).map(function(H){var l=X.transportChannel_;
H=H.map;"__data__"in H?(H=H.__data__,l=l.sendRawJson_?_.Htq(H):H):l=H;return l})};
AW5.prototype.commit=function(X){this.JSC$19968_channel_.forwardChannelFlushedCallback_=X};var HVx=function(X,H,l){for(var b=0;b<X.getSize().height;b++)for(var U=0;U<X.getSize().width;U++)H.call(l,X.array_[b][U],b,U,X)},lmy=function(X,H){var l=new hU(X.getSize());
HVx(X,function(b,U,K){l.array_[U][K]=H.call(void 0,b,U,K,X)});
return l},icY=function(X,H){for(var l=[],b=0;b<X;b++){l[b]=[];
for(var U=0;U<H;U++)l[b][U]=0}return l};
hU.prototype.add=function(X){if(!Pdp(this.size_,X.getSize()))throw Error("Tk");return lmy(this,function(H,l,b){return H+X.array_[l][b]})};
hU.prototype.equals=function(X,H){if(this.size_.width!=X.size_.width||this.size_.height!=X.size_.height)return!1;H=H||0;for(var l=0;l<this.size_.height;l++)for(var b=0;b<this.size_.width;b++)if(!yBe(this.array_[l][b],X.array_[l][b],H))return!1;return!0};
hU.prototype.getSize=function(){return this.size_};
var Ks=function(X,H,l){return H>=0&&H<X.size_.height&&l>=0&&l<X.size_.width?X.array_[H][l]:null};
hU.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var oX5=function(X,H,l,b){if(!(H>=0&&H<X.size_.height&&l>=0&&l<X.size_.width))throw Error("Uk`"+H+"`"+l+"`"+X.size_.height+"`"+X.size_.width);X.array_[H][l]=b};
hU.prototype.multiply=function(X){if(X instanceof hU){if(this.size_.width!=X.getSize().height)throw Error("Vk");return bVZ(this,X)}if(typeof X==="number")return UPp(this,X);throw Error("Wk");};
var bVZ=function(X,H){var l=new hU(X.size_.height,H.getSize().width);HVx(l,function(b,U,K){for(var w=b=0;w<this.size_.width;w++)b+=Ks(this,U,w)*Ks(H,w,K);oX5(l,U,K,b)},X);
return l},UPp=function(X,H){return lmy(X,function(l){return l*H})};var Rd=function(X){$PY.dispatchEvent(new Kwa($PY,X))},$PY=new _.zB,Kwa=function(X,H){_.NF.call(this,"statevent",X);
this.stat=H};
_.S(Kwa,_.NF);_.R=B7.prototype;_.R.JSC$19978_extraHeaders_=null;_.R.JSC$19978_successful_=!1;_.R.JSC$19978_watchDogTimerId_=null;_.R.JSC$19978_watchDogTimeoutTime_=null;_.R.JSC$19978_requestStartTime_=null;_.R.JSC$19978_type_=null;_.R.JSC$19978_baseUri_=null;_.R.JSC$19978_requestUri_=null;_.R.JSC$19978_postData_=null;_.R.JSC$19978_xmlHttp_=null;_.R.JSC$19978_xmlHttpChunkStart_=0;_.R.trident_=null;_.R.JSC$19978_verb_=null;_.R.JSC$19978_lastError_=null;_.R.JSC$19978_lastStatusCode_=-1;_.R.sendClose_=!0;
_.R.JSC$19978_cancelled_=!1;_.R.JSC$19978_readyStateChangeThrottleMs_=0;_.R.JSC$19978_readyStateChangeThrottle_=null;var RyN=function(X,H){switch(X){case 0:return"Non-200 return code ("+H+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},C2A={},wmY={};
B7.prototype.setTimeout=function(X){this.timeout_=X};
var hyN=function(X,H,l){X.JSC$19978_type_=1;X.JSC$19978_baseUri_=_.J8(H.clone());X.JSC$19978_postData_=l;X.decodeChunks_=!0;dPx(X,null)},Fwy=function(X,H,l,b,U){X.JSC$19978_type_=1;
X.JSC$19978_baseUri_=_.J8(H.clone());X.JSC$19978_postData_=null;X.decodeChunks_=l;U&&(X.sendClose_=!1);dPx(X,b)},dPx=function(X,H){X.JSC$19978_requestStartTime_=Date.now();
B3x(X);X.JSC$19978_requestUri_=X.JSC$19978_baseUri_.clone();FTd(X.JSC$19978_requestUri_,"t",X.JSC$19976_retryId_);X.JSC$19978_xmlHttpChunkStart_=0;X.JSC$19978_xmlHttp_=X.JSC$19976_channel_.JSC$19985_createXhrIo(X.JSC$19976_channel_.JSC$19985_shouldUseSecondaryDomains()?H:null);X.JSC$19978_readyStateChangeThrottleMs_>0&&(X.JSC$19978_readyStateChangeThrottle_=new _.jw((0,_.K8)(X.JSC$19978_xmlHttpHandler_,X,X.JSC$19978_xmlHttp_),X.JSC$19978_readyStateChangeThrottleMs_));X.JSC$19976_eventHandler_.listen(X.JSC$19978_xmlHttp_,
"readystatechange",X.JSC$19978_readyStateChangeHandler_);H=X.JSC$19978_extraHeaders_?_.Bb.clone(X.JSC$19978_extraHeaders_):{};X.JSC$19978_postData_?(X.JSC$19978_verb_="POST",H["Content-Type"]="application/x-www-form-urlencoded",X.JSC$19978_xmlHttp_.send(X.JSC$19978_requestUri_,X.JSC$19978_verb_,X.JSC$19978_postData_,H)):(X.JSC$19978_verb_="GET",X.sendClose_&&!_.XQ&&(H.Connection="close"),X.JSC$19978_xmlHttp_.send(X.JSC$19978_requestUri_,X.JSC$19978_verb_,null,H));X.JSC$19976_channel_.notifyServerReachabilityEvent(1);
H=X.JSC$19976_channelDebug_;var l=X.JSC$19978_postData_;if(l){var b="";l=l.split("&");for(var U=0;U<l.length;U++){var K=l[U].split("=");if(K.length>1){var w=K[0];K=K[1];var d=w.split("_");b=d.length>=2&&d[1]=="type"?b+(w+"="+K+"&"):b+(w+"=redacted&")}}}else b=null;H.info("XMLHTTP REQ ("+X.JSC$19976_rid_+") [attempt "+X.JSC$19976_retryId_+"]: "+X.JSC$19978_verb_+"\n"+X.JSC$19978_requestUri_+"\n"+b)};
B7.prototype.JSC$19978_readyStateChangeHandler_=function(X){X=X.target;var H=this.JSC$19978_readyStateChangeThrottle_;H&&_.PR(X)==3?(this.JSC$19976_channelDebug_.debug("Throttling readystatechange."),H.fire()):this.JSC$19978_xmlHttpHandler_(X)};
B7.prototype.JSC$19978_xmlHttpHandler_=function(X){try{if(X==this.JSC$19978_xmlHttp_)a:{var H=_.PR(this.JSC$19978_xmlHttp_),l=this.JSC$19978_xmlHttp_.JSC$10106_lastErrorCode_,b=this.JSC$19978_xmlHttp_.getStatus();if(_.XQ&&!_.L9("420+")){if(H<4)break a}else if(H<3||H==3&&!this.JSC$19978_xmlHttp_.getResponseText())break a;this.JSC$19978_cancelled_||H!=4||l==7||(l==8||b<=0?this.JSC$19976_channel_.notifyServerReachabilityEvent(3):this.JSC$19976_channel_.notifyServerReachabilityEvent(2));qIa(this);var U=
this.JSC$19978_xmlHttp_.getStatus();this.JSC$19978_lastStatusCode_=U;var K=this.JSC$19978_xmlHttp_.getResponseText();K||this.JSC$19976_channelDebug_.debug("No response text for uri "+this.JSC$19978_requestUri_+" status "+U);this.JSC$19978_successful_=U==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"+H+" "+U);if(this.JSC$19978_successful_){H==4&&s2a(this);if(this.decodeChunks_){for(X=
!0;!this.JSC$19978_cancelled_&&this.JSC$19978_xmlHttpChunkStart_<K.length;){var w=Mby(this,K);if(w==wmY){H==4&&(this.JSC$19978_lastError_=4,Rd(15),X=!1);ure(this.JSC$19976_channelDebug_,this.JSC$19976_rid_,null,"[Incomplete Response]");break}else if(w==C2A){this.JSC$19978_lastError_=4;Rd(16);ure(this.JSC$19976_channelDebug_,this.JSC$19976_rid_,K,"[Invalid Chunk]");X=!1;break}else ure(this.JSC$19976_channelDebug_,this.JSC$19976_rid_,w,null),eye(this,w)}H==4&&K.length==0&&(this.JSC$19978_lastError_=
1,Rd(17),X=!1);this.JSC$19978_successful_=this.JSC$19978_successful_&&X;X||(ure(this.JSC$19976_channelDebug_,this.JSC$19976_rid_,K,"[Invalid Chunked Response]"),s2a(this),yTU(this))}else ure(this.JSC$19976_channelDebug_,this.JSC$19976_rid_,K,null),eye(this,K);this.JSC$19978_successful_&&!this.JSC$19978_cancelled_&&(H==4?this.JSC$19976_channel_.JSC$19985_onRequestComplete(this):(this.JSC$19978_successful_=!1,B3x(this)))}else U==400&&K.indexOf("Unknown SID")>0?(this.JSC$19978_lastError_=3,Rd(13),this.JSC$19976_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19976_rid_+")")):(this.JSC$19978_lastError_=0,Rd(14),this.JSC$19976_channelDebug_.warning("XMLHTTP Bad status "+U+" ("+this.JSC$19976_rid_+")")),s2a(this),yTU(this)}else this.JSC$19976_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(d){this.JSC$19976_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Mby=function(X,H){var l=X.JSC$19978_xmlHttpChunkStart_,b=H.indexOf("\n",l);if(b==-1)return wmY;l=Number(H.substring(l,b));if(isNaN(l))return C2A;b+=1;if(b+l>H.length)return wmY;H=H.slice(b,b+l);X.JSC$19978_xmlHttpChunkStart_=b+l;return H};
B7.prototype.cancel=function(){this.JSC$19978_cancelled_=!0;s2a(this)};
var B3x=function(X){X.JSC$19978_watchDogTimeoutTime_=Date.now()+X.timeout_;Vb5(X,X.timeout_)},Vb5=function(X,H){if(X.JSC$19978_watchDogTimerId_!=null)throw Error("Pk");
X.JSC$19978_watchDogTimerId_=Fd((0,_.K8)(X.JSC$19978_onWatchDogTimeout_,X),H)},qIa=function(X){X.JSC$19978_watchDogTimerId_&&(_.ok.clearTimeout(X.JSC$19978_watchDogTimerId_),X.JSC$19978_watchDogTimerId_=null)};
B7.prototype.JSC$19978_onWatchDogTimeout_=function(){this.JSC$19978_watchDogTimerId_=null;var X=Date.now();X-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),s2a(this),this.JSC$19978_lastError_=2,Rd(18),yTU(this)):(this.JSC$19976_channelDebug_.warning("WatchDog timer called too early"),Vb5(this,this.JSC$19978_watchDogTimeoutTime_-X))};
var yTU=function(X){X.JSC$19976_channel_.JSC$19985_isClosed()||X.JSC$19978_cancelled_||X.JSC$19976_channel_.JSC$19985_onRequestComplete(X)},s2a=function(X){qIa(X);
_.Gp(X.JSC$19978_readyStateChangeThrottle_);X.JSC$19978_readyStateChangeThrottle_=null;X.pollingTimer_.stop();X.JSC$19976_eventHandler_.removeAll();if(X.JSC$19978_xmlHttp_){var H=X.JSC$19978_xmlHttp_;X.JSC$19978_xmlHttp_=null;H.abort();H.dispose()}X.trident_&&(X.trident_=null)};
B7.prototype.getLastError=function(){return this.JSC$19978_lastError_};
var eye=function(X,H){try{X.JSC$19976_channel_.JSC$19985_onRequestData(X,H),X.JSC$19976_channel_.notifyServerReachabilityEvent(4)}catch(l){}};var ure=function(X,H,l,b){var U=X.info;a:if(l&&l!="y2f%"){try{var K=JSON.parse(l);if(K)for(var w=0;w<K.length;w++)if(Array.isArray(K[w])){var d=K[w];if(!(d.length<2)){var B=d[1];if(Array.isArray(B)&&!(B.length<1)){var q=B[0];if(q!="noop"&&q!="stop")for(var u=1;u<B.length;u++)B[u]=""}}}var e=_.yD(K);break a}catch(y){X.debug("Exception parsing expected JS array - probably was not JS");e=l;break a}e=void 0}else e=l;U.call(X,"XMLHTTP TEXT ("+H+"): "+e+(b?" "+b:""))};
qB.prototype.debug=function(X){this.info(X)};
qB.prototype.info=function(){};
qB.prototype.warning=function(){};_.R=QiU.prototype;_.R.JSC$19985_extraHeaders_=null;_.R.JSC$19985_request_=null;_.R.receivedIntermediateResult_=!1;_.R.JSC$19985_path_=null;_.R.state_=null;_.R.JSC$19985_lastStatusCode_=-1;_.R.JSC$19985_hostPrefix_=null;_.R.blockedPrefix_=null;
_.R.connect=function(X){this.JSC$19985_path_=X;X=P2d(this.JSC$19983_channel_,this.JSC$19985_path_);Rd(3);Date.now();var H=this.JSC$19983_channel_.firstTestResults_;H!=null?(this.JSC$19985_hostPrefix_=H[0],(this.blockedPrefix_=H[1])?(this.state_=1,fmx(this)):(this.state_=2,pm5(this))):(FTd(X,"MODE","init"),this.JSC$19985_request_=new B7(this,this.JSC$19983_channelDebug_),this.JSC$19985_request_.JSC$19978_extraHeaders_=this.JSC$19985_extraHeaders_,Fwy(this.JSC$19985_request_,X,!1,null,!0),this.state_=
0)};
var fmx=function(X){var H=SIp(X.JSC$19983_channel_,X.blockedPrefix_,"/mail/images/cleardot.gif");_.J8(H);OcZ(H.toString(),5E3,(0,_.K8)(X.checkBlockedCallback_,X),3,2E3);X.notifyServerReachabilityEvent(1)};
QiU.prototype.checkBlockedCallback_=function(X){if(X)this.state_=2,pm5(this);else{Rd(4);var H=this.JSC$19983_channel_;H.JSC$19986_channelDebug_.debug("Test Connection Blocked");H.JSC$19990_lastStatusCode_=H.connectionTest_.JSC$19985_lastStatusCode_;Cs(H,9)}X&&this.notifyServerReachabilityEvent(2)};
var pm5=function(X){X.JSC$19983_channelDebug_.debug("TestConnection: starting stage 2");var H=X.JSC$19983_channel_.secondTestResults_;H!=null?(X.JSC$19983_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+H?"Buffered":"Unbuffered"),Rd(5),H?(Rd(11),zyA(X.JSC$19983_channel_,X,!1)):(Rd(12),zyA(X.JSC$19983_channel_,X,!0))):(X.JSC$19985_request_=new B7(X,X.JSC$19983_channelDebug_),X.JSC$19985_request_.JSC$19978_extraHeaders_=X.JSC$19985_extraHeaders_,H=nXC(X.JSC$19983_channel_,
X.JSC$19985_hostPrefix_,X.JSC$19985_path_),Rd(5),FTd(H,"TYPE","xmlhttp"),Fwy(X.JSC$19985_request_,H,!1,X.JSC$19985_hostPrefix_,!1))};
_.R=QiU.prototype;_.R.JSC$19985_createXhrIo=function(X){return this.JSC$19983_channel_.JSC$19985_createXhrIo(X)};
_.R.abort=function(){this.JSC$19985_request_&&(this.JSC$19985_request_.cancel(),this.JSC$19985_request_=null);this.JSC$19985_lastStatusCode_=-1};
_.R.JSC$19985_isClosed=function(){return!1};
_.R.JSC$19985_onRequestData=function(X,H){this.JSC$19985_lastStatusCode_=X.JSC$19978_lastStatusCode_;if(this.state_==0)if(this.JSC$19983_channelDebug_.debug("TestConnection: Got data for stage 1"),H){try{var l=this.JSC$19983_parser_.parse(H)}catch(b){k4U(this.JSC$19983_channel_,this);return}this.JSC$19985_hostPrefix_=l[0];this.blockedPrefix_=l[1]}else this.JSC$19983_channelDebug_.debug("TestConnection: Null responseText"),k4U(this.JSC$19983_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(Rd(7),Date.now()):H=="11111"?(Rd(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"),Rd(12),zyA(this.JSC$19983_channel_,this,!0)):(Rd(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.R.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,fmx(this)):(this.state_=2,pm5(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"),
Rd(12),zyA(this.JSC$19983_channel_,this,!0)):(this.JSC$19983_channelDebug_.debug("Test connection failed; not using streaming"),Rd(11),zyA(this.JSC$19983_channel_,this,!1))):(this.JSC$19983_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?Rd(9):this.state_==2&&Rd(10),k4U(this.JSC$19983_channel_,this,this.JSC$19985_request_.getLastError()))};
_.R.JSC$19985_shouldUseSecondaryDomains=function(){return this.JSC$19983_channel_.JSC$19985_shouldUseSecondaryDomains()};
_.R.isActive=function(){return this.JSC$19983_channel_.isActive()};
_.R.notifyServerReachabilityEvent=function(X){this.JSC$19983_channel_.notifyServerReachabilityEvent(X)};var xPU=function(X,H){this.JSC$19988_mapId=X;this.map=H;this.context=null};
_.R=sM.prototype;_.R.JSC$19990_extraHeaders_=null;_.R.JSC$19990_extraParams_=null;_.R.forwardChannelRequest_=null;_.R.JSC$19990_backChannelRequest_=null;_.R.JSC$19990_path_=null;_.R.JSC$19990_forwardChannelUri_=null;_.R.JSC$19990_backChannelUri_=null;_.R.JSC$19990_hostPrefix_=null;_.R.JSC$19990_nextRid_=0;_.R.JSC$19990_nextMapId_=0;_.R.handler_=null;_.R.JSC$19990_forwardChannelTimerId_=null;_.R.JSC$19990_backChannelTimerId_=null;_.R.JSC$19990_deadBackChannelTimerId_=null;_.R.connectionTest_=null;
_.R.useChunked_=null;_.R.JSC$19990_lastArrayId_=-1;_.R.JSC$19990_lastPostResponseArrayId_=-1;_.R.JSC$19990_lastStatusCode_=-1;_.R.JSC$19990_forwardChannelRetryCount_=0;_.R.JSC$19990_backChannelRetryCount_=0;_.R.JSC$19990_channelVersion_=8;var DPA={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},tbp=function(X,H,l,b){_.NF.call(this,"timingevent",X);this.size=H;this.rtt=l;this.retries=b};
_.To(tbp,_.NF);var WwA=function(X){_.NF.call(this,"serverreachability",X)};
_.To(WwA,_.NF);sM.prototype.connect=function(X,H,l,b,U){this.JSC$19986_channelDebug_.debug("connect()");Rd(0);this.JSC$19990_path_=H;this.JSC$19990_extraParams_=l||{};b&&U!==void 0&&(this.JSC$19990_extraParams_.OSID=b,this.JSC$19990_extraParams_.OAID=U);this.asyncTest_?(Fd((0,_.K8)(this.connectTest_,this,X),100),EX5(this)):this.connectTest_(X)};
sM.prototype.disconnect=function(){this.JSC$19986_channelDebug_.debug("disconnect()");gXy(this);if(this.state_==3){var X=this.JSC$19990_nextRid_++,H=this.JSC$19990_forwardChannelUri_.clone();_.OT(H,"SID",this.sid_);_.OT(H,"RID",X);_.OT(H,"TYPE","terminate");G4$(this,H);X=new B7(this,this.JSC$19986_channelDebug_,this.sid_,X);X.JSC$19978_type_=2;X.JSC$19978_baseUri_=_.J8(H.clone());(new Image).src=X.JSC$19978_baseUri_.toString();X.JSC$19978_requestStartTime_=Date.now();B3x(X)}amY(this)};
sM.prototype.connectTest_=function(X){this.JSC$19986_channelDebug_.debug("connectTest_()");this.connectionTest_=new QiU(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(X)};
var EX5=function(X){X.JSC$19986_channelDebug_.debug("connectChannel_()");X.JSC$19990_ensureInState_(1,0);X.JSC$19990_forwardChannelUri_=P2d(X,X.JSC$19990_path_);ZVN(X)},gXy=function(X){X.connectionTest_&&(X.connectionTest_.abort(),X.connectionTest_=null);
X.JSC$19990_backChannelRequest_&&(X.JSC$19990_backChannelRequest_.cancel(),X.JSC$19990_backChannelRequest_=null);X.JSC$19990_backChannelTimerId_&&(_.ok.clearTimeout(X.JSC$19990_backChannelTimerId_),X.JSC$19990_backChannelTimerId_=null);iVU(X);X.forwardChannelRequest_&&(X.forwardChannelRequest_.cancel(),X.forwardChannelRequest_=null);X.JSC$19990_forwardChannelTimerId_&&(_.ok.clearTimeout(X.JSC$19990_forwardChannelTimerId_),X.JSC$19990_forwardChannelTimerId_=null)},vXe=function(X,H){if(X.state_==0)throw Error("Xk");
X.JSC$19986_outgoingMaps_.length==1E3&&X.JSC$19986_parser_.stringify(H);X.JSC$19986_outgoingMaps_.push(new xPU(X.JSC$19990_nextMapId_++,H));X.state_!=2&&X.state_!=3||ZVN(X)};
sM.prototype.JSC$19985_isClosed=function(){return this.state_==0};
sM.prototype.getState=function(){return this.state_};
var ZVN=function(X){X.forwardChannelRequest_||X.JSC$19990_forwardChannelTimerId_||(X.JSC$19990_forwardChannelTimerId_=Fd((0,_.K8)(X.JSC$19990_onStartForwardChannelTimer_,X),0),X.JSC$19990_forwardChannelRetryCount_=0)};
sM.prototype.JSC$19990_onStartForwardChannelTimer_=function(X){this.JSC$19990_forwardChannelTimerId_=null;OVx(this,X)};
var OVx=function(X,H){X.JSC$19986_channelDebug_.debug("startForwardChannel_");if(X.state_==1){if(!H){X.JSC$19986_channelDebug_.debug("open_()");X.JSC$19990_nextRid_=Math.floor(Math.random()*1E5);H=X.JSC$19990_nextRid_++;var l=new B7(X,X.JSC$19986_channelDebug_,"",H);l.JSC$19978_extraHeaders_=X.JSC$19990_extraHeaders_;var b=mPU(X),U=X.JSC$19990_forwardChannelUri_.clone();_.OT(U,"RID",H);_.OT(U,"CVER","1");G4$(X,U);hyN(l,U,b);X.forwardChannelRequest_=l;X.state_=2}}else X.state_==3&&(H?Q2N(X,H):X.JSC$19986_outgoingMaps_.length==
0?X.JSC$19986_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):X.forwardChannelRequest_||(Q2N(X),X.JSC$19986_channelDebug_.debug("startForwardChannel_ finished, sent request")))},Q2N=function(X,H){if(H)if(X.JSC$19990_channelVersion_>6){X.JSC$19986_outgoingMaps_=X.pendingMaps_.concat(X.JSC$19986_outgoingMaps_);
X.pendingMaps_.length=0;var l=X.JSC$19990_nextRid_-1;H=mPU(X)}else l=H.JSC$19976_rid_,H=H.JSC$19978_postData_;else l=X.JSC$19990_nextRid_++,H=mPU(X);var b=X.JSC$19990_forwardChannelUri_.clone();_.OT(b,"SID",X.sid_);_.OT(b,"RID",l);_.OT(b,"AID",X.JSC$19990_lastArrayId_);G4$(X,b);l=new B7(X,X.JSC$19986_channelDebug_,X.sid_,l,X.JSC$19990_forwardChannelRetryCount_+1);l.JSC$19978_extraHeaders_=X.JSC$19990_extraHeaders_;l.setTimeout(1E4+Math.round(1E4*Math.random()));X.forwardChannelRequest_=l;hyN(l,b,
H)},G4$=function(X,H){X.handler_&&(X=X.handler_.JSC$19997_getAdditionalParams())&&_.Bb.forEach(X,function(l,b){_.OT(H,b,l)})},mPU=function(X){var H=Math.min(X.JSC$19986_outgoingMaps_.length,1E3),l=["count="+H];
if(X.JSC$19990_channelVersion_>6&&H>0){var b=X.JSC$19986_outgoingMaps_[0].JSC$19988_mapId;l.push("ofs="+b)}else b=0;for(var U={},K=0;K<H;U={mapId$jscomp$3:void 0},K++){U.mapId$jscomp$3=X.JSC$19986_outgoingMaps_[K].JSC$19988_mapId;var w=X.JSC$19986_outgoingMaps_[K].map;U.mapId$jscomp$3=X.JSC$19990_channelVersion_<=6?K:U.mapId$jscomp$3-b;try{_.Bb.forEach(w,function(d){return function(B,q){l.push("req"+d.mapId$jscomp$3+"_"+q+"="+encodeURIComponent(B))}}(U))}catch(d){l.push("req"+U.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}X.pendingMaps_=X.pendingMaps_.concat(X.JSC$19986_outgoingMaps_.splice(0,H));
return l.join("&")},T35=function(X){X.JSC$19990_backChannelRequest_||X.JSC$19990_backChannelTimerId_||(X.JSC$19990_backChannelAttemptId_=1,X.JSC$19990_backChannelTimerId_=Fd((0,_.K8)(X.JSC$19990_onStartBackChannelTimer_,X),0),X.JSC$19990_backChannelRetryCount_=0)},cTU=function(X){if(X.JSC$19990_backChannelRequest_||X.JSC$19990_backChannelTimerId_||X.JSC$19990_backChannelRetryCount_>=3)return!1;
X.JSC$19986_channelDebug_.debug("Going to retry GET");X.JSC$19990_backChannelAttemptId_++;X.JSC$19990_backChannelTimerId_=Fd((0,_.K8)(X.JSC$19990_onStartBackChannelTimer_,X),N3C(X,X.JSC$19990_backChannelRetryCount_));X.JSC$19990_backChannelRetryCount_++;return!0};
sM.prototype.JSC$19990_onStartBackChannelTimer_=function(){this.JSC$19990_backChannelTimerId_=null;this.JSC$19986_channelDebug_.debug("Creating new HttpRequest");this.JSC$19990_backChannelRequest_=new B7(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 X=this.JSC$19990_backChannelUri_.clone();_.OT(X,
"RID","rpc");_.OT(X,"SID",this.sid_);_.OT(X,"CI",this.useChunked_?"0":"1");_.OT(X,"AID",this.JSC$19990_lastArrayId_);G4$(this,X);_.OT(X,"TYPE","xmlhttp");Fwy(this.JSC$19990_backChannelRequest_,X,!0,this.JSC$19990_hostPrefix_,!1);this.JSC$19986_channelDebug_.debug("New Request created")};
var zyA=function(X,H,l){X.JSC$19986_channelDebug_.debug("Test Connection Finished");X.useChunked_=X.secondTestResults_==null?l:!X.secondTestResults_;X.JSC$19990_lastStatusCode_=H.JSC$19985_lastStatusCode_;X.asyncTest_||EX5(X)},k4U=function(X,H){X.JSC$19986_channelDebug_.debug("Test Connection Failed");
X.JSC$19990_lastStatusCode_=H.JSC$19985_lastStatusCode_;Cs(X,2)};
sM.prototype.JSC$19985_onRequestData=function(X,H){if(this.state_!=0&&(this.JSC$19990_backChannelRequest_==X||this.forwardChannelRequest_==X))if(this.JSC$19990_lastStatusCode_=X.JSC$19978_lastStatusCode_,this.forwardChannelRequest_==X&&this.state_==3)if(this.JSC$19990_channelVersion_>7){try{var l=this.JSC$19986_parser_.parse(H)}catch(b){l=null}if(Array.isArray(l)&&l.length==3)if(H=l,H[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_)iVU(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");cTU(this);Rd(19)}else this.JSC$19990_lastPostResponseArrayId_=H[1],X=this.JSC$19990_lastPostResponseArrayId_-this.JSC$19990_lastArrayId_,0<
X&&(H=H[2],this.JSC$19986_channelDebug_.debug(H+" bytes (in "+X+" arrays) are outstanding on the BackChannel"),H<37500&&this.useChunked_&&this.JSC$19990_backChannelRetryCount_==0&&!this.JSC$19990_deadBackChannelTimerId_&&(this.JSC$19990_deadBackChannelTimerId_=Fd((0,_.K8)(this.JSC$19990_onBackChannelDead_,this),6E3)));else this.JSC$19986_channelDebug_.debug("Bad POST response data returned"),Cs(this,11)}else H!="y2f%"&&(this.JSC$19986_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Cs(this,11));else this.JSC$19990_backChannelRequest_==X&&iVU(this),_.w8(H)||(X=this.JSC$19986_parser_.parse(H),this.onInput_(X))};
sM.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,cTU(this),Rd(20))};
var iVU=function(X){X.JSC$19990_deadBackChannelTimerId_!=null&&(_.ok.clearTimeout(X.JSC$19990_deadBackChannelTimerId_),X.JSC$19990_deadBackChannelTimerId_=null)};
sM.prototype.JSC$19985_onRequestComplete=function(X){this.JSC$19986_channelDebug_.debug("Request complete");if(this.JSC$19990_backChannelRequest_==X){iVU(this);this.JSC$19990_backChannelRequest_=null;var H=2}else if(this.forwardChannelRequest_==X)this.forwardChannelRequest_=null,H=1;else return;this.JSC$19990_lastStatusCode_=X.JSC$19978_lastStatusCode_;if(this.state_!=0)if(X.JSC$19978_successful_)if(H==1){H=X.JSC$19978_postData_?X.JSC$19978_postData_.length:0;X=Date.now()-X.JSC$19978_requestStartTime_;
var l=$PY;l.dispatchEvent(new tbp(l,H,X,this.JSC$19990_forwardChannelRetryCount_));ZVN(this);this.handler_&&this.handler_.JSC$19997_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else T35(this);else{l=X.getLastError();if(l==3||l==7||l==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: "+RyN(l,this.JSC$19990_lastStatusCode_));var b;if(b=H==1)this.forwardChannelRequest_||
this.JSC$19990_forwardChannelTimerId_||this.state_==1||this.JSC$19990_forwardChannelRetryCount_>=2?b=!1:(this.JSC$19986_channelDebug_.debug("Going to retry POST"),this.JSC$19990_forwardChannelTimerId_=Fd((0,_.K8)(this.JSC$19990_onStartForwardChannelTimer_,this,X),N3C(this,this.JSC$19990_forwardChannelRetryCount_)),this.JSC$19990_forwardChannelRetryCount_++,b=!0);if(b||H==2&&cTU(this))return;this.JSC$19986_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19986_channelDebug_.debug("Error: HTTP request failed");
switch(l){case 1:Cs(this,5);break;case 4:Cs(this,10);break;case 3:Cs(this,6);break;case 7:Cs(this,12);break;default:Cs(this,2)}}};
var N3C=function(X,H){var l=5E3+Math.floor(Math.random()*1E4);X.isActive()||(X.JSC$19986_channelDebug_.debug("Inactive channel"),l*=2);return l*H};
sM.prototype.onInput_=function(X){for(var H=0;H<X.length;H++){var l=X[H];this.JSC$19990_lastArrayId_=l[0];l=l[1];this.state_==2?l[0]=="c"?(this.sid_=l[1],this.JSC$19990_hostPrefix_=l[2],l=l[3],l!=null?this.JSC$19990_channelVersion_=l:this.JSC$19990_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19997_channelOpened(),this.JSC$19990_backChannelUri_=nXC(this,this.JSC$19990_hostPrefix_,this.JSC$19990_path_),T35(this)):l[0]=="stop"&&Cs(this,7):this.state_==3&&(l[0]=="stop"?Cs(this,7):
l[0]!="noop"&&this.handler_&&this.handler_.JSC$19997_channelHandleArray(l),this.JSC$19990_backChannelRetryCount_=0)}};
sM.prototype.JSC$19990_ensureInState_=function(X){if(!_.vh(arguments,this.state_))throw Error("Yk`"+this.state_);};
var Cs=function(X,H){X.JSC$19986_channelDebug_.info("Error code "+H);if(H==2||H==9){var l=null;X.handler_&&(l=null);var b=(0,_.K8)(X.testGoogleComCallback_,X);l||(l=new _.xu("//www.google.com/images/cleardot.gif"),_.J8(l));vDA(l.toString(),1E4,b)}else Rd(2);X.onError_(H)};
sM.prototype.testGoogleComCallback_=function(X){X?(this.JSC$19986_channelDebug_.info("Successfully pinged google.com"),Rd(2)):(this.JSC$19986_channelDebug_.info("Failed to ping google.com"),Rd(1),this.onError_(8))};
sM.prototype.onError_=function(X){this.JSC$19986_channelDebug_.debug("HttpChannel: error - "+X);this.state_=0;this.handler_&&this.handler_.JSC$19997_channelError(X);amY(this);gXy(this)};
var amY=function(X){X.state_=0;X.JSC$19990_lastStatusCode_=-1;if(X.handler_)if(X.pendingMaps_.length==0&&X.JSC$19986_outgoingMaps_.length==0)X.handler_.JSC$19997_channelClosed();else{X.JSC$19986_channelDebug_.debug("Number of undelivered maps, pending: "+X.pendingMaps_.length+", outgoing: "+X.JSC$19986_outgoingMaps_.length);var H=_.NW(X.pendingMaps_),l=_.NW(X.JSC$19986_outgoingMaps_);X.pendingMaps_.length=0;X.JSC$19986_outgoingMaps_.length=0;X.handler_.JSC$19997_channelClosed(H,l)}},P2d=function(X,
H){H=SIp(X,null,H);
X.JSC$19986_channelDebug_.debug("GetForwardChannelUri: "+H);return H},nXC=function(X,H,l){H=SIp(X,X.JSC$19985_shouldUseSecondaryDomains()?H:null,l);
X.JSC$19986_channelDebug_.debug("GetBackChannelUri: "+H);return H},SIp=function(X,H,l){var b=_.iI(l);
if(b.JSC$10342_domain_!="")H&&_.O$(b,H+"."+b.JSC$10342_domain_),_.mx(b,b.JSC$10342_port_);else{var U=window.location;b=kV5(U.protocol,H?H+"."+U.hostname:U.hostname,+U.port,l)}X.JSC$19990_extraParams_&&_.Bb.forEach(X.JSC$19990_extraParams_,function(K,w){_.OT(b,w,K)});
_.OT(b,"VER",X.JSC$19990_channelVersion_);G4$(X,b);return b};
sM.prototype.JSC$19985_createXhrIo=function(X){if(X)throw Error("Qk");X=new _.VD;X.JSC$10106_withCredentials_=!1;return X};
sM.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
sM.prototype.notifyServerReachabilityEvent=function(X){var H=$PY;H.dispatchEvent(new WwA(H,X))};
sM.prototype.JSC$19985_shouldUseSecondaryDomains=function(){return!1};
new GVZ;var j2p=function(){};
_.R=j2p.prototype;_.R.JSC$19997_channelOpened=function(){};
_.R.JSC$19997_channelHandleArray=function(){};
_.R.JSC$19997_channelSuccess=function(){};
_.R.JSC$19997_channelError=function(){};
_.R.JSC$19997_channelClosed=function(){};
_.R.JSC$19997_getAdditionalParams=function(){return{}};
_.R.isActive=function(){return!0};var rTe=function(X){X.front_.length===0&&(X.front_=X.back_,X.front_.reverse(),X.back_=[])};
_.R=TTY.prototype;_.R.enqueue=function(X){this.back_.push(X)};
_.R.peek=function(){rTe(this);return _.Wh(this.front_)};
_.R.getCount=function(){return this.front_.length+this.back_.length};
_.R.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.R.clear=function(){this.front_=[];this.back_=[]};
_.R.contains=function(X){return _.vh(this.front_,X)||_.vh(this.back_,X)};
_.R.remove=function(X){var H=this.front_;var l=Array.prototype.lastIndexOf.call(H,X,H.length-1);l>=0?(_.tlL(H,l),H=!0):H=!1;return H||_.Oy(this.back_,X)};
_.R.getValues=function(){for(var X=[],H=this.front_.length-1;H>=0;--H)X.push(this.front_[H]);H=this.back_.length;for(var l=0;l<H;++l)X.push(this.back_[l]);return X};var JTx=function(X){var H=typeof X;return H=="object"&&X||H=="function"?"o"+_.Ly(X):H.charAt(0)+X};
_.R=MB.prototype;_.R.getCount=function(){return this.JSC$20001_map_.size};
_.R.add=function(X){this.JSC$20001_map_.set(JTx(X),X);this.size=this.JSC$20001_map_.size};
_.R.addAll=function(X){X=_.ii(X);for(var H=X.length,l=0;l<H;l++)this.add(X[l]);this.size=this.JSC$20001_map_.size};
_.R.removeAll=function(X){X=_.ii(X);for(var H=X.length,l=0;l<H;l++)this.remove(X[l]);this.size=this.JSC$20001_map_.size};
_.R.delete=function(X){X=this.JSC$20001_map_.remove(JTx(X));this.size=this.JSC$20001_map_.size;return X};
_.R.remove=function(X){return this.delete(X)};
_.R.clear=function(){this.JSC$20001_map_.clear();this.size=0};
_.R.isEmpty=function(){return this.JSC$20001_map_.size===0};
_.R.has=function(X){return this.JSC$20001_map_.containsKey(JTx(X))};
_.R.contains=function(X){return this.JSC$20001_map_.containsKey(JTx(X))};
_.R.getValues=function(){return this.JSC$20001_map_.getValues()};
_.R.values=function(){return this.JSC$20001_map_.values()};
_.R.clone=function(){return new MB(this)};
_.R.equals=function(X){return this.getCount()==zky(X)&&Lwp(this,X)};
var Lwp=function(X,H){var l=zky(H);if(X.getCount()>l)return!1;!(H instanceof MB)&&l>5&&(H=new MB(H));return nwY(X,function(b){var U=H;return U.contains&&typeof U.contains=="function"?U.contains(b):U.containsValue&&typeof U.containsValue=="function"?U.containsValue(b):_.ch(U)||typeof U==="string"?_.vh(U,b):_.Bb.containsValue(U,b)})};
MB.prototype.__iterator__=function(){return this.JSC$20001_map_.__iterator__(!1)};
MB.prototype[Symbol.iterator]=function(){return this.values()};_.wT({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 X=this.query;X&&(this.full||X[0]==="("||(X="("+X+")"),this._mq=window.matchMedia(X),this._add(),this.queryHandler(this._mq))},
queryHandler:function(X){this._setQueryMatches(X.matches)}});var YIA={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(X){return(this._clampValue(X)-this.min)/(this.max-this.min)},
_clampValue:function(X){return Math.min(this.max,Math.max(this.min,this._calcStep(X)))},
_calcStep:function(X){X=parseFloat(X);if(!this.step)return X;X=Math.round((X-this.min)/this.step);return this.step<1?X/(1/this.step)+this.min:X*this.step+this.min},
_validateValue:function(){var X=this._clampValue(this.value);this.value=this.oldValue=isNaN(X)?this.oldValue:X;return this.value!==X},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var ImZ=[_.$s,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(X){_.Uc(X).path[0]!==this&&(this.resetLayout(),X.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var X=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Qy(this._layoutDebouncer,_.R1,X);_.TH(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var X=this;requestAnimationFrame(function(){X.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(X){this.resizerShouldNotify(X)&&this._notifyDescendant(X)},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 ATp=[_.ni_,{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(X,H){var l=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[X];if(!l)throw new ReferenceError(this._getUndefinedMsg(X));X=this._boundEffect(l,H||{});X.setUp();return X},
_effectsChanged:function(X,H,l){this._tearDownEffects();X&&l&&(X.split(" ").forEach(function(b){var U;b!==""&&((U=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[b])?this._effects.push(this._boundEffect(U,H[b])):console.warn(this._getUndefinedMsg(b)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(X,H){H=H||{};var l=parseFloat(H.startsAt||0),b=parseFloat(H.endsAt||1),U=b-l,K=function(){};
b=l===0&&b===1?X.run:function(w,d){X.run.call(this,Math.max(0,(w-l)/U),d)};
return{setUp:X.setUp?X.setUp.bind(this,H):K,run:X.run?b.bind(this):K,tearDown:X.tearDown?X.tearDown.bind(this):K}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(X){X.setUp()!==!1&&this._effectsRunFn.push(X.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(X){X.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(X,H){this._effectsRunFn&&this._effectsRunFn.forEach(function(l){l(X,H)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var X=this._clampedScrollTop;this._updateScrollState(X);this.threshold>0&&this._setThresholdTriggered(X>=this.threshold)}},
_getDOMRef:function(X){console.warn("_getDOMRef","`"+X+"` is undefined")},
_getUndefinedMsg:function(X){return"Scroll effect `"+X+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+X+".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(X){var H={};X=parseFloat(X.scalar);H.background=this._getDOMRef("background");H.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");H.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");H.deltaBg=H.backgroundFrontLayer.offsetHeight-H.background.offsetHeight;H.deltaBg===0?(isNaN(X)&&(X=.8),H.deltaBg=(this._dHeight||0)*X):(isNaN(X)&&(X=
1),H.deltaBg*=X);this._fxParallaxBackground=H},
run:function(X){var H=this._fxParallaxBackground;this.transform("translate3d(0px, "+H.deltaBg*Math.min(1,X)+"px, 0px)",H.backgroundFrontLayer);H.backgroundRearLayer&&this.transform("translate3d(0px, "+H.deltaBg*Math.min(1,X)+"px, 0px)",H.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var XU$;var HnY;_.wT({_template:function(){if(HnY!==void 0)return HnY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;XU$===void 0&&(XU$=document.createElement("template"));var b=XU$;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return HnY=X},
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(){_.N0(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(X){X.keyCode===27&&(X.preventDefault(),this.close())},
_track:function(X){if(!this.persistent&&!this.disableSwipe)switch(X.preventDefault(),X.detail.state){case "start":this._trackStart(X);break;case "track":this._trackMove(X);break;case "end":this._trackEnd(X)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var X=this.$.contentContainer.getBoundingClientRect();this._savedWidth=X.width;this._translateOffset=this.position==="left"?X.left:X.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(X){this._trackDetails&&(this._translateDrawer(X.detail.dx+this._translateOffset),this._trackDetails.push({dx:X.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(X){if(this._trackDetails){var H=X.detail.dx+this._translateOffset,l=this.getWidth();H=this.position==="left"?H>=0||H<=-l:H<=0||H>=l;if(!H){var b=this._trackDetails;this._trackDetails=null;this._flingDrawer(X,b);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}l/=2;X.detail.dx<-l?this.opened=this.position==="right":X.detail.dx>l&&(this.opened=this.position==="left");H?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(X,H){for(var l=Date.now(),b=l-100,U,K=0,w=H.length-1;K<=w;){var d=K+w>>1,B=H[d];B.timeStamp>=b?(U=B,w=d-1):K=d+1}return U?(X.detail.dx-U.dx)/(l-U.timeStamp||1):0},
_flingDrawer:function(X,H){H=this._calculateVelocity(X,H);if(!(Math.abs(H)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;X=X.detail.dx+this._translateOffset;var l=this.getWidth(),b=this.position==="left",U=H>0;U?(H=Math.max(H,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(H=Math.min(H,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");H=this._FLING_INITIAL_SLOPE*(!U&&b?-(X+l):U&&!b?l-X:-X)/H;this._styleTransitionDuration(H);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,H)}},
_styleTransitionDuration:function(X){this.style.transitionDuration=X+"ms";this.$.contentContainer.style.transitionDuration=X+"ms";this.$.scrim.style.transitionDuration=X+"ms"},
_styleTransitionTimingFunction:function(X){this.$.contentContainer.style.transitionTimingFunction=X;this.$.scrim.style.transitionTimingFunction=X},
_translateDrawer:function(X){var H=this.getWidth();this.position==="left"?(X=Math.max(-H,Math.min(X,0)),this.$.scrim.style.opacity=1+X/H):(X=Math.max(0,Math.min(X,H)),this.$.scrim.style.opacity=1-X/H);this.translate3d(X+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var X=this._drawerState;X===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;X!==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=""),X!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var X=_.Uc(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"])');X.length>0?(this._firstTabStop=X[0],this._lastTabStop=X[X.length-1]):
this._lastTabStop=this._firstTabStop=null;(X=this.getAttribute("tabindex"))&&parseInt(X,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(X){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||X.keyCode!==9||(X.shiftKey?this._firstTabStop&&_.Uc(X).localTarget===this._firstTabStop&&(X.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Uc(X).localTarget===this._lastTabStop&&(X.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(X,H){this.toggleClass("visible",X&&!H,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var lZN;var oGa;var bnU=function(){};
_.R=bnU.prototype;_.R._scrollTargetChanged=function(){};
_.R.scroll=function(){};
_.R._isValidScrollTarget=function(){};
_.R._toggleScrollListener=function(){};
_.R.toggleScrollListener=function(){};
_.R.createEffect=function(){};
_.R._effectsChanged=function(){};
_.R._layoutIfDirty=function(){};
_.R._boundEffect=function(){};
_.R._setUpEffect=function(){};
_.R._tearDownEffects=function(){};
_.R._runEffects=function(){};
_.R._scrollHandler=function(){};
_.R._scrollStateChanged=function(){};
_.R._getUndefinedMsg=function(){};
_.R.notifyResize=function(){};
_.R.assignParentResizable=function(){};
_.R.stopResizeNotificationsFor=function(){};
_.R._subscribeIronResize=function(){};
_.R._unsubscribeIronResize=function(){};
_.R.resizerShouldNotify=function(){};
_.R._onDescendantIronResize=function(){};
_.R._fireResize=function(){};
_.R._onIronRequestResizeNotifications=function(){};
_.R._parentResizableChanged=function(){};
_.R._notifyDescendant=function(){};
_.R._requestResizeNotifications=function(){};
_.R._findParent=function(){};
_.R._appResetLayoutHandler=function(){};
_.R.resetLayout=function(){};
_.R._notifyLayoutChanged=function(){};
_.R._notifyDescendantResize=function(){};
_.R._setThresholdTriggered=function(){};
bnU=_.wT({_template:function(){if(oGa!==void 0)return oGa;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;lZN===void 0&&(lZN=document.createElement("template"));var b=lZN;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return oGa=X},
is:"tp-yt-app-header",behaviors:[ATp,ImZ],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 X=_.Uc(this.$.slot).getDistributedNodes(),H=0,l;l=X[H];H++)if(l.nodeType===Node.ELEMENT_NODE)if(l.hasAttribute("sticky")){this._stickyElRef=l;break}else this._stickyElRef||(this._stickyElRef=l);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var X=this._clampedScrollTop,H=this._height===0||X===0,l=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;H||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();H?this._updateScrollState(X,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=l}},
_updateScrollState:function(X,H){if(this._height!==0){var l=0,b=this._top;var U=this._maxHeaderTop;var K=X-this._lastScrollTop,w=Math.abs(K),d=X>this._lastScrollTop,B=performance.now();this._mayMove()&&(l=this._clamp(this.reveals?b+K:X,0,U));X>=this._dHeight&&(l=this.condenses&&!this.fixed?Math.max(this._dHeight,l):l,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&w<100){if(B-this._initTimestamp>300||this._wasScrollingDown!==d)this._initScrollTop=X,this._initTimestamp=B;X>=U&&
(Math.abs(this._initScrollTop-X)>30||w>10?(d&&X>=U?l=U:!d&&X>=this._dHeight&&(l=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((l-b)/(K/(B-this._lastTimestamp)),0,300)+"ms"):l=this._top)}U=this._dHeight===0?X>0?1:0:l/this._dHeight;H||(this._lastScrollTop=X,this._top=l,this._wasScrollingDown=d,this._lastTimestamp=B);if(H||U!==this._progress||b!==l||X===0)this._progress=U,this._runEffects(U,l),this._transformHeader(l)}},
_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(X){this.translate3d(0,-X+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&X>=this._stickyElTop?Math.min(X,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(X,H,l){return Math.min(l,Math.max(H,X))},
_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),_.Uc(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(X){switch(X){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Uc(this).querySelector("[main-title]");case "condensedTitle":return _.Uc(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var UXp;var $XA;_.wT({_template:function(){if($XA!==void 0)return $XA;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;UXp===void 0&&(UXp=document.createElement("template"));var b=UXp;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return $XA=X},
is:"tp-yt-app-header-layout",behaviors:[ImZ],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 _.Uc(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var X=this.header;if(this.isAttached&&X){this.$.wrapper.classList.remove("initializing");X.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)X.style.left="",X.style.right="";else{var H=this.getBoundingClientRect(),l=document.documentElement.clientWidth-H.right;X.style.left=H.left+"px";X.style.right=l+"px"}H=this.$.contentContainer.style;l=X.offsetHeight;X.fixed&&!X.condenses&&this.hasScrollingRegion?
(H.marginTop=l+"px",H.paddingTop=""):(H.paddingTop=l+"px",H.marginTop="")}}});/*

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

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
*/
_.wT({_template:function(){if(wUl!==void 0)return wUl;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Cua===void 0&&(Cua=document.createElement("template"));var b=Cua;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return wUl=X},
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(X,H){var l=this._resolveSrc(X);l!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",X===""||H?this._setLoading(!1):(this._resolvedSrc=l,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 X=this.$.sizedImgDiv.style,H=this.$.placeholder.style;X.backgroundSize=H.backgroundSize=this.sizing;X.backgroundPosition=H.backgroundPosition=this.sizing?this.position:"";X.backgroundRepeat=H.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(X){X=_.Hj(X,this.$.baseURIAnchor.href);X.length>=2&&X[0]==="/"&&X[1]!=="/"&&(X=(location.origin||location.protocol+"//"+location.host)+X);return X}});var dXl;var hNd;_.wT({_template:function(){if(hNd!==void 0)return hNd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=
X.content,l=H.insertBefore;dXl===void 0&&(dXl=document.createElement("template"));var b=dXl;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return hNd=X},
is:"tp-yt-iron-pages",behaviors:[_.$s,_.kD],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var FfC;var BFd;_.wT({_template:function(){if(BFd!==void 0)return BFd;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;FfC===void 0&&(FfC=document.createElement("template"));var b=FfC;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return BFd=X},
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(X){return X?"false":"true"},
_headingChanged:function(X){var H=this.getAttribute("heading"),l=this.getAttribute("aria-label");typeof l==="string"&&l!==H||this.setAttribute("aria-label",X)},
_computeHeadingClass:function(X){return X?" over-image":""},
_computeAnimated:function(X){return X}});var qVp;var sXa;_.wT({_template:function(){if(sXa!==void 0)return sXa;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;qVp===void 0&&(qVp=document.createElement("template"));var b=qVp;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return sXa=X},
is:"tp-yt-paper-checkbox",behaviors:[_.WLt],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.N0(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var X=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),H="px",l=X.match(/[A-Za-z]+$/);l!==null&&(H=l[0]);X=parseFloat(X);l=8/3*X;H==="px"&&(l=Math.floor(l),l%2!==X%2&&l++);this.updateStyles({"--paper-checkbox-ink-size":l+
H})}})},
_computeCheckboxClass:function(X,H){var l="";X&&(l+="checked ");H&&(l+="invalid");return l},
_computeCheckmarkClass:function(X){return X?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.DOv._createRipple.call(this)}});var MDe;var u4Z;var eNd=_.XW.IronButtonState,ykY=(0,_.oe)(HTMLElement);
_.wT({_template:function(){if(u4Z!==void 0)return u4Z;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;MDe===void 0&&(MDe=document.createElement("template"));var b=MDe;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return u4Z=X},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[eNd,_.Ie,_.H9,_.bc],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(X){var H=(0,_.q0)(this);H.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:X});H.shadowRoot.appendChild(X);return ykY.prototype._attachDom.call(this,X)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var X=this.contentElement;X&&X.selectedItem&&this._setSelectedItem(X.selectedItem)},
get contentElement(){for(var X=_.Uc(this.$.content).getDistributedNodes(),H=0,l=X.length;H<l;H++)if(X[H].nodeType===Node.ELEMENT_NODE)return X[H]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(X){this._setSelectedItem(X.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(X){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(X)===this&&this.open()},
_selectedItemChanged:function(X){var H="";X?H=X.label||X.getAttribute("label")||X.textContent.trim():H="";this.value=H;this._setSelectedItemLabel(H)},
_computeMenuVerticalOffset:function(X,H){return H?H:X?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var X=this.opened?"true":"false",H=this.contentElement;H&&H.setAttribute("aria-expanded",X)}});var VDl;var PuC;_.wT({_template:function(){if(PuC!==void 0)return PuC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
var H=X.content,l=H.insertBefore;VDl===void 0&&(VDl=document.createElement("template"));var b=VDl;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return PuC=X},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var fZZ;var pUe;_.wT({_template:function(){if(pUe!==void 0)return pUe;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;fZZ===void 0&&(fZZ=document.createElement("template"));var b=fZZ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return pUe=X},
is:"tp-yt-paper-progress",behaviors:[YIA],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(X){this.toggleClass("indeterminate",X,this.$.primaryProgress)},
_transformProgress:function(X,H){X.style.transform=X.style.webkitTransform="scaleX("+H/100+")"},
_mainRatioChanged:function(X){this._transformProgress(this.$.primaryProgress,X)},
_progressChanged:function(X,H,l,b,U){X=this._clampValue(X);H=this._clampValue(H);var K=this._calcRatio(X)*100,w=this._calcRatio(H)*100;this._setSecondaryRatio(K);this._transformProgress(this.$.secondaryProgress,K);this._transformProgress(this.$.primaryProgress,w);this.secondaryProgress=X;U?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",H);this.setAttribute("aria-valuemin",l);this.setAttribute("aria-valuemax",b)},
_disabledChanged:function(X){this.setAttribute("aria-disabled",X?"true":"false")},
_hideSecondaryProgress:function(X){return X===0}});var SVA;var zNZ;var nG$=function(){};
_.R=nG$.prototype;_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._noinkChanged=function(){};
_.R._focusedChanged=function(){};
_.R._createRipple=function(){};
_.R.registered=function(){};
_.R._invalidChanged=function(){};
_.R.hasValidator=function(){};
_.R.validate=function(){};
_.R._getValidity=function(){};
_.R._requiredChanged=function(){};
_.R._valueChanged=function(){};
_.R._checkedChanged=function(){};
_.R._buttonStateChanged=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
nG$=_.wT({is:"tp-yt-paper-radio-button",_template:function(){if(zNZ!==void 0)return zNZ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;SVA===void 0&&(SVA=document.createElement("template"));var b=SVA;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return zNZ=X},
behaviors:[_.WLt],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(){_.N0(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var X=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),H=Math.floor(3*X);H%2!==X%2&&H++;this.updateStyles({"--paper-radio-button-ink-size":H+"px"})}})}});var kia;var xXC;_.wT({_template:function(){if(xXC!==void 0)return xXC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;kia===void 0&&(kia=document.createElement("template"));var b=kia;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return xXC=X},
is:"tp-yt-paper-radio-group",behaviors:[_.SJz],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(X){var H=this._valueToItem(X);if(!H||!H.hasAttribute("disabled")){if(this.selected){H=this._valueToItem(this.selected);if(this.selected==X)if(this.allowEmptySelection)X="";else{H&&(H.checked=!0);return}H&&
(H.checked=!1)}_.kD.select.apply(this,[X]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(X){this._focusPrevious();X.preventDefault();this._activateFocusedItem()},
_onDownKey:function(X){this._focusNext();X.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(X){_.p8G._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(X){_.p8G._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.kD._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.U7._resetTabindices.apply(this,arguments);this.items.forEach(function(X){X.removeAttribute("aria-selected")},this)}});var DXU;var tDl;var Wf$=function(){};
_.R=Wf$.prototype;_.R.registered=function(){};
_.R.addOwnKeyBinding=function(){};
_.R.removeOwnKeyBindings=function(){};
_.R.keyboardEventMatchesKeys=function(){};
_.R._collectKeyBindings=function(){};
_.R._prepKeyBindings=function(){};
_.R._addKeyBinding=function(){};
_.R._resetKeyEventListeners=function(){};
_.R._listenKeyEventListeners=function(){};
_.R._unlistenKeyEventListeners=function(){};
_.R._onKeyBindingEvent=function(){};
_.R._triggerKeyHandler=function(){};
_.R._tapHandler=function(){};
_.R._focusChanged=function(){};
_.R._detectKeyboardFocus=function(){};
_.R._userActivate=function(){};
_.R._upHandler=function(){};
_.R._spaceKeyDownHandler=function(){};
_.R._spaceKeyUpHandler=function(){};
_.R._asyncClick=function(){};
_.R._pressedChanged=function(){};
_.R._ariaActiveAttributeChanged=function(){};
_.R._activeChanged=function(){};
_.R._controlStateChanged=function(){};
_.R._changedButtonState=function(){};
_.R._focusBlurHandler=function(){};
_.R._disabledChanged=function(){};
_.R._changedControlState=function(){};
_.R._buttonStateChanged=function(){};
_.R._downHandler=function(){};
_.R.ensureRipple=function(){};
_.R.getRipple=function(){};
_.R.hasRipple=function(){};
_.R._noinkChanged=function(){};
_.R._calcRatio=function(){};
_.R._clampValue=function(){};
_.R._calcStep=function(){};
_.R._validateValue=function(){};
_.R._update=function(){};
_.R._setImmediateValue=function(){};
_.R._setExpand=function(){};
_.R._setDragging=function(){};
_.R._setTransiting=function(){};
_.R._setMarkers=function(){};
_.R._setPressed=function(){};
_.R._setPointerDown=function(){};
_.R._setReceivedFocusFromKeyboard=function(){};
_.R._setFocused=function(){};
_.R._setRatio=function(){};
Wf$=_.wT({_template:function(){if(tDl!==void 0)return tDl;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;DXU===void 0&&(DXU=document.createElement("template"));var b=DXU;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return tDl=X},
is:"tp-yt-paper-slider",behaviors:[_.Yw,_.H9,_.tHH,YIA],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&&_.xH(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(X,H,l){this.setAttribute("aria-valuemin",H);this.setAttribute("aria-valuemax",l);this.setAttribute("aria-valuenow",X);this._positionKnob(this._calcRatio(X)*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(X){this._setImmediateValue(this._calcStep(this._calcKnobPosition(X)));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(X){return(this.max-this.min)*X/100+this.min},
_onTrack:function(X){X.stopPropagation();switch(X.detail.state){case "start":this._trackStart(X);break;case "track":this._trackX(X);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(X){this.dragging||this._trackStart(X);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,X.detail.dx*(this._isRTL?-1:1)));X=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(X);X=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(X+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var X=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;X.transform=X.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(X){this._expandKnob();X.preventDefault();this.focus()},
_bartrack:function(X){this._allowBarEvent(X)&&this._onTrack(X)},
_barclick:function(X){this._w=this.$.sliderBar.offsetWidth;var H=this.$.sliderBar.getBoundingClientRect();H=(X.detail.x-H.left)/this._w*100;this._isRTL&&(H=100-H);var l=this.ratio;this._setTransiting(!0);this._positionKnob(H);l===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
X.preventDefault();this.focus()},
_bardown:function(X){this._allowBarEvent(X)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(X))},
_knobTransitionEnd:function(X){X.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(X,H,l,b){b||this._setMarkers([]);H=Math.round((l-H)/this.step);H>X&&(H=X);if(H<0||!isFinite(H))H=0;this._setMarkers(Array(H))},
_mergeClasses:function(X){return Object.keys(X).filter(function(H){return X[H]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(X){return!this.ignoreBarTouch||X.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(X){this._isRTL?this._incrementKey(X):this._decrementKey(X)},
_rightKey:function(X){this._isRTL?this._decrementKey(X):this._incrementKey(X)},
_incrementKey:function(X){this.disabled||(X.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),X.preventDefault())},
_decrementKey:function(X){this.disabled||(X.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),X.preventDefault())},
_changeValue:function(X){this.value=X.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(X){X.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.DOv._createRipple.call(this)},
_focusedChanged:function(X){X&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=X?"":"none",this._ripple.holdDown=X)}});var EGC;var gGY;var wE=null,Gil=function(){};
_.R=Gil.prototype;_.R.fit=function(){};
_.R._discoverInfo=function(){};
_.R.resetFit=function(){};
_.R.refit=function(){};
_.R.position=function(){};
_.R.constrain=function(){};
_.R._sizeDimension=function(){};
_.R.__sizeDimension=function(){};
_.R.center=function(){};
_.R.__getNormalizedRect=function(){};
_.R.__getOffscreenArea=function(){};
_.R.__getPosition=function(){};
_.R.notifyResize=function(){};
_.R.assignParentResizable=function(){};
_.R.stopResizeNotificationsFor=function(){};
_.R._subscribeIronResize=function(){};
_.R._unsubscribeIronResize=function(){};
_.R.resizerShouldNotify=function(){};
_.R._onDescendantIronResize=function(){};
_.R._fireResize=function(){};
_.R._onIronRequestResizeNotifications=function(){};
_.R._parentResizableChanged=function(){};
_.R._notifyDescendant=function(){};
_.R._requestResizeNotifications=function(){};
_.R._findParent=function(){};
_.R.toggle=function(){};
_.R.open=function(){};
_.R.close=function(){};
_.R.cancel=function(){};
_.R.invalidateTabbables=function(){};
_.R._ensureSetup=function(){};
_.R._canceledChanged=function(){};
_.R._withBackdropChanged=function(){};
_.R._prepareRenderOpened=function(){};
_.R._finishRenderOpened=function(){};
_.R._finishRenderClosed=function(){};
_.R._preparePositioning=function(){};
_.R._finishPositioning=function(){};
_.R._applyFocus=function(){};
_.R._onCaptureClick=function(){};
_.R._onCaptureFocus=function(){};
_.R._onCaptureEsc=function(){};
_.R._onCaptureTab=function(){};
_.R._onIronResize=function(){};
_.R._onNodesChange=function(){};
_.R.__ensureFirstLastFocusables=function(){};
_.R.__openedChanged=function(){};
_.R.__deraf=function(){};
_.R.__updateScrollObservers=function(){};
_.R.__addScrollListeners=function(){};
_.R.__removeScrollListeners=function(){};
_.R.__isValidScrollAction=function(){};
_.R.__onCaptureScroll=function(){};
_.R.__saveScrollPosition=function(){};
_.R.__restoreScrollPosition=function(){};
_.R._setCanceled=function(){};
Gil=_.wT({_template:function(){if(gGY!==void 0)return gGY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;EGC===void 0&&(EGC=document.createElement("template"));var b=EGC;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return gGY=X},
is:"tp-yt-paper-toast",behaviors:[_.f7],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(){_.bd._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.uc.requestAvailability()},
show:function(X){typeof X=="string"&&(X={text:X});for(var H in X)H.indexOf("_")===0?_.bd._warn('The property "'+H+'" is private and was not set.'):H in this?this[H]=X[H]:_.bd._warn('The property "'+H+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(X){X&&X.target===this&&X.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(wE&&wE!==this&&wE.close(),wE=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):wE===this&&(wE=null);_.P9._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(X){this.positionTarget=X},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var aZx=new _.Ed("disablePersonalizationAction");var aNp=new _.Ed("showDmaConsentFlowCommand");var Zud=new _.Ed("showMmgNoticeCommand");var ZnZ=new _.Ed("saveConsentAction");var ina=new _.Ed("navigateAction");var vGy=new _.Ed("replaceFeedContentAction");var Ond=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Ond,_.sU);var mXZ=_.wJb(Ond);var QX$=new _.Ed("imageTileRenderer");var TFY=new _.Ed("promotedSparklesWebRenderer");var NFy=new _.Ed("adGridCardCollectionViewModel");var cke=new _.Ed("addRendererToItemSectionAction");var jXC=new _.Ed("updateTopbarAvatarAction");var rke=new _.Ed("channelHandleValidationResultRenderer");var JkC=new _.Ed("generateHandleFromNameResultRenderer");var Lfx=new _.Ed("channelHandleInputRenderer");var YV$=new _.Ed("copyLinkRenderer");var IZZ=new _.Ed("carouselTitleViewModel");var Akl=new _.Ed("ctaCarouselItemViewModel");var Xa$=new _.Ed("timedCommand");var HBa=new _.Ed("textFieldViewModel");var lwp=new _.Ed("crowdsourcedContextUserRatingFormFlowState");var oRd=new _.Ed("noteViewModel");var bBx=new _.Ed("alertCommand");var UCd=new _.Ed("clearCookieAction");var $CN=new _.Ed("engagementPanelHeaderShowNavigationButtonCommand");var KkN=new _.Ed("getMultiPageMenuAction");var Ra$=new _.Ed("addToGuideSectionAction"),C_A=new _.Ed("removeFromGuideSectionAction");var wa$=new _.Ed("hideEngagementPanelScrimAction");var dCC=new _.Ed("updateNotificationsUnseenCountAction");var haa=new _.Ed("resetChannelUnreadCountCommand");var Fke=new _.Ed("resetSubscriptionsUnreadDotCommand");var Be$=new _.Ed("selectLanguageCommand");var LLU=new _.Ed("sendFeedbackAction");var qOZ=new _.Ed("setActivePanelItemAction");var srU=new _.Ed("showEngagementPanelScrimAction");var MKe=new _.Ed("updateEngagementPanelAction");var ugl=new _.Ed("updateSearchInVideoResultsAction");var eay=new _.Ed("uploadImageToScottyCommand");var yKC=new _.Ed("webWatchNextResponseExtensionData");var VKY=new _.Ed("manageLabsStateCommand");var P_N=new _.Ed("registerPromoCommand");var fwe=new _.Ed("setPushNotificationsEnabledCommand");var pal=new _.Ed("updateSentimentBarStateCommand");var SOU=new _.Ed("desktopTopbarRenderer");var zaN=new _.Ed("surveyFollowUpRenderer");var nRd=new _.Ed("formRenderer");var kgZ=new _.Ed("inlineFormRenderer");var xCx=new _.Ed("handlesClaimingRadioOptionRenderer");var DC5=new _.Ed("hotkeyDialogRenderer");var tKl=new _.Ed("playlistSidebarPrimaryInfoRenderer");var Wkd=new _.Ed("transcriptCueGroupRenderer");var ER$=new _.Ed("transcriptCueRenderer");var gRZ=new _.Ed("transcriptFooterRenderer");var Ggl=new _.Ed("engagementPanelAdSubtitleRenderer");var aw$=new _.Ed("videoDescriptionFantasySectionViewModel");var ZBe=new _.Ed("inlineSurveyRenderer");var iB$=new _.Ed("radioButtonSurveyOptionRenderer"),vRa=new _.Ed("checkboxSurveyOptionRenderer");var OBl=new _.Ed("showSurveyCommand");var dE=new _.Ed("abuseReportFlowState");var mCZ=new _.Ed("modifyReportFormCommand");var Qr5=new _.Ed("feedbackFormFlowState");var TeZ=new _.Ed("inputBoxViewModel");var NeU=new _.Ed("flowRootRenderer");var HGd=new _.Ed("lengthValidationRule");var oqA=new _.Ed("regexValidationRule");var Ufp=new _.Ed("selectedValidationRule");var cKl=new _.Ed("accountLinkCommand");var jrU=new _.Ed("accountUnlinkCommand");var rKY=new _.Ed("deleteClipEngagementPanelCommand");var nIy=new _.Ed("logAccountLinkingEventCommand");var kyy=new _.Ed("loopCommand");var m7C=new _.Ed("guideCollapsibleEntryRenderer");var x$p=new _.Ed("guideDownloadsEntryRenderer");var OjN=new _.Ed("guideEntryRenderer");var D$Y=[0,_.ZU,_.N7,_.c0];var txe=[0,_.gJ,-2,tfZ];var Wna=function(X){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Qe(X)};
_.S(Wna,_.sU);Wna.prototype.getFeature=function(){return _.sC(this,6)};
Wna.prototype.hasFeature=function(){return _.DA(_.be(this,6))!=null};var EIa=[0,_.ZU];var gIU=_.xn(Wna,[0,_.gJ,-2,tfZ,_.gJ,_.ZU,-1,_.EC,-1,_.ZU,-3,_.HJz,_.Gb,txe,_.ZU,-1,DyN,_.EC,_.ZU,D$Y,[0,[0,_.ZU,-2,2,_.ZU,-1,[0,_.ZU],[0,_.N7,_.ZU],[0,_.N7],[0,_.ZU],2,[0,_.N7,2,[0,[2,3],_.N7,VfN,_.mq,[0,[1,2,3],VfN,-2]],[0,_.OC,tZl],1,[0,WGN],1,[0,_.ZU],1,[0,[2],_.ZU,_.mq,[0,_.gJ]]],[0,_.Gb],[0,[1,2],_.mq,[0,_.ZU],_.mq,[0,_.ZU,_.Tb,-1]],[0,_.N7],[0,_.ZU,[0,[1,2,3,4],_.mq,[0,[0,_.ZU],EIa],_.mq,[0,[0,_.ZU],EIa],_.mq,[0,EIa],_.mq,[0,[0,_.ZU],EIa]]],[0,_.ZU],1,[0,_.ZU,_.N7],1,[0,_.ZU],[0,_.Gb],[0,_.ZU,
_.N7,-1,[0,_.ZU,-4]],[0,_.ZU],[0,_.ZU,-2],1,[0,_.ZU],[0,_.Gb],[0,_.Gb,_.ZU],1,[0,_.Gb],[0],[0]],_.ZU,_.N7,_.tC,1,_.Qs,_.ZU,_.N7],_.gJ,_.Qs,_.N7,-1,_.gJ]);var Gyd=new _.Ed("interstitialViewModel");var aGA=new _.Ed("changeCreatorEndscreenVisibilityCommand");var ZzZ=new _.Ed("liveChatCallForQuestionsRenderer");var iz$=new _.Ed("getLocationCommand");var vIZ=new _.Ed("locationCollectionCommand");var OzN=new _.Ed("chipsShelfViewModel");var hp=new _.Ed("cinematicContainerRenderer");var Fz=new _.Ed("changeMarkersVisibilityCommand");var m$$=new _.Ed("updateTimedMarkersSyncObserverCommand");var Qla=new _.Ed("storiesItemViewModel");var TG5=new _.Ed("talkToRecsViewModel");var mV$=new _.Ed("timelyActionViewModel");var NGa=new _.Ed("timelyActionsOverlayViewModel");var cdx=new _.Ed("addToRemoteQueueAction");var jld=new _.Ed("insertInRemoteQueueAction");var rdY=new _.Ed("removeFromRemoteQueueAction");var JdZ=new _.Ed("productDetailsThumbnailRenderer"),LnZ=new _.Ed("productDetailsVariantRenderer"),YzZ=new _.Ed("productDetailsVariantOptionRenderer"),IGa=new _.Ed("productDetailsOffersContainerRenderer"),Ady=new _.Ed("productDetailsOfferRenderer");var X3$=new _.Ed("shoppingFlaggingRenderer");var H3C=new _.Ed("notificationActionRenderer");var llY=new _.Ed("notificationRenderer");var eRp=new _.Ed("localWatchHistoryCommand");var oKZ=new _.Ed("pdgBuyFlowHeaderRenderer");var b3l=new _.Ed("pdgColorSliderRenderer");var UHl=new _.Ed("pdgCommentOptionRenderer");var $Hd=new _.Ed("pdgCommentPreviewRenderer");var KdU=new _.Ed("superVodSelectableItemButtonRenderer");var RA$=new _.Ed("creatorGoalSetUpFlowDropdownItemViewModel");var CsC=new _.Ed("creatorGoalSetUpFlowDropdownViewModel");var w3Z=new _.Ed("repeatChapterCommand");var dHe=new _.Ed("watchPlayerOverflowMenuCommand");var hAZ=new _.Ed("compositeVideoOverlayRenderer");var Fdp=new _.Ed("playlistBylineRenderer");var Bme=new _.Ed("reelNavigateCommand");var qY$=new _.Ed("reelNonVideoContentDismissalCommand");var snC=new _.Ed("showReelsCommentsOverlayCommand");var MtA=new _.Ed("switchButtonRenderer");var umd=new _.Ed("responsiveContainerConfiguration");var eAp=new _.Ed("sortFilterSubMenuRenderer");var y_Y=new _.Ed("upsellDialogRenderer");var VtZ=new _.Ed("insertChannelTabCommand");var Psl=new _.Ed("feedbackQuestionRenderer"),fle=new _.Ed("feedbackOptionRenderer");var p3l=new _.Ed("sponsorshipsTierRenderer"),SYa=new _.Ed("sponsorshipsPromotionChannelRenderer");var zAU=new _.Ed("simpleSurveyMessageRenderer");var OGx=new _.Ed("thumbnailBadgeViewModel");var nKZ=new _.Ed("checkboxGroupViewModel");var Njd=new _.Ed("checkboxItemViewModel");var kFa=new _.Ed("radioButtonGroupViewModel");var xHl=new _.Ed("radioButtonItemViewModel");var DHd=new _.Ed("switchListItemViewModel");var eEZ=new _.Ed("inputComposerViewModel");var ucC=new _.Ed("panelFooterViewModel");var tta=new _.Ed("transcriptEditSegmentCommand");var WdN=new _.Ed("transcriptUpdateSegmentTextCommand");var EKC=new _.Ed("transcriptSearchBoxRenderer");var gKd=new _.Ed("transcriptSegmentListRenderer");var GFC=new _.Ed("transcriptSegmentRenderer");var alx=new _.Ed("videoInteractionPopUpRenderer");var Z3N=new _.Ed("updateDateTextAction");var i3p=new _.Ed("updateTitleAction");var vKZ=new _.Ed("updateViewershipAction");var O3l=new _.Ed("relatedChipCommand");var mHA=new _.Ed("carouselLockupRenderer");var Qn5=new _.Ed("engagementPanelSectionListRenderer");var B_=new _.Ed("expandableVideoDescriptionBodyRenderer");var TmY=new _.Ed("videoDescriptionHeaderRenderer");var Nmd=new _.Ed("videoDescriptionYouchatSectionViewModel");var Xty=new _.Ed("invokeInstrumentManagerAction");var c_p=new _.Ed("logYpcFlowDismissCommand");var jnY=new _.Ed("logYpcFlowStartCommand");var r_e=new _.Ed("ypcCancelRecurrenceCommand");var J_U=new _.Ed("cancellationFlowState");var E$l=new _.Ed("premiumPurchaseFlowState");var Ldx=new _.Ed("unlimitedCreateFamilyEndpoint");var YYY=new _.Ed("surveyAnswerCardRenderer");var Ile=new _.Ed("iconBadgeRenderer");var A_Y=new _.Ed("showMoreButtonRenderer");var Xla=new _.Ed("pollChoiceData");var VHx=new _.Ed("collaborativePlaylistVisibilityValidationRule");var HI$=function(X){_.NF.call(this,"channelMessage");this.message=X};
_.S(HI$,_.NF);var lBY=function(X){_.NF.call(this,"channelError");this.error=X};
_.S(lBY,_.NF);var oTe={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"},bIy={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},U3d={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},$3x={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},KNd={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var qr=function(X){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 _.hB;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;X&&(this.id=X.id||X.name,this.name=X.name,this.clientName=X.clientName?X.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=X.app,this.type=X.type||"REMOTE_CONTROL",this.username=X.user||"",this.avatar=X.userAvatarUri||"",this.obfuscatedGaiaId=X.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=X.ownerObfuscatedGaiaId||"",this.castUserId=X.castUserId||"",this.theme=X.theme||"u",RcN(this,X.capabilities||""),C7l(this,
X.compatibleSenderThemes||""),wll(this,X.experiments||""),this.remoteControllerUrl=X.remoteControllerUrl||"",this.localChannelEncryptionKey=X.localChannelEncryptionKey||"",this.deviceContext=X.deviceContext,this.brand=X.brand||"",this.model=X.model||"",this.year=X.year||0,this.os=X.os||"",this.osVersion=X.osVersion||"",this.chipset=X.chipset||"",this.mdxDialServerType=X.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=X.pairingType||"unknown",X=X.deviceInfo)&&(X=JSON.parse(X),this.brand=
X.brand||"",this.model=X.model||"",this.year=X.year||0,this.os=X.os||"",this.osVersion=X.osVersion||"",this.chipset=X.chipset||"",this.clientName=X.clientName?X.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=X.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
qr.prototype.copy=function(){var X={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&&(X.brand=this.brand);
this.model&&(X.model=this.model);this.year&&(X.year=this.year);this.os&&(X.os=this.os);this.osVersion&&(X.osVersion=this.osVersion);this.chipset&&(X.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(X.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(X.mdxDialServerType=this.mdxDialServerType);X=new qr(X);X.connected=this.connected;X.remoteControllerUrl=this.remoteControllerUrl;X.localChannelEncryptionKey=this.localChannelEncryptionKey;X.deviceContext=
this.deviceContext;X.castUserId=this.castUserId;return X};
qr.prototype.equals=function(X){return X?this.id==X.id:!1};
var RcN=function(X,H){X.capabilities.clear();_.jY(H.split(","),_.lH(_.Bb.contains,oTe)).forEach(function(l){X.capabilities.add(l)})},C7l=function(X,H){X.compatibleSenderThemes.clear();
_.jY(H.split(","),_.lH(_.Bb.contains,bIy)).forEach(function(l){X.compatibleSenderThemes.add(l)})},wll=function(X,H){X.experiments.clear();
H.split(",").forEach(function(l){X.experiments.add(l)})};_.To(uP,_.$e);_.R=uP.prototype;_.R.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()};
_.R.getRetryCount=function(){return this.retryCount};
_.R.start=function(){var X=this.JSC$20073_interval_+15E3*Math.random(),H=this.delay_;H.isActive()||H.start(X);this.nextTickTime_=Date.now()+X};
_.R.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.R.isActive=function(){return this.delay_.isActive()};
_.R.reset=function(){this.delay_.stop();this.retryCount=0;this.JSC$20073_interval_=5E3};_.To(ep,j2p);_.R=ep.prototype;_.R.subscribe=function(X,H,l){return this.pubsub_.subscribe(X,H,l)};
_.R.unsubscribe=function(X,H,l){return this.pubsub_.unsubscribe(X,H,l)};
_.R.unsubscribeByKey=function(X){return this.pubsub_.unsubscribeByKey(X)};
_.R.publish=function(X,H){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.R.dispose=function(){this.JSC$20076_disposed_||(this.JSC$20076_disposed_=!0,_.Gp(this.pubsub_),this.disconnect(),_.Gp(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20076_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.rZ({})})};
_.R.isDisposed=function(){return this.JSC$20076_disposed_};
_.R.connect=function(X,H,l){var b=this,U,K,w,d;return _.h(function(B){if(B.nextAddress==1)return _.iQ(B,2),b.useAsyncBrowserChannelHandler_?B.yield(b.connectPromise_,2):B.jumpTo(2);_.GS(B);if(b.JSC$20076_disposed_||b.JSC$20076_channel_&&b.JSC$20076_channel_.getState()==2&&!b.isInitialReconnectTimer_)return B.return();b.sCookie_="";b.isInitialReconnectTimer_||b.reconnectTimer_.stop();b.connectionParams_=X||null;b.connectUi_=H||0;U=b.JSC$20076_pathPrefix_+"/test";K=b.JSC$20076_pathPrefix_+"/bind";w=
new sM(l?l.firstTestResults:null,l?l.secondTestResults:null,b.enableAsyncTest_);if(d=b.JSC$20076_channel_)d.handler_=null;w.handler_=b;b.JSC$20076_channel_=w;if(b.useAsyncBrowserChannelHandler_)return b.connectPromise_=d3e(b).then(function(){return hcZ(b,U,K,d,l)}),B.return(b.connectPromise_.then(function(){b.connectPromise_=_.rZ()}));
hcZ(b,U,K,d,l);return _.vJ(B,0)})};
var hcZ=function(X,H,l,b,U){FNx(X);if(X.JSC$20076_channel_){var K=_.gx("ID_TOKEN"),w=X.JSC$20076_channel_.JSC$19990_extraHeaders_||{};K?w["x-youtube-identity-token"]=K:delete w["x-youtube-identity-token"];X.JSC$20076_channel_.JSC$19990_extraHeaders_=w}BqY(X);b?(b.getState(),X.JSC$20076_channel_.connect(H,l,X.defaultQueryParams_,b.sid_,b.JSC$19990_lastArrayId_)):U?X.JSC$20076_channel_.connect(H,l,X.defaultQueryParams_,U.sessionId,U.arrayId):X.JSC$20076_channel_.connect(H,l,X.defaultQueryParams_);X.isInitialReconnectTimer_&&
!X.reconnectTimer_.isActive()&&X.reconnectTimer_.start();X.retryLogger_&&X.retryLogger_.startLogTimeout()};
ep.prototype.disconnect=function(X){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.rZ())}finally{this.disconnectUi_=X||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),FNx(this),this.JSC$20076_channel_&&(this.JSC$20076_channel_.getState()==3&&OVx(this.JSC$20076_channel_),this.JSC$20076_channel_.disconnect()),this.disconnectUi_=0}};
ep.prototype.sendMessage=function(X,H){var l=this,b;return _.h(function(U){switch(U.nextAddress){case 1:_.iQ(U,2);if(!l.useAsyncBrowserChannelHandler_){U.jumpTo(2);break}return U.yield(l.connectPromise_,2);case 2:_.GS(U);if(l.JSC$20076_disposed_)return U.return();b={_sc:X};H&&_.Bb.extend(b,H);if(l.reconnectTimer_.isActive()||(l.JSC$20076_channel_?l.JSC$20076_channel_.getState():0)==2){l.JSC$20076_pendingMessages_.push(b);U.jumpTo(6);break}if(!l.isChannelOpened()){U.jumpTo(6);break}_.iQ(U,8);if(!l.useAsyncBrowserChannelHandler_||
qBN(l,X)){U.jumpTo(8);break}return U.yield(d3e(l),8);case 8:_.GS(U,0,0,1);l.isChannelOpened()&&(qBN(l,X)||BqY(l),FNx(l),vXe(l.JSC$20076_channel_,b));_.vJ(U,6,1);break;case 6:_.vJ(U,0)}})};
var qBN=function(X,H){return X.enableMdxAuthForConnectionOnly_?!0:X.disableMdxAuthForAdMessages_?Object.values(U3d).includes(H):X.disableMdxAuthForNonPlaybackMessages_?!Object.values($3x).includes(H):X.disableMdxAuthForShortsMessages_?Object.values(KNd).includes(H):!1};
ep.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(),_.Gp(this.reconnectTimer_),this.reconnectTimer_=new uP(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();
this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20076_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)sWZ(this);else{var X=this.JSC$20076_pendingMessages_;this.JSC$20076_pendingMessages_=[];var H=X.length;BqY(this);MG$(this,X,H);uwl(this)}else uwl(this)};
var sWZ=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return _.iQ(b,2),b.yield(d3e(X),2);_.GS(b);H=X.JSC$20076_pendingMessages_;X.JSC$20076_pendingMessages_=[];l=H.length;MG$(X,H,l);uwl(X);return _.vJ(b,0)})},MG$=function(X,H,l){for(var b=0;b<l;++b)vXe(X.JSC$20076_channel_,H[b]);
uwl(X)},uwl=function(X){X.publish("handlerOpened");
X.JSC$20076_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.R=ep.prototype;_.R.JSC$19997_channelError=function(X){var H=X==2&&this.JSC$20076_channel_.JSC$19990_lastStatusCode_==401;X==4||H||(this.isInitialReconnectTimer_&&!this.reconnectTimer_.isActive()&&(_.Gp(this.reconnectTimer_),this.reconnectTimer_=new uP(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1),this.reconnectTimer_.start());this.publish("handlerError",X,H);H=Object.keys(DPA).find(function(l){return DPA[l]===X});
this.JSC$20076_channelErrorCounter.increment("BROWSER_CHANNEL",H!=null?H:"UNKNOWN")};
_.R.JSC$19997_channelClosed=function(X,H){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(H)for(var l=H.length,b=0;b<l;++b){var U=H[b].map;U&&this.JSC$20076_pendingMessages_.push(U)}this.JSC$20076_channelClosedCounter.increment("BROWSER_CHANNEL");X&&this.pendingMapsOnClosedCounter.JSC$10242_streamzService.JSC$10097_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",X.length);H&&this.undeliveredMapsOnClosedCounter.JSC$10245_streamzService.JSC$10097_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
H.length)};
_.R.JSC$19997_channelSuccess=function(X,H){H!=null&&X!=null&&this.channelMessageSentCounter.increment()};
_.R.JSC$19997_getAdditionalParams=function(){var X={v:2};this.sCookie_&&(X.gsessionid=this.sCookie_);this.connectUi_!=0&&(X.ui=""+this.connectUi_);this.disconnectUi_!=0&&(X.ui=""+this.disconnectUi_);this.connectionParams_&&_.Bb.extend(X,this.connectionParams_);return X};
_.R.JSC$19997_channelHandleArray=function(X){X[0]=="S"?this.sCookie_=X[1]:X[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20076_channel_.disconnect()):this.publish("handlerMessage",new NTd(X[0],X[1]));this.JSC$20076_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.R.isChannelOpened=function(){return!!this.JSC$20076_channel_&&this.JSC$20076_channel_.getState()==3};
var FNx=function(X){if(X.JSC$20076_channel_){var H=X.JSC$20076_getXsrfToken_(),l=X.JSC$20076_channel_.JSC$19990_extraHeaders_||{};H?l["x-youtube-lounge-xsrf-token"]=H:delete l["x-youtube-lounge-xsrf-token"];X.JSC$20076_channel_.JSC$19990_extraHeaders_=l}},d3e=function(X){if(X.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.rZ();
if(!X.enableCachedUpdateAuthorizationHeader_)return ece(X);X.updateAuthorizationHeaderPromise_===null&&(X.updateAuthorizationHeaderPromise_=ece(X));return X.updateAuthorizationHeaderPromise_},ece=function(X){return _.MQ(X.getAuthorizationHeader_().then(function(H){yqA(X,H)}).thenCatch(function(){}),function(){X.updateAuthorizationHeaderPromise_=null})},yqA=function(X,H){if(X.JSC$20076_channel_){var l=X.JSC$20076_channel_.JSC$19990_extraHeaders_||{};
H&&Object.keys(H).length>0?l=Object.assign({},l,H):delete l.Authorization;X.JSC$20076_channel_.JSC$19990_extraHeaders_=l}},BqY=function(X){X.getAuthorizationHeaderSync_&&!X.useAsyncBrowserChannelHandler_&&yqA(X,X.getAuthorizationHeaderSync_())};
_.R=ep.prototype;_.R.setLoungeToken=function(X){(this.defaultQueryParams_.loungeIdToken=X)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20076_channel_){var H=this.JSC$20076_channel_.JSC$19990_extraHeaders_||{};X?H["X-YouTube-LoungeId-Token"]=X:delete H["X-YouTube-LoungeId-Token"];this.JSC$20076_channel_.JSC$19990_extraHeaders_=H}};
_.R.getDeviceId=function(){return this.defaultQueryParams_.id};
_.R.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.R.reconnect=function(){var X=this.reconnectTimer_;X.delay_.fire();X.start()};
_.R.safeReconnect_=function(){var X=this.JSC$20076_channel_,H=0;X.JSC$19990_backChannelRequest_&&H++;X.forwardChannelRequest_&&H++;H==0&&this.connect(this.connectionParams_,this.connectUi_)};var fa=function(X,H){var l=X.basePath;X.supportCors&&(l=X.scheme+"://"+X.domain+X.port+X.basePath);return _.An(l+H,{})};
AFp.prototype.sendRequest=function(X,H,l,b,U,K,w){X={format:K?"RAW":"JSON",method:X,context:this,timeout:5E3,withCredentials:!!w,onSuccess:_.lH(this.JSC$20083_onSuccess_,b,!K),onError:_.lH(this.onError_,U),onTimeout:_.lH(this.JSC$20083_onTimeout_,U)};l&&(X.postParams=l,X.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Kt(H,X)};
AFp.prototype.JSC$20083_onSuccess_=function(X,H,l,b){H?X(b):X({text:l.responseText})};
AFp.prototype.onError_=function(X,H){X(Error("$k`"+H.status))};
AFp.prototype.JSC$20083_onTimeout_=function(X){X(Error("al"))};var ola=function(X,H){return!!H&&(X.id==H||X.uuid==H)},VG5=function(X){return{name:X.name,
screenId:X.id,loungeToken:X.token,dialId:X.uuid,screenIdType:X.idType,screenIdSecret:X.secret}},P7a=function(X){return new y1(X)},fBy=function(X){return Array.isArray(X)?_.qz(X,P7a):[]},Un5=function(X){if(!X)return"null";
var H=X.token?".."+X.token.slice(-6):"-",l=X.uuid?".."+X.uuid.slice(-6):"-",b=X.secret?".."+X.secret.slice(-6):"-";return'{name:"'+X.name+'",id:'+X.id.substr(0,6)+"..,token:"+(H+",uuid:"+l+",idType:"+X.idType+",secret:")+(b+"}")},Waa=function(X){return Array.isArray(X)?"["+_.qz(X,Un5).join(",")+"]":"null"};var w5$="",P7=null;var yae=function(X,H){_.zB.call(this);var l=this;this.handler=X();this.handler.subscribe("handlerOpened",this.JSC$20090_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(b,U){l.onError(U)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=H};
_.S(yae,_.zB);_.R=yae.prototype;_.R.connect=function(X,H,l){this.handler.connect(X,H,l)};
_.R.disconnect=function(X){this.handler.disconnect(X)};
_.R.reconnect=function(){this.handler.reconnect()};
_.R.getDeviceId=function(){return this.handler.getDeviceId()};
_.R.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.R.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.R.JSC$20090_onOpened=function(){this.dispatchEvent("channelOpened");var X=this.handler,H=this.currentScreenId;_.R6("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!X.JSC$20076_channel_.useChunked_,sessionId:X.JSC$20076_channel_.sid_,arrayId:X.JSC$20076_channel_.JSC$19990_lastArrayId_});_.R6("yt-remote-session-screen-id",H);X=bqy();H=UqN();_.vh(X,H)||X.push(H);Cvx(X);Ro$()};
_.R.onClosed=function(){this.dispatchEvent("channelClosed")};
_.R.onMessage=function(X){this.dispatchEvent(new HI$(X))};
_.R.onError=function(X){this.dispatchEvent(new lBY(X?1:0))};
_.R.sendMessage=function(X,H){this.handler.sendMessage(X,H)};
_.R.setLoungeToken=function(X){this.handler.setLoungeToken(X)};
_.R.dispose=function(){this.handler.dispose()};var eoA=function(X,H,l){var b=this;l=l===void 0?function(){return""}:l;
var U=U===void 0?new ZcY:U;var K=K===void 0?new _.RF:K;this.pathPrefix=X;this.defaultQueryParams=H;this.getXsrfToken=l;this.JSC$20093_pubsub=K;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new uP(function(){var w;((w=b.channel)==null?void 0:DjU((new AW5(w,w.JSC$19958_channel_)).JSC$19968_channel_.forwardChannelRequestPool_))===0&&b.connect(b.connectionParams,b.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20093_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20093_channelOpenedCounter=new cFp;this.JSC$20093_channelClosedCounter=new jiy;this.JSC$20093_channelMessageReceivedCounter=new JFp;this.JSC$20093_channelErrorCounter=new LrA};
eoA.prototype.connect=function(X,H){X=X===void 0?{}:X;H=H===void 0?0:H;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=X,this.connectUi=H,plZ(this),(X=_.gx("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=X: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 $F(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,SBU(this))};
var SBU=function(X){_.n8(X.channel,"w",function(){X.channelState=3;X.reconnectTimer.reset();X.connectionParams=null;X.connectUi=0;for(var H=_.C(X.nonAckedMessagesOnChannelClosed),l=H.next();!l.done;l=H.next())l=l.value,X.channel&&X.channel.send(l);X.nonAckedMessagesOnChannelClosed=[];X.publish("webChannelOpened");X.JSC$20093_channelOpenedCounter.increment("WEB_CHANNEL")});
_.n8(X.channel,"x",function(){X.channelState=0;X.reconnectTimer.isActive()||X.publish("webChannelClosed");var H,l=(H=X.channel)==null?void 0:Xmd(new AW5(H,H.JSC$19958_channel_));l&&(X.nonAckedMessagesOnChannelClosed=[].concat(_.LJ(l)));X.JSC$20093_channelClosedCounter.increment("WEB_CHANNEL")});
_.n8(X.channel,"z",function(H){var l=H.data;l[0]==="gracefulReconnect"?(X.reconnectTimer.start(),X.channel&&X.channel.close()):X.publish("webChannelMessage",new NTd(l[0],l[1]));X.lastStatusCode=H.statusCode;X.JSC$20093_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.n8(X.channel,"y",function(){X.lastStatusCode===401||X.reconnectTimer.start();X.publish("webChannelError");X.JSC$20093_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.R=eoA.prototype;_.R.disconnect=function(X){this.disconnectUi=X===void 0?0:X;this.reconnectTimer.stop();plZ(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.R.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.R.reconnect=function(){var X=this.reconnectTimer;X.delay_.fire();X.start()};
_.R.sendMessage=function(X,H){this.channel&&(plZ(this),X=Object.assign({},{_sc:X},H),this.channel.send(X))};
_.R.setLoungeToken=function(X){X||this.reconnectTimer.stop();X?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=X:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var plZ=function(X){var H=X.getXsrfToken();H?X.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=H:delete X.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.R=eoA.prototype;_.R.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.R.publish=function(X){return this.JSC$20093_pubsub.publish.apply(this.JSC$20093_pubsub,[X].concat(_.LJ(_.Ab.apply(1,arguments))))};
_.R.subscribe=function(X,H,l){return this.JSC$20093_pubsub.subscribe(X,H,l)};
_.R.unsubscribe=function(X,H,l){return this.JSC$20093_pubsub.unsubscribe(X,H,l)};
_.R.unsubscribeByKey=function(X){return this.JSC$20093_pubsub.unsubscribeByKey(X)};
_.R.dispose=function(){this.JSC$20093_disposed||(this.JSC$20093_disposed=!0,_.Gp(this.JSC$20093_pubsub),this.disconnect(),_.Gp(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.R.isDisposed=function(){return this.JSC$20093_disposed};var uRY=function(X){_.zB.call(this);this.webChannelService=X();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)};
_.S(uRY,_.zB);_.R=uRY.prototype;_.R.connect=function(X,H){this.webChannelService.connect(X,H)};
_.R.disconnect=function(X){this.webChannelService.disconnect(X)};
_.R.reconnect=function(){this.webChannelService.reconnect()};
_.R.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.R.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.R.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.R.JSC$20101_onOpened=function(){this.dispatchEvent("channelOpened")};
_.R.onClosed=function(){this.dispatchEvent("channelClosed")};
_.R.onMessage=function(X){this.dispatchEvent(new HI$(X))};
_.R.onError=function(){this.dispatchEvent(new lBY(this.webChannelService.lastStatusCode===401?1:0))};
_.R.sendMessage=function(X,H){this.webChannelService.sendMessage(X,H)};
_.R.setLoungeToken=function(X){this.webChannelService.setLoungeToken(X)};
_.R.dispose=function(){this.webChannelService.dispose()};var twl=Date.now(),pa=null,xqN=Array(50),k0e=-1,DqC=!1;var na=function(X){X=X===void 0?!1:X;_.$e.call(this);this.pubSub_=new _.RF(X);_.LY(this,this.pubSub_)};
_.To(na,_.$e);na.prototype.subscribe=function(X,H,l){return this.isDisposed()?0:this.pubSub_.subscribe(X,H,l)};
na.prototype.unsubscribe=function(X,H,l){return this.isDisposed()?!1:this.pubSub_.unsubscribe(X,H,l)};
na.prototype.unsubscribeByKey=function(X){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(X)};
na.prototype.publish=function(X,H){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};_.To(ka,na);ka.prototype.getScreens=function(){return this.screens};
ka.prototype.contains=function(X){return!!lpU(this.screens,X)};
ka.prototype.get=function(X){return X?V1(this.screens,X):null};
var zcl=function(X,H){var l=X.get(H.uuid)||X.get(H.id);if(l)return X=l.name,l.id=H.id||l.id,l.name=H.name,l.token=H.token,l.uuid=H.uuid||l.uuid,l.name!=X;X.screens.push(H);return!0},nTa=function(X,H){var l=X.screens.length!=H.length;
X.screens=_.jY(X.screens,function(K){return!!lpU(H,K)});
for(var b=H.length,U=0;U<b;U++)l=zcl(X,H[U])||l;return l},kLC=function(X,H){var l=X.screens.length;
X.screens=_.jY(X.screens,function(b){return!(b||H?!b!=!H?0:b.id==H.id:1)});
return X.screens.length<l};
ka.prototype.info=function(X){Sp(this.JSC$20105_logName_,X)};var x3Z=function(X,H,l,b,U){na.call(this);this.JSC$20108_http_=X;this.pairingCode_=H;this.deviceId_=l;this.friendlyName_=b;this.enableShortLivedLoungeToken_=U;this.pollIndex_=0;this.JSC$20108_xhr_=null;this.JSC$20108_timer_=NaN};
_.S(x3Z,na);_.R=x3Z.prototype;_.R.start=function(){!this.JSC$20108_xhr_&&isNaN(this.JSC$20108_timer_)&&this.poll_()};
_.R.stop=function(){this.JSC$20108_xhr_&&(this.JSC$20108_xhr_.abort(),this.JSC$20108_xhr_=null);isNaN(this.JSC$20108_timer_)||(_.$r(this.JSC$20108_timer_),this.JSC$20108_timer_=NaN)};
_.R.disposeInternal=function(){this.stop();na.prototype.disposeInternal.call(this)};
_.R.poll_=function(){this.JSC$20108_timer_=NaN;this.JSC$20108_xhr_=_.Kt(fa(this.JSC$20108_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.K8)(this.JSC$20110_onSuccess_,this),onError:(0,_.K8)(this.onError_,this),onTimeout:(0,_.K8)(this.JSC$20110_onTimeout_,this)})};
_.R.JSC$20110_onSuccess_=function(X,H){this.JSC$20108_xhr_=null;X=H.screen||{};X.dialId=this.deviceId_;X.name=this.friendlyName_;H=-1;this.enableShortLivedLoungeToken_&&X.shortLivedLoungeToken&&X.shortLivedLoungeToken.value&&X.shortLivedLoungeToken.refreshIntervalMs&&(X.screenIdType="shortLived",X.loungeToken=X.shortLivedLoungeToken.value,H=X.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new y1(X),H)};
_.R.onError_=function(X){this.JSC$20108_xhr_=null;X.status&&X.status==404?this.pollIndex_>=D3A.length?this.publish("pairingFailed",Error("bl")):(X=D3A[this.pollIndex_],this.JSC$20108_timer_=_.b0((0,_.K8)(this.poll_,this),X),this.pollIndex_++):this.publish("pairingFailed",Error("cl`"+X.status))};
_.R.JSC$20110_onTimeout_=function(){this.JSC$20108_xhr_=null;this.publish("pairingFailed",Error("dl"))};
var D3A=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.To(Da,ka);_.R=Da.prototype;_.R.start=function(){xa(this)&&this.publish("screenChange");!_.Ce("yt-remote-lounge-token-expiration")&&tGd(this);_.$r(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.b0((0,_.K8)(this.start,this),1E4)};
_.R.add=function(X,H){xa(this);zcl(this,X);WNy(this,!1);this.publish("screenChange");H(X);X.token||tGd(this)};
_.R.remove=function(X,H){var l=xa(this);kLC(this,X)&&(WNy(this,!1),l=!0);H(X);l&&this.publish("screenChange")};
_.R.updateName=function(X,H,l,b){var U=xa(this),K=this.get(X.id);K?(K.name!=H&&(K.name=H,WNy(this,!1),U=!0),l(X)):b(Error("el"));U&&this.publish("screenChange")};
_.R.disposeInternal=function(){_.$r(this.loungeTokenRefreshTimer_);Da.superClass_.disposeInternal.call(this)};
var tGd=function(X){if(X.screens.length){var H=_.qz(X.screens,function(b){return b.id}),l=fa(X.JSC$20112_http_,"/pairing/get_lounge_token_batch");
X.JSC$20112_http_.sendRequest("POST",l,{screen_ids:H.join(",")},(0,_.K8)(X.handleLoungeTokens_,X),(0,_.K8)(X.handleLoungeTokenError_,X))}};
Da.prototype.handleLoungeTokens_=function(X){xa(this);var H=this.screens.length;X=X&&X.screens||[];for(var l=X.length,b=0;b<l;++b){var U=X[b],K=this.get(U.screenId);K&&(K.token=U.loungeToken,--H)}WNy(this,!H);H&&Sp(this.JSC$20105_logName_,"Missed "+H+" lounge tokens.")};
Da.prototype.handleLoungeTokenError_=function(X){Sp(this.JSC$20105_logName_,"Requesting lounge tokens failed: "+X)};
var xa=function(X){if(_.P("deprecate_pair_servlet_enabled"))return nTa(X,[]);var H=fBy(hoZ());H=_.jY(H,function(l){return!l.uuid});
return nTa(X,H)},WNy=function(X,H){BCA(_.qz(X.screens,VG5));
H&&Fal()};var sr=function(X,H){na.call(this);this.getScreensToCheck_=H;H=(H=_.Ce("yt-remote-online-screen-ids")||"")?H.split(","):[];for(var l={},b=this.getScreensToCheck_(),U=b.length,K=0;K<U;++K){var w=b[K].id;l[w]=_.vh(H,w)}this.screenIdSet_=l;this.JSC$20115_http_=X;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;ETe("Initialized with "+_.yD(this.screenIdSet_))};
_.S(sr,na);sr.prototype.isOnline=function(X){return!!this.screenIdSet_[X]};
sr.prototype.start=function(){var X=parseInt(_.Ce("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.QC()-144E5<X?0:X)?gTC(this):(this.fastCheckEndTime_=_.QC()+3E5,_.R6("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
sr.prototype.isEmpty=function(){return _.Bb.isEmpty(this.screenIdSet_)};
sr.prototype.update=function(){ETe("Updating availability on schedule.");var X=this.getScreensToCheck_(),H=_.Bb.filter(this.screenIdSet_,function(l,b){return l&&!!V1(X,b)},this);
GLd(this,H)};
var aB$=function(X,H,l){var b=fa(X.JSC$20115_http_,"/pairing/get_screen_availability");X.JSC$20115_http_.sendRequest("POST",b,{lounge_token:H.token},(0,_.K8)(function(U){U=U.screens||[];for(var K=U.length,w=0;w<K;++w)if(U[w].loungeToken==H.token){l(U[w].status=="online");return}l(!1)},X),(0,_.K8)(function(){l(!1)},X))};
sr.prototype.disposeInternal=function(){_.$r(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);na.prototype.disposeInternal.call(this)};
var GLd=function(X,H){a:if(_.Bb.getCount(H)!=_.Bb.getCount(X.screenIdSet_))var l=!1;else{l=_.Bb.getKeys(H);for(var b=l.length,U=0;U<b;++U)if(!X.screenIdSet_[l[U]]){l=!1;break a}l=!0}l||(ETe("Updated online screens: "+_.yD(X.screenIdSet_)),X.screenIdSet_=H,X.publish("screenChange"));ZIp(X)},gTC=function(X){isNaN(X.refreshTimer_)||_.$r(X.refreshTimer_);
X.refreshTimer_=_.b0((0,_.K8)(X.requestScreenAvailability_,X),X.fastCheckEndTime_>0&&X.fastCheckEndTime_<_.QC()?2E4:1E4)};
sr.prototype.requestScreenAvailability_=function(){_.$r(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var X=iId(this);if(_.Bb.getCount(X)){var H=fa(this.JSC$20115_http_,"/pairing/get_screen_availability"),l={lounge_token:_.Bb.getKeys(X).join(",")};this.currentRequest_=this.JSC$20115_http_.sendRequest("POST",H,l,(0,_.K8)(this.onScreenAvailability_,this,X),(0,_.K8)(this.onScreenAvailabilityError_,this))}else GLd(this,{}),gTC(this)};
sr.prototype.onScreenAvailability_=function(X,H){this.currentRequest_=null;var l=_.Bb.getKeys(iId(this));if(_.YN(l,_.Bb.getKeys(X))){H=H.screens||[];l={};for(var b=H.length,U=0;U<b;++U)l[X[H[U].loungeToken]]=H[U].status=="online";GLd(this,l);gTC(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
sr.prototype.onScreenAvailabilityError_=function(X){this.warn_("Screen availability failed: "+X);this.currentRequest_=null;gTC(this)};
var ETe=function(X){Sp("OnlineScreenService",X)};
sr.prototype.warn_=function(X){Sp("OnlineScreenService",X)};
var iId=function(X){var H={};_.Ot(X.getScreensToCheck_(),function(l){l.token?H[l.token]=l.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return H},ZIp=function(X){X=_.Bb.getKeys(_.Bb.filter(X.screenIdSet_,function(H){return H}));
X.sort(_.GKy);X.length?_.R6("yt-remote-online-screen-ids",X.join(","),60):_.wu("yt-remote-online-screen-ids")};_.To(tU,ka);_.R=tU.prototype;_.R.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.R.add=function(X,H,l){this.localScreenService_.add(X,H,l)};
_.R.remove=function(X,H,l){this.localScreenService_.remove(X,H,l);this.onlineScreenService_.update()};
_.R.updateName=function(X,H,l,b){this.localScreenService_.contains(X)?this.localScreenService_.updateName(X,H,l,b):(X="Updating name of unknown screen: "+X.name,Sp(this.JSC$20105_logName_,X),b(Error(X)))};
_.R.getScreens=function(X){return X?this.screens:qeZ(this.screens,_.jY(this.automaticScreens_,function(H){return!this.contains(H)},this))};
_.R.JSC$20120_getOnlineScreens=function(){return _.jY(this.getScreens(!0),function(X){return this.onlineScreenService_.isOnline(X.id)},this)};
var OIe=function(X,H,l,b,U,K){X.info("getAutomaticScreenByIds "+l+" / "+H);l||(l=X.deviceToScreenId_[H]);var w=X.getScreens(),d=l?V1(w,l):null;l&&(X.disableAutomaticScreenCache_||d)||(d=V1(w,H));if(d){d.uuid=H;var B=Mr(X,d);aB$(X.onlineScreenService_,B,function(q){U(q?B:null)})}else l?vTp(X,l,(0,_.K8)(function(q){var u=Mr(this,new y1({name:b,
screenId:l,loungeToken:q,dialId:H||""}));aB$(this.onlineScreenService_,u,function(e){U(e?u:null)})},X),K):U(null)};
tU.prototype.JSC$20120_getScreenByPollingPairingCode=function(X,H,l,b,U,K){var w=this;this.info("getDialScreenByPairingCode "+X+" / "+H);var d=new x3Z(this.JSC$20118_http_,X,H,l,b);d.subscribe("pairingComplete",function(B,q){_.Gp(d);U(Mr(w,B),q)});
d.subscribe("pairingFailed",function(B){_.Gp(d);K(B)});
d.start();return(0,_.K8)(d.stop,d)};
var m3a=function(X,H){for(var l=X.screens.length,b=0;b<l;++b)if(X.screens[b].name==H)return X.screens[b];return null};
tU.prototype.JSC$20120_getScreenByPairingCode=function(X,H,l,b){_.Kt(fa(this.JSC$20118_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:X},timeout:5E3,onSuccess:(0,_.K8)(function(U,K){U=new y1(K.screen||{});if(!U.name||m3a(this,U.name)){a:{K=U.name;for(var w=2,d=H(K,w);m3a(this,d);){w++;if(w>20)break a;d=H(K,w)}K=d}U.name=K}l(Mr(this,U))},this),
onError:(0,_.K8)(function(U){b(Error("fl`"+U.status))},this),
onTimeout:(0,_.K8)(function(){b(Error("gl"))},this)})};
var QWl=function(X,H,l){aB$(X.onlineScreenService_,H,l)};
tU.prototype.disposeInternal=function(){_.Gp(this.localScreenService_);_.Gp(this.onlineScreenService_);tU.superClass_.disposeInternal.call(this)};
var vTp=function(X,H,l,b){X.info("requestLoungeToken_ for "+H);var U={postParams:{screen_ids:H},method:"POST",context:X,onSuccess:function(K,w){K=w&&w.screens||[];K[0]&&K[0].screenId==H?l(K[0].loungeToken):b(Error("hl"))},
onError:function(){b(Error("il"))}};
_.Kt(fa(X.JSC$20118_http_,"/pairing/get_lounge_token_batch"),U)},Tqp=function(X){X.screens=X.localScreenService_.getScreens();
for(var H=_.Bb.transpose(X.deviceToScreenId_),l=X.screens.length,b=0;b<l;++b){var U=X.screens[b];U.uuid=H[U.id]||""}X.info("Updated manual screens: "+Waa(X.screens))};
tU.prototype.handleScreenChange_=function(){Tqp(this);this.publish("screenChange");this.onlineScreenService_.update()};
var ElN=function(X){NqC(X);X.localScreenService_=new Da(X.JSC$20118_http_);X.localScreenService_.subscribe("screenChange",(0,_.K8)(X.handleScreenChange_,X));Tqp(X);X.disableAutomaticScreenCache_||(X.automaticScreens_=fBy(_.Ce("yt-remote-automatic-screen-cache")||[]));NqC(X);X.info("Initializing automatic screens: "+Waa(X.automaticScreens_));X.onlineScreenService_=new sr(X.JSC$20118_http_,(0,_.K8)(X.getScreens,X,!0));X.onlineScreenService_.subscribe("screenChange",(0,_.K8)(function(){this.publish("onlineScreenChange")},
X))},Mr=function(X,H){var l=X.get(H.id);
l?(l.uuid=H.uuid,H=l):((l=V1(X.automaticScreens_,H.uuid))?(l.id=H.id,l.token=H.token,H=l):X.automaticScreens_.push(H),X.disableAutomaticScreenCache_||cqx(X));NqC(X);X.deviceToScreenId_[H.uuid]=H.id;_.R6("yt-remote-device-id-map",X.deviceToScreenId_,31536E3);return H},cqx=function(X){X=_.jY(X.automaticScreens_,function(H){return H.idType!="shortLived"});
_.R6("yt-remote-automatic-screen-cache",_.qz(X,VG5))},NqC=function(X){X.deviceToScreenId_=_.Ce("yt-remote-device-id-map")||{}};
tU.prototype.dispose=tU.prototype.dispose;_.To(W7,na);var ul=function(X,H){X.screen_=H;X.publish("sessionScreen",X.screen_)},jW$=function(X,H){X.screen_&&(X.screen_.token=H,Mr(X.JSC$20122_screenService_,X.screen_));
X.publish("sessionScreen",X.screen_)};
W7.prototype.onSessionStopped=function(X){this.isDisposed()||(X&&(eV(this,""+X),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
W7.prototype.info=function(X){Sp(this.JSC$20122_logName_,X)};
var eV=function(X,H){Sp(X.JSC$20122_logName_,H)};
W7.prototype.JSC$20124_getCastSession=function(){return null};
W7.prototype.setDisplayStatus=function(X){var H=this.receiver_;X?(H.displayStatus=new chrome.cast.ReceiverDisplayStatus(X,[]),H.displayStatus.showStop=!0):H.displayStatus=null;chrome.cast.setReceiverDisplayStatus(H,(0,_.K8)(function(){this.info("Updated receiver status for "+H.friendlyName+": "+X)},this),(0,_.K8)(function(){eV(this,"Failed to update receiver status for: "+H.friendlyName)},this))};
W7.prototype.disposeInternal=function(){this.setDisplayStatus("");W7.superClass_.disposeInternal.call(this)};var y4=function(X,H,l){W7.call(this,X,H,"CastSession");var b=this;this.config_=l;this.JSC$20127_session_=null;this.JSC$20127_boundSessionUpdate_=(0,_.K8)(this.JSC$20129_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.K8)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.b0(function(){rqp(b,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20127_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20127_isInitLoungeToken_=!1;this.JSC$20127_lastLoungeTokenRefreshError_="unknown"};
_.S(y4,W7);_.R=y4.prototype;
_.R.setCastSession=function(X){if(this.JSC$20127_session_){if(this.JSC$20127_session_==X)return;eV(this,"Overriding cast session with new session object");Jqp(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_=X;this.JSC$20127_session_.addUpdateListener(this.JSC$20127_boundSessionUpdate_);this.JSC$20127_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);LNC(this,"getMdxSessionStatus")};
_.R.launchWithParams=function(X){this.info("launchWithParams no-op for Cast: "+_.yD(X))};
_.R.stop=function(){if(this.JSC$20127_session_)this.JSC$20127_session_.stop((0,_.K8)(function(){this.onSessionStopped()},this),(0,_.K8)(function(){this.onSessionStopped(Error("jl"))},this));
else this.onSessionStopped(Error("kl"))};
_.R.setDisplayStatus=function(){};
_.R.disposeInternal=function(){this.info("disposeInternal");Jqp(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;W7.prototype.disposeInternal.call(this)};
var IBZ=function(X,H){_.$r(X.getLoungeTokenTimeoutKey_);X.getLoungeTokenTimeoutKey_=0;H==0?YBZ(X):X.getLoungeTokenTimeoutKey_=_.b0(function(){YBZ(X)},H)},YBZ=function(X){LNC(X,"getLoungeToken");
_.$r(X.onLoungeTokenTimeoutKey_);X.onLoungeTokenTimeoutKey_=_.b0(function(){AqA(X,null)},3E4)},LNC=function(X,H){X.info("sendYoutubeMessage_: "+H+" "+_.yD(void 0));
var l={};l.type=H;X.JSC$20127_session_?X.JSC$20127_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",l,function(){},(0,_.K8)(function(){eV(this,"Failed to send message: "+H+".")},X)):eV(X,"Sending yt message without session: "+_.yD(l))};
y4.prototype.onYoutubeMessage_=function(X,H){if(!this.isDisposed())if(H)if(H=_.CN(H),_.r8(H))switch(X=""+H.type,H=H.data||{},this.info("onYoutubeMessage_: "+X+" "+_.yD(H)),X){case "mdxSessionStatus":rqp(this,H);break;case "loungeToken":AqA(this,H);break;default:eV(this,"Unknown youtube message: "+X)}else eV(this,"Unable to parse message.");else eV(this,"No data in message.")};
var XL$=function(X,H){if(H)X.info("onConnectedScreenId_: Received screenId: "+H),X.screen_&&X.screen_.id==H||X.getScreen_(H,function(l){ul(X,l)},function(){return X.onSessionStopped()},5);
else X.onSessionStopped(Error("ll"))},lhY=function(X,H,l){X.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(H));
var b=new y1(H);HZ5(X,b,function(U){U?(X.JSC$20127_isInitLoungeToken_=!0,Mr(X.JSC$20122_screenService_,b),ul(X,b),X.JSC$20127_lastLoungeTokenRefreshError_="unknown",IBZ(X,l)):(_.a0(Error("ml`"+JSON.stringify(H))),X.onSessionStopped())},5)},rqp=function(X,H){_.$r(X.sessionStatusTimeoutKey_);
X.sessionStatusTimeoutKey_=0;if(H)X.config_.enableCastLoungeToken&&H.loungeToken?H.deviceId?X.screen_&&X.screen_.uuid==H.deviceId||(H.loungeTokenRefreshIntervalMs?lhY(X,{name:X.receiver_.friendlyName,screenId:H.screenId,loungeToken:H.loungeToken,dialId:H.deviceId,screenIdType:"shortLived"},H.loungeTokenRefreshIntervalMs):(_.a0(Error("ol`"+JSON.stringify(H))),XL$(X,H.screenId))):(_.a0(Error("nl`"+JSON.stringify(H))),XL$(X,H.screenId)):XL$(X,H.screenId);else X.onSessionStopped(Error("ll"))},AqA=function(X,
H){_.$r(X.onLoungeTokenTimeoutKey_);
X.onLoungeTokenTimeoutKey_=0;var l=null;if(H)if(H.loungeToken){var b;((b=X.screen_)==null?void 0:b.token)==H.loungeToken&&(l="staleLoungeToken")}else l="missingLoungeToken";else l="noLoungeTokenResponse";l?(X.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(H)+", error: "+l)),X.JSC$20127_lastLoungeTokenRefreshError_=l,IBZ(X,3E4)):(jW$(X,H.loungeToken),X.JSC$20127_isInitLoungeToken_=!1,X.JSC$20127_lastLoungeTokenRefreshError_="unknown",IBZ(X,H.loungeTokenRefreshIntervalMs))};
y4.prototype.getScreen_=function(X,H,l,b){_.$r(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;OIe(this.JSC$20122_screenService_,this.receiver_.label,X,this.receiver_.friendlyName,(0,_.K8)(function(U){U?H(U):b>=0?(eV(this,"Screen "+X+" appears to be offline. "+b+" retries left."),this.getScreenTimeoutKey_=_.b0((0,_.K8)(this.getScreen_,this,X,H,l,b-1),300)):l(Error("pl"))},this),l)};
var HZ5=function(X,H,l,b){_.$r(X.JSC$20127_checkScreenAvailabilityTimeoutKey_);X.JSC$20127_checkScreenAvailabilityTimeoutKey_=0;QWl(X.JSC$20122_screenService_,H,function(U){U||b<0?l(U):X.JSC$20127_checkScreenAvailabilityTimeoutKey_=_.b0(function(){HZ5(X,H,l,b-1)},300)})};
y4.prototype.JSC$20124_getCastSession=function(){return this.JSC$20127_session_};
y4.prototype.JSC$20129_onSessionUpdate_=function(X){this.isDisposed()||X||(eV(this,"Cast session died."),this.onSessionStopped())};
var Jqp=function(X){_.$r(X.getScreenTimeoutKey_);X.getScreenTimeoutKey_=0;_.$r(X.JSC$20127_checkScreenAvailabilityTimeoutKey_);X.JSC$20127_checkScreenAvailabilityTimeoutKey_=0;_.$r(X.sessionStatusTimeoutKey_);X.sessionStatusTimeoutKey_=0;_.$r(X.onLoungeTokenTimeoutKey_);X.onLoungeTokenTimeoutKey_=0;_.$r(X.getLoungeTokenTimeoutKey_);X.getLoungeTokenTimeoutKey_=0};var V4=function(X,H,l,b){W7.call(this,X,H,"DialSession");this.config_=b;this.JSC$20131_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20131_theme_=l;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20131_deferredLaunchDeadlineTimer_=NaN;this.JSC$20131_boundSessionUpdate_=(0,_.K8)(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"};
_.S(V4,W7);V4.prototype.setCastSession=function(X){this.JSC$20131_session_=X;this.JSC$20131_session_.addUpdateListener(this.JSC$20131_boundSessionUpdate_)};
V4.prototype.launchWithParams=function(X){this.connectData_=X;this.deferredLaunch_()};
V4.prototype.stop=function(){o6a(this);if(this.JSC$20131_session_)this.JSC$20131_session_.stop((0,_.K8)(this.onSessionStopped,this,null),(0,_.K8)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
V4.prototype.disposeInternal=function(){o6a(this);this.JSC$20131_session_&&this.JSC$20131_session_.removeUpdateListener(this.JSC$20131_boundSessionUpdate_);this.JSC$20131_session_=null;W7.prototype.disposeInternal.call(this)};
var bZa=function(X){var H;return!!(X.config_.enableDialLoungeToken&&((H=X.JSC$20131_session_)==null?0:H.getDialAppInfo))},$ey=function(X){X.cancelPolling_=X.JSC$20122_screenService_.JSC$20120_getScreenByPollingPairingCode(X.reversePairingCode_,X.receiver_.label,X.receiver_.friendlyName,bZa(X),function(H,l){X.cancelPolling_=function(){};
X.JSC$20131_isInitLoungeToken_=!0;ul(X,H);H.idType=="shortLived"&&l>0&&Uee(X,l)},function(H){X.cancelPolling_=function(){};
X.onSessionStopped(H)})};
V4.prototype.JSC$20133_onSessionUpdate_=function(X){this.isDisposed()||X||(eV(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var Kgx=function(X){var H={};H.pairingCode=X.reversePairingCode_;H.theme=X.JSC$20131_theme_;Mw5()&&(H.env_useStageMdx=1);return _.Io(H)},Rsx=function(X){return new Promise(function(H){X.reversePairingCode_=X55();
if(X.connectData_){var l=new chrome.cast.DialLaunchResponse(!0,Kgx(X));H(l);$ey(X)}else X.deferredLaunch_=function(){_.$r(X.JSC$20131_deferredLaunchDeadlineTimer_);X.deferredLaunch_=function(){};
X.JSC$20131_deferredLaunchDeadlineTimer_=NaN;var b=new chrome.cast.DialLaunchResponse(!0,Kgx(X));H(b);$ey(X)},X.JSC$20131_deferredLaunchDeadlineTimer_=_.b0(function(){X.deferredLaunch_()},100)})},wLy=function(X,H,l){X.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(H));
var b=new y1(H);return(new Promise(function(U){C6y(X,b,function(K){K?(X.JSC$20131_isInitLoungeToken_=!0,Mr(X.JSC$20122_screenService_,b),ul(X,b),Uee(X,l)):_.a0(Error("rl`"+JSON.stringify(H)));U(K)},5)})).then(function(U){return U?new chrome.cast.DialLaunchResponse(!1):Rsx(X)})},dex=function(X,H){var l=X.launchData_.receiver.label,b=X.receiver_.friendlyName;
return(new Promise(function(U){OIe(X.JSC$20122_screenService_,l,H,b,function(K){K&&K.token&&ul(X,K);U(K)},function(K){eV(X,"Failed to get DIAL screen: "+K);
U(null)})})).then(function(U){return U&&U.token?new chrome.cast.DialLaunchResponse(!1):Rsx(X)})},C6y=function(X,H,l,b){_.$r(X.JSC$20131_checkScreenAvailabilityTimeoutKey_);
X.JSC$20131_checkScreenAvailabilityTimeoutKey_=0;QWl(X.JSC$20122_screenService_,H,function(U){U||b<0?l(U):X.JSC$20131_checkScreenAvailabilityTimeoutKey_=_.b0(function(){C6y(X,H,l,b-1)},300)})},Uee=function(X,H){X.info("getDialAppInfoWithTimeout_ "+H);
bZa(X)&&(_.$r(X.getDialAppInfoTimeoutKey_),X.getDialAppInfoTimeoutKey_=0,H==0?hsa(X):X.getDialAppInfoTimeoutKey_=_.b0(function(){hsa(X)},H))},hsa=function(X){bZa(X)&&X.JSC$20131_session_.getDialAppInfo(function(H){X.info("getDialAppInfo dialLaunchData: "+JSON.stringify(H));
H=H.extraData||{};var l=null;if(H.loungeToken){var b;((b=X.screen_)==null?void 0:b.token)==H.loungeToken&&(l="staleLoungeToken")}else l="missingLoungeToken";l?(X.JSC$20131_lastLoungeTokenRefreshError_=l,Uee(X,3E4)):(X.JSC$20131_isInitLoungeToken_=!1,X.JSC$20131_lastLoungeTokenRefreshError_="unknown",jW$(X,H.loungeToken),Uee(X,H.loungeTokenRefreshIntervalMs))},function(H){X.info("getDialAppInfo error: "+H);
X.JSC$20131_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Uee(X,3E4)})},o6a=function(X){_.$r(X.JSC$20131_checkScreenAvailabilityTimeoutKey_);
X.JSC$20131_checkScreenAvailabilityTimeoutKey_=0;_.$r(X.getDialAppInfoTimeoutKey_);X.getDialAppInfoTimeoutKey_=0;X.cancelPolling_();X.cancelPolling_=function(){};
_.$r(X.JSC$20131_deferredLaunchDeadlineTimer_)};var P_=function(X,H){W7.call(this,X,H,"ManualSession");this.JSC$20135_deferredLaunchDeadlineTimer_=_.b0((0,_.K8)(this.launchWithParams,this,null),150)};
_.S(P_,W7);P_.prototype.stop=function(){this.onSessionStopped()};
P_.prototype.setCastSession=function(){};
P_.prototype.launchWithParams=function(){_.$r(this.JSC$20135_deferredLaunchDeadlineTimer_);this.JSC$20135_deferredLaunchDeadlineTimer_=NaN;var X=V1(this.JSC$20122_screenService_.getScreens(),this.receiver_.label);if(X)ul(this,X);else this.onSessionStopped(Error("sl"))};
P_.prototype.disposeInternal=function(){_.$r(this.JSC$20135_deferredLaunchDeadlineTimer_);this.JSC$20135_deferredLaunchDeadlineTimer_=NaN;W7.prototype.disposeInternal.call(this)};var a8=function(X,H){na.call(this);this.config_=H;this.JSC$20138_screenService_=X;this.JSC$20138_appId_=H.appId||"233637DE";this.JSC$20138_theme_=H.theme||"cl";this.disableDial_=H.disableCastApi||!1;this.forceMirroring_=H.forceMirroring||!1;this.JSC$20138_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.K8)(this.onReceiverAction_,this)};
_.S(a8,na);
a8.prototype.init=function(X,H){chrome.cast.timeout.requestSession=3E4;var l=new chrome.cast.SessionRequest(this.JSC$20138_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.P("desktop_enable_cast_connect")&&(l.androidReceiverCompatible=!0);this.disableDial_||(l.dialRequest=new chrome.cast.DialRequest("YouTube"));var b=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;X=X||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var U=(0,_.K8)(this.onReceiverUpdated_,this);
l=new chrome.cast.ApiConfig(l,(0,_.K8)(this.onSessionEstablished_,this),U,b,X);l.customDialLaunchCallback=(0,_.K8)(this.onDialLaunchRequested_,this);chrome.cast.initialize(l,(0,_.K8)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),Sll(),this.JSC$20138_screenService_.subscribe("onlineScreenChange",(0,_.K8)(this.JSC$20140_onScreenChange_,this)),this.customReceivers_=FgZ(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.K8)(function(K){this.warn_("Failed to set initial custom receivers: "+
_.yD(K))},this)),this.publish("yt-remote-cast2-availability-change",B5$(this)),H(!0))},this),(0,_.K8)(function(K){this.warn_("Failed to initialize API: "+_.yD(K));
H(!1)},this))};
a8.prototype.setConnectedScreenStatus=function(X,H){ps("Setting connected screen ID: "+X+" -> "+H);if(this.JSC$20138_session_){var l=this.JSC$20138_session_.screen_;if(!X||l&&l.id!=X)ps("Unsetting old screen status: "+this.JSC$20138_session_.receiver_.friendlyName),SV(this,null)}if(X&&H){if(!this.JSC$20138_session_){X=V1(this.JSC$20138_screenService_.getScreens(),X);if(!X){ps("setConnectedScreenStatus: Unknown screen.");return}if(X.idType=="shortLived"){ps("setConnectedScreenStatus: Screen with id type to be short lived.");
return}l=qoU(this,X);l||(ps("setConnectedScreenStatus: Connected receiver not custom..."),l=new chrome.cast.Receiver(X.uuid?X.uuid:X.id,X.name),l.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(l),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.K8)(function(b){this.warn_("Failed to set initial custom receivers: "+_.yD(b))},this)));
ps("setConnectedScreenStatus: new active receiver: "+l.friendlyName);SV(this,new P_(this.JSC$20138_screenService_,l),!0)}this.JSC$20138_session_.setDisplayStatus(H)}else ps("setConnectedScreenStatus: no screen.")};
var qoU=function(X,H){return H?iq(X.customReceivers_,function(l){return ola(H,l.label)},X):null};
a8.prototype.setLaunchParams=function(X){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20138_session_?this.JSC$20138_session_.launchWithParams(X):this.warn_("Setting connection data without a session")};
a8.prototype.JSC$20140_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20138_session_?(this.JSC$20138_session_.stop(),SV(this,null)):ps("Stopping non-existing session")};
a8.prototype.requestSession=function(){chrome.cast.requestSession((0,_.K8)(this.onSessionEstablished_,this),(0,_.K8)(this.onSessionRequestFailed_,this))};
a8.prototype.disposeInternal=function(){this.JSC$20138_screenService_.unsubscribe("onlineScreenChange",(0,_.K8)(this.JSC$20140_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Oy(_.ij("yt.mdx.remote.debug.handlers_")||[],Pvl);_.Gp(this.JSC$20138_session_);na.prototype.disposeInternal.call(this)};
var ps=function(X){Sp("Controller",X)};
a8.prototype.warn_=function(X){Sp("Controller",X)};
var Pvl=function(X){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(X)},B5$=function(X){return X.hasCastReceiver_||!!X.customReceivers_.length||!!X.JSC$20138_session_},SV=function(X,H,l){H!=X.JSC$20138_session_&&(_.Gp(X.JSC$20138_session_),(X.JSC$20138_session_=H)?(l?X.publish("yt-remote-cast2-receiver-resumed",H.receiver_):X.publish("yt-remote-cast2-receiver-selected",H.receiver_),H.subscribe("sessionScreen",(0,_.K8)(X.onSessionScreen_,X,H)),H.subscribe("sessionFailed",
function(){return sj$(X,H)}),H.screen_?X.publish("yt-remote-cast2-session-change",H.screen_):l&&X.JSC$20138_session_.launchWithParams(null)):X.publish("yt-remote-cast2-session-change",null))},sj$=function(X,H){X.JSC$20138_session_==H&&X.publish("yt-remote-cast2-session-failed")};
_.R=a8.prototype;_.R.onSessionScreen_=function(X,H){this.JSC$20138_session_==X&&(H||SV(this,null),this.publish("yt-remote-cast2-session-change",H))};
_.R.onReceiverAction_=function(X,H){if(!this.isDisposed())if(X)switch(X.friendlyName=chrome.cast.unescape(X.friendlyName),ps("onReceiverAction_ "+X.label+" / "+X.friendlyName+"-- "+H),H){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20138_session_)if(this.JSC$20138_session_.receiver_.label!=X.label)ps("onReceiverAction_: Stopping active receiver: "+this.JSC$20138_session_.receiver_.friendlyName),this.JSC$20138_session_.stop();else{ps("onReceiverAction_: Casting to active receiver.");this.JSC$20138_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20138_session_.screen_);break}switch(X.receiverType){case chrome.cast.ReceiverType.CUSTOM:SV(this,new P_(this.JSC$20138_screenService_,X));break;case chrome.cast.ReceiverType.DIAL:SV(this,new V4(this.JSC$20138_screenService_,X,this.JSC$20138_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:SV(this,new y4(this.JSC$20138_screenService_,X,this.config_));break;default:this.warn_("Unknown receiver type: "+X.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20138_session_&&
this.JSC$20138_session_.receiver_.label==X.label?this.JSC$20138_session_.stop():this.warn_("Stopping receiver w/o session: "+X.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.R.onDialLaunchRequested_=function(X){if(this.isDisposed())return Promise.reject(Error("tl"));var H=X.receiver;H.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+H.friendlyName),H.receiverType=chrome.cast.ReceiverType.DIAL);var l=this.JSC$20138_session_?this.JSC$20138_session_.receiver_:null;if(!l||l.label!=H.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+H.friendlyName),Promise.reject(Error("ul"));if(l&&l.label==H.label&&l.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20138_session_.screen_)return ps("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 "'+l.receiverType+'" to "dial" for '+H.friendlyName);SV(this,new V4(this.JSC$20138_screenService_,H,this.JSC$20138_theme_,this.config_))}H=this.JSC$20138_session_;H.launchData_=X;H.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(X=H.launchData_.extraData||{},l=X.screenId||null,bZa(H)&&X.loungeToken?X.loungeTokenRefreshIntervalMs?X=wLy(H,{name:H.receiver_.friendlyName,screenId:X.screenId,loungeToken:X.loungeToken,dialId:H.launchData_.receiver.label,screenIdType:"shortLived"},X.loungeTokenRefreshIntervalMs):(_.a0(Error("ql`"+JSON.stringify(X))),X=dex(H,l)):X=dex(H,l)):X=Rsx(H);return X};
_.R.onSessionEstablished_=function(X){var H=this;if(!this.isDisposed()&&!this.forceMirroring_){ps("New cast session ID: "+X.sessionId);var l=X.receiver;if(l.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20138_session_)if(l.receiverType==chrome.cast.ReceiverType.CAST)ps("Got resumed cast session before resumed mdx connection."),l.friendlyName=chrome.cast.unescape(l.friendlyName),SV(this,new y4(this.JSC$20138_screenService_,l,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var b=this.JSC$20138_session_.receiver_,U=V1(this.JSC$20138_screenService_.getScreens(),b.label);U&&ola(U,l.label)&&b.receiverType!=chrome.cast.ReceiverType.CAST&&l.receiverType==chrome.cast.ReceiverType.CAST&&(ps("onSessionEstablished_: manual to cast session change "+l.friendlyName),_.Gp(this.JSC$20138_session_),this.JSC$20138_session_=new y4(this.JSC$20138_screenService_,l,this.config_),this.JSC$20138_session_.subscribe("sessionScreen",(0,_.K8)(this.onSessionScreen_,this,this.JSC$20138_session_)),
this.JSC$20138_session_.subscribe("sessionFailed",function(){return sj$(H,H.JSC$20138_session_)}),this.JSC$20138_session_.launchWithParams(null));
this.JSC$20138_session_.setCastSession(X)}}};
_.R.JSC$20140_getCastSession=function(){return this.JSC$20138_session_?this.JSC$20138_session_.JSC$20124_getCastSession():null};
_.R.onSessionRequestFailed_=function(X){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+_.yD(X)),X.code!=chrome.cast.ErrorCode.CANCEL&&SV(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.R.onReceiverUpdated_=function(X){ps("Receiver availability updated: "+X);if(!this.isDisposed()){var H=B5$(this);this.hasCastReceiver_=X==chrome.cast.ReceiverAvailability.AVAILABLE;B5$(this)!=H&&this.publish("yt-remote-cast2-availability-change",B5$(this))}};
var FgZ=function(X){var H=X.JSC$20138_screenService_.JSC$20120_getOnlineScreens(),l=X.JSC$20138_session_&&X.JSC$20138_session_.receiver_;X=_.qz(H,function(b){l&&ola(b,l.label)&&(l=null);var U=b.uuid?b.uuid:b.id,K=qoU(this,b);K?(K.label=U,K.friendlyName=b.name):(K=new chrome.cast.Receiver(U,b.name),K.receiverType=chrome.cast.ReceiverType.CUSTOM);return K},X);
l&&(l.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(l=new chrome.cast.Receiver(l.label,l.friendlyName),l.receiverType=chrome.cast.ReceiverType.CUSTOM),X.push(l));return X};
a8.prototype.JSC$20140_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=FgZ(this),ps("Updating custom receivers: "+_.yD(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.K8)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",B5$(this)))};
a8.prototype.setLaunchParams=a8.prototype.setLaunchParams;a8.prototype.setConnectedScreenStatus=a8.prototype.setConnectedScreenStatus;a8.prototype.stopSession=a8.prototype.JSC$20140_stopSession;a8.prototype.getCastSession=a8.prototype.JSC$20140_getCastSession;a8.prototype.requestSession=a8.prototype.requestSession;a8.prototype.init=a8.prototype.init;a8.prototype.dispose=a8.prototype.dispose;var MmC=_.W8(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),IpC=[],Oqx=_.z8(MmC);var ubN=function(X){X.audioTrackId=null;X.trackData=null;X.playerState=-1;X.hasPrevious=!1;X.hasNext=!1;X.playerTime_=0;X.playerTimeAt_=_.QC();X.seekableStart_=0;X.seekableEnd_=0;X.duration_=0;X.loadedTime=0;X.liveIngestionTime_=NaN;X.isLive_=!1};
_.R=Za.prototype;
_.R.reset=function(X){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;X&&(this.index=X.index,this.listId=X.listId,this.videoId=X.videoId,this.playerState=X.playerState,this.volume=X.volume,this.muted=X.muted,this.audioTrackId=X.audioTrackId,this.trackData=X.trackData,this.hasPrevious=X.hasPrevious,this.hasNext=X.hasNext,this.playerTime_=X.playerTime,this.playerTimeAt_=X.playerTimeAt,this.seekableStart_=X.seekableStart,this.seekableEnd_=X.seekableEnd,this.duration_=X.duration,this.loadedTime=
X.loadedTime,this.liveIngestionTime_=X.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.R.stopPlayer=function(){this.index=-1;this.videoId="";ubN(this)};
_.R.isPlaying=function(){return this.playerState==1};
_.R.isBuffering=function(){return this.playerState==3};
_.R.isAdPlaying=function(){return this.playerState==1081};
var zM=function(X,H){X.playerTime_=H;X.playerTimeAt_=_.QC()},ese=function(X){switch(X.playerState){case 1:case 1081:return(_.QC()-X.playerTimeAt_)/1E3+X.playerTime_;
case -1E3:return 0}return X.playerTime_};
Za.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.QC()-this.playerTimeAt_)/1E3:0):this.duration_};
var yZ5=function(X,H,l){var b=X.videoId;X.videoId=H;X.index=l;H!=b&&ubN(X)},Vmd=function(X){var H={};
H.index=X.index;H.listId=X.listId;H.videoId=X.videoId;H.playerState=X.playerState;H.volume=X.volume;H.muted=X.muted;H.audioTrackId=X.audioTrackId;H.trackData=_.Bb.unsafeClone(X.trackData);H.hasPrevious=X.hasPrevious;H.hasNext=X.hasNext;H.playerTime=X.playerTime_;H.playerTimeAt=X.playerTimeAt_;H.seekableStart=X.seekableStart_;H.seekableEnd=X.seekableEnd_;H.duration=X.duration_;H.loadedTime=X.loadedTime;H.liveIngestionTime=X.liveIngestionTime_;return H};
Za.prototype.clone=function(){return new Za(Vmd(this))};var mM=function(X,H){na.call(this);var l=this;this.state_=0;this.connection_=X;this.contextSubscriptions_=[];this.actionQueue_=new TTY;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.K8)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.K8)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.K8)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.K8)(this.onCloudviewAvailabilityChange_,this);var b=0;X?(b=X.getProxyState(),
b!=3&&(X.subscribe("proxyStateChange",this.setState_,this),P6$(this))):b=3;b!=0&&(H?this.setState_(b):_.b0(function(){l.setState_(b)},0));
(X=lH5())&&fhp(this,X);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.S(mM,na);mM.prototype.getState=function(){return this.state_};
mM.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
mM.prototype.reconnect=function(){this.connection_.reconnect()};
var ns=function(X){return new Za(X.connection_.getPlayerContextData())};
_.R=mM.prototype;_.R.play=function(){kF(this)?(this.castMedia_?this.castMedia_.play(null,_.FK,pLe(this,"play")):xF(this,"play"),So$(this,1,ese(ns(this))),this.publish("remotePlayerChange")):DP(this,this.play)};
_.R.pause=function(){kF(this)?(this.castMedia_?this.castMedia_.pause(null,_.FK,pLe(this,"pause")):xF(this,"pause"),So$(this,2,ese(ns(this))),this.publish("remotePlayerChange")):DP(this,this.pause)};
_.R.seekTo=function(X){if(kF(this)){if(this.castMedia_){var H=ns(this),l=new chrome.cast.media.SeekRequest;l.currentTime=X;H.isPlaying()||H.isBuffering()?l.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:l.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(l,_.FK,pLe(this,"seekTo",{newTime:X}))}else xF(this,"seekTo",{newTime:X});So$(this,3,X);this.publish("remotePlayerChange")}else DP(this,_.lH(this.seekTo,X))};
_.R.stop=function(){if(kF(this)){this.castMedia_?this.castMedia_.stop(null,_.FK,pLe(this,"stopVideo")):xF(this,"stopVideo");var X=ns(this);X.stopPlayer();tp(this,X);this.publish("remotePlayerChange")}else DP(this,this.stop)};
_.R.setVolume=function(X,H){if(kF(this)){var l=ns(this);if(this.castSession_){if(l.volume!=X){var b=Math.round(X)/100;this.castSession_.setReceiverVolumeLevel(b,(0,_.K8)(function(){zs("set receiver volume: "+b)},this),(0,_.K8)(function(){this.warn_("failed to set receiver volume.")},this))}l.muted!=H&&this.castSession_.setReceiverMuted(H,(0,_.K8)(function(){zs("set receiver muted: "+H)},this),(0,_.K8)(function(){this.warn_("failed to set receiver muted.")},this))}else{var U={volume:X,
muted:H};l.volume!=-1&&(U.delta=X-l.volume);xF(this,"setVolume",U)}l.muted=H;l.volume=X;tp(this,l)}else DP(this,_.lH(this.setVolume,X,H))};
_.R.setAudioTrack=function(X,H){kF(this)?(H=H.getLanguageInfo().getId(),xF(this,"setAudioTrack",{videoId:X,audioTrackId:H}),X=ns(this),X.audioTrackId=H,tp(this,X)):DP(this,_.lH(this.setAudioTrack,X,H))};
_.R.addVideo=function(X){kF(this)?xF(this,"addVideo",{videoId:X}):DP(this,_.lH(this.addVideo,X))};
_.R.addPlaylist=function(X){kF(this)?xF(this,"addVideos",{listId:X}):DP(this,_.lH(this.addPlaylist,X))};
_.R.addVideos=function(X){X.length==0?this.warn_("Ignore add videos request due to empty list"):kF(this)?xF(this,"addVideos",{videoIds:X.join(",")}):DP(this,_.lH(this.addVideos,X))};
_.R.JSC$20150_removeVideo=function(X){kF(this)?xF(this,"removeVideo",{videoId:X}):DP(this,_.lH(this.JSC$20150_removeVideo,X))};
_.R.JSC$20150_insertVideo=function(X){kF(this)?xF(this,"insertVideo",{videoId:X}):DP(this,_.lH(this.JSC$20150_insertVideo,X))};
_.R.playVideo=function(X,H,l,b,U,K,w){b=b===void 0?null:b;U=U===void 0?null:U;K=K===void 0?null:K;w=w===void 0?null:w;var d=ns(this),B={videoId:X};l!==void 0&&(B.currentIndex=l);yZ5(d,X,l||0);H!==void 0&&(zM(d,H),B.currentTime=H);b&&(B.listId=b);U&&(B.playerParams=U);K&&(B.clickTrackingParams=K);w&&(B.locationInfo=_.yD(w));xF(this,"setPlaylist",B);b||tp(this,d)};
_.R.nextVideo=function(X,H){if(kF(this)){if(X&&H){var l=ns(this);yZ5(l,X,H);tp(this,l)}xF(this,"next")}else DP(this,_.lH(this.nextVideo,X,H))};
_.R.clearPlaylist=function(){if(kF(this)){xF(this,"clearPlaylist");var X=ns(this);X.reset();tp(this,X);this.publish("remotePlayerChange")}else DP(this,this.clearPlaylist)};
_.R.dispose=function(){if(this.state_!=3){var X=this.state_;this.state_=3;this.publish("proxyStateChange",X,this.state_)}na.prototype.dispose.call(this)};
_.R.disposeInternal=function(){zsA(this);this.connection_=null;this.actionQueue_.clear();fhp(this,null);na.prototype.disposeInternal.call(this)};
var P6$=function(X){_.Ot("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(H){this.contextSubscriptions_.push(this.connection_.subscribe(H,_.lH(this.onProxyEvent_,H),this))},X)},zsA=function(X){_.Ot(X.contextSubscriptions_,function(H){this.connection_.unsubscribeByKey(H)},X);
X.contextSubscriptions_.length=0},kF=function(X){return X.getState()==1},DP=function(X,H){X.actionQueue_.getCount()<50&&X.actionQueue_.enqueue(H)},So$=function(X,H,l){var b=ns(X);
zM(b,l);b.playerState!=-1E3&&(b.playerState=H);tp(X,b)},xF=function(X,H,l){X.connection_.sendMessage(H,l)},tp=function(X,H){zsA(X);
X.connection_.setPlayerContextData(Vmd(H));P6$(X)};
mM.prototype.setState_=function(X){if((X!=this.state_||X==2)&&this.state_!=3&&X!=0){var H=this.state_;this.state_=X;this.publish("proxyStateChange",H,X);if(X==1)for(;!this.actionQueue_.isEmpty();)X=this.actionQueue_,rTe(X),X.front_.pop().apply(this);else X==3&&this.dispose()}};
mM.prototype.onProxyEvent_=function(X,H){this.publish(X,H)};
var fhp=function(X,H){X.castSession_&&(X.castSession_.removeUpdateListener(X.boundCastStatusListener_),X.castSession_.removeMediaListener(X.boundCastMediaListener_),X.onCastMediaChange_(null));X.castSession_=H;if(X.castSession_&&(zs("Setting cast session: "+X.castSession_.sessionId),X.castSession_.addUpdateListener(X.boundCastStatusListener_),X.castSession_.addMediaListener(X.boundCastMediaListener_),X.castSession_.media.length))X.onCastMediaChange_(X.castSession_.media[0])};
mM.prototype.onCastStatusUpdate_=function(X){if(!X)this.onCastMediaChange_(null),fhp(this,null);else if(this.castSession_.receiver.volume){X=this.castSession_.receiver.volume;var H=ns(this),l=Math.round(100*X.level||0);if(H.volume!=l||H.muted!=X.muted)zs("Cast volume update: "+X.level+(X.muted?" muted":"")),H.volume=l,H.muted=!!X.muted,tp(this,H)}};
mM.prototype.onCastMediaChange_=function(X){zs("Cast media: "+!!X);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=X)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),n65(this),this.publish("remotePlayerChange")};
var n65=function(X){var H=X.castMedia_.media,l=X.castMedia_.customData;if(H&&l){var b=ns(X);H.contentId!=b.videoId&&zs("Cast changing video to: "+H.contentId);b.videoId=H.contentId;b.playerState=l.playerState;zM(b,X.castMedia_.getEstimatedTime());tp(X,b)}else zs("No cast media video. Ignoring state update.")};
mM.prototype.onCastMediaUpdate_=function(X){if(X)n65(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
mM.prototype.onCloudviewAvailabilityChange_=function(){var X=lH5();X&&fhp(this,X)};
mM.prototype.warn_=function(X){Sp("CP",X)};
var pLe=function(X,H,l){return(0,_.K8)(function(b){this.warn_("Failed to "+H+" with cast v2 channel. Error code: "+b.code);b.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+H+" using MDx browser channel."),xF(this,H,l))},X)};var Q1=function(X,H,l,b){b=b===void 0?!1:b;na.call(this);var U=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_=X;this.enableConnectWithInitialState_=b;this.listeners_.push(_.cB(window,"beforeunload",function(){U.JSC$20158_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Za;this.currentScreenId_=H.id;this.currentScreenIdType_=H.idType;this.channelService=Vwl(this.JSC$20155_http_,l,this.JSC$20158_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){k6a(U)});
this.channelService.listen("channelClosed",function(){W_("Channel closed");isNaN(U.connectTimerId_)?ql5(!0):ql5();U.dispose()});
this.channelService.listen("channelError",function(K){ql5();isNaN(U.getReconnectTimeout_())?(K==1&&U.currentScreenIdType_=="shortLived"&&U.publish("browserChannelAuthError",K),W_("Channel error: "+K+" without reconnection"),U.dispose()):(U.reconnecting_=!0,W_("Channel error: "+K+" with reconnection in "+U.getReconnectTimeout_()+" ms"),xeY(U,2))});
this.channelService.listen("channelMessage",function(K){DeZ(U,K)});
this.channelService.setLoungeToken(H.token);this.subscribe("remoteQueueChange",function(){var K=U.playerContext_.videoId;$qy()&&_.R6("yt-remote-session-video-id",K)})};
_.S(Q1,na);
Q1.prototype.connect=function(X,H){if(H){var l=H.listId,b=H.videoId,U=H.videoIds,K=H.playerParams,w=H.clickTrackingParams,d=H.index,B={videoId:b},q=H.currentTime,u=H.locationInfo;H=H.loopMode;q!==void 0&&(B.currentTime=q<=5?0:q);K&&(B.playerParams=K);u&&(B.locationInfo=u);w&&(B.clickTrackingParams=w);l&&(B.listId=l);U&&U.length>0&&(B.videoIds=U.join(","));d!==void 0&&(B.currentIndex=d);this.enableConnectWithInitialState_&&(B.loopMode=H||"LOOP_MODE_OFF");l&&(this.playerContext_.listId=l);this.playerContext_.videoId=
b;this.playerContext_.index=d||0;this.playerContext_.state=3;zM(this.playerContext_,q);this.autoplayMode_="UNSUPPORTED";l=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";W_("Connecting with "+l+" and params: "+_.yD(B));this.channelService.connect({method:l,params:_.yD(B)},X,dqd())}else W_("Connecting without params"),this.channelService.connect({},X,dqd());tml(this)};
Q1.prototype.setLoungeToken=function(X){this.channelService.setLoungeToken(X)};
Q1.prototype.dispose=function(){this.isDisposed()||(_.cQ("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),xeY(this,3));na.prototype.dispose.call(this)};
Q1.prototype.disposeInternal=function(){WgU(this);E6N(this);g6y(this);_.$r(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.$r(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.NCy(this.listeners_);this.listeners_.length=0;this.channelService.dispose();na.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var G6U=function(X){return iq(X.connectedDevices_,function(H){return H.type=="LOUNGE_SCREEN"})},W_=function(X){Sp("conn",X)},xeY=function(X,H){X.publish("proxyStateChange",H)},tml=function(X){X.connectTimerId_=_.b0(function(){W_("Connecting timeout");
X.JSC$20158_disconnect_(1)},2E4)},WgU=function(X){_.$r(X.connectTimerId_);
X.connectTimerId_=NaN},g6y=function(X){_.$r(X.reconnectedCheckScreenTimeout_);
X.reconnectedCheckScreenTimeout_=NaN},ZZY=function(X){E6N(X);
X.playingSyncTimerId_=_.b0(function(){ahU(X,"getNowPlaying")},2E4)},E6N=function(X){_.$r(X.playingSyncTimerId_);
X.playingSyncTimerId_=NaN},k6a=function(X){W_("Channel opened");
X.reconnecting_&&(X.reconnecting_=!1,g6y(X),X.reconnectedCheckScreenTimeout_=_.b0(function(){W_("Timing out waiting for a screen.");X.JSC$20158_disconnect_(1)},15E3))},v6$=function(X,H){var l=null;
if(H){var b=G6U(X);b&&(l={clientName:b.clientName,deviceMake:b.brand,deviceModel:b.model,osVersion:b.osVersion})}_.cQ("yt.mdx.remote.remoteClient_",l);H&&(WgU(X),g6y(X));l=X.channelService.isChannelOpened()&&isNaN(X.connectTimerId_);H==l?H&&(xeY(X,1),ahU(X,"getSubtitlesTrack")):H?(X.getOtherConnectedRemoteId_()&&X.playerContext_.reset(),xeY(X,1),ahU(X,"getNowPlaying"),iZx(X)):X.JSC$20158_disconnect_(1)},OZe=function(X,H){var l=H.params.videoId;
delete H.params.videoId;l==X.playerContext_.videoId&&(_.Bb.isEmpty(H.params)?X.playerContext_.trackData=null:X.playerContext_.trackData=H.params,X.publish("remotePlayerChange"))},mey=function(X,H,l){var b=H.params.videoId||H.params.video_id,U=parseInt(H.params.currentIndex,10);
X.playerContext_.listId=H.params.listId||X.playerContext_.listId;yZ5(X.playerContext_,b,U);X.publish("remoteQueueChange",l)},Qjp=function(X,H){H.params=H.params||{};
mey(X,H,"NOW_PLAYING_MAY_CHANGE");X.onStateChange_(H);X.publish("autoplayDismissed")};
Q1.prototype.onStateChange_=function(X){var H=parseInt(X.params.currentTime||X.params.current_time,10);zM(this.playerContext_,isNaN(H)?0:H);H=parseInt(X.params.state,10);H=isNaN(H)?-1:H;H==-1&&this.playerContext_.playerState==-1E3&&(H=-1E3);this.playerContext_.playerState=H;H=Number(X.params.loadedTime);this.playerContext_.loadedTime=isNaN(H)?0:H;H=Number(X.params.duration);this.playerContext_.duration_=isNaN(H)?0:H;H=this.playerContext_;var l=Number(X.params.liveIngestionTime);H.liveIngestionTime_=
l;H.isLive_=isNaN(l)?!1:!0;H=this.playerContext_;l=Number(X.params.seekableStartTime);X=Number(X.params.seekableEndTime);H.seekableStart_=isNaN(l)?0:l;H.seekableEnd_=isNaN(X)?0:X;this.playerContext_.playerState==1?ZZY(this):E6N(this);this.publish("remotePlayerChange")};
Q1.prototype.onAdStateChange_=function(X){if(this.playerContext_.playerState!=-1E3){var H=1085;switch(parseInt(X.params.adState,10)){case 1:H=1081;break;case 2:H=1084;break;case 0:H=1083}this.playerContext_.playerState=H;X=parseInt(X.params.currentTime,10);zM(this.playerContext_,isNaN(X)?0:X);this.publish("remotePlayerChange")}};
var T5e=function(X,H){var l=H.params.muted=="true";X.playerContext_.volume=parseInt(H.params.volume,10);X.playerContext_.muted=l;X.publish("remotePlayerChange")},N5C=function(X,H){X.autoplayVideoId_=H.params.videoId;
X.publish("nowAutoplaying",parseInt(H.params.timeout,10))},cZ$=function(X,H){X.autoplayVideoId_=H.params.videoId||null;
X.publish("autoplayUpNext",X.autoplayVideoId_)},jjx=function(X,H){X.autoplayMode_=H.params.autoplayMode;
X.publish("autoplayModeChange",X.autoplayMode_);X.autoplayMode_=="DISABLED"&&X.publish("autoplayDismissed")},rZ5=function(X,H){var l=H.params.hasNext=="true";
X.playerContext_.hasPrevious=H.params.hasPrevious=="true";X.playerContext_.hasNext=l;X.publish("previousNextChange")};
Q1.prototype.isCapabilitySupportedOnConnectedDevices_=function(X){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var H=_.C(this.connectedDevices_),l=H.next();!l.done;l=H.next())if(!l.value.capabilities.has(X))return!1;return!0};
var DeZ=function(X,H){H=H.message;H.params?W_("Received: action="+H.action+", params="+_.yD(H.params)):W_("Received: action="+H.action+" {}");switch(H.action){case "loungeStatus":H=_.CN(H.params.devices);X.connectedDevices_=_.qz(H,function(b){return new qr(b)});
H=!!iq(X.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"});
v6$(X,H);H=X.isCapabilitySupportedOnConnectedDevices_("mlm");X.publish("multiStateLoopEnabled",H);break;case "loungeScreenDisconnected":BVy(X.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"});
v6$(X,!1);break;case "remoteConnected":var l=new qr(_.CN(H.params.device));iq(X.connectedDevices_,function(b){return b.equals(l)})||_.DWK(X.connectedDevices_,l);
break;case "remoteDisconnected":l=new qr(_.CN(H.params.device));BVy(X.connectedDevices_,function(b){return b.equals(l)});
break;case "gracefulDisconnect":break;case "playlistModified":mey(X,H,"QUEUE_MODIFIED");break;case "nowPlaying":Qjp(X,H);break;case "onStateChange":X.onStateChange_(H);break;case "onAdStateChange":X.onAdStateChange_(H);break;case "onVolumeChanged":T5e(X,H);break;case "onSubtitlesTrackChanged":OZe(X,H);break;case "nowAutoplaying":N5C(X,H);break;case "autoplayDismissed":X.publish("autoplayDismissed");break;case "autoplayUpNext":cZ$(X,H);break;case "onAutoplayModeChanged":jjx(X,H);break;case "onHasPreviousNextChanged":rZ5(X,
H);break;case "requestAssistedSignIn":X.publish("assistedSignInRequested",H.params.authCode);break;case "onLoopModeChanged":X.publish("loopModeChange",H.params.loopMode);break;default:W_("Unrecognized action: "+H.action)}};
_.R=Q1.prototype;_.R.getProxyState_=function(){var X=3;this.isDisposed()||(X=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(X=1):X=2);return X};
_.R.JSC$20158_disconnect_=function(X){W_("Disconnecting with "+X);_.cQ("yt.mdx.remote.remoteClient_",null);WgU(this);this.publish("beforeDisconnect",X);X==1&&ql5();this.channelService.disconnect(X);this.dispose()};
_.R.getPlayerContextData_=function(){var X=this.playerContext_;this.clientVideoId_&&(X=this.playerContext_.clone(),yZ5(X,this.clientVideoId_,X.index));return Vmd(X)};
_.R.setPlayerContextData_=function(X){var H=this,l=new Za(X);l.videoId&&l.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=l.videoId,_.$r(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.b0(function(){if(H.clientVideoId_){var U=H.clientVideoId_;H.clientVideoId_=null;H.playerContext_.videoId!=U&&ahU(H,"getNowPlaying")}},5E3));
var b=[];this.playerContext_.listId==l.listId&&this.playerContext_.videoId==l.videoId&&this.playerContext_.index==l.index||b.push("remoteQueueChange");this.playerContext_.playerState==l.playerState&&this.playerContext_.volume==l.volume&&this.playerContext_.muted==l.muted&&ese(this.playerContext_)==ese(l)&&_.yD(this.playerContext_.trackData)==_.yD(l.trackData)||b.push("remotePlayerChange");this.playerContext_.reset(X);_.Ot(b,function(U){this.publish(U)},this)};
_.R.getOtherConnectedRemoteId_=function(){var X=this.channelService.getDeviceId(),H=iq(this.connectedDevices_,function(l){return l.type=="REMOTE_CONTROL"&&l.id!=X});
return H?H.id:""};
_.R.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.R.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.R.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.R.JSC$20158_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var iZx=function(X){_.$r(X.idleDisconnectTimerId_);X.idleDisconnectTimerId_=_.b0(function(){X.JSC$20158_disconnect_(1)},864E5)},ahU=function(X,H,l){l?W_("Sending: action="+H+", params="+_.yD(l)):W_("Sending: action="+H);
X.channelService.sendMessage(H,l)};
Q1.prototype.sendMessageWithUserAction_=function(X,H){ahU(this,X,H);iZx(this)};
Q1.prototype.JSC$20158_getXsrfToken_=function(){var X=_.wL.get("SAPISID","")||_.wL.get("__Secure-1PAPISID",void 0)||"",H=_.wL.get("__Secure-3PAPISID","")||"";if(!X&&!H)return"";X=_.Ik(_.$N(X),2);H=_.Ik(_.$N(H),2);return _.Ik(_.$N(","+X+","+H),2)};
Q1.prototype.subscribe=Q1.prototype.subscribe;Q1.prototype.unsubscribeByKey=Q1.prototype.unsubscribeByKey;Q1.prototype.getProxyState=Q1.prototype.getProxyState_;Q1.prototype.disconnect=Q1.prototype.JSC$20158_disconnect_;Q1.prototype.getPlayerContextData=Q1.prototype.getPlayerContextData_;Q1.prototype.setPlayerContextData=Q1.prototype.setPlayerContextData_;Q1.prototype.getOtherConnectedRemoteId=Q1.prototype.getOtherConnectedRemoteId_;Q1.prototype.getReconnectTimeout=Q1.prototype.getReconnectTimeout_;
Q1.prototype.getAutoplayMode=Q1.prototype.getAutoplayMode_;Q1.prototype.getAutoplayVideoId=Q1.prototype.getAutoplayVideoId_;Q1.prototype.reconnect=Q1.prototype.JSC$20158_reconnect_;Q1.prototype.sendMessage=Q1.prototype.sendMessageWithUserAction_;Q1.prototype.getXsrfToken=Q1.prototype.JSC$20158_getXsrfToken_;Q1.prototype.isCapabilitySupportedOnConnectedDevices=Q1.prototype.isCapabilitySupportedOnConnectedDevices_;var ziC=function(X){ka.call(this,"ScreenServiceProxy");this.instance_=X;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.K8)(this.JSC$20161_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.K8)(this.onOnlineScreenChange_,this)))};
_.S(ziC,ka);_.R=ziC.prototype;_.R.getScreens=function(X){return this.instance_.$_gs(X)};
_.R.contains=function(X){return!!this.instance_.$_c(X)};
_.R.get=function(X){return this.instance_.$_g(X)};
_.R.start=function(){this.instance_.$_st()};
_.R.add=function(X,H,l){this.instance_.$_a(X,H,l)};
_.R.remove=function(X,H,l){this.instance_.$_r(X,H,l)};
_.R.updateName=function(X,H,l,b){this.instance_.$_un(X,H,l,b)};
_.R.disposeInternal=function(){for(var X=this.subscriptionKeys_.length,H=0;H<X;++H)this.instance_.$_ubk(this.subscriptionKeys_[H]);this.subscriptionKeys_.length=0;this.instance_=null;ka.prototype.disposeInternal.call(this)};
_.R.JSC$20161_onScreenChange_=function(){this.publish("screenChange")};
_.R.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
tU.prototype.$_st=tU.prototype.start;tU.prototype.$_gspc=tU.prototype.JSC$20120_getScreenByPairingCode;tU.prototype.$_gsppc=tU.prototype.JSC$20120_getScreenByPollingPairingCode;tU.prototype.$_c=tU.prototype.contains;tU.prototype.$_g=tU.prototype.get;tU.prototype.$_a=tU.prototype.add;tU.prototype.$_un=tU.prototype.updateName;tU.prototype.$_r=tU.prototype.remove;tU.prototype.$_gs=tU.prototype.getScreens;tU.prototype.$_gos=tU.prototype.JSC$20120_getOnlineScreens;tU.prototype.$_s=tU.prototype.subscribe;
tU.prototype.$_ubk=tU.prototype.unsubscribeByKey;var yw$=null,kEN=!1,$nZ=null,iP=null,Sml=null,v7=[];var JZY=new _.DS("yt-menu"),Lga=function(){},Ih$=function(X,H,l){X=H=="right-click"?l.rightClickMenuPopupHint:l.menuPopupHint;
if(!(YoC(H)>10))return H=H||"default",JZY.set(H+"-impression",YoC(H)+1),X},YoC=function(X){return parseInt(JZY.get((X||"default")+"-impression")||0,10)};
_.mi(Lga);var AZp=function(){this.contexts_=new WeakMap;this.JSC$20167_networkService_=this.activeContext_=null},XIp=function(X,H,l){var b=X.contexts_.get(H);
b||(b=new b7Z(X.JSC$20167_networkService_),X.contexts_.set(H,b));X.activeContext_=b;l&&X.activeContext_.reset();X.activeContext_.start();return X.activeContext_};var Ts=_.Vsk(function(X){var H=_.XJ("DIV");X&&(H.className=X);H.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";X=_.XJ("DIV");_.Bv_(X,"200px","200px");H.appendChild(X);document.body.appendChild(H);X=H.offsetWidth-H.clientWidth;_.HE(H);return X});var c7=_.Yy("kevlar_watch_page_horizontal_margin",24),aHy=_.Yy("kevlar_watch_page_columns_top_padding",24),Dnl=426+c7*2,NB=_.Yy("kevlar_watch_two_column_width_threshold",1E3),Wye=c7*2,Ejp=_.Yy("kevlar_watch_secondary_width",402),GEU=_.Yy("kevlar_watch_max_player_width",1280),ZlN=_.Yy("kevlar_watch_flexy_metadata_height",136),gjA=Wye+310+c7,t25=Wye+360+c7;var Er=function(){};
Er.prototype.enqueue=function(){var X=this,H;return _.h(function(l){if(X.isCounterfactual())return(H=X.getCounterfactualData())&&X.shouldLogCounterfactualImpression()&&X.sendImpressionEndpoints(H),l.return();X.doEnqueue();_.m5(l)})};
Er.prototype.sendImpressionEndpoints=function(X){_.Zq.getInstance().triggerOptionalAction("yt-service-request",{},X[0])};var gE=function(X,H){this.renderer=X;this.page=H};
_.S(gE,Er);gE.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
gE.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
gE.prototype.shouldLogCounterfactualImpression=function(){return!0};
gE.prototype.doEnqueue=function(){var X=_.GE(this.page);X&&X.pause();this.renderer.impressionCommand&&_.Zq.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.qD(_.Zq.getInstance(),[this.renderer.promoCommand],this.page)};var H6d=function(X,H){this.renderer=X;this.resolver=_.kj();this.JSC$20179_enforcementCounter=new _.pBF;H?this.JSC$20179_playerManager=_.GE(H):this.JSC$20179_playerManager=null;_.J0(1,!0)};
_.S(H6d,Er);_.R=H6d.prototype;_.R.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var X=[];this.renderer.impressionEndpoints.forEach(function(H){(H=_.sl(H))&&X.push(H)});
return X}};
_.R.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.R.shouldLogCounterfactualImpression=function(){var X=_.odh();X?(this.JSC$20179_enforcementCounter.increment("POPUP"),_.J0(3)):_.J0(2);return X};
_.R.cancel=function(){this.resolver.promise.cancel()};
_.R.doEnqueue=function(){var X=this;_.odh()?(this.JSC$20179_enforcementCounter.increment("POPUP"),_.J0(3),lJU(this)):this.JSC$20179_playerManager?(this.resolver.promise.then(function(){lJU(X)}),o4$(this.resolver,this.JSC$20179_playerManager)):_.J0(2)};
var o4$=function(X,H){var l=_.kj();H.getPlayerPromise().then(function(b){l.resolve(b)});
l.promise.then(function(b){b.addEventListener("onAbnormalityDetected",X.resolve);_.MQ(X.promise,function(){b.removeEventListener("onAbnormalityDetected",X.resolve)})});
X.promise.thenCatch(function(){l.promise.cancel()})},lJU=function(X){_.J0(3);
var H={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:X.renderer}};H=_.Zq.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:H},{});Promise.all(H).then(function(){b6p();X.JSC$20179_playerManager&&X.JSC$20179_playerManager.pause()})},b6p=function(){kPY(function(X,H){avp(X,H);
X===0?_.J0(7):_.J0(4)})};var Uia=function(X,H){this.renderer=X;this.page=H;this.resolver=_.kj()};
_.S(Uia,Er);_.R=Uia.prototype;_.R.cancel=function(){this.resolver.promise.cancel()};
_.R.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.R.isCounterfactual=function(){return!this.renderer.isVisible};
_.R.shouldLogCounterfactualImpression=function(){return!0};
_.R.doEnqueue=function(){var X=this;this.resolver.promise.then(function(){var l={popup:{mealbarPromoRenderer:X.renderer},popupType:"MEALBAR"};_.Zq.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:l},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var H=_.GE(this.page);H&&$ix(this.resolver,H)}break;default:this.resolver.resolve()}};
var $ix=function(X,H){var l=_.kj();H.getPlayerPromise().then(function(b){l.resolve(b)});
l.promise.then(function(b){b.addEventListener("onAdEnd",X.resolve);_.MQ(X.promise,function(){b.removeEventListener("onAdEnd",X.resolve)})});
X.promise.thenCatch(function(){l.promise.cancel()})};var KBl=function(X,H){this.renderer=X;this.page=H};
_.S(KBl,Er);_.R=KBl.prototype;_.R.cancel=function(){this.JSC$20187_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20187_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20187_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.R.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.R.isCounterfactual=function(){return!this.renderer.isVisible};
_.R.shouldLogCounterfactualImpression=function(){return!0};
_.R.doEnqueue=function(){var X=this,H,l;((H=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(l=H.playbackUpsellDialogTriggerConditionData)==null?void 0:l.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20187_downloadedVideosCountSelectorUnsubscriber=_.bC(_.WF(),fvN,function(b,U){b>U&&(RLd(X),X.cancel())}):RLd(this)};
var RLd=function(X){var H={popup:{upsellDialogRenderer:X.renderer},popupType:"MODAL"};_.Zq.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:H},{});(X=_.GE(X.page))&&X.pause()};var GM={},CYN=(GM.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",GM.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",GM.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",GM.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",GM.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",GM.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",GM.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",GM),wIA=function(X,H){this.renderer=X;this.targetManager=
H};
_.S(wIA,Er);_.R=wIA.prototype;_.R.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)};
_.R.getCounterfactualData=function(){if(this.isCounterfactual()){var X;return(X=this.renderer.promoConfig)==null?void 0:X.impressionEndpoints}};
_.R.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.R.shouldLogCounterfactualImpression=function(){return!0};
_.R.doEnqueue=function(){var X=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20194_downloadedVideosCountSelectorUnsubscriber=_.bC(_.WF(),fvN,function(H,l){X.renderer.targetId&&H>l&&(APU(X.targetManager,X.renderer.targetId,diy(X)),X.cancel())});
break;default:APU(this.targetManager,this.renderer.targetId,diy(this))}};
var diy=function(X){var H;if((H=X.renderer.suggestedPosition)==null?0:H.type)var l=CYN[X.renderer.suggestedPosition.type];l||(l="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:X.renderer},popupType:"HINT",position:l}}};var hLp=function(){this.previousPage=null},FBy;
hLp.prototype.registerPromoCommand=function(X,H){B65(this,void 0,void 0,_.f(X.roadblock,y_Y),void 0,void 0,H)};
var B65=function(X,H,l,b,U,K,w){X.previousPage!==w&&X.pendingTooltipPromo&&X.pendingTooltipPromo.cancel();X.previousPage=w;U?(X.pendingEnforcementPromo&&X.pendingEnforcementPromo.cancel(),X.pendingEnforcementPromo=new H6d(U,w),X.pendingEnforcementPromo.enqueue()):K?(X.pendingCommandWrapperPromo=new gE(K,w),X.pendingCommandWrapperPromo.enqueue()):b?(X.pendingRoadblockPromo&&X.pendingRoadblockPromo.cancel(),X.pendingRoadblockPromo=new KBl(b,w),X.pendingRoadblockPromo.enqueue()):H?(X.pendingMealbarPromo&&
X.pendingMealbarPromo.cancel(),X.pendingMealbarPromo=new Uia(H,w),X.pendingMealbarPromo.enqueue()):l&&(X.pendingTooltipPromo&&X.pendingTooltipPromo.cancel(),X.pendingTooltipPromo=new wIA(l,_.AO()),X.pendingTooltipPromo.enqueue())},qnN=function(){FBy||(FBy=new hLp);
return FBy};var sfU=function(){this.horizontal=!1},MUZ=function(X,H){X.horizontal=H};
sfU.prototype.position=function(X,H,l,b){b=b===void 0?1:b;X=this.delta(X)*b+H;b=Math.max(H,l);return X>=Math.min(H,l)&&X<=b?X:l};
sfU.prototype.axis=function(X){X=this.direction(X);return X==="up"||X==="down"?"Y":"X"};var ad=function(X,H,l){H=H===void 0?_.XV():H;this.target=X;this.manager=H;this.touchAction=l;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
ad.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(_.LJ(this.events)));for(var X=_.C(this.events),H=X.next();!H.done;H=X.next())this.listen(H.value)}};
ad.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.LJ(this.events)));for(var X=_.C(this.events),H=X.next();!H.done;H=X.next())this.unlisten(H.value)}};
ad.prototype.listen=function(X){this.eventMap[X]&&this.target.addEventListener(X,this.eventMap[X])};
ad.prototype.unlisten=function(X){this.eventMap[X]&&this.target.removeEventListener(X,this.eventMap[X])};var ZP=function(){sfU.apply(this,arguments)};
_.S(ZP,sfU);ZP.prototype.direction=function(X){var H=X.detail;X=H.deltaY;H=H.deltaX;return X&&!this.horizontal?X>0?"down":"up":H&&this.horizontal?H>0?"right":"left":"none"};
ZP.prototype.distance=function(X){return Math.abs(this.delta(X))};
ZP.prototype.delta=function(X){var H=this.direction(X),l=X.detail;X=l.deltaX;l=l.deltaY;return H==="up"||H==="down"?l||0:X||0};
ZP.prototype.velocity=function(X){var H=this.direction(X),l=X.detail;X=l.velocityX;l=l.velocityY;return Math.abs(H==="up"||H==="down"?l||0:X||0)};var il=function(X,H,l,b,U,K){U=U===void 0?new ZP:U;K=K===void 0?_.XV():K;ad.call(this,H,K,b);var w=this;this.element=X;this.target=H;this.config=l;this.input=U;this.manager=K;this.events=["panstart","panmove","panend"];this.onPanStart=function(){w.config.draggingClass&&w.element.classList.add(w.config.draggingClass);w.config.startAction&&w.config.startAction()};
this.onPanMove=function(d){var B=uZZ(w,d);if(B){w.move(d,B);B.fade&&w.fade(d,B);var q=w.input.direction(d);B.moveAction&&B.moveAction(eL5(w,d,B),q)}};
this.onPanEnd=function(d){var B,q,u,e,y,V;return _.h(function(p){if(p.nextAddress==1){w.animationRequestId&&cancelAnimationFrame(w.animationRequestId);w.animationRequestId=void 0;B=uZZ(w,d);if(!B)return p.return();q=B;u=q.triggerAction;e=q.fade;y=q.disableFinish;V=q.translateBack;var z=w.input.velocity(d),t=w.input.distance(d),W=w.threshold(B);return z>.3&&t>10||t>W?y?p.jumpTo(6):e?p.yield(y9d(w,d),6):p.yield(VU$(w,d,B),6):V?p.yield(w.translateBack(d),3):p.jumpTo(3)}p.nextAddress!=3&&u&&u();w.config.draggingClass&&
w.element.classList.remove(w.config.draggingClass);w.reset();_.m5(p)})};
X=Object.keys(l.triggers);this.directions=new Set(X);MUZ(this.input,this.directions.has("right")||this.directions.has("left"))};
_.S(il,ad);il.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var uZZ=function(X,H){H=X.input.direction(H);return X.config.triggers[H]};
il.prototype.move=function(X,H){var l=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var b=l.input.axis(X),U=l.input.position(X,l.config.startPosition,H.endPosition,H.moveRatio||1);l.element.style.transform="translate"+b+"("+U+"px)";l.animationRequestId=void 0}))};
var eL5=function(X,H,l){var b=l.moveRatio||1;l=Math.abs(X.config.startPosition-l.endPosition);return Math.min(X.input.distance(H)*b,l)/l};
il.prototype.fade=function(X,H){var l=H.endOpacity;X=eL5(this,X,H);X>0&&(this.element.style.opacity=""+(((l||0)-1)*X+1))};
il.prototype.threshold=function(X){return X.threshold?X.threshold:Math.abs(X.endPosition-this.config.startPosition)/3};
var VU$=function(X,H,l){var b,U,K,w,d,B,q;return _.h(function(u){if(u.nextAddress==1)return b=X.input.delta(H)+X.config.startPosition,U=X.input.axis(H),K=l,w=K.endPosition,d=K.transitionEndPosition,q=(B=d)!=null?B:w,u.yield(X.element.animate([{transform:"translate"+U+"("+b+"px)"},{transform:"translate"+U+"("+q+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);X.element.style.transform="translate"+U+"("+q+"px)";_.m5(u)})};
il.prototype.translateBack=function(X){var H=this,l,b;return _.h(function(U){if(U.nextAddress==1){if(!H.element.style.transform)return U.return();l=H.input.axis(X);b=H.config.startPosition;return U.yield(H.element.animate([{transform:H.element.style.transform},{transform:"translate"+l+"("+b+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}H.element.style.transform="translate"+l+"("+b+"px)";_.m5(U)})};
var y9d=function(X,H){var l,b,U,K;return _.h(function(w){if(w.nextAddress==1)return l=X.input.delta(H)+X.config.startPosition,b=X.input.axis(H),U=l+70,K=X.element.style.opacity===""?1:X.element.style.opacity,w.yield(X.element.animate([{transform:"translate"+b+"("+l+"px)",opacity:K},{transform:"translate"+b+"("+U+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);X.element.style.transform="translate"+b+"("+U+"px)";X.element.style.opacity="0";_.m5(w)})};var Nd$=new _.DS("ratelimit");var PYy=function(X,H){this.playerProvider_=X;this.actionSenderElement_=H;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
PYy.prototype.reset=function(){fJy(this);this.isUserPredictedAbsent_=!1};
var fJy=function(X,H){!X.youThereData_||X.showWarningJob_||H!==void 0&&H||(jp("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Bi(),X.youThereData_,X.clientPlaybackNonce_),_.z3());_.Ss.cancelJob(X.showWarningJob_);X.showWarningJob_=0;_.Ss.cancelJob(X.showBlockingWarningJob_);X.showBlockingWarningJob_=0;_.Ss.cancelJob(X.pausePlaybackJob_);X.pausePlaybackJob_=0;X.youThereData_=null;X.clientPlaybackNonce_=void 0;X.inYouThereFlow_=!1},Sne=function(X,H){var l,b,U;
_.h(function(K){if(K.nextAddress==1)return X.reset(),K.yield(X.playerProvider_().getPlayerPromise(),2);l=K.yieldResult;X.clientPlaybackNonce_=l.getVideoData().cpn;X.youThereData_=H.configData.youThereData;if(!X.youThereData_)return K.return();if(X.youThereData_.triggerReason&&X.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!cwp())return jp("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Bi(),X.youThereData_,X.clientPlaybackNonce_),K.return();b=X.youThereData_.promptDelaySec;U=l.getCurrentTime();
X.showWarningJob_=_.Ss.addLowPriorityJob(function(){return _.h(function(w){X.showWarningJob_=0;return w.yield(pIU(X),0)})},Math.max(b-U,0)*1E3);
_.m5(K)})},pIU=function(X){var H,l,b,U,K,w;
return _.h(function(d){if(d.nextAddress==1)return d.yield(X.playerProvider_().getPlayerPromise(),2);if(d.nextAddress!=3)return H=d.yieldResult,l=H.getCurrentTime(),d.yield(zLp(X),3);b=d.yieldResult;if(!b||!X.youThereData_)return d.return();if(_.P("check_user_lact_at_prompt_shown_time_on_web")&&(U=parseInt(X.youThereData_.lactThresholdMs,10),_.JV()<U))return jp("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Bi(),X.youThereData_,X.clientPlaybackNonce_),d.return();if(X.youThereData_.playbackPauseDelayMs<=
0)return n4d(X),d.return();!_.P("external_fullscreen")&&(K=_.gZ())&&(X.ignoreFullscreenExitUserActivity_=!0,_.Ss.addLowPriorityJob(function(){X.ignoreFullscreenExitUserActivity_=!1},2E3),_.GP(K));
X.youThereData_.showToastWarningPrompt&&(v_(X,X.youThereData_.showWarningActions),X.inYouThereFlow_=!0,jp("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Bi(),X.youThereData_,X.clientPlaybackNonce_,l),jp("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Bi(),X.youThereData_,X.clientPlaybackNonce_,l));w=0;X.youThereData_.blockingPromptDelayMs&&(w=X.youThereData_.blockingPromptDelayMs);X.showBlockingWarningJob_=_.Ss.addLowPriorityJob(function(){return _.h(function(B){X.showBlockingWarningJob_=0;return B.yield(kR$(X),
0)})},w);
_.m5(d)})},kR$=function(X){var H,l,b;
return _.h(function(U){if(U.nextAddress==1)return U.yield(zLp(X),2);H=U.yieldResult;if(!X.youThereData_)return U.return();H&&(X.youThereData_.showBlockingWarningAction&&(jp("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Bi(),X.youThereData_,X.clientPlaybackNonce_),(l=_.f(X.youThereData_.showBlockingWarningAction,_.J$))?v_(X,l.commands):v_(X,[X.youThereData_.showBlockingWarningAction]),X.inYouThereFlow_=!0),b=X.youThereData_.playbackPauseDelayMs,X.pausePlaybackJob_=_.Ss.addLowPriorityJob(function(){return _.h(function(K){X.pausePlaybackJob_=
0;return K.yield(n4d(X),0)})},b));
_.m5(U)})},n4d=function(X){var H;
return _.h(function(l){if(l.nextAddress==1)return l.yield(zLp(X),2);H=l.yieldResult;if(!X.youThereData_)return l.return();H&&(jp("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Bi(),X.youThereData_,X.clientPlaybackNonce_),v_(X,X.youThereData_.showPausedActions),X.inYouThereFlow_=!0);_.m5(l)})};
PYy.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var X=_.f(this.youThereData_.userActiveDuringFlowAction,_.J$);X?v_(this,X.commands):v_(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(jp("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Bi(),this.youThereData_,this.clientPlaybackNonce_),_.z3());fJy(this,!0)}xil(this,!1)};
var Dix=function(X){jp("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Bi(),X.youThereData_,X.clientPlaybackNonce_)},zLp=function(X){var H,l;
return _.h(function(b){if(b.nextAddress==1)return b.yield(X.playerProvider_().getPlayerPromise(),2);H=b.yieldResult;l=H.getPlayerState();return b.return(l==-1||l==1||l==3)})},xil=function(X,H){var l;
_.h(function(b){if(b.nextAddress==1){if(X.isUserPredictedAbsent_==H)return b.jumpTo(0);X.isUserPredictedAbsent_=H;return b.yield(X.playerProvider_().getPlayerPromise(),3)}l=b.yieldResult;l.setUserEngagement(H);H&&jp("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Bi(),X.youThereData_,X.clientPlaybackNonce_);_.m5(b)})},v_=function(X,H){if(_.P("handle_service_request_actions")||_.P("kevlar_youthere_service_endpoint_actions_killswitch"))_.j7(X.actionSenderElement_,H,X.actionSenderElement_);
else{H=_.C(H);for(var l=H.next();!l.done;l=H.next())l=l.value,l.commandMetadata&&l.commandMetadata.webCommandMetadata&&l.commandMetadata.webCommandMetadata.sendPost?_.ci(X.actionSenderElement_,[l]):_.j7(X.actionSenderElement_,[l],X.actionSenderElement_)}};var jqp=!1;var tU5={PAUSE_CHAT:18};var A8y=function(X,H){var l=_.gx("SESSION_INDEX");this.actionToken_=X;this.commonToken_=H;this.sessionIndex_=l},IN$=function(X){var H=_.kj(),l=_.ij("payments.business.integration.bootstrap"),b=_.ij("payments.business.integration"),U=b.Style.create().withMaterialDesignStyle(),K=b.mashupMode.popup("instrument-manager");
l.asMashupMode(K).usingUserIndex(X.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(U).inStandaloneContext(b.standaloneContextAuthId.forUserId()).instrumentManager(X.actionToken_,X.commonToken_.length>0?X.commonToken_:void 0,function(w){var d=w.instrumentId;d?H.resolve(d):(d=_.ij("payments.business.integration.scenario.InstrumentManager"),H.reject(w.errorCode&&w.errorCode===d.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(w){_.a0(w);
H.reject("instrumentManagerLoadError")});
return H.promise};var KK=function(X,H,l){this.payloadName="transactionFlowFailed";this.payload={errorType:X,serializedTransactionFlowLoggingParams:H,isUserDismiss:l===void 0?!1:l}};
_.cQ("yt.ypc.shared.YpcTransactionFlowError",KK);var Or=function(){return _.Hc.apply(this,arguments)||this};
_.S(Or,_.Hc);Or.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Or.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Or.prototype.onErrorMessageDismiss=Or.prototype.onErrorMessageDismiss;_.T([_.g({readOnly:!0,observer:"errorRendererChanged"}),_.N("design:type",Object)],Or.prototype,"errorRenderer",void 0);_.T([_.Le("yt-live-chat-error-message-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Or.prototype,"onErrorMessageDismiss",null);_.T([_.l9()],Or);var WBe=[Or.prototype];var E4Z;var g4e,GRC=function(){if(g4e!==void 0)return g4e;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;E4Z===void 0&&(E4Z=document.createElement("template"));var b=E4Z;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return g4e=X};var mp=function(){var X=_.a.apply(this,arguments)||this;X.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";X.goalDescription="";X.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";X.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";X.startButtonId="start-button";X.exampleButtonId="example-button";return X};
_.S(mp,_.a);_.R=mp.prototype;_.R.getGoalDropdownItems=function(){var X,H;return(H=_.f((X=this.data)==null?void 0:X.purchaseTargetDropdown,CsC))==null?void 0:H.dropdownItems};
_.R.getTimerDropdownItems=function(){var X,H;return(H=_.f((X=this.data)==null?void 0:X.timerDropdown,CsC))==null?void 0:H.dropdownItems};
_.R.getColorDropdownItems=function(){var X,H;return(H=_.f((X=this.data)==null?void 0:X.colorDropdown,CsC))==null?void 0:H.dropdownItems};
_.R.getDropdownItemText=function(X){var H;return(H=_.f(X,RA$))==null?void 0:H.itemLabel};
_.R.getDropdownItemValue=function(X){X=_.f(X,RA$);return(X==null?void 0:X.timeLimit)||(X==null?void 0:X.purchaseTarget)||(X==null?void 0:X.eligiblePurchaseType)};
_.R.updateFlowState=function(X){_.TP(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:X}])};
_.R.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.R.updateGoalValue=function(X){this.goal=X.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.R.onTextValueChanged=function(X){this.goalDescription=X.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.R.updateTimerValue=function(X){this.timer=X.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.R.updateTierValue=function(X){this.tier=X.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.R.getButtonViewModel=function(X){X=(X==null?void 0:X.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var H,l=_.f((H=this.data)==null?void 0:H.startGoalButton,_.fk);return Object.assign({},l,{state:X})};
_.ja.Object.defineProperties(mp,{template:{configurable:!0,enumerable:!0,get:function(){return GRC()}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],mp.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],mp.prototype,"goal",void 0);_.T([_.g(),_.N("design:type",Object)],mp.prototype,"goalDescription",void 0);_.T([_.g(),_.N("design:type",Object)],mp.prototype,"timer",void 0);_.T([_.g(),_.N("design:type",Object)],mp.prototype,"tier",void 0);
_.T([_.g(),_.N("design:type",Object)],mp.prototype,"startButtonId",void 0);_.T([_.g(),_.N("design:type",Object)],mp.prototype,"exampleButtonId",void 0);_.T([_.qR({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],mp);_.O(mp,"yt-creator-goal-set-up-flow-view-model",function(){return GRC()},{mode:0});var aJa;var Z6e;var Q4=function(){return _.a.apply(this,arguments)||this};
_.S(Q4,_.a);Q4.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Q4.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var X=_.f(this.data.button,_.fk);X&&(X.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.ja.Object.defineProperties(Q4,{template:{configurable:!0,enumerable:!0,get:function(){if(Z6e===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;aJa===void 0&&(aJa=document.createElement("template"));var b=aJa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Z6e=X}X=Z6e;return X}}});
_.T([_.k(_.sK),_.N("design:type",Object)],Q4.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Q4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g({selectorArgs:["data.enabledEntityKey"],selector:HTp,observer:"onEnabledChange"}),_.N("design:type",Boolean)],Q4.prototype,"enabled",void 0);_.T([_.g(),_.N("design:type",Object)],Q4.prototype,"data",void 0);_.T([_.qR({is:"yt-disableable-button-view-model",noInjection:!0})],Q4);var i65;var v4x;var O6x=["transVert01","transVert02","transVert03"],miA="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),TM=function(){var X=_.a.apply(this,arguments)||this;X.emojiManager=_.pL;X.isDarkTheme=document.documentElement.hasAttribute("dark");X.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};X.reactionBuckets=[];X.noEmojiIdentifier="NO_EMOJI";return X};
_.S(TM,_.a);_.R=TM.prototype;_.R.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.R.desktopFountainEmojiSizePxChanged=function(){_.j4(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.R.createUserReactionAnimation=function(X){this.createEmojiAnimation(X,!0)};
_.R.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var X;((X=this.data)==null?0:X.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Us("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.LJ(this.emojiContainer.children)).forEach(function(H){H.remove()})};
_.R.detached=function(){this.cleanupFountain()};
_.R.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var X;this.reactionBuckets=_.Bb.unsafeClone((X=this.emojiFountainData)==null?void 0:X.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.R.processEmojiBucket=function(X){var H=this;if(this.reactionBuckets&&!(X>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var l=this.reactionBuckets[X];this.generateEmojiAnimations(l);if(X<this.reactionBuckets.length-1){var b;if(l==null?0:(b=l.duration)==null?0:b.seconds)this.emojiBucketTimerId=setTimeout(function(){H.processEmojiBucket(X+1)},Number(l.duration.seconds)*1E3)}}};
_.R.generateEmojiAnimations=function(X){var H=this,l=this.getRandomEmojiIdFromBucketWithOverride(X);if(l&&l!==this.noEmojiIdentifier){var b=0;X.targetEps?(b=this.linearInterpolateBounded(1,20,100,12,X.emojiSizeIndex||0),this.createEmojiAnimation(l,!1,X.emojiAnimationMs,b),b=this.getEmojiDelayMsFromTargetEps(X.targetEps)):(this.createEmojiAnimation(l),b=this.getEmojiDelayMsFromDistribution(X.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){H.generateEmojiAnimations(X)},b)}};
_.R.getRandomEmojiIdFromBucketWithOverride=function(X){if(!(X&&X.reactionsData&&X.reactionsData.length&&X.totalReactions))return this.noEmojiIdentifier;for(var H=X.totalReactions,l=1,b=_.C(X.reactionsData),U=b.next();!U.done;U=b.next())U=U.value,(U.reactionWeightOverride||U.reactionWeightOverride===0)&&U.reactionCount&&(H-=U.reactionCount,l-=U.reactionWeightOverride);b=!0;l<0&&(b=!1,H=X.totalReactions,l=1);if(b&&l>0&&H===0)if(l===1){U=0;for(var K=_.C(X.reactionsData),w=K.next();!w.done;w=K.next())w=
w.value,w.reactionCount&&w.reactionCount>0&&U++;U=1/U;K=_.C(X.reactionsData);for(w=K.next();!w.done;w=K.next())w.value.reactionWeightOverride=U}else for(U=1/(1-l),K=_.C(X.reactionsData),w=K.next();!w.done;w=K.next())w=w.value,w.reactionWeightOverride&&(w.reactionWeightOverride*=U);U=Math.random();K=0;w=_.C(X.reactionsData);for(var d=w.next();!d.done;d=w.next())if(d=d.value,d.reactionCount&&(K=(d.reactionWeightOverride||d.reactionWeightOverride===0)&&b?K+d.reactionWeightOverride:K+l*d.reactionCount/
H,K>U&&(d.reactionCount--,X.totalReactions--,d=this.reactionItemToEmojiString(d),d!==this.noEmojiIdentifier)))return d;return this.noEmojiIdentifier};
_.R.reactionItemToEmojiString=function(X){if(X.unicodeEmojiId)return X.unicodeEmojiId;if(X.emoteId)return X.emoteId;if(X.videoReactionType)switch(X.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.R.createEmojiAnimation=function(X,H,l,b){H=H===void 0?!1:H;this.lastEmojiRequestedForTesting=X;var U=X.startsWith("yt-icons:"),K=_.PP(this.emojiManager,X);if(K||U){var w=document.createElement("emoji");w.classList.add("yt-emoji-fountain-view-model");w.classList.add(O6x[Math.floor(Math.random()*O6x.length)]);var d=document.createElement("div");d.classList.add("yt-emoji-fountain-view-model");d.classList.add("horizontal-container");d.classList.add(miA[Math.floor(Math.random()*miA.length)]);H?(l=document.createElement("div"),
l.classList.add("user-reaction-bubble"),l.classList.add("yt-emoji-fountain-view-model"),d.appendChild(l)):(l&&(w.style.animationDuration=l+"ms",d.style.animationDuration=l+"ms"),b&&(w.style.width=b+"px",w.style.height=b+"px"));U?(U=document.createElement("yt-icon"),U.polymerController.icon=X,b&&(U.style.width=b+"px",U.style.height=b+"px"),X=U):X=this.emojiManager.createEmoji(K,!1);X.classList.add("yt-emoji-fountain-view-model");d.appendChild(X);w.appendChild(d);this.emojiContainer.appendChild(w);
w.addEventListener("animationend",function(){w.remove()});
var B,q;if((B=this.data)==null?0:(q=B.loggingDirectives)==null?0:q.trackingParams)H=H?_.cS(183501):_.cS(183500),l8d(this.data.loggingDirectives.trackingParams,H),_.G_8(H);setTimeout(function(){w&&w.remove()},2E3)}};
_.R.getEmojiDelayMsFromDistribution=function(X){return Math.random()*(X||1)*1E3};
_.R.getEmojiDelayMsFromTargetEps=function(X){return Math.random()*2*(1/X)*1E3};
_.R.linearInterpolateBounded=function(X,H,l,b,U){U=Math.min(Math.max(U,X),l);return(H*(l-U)+b*(U-X))/(l-X)};
TM.prototype.onEmojiFountainDataEntityUpdate=TM.prototype.onEmojiFountainDataEntityUpdate;TM.prototype.desktopFountainEmojiSizePxChanged=TM.prototype.desktopFountainEmojiSizePxChanged;TM.prototype.isActiveChanged=TM.prototype.isActiveChanged;_.T([_.g(),_.N("design:type",_.VK)],TM.prototype,"emojiManager",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sK),_.N("design:type",Object)],TM.prototype,"ytLiveChatReduxBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],TM.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],TM.prototype,"data",void 0);_.T([_.g({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(X,H){return _.JY(X.entities,"emojiFountainDataEntity",H)}}),
_.N("design:type",Object)],TM.prototype,"emojiFountainData",void 0);_.T([_.g(),_.N("design:type",Boolean)],TM.prototype,"isActive",void 0);_.T([_.Yh("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TM.prototype,"isActiveChanged",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],TM.prototype,"isDarkTheme",void 0);_.T([_.g(),_.N("design:type",String)],TM.prototype,"lastEmojiRequestedForTesting",void 0);
_.T([_.g({value:function(){return _.Yy("desktop_fountain_emoji_size_px",20)}}),
_.N("design:type",Number)],TM.prototype,"desktopFountainEmojiSizePx",void 0);_.T([_.Yh("desktopFountainEmojiSizePx"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TM.prototype,"desktopFountainEmojiSizePxChanged",null);_.T([_.A2("#emoji-container"),_.N("design:type",HTMLElement)],TM.prototype,"emojiContainer",void 0);
_.T([_.Yh("emojiFountainData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TM.prototype,"onEmojiFountainDataEntityUpdate",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],TM);
_.O(TM,"yt-emoji-fountain-view-model",function(){if(v4x===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;i65===void 0&&(i65=document.createElement("template"));var b=i65;l.call(H,b.content.cloneNode(!0),X.content.firstChild);v4x=X}X=v4x;return X},{mode:0});var QfA;var T6A;var Nr=function(){return _.a.apply(this,arguments)||this};
_.S(Nr,_.a);Nr.prototype.onChoiceChanged=function(){this.data&&_.j4(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
Nr.prototype.onChoiceChanged=Nr.prototype.onChoiceChanged;_.T([_.g(),_.N("design:type",Object)],Nr.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nr.prototype,"onChoiceChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Nr);
_.O(Nr,"yt-live-chat-banner-poll-choice",function(){if(T6A===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;QfA===void 0&&(QfA=document.createElement("template"));var b=QfA;l.call(H,b.content.cloneNode(!0),X.content.firstChild);T6A=X}X=T6A;return X},{mode:0});var N6a;var c9l;var c_=function(){var X=_.a.apply(this,arguments)||this;X.modern=_.P("web_button_rework_with_live");X.small=!1;return X};
_.S(c_,_.a);c_.prototype.computeIsSmall=function(){var X;return((X=this.buttonOverrides)==null?void 0:X.size)==="S"};
c_.prototype.computeId=function(){return this.data&&this.data.targetId};
_.T([_.k(_.MU.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],c_.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",String)],c_.prototype,"id",void 0);_.T([_.g(),_.N("design:type",Object)],c_.prototype,"buttonOverrides",void 0);_.T([_.g(),_.N("design:type",Object)],c_.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],c_.prototype,"modern",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.N("design:type",Object)],c_.prototype,"small",void 0);_.T([_.sq({disableElementRegistration:!0,is:"yt-live-chat-button"})],c_);
_.O(c_,"yt-live-chat-button",function(){if(c9l===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;N6a===void 0&&(N6a=document.createElement("template"));var b=N6a;l.call(H,b.content.cloneNode(!0),X.content.firstChild);c9l=X}X=c9l;return X},{mode:0});var jfa;var r9$;var jV=function(){var X=_.a.apply(this,arguments)||this;X.inCollapsedBanner=!1;X.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};X.questionButtonOverrides={style:"mono",type:"filled"};return X};
_.S(jV,_.a);_.R=jV.prototype;_.R.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]]"}}}}}};
_.R.onContextMenuButtonClick=function(X){this.ytLiveChatItemBehavior.showContextMenu(X)};
_.R.onYtRendererstamperFinished=function(){this.menuButton=_.mh(this.hostElement).querySelector("#menu-button")};
_.R.dataChanged=function(){var X,H;if((H=_.f((X=this.data)==null?void 0:X.overflowMenuButton,_.yB))==null?0:H.command)this.data.contextMenuEndpoint=_.f(this.data.overflowMenuButton,_.yB).command};
_.R.onButtonClick=function(){var X,H=_.f((X=this.data)==null?void 0:X.askQuestionButton,_.yB);if(H){if(H.trackingParams&&(X=_.$l(H.trackingParams))){var l=_.Bi();l&&_.xB(l,X)}_.QX(this.hostElement,"innertube-command",H.command)}};
jV.prototype.onYtRendererstamperFinished=jV.prototype.onYtRendererstamperFinished;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sK),_.N("design:type",Object)],jV.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],jV.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.g({observer:"dataChanged"}),_.N("design:type",Object)],jV.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],jV.prototype,"inCollapsedBanner",void 0);_.T([_.g(),_.N("design:type",Object)],jV.prototype,"buttonOverrides",void 0);_.T([_.g(),_.N("design:type",Object)],jV.prototype,"questionButtonOverrides",void 0);_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jV.prototype,"onYtRendererstamperFinished",null);
_.T([_.sq({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],jV);
_.O(jV,"yt-live-chat-call-for-questions-renderer",function(){if(r9$===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;jfa===void 0&&(jfa=document.createElement("template"));var b=jfa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);r9$=X}X=r9$;return X},{mode:0});var J9Z={};J9Z.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 X=this;window.requestAnimationFrame(function(){X.restoreFocusNode_||(X.restoreFocusNode_=document.activeElement);var H=_.dO9(X.hostElement);H.length&&H[H.length-1].focus()})},
isAttachedChanged_:function(X,H){X?this.focusChild_():H&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(X){this.hidden||_.t2(X).indexOf(this.hostElement)!==-1||(X.stopPropagation(),this.focusChild_())}};var LBy;var Ynl;var rE=function(){return _.a.apply(this,arguments)||this};
_.S(rE,_.a);rE.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
rE.prototype.onClick=function(X){X.target!==this.confirmButton&&X.target!==this.cancelButton&&(this.hidden=!0)};
_.T([_.A2("#confirm_button"),_.N("design:type",Object)],rE.prototype,"confirmButton",void 0);_.T([_.A2("#cancel_button"),_.N("design:type",Object)],rE.prototype,"cancelButton",void 0);_.T([_.g(),_.N("design:type",IJy)],rE.prototype,"data",void 0);_.T([_.g({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],rE.prototype,"hidden",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],rE.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(J9Z.YtLiveChatDialogBehavior),_.N("design:type",Object)],rE.prototype,"ytLiveChatDialogBehavior",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],rE);
var IJy=_.O(rE,"yt-live-chat-dialog-renderer",function(){if(Ynl===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;LBy===void 0&&(LBy=document.createElement("template"));var b=LBy;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Ynl=X}X=Ynl;return X},{mode:0});var A9$;var XZx,HPZ=function(){if(XZx!==void 0)return XZx;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;A9$===void 0&&(A9$=document.createElement("template"));var b=A9$;l.call(H,b.content.cloneNode(!0),X.content.firstChild);return XZx=X};var l5y;var okU;var Jp=function(){var X=_.a.apply(this,arguments)||this;X.icon=null;return X};
_.S(Jp,_.a);Jp.prototype.dismiss=function(){_.QX(this.hostElement,"yt-live-chat-error-message-dismiss")};
Jp.prototype.computeIcon=function(X){return X&&X.iconType?"yt-icons:"+X.iconType.toLowerCase():"yt-icons:close"};
_.T([_.g(),_.N("design:type",Object)],Jp.prototype,"data",void 0);_.T([_.g({computed:"computeIcon(data.icon)"}),_.N("design:type",Object)],Jp.prototype,"icon",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Jp);
_.O(Jp,"yt-live-chat-error-message-renderer",function(){if(okU===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;l5y===void 0&&(l5y=document.createElement("template"));var b=l5y;l.call(H,b.content.cloneNode(!0),X.content.firstChild);okU=X}X=okU;return X},{mode:0});var bP$;var Uu5;var Ls=function(){var X=_.a.apply(this,arguments)||this;X.tooltip=null;X.data=null;X.id="";X.active=!1;X.icon="";X.disabled=!1;X.showTooltip=!1;X.useToggledActiveState=!0;X.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return X};
_.S(Ls,_.a);_.R=Ls.prototype;
_.R.dataChanged=function(){var X;((X=this.data)==null?0:X.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,_.cM)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var H;if((H=this.data)==null?0:H.disabled)this.disabled=!0};
_.R.computeId=function(X){return X};
_.R.computeIcon=function(X,H){if(!X)return"";if(this.useToggledActiveState)return"yt-icons:"+X.toLowerCase();var l,b;return H&&((l=this.data)==null?0:(b=l.toggledIcon)==null?0:b.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+X.toLowerCase()};
_.R.logPDGEntryPoint=function(){_.rK8(_.j0("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")};
_.R.immediatelyShowTooltip=function(){var X=_.mh(this.hostElement).querySelector("#tooltip");X.animationDelay=0;X.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};X.show()};
_.R.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.R.onClick=function(X){var H;((H=this.data)==null?0:H.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),X.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.QX(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.R.computeShowTooltip=function(X,H){return!!(X&&X.tooltip&&H)};
_.R.maybeUpdateTooltipText=function(){var X=this,H;if((H=this.data)==null?0:H.tooltip){var l=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.cM)(X.tooltip).textContent=l},250)}};
_.R.handleLiveChatActions=function(X){var H=this;X.length&&(this.id!=="creator"&&this.id!=="product-picker"||X.forEach(function(l){(l=H.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",l))&&l.durationSec===l.fullDurationSec&&H.startBubble(H.colorFromDecimal(l.startBackgroundColor))}))};
_.R.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.R.startBubble=function(X){_.j4(this.hostElement,{"--yt-live-chat-monetization-button-glow":X});this.hostElement.setAttribute("bubble","")};
_.R.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.R.colorFromDecimal=function(X){typeof X==="string"&&(X=Number(X));return"rgba("+[X>>16&255,X>>8&255,X&255,(X>>24&255)/255].join()+")"};
Ls.prototype.onAnimationEnd=Ls.prototype.onAnimationEnd;Ls.prototype.disabledChanged=Ls.prototype.disabledChanged;Ls.prototype.dataChanged=Ls.prototype.dataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Ls.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.MU.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],Ls.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ls.prototype,"data",void 0);_.T([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",Object)],Ls.prototype,"id",void 0);_.T([_.g({notify:!0,reflectToAttribute:!0}),_.N("design:type",Object)],Ls.prototype,"active",void 0);
_.T([_.g({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.N("design:type",Object)],Ls.prototype,"icon",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ls.prototype,"disabled",void 0);_.T([_.g({computed:"computeShowTooltip(data, disabled)"}),_.N("design:type",Object)],Ls.prototype,"showTooltip",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ls.prototype,"useToggledActiveState",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ls.prototype,"dataChanged",null);_.T([_.Yh("disabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ls.prototype,"disabledChanged",null);_.T([_.Le("animationend"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Ls.prototype,"onAnimationEnd",null);
_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Ls);
_.O(Ls,"yt-live-chat-icon-toggle-button-renderer",function(){if(Uu5===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;bP$===void 0&&(bP$=document.createElement("template"));var b=bP$;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Uu5=X}X=Uu5;return X},{mode:0});var $u5;var KlN;var YF=function(){return _.a.apply(this,arguments)||this};
_.S(YF,_.a);YF.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([_.g(),_.N("design:type",Object)],YF.prototype,"data",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);_.T([_.sq({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],YF);
_.O(YF,"yt-live-chat-message-input-prompt-header-renderer",function(){if(KlN===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;$u5===void 0&&($u5=document.createElement("template"));var b=$u5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);KlN=X}X=KlN;return X},{mode:0});var RDe;var CWN;var wZC;var dux;var hDA;var Flx;var B$x=function(){return _.a.apply(this,arguments)||this};
_.S(B$x,_.a);_.T([_.g(),_.N("design:type",Object)],B$x.prototype,"data",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],B$x);
_.O(B$x,"yt-live-chat-message-subtext-renderer",function(){if(Flx===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;hDA===void 0&&(hDA=document.createElement("template"));var b=hDA;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Flx=X}X=Flx;return X},{mode:0});var Id=function(){var X=_.a.apply(this,arguments)||this;X.subtextOnBottom=!1;X.buttonOverrides={style:"mono",type:"tonal"};return X};
_.S(Id,_.a);Id.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Id.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Id.prototype,"subtextOnBottom",void 0);_.T([_.g(),_.N("design:type",Object)],Id.prototype,"buttonOverrides",void 0);
_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Id);
_.O(Id,"yt-live-chat-message-renderer",function(){if(dux===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;wZC===void 0&&(wZC=document.createElement("template"));var b=wZC;l.call(H,b.content.cloneNode(!0),X.content.firstChild);dux=X}X=dux;return X},{mode:0});var qj5;var sU$;var Ap=function(){var X=_.a.apply(this,arguments)||this;X.isRemovable=!1;X.hasPrefilledText=!1;X.isInputDirty=!1;X.overCharacterLimit=!1;X.underCharacterLimit=!1;X.showErrorMessage=!1;return X};
_.S(Ap,_.a);_.R=Ap.prototype;_.R.computeId=function(){return this.data.id};
_.R.computeInputData=function(){return this.data.inputData};
_.R.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.R.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.R.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.R.getLiveChatRichMessageInput=function(){return _.mh(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.R.clearInput=function(){_.mh(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.R.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.R.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.R.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.R.handleTextInputCharCountChanged=function(X){X=X.detail&&X.detail.characterCount;X!==void 0&&(this.characterCount=X,X!==0&&(this.isInputDirty=!0))};
_.R.onInputFocusOut=function(){this.isInputDirty=!0};
_.R.onClickCloseButton=function(){_.QX(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Ap.prototype.handleTextInputCharCountChanged=Ap.prototype.handleTextInputCharCountChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ap.prototype,"data",void 0);_.T([_.g({computed:"computeId(data.id)"}),_.N("design:type",String)],Ap.prototype,"id",void 0);_.T([_.g({computed:"computeInputData(data.inputData)"}),_.N("design:type",Object)],Ap.prototype,"inputData",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.N("design:type",Object)],Ap.prototype,"isRemovable",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.N("design:type",Object)],Ap.prototype,"hasPrefilledText",void 0);_.T([_.g({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.N("design:type",Number)],Ap.prototype,"charactersRemaining",void 0);
_.T([_.g(),_.N("design:type",Number)],Ap.prototype,"characterCount",void 0);_.T([_.g(),_.N("design:type",Object)],Ap.prototype,"isInputDirty",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.N("design:type",Object)],Ap.prototype,"overCharacterLimit",void 0);_.T([_.g({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.N("design:type",Object)],Ap.prototype,"underCharacterLimit",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.N("design:type",Object)],Ap.prototype,"showErrorMessage",void 0);_.T([_.Le("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ap.prototype,"handleTextInputCharCountChanged",null);
_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Ap);
_.O(Ap,"yt-live-chat-poll-editor-input",function(){if(sU$===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;qj5===void 0&&(qj5=document.createElement("template"));var b=qj5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);sU$=X}X=sU$;return X},{mode:0});var MMY;var uxC;var eDZ={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},XY=function(){var X=_.a.apply(this,arguments)||this;X.modern=_.P("web_button_rework_with_live");X.closeButtonOverrides={iconPosition:"icon-only"};X.startButtonOverrides={style:"mono",type:"filled"};X.addOptionButtonOverrides={style:"mono",type:"text"};return X};
_.S(XY,_.a);_.R=XY.prototype;
_.R.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"}}}}};
_.R.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var X;_.f((X=this.data)==null?void 0:X.startButton,_.yB)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.R.computeId=function(){return this.data&&this.data.id||""};
_.R.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.R.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.R.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.R.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.R.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var X=0;X<this.pollEditorInfoWithDefaults.minPollOptions;X++)this.addPollOptionData()};
_.R.getIsValidPoll=function(){var X=this;if(!this.pollEditorInfoWithDefaults)return!1;var H=this.pollEditorInfoWithDefaults,l=H.minPollOptionChars,b=H.maxPollOptionChars,U=H.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>H.maxPollQuestionChars)return!1;H=_.mh(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(H).every(function(K,w){K=K.characterCount;!K&&U[w]&&(K=X.ytRendererBehavior.getSimpleString(U[w]).length);return K!==void 0&&K>=l&&K<=b})};
_.R.isValidPollChanged=function(){var X;_.f((X=this.data)==null?void 0:X.startButton,_.yB)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.R.addPollOptionData=function(){var X=this.pollEditorInfoWithDefaults,H=X.maxPollOptionChars,l=X.optionPlaceholderText,b=X.customOptionPlaceholderText,U=X.pollOptionData;this.currentNumPollOptions>=X.maxPollOptions||(X={liveChatPollOptionInput:{inputData:{placeholder:b[this.currentNumPollOptions]||l,maxCharacterLimit:H},maxCharacterLimit:H,minCharacterLimit:X.minPollOptionChars,hasPrefilledText:!!b[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=X.minPollOptions}},U.charCountErrorText&&
(X.liveChatPollOptionInput.charCountErrorText=U.charCountErrorText),U.charsRemainingAltLabel&&(X.liveChatPollOptionInput.charsRemainingAltLabel=U.charsRemainingAltLabel),U.removeOptionAltText&&(X.liveChatPollOptionInput.removeOptionAltText=U.removeOptionAltText),this.push("pollOptionsData",X),U=Array.from(_.mh(_.mh(this.hostElement).querySelector("#poll-options")).children),U.forEach(function(K,w){K.polymerController.set("data.id",w)}),_.mh(U[U.length-1]).querySelector("#input").focus())};
_.R.getPollOptionInputValues=function(){var X=this,H=[],l=_.mh(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),b=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(l).forEach(function(U,K){var w=null;U=U.getLiveChatRichMessageInput();var d;(U==null?0:(d=U.textSegments)==null?0:d.length)?w=_.VY(U):b[K]&&(w=X.formattedStringToLiveChatRichMessageInput(b[K]));H.push(w)});
return H};
_.R.requestCreateAndStartPoll=function(X){var H=this.getPollOptionInputValues();if(!H.some(function(b){return!b})){H={optionText:H};
var l=_.mh(_.mh(this.hostElement).querySelector("#poll-question")).firstChild;l&&l.liveChatRichMessageInput&&(H.questionText=_.VY(l.liveChatRichMessageInput));_.ci(this.hostElement,[X,H])}};
_.R.selectedChanged=function(){if(this.selected){var X=_.mh(_.mh(this.hostElement).querySelector("#start-button")).firstElementChild;if(X){var H;(H=_.mh(X).querySelector("#button")||_.Q_(X).querySelector("button"))==null||H.focus()}}};
_.R.handleTextInputChanged=function(X){var H;((H=X.target)==null?void 0:H.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=X.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.R.handleStartButtonAction=function(X){X.detail.actionName==="yt-service-request"&&(X.stopPropagation(),(X=X.detail.args[1])&&this.requestCreateAndStartPoll(X))};
_.R.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.R.handleServiceRequestCompleted=function(X){this.createPollRequestInFlight=!1;(X=X.detail&&X.detail.data)&&X.success&&(_.QX(this.hostElement,"picker-cancelled"),_.TP(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.R.onCloseClick=function(){_.QX(this.hostElement,"picker-cancelled");_.TP(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.R.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.R.handlePollEditorInputClosed=function(X){var H=this.pollOptionsData.findIndex(function(l){return l.liveChatPollOptionInput.id===X.detail.id});
this.splice("pollOptionsData",H,1);this.isValidPoll=this.getIsValidPoll()};
_.R.onPickerCancelled=function(){this.reset()};
_.R.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var X=_.mh(_.mh(this.hostElement).querySelector("#poll-question")).firstChild;X&&X.setLiveChatRichMessageInput(null);if(X=_.mh(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){X=_.C(Array.from(X));for(var H=X.next();!H.done;H=X.next())H.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.R.formattedStringToLiveChatRichMessageInput=function(X){return X.simpleText?{text_segments:[X.simpleText]}:{text_segments:X.runs}};
_.ja.Object.defineProperties(XY.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(eDZ,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
XY.prototype.onPickerCancelled=XY.prototype.onPickerCancelled;XY.prototype.handlePollEditorInputClosed=XY.prototype.handlePollEditorInputClosed;XY.prototype.handleServiceRequestCompleted=XY.prototype.handleServiceRequestCompleted;XY.prototype.handleServiceRequestSent=XY.prototype.handleServiceRequestSent;XY.prototype.handleTextInputChanged=XY.prototype.handleTextInputChanged;XY.prototype.selectedChanged=XY.prototype.selectedChanged;XY.prototype.isValidPollChanged=XY.prototype.isValidPollChanged;
XY.prototype.shouldInitializePollChanged=XY.prototype.shouldInitializePollChanged;XY.prototype.dataChanged=XY.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],XY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],XY.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],XY.prototype,"modern",void 0);
_.T([_.g(),_.N("design:type",Object)],XY.prototype,"closeButtonOverrides",void 0);_.T([_.g(),_.N("design:type",Object)],XY.prototype,"startButtonOverrides",void 0);_.T([_.g(),_.N("design:type",Object)],XY.prototype,"addOptionButtonOverrides",void 0);_.T([_.g({computed:"computeId(data.id)",reflectToAttribute:!0}),_.N("design:type",String)],XY.prototype,"id",void 0);_.T([_.g({value:function(){return[]}}),
_.N("design:type",Array)],XY.prototype,"pollOptionsData",void 0);_.T([_.x("pollEditorInfoWithDefaults"),_.N("design:type",Object),_.N("design:paramtypes",[])],XY.prototype,"pollQuestionData",null);_.T([_.g({value:0}),_.N("design:type",Number)],XY.prototype,"pollQuestionCharacterCount",void 0);_.T([_.x("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],XY.prototype,"pollQuestionCharactersRemaining",null);
_.T([_.g({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.N("design:type",Boolean)],XY.prototype,"overQuestionCharacterLimit",void 0);_.T([_.x("data.pollEditorInfo"),_.N("design:type",Object),_.N("design:paramtypes",[])],XY.prototype,"pollEditorInfoWithDefaults",null);_.T([_.g({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.N("design:type",Number)],XY.prototype,"currentNumPollOptions",void 0);
_.T([_.g({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.N("design:type",Boolean)],XY.prototype,"hasMaxNumPollOptions",void 0);_.T([_.x("pollEditorInfoWithDefaults","pollOptionsData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],XY.prototype,"shouldInitializePoll",null);_.T([_.g(),_.N("design:type",Object)],XY.prototype,"isValidPoll",void 0);
_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],XY.prototype,"createPollRequestInFlight",void 0);_.T([_.g(),_.N("design:type",Object)],XY.prototype,"selected",void 0);_.T([_.g({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.N("design:type",Boolean)],XY.prototype,"showQuestionErrorMessage",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XY.prototype,"dataChanged",null);_.T([_.Yh("shouldInitializePoll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XY.prototype,"shouldInitializePollChanged",null);_.T([_.Yh("isValidPoll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XY.prototype,"isValidPollChanged",null);
_.T([_.Yh("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XY.prototype,"selectedChanged",null);_.T([_.Le("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],XY.prototype,"handleTextInputChanged",null);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XY.prototype,"handleServiceRequestSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],XY.prototype,"handleServiceRequestCompleted",null);
_.T([_.Le("yt-live-chat-poll-editor-input-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],XY.prototype,"handlePollEditorInputClosed",null);_.T([_.Le("picker-cancelled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XY.prototype,"onPickerCancelled",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],XY);
_.O(XY,"yt-live-chat-poll-editor-panel-renderer",function(){if(uxC===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;MMY===void 0&&(MMY=document.createElement("template"));var b=MMY;l.call(H,b.content.cloneNode(!0),X.content.firstChild);uxC=X}X=uxC;return X},{mode:0});var y4U;var VMx;var HH=function(){return _.a.apply(this,arguments)||this};
_.S(HH,_.a);HH.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
HH.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ja.Object.defineProperties(HH.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var X,H;return(X=this.data)==null?void 0:(H=X.title)==null?void 0:H.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var X;return _.sl((X=this.data)==null?void 0:X.onTapCommand)}}});
_.T([_.k(_.jj.YtEndpointBehavior),_.N("design:type",Object)],HH.prototype,"ytEndpointBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],HH.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],HH.prototype,"itemId",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HH.prototype,"hasPromotion",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],HH.prototype,"innertubeCommand",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],HH);
_.O(HH,"yt-live-chat-product-picker-panel-item-view-model",function(){if(VMx===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;y4U===void 0&&(y4U=document.createElement("template"));var b=y4U;l.call(H,b.content.cloneNode(!0),X.content.firstChild);VMx=X}X=VMx;return X},{mode:0});var PWA;var f5x;var lA=function(){var X=_.a.apply(this,arguments)||this;X.id="product-picker";X.selected=!1;X.closeButtonId="close-button";X.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return X};
_.S(lA,_.a);_.R=lA.prototype;_.R.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.R.observeSelected=function(){this.selected&&this.hostElement.focus();var X=_.mh(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");X.length&&X[0].focus()};
_.R.onCloseBuyFlow=function(){_.QX(this.hostElement,"picker-cancelled")};
_.R.onCloseClick=function(){_.QX(this.hostElement,"picker-cancelled");var X;((X=this.data)==null?0:X.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.f(this.data.closeButton,_.fk))};
_.R.onCloseEngageWithAudienceEditorPanels=function(){_.QX(this.hostElement,"picker-cancelled")};
lA.prototype.observeSelected=lA.prototype.observeSelected;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],lA.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],lA.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],lA.prototype,"id",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],lA.prototype,"selected",void 0);_.T([_.g(),_.N("design:type",Object)],lA.prototype,"closeButtonId",void 0);_.T([_.Yh("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lA.prototype,"observeSelected",null);
_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],lA);
_.O(lA,"yt-live-chat-product-picker-panel-view-model",function(){if(f5x===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;PWA===void 0&&(PWA=document.createElement("template"));var b=PWA;l.call(H,b.content.cloneNode(!0),X.content.firstChild);f5x=X}X=f5x;return X},{mode:0});var pZa;var Sjy;var ot=function(){var X=_.a.apply(this,arguments)||this;X.iconId="";X.icon="";X.disabled=!1;X.systemIcons=_.P("kevlar_system_icons");return X};
_.S(ot,_.a);_.R=ot.prototype;_.R.computeIconId=function(X){return X&&X.icon&&X.icon.iconType?X.icon.iconType.toLowerCase():""};
_.R.computeIcon=function(X){return X&&X.icon&&X.icon.iconType?(X=X.icon.iconType.toLowerCase(),(X.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+X):""};
_.R.computeDisabled=function(X){return!!X};
_.R.computeCommand=function(X,H){return H?void 0:X};
_.R.computeTooltip=function(X,H){return H&&X?X:""};
_.R.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ja.Object.defineProperties(ot.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var X="",H,l,b;if((H=this.data)==null?0:(l=H.text)==null?0:(b=l.runs)==null?0:b.length)X=this.data.text.runs[0].text||"";else{var U,K;if((U=this.data)==null?0:(K=U.text)==null?0:K.simpleText)X=this.data.text.simpleText}var w,d,B;if((w=this.data)==null?0:(d=w.subtext)==null?0:(B=d.runs)==null?0:B.length)X&&(X+=". "),X+=this.data.subtext.runs[0].text||"";else{var q,u;if((q=this.data)==null?0:(u=q.subtext)==
null?0:u.simpleText)X&&(X+=". "),X+=this.data.subtext.simpleText}return X}}});
_.T([_.k(_.jj.YtEndpointBehavior),_.N("design:type",Object)],ot.prototype,"ytEndpointBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ot.prototype,"data",void 0);_.T([_.g({computed:"computeIconId(data)",reflectToAttribute:!0}),_.N("design:type",Object)],ot.prototype,"iconId",void 0);
_.T([_.g({computed:"computeIcon(data)",reflectToAttribute:!0}),_.N("design:type",Object)],ot.prototype,"icon",void 0);_.T([_.g({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.N("design:type",Object)],ot.prototype,"disabled",void 0);_.T([_.g({computed:"computeCommand(data.command, disabled)"}),_.N("design:type",Object)],ot.prototype,"command",void 0);_.T([_.g({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.N("design:type",String)],ot.prototype,"tooltip",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ot.prototype,"systemIcons",void 0);_.T([_.x("data.text","data.subtext"),_.g(),_.N("design:type",String),_.N("design:paramtypes",[])],ot.prototype,"ariaLabel",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],ot);
_.O(ot,"yt-live-chat-product-button-renderer",function(){if(Sjy===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;pZa===void 0&&(pZa=document.createElement("template"));var b=pZa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Sjy=X}X=Sjy;return X},{mode:0});var zDp;var nkY;var bA=function(){var X=_.a.apply(this,arguments)||this;X.selected=!1;X.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 X};
_.S(bA,_.a);_.R=bA.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.computeId=function(X){return X.id||""};
_.R.onCloseClick=function(){_.QX(this.hostElement,"picker-cancelled")};
_.R.observeSelected=function(){this.selected&&this.hostElement.focus();var X=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");X.length&&X[0].focus()};
_.R.onCloseBuyFlow=function(){_.QX(this.hostElement,"picker-cancelled")};
_.R.onCloseEngageWithAudienceEditorPanels=function(){_.QX(this.hostElement,"picker-cancelled")};
bA.prototype.observeSelected=bA.prototype.observeSelected;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],bA.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],bA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],bA.prototype,"data",void 0);
_.T([_.g({computed:"computeId(data)",reflectToAttribute:!0}),_.N("design:type",String)],bA.prototype,"id",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],bA.prototype,"selected",void 0);_.T([_.Yh("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bA.prototype,"observeSelected",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],bA);
_.O(bA,"yt-live-chat-product-picker-renderer",function(){if(nkY===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;zDp===void 0&&(zDp=document.createElement("template"));var b=zDp;l.call(H,b.content.cloneNode(!0),X.content.firstChild);nkY=X}X=nkY;return X},{mode:0});var kDZ;var xuZ;var Du5;var tM5;var U3=function(){return _.a.apply(this,arguments)||this};
_.S(U3,_.a);U3.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()};
U3.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
U3.prototype.created=function(){this.ids={background:Og(),maskOne:Og(),maskTwo:Og(),gradient:Og(),largeBackground:Og(),largeGradientOne:Og(),largeGradientTwo:Og(),largeGradientPath:Og()}};
U3.prototype.maybeLoadAnimationBackground=U3.prototype.maybeLoadAnimationBackground;_.T([_.g({value:!1}),_.N("design:type",Boolean)],U3.prototype,"useLargeBackground",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],U3.prototype,"useAnimationBackground",void 0);_.T([_.g({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.N("design:type",Boolean)],U3.prototype,"useRegularBackground",void 0);
_.T([_.g(),_.N("design:type",Object)],U3.prototype,"ids",void 0);_.T([_.g(),_.N("design:type",Object)],U3.prototype,"lottieAnimation",void 0);_.T([_.A2("#animation-background"),_.N("design:type",HTMLDivElement)],U3.prototype,"animationBackground",void 0);_.T([_.Yh("useAnimationBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],U3.prototype,"maybeLoadAnimationBackground",null);
_.T([_.qR({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],U3);
_.O(U3,"yt-live-interactivity-component-background",function(){if(tM5===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Du5===void 0&&(Du5=document.createElement("template"));var b=Du5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);tM5=X}X=tM5;return X},{mode:0});var $Z=function(){var X=_.a.apply(this,arguments)||this;X.characterCount=0;X.showInputErrorMessage=!1;X.startQnaRequestInFlight=!1;X.modern=_.P("web_button_rework_with_live");X.buttonOverrides={style:"mono",type:"filled"};X.closeButtonOverrides={iconPosition:"icon-only"};X.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return X};
_.S($Z,_.a);_.R=$Z.prototype;
_.R.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]]"}}}}}};
_.R.onCharacterCountChanged=function(X){var H,l,b,U,K=(l=_.f(this==null?void 0:(H=this.data)==null?void 0:H.creatorCallForQuestions,ZzZ))==null?void 0:(b=l.inputField)==null?void 0:(U=b.liveChatTextInputFieldRenderer)==null?void 0:U.maxCharacterLimit,w,d;K!=null&&(X==null?void 0:(w=X.detail)==null?void 0:w.characterCount)!=null&&_.f(this==null?void 0:(d=this.data)==null?void 0:d.startButton,_.yB)&&(H=X.detail.characterCount>K,this.set("data.startButton.buttonRenderer.isDisabled",X.detail.characterCount===
0||H),this.showInputErrorMessage=H)};
_.R.onCloseClick=function(){_.QX(this.hostElement,"picker-cancelled");_.TP(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.R.onPickerCancelled=function(){var X=_.mh(this.hostElement).querySelector("#qna-creator-text-input-field");X&&X.setLiveChatRichMessageInput(null)};
_.R.handleOpenQnaStartPanel=function(){var X=_.mh(this.hostElement).querySelector("#qna-creator-text-input-field");X&&X.focus()};
_.R.handleStartButtonAction=function(X){var H=this;if(X.detail.actionName==="yt-service-request"&&(X.stopPropagation(),X=X.detail.args[1])){var l=_.mh(this.hostElement).querySelector("#qna-creator-text-input-field"),b;(l==null?0:(b=l.liveChatRichMessageInput)==null?0:b.textSegments)&&l.liveChatRichMessageInput.textSegments.length!==0&&(b={rich_message:_.VY(l.liveChatRichMessageInput)},_.ci(this.hostElement,[X,b]).then(function(){_.QX(H.hostElement,"picker-cancelled")}))}};
_.R.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.R.handleServiceRequestCompleted=function(X){var H;X=X==null?void 0:(H=X.detail)==null?void 0:H.data;(X==null?0:X.actions)&&X.actions.length>0?this.startQnaRequestInFlight=!1:_.TP(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.R.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
$Z.prototype.handleServiceRequestError=$Z.prototype.handleServiceRequestError;$Z.prototype.handleServiceRequestCompleted=$Z.prototype.handleServiceRequestCompleted;$Z.prototype.handleServiceRequestSent=$Z.prototype.handleServiceRequestSent;$Z.prototype.onPickerCancelled=$Z.prototype.onPickerCancelled;$Z.prototype.onCharacterCountChanged=$Z.prototype.onCharacterCountChanged;_.T([_.g(),_.N("design:type",Object)],$Z.prototype,"characterCount",void 0);
_.T([_.g(),_.N("design:type",Object)],$Z.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"showInputErrorMessage",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"startQnaRequestInFlight",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],$Z.prototype,"modern",void 0);_.T([_.g(),_.N("design:type",Object)],$Z.prototype,"buttonOverrides",void 0);
_.T([_.g(),_.N("design:type",Object)],$Z.prototype,"closeButtonOverrides",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],$Z.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sK),_.N("design:type",Object)],$Z.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.k(_.SZ.YtLiveChatItemBehavior),_.N("design:type",_.zl)],$Z.prototype,"ytLiveChatItemBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],$Z.prototype,"ytActionHandlerBehavior",void 0);_.T([_.Le("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$Z.prototype,"onCharacterCountChanged",null);_.T([_.Le("picker-cancelled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Z.prototype,"onPickerCancelled",null);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Z.prototype,"handleServiceRequestSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$Z.prototype,"handleServiceRequestCompleted",null);
_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$Z.prototype,"handleServiceRequestError",null);_.T([_.sq({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],$Z);
_.O($Z,"yt-live-chat-qna-start-panel-renderer",function(){if(xuZ===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;kDZ===void 0&&(kDZ=document.createElement("template"));var b=kDZ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);xuZ=X}X=xuZ;return X},{mode:0});var Wld;var Ekd;var Kv=function(){return _.a.apply(this,arguments)||this};
_.S(Kv,_.a);Kv.prototype.dismiss=function(){_.QX(this.hostElement,"yt-live-chat-error-message-dismiss")};
Kv.prototype.edit=function(){_.QX(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.T([_.g(),_.N("design:type",Object)],Kv.prototype,"data",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Kv);
_.O(Kv,"yt-live-chat-text-actions-error-message-renderer",function(){if(Ekd===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Wld===void 0&&(Wld=document.createElement("template"));var b=Wld;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Ekd=X}X=Ekd;return X},{mode:0});var gkl;var GDZ;var a5Y;var ZPe;var Rt=function(){var X=_.a.apply(this,arguments)||this;X.isDarkTheme=document.documentElement.hasAttribute("dark");X.newnessDotEligible=!1;return X};
_.S(Rt,_.a);Rt.prototype.sendReaction=function(){var X,H,l=((X=this.data)==null?void 0:X.emojiId)||((H=this.data)==null?void 0:H.emoteId),b;l&&((b=this.data)==null?0:b.shouldTriggerAnimation)&&_.TP(this.hostElement,"yt-create-user-reaction-animation",[l]);var U;(X=_.sl((U=this.data)==null?void 0:U.onTap))&&_.Lc(X,this.hostElement);this.showNewnessDot&&_.TP(this.hostElement,"yt-hide-newness-dot")};
Rt.prototype.onClick=function(X){(!X||X.clientX||X.clientY)&&this.sendReaction()};
Rt.prototype.onKeyDown=function(X){X.key!=="Enter"&&X.key!==" "||X.repeat||this.sendReaction()};
_.ja.Object.defineProperties(Rt.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var X,H;return!!(((X=this.data)==null?0:X.emojiId)||((H=this.data)==null?0:H.emoteId))}}});
_.T([_.g(),_.N("design:type",Object)],Rt.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Rt.prototype,"isDarkTheme",void 0);_.T([_.g(),_.N("design:type",Object)],Rt.prototype,"newnessDotEligible",void 0);_.T([_.x("data.maybeShowNewnessDot"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Rt.prototype,"showNewnessDot",null);_.T([_.x("data.emojiId","data.emoteId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Rt.prototype,"useYtImage",null);
_.T([_.qR({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Rt);
_.O(Rt,"yt-reaction-control-panel-button-view-model",function(){if(ZPe===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;a5Y===void 0&&(a5Y=document.createElement("template"));var b=a5Y;l.call(H,b.content.cloneNode(!0),X.content.firstChild);ZPe=X}X=ZPe;return X},{mode:0});var iP$;var vka;var Cv=function(){var X=_.a.apply(this,arguments)||this;X.reactionControlPanelExpanded=!1;X.isDarkTheme=document.documentElement.hasAttribute("dark");X.newnessDotEligible=!1;return X};
_.S(Cv,_.a);_.R=Cv.prototype;_.R.expandedButtonsChanged=function(){var X,H;_.j4(this.hostElement,{"--expanded-buttons-height":((H=(X=this.expandedButtonsData)==null?void 0:X.length)!=null?H:0)*36+"px"})};
_.R.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}}};
_.R.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.R.onMouseLeave=function(){var X=this;this.collapseTimer=setTimeout(function(){X.reactionControlPanelExpanded=!1},500)};
_.R.onFocusIn=function(){this.onMouseEnter()};
_.R.onFocusOut=function(){this.onMouseLeave()};
_.R.onCollapsedButtonFocusIn=function(){var X=this;setTimeout(function(){var H;(H=X.expandedButtons.querySelector("button"))==null||H.focus()},100)};
_.R.onCollapsedButtonFocusOut=function(X){X.stopPropagation()};
_.ja.Object.defineProperties(Cv.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var X,H;return _.Bb.unsafeClone((X=this.liveReactionsData)==null?void 0:X.emojiButtonData)||((H=this.data)==null?void 0:H.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var X;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((X=this.data)==null||!X.maybeShowNewnessDot)}}});
Cv.prototype.expandedButtonsChanged=Cv.prototype.expandedButtonsChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Cv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sK),_.N("design:type",Object)],Cv.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Cv.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Cv.prototype,"reactionControlPanelExpanded",void 0);_.T([_.g({selectorArgs:["data.liveReactionsDataEntityKey"],selector:XFd}),_.N("design:type",Object)],Cv.prototype,"liveReactionsData",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Cv.prototype,"isDarkTheme",void 0);_.T([_.g(),_.N("design:type",Object)],Cv.prototype,"newnessDotEligible",void 0);
_.T([_.x("liveReactionsData","data.expandedButtons"),_.N("design:type",Object),_.N("design:paramtypes",[])],Cv.prototype,"expandedButtonsData",null);_.T([_.x("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.g({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],Cv.prototype,"showNewnessDot",null);_.T([_.A2("#expanded-buttons"),_.N("design:type",HTMLElement)],Cv.prototype,"expandedButtons",void 0);
_.T([_.Yh("expandedButtonsData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cv.prototype,"expandedButtonsChanged",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Cv);
_.O(Cv,"yt-reaction-control-panel-view-model",function(){if(vka===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;iP$===void 0&&(iP$=document.createElement("template"));var b=iP$;l.call(H,b.content.cloneNode(!0),X.content.firstChild);vka=X}X=vka;return X},{mode:0});var wA=new _.DS("yt-live-chat"),OPU=Date.parse("2024-7-24"),dA=function(){var X=_.a.apply(this,arguments)||this;X.emojiManager=_.pL;X.newnessDotEligible=!1;X.newnessDotImpressionCounted=!1;X.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return X};
_.S(dA,_.a);_.R=dA.prototype;_.R.emojiCustomizationEnabledChanged=function(){var X;((X=this.data)==null?0:X.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((X=wA.getCreationTime("emoji-customization-count"))&&X<OPU&&wA.set("emoji-customization-count","0"),X=Number(wA.get("emoji-customization-count"))||0,X<3&&(this.newnessDotEligible=!0,wA.set("emoji-customization-count",(X+1).toString())),this.newnessDotImpressionCounted=!0)};
_.R.hideNewnessDot=function(){this.newnessDotEligible=!1;wA.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.R.handleReactionsMute=function(X){var H=_.Bi(),l=_.cS(206221),b={checkboxData:{state:X?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};H&&_.xB(H,l,b);this.reactionsMuted=X};
_.R.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.R.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}}};
_.ja.Object.defineProperties(dA.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var X;return(!((X=this.liveReactionsData)==null||!X.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
dA.prototype.liveReactionsSettingChanged=dA.prototype.liveReactionsSettingChanged;dA.prototype.emojiCustomizationEnabledChanged=dA.prototype.emojiCustomizationEnabledChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],dA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sK),_.N("design:type",Object)],dA.prototype,"ytLiveChatReduxBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],dA.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],dA.prototype,"data",void 0);_.T([_.g(),_.N("design:type",_.VK)],dA.prototype,"emojiManager",void 0);_.T([_.g(),_.N("design:type",Object)],dA.prototype,"newnessDotEligible",void 0);_.T([_.g(),_.N("design:type",Object)],dA.prototype,"newnessDotImpressionCounted",void 0);
_.T([_.g({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:HTp}),_.N("design:type",Boolean)],dA.prototype,"liveReactionsSetting",void 0);_.T([_.g({selectorArgs:["data.liveReactionsDataEntityKey"],selector:XFd}),_.N("design:type",Object)],dA.prototype,"liveReactionsData",void 0);_.T([_.g({value:function(){var X=_.P("enable_lwe_web_mute"),H=wA.get("allow-reactions");return H===void 0?!1:!H&&X}}),
_.N("design:type",Boolean)],dA.prototype,"reactionsMuted",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dA.prototype,"liveReactionsEnabled",null);_.T([_.Yh("data.emojiCustomizationEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dA.prototype,"emojiCustomizationEnabledChanged",null);
_.T([_.Yh("liveReactionsEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dA.prototype,"liveReactionsSettingChanged",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],dA);
_.O(dA,"yt-reaction-control-panel-overlay-view-model",function(){if(GDZ===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;gkl===void 0&&(gkl=document.createElement("template"));var b=gkl;l.call(H,b.content.cloneNode(!0),X.content.firstChild);GDZ=X}X=GDZ;return X},{mode:0});var muC={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(X){var H=this.$.pickers.selected;if(H){_.mh(this.hostElement).removeAttribute(H+"-open");var l="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(l="#picker-buttons",H==="emoji"&&_.mh(this.hostElement).querySelector("#emoji-picker-button")&&(l="#emoji-picker-button"));if(l=_.mh(this.hostElement).querySelector(l).querySelector("#"+H))l.active=!1}l=X;H==X&&(l=null);H!=
X&&_.mh(this.hostElement).setAttribute(X+"-open","");this.$.pickers.selected=l;_.TP(this.hostElement,"yt-live-chat-picker-changed",[l])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var h6=function(){var X=_.a.apply(this,arguments)||this;X.numSentMessages=0;X.timeoutDurationMs=0;X.timeoutMs=0;X.lastTimeoutTimeMs=0;X.pendingMessageId="";X.hasFiredInitialFocusActions=!1;X.isBeforeFocusEnabled=!0;X.id="";X.characterCount=0;X.maxCharacterLimit=0;X.remainingCharacterCount=0;X.inputExpanded=!1;X.buttonOverrides={iconPosition:"icon-only"};X.inReplyPanel=!1;X.countdownRatio=0;X.isTooltipVisible=!1;X.tooltipTimeout=1E4;X.systemIcons=_.P("kevlar_system_icons");X.tallerEmojiPicker=_.P("live_chat_taller_emoji_picker");
X.sendReplyMessageInFlight=!1;X.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"};X.onResize=function(){X.maybeToggleCharacterCount()};
return X};
_.S(h6,_.a);_.R=h6.prototype;
_.R.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"}}}};
_.R.attached=function(){window.addEventListener("resize",this.onResize)};
_.R.detached=function(){window.removeEventListener("resize",this.onResize)};
_.R.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.R.sendMessage=function(){var X=this,H,l,b,U;return _.h(function(K){if(X.sendDisabled)return K.return();X.isTooltipVisible&&_.TP(X.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(X.data.sendButton&&X.data.sendButton.buttonRenderer){X.input.completeEmojis();H=X.data.sendButton.buttonRenderer.serviceEndpoint;if(!H)return K.return();b=((l=_.f(H,_.LRQ))==null?void 0:l.clientIdPrefix)||"";U={client_message_id:b+String(X.numSentMessages++),rich_message:_.VY(X.input.liveChatRichMessageInput)};
X.pendingMessageId=U.client_message_id;X.inReplyPanel&&(X.sendReplyMessageInFlight=!0);_.ci(X.hostElement,[H,U]);X.input.setLiveChatRichMessageInput(null)}_.m5(K)})};
_.R.handleSendButtonAction=function(X){X.detail.actionName==="yt-service-request"&&(X.stopPropagation(),this.sendMessage())};
_.R.onSendCompleted=function(X,H){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(X=this.get("timeoutDurationUsec",H.data))&&this.handleTimeout(Number(X)/1E3);this.errorMessage=this.get("errorMessage",H.data);this.pendingMessageId=""};
_.R.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.TP(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.R.handlePickerButtonToggle=function(X){X=X.detail.targetId;this.ytPickerBehavior.togglePicker_(X);if(X==="emoji")this.input.focus();else if(X==="qna-start-panel"){var H,l;(H=_.mh(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(l=H.querySelector("#qna-creator-text-input-field"))==null||l.focus()}};
_.R.onComponentReplaced=function(X){var H,l;X.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((H=X.replacement.liveChatMessageInputRenderer)==null?0:(l=H.headerRenderer)==null?0:l.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.R.onEmojiSelect=function(X){this.input.focus();this.input.insertEmoji(X.detail)};
_.R.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.R.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.TP(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.TP(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.R.onOpenPopupAction=function(X,H){var l=this;H===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.TP(l.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.R.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.R.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.R.focusChanged=function(){this.maybeToggleCharacterCount()};
_.R.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var X=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",X>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.R.computeId=function(){return this.data&&this.data.targetId||""};
_.R.computeSendDisabled=function(X,H,l,b){X=!!(!X||H&&X>H||b);(H=_.mh(this.hostElement).querySelector("#send-button"))&&H.children.length&&(H.children[0].disabled=X);return X};
_.R.handleTimeout=function(X){this.timeoutDurationMs=this.timeoutMs=X;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.R.updateTimeout=function(X){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(X-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=X,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.R.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.R.onErrorMessageEdit=function(X){this.input.setLiveChatRichMessageInput(X.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.R.errorMessageChanged=function(){var X=this;_.fc(function(){_.TP(X.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.R.computeAuthorNameColor=function(X){var H;if(_.P("live_chat_author_name_color_usernames")&&(X==null?0:(H=X.authorName)==null?0:H.simpleText))return _.o4m(_.b6h(X.authorName.simpleText));if(_.P("live_chat_seed_color_usernames")&&(X==null?0:X.authorSeedColorArgb))return _.o4m(_.NR(X.authorSeedColorArgb));if(_.P("live_chat_colored_usernames"))return"#cc0000";var l;return _.P("live_chat_simple_color_usernames")&&(X==null?0:(l=X.authorName)==null?0:l.simpleText)&&(X==null?0:X.authorUsernameColorLight)&&
(X==null?0:X.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.NR(X.authorUsernameColorDark):_.NR(X.authorUsernameColorLight):""};
_.R.onIsTooltipVisibleChanged=function(){var X=_.mh(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){X.hidden=!1;X.setAttribute("role","alert")},0):(X.hidden=!0,X.removeAttribute("role"))};
_.R.onFocusedChanged=function(X){this.inputFocused=X.detail.value};
_.ja.Object.defineProperties(h6.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 X;return!((X=this.data)==null||!X.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:(H=X.pickers)==null?void 0:H.find(function(l){return l.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var X=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return X?this.ytRendererBehavior.getSimpleString(X):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
h6.prototype.onIsTooltipVisibleChanged=h6.prototype.onIsTooltipVisibleChanged;h6.prototype.errorMessageChanged=h6.prototype.errorMessageChanged;h6.prototype.onErrorMessageEdit=h6.prototype.onErrorMessageEdit;h6.prototype.onErrorMessageDismiss=h6.prototype.onErrorMessageDismiss;h6.prototype.focusChanged=h6.prototype.focusChanged;h6.prototype.characterCountChanged=h6.prototype.characterCountChanged;h6.prototype.onEmojiSelect=h6.prototype.onEmojiSelect;h6.prototype.handlePickerButtonToggle=h6.prototype.handlePickerButtonToggle;
h6.prototype.onSendError=h6.prototype.onSendError;h6.prototype.onSendCompleted=h6.prototype.onSendCompleted;h6.prototype.sendMessage=h6.prototype.sendMessage;h6.prototype.dataChanged=h6.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],h6.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(muC.YtPickerBehavior),_.N("design:type",Object)],h6.prototype,"ytPickerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.MU.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],h6.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],h6.prototype,"hasFiredInitialFocusActions",void 0);
_.T([_.g(),_.N("design:type",Object)],h6.prototype,"isBeforeFocusEnabled",void 0);_.T([_.g(),_.N("design:type",Object)],h6.prototype,"data",void 0);_.T([_.g({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",Object)],h6.prototype,"id",void 0);_.T([_.g(),_.N("design:type",Object)],h6.prototype,"characterCount",void 0);_.T([_.g(),_.N("design:type",Object)],h6.prototype,"maxCharacterLimit",void 0);
_.T([_.g(),_.N("design:type",Object)],h6.prototype,"remainingCharacterCount",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],h6.prototype,"inputExpanded",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],h6.prototype,"inputFocused",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],h6.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.T([_.g(),_.N("design:type",_.xS)],h6.prototype,"participantsManager",void 0);
_.T([_.g(),_.N("design:type",Object)],h6.prototype,"buttonOverrides",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],h6.prototype,"inReplyPanel",void 0);_.T([_.x("characterCount, maxCharacterLimit, countdownActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],h6.prototype,"sendDisabled",null);_.T([_.g(),_.N("design:type",Object)],h6.prototype,"countdownRatio",void 0);
_.T([_.x("countdownRatio"),_.N("design:type",Number),_.N("design:paramtypes",[])],h6.prototype,"countdownStrokeDashOffset",null);_.T([_.x("countdownRatio"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],h6.prototype,"countdownActive",null);_.T([_.x("data.interactionMessage"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],h6.prototype,"hasInteractionMessage",null);
_.T([_.x("data.emojiPickerButton"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],h6.prototype,"hasEmojiPickerButton",null);_.T([_.x("data, characterCount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],h6.prototype,"showAvatar",null);_.T([_.x("data.pickers"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],h6.prototype,"hasProductPickerPanelViewModel",null);
_.T([_.g(),_.N("design:type",Object)],h6.prototype,"errorMessage",void 0);_.T([_.g(),_.N("design:type",Object)],h6.prototype,"genericErrorMessage",void 0);_.T([_.g(),_.N("design:type",Object)],h6.prototype,"isTooltipVisible",void 0);_.T([_.g(),_.N("design:type",Object)],h6.prototype,"tooltipTimeout",void 0);_.T([_.x("data.onInitialFocusCommand"),_.N("design:type",String),_.N("design:paramtypes",[])],h6.prototype,"tooltipMessage",null);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],h6.prototype,"systemIcons",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],h6.prototype,"tallerEmojiPicker",void 0);_.T([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],h6.prototype,"authorNameColor",null);_.T([_.g(),_.N("design:type",Object)],h6.prototype,"sendReplyMessageInFlight",void 0);_.T([_.A2("#input"),_.N("design:type",_.gCQ)],h6.prototype,"input",void 0);
_.T([_.A2("#count"),_.N("design:type",HTMLElement)],h6.prototype,"count",void 0);_.T([_.A2("#input-container"),_.N("design:type",HTMLElement)],h6.prototype,"inputContainer",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h6.prototype,"dataChanged",null);_.T([_.Le("yt-live-chat-send-message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],h6.prototype,"sendMessage",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[Event,_.DH]),_.N("design:returntype")],h6.prototype,"onSendCompleted",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h6.prototype,"onSendError",null);
_.T([_.Le("yt-live-chat-icon-toggle-button-renderer-toggle"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],h6.prototype,"handlePickerButtonToggle",null);_.T([_.Le("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],h6.prototype,"onEmojiSelect",null);
_.T([_.Yh("characterCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h6.prototype,"characterCountChanged",null);_.T([_.Yh("inputFocused"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h6.prototype,"focusChanged",null);_.T([_.Le("yt-live-chat-error-message-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h6.prototype,"onErrorMessageDismiss",null);
_.T([_.Le("yt-live-chat-error-message-edit"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],h6.prototype,"onErrorMessageEdit",null);_.T([_.Yh("errorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h6.prototype,"errorMessageChanged",null);_.T([_.Yh("isTooltipVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h6.prototype,"onIsTooltipVisibleChanged",null);
_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],h6);
_.O(h6,"yt-live-chat-message-input-renderer",function(){if(CWN===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;RDe===void 0&&(RDe=document.createElement("template"));var b=RDe;l.call(H,b.content.cloneNode(!0),X.content.firstChild);CWN=X}X=CWN;return X},{mode:0});var QUp;var T$Z;var FY=function(){var X=_.a.apply(this,arguments)||this;X.systemIcons=_.P("kevlar_system_icons");X.firedOnClickCommand=!1;X.inReplyPanel=!1;return X};
_.S(FY,_.a);
FY.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"}}}};
FY.prototype.onButtonToggle=function(X){X.target.disabled||this.ytPickerBehavior.togglePicker_(X.detail.targetId)};
FY.prototype.onClick=function(){var X=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.TP(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return X.firedOnClickCommand=!1},5E3))};
_.ja.Object.defineProperties(FY.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:(H=X.panels)==null?void 0:H.find(function(l){return l.liveChatProductPickerPanelViewModel}))!==void 0}}});
FY.prototype.onButtonToggle=FY.prototype.onButtonToggle;_.T([_.k(muC.YtPickerBehavior),_.N("design:type",Object)],FY.prototype,"ytPickerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],FY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],FY.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],FY.prototype,"systemIcons",void 0);_.T([_.g({reflectToAttribute:!1}),_.N("design:type",Object)],FY.prototype,"firedOnClickCommand",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],FY.prototype,"inReplyPanel",void 0);_.T([_.x("data.pickers"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],FY.prototype,"hasProductPickerPanelViewModel",null);
_.T([_.Le("yt-live-chat-icon-toggle-button-renderer-toggle"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],FY.prototype,"onButtonToggle",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],FY);
_.O(FY,"yt-live-chat-restricted-participation-renderer",function(){if(T$Z===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;QUp===void 0&&(QUp=document.createElement("template"));var b=QUp;l.call(H,b.content.cloneNode(!0),X.content.firstChild);T$Z=X}X=T$Z;return X},{mode:0});var BH=function(){var X=_.a.apply(this,arguments)||this;X.genericErrorMessage=_.xM("Error, try again.");X.inReplyPanel=!1;X.hideBorder=!1;return X};
_.S(BH,_.a);BH.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}}}}}};
_.ja.Object.defineProperties(BH,{template:{configurable:!0,enumerable:!0,get:function(){return HPZ()}}});
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],BH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],BH.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],BH.prototype,"genericErrorMessage",void 0);_.T([_.g(),_.N("design:type",Object)],BH.prototype,"inReplyPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],BH.prototype,"hideBorder",void 0);
_.T([_.qR({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],BH);_.O(BH,"yt-live-chat-engagement-panel-input-renderer",function(){return HPZ()},{mode:0});var N$a;var c4y;var jUy=new _.DS("yt-live-chat"),r4U=new Map;r4U.set("timestamp_toggle","show-timestamps");r4U.set("reactions_toggle","allow-reactions");var q2=function(){return _.a.apply(this,arguments)||this};
_.S(q2,_.a);_.R=q2.prototype;_.R.menuItemIdentifierChanged=function(){var X;(X=this.data)!=null&&X.menuItemIdentifier&&(X=r4U.get(this.data.menuItemIdentifier))&&(_.P("enable_lwe_web_mute")?(X=jUy.get(X),this.isToggled=!(X===void 0?!this.data.isToggled:!X)):this.isToggled=jUy.get(X))};
_.R.onFocus=function(){this.toggleButton.focus()};
_.R.onTap=function(){var X=this.data.command;X&&this.componentBehavior.resolveCommand(X)};
_.R.computeText=function(X,H,l){return this.componentBehavior.getSimpleString(X?l:H)};
_.R.computeIcon=function(X,H,l){return(X=X?l:H)&&X.iconType?_.jL(X.iconType):""};
q2.prototype.onTap=q2.prototype.onTap;q2.prototype.onFocus=q2.prototype.onFocus;q2.prototype.menuItemIdentifierChanged=q2.prototype.menuItemIdentifierChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],q2.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],q2.prototype,"data",void 0);
_.T([_.g({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.N("design:type",String)],q2.prototype,"icon",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],q2.prototype,"isToggled",void 0);_.T([_.A2("tp-yt-paper-toggle-button"),_.N("design:type",Object)],q2.prototype,"toggleButton",void 0);_.T([_.Yh("data.menuItemIdentifier"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q2.prototype,"menuItemIdentifierChanged",null);
_.T([_.Le("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q2.prototype,"onFocus",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q2.prototype,"onTap",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],q2);
_.O(q2,"yt-live-chat-toggle-renderer",function(){if(c4y===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;N$a===void 0&&(N$a=document.createElement("template"));var b=N$a;l.call(H,b.content.cloneNode(!0),X.content.firstChild);c4y=X}X=c4y;return X},{mode:0});var J4Y=new _.gz("NAVIGATION_PROGRESS_TOKEN");var LlU={},Yjp={},I5U=(Yjp[vIZ.name]=!0,Yjp),s3=function(){var X=_.Hc.apply(this,arguments)||this;X._noAccessors=!0;X.tabGesturesIsActive=!1;X.actionRouterIsRoot=!0;X.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"};X.pageTitle="";X.titleSuffix="YouTube";X.unseenNotificationCount=
0;X.hasNavigated=!1;X.hasSetScrollTopForNavigation=!1;X.pagePreparer=null;X.zwiebackInitJobId=0;X.dataUpdatePromise=null;X.loadDepsPromise=_.rZ();X.hasPendingNavigation=!1;X.pendingPlayerOnResponseReceivedActions=[];return X};
_.S(s3,_.Hc);s3.prototype.attached=function(){A4x(this);document.addEventListener("yt-navigate-cache",_.J2(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var X=M2();X.init();X.dispatchElement=this.hostElement};
var A4x=function(X,H){H=H===void 0?0:H;var l=_.jJ().resolve(_.c$(_.Lg));if(l)XdU(X,l);else{if(H>=5)throw Error("vl");setTimeout(function(){A4x(X,H+1)},0)}},XdU=function(X,H){H.addEventListener("yt-navigate-start",_.J2(X,X.onYtNavigateStart));
H.addEventListener("yt-navigate-finish",_.J2(X,X.onYtNavigateFinish));H.addEventListener("yt-navigate-error",_.J2(X,X.onYtNavigateError));H.addEventListener("yt-page-data-fetched",_.J2(X,X.onYtPageDataFetched))};
_.R=s3.prototype;_.R.detached=function(){var X=_.jJ().resolve(_.Lg);X.removeEventListener("yt-navigate-start",_.J2(this,this.onYtNavigateStart));X.removeEventListener("yt-navigate-finish",_.J2(this,this.onYtNavigateFinish));X.removeEventListener("yt-navigate-error",_.J2(this,this.onYtNavigateError));X.removeEventListener("yt-page-data-fetched",_.J2(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.J2(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.R.setPageOffset=function(X,H){X?_.TP(this.hostElement,"yt-set-page-offset",[X,H]):_.n2(Error("wl"))};
_.R.setPageOffsetForNavigation=function(X,H){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(X,H))};
_.R.onYtNavigateSetPageOffset=function(X,H){this.setPageOffsetForNavigation(H.page,H.offset)};
_.R.getPageOffset=function(){var X=_.mh(this.hostElement).querySelector("#page-manager").getCurrentPage(),H=0;X&&(H=_.TP(this.hostElement,"yt-get-page-offset",[X])[0]);return H};
_.R.onYtHistoryPop=function(X,H){if(_.G7("DISABLE_WARM_LOADS"))X.preventDefault(),window.location.reload();else{var l=_.jJ().resolve(_.Lg);l.hasPendingNavigation()&&X.preventDefault();l.cancelPendingNavigation();_.NG(this.hostElement,"yt-pending-navigation-cancelled");H.errorMsg&&(X=H.errorMsg.split(" - "),H=Error(X[0]),X.length==2&&X[1]&&(_.Dq(H,X[1]),_.x2(H)),window.location.reload())}};
_.R.onYtHistoryLoad=function(X,H){var l=this;if(_.G7("DISABLE_WARM_LOADS"))window.location.reload();else{(X=H.endpoint)&&Object.keys(X).length||(X=null);var b=H.historyEntry,U=_.jJ().resolve(_.Lg),K=_.jJ().resolve(_.gd),w=null;b&&b.rootData&&(w=b.rootData);var d=w&&HOY(w);!w||d||w.filler?X?(U.navigate(X,!0),luA(this,X)):(H.legacyBorder||d||(H.JSC$31245_savedComponentState==null&&w==null?_.x2(new _.qd("Incomplete history entry",H.forward)):_.k2(new _.qd("Malformed history entry",H.JSC$31245_savedComponentState,
H.forward,w))),window.location.reload()):(_.Y6N({isHot:!0}),_.FS({webInfo:{navigationReason:"h"}}),_.OKy(),_.sf("srt"),_.sf("pdc"),this.cancelPendingTasks(),obx(this,H.forward,w),w.player&&(w.player.loaded=!1),luA(this,X),_.F3Y(U,X||{},w,2,{},!1,H).then(function(){l.setPageOffset(K.getCurrentPage(),b.scrollTop||0)}))}};
_.R.initHistoryManager=function(X){if(!this.hasNavigated){this.hasNavigated=!0;var H=_.mh(this.hostElement).querySelector("#page-manager").getCurrentData();X=isNaN(X)?this.getPageOffset():X;var l=_.jJ().resolve(_.Lg).currentEndpoint;this.replaceState(l,H,X)}};
_.R.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.R.onYtNavigateStart=function(X,H){this.navigationSpan&&(this.navigationSpan.addAttributes({cancelled:!0}),this.navigationSpan.end());var l;this.navigationSpan=_.Oc("navigate",{fromPath:window.location.pathname,toPath:H.url?(l=_.c1(H.url))!=null?l:void 0:void 0});this.cancelPendingTasks();H.noProgressBar||(X=_.jJ().resolve(_.c$(J4Y)))&&X.start();X=this.hasPendingNavigation?null:this.data;l=_.jJ().resolve(_.gd);var b,U,K;_.P("kevlar_use_vimio_behavior")&&!((b=H.endpoint)==null?0:(U=b.commandMetadata)==
null?0:(K=U.webCommandMetadata)==null?0:K.ignoreNavigation)&&(b=l.getCurrentPage())&&b.disconnectVisibilityRoot();l.prepareForNavigation(H.pageType,H.endpoint);_.P("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.EK(1,"pcl"),_.gh(this.pagePreparer,l.preparePage.bind(l,H.pageType,H.endpoint)));b=this.getPageOffset();this.initHistoryManager(b);H.reload||this.hasPendingNavigation?(H.pageType==="shorts"&&H.reload&&_.QX(this.hostElement,"yt-shorts-reset"),this.replaceState(H.endpoint,X,b)):
(X==null?void 0:X.page)==="watch"&&H.pageType==="watch"&&_.P("kevlar_replace_watch_to_watch_history_state")?this.replaceState(H.endpoint,X,b):(X==null?void 0:X.page)!=="shorts"||H.pageType!=="shorts"||H.endpoint.reelWatchEndpoint.sequenceParams||_.P("short_to_short_back_nav_killswitch")?H.type!="navigate-back"&&H.type!="navigate-forward"&&(H.pageType==="shorts"&&_.QX(this.hostElement,"yt-shorts-reset"),this.saveAndPush(H.url,H.endpoint,X,b)):this.replaceState(H.endpoint,X,0);this.hasPendingNavigation=
!0};
var bOC=function(X){X.hasPendingNavigation=!1;(X=_.jJ().resolve(_.c$(J4Y)))&&X.finish()};
s3.prototype.onYtNavigateError=function(X,H){this.navigationSpan&&(this.navigationSpan.end("SPAN_STATUS_ERROR"),this.navigationSpan=void 0);bOC(this);X=this.get("endpoint.commandMetadata.webCommandMetadata.url",H);var l=_.QO(window.location.href);X&&!l.pbjreload&&(H=H.navigationErrorReason||"10",_.P("kevlar_parent_on_pbjreload")&&(l={csn:_.Bi()},this.get("data.endpoint.clickTrackingParams")&&(l.itct=this.data.endpoint.clickTrackingParams),_.Ec(X,l)),_.y_(_.T7(X,{pbjreload:H})))};
s3.prototype.onYtNavigateCache=function(X,H){var l=this,b=H.url,U=H.endpoint,K=H.data;X=!!H.miniplayer;H=!!H.skipHistory;if(b&&U&&K){var w=this.getPageOffset(),d=this.data||null;H||this.saveAndPush(b,U,d,w);b=_.F3Y(_.jJ().resolve(_.Lg),U,K,X?4:3,{},X);X&&b.then(function(){l.dataUpdatePromise&&l.dataUpdatePromise.then(function(){var B=_.jJ().resolve(_.gd);l.setPageOffset(B.getCurrentPage(),0)})})}};
s3.prototype.onYtNavigateFinish=function(X,H){var l=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){U5p(l,H.fromHistory)})};
var U5p=function(X,H){X.navigationSpan&&(X.navigationSpan.end(),X.navigationSpan=void 0);bOC(X);if(X.pendingPlayerOnResponseReceivedActions){for(var l=_.C(X.pendingPlayerOnResponseReceivedActions),b=l.next();!b.done;b=l.next())_.Lc(b.value,X.hostElement);X.pendingPlayerOnResponseReceivedActions=[]}l=_.jJ().resolve(_.gd);H||!X.hasNavigated||_.P("web_disable_scroll_on_navigate_finish")||((H=l.getCurrentPage())?H.is==="ytd-shorts"||X.tabGesturesIsActive||X.setPageOffsetForNavigation(H,0):_.x2(Error("xl")));
_.fc(function(){_.fc(function(){_.sf("pda")})})};
s3.prototype.onYtNavigate=function(X){if(!X.detail.endpoint){var H=new _.qd("Error: Missing yt-navigate endpoint from target:",X.target,X.target.nodeName);_.n2(H)}if(H=_.P("cold_missing_history"))H=M2(),H.init(!1),H=!(H.browserHistory.boundHistoryReplaceState&&H.browserHistory.boundHistoryPushState);if(H){_.Et("DISABLE_WARM_LOADS",!0);H=new _.qd("Failed to initialize history manager",this.getDebugString());var l=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
l?_.x2(H):_.n2(H)}H=X.detail.endpoint;var b,U;_.P("debug_forward_web_query_parameters")&&((b=H.commandMetadata)==null?0:(U=b.webCommandMetadata)==null?0:U.url)&&(H=JSON.parse(JSON.stringify(H)),H.commandMetadata.webCommandMetadata.url=_.jOy(H.commandMetadata.webCommandMetadata.url,window.location.search));X={type:0,command:H,form:{params:X.detail.params,tempData:X.detail.tempData||{},requestType:X.detail.type,createScreenConfig:X.detail.createScreenConfig,reload:X.detail.reload?X.detail.reload:!1,
requestForm:X.detail}};_.P("kevlar_yt_navigate_command_handler")?(b=_.jJ().resolve(_.Vr),X.form.skipDefaultElement=!0,b.resolveCommand(H,{form:X.form})):this.handleNavigate(X)};
s3.prototype.handleNavigate=function(X){this.hasSetScrollTopForNavigation=!1;var H=_.jJ().resolve(_.Lg),l=X.form||{};H.navigate(X.command,l.reload,l.params,l.tempData,l.requestType,l.createScreenConfig,l.ignoreConfirmation,l.requestForm)&&luA(this,X.command,l.tempData)};
s3.prototype.onYtPageDataFetched=function(X,H){try{_.l5q().reset();this.data=H.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.jJ().resolve(_.gd).updatePageData(this.data);var l=this.get("playerResponse.onResponseReceivedActions",this.data);l&&(l=$5Y(this,l));l&&_.j7(this.hostElement,l,this.hostElement);var b=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),U=this.get("response.responseContext.consistencyTokenJar",this.data);if(b||U){var K=_.o5y(),w=(0,_.Bb.getValues)(K.tokenJars);b&&K.replace(w,b);U&&K.replace(w,U)}}catch(d){_.n2(d)}};
var luA=function(X,H,l){try{X.onYtEndpointChangeHandler(H,l)}catch(b){_.n2(b)}};
_.R=s3.prototype;_.R.onYtEndpointChangeHandler=function(){};
_.R.setPageTitle=function(X){X=(this.pageTitle=X)?X+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+X};
_.R.onYtUpdateTitle=function(X,H){this.setPageTitle(H)};
_.R.setUnseenNotificationCount=function(X){this.unseenNotificationCount=X;this.setPageTitle(this.pageTitle)};
_.R.handleUpdateNotificationsUnseenCountAction=function(X){_.f(X,dCC)&&((X=_.f(X,dCC).unseenCount)?this.setUnseenNotificationCount(X):this.setUnseenNotificationCount(0))};
_.R.handleClearCookieAction=function(X){var H;(X=(H=_.f(X,UCd))==null?void 0:H.cookieName)&&_.hPZ(X)};
_.R.onYtUpdateUnseenNotificationCount=function(X,H){this.setUnseenNotificationCount(H)};
_.R.loadData=function(X){var H=this;this.loadDepsPromise.then(function(){var l=_.jJ().resolve(_.c$(_.Lg));l||_.n2(Error("yl"));if(X&&X.response){if(!X.endpoint){var b=_.jN(window.document.location.href)||"/",U="";if(b==="/"||b.startsWith("/?"))U="WEB_PAGE_TYPE_BROWSE";X.endpoint={commandMetadata:{webCommandMetadata:{url:b,webPageType:U,rootVe:3854}}}}_.F3Y(l,X.endpoint,X,5,{})}else X.endpoint?l.navigate(X.endpoint):l.navigate(_.oy);_.Ss.cancelJob(H.zwiebackInitJobId);H.zwiebackInitJobId=_.Ss.addLowPriorityJob(rwC)})};
var M2=function(){return _.jJ().resolve(_.AW)};
s3.prototype.getDebugString=function(){return M2().getDebugString()};
s3.prototype.getThirdPartyManipulationSuspected=function(){return M2().getThirdPartyManipulationSuspected()};
s3.prototype.replaceState=function(X,H,l){M2().saveAndReplace(X,H,l)};
s3.prototype.saveAndPush=function(X,H,l,b){M2().saveAndPush(X,H,l,b)};
var HOY=function(X){return _.f(X.endpoint,_.ku)||_.f(X.endpoint,_.HM)?!0:!X||isNaN(X.expirationTime)?!1:(0,_.Jl)()>X.expirationTime},obx=function(X,H,l){var b=X.get("response.trackingParams",l),U=_.F6(),K=_.Bi();
if(b&&U&&K&&(b=X.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",l),!b&&l.rootVe&&(b=l.rootVe),U=H?"forwardButton":"backButton",H=X.get("playerResponse.topbar.desktopTopbarRenderer."+U+".buttonRenderer.command.clickTrackingParams",X.data),X=X.get("response.topbar.desktopTopbarRenderer."+U+".buttonRenderer.command.clickTrackingParams",X.data),H=(X=H||X)?_.$l(X):void 0,X=_.lv(),U=[_.rZ(l)],_.jR(X,b,H,{dataPromises:U,csnToClone:l.csn}),l.graftedVes))for(l=
_.C(l.graftedVes),b=l.next();!b.done;b=l.next())_.rg(X,b.value)};
s3.prototype.onStoreGraftedVeAction=function(X){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(X)):_.x2(Error("zl"))};
var $5Y=function(X,H){return H.filter(function(l){for(var b in l)if(I5U[b])return X.pendingPlayerOnResponseReceivedActions.push(l),!0;return!1})};
_.ja.Object.defineProperties(s3.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
s3.prototype.onStoreGraftedVeAction=s3.prototype.onStoreGraftedVeAction;s3.prototype.loadData=s3.prototype.loadData;s3.prototype.onYtUpdateUnseenNotificationCount=s3.prototype.onYtUpdateUnseenNotificationCount;s3.prototype.handleClearCookieAction=s3.prototype.handleClearCookieAction;s3.prototype.handleUpdateNotificationsUnseenCountAction=s3.prototype.handleUpdateNotificationsUnseenCountAction;s3.prototype.setUnseenNotificationCount=s3.prototype.setUnseenNotificationCount;
s3.prototype.onYtUpdateTitle=s3.prototype.onYtUpdateTitle;s3.prototype.setPageTitle=s3.prototype.setPageTitle;s3.prototype.onYtEndpointChangeHandler=s3.prototype.onYtEndpointChangeHandler;s3.prototype.onYtPageDataFetched=s3.prototype.onYtPageDataFetched;s3.prototype.handleNavigate=s3.prototype.handleNavigate;s3.prototype.onYtNavigate=s3.prototype.onYtNavigate;s3.prototype.onYtNavigateFinish=s3.prototype.onYtNavigateFinish;s3.prototype.onYtNavigateCache=s3.prototype.onYtNavigateCache;
s3.prototype.onYtNavigateError=s3.prototype.onYtNavigateError;s3.prototype.onYtNavigateStart=s3.prototype.onYtNavigateStart;s3.prototype.cancelPendingTasks=s3.prototype.cancelPendingTasks;s3.prototype.initHistoryManager=s3.prototype.initHistoryManager;s3.prototype.onYtHistoryLoad=s3.prototype.onYtHistoryLoad;s3.prototype.onYtHistoryPop=s3.prototype.onYtHistoryPop;s3.prototype.onYtNavigateSetPageOffset=s3.prototype.onYtNavigateSetPageOffset;s3.prototype.setPageOffset=s3.prototype.setPageOffset;
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],s3.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],s3.prototype,"data",void 0);_.T([_.Le("yt-navigate-set-page-offset"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],s3.prototype,"onYtNavigateSetPageOffset",null);
_.T([_.Le("yt-history-pop"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],s3.prototype,"onYtHistoryPop",null);_.T([_.Le("yt-history-load"),_.N("design:type",Function),_.N("design:paramtypes",[Event,_.xr_]),_.N("design:returntype")],s3.prototype,"onYtHistoryLoad",null);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],s3.prototype,"onYtNavigate",null);
_.T([_.Le("yt-update-title"),_.N("design:type",Function),_.N("design:paramtypes",[Event,String]),_.N("design:returntype")],s3.prototype,"onYtUpdateTitle",null);_.T([_.Le("yt-update-unseen-notification-count"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Number]),_.N("design:returntype")],s3.prototype,"onYtUpdateUnseenNotificationCount",null);_.T([_.l9()],s3);LlU.YtdAppBehavior=[_.rh.YtActionHandlerBehavior,s3.prototype];var uA=function(){var X=_.Hc.apply(this,arguments)||this;X._noAccessors=!0;X.scrollRate=3;X.autoScrollAnimationStart=0;X.autoScrollPaused=!1;X.autoScrollRafId=0;return X};
_.S(uA,_.Hc);_.R=uA.prototype;_.R.created=function(){var X=this;this.boundAutoScrollHandler=function(H){X.autoScroll(H)}};
_.R.detached=function(){this.hostElement.removeEventListener("mouseout",_.J2(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.J2(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.J2(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.R.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.J2(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.J2(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.J2(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.J2(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.J2(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.J2(this,this.endAutoScroll)),this.endAutoScroll())};
_.R.autoScroll=function(X){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=X);var H;if(H=!this.autoScrollPaused&&this.scrollTarget)H=this.scrollTarget,H=H.scrollHeight-H.scrollTop!==H.clientHeight;H&&(H=1E3/this.scrollRate,X-=this.autoScrollAnimationStart,X>H&&(this.scrollTarget.scrollTop+=Math.ceil(X/H),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.R.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.R.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
uA.prototype.autoScrollEnabledChanged=uA.prototype.autoScrollEnabledChanged;_.T([_.g(),_.N("design:type",Object)],uA.prototype,"scrollRate",void 0);_.T([_.g(),_.N("design:type",Object)],uA.prototype,"scrollTarget",void 0);_.T([_.g(),_.N("design:type",Boolean)],uA.prototype,"autoScrollEnabled",void 0);_.T([_.Yh("autoScrollEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uA.prototype,"autoScrollEnabledChanged",null);_.T([_.l9()],uA);var K0Y=[uA.prototype];var er=function(){var X=_.Hc.apply(this,arguments)||this;X._noAccessors=!0;return X};
_.S(er,_.Hc);er.prototype.ready=function(){var X=this;_.mh(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){X.onChange_()})};
er.prototype.dataChanged_=function(){_.mh(this.hostElement).querySelector("#checkbox").checked=!1};
er.prototype.onChange_=function(){var X=_.mh(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.QX(this.hostElement,"yt-dismissal-reason-"+X,this.data.feedbackToken)};
er.prototype.dataChanged_=er.prototype.dataChanged_;_.T([_.g(),_.N("design:type",Object)],er.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],er.prototype,"dataChanged_",null);_.T([_.l9()],er);var Rbx=[er.prototype];var yF=function(){var X=_.Hc.apply(this,arguments)||this;X.showInput=!1;return X};
_.S(yF,_.Hc);_.R=yF.prototype;_.R.detached=function(){this.showInput&&window.removeEventListener("click",_.J2(this,this.closeOnOutsideClick_))};
_.R.stopPropagation_=function(X){this.showInput&&X.stopPropagation()};
_.R.closeOnOutsideClick_=function(X){this.closeOnOutsideClickCondition(X)&&(this.showInput=!1,window.removeEventListener("click",_.J2(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.R.closeOnOutsideClickCondition=function(){return!0};
_.R.closeOnOutsideClickHandler=function(){};
_.R.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.J2(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.R.openOnClickHandler=function(){};
_.R.showInputChanged=function(){};
_.R.setShowInput=function(X){this.showInput=X};
yF.prototype.setShowInput=yF.prototype.setShowInput;yF.prototype.showInputChanged=yF.prototype.showInputChanged;yF.prototype.openOnClickHandler=yF.prototype.openOnClickHandler;yF.prototype.openOnClick_=yF.prototype.openOnClick_;yF.prototype.closeOnOutsideClickHandler=yF.prototype.closeOnOutsideClickHandler;yF.prototype.closeOnOutsideClickCondition=yF.prototype.closeOnOutsideClickCondition;yF.prototype.closeOnOutsideClick_=yF.prototype.closeOnOutsideClick_;yF.prototype.stopPropagation_=yF.prototype.stopPropagation_;
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],yF.prototype,"showInput",void 0);_.T([_.Le("click"),_.Le("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],yF.prototype,"stopPropagation_",null);_.T([_.Yh("showInput"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],yF.prototype,"showInputChanged",null);_.T([_.l9()],yF);var Cte=[yF.prototype];var VF=function(){var X=_.Hc.apply(this,arguments)||this;X.timeoutJobId=0;X.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return X};
_.S(VF,_.Hc);VF.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
VF.prototype.startTimeout=function(){var X=this,H=this.data&&this.data.displayDurationSeconds;H&&!this.timeoutJobId&&(this.timeoutJobId=_.eh(_.Ss,function(){_.TP(X.hostElement,"yt-close-popup-action",[X.is]);X.timeoutJobId=0},H*1E3))};
VF.prototype.cancelTimeout=function(){_.Ss.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
VF.prototype.ytdHatsSurveyBehaviorDataChanged=VF.prototype.ytdHatsSurveyBehaviorDataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],VF.prototype,"ytActionHandlerBehavior",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VF.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.T([_.l9()],VF);var wdA=[_.rh.YtActionHandlerBehavior,VF.prototype];var d5a=_.cS(115994),hbe=_.cS(115993),F0l=function(X,H,l){var b=this;var U=l.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 b.dragDownAction()}}}};
this.JSC$20425_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.fullscreen=!1;var K=_.lv();_.Ji(K,d5a,this.layer);_.Ji(K,hbe,this.layer);this.dragDownAction=function(){U();_.pl(K,{visualElement:b.fullscreen?d5a:hbe})};
this.gesture=new il(X,H,this.getConfig(!1),"pandown");this.attach()};
F0l.prototype.attach=function(){this.gesture.attach()};
F0l.prototype.detach=function(){this.gesture.detach()};
F0l.prototype.update=function(X){this.fullscreen=X;var H=this.gesture;X=this.getConfig(X);H.config=X};
F0l.prototype.getConfig=function(X){return X?this.JSC$20425_watchFullScreenConfig:this.JSC$20425_watchConfig};var BQa;var qx5;var PH=function(){var X=_.a.apply(this,arguments)||this;X.systemIcons=_.P("kevlar_system_icons");X.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return X};
_.S(PH,_.a);PH.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var X=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(X=this.data.percentIfLiked||0,this.activated=!0):(X=this.data.percentIfIndifferent||0,this.activated=!1);_.mh(this.hostElement).querySelector("#like-bar").style.width=X+"%"}};
PH.prototype.handleUpdateSentimentBarStateCommand=function(X){this.data&&this.set("data.likeStatus",_.f(X,pal).likeStatus)};
PH.prototype.observeLikeStatus=PH.prototype.observeLikeStatus;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],PH.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],PH.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],PH.prototype,"activated",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],PH.prototype,"systemIcons",void 0);_.T([_.Yh("data.likeStatus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PH.prototype,"observeLikeStatus",null);_.T([_.sq({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],PH);
_.O(PH,"ytd-sentiment-bar-renderer",function(){if(qx5!==void 0)return qx5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return qx5=X},{mode:1});var sxY;var fv=function(){var X=_.a.apply(this,arguments)||this;X.small=!0;return X};
_.S(fv,_.a);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],fv.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],fv.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fv.prototype,"small",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],fv);
_.O(fv,"ytd-video-view-count-renderer",function(){if(sxY!==void 0)return sxY;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return sxY=X},{mode:2});var pv=function(){var X=_.a.apply(this,arguments)||this;X.infoFormattedStrings=[];X.wrapVideoActions=_.P("kevar_watch_wrap_video_actions");X.hideSentimentBar=_.P("kevlar_watch_hide_sentiment_bar");X.actionMap={};return X};
_.S(pv,_.a);_.R=pv.prototype;_.R.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.P("web_modern_buttons"),forceIconButton:!_.P("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.R.dataChanged=function(){_.P("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.R.computeInfoFormattedStrings=function(X){if(!X)return[];var H=[];X.dateText&&H.push(X.dateText);X.stationName&&H.push(X.stationName);X.rating&&H.push(X.rating);X.startEndTimeTemplate&&X.startTimeUtcMillis&&X.endTimeUtcMillis&&H.push(_.xM(ueC(_.D8(X.startEndTimeTemplate),Number(X.startTimeUtcMillis),Number(X.endTimeUtcMillis))));X.upNextProgramText&&H.push(X.upNextProgramText);return H};
_.R.scheduleInitialUpdatedMetadataRequest=function(){var X,H=(X=this.data)==null?void 0:X.updatedMetadataEndpoint;if(H){var l;X=Number((l=_.f(H,_.eg6))==null?void 0:l.initialDelayMs);l=isNaN(X)?250:X;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),l)}};
_.R.setSentimentBarWidth=function(){var X=this;_.N0(this,function(){var H=_.mh(X.hostElement).querySelector("ytd-menu-renderer");if(H){H=H.topLevelButtons;for(var l=0,b=0;b<H.length;b++){var U=H[b],K=X.get("toggleButtonSupportedData.toggleButtonIdData.id",U.data);if(K==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||K==="TOGGLE_BUTTON_ID_TYPE_LIKE")l+=U.clientWidth+8;else break}l&&(X.sentiment.style.width=l-8+" px")}})};
_.R.fetchUpdatedMetadata=function(X){var H;X&&(H={continuation:X});var l;(X=(l=this.data)==null?void 0:l.updatedMetadataEndpoint)&&_.jJ().resolve(_.Vr).resolveCommand(X,{form:Object.assign({},H,{element:this.hostElement})})};
_.R.onYtServiceRequestSent=function(X,H){H.endpoint&&_.f(H.endpoint,_.wg)&&(this.hasUpdateSentimentBarStateCommands()&&!_.P("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.f(H.endpoint,_.wg).status),this.setSentimentBarWidth())};
_.R.hasUpdateSentimentBarStateCommands=function(){var X,H,l,b,U=(b=(X=this.data)==null?void 0:(H=X.videoActions)==null?void 0:(l=H.menuRenderer)==null?void 0:l.topLevelButtons)!=null?b:[];X=_.C(U);for(H=X.next();!H.done;H=X.next()){H=H.value;U=b=l=void 0;var K=(l=H.toggleButtonRenderer)==null?void 0:(b=l.toggleButtonSupportedData)==null?void 0:(U=b.toggleButtonIdData)==null?void 0:U.id;if(K==="TOGGLE_BUTTON_ID_TYPE_LIKE"||K==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){b=l=void 0;H=(b=_.f((l=H.toggleButtonRenderer)==
null?void 0:l.defaultServiceEndpoint,_.J$))==null?void 0:b.commands;if(!H)break;H=_.C(H);for(l=H.next();!l.done;l=H.next())if(_.f(l.value,pal))return!0}}return!1};
_.R.onYtServiceRequestCompleted=function(X,H){var l;(X=(l=H.data)==null?void 0:l.loggingDirectives)&&_.Pry(_.lv(),X);this.get("continuation.timedContinuationData",H.data)&&this.data&&this.data.updatedMetadataEndpoint&&(H=H.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,H.continuation),H.timeoutMs))};
_.R.computeHasDateText=function(X){return!!X&&!!X.dateText};
_.ja.Object.defineProperties(pv.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b;return!((b=(X=this.data)==null?void 0:(H=X.videoActions)==null?void 0:(l=H.menuRenderer)==null?void 0:l.flexibleItems)==null||!b.length)}}});
pv.prototype.onYtServiceRequestCompleted=pv.prototype.onYtServiceRequestCompleted;pv.prototype.onYtServiceRequestSent=pv.prototype.onYtServiceRequestSent;pv.prototype.dataChanged=pv.prototype.dataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],pv.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.tx.YtTaskEmitterBehavior),_.N("design:type",Object)],pv.prototype,"ytTaskEmitterBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pv.prototype,"data",void 0);_.T([_.g({computed:"computeInfoFormattedStrings(data)"}),_.N("design:type",Array)],pv.prototype,"infoFormattedStrings",void 0);
_.T([_.g({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],pv.prototype,"hasDateText",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pv.prototype,"wrapVideoActions",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],pv.prototype,"hideSentimentBar",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pv.prototype,"flexMenuEnabled",null);
_.T([_.A2("#sentiment"),_.N("design:type",Object)],pv.prototype,"sentiment",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pv.prototype,"dataChanged",null);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],pv.prototype,"onYtServiceRequestSent",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],pv.prototype,"onYtServiceRequestCompleted",null);
_.O(pv,"ytd-video-primary-info-renderer",function(){if(BQa===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);BQa=X}X=BQa;return X},{mode:1});var MEa;var ufl;var Sr=function(){return _.a.apply(this,arguments)||this};
_.S(Sr,_.a);Sr.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Sr.prototype.onTap=function(X){var H=this.data&&this.data.endpoint;H&&!_.WS(_.t2(X),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.QX(this.hostElement,"yt-navigate",{endpoint:H})};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Sr.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Sr.prototype,"data",void 0);_.T([_.sq({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Sr);
_.O(Sr,"ytd-autotagging-metadata-renderer",function(){if(ufl!==void 0)return ufl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ufl=X},{mode:1});var ebY;var zA=function(){return _.a.apply(this,arguments)||this};
_.S(zA,_.a);zA.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],zA.prototype,"data",void 0);_.T([_.sq({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],zA);
_.O(zA,"ytd-autotagging-metadata-row-renderer",function(){if(ebY!==void 0)return ebY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return ebY=X},{mode:1});var yHY;var VEU;var nv=function(){var X=_.a.apply(this,arguments)||this;X.engagementPanelContent=!1;return X};
_.S(nv,_.a);nv.prototype.computeHasDividerLine=function(X,H){return X&&!H};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],nv.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.N("design:type",Boolean)],nv.prototype,"hasDividerLine",void 0);_.T([_.g(),_.N("design:type",Object)],nv.prototype,"engagementPanelContent",void 0);
_.T([_.sq({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],nv);
_.O(nv,"ytd-metadata-row-header-renderer",function(){if(VEU!==void 0)return VEU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return VEU=X},{mode:1});var Pt$;var kZ=function(){return _.a.apply(this,arguments)||this};
_.S(kZ,_.a);kZ.prototype.computeHasDividerLine=function(X){return X};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],kZ.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],kZ.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.N("design:type",Boolean)],kZ.prototype,"hasDividerLine",void 0);_.T([_.sq({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],kZ);
_.O(kZ,"ytd-metadata-row-renderer",function(){if(Pt$!==void 0)return Pt$;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Pt$=X},{mode:1});var fuU;var pda=function(){return _.a.apply(this,arguments)||this};
_.S(pda,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pda.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pda.prototype,"data",void 0);_.T([_.sq({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],pda);
_.O(pda,"ytd-metadata-with-image-row-renderer",function(){if(fuU!==void 0)return fuU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return fuU=X},{mode:1});var SxZ;var xZ=function(){var X=_.a.apply(this,arguments)||this;X.rounded=!0;X.fixie=!1;X.fullWidth=!1;return X};
_.S(xZ,_.a);_.R=xZ.prototype;_.R.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.onDataChanged=function(){var X=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(H){X.onEndpointLinkKeyPress(H)}))};
_.R.onEndpointLinkKeyPress=function(X){X.target===this.endpointLink&&X.keyCode===13&&_.QX(this.hostElement,"click")};
_.R.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var X;if((X=this.data)==null?0:X.endpoint)_.j7(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.R.onYtNavigate=function(X){this.endpointHref||(X.stopPropagation(),X.preventDefault())};
_.R.onInformationButtonContainerClick=function(X){X.target.id!=="information-button-container"&&(X.stopPropagation(),X.preventDefault())};
_.R.computeStyle=function(X){return X};
_.R.computeIsThumbnailStyle=function(X){return X==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.R.computeThumbnailWidth=function(X){switch(X){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}};
_.R.computeThumbnailObjectFit=function(X){switch(X){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.ja.Object.defineProperties(xZ.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?0:X.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
xZ.prototype.onYtNavigate=xZ.prototype.onYtNavigate;xZ.prototype.onClick=xZ.prototype.onClick;xZ.prototype.onDataChanged=xZ.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],xZ.prototype,"componentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],xZ.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],xZ.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],xZ.prototype,"componentStyle",void 0);_.T([_.g({computed:"computeIsThumbnailStyle(data.style)"}),_.N("design:type",Boolean)],xZ.prototype,"isThumbnailStyle",void 0);_.T([_.g({computed:"computeThumbnailObjectFit(data.style)"}),_.N("design:type",String)],xZ.prototype,"thumbnailObjectFit",void 0);
_.T([_.g({computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],xZ.prototype,"thumbnailWidth",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],xZ.prototype,"rounded",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],xZ.prototype,"fixie",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],xZ.prototype,"fullWidth",void 0);_.T([_.A2("#endpoint-link"),_.N("design:type",HTMLAnchorElement)],xZ.prototype,"endpointLink",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xZ.prototype,"onDataChanged",null);_.T([_.x("data.endpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],xZ.prototype,"endpointHref",null);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],xZ.prototype,"onClick",null);
_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],xZ.prototype,"onYtNavigate",null);_.T([_.sq({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],xZ);
_.O(xZ,"ytd-rich-metadata-renderer",function(){if(SxZ!==void 0)return SxZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return SxZ=X},{mode:2});var zbY;var Dk=function(){var X=_.a.apply(this,arguments)||this;X.fixie=!1;X.fullWidth=!1;return X};
_.S(Dk,_.a);Dk.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Dk.prototype.computeHasDividerLine=function(X){return X};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Dk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Dk.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.N("design:type",Boolean)],Dk.prototype,"hasDividerLine",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Dk.prototype,"fixie",void 0);_.T([_.g(),_.N("design:type",Object)],Dk.prototype,"fullWidth",void 0);
_.T([_.sq({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Dk);
_.O(Dk,"ytd-rich-metadata-row-renderer",function(){if(zbY!==void 0)return zbY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return zbY=X},{mode:1});var t6=function(){var X=_.a.apply(this,arguments)||this;X.engagementPanelContent=!1;X.fixie=!1;X.fullWidth=!1;return X};
_.S(t6,_.a);
t6.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"}}}};
t6.prototype.computeCollapsibleItems=function(X,H,l){return X===void 0||H===void 0||l===void 0||l?[]:X.slice(H)};
t6.prototype.computeAlwaysShownItems=function(X,H){return X&&X.length?X.slice(0,H):[]};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],t6.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],t6.prototype,"collapsed",void 0);
_.T([_.g({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.N("design:type",Array)],t6.prototype,"alwaysShownItems",void 0);_.T([_.g({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.N("design:type",Array)],t6.prototype,"collapsibleItems",void 0);_.T([_.g(),_.N("design:type",Object)],t6.prototype,"engagementPanelContent",void 0);_.T([_.g(),_.N("design:type",Object)],t6.prototype,"fixie",void 0);
_.T([_.g(),_.N("design:type",Object)],t6.prototype,"fullWidth",void 0);_.T([_.sq({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],t6);
_.O(t6,"ytd-metadata-row-container-renderer",function(){if(yHY!==void 0)return yHY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return yHY=X},{mode:1});var nbx;var WH=function(){return _.a.apply(this,arguments)||this};
_.S(WH,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],WH.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],WH.prototype,"data",void 0);_.T([_.sq({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],WH);
_.O(WH,"ytd-error-corrections-section-item-renderer",function(){if(nbx!==void 0)return nbx;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return nbx=X},{mode:1});var kka;var E3=function(){return _.a.apply(this,arguments)||this};
_.S(E3,_.a);E3.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],E3.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],E3.prototype,"data",void 0);_.T([_.sq({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],E3);
_.O(E3,"ytd-error-corrections-section-renderer",function(){if(kka!==void 0)return kka;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return kka=X},{mode:1});var x5Y;var gA=function(){return _.a.apply(this,arguments)||this};
_.S(gA,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],gA.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],gA.prototype,"data",void 0);_.T([_.sq({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],gA);
_.O(gA,"ytd-topic-link-renderer",function(){if(x5Y!==void 0)return x5Y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return x5Y=X},{mode:1});var D5y;var GA=function(){var X=_.a.apply(this,arguments)||this;X.modernLockupV2=_.P("modernize_structured_description_playlist_lockups_v2");return X};
_.S(GA,_.a);GA.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],GA.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],GA.prototype,"modernLockupV2",void 0);_.T([_.sq({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],GA);
_.O(GA,"ytd-video-description-course-section-renderer",function(){if(D5y!==void 0)return D5y;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return D5y=X},{mode:1});var tEx;var at=function(){return _.a.apply(this,arguments)||this};
_.S(at,_.a);at.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],at.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],at.prototype,"data",void 0);_.T([_.sq({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],at);
_.O(at,"ytd-video-description-files-section-renderer",function(){if(tEx!==void 0)return tEx;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return tEx=X},{mode:1});var W0A;var Zk=function(){return _.a.apply(this,arguments)||this};
_.S(Zk,_.a);Zk.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Zk.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Zk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Zk.prototype,"data",void 0);_.T([_.sq({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],Zk);
_.O(Zk,"ytd-video-description-gaming-section-renderer",function(){if(W0A!==void 0)return W0A;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return W0A=X},{mode:1});var EbU;var iA=function(){var X=_.a.apply(this,arguments)||this;X.isExpanded=!1;return X};
_.S(iA,_.a);iA.prototype.computeHasDefaultMetadataEndpoint=function(X){var H;X=X==null?void 0:(H=X.defaultMetadata)==null?void 0:H.runs;return!(!X||X.length!==1||!X[0].navigationEndpoint)};
iA.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.ja.Object.defineProperties(iA.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],iA.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],iA.prototype,"isExpanded",void 0);_.T([_.g({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],iA.prototype,"hasDefaultMetadataEndpoint",void 0);
_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iA.prototype,"isExpandable",null);_.T([_.x("data","isExpandable","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iA.prototype,"showExpandedMetadata",null);_.T([_.sq({is:"ytd-info-row-renderer",disableElementRegistration:!0})],iA);
_.O(iA,"ytd-info-row-renderer",function(){if(EbU!==void 0)return EbU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return EbU=X},{mode:1});var gby;var vH=function(){var X=_.a.apply(this,arguments)||this;X.currentIndex=0;X.supportComponentResize=!0;X.JSC$20482_lastScrollContainerWidth=NaN;return X};
_.S(vH,_.a);_.R=vH.prototype;
_.R.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"}}}};
_.R.getItemsPath=function(){return"videoLockups"};
_.R.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.R.onIronResize=function(){this.updateVideoLockupStyles()};
_.R.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.R.updateVideoLockupStyles=function(){var X;this.JSC$20482_scrollContainer!==void 0&&(X=this.videoLockups)!=null&&X.length&&(X=this.JSC$20482_scrollContainer.clientWidth,X!==this.JSC$20482_lastScrollContainerWidth&&(this.JSC$20482_lastScrollContainerWidth=X,_.j4(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(X*.8,415)+"px"}),_.QX(this.hostElement,"iron-resize")))};
_.ja.Object.defineProperties(vH.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var X=[],H;if((H=this.data)==null||!H.carouselLockups)return X;H=_.C(this.data.carouselLockups);for(var l=H.next();!l.done;l=H.next()){l=l.value;var b=void 0;((b=_.f(l,mHA))==null?0:b.videoLockup)&&X.push(_.f(l,mHA).videoLockup)}return X}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.videoLockups)==null||!X.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var X=[],H;if((H=this.data)==null||!H.carouselLockups)return X;var l;return(l=_.f(this.data.carouselLockups[this.scrollCount],mHA))==null?void 0:l.infoRows}}});
vH.prototype.dataChanged=vH.prototype.dataChanged;vH.prototype.onIronResize=vH.prototype.onIronResize;vH.prototype.hiddenChanged=vH.prototype.hiddenChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],vH.prototype,"componentBehavior",void 0);_.T([_.k(_.Z$.YtdHorizontalListBehavior),_.N("design:type",Object)],vH.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],vH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],vH.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],vH.prototype,"inlineStructuredDescription",void 0);_.T([_.g({value:2}),_.N("design:type",Number)],vH.prototype,"initialCount",void 0);_.T([_.g(),_.N("design:type",Object)],vH.prototype,"currentIndex",void 0);
_.T([_.g(),_.N("design:type",Number)],vH.prototype,"scrollCount",void 0);_.T([_.g(),_.N("design:type",Object)],vH.prototype,"supportComponentResize",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],vH.prototype,"contentHidden",void 0);_.T([_.A2("#scroll-container"),_.N("design:type",HTMLDivElement)],vH.prototype,"JSC$20482_scrollContainer",void 0);
_.T([_.Yh("contentHidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vH.prototype,"hiddenChanged",null);_.T([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],vH.prototype,"videoLockups",null);_.T([_.x("videoLockups"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vH.prototype,"hasVideoLockups",null);
_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vH.prototype,"onIronResize",null);_.T([_.x("data","scrollCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],vH.prototype,"infoRows",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vH.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],vH);
_.O(vH,"ytd-video-description-music-section-renderer",function(){if(gby!==void 0)return gby;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return gby=X},{mode:2});var GkZ;var O3=function(){return _.a.apply(this,arguments)||this};
_.S(O3,_.a);O3.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.T([_.g({}),_.N("design:type",Object)],O3.prototype,"data",void 0);_.T([_.sq({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],O3);
_.O(O3,"ytd-video-description-transcript-section-renderer",function(){if(GkZ!==void 0)return GkZ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return GkZ=X},{mode:1});var auy;_.gC(_.Z(function(X){var H=_.Aw(_.m2W,function(){return X.data().firstProviderLinkStatusEntityKey}),l=_.Aw(_.m2W,function(){return X.data().secondProviderLinkStatusEntityKey}),b=function(){var U,K;
return((U=H())==null?void 0:U.linked)||((K=l())==null?void 0:K.linked)};
return _.F("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.F(_.Sj,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return X.data().sectionTitle}}),_.F(_.Sj,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return b()?X.data().connectedMessage:X.data().notConnectedMessage}}),_.F(_.M,{cond:b,
then:function(){return _.F(_.l4,{data:function(){return X.data().connectedButton}},{buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.F(_.M,{cond:function(){return!b()},
then:function(){return _.F(_.l4,{data:function(){return X.data().notConnectedButton}},{buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Qh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;return _.F("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.F("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.F(_.Sj,{text:function(){return H().sectionTitle}})),_.F("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.F(_.Sj,{text:function(){return H().bodyHeader}})),_.F("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.F(_.Sj,{text:function(){return H().bodyText}})),_.F(_.M,{cond:function(){return H().attributionText},
then:function(){return _.F("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.F(_.Sj,{text:function(){return H().attributionText}}))}}))},"Rh"),"how-this-was-made-section-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){return _.F("yt-video-description-youchat-section-view-model",{class:_.Qr("ytVideoDescriptionYouchatSectionViewModelHost")},_.F("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.F(_.Sj,{text:function(){return X.data().sectionTitle}})),_.F("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.F(_.Sj,{text:function(){return X.data().subHeaderText}})),_.F("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.F(_.Qk,{data:function(){return _.f(X.data().primaryButton,
_.fk)}})))},"Sh"),"yt-video-description-youchat-section-view-model",{props:{data:_.zh}});var m3=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return X};
_.S(m3,_.a);_.R=m3.prototype;
_.R.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}}}}}};
_.R.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.R.dataChanged=function(){var X,H;this.hasDescriptionOnly=!(((X=this.data)==null?void 0:(H=X.items)==null?void 0:H.length)!==1||!_.f(this.data.items[0],B_))};
_.R.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.R.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.R.autoFocusDescription=function(){var X;((X=_.jJ().resolve(_.c$(_.aE)))==null?0:X.isKeyBoardInUse())&&this.description&&_.Qi(this.description)};
_.R.resize=function(){if(_.P("kevlar_disable_sd_resize"))this.JSC$20489_cardList&&_.QX(this.JSC$20489_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.QX(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.QX(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.R.scrollToSection=function(X){if(X=this.getSectionElement(X))_.TP(this.hostElement,"yt-scroll-to-watch-element",[X]),X.focus()};
_.R.getSectionElement=function(X){switch(X){case "infocards-item-section":var H;return(H=this.infocardsSection)!=null?H:null;case "transcript-item-section":var l;return(l=this.transcriptSection)!=null?l:null;case "how-this-was-made-section-item-section":var b;return(b=this.howThisWasMadeSection)!=null?b:null;case "files-item-section":var U;return(U=this.filesSection)!=null?U:null;default:return null}};
_.R.handleSetActiveItemAction=function(X){var H=_.f(X,qOZ),l=H&&(H==null?void 0:H.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20489_cardList;if(H&&l){X=this.currentActiveChapter;var b=this.currentActiveProblem;H=l==null?void 0:l.getItemByIndex(H.itemIndex);var U=l=!0;H&&(H.active=!0,H.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(l=X!==H,U=!1,this.currentActiveChapter=H):(H==null?void 0:H.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(l=!1,U=b!==H,this.currentActiveProblem=H));X&&l&&(X.active=!1);b&&U&&(b.active=!1)}};
_.ja.Object.defineProperties(m3.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.KG("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
m3.prototype.onYtExpanderMoreTapped=m3.prototype.onYtExpanderMoreTapped;m3.prototype.onHiddenChanged=m3.prototype.onHiddenChanged;m3.prototype.dataChanged=m3.prototype.dataChanged;m3.prototype.panelContentVisibleChanged=m3.prototype.panelContentVisibleChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],m3.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],m3.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.$s),_.N("design:type",Object)],m3.prototype,"ironResizableBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],m3.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],m3.prototype,"panelContentVisible",void 0);_.T([_.g(),_.N("design:type",Boolean)],m3.prototype,"hasDescriptionOnly",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],m3.prototype,"inlineStructuredDescription",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],m3.prototype,"hidden",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],m3.prototype,"shortsPanel",void 0);_.T([_.g(),_.N("design:type",Object)],m3.prototype,"videoSummary",void 0);_.T([_.g(),_.N("design:type",Object)],m3.prototype,"merchShelf",void 0);
_.T([_.x("videoSummary"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],m3.prototype,"showVideoSummary",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],m3.prototype,"engagementPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],m3.prototype,"watchWhileSdp",void 0);_.T([_.A2("ytd-expandable-video-description-body-renderer"),_.N("design:type",Object)],m3.prototype,"description",void 0);
_.T([_.A2("ytd-horizontal-card-list-renderer"),_.N("design:type",Object)],m3.prototype,"JSC$20489_cardList",void 0);_.T([_.A2("ytd-horizontal-card-list-renderer[center-items]"),_.N("design:type",Object)],m3.prototype,"problemWalkthroughCardList",void 0);_.T([_.A2("ytd-shelf-renderer"),_.N("design:type",Object)],m3.prototype,"shelfSection",void 0);_.T([_.A2("ytd-video-description-music-section-renderer"),_.N("design:type",Object)],m3.prototype,"musicMetadataSection",void 0);
_.T([_.A2("ytd-video-description-infocards-section-renderer"),_.N("design:type",Object)],m3.prototype,"infocardsSection",void 0);_.T([_.A2("ytd-video-description-transcript-section-renderer"),_.N("design:type",Object)],m3.prototype,"transcriptSection",void 0);_.T([_.A2("how-this-was-made-section-view-model"),_.N("design:type",Object)],m3.prototype,"howThisWasMadeSection",void 0);_.T([_.A2("ytd-video-description-files-section-renderer"),_.N("design:type",Object)],m3.prototype,"filesSection",void 0);
_.T([_.Yh("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m3.prototype,"panelContentVisibleChanged",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m3.prototype,"dataChanged",null);_.T([_.Yh("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m3.prototype,"onHiddenChanged",null);
_.T([_.Le("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m3.prototype,"onYtExpanderMoreTapped",null);_.T([_.sq({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],m3);
_.O(m3,"ytd-structured-description-content-renderer",function(){if(auy!==void 0)return auy;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return auy=X},{mode:2});var QF=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return X};
_.S(QF,_.a);_.R=QF.prototype;_.R.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"}}}};
_.R.dataChanged=function(){var X;this.descriptionToggled=!((X=this.data)==null||!X.defaultExpanded);var H;this.collapsed=this.descriptionAlwaysCollapsed||!((H=this.data)==null?0:H.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.cS(110509);this.showLessClientVe=_.cS(110510);X=_.Bi();H=_.F6();X&&H&&_.SF(X,H,[this.showMoreClientVe,this.showLessClientVe])};
_.R.onYtExpanderMoreTapped=function(){var X,H=(X=this.data)==null?void 0:X.showMoreCommand;H&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(H);(X=_.Bi())&&this.showMoreClientVe&&_.xB(X,this.showMoreClientVe)};
_.R.onYtExpanderLessTapped=function(){var X=_.Bi();X&&this.showLessClientVe&&_.xB(X,this.showLessClientVe);var H;(X=(H=this.data)==null?void 0:H.showLessCommand)&&this.componentBehavior.resolveCommand(X)};
_.R.handleUpdateDateTextAction=function(X){this.data&&this.data.dateText&&this.set("data.dateText",_.f(X,Z3N).dateText)};
_.R.handleUpdateDescriptionAction=function(X){if(X=_.f(X,_.s2G))X.isEmpty||!X.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.ha(X.description)):this.set("data.description",X.description)};
_.R.onYtChangeEngagementPanelVisibilityAction=function(X){if(_.P("web_structured_description_show_more")||_.P("web_engagement_panel_open_description")){var H,l=(H=_.f(X,_.FAG))==null?void 0:H.targetId,b;X=((b=_.f(X,_.FAG))==null?void 0:b.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";l==="engagement-panel-structured-description"&&X&&(this.descriptionToggled=!0)}};
_.R.updateCollapsedFromBinding=function(X){this.collapsed=X.detail.value};
_.R.updateDescriptionToggledFromBinding=function(X){this.descriptionToggled=X.detail.value};
_.R.updateCanCollapseFromBinding=function(X){this.canCollapse=X.detail.value};
_.ja.Object.defineProperties(QF.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(X=this.data)==null?void 0:(H=X.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer;return!!l&&!!l.rows&&l.rows.length>l.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.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}}});
QF.prototype.onYtExpanderLessTapped=QF.prototype.onYtExpanderLessTapped;QF.prototype.onYtExpanderMoreTapped=QF.prototype.onYtExpanderMoreTapped;QF.prototype.dataChanged=QF.prototype.dataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],QF.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],QF.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],QF.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],QF.prototype,"collapsed",void 0);_.T([_.g(),_.N("design:type",Boolean)],QF.prototype,"descriptionToggled",void 0);
_.T([_.g(),_.N("design:type",Boolean)],QF.prototype,"canCollapse",void 0);_.T([_.g(),_.N("design:type",Object)],QF.prototype,"subscribeButtonData",void 0);_.T([_.g(),_.N("design:type",Number)],QF.prototype,"descriptionCollapsedHeight",void 0);_.T([_.g(),_.N("design:type",Object)],QF.prototype,"structuredDescriptionContentRenderer",void 0);_.T([_.g({value:function(){return _.P("web_watch_description_always_collapsed")}}),
_.N("design:type",Boolean)],QF.prototype,"descriptionAlwaysCollapsed",void 0);_.T([_.A2("#description"),_.N("design:type",HTMLDivElement)],QF.prototype,"description",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QF.prototype,"dataChanged",null);_.T([_.Le("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QF.prototype,"onYtExpanderMoreTapped",null);
_.T([_.Le("yt-expander-less-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QF.prototype,"onYtExpanderLessTapped",null);_.T([_.x("data.metadataRowContainer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QF.prototype,"metadataCollapsible",null);_.T([_.x("data","structuredDescriptionContentRenderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QF.prototype,"hasInlineStructuredDescription",null);
_.T([_.x("data.attributedDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QF.prototype,"hasAttributedDescription",null);_.T([_.x("hasInlineStructuredDescription","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QF.prototype,"loadStructuredDescription",null);_.T([_.x("data","structuredDescriptionContentRenderer","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QF.prototype,"showInlineStructuredDescription",null);
_.T([_.x("data","hasInlineStructuredDescription","metadataCollapsible"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QF.prototype,"descriptionAlwaysCollapsible",null);
_.O(QF,"ytd-video-secondary-info-renderer",function(){if(MEa===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);MEa=X}X=MEa;return X},{mode:2});var ZOA;var TA=function(){return _.a.apply(this,arguments)||this};
_.S(TA,_.a);TA.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],TA.prototype,"rendererBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],TA.prototype,"dismissibleItemBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],TA.prototype,"rendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],TA.prototype,"data",void 0);_.T([_.sq({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],TA);
_.O(TA,"ytd-comment-history-entry-renderer",function(){if(ZOA!==void 0)return ZOA;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return ZOA=X},{mode:1});var iOA;var N2=function(){var X=_.a.apply(this,arguments)||this;X.isCollapsed=!1;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return X};
_.S(N2,_.a);_.R=N2.prototype;_.R.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.onDonateTap=function(){var X=this.get("data.donateButton.buttonRenderer.command");if(X){var H=_.Bi(),l=this.get("data.donateButton.buttonRenderer.trackingParams");H&&l&&_.xB(H,_.$l(l));this.ytOpenPopupBehavior.openPopup(X)}};
_.R.onShowMore=function(){this.isCollapsed=!1;var X=_.Bi(),H=this.get("data.expandButton.buttonRenderer.trackingParams");X&&H&&_.xB(X,_.$l(H))};
_.R.onShowLess=function(){this.isCollapsed=!0};
_.R.dataChanged=function(){_.j4(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.R.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.R.handleUpdate=function(X){if(X=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",X))this.set("data.startLabel",X.startLabel),this.set("data.endLabel",X.endLabel),this.set("data.progress",X.progress),this.set("data.amountRaisedLabel",X.amountRaisedLabel),this.dataChanged()};
_.R.handleOpenPopupAction=function(X){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",X)&&_.TP(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.R.computeHeaderBackgroundUrl=function(X,H){if(X)return H?X.headerBackgroundDarkUrl:X.headerBackgroundUrl};
_.R.isProgressBarVisible=function(X){return!(!X||X.progress===void 0)};
_.R.headerBackgroundClass=function(){return _.gx("HTML_DIR")==="rtl"?"flip":""};
N2.prototype.dataChanged=N2.prototype.dataChanged;_.T([_.k(_.cr.YtOpenPopupBehavior),_.N("design:type",Object)],N2.prototype,"ytOpenPopupBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],N2.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],N2.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],N2.prototype,"isCollapsed",void 0);_.T([_.g({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.N("design:type",String)],N2.prototype,"headerBackgroundUrl",void 0);_.T([_.g(),_.N("design:type",Boolean)],N2.prototype,"isDarkTheme",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N2.prototype,"dataChanged",null);
_.T([_.sq({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],N2);
_.O(N2,"ytd-donation-shelf-renderer",function(){if(iOA!==void 0)return iOA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return iOA=X},{mode:1});var vbN;var OOd=function(){return _.a.apply(this,arguments)||this};
_.S(OOd,_.a);_.T([_.g(),_.N("design:type",Object)],OOd.prototype,"data",void 0);_.T([_.sq({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],OOd);
_.O(OOd,"ytd-donation-unavailable-renderer",function(){if(vbN!==void 0)return vbN;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vbN=X},{mode:1});var m5e;var cH=function(){var X=_.a.apply(this,arguments)||this;X.playerListenerConfig=null;X.actionMap={"yt-show-watch-page-survey":"openSurvey"};return X};
_.S(cH,_.a);_.R=cH.prototype;_.R.dataChanged=function(){var X=this,H=_.aq();H&&H.getPlayerPromise().then(function(b){X.maybeRemovePlayerListeners(b)});
var l=this.data&&this.data.survey;l&&((l=(l=l.singleOptionSurveyRenderer||l.checkboxSurveyRenderer||l.multiStageSurveyRenderer)&&l.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(H,l):this.openSurvey())};
_.R.triggerWatchPageSurvey=function(X,H){var l=this,b,U,K,w,d,B,q,u,e;return _.h(function(y){if(y.nextAddress==1)return X?y.yield(X.getPlayerPromise(),2):y.return();l.player=y.yieldResult;if(!l.player)return y.return();b={};U=_.C(H);for(K=U.next();!K.done;K=U.next())w=K.value,d=_.C(l.createEventListenerPair(w)),B=d.next().value,q=d.next().value,u=B,e=q,u&&e&&(b[u]=e,l.ytPlayerListenerBehavior.listenToPlayerEvent(l.player,u,e));l.playerListenerConfig=b;_.m5(y)})};
_.R.createEventListenerPair=function(X){var H=X.playbackEventTrigger;return H?this.handlePlaybackTrigger(H):(X=X.watchTimeTrigger)?this.handleWatchTimeTrigger(X):[void 0,void 0]};
_.R.handleWatchTimeTrigger=function(X){var H=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var l=X.videoWatchFraction,b=X.watchTimeSec;return b&&l?["onVideoProgress",function(){H.player&&H.isWatchTimeConditionMet(H.player,l,b)&&H.showSurvey()}]:[void 0,
void 0]};
_.R.isWatchTimeConditionMet=function(X,H,l){var b=X.getProgressState(),U=b.current-this.lastKnownPlaybackPosition;U<5&&(this.accumulatedMediaTime+=U);this.lastKnownPlaybackPosition=b.current;b=Math.round(this.accumulatedMediaTime/b.duration*1E3)/1E3;return X.getPresentingPlayerType&&X.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>l||b>H)};
_.R.handlePlaybackTrigger=function(X){var H=this;X=X.playbackEvent;if(X==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var l="onStateChange";var b=function(U){U===0&&H.showSurvey()}}else X==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(l="onVideoProgress",b=function(U){H.player&&H.player.getPresentingPlayerType&&H.player.getPresentingPlayerType()===1&&U&&H.showSurvey()}):X==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(l="onAdEnd",b=this.showSurvey);
return[l,b]};
_.R.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.R.openSurvey=function(){var X=this,H=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(QeZ(!!H));_.Ss.addJob(function(){X.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:H}})},0,0)};
_.R.maybeRemovePlayerListeners=function(X){if(this.playerListenerConfig){for(var H=_.C(Object.keys(this.playerListenerConfig)),l=H.next();!l.done;l=H.next())l=l.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(X,l,this.playerListenerConfig[l]);this.playerListenerConfig=null}};
cH.prototype.dataChanged=cH.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],cH.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],cH.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],cH.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(_.sv),_.N("design:type",Object)],cH.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],cH.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],cH.prototype,"playerListenerConfig",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],cH.prototype,"lastKnownPlaybackPosition",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],cH.prototype,"accumulatedMediaTime",void 0);_.T([_.g(),_.N("design:type",Object)],cH.prototype,"player",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cH.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],cH);
_.O(cH,"ytd-survey-trigger-renderer",function(){if(m5e!==void 0)return m5e;var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return m5e=X},{mode:1});var Qxl;_.wd("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var jr=function(){var X=_.a.apply(this,arguments)||this;X.role="link";X.tabindex="0";X.actionMap=_.P("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 X};
_.S(jr,_.a);_.R=jr.prototype;_.R.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.PM()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.R.getCurrentTheme=function(){return _.fe()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.PM()};
_.R.onThemeSelected=function(X,H){var l=X||H?X:_.V_(),b=(l&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!l&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Xnk(_.c1(window.location.href));_.bH(0,165,X);_.bH(0,174,H);this.prefs.save();b&&_.TP(this.hostElement,"yt-dark-mode-toggled-action",[l]);_.TP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.R.onTap=function(){this.data.serviceEndpoint&&_.ci(this.hostElement,[this.data.serviceEndpoint])};
_.R.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.R.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.R.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
jr.prototype.onTap=jr.prototype.onTap;jr.prototype.dataChanged=jr.prototype.dataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],jr.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.zU),_.N("design:type",Object)],jr.prototype,"paperItemBehaviors",void 0);_.T([_.g(),_.N("design:type",Object)],jr.prototype,"data",void 0);_.T([_.g({value:function(){return _.oO()}}),
_.N("design:type",_.aM)],jr.prototype,"prefs",void 0);_.T([_.g(),_.N("design:type",Object)],jr.prototype,"label",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],jr.prototype,"role",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],jr.prototype,"tabindex",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jr.prototype,"dataChanged",null);
_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jr.prototype,"onTap",null);_.T([_.sq({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],jr);
_.mr()(jr,"ytd-toggle-theme-compact-link-renderer",function(){if(Qxl===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);Qxl=X}X=Qxl;return X},{allowedProps:["data"],
mode:1});var TQl;_.wd("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.wd("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var rA=function(){return _.a.apply(this,arguments)||this};
_.S(rA,_.a);_.R=rA.prototype;_.R.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.onKeyUp=function(X){if(X.keyCode===13)this.onTap()};
_.R.onTap=function(){this.data.recordClickEndpoint&&_.jJ().resolve(_.Vr).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var X=this.data.navigationEndpoint;X&&_.f(X,_.sb)&&_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}})};
_.R.readChanged=function(){var X;_.TW(this.hostElement,"unread",!((X=this.data)==null?0:X.read))};
_.R.dataChanged=function(){this.data&&_.TW(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.R.computeThumbnailSize=function(){var X;return((X=this.data)==null?0:X.highPriorityNotification)?32:48};
_.R.getEndpointURL=function(X){return X&&!_.f(X,_.sb)?this.componentBehavior.computeHref_(X):null};
_.R.getEndpointData=function(X){return X&&!_.f(X,_.sb)?X:null};
rA.prototype.computeThumbnailSize=rA.prototype.computeThumbnailSize;rA.prototype.dataChanged=rA.prototype.dataChanged;rA.prototype.readChanged=rA.prototype.readChanged;rA.prototype.onKeyUp=rA.prototype.onKeyUp;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],rA.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],rA.prototype,"data",void 0);_.T([_.g({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.N("design:type",Number)],rA.prototype,"thumbnailSize",void 0);_.T([_.Le("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],rA.prototype,"onKeyUp",null);
_.T([_.Yh("data.read"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rA.prototype,"readChanged",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rA.prototype,"dataChanged",null);_.T([_.Yh("data.highPriorityNotification"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rA.prototype,"computeThumbnailSize",null);
_.T([_.sq({is:"ytd-notification-renderer",disableElementRegistration:!0})],rA);
_.O(rA,"ytd-notification-renderer",function(){if(TQl!==void 0)return TQl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return TQl=X},{mode:1});var NQN;var J6=function(){return _.a.apply(this,arguments)||this};
_.S(J6,_.a);J6.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"}}}};
J6.prototype.computeActionButtonClass=function(X){return!X.actionButtons||X.actionButtons.length<=1?"single-button":X.description?"vertical-buttons":"horizontal-buttons"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],J6.prototype,"data",void 0);_.T([_.sq({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],J6);
_.O(J6,"ytd-playlist-show-metadata-renderer",function(){if(NQN!==void 0)return NQN;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return NQN=X},{mode:1});var cHe;_.wd("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var Lv=function(){return _.a.apply(this,arguments)||this};
_.S(Lv,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Lv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Lv.prototype,"data",void 0);_.T([_.sq({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Lv);
_.O(Lv,"ytd-purchase-item-renderer",function(){if(cHe!==void 0)return cHe;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return cHe=X},{mode:1});var jx$;var rHN={};rHN.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(X){if(X)return X.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(X){if(X==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.wd("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var YZ=function(){return _.a.apply(this,arguments)||this};
_.S(YZ,_.a);YZ.prototype.onYtNavigate=function(X){var H=this.openPopupBehavior.getNavigationEndpointPopupAction(X.detail.endpoint);H&&(X.stopPropagation(),this.openPopupBehavior.openPopup(H))};
YZ.prototype.onYtNavigate=YZ.prototype.onYtNavigate;_.T([_.k(rHN.YtSimpleTextSectionBehavior),_.N("design:type",Object)],YZ.prototype,"ytSimpleTextSectionBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],YZ.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],YZ.prototype,"openPopupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],YZ.prototype,"data",void 0);
_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],YZ.prototype,"onYtNavigate",null);_.T([_.sq({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],YZ);
_.O(YZ,"ytd-simple-text-section-renderer",function(){if(jx$!==void 0)return jx$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return jx$=X},{mode:1});var JHY;_.wd("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var L0N=function(){return _.a.apply(this,arguments)||this};
_.S(L0N,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],L0N.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],L0N.prototype,"data",void 0);_.T([_.sq({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],L0N);
_.O(L0N,"ytd-unlimited-page-feature-info-renderer",function(){if(JHY!==void 0)return JHY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return JHY=X},{mode:1});var YxY;var IuC;var It=function(){return _.a.apply(this,arguments)||this};
_.S(It,_.a);It.prototype.dataChanged=function(){if(this.data){var X=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);X&&(X=_.G0(X,screen.width),this.hostElement.style.backgroundImage="url("+X+")")}};
It.prototype.dataChanged=It.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],It.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],It.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],It);
_.O(It,"ytd-post-redemption-section-renderer",function(){if(IuC!==void 0)return IuC;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return IuC=X},{mode:1});var AH$;var A6=function(){return _.a.apply(this,arguments)||this};
_.S(A6,_.a);A6.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],A6.prototype,"data",void 0);_.T([_.sq({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],A6);
_.O(A6,"ytd-ypc-post-redemption-renderer",function(){if(AH$!==void 0)return AH$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return AH$=X},{mode:1});_.wd("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var XT=function(){var X=_.a.apply(this,arguments)||this;X.MIN_CODE_LENGTH=12;X.MAX_CODE_LENGTH=24;return X};
_.S(XT,_.a);_.R=XT.prototype;_.R.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.R.created=function(){this.riskService=new _.RwW;this.loadPaymentThenable=_.wYh(_.gx("YPC_MB_URL"))};
_.R.ready=function(){var X=this;this.code.addEventListener("keypress",function(H){X.onCodeInputKeypress(H)})};
_.R.dataChanged=function(){var X=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(H){H=_.C(H);for(var l=H.next();!l.done;l=H.next())l=l.value,l.type==="attributes"&&l.attributeName==="dark"&&X.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.R.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var X=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+X+")")}};
_.R.computeRedeemButton=function(X){(X=this.get("redeemButton.buttonRenderer",X))&&(X=Object.assign({},X,{serviceEndpoint:void 0}));return X};
_.R.onRedeemButtonTap=function(X){X.stopPropagation();cYZ();this.redeemCode()};
_.R.redeemCode=function(){var X=this;this.isLoading=!0;var H=this.riskService.init();_.s$([H,this.loadPaymentThenable]).then(function(){var l=X.data.redeemButton.buttonRenderer.serviceEndpoint,b=_.CGK(),U=_.m9.payments.business.integration.ClientTokenFactory.createClientToken(_.f(l,_.lwz).countryCode,b);b={c:X.code.value.trim(),rd:window.btoa(b),ctk:U};l&&_.jJ().resolve(_.Vr).resolveCommand(l,{form:Object.assign({},b,{element:X.hostElement})})},function(){X.showGenericError();
jON("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.a0(Error("Al"))})};
_.R.onYtServiceRequestCompleted=function(X){X.stopPropagation();this.isLoading=!1;var H,l;this.errorMessage=(H=X.detail)==null?void 0:(l=H.data)==null?void 0:l.errorMessage;var b,U;this.postRedemptionRenderer=(b=X.detail)==null?void 0:(U=b.data)==null?void 0:U.renderer;var K,w;if(X=(K=X.detail)==null?void 0:(w=K.data)==null?void 0:w.redirectEndpoint)this.isLoading=!0,_.QX(this.hostElement,"yt-navigate",{endpoint:X});this.errorMessage?jON("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
X)&&rK("ypcRedeemFlowSucceeded")};
_.R.onYtServiceRequestError=function(X){X.stopPropagation();this.isLoading=!1;if(X=this.get("detail.error.message",X))this.errorMessage=_.xM(X);jON("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.R.onInvokeInstrumentManagerActionCompleted=function(X){X.stopPropagation();this.redeemCode()};
_.R.onInvokeInstrumentManagerActionError=function(X){X.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",X)){case "instrumentManagerLoadError":this.showGenericError();jON("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();jON("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":rK("ypcRedeemFlowCancelled")}};
_.R.onInput=function(){var X=this;_.pc(this,"onInput",function(){var H=X.code.value.trim();X.redeemButtonDisabled=H.length<X.MIN_CODE_LENGTH||H.length>X.MAX_CODE_LENGTH},200)};
_.R.onCodeInputKeypress=function(X){X.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(cYZ(),this.redeemCode())};
_.R.computeImageUrl=function(X){return X?_.G0(X.thumbnails,600):null};
_.R.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
XT.prototype.onInvokeInstrumentManagerActionError=XT.prototype.onInvokeInstrumentManagerActionError;XT.prototype.onInvokeInstrumentManagerActionCompleted=XT.prototype.onInvokeInstrumentManagerActionCompleted;XT.prototype.onYtServiceRequestError=XT.prototype.onYtServiceRequestError;XT.prototype.onYtServiceRequestCompleted=XT.prototype.onYtServiceRequestCompleted;XT.prototype.dataChanged=XT.prototype.dataChanged;
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],XT.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],XT.prototype,"isLoading",void 0);_.T([_.g(),_.N("design:type",Boolean)],XT.prototype,"redeemButtonDisabled",void 0);
_.T([_.g(),_.N("design:type",Object)],XT.prototype,"errorMessage",void 0);_.T([_.g(),_.N("design:type",Object)],XT.prototype,"postRedemptionRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],XT.prototype,"observer",void 0);_.T([_.A2("#code"),_.N("design:type",HTMLInputElement)],XT.prototype,"code",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XT.prototype,"dataChanged",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],XT.prototype,"onYtServiceRequestCompleted",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],XT.prototype,"onYtServiceRequestError",null);
_.T([_.Le("yt-invoke-instrument-manager-action-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],XT.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.T([_.Le("yt-invoke-instrument-manager-action-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],XT.prototype,"onInvokeInstrumentManagerActionError",null);_.T([_.sq({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],XT);
_.O(XT,"ytd-redeem-code-renderer",function(){if(YxY!==void 0)return YxY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return YxY=X},{mode:1});var XoZ;_.wd("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Hv=function(){var X=_.a.apply(this,arguments)||this;X.businessEmailDisplayState="HIDE_SECTION";return X};
_.S(Hv,_.a);_.R=Hv.prototype;_.R.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}}}}}};
_.R.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"};
_.R.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.R.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.VX(_.Am_),this.businessEmailDisplayState="CAPTCHA"))};
_.R.onYtServiceRequestCompleted=function(X){var H;if((H=X.detail.data)==null?0:H.businessEmail)this.businessEmail=X.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var l;if((l=X.detail.data)==null?0:l.errorMessage)this.businessEmailErrorMessage=X.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.R.computeEmailHref=function(X){return"mailto:"+X};
_.R.computeSafeUrl=function(X){if(X)return _.Yn(X)};
_.R.onBusinessEmailCaptchaSubmit=function(){var X;(X=this.data)!=null&&X.onBusinessEmailRevealClickCommand&&(X=this.JSC$20549_captchaTextarea.value)&&(X={recaptcha_response_token:X,channel_id:this.data.channelId},_.jJ().resolve(_.Vr).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},X,{element:this.hostElement})}))};
_.R.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ja.Object.defineProperties(Hv.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 X,H;return!((X=this.data)==null||!X.primaryLinks)&&!((H=this.data)==null?0:H.links)&&this.data.primaryLinks.every(function(l){return l.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var X,H;return!((X=this.data)==null||!X.primaryLinks)&&!((H=this.data)==null?0:H.links)&&!this.shouldShowNewLinks}}});
Hv.prototype.onYtServiceRequestCompleted=Hv.prototype.onYtServiceRequestCompleted;Hv.prototype.dataChanged=Hv.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Hv.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.A2("#g-recaptcha-response"),_.N("design:type",HTMLTextAreaElement)],Hv.prototype,"JSC$20549_captchaTextarea",void 0);_.T([_.g(),_.N("design:type",Object)],Hv.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],Hv.prototype,"businessEmailDisplayState",void 0);_.T([_.g(),_.N("design:type",String)],Hv.prototype,"businessEmail",void 0);_.T([_.g(),_.N("design:type",String)],Hv.prototype,"businessEmailErrorMessage",void 0);
_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Hv.prototype,"hideDetailsSection",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hv.prototype,"dataChanged",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Hv.prototype,"shouldShowNewLinks",null);_.T([_.x("data","shouldShowLinks"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Hv.prototype,"shouldShowLegacyLinks",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Hv.prototype,"onYtServiceRequestCompleted",null);_.T([_.sq({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Hv);
_.O(Hv,"ytd-channel-about-metadata-renderer",function(){if(XoZ!==void 0)return XoZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return XoZ=X},{mode:1});var HEe;_.wd("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var lh=function(){return _.a.apply(this,arguments)||this};
_.S(lh,_.a);lh.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],lh.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],lh.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Number)],lh.prototype,"lockupContainerType",void 0);_.T([_.g(),_.N("design:type",String)],lh.prototype,"thumbnailFixedWidth",void 0);
_.T([_.sq({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],lh);
_.O(lh,"ytd-channel-featured-content-renderer",function(){if(HEe!==void 0)return HEe;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return HEe=X},{mode:1});var lTe;_.wd("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var oz=function(){var X=_.a.apply(this,arguments)||this;X.roundContainer=!0;X.amsterdamEnabled=_.P("enable_desktop_amsterdam_info_panels");return X};
_.S(oz,_.a);_.R=oz.prototype;_.R.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.R.dataChanged=function(){this.imageWidth=this.imageHeight=24;var X=this.data;X.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!X.style&&X.image&&X.image.thumbnails.length&&(X=X.image.thumbnails[0],this.imageWidth=X.width||0,this.imageHeight=X.height||0)};
_.R.computeSource=function(X){return X.secondarySource?_.D8(X.secondarySource):_.D8(X.source)};
_.R.computeClarifyStyle=function(X){return X?X.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.R.isLargeStyle=function(X){return X==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.R.computeBackgroundStyle=function(X){return X?X.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.R.computeHasActionButton=function(X){return!!X.actionButton};
_.R.computeHasBottomSection=function(X){return!!X.ctaHasBottomSection};
_.R.computeIsSourceMissing=function(X){return X.ctaHasBottomSection===!1?!0:X&&this.computeSource(X)?!1:!0};
_.R.computeSecondaryEndpoint=function(X){return X.secondaryEndpoint||X.endpoint};
oz.prototype.dataChanged=oz.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],oz.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Number)],oz.prototype,"imageWidth",void 0);_.T([_.g(),_.N("design:type",Number)],oz.prototype,"imageHeight",void 0);
_.T([_.g({computed:"computeSecondaryEndpoint(data)"}),_.N("design:type",Object)],oz.prototype,"secondaryEndpoint",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.N("design:type",Boolean)],oz.prototype,"hasActionButton",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.N("design:type",Boolean)],oz.prototype,"hasBottomSection",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.N("design:type",Boolean)],oz.prototype,"missingSource",void 0);_.T([_.g({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],oz.prototype,"icon",void 0);_.T([_.g({computed:"computeIcon_(data.secondaryIcon)"}),_.N("design:type",String)],oz.prototype,"secondaryIcon",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.N("design:type",String)],oz.prototype,"clarifyStyle",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.N("design:type",String)],oz.prototype,"backgroundStyle",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],oz.prototype,"roundContainer",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],oz.prototype,"amsterdamEnabled",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oz.prototype,"dataChanged",null);
_.T([_.sq({is:"ytd-clarification-renderer",disableElementRegistration:!0})],oz);
_.O(oz,"ytd-clarification-renderer",function(){if(lTe!==void 0)return lTe;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return lTe=X},{mode:1});var oCU;_.wd("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var bh=function(){return _.a.apply(this,arguments)||this};
_.S(bh,_.a);_.R=bh.prototype;_.R.computeHasPrimaryIcon=function(X){return!(!X.icon&&!X.thumbnail)};
_.R.computeHasSecondary=function(X){return!(!X.secondaryIcon&&!X.secondaryNotificationText)};
_.R.computeHideSecondaryString=function(X){return!_.P("disable_hide_empty_secondary_string")&&!X.secondaryNotificationText};
_.R.computeCompactLinkStyle=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.R.computeHasFitHeight=function(X){return X==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.R.isActiveEndpoint=function(X){return(X=this.get("commandMetadata.webCommandMetadata.url",X))?_.c1(window.location.href)!=="/account_transfer_channel"&&_.c1(window.location.href)!=="/gaia_link"&&_.c1(window.location.href)!=="/channel_switcher"||X!=="/account"?_.c1(window.location.href)===X:!0:!1};
_.R.onTap=function(){var X;((X=this.data)==null?0:X.serviceEndpoint)&&_.ci(this.hostElement,[this.data.serviceEndpoint])};
bh.prototype.onTap=bh.prototype.onTap;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bh.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],bh.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.N("design:type",Boolean)],bh.prototype,"active",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.N("design:type",String)],bh.prototype,"compactLinkStyle",void 0);
_.T([_.g({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],bh.prototype,"icon",void 0);_.T([_.g({computed:"computeIcon_(data.secondaryIcon)"}),_.N("design:type",Object)],bh.prototype,"secondaryIcon",void 0);_.T([_.g({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],bh.prototype,"hasSecondary",void 0);_.T([_.g({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],bh.prototype,"hideSecondaryString",void 0);
_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bh.prototype,"onTap",null);_.T([_.sq({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],bh);
_.O(bh,"ytd-compact-link-renderer",function(){if(oCU!==void 0)return oCU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return oCU=X},{mode:1});var bEA;var UcN;var US=function(){var X=_.a.apply(this,arguments)||this;X.amsterdamEnabled=_.P("enable_desktop_amsterdam_info_panels");return X};
_.S(US,_.a);_.R=US.prototype;_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.R.computeIcon=function(X){return X?"yt-icons:"+X.toLowerCase():null};
_.R.computeUseContacts=function(X){return!!X.contacts&&X.contacts.length>0};
_.R.computePhoneContact=function(X){var H,l;return(H=X.contacts)==null?void 0:(l=H.find(function(b){var U;return(b==null?void 0:(U=b.icon)==null?void 0:U.iconType)==="PHONE"}))==null?void 0:l.actionText};
_.R.computeSmsContact=function(X){var H,l;return(H=X.contacts)==null?void 0:(l=H.find(function(b){var U;return(b==null?void 0:(U=b.icon)==null?void 0:U.iconType)==="SMS"}))==null?void 0:l.actionText};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],US.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],US.prototype,"amsterdamEnabled",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.N("design:type",Boolean)],US.prototype,"useContacts",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.N("design:type",String)],US.prototype,"phoneContact",void 0);_.T([_.sq({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],US);
_.O(US,"ytd-single-action-emergency-support-renderer",function(){if(UcN!==void 0)return UcN;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return UcN=X},{mode:1});_.wd("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var $J=function(){var X=_.a.apply(this,arguments)||this;X.roundedContainer=!0;X.amsterdamEnabled=_.P("enable_desktop_amsterdam_info_panels");return X};
_.S($J,_.a);$J.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$J.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],$J.prototype,"roundedContainer",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],$J.prototype,"amsterdamEnabled",void 0);
_.T([_.sq({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],$J);
_.O($J,"ytd-emergency-onebox-renderer",function(){if(bEA!==void 0)return bEA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return bEA=X},{mode:1});var $cx;_.wd("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Kp=function(){return _.a.apply(this,arguments)||this};
_.S(Kp,_.a);Kp.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Kp.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Kp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Kp.prototype,"data",void 0);_.T([_.sq({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Kp);
_.O(Kp,"ytd-exploratory-results-renderer",function(){if($cx!==void 0)return $cx;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return $cx=X},{mode:1});var K2y;_.wd("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Rz=function(){var X=_.a.apply(this,arguments)||this;X.messageData=null;return X};
_.S(Rz,_.a);_.R=Rz.prototype;_.R.onServiceRequestCompleted=function(X,H){X=H.actions||[];H=0;for(var l=X.length;H<l;H++){var b=X[H],U=void 0,K=void 0;if((U=_.f(b,_.XC))==null?0:(K=U.item)==null?0:K.messageRenderer)this.messageData=_.f(b,_.XC).item.messageRenderer}};
_.R.dataChanged=function(){var X=this.data;this.hostElement.hidden=!1;_.TW(this.hostElement,"is-channel",X&&!X.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.R.computeThumbnailWidth=function(X){return X?126:56};
_.R.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.R.onSubmitTap=function(){var X=this.data,H=this.selectedResponseIndex;X!==void 0&&H!==void 0&&(X=X.responses[H],X.responseData&&_.jJ().resolve(_.Vr).resolveCommand(X.responseData,{form:{element:this.hostElement}}))};
_.R.onDismissTap=function(){this.hostElement.hidden=!0;var X=this.data;X!==void 0&&X.dismissalEndpoint&&_.jJ().resolve(_.Vr).resolveCommand(X.dismissalEndpoint,{form:{element:this.hostElement}})};
_.R.updateSelectedResponseIndexFromBinding=function(X){this.selectedResponseIndex=X.detail.value};
Rz.prototype.onSelectedResponseIndexChange=Rz.prototype.onSelectedResponseIndexChange;Rz.prototype.dataChanged=Rz.prototype.dataChanged;Rz.prototype.onServiceRequestCompleted=Rz.prototype.onServiceRequestCompleted;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Rz.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Rz.prototype,"messageData",void 0);
_.T([_.g(),_.N("design:type",Number)],Rz.prototype,"selectedResponseIndex",void 0);_.T([_.A2("#submit-button"),_.N("design:type",HTMLButtonElement)],Rz.prototype,"submitButton",void 0);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],Rz.prototype,"onServiceRequestCompleted",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Rz.prototype,"dataChanged",null);
_.T([_.Yh("selectedResponseIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Rz.prototype,"onSelectedResponseIndexChange",null);_.T([_.sq({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Rz);
_.O(Rz,"ytd-feedback-elicitation-single-question-renderer",function(){if(K2y!==void 0)return K2y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return K2y=X},{mode:1});var RXY;var Cp=function(){return _.a.apply(this,arguments)||this};
_.S(Cp,_.a);Cp.prototype.computeIconType=function(X){return X?"yt-icons:"+X.toLowerCase():null};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Cp.prototype,"data",void 0);_.T([_.sq({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Cp);
_.O(Cp,"ytd-limited-state-message-renderer",function(){if(RXY!==void 0)return RXY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return RXY=X},{mode:1});var Cq5;var wp=function(){return _.a.apply(this,arguments)||this};
_.S(wp,_.a);wp.prototype.computeThumbnailWidth=function(X){return X?602:428};
wp.prototype.updateWideFromBinding=function(X){this.wide=X.detail.value};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],wp.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],wp.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],wp.prototype,"wide",void 0);_.T([_.sq({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],wp);
_.O(wp,"ytd-newspaper-hero-video-renderer",function(){if(Cq5!==void 0)return Cq5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Cq5=X},{mode:1});var woY;var dcd=function(){return _.a.apply(this,arguments)||this};
_.S(dcd,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],dcd.prototype,"rendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],dcd.prototype,"data",void 0);_.T([_.sq({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],dcd);
_.O(dcd,"ytd-newspaper-mini-video-renderer",function(){if(woY!==void 0)return woY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return woY=X},{mode:1});var hXa;_.wd("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var dp=function(){return _.a.apply(this,arguments)||this};
_.S(dp,_.a);dp.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],dp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],dp.prototype,"data",void 0);_.T([_.sq({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],dp);
_.O(dp,"ytd-newspaper-renderer",function(){if(hXa!==void 0)return hXa;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return hXa=X},{mode:1});var F2p;_.wd("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var hX=function(){var X=_.a.apply(this,arguments)||this;X.isSegment=!1;X.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};X.nextContinuation={continuationType:"playlistVideoListContinuation"};return X};
_.S(hX,_.a);_.R=hX.prototype;_.R.created=function(){var X=this;this.JSC$20588_ytReorderableController=new _.TEQ(101,function(H){X.handleDrop(H)})};
_.R.attached=function(){_.jJ();var X;(X=_.jJ().resolve(_.c$(_.BI)))!=null&&(X.playlistVideoListElement=this.hostElement)};
_.R.detached=function(){var X;(X=_.jJ().resolve(_.c$(_.BI)))!=null&&(X.playlistVideoListElement=void 0);X=_.jJ().resolve(_.c$(_.Il));_.P("web_enable_voting_animation")&&X&&(X.parentElem=void 0,X.videos=[],X.continuationsPresent=!1,X.showRefreshPill=!1);_.Hm(this.JSC$20588_ytReorderableController)};
_.R.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"}}}}}};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.R.dataChanged=function(){var X=_.jJ().resolve(_.c$(_.Il));if(_.P("web_enable_voting_animation")&&this.data&&X){var H=_.mh(this.hostElement).querySelector("#contents");H&&(X.parentElem=H);X.addVideos(this.data.contents)}_.Hm(this.JSC$20588_ytReorderableController)};
_.R.onRendererstamperFinished=function(){this.canReorder&&_.NEt(this.JSC$20588_ytReorderableController,_.mh(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.R.onPlaylistReloading=function(){this.isReloading=!0};
_.R.onUpdateSetVideoId=function(X){if(X.detail&&this.data&&this.data.contents){var H=X.detail;X=this.data.contents.findIndex(function(U){var K;return((K=U.playlistVideoRenderer)==null?void 0:K.videoId)===H.videoId});
if(!(X<0)&&H.setVideoId&&(this.set("data.contents."+X+".playlistVideoRenderer.setVideoId",H.setVideoId),_.P("web_enable_voting_animation"))){var l;if(X=_.f((l=this.data.contents[X].playlistVideoRenderer)==null?void 0:l.engagementBar,_.zYy)){var b;(b=X.actions)==null||b.forEach(function(U){if(U=_.f(U,_.ndz))U.itemId=H.setVideoId})}(l=_.jJ().resolve(_.c$(_.Il)))&&$DA(l,H.videoId,H.setVideoId)}}};
_.R.computeContentsClass=function(X){return X?"reloading":""};
_.R.computeIsSortable=function(X,H){return X&&H>0&&!this.isSegment&&!_.P("shorts_in_playlists_web")};
_.R.computeIsEditable=function(X){return X};
_.R.computeCanReorder=function(X){return X};
_.R.handlePlaylistRemoveVideosAction=function(X){if(this.get("playlistRemoveVideosAction.setVideoIds",X)&&this.data&&this.data.contents){X=_.f(X,_.Mfv).setVideoIds;for(var H=this.data.contents.length-1;H>=0;){var l=this.data.contents[H].playlistVideoRenderer;l&&l.setVideoId&&X.includes(l.setVideoId)&&this.splice("data.contents",H,1);H--}_.TP(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.R.updateIndices=function(){if(this.data&&this.data.contents)for(var X=0;X<this.data.contents.length;X++)this.set("data.contents."+X+".playlistVideoRenderer.index",_.xM(String(X+1)))};
_.R.handleDrop=function(X){X=X.currDragItem;var H=_.ak(X.parentNode.childNodes,X),l=this.data.contents.splice(Number(_.D8(X.data.index))-1,1)[0];this.data.contents.splice(H,0,l);H=H?this.get("contents."+(H-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();X=this.buildReorderServiceEndpoint(X.data.setVideoId,H);this.ytComponentBehavior.resolveCommand(X)};
_.R.buildReorderServiceEndpoint=function(X,H){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",X),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",H),this.data.onReorderEndpoint):null};
_.R.handleUpdatePlaylistAction=function(X){var H;(X=_.f((H=_.f(X,_.uIH))==null?void 0:H.updatedRenderer,_.PUQ))&&this.canReorder!==X.canReorder&&this.set("data.canReorder",X.canReorder);X&&X.contents&&(this.set("data.contents",X.contents),this.isReloading=!1);X&&X.continuations&&this.set("data.continuations",X.continuations)};
_.R.handleAddRendererToItemSectionAction=function(X){var H,l=(H=_.f(X,cke))==null?void 0:H.renderer,b;l&&((b=_.f(X,cke))==null?void 0:b.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,l),X=_.jJ().resolve(_.c$(_.Il)),_.P("web_enable_voting_animation")&&X&&(l&&(H=_.SNb(l))&&X.recommendedVideos.push({itemId:H,videoId:_.kfy(l),voteCount:_.xT8(l),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.R.isVotingEnabledOnPlaylist=function(X){if(!X)return!1;X=_.C(X);for(X=X.next();!X.done;X=X.next()){var H=void 0;return!!_.f((H=X.value.playlistVideoRenderer)==null?void 0:H.engagementBar,_.zYy)}return!1};
_.R.onAppendContinuationItemsActionFinished=function(){var X;this.isVotingEnabledOnPlaylist((X=this.data)==null?void 0:X.contents)&&(this.updateIndices(),X=_.jJ().resolve(_.c$(_.Il)),_.P("web_enable_voting_animation")&&X&&this.data&&X.addVideos(this.data.contents))};
_.R.updateVideoData=function(X){if(X.detail&&this.data&&this.data.contents){var H=X.detail;X=H.toIdx;var l=H.itemId,b=H.newVoteCount,U=H.voteStatus;H=H.hideItem;var K,w,d=(K=this.data)==null?void 0:(w=K.contents)==null?void 0:w.findIndex(function(e){return _.SNb(e)===l});
if(!(d<0)){K=this.data.contents[d];var B;if((B=K.playlistVideoRenderer)==null?0:B.voteCount)K.playlistVideoRenderer.voteCount=b;var q;if(B=_.f((q=K.playlistVideoRenderer)==null?void 0:q.engagementBar,_.zYy)){var u;(u=B.actions)==null||u.forEach(function(e){(e=_.f(e,_.ndz))&&e.initialState&&(e.initialState.votes=b,e.initialState.status=U)})}this.data.contents.splice(d,1);
H||this.data.contents.splice(X,0,K);this.updateIndices()}}};
hX.prototype.updateVideoData=hX.prototype.updateVideoData;hX.prototype.onAppendContinuationItemsActionFinished=hX.prototype.onAppendContinuationItemsActionFinished;hX.prototype.onUpdateSetVideoId=hX.prototype.onUpdateSetVideoId;hX.prototype.onPlaylistReloading=hX.prototype.onPlaylistReloading;hX.prototype.onRendererstamperFinished=hX.prototype.onRendererstamperFinished;hX.prototype.dataChanged=hX.prototype.dataChanged;
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],hX.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.ge.YtNextContinuationBehavior),_.N("design:type",Object)],hX.prototype,"ytNextContinuationBehavior",void 0);
_.T([_.k(_.EO),_.N("design:type",Object)],hX.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],hX.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hX.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],hX.prototype,"isReloading",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],hX.prototype,"isSegment",void 0);
_.T([_.g({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.N("design:type",Boolean)],hX.prototype,"isSortable",void 0);_.T([_.g({computed:"computeIsEditable(data.isEditable)"}),_.N("design:type",Boolean)],hX.prototype,"isEditable",void 0);_.T([_.g({computed:"computeCanReorder(data.canReorder)"}),_.N("design:type",Boolean)],hX.prototype,"canReorder",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hX.prototype,"dataChanged",null);_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hX.prototype,"onRendererstamperFinished",null);_.T([_.Le("yt-playlist-reloading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hX.prototype,"onPlaylistReloading",null);
_.T([_.Le("yt-update-set-video-id"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],hX.prototype,"onUpdateSetVideoId",null);_.T([_.Le("yt-append-continuation-items-action-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hX.prototype,"onAppendContinuationItemsActionFinished",null);
_.T([_.Le("yt-update-video-data-voting-animation"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],hX.prototype,"updateVideoData",null);_.T([_.sq({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],hX);
_.O(hX,"ytd-playlist-video-list-renderer",function(){if(F2p!==void 0)return F2p;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return F2p=X},{mode:2});var BKC;var FT=function(){return _.a.apply(this,arguments)||this};
_.S(FT,_.a);FT.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"}}}}};
FT.prototype.onTextWrapperTap=function(X){var H=this.data&&this.data.navigationEndpoint;H&&!_.WS(_.t2(X),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.QX(this.hostElement,"yt-navigate",{endpoint:H})};
FT.prototype.dataChanged=function(){var X=this.get("data.offerButton.buttonRenderer.serviceEndpoint");X&&X.commandMetadata&&_.f(X.commandMetadata,_.Ub)&&_.f(X.commandMetadata,_.Ub).fireAutomatically&&_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}})};
FT.prototype.dataChanged=FT.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.Sn),_.N("design:type",Object)],FT.prototype,"ytdLockupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],FT.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],FT.prototype,"useBiggerThumbs",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.I0("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],FT.prototype,"biggerThumbsStyle",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],FT.prototype,"leftAligned",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FT.prototype,"dataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-movie-renderer"})],FT);
_.O(FT,"ytd-movie-renderer",function(){if(BKC!==void 0)return BKC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return BKC=X},{mode:1});var qga={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(X){if(X&&X.length==1&&Array.isArray(X[0].loggingUrls)){X=_.Bb.unsafeClone(X[0]);var H=this.macros||{},l=this.getAdModuleClient_();if(!l)return _.rZ();X.loggingUrls.forEach(function(b){if(b.baseUrl){var U=b.baseUrl;var K=H;K=K===void 0?{}:K;U=l.getOptions().includes("replaceUrlMacros")?_.UNH(l,"replaceUrlMacros",{url:U,additionalMapping:K}):U;b.baseUrl=U}},this);
X=[X]}return _.ci(this.hostElement,X)},
getAdModuleClient_:function(){var X=_.aq(this);return X?(X=X.getPlayer())?new _.qC(X):null:null}}]};var svU;var Bv=function(){var X=_.a.apply(this,arguments)||this;X.modern=_.P("web_modern_buttons");X.buttonOverrides={style:"call-to-action",type:"filled"};return X};
_.S(Bv,_.a);Bv.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=_.BM(this.data.backgroundColor)))};
Bv.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var X=this.getFormattedStringLoggingDirectives(this.data.headline);X&&this.rendererBehavior.logExplicitClick(X)}};
Bv.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var X=this.getFormattedStringLoggingDirectives(this.data.description);X&&this.rendererBehavior.logExplicitClick(X)}};
Bv.prototype.getFormattedStringLoggingDirectives=function(X){return X&&X.runs&&X.runs.length>0&&X.runs[0]&&X.runs[0].loggingDirectives?X.runs[0].loggingDirectives:null};
Bv.prototype.dataChanged=Bv.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Bv.prototype,"rendererBehavior",void 0);_.T([_.k(qga.YtMacroReplacementBehavior),_.N("design:type",Object)],Bv.prototype,"macroReplacementBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Bv.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Bv.prototype,"navigationEndpoint",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Bv.prototype,"enableColors",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Bv.prototype,"modern",void 0);_.T([_.g(),_.N("design:type",Object)],Bv.prototype,"buttonOverrides",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bv.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Bv);
_.O(Bv,"ytd-action-basic-immersive-content-renderer",function(){if(svU!==void 0)return svU;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return svU=X},{mode:1});var Mol;var u2p;var qE=function(){return _.a.apply(this,arguments)||this};
_.S(qE,_.a);qE.prototype.dataChanged=function(){var X;((X=this.data)==null?void 0:X.backgroundColor)!==void 0&&_.j4(this.hostElement,{"--bgu-color":_.BM(this.data.backgroundColor)})};
qE.prototype.onImageTileClick=function(){var X;((X=this.data)==null?0:X.navigationEndpoint)&&_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var H;((H=this.data)==null?0:H.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.ja.Object.defineProperties(qE.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var X;if(((X=this.data)==null?void 0:X.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 X;return((X=this.data)==null?void 0:X.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var X,H,l;if(((X=this.data)==null?void 0:(H=X.detailsLine)==null?void 0:H.texts)!=null&&((l=this.data)==null?void 0:l.detailsLine.texts.length)>0){var b;return(b=this.data)==null?void 0:b.detailsLine.texts.map(function(U){return U.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var X,H,l;if(((X=this.data)==null?void 0:(H=X.optionalDetailsLine)==null?void 0:H.texts)!=null&&((l=this.data)==null?void 0:l.optionalDetailsLine.texts.length)>0){var b;return(b=this.data)==null?void 0:b.optionalDetailsLine.texts.map(function(U){return U.text}).join("")}return null}}});
qE.prototype.dataChanged=qE.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],qE.prototype,"rendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],qE.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],qE.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.backgroundColor"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qE.prototype,"hasBackgroundColor",null);
_.T([_.x("data.objectFit"),_.N("design:type",Object),_.N("design:paramtypes",[])],qE.prototype,"getObjectFit",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.tileRenderingStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],qE.prototype,"hasTileMetadata",null);_.T([_.x("data.detailsLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],qE.prototype,"getSecondaryDetails",null);
_.T([_.x("data.optionalDetailsLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],qE.prototype,"getOptionalDetails",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qE.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],qE);
_.O(qE,"ytd-image-tile-renderer",function(){if(u2p!==void 0)return u2p;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return u2p=X},{mode:1});var eXp;var sS=function(){return _.a.apply(this,arguments)||this};
_.S(sS,_.a);sS.prototype.getOpenLinkIcon=function(){return _.P("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
sS.prototype.onSitelinkTap=function(){_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.P("kevlar_command_handler_migration_killswitch"))_.j7(this.hostElement,this.data.clickCommands,this.hostElement);else for(var X=_.C(this.data.clickCommands),H=X.next();!H.done;H=X.next())this.ytComponentBehavior.resolveCommand(H.value)};
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],sS.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sS.prototype,"rendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],sS.prototype,"data",void 0);_.T([_.sq({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],sS);
_.O(sS,"ytd-sitelink-renderer",function(){if(eXp!==void 0)return eXp;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return eXp=X},{mode:1});var ME=function(){var X=_.a.apply(this,arguments)||this;X.paddingFix=_.P("enable_ads_web_ep_buenos_aires_and_padding_fix");return X};
_.S(ME,_.a);ME.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"}}}};
ME.prototype.dataChanged=function(){var X=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;X.ytMacroReplacementBehavior.sendServiceRequestAction([H])})};
ME.prototype.shouldHideFooter=function(X){return!(X&&_.P("use_ads_engagement_panel_desktop_footer_cta"))};
_.ja.Object.defineProperties(ME.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:X.imageTileRenderers)===void 0||((H=this.data)==null?void 0:H.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(l){var b;return(b=_.f(l,QX$))==null?void 0:b.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:X.imageTileRenderers)===void 0||((H=this.data)==null?void 0:H.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(l){var b;return((b=_.f(l,QX$))==null?void 0:b.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
ME.prototype.dataChanged=ME.prototype.dataChanged;_.T([_.k(qga.YtMacroReplacementBehavior),_.N("design:type",Object)],ME.prototype,"ytMacroReplacementBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ME.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ME.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ME.prototype,"paddingFix",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.imageTileRenderers"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ME.prototype,"removeBorderFromImageTiles",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.imageTileRenderers"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ME.prototype,"useFooteredMetadataRenderingStyle",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ME.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],ME);
_.O(ME,"ytd-action-engagement-panel-content-renderer",function(){if(Mol!==void 0)return Mol;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Mol=X},{mode:1});var yDd;var Vo$=_.Z(function(X){var H=X.data;var l=X.customCommandResolver;return _.F("ad-grid-card-image-full-metadata-view-model",{class:function(){var b;return((b=H().interaction)==null?0:b.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.xl(_.jh({visibilityCallback:function(b){var U,K=(U=H().interaction)==null?void 0:U.onFirstVisible;b&&K&&_.yr(K)},
showOption:_.mf}),_.P6(function(){return H().interaction},l)),
"aria-label":function(){var b,U;return(b=H().interaction)==null?void 0:(U=b.accessibility)==null?void 0:U.label}},_.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.F(_.l4,{data:function(){return H().adImage}},{adImageViewModel:function(b){return _.F(_.Ti,{data:b.data,
customCommandResolver:l})}})),_.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.F(_.M,{cond:function(){return H().headline},
then:function(b){return _.F(_.Sj,{text:b,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.F(_.M,{cond:function(){return H().detailsLine},
then:function(b){return _.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.F(_.l4,{data:b},{adDetailsLineViewModel:function(U){return _.F(_.YG,{data:U.data,customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.F(_.M,{cond:function(){return H().secondaryDetailsLine},
then:function(b){return _.F("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.F(_.l4,{data:b},{adDetailsLineViewModel:function(U){return _.F(_.YG,{data:U.data,customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Th");var Pq5=_.Z(function(X){var H=X.data;var l=X.customCommandResolver;return _.F("ad-grid-card-image-view-model",{class:function(){var b;return((b=H().interaction)==null?0:b.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.xl(_.jh({visibilityCallback:function(b){var U,K=(U=H().interaction)==null?void 0:U.onFirstVisible;b&&K&&_.yr(K)},
showOption:_.mf}),_.P6(function(){return H().interaction},l)),
"aria-label":function(){var b,U;return(b=H().interaction)==null?void 0:(U=b.accessibility)==null?void 0:U.label}},_.F(_.l4,{data:function(){return H().adImage}},{adImageViewModel:function(b){return _.F(_.Ti,{data:b.data,
customCommandResolver:l})}}),_.F("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.F(_.l4,{data:function(){return H().adCardBadge}},{adCardBadgeViewModel:_.dAH})))},"Uh");var fTd=_.Z(function(X){var H=X.data;var l=X.customCommandResolver;return _.F("ad-grid-card-text-view-model",{class:function(){var b;return((b=H().interaction)==null?0:b.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.xl(_.jh({visibilityCallback:function(b){var U,K=(U=H().interaction)==null?void 0:U.onFirstVisible;b&&K&&_.yr(K)},
showOption:_.mf}),_.P6(function(){return H().interaction},l)),
"aria-label":function(){var b,U;return(b=H().interaction)==null?void 0:(U=b.accessibility)==null?void 0:U.label}},_.F("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.F(_.M,{cond:function(){return H().title},
then:function(b){return _.F(_.Sj,{text:b,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.F("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.F(_.P$,{each:function(){var b;
return((b=H())==null?void 0:b.descriptions)||[]},
keyBy:"INDEX"},function(b){return _.F(_.Sj,{text:b,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.F("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.F(_.l4,{data:function(){return H().moreInfoButton}},{adButtonViewModel:function(b){return _.F(_.NX,{data:b.data,
customCommandResolver:l})}})))},"Vh");var poZ=_.Z(function(X){var H=X.data;var l=X.customCommandResolver;var b=X.adGridCardCollectionStyle;return _.F("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.xl(_.jh({visibilityCallback:function(U){var K,w=(K=H().interaction)==null?void 0:K.onFirstVisible;U&&w&&_.yr(w)},
showOption:_.mf})),style:function(){return"grid-template-columns: repeat("+lIZ(b?b():H().style)+", minmax(0, 1fr));"}},_.F(_.l4,{data:function(){var U;
return(U=H())==null?void 0:U.gridCards}},{adGridCardImageViewModel:function(U){return _.F(Pq5,{data:U.data,
customCommandResolver:l})},
adGridCardImageFullMetadataViewModel:function(U){return _.F(Vo$,{data:U.data,customCommandResolver:l})},
adGridCardTextViewModel:function(U){return _.F(fTd,{data:U.data,customCommandResolver:l})}}))},"Wh");_.gC(_.Z(function(X){var H=X.data;return _.F("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.xl(_.jh({visibilityCallback:function(l){var b,U=(b=H().interaction)==null?void 0:b.onFirstVisible;l&&U&&_.yr(U)},
showOption:_.mf}),_.P6(function(){return H().interaction},bS$))},_.F("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.F(_.M,{cond:_.N0m("(min-width: "+(Ts()+NB)+"px)"),
then:function(){return _.F(_.l4,{data:function(){return H().adGridCardCollection}},{adGridCardCollectionViewModel:function(l){return _.F(poZ,{data:l.data,
customCommandResolver:bS$})}})},
else:function(){return _.F(_.l4,{data:function(){return H().adGridCardCollection}},{adGridCardCollectionViewModel:function(l){return _.F(poZ,{data:l.data,
customCommandResolver:bS$,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.F("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.F(_.l4,{data:function(){return H().adButton}},{adButtonViewModel:function(l){return _.F(_.NX,{data:l.data,
customCommandResolver:bS$})}})))},"Xh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;return _.F("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.xl(_.jh({visibilityCallback:function(l){var b,U=(b=H().interaction)==null?void 0:b.onFirstVisible;l&&U&&_.yr(U)},
showOption:_.mf}),_.P6(function(){return H().interaction},Uhe))},_.F("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.F(_.l4,{data:function(){if(_.N0m("(min-width: "+(Ts()+NB)+"px)")())var l=H().adGridCardCollection;
else{l=Object.assign({},_.f(H().adGridCardCollection,NFy));var b;l.gridCards!==void 0&&((b=l.gridCards)==null?void 0:b.length)>1?l.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":l.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";l={adGridCardCollectionViewModel:l}}return l}},{adGridCardCollectionViewModel:function(l){return _.F(poZ,{data:l.data,
customCommandResolver:Uhe})}})),_.F("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.F(_.l4,{data:function(){return H().adButton}},{adButtonViewModel:function(l){return _.F(_.NX,{data:l.data,
customCommandResolver:Uhe})}})))},"Yh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.zh}});var uh=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return X};
_.S(uh,_.a);_.R=uh.prototype;_.R.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"}}}};
_.R.attached=function(){this.getDataFromPlayerAndRender()};
_.R.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.R.getDataFromPlayerAndRender=function(){var X=this,H=_.aq(this.hostElement);H&&H.getPlayerPromise().then(function(l){X.getCachedDataAndListen(l)})};
_.R.getCachedDataAndListen=function(X){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(X,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(X,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=X)};
_.R.resolveCachedActions=function(){var X=_.ij("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(X=X&&X())&&!_.Bb.isEmpty(X)&&this.sendUpdateEngagementPanelAction(X);(X=(X=_.ij("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&X())&&!_.Bb.isEmpty(X)&&this.sendChangeEngagementPanelVisibilityAction(X);(X=(X=_.ij("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&X())&&!_.Bb.isEmpty(X)&&this.sendScrollToEngagementPanelCommand(X)};
_.R.sendUpdateEngagementPanelAction=function(X){var H;_.TP(this.hostElement,"yt-update-engagement-panel-action",[(H=_.Bb.get(X,"action"))!=null?H:X])};
_.R.sendChangeEngagementPanelVisibilityAction=function(X){_.TP(this.hostElement,"yt-change-engagement-panel-visibility-action",[X])};
_.R.sendScrollToEngagementPanelCommand=function(X){_.TP(this.hostElement,"yt-scroll-to-engagement-panel-command",[X])};
_.R.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.P("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.x2(Error("Bl"))};
uh.prototype.dataChanged=uh.prototype.dataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],uh.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],uh.prototype,"componentBehavior",void 0);_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],uh.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],uh.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],uh.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],uh.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],uh.prototype,"player",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uh.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],uh);
_.O(uh,"ytd-ads-engagement-panel-content-renderer",function(){if(yDd!==void 0)return yDd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
return yDd=X},{mode:1});var SgU;var e_=function(){var X=_.a.apply(this,arguments)||this;X.player=null;X.JSC$20626_playerEvents=new Map;X.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return X};
_.S(e_,_.a);_.R=e_.prototype;_.R.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]]"}}}}}};
_.R.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)};
_.R.attached=function(){var X=this,H=_.aq();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));H&&H.getPlayerPromise().then(function(l){X.setPlayer(l);X.set("isPageLoad",!1)})};
_.R.setPlayer=function(X){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20626_playerEvents);this.set("player",X);X&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(X,this.JSC$20626_playerEvents),X.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.R.onLoopRangeChange=function(X){var H=_.jJ().resolve(_.c$(_.gd));if((!H||H.isOnWatch())&&this.hostElement.clientHeight){var l;!X&&((l=this.data)==null?0:l.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.R.onVideoProgress=function(X){var H,l,b=((H=this.player)==null?void 0:(l=H.getPresentingPlayerType)==null?void 0:l.call(H))===2;this.isAdPlaying!==b&&this.set("isAdPlaying",b);var U;if(!b&&(U=this.player)!=null&&U.getLoopRange()){l=this.player.getLoopRange();H=l.startTimeMs;l=l.endTimeMs;b=this.player.getProgressState(1).seekableStart;var K;H<b*1E3&&((K=this.data)==null?0:K.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
X=l<X*1E3;var w;((w=this.player)==null?0:w.getLoopRange())&&X&&this.player.seekTo(H/1E3)}};
_.R.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.R.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.R.onYtDeleteClipEngagementPanelCommand=function(X){_.f(X,rKY).command&&this.ytComponentBehavior.resolveCommand(_.f(X,rKY).command)};
_.ja.Object.defineProperties(e_.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.voteCount)||_.xM("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],e_.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],e_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],e_.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],e_.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],e_.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],e_.prototype,"isAdPlaying",void 0);_.T([_.g({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],e_.prototype,"isPageLoad",void 0);_.T([_.g({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],e_.prototype,"isDarkTheme",void 0);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],e_.prototype,"voteCount",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],e_.prototype,"channelEndpoint",null);_.T([_.x("channelEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],e_.prototype,"channelHref",null);_.T([_.sq({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],e_);
_.O(e_,"ytd-clip-attribution-renderer",function(){if(SgU!==void 0)return SgU;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return SgU=X},{mode:1});var zX5;var yV=function(){var X=_.a.apply(this,arguments)||this;X.player=null;X.JSC$20631_playerEvents=new Map;return X};
_.S(yV,_.a);_.R=yV.prototype;_.R.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)};
_.R.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.R.attached=function(){var X=this,H=_.aq();H&&H.getPlayerPromise().then(function(l){X.setPlayer(l);X.set("isPageLoad",!1)})};
_.R.setPlayer=function(X){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20631_playerEvents);this.set("player",X);if(X){this.ytPlayerListenerBehavior.listenToPlayerEvents(X,this.JSC$20631_playerEvents);var H;(X==null?void 0:(H=X.getPresentingPlayerType)==null?void 0:H.call(X))===2&&this.playerAdStartHandler()}};
_.R.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.R.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.R.onVideoProgress=function(){var X,H,l=((X=this.player)==null?void 0:(H=X.getPresentingPlayerType)==null?void 0:H.call(X))===2;this.isAdPlaying!==l&&this.set("isAdPlaying",l)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],yV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],yV.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],yV.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],yV.prototype,"isAdPlaying",void 0);
_.T([_.g({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],yV.prototype,"isPageLoad",void 0);_.T([_.sq({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],yV);
_.O(yV,"ytd-clip-section-footer-renderer",function(){if(zX5!==void 0)return zX5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return zX5=X},{mode:1});var nCa;var k_N;var xcZ=function(){return _.a.apply(this,arguments)||this};
_.S(xcZ,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xcZ.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xcZ.prototype,"data",void 0);_.T([_.sq({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],xcZ);
_.O(xcZ,"ytd-clip-ad-state-renderer",function(){if(k_N!==void 0)return k_N;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return k_N=X},{mode:1});var DcA;var VV=function(){var X=_.a.apply(this,arguments)||this;X.value="";X.valid=!1;X.userChangedValue=!1;X.disabled=!1;X.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return X};
_.S(VV,_.a);_.R=VV.prototype;_.R.detached=function(){this.userChangedValue=!1};
_.R.handleKeyDown=function(X){if(_.Hf)var H=13;else _.fA_&&_.XQ?H=13:H=13;X.keyCode===H&&X.preventDefault()};
_.R.handleInput=function(){var X=_.mh(this.hostElement).querySelector("#title");if(X){var H=(X.value||"").replace(/\r|\n/g," ");this.set("value",H);X.value=H;this.valid=X.validate();this.userChangedValue=!0}};
_.R.handleBlur=function(){this.valid=_.mh(this.hostElement).querySelector("#title").validate()};
_.R.onValueChanged=function(){_.QX(this.hostElement,"title-changed",{title:this.value})};
_.R.onValidChanged=function(){_.QX(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.R.setInput=function(X,H){var l=_.mh(this.hostElement).querySelector("#title");l&&(l.value=X,this.handleInput(),H&&(l.invalid=!1,this.valid=!0))};
_.R.onClipCreationDisable=function(){this.set("disabled",!0)};
_.R.onClipCreationEnable=function(){this.set("disabled",!1)};
_.R.onClipCreationVisibilityChange=function(X){var H=this;X.visible?requestAnimationFrame(function(){var l;((l=_.mh(H.hostElement).querySelector("#title"))==null?void 0:l.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
VV.prototype.onValidChanged=VV.prototype.onValidChanged;VV.prototype.onValueChanged=VV.prototype.onValueChanged;VV.prototype.handleBlur=VV.prototype.handleBlur;VV.prototype.handleInput=VV.prototype.handleInput;VV.prototype.handleKeyDown=VV.prototype.handleKeyDown;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],VV.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],VV.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],VV.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],VV.prototype,"value",void 0);_.T([_.g(),_.N("design:type",Object)],VV.prototype,"valid",void 0);_.T([_.g(),_.N("design:type",Object)],VV.prototype,"userChangedValue",void 0);_.T([_.g(),_.N("design:type",Object)],VV.prototype,"disabled",void 0);_.T([_.Le("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],VV.prototype,"handleKeyDown",null);
_.T([_.Le("input"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VV.prototype,"handleInput",null);_.T([_.Le("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VV.prototype,"handleBlur",null);_.T([_.Yh("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VV.prototype,"onValueChanged",null);
_.T([_.Yh("valid"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VV.prototype,"onValidChanged",null);_.T([_.sq({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],VV);
_.O(VV,"ytd-clip-creation-text-input-renderer",function(){if(DcA!==void 0)return DcA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return DcA=X},{mode:1});var W2a;var ECx;var gCN;var G_Y;var aTU;var Pv=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};X.pendingStoryboardImages_={};X.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];X.tickLabelInterval=30;X.mediumTickInterval=5;X.largeTickInterval=15;X.aboveRulerHeight=32;X.rulerHeight=50;X.smallTickHeight=4;X.mediumTickHeight=8;X.largeTickHeight=16;X.mediaListeners_=
{};return X};
_.S(Pv,_.a);_.R=Pv.prototype;_.R.attached=function(){var X=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(H){H=_.C(["screen and (min-resolution: "+H+")","screen and (max-resolution: "+H+")"]);for(var l=H.next();!l.done;l=H.next()){l=l.value;var b=window.matchMedia(l);b&&(X.mediaListeners_[l]=X.updatePixelRatio_.bind(X),b.addEventListener?b.addEventListener("change",X.mediaListeners_[l]):b.addListener?b.addListener(X.mediaListeners_[l]):delete X.mediaListeners_[l])}})};
_.R.detached=function(){this.setPlayer(null);for(var X=_.C(Object.keys(this.mediaListeners_)),H=X.next();!H.done;H=X.next()){var l=H.value;H=this.mediaListeners_[l];(l=window.matchMedia(l))&&(l.removeEventListener?l.removeEventListener("change",H):l.removeListener&&l.removeListener(H))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.R.onVisibilityChangedAction_=function(X){var H=this;X.visible&&!this.player_&&(X=_.aq())&&X.getPlayerPromise().then(function(l){H.setPlayer(l)})};
_.R.setPlayer=function(X){X&&this.set("player_",X)};
_.R.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.R.setUpCanvas_=function(){var X=this.rulerWidth,H=this.devicePixelRatio_,l=this.visible;this.set("canvasReady_",!1);if(l&&H!==0){l=this.aboveRulerHeight+this.rulerHeight;var b=_.mh(this.hostElement).querySelector("#ticks");b.width=X*H;b.height=l*H;b.style.width=X+"px";b.style.height=l+"px";b.getContext("2d").scale(H,H);this.set("canvasReady_",!0)}};
_.R.drawRuler_=function(X,H,l,b,U,K,w,d,B,q,u,e){X&&l&&H&&(X=_.mh(this.hostElement).querySelector("#ticks"),H=X.getContext("2d"),H.clearRect(0,0,X.width,X.height),H.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),H.lineWidth=2,H.beginPath(),H.moveTo(0,this.aboveRulerHeight),H.lineTo(X.width,this.aboveRulerHeight),H.moveTo(0,X.height),H.lineTo(X.width,X.height),H.stroke(),this.drawRulerTicks_(X,K,U,b),this.drawStoryboardImages_(X,l,K,U,b),H.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
H.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(w-K,b,!1),this.rulerHeight),l=this.timeToPixels_(d-K,b,!1),H.fillRect(l,this.aboveRulerHeight,X.width-l,this.rulerHeight),this.drawSpeedLines_(X,K,e))};
_.R.drawRulerTicks_=function(X,H,l,b){var U=X.getContext("2d");U.save();U.lineWidth=1;for(var K=Math.floor(Math.max(0,H-this.tickLabelInterval));K<H+l;K++){U.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var w=(K-H)*b;U.beginPath();U.moveTo(w,X.height);var d=this.smallTickHeight;K%this.largeTickInterval===0?d=this.largeTickHeight:K%this.mediumTickInterval===0&&(d=this.mediumTickHeight);U.lineTo(w,X.height-d);U.stroke();K%this.tickLabelInterval===0&&(U.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),U.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),U.fillText(rl(K),w+4,12),U.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),U.moveTo(w,0),U.lineTo(w,this.aboveRulerHeight),U.stroke())}U.restore()};
_.R.percentToHex_=function(X){X=Math.round(X*255).toString(16);X.length<2&&(X="0"+X);return X};
_.R.drawSpeedLines_=function(X,H,l){var b=X.getContext("2d");b.save();var U=Math.min(25,Math.abs(l)-15)/25,K=X.width*.3*U,w=X.width*-.3,d=X.width*1.3,B=this.aboveRulerHeight;X=X.height;var q=Math.round(4*U),u=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");u.length<7&&(u="#"+u.substring(1,4).repeat(2));var e=this.percentToHex_(.5+U/2);e=u+e;u+="00";if(U>0)for(U=0;U<q;U++){var y=w+Math.random()*(d-w),V=B+Math.random()*(X-B),p=K+H%K,z=b.createLinearGradient(y,V,y+p,V);
l<0?(z.addColorStop(0,e),z.addColorStop(.4,e),z.addColorStop(.9,u)):(z.addColorStop(.1,u),z.addColorStop(.6,e),z.addColorStop(1,e));b.strokeStyle=z;b.lineWidth=1;b.beginPath();b.moveTo(y,V);b.lineTo(y+p,V);b.stroke()}b.restore()};
_.R.getStoryboardForTime_=function(X,H,l){l===void 0&&(l=H.getNumberOfStoryboardLevels()-1);X=H.getStoryboardFrameIndex(X,l);return H.getStoryboardFrame(X,l)};
_.R.drawStoryboardImages_=function(X,H,l,b,U){if(!this.disabled){X=X.getContext("2d");var K=this.getStoryboardForTime_(0,H);if(K){var w=K.width/K.columns;K=K.height/K.rows;var d=w/K,B=this.rulerHeight*d;B=this.tickLabelInterval*(d<this.tickLabelInterval*U/this.rulerHeight?1/Math.floor(this.tickLabelInterval*U/B):Math.round(B/(this.tickLabelInterval*U)));var q=B*U,u=this.rulerHeight,e=q/this.rulerHeight,y=Math.floor(Math.max(0,l-B));for(y-=y%B;y<l+b;y+=B){var V=this.getStoryboardForTime_(y,H),p=this.getPreloadedStoryboard_(V.url);
if(p){var z=(y-l)*U,t=this.aboveRulerHeight,W=V.column*w,G=V.row*K;if(d<e){var r=u/(q/d);V=w;r*=K;G+=(K-r)/2}else V=q/(u*d)*w,r=K,W+=(w-V)/2;X.drawImage(p,W,G,V,r,z,t,q,u)}else this.fetchStoryboardImage_(V)}}}};
_.R.getPreloadedStoryboard_=function(X){return this.storyboardImages_.find(function(H){if(H.src==X)return!0;var l=H.src.indexOf(X);return l!=-1&&l==H.src.length-X.length})};
_.R.fetchStoryboardImage_=function(X){var H=this,l=this.getPreloadedStoryboard_(X.url),b=this.pendingStoryboardImages_[X.url];l||b!==void 0||(l=new Promise(function(U){var K=new Image(X.width,X.height);K.src=X.url;K.onload=function(){U(K)};
K.onerror=function(){U(null)}}),this.pendingStoryboardImages_[X.url]=l,l.then(function(U){U&&H.push("storyboardImages_",U);
return U}).finally(function(){delete H.pendingStoryboardImages_[X.url]}))};
_.R.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.R.timeToPixels_=function(X,H,l){X*=H;return l===void 0||l?X+"px":X};
_.R.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Pv.prototype.drawRuler_=Pv.prototype.drawRuler_;Pv.prototype.setUpCanvas_=Pv.prototype.setUpCanvas_;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Pv.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],Pv.prototype,"start",void 0);_.T([_.g({value:30}),_.N("design:type",Number)],Pv.prototype,"end",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],Pv.prototype,"visible",void 0);_.T([_.g(),_.N("design:type",Object)],Pv.prototype,"player_",void 0);_.T([_.g(),_.N("design:type",Number)],Pv.prototype,"tickSpacing",void 0);_.T([_.g(),_.N("design:type",Number)],Pv.prototype,"windowSizeSec",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],Pv.prototype,"rulerWidth",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],Pv.prototype,"rulerShift",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],Pv.prototype,"canvasReady_",void 0);_.T([_.g({value:function(){return[]}}),
_.N("design:type",Array)],Pv.prototype,"storyboardImages_",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Pv.prototype,"disabled",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],Pv.prototype,"forceRender_",void 0);_.T([_.g({value:1}),_.N("design:type",Number)],Pv.prototype,"devicePixelRatio_",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],Pv.prototype,"windowSpeed",void 0);
_.T([_.Yh("visible","devicePixelRatio_","rulerWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pv.prototype,"setUpCanvas_",null);
_.T([_.Yh("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.N("design:returntype")],Pv.prototype,"drawRuler_",null);_.T([_.qR({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Pv);
_.O(Pv,"yt-clip-creation-scrubber-canvas",function(){if(aTU===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);aTU=X}X=aTU;return X},
{mode:2});var ZEA;var iEC;var fp=function(){var X=_.a.apply(this,arguments)||this;X.start=0;X.end=30;X.visible=!1;X.draggingLeft_=!1;X.draggingRight_=!1;X.draggingRuler_=!1;X.draggingWindow_=!1;X.seekableStart=0;X.seekableEnd=0;X.rulerWidth_=0;X.rulerShift_=0;X.windowSlideSpeed=0;X.disabled=!1;X.initialized=!1;X.durationAccessibilityLabel="";X.activeLoopRange_=!1;X.rulerDragMouseStart_=0;X.rulerDragRulerStart_=0;X.rulerDragStartTime_=0;X.rulerDragEndTime_=0;X.dragMouseLastX_=0;X.scrollInterval_=null;X.scrubberVe_=null;X.boundHandlers_=
{};X.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return X};
_.S(fp,_.a);_.R=fp.prototype;
_.R.created=function(){var X=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 H={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(H).forEach(function(l){X.boundHandlers_[l]=H[l].bind(X)})};
_.R.attached=function(){this.activeLoopRange_=!1;_.mh(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.mh(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.cS(156731)};
_.R.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.mh(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.mh(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.R.onVisibilityChangedAction_=function(X){var H=this;X.visible&&!this.player_&&(X=_.aq())&&X.getPlayerPromise().then(function(l){H.setPlayer(l)})};
_.R.setPlayer=function(X){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20645_playerEvents);X&&(this.set("player_",X),this.ytPlayerListenerBehavior.listenToPlayerEvents(X,this.JSC$20645_playerEvents))};
_.R.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.R.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.R.beginHandleDrag_=function(X){this.disabled||(X.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=X.clientX,X.target===_.mh(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():X.target===_.mh(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.R.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.R.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.R.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.R.beginRulerDrag_=function(X){this.disabled||(X.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=X.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.R.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.R.beginWindowScroll_=function(){var X=this;this.scrollInterval_=setInterval(function(){var H=X.windowSlideSpeed;if(H=yBe(X.start,X.boundedRulerStartLimit_())?H-.1:yBe(X.end,X.boundedRulerEndLimit_())?H+.1:0){var l=X.capRulerOffset_(X.rulerShift_+H);l==X.rulerShift_?H=0:(X.set("rulerShift_",l),_.QX(X.hostElement,"set-fixed-length-range",{start:X.start+H,duration:X.end-X.start}))}X.set("windowSlideSpeed",H)},33)};
_.R.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.R.endDrag_=function(){this.logClick();var X=void 0;this.draggingRight_?X=this.end-1:this.draggingLeft_&&(X=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,X);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))};
_.R.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.R.updateRulerSize_=function(){this.set("rulerWidth_",_.mh(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.R.handleMouseDrag_=function(X){X.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(X):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(X):this.draggingWindow_&&this.handleWindowDrag_(X))};
_.R.handleRulerDrag_=function(X){X=this.pixelsToTime_(X.clientX-this.rulerDragMouseStart_);X=this.capRulerOffset_(this.rulerDragRulerStart_-X);this.set("rulerShift_",X);var H=this.rulerDragStartTime_-(this.rulerDragRulerStart_-X);_.QX(this.hostElement,"set-fixed-length-range",{start:H,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-X)-H})};
_.R.handleWindowDrag_=function(X){var H=X.clientX-this.dragMouseLastX_;this.dragMouseLastX_=X.clientX;X=this.pixelsToTime_(H);_.QX(this.hostElement,"set-fixed-length-range",{start:this.start+X,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.R.capRulerOffset_=function(X){var H=this.seekableStart-this.pixelsToTime_(16),l=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(H,X),l)};
_.R.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.R.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.R.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.R.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.R.handleWindowHandleDrag_=function(X){var H=X.clientX-this.dragMouseLastX_;this.dragMouseLastX_=X.clientX;X=this.pixelsToTime_(H);if(this.draggingLeft_){var l=this.start+X;var b=this.end}else this.draggingRight_&&(l=this.start,b=this.end+X);_.QX(this.hostElement,"set-range",{start:l,end:b,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.R.onVideoProgress_=function(X){this.disabled||(X=this.timeToPixels_(X-this.rulerShift_,this.tickSpacing_),_.mh(this.hostElement).querySelector("#playhead").style.transform="translateX("+X+")")};
_.R.onClipCreationDisable_=function(){this.endDrag_()};
_.R.timeToPixels_=function(X,H,l){X*=H;return l===void 0||l?X+"px":X};
_.R.pixelsToTime_=function(X){return X/this.tickSpacing_};
_.R.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.R.centerRuler_=function(X,H,l){this.set("rulerShift_",this.capRulerOffset_(X+(H-X)/2-l/2))};
_.R.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.R.updateLoopRange_=function(X,H,l,b,U,K,w){X&&(H&&b&&!l?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(X.pauseVideo(),X.seekTo(U,!1,void 0,void 0,50)):this.draggingRight_?(X.pauseVideo(),X.seekTo(K-.1,!1,void 0,void 0,50)):(w!==void 0?X.seekTo(w,!0,void 0,void 0,50):(H=X.getCurrentTime(),H<U||H>K?X.seekTo(U,!0,void 0,void 0,50):X.seekTo(H,!0,void 0,void 0,50)),X.playVideo()),X.setLoopRange({startTimeMs:U*1E3,endTimeMs:K*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(X.getCurrentTime())):
this.activeLoopRange_&&(X.setLoopRange(null),this.activeLoopRange_=!1))};
_.R.updateHandles_=function(){_.mh(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.mh(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.R.updateRuler_=function(){var X=this.end,H=this.start,l=this.draggableStartLimit_(),b=this.draggableEndLimit_();(H<l-.001||X>b+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.R.computeDurationLabel_=function(X,H){return X?X.replace("$clip_length",parseFloat(H).toFixed(1)):""};
_.R.computeDuration_=function(X,H){return this.isValidTime_(X)&&this.isValidTime_(H)&&X<H?H-X:0};
_.R.isValidTime_=function(X){return isNaN(parseFloat(X))||X<0?!1:this.player_?X>=this.seekableStart&&X<=this.seekableEnd:!0};
_.R.computeWindowSizeSec_=function(X,H,l){return Math.min((X||12E4)/1E3,l-H)};
_.R.computeTickSpacing_=function(X,H){return H?H/X:1};
_.R.onDragStateChanged_=function(){_.QX(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.R.centerRangeOnTime_=function(X){var H=this.duration;X=KCA(X-H/2,H,this.seekableStart,this.seekableEnd);_.QX(this.hostElement,"set-fixed-length-range",{start:X.start,duration:X.end-X.start})};
_.R.nearlyLessThan_=function(X,H,l){return X+(l===void 0?1E-6:l)<H};
_.R.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var X=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(X,this.start)||this.nearlyLessThan_(this.end,X))&&this.centerRangeOnTime_(X)}};
_.R.onStateChange_=function(X){this.visible&&!this.disabled&&X==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.R.computeDragState_=function(X,H,l,b){return X?"left":H?"right":l?"ruler":b?"window":"none"};
_.R.logClick=function(){var X=_.Bi(),H=_.F6();X&&H&&this.scrubberVe_&&(_.P("combine_ve_grafts")?_.rg(_.lv(),this.scrubberVe_,H):_.pA(X,H,this.scrubberVe_),_.xB(X,this.scrubberVe_))};
fp.prototype.onDragStateChanged_=fp.prototype.onDragStateChanged_;fp.prototype.updateRuler_=fp.prototype.updateRuler_;fp.prototype.updateHandles_=fp.prototype.updateHandles_;fp.prototype.onUpdateLoopRange=fp.prototype.onUpdateLoopRange;fp.prototype.onInitializedChanged_=fp.prototype.onInitializedChanged_;fp.prototype.onVisibleChanged_=fp.prototype.onVisibleChanged_;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],fp.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",Object)],fp.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],fp.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"start",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"end",void 0);_.T([_.g({computed:"computeDuration_(start, end)"}),_.N("design:type",Number)],fp.prototype,"duration",void 0);
_.T([_.g(),_.N("design:type",String)],fp.prototype,"lengthTemplate",void 0);_.T([_.g({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.N("design:type",String)],fp.prototype,"durationLabel",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"visible",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"player_",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"draggingLeft_",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"draggingRight_",void 0);
_.T([_.g(),_.N("design:type",Object)],fp.prototype,"draggingRuler_",void 0);_.T([_.g({value:!1}),_.N("design:type",Object)],fp.prototype,"draggingWindow_",void 0);_.T([_.g({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.N("design:type",Number)],fp.prototype,"tickSpacing_",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"seekableStart",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"seekableEnd",void 0);
_.T([_.g(),_.N("design:type",Number)],fp.prototype,"windowSizeMs",void 0);_.T([_.g({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.N("design:type",Number)],fp.prototype,"windowSizeSec_",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"rulerWidth_",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"rulerShift_",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"windowSlideSpeed",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fp.prototype,"disabled",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"initialized",void 0);_.T([_.g(),_.N("design:type",Object)],fp.prototype,"durationAccessibilityLabel",void 0);_.T([_.g({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.N("design:type",String)],fp.prototype,"dragState",void 0);
_.T([_.Yh("visible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fp.prototype,"onVisibleChanged_",null);_.T([_.Yh("initialized"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fp.prototype,"onInitializedChanged_",null);_.T([_.Yh("player_","visible","disabled","initialized","start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fp.prototype,"onUpdateLoopRange",null);
_.T([_.Yh("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fp.prototype,"updateHandles_",null);_.T([_.Yh("start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fp.prototype,"updateRuler_",null);
_.T([_.Yh("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fp.prototype,"onDragStateChanged_",null);_.T([_.qR({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],fp);
_.O(fp,"yt-clip-creation-scrubber-view",function(){if(iEC===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;ZEA===void 0&&(ZEA=document.createElement("template"));var b=ZEA;l.call(H,b.content.cloneNode(!0),X.content.firstChild);iEC=X}X=iEC;return X},{mode:2});var pp=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};X.startHighlightTimeout=0;X.endHighlightTimeout=0;return X};
_.S(pp,_.a);_.R=pp.prototype;_.R.attached=function(){var X=this;this.startInput.addEventListener("input",function(H){return X.handleStartInput_(H)});
this.endInput.addEventListener("input",function(H){return X.handleEndInput_(H)});
this.startInput.addEventListener("focusout",function(H){return X.handleStartBlur_(H)});
this.endInput.addEventListener("focusout",function(H){return X.handleEndBlur_(H)})};
_.R.setPlayer=function(X){this.set("player_",X)};
_.R.onSetFixedLengthRange_=function(X){var H=X.detail;X=H.start;var l=H.duration,b=H.startLimit;H=H.endLimit;b||(b=this.seekableStart_);H||(H=this.seekableEnd_);X=KCA(X,l,b,H);this.start=X.start;this.end=X.end};
_.R.onSetRange_=function(X){var H=X.detail;X=H.start;var l=H.end,b=H.startLimit;H=H.endLimit;b||(b=this.seekableStart_);H||(H=this.seekableEnd_);if(X=Rhl(X,l,b,H,this.minLengthSec,this.maxLengthSec))this.start=X.start,this.end=X.end};
_.R.updateInputs_=function(){var X=this.end,H=this.start;this.startInput.focused||(this.startInput.value=rl(H,!0));this.endInput.focused||(this.endInput.value=rl(X,!0))};
_.R.handleStartInput_=function(X){X=$h5(X.target.value);if(X===null)this.set("startValid",!1);else{var H=this.end,l=Rhl(X,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);l?(this.set("endWillUpdate",l.end!==H),this.set("startValid",l.start===X)):this.set("startValid",!1)}};
_.R.handleEndInput_=function(X){X=$h5(X.target.value);if(X===null)this.set("endValid",!1);else{var H=this.start,l=C4a(this.start,X,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);l?(this.set("startWillUpdate",l.start!==H),this.set("endValid",l.end===X)):this.set("endValid",!1)}};
_.R.handleStartBlur_=function(X){X=$h5(X.target.value);X===null?this.startInput.value=rl(this.start,!0):this.forceUpdateInputs_(Rhl(X,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.R.handleEndBlur_=function(X){X=$h5(X.target.value);X===null?this.endInput.value=rl(this.end,!0):this.forceUpdateInputs_(C4a(this.start,X,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.R.forceUpdateInputs_=function(X){X&&(this.start=X.start,this.end=X.end);this.startInput.value=rl(this.start,!0);this.endInput.value=rl(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.R.initializeClipRange_=function(){var X=this.seekableEnd_,H=this.seekableStart_,l=this.visible_,b=this.player_;if(!b||!l||H===null||!X)this.set("initialized",!1);else if(!this.initialized){var U=b.getCurrentTime(),K=this.getDefaultLengthSec_();l=b.getVideoData();var w=b.getPlayerState()==1,d=l.isLive;K=Math.min(K,X-H);U=Math.max(0,U);X=d?C4a(U-K,U,H,X,this.minLengthSec,this.maxLengthSec):w?KCA(U-K/2,K,H,X):KCA(U,K,H,X);this.start=X.start;this.end=X.end;this.set("initialized",!0);l.isLive&&b.seekTo(X.start);
this.startInput.value=rl(this.start,!0);this.endInput.value=rl(this.end,!0)}};
_.R.onStartChanged_=function(){var X=this;_.QX(this.hostElement,"start-changed",{start:this.start});var H;isNaN((H=this.oldStart)!=null?H:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){X.set("highlightStart",!1);X.startHighlightTimeout=0;X.oldStart=X.start},3E3))};
_.R.onEndChanged_=function(){var X=this;_.QX(this.hostElement,"end-changed",{end:this.end});var H;isNaN((H=this.oldEnd)!=null?H:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){X.set("highlightEnd",!1);X.endHighlightTimeout=0;X.oldEnd=X.end},3E3))};
_.R.onVisibilityChangedAction_=function(X){var H=this;this.set("visible_",X.visible);this.visible_&&!this.player_&&(X=_.aq())&&X.getPlayerPromise().then(function(l){H.setPlayer(l)})};
_.R.computeMinLengthSec_=function(X){return X/1E3||5};
_.R.computeMaxLengthSec_=function(X){return X/1E3||60};
_.R.computeDefaultLengthSec_=function(X){return X/1E3};
_.R.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.R.computeSeekableStart_=function(X,H){return X&&H?X.getProgressState(1).seekableStart:0};
_.R.computeSeekableEnd_=function(X,H){return X&&H?X.getProgressState(1).seekableEnd:0};
_.R.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.R.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.R.onDragState_=function(X){this.set("highlightStart",X.detail.startChanging);this.set("highlightEnd",X.detail.endChanging)};
pp.prototype.onDragState_=pp.prototype.onDragState_;pp.prototype.onEndChanged_=pp.prototype.onEndChanged_;pp.prototype.onStartChanged_=pp.prototype.onStartChanged_;pp.prototype.initializeClipRange_=pp.prototype.initializeClipRange_;pp.prototype.updateInputs_=pp.prototype.updateInputs_;pp.prototype.onSetRange_=pp.prototype.onSetRange_;pp.prototype.onSetFixedLengthRange_=pp.prototype.onSetFixedLengthRange_;
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],pp.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pp.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pp.prototype,"data",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],pp.prototype,"start",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],pp.prototype,"startValid",void 0);
_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],pp.prototype,"startWillUpdate",void 0);_.T([_.g({value:30}),_.N("design:type",Number)],pp.prototype,"end",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],pp.prototype,"endValid",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],pp.prototype,"endWillUpdate",void 0);_.T([_.g({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.N("design:type",Number)],pp.prototype,"minLengthSec",void 0);
_.T([_.g({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.N("design:type",Number)],pp.prototype,"maxLengthSec",void 0);_.T([_.g({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.N("design:type",Number)],pp.prototype,"defaultLengthSec",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],pp.prototype,"visible_",void 0);_.T([_.g(),_.N("design:type",Object)],pp.prototype,"player_",void 0);
_.T([_.g({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.N("design:type",Number)],pp.prototype,"seekableStart_",void 0);_.T([_.g({computed:"computeSeekableEnd_(player_, visible_)"}),_.N("design:type",Number)],pp.prototype,"seekableEnd_",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],pp.prototype,"initialized",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],pp.prototype,"disabled",void 0);
_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],pp.prototype,"highlightStart",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],pp.prototype,"highlightEnd",void 0);_.T([_.A2("#start"),_.N("design:type",HTMLInputElement)],pp.prototype,"startInput",void 0);_.T([_.A2("#end"),_.N("design:type",HTMLInputElement)],pp.prototype,"endInput",void 0);
_.T([_.Le("set-fixed-length-range"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pp.prototype,"onSetFixedLengthRange_",null);_.T([_.Le("set-range"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pp.prototype,"onSetRange_",null);_.T([_.Yh("start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pp.prototype,"updateInputs_",null);
_.T([_.Yh("player_","visible_","seekableStart_","seekableEnd_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pp.prototype,"initializeClipRange_",null);_.T([_.Yh("start"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pp.prototype,"onStartChanged_",null);_.T([_.Yh("end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pp.prototype,"onEndChanged_",null);
_.T([_.Le("clips-drag-state"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pp.prototype,"onDragState_",null);_.T([_.qR({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],pp);
_.O(pp,"yt-clip-creation-scrubber-renderer",function(){if(G_Y===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;gCN===void 0&&(gCN=document.createElement("template"));var b=gCN;l.call(H,b.content.cloneNode(!0),X.content.firstChild);G_Y=X}X=G_Y;return X},{mode:2});var S_=function(){var X=_.a.apply(this,arguments)||this;X.player_=null;X.JSC$20659_playerEvents=new Map;X.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return X};
_.S(S_,_.a);_.R=S_.prototype;_.R.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"}}}};
_.R.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_)};
_.R.detached=function(){this.setPlayer(null)};
_.R.onVisibilityChangedAction_=function(X){var H=this,l;if((l=this.data)==null?0:l.externalVideoId){var b;this.videoId=(b=this.data)==null?void 0:b.externalVideoId}this.getPlayer().then(function(U){if(X.visible)H.returnTime=U.getCurrentTime(),H.isAtLiveHead=U.getProgressState().isAtLiveHead;else{var K=H.returnTime;H.isAtLiveHead&&(K=Number.POSITIVE_INFINITY);U.seekTo(K,void 0,void 0,void 0,51)}})};
_.R.getPlayer=function(){var X=this;if(!this.player_){var H=_.aq();if(H)return H.getPlayerPromise().then(function(l){X.setPlayer(l);return l})}return Promise.resolve(this.player_)};
_.R.setPlayer=function(X){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20659_playerEvents);if(X){this.player_=X;var H;((H=this.data)==null?0:H.externalVideoId)||this.set("videoId",X.getVideoData().video_id||"");var l;(X==null?void 0:(l=X.getPresentingPlayerType)==null?void 0:l.call(X))===2&&(this.set("isAdPlaying",!0),_.TP(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(X,this.JSC$20659_playerEvents)}};
_.R.ready=function(){_.mh(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.R.onTitleChanged_=function(X){this.set("titleValue",X.detail.title)};
_.R.onStartChanged_=function(X){this.set("start",X.detail.start)};
_.R.onEndChanged_=function(X){this.set("end",X.detail.end)};
_.R.onTitleValidChanged_=function(X){this.set("titleValid",X.detail.valid)};
_.R.onStartValidChanged_=function(X){this.set("startValid",X.detail.valid)};
_.R.onEndValidChanged_=function(X){this.set("endValid",X.detail.valid)};
_.R.onVideoDataChange_=function(){var X;if((X=this.data)==null||!X.externalVideoId){var H;this.set("videoId",((H=this.player_)==null?void 0:H.getVideoData().video_id)||"")}};
_.R.computeFormValid_=function(X,H,l,b){return!!(X&&H&&l&&b)};
_.R.computeCancelButton_=function(X,H,l){return X&&_.f(X,_.yB)?{buttonRenderer:Object.assign({},_.f(X,_.yB),{isDisabled:H||l})}:null};
_.R.computeSubmitButton_=function(X,H,l){return X&&_.f(X,_.yB)?{buttonRenderer:Object.assign({},_.f(X,_.yB),{command:void 0,isDisabled:!this.formValid||H||l})}:null};
_.R.computeSubmitCommand_=function(X){return X||null};
_.R.onSubmit_=function(X){var H=this;X.stopPropagation();X.preventDefault();this.submitCommand_&&(X={},X.comment_text=this.titleValue,X.clip_external_video_id=this.videoId,X.clip_offset_ms=parseInt(this.start*1E3,10),X.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.ci(this.hostElement,[this.submitCommand_,X]).then(function(){H.set("isLoading_",!1)},function(){H.set("isLoading_",!1)}))};
_.R.playerAdStartHandler_=function(){_.TP(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.R.playerAdEndHandler_=function(){_.TP(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.R.onVideoProgress_=function(){var X=this;this.getPlayer().then(function(H){var l,b=(H==null?void 0:(l=H.getPresentingPlayerType)==null?void 0:l.call(H))===2;X.isAdPlaying!==b&&(b?X.playerAdStartHandler_():X.playerAdEndHandler_())})};
S_.prototype.onEndValidChanged_=S_.prototype.onEndValidChanged_;S_.prototype.onStartValidChanged_=S_.prototype.onStartValidChanged_;S_.prototype.onTitleValidChanged_=S_.prototype.onTitleValidChanged_;S_.prototype.onEndChanged_=S_.prototype.onEndChanged_;S_.prototype.onStartChanged_=S_.prototype.onStartChanged_;S_.prototype.onTitleChanged_=S_.prototype.onTitleChanged_;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],S_.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",Object)],S_.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],S_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],S_.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],S_.prototype,"data",void 0);_.T([_.g({value:""}),_.N("design:type",String)],S_.prototype,"titleValue",void 0);
_.T([_.g({value:!1}),_.N("design:type",Boolean)],S_.prototype,"titleValid",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],S_.prototype,"start",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],S_.prototype,"startValid",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],S_.prototype,"end",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],S_.prototype,"endValid",void 0);_.T([_.g({value:""}),_.N("design:type",String)],S_.prototype,"videoId",void 0);
_.T([_.g({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.N("design:type",Boolean)],S_.prototype,"formValid",void 0);_.T([_.g({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.N("design:type",Object)],S_.prototype,"submitButton_",void 0);_.T([_.g({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.N("design:type",Object)],S_.prototype,"submitCommand_",void 0);
_.T([_.g({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.N("design:type",Object)],S_.prototype,"cancelButton_",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],S_.prototype,"isLoading_",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],S_.prototype,"isAdPlaying",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],S_.prototype,"returnTime",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],S_.prototype,"isAtLiveHead",void 0);
_.T([_.Le("title-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],S_.prototype,"onTitleChanged_",null);_.T([_.Le("start-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],S_.prototype,"onStartChanged_",null);_.T([_.Le("end-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],S_.prototype,"onEndChanged_",null);
_.T([_.Le("title-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],S_.prototype,"onTitleValidChanged_",null);_.T([_.Le("start-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],S_.prototype,"onStartValidChanged_",null);_.T([_.Le("end-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],S_.prototype,"onEndValidChanged_",null);
_.T([_.qR({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],S_);
_.O(S_,"yt-clip-creation-renderer",function(){if(ECx===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;W2a===void 0&&(W2a=document.createElement("template"));var b=W2a;l.call(H,b.content.cloneNode(!0),X.content.firstChild);ECx=X}X=ECx;return X},{mode:2});var zv=function(){return _.a.apply(this,arguments)||this};
_.S(zv,_.a);zv.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"}}}};
zv.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(X){return X.hasOwnProperty("clipCreationRenderer")})&&_.TP(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
zv.prototype.onPanelContentVisibleChanged=zv.prototype.onPanelContentVisibleChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],zv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Vk.YtVisibilityBehavior),_.N("design:type",Object)],zv.prototype,"ytVisibilityBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],zv.prototype,"ytdReduxBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],zv.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],zv.prototype,"panelContentVisible",void 0);_.T([_.Yh("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zv.prototype,"onPanelContentVisibleChanged",null);_.T([_.sq({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],zv);
_.O(zv,"ytd-clip-section-renderer",function(){if(nCa!==void 0)return nCa;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return nCa=X},{mode:1});var vC$;var OEY;var mcY;var QvN=function(){return _.a.apply(this,arguments)||this};
_.S(QvN,_.a);_.T([_.g(),_.N("design:type",Object)],QvN.prototype,"data",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],QvN.prototype,"ytRendererBehavior",void 0);_.T([_.sq({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],QvN);
_.O(QvN,"ytd-hashtag-grid-tile-renderer",function(){if(mcY!==void 0)return mcY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return mcY=X},{mode:1});var np=function(){return _.a.apply(this,arguments)||this};
_.S(np,_.a);np.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
np.prototype.updateRichGridTrendingHashtagsVisibility=function(){var X,H;if(((X=this.data)==null||!X.isExpanded)&&(H=this.data)!=null&&H.tiles){X=this.data.tiles.length;H=X>this.richGridItemsPerRow?this.richGridItemsPerRow+1:X;var l=Math.ceil(X/H);this.fullyVisibleRows=X%H===1&&l===2?1:Math.min(l,2);this.isShowMoreVisible=this.fullyVisibleRows<l}};
np.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
np.prototype.updateRichGridTrendingHashtagsVisibility=np.prototype.updateRichGridTrendingHashtagsVisibility;_.T([_.g(),_.N("design:type",Object)],np.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Number)],np.prototype,"fullyVisibleRows",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],np.prototype,"isShowMoreVisible",void 0);_.T([_.g({selector:_.qo,value:0}),_.N("design:type",Number)],np.prototype,"richGridItemsPerRow",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],np.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],np.prototype,"ytdReduxBehavior",void 0);_.T([_.Yh("data","richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],np.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.T([_.sq({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],np);
_.O(np,"ytd-hashtag-grid-shelf-renderer",function(){if(OEY!==void 0)return OEY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return OEY=X},{mode:1});var TKa;var NKx;var cDa=0,kJ=function(){var X=_.a.call(this)||this;X.selected=!1;X.isOverlay=!1;X.inputId="toggle-option-"+cDa;cDa++;return X};
_.S(kJ,_.a);kJ.prototype.onTap=function(){_.QX(this.hostElement,"ytd-toggle-option-clicked")};
_.T([_.g(),_.N("design:type",String)],kJ.prototype,"label",void 0);_.T([_.g(),_.N("design:type",String)],kJ.prototype,"inputId",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],kJ.prototype,"selected",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],kJ.prototype,"isOverlay",void 0);_.T([_.sq({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.N("design:paramtypes",[])],kJ);
_.O(kJ,"ytd-toggle-option-renderer",function(){if(NKx!==void 0)return NKx;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return NKx=X},{mode:1});var xJ=function(){var X=_.a.apply(this,arguments)||this;X.isToggleOption=!1;X.isOverlay=!1;return X};
_.S(xJ,_.a);xJ.prototype.onTap=function(X){X.preventDefault();this.data&&(X=!this.data.checked,this.set("data.checked",X),_.QX(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:X,value:this.data.value}))};
_.ja.Object.defineProperties(xJ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
xJ.prototype.onTap=xJ.prototype.onTap;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xJ.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xJ.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],xJ.prototype,"isToggleOption",void 0);_.T([_.g(),_.N("design:type",Object)],xJ.prototype,"isOverlay",void 0);_.T([_.x("data.responseText"),_.N("design:type",String),_.N("design:paramtypes",[])],xJ.prototype,"label",null);
_.T([_.Le("ytd-toggle-option-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],xJ.prototype,"onTap",null);_.T([_.sq({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],xJ);
_.O(xJ,"ytd-checkbox-survey-option-renderer",function(){if(TKa!==void 0)return TKa;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return TKa=X},{mode:1});var jvl;var rDp;var D0=function(){var X=_.a.apply(this,arguments)||this;X.checked=!1;X.isToggleOption=!1;return X};
_.S(D0,_.a);D0.prototype.onTap=function(){this.data&&(this.checked?_.TP(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.TP(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
D0.prototype.onTap=D0.prototype.onTap;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],D0.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],D0.prototype,"checked",void 0);_.T([_.g(),_.N("design:type",Object)],D0.prototype,"isToggleOption",void 0);_.T([_.Le("ytd-toggle-option-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],D0.prototype,"onTap",null);
_.T([_.sq({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],D0);
_.O(D0,"ytd-radio-button-survey-option-renderer",function(){if(rDp!==void 0)return rDp;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return rDp=X},{mode:1});var tX=function(){var X=_.a.apply(this,arguments)||this;X.disableAnimation=!1;X.isToggleOption=!0;X.followUpSurveyCommand=null;X.selectedRatingEndpoint=null;X.isSlimlineSurveyFollowUp=!1;X.isShortsStyle=!1;X.styleOverrideAttribute=!0;X.isDarkMode=!1;X.isSubmitted=!1;X.roundedContainer=!0;X.improveShortsResponseRate=_.P("web_improve_shorts_response_rate");X.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 X};
_.S(tX,_.a);_.R=tX.prototype;
_.R.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"}}}}};
_.R.attached=function(){var X=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(l){var b;if((b=l[0])!=null&&b.isIntersecting){_.AF().reportShown(X.hostElement);var U;(U=X.intersectionObserver)==null||U.unobserve(X.hostElement)}},{rootMargin:"0px",
threshold:.6});var H;(H=this.intersectionObserver)==null||H.observe(this.hostElement)};
_.R.onDarkModeToggledAction=function(X){this.isDarkMode=X};
_.R.dataChanged=function(){var X;if(((X=this.data)==null?void 0:X.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var H;((H=this.data)==null?void 0:H.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var l,b,U,K;this.darkColorPalette=(l=this.data)==null?void 0:(b=l.inlineContent)==null?void 0:(U=b.compactVideoRenderer)==null?void 0:(K=U.thumbnail)==null?
void 0:K.darkColorPalette;var w,d,B,q;this.lightColorPalette=(w=this.data)==null?void 0:(d=w.inlineContent)==null?void 0:(B=d.compactVideoRenderer)==null?void 0:(q=B.thumbnail)==null?void 0:q.lightColorPalette;var u,e;if(((u=this.data)==null?0:(e=u.inlineContent)==null?0:e.compactVideoRenderer)&&this.isShortsStyle){var y,V,p,z;X=_.a1((y=this.data)==null?void 0:(V=y.inlineContent)==null?void 0:(p=V.compactVideoRenderer)==null?void 0:(z=p.thumbnail)==null?void 0:z.thumbnails);_.j4(this.hostElement,
{"--yt-background-url":"url("+X+")"})}};
_.R.handleRequestCompletion=function(){this.hostElement.hidden&&_.QX(this.hostElement,"yt-dismissible-item-dismissed")};
_.R.onPopupClosed=function(X){var H;((H=X.detail)==null?void 0:H.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.TP(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.R.handleInlineSurveyRatingSelect=function(X,H){var l=this;this.selectedRatingEndpoint=X;this.followUpSurveyCommand=H;this.expanded=!!X;this.getOptionRenderers().forEach(function(b,U){l.notifyPath("followUpSurveyCommand.followUpOptions."+U+".checkboxSurveyOptionRenderer.checked");l.set("followUpSurveyCommand.followUpOptions."+U+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),X=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.TP(this.hostElement,"yt-reel-non-video-content-dismissal-command",[X]))};
_.R.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.TP(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var X,H=(X=this.data)==null?void 0:X.dismissalEndpoint;H&&this.ytComponentBehavior.resolveCommand(H)}};
_.R.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.TP(this.hostElement,"yt-close-popup-action"))};
_.R.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var X=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{X=this.getOptionRenderers().filter(function(b){return b.checked});
if(X.length===0)return;X=X.map(function(b){return b.responseEndpoint})}var H=[];
X.forEach(function(b,U){U!==0&&(b=_.f(b,_.eY))&&b.feedbackToken&&H.push(b.feedbackToken)});
if(X=X[0]){var l={};H.length>0&&(l.extra_feedback_tokens=H);this.ytComponentBehavior.resolveCommand(X,{form:l})}}};
_.R.getOptionRenderers=function(){var X=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(H){X.isSingleSelect=!!_.f(H,iB$);return X.isSingleSelect?_.f(H,iB$):_.f(H,vRa)}):[]};
_.R.handleInlineSurveyOptionSelect=function(X){X=this.optionSelector.indexOf(X);X!==-1&&this.optionSelector.selectIndex(X)};
_.R.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.R.maybeGetBackgroundColor=function(X){return this.isDarkMode?X.section2Color:X.section3Color};
_.R.colorPaletteChanged=function(){var X=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;X=X&&this.maybeGetBackgroundColor(X);this.dismissibleEl.style.backgroundColor=!X||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.BM(X)};
_.ja.Object.defineProperties(tX.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
tX.prototype.colorPaletteChanged=tX.prototype.colorPaletteChanged;tX.prototype.onPopupClosed=tX.prototype.onPopupClosed;tX.prototype.handleRequestCompletion=tX.prototype.handleRequestCompletion;tX.prototype.dataChanged=tX.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],tX.prototype,"actionHandlerBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],tX.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],tX.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.A2("#follow-up-survey-options"),_.N("design:type",Object)],tX.prototype,"optionSelector",void 0);_.T([_.g(),_.N("design:type",Object)],tX.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],tX.prototype,"disableAnimation",void 0);_.T([_.g(),_.N("design:type",Object)],tX.prototype,"isToggleOption",void 0);_.T([_.g(),_.N("design:type",Object)],tX.prototype,"followUpSurveyCommand",void 0);_.T([_.g(),_.N("design:type",Object)],tX.prototype,"selectedRatingEndpoint",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],tX.prototype,"expanded",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tX.prototype,"isSlimlineSurveyFollowUp",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tX.prototype,"isShortsStyle",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tX.prototype,"styleOverrideAttribute",void 0);_.T([_.g(),_.N("design:type",Boolean)],tX.prototype,"isSingleSelect",void 0);_.T([_.g(),_.N("design:type",Object)],tX.prototype,"isDarkMode",void 0);
_.T([_.g(),_.N("design:type",Object)],tX.prototype,"lightColorPalette",void 0);_.T([_.g(),_.N("design:type",Object)],tX.prototype,"darkColorPalette",void 0);_.T([_.x("selectedRatingEndpoint","isShortsStyle"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tX.prototype,"isOptionSelected",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tX.prototype,"roundedContainer",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],tX.prototype,"improveShortsResponseRate",void 0);_.T([_.A2("#dismissible"),_.N("design:type",HTMLElement)],tX.prototype,"dismissibleEl",void 0);_.T([_.A2("#dismiss-button yt-icon-button"),_.N("design:type",HTMLElement)],tX.prototype,"dismissButtonEl",void 0);_.T([_.A2("#inline-survey-header yt-icon-button"),_.N("design:type",HTMLElement)],tX.prototype,"inlineHeaderDismissButtonEl",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tX.prototype,"dataChanged",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tX.prototype,"handleRequestCompletion",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],tX.prototype,"onPopupClosed",null);
_.T([_.Yh("darkColorPalette","lightColorPalette","isDarkMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tX.prototype,"colorPaletteChanged",null);_.T([_.sq({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],tX);
_.O(tX,"ytd-inline-survey-renderer",function(){if(jvl!==void 0)return jvl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return jvl=X},{mode:1});var JDy;var L2l;var Wv=function(){var X=_.a.apply(this,arguments)||this;X.visibleVideos=[];X.hiddenVideos=[];X.modern=_.P("web_modern_buttons");X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(Wv,_.a);_.R=Wv.prototype;_.R.attached=function(){var X=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",X);this.onDarkModeToggledAction(X)};
_.R.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"}}}};
_.R.dataChanged=function(){var X=this;this.requestElementsPerRow();var H,l;this.currentColorPalette=this.isDarkTheme?(H=this.data)==null?void 0:H.darkColorData:(l=this.data)==null?void 0:l.lightColorData;var b;if((b=this.currentColorPalette)==null?0:b.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.N0(this,function(){X.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.R.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.R.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.R.computeIsFirstFeedItem=function(X){return X};
_.R.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&this.set("isDarkTheme",X);this.data&&(this.currentColorPalette=X?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.R.getCurrentLogo=function(X,H){if(X)return H?X.darkLogoImage:X.lightLogoImage};
_.R.computeTitleStyle=function(X){var H;if((H=this.data)!=null&&H.title&&X&&X.textPrimary!==void 0)return"color:"+_.BM(X.textPrimary)+";"};
_.R.computeSubtitleStyle=function(X){var H;if((H=this.data)!=null&&H.subtitle&&X&&X.textSecondary!==void 0)return"color:"+_.BM(X.textSecondary)+";"};
_.R.computeDismissIconStyle=function(X){if(this.data&&this.data.dismissButton&&X&&X.textPrimary!==void 0)return"--yt-button-color:"+_.BM(X.textPrimary)+";"};
_.R.computeOverflowButtonStyle=function(X){if(this.data&&this.data.overflowButton&&X&&X.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.BM(X.textPrimary)+";--yt-spec-icon-active-other:"+_.BM(X.textPrimary)+";"};
_.R.computeBackgroundStyle=function(X){if(X&&this.data){var H="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var l=_.a1((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);l&&(H+='background-image:url("'+l+'");')}X.backgroundColor!==void 0&&(H+="background-color:"+_.qw(X.backgroundColor)+";");return H}};
_.R.computeButton=function(){var X,H=Object.assign({},_.f((X=this.data)==null?void 0:X.showMoreButton,_.yB));if(this.modern&&H){H.style="STYLE_MONO_OUTLINE";var l;if(X=(l=this.currentColorPalette)==null?void 0:l.textPrimary)H.colorData={basicColorPaletteData:{foregroundTitleColor:X,borderColor:X}}}return H};
_.R.shouldShowBottomButton=function(X,H){return!(X==null?0:X.header)&&!(X==null||!X.primaryButton)&&H<3};
_.R.checkExpanded=function(X){this.isExpanded=X&&X.content?this.hiddenVideos.length===0:!0};
_.R.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.R.getLogoHeight=function(X){return this.logoWithPadding(X)?"26":"20"};
_.R.getLogoImageId=function(X){return this.logoWithPadding(X)?"logo-image-with-padding":"logo-image"};
_.R.computeHasSectionHeader=function(X){return!!X.header};
_.R.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var X;if((X=this.data.primaryButton)==null?0:X.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var H;((H=this.data.dismissButton)==null?0:H.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var l,b;((l=this.data)==null?0:(b=l.primaryButton)==null?0:b.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.R.setVisibleVideos=function(X){if(this.data&&this.data.content)if(this.data.content.length){var H=this.data.content.length;this.data.header?X?(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.slimItemsPerRow),H)):(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow),H)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(H,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow),H)):(this.visibleVideos=this.data.content.slice(0,Math.min(H,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(H,this.elementsPerRow-1),H))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.R.setHasMovieRenderer=function(){var X;if((X=this.data)!=null&&X.content){var H;this.hasMovieRenderer=!!_.f((H=this.data)==null?void 0:H.content[0],_.dUt)}else this.hasMovieRenderer=!1};
_.R.requestElementsPerRow=function(){_.QX(this.hostElement,"yt-request-elements-per-row")};
_.R.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var X=_.C(this.hiddenMediaRenderers),H=X.next();!H.done;H=X.next())H.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(X=_.mh(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&X.focus()}};
_.R.updateTitleSpec=function(){var X;(X=this.data)!=null&&X.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.R.logoWithPadding=function(X){var H,l,b;return(X=(H=this.getCurrentLogo(X,this.isDarkTheme))==null?void 0:(l=H.thumbnails)==null?void 0:(b=l[0])==null?void 0:b.height)&&X%31===0?!0:!1};
_.R.onUpdateElementsPerRowAction=function(X,H,l){X&&this.elementsPerRow!==X&&(this.elementsPerRow=X);l&&this.slimItemsPerRow!==l&&(this.slimItemsPerRow=l)};
Wv.prototype.slimItemsPerRowChanged=Wv.prototype.slimItemsPerRowChanged;Wv.prototype.elementsPerRowChanged=Wv.prototype.elementsPerRowChanged;Wv.prototype.dataChanged=Wv.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Wv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],Wv.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Wv.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Wv.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Wv.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Wv.prototype,"currentColorPalette",void 0);_.T([_.g(),_.N("design:type",Array)],Wv.prototype,"visibleVideos",void 0);_.T([_.g(),_.N("design:type",Array)],Wv.prototype,"hiddenVideos",void 0);
_.T([_.g(),_.N("design:type",Object)],Wv.prototype,"primaryButton",void 0);_.T([_.g({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],Wv.prototype,"elementsPerRow",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Wv.prototype,"isDarkTheme",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Wv.prototype,"isExpanded",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Wv.prototype,"largeTitle",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Wv.prototype,"hasMovieRenderer",void 0);_.T([_.g(),_.N("design:type",Number)],Wv.prototype,"slimItemsPerRow",void 0);_.T([_.g(),_.N("design:type",Boolean)],Wv.prototype,"showLightVideoMetadata",void 0);_.T([_.g(),_.N("design:type",Boolean)],Wv.prototype,"showDarkVideoMetadata",void 0);_.T([_.g(),_.N("design:type",Number)],Wv.prototype,"videoMetadataColor",void 0);
_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],Wv.prototype,"miniMode",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.N("design:type",Boolean)],Wv.prototype,"isFirstFeedItem",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.N("design:type",Boolean)],Wv.prototype,"hasSectionHeader",void 0);
_.T([_.g({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Wv.prototype,"roundedContainer",void 0);_.T([_.Xh("#visible-video-container ytd-rich-grid-media"),_.N("design:type",Array)],Wv.prototype,"visibleMediaRenderers",void 0);_.T([_.Xh("#hidden-video-container ytd-rich-grid-media"),_.N("design:type",Array)],Wv.prototype,"hiddenMediaRenderers",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Wv.prototype,"modern",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wv.prototype,"dataChanged",null);_.T([_.Yh("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wv.prototype,"elementsPerRowChanged",null);_.T([_.Yh("slimItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wv.prototype,"slimItemsPerRowChanged",null);
_.T([_.sq({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Wv);
_.O(Wv,"ytd-brand-video-shelf-renderer",function(){if(L2l!==void 0)return L2l;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return L2l=X},{mode:1});var Yge;var ES=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(ES,_.a);_.R=ES.prototype;_.R.attached=function(){var X=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",X);this.onDarkModeToggledAction(X)};
_.R.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"}}}};
_.R.dataChanged=function(){this.requestElementsPerRow();var X,H;this.currentColorPalette=this.isDarkTheme?(X=this.data)==null?void 0:X.darkColorData:(H=this.data)==null?void 0:H.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.R.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.R.computeIsFirstFeedItem=function(X){return X};
_.R.onDarkModeToggledAction=function(X){X!==this.isDarkTheme&&this.set("isDarkTheme",X);this.data&&(this.currentColorPalette=X?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(X),this.updateButtonPalette())};
_.R.shouldShowThumbnailInMetadata=function(X){return X<=1};
_.R.computeVideoMetadataColor=function(){if(this.data){var X;if((X=this.currentColorPalette)==null?0:X.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.R.computeTitleStyle=function(X){var H;if((H=this.data)!=null&&H.title&&X&&X.textPrimary!==void 0)return"color:"+_.BM(X.textPrimary)+";"};
_.R.computeSubtitleStyle=function(X){var H;if((H=this.data)!=null&&H.subtitle&&X&&X.textSecondary!==void 0)return"color:"+_.BM(X.textSecondary)+";"};
_.R.computeOverflowButtonStyle=function(X){if(this.data&&this.data.overflowButton&&X.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.BM(X.textPrimary)+";--yt-spec-icon-active-other:"+_.BM(X.textPrimary)+";"};
_.R.computeBackgroundStyle=function(X){if(X&&this.data){var H="";X.backgroundColor!==void 0&&(H+="background-color:"+_.qw(X.backgroundColor)+";");return H}};
_.R.computeHasOverflowButton=function(X){return!!X.overflowButton};
_.R.updateButtonPalette=function(){if(this.data){var X;if((X=this.data.primaryButton)==null?0:X.buttonRenderer){var H;if((H=this.currentColorPalette)==null?0:H.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var l;((l=this.currentColorPalette)==null?0:l.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)})}}};
_.R.requestElementsPerRow=function(){_.QX(this.hostElement,"yt-request-elements-per-row")};
_.R.updateTitleSpec=function(){var X;(X=this.data)!=null&&X.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")};
_.R.onUpdateElementsPerRowAction=function(X){X&&this.elementsPerRow!==X&&(this.elementsPerRow=X)};
ES.prototype.elementsPerRowChanged=ES.prototype.elementsPerRowChanged;ES.prototype.dataChanged=ES.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],ES.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],ES.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],ES.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ES.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],ES.prototype,"currentColorPalette",void 0);_.T([_.g(),_.N("design:type",Object)],ES.prototype,"primaryButton",void 0);
_.T([_.g({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],ES.prototype,"elementsPerRow",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ES.prototype,"isDarkTheme",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],ES.prototype,"titleSize",void 0);_.T([_.g(),_.N("design:type",Number)],ES.prototype,"videoMetadataColor",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],ES.prototype,"miniMode",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.N("design:type",Boolean)],ES.prototype,"isFirstFeedItem",void 0);_.T([_.g({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],ES.prototype,"roundedContainer",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.N("design:type",Boolean)],ES.prototype,"hasOverflowButton",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ES.prototype,"dataChanged",null);_.T([_.Yh("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ES.prototype,"elementsPerRowChanged",null);_.T([_.sq({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],ES);
_.O(ES,"ytd-brand-video-singleton-renderer",function(){if(Yge!==void 0)return Yge;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Yge=X},{mode:2});var ITd;var ADC=_.Z(function(X){var H=X.data;return _.F(_.Dp,{data:function(){return H().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(H().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var l=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":l=88;break a;default:l=88}return l},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return H().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Zh"),Hax=_.Z(function(X){var H=X.metadataRow;
var l=X.delimiter;return _.F(_.P$,{each:function(){return H().textParts||[]},
keyBy:"INDEX"},function(b,U){return _.F(_.Xi,null,_.F(_.Sj,{text:b,noWrap:!0,userInput:!0}),_.F(X7$,{delimiter:l,max:function(){return H().textParts.length},
index:U}))})},"$h"),X7$=_.Z(function(X){var H=X.delimiter;
var l=X.max;var b=X.index;return _.F(_.M,{cond:function(){return(H==null?void 0:H())&&l()-1>b()},
then:function(){return _.F("span",null,H)}})},"ai"),la$=_.Z(function(X){var H=X.data;
X={};return _.F("yt-profile-page-header-information-view-model",{class:_.Qr("profilePageHeaderInformationViewModelHost",(X.profilePageHeaderInformationViewModelMobile=!1,X))},_.F(_.M,{cond:function(){return H().onTap},
then:function(){return _.F(_.ZE,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.sl(H().onTap)}},_.F(_.l4,{data:function(){return H().thumbnail}},{profilePageHeaderThumbnailViewModel:ADC}))},
else:function(){return _.F("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.F(_.l4,{data:function(){return H().thumbnail}},{profilePageHeaderThumbnailViewModel:ADC}))}}),_.F("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.F(_.M,{cond:function(){return H().onTap},
then:function(){return _.F(_.l4,{data:function(){return H().title}},{profilePageHeaderTitleViewModel:function(l){var b=l.data;
return _.F(_.ZE,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.sl(b().onTap)}},_.F(_.Sj,{text:function(){return b().title}}))}})},
else:function(){return _.F(_.l4,{data:function(){return H().title}},{profilePageHeaderTitleViewModel:function(l){var b=l.data;
return _.F(_.Sj,{text:function(){return b().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.F(_.l4,{data:function(){return H().metadata}},{profilePageHeaderMetadataViewModel:function(l){var b=l.data;
return _.F(_.M,{cond:function(){return b().metadataRows},
then:function(U){return _.F("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.F(_.P$,{each:U,keyBy:"INDEX"},function(K,w){return _.F(_.Xi,null,_.F(Hax,{metadataRow:K,delimiter:" \u2022 "}),_.F(X7$,{delimiter:" \u2022 ",max:function(){return U().length},
index:w}))}))}})}})))},"bi");
la$.idomCompat=!0;_.gC(la$,"yt-profile-page-header-information-view-model",{props:{data:_.zh}});var gp=function(){return _.a.apply(this,arguments)||this};
_.S(gp,_.a);gp.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],gp.prototype,"data",void 0);_.T([_.sq({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],gp);
_.O(gp,"ytd-effect-pivot-header-view-model",function(){if(ITd!==void 0)return ITd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return ITd=
X},{mode:1});var oad;var Gv=function(){return _.a.apply(this,arguments)||this};
_.S(Gv,_.a);Gv.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Gv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Gv.prototype,"data",void 0);_.T([_.sq({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Gv);
_.O(Gv,"ytd-source-pivot-header-renderer",function(){if(oad!==void 0)return oad;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return oad=X},{mode:1});var ba$;var UBZ;var $BN;var az=function(){var X=_.a.apply(this,arguments)||this;X.playing=!1;X.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Ly(X);X.active=!1;return X};
_.S(az,_.a);_.R=az.prototype;_.R.detached=function(){this.stop()};
_.R.play=function(){var X=this,H,l,b,U,K;return _.h(function(w){if(w.nextAddress==1)return X.active=!0,H=X.get("data.inlinePlaybackEndpoint.watchEndpoint"),l=H.videoId||X.data.videoId,b=H.startTimeSeconds||0,U=H.playerParams||null,_.P("kevlar_player_update_killswitch")?w.yield(X.playerEl.update({args:{video_id:l,startSeconds:b,player_params:U}}),2):(X.playerEl.loadVideoWithPlayerVars({video_id:l,startSeconds:b,player_params:U,autoplay:!0}),w.jumpTo(2));if(w.nextAddress!=4)return w.yield(X.playerEl.getPlayerPromise(),
4);K=w.yieldResult;K.unloadModule("annotations_module");K.addEventListener("onStateChange",function(d){X.onPlayerStateChange(d)});
_.m5(w)})};
_.R.onPlayerStateChange=function(X){if(this.active)switch(this.playing=X===1,X){case 1:_.QX(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.QX(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.R.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.R.resize=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return l.yield(X.playerEl.getPlayerPromise(),2);H=l.yieldResult;H.setSize(NaN,NaN);_.m5(l)})};
_.T([_.g(),_.N("design:type",Object)],az.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],az.prototype,"playing",void 0);_.T([_.g(),_.N("design:type",Object)],az.prototype,"playerId",void 0);_.T([_.A2("#player"),_.N("design:type",Object)],az.prototype,"playerEl",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],az);
_.O(az,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if($BN!==void 0)return $BN;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return $BN=X},{mode:1});var KMa;var RQy;var Z0=function(){var X=_.a.apply(this,arguments)||this;X.width=0;return X};
_.S(Z0,_.a);_.R=Z0.prototype;_.R.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.J2(this,this.onEnded));this.mp4El.addEventListener("error",_.J2(this,this.onError))};
_.R.detached=function(){this.videoEl.removeEventListener("ended",_.J2(this,this.onEnded));this.mp4El.removeEventListener("error",_.J2(this,this.onError))};
_.R.play=function(){var X=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var H=this.videoEl.play();H?H.then(function(){X.handleVideoStartPlaying()}).catch(function(){_.QX(X.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.QX(this.hostElement,"yt-video-thumbnail-not-playing")};
_.R.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.R.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.R.dataChanged=function(){var X;if((X=this.data)==null?0:X.thumbnailPlaceholder)X=_.G0(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+X+")";this.stop();this.autoplay&&this.play()};
_.R.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.R.onEnded=function(){this.stop();_.QX(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.R.onError=function(){_.QX(this.hostElement,"yt-video-thumbnail-error")};
_.R.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.R.getVideoThumbnail=function(X){if(X&&X.length)return X[0]};
Z0.prototype.dataChanged=Z0.prototype.dataChanged;_.T([_.g(),_.N("design:type",Object)],Z0.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z0.prototype,"animatePlaceholderOnEntrance",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z0.prototype,"autoplay",void 0);_.T([_.g({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.N("design:type",Object)],Z0.prototype,"videoThumbnail",void 0);
_.T([_.g(),_.N("design:type",Boolean)],Z0.prototype,"loop",void 0);_.T([_.g(),_.N("design:type",Boolean)],Z0.prototype,"isVideoPlaying",void 0);_.T([_.g(),_.N("design:type",Object)],Z0.prototype,"width",void 0);_.T([_.A2("#mp4"),_.N("design:type",HTMLElement)],Z0.prototype,"mp4El",void 0);_.T([_.A2("#placeholder"),_.N("design:type",HTMLElement)],Z0.prototype,"placeholderEl",void 0);_.T([_.A2("#video"),_.N("design:type",HTMLVideoElement)],Z0.prototype,"videoEl",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z0.prototype,"dataChanged",null);_.T([_.qR({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Z0);
_.O(Z0,"yt-video-as-thumbnail-details",function(){if(RQy===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;KMa===void 0&&(KMa=document.createElement("template"));var b=KMa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);RQy=X}X=RQy;return X},{mode:2});var ih=function(){var X=_.a.apply(this,arguments)||this;X.disableGridStateAware=!1;X.animationEnabled=_.P("enable_web_ketchup_hero_animation");X.transitioningOut=!1;X.narrow=!1;X.narrower=!1;X.isCarouselInFeed=!1;X.videoTimeoutJobId=0;X.panelTimeoutJobId=0;X.panelTimeoutJobStartMs=0;X.actionMap={"yt-window-resized":"onWindowResized"};return X};
_.S(ih,_.a);_.R=ih.prototype;_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.R.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var X;this.player&&((X=this.data)==null?0:X.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.R.attached=function(){this.onWindowResized()};
_.R.detached=function(){this.clearTimeouts()};
_.R.onWindowResized=function(){this.updateSize()};
_.R.computePanelLayout=function(X){return X&&X.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.R.playVideo=function(){var X;this.video&&((X=this.data)==null?0:X.videoThumbnail)&&this.video.play();var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.play()};
_.R.stopVideo=function(){var X;this.video&&((X=this.data)==null?0:X.videoThumbnail)&&this.video.stop();var H;this.player&&((H=this.data)==null?0:H.inlinePlaybackRenderer)&&this.player.stop()};
_.R.transitionOut=function(){var X=this;this.transitioningOut=!0;return new Promise(function(H){X.player&&(X.player.playing=!1);var l=_.mh(X.hostElement).querySelector("#action-button");if(l){var b=function(){l.removeEventListener("animationend",b);_.Ss.cancelJob(U);H();X.transitioningOut=!1};
var U=_.eh(_.Ss,b,1E3);l.addEventListener("animationend",b)}else H(),X.transitioningOut=!1})};
_.R.computeMetadataOrder=function(X){return X&&X.metadataOrder&&X.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?X.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.R.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.R.computeAvatarSize=function(X){return X&&X.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.R.onContentClick=function(X){if(!_.WS(_.t2(X),this.hostElement,["A".toString(),"BUTTON".toString()])){var H;if((H=this.data)==null?0:H.navigationEndpoint){var l;this.componentBehavior.resolveCommand((l=this.data)==null?void 0:l.navigationEndpoint)}}};
_.R.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.R.setBackgroundImage=function(X){if(X=this.getBackgroundImageUrl(X))_.mh(this.hostElement).querySelector("#hero").style.backgroundImage="url("+X+")"};
_.R.setScrimLayer=function(X){var H=this.getScrimLayerColorStops(X);X=((X==null?void 0:X.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(X=180);_.gx("HTML_DIR")==="rtl"&&(X=-X);H&&(_.mh(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+X+"deg, "+H+")")};
_.R.isNarrower=function(){return this.hostElement.clientWidth<ih.NARROW_VERSION_SIZE};
_.R.getScrimLayerColorStops=function(){var X,H=(X=this.data)==null?void 0:X.scrimColorValues;if(!H)return null;if(H.length===1)return X=_.qw(H[0]),X+" 0%, "+X+" 100%";if(H.length===3){var l=[0,72,98];return H.map(function(b,U){return _.qw(b)+" "+l[U]+"%"}).join(",")}return null};
_.R.getBackgroundImageUrl=function(X){return X&&X.largeFormFactorBackgroundThumbnail?_.G0((X.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||X.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.R.onPlaying=function(){this.startVideoTimeout()};
_.R.onEnded=function(){this.rotate()};
_.R.startPanelTimeout=function(){var X=this;if(!this.panelTimeoutJobId){var H=this.get("data.minPanelDisplayDurationMs");H&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.eh(_.Ss,function(){X.rotate()},H))}};
_.R.startVideoTimeout=function(){var X=this;if(!this.videoTimeoutJobId){_.Ss.cancelJob(this.panelTimeoutJobId);var H=Date.now()-this.panelTimeoutJobStartMs;H=Math.max(0,this.get("data.minPanelDisplayDurationMs")-H);H=Math.max(this.get("data.minVideoPlayDurationMs")||0,H);this.videoTimeoutJobId=_.eh(_.Ss,function(){X.rotate()},H)}};
_.R.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Ss.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Ss.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.R.rotate=function(){this.clearTimeouts();_.QX(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.ja.Object.defineProperties(ih.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.mh(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.mh(this.hostElement).querySelector("#video")}}});
_.ja.Object.defineProperties(ih,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
ih.prototype.onEnded=ih.prototype.onEnded;ih.prototype.onPlaying=ih.prototype.onPlaying;ih.prototype.dataChanged=ih.prototype.dataChanged;_.T([_.k(_.yx),_.N("design:type",Object)],ih.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],ih.prototype,"componentBehavior",void 0);_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],ih.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.k(_.TYN),_.N("design:type",Object)],ih.prototype,"ytBooleanLogicBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],ih.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ih.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ih.prototype,"disableGridStateAware",void 0);_.T([_.g(),_.N("design:type",Object)],ih.prototype,"data",void 0);_.T([_.g({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.N("design:type",String)],ih.prototype,"panelLayout",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ih.prototype,"animationEnabled",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ih.prototype,"transitioningOut",void 0);
_.T([_.g({computed:"computeMetadataOrder(data)"}),_.N("design:type",Boolean)],ih.prototype,"metadataOrder",void 0);_.T([_.g({computed:"computeByline(data)"}),_.N("design:type",Object)],ih.prototype,"byline",void 0);_.T([_.g({computed:"computeAvatarSize(data)"}),_.N("design:type",Number)],ih.prototype,"avatarSize",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ih.prototype,"narrow",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ih.prototype,"narrower",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ih.prototype,"layoutStyle",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ih.prototype,"isCarouselInFeed",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ih.prototype,"dataChanged",null);_.T([_.Le("yt-default-promo-panel-renderer-playing"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ih.prototype,"onPlaying",null);
_.T([_.Le("yt-default-promo-panel-renderer-ended"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ih.prototype,"onEnded",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],ih);
_.O(ih,"ytd-default-promo-panel-renderer",function(){if(UBZ!==void 0)return UBZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return UBZ=X},{mode:1});_.wd("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var vv=function(){var X=_.a.apply(this,arguments)||this;X.narrower=!1;X.dotMenuVisible=!1;X.paginationThumbnailsVisible=!1;X.active=!0;X.disableGridStateAware=!1;X.actionMap={"yt-window-resized":"onWindowResized"};return X};
_.S(vv,_.a);_.R=vv.prototype;_.R.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]]"}}}}}};
_.R.attached=function(){document.addEventListener("yt-page-type-changed",_.J2(this,this.onPageTypeChange));this.currentPageSubtype=_.Iwb(location.pathname);this.onWindowResized()};
_.R.detached=function(){this.jobId&&_.Ss.cancelJob(this.jobId);this.updateSizeJobId&&_.Ss.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.J2(this,this.onPageTypeChange))};
_.R.onPageTypeChange=function(X){this.active=X.detail.newPageSubtype===this.currentPageSubtype};
_.R.onWindowResized=function(){this.updateSize()};
_.R.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.R.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.R.setCarouselItem=function(X){X>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Ss.cancelJob(this.jobId);var H=this.getCurrentPanelElement();H&&H.stopVideo();this.currentItemIndex=X%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(H||(H=this.getCurrentPanelElement()),H.playVideo()):this.startRotationJob()};
_.R.scrollThumbnails=function(X){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var H=this.getCurrentPaginationElement();if(H){var l=_.mh(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?l.style.transform="translateX(0)":(H=H.offsetWidth+8,l.style.transform="translateX(-"+H*(X-Math.ceil(Math.floor(this.overlay.offsetWidth/H)/2)+1)+"px)")}}};
_.R.onDataChanged=function(){var X=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.oJ(_.Ss,function(){var H;(H=X.getCurrentPanelElement())==null||H.updateSize();X.updateSize()}))};
_.R.getCurrentPanelElement=function(){return _.mh(_.mh(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.R.getCurrentPaginationElement=function(){return _.mh(_.mh(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.R.getNavigationClass=function(X,H){return X===H?"selected":""};
_.R.getNavigationDurationStyle=function(X){return"animation-duration:"+(this.get("data.carouselItems."+X+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.R.onNavigationTap=function(X){var H=this,l=X.model.index;l!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){H.setCarouselItem(l)}),this.autorotateActive=!1)};
_.R.onVideoThumbnailEnded=function(){var X=this;if(this.shouldRotate()){var H=this.getCurrentPaginationElement();H&&(H.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){H.classList.remove("finished");X.setNextCarouselItem()}))}};
_.R.onVideoThumbnailError=function(){this.startRotationJob()};
_.R.onVideoNotPlaying=function(){this.startRotationJob()};
_.R.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.R.startRotationJob=function(){var X=this;_.Ss.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Ss.addLowPriorityJob(function(){X.getCurrentPanelElement().transitionOut().then(function(){X.setNextCarouselItem()})},this.rotationTimeout))};
_.R.computeDotMenuVisible=function(X,H){return!!X&&!!X.carouselItems&&X.carouselItems.length>1&&!X.paginationThumbnails||!!H};
_.R.computePaginationThumbnailsVisible=function(X,H){var l,b;return((b=X==null?void 0:(l=X.paginationThumbnails)==null?void 0:l.length)!=null?b:0)>1&&!H};
_.R.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.R.computePaginatorAlignment=function(X){return(X==null?void 0:X.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.R.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.R.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.R.isNarrower=function(X){return(X!=null?X:0)<ih.NARROW_VERSION_SIZE};
vv.prototype.activeChanged=vv.prototype.activeChanged;vv.prototype.onVideoNotPlaying=vv.prototype.onVideoNotPlaying;vv.prototype.onVideoThumbnailError=vv.prototype.onVideoThumbnailError;vv.prototype.onVideoThumbnailEnded=vv.prototype.onVideoThumbnailEnded;vv.prototype.onDataChanged=vv.prototype.onDataChanged;_.T([_.k(_.yx),_.N("design:type",Object)],vv.prototype,"ytdGridStateAwareBehavior",void 0);
_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],vv.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],vv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],vv.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],vv.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],vv.prototype,"currentItem",void 0);
_.T([_.g(),_.N("design:type",Number)],vv.prototype,"currentItemIndex",void 0);_.T([_.g(),_.N("design:type",Number)],vv.prototype,"rotationTimeout",void 0);_.T([_.g(),_.N("design:type",Number)],vv.prototype,"loopCount",void 0);_.T([_.g({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.N("design:type",String)],vv.prototype,"paginatorAlignment",void 0);_.T([_.g(),_.N("design:type",Number)],vv.prototype,"jobId",void 0);
_.T([_.g(),_.N("design:type",Number)],vv.prototype,"updateSizeJobId",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],vv.prototype,"isCarouselInFeed",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vv.prototype,"narrower",void 0);_.T([_.g({computed:"computeDotMenuVisible(data, narrower)"}),_.N("design:type",Object)],vv.prototype,"dotMenuVisible",void 0);
_.T([_.g({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.N("design:type",Object)],vv.prototype,"paginationThumbnailsVisible",void 0);_.T([_.g({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.N("design:type",String)],vv.prototype,"layoutType",void 0);_.T([_.g({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],vv.prototype,"autorotateActive",void 0);_.T([_.g(),_.N("design:type",Object)],vv.prototype,"active",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vv.prototype,"disableGridStateAware",void 0);_.T([_.A2("#overlay"),_.N("design:type",HTMLElement)],vv.prototype,"overlay",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vv.prototype,"onDataChanged",null);
_.T([_.Le("yt-video-thumbnail-ended"),_.Le("yt-default-promo-panel-renderer-rotate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vv.prototype,"onVideoThumbnailEnded",null);_.T([_.Le("yt-video-thumbnail-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vv.prototype,"onVideoThumbnailError",null);
_.T([_.Le("yt-video-thumbnail-not-playing"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vv.prototype,"onVideoNotPlaying",null);_.T([_.oi("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vv.prototype,"activeChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],vv);
_.O(vv,"ytd-carousel-item-renderer",function(){if(ba$!==void 0)return ba$;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return ba$=X},{mode:2});var CPa;var w7Y;var dB5;var hQx;var OS=function(){var X=_.a.apply(this,arguments)||this;X.answerExpanded=!1;return X};
_.S(OS,_.a);OS.prototype.toggleAnswer_=function(X){var H=_.WM(X);H&&H.classList.contains("yt-simple-endpoint")||(X.preventDefault(),X.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
OS.prototype.toggleAnswer_=OS.prototype.toggleAnswer_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],OS.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],OS.prototype,"answerExpanded",void 0);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],OS.prototype,"toggleAnswer_",null);
_.T([_.qR({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],OS);
_.O(OS,"yt-generic-faq-question-renderer",function(){if(hQx===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;dB5===void 0&&(dB5=document.createElement("template"));var b=dB5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);hQx=X}X=hQx;return X},{mode:2});_.wd("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var mt=function(){return _.a.apply(this,arguments)||this};
_.S(mt,_.a);mt.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],mt.prototype,"data",void 0);_.T([_.qR({is:"yt-faq-section-renderer",disableElementRegistration:!0})],mt);
_.O(mt,"yt-faq-section-renderer",function(){if(w7Y===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;CPa===void 0&&(CPa=document.createElement("template"));var b=CPa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);w7Y=X}X=w7Y;return X},{mode:2});_.gC(_.aCe,"yt-card-view-model",{props:{data:_.zh,className:_.zh,isSelected:_.zh}});var FMa;var BlA;var qMl=function(){return _.a.apply(this,arguments)||this};
_.S(qMl,_.a);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],qMl.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],qMl.prototype,"data",void 0);_.T([_.sq({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],qMl);
_.O(qMl,"ytd-channel-history-renderer",function(){if(BlA!==void 0)return BlA;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return BlA=X},{mode:1});var s8Y;var MpC=function(){return _.a.apply(this,arguments)||this};
_.S(MpC,_.a);_.T([_.g(),_.N("design:type",Object)],MpC.prototype,"data",void 0);_.T([_.sq({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],MpC);
_.O(MpC,"ytd-feature-enablement-info-renderer",function(){if(s8Y!==void 0)return s8Y;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return s8Y=X},{mode:1});var udp;var eQe;var QV=function(){var X=_.a.apply(this,arguments)||this;X.textBoxMaxLength=_.P("enable_tvod_campaign_code_integration")?15:12;return X};
_.S(QV,_.a);_.R=QV.prototype;_.R.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.R.onSubmit=function(){var X=this.data.serviceEndpoint,H=_.f(X,_.W6);H&&X&&(H.couponCode=this.userInput,_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}}))};
_.R.validate=function(){var X=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=X&&!this.data.errorMessage;this.showErrorMessage=X&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.P("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.R.computeStyle=function(X){return X};
_.R.computeShowValidationBelowInput=function(X){return X!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.R.updateUserInputFromBinding=function(X){this.userInput=X.currentTarget.value};
_.R.updateShowErrorMessageFromBinding=function(X){this.showErrorMessage=X.detail.value};
_.ja.Object.defineProperties(QV.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
QV.prototype.dataChanged=QV.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],QV.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],QV.prototype,"userInput",void 0);_.T([_.g(),_.N("design:type",Boolean)],QV.prototype,"disableApplyButton",void 0);_.T([_.g(),_.N("design:type",Boolean)],QV.prototype,"hideApplyButton",void 0);
_.T([_.g(),_.N("design:type",Boolean)],QV.prototype,"hideErrorMessage",void 0);_.T([_.g(),_.N("design:type",Boolean)],QV.prototype,"showTick",void 0);_.T([_.g(),_.N("design:type",Boolean)],QV.prototype,"showErrorMessage",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],QV.prototype,"couponStyle",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.N("design:type",Boolean)],QV.prototype,"showValidationBelowInput",void 0);_.T([_.g(),_.N("design:type",Object)],QV.prototype,"textBoxMaxLength",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QV.prototype,"dataChanged",null);
_.T([_.x("showTick","showErrorMessage","userInput"),_.N("design:type",String),_.N("design:paramtypes",[])],QV.prototype,"validationState",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],QV);
_.O(QV,"ytd-ypc-coupon-renderer",function(){if(eQe!==void 0)return eQe;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return eQe=X},{mode:1});var Tv=function(){return _.a.apply(this,arguments)||this};
_.S(Tv,_.a);Tv.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"}}}};
Tv.prototype.computeStyle=function(X){return X};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Tv.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],Tv.prototype,"buttonStyle",void 0);_.T([_.sq({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Tv);
_.O(Tv,"ytd-flow-bottom-bar-renderer",function(){if(udp!==void 0)return udp;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return udp=X},{mode:1});var yUZ;var VpC;var NE=function(){return _.a.apply(this,arguments)||this};
_.S(NE,_.a);NE.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
NE.prototype.focus=function(X){this.title&&_.mQ(this.title,X)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],NE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],NE.prototype,"data",void 0);_.T([_.A2("#title"),_.N("design:type",HTMLElement)],NE.prototype,"title",void 0);_.T([_.sq({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],NE);
_.O(NE,"ytd-flow-top-bar-renderer",function(){if(VpC!==void 0)return VpC;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return VpC=X},{mode:1});var PPA;var faN;var p7U;var cv=function(){return _.a.apply(this,arguments)||this};
_.S(cv,_.a);cv.prototype.freeTextValueChanged=function(){_.TP(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
cv.prototype.updateFreeTextValueFromBinding=function(X){this.freeTextValue=X.detail.value};
_.ja.Object.defineProperties(cv.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(H=(X=this.data)==null?void 0:X.responseMaxLength)!=null?H:500,b;return((b=this.freeTextValue)!=null?b:"").length>=l?"maxed-out":""}}});
cv.prototype.freeTextValueChanged=cv.prototype.freeTextValueChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],cv.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],cv.prototype,"freeTextValue",void 0);_.T([_.A2("#user-input"),_.N("design:type",HTMLTextAreaElement)],cv.prototype,"input",void 0);
_.T([_.x("freeTextValue"),_.N("design:type",Object),_.N("design:paramtypes",[])],cv.prototype,"characterLimitClass",null);_.T([_.Yh("freeTextValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cv.prototype,"freeTextValueChanged",null);_.T([_.qR({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],cv);
_.O(cv,"yt-free-text-input-flow-step-renderer",function(){if(p7U===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;faN===void 0&&(faN=document.createElement("template"));var b=faN;l.call(H,b.content.cloneNode(!0),X.content.firstChild);p7U=X}X=p7U;return X},{mode:2});var j_=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return X};
_.S(j_,_.a);j_.prototype.handleFreeTextFlowStepInputChanged=function(X){_.TP(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:X}}])};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],j_.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],j_.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],j_.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],j_);
_.O(j_,"ytd-free-text-input-flow-step-renderer",function(){if(PPA!==void 0)return PPA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return PPA=X},{mode:1});var SM$;var zQ$;var nae;var ksZ=function(){return _.a.apply(this,arguments)||this};
_.S(ksZ,_.a);_.T([_.g(),_.N("design:type",Object)],ksZ.prototype,"data",void 0);_.T([_.qR({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],ksZ);
_.O(ksZ,"yt-survey-answer-card-renderer",function(){if(nae===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;zQ$===void 0&&(zQ$=document.createElement("template"));var b=zQ$;l.call(H,b.content.cloneNode(!0),X.content.firstChild);nae=X}X=nae;return X},{mode:2});var xB5;var DBZ;var rp=function(){return _.a.apply(this,arguments)||this};
_.S(rp,_.a);_.R=rp.prototype;_.R.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.R.selectedItemChanged=function(X){_.TP(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[X.feedbackToken||""]}])};
_.R.surveyAnswerCardRendererClicked=function(X){if(X.target&&_.f(X.model.item,YYY)){var H=X.target;X=_.f(X.model.item,YYY);X.onTapCommand?_.j7(H,[X.onTapCommand],H):this.data.onTapCommand&&_.j7(H,[this.data.onTapCommand],H);this.selectedItemChanged(X)}};
_.R.checkIsCancellationStyle=function(X){return X==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.R.updateSelectedItemFromBinding=function(X){this.selectedItem=X.detail.value};
rp.prototype.onSelectedItemChanged=rp.prototype.onSelectedItemChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],rp.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],rp.prototype,"selectedItem",void 0);_.T([_.g({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.N("design:type",Boolean)],rp.prototype,"isCancellationStyle",void 0);
_.T([_.Yh("selectedItem"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rp.prototype,"onSelectedItemChanged",null);_.T([_.qR({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],rp);
_.O(rp,"yt-survey-flow-step-renderer",function(){if(DBZ===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;xB5===void 0&&(xB5=document.createElement("template"));var b=xB5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);DBZ=X}X=DBZ;return X},{mode:2});var JX=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return X};
_.S(JX,_.a);JX.prototype.handleSurveyFlowStepOptionChanged=function(X){this.ytdReduxBehavior.dispatch(_.Of({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:X}));_.TP(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:X}}])};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],JX.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],JX.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],JX.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],JX);
_.O(JX,"ytd-survey-flow-step-renderer",function(){if(SM$!==void 0)return SM$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return SM$=X},{mode:1});var tpZ;var WMp;var Ead=function(){return _.a.apply(this,arguments)||this};
_.S(Ead,_.a);_.T([_.g(),_.N("design:type",Object)],Ead.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Ead);
_.O(Ead,"ytd-metadata-line-renderer",function(){if(WMp!==void 0)return WMp;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return WMp=X},{mode:1});var Lp=function(){return _.a.apply(this,arguments)||this};
_.S(Lp,_.a);Lp.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Lp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Lp.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Lp.prototype,"isMasthead",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Lp);
_.O(Lp,"ytd-media-product-renderer",function(){if(tpZ!==void 0)return tpZ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return tpZ=X},{mode:1});var gaU;var YJ=function(){return _.a.apply(this,arguments)||this};
_.S(YJ,_.a);YJ.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
YJ.prototype.onBillboardImageLoaded=function(){_.QX(this.hostElement,"yt-refit")};
YJ.prototype.onBillboardImageLoaded=YJ.prototype.onBillboardImageLoaded;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],YJ.prototype,"data",void 0);_.T([_.A2("#billboardImage"),_.N("design:type",Object)],YJ.prototype,"billboardImage",void 0);_.T([_.Le("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YJ.prototype,"onBillboardImageLoaded",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],YJ);
_.O(YJ,"ytd-billboard-masthead-renderer",function(){if(gaU!==void 0)return gaU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return gaU=X},{mode:1});var Gsy;var Iz=function(){var X=_.a.apply(this,arguments)||this;X.smallSize=!1;return X};
_.S(Iz,_.a);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Iz.prototype,"ytComponentBehaviorType",void 0);_.T([_.g(),_.N("design:type",Object)],Iz.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Iz.prototype,"smallSize",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],Iz);
_.O(Iz,"ytd-bullet-formatted-string",function(){if(Gsy!==void 0)return Gsy;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Gsy=X},{mode:1});var aax;var AX=function(){return _.a.apply(this,arguments)||this};
_.S(AX,_.a);AX.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],AX.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],AX);
_.O(AX,"ytd-offer-detail-renderer",function(){if(aax!==void 0)return aax;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return aax=X},{mode:1});var ZaY;var X_=function(){return _.a.apply(this,arguments)||this};
_.S(X_,_.a);X_.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],X_.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],X_);
_.O(X_,"ytd-offer-detail-step-renderer",function(){if(ZaY!==void 0)return ZaY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ZaY=X},{mode:1});var iaY;var Hy=function(){var X=_.a.apply(this,arguments)||this;X.isInOfferModule=!1;return X};
_.S(Hy,_.a);_.R=Hy.prototype;_.R.computeHasEndpoint=function(){var X;return!((X=this.data)==null||!X.onClickCommand)};
_.R.dataChanged=function(){var X;if((X=this.data)==null?0:X.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")};
_.R.detached=function(){var X;if((X=this.data)==null?0:X.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.R.handleClickEvent=function(){var X;if((X=this.data)==null?0:X.onClickCommand){var H;this.componentBehavior.resolveCommand((H=this.data)==null?void 0:H.onClickCommand)}};
_.R.onContentKeyDown=function(X){X.key==="Enter"?this.handleClickEvent(X):X.key===" "&&X.preventDefault()};
_.R.onContentKeyUp=function(X){X.key===" "&&this.handleClickEvent(X)};
Hy.prototype.dataChanged=Hy.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Hy.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Hy.prototype,"data",void 0);_.T([_.g({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Hy.prototype,"hasEndpoint",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Hy.prototype,"isInOfferModule",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hy.prototype,"dataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Hy);
_.O(Hy,"ytd-channel-masthead-renderer",function(){if(iaY!==void 0)return iaY;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return iaY=X},{mode:1});var vaU;var l3=function(){var X=_.a.apply(this,arguments)||this;X.thumbnailObjectFit="CONTAIN";X.thumbnailObjectPosition="LEFT";X.isExpanded=!1;return X};
_.S(l3,_.a);_.R=l3.prototype;_.R.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.R.dataChanged=function(){this.resetStates()};
_.R.computeisTapOnOfferInfoContainerEnabled=function(){var X;return((X=this.data)==null?void 0:X.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.R.onExpandBtnClick=function(){var X,H=_.f((X=this.data)==null?void 0:X.showMoreButtonRenderer,A_Y);H&&_.Y8(_.lv(),H.trackingParams);this.isExpanded=!this.isExpanded};
_.R.onOfferInfoClick=function(X){this.isTapOnOfferInfoContainerEnabled&&(_.WS(_.t2(X)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Em(_.t2(X)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.R.onBottomBarClick=function(){this.executeTapCommand()};
_.R.executeTapCommand=function(){var X,H=(X=this.data)==null?void 0:X.tapCommand;H&&this.ytComponentBehavior.resolveCommand(H)};
_.R.resetStates=function(){this.isExpanded=!1};
_.ja.Object.defineProperties(l3.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var X=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),H,l,b;return((H=this.data)==null?void 0:H.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&X&&!!((l=this.data)==null?0:(b=l.benefits)==null?0:b.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((H=_.f((X=this.data)==null?void 0:X.showMoreButtonRenderer,A_Y))==null?void 0:H.showMoreButtonTitle)||((l=this.data)==null?void 0:l.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((H=_.f((X=this.data)==null?void 0:X.showMoreButtonRenderer,A_Y))==null?void 0:H.showLessButtonTitle)||((l=this.data)==null?void 0:l.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var X;return(X=this.showLessButtonTitle)!=null?X:""}var H;return(H=this.showMoreButtonTitle)!=null?H:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((X=this.data)==null?void 0:X.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((H=this.data)==null?0:H.footerTitle)||((l=this.data)==null?0:l.footerSubtitle))}}});
l3.prototype.dataChanged=l3.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],l3.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",String)],l3.prototype,"thumbnailObjectFit",void 0);
_.T([_.g(),_.N("design:type",String)],l3.prototype,"thumbnailObjectPosition",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.N("design:type",Boolean)],l3.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.T([_.g(),_.N("design:type",Object)],l3.prototype,"isExpanded",void 0);_.T([_.g(),_.N("design:type",Object)],l3.prototype,"data",void 0);_.T([_.g({computed:"computeIcon_(data.footerIcon)"}),_.N("design:type",String)],l3.prototype,"icon",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],l3.prototype,"dataChanged",null);_.T([_.x("data.thumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],l3.prototype,"hasThumbnail",null);_.T([_.x("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],l3.prototype,"enableExpandButton",null);
_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],l3.prototype,"enableOfferContentIcon",null);_.T([_.x("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],l3.prototype,"showMoreButtonTitle",null);_.T([_.x("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],l3.prototype,"showLessButtonTitle",null);
_.T([_.x("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.N("design:type",String),_.N("design:paramtypes",[])],l3.prototype,"expandedBtnText",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],l3.prototype,"enableBottomBar",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],l3);
_.O(l3,"ytd-offer-card-renderer",function(){if(vaU!==void 0)return vaU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vaU=X},{mode:1});var Oad;var oG=function(){return _.a.apply(this,arguments)||this};
_.S(oG,_.a);oG.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"}}}};
oG.prototype.onClick=function(X){if(!_.WS(X.composedPath()||[],this.hostElement,["A".toString()])){var H,l;if((X=(l=_.f((H=this.data)==null?void 0:H.actionButton,_.yB))==null?void 0:l.command)&&!this.ytComponentBehavior.resolveCommand(X)){var b;(b=_.lv())==null||b.clickCommand(X);_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}})}}};
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],oG.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],oG.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],oG);
_.O(oG,"ytd-offer-content-renderer",function(){if(Oad!==void 0)return Oad;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Oad=X},{mode:1});var mBZ;var b3=function(){return _.a.apply(this,arguments)||this};
_.S(b3,_.a);b3.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.ja.Object.defineProperties(b3.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var X,H;return!((X=this.data)==null||!X.title)||!((H=this.data)==null||!H.description)}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],b3.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],b3.prototype,"hasHeaderData",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],b3);
_.O(b3,"ytd-offer-section-renderer",function(){if(mBZ!==void 0)return mBZ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return mBZ=X},{mode:1});var Q8x;var UD=function(){return _.a.apply(this,arguments)||this};
_.S(UD,_.a);
UD.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],UD.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],UD);
_.O(UD,"ytd-offer-selection-step-renderer",function(){if(Q8x!==void 0)return Q8x;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Q8x=X},{mode:1});var TlN;var $_=function(){return _.a.apply(this,arguments)||this};
_.S($_,_.a);$_.prototype.computeStyle=function(X){return X};
$_.prototype.computeImageWidth=function(X){return X==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.T([_.g({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.N("design:type",String)],$_.prototype,"containerStyle",void 0);_.T([_.g({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.N("design:type",String)],$_.prototype,"imageWidth",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$_.prototype,"data",void 0);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],$_);
_.O($_,"ytd-confirmation-masthead-renderer",function(){if(TlN!==void 0)return TlN;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return TlN=X},{mode:1});var Nl5;var Kb=function(){return _.a.apply(this,arguments)||this};
_.S(Kb,_.a);Kb.prototype.computeStyle=function(X){return X};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Kb.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.N("design:type",String)],Kb.prototype,"containerStyle",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Kb);
_.O(Kb,"ytd-purchase-complete-detail-renderer",function(){if(Nl5!==void 0)return Nl5;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Nl5=X},{mode:1});var cUZ;var RG=function(){var X=_.a.apply(this,arguments)||this;X.scriptsAppended=!1;return X};
_.S(RG,_.a);RG.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"}}}};
RG.prototype.onDataChanged=function(){var X=this.get("data.gtmId");X&&(_.UK(X,_.gx("GL","")),this.setupConversionTracking())};
RG.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var X=document.createElement("noscript");X.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(X);this.scriptsAppended=!0}};
RG.prototype.onDataChanged=RG.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],RG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],RG.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],RG.prototype,"scriptsAppended",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RG.prototype,"onDataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],RG);
_.O(RG,"ytd-purchase-complete-step-renderer",function(){if(cUZ!==void 0)return cUZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return cUZ=X},{mode:1});var j8U;var Cb=function(){return _.a.apply(this,arguments)||this};
_.S(Cb,_.a);Cb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Cb.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Cb);
_.O(Cb,"ytd-ypc-transaction-error-message-renderer",function(){if(j8U!==void 0)return j8U;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return j8U=X},{mode:1});var rUx;var JUl;var w_=function(){var X=_.a.apply(this,arguments)||this;X.handlePhoneVerificationSuccess=function(H){if(X.isValidPhoneVerificationCompletionMessageEvent(H)){var l;((l=X.data)==null?0:l.nextStepCommand)&&X.ytComponentBehavior.resolveCommand(X.data.nextStepCommand)}};
return X};
_.S(w_,_.a);w_.prototype.isValidPhoneVerificationCompletionMessageEvent=function(X){if(X.data!=="yt-phone-verification-complete")return!1;X=_.Nb(X.origin);return X!==null&&X.includes("youtube.com")};
w_.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
w_.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],w_.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],w_.prototype,"data",void 0);_.T([_.qR({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],w_);
_.O(w_,"yt-feature-enablement-soft-entry-renderer",function(){if(JUl===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;rUx===void 0&&(rUx=document.createElement("template"));var b=rUx;l.call(H,b.content.cloneNode(!0),X.content.firstChild);JUl=X}X=JUl;return X},{mode:1});var LMa;var YMx;var IaU;var AUU;var X2Y=function(){return _.a.apply(this,arguments)||this};
_.S(X2Y,_.a);_.T([_.g(),_.N("design:type",Object)],X2Y.prototype,"data",void 0);_.T([_.qR({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],X2Y);
_.O(X2Y,"yt-benefits-item-renderer",function(){if(AUU===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;IaU===void 0&&(IaU=document.createElement("template"));var b=IaU;l.call(H,b.content.cloneNode(!0),X.content.firstChild);AUU=X}X=AUU;return X},{mode:2});var HKN;var lQ5;var d_=function(){return _.a.apply(this,arguments)||this};
_.S(d_,_.a);d_.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
d_.prototype.computeisWithoutPadding=function(){var X;return((X=this.data)==null?void 0:X.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],d_.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.N("design:type",Boolean)],d_.prototype,"isWithoutPadding",void 0);_.T([_.qR({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],d_);
_.O(d_,"yt-benefits-section-renderer",function(){if(lQ5===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;HKN===void 0&&(HKN=document.createElement("template"));var b=HKN;l.call(H,b.content.cloneNode(!0),X.content.firstChild);lQ5=X}X=lQ5;return X},{mode:2});var h7=function(){return _.a.apply(this,arguments)||this};
_.S(h7,_.a);h7.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
h7.prototype.computeisUsingLargeWidth=function(){var X;return((X=this.data)==null?void 0:X.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],h7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],h7.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.N("design:type",Boolean)],h7.prototype,"isUsingLargeWidth",void 0);_.T([_.qR({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],h7);
_.O(h7,"yt-benefits-flow-step-renderer",function(){if(YMx===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;LMa===void 0&&(LMa=document.createElement("template"));var b=LMa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);YMx=X}X=YMx;return X},{mode:2});var ox5;var bKp;var F_=function(){return _.a.apply(this,arguments)||this};
_.S(F_,_.a);F_.prototype.checkIsUsingLargeWidth=function(){var X;return((X=this.data)==null?void 0:X.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.T([_.g(),_.N("design:type",Object)],F_.prototype,"data",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.T([_.g({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.N("design:type",Boolean)],F_.prototype,"isUsingLargeWidth",void 0);_.T([_.qR({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],F_);
_.O(F_,"yt-confirmation-flow-step-renderer",function(){if(bKp===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;ox5===void 0&&(ox5=document.createElement("template"));var b=ox5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);bKp=X}X=bKp;return X},{mode:2});var Umx;var $mA;var K65=function(){return _.a.apply(this,arguments)||this};
_.S(K65,_.a);_.T([_.g(),_.N("design:type",Object)],K65.prototype,"data",void 0);_.T([_.qR({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],K65);
_.O(K65,"yt-info-flow-step-renderer",function(){if($mA===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Umx===void 0&&(Umx=document.createElement("template"));var b=Umx;l.call(H,b.content.cloneNode(!0),X.content.firstChild);$mA=X}X=$mA;return X},{mode:2});var Rt5;var CNx;var w2U=function(){return _.a.apply(this,arguments)||this};
_.S(w2U,_.a);_.T([_.g(),_.N("design:type",Object)],w2U.prototype,"data",void 0);_.T([_.qR({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],w2U);
_.O(w2U,"yt-info-list-flow-step-renderer",function(){if(CNx===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Rt5===void 0&&(Rt5=document.createElement("template"));var b=Rt5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);CNx=X}X=CNx;return X},{mode:2});var dm5=_.Z(function(X){var H=X.data;return _.F("styled-text-view-model",{class:_.Qr("ytStyledTextViewModelHost",function(){return P4l(H().fontAttributes)},function(){return VuZ(H().color)})},_.F(_.Sj,{text:function(){return H().text},
ariaLabel:function(){var l,b,U;return(U=(l=H().accessibility)==null?void 0:(b=l.accessibilityData)==null?void 0:b.label)!=null?U:""}}))},"ci");
dm5.idomCompat=!0;var htN=_.Z(function(X){var H=function(){var U,K,w,d;return(d=(w=(U=X.alt)==null?void 0:U.call(X))!=null?w:(K=X.data().accessibilityData)==null?void 0:K.label)!=null?d:""},l=function(){return X.data().imageWidth},b=function(){return X.data().imageHeight};
return _.F("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.F(_.M,{cond:function(){var U=X.data();if(U){var K,w,d;var B=((K=_.jJ().resolve(_.c$(_.b4)))==null?0:K())?(w=U.imageDark)!=null?w:U.imageLight:(d=U.imageLight)!=null?d:U.imageDark}else B=void 0;return B},
then:function(U){return _.F(_.Dp,Object.assign({},X,{data:U,alt:H,targetWidth:l,targetHeight:b,preserveHeight:!0,preserveWidth:!0}))}}))},"di");
htN.idomCompat=!0;var By=_.Z(function(X){var H=X.data;X=_.Eq(function(){return H().slots},[]);
var l=_.Eq(function(){return H().layoutProperties},{}),b=_.jJ().resolve(_.nS);
return _.F("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:ssC(l,b)},_.F(_.P$,{each:X,keyBy:"INDEX"},function(U){return _.F("div",{class:"ytContainerLayoutViewModelSlot",style:ssC(function(){return U().layoutProperties},b)},_.F(_.l4,{data:function(){return U().contents}},{containerLayoutViewModel:By,
badgeViewModel:_.Gi,buttonViewModel:_.Qk,styledTextViewModel:dm5,contentPreviewImageViewModel:function(K){return _.F(_.cU,{data:K.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(K){return _.F(htN,{data:K.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"ei");
By.idomCompat=!0;var F65=_.Z(function(X){var H=X.data;var l=X.stateFns;var b=function(){var q=H(),u=q.productId;return!(!q.clearGroupId&&!u)},U=function(){var q=H(),u=q.clearGroupId;
return(q=q.productId)?l().isProductSelected(q):u?l().getSelectedProductByGroupId(u)==null:!1},K=function(q){var u=H(),e=u.clearGroupId;
if(u=u.productId)l().onProductSelected(u),q==null||q.forEach(function(y){_.yr(y)});
else if(e)l().onClearGroupSelected(e)},w=function(){var q=H(),u=q.clearGroupId;
if(q=q.productId){var e;return"group:"+(((e=l().getProductById(q))==null?void 0:e.groupId)||"")}return u?"group:"+u:""},d=_.Eq(function(){return H().header},[]),B=_.Eq(function(){return H().body},[]);
return _.F("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.F(_.M,{cond:function(){return d().length>0||b()},
then:function(){return _.F("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.F("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.F(_.l4,{data:d},{containerLayoutViewModel:function(q){return _.F("div",{class:"ytPdpCardSectionViewModelContentItem"},_.F(By,{data:q.data}))},
styledTextViewModel:function(q){return _.F("div",{class:"ytPdpCardSectionViewModelContentItem"},_.F(dm5,{data:q.data}))}})),_.F(_.M,{cond:b,
then:function(){return _.F("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.F(_.kK,{checked:U,name:w,onChange:function(){K(H().onSelect)}}))}}))}}),_.F(_.M,{cond:function(){return B().length>0},
then:function(){return _.F("div",null,_.F(_.l4,{data:B},{containerLayoutViewModel:function(q){return _.F("div",{class:"ytPdpCardSectionViewModelContentItem"},_.F(By,{data:q.data}))}}))}}))},"fi");
F65.idomCompat=!0;var BH5=_.Z(function(X){var H=X.data;var l=X.stateFns;return _.F("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.F(_.M,{cond:function(){return H().banner},
then:function(b){return _.F("div",{class:"ytPdpCardViewModelBanner"},_.F(_.Sj,{text:b}))}}),_.F(_.l4,{data:function(){return H().sections}},{pdpCardSectionViewModel:function(b){b=b.data;
var U={};return _.F("div",{class:_.Qr("ytPdpCardViewModelSectionContainer",(U.ytPdpCardViewModelShowDividers=function(){return H().showDividers},U))},_.F(F65,{data:b,
stateFns:l}))}}))},"gi");
BH5.idomCompat=!0;var qkY=_.Z(function(X){var H=X.data;var l=X.isOverlay;X={};return _.F("pdp-masthead-view-model",{class:_.Qr("ytPdpMastheadViewModelHost",(X.ytPdpMastheadViewModelIsOverlay=l,X))},_.F(_.l4,{data:function(){return H().image}},{contentPreviewImageViewModel:_.cU,
themedImageViewModel:function(b){return _.F(htN,{data:b.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.F(_.M,{cond:function(){return H().title},
then:function(b){return _.F("h1",{class:"ytPdpMastheadViewModelHeading"},_.F(_.Sj,{text:b,isOverlay:l}))}}),_.F(_.P$,{each:function(){var b;
return(b=H().finePrint)!=null?b:[]}},function(b){return _.F("div",{class:"ytPdpMastheadViewModelFinePrint"},_.F(_.Sj,{text:b,
isOverlay:l}))}))},"hi");
qkY.idomCompat=!0;var s7Y=_.Z(function(X){var H=X.data;var l=X.stateFns;var b=function(){return"pdp-pricing-group-selector-"+H().pricingGroupAttributeIds},U=_.Eq(function(){return H().pricingGroupSelectorSectionHeader});
return _.F("pdp-pricing-group-selector-view-model",null,_.F(_.M,{cond:function(){return!!U()},
then:function(){return _.F(_.l4,{data:U},{sectionHeaderViewModel:function(K){K=K.data;var w={};return _.F("div",{class:_.Qr("ytPdpPricingGroupSelectorViewModelSectionHeader",(w.ytPdpPricingGroupSelectorViewModelFullBleed=!0,w.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,w))},_.F(_.on,{data:K}))}})}}),_.F("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.F(_.P$,{each:function(){var K=l().getSelectedProductByGroupId(H().groupId);
if(!K)return _.k2(Error("Dl`"+H().groupId)),[];var w,d=(w=H().pricingGroupAttributeIds)!=null?w:[],B;if((B=K.pricingGroups)==null||!B.length||!d.length)return[];w=K.pricingGroups.filter(function(y){return d.length?y.pricingGroupAttributes.every(function(V){return d.includes(V)}):!1});
K=[];if(d.length>0){w=[].concat(_.LJ(w));B=_.C(d);for(var q=B.next(),u={};!q.done;u={targetAttrId:void 0},q=B.next())u.targetAttrId=q.value,q=w.findIndex(function(y){return function(V){return V.pricingGroupAttributes.includes(y.targetAttrId)}}(u)),q!==-1&&(K.push(w[q]),w.splice(q,1))}var e=l().getSelectedPricingGroupAttributesByGroupId(H().groupId);
return K.map(function(y){var V=!1;e&&y.pricingGroupAttributes&&(V=AU(y.pricingGroupAttributes,e));return{pricingGroup:y,isSelected:V}})},
keyBy:function(K){return K.pricingGroup.pricingGroupId}},function(K){return _.F("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.F("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.F(_.l4,{data:function(){return K().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:By})),_.F("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.F(_.kK,{checked:function(){return K().isSelected},
name:b,onClick:function(){var w=K().pricingGroup;l().onPricingGroupSelected(w.pricingGroupId);if(w=_.sl(w.onSelectPricingGroup)){var d;(d=_.jJ().resolve(_.Vr))==null||d.resolveCommand(w)}}})))})))},"ii");
s7Y.idomCompat=!0;var Mde=_.Z(function(X){var H=X.data;var l=X.stateFns;var b=function(){var w=l().getSelectedPricingOptions().map(function(q){return q.pricingOptionId}),d=l().getSelectedProductByGroupId(H().groupId);
if(!d)return _.k2(Error("El`"+H().groupId)),[];var B=l().getSelectedPricingGroupAttributesByGroupId(H().groupId);return n$l(d.pricingOptions,B,w)},U=_.Eq(function(){return H().pricingOptionSelectorSectionHeader}),K=function(){return b().length>1};
return _.F("pdp-pricing-option-selector-view-model",null,_.F(_.M,{cond:function(){return!!U()&&K()},
then:function(){return _.F(_.l4,{data:U},{sectionHeaderViewModel:function(w){w=w.data;var d={};return _.F("div",{class:_.Qr("ytPdpPricingOptionSelectorViewModelSectionHeader",(d.ytPdpPricingOptionSelectorViewModelFullBleed=!0,d.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,d))},_.F(_.on,{data:w}))}})}}),_.F(_.M,{cond:K,
then:function(){return _.F("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.F(_.P$,{each:b,keyBy:"INDEX"},function(w){return _.F("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.F("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.F(_.l4,{data:function(){return w().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:By})),_.F("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.F(_.kK,{checked:function(){return w().isSelected},
onClick:function(){l().onPricingOptionSelected(w().pricingOption.pricingOptionId);var d=w().pricingOption.onSelectPricingOption;if(d=_.sl(d)){var B;(B=_.jJ().resolve(_.Vr))==null||B.resolveCommand(d)}}})))}))}}))},"ji");
Mde.idomCompat=!0;var uuZ=_.Z(function(X){var H=X.data;var l=X.stateFns;return _.F("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.F(_.l4,{data:function(){var b,U;return(U=(b=l().getSelectedPricingOptions()[0])==null?void 0:b.primaryButton)!=null?U:H().emptyStateButton}},{buttonViewModel:_.Qk}))},"ki");
uuZ.idomCompat=!0;var etU=_.Z(function(X){var H=X.stateFns;return _.F("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.F(_.l4,{data:function(){return H().getSelectedPricingOptions().flatMap(function(l){return l.summaryLines}).filter(function(l){return!!l})}},{containerLayoutViewModel:function(l){return _.F("div",{class:"ytPdpSummaryViewModelLineItem"},_.F(By,{data:l.data}))}}))},"li");
etU.idomCompat=!0;var yzZ=_.Z(function(X){function H(p){var z=w();_.Wc(_.Mf("pdpStateEntity",z,{key:z,selectedPricingOptions:p}))}
var l=X.data;var b=X.internalScrolling;var U=X.stateFnsForTesting;var K=_.Eq(function(){return l().allProducts},[]),w=_.Eq(function(){return l().pdpStateEntityKey},""),d=_.Aw(kex,w),B=_.uL(function(){_.a5(!0);
var p;return(p=U==null?void 0:U())!=null?p:Dhx(d,K,H)},void 0,"Pzdsic"),q=_.Eq(function(){return l().body},[]),u=_.Eq(function(){return l().columnBreakHints},[]),e=function(){return l().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},y=function(){return e()||l().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},V=_.uL(function(){var p=_.Su(l().background),z;
if(p==null?0:(z=p.sources)==null?0:z.length){var t=t===void 0?!0:t;p=_.Eky(void 0,p.sources,void 0,t,t?1E3:void 0,t?void 0:1E3)}else p=null;return p},void 0,"RDPOae");
_.DR(function(){var p=l().onStartCommand;if(p&&(p=_.sl(p))){var z;(z=_.jJ().resolve(_.Vr))==null||z.resolveCommand(p)}});
X={};return _.F("pdp-view-model",{class:_.Qr("ytPdpViewModelHost",(X.ytPdpViewModelHasBackground=function(){return y()||!!V()},X.ytPdpViewModelHasDarkBackground=y,X.ytPdpViewModelHasScrim=e,X.ytPdpViewModelInternalScrolling=b,X.ytPdpViewModelForceSingleColumn=function(){return u().length===0},X)),
style:_.rC({"--pdp-view-model-background":function(){return V()?"url("+V()+")":void 0}})},_.F("div",{class:"ytPdpViewModelColumnContainer"},_.F(_.P$,{each:function(){return tuA(q(),u())},
keyBy:"INDEX"},function(p){return _.F("div",{class:"ytPdpViewModelColumn"},_.F(_.l4,{data:p},{containerLayoutViewModel:function(z){return _.F(q4,null,_.F(By,{data:z.data}))},
dividerViewModel:function(z){return _.F(q4,{fullBleed:!0},_.F(_.Q36,{data:z.data}))},
pdpCardViewModel:function(z){return _.F(q4,null,_.F(BH5,{data:z.data,stateFns:B}))},
pdpMastheadViewModel:function(z){return _.F(q4,null,_.F(qkY,{data:z.data,isOverlay:y}))},
pdpPricingGroupSelectorViewModel:function(z){return _.F(q4,null,_.F(s7Y,{data:z.data,stateFns:B}))},
pdpPricingOptionSelectorViewModel:function(z){return _.F(q4,null,_.F(Mde,{data:z.data,stateFns:B}))},
pdpPrimaryButtonViewModel:function(z){return _.F(q4,null,_.F(uuZ,{data:z.data,stateFns:B}))},
pdpSummaryViewModel:function(z){return _.F(q4,null,_.F(etU,{data:z.data,stateFns:B}))},
sectionHeaderViewModel:function(z){return _.F(q4,{fullBleed:!0,noVerticalPadding:!0},_.F(_.on,{data:z.data}))}}))})))},"mi");
yzZ.idomCompat=!0;var q4=_.Z(function(X){var H={};return _.F("div",{class:_.Qr("ytPdpViewModelItem",(H.ytPdpViewModelFullBleed=X.fullBleed,H.ytPdpViewModelNoVerticalPadding=X.noVerticalPadding,H))},X.children)},"ni");_.gC(yzZ,"pdp-view-model",{props:{data:_.zh,stateFnsForTesting:_.ta,internalScrolling:_.ta}});var Vdd=_.Z(function(X){var H=X.data;var l=X.className;var b=_.Aw(_.iD,function(){return H().flowStateEntityKey});
return _.F("ytm-premium-purchase-button-renderer",{class:_.Qr("ytPremiumPurchaseButtonRendererHost",l)},_.F(_.l4,{data:function(){var U;return(U=_.f(b(),E$l))==null?void 0:U.primaryButtonOverride}},{buttonRenderer:function(U){return _.F(_.gF,{data:U.data,
className:l})},
buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,className:l})}}))},"oi");
Vdd.idomCompat=!0;var PNy=_.Z(function(X){var H=X.data;X=X.className;var l=function(){return WCA(H().style)},b=_.Qr("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",l),U=_.Qr("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",l);
return _.F("yt-flow-bottom-bar-renderer",{class:_.Qr("yt-flow-bottom-bar-renderer",X,l)},_.F(_.l4,{data:function(){return H().secondaryButton}},{buttonRenderer:function(K){return _.F(_.gF,{data:K.data,
className:U})},
buttonViewModel:function(K){return _.F(_.Qk,{data:K.data,className:U})},
premiumPurchaseButtonRenderer:function(K){return _.F(Vdd,{data:K.data,className:U})}}),_.F(_.l4,{data:function(){return H().primaryButton}},{buttonRenderer:function(K){return _.F(_.gF,{data:K.data,
className:b})},
buttonViewModel:function(K){return _.F(_.Qk,{data:K.data,className:b})},
premiumPurchaseButtonRenderer:function(K){return _.F(Vdd,{data:K.data,className:b})}}))},"pi");
PNy.idomCompat=!0;_.gC(PNy,"yt-flow-bottom-bar-renderer",{props:{data:_.zh,className:_.zh}});var fQ5=_.Z(function(X){var H=_.Qr(X.className,"ytOfferSummaryRendererHost");return _.F("yt-offer-summary-renderer",{class:H},_.F("div",{class:"ytOfferSummaryRendererTextContainer"},_.F("div",{class:"ytOfferSummaryRendererEyebrowText"},_.F(_.Sj,{text:function(){return X.data().eyebrowText}})),_.F("div",{class:"ytOfferSummaryRendererTitle"},_.F(_.Sj,{text:function(){return X.data().title}})),_.F("div",{class:"ytOfferSummaryRendererSubtitle"},_.F(_.Sj,{text:function(){return X.data().subtitle}})),_.F("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.F(_.P$,{each:function(){var l;
return(l=X.data().featureListData)!=null?l:[]}},function(l){var b;
return _.F("div",{class:"ytOfferSummaryRendererFeatureList"},_.F(_.Ja,{icon:(b=l.icon)==null?void 0:b.iconType,active:function(){return l.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(l.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"}}}),_.F("div",{class:"ytOfferSummaryRendererFeatureListText"},_.F(_.Sj,{text:l.text,
className:function(){return l.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.F("div",{class:"ytOfferSummaryRendererDescription"},_.F(_.Sj,{text:function(){return X.data().description}}))))},"qi");_.gC(_.Z(function(X){var H={};H=_.Qr("ytOfferSummaryFlowStepRendererHost",(H.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=X.shouldDisableHeaderTopMargin,H));return _.F("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:H},_.F("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.F("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.F(_.Sj,{text:function(){return X.data().header}})),_.F("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.F(_.Sj,{text:function(){return X.data().subtitle}}))),_.F("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.F(_.l4,{data:function(){return X.data().offerSummary}},{offerSummaryRenderer:function(l){return _.F(fQ5,{data:l.data,
className:X.flowClassName})}})))},"ri"),"yt-offer-summary-flow-step-renderer",{props:{data:_.ta,
flowClassName:_.ta,flowStateEntityKey:_.ta,shouldDisableHeaderTopMargin:_.ta}});var p2e=_.Z(function(X){var H=X.data;var l=X.className;var b=X.flowStateEntityKey;var U=X.selectionStepStyle;X=_.Nq(function(B){var q=H(),u=b==null?void 0:b();B.target&&(B.stopPropagation(),B=u||"",u=_.iD(_.tF().getState(),B),q=Object.assign({},u,{premiumPurchaseFlowState:{selectedOptionId:q.optionId,primaryButtonOverride:q.primaryButtonOverride}}),_.tF().dispatch(_.Us("flowStateEntity",B,q)));return!1});
var K=function(){return(b==null?void 0:b())||""},w=_.Aw(_.iD,K);
_.DR(function(){var B=H(),q=K(),u=w();B.defaultSelected&&q!==""&&B.primaryButtonOverride&&g$$(B.optionId||"",q,B.primaryButtonOverride,u)});
var d={};return _.F("ytm-option-item-renderer",{"on:click":X,class:_.Qr(l,"ytm-option-item-renderer",(d["ytm-option-item-renderer--lp2-style"]=function(){return(U==null?void 0:U())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},d))},_.F("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.F("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var B=H(),q=K(),u=w();u=_.f(u,E$l);return(u?(u==null?void 0:u.selectedOptionId)||"":B.defaultSelected&&q!==""?(B==null?void 0:B.optionId)||"":"")===H().optionId},
name:("input"+_.uZ(_.P3)).toString()})),_.F("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.F(_.l4,{data:function(){return H().titleBadge}},{badgeViewModel:function(B){return _.F(_.Gi,{data:B.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.F(_.M,{cond:function(){return H().eyebrowText},
then:function(){return _.F("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.F(_.Sj,{text:function(){return H().eyebrowText}}))}}),_.F("div",{class:"ytm-option-item-renderer__option-item-title"},_.F(_.Sj,{text:function(){return H().title}})),_.F("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.F(_.Sj,{text:function(){return H().subtitle}})),_.F(_.M,{cond:function(){return H().featureListData},
then:function(){return _.F("div",{class:"ytm-option-item-renderer__feature-list-data"},_.F(_.P$,{each:function(){return H().featureListData||[]}},function(B){var q,u=(q=B.icon)==null?void 0:q.iconType;
a:switch(B.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":q="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":q="ytm-option-item-renderer__feature-list-icon-small";break a;default:q="ytm-option-item-renderer__feature-list-icon-default"}return _.F("div",{class:"ytm-option-item-renderer__feature-list"},_.F(_.Ja,{icon:u,className:q,active:function(){return B.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.F("div",{class:"ytm-option-item-renderer__feature-list-text"},_.F(_.Sj,{text:B.text,
className:function(){return B.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.F("div",{class:"ytm-option-item-renderer__option-item-description"},_.F(_.Sj,{text:function(){return H().description}}))))},"si");var Skd=_.Z(function(X){var H=X.data;var l=X.flowClassName;var b=X.flowStateEntityKey;var U=X.selectionStepStyle;return _.F("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.F("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.F("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.F(_.Sj,{text:function(){return H().title}}),_.F(_.l4,{data:function(){return H().titleBadge}},{badgeViewModel:function(K){return _.F(_.Gi,{data:K.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.F(_.M,{cond:function(){return H().subtitle},
then:function(){return _.F("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.F(_.Sj,{text:function(){return H().subtitle}}))}}),_.F(_.M,{cond:function(){return H().featureListData},
then:function(K){return _.F("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.F(_.P$,{each:K},function(w){var d;return _.F("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.F(_.Ja,{icon:(d=w.icon)==null?void 0:d.iconType,active:function(){return w.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(w.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"}}}),_.F("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.F(_.Sj,{text:w.text,
className:function(){return w.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.F(_.M,{cond:function(){return H().secondaryTitle},
then:function(){return _.F("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.F(_.Sj,{text:function(){return H().secondaryTitle}}))}}),_.F(_.P$,{each:function(){return H().sectionDisclaimers||[]}},function(K){return _.F("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.F(_.Sj,{text:K}))})),_.F(_.l4,{data:function(){return H().optionItems}},{optionItemRenderer:function(K){return _.F("div",{class:"ytOptionSectionRendererOptionItem"},_.F(p2e,{data:K.data,
className:l,flowStateEntityKey:b,selectionStepStyle:U}))}}),_.F(_.M,{cond:function(){return H().offerText},
then:function(){return _.F("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.F(_.Sj,{text:function(){return H().offerText}}))}}))},"ti");
Skd.idomCompat=!0;var ztx=_.Z(function(X){var H=X.data;var l=X.flowClassName;var b=X.flowStateEntityKey;X=X.isDesktop;var U=_.SJ("div"),K=function(){var u;return(u=H().flowStateEntityKey)!=null?u:b==null?void 0:b()},w=function(){return(K==null?void 0:K())||""},d=function(){return H().style},B=_.Aw(_.iD,w);
_.DR(function(){GeU(H(),w(),B());setTimeout(function(){var u;(u=U.value)==null||u.focus()})});
var q={};return _.F("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Qr("ytm-option-selection-flow-step-renderer",(q["ytm-option-selection-flow-step-renderer--desktop"]=X,q["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return H().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},q))},_.F("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"},
_.F("div",{el:U,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.F(_.Sj,{text:function(){return H().header}})),_.F("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.F(_.Sj,{text:function(){return H().subtitle}}))),_.F(_.l4,{data:function(){return H().optionItems||[]}},{optionItemRenderer:function(u){return _.F("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.F(p2e,{data:u.data,
className:l,flowStateEntityKey:K,selectionStepStyle:d}))},
optionSectionRenderer:function(u){return _.F("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.F(Skd,{data:u.data,flowClassName:l,flowStateEntityKey:K,selectionStepStyle:d}))}}))},"ui");
ztx.idomCompat=!0;_.gC(ztx,"yt-option-selection-flow-step-renderer",{props:{data:_.zh,flowClassName:_.zh,flowStateEntityKey:_.zh,isDesktop:_.zh}});var sD=_.Z(function(X){var H=_.gT(X,{type:1,disablePadding:!1,disablePrimaryButton:!1}),l=H.data,b=H.type;X=H.disablePadding;var U=H.disablePrimaryButton,K=H.onClickPrimaryButton,w=function(){return l().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},d=function(){return{disabled:U(),
state:U()?"disabled":"active"}},B=function(){return l().leadingLabel||l().trailingLabel};
H={};return _.F("yt-panel-footer-view-model",{class:_.Qr("yt-panel-footer-view-model",(H["yt-panel-footer-view-model--hide-divider"]=function(){return l().shouldHideDivider},H["yt-panel-footer-view-model--disable-padding"]=X,H))},_.F(_.M,{cond:B,
then:function(){var q={},u={};return _.F("div",{class:_.Qr("yt-panel-footer-view-model__text-row",(q["yt-panel-footer-view-model--row-bottom-padding"]=function(){var e=l();return!(!e.leadingLabel&&!e.trailingLabel||!e.primaryButton&&!e.secondaryButton)},q))},_.F(_.Sj,{text:function(){return l().leadingLabel},
className:_.Qr((u["yt-panel-footer-view-model--text-padding"]=B,u))}),_.F(_.Sj,{text:function(){return l().trailingLabel}}))}}),_.F(_.M,{cond:w,
then:function(){var q={};return _.F("div",{class:"yt-panel-footer-view-model__button-stack"},_.F("div",{class:_.Qr("yt-panel-footer-view-model__primary-button",(q["yt-panel-footer-view-model__button-stack--top-button"]=function(){return l().secondaryButton},q))},_.F(_.l4,{data:function(){return l().primaryButton}},{buttonViewModel:function(u){return _.F(_.Qk,{data:u.data,
buttonOverrides:d,onClick:K})}})),_.F(_.l4,{data:function(){return l().secondaryButton}},{buttonViewModel:_.Qk}))}}),_.F(_.M,{cond:function(){return!w()},
then:function(){var q={},u={},e={};return _.F("div",{class:_.Qr("yt-panel-footer-view-model__button-row",(q["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===b()},q))},_.F("div",{class:_.Qr("yt-panel-footer-view-model__button-row--left-button",(u["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===b()},u["yt-panel-footer-view-model__button-row--hidden"]=function(){return!l().secondaryButton||0===b()},u["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===b()},u))},_.F(_.l4,{data:function(){return l().secondaryButton}},{buttonViewModel:_.Qk})),_.F("div",{class:_.Qr("yt-panel-footer-view-model__primary-button",(e["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===b()||1===b()},e["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===b()},e))},_.F(_.l4,{data:function(){return l().primaryButton}},{buttonViewModel:function(y){return _.F(_.Qk,{data:y.data,
buttonOverrides:d,onClick:K})}})))}}))},"vi");
sD.idomCompat=!0;var nxZ=_.Z(function(X){X=_.gT(X,{disablePadding:!1});var H=X.data,l=X.disablePadding;X=_.tVz(function(){return H().formId},void 0,function(){return H().onSubmitSuccess});
var b=X.submitForm,U=X.isValid,K=X.isSubmitting;return _.F("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.F(_.l4,{data:function(){return H().panelFooter}},{panelFooterViewModel:function(w){return _.F(sD,{data:w.data,
onClickPrimaryButton:function(){b()},
disablePrimaryButton:function(){return!U()||K()},
disablePadding:l})}}))},"wi");_.gC(nxZ,"yt-form-footer-view-model",{props:{data:_.zh,disablePadding:_.zh}});var kQa=_.Z(function(X){var H=_.P("enable_user_rating_web");return _.F("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.F("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.F(_.M,{cond:function(){var l;return(l=X.data())==null?void 0:l.image},
then:function(l){return _.F(_.Dp,{data:l,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.F("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.F(_.Sj,{text:function(){var l;
return(l=X.data())==null?void 0:l.title}})),_.F("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.F(_.Sj,{text:function(){var l;
return(l=X.data())==null?void 0:l.subtitle}})),_.F(_.M,{cond:function(){return!H},
then:function(){return _.F(_.l4,{data:function(){var l;return(l=X.data())==null?void 0:l.viewTipsButton}},{buttonViewModel:function(l){return _.F(_.Qk,{data:l.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"xi");_.gC(kQa,"yt-contributor-zero-state-view-model",{props:{data:_.zh}});var xmU=_.Z(function(X){var H=function(){var l;return(l=X.data())==null?void 0:l.image};
return _.F("yt-featured-content-item-view-model",{class:_.Qr("ytFeaturedContentItemViewModelHost")},_.F("div",{class:_.Qr(function(){return H()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.F("div",{class:function(){return H()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.F(_.M,{cond:H,
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelImage"},_.F(_.l4,{data:function(){return X.data().image}},{themedImageViewModel:function(l){return _.F(htN,{data:l.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.F(_.M,{cond:function(){var l;
return!H()&&((l=X.data())==null?void 0:l.iconName)},
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelIcon"},_.F(_.Ja,{icon:function(){return X.data().iconName}}))}}),_.F("div",{class:"ytFeaturedContentItemViewModelContent"},_.F(_.M,{cond:function(){var l;
return(l=X.data())==null?void 0:l.title},
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.F(_.Sj,{text:function(){return X.data().title}}))}}),_.F(_.M,{cond:function(){var l;
return(l=X.data())==null?void 0:l.body},
then:function(){return _.F("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.F(_.Sj,{text:function(){return X.data().body}}))}})))))},"yi");var DmC=_.Z(function(X){var H=function(){var U;return aIp((U=X.data())==null?void 0:U.titleFontSize)},l=function(){var U;
return ZSZ((U=X.data())==null?void 0:U.descriptionFontSize)},b=function(){var U;
return((U=X.data())==null?void 0:U.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.F("yt-landing-page-view-model",{class:_.Qr("ytLandingPageViewModelHost",X.className)},_.F("div",{class:"ytLandingPageViewModelHeader"},_.F(_.M,{cond:function(){var U;return(U=X.data())==null?void 0:U.bannerImage},
then:function(U){return _.F("div",{class:"ytLandingPageViewModelHeaderImage"},_.F(_.l4,{data:function(){return U()}},{imageBannerViewModel:function(K){return _.F(_.EY,{data:K.data,
isPositionRelative:!0})}}))}}),_.F(_.M,{cond:function(){var U;
return(U=X.data())==null?void 0:U.bannerAnimation},
then:function(U){return _.F(_.Jx,{data:function(){var K=U();if(K==null?0:K.url){var w;K={path:(w=K==null?void 0:K.url)!=null?w:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(K==null?0:K.payload){var d;K={animationData:JSON.parse((d=K==null?void 0:K.payload)!=null?d:""),autoplay:!0,loop:!0,renderer:"svg"}}else K=void 0;return{animationConfig:K}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.F("div",{class:"ytLandingPageViewModelHeaderTitle"},_.F(_.M,{cond:function(){var U;
return(U=X.data())==null?void 0:U.title},
then:function(U){return _.F("div",{class:_.Qr("ytLandingPageViewModelHeaderTitleContent",H)},_.F(_.Sj,{text:function(){return U()}}))}}),_.F(_.M,{cond:function(){var U;
return(U=X.data())==null?void 0:U.description},
then:function(U){var K={};return _.F(_.Sj,{className:_.Qr("ytLandingPageViewModelHeaderTitleDescription",l,(K.ytLandingPageViewModelHeaderTitleDescriptionMargin=b,K)),text:function(){return U()}})}}))),_.F(_.M,{cond:function(){var U,K;
return(U=X.data())==null?void 0:(K=U.featuredContentList)==null?void 0:K.length},
then:function(){return _.F("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.F(_.l4,{data:function(){return X.data().featuredContentList}},{featuredContentItemViewModel:function(U){return _.F(xmU,{data:U.data})}}))}}),_.F(_.M,{cond:function(){var U,K;
return(U=X.data())==null?void 0:(K=U.expandableContentList)==null?void 0:K.length},
then:function(){return _.F("div",{class:"ytLandingPageViewModelFaqSection"},_.F(_.l4,{data:function(){return X.data().expandableContentList}},{faqEntryViewModel:function(U){return _.F("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.F(_.SXG,{data:U.data}))}}))}}),_.F("div",{class:"ytLandingPageViewModelFooter"},_.F(_.M,{cond:function(){var U;
return(U=X.data())==null?void 0:U.legalCopy},
then:function(U){return _.F("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.F(_.Sj,{text:function(){return U()}}))}}),_.F(_.M,{cond:function(){var U;
return(U=X.data())==null?void 0:U.actions},
then:function(U){return _.F("div",null,_.F(_.l4,{data:function(){return U()}},{flexibleActionsViewModel:function(K){return _.F(_.u2,{data:K.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"zi");_.gC(_.Z(function(X){return _.F("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.F("div",{class:"ytLpSectionGroupViewModelContainer"},_.F(_.l4,{data:function(){return X.data().sections}},{landingPageViewModel:function(H){return _.F(DmC,{data:H.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Ai"),"yt-lp-section-group-view-model",{props:{data:_.zh}});var tde=_.Z(function(X){var H=X.data;var l=X.selectedKey;var b=X.onSelected;var U=X.groupName;var K=function(){return H().text},w=function(){return H().attributedText},d=function(){return H().subtext},B=function(){return H().attributedSubtext},q=function(){return H().selectionText},u=function(){return H().trailingIconName},e=_.F("div",{class:"ytRadioButtonItemViewModelLabel"},_.F("div",null,_.F(_.M,{cond:K,
then:function(){return _.F("div",null,K)}}),_.F(_.M,{cond:w,
then:function(){return _.F(_.Sj,{text:w})}}),_.F(_.M,{cond:d,
then:function(){return _.F("div",{class:"ytRadioButtonItemViewModelSubText"},d)}}),_.F(_.M,{cond:B,
then:function(){return _.F(_.Sj,{text:B,className:"ytRadioButtonItemViewModelSubText"})}})),_.F(_.M,{cond:function(){return q()||u()},
then:function(){return _.F("div",{class:"ytRadioButtonItemViewModelTrailingContainer"},_.F(_.M,{cond:q,then:function(){return _.F(_.Sj,{text:q,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}),_.F(_.M,{cond:u,
then:function(){return _.F(_.Ja,{icon:u,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}))}}));
X={};return _.F("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.F(_.kK,{name:U,checked:function(){return!(l==null||!l()||H().key!==(l==null?void 0:l()))},
onChange:function(y){b==null||b(y.target,H(),U==null?void 0:U())},
labelRenderable:function(){return e},
ariaLabel:function(){var y,V;var p=(V=(y=B())==null?void 0:y.content)!=null?V:d();var z,t;y=(t=(z=w())==null?void 0:z.content)!=null?t:K();return p?y+", "+p:y},
className:_.Qr((X.ytRadioButtonItemViewModelSubTitle=function(){return!!d()},X))}))},"Bi");var W6d=_.Z(function(X){var H=X.data,l=X.onSelected,b=X.selectedKey,U=X.groupName;X=X.className;var K=_.C(_.FU(!1,void 0,"mDtSad")),w=K.next().value,d=K.next().value,B=function(){if(b!==void 0){var q=b();return!(!q||H().key!==q)}return w()};
K=_.Nq(function(q){l?l(q.currentTarget,H(),U==null?void 0:U()):d(!w())});
return _.F("yt-selectable-item-view-model",{class:_.Qr("ytSelectableItemViewModelHost",X,"ytSelectableItemViewModelContainer"),"on:click":K,"prop:checked":B},_.F(_.l4,{data:function(){return H().content}},{cardViewModel:function(q){return _.F(_.aCe,{data:q.data,
isSelected:B})}}))},"Ci");var ExN=_.Z(function(X){var H=X.data;var l=X.onSelected;var b=X.selectedKey;var U=X.groupName;var K=function(){return(U==null?void 0:U())||H().key};
return _.F("yt-radio-button-group-view-model",{class:_.Qr("ytRadioButtonGroupViewModelHost",X.className)},_.F("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.F(_.l4,{data:function(){return H().radioButtons}},{radioButtonItemViewModel:function(w){return _.F(tde,{data:w.data,
onSelected:l,selectedKey:b,groupName:K})},
selectableItemViewModel:function(w){return _.F(W6d,{data:w.data,onSelected:l,selectedKey:b,groupName:K})}})))},"Di");var gxd=_.Z(function(X){_.DR(function(){if(X.controlledMode()&&X.data().defaultSelected)_.n2(Error("Fl"));else{var K;!X.controlledMode()&&((K=X.selected)==null?0:K.call(X))&&_.n2(Error("Gl"))}});
var H=_.C(_.Gx(function(){if(!X.controlledMode())return X.data().defaultSelected})),l=H.next().value,b=H.next().value,U=function(){if(!X.controlledMode())return l();
var K;return(K=X.selected)==null?void 0:K.call(X)};
return _.F("yt-checkbox-item-view-model",{class:_.Qr("ytCheckboxItemViewModelHost",X.className)},_.F(_.xK,{data:function(){var K=X.data(),w=U();return{title:K.text,subtitle:K.subtext,superlabel:K.superlabel,isSelected:!!w,isDisabled:K.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!X.controlledMode()&&b(!l());var K,w;(w=X.onTap)==null||w.call(X,!!U(),X.data(),(K=X.groupName)==null?void 0:K.call(X))},
isCompact:X.isCompact,disableHorizontalPadding:X.disableHorizontalPadding}))},"Ei");var GQZ=_.Z(function(X){var H=X.data;var l=X.controlledMode;var b=X.selectedKeys;var U=X.onItemTap;var K=X.groupName;var w=X.disableHorizontalPadding;var d=function(){return(K==null?void 0:K())||H().key};
_.DR(function(){l()&&H().defaultSelectedKeys?_.n2(Error("Hl")):!l()&&(b==null?0:b())&&_.n2(Error("Il"))});
X=_.C(_.Gx(function(){if(!l())return H().defaultSelectedKeys}));
var B=X.next().value,q=X.next().value,u=function(e,y,V){e=[];!l()&&y.key&&(e=iSN(y.key,B()||[]),q(e));U==null||U(y,e,V)};
return _.F("yt-checkbox-group-view-model",{class:_.Qr("ytCheckboxGroupViewModelHost")},_.F("fieldset",{class:_.Qr("ytCheckboxGroupViewModelFieldset")},_.F("div",{role:"list"},_.F(_.l4,{data:function(){return H().checkboxes}},{checkboxItemViewModel:function(e){var y=e.data;
return _.F(gxd,{data:y,controlledMode:!0,selected:function(){var V=l()?(b==null?void 0:b())||[]:B()||[],p=y().key;return p?V.includes(p):!1},
onTap:u,groupName:d,disableHorizontalPadding:w})}}))))},"Fi");var aQ$=_.$q(v$5,{debugName:"ytAlertBannerViewModel"});_.JR(_.p3,function(X){_.St(X,"ytAlertBannerViewModel","n0DHg",v$5)});var M4=_.Z(function(X){var H=_.Aw(OSa,_.Eq(function(){var d;return(d=X.data())==null?void 0:d.noteFeedEntityKey},"")),l=_.Aw(sH5,_.Eq(function(){var d;
return(d=X.data())==null?void 0:d.userRatingEntityKey},"")),b=_.P("enable_user_rating_web"),U=function(){var d,B,q;
return((d=H())==null?0:d.contributorNote)?(B=H())==null?void 0:B.contributorNote:(q=X.data())==null?void 0:q.existingNote},K=function(){var d,B;
return!!l()&&!!mha((d=l())==null?void 0:d.helpfulnessValue,(B=X.data())==null?void 0:B.noteData)};
if(b){var w={};return _.F("yt-note-view-model",{class:_.Qr("ytNoteViewModelHostUserRating",(w.ytNoteViewModelHostUserRatingPublishedNote=function(){var d,B,q,u;return((d=X.data())==null?void 0:(B=d.noteData)==null?void 0:B.isPublished)&&!((q=X.data())==null?0:(u=q.noteData)==null?0:u.isUserRatingForm)},w))},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.F(_.M,{cond:function(){var d,B;
return(d=X.data())==null?void 0:(B=d.noteData)==null?void 0:B.isPinned},
then:function(){return _.F(_.Ja,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.F(_.M,{cond:function(){var d,B;return(d=X.data())==null?void 0:(B=d.noteData)==null?void 0:B.isPublished},
then:function(){return _.F(_.Ja,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.F(_.l4,{data:function(){var d;
return(d=X.data())==null?void 0:d.metadata}},{contentMetadataViewModel:_.rF}),_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var d,B;
return(B=_.f((d=X.data())==null?void 0:d.metadata,_.Yv_))==null?void 0:B.delimiter}),_.F(_.Sj,{text:function(){var d;
return(d=U())==null?void 0:d.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.F(_.M,{cond:function(){var d,B;return!((d=X.data())==null?0:(B=d.noteData)==null?0:B.isUserRatingForm)},
then:function(){return _.F(_.l4,{data:function(){var d,B,q,u,e,y,V,p=!!((d=X.data())==null?0:(B=d.noteData)==null?0:B.isPinned);d=K();B=(q=X.data())==null?void 0:q.noteData;q=(u=H())==null?void 0:(e=u.contributorNote)==null?void 0:e.deleteAction;u=(y=X.data())==null?void 0:y.overflowButtonNoteWithRatingOnTapOverride;y=(V=X.data())==null?void 0:V.overflowButton;var z;V=(z=_.f(y,_.fk))==null?void 0:z.accessibilityText;return p?Qs$(B,q,V):d?{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:u,accessibilityText:V}}:y}},{buttonViewModel:function(d){return _.F(_.Qk,{data:d.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.F("div",{class:"ytNoteViewModelNoteContent"},_.F(_.Sj,{text:function(){var d;
return(d=U())==null?void 0:d.text}})),_.F(_.M,{cond:function(){var d,B,q,u;
return!((d=X.data())==null?0:(B=d.noteData)==null?0:B.isPinned)&&!((q=X.data())==null?0:(u=q.noteData)==null?0:u.isUserRatingForm)},
then:function(){return _.F(_.M,{cond:K,then:function(){return _.F("div",{class:"ytNoteViewModelUserRatingContainer"},_.F(_.Sj,{text:function(){var d,B;return mha((d=l())==null?void 0:d.helpfulnessValue,(B=X.data())==null?void 0:B.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.F(_.l4,{data:function(){var d;return(d=X.data())==null?void 0:d.userRatingButton}},{buttonViewModel:function(d){return _.F(_.Qk,{data:d.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.F(_.M,{cond:function(){var d,B,q,u;
return!((d=X.data())==null?0:(B=d.noteData)==null?0:B.ignoreDivider)&&!((q=X.data())==null?0:(u=q.noteData)==null?0:u.isUserRatingForm)},
then:function(){return _.F("div",{class:"ytNoteViewModelDivider"},_.F(_.l4,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(d){return _.F(_.Q36,{data:d.data})}}))}}))}return _.F("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.F(_.M,{cond:function(){var d,B;return(d=X.data())==null?void 0:(B=d.noteData)==null?void 0:B.isPinned},
then:function(){return _.F(_.Ja,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.F(_.M,{cond:function(){var d,B;return(d=X.data())==null?void 0:(B=d.noteData)==null?void 0:B.isPublished},
then:function(){return _.F(_.Ja,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.F(_.M,{cond:function(){return b},
then:function(){return _.F(_.l4,{data:function(){var d;return(d=X.data())==null?void 0:d.metadata}},{contentMetadataViewModel:function(d){return _.F(_.rF,{data:d.data})}})}}),_.F(_.Sj,{text:function(){var d,B;
return(d=X.data())==null?void 0:(B=d.noteData)==null?void 0:B.headerText}}),_.F("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.F(_.Sj,{text:function(){var d,B;
return(d=X.data())==null?void 0:(B=d.noteData)==null?void 0:B.delimiter}})),_.F(_.Sj,{text:function(){var d,B;
return(d=H())==null?void 0:(B=d.contributorNote)==null?void 0:B.publishedTimeText}})),_.F(_.l4,{data:function(){var d,B,q;
return Qs$((d=X.data())==null?void 0:d.noteData,(B=H())==null?void 0:(q=B.contributorNote)==null?void 0:q.deleteAction)}},{buttonViewModel:function(d){return _.F(_.Qk,{data:d.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.F("div",{class:"ytNoteViewModelNoteContent"},_.F(_.Sj,{text:function(){var d,B;
return(d=H())==null?void 0:(B=d.contributorNote)==null?void 0:B.text}})))},"Gi");
M4.idomCompat=!0;_.gC(_.Z(function(X){var H=_.Eq(function(){var G;return(G=X.data())==null?void 0:G.flowStateEntityKey},""),l=_.Aw(_.iD,H),b=_.Aw(OSa,_.Eq(function(){var G;
return(G=X.data())==null?void 0:G.noteFeedEntityKey},"")),U=_.C(_.Gx(function(){var G;
return(G=_.f(X.data().helpfulnessValue,kFa))==null?void 0:G.defaultSelectedKey})),K=U.next().value,w=U.next().value;
U=_.C(_.Gx(function(){var G,r,Q;return(Q=_.f((G=_.f(X.data().helpfulnessValue,kFa))==null?void 0:(r=G.radioButtons)==null?void 0:r.find(function(v){var J;return((J=_.f(v,xHl))==null?void 0:J.key)===K()}),xHl))==null?void 0:Q.value}));
var d=U.next().value,B=U.next().value;U=_.C(_.Gx(function(){var G;return(G=_.f(X.data().helpfulReasons,nKZ))==null?void 0:G.defaultSelectedKeys}));
var q=U.next().value,u=U.next().value;U=_.C(_.Gx(function(){var G;return(G=_.f(X.data().notHelpfulReasons,nKZ))==null?void 0:G.defaultSelectedKeys}));
var e=U.next().value,y=U.next().value,V=function(G,r){w(r.key);B(r.value);u([]);y([])},p=function(){var G,r;
return((G=d())==null?void 0:G.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((r=d())==null?void 0:r.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},z=function(){var G,r;
return((G=d())==null?void 0:G.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((r=d())==null?void 0:r.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},t=function(G){TjC(G.key,q,u)},W=function(G){TjC(G.key,e,y)};
_.DR(function(){var G,r,Q;F1a((G=X.data())==null?void 0:(r=G.userRatingFormSchema)==null?void 0:r.id,{isValid:function(){return!!K()},
formData:function(){var v=d(),J=c5p(q(),_.f(X.data().helpfulReasons,nKZ)),Y=c5p(e(),_.f(X.data().notHelpfulReasons,nKZ));v={helpfulnessValue:v==null?void 0:v.noteHelpfulnessValue};if(J){v.helpfulReasons=[];J=_.C(J);for(var Uy=J.next();!Uy.done;Uy=J.next()){Uy=Uy.value;var Cy=void 0;if((Cy=Uy)==null?0:Cy.noteHelpfulReason)Cy=void 0,v.helpfulReasons.push((Cy=Uy)==null?void 0:Cy.noteHelpfulReason)}}if(Y)for(v.notHelpfulReasons=[],Y=_.C(Y),J=Y.next();!J.done;J=Y.next())if(J=J.value,Uy=void 0,(Uy=J)==
null?0:Uy.noteNotHelpfulReason)Uy=void 0,v.notHelpfulReasons.push((Uy=J)==null?void 0:Uy.noteNotHelpfulReason);return{userRatingFormData:v}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(Q=_.f(l(),lwp))==null?void 0:Q.submitFormParams},onSubmitResult:function(){var v,J=(v=_.f(l(),lwp))==null?void 0:v.userRatingEntityKey,Y;v={key:J,helpfulnessValue:(Y=d())==null?void 0:Y.noteHelpfulnessValue};J&&_.Wc(_.Us("contextNoteUserRatingEntityPayload",J,v));var Uy;J=(Uy=X.data())==null?void 0:Uy.viewNoteFlowStepId;var Cy;if((Cy=b())==null||!Cy.contributorNote){var sy;J=(sy=X.data())==null?void 0:sy.zeroStateFlowStepId}(Uy=
Object.assign({},l()))&&J&&(Uy.currentStepId=J,Uy.stepIdStack=[J],_.Wc(_.Us("flowStateEntity",H(),Uy)));var FO;(Uy=(FO=X.data())==null?void 0:FO.ratingSubmittedSnackbarCommand)&&_.yr(Uy)},
disableDuringSubmission:!0})});
return _.F("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.F(_.l4,{data:function(){var G=_.f(l(),lwp);if(G){var r;var Q={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:G==null?void 0:(r=G.note)==null?void 0:r.headerText}]}],delimiter:"\u2022"}},existingNote:G.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else Q=void 0;return Q}},{noteViewModel:function(G){return _.F("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.F(M4,{data:G.data}))}}),_.F(_.l4,{data:function(){var G;
return(G=X.data())==null?void 0:G.helpfulnessValue}},{radioButtonGroupViewModel:function(G){return _.F("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.F(ExN,{data:G.data,
onSelected:V,selectedKey:K}))}}),_.F(_.M,{cond:p,
then:function(){return _.F("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.F("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.F(_.Sj,{text:function(){var G;return(G=X.data())==null?void 0:G.helpfulReasonQuestion}})),_.F(_.l4,{data:function(){var G;
return(G=X.data())==null?void 0:G.helpfulReasons}},{checkboxGroupViewModel:function(G){return _.F(GQZ,{data:G.data,
onItemTap:t,selectedKeys:q,controlledMode:!0})}}))}}),_.F(_.M,{cond:z,
then:function(){return _.F("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.F("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.F(_.Sj,{text:function(){var G;return(G=X.data())==null?void 0:G.notHelpfulReasonQuestion}})),_.F(_.l4,{data:function(){var G;
return(G=X.data())==null?void 0:G.notHelpfulReasons}},{checkboxGroupViewModel:function(G){return _.F(GQZ,{data:G.data,
onItemTap:W,selectedKeys:e,controlledMode:!0})}}))}}),_.F(_.M,{cond:function(){return!p()&&!z()},
then:function(){return _.F(_.l4,{data:function(){var G;return(G=X.data())==null?void 0:G.helpfulNoteFeatures}},{alertBannerViewModel:function(G){return _.F("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.F(aQ$,{data:G.data}))}})}}))},"Hi"),"yt-note-user-rating-view-model",{props:{data:_.zh}});_.gC(M4,"yt-note-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=_.Aw(OSa,_.Eq(function(){var l;return(l=X.data())==null?void 0:l.noteFeedEntityKey},""));
return _.F("yt-notes-wrapper-view-model",{class:_.Qr("ytNotesWrapperViewModelHost")},_.F(_.M,{cond:function(){var l,b,U;return!((l=X.data())==null||!l.existingNotes)||!((b=X.data())==null||!b.currentNote)&&!((U=H())==null||!U.contributorNote)},
then:function(){return _.F(_.Xi,null,_.F(_.l4,{data:function(){var l,b,U,K;return((b=_.f((l=X.data())==null?void 0:l.currentNote,oRd))==null?0:(U=b.noteData)==null?0:U.isPublished)?(K=X.data())==null?void 0:K.currentNote:void 0}},{noteViewModel:function(l){return _.F(M4,{data:l.data})}}),_.F(_.l4,{data:function(){var l;
return(l=X.data())==null?void 0:l.existingNotes}},{noteViewModel:function(l){var b=l.data;
return _.F(_.M,{cond:function(){var U,K;return(U=b())==null?void 0:(K=U.noteData)==null?void 0:K.isPublished},
then:function(){return _.F(M4,{data:b})}})}}),_.F(_.l4,{data:function(){var l,b,U,K,w;
return((b=_.f((l=X.data())==null?void 0:l.currentNote,oRd))==null?0:(U=b.noteData)==null?0:U.isPublished)||(K=H())==null||!K.contributorNote?void 0:(w=X.data())==null?void 0:w.currentNote}},{noteViewModel:function(l){return _.F(M4,{data:l.data})}}),_.F(_.l4,{data:function(){var l;
return(l=X.data())==null?void 0:l.existingNotes}},{noteViewModel:function(l){var b=l.data;
return _.F(_.M,{cond:function(){var U,K;return!((U=b())==null?0:(K=U.noteData)==null?0:K.isPublished)},
then:function(){return _.F(M4,{data:b})}})}}))},
else:function(){return _.F(_.l4,{data:function(){var l;return(l=X.data())==null?void 0:l.zeroStateData}},{contributorZeroStateViewModel:kQa})}}))},"Ii"),"yt-notes-wrapper-view-model",{props:{data:_.zh}});var r5x=new Map;var LCa;var Ysl=new Map;var iKy=_.Z(function(X){var H=_.gT(X,{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}),l=H.label,b=H.hideLabel,U=H.text,K=H.placeholder,w=H.hint;X=H.rows;var d=H.overflowStyle,B=H.outline,q=H.disabled,u=H.disableNewLines,e=H.onInput,y=H.ariaLabel,V=H.timePickerData,p=H.error,z=H.hasError,t=H.validation,W=H.characterLimit,
G=_.SJ("textarea");H=_.C(_.Gx(function(){return U()}));
var r=H.next().value,Q=H.next().value;H=_.C(_.FU(!1,void 0,"PheJId"));var v=H.next().value,J=H.next().value,Y=function(){J(!0)},Uy=function(){J(!1)};
_.DR(function(){var Mv=G.value,nd=d(),$U=r();nd==="expand-vertically"&&$U&&A5x(Mv);G.value.addEventListener("focusin",Y);G.value.addEventListener("focusout",Uy)});
_.E2(function(){G.value.removeEventListener("focusin",Y);G.value.removeEventListener("focusout",Uy)});
var Cy=function(){var Mv;return(Mv=t())==null?void 0:Mv.validate(r())},sy=function(){var Mv,nd,$U;
return($U=(Mv=p())==null?void 0:Mv.maxChars)!=null?$U:(nd=W())==null?void 0:nd.maxChars},FO=function(){return sy()===void 0?!1:!Cy()&&r().length>sy()},ub=function(){var Mv,nd;
return((Mv=p())==null?void 0:Mv.errorMessage)||Cy()||FO()&&((nd=W())==null?void 0:nd.errorMessage)},g8=function(){return!!ub()||z()};
H=_.Nq(function(Mv){if(!Mv.currentTarget)return!1;Mv=Mv.currentTarget;Q(Mv.value);d()==="expand-vertically"&&A5x(Mv);e==null||e(Mv.value);return!0});
var mm=_.Nq(function(Mv){u()&&Mv.key==="Enter"&&Mv.preventDefault();return!1}),QZ=_.Nq(function(){G.value.focus()}),Bz=function(){return K()||l()},dt={},TK={},sG={},f_={};
return _.F("textarea-shape",{class:_.Qr("ytStandardsTextareaShapeHost",(dt.ytStandardsTextareaShapeTimePicker=function(){var Mv;return(Mv=V())==null?void 0:Mv.useTimePickerStyles},dt))},_.F("div",{class:_.Qr("ytStandardsTextareaShapeTextareaContainer",(TK.ytStandardsTextareaShapeTextareaContainerOutline=B,TK.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=q,TK.ytStandardsTextareaShapeTextareaContainerOutlineError=g8,TK.ytStandardsTextareaShapeTextareaContainerLabelHidden=b,TK)),
"on:click":QZ},_.F("label",{class:_.Qr("ytStandardsTextareaShapeLabel",(sG.ytStandardsTextareaShapeLabelFocused=v,sG.ytStandardsTextareaShapeLabelDisabled=q,sG.ytStandardsTextareaShapeLabelError=function(){return g8()&&!q()},sG.ytStandardsTextareaShapeLabelHidden=function(){return b()||!v()&&!r()&&!!Bz()},sG))},l),_.F("div",{class:_.Qr("ytStandardsTextareaShapePlaceholder",(f_.ytStandardsTextareaShapePlaceholderVisible=function(){return!v()&&!r()},f_)),
"aria-hidden":"true"},Bz),_.F("textarea",{el:G,"aria-label":y,class:"ytStandardsTextareaShapeTextarea",rows:X,disabled:q,placeholder:Bz,"prop:value":r,"on:input":H,"on:keydown":mm})),_.F(_.M,{cond:function(){return w()&&!g8()},
then:function(){var Mv={};return _.F("div",{class:_.Qr("ytStandardsTextareaShapeHint",(Mv.ytStandardsTextareaShapeHintDisabled=q,Mv))},_.F("div",{class:"ytStandardsTextareaShapeHintHintMessage"},w))}}),_.F(_.M,{cond:ub,
then:function(){return _.F(ZKp,{disabled:q},_.F("div",{class:"ytStandardsTextareaShapeErrorMessage"},ub),_.F(_.M,{cond:FO,then:function(){return _.F("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return r().length+"/"+sy()})}}))}}))},"Ji");
iKy.idomCompat={callbacks:{onInput:!0}};var ZKp=_.Z(function(X){var H={};return _.F("div",{class:_.Qr("ytStandardsTextareaShapeError",(H.ytStandardsTextareaShapeErrorDisabled=X.disabled,H)),role:"alert"},_.F(_.Ja,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),X.children)},"Ki");var vxx=_.Z(function(X){var H=X.data;var l=X.controlledMode;var b=X.disableFormsApiMode;var U=X.text;var K=X.onInput;var w=X.characterLimit;var d=X.validation;X=X.disabled;var B=function(){return H().formFieldMetadata},q=function(){return(l==null?0:l())?2:!B()||b!=null&&b()?1:3};
_.DR(function(){q()===2?(U==null?void 0:U())===void 0&&_.n2(Error("Kl")):q()===3&&((U==null?void 0:U())!==void 0&&_.n2(Error("Ll")),(d==null?void 0:d())!==void 0&&_.n2(Error("Ml")),(w==null?void 0:w())!==void 0&&_.n2(Error("Nl")),K!==void 0&&_.n2(Error("Ol")))});
var u=IIZ(B);return _.F("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.F(iKy,{text:function(){if(q()===2)return U==null?void 0:U();if(q()===3){var e;return(e=u())==null?void 0:e.value}return""},
label:function(){var e;return(e=H().contentProperties)==null?void 0:e.labelText},
hideLabel:function(){var e;return(e=H().displayProperties)==null?void 0:e.hideLabel},
placeholder:function(){var e;return(e=H().contentProperties)==null?void 0:e.placeholderText},
hint:function(){var e;return(e=H().contentProperties)==null?void 0:e.hintText},
outline:function(){var e;return!((e=H().displayProperties)==null?0:e.hideBorder)},
overflowStyle:function(){var e;return((e=H().displayProperties)==null?0:e.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:X,disableNewLines:function(){var e;return(e=H().displayProperties)==null?void 0:e.disableNewLines},
onInput:function(e){if(q()===3){var y;(y=u())==null||y.updateValue(e)}else K==null||K(e)},
error:function(){if(q()===3){var e;if(((e=u())==null?0:e.errors)&&u().errors.length>0){e=u().errors[0].message;var y,V=(y=H().contentProperties)==null?void 0:y.maxCharacterCount;return{errorMessage:e,maxChars:V}}}},
validation:d,characterLimit:w,rows:function(){var e;return(e=H().displayProperties)==null?void 0:e.rows}}))},"Li");var OKd=_.Z(function(X){var H=X.data;return _.F("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.F(iKy,{text:X.text,label:function(){var l;return(l=H().contentProperties)==null?void 0:l.labelText},
placeholder:function(){var l;return(l=H().contentProperties)==null?void 0:l.placeholderText},
hint:function(){var l;return(l=H().contentProperties)==null?void 0:l.hintText},
outline:function(){var l;return!((l=H().displayProperties)==null?0:l.hideBorder)},
overflowStyle:function(){var l;return((l=H().displayProperties)==null?0:l.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var l;return(l=H().displayProperties)==null?void 0:l.disableNewLines},
onInput:X.onInput,characterLimit:X.characterLimit,validation:X.validation,rows:function(){var l;return(l=H().displayProperties)==null?void 0:l.rows}}))},"Mi");var mmy=_.Z(function(X){var H=_.C(_.Gx(function(){var Cy,sy;return((Cy=X.data().structuredContextNoteFormSchema)==null?0:(sy=Cy.initialValues)==null?0:sy.noteBody)?X.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),l=H.next().value,b=H.next().value;
H=_.C(_.Gx(function(){X.data();return!1}));
var U=H.next().value,K=H.next().value;H=_.C(_.Gx(function(){X.data();return!1}));
var w=H.next().value,d=H.next().value;H=_.C(_.Gx(function(){var Cy,sy;return((Cy=X.data().structuredContextNoteFormSchema)==null?0:(sy=Cy.initialValues)==null?0:sy.timestamp)?X.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var B=H.next().value,q=H.next().value;H=_.C(_.Gx(function(){X.data();return!1}));
var u=H.next().value,e=H.next().value;H=_.C(_.Gx(function(){var Cy,sy;return((Cy=X.data().structuredContextNoteFormSchema)==null?0:(sy=Cy.initialValues)==null?0:sy.sources)?[X.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var y=H.next().value,V=H.next().value;H=_.C(_.Gx(function(){X.data();return!1}));
var p=H.next().value,z=H.next().value;H=_.C(_.Gx(function(){return!1}));
var t=H.next().value,W=H.next().value;_.DR(function(){var Cy;BRZ((Cy=X.data().structuredContextNoteFormSchema)==null?void 0:Cy.id,{isSubmitting:t,onSubmit:function(){W(!0);var sy=RZ5(l(),B(),y(),X.data()),FO=_.jJ().resolve(_.Vr);sy&&FO&&FO.resolveCommand(sy,{commandController:{onSuccess:function(){W(!1)}}})},
isValid:function(){return U()&&!w()&&!u()&&!p()}})});
var G=function(Cy){if(Cy!==void 0&&(b(Cy),!U()&&Cy.length>0&&K(!0),U())){var sy=lsd(X.data());if(sy){var FO=sy.minLength;sy=sy.maxLength;FO&&Cy.length<FO?d(!0):sy&&Cy.length>sy?d(!0):d(!1)}}},r=function(Cy){if(Cy!==void 0){q(Cy);
if(Cy.length>0){var sy,FO,ub,g8,mm=bGC((sy=X.data())==null?void 0:(FO=sy.structuredContextNoteFormSchema)==null?void 0:(ub=FO.fieldSchemas)==null?void 0:(g8=ub.timestamp)==null?void 0:g8.validationSchema);if(mm&&(sy=mm.regex)&&!(new RegExp(sy)).test(Cy)){e(!0);return}}e(!1)}},Q=function(Cy){if(Cy!==void 0){var sy=Cy.split(/[ \n]/).map(function(FO){return FO.trim()});
V(sy);if(Cy.length>0)for(Cy=_.C(sy),sy=Cy.next();!sy.done;sy=Cy.next())if(!K9Y(sy.value)){z(!0);return}z(!1)}},v=function(){return{validate:function(Cy){if(U()){var sy=lsd(X.data());
if(sy){var FO=sy.minLength;sy=sy.translations;if(FO&&Cy.length<FO)return sy==null?void 0:sy.minLengthErrorMessage}}}}},J=function(){var Cy=lsd(X.data()),sy=Cy==null?void 0:Cy.maxLength,FO;
Cy=Cy==null?void 0:(FO=Cy.translations)==null?void 0:FO.maxLengthErrorMessage;if(sy&&Cy)return{maxChars:sy,errorMessage:Cy}},Y=function(){return{validate:function(Cy){if(Cy){var sy,FO,ub,g8,mm=bGC((sy=X.data())==null?void 0:(FO=sy.structuredContextNoteFormSchema)==null?void 0:(ub=FO.fieldSchemas)==null?void 0:(g8=ub.timestamp)==null?void 0:g8.validationSchema);
if(mm&&(sy=mm.regex,mm=mm.translations,sy&&!(new RegExp(sy)).test(Cy)))return mm==null?void 0:mm.regexErrorMessage}}}},Uy=function(){return{validate:function(Cy){if(Cy){var sy,FO,ub,g8,mm=$fN((sy=X.data())==null?void 0:(FO=sy.structuredContextNoteFormSchema)==null?void 0:(ub=FO.fieldSchemas)==null?void 0:(g8=ub.sources)==null?void 0:g8.validationSchema);
if(mm&&(sy=mm.translations,sy==null?0:sy.selectedErrorMessage))for(Cy=Cy.split(/[ \n]/).map(function(QZ){return QZ.trim()}),Cy=_.C(Cy),FO=Cy.next();!FO.done;FO=Cy.next())if(!K9Y(FO.value))return Cy=void 0,(Cy=sy)==null?void 0:Cy.selectedErrorMessage}}}};
return _.F("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.F("div",{class:"ytStructuredContextNoteViewModelTextField"},_.F(_.l4,{data:function(){var Cy;return(Cy=X.data())==null?void 0:Cy.noteContents}},{textFormFieldViewModel:function(Cy){return _.F(OKd,{data:Cy.data,
onInput:G,validation:v,characterLimit:J})},
textFieldViewModel:function(Cy){return _.F(vxx,{data:Cy.data,disableFormsApiMode:!0,onInput:G,validation:v,characterLimit:J})}})),_.F("div",{class:"ytStructuredContextNoteViewModelTextField"},_.F(_.l4,{data:function(){var Cy;
return(Cy=X.data())==null?void 0:Cy.noteTimestamp}},{textFormFieldViewModel:function(Cy){return _.F(OKd,{data:Cy.data,
onInput:r,validation:Y})},
textFieldViewModel:function(Cy){return _.F(vxx,{data:Cy.data,disableFormsApiMode:!0,onInput:r,validation:Y})}})),_.F("div",{class:"ytStructuredContextNoteViewModelTextField"},_.F(_.l4,{data:function(){var Cy;
return(Cy=X.data())==null?void 0:Cy.noteSources}},{textFormFieldViewModel:function(Cy){return _.F(OKd,{data:Cy.data,
onInput:Q,validation:Uy})},
textFieldViewModel:function(Cy){return _.F(vxx,{data:Cy.data,disableFormsApiMode:!0,onInput:Q,validation:Uy})}})))},"Ni");
mmy.idomCompat=!0;_.gC(mmy,"yt-structured-context-note-view-model",{props:{data:_.zh}});var Q7U=_.Z(function(X){var H=_.C(_.Gx(function(){var K;if((K=X.controlled)==null?0:K.call(X))return[];var w;return(((w=X.data())==null?void 0:w.chips)||[]).map(function(d){d=_.f(d,_.pk);if(d==null?0:d.selected)return CDY(d.chipValue)}).filter(function(d){return d!==void 0})})),l=H.next().value,b=H.next().value,U=function(K){var w=CDY(K.chipValue);
if(w!==void 0){var d;if((d=X.controlled)==null?0:d.call(X))return void X.controlled().onTap(w);K=l().includes(w)?[].concat(_.LJ(l().filter(function(q){return q!==w}))):[].concat(_.LJ(l()),[w]);
b(K);var B;if((B=X.uncontrolled)==null?0:B.call(X))X.uncontrolled().onUpdate(K)}};
return _.F("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.F(_.P$,{each:function(){return X.data().chips||[]}},function(K){return _.F("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.F(_.d1Q,{data:function(){return _.f(K,_.pk)},
selected:function(){var w;if(w=_.f(K,_.pk)){var d=CDY(w.chipValue);if(d!==void 0){var B;w=((B=X.controlled)==null?0:B.call(X))?X.controlled().selectedValues.includes(d):l().includes(d)}else w=void 0}else w=!1;return w},
callback:U}))}))},"Oi");var THA=_.Z(function(X){var H=X.data;var l=function(){var d;return((d=H())==null?void 0:d.flowStateKey)||""},b=_.Aw(_.iD,l),U=function(){var d;
return(d=_.f(b(),Qr5))==null?void 0:d.chips},K=function(d){if(d!==void 0){var B=U()||[];
B=B.find(function(q){return q===d})?B.filter(function(q){return q!==d}):[].concat(_.LJ(B),[d]);
B=Object.assign({},b(),{feedbackFormFlowState:Object.assign({},_.f(b(),Qr5),{chips:B})});_.Wc(_.Us("flowStateEntity",l(),B))}},w=function(){var d;
return _.f((d=H())==null?void 0:d.inputBox,TeZ)};
X=_.qO(function(d){var B=w();B=!(B==null?0:B.maxChars)||d.length<=B.maxChars;d=Object.assign({},b(),{feedbackFormFlowState:Object.assign({},_.f(b(),Qr5),{detail:d}),abuseReportFlowState:Object.assign({},_.f(b(),dE),{navigationEnabled:B})});_.Wc(_.Us("flowStateEntity",l(),d))},150);
return _.F("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.F("div",{class:"ytFeedbackFormViewModelChips"},_.F(_.l4,{data:function(){var d;return(d=H())==null?void 0:d.chipSelection}},{chipSelectionFormFieldViewModel:function(d){return _.F(Q7U,{data:d.data,
controlled:function(){return{selectedValues:U()||[],onTap:K}}})}})),_.F("div",{class:"ytFeedbackFormViewModelInputBox"},_.F(iKy,{text:function(){var d;
return(d=_.f(b(),Qr5))==null?void 0:d.detail},
placeholder:function(){var d;return((d=w())==null?void 0:d.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var d=w();if(d&&d.maxChars)return{maxChars:d.maxChars,errorMessage:d.maxCharsExceededErrorMessage||""}},
onInput:X})),_.F("div",{class:"ytFeedbackFormViewModelFooterText"},_.F(_.Sj,{text:function(){return H().footerText}})))},"Pi");
THA.idomCompat=!0;_.gC(THA,"yt-feedback-form-view-model",{props:{data:_.zh}});var NHC=_.Z(function(X){var H=X.data;var l=_.Aw(RPN,function(){return H().flowStateKey||""}),b=function(){var U;
_.yr((U=_.f(l(),dE))==null?void 0:U.navigationCommand)};
return _.F("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.F("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.F(_.l4,{data:function(){return H().cancelButton}},{buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:b})}}),_.F(_.l4,{data:function(){var U;
if(H().navButton){var K=Object;var w=K.assign,d=_.f(H().navButton,_.fk),B=((U=_.f(l(),dE))==null?0:U.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",q,u;U=_.f((q=_.f(l(),dE))==null?void 0:q.navigationCommand,_.qq);q=(u=_.f(U,_.aL))==null?void 0:u.url;K={buttonViewModel:w.call(K,{},d,{state:B,iconName:q?"OPEN_IN_NEW":""})}}else K=void 0;return K}},{buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:b})}})))},"Qi");
NHC.idomCompat=!0;_.gC(NHC,"yt-report-form-bottom-bar-view-model",{props:{data:_.zh}});var czx=_.Z(function(X){var H=X.nextStep;return _.F("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.F("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.F(_.Ja,{icon:function(){return H().iconName||""}})),_.F("div",null,_.F(_.Sj,{text:function(){return H().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ri"),j7e=_.Z(function(X){var H=X.data;
var l,b=(l=_.jJ().resolve(_.c$(_.b4)))==null?void 0:l(),U=_.Aw(_.iD,function(){return H().flowStateKey||""});
return _.F("yt-report-form-confirmation-page-view-model",{class:function(){var K;return((K=_.f(U(),dE))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.F("div",{class:function(){var K;
return((K=_.f(U(),dE))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.F(_.Dp,{data:function(){return b&&H().imageDark?H().imageDark:H().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.F("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.F("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return H().confirmationHeader}),_.F("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.F(_.Sj,{text:function(){return H().confirmationText}})),_.F("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.F(_.Sj,{text:function(){return H().lawEnforcementText}})),
_.F("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return H().whatToExpectHeader}),_.F(_.M,{cond:function(){return H().nextSteps},
then:function(K){return _.F("div",null,_.F(_.P$,{each:K},function(w){return _.F(czx,{nextStep:w})}))}}),_.F(_.M,{cond:function(){return H().legalReportText},
then:function(K){return _.F("div",null,_.F(_.Sj,{text:K,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Si");
j7e.idomCompat=!0;_.gC(j7e,"yt-report-form-confirmation-page-view-model",{props:{data:_.zh}});var rza=_.Z(function(X){var H=X.data;var l=function(){var K;return((K=_.f(H().inputBox,TeZ))==null?void 0:K.maxChars)||500},b=function(){return H().flowStateKey||""},U=_.Aw(_.iD,b);
X=_.qO(function(K){K=Object.assign({},U(),{flowFormState:{isValid:K.length<=l()},abuseReportFlowState:{userComments:K,navigationEnabled:!(K.length>l()),isReportFormDirty:!0}});_.tF().dispatch(_.Mf("flowStateEntity",b(),K))},150);
_.DR(function(){var K=Object.assign({},U(),{flowFormState:{isValid:!0}});_.tF().dispatch(_.Mf("flowStateEntity",b(),K))});
return _.F("yt-report-form-details-page-view-model",{class:function(){var K;return((K=_.f(U(),dE))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.F("h1",{class:function(){var K;
return((K=_.f(U(),dE))==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return H().detailsPageHeader}),_.F("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.F(_.Sj,{text:function(){return H().bodyText}})),_.F("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.F(iKy,{label:function(){var K;
return((K=_.f(H().inputBox,TeZ))==null?void 0:K.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var K;return{errorMessage:((K=_.f(H().inputBox,TeZ))==null?void 0:K.maxCharsExceededErrorMessage)||"",maxChars:l()}},
onInput:X})))},"Ti");
rza.idomCompat=!0;_.gC(rza,"yt-report-form-details-page-view-model",{props:{data:_.zh}});var JzC=_.Z(function(X){var H=X.data;var l=function(){return H().flowStateKey||""},b=_.Aw(_.iD,l),U=function(){return _.f(b(),dE)};
return _.F("yt-report-form-reason-select-page-view-model",{class:function(){var K;return((K=U())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.F("h1",{class:function(){var K;
return((K=U())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return H().pageHeader}),_.F("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.F(_.Sj,{text:function(){return H().bodyText}})),_.F("div",{class:function(){var K;
return((K=U())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.F(ExN,{data:function(){return _.f(H().radioButtonGroup,kFa)},
onSelected:function(K,w){K=Object.assign({},b(),{abuseReportFlowState:Object.assign({},U(),{reasonKey:w.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:w.command})});_.Wc(_.Us("flowStateEntity",l(),K))},
selectedKey:function(){var K;return(K=U())==null?void 0:K.reasonKey},
groupName:"report-form-reason-select-page"})))},"Ui");
JzC.idomCompat=!0;_.gC(JzC,"yt-report-form-reason-select-page-view-model",{props:{data:_.zh}});var L6l=_.Z(function(X){var H=X.data;var l,b=(l=_.jJ().resolve(_.c$(_.b4)))==null?void 0:l();return _.F("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.F("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.F(_.Dp,{data:function(){return b&&H().imageDark?H().imageDark:H().image},
alt:""})),_.F("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.F("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return H().header}),_.F(_.Sj,{text:function(){return H().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Vi");
L6l.idomCompat=!0;_.gC(L6l,"yt-report-form-sign-in-page-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;var l=function(){return H().titleSuperscript},b=function(){return H().answersShelf},U=function(){return H().videoShelf},K=function(){var v;
return(v=H().textInputPlaceholder)==null?void 0:v.content},w=function(){return H().showOpenTextInput},d=function(){var v;
return(v=H().textInputValue)==null?void 0:v.content},B="",q=function(){return H().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
X=_.C(_.FU("",void 0,"ioQph"));var u=X.next().value,e=X.next().value;X=_.C(_.FU(!1,void 0,"Srxao"));var y=X.next().value,V=X.next().value,p=function(){return{state:y()||u()?"active":"disabled",disabled:!(y()||u())}};
_.xy(function(){w()&&d()&&e(d())});
var z=function(v){var J=H().onUpdateText;J&&_.yr(J,{form:{userQuery:v}});e(v)},t=_.qO(function(v){z(v.target.value.trim())},150),W=_.Nq(function(v){var J;
B=(J=v.target.value)==null?void 0:J.trim();t(v);return!1}),G=_.Nq(function(v){v.key==="Enter"&&(y()||u())&&(z(v.target.value.trim()),Q());
return!1}),r=function(v,J){V(J);
if(J){if(H().isMultiTurnFlow&&!B){var Y;z((Y=v==null?void 0:v.text)!=null?Y:"")}H().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&Q()}else e(B)},Q=function(){var v=_.f(H().nextButtonViewModel,_.fk);
if(v==null?0:v.trackingParams){v=_.$l(v.trackingParams);var J=_.Bi();J&&v&&_.Di(J,v,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(v=H().onNextStepCommand)&&_.yr(v)};
X={};return _.F("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.F("div",{class:"ytwTalkToRecsTopCornerButton"},_.F(_.l4,{data:function(){return H().topCornerButton}},{buttonViewModel:_.Qk})),_.F("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.F("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.F(_.Sj,{text:function(){return H().title}}),_.F(_.M,{cond:l,
then:function(){return _.F("sup",{class:"ytwTalkToRecsSuperScript"},_.F(_.Sj,{text:l}))}})),_.F("div",{class:"ytwTalkToRecsSubtitle"},_.F(_.Sj,{text:function(){return H().subtitle}})),_.F("div",{class:"ytwTalkToRecsResultsShelf"},_.F(_.M,{cond:b,
then:function(){return _.F(_.l4,{data:b},{chipsShelfViewModel:function(v){return _.F("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.F(_.bm,{data:v.data,callback:r,selectionBehavior:q}))}})}}),_.F(_.M,{cond:U,
then:function(){return _.F(_.l4,{data:U},{horizontalShelfViewModel:function(v){return _.F("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.F(_.W3,{data:v.data,thumbnailAspectRatio:0}))}})}})),_.F("div",{class:_.Qr("ytwTalkToRecsRefinementContainer",(X.ytwTalkToRecsBottomMargin=function(){return H().isMultiTurnFlow},X))},_.F(_.M,{cond:w,
then:function(){return _.F("div",{class:"ytwTalkToRecsUserInputBox"},_.F("input",{type:"text",class:"ytwTalkToRecsTextInput",title:K,placeholder:K,value:u,"on:input":W,"on:keyup":G,maxlength:200}))}}),_.F(_.l4,{data:function(){return H().isMultiTurnFlow?H().nextButtonViewModel:void 0}},{buttonViewModel:function(v){return _.F("div",{class:"ytwTalkToRecsFlowControlButtons"},_.F(_.Qk,{data:v.data,
buttonOverrides:p}))}}),_.F(_.l4,{data:function(){return H().isMultiTurnFlow?H().resetButtonViewModel:void 0}},{buttonViewModel:function(v){return _.F("div",{class:"ytwTalkToRecsFlowControlButtons"},_.F(_.Qk,{data:v.data,
onClick:function(){var J,Y=(J=_.f(H().resetButtonViewModel,_.fk))==null?void 0:J.onTap;Y&&_.yr(Y)}}))}}))))},"Xi"),"yt-talk-to-recs-view-model",{props:{data:_.zh}});var wxp={sources:[{clientResource:{imageName:"CHECK"}}]};var Yk$=_.Z(function(X){var H=_.SJ("div");X=_.gT(X,{error:void 0});var l=X.data,b=X.error,U=X.onSelected;X=X.className;var K=_.C(_.Gx(function(){return F9y(l())})),w=K.next().value,d=K.next().value;
Mgl(l,function(V){d(V);var p,z,t=hZY((p=l().options)==null?void 0:(z=p[V])==null?void 0:z.value,l().type);U==null||U(t);H.value.focus()});
K=_.Nq(function(){if(!l().disabled){var V=l(),p=w(),z=H.value;V.options&&(V=dfU(V.options,p,V.label),_.jJ().resolve(_.hT).openSheet({viewModel:V},z))}});
var B=_.ChL(),q=function(){return!!b()},u=function(){return!!l().disabled},e={},y={};
return _.F("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.F("div",{class:_.Qr("ytDropdownViewModelDropdownContainer",X,(e.ytDropdownViewModelDropdownContainerErrorBorder=q,e.ytDropdownViewModelDropdownContainerDisabled=u,e)),"on:click":K,el:H,role:"combobox",tabindex:0,"on:keydown":B,"aria-invalid":q,"aria-disabled":u,"aria-describedby":function(){return q()?"dropdown-view-model-error":void 0}},_.F("div",{class:"ytDropdownViewModelText"},BWe(l,q,w),qFZ(l,w)),_.F("div",{class:_.Qr("ytDropdownViewModelChevronDown",
(y.ytDropdownViewModelChevronDownDisabled=u,y))},_.F(_.Ja,{icon:"CHEVRON_DOWN"}))),sBx(l,b))},"Yi");_.gC(_.Z(function(X){var H=X.data;var l=function(U){var K=eZd(H());K.videoMetadata||(K.videoMetadata={});K.videoMetadata.sponsorshipsMetadata||(K.videoMetadata.sponsorshipsMetadata={});K.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(U)},b=function(U){var K=eZd(H());
K.scheduledRedirectMetadata||(K.scheduledRedirectMetadata={});K.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(U)};
return _.F("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.F("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.F("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.F(_.Sj,{text:function(){return H().title}}),_.F(_.Ja,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.F(_.Sj,{text:function(){return H().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.F(_.l4,{data:function(){return H().tierChoices}},{dropdownViewModel:function(U){return _.F("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.F(Yk$,{data:U.data,
onSelected:l}))}}),_.F(_.l4,{data:function(){return H().startTimeChoices}},{dropdownViewModel:function(U){return _.F("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.F(Yk$,{data:U.data,
onSelected:b}))}}),_.F(_.Sj,{text:function(){return H().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.F("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.F(_.l4,{data:function(){return H().scheduleButton}},{panelFooterViewModel:sD})))},"Zi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;X=X.className===void 0?"":X.className;var l=_.Aw(RPN,function(){return H().flowStateEntityKey||""}),b={};
b=_.Qr("ytFlowBottomBarViewModelFlowBottomBarButtons",(b.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},b));
var U={},K=_.Qr("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",b,(U.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},U.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},U));
U={};var w=_.Qr("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",b,(U.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},U.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},U));
b={};b=_.Qr("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},b.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return H().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
b));
X=_.Qr("ytFlowBottomBarViewModelHost",X);return _.F("yt-flow-bottom-bar-view-model",{class:X},_.F(_.M,{cond:function(){var d;return(d=H())==null?void 0:d.textSection},
then:function(d){return _.F("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.F(_.Sj,{text:d}))}}),_.F("div",{class:b},_.F(_.l4,{data:function(){return H().secondaryButton}},{buttonViewModel:function(d){return _.F(_.Qk,{data:d.data,
className:w})}}),_.F(_.l4,{data:function(){return H().primaryButton}},{buttonViewModel:function(d){return _.F(_.Qk,{data:d.data,
className:K,buttonOverrides:function(){var B;return{disabled:!((B=l())==null||!B.primaryButtonDisabled)}}})}})))},"$i"),"yt-flow-bottom-bar-view-model",{props:{data:_.zh,
className:_.ta}});var IQA="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),u3=function(){var X=_.a.apply(this,arguments)||this;X.enableScrollingFix=!0;X.bottomBar=!1;X.fitContent=!1;return X};
_.S(u3,_.a);_.R=u3.prototype;_.R.ready=function(){_.P("enable_pdp_icon_prefetch")&&XAl(_.jJ().resolve(_.Zfa),0,IQA)};
_.R.focus=function(X){this.topBar?_.mQ(this.topBar,X):this.paperDialog.focus(X)};
_.R.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())};
_.R.onDataChanged=function(){var X;this.fitContent=!((X=this.data)==null||!X.fitContent);var H;this.bottomBar=!((H=this.data)==null||!H.bottomBar)};
_.R.onProgressChanged=function(){var X,H,l=((H=(X=this.data)==null?void 0:X.progress)!=null?H:0)*100;this.progressElement.style.width=l+"%"};
_.R.isProgressHidden=function(){var X;return!((X=this.data)==null?0:X.progress)};
_.R.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(X){return X&&!X.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
u3.prototype.onProgressChanged=u3.prototype.onProgressChanged;u3.prototype.onDataChanged=u3.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],u3.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],u3.prototype,"enableScrollingFix",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],u3.prototype,"bottomBar",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],u3.prototype,"fitContent",void 0);_.T([_.A2("#progress"),_.N("design:type",HTMLElement)],u3.prototype,"progressElement",void 0);_.T([_.A2("#scroller"),_.N("design:type",Object)],u3.prototype,"JSC$20980_scroller",void 0);_.T([_.A2("ytd-flow-top-bar-renderer"),_.N("design:type",HTMLElement)],u3.prototype,"topBar",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u3.prototype,"onDataChanged",null);_.T([_.Yh("data.progress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u3.prototype,"onProgressChanged",null);_.T([_.sq({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],u3);
_.O(u3,"ytd-flow-step-renderer",function(){if(yUZ!==void 0)return yUZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return yUZ=X},{mode:1});var eX=function(X){this.resolveCommand=X;this.steps={}},Az$=function(X,H){H=_.C(H||[]);
for(var l=H.next();!l.done;l=H.next()){l=l.value;var b=Object.values(l)[0],U=void 0;if((U=b)==null?0:U.stepId)X.steps[b.stepId]=l}},Hs5=function(X,H){var l,b,U,K,w;
return _.h(function(d){if((l=X.state)==null||!l.currentStepId)return d.return(void 0);b=X.getCurrentStep();if(!b)return d.return(X_$(X));if(U=_.f(b,_.Kk))X.logVEScreen(U),((K=U)==null?0:K.onStepStartCommand)&&X.resolveCommand((w=U)==null?void 0:w.onStepStartCommand,{});U&&H&&(X.logFlowEvent(U,H),H.steps&&!H.steps.includes(b)&&H.steps.push(b));return d.return(b)})};
eX.prototype.back=function(){var X;(X=this.state)!=null&&X.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
eX.prototype.handleUpdateFlowCommand=function(X){X.steps&&Az$(this,X.steps);X.entityUpdateCommand&&this.resolveCommand(X.entityUpdateCommand,{});X.flowContinuationCommand&&(X=X.flowContinuationCommand)&&(this.getFlowContinuationCommand=X);this.awaitFlowContinuation&&(X=this.getCurrentStep(),this.awaitFlowContinuation(X),this.awaitFlowContinuation=void 0)};
eX.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var X_$=function(X){return _.h(function(H){return X.getFlowContinuationCommand?H.return(new Promise(function(l){X.awaitFlowContinuation=l;X.getFlowContinuationCommand&&X.resolveCommand(X.getFlowContinuationCommand,{flow_state:X.state})})):H.return(Promise.resolve(void 0))})};
eX.prototype.getCurrentStep=function(){var X;if((X=this.state)!=null&&X.currentStepId)return this.steps[this.state.currentStepId]};
eX.prototype.logVEScreen=function(X){var H;((H=X.screenLoggingData)==null?0:H.screenVeType)&&_.jR(_.lv(),X.screenLoggingData.screenVeType)};
eX.prototype.logFlowEvent=function(X,H){var l,b,U,K;((l=H.flowLoggingData)==null?0:l.eventNamespace)&&((b=X.flowEventData)==null?0:b.eventType)&&((U=X.flowEventData)==null?0:U.eventMetadata)&&((K=H.flowLoggingData)==null?0:K.flowType)&&(X=_.j0(H.flowLoggingData.eventNamespace,X.flowEventData.eventType,X.flowEventData.eventMetadata),_.rR().logFlowEvent(X,H.flowLoggingData.flowType))};
_.ja.Object.defineProperties(eX.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.state)==null?void 0:X.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.state)!=null&&X.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(H,l){l.key&&l.value&&(H[l.key]=l.value);return H},{})}}});var yS=function(){var X=_.a.apply(this,arguments)||this;X.flowState=_.P("web_use_flow_state_manager")?void 0:new eX(function(H,l){l=l===void 0?{}:l;_.JF.instance.resolveCommand(H,{form:{form:l,element:X.hostElement}})});
X.JSC$20991_flowStateManager=_.P("web_use_flow_state_manager")?_.jJ().resolve(_.$6):void 0;X.currentTargetId="";X.initialState=!0;X.isLoading=!1;X.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"};X.containsTalkToRecs=!1;return X};
_.S(yS,_.a);_.R=yS.prototype;_.R.onPopupClosed=function(X){if(!X||this.hostElement===X.detail.popupRenderer){if(this.JSC$20991_flowStateManager){var H;((H=this.data)==null?0:H.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}};
_.R.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"}}}};
_.R.focus=function(X){var H=this;_.fc(function(){var l=_.mh(H.hostElement).querySelector("ytd-flow-step-renderer");(l==null?0:l.topBar)?l.focus(X):H.topBar&&_.mQ(H.topBar,X)},1)};
_.R.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.R.computeTopBarHidden=function(X){var H;return!((H=_.f(X,_.Kk))==null||!H.topBarOverride)};
_.R.onCurrentFlowChange=function(){if(this.JSC$20991_flowStateManager&&this.data&&this.flow){var X=RMZ(this.JSC$20991_flowStateManager,this.data),H;if(X&&((H=this.flow)==null?0:H.currentStepId)){X=dDZ(X,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var l;!X&&((l=this.data)==null?0:l.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.R.observeData=function(){var X=this;if(this.JSC$20991_flowStateManager){var H=this.currentTargetId,l,b,U=(b=(l=this.data)==null?void 0:l.targetId)!=null?b:"";H!==U&&H&&Cwy(this.JSC$20991_flowStateManager,H);this.currentTargetId=U;this.data&&wGA(RMZ(this.JSC$20991_flowStateManager,this.data),function(K){K&&(X.initialState=!1,X.currentFlowStep={flowStepRenderer:K},X.isLoading=!X.currentFlowStep,X.autofocusAndRefit(),X.updateContainsTalkToRecs(),X.logVEScreen(),X.logFlowEvent())})}};
_.R.dataChanged=function(){var X=this,H,l;return _.h(function(b){if(b.nextAddress==1){if(!X.flowState)return b.return();((H=X.data)==null?0:H.steps)&&Az$(X.flowState,X.data.steps);if((l=X.data)==null?0:l.flowContinuationCommand){var U=X.flowState,K=X.data.flowContinuationCommand;K&&(U.getFlowContinuationCommand=K)}return b.yield(Hs5(X.flowState,X.data),2)}X.currentFlowStep=b.yieldResult;_.m5(b)})};
_.R.flowChanged=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1){if(!X.flowState||!X.flow)return l.return();X.flowState.state=X.flow;X.isLoading=!0;return l.yield(Hs5(X.flowState,X.data),2)}H=l.yieldResult;if(!H||X.flow.isLoading)return l.return();X.currentFlowStep=H;X.initialState=!1;X.isLoading=!1;X.autofocusAndRefit();X.updateContainsTalkToRecs();_.m5(l)})};
_.R.logVEScreen=function(){var X,H,l=(X=_.f(this.currentFlowStep,_.Kk))==null?void 0:(H=X.screenLoggingData)==null?void 0:H.screenVeType;l&&_.jR(_.jJ().resolve(_.UR),l)};
_.R.logFlowEvent=function(){var X=_.f(this.currentFlowStep,_.Kk),H,l,b,U,K,w;(this==null?0:(H=this.data)==null?0:(l=H.flowLoggingData)==null?0:l.eventNamespace)&&(this==null?0:(b=this.data)==null?0:(U=b.flowLoggingData)==null?0:U.flowType)&&(X==null?0:(K=X.flowEventData)==null?0:K.eventType)&&(X==null?0:(w=X.flowEventData)==null?0:w.eventMetadata)&&(X=_.j0(this.data.flowLoggingData.eventNamespace,X.flowEventData.eventType,X.flowEventData.eventMetadata),_.rR().logFlowEvent(X,this.data.flowLoggingData.flowType))};
_.R.updateContainsTalkToRecs=function(){var X,H=(X=_.f(this.currentFlowStep,_.Kk))==null?void 0:X.content;this.containsTalkToRecs=!!H&&!!_.f(H,TG5)};
_.R.autofocusAndRefit=function(){var X=this,H=_.jJ().resolve(_.c$(_.aE)),l=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),b=document.querySelector("yt-report-form-confirmation-page-view-model"),U=document.querySelector("yt-report-form-details-page-view-model"),K=document.querySelector("yt-report-form-reason-select-page-view-model"),w=document.querySelector("yt-contributor-zero-state-view-model"),
d=document.querySelector("yt-structured-context-note-view-model"),B=document.querySelector("yt-note-view-model");(!l&&H&&H.isKeyBoardInUse()||b||!l&&U||!l&&K||!l&&(w||d||B))&&_.Qi(this.hostElement);_.N0(this,function(){_.QX(X.hostElement,"yt-refit")})};
_.R.handleUpdateFlowCommand=function(X){this.flowState?this.data&&(X=_.f(X,_.Z7q),X.targetId===this.data.targetId&&(X.flowContinuationCommand&&(this.data.flowContinuationCommand=X.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(X),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(X)};
_.R.handleFlowNextStepCommand=function(X){this.JSC$20991_flowStateManager?this.ytComponentBehavior.resolveCommand(X):this.data&&this.flow&&this.flow.key&&(X=_.f(X,_.Esz),X.targetId===this.data.targetId&&(X=X.stepId||"",this.ytdReduxBehavior.dispatch(_.Mf("flowStateEntity",this.flow.key,{currentStepId:X,stepIdStack:(this.flow.stepIdStack||[]).concat(X)}))))};
_.R.handleFlowPrevStepCommand=function(X){if(this.JSC$20991_flowStateManager)this.ytComponentBehavior.resolveCommand(X);else if(this.data&&this.flow&&this.flow.key&&(X=_.f(X,_.gsD),X.targetId===this.data.targetId)){var H=[].concat(_.LJ(this.flow.stepIdStack||[]));H.length>1?(H.pop(),this.ytdReduxBehavior.dispatch(_.Mf("flowStateEntity",this.flow.key,{currentStepId:H[H.length-1],stepIdStack:H}))):X.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(X.onFirstStepCommand)}};
_.R.handleYpcCancelRecurrenceCommand=function(X){if(this.data&&this.flow&&this.flow.key&&(X=_.f(X,r_e),X.targetId===this.data.targetId&&X.endpointCommand)){var H=_.f(this.flow,J_U);H&&_.f(X.endpointCommand,_.Lwz)&&(_.f(X.endpointCommand,_.Lwz).feedbackData=H.surveyFeedback);this.ytComponentBehavior.resolveCommand(X.endpointCommand)}};
_.R.handlePartialUpdateFlowStateEntity=function(X){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Mf("flowStateEntity",this.flow.key,X,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
yS.prototype.flowChanged=yS.prototype.flowChanged;yS.prototype.dataChanged=yS.prototype.dataChanged;yS.prototype.observeData=yS.prototype.observeData;yS.prototype.onCurrentFlowChange=yS.prototype.onCurrentFlowChange;yS.prototype.onPopupClosed=yS.prototype.onPopupClosed;_.T([_.k(_.sv),_.N("design:type",Object)],yS.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],yS.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],yS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],yS.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],yS.prototype,"initialState",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],yS.prototype,"isLoading",void 0);_.T([_.g(),_.N("design:type",Object)],yS.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],yS.prototype,"currentFlowStep",void 0);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yS.prototype,"onPopupClosed",null);
_.T([_.g({selectorArgs:["data.flowStateEntityKey"],selector:RPN}),_.N("design:type",Object)],yS.prototype,"flow",void 0);_.T([_.A2("ytd-flow-top-bar-renderer"),_.N("design:type",HTMLElement)],yS.prototype,"topBar",void 0);_.T([_.Yh("data","flow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yS.prototype,"onCurrentFlowChange",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yS.prototype,"observeData",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],yS.prototype,"dataChanged",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],yS.prototype,"containsTalkToRecs",void 0);_.T([_.oi("flow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],yS.prototype,"flowChanged",null);_.T([_.sq({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],yS);
var lPC=_.mr()(yS,"ytd-flow-root-renderer",function(){if(FMa!==void 0)return FMa;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return FMa=X},{mode:_.Qc("kevlar_poly_si_batch_j025")?1:2});var zZe=_.s9_.talkToRecsStateSelector;_.gC(_.Z(function(X){var H=function(){return _.f(X.data().flowRoot,NeU)};
_.DR(function(){var l=H(),b=function(){},U=function(){};
l&&(fsa(l,yGC(l)),b=SFA(l),U=nql(l));_.E2(function(){b();b=function(){};
U();U=function(){};
var K=H();K&&(_.WF().dispatch(_.Us("flowStateEntity",K.flowStateEntityKey)),_.Wc(_.Of({type:"TALK_TO_RECS_RESET_STEP_STATE",payload:{stepId:yGC(K)}})))})});
return _.F("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.F(_.Jk,{contentId:function(){return X.data().contentId}},function(){return _.F("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.F(_.M,{cond:H,
then:function(l){return _.F(lPC,{data:l})}}))}))},"aj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.zh}});var oFp=_.Z(function(X){var H=_.gT(X,{numberOfChips:5}).numberOfChips;return _.F("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.F(_.P$,{each:function(){return Array(H==null?void 0:H())}},function(){return _.F("div",{class:"ytGhostChipShelfChip"})}))},"bj");_.gC(_.Z(function(){return _.F("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.F("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.F("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.F(oFp,null)),_.F(_.W__,{data:{rows:1},isExploreHub:!0}))},"cj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.gC(_.Z(function(X){var H=X.data;var l=X.standardUnitMinWidth;X=_.C((0,_.Dw)(H));var b=X.next().value,U=X.next().value,K=function(){var d,B=(d=b())==null?void 0:d.contents;return B==null||B.length===0},w=function(){U(Object.assign({},b(),{contents:[]}))};
return _.F("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.xl(_.jh({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var d=_.f(H().chipsShelf,OzN);if(d!=null&&d!=null&&d.autoselectChipOnVisible){var B,q,u=_.f(d==null?void 0:(B=d.contents)==null?void 0:B[(q=d.autoselectedChipIndex)!=null?q:0],_.pk);u&&u.tapCommand&&_.yr(u.tapCommand)}}}))},_.F(_.Jk,{contentId:function(){return H().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.F("div",null,_.F("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.F(_.l4,{data:function(){return H().header}},{sectionHeaderViewModel:function(d){return _.F(_.on,{data:d.data,
disableHorizontalPadding:!0})}})),_.F("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.F(_.l4,{data:function(){return H().chipsShelf}},{chipsShelfViewModel:function(d){return _.F(_.bm,{data:d.data,
callback:w,selectionBehavior:1})}})),_.F("div",null,_.F(_.M,{cond:K,
then:function(){return _.F("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.F(_.W__,{data:{rows:1},isExploreHub:!0}))}}),_.F(_.l4,{data:function(){var d;
return(d=b())==null?void 0:d.contents}},{richShelfRenderer:function(d){return _.F(_.rmC,{data:d.data,
isInnerShelf:!0,standardUnitMinWidth:l})}})))}))},"dj"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.zh,
standardUnitMinWidth:_.zh}});var VS=function(){return _.a.apply(this,arguments)||this};
_.S(VS,_.a);
VS.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}}};
VS.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.T([_.k(_.sv),_.N("design:type",Object)],VS.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.EO),_.N("design:type",Object)],VS.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],VS.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Number)],VS.prototype,"standardUnitMinWidth",void 0);_.T([_.sq({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],VS);
_.O(VS,"ytd-rich-section-renderer",function(){if(JDy!==void 0)return JDy;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return JDy=X},{mode:2});var bsd;var gqp=null;_.gC(_.Z(function(X){return _.F("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.F("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.F(_.Sj,{text:function(){return X.data().text}}),_.F("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"ej"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.zh}});var Ura=_.Z(function(X){var H=X.playerControlsProps;var l=X.isShortsPage;return _.F("yt-bigboard",null,_.F(_.M,{cond:function(){return H().isDragging},
then:function(){return _.F("div",{class:"ytBigboardStoryboardHost"},_.F(_.R2a,{progressBarProps:H,isShortsPage:l}))}}))},"fj");
Ura.idomCompat=!0;var Py={ACCOUNT_LABEL:H2("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:H2("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:H2("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:H2("AD_BADGE_HINT"),AD_BADGE_TEXT:H2("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:H2("ALL_CHANNELS_LABEL"),AMBIENT_MODE:H2("AMBIENT_MODE"),AMBIENT_MODE_OFF:H2("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:H2("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:H2("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:H2("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:H2("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:H2("APP_UPSELL_TITLE"),AUDIO_TRACK:H2("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:H2("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:H2("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:H2("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:H2("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:H2("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:H2("AUTO_ZOOM","Auto zoom"),BACK:H2("BACK"),CANCEL:H2("CANCEL"),CHANNEL_SWITCHER_LABEL:H2("CHANNEL_SWITCHER_LABEL"),CLOSE:H2("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:H2("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:H2("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:H2("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:H2("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:H2("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:H2("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:H2("COMMENT_MODAL_CONTENT"),CONFIRM_OK:H2("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:H2("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:H2("COPIED_TO_CLIPBOARD"),COPY:H2("COPY"),COPY_DEBUG_INFO:H2("COPY_DEBUG_INFO"),COPY_EMBED_CODE:H2("COPY_EMBED_CODE"),
COPY_LINK_LABEL:H2("COPY_LINK_LABEL"),COPY_VIDEO_URL:H2("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:H2("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:H2("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:H2("DELETE_FROM_DOWNLOADS"),DIALOG:H2("DIALOG"),DONE:H2("DONE"),DOWNLOAD:H2("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:H2("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:H2("FLAG_CONFIRM"),FLAG_CONTENT:H2("FLAG_CONTENT"),FLAG_LABEL:H2("FLAG_LABEL"),FLAG_TITLE:H2("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:H2("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:H2("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:H2("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:H2("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:H2("HIDE_SEARCH_FILTERS_LABEL"),HOME:H2("HOME","Home"),INVALID_RESPONSE_RECEIVED:H2("INVALID_RESPONSE_RECEIVED"),LIBRARY:H2("LIBRARY","Library"),LISTENING:H2("LISTENING"),LOADING:H2("LOADING"),LONG_PRESS_MIC_TO_SPEAK:H2("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:H2("LOOP"),MENU_DESKTOP:H2("MENU_DESKTOP"),
MENU_EXIT:H2("MENU_EXIT"),MENU_FEEDBACK:H2("MENU_FEEDBACK"),MENU_HELP:H2("MENU_HELP"),MENU_IMPRESSUM:H2("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:H2("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:H2("MENU_SETTINGS"),MENU_SIGN_IN:H2("MENU_SIGN_IN"),MENU_TITLE:H2("MENU_TITLE"),MENU_YOUR_DATA:H2("MENU_YOUR_DATA"),MORE_INFO:H2("MORE_INFO"),MORE_OPTIONS:H2("MORE_OPTIONS"),MUTE_VOLUME:H2("MUTE_VOLUME"),NEW_PLAYLIST:H2("NEW_PLAYLIST"),NEXT_VIDEO:H2("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:H2("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:H2("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:H2("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:H2("NOT_FOUND_TITLE"),NO_DOWNLOADS:H2("NO_DOWNLOADS"),NO_MIC_INPUT:H2("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:H2("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:H2("OOPS_MESSAGE"),OPEN_APP:H2("OPEN_APP"),OPEN_YOUTUBE:H2("OPEN_YOUTUBE"),PAUSE:H2("PAUSE"),PLAY:H2("PLAY"),PLAYER_CAPTION:H2("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:H2("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:H2("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:H2("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:H2("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:H2("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:H2("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:H2("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:H2("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:H2("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:H2("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:H2("PLAYER_MINIMIZE"),PLAYER_NEXT:H2("PLAYER_NEXT"),PLAYER_PAUSE:H2("PLAYER_PAUSE"),PLAYER_PLAY:H2("PLAYER_PLAY"),
PLAYER_PREVIOUS:H2("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:H2("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:H2("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:H2("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:H2("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:H2("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:H2("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:H2("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:H2("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:H2("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:H2("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:H2("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:H2("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:H2("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:H2("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:H2("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:H2("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:H2("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:H2("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:H2("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:H2("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:H2("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:H2("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:H2("PLAY_ALL"),PLEASE_FIX_ERRORS:H2("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:H2("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:H2("PREVIOUS_VIDEO"),PRIVACY_POLICY:H2("PRIVACY_POLICY"),RELOAD:H2("RELOAD"),REQUIRED_LABEL:H2("REQUIRED_LABEL"),SAVE_PLAYLIST:H2("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:H2("SCRUB_SLIDE_USER_EDU"),SEARCH:H2("SEARCH","Search"),
SEARCH_APPEND_LABEL:H2("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:H2("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:H2("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:H2("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:H2("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:H2("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:H2("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:H2("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:H2("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:H2("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:H2("SEEK_SLIDER"),SETTINGS_LABEL:H2("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:H2("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:H2("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:H2("SHOW_LESS"),SHOW_MORE:H2("SHOW_MORE"),SHOW_PLAYER_CONTROLS:H2("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:H2("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:H2("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:H2("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:H2("SIGN_IN_ON_WEB"),STABLE_VOLUME:H2("STABLE_VOLUME"),STABLE_VOLUME_OFF:H2("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:H2("STABLE_VOLUME_ON"),STATS_FOR_NERDS:H2("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:H2("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:H2("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:H2("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:H2("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:H2("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:H2("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:H2("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:H2("TIMESTAMP_SECONDS"),TOGGLE_OFF:H2("TOGGLE_OFF"),TOGGLE_ON:H2("TOGGLE_ON"),TRENDING:H2("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:H2("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:H2("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:H2("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:H2("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:H2("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:H2("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:H2("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:H2("VIDEO_LINK_LABEL")};var $rl=_.Z(function(X){var H=X.playerApi;X=_.SJ("button",function(b){Iv(b,36843)});
var l=H2("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.F("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.F("button",{el:X,class:"ytPlayerControlsJumpForwardButtonButton",title:l,"aria-label":l,"on:click":_.Nq(function(){AD(36843);H&&H().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.F("span",null,_.F(_.Ja,{icon:"FAST_FORWARD"}))))},"gj");var KpN=_.Z(function(X){var H=X.appApi;X=_.SJ("button",function(b){Iv(b,62946)});
var l=H2("OPEN_IN_MINIPLAYER");return _.F("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.F("button",{el:X,class:"ytMiniplayerButtonButton",title:l,"aria-label":l,"on:click":_.Nq(function(){AD(62946);var b,U;(U=(b=H()).openInMiniplayer)==null||U.call(b);return!1})},_.F(_.Ja,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"hj");var R8C=_.Z(function(X){var H=X.playerApi;X=_.SJ("button",function(K){Iv(K,142812)});
var l=_.C(_.FU(!1,void 0,"eOMRAb")),b=l.next().value,U=l.next().value;l=function(){return H2("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(b()?1:2)})};
return _.F("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.F("button",{el:X,class:"ytPlaybackSpeedButtonButton",title:l,"aria-label":l,"on:click":_.Nq(function(){AD(142812);if(H){var K=H(),w=b();K.setPlaybackRate(w?1:2);U(!b())}return!1})},_.F("span",null,_.F(_.Ja,{icon:function(){return b()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"ij");var ClA=_.Z(function(X){var H=X.title;var l=X.ariaLabel;var b=X.icon;var U=X.command;var K=X.visualElementId;X=_.SJ("button",function(w){K&&Iv(w,K())});
return _.F("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.F("button",{el:X,class:"ytdThumbnailOverlayButtonButton",title:H,"aria-label":l,"on:click":_.Nq(function(){K&&AD(K());U&&_.jJ().resolve(_.Vr).resolveCommand(U())})},_.F(_.Ja,{icon:b})))},"jj");var w_l=["en-CA","en","es-MX","fr-CA"];var drl=_.Z(function(X){var H=_.gT(X,{isOverlay:!1}),l=H.captionIconType,b=H.onClick;X=H.ariaLabel;var U=H.ariaPressed,K=H.isOverlay;H=_.SJ("button",function(B){Iv(B,127299)});
var w=_.Nq(function(B){AD(127299);b==null||b(B);return!1}),d={};
return _.F("ytm-closed-captioning-button",{class:_.Qr("ytmClosedCaptioningButtonHost",(d.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return l()===-1&&K()},d.ytmClosedCaptioningButtonIconDisabled=function(){return l()===-1&&!K()},d))},_.F("button",{el:H,
class:"ytmClosedCaptioningButtonButton",title:X,"aria-label":X,"aria-pressed":U,"on:click":w},_.F(_.Ja,{icon:function(){var B="";var q=_.oO().get("hl");q=!q||w_l.includes(q)?"CLOSED_CAPTION":"SUBTITLES";var u=l();switch(u){case -1:case 0:B=q;break;case 1:B=q+"_FILLED";break;default:_.Hp(u)}return B}})))},"kj");
drl.idomCompat={callbacks:{onClick:!0}};var YC="";var h8l=_.Z(function(X){var H=X.playerControlsProps,l=X.onClickFn;X=_.uL(function(){var K=H(),w=-1;K.captionsAvailable&&(w=K.captionsEnabled?1:0);return w},void 0,"MZ0Wqe");
var b=_.uL(function(){var K=H();return K.captionsAvailable?_.XS(K.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.XS("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),U=_.uL(function(){var K=H();
K=K.captionsAvailable?K.captionsEnabled:void 0;return K},void 0,"fhuQRe");
return _.F("yt-closed-captions-toggle-button",null,_.F(drl,{captionIconType:X,ariaLabel:b,ariaPressed:U,onClick:function(K){var w=H();if(w.captionsAvailable){var d=w.playerApi;if(d){var B=w.playerApi;if(B){var q=YC;if(q){B=B.getOption("captions","track");var u;YC=(u=B?B.displayName:null)!=null?u:q}else DoU(B)?(q=_.I4m(B),YC=q.length?(u=W1N(q))?u.displayName:q[0].displayName:""):YC=""}EMl(d);_.P("mweb_disable_set_state_captions_killswitch")&&w.setState({captionsEnabled:!w.captionsEnabled})}}var e,
y;(y=(e=w.appApi).showCaptionsToggleToast)==null||y.call(e,w);l==null||l(K)},
isOverlay:!0}))},"lj");var Fp5=_.Z(function(X){var H=X.data;return _.F("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.F(_.Pm,{data:function(){return{type:17,text:_.l2Z(H().label)}}}))},"mj");var BEZ=_.Z(function(X){var H=_.Qr("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return X.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return X.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return X.size()==="small"?X.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
X.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.F("animated-seek-arrows",{class:_.Qr("ytPlayerControlsAnimatedSeekArrowsHost")},_.F("span",{class:H}),_.F("span",{class:H}),_.F("span",{class:H}))},"nj");
BEZ.idomCompat=!0;var qra=_.Z(function(){var X=_.XS("PLAYER_SECONDS",{seconds_placeholder:"30"}),H=_.C(_.FU(!1,void 0,"iRJu8c")),l=H.next().value,b=H.next().value,U=_.C(_.FU(!1,void 0,"MPnizf"));H=U.next().value;var K=U.next().value;U={};var w=_.Qr("jumpForwardOverlayOverlay",(U.jumpForwardOverlayOverlayHidden=H,U));_.DR(function(){var d=null,B=null,q=function(){d!==null&&_.qV().cancelJob(d);B!==null&&_.qV().cancelJob(B);K(!0);b(!0);_.v5(_.qV(),function(){K(!1)});
d=_.v5(_.qV(),function(){K(!0);B=_.v5(_.qV(),function(){b(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",q);_.E2(function(){window.removeEventListener("jump-forward-clicked",q)})});
return _.F("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.F(_.M,{cond:l,then:function(){return _.F("div",{class:w},_.F(BEZ,{direction:1,size:"large"}),_.F("div",null,X))}}))},"oj");var sdN=Py.MUTE_VOLUME,MV5=Py.UNMUTE_VOLUME,uzx=_.Z(function(X){var H=X.muteIconType;var l=X.onClick;var b=X.useOutlineIcon;var U=X.useDelhiIcons;X=_.SJ("button",function(d){Iv(d,28662)});
var K=function(){var d=H(),B=b==null?void 0:b(),q=U==null?void 0:U(),u="",e="";switch(d){case -1:case 0:u=B?"VOLUME_OFF":q?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";e=MV5;break;case 1:u=B?"VOLUME_UP_OUTLINE":q?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";e=sdN;break;case 2:u=B?"VOLUME_DOWN_OUTLINE":q?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";e=sdN;break;default:_.Hp(d)}return{iconName:u,ariaLabel:e}},w=function(){return K().ariaLabel};
return _.F("ytm-mute-button",{class:"ytmMuteButtonHost"},_.F("button",{el:X,class:"ytmMuteButtonButton",title:w,"aria-label":w,"on:click":_.Nq(function(d){AD(28662);l==null||l(d);return!1})},_.F("span",null,_.F(_.Ja,{icon:function(){return K().iconName}}))))},"pj");var e8a=_.Z(function(X){var H=X.volumeProps;var l=X.onClickFn;var b=X.useOutlineIcon;var U=X.useDelhiIcons;return _.F("yt-mute-toggle-button",null,_.F(uzx,{muteIconType:function(){var K=H();return K.volumeMuted||K.volume===0?0:K.volume>50?1:2},
onClick:function(K){var w=H().playerApi;w&&(w.isMuted()?w.unMute():w.mute(!1));l==null||l(K)},
useOutlineIcon:function(){return!(b==null||!b())},
useDelhiIcons:function(){return!(U==null||!U())}}))},"qj");
e8a.idomCompat=!0;var ypZ=_.Z(function(X){var H=X.data;var l=_.SJ("ytm-paid-content-overlay-renderer");return _.F("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:l,"on:animationend":_.Nq(function(){l.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.F(_.ZE,{command:function(){return H().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.F(_.M,{cond:function(){var b;return(b=H().icon)==null?void 0:b.iconType},
then:function(){return _.F("span",null,_.F(_.Ja,{icon:function(){var b;return(b=H().icon)==null?void 0:b.iconType}}))}}),_.F("div",{class:"ytmPaidContentOverlayText"},_.F(_.Sj,{text:function(){return H().text}})),_.F(_.M,{cond:function(){return H().navigationEndpoint},
then:function(){return _.F(_.Ja,{icon:"CHEVRON_RIGHT"})}})))},"rj");
ypZ.idomCompat=!0;var Rpy=[].concat(_.LJ([{register:function(X){var H=X8U(X),l;(l=X().playerApi)==null||l.addEventListener("onVolumeChange",H);return function(){}}},
{register:function(X){var H=H9C(X);X=X().playerApi;X==null||X.addEventListener("captionschanged",H);X==null||X.addEventListener("captionssettingschanged",H);X==null||X.addEventListener("onCaptionsTrackListChanged",H);return function(){}}}]),[{register:function(X){var H=L9x(X),l;
(l=X().playerApi)==null||l.addEventListener("onStateChange",H);return function(){}}},
{register:function(X){var H=YFy(X),l;(l=X().playerApi)==null||l.addEventListener("onPlaybackRateChange",H);return function(){}}},
{register:function(X){var H=IsY(X),l;(l=X().playerApi)==null||l.addEventListener("onVideoDataChange",H);return function(){}}},
{register:function(X){var H=AG5(X),l,b;(l=X())==null||(b=l.playerApi)==null||b.addEventListener("onVideoProgress",H);return function(){}}}]);var VV5=_.Z(function(X){var H=X.data;var l=function(){return _.XS("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+H().playbackRate})};
return _.F(_.M,{cond:function(){return H().playbackRate&&H().playbackRate!==1},
then:function(){return _.F("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.F("div",{class:"ytPlaybackRateOverlayOverlay"},_.F(BEZ,{direction:1,size:"small"}),_.F("div",{class:"ytPlaybackRateOverlayLabel"},l)))}})},"tj");var PlZ=_.Z(function(X){var H=X.data;return _.F("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.F(_.M,{cond:function(){var l,b=(l=H())==null?void 0:l.playerResponse,U;return b==null?void 0:(U=b.paidContentOverlay)==null?void 0:U.paidContentOverlayRenderer},
then:function(l){return _.F(ypZ,{data:l})}}))},"vj"),fPl=_.Z(function(X){var H=X.props;
var l=X.data;var b=X.options;var U=function(){var q,u,e,y;return(q=l())==null?void 0:(u=q.playerResponse)==null?void 0:(e=u.playerConfig)==null?void 0:(y=e.inlinePlaybackConfig)==null?void 0:y.showAudioControls},K=function(){var q,u;
if(U()&&((q=b())==null?void 0:(u=q.additionalButton)==null?void 0:u.button)!==void 0){var e,y,V;q=(e=l())==null?void 0:(y=e.playerApi)==null?void 0:(V=y.getSize())==null?void 0:V.height;if(!(q===void 0||q<180)){var p,z;return(p=b())==null?void 0:(z=p.additionalButton)==null?void 0:z.button}}},w=function(){var q,u;
return(q=b())==null?void 0:(u=q.additionalButton)==null?void 0:u.thumbnailOverlayButtonRenderers},d=function(){var q,u;
return(q=b())==null?void 0:(u=q.additionalButton)==null?void 0:u.thumbnailOverlayButtonViewModels},B=function(){var q=[_.F(e8a,{volumeProps:H})],u;
((u=b())==null?0:u.hideCaptionsToggleButton)||q.push(_.F(h8l,{playerControlsProps:H}));K()===1&&q.push(_.F($rl,{playerApi:function(){return H().playerApi}}));
K()===2&&q.push(_.F(KpN,{appApi:function(){return H().appApi}}));
K()===3&&q.push(_.F(R8C,{playerApi:function(){return H().playerApi}}));
u=w();if(K()===4&&u){u=_.C(u);for(var e=u.next(),y={};!e.done;y={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$55:void 0,command$jscomp$632:void 0},e=u.next()){e=e.value;y.tooltip$jscomp$3=e.tooltip;var V=void 0,p=void 0;y.ariaLabel$jscomp$20=((V=e.accessibility)==null?void 0:(p=V.accessibilityData)==null?void 0:p.label)||y.tooltip$jscomp$3;V=void 0;y.icon$jscomp$55=(V=e.icon)==null?void 0:V.iconType;y.command$jscomp$632=e.command;y.tooltip$jscomp$3&&y.ariaLabel$jscomp$20&&y.icon$jscomp$55&&
q.push(_.F(ClA,{title:function(z){return function(){return z.tooltip$jscomp$3}}(y),
ariaLabel:function(z){return function(){return z.ariaLabel$jscomp$20}}(y),
icon:function(z){return function(){return z.icon$jscomp$55}}(y),
command:function(z){return function(){return z.command$jscomp$632}}(y)}))}}u=d();
if(K()===4&&u)for(u=_.C(u),e=u.next(),y={};!e.done;y={tooltip$jscomp$4:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$56:void 0,command$jscomp$633:void 0,trackingParamsVeType:void 0},e=u.next())e=e.value,y.tooltip$jscomp$4=e.title,y.ariaLabel$jscomp$21=e.accessibilityText||y.tooltip$jscomp$4,y.icon$jscomp$56=e.iconName,y.command$jscomp$633=_.sl(e.onTap),p=V=void 0,y.trackingParamsVeType=((V=e.loggingDirectives)==null?0:V.trackingParams)?(p=gIU(_.Ay(e.loggingDirectives.trackingParams)))==null?void 0:
_.O_(p,2):void 0,y.tooltip$jscomp$4&&y.ariaLabel$jscomp$21&&y.icon$jscomp$56&&q.push(_.F(ClA,{title:function(z){return function(){return z.tooltip$jscomp$4}}(y),
ariaLabel:function(z){return function(){return z.ariaLabel$jscomp$21}}(y),
icon:function(z){return function(){return z.icon$jscomp$56}}(y),
command:function(z){return function(){return z.command$jscomp$633}}(y),
visualElementId:function(z){return function(){return z.trackingParamsVeType}}(y)}));
return q};
return _.F(_.M,{cond:U,then:function(){return _.F("div",{class:"ytInlinePlayerControlsTopRightControls"},_.F(_.P$,{each:B},function(q){return _.F("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.F("div",{class:"ytInlinePlayerControlsButtonIcon"},q))}))}})},"wj"),z8U=_.Z(function(X){var H=X.props;
var l=X.data;var b=X.options;X={};X=_.Qr("ytInlinePlayerControlsBottomRightControls",(X.ytInlinePlayerControlsBottomRightControlsHidden=function(){var U;return oix(l(),b())&&((U=b())==null?void 0:U.insetProgressBar)&&(H().isHovering||H().isDragging)},X));
return _.F("div",{class:X},_.F(p_Y,{data:l}),_.F(_.M,{cond:function(){var U;return!((U=b())==null?0:U.hideTimeDisplay)},
then:function(){return _.F(Sr$,{props:H,data:l})}}))},"xj"),p_Y=_.Z(function(X){var H=X.data;
return _.F(_.l4,{data:function(){var l;return QBY((l=H())==null?void 0:l.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Fp5})},"yj"),Sr$=_.Z(function(X){var H=X.props;
var l=X.data;return _.F(_.M,{cond:function(){return H().isLive},
then:function(){return _.F(nF$,{props:H,data:l})},
else:function(){return _.F(kMl,{props:H,data:l})}})},"zj"),kMl=_.Z(function(X){var H=X.props;
var l=X.data;var b=_.uL(function(){var U;return TWU((U=l())==null?void 0:U.thumbnailOverlays)},void 0,"Pf9uIe");
return _.F("div",{class:_.Qr("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return Py.PLAYER_TIME_ELAPSED+" "+_.fLC(H().playedTime)}},_.F(_.Pm,{data:function(){var U=_.fLC(H().videoDuration-H().playedTime);
return Object.assign({},{type:17,text:U},b())}}))},"Aj"),xrd=_.Z(function(X){X=X.badgeShapeData;
return _.F("div",{class:_.Qr("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.F(_.Pm,{data:X}))},"Bj"),nF$=_.Z(function(X){var H=X.data;
X=_.uL(function(){if(_.P("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var b,U=_.C(((b=H())==null?void 0:b.thumbnailOverlays)||[]);for(b=U.next();!b.done;b=U.next()){b=b.value;if(b.thumbnailOverlayTimeStatusRenderer||b.thumbnailOverlayBadgeViewModel)return b;var K=void 0;if((K=b.thumbnailBottomOverlayViewModel)==null?0:K.badges)if(b=b.thumbnailBottomOverlayViewModel.badges.find(function(w){return _.f(w,OGx)}))return b}}},void 0,"GPGpgc");
var l=_.uL(function(){var b,U,K,w,d,B;return _.$cb((b=H())==null?void 0:(U=b.playerApi)==null?void 0:(K=U.getSize())==null?void 0:K.width,(w=H())==null?void 0:(d=w.playerApi)==null?void 0:(B=d.getSize())==null?void 0:B.height)},void 0,"OeIVKe");
return _.F(_.M,{cond:X,then:function(b){return _.F(_.l4,{data:b},{thumbnailOverlayTimeStatusRenderer:function(U){var K=U.data;U=_.uL(function(){return _.Y3k(K(),0)},void 0,"skoDC");
return _.F(xrd,{badgeShapeData:U})},
thumbnailBadgeViewModel:function(U){return _.F(_.o_H,{data:U.data,class:_.Qr("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(U){return _.F(_.yH,{data:U.data,thumbnailSize:l})}})},
else:function(){var b={type:18,text:Py.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.F(xrd,{badgeShapeData:function(){return b}})}})},"Cj"),Drp=_.Z(function(X){var H=X.props;
var l=X.data;var b=X.options;return _.F(_.BUY,{progressBarProps:H,config:function(){var U,K=_.f((U=l())==null?void 0:U.multiMarkersPlayerBar,_.VbH),w;U=((w=b())==null?0:w.insetProgressBar)?2:1;var d;w=(d=b())==null?void 0:d.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:U,chapterData:K,isInlinePlayback:!0,doSeekOnClick:w,playheadDotBehavior:w?1:0}}})},"Dj");_.gC(_.Z(function(X){var H=X.data;var l=X.appApi;var b=X.options;var U=JGx(H,lFe(l));X={};l={};return _.F("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.F("div",{class:_.Qr("ytInlinePlayerControlsDarkenedOverlay",(X.ytInlinePlayerControlsDarkenedOverlayShow=function(){return U().isHovering},X))}),_.F(qra,null),_.F(VV5,{data:U}),_.F(PlZ,{data:H}),_.F(Ura,{playerControlsProps:U,
isShortsPage:!1}),_.F("div",{class:_.Qr((l.ytInlinePlayerControlsControlsHidden=function(){return U().isDragging},l))},_.F(fPl,{props:U,
data:H,options:b}),_.F(z8U,{props:U,data:H,options:b})),_.F(_.M,{cond:function(){return oix(H(),b())},
then:function(){return _.F(Drp,{props:U,data:H,options:b})}}))},"uj"),"yt-inline-player-controls",{props:{data:_.zh,
appApi:_.ta,options:_.zh}});var fb=function(){var X=_.a.apply(this,arguments)||this;X.opts=null;X.playerControlsData=null;X.playerControlsAppApi={openInMiniplayer:function(){X.openInMiniplayer()}};
X.playerControlsOptions={};X.noAnimation=!1;X.playbackIntentTriggered=!1;X.positionData=null;X.hidden=!0;X.active=!1;X.playing=!1;X.persistentPanelVisible=!1;X.videoPreviewDataIndex=0;X.JSC$21050_playerPromise=null;X.player=null;X.enableAudioControls=!1;X.hasBeenUnmuted=!1;X.captionsHaveBeenTurnedOff=!1;X.JSC$21050_playerEvents=new Map;X.videoPreviewFetchRequest=null;X.scheduledPreviewEndJobId=null;X.JSC$21050_preventProgressSaveTimer=null;X.watchEndpointStartTimeUpdaterInterval=null;X.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};X.windowOnBlurFn=function(){X.deactivate()};
return X};
_.S(fb,_.a);_.R=fb.prototype;
_.R.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"}}}};
_.R.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",_.J2(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.J2(this,this.onScroll))};
_.R.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.J2(this,this.onScroll))};
_.R.onPageTypeChange=function(){this.deactivate()};
_.R.onWindowResized=function(){this.deactivate()};
_.R.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.R.onCaptionsChanged=function(X){X=!!X.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!X);this.setCaptionSize()};
_.R.setCaptionSize=function(){var X;if(this.active&&!this.captionsHaveBeenTurnedOff&&((X=this.player)==null?0:X.getCaptionWindowContainerId())){var H;(H=this.player)==null||H.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.R.currentPageAllowed=function(){return!this.isWatchPage};
_.R.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.P("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var X=this.positionData,H=X.initialTopPosition,l=X.initialHorizontalPosition;_.j4(this.hostElement,{"--ytd-video-preview-translate-left":X.finalHorizontalPosition-l+"px","--ytd-video-preview-translate-top":X.finalTopPosition-H+"px","--ytd-video-preview-original-top-position":H+
"px","--ytd-video-preview-original-horizontal-position":l+"px","--ytd-video-preview-initial-scale":"scale("+X.initialScale+")","--ytd-video-preview-width":X.videoPreviewWidth+"px","--ytd-video-preview-height":X.videoPreviewHeight+"px"});return!0};
_.R.isOutOfBounds=function(X){var H=X.initialHorizontalPosition+12;X=H+X.videoPreviewWidth>window.innerWidth;return H<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&H<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&H<72||X};
_.R.handleOpenVideoPreviewAction=function(X){var H=this,l;return _.h(function(b){if(!H.currentPageAllowed())return b.return(0);H.opts=X;return(l=H.alignVideoPreviewForAnimation(X.thumbnail))?b.return(H.activate()):b.return(0)})};
_.R.onMouseLeave=function(X){var H,l;(H=this.opts)==null||(l=H.mouseleaveCallback)==null||l.call(H);this.shouldDeactivateOnMouseLeave(X)&&this.deactivate()};
_.R.onScroll=function(){var X,H;((X=this.opts)==null?0:X.isAutoplay)&&((H=this.opts)==null?0:H.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.R.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Ss.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.R.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.R.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",fb.JSC$21049_DEFAULT_CLICK_LOCATION_BEHAVIOR,fb.JSC$21049_CLICK_LOCATION_ID_MAP)};
_.R.shouldDeactivateOnMouseLeave=function(X){X=X.relatedTarget;if(!X)return!0;var H;return(H=this.opts)!=null&&H.mediaRenderer?!_.Q_(this.opts.mediaRenderer).contains(X):!0};
_.R.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.R.onPlaybackStart=function(){var X=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=
_.v5(_.Ss,function(){X.resetPreventProgressSaveTimer()},1E4);
var H;if((H=this.opts)==null?0:H.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.v5(_.Ss,function(){X.hasMultipleVideoPreviews()?X.startPlaybackForNextVideo():X.deactivate()},this.opts.videoPreviewDurationMs);
var l;this.player.setGlobalCrop(((l=this.opts)==null?0:l.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.R.getRoundedCornersSize=function(){var X;if((X=this.opts)==null?0:X.roundedCornersSize){var H;return(H=this.opts)==null?void 0:H.roundedCornersSize}var l;if((l=this.opts)==null?0:l.enableRounding){var b;if(((b=this.opts)==null?void 0:b.thumbnailSize)==="small")return 1;var U;if(((U=this.opts)==null?void 0:U.thumbnailSize)==="medium")return 2;var K;if(((K=this.opts)==null?void 0:K.thumbnailSize)==="large")return 3}return _.P("web_imp_inset_progress_bar")?3:0};
_.R.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.R.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.R.onMediaContainerClick=function(X){this.isShortcutClick(X)||(this.navigateToWatch(X),X.preventDefault(),X.stopPropagation())};
_.R.activate=function(){var X=this,H,l,b,U,K,w,d,B,q;return _.h(function(u){switch(u.nextAddress){case 1:if(!X.currentPageAllowed())return u.return(0);l=(H=X.videoPreviewData)==null?void 0:H.inlinePlaybackEndpoint;b=_.S2.instance;if(!l||!b)return u.return(0);X.playbackIntentTriggered=!0;((U=X.opts)==null?0:U.mediaRenderer)&&((K=X.opts)==null||!K.isAutoplay)&&iGe(X.opts.mediaRenderer,function(){X.deactivate()});
_.N0(X,function(){X.revealPreviewUi()});
w={};_.P("enable_unknown_lact_fix_on_html5")&&(_.jJ().resolve(_.HS),w.lact=_.JV());X.videoPreviewFetchRequest=tg5(b,X.getInlinePlaybackRequestData(X.videoPreviewData),w);_.Ew(u,2);return u.yield(X.videoPreviewFetchRequest,4);case 4:d=u.yieldResult;if(((B=d)==null?void 0:(q=B.playabilityStatus)==null?void 0:q.status)==="OK")return u.return(X.handlePlayerResponse(d));throw Error("Ql");case 2:_.Ow(u),X.deactivate();case 3:return u.return(1)}})};
_.R.getInlinePlaybackRequestData=function(X){var H,l=_.P("web_imp_player_mute_params")?((H=this.opts)==null?void 0:H.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:X.inlinePlaybackEndpoint,startPlaybackInMutedState:l}};
_.R.handlePlayerResponse=function(X){var H=this,l,b,U,K,w,d,B,q,u,e,y,V,p,z;return _.h(function(t){if(t.nextAddress==1){l=H.getInlinePlaybackVideoId();if(!(((b=X)==null?0:(U=b.videoDetails)==null?0:U.videoId)&&H.currentPageAllowed()&&H.playbackIntentTriggered&&H.opts&&l))return H.deactivate(),t.return(0);if(X.videoDetails.videoId!==l)return t.return(0);H.enableAudioControls=!!((K=X.playerConfig)==null?0:(w=K.inlinePlaybackConfig)==null?0:w.showAudioControls);X.trackingParams=H.getInlinePlaybackTrackingParams();
if(!H.inlinePlayer)return t.return(0);d={};if(q=_.f((B=H.videoPreviewData)==null?void 0:B.inlinePlaybackEndpoint,_.ku))d.watch_endpoint=q;if(H.videoPreviewData){var W,G=(W=_.f(H.videoPreviewData.inlinePlaybackEndpoint,_.ku))==null?void 0:W.startTimeSeconds;G!==void 0&&(X.playerConfig||(X.playerConfig={}),X.playerConfig.playbackStartConfig||(X.playerConfig.playbackStartConfig={}),X.playerConfig.playbackStartConfig.startPosition||(X.playerConfig.playbackStartConfig.startPosition={}),X.playerConfig.playbackStartConfig.startSeconds=
G,X.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(G*1E3))}H.inlinePlayer.loadVideoWithPlayerResponse(X,d);if(H.JSC$21050_playerPromise)return t.jumpTo(2);H.JSC$21050_playerPromise=H.inlinePlayer.getPlayerPromise();return t.yield(H.JSC$21050_playerPromise,3)}t.nextAddress!=2&&(u=t.yieldResult,u.setInlinePreview(!0),e=!_.P("web_imp_theater_bugfix"),u.setSizeStyle(!1,e),H.ytPlayerListenerBehavior.listenToPlayerEvents(u,H.JSC$21050_playerEvents),H.player=u,_.QX(H.hostElement,
"player-api-ready"));((y=H.opts)==null?0:y.showPlayerControls)&&H.videoPreviewData&&H.player&&(H.playerControlsData={playerResponse:X,isInlinePlayback:!0,thumbnailOverlays:H.videoPreviewData.thumbnailOverlays,playerApi:H.player},H.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!H.unroundCornersForPlayback,additionalButton:H.getAdditionalButtonType(H.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(V=H.opts)==null?void 0:V.hideTimeDisplay,hideScrubbingControls:(p=H.opts)==
null?void 0:p.hideScrubber,hideCaptionsToggleButton:(z=H.opts)==null?void 0:z.hideCaptionsToggleButton});return t.return(2)})};
_.R.revealPreviewUi=function(){var X=this;this.playbackIntentTriggered&&_.TJK(this,function(){X.hasThumbnailPositionChangedSinceTriggered()||(X.updateActiveState(!0),X.noAnimation=!1)})};
_.R.hasThumbnailPositionChangedSinceTriggered=function(){var X=this.positionData,H=this.getThumbnailPositionData();return(X==null?void 0:X.initialTopPosition)!==(H==null?void 0:H.initialTopPosition)||(X==null?void 0:X.initialHorizontalPosition)!==(H==null?void 0:H.initialHorizontalPosition)};
_.R.getThumbnailPositionData=function(){var X,H;if((H=this.opts)==null||!H.thumbnail)return null;H=this.opts.thumbnail;var l=((X=this.opts)==null?0:X.cropPlayerToFillThumbnailHorizontally)?!1:!0;var b=H.getBoundingClientRect();X=b.width;H=b.height;var U=b.top+window.scrollY;b=b.left+window.scrollX;var K=l?Math.ceil(X):X;l=l?Math.ceil(H):H;var w=X/K;X={initialScale:w,initialTopPosition:U-12*w,finalTopPosition:U-12-(l-H)/2,initialHorizontalPosition:b-(12+(K-X)/2),finalHorizontalPosition:b-12-(K-X)/
2,videoPreviewWidth:K,videoPreviewHeight:l};return X};
_.R.updateActiveState=function(X){this.active=X;this.ytdReduxBehavior.dispatch(_.Of({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:X}))};
_.R.stopPlayer=function(X){X=X.resetWatchEndpointStartTime===void 0?!1:X.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(X)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Ss.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.R.deactivate=function(X){X=X===void 0?{}:X;X=X.resetWatchEndpointStartTime===void 0?!1:X.resetWatchEndpointStartTime;gqp&&(gqp.disconnect(),gqp=null);this.stopPlayer({resetWatchEndpointStartTime:X});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.R.isValidThumbnailOverlayButton=function(X,H){X=X.thumbnailOverlayButtonRenderer;var l;return!!X&&!!X.tooltip&&!((l=X.icon)==null||!l.iconType)&&H.includes(X.icon.iconType)};
_.R.isValidThumbnailOverlayButtonViewModel=function(X,H){var l;X=_.f((l=X.thumbnailOverlayButtonViewModel)==null?void 0:l.overlayButton,_.fk);return!!X&&!!X.title&&!!X.iconName&&H.includes(X.iconName)};
_.R.getAdditionalButtonType=function(X){var H=this;if(_.P("web_imp_miniplayer_button"))return{button:2};if(_.P("web_imp_playback_speed_button"))return{button:3};var l=["BOX_STACK_3"],b=(X||[]).filter(function(K){return H.isValidThumbnailOverlayButton(K,l)}).map(function(K){return K.thumbnailOverlayButtonRenderer});
if(b.length)return{button:4,thumbnailOverlayButtonRenderers:b};var U=["BOX_STACK_3"];X=(X||[]).filter(function(K){return H.isValidThumbnailOverlayButtonViewModel(K,U)}).map(function(K){return _.f(K.thumbnailOverlayButtonViewModel.overlayButton,_.fk)});
if(X.length)return{button:4,thumbnailOverlayButtonViewModels:X}};
_.R.allowCaptions=function(){var X;return!((X=this.opts)==null?0:X.forceCaptionsOff)};
_.R.allowUnmuting=function(){var X;return this.enableAudioControls&&!((X=this.opts)==null?0:X.forceMutedVolume)};
_.R.beginStartTimeUpdater=function(){var X=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.UZ(function(){X.updateWatchEndpointStartTime()},1E3)};
_.R.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.R.resetPreventProgressSaveTimer=function(){this.JSC$21050_preventProgressSaveTimer!==null&&(_.Ss.cancelJob(this.JSC$21050_preventProgressSaveTimer),this.JSC$21050_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.R.updateWatchEndpointStartTime=function(X){var H=this.videoPreviewData;if(this.player&&H!=null&&H.inlinePlaybackEndpoint&&!this.JSC$21050_preventProgressSaveTimer){X=X?0:Math.floor(this.player.getCurrentTime());var l=_.f(H.navigationEndpoint,_.ku);l&&(l.startTimeSeconds=X);if(H=_.f(H.inlinePlaybackEndpoint,_.ku))H.startTimeSeconds=X}};
_.R.isShortcutClick=function(X){return!!X&&(X.ctrlKey||X.shiftKey||X.metaKey)};
_.R.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.R.openInMiniplayer=function(){var X=this,H,l;return _.h(function(b){if(b.nextAddress==1){l=(H=X.videoPreviewData)==null?void 0:H.navigationEndpoint;if(!l)return b.return();_.HW().lockupActivation=!0;return b.yield(_.t8H(_.jJ().resolve(_.f9),l),2)}_.HW().userActivation=!0;_.m5(b)})};
_.R.navigateToWatch=function(X){var H,l=(H=this.videoPreviewData)==null?void 0:H.navigationEndpoint;if(l){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(l,X,!0);else{var b;_.P("web_thumbnail_to_watch_transition")&&((b=this.opts)==null?0:b.thumbnail)&&_.km9(_.jJ().resolve(_.Cz),this.opts.thumbnail);_.QX(this.hostElement,"yt-navigate",{endpoint:l})}this.deactivate()}};
_.R.getInlinePlaybackVideoId=function(){var X,H;return(H=_.f((X=this.videoPreviewData)==null?void 0:X.inlinePlaybackEndpoint,_.ku))==null?void 0:H.videoId};
_.R.getInlinePlaybackTrackingParams=function(){var X,H;return(X=this.videoPreviewData)==null?void 0:(H=X.inlinePlaybackEndpoint)==null?void 0:H.clickTrackingParams};
_.R.hasMultipleVideoPreviews=function(){var X;return!!(((X=this.opts)==null?0:X.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.R.startPlaybackForNextVideo=function(){var X;(X=this.opts)!=null&&X.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())};
_.ja.Object.defineProperties(fb.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.opts)==null?0:X.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.opts)==null||!X.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 X;if(Array.isArray((X=this.opts)==null?void 0:X.videoPreviewData)){var H;return(H=this.opts)==null?void 0:H.videoPreviewData[this.videoPreviewDataIndex]}var l;return(l=this.opts)==null?void 0:l.videoPreviewData}}});
fb.prototype.onIsAdsVideoChange=fb.prototype.onIsAdsVideoChange;fb.prototype.onInlinePreviewIsEnabledChange=fb.prototype.onInlinePreviewIsEnabledChange;fb.prototype.optsChanged=fb.prototype.optsChanged;fb.prototype.onMouseLeave=fb.prototype.onMouseLeave;fb.prototype.onPersistentPanelVisibleChange=fb.prototype.onPersistentPanelVisibleChange;fb.JSC$21049_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
fb.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([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],fb.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],fb.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],fb.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],fb.prototype,"componentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.sv),_.N("design:type",Object)],fb.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.GC.YtSparklesClickLocationBehavior),_.N("design:type",Object)],fb.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],fb.prototype,"opts",void 0);_.T([_.g(),_.N("design:type",Object)],fb.prototype,"playerControlsData",void 0);_.T([_.g(),_.N("design:type",Object)],fb.prototype,"playerControlsAppApi",void 0);
_.T([_.g(),_.N("design:type",Object)],fb.prototype,"playerControlsOptions",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fb.prototype,"noAnimation",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fb.prototype,"hidden",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fb.prototype,"active",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fb.prototype,"playing",void 0);
_.T([_.g({selector:_.DjN}),_.N("design:type",Boolean)],fb.prototype,"inlinePreviewIsEnabled",void 0);_.T([_.g(),_.N("design:type",String)],fb.prototype,"pagePath",void 0);_.T([_.g({selector:_.nWN}),_.N("design:type",Boolean)],fb.prototype,"isWatchPage",void 0);_.T([_.g({selector:_.ze.persistentPanelVisibleSelector}),_.N("design:type",Object)],fb.prototype,"persistentPanelVisible",void 0);
_.T([_.x("videoPreviewData"),_.N("design:type",Object),_.N("design:paramtypes",[])],fb.prototype,"thumbnailData",null);_.T([_.x("opts","active"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fb.prototype,"hidePlayerControls",null);_.T([_.x("opts"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fb.prototype,"isAdsVideo",null);
_.T([_.x("opts"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fb.prototype,"roundedCornersSmall",null);_.T([_.x("opts"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fb.prototype,"roundedCornersMedium",null);_.T([_.x("opts"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fb.prototype,"roundedCornersLarge",null);
_.T([_.x("opts"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fb.prototype,"unroundCornersForPlayback",null);_.T([_.x("opts","videoPreviewDataIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],fb.prototype,"videoPreviewData",null);_.T([_.g(),_.N("design:type",Object)],fb.prototype,"videoPreviewDataIndex",void 0);_.T([_.A2("#inline-player"),_.N("design:type",Object)],fb.prototype,"inlinePlayer",void 0);
_.T([_.Yh("persistentPanelVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fb.prototype,"onPersistentPanelVisibleChange",null);_.T([_.Le("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],fb.prototype,"onMouseLeave",null);_.T([_.oi("opts"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fb.prototype,"optsChanged",null);
_.T([_.oi("inlinePreviewIsEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fb.prototype,"onInlinePreviewIsEnabledChange",null);_.T([_.Yh("isAdsVideo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fb.prototype,"onIsAdsVideoChange",null);_.T([_.sq({is:"ytd-video-preview",disableElementRegistration:!0})],fb);
_.O(fb,"ytd-video-preview",function(){if(bsd!==void 0)return bsd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return bsd=X},{mode:2});var tVl;var pb=function(){var X=_.a.apply(this,arguments)||this;X.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};X.forceDarkTheme=!1;X.forceLightTheme=!1;X.dynamicTextHeight=94;X.hasOverflowButton=!1;X.isInfeedModernization=!1;return X};
_.S(pb,_.a);_.R=pb.prototype;_.R.computeUrlImg=function(X){if(X)return _.a1(X.thumbnails)};
_.R.getLogoHeight=function(X){return this.logoWithPadding(X)?"31":"24"};
_.R.getLogoClassName=function(X){return this.logoWithPadding(X)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.R.logoWithPadding=function(X){var H,l;return(X=(H=X.thumbnails)==null?void 0:(l=H[0])==null?void 0:l.height)&&X%31===0?!0:!1};
_.R.sendImpressionEndpoints=function(X){X.impressionEndpoints&&_.ci(this.hostElement,X.impressionEndpoints)};
_.R.observeBasicPalette=function(){var X,H,l=(X=this.data)==null?void 0:(H=X.colorData)==null?void 0:H.basicColorPaletteData;l?_.Rq(this.hostElement,l):_.Rq(this.hostElement,{})};
_.R.observeDataChanged=function(){var X;this.dynamicTextHeight=((X=this.data)==null?0:X.supplementalText)?74:94;var H;this.hasSupplementalText=!((H=this.data)==null||!H.supplementalText);var l,b,U,K;X=(l=this.data)==null?void 0:(b=l.actionButton)==null?void 0:(U=b.buttonRenderer)==null?void 0:(K=U.colorData)==null?void 0:K.basicColorPaletteData;var w,d,B;if(!((w=this.data)==null?0:(d=w.actionButton)==null?0:(B=d.buttonRenderer)==null?0:B.style)&&X){this.computeIsInfeedModernization(this.data)||(X.borderColor=
X.foregroundTitleColor);var q,u;this.set("data.actionButton.buttonRenderer",_.Bb.unsafeClone((q=this.data)==null?void 0:(u=q.actionButton)==null?void 0:u.buttonRenderer))}};
_.R.observeDataForCounterfactual=function(){if(_.P("kevlar_banner_cf_extra_logging")){var X;((X=this.data)==null?0:X.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.R.computeSupplementalStyle=function(){var X;if((X=this.data)!=null&&X.supplementalText){var H,l,b;if((H=this.data)==null?0:(l=H.colorData)==null?0:(b=l.basicColorPaletteData)==null?0:b.foregroundActivatedColor)return X=_.BM(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+X+"; --yt-endpoint-hover-color:"+X+"; --yt-endpoint-visited-color:"+X+"; --yt-formatted-string-bold-font-weight:700;"}};
_.R.computeForcedDarkTheme=function(){var X,H,l,b=(X=this.data)==null?void 0:(H=X.actionButton)==null?void 0:(l=H.buttonRenderer)==null?void 0:l.style,U,K,w;X=wKe(((U=this.data)==null?void 0:(K=U.colorData)==null?void 0:(w=K.basicColorPaletteData)==null?void 0:w.backgroundColor)||0);return b&&X};
_.R.computeForcedLightTheme=function(){var X,H,l,b=(X=this.data)==null?void 0:(H=X.actionButton)==null?void 0:(l=H.buttonRenderer)==null?void 0:l.style,U,K,w;X=!wKe(((U=this.data)==null?void 0:(K=U.colorData)==null?void 0:(w=K.basicColorPaletteData)==null?void 0:w.backgroundColor)||0);return b&&X};
_.R.computeHasOverflowButton=function(X){return!!X.overflowButton};
_.R.computeHasTitle=function(X){return!!X.title};
_.R.computeTitleMaxFontSize=function(X){return this.computeHasOverflowButton(X)?28:64};
_.R.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.R.computeIsInfeedModernization=function(){var X,H,l,b,U=(X=this.data)==null?void 0:(H=X.actionButton)==null?void 0:(l=H.buttonRenderer)==null?void 0:(b=l.colorData)==null?void 0:b.basicColorPaletteData;return(U==null?void 0:U.backgroundColor)===452984831||(U==null?void 0:U.backgroundColor)===218103808};
pb.prototype.observeDataForCounterfactual=pb.prototype.observeDataForCounterfactual;pb.prototype.observeDataChanged=pb.prototype.observeDataChanged;pb.prototype.observeBasicPalette=pb.prototype.observeBasicPalette;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],pb.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],pb.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pb.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],pb.prototype,"hasSupplementalText",void 0);_.T([_.g(),_.N("design:type",Object)],pb.prototype,"dismissButtonOverrides",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.N("design:type",Boolean)],pb.prototype,"hasTitle",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.N("design:type",Object)],pb.prototype,"forceDarkTheme",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.N("design:type",Object)],pb.prototype,"forceLightTheme",void 0);_.T([_.g(),_.N("design:type",Object)],pb.prototype,"dynamicTextHeight",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.N("design:type",Object)],pb.prototype,"hasOverflowButton",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.N("design:type",Object)],pb.prototype,"isInfeedModernization",void 0);_.T([_.Yh("data.colorData.basicColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pb.prototype,"observeBasicPalette",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pb.prototype,"observeDataChanged",null);_.T([_.Yh("data.isVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pb.prototype,"observeDataForCounterfactual",null);_.T([_.sq({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],pb);
_.O(pb,"ytd-banner-promo-renderer",function(){if(tVl!==void 0)return tVl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return tVl=X},{mode:1});var GMd=_.Z(function(X){var H=X.data;var l=X.hideDivider;var b=X.isChannelInfoCard;X={};return _.F("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.F("div",{class:_.Qr("yt-profile-identity-info-view-model__frame",(X["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!H().channelBanner},X))},_.F(Wpx,{profileIdentityInfoData:H}),_.F("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.F("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.F(_.l4,{data:function(){return H().avatar}},{avatarViewModel:_.MX})),_.F(EFZ,{profileIdentityInfoData:H})),_.F(_.M,{cond:function(){return H().channelDescription},
then:function(U){var K={};return _.F("div",{class:_.Qr((K["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(b==null||!b())},K["yt-profile-identity-info-view-model__channel-description"]=function(){return!(b==null?0:b())},K))},U)}}),_.F(gFA,{profileIdentityInfoData:H}),_.F(_.M,{cond:function(){return!(l==null?0:l())},
then:function(){return _.F("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Ej");
GMd.idomCompat=!0;var gFA=_.Z(function(X){var H=X.profileIdentityInfoData;return _.F("div",{class:"yt-profile-identity-info-view-model__buttons"},_.F(_.P$,{each:function(){return H().subscribeButton?[H().subscribeButton,H().channelAccess]:[H().channelAccess]}},function(l){return _.F("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.F("div",{class:"yt-profile-identity-info-view-model--button"},_.F(_.l4,{data:function(){return l}},{buttonViewModel:_.Qk,
subscribeButtonViewModel:_.sI})))}))},"Fj"),EFZ=_.Z(function(X){var H=X.profileIdentityInfoData;
return _.F("div",{class:"yt-profile-identity-info-view-model__trio"},_.F("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.F(aPN,{profileIdentityInfoData:H}),_.F(_.l4,{data:function(){return H().threeDotMenu}},{buttonViewModel:_.Qk})),_.F(ZsY,{profileIdentityInfoData:H}))},"Gj"),aPN=_.Z(function(X){var H=X.profileIdentityInfoData;
return _.F("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.F("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return H().channelDisplayName}),_.F(_.M,{cond:function(){return H().verifiedOrOacBadge},
then:function(l){return _.F("div",{class:"yt-profile-identity-info-view-model__badge"},_.F(_.Dp,{data:function(){return{thumbnails:[{url:l().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Hj"),Wpx=_.Z(function(X){var H=X.profileIdentityInfoData;
return _.F("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.F(_.l4,{data:function(){var l=H().channelBanner;if(l)return{imageBannerViewModel:{image:l.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(l){return _.F("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.F(_.EY,{data:l.data,
isPositionRelative:!0}))}}))},"Ij"),ZsY=_.Z(function(X){var H=X.profileIdentityInfoData;
return _.F("div",{class:"yt-profile-identity-info-view-model__metadata"},_.F("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.F("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return H().channelHandle}),_.F(_.M,{cond:function(){return H().channelPronouns&&H().channelHandle},
then:function(){return _.F("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.F("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return H().channelPronouns})),_.F("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.F("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return H().leftOfBulletInfo}),_.F(_.M,{cond:function(){return H().leftOfBulletInfo&&H().rightOfBulletInfo},
then:function(){return _.F("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.F("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return H().rightOfBulletInfo})))},"Jj");_.gC(GMd,"yt-profile-identity-info-view-model",{props:{data:_.zh,hideDivider:_.zh,isChannelInfoCard:_.zh}});_.gC(_.ryC,"yt-page-header-view-model",{props:{data:_.zh,noPadding:_.zh,enableBanner:_.zh,cinematicContainerTopbarOffset:_.zh,allowCinematicContainerOverflow:_.zh,displayAsSidebar:_.zh,displayAsPanel:_.zh,alwaysUseMediumTextDescription:_.zh}});var isp=_.Z(function(){return _.F("div",{class:_.Qr("ytdGhostGridViewModelGhostCard")},_.F("div",{class:_.Qr("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.F("div",{class:_.Qr("ytdGhostGridViewModelDetails")},_.F("div",{class:_.Qr("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.F("div",{class:_.Qr("ytdGhostGridViewModelDetailsTextShell")},_.F("div",{class:_.Qr("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.F("div",{class:_.Qr("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"Lj");_.gC(_.Z(function(X){var H=X.data;var l=_.Aa(_.qo);return _.F("ytd-ghost-grid-view-model",{class:_.Qr("ytdGhostGridViewModelHost")},_.F(_.P$,{each:function(){var b=Array,U;var K=((U=H().numRows)!=null?U:0)*l();return b(K)},
keyBy:"INDEX"},function(){return _.F(isp,null)}))},"Kj"),"ytd-ghost-grid-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;var l=function(){var U;return(U=H().numColumns)!=null?U:2},b=function(){return l()>1?3:2};
X={};return _.F("ytd-rich-grid-group",{class:_.Qr("ytdRichGridGroupHost",(X.ytdRichGridGroupHostFirstColumn=function(){return H().colIndex===0},X)),
style:_.rC({"--ytd-rich-grid-group-num-columns":l,"--ytd-rich-grid-items-per-group":b})},_.F("div",{class:"ytdRichGridGroupContents"},_.F(_.l4,{data:function(){var U;return(U=H().contents)==null?void 0:U.slice(0,b())}},{richItemRenderer:function(U){return _.F(_.cmY,{data:U.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Mj"),"ytd-rich-grid-group",{props:{data:_.zh}});var SX=function(){var X=_.a.apply(this,arguments)||this;X.resizeOnObserverInit=!1;X.isInlinePreviewDisabled=_.P("web_disable_inline_preview");X.disableStickyFilterBar=!1;X.transparentBackgroundChipsBar=!1;X.hideChipsBar=!1;X.isScrolled=!1;X.isWatchDefaultLayout=!0;X.continuationShowButton=!1;X.rowReducedHorizontalMargin=!1;X.useCompactList=!1;X.manualDownloadsPresent=!1;X.smartDownloadsPresent=!1;X.isOnline=!1;X.shouldRenderDownloadsBanner=!1;X.shouldRenderDownloadsBannerUpsell=!1;X.hasOptedIntoSmartDownloads=
!1;X.elementsPerRow=4;X.typographyBump=!1;X.slimItemsPerRow=1;X.pageLoadingFromNavigation=!1;X.resizeObserver=null;X.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"};X.rendererToTagNameMap=new Map(Object.entries(X.contentMapping()).map(function(H){var l=
_.C(H);H=l.next().value;l=l.next().value;return[H,l.component]}));
X.insertedContent=new Map;return X};
_.S(SX,_.a);_.R=SX.prototype;_.R.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var X=_.C(_.mh(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),H=X.next();!H.done;H=X.next())H.value.useCompactList=this.useCompactList};
_.R.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var X=_.C(_.mh(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),H=X.next();!H.done;H=X.next())H=H.value,H.sizing=this.sizing,H.typographyBump=this.typographyBump};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.R.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]]"}}}};
_.R.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1},loadingContentRenderer:{id:"reload-content",
mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.R.attached=function(){document.addEventListener("yt-page-type-changed",_.J2(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.J2(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$21079_throttledOnResize=new _.jw(this.resizeObserved,_.Yy("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.J2(this,this.onScroll))};
_.R.detached=function(){var X;(X=this.resizeObserver)==null||X.disconnect();document.removeEventListener("yt-page-type-changed",_.J2(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.J2(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.J2(this,this.onScroll))};
_.R.insertRichSection=function(X){var H=X.richItemTargetId;X=X.richSectionRendererToInsert;H&&X&&(this.insertedContent.set(H,{content:X,timestamp:Date.now()}),this.reflowContent())};
_.R.computeIsInlinePreviewEnabled=function(X,H,l){return _.P("web_disable_inline_preview")?!1:!l&&b9U({miniplayerIsActive:X,miniplayerPlaybackState:H})};
_.R.computeSizing=function(){var X=_.bbh(this.data);if(X||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return X?this.useCompactList?"COMPACT":X:this.miniMode?"COMPACT":"STANDARD"};
_.R.updateItemMinAndMaxWidth=function(){var X=_.Yy("rich_grid_max_item_width",500);X>0&&_.j4(this.hostElement,{"--ytd-rich-grid-item-max-width":X+"px"});var H;X=this.getRichItemMinWidth((H=this.hostElement)==null?void 0:H.clientWidth);X>0&&_.j4(this.hostElement,{"--ytd-rich-grid-item-min-width":X+"px"})};
_.R.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.R.resizeObserved=function(){_.NG(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.R.onPageChange=function(){var X=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.NG(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Ss.addJob(function(){X.pageLoadingFromNavigation=!1;X.setMasthead();X.maybeSetBigYoodle();X.forceRefreshAndLog();X.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.R.dataChanged=function(){var X=this;_.NG(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.N0(this,function(){X.updateRichItemGridPositions();X.contentsElement&&_.j4(X.hostElement,{"--ytd-rich-grid-content-offset-top":X.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.R.initResizeObserver=function(){var X=this;if(window.ResizeObserver){var H;(H=this.resizeObserver)==null||H.disconnect();var l=!1;this.resizeObserver=new ResizeObserver(function(){if(l){var b;(b=X.resizeObserver)==null||b.disconnect();var U;(U=X.JSC$21079_throttledOnResize)==null||U.fire();requestAnimationFrame(function(){var w;(w=X.JSC$21079_throttledOnResize)==null||w.fire();X.initResizeObserver()})}else if(l=!0,X.resizeOnObserverInit){var K;
(K=X.JSC$21079_throttledOnResize)==null||K.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.R.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.NG(this.hostElement,"ytd-rich-item-index-update-action")};
_.R.updateElementsPerRow=function(){_.NG(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Of({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Of({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.R.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.R.onRichShelfRendererCollapse=function(X){if(this.shownItems){var H=X.detail;X=this.shownItems.findIndex(function(b){var U,K;return((K=_.f(b==null?void 0:(U=b.richSectionRenderer)==null?void 0:U.content,_.H79))==null?void 0:K.trackingParams)===H});
var l=X+1;X<0||l>=this.contentsElement.children.length||!this.shownItems[l].richItemRenderer||this.contentsElement.children[l].scrollIntoView({behavior:"smooth",block:"start"})}};
_.R.onSoftReloadPage=function(){this.scrollUpToTop()};
_.R.handleRerenderDownloadsData=function(){_.P("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.R.handlePlaylistRemoveVideosAction=function(X){var H;if(((H=_.f(X,_.Mfv))==null?0:H.setVideoIds)&&this.data&&this.data.contents){X=_.f(X,_.Mfv).setVideoIds;for(H=this.data.contents.length-1;H>=0;){var l=_.f(this.data.contents[H],_.$8);(l=l&&_.f(l.content,_.eR))&&l.setVideoId&&X.includes(l.setVideoId)&&this.splice("data.contents",H,1);H--}this.updateIndices()}};
_.R.updateIndices=function(){if(this.data&&this.data.contents)for(var X=0;X<this.data.contents.length;X++)this.set("data.contents."+X+".richItemRenderer.index",_.xM(String(X+1)))};
_.R.hasTopRowInlinePlayableVideoWithEndorsement=function(X){var H;return!((H=X.slice(0,this.getItemsPerRow()))==null||!H.some(function(l){var b;l=_.f(l==null?void 0:(b=l.richItemRenderer)==null?void 0:b.content,_.YRG);var U;return(l==null?void 0:l.inlinePlaybackEndpoint)&&(l==null?void 0:(U=l.thumbnailOverlays)==null?void 0:U.some(function(K){return K.thumbnailOverlayEndorsementRenderer}))}))};
_.R.refreshGridLayoutNew=function(X,H,l,b){var U=b.postsPerRow;var K=b.slimItemsPerRow;var w=b.gameCardsPerRow;b=b.miniGameCardsPerRow;var d;if((d=this.data)==null||!d.contents||!this.containerWidth)return!1;var B;if((B=this.data.responsiveContainerConfiguration)==null?0:B.responsiveSize){var q=_.a2N(this.data.responsiveContainerConfiguration,this.containerWidth,2),u;d=_.fS(Object.assign({},q,{standardUnitMinWidth:(u=this.data)==null?void 0:u.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&q.isCompactList)}else d=_.fS({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(q=this.data)==null?void 0:q.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=d.typographyBump;u=!1;if(X||this.elementsPerRow!==d.numItems||this.postsPerRow!==U||this.slimItemsPerRow!==K||this.gameCardsPerRow!==
w||this.miniGameCardsPerRow!==b||this.gutter!==d.gutter)u=this.elementsPerRow!==d.numItems,this.elementsPerRow=d.numItems,this.postsPerRow=U,this.slimItemsPerRow=K,this.gameCardsPerRow=w,this.miniGameCardsPerRow=b,this.gutter=d.gutter,this.itemWidth=d.itemWidth,this.reflowContent(H),_.j4(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":d.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(l);this.ytdReduxBehavior.dispatch(_.Of({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:d.maxContainerWidth}));return u};
_.R.refreshGridLayout=function(X,H){var l,b=(l=this.hostElement)==null?void 0:l.clientWidth;this.containerWidth=this.adjustRichGridWidth(b,!0);var U;if((U=this.data)==null||!U.contents||!this.containerWidth)return X&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(X=!0,this.pendingForceReflow=!1);l=this.getRichItemMinWidth(b);var K=this.isShortsPanel?146:194,w=this.getMiniGameCardMinWidth(),d=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.Yy("rich_grid_default_max_items_per_row",
6);b=l=this.calcElementsPerRow(l,d);(U=l<=3&&this.miniModeAllowed())&&(l=this.calcElementsPerRow(240,4));var B=this.calcMaxSlimElementsPerRow(l,d,this.isDefaultGrid);d=this.calcElementsPerRow(K,B);var q=this.calcElementsPerRow(this.isCompactGrid?K:154,B);K=this.calcElementsPerRow(this.isCompactGrid?K:w,B);w=!1;if(this.sizing)return this.refreshGridLayoutNew(X,H,U,{postsPerRow:b,slimItemsPerRow:d,gameCardsPerRow:q,miniGameCardsPerRow:K});if(X||this.elementsPerRow!==l||this.postsPerRow!==b||this.slimItemsPerRow!==
d||this.gameCardsPerRow!==q||this.miniGameCardsPerRow!==K)w=this.elementsPerRow!==l,this.elementsPerRow=l,this.postsPerRow=b,this.slimItemsPerRow=d,this.gameCardsPerRow=q,this.miniGameCardsPerRow=K,this.reflowContent(H),this.updateElementsPerRow(),_.j4(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)&&_.j4(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(U);_.NG(this.hostElement,"yt-rich-grid-layout-refreshed");return w};
_.R.getRichItemMinWidth=function(X){var H=_.Yy("rich_grid_min_item_width",310);if(!_.P("kevlar_disable_min_width_override")){var l,b;H=(b=(l=this.data)==null?void 0:l.minItemWidth)!=null?b:H}return H+_.I0l(X)};
_.R.calcMaxSlimElementsPerRow=function(X,H,l){return(l===void 0?0:l)?X===1?2:X%2===0?X/2*3:X+2:H*2};
_.R.adjustRichGridWidth=function(X,H){var l=_.P("disable_rich_grid_guide_compensation");if(!this.isWatch&&!l&&this.hostElement.offsetWidth===document.body.clientWidth&&(l=_.jJ().resolve(_.c$(_.Vx)))&&!l.getData())if(l.canFitPersistentGuide(X)&&l.getGuideExpandsAutomatically()){var b,U,K=Number((b=window.getComputedStyle(this.hostElement))==null?void 0:(U=b.getPropertyValue("--app-drawer-width"))==null?void 0:U.replace("px",""));X-=K||0}else if(l.canFitMiniGuide(X)){var w;b=Number((K=window.getComputedStyle(this.hostElement))==
null?void 0:(w=K.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:w.replace("px",""));X-=b||0}X>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(X-=H?32:48));return X};
_.R.calcElementsPerRow=function(X,H){var l=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),b=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((l+b)/(X+b))||1,H)};
_.R.reflowContent=function(X){var H=this;if(!this.isReflowing){this.isReflowing=!0;var l,b,U=!!((l=this.data)==null?0:(b=l.contents)==null?0:b.some(function(d){return _.f(d,_.OF)}));
l=this.getItemsPerRow();var K;b=(K=this.data)==null?void 0:K.reflowOptions;X&&(_.sf("rgr_s"),_.N0(this,function(){_.sf("rgr_nrf")}));
X={};(K=_.mh(this.hostElement).querySelector("#contents"))&&(X={contentElement:K,rendererToTagNameMap:this.rendererToTagNameMap});K=(K=this.data.contents)?K.slice():[];U=P5x(K,l,U,b,this.getRichGridStyle(),X,this.insertedContent);var w=U.orderedContent;if(U=U.pinnedContentNotShownTargetIds)for(U=_.C(U),l=U.next();!l.done;l=U.next())this.insertedContent.delete(l.value);U=function(){H.shownItems=w;H.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(w),_.N0(this,U)):U()}};
_.R.getFirstRowItems=function(X){for(var H=[],l=0;l<X.length;l++){var b=void 0,U=void 0,K=void 0,w=void 0,d=void 0,B=void 0;if(((b=X[l])==null?void 0:(U=b.richItemRenderer)==null?void 0:U.rowIndex)===0||((K=X[l])==null?void 0:(w=K.richGroupRenderer)==null?void 0:w.rowIndex)===0||((d=X[l])==null?void 0:(B=d.richSectionRenderer)==null?void 0:B.rowIndex)===0)H.push(X[l]);else break}return H};
_.R.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.R.resetInsertedContentIfNeeded=function(){(_.P("web_explore_hub_on_hover")||_.P("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.R.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.R.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()};
_.R.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.R.terminateVideoPreview=function(){_.NG(this.hostElement,"yt-terminate-video-preview-action")};
_.R.updateRichItemGridPositions=function(){var X={gridData:{gridColumnCount:this.elementsPerRow}},H;((H=this.data)==null?0:H.trackingParams)&&(H=_.Bi())&&_.tY(H,_.$l(this.data.trackingParams),X);_.NG(this.hostElement,"ytd-rich-item-index-update-action")};
_.R.miniModeAllowed=function(){return this.isChannelPage};
_.R.getMiniGameCardMinWidth=function(){return 154};
_.R.updateMiniMode=function(X){this.miniMode=this.miniModeAllowed()&&X;this.ytdReduxBehavior.dispatch(_.Of({type:"SET_RICH_GRID_MINI_MODE",payload:X}))};
_.R.isCurrentPage=function(){return location.pathname===this.pagePath};
_.R.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var X=_.jJ().resolve(_.gd).getCurrentPage();X&&X.setScrollTop(0)}};
_.R.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.R.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.R.maybeSetBigYoodle=function(){var X,H=(X=this.data)==null?void 0:X.bigYoodle;this.bigYoodleData!==H&&(this.bigYoodleData=H)};
_.R.setMasthead=function(){var X;((X=this.data)==null?0:X.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.R.getRichGridStyle=function(){var X,H;return(H=(X=this.data)==null?void 0:X.style)!=null?H:"RICH_GRID_STYLE_UNKNOWN"};
_.R.onIsShortsGridChange=function(){var X=this.ytdReduxBehavior,H=X.dispatch,l=this.getRichGridStyle();H.call(X,_.Of({type:"SET_RICH_GRID_STYLE",payload:l}))};
_.R.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.R.onScroll=function(){this.isScrolled=window.scrollY>0};
_.ja.Object.defineProperties(SX.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.P("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.ytContinuationHandlerBehavior)==null?void 0:X.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var X;return(((X=this.data)==null?void 0:X.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var X;return(((X=this.data)==null?void 0:X.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var X=_.jJ().resolve(_.gd).getCurrentPage(),H,l,b;return(((H=this.data)==null?void 0:H.targetId)==="browse-feedFEsfv_audio_pivot"||_.P("web_enable_channel_pivot_panel")&&((l=this.data)==null?void 0:l.targetId)==="browse-feedFEsfv_channel_pivot"||_.P("web_enable_effect_pivot_panel")&&((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_effect_pivot")&&(X==null?void 0:X.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.P("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 X;return!((X=this.data)==null?0:X.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var X;return((X=_.jJ().resolve(_.gd).getCurrentPage())==null?void 0:X.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var X;return((X=_.jJ().resolve(_.gd).getCurrentPage())==null?void 0:X.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 X;return(((X=this.data)==null?void 0:X.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((X=this.data)==null?0:X.enableContentSpecificAspectRatio)||((H=this.data)==null?0:(l=H.responsiveContainerConfiguration)==null?0:l.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Yy("web_continuation_handler_margin",0):0}}});
SX.prototype.onIsShortsGridChange=SX.prototype.onIsShortsGridChange;SX.prototype.onReloadContinuationFinish=SX.prototype.onReloadContinuationFinish;SX.prototype.reflowContent=SX.prototype.reflowContent;SX.prototype.handleRerenderDownloadsData=SX.prototype.handleRerenderDownloadsData;SX.prototype.onRichShelfRendererCollapse=SX.prototype.onRichShelfRendererCollapse;SX.prototype.onRequestElementsPerRow=SX.prototype.onRequestElementsPerRow;SX.prototype.contentLengthChanged=SX.prototype.contentLengthChanged;
SX.prototype.dataChanged=SX.prototype.dataChanged;SX.prototype.onSizingChange=SX.prototype.onSizingChange;SX.prototype.onUseCompactListChange=SX.prototype.onUseCompactListChange;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],SX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],SX.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.$s),_.N("design:type",Object)],SX.prototype,"ironResizableBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],SX.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.EO),_.N("design:type",Object)],SX.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],SX.prototype,"componentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],SX.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],SX.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],SX.prototype,"miniMode",void 0);_.T([_.g({value:[]}),_.N("design:type",Array)],SX.prototype,"shownItems",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],SX.prototype,"isReflowing",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],SX.prototype,"isFilteredFeed",void 0);_.T([_.g({selector:_.Svh}),_.N("design:type",Boolean)],SX.prototype,"guideIsExpanded",void 0);
_.T([_.g({selectorArgs:["entitySelectorType"],selector:function(X,H){if(_.P("kevlar_modern_downloads_page")&&H&&H!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(H){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":H=X.entities;var l=_.dR(H),b=_.h0(H),U=_.T28(X),K=_.QIm(X),w=_.N2m(X),d=_.qvk(H),B=_.U9(l),q=_.Fe(H);return _.DNL(l,b,d,_.egL(H),U,K,B,q,w,_.jIZ(X),_.u5(X));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return X=_.dR(X.entities),_.W_k(X);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return X=
_.hgm(X.entities),_.ELO(X);default:_.x2(new _.qd("Error: entitySelectorType defined but not matched in selector.",X,H))}}}),
_.N("design:type",Object)],SX.prototype,"entityDrivenRichGridData",void 0);_.T([_.g(),_.N("design:type",Object)],SX.prototype,"resizeOnObserverInit",void 0);_.T([_.g(),_.N("design:type",Object)],SX.prototype,"bigYoodleData",void 0);_.T([_.g(),_.N("design:type",Object)],SX.prototype,"mastheadData",void 0);_.T([_.g(),_.N("design:type",Boolean)],SX.prototype,"isInlinePreviewDisabled",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SX.prototype,"disableStickyFilterBar",void 0);
_.T([_.g(),_.N("design:type",Object)],SX.prototype,"transparentBackgroundChipsBar",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SX.prototype,"hideChipsBar",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("isHomePage","isFilteredFeed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"showChipsOnScroll",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SX.prototype,"isScrolled",void 0);
_.T([_.g(),_.N("design:type",Object)],SX.prototype,"isWatchDefaultLayout",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SX.prototype,"continuationShowButton",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SX.prototype,"rowReducedHorizontalMargin",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SX.prototype,"useCompactList",void 0);_.T([_.g({selector:function(X){return _.h0(X.entities).length>0}}),
_.N("design:type",Object)],SX.prototype,"manualDownloadsPresent",void 0);_.T([_.g({selector:function(X){return _.dR(X.entities).length>0}}),
_.N("design:type",Object)],SX.prototype,"smartDownloadsPresent",void 0);_.T([_.g({selector:_.u5}),_.N("design:type",Object)],SX.prototype,"isOnline",void 0);_.T([_.g({selector:_.QIm}),_.N("design:type",Object)],SX.prototype,"shouldRenderDownloadsBanner",void 0);_.T([_.g({selector:_.jIZ}),_.N("design:type",Object)],SX.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.T([_.g({selector:_.T28}),_.N("design:type",Object)],SX.prototype,"hasOptedIntoSmartDownloads",void 0);
_.T([_.Yh("useCompactList"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SX.prototype,"onUseCompactListChange",null);_.T([_.Yh("sizing","typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SX.prototype,"onSizingChange",null);_.T([_.g({selector:_.tn8}),_.N("design:type",Number)],SX.prototype,"miniplayerPlaybackState",void 0);_.T([_.g({selector:_.s9}),_.N("design:type",Boolean)],SX.prototype,"miniplayerIsActive",void 0);
_.T([_.g({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.N("design:type",Boolean)],SX.prototype,"isInlinePreviewEnabled",void 0);_.T([_.g({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.N("design:type",String)],SX.prototype,"sizing",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],SX.prototype,"elementsPerRow",void 0);
_.T([_.g(),_.N("design:type",Object)],SX.prototype,"typographyBump",void 0);_.T([_.g(),_.N("design:type",Number)],SX.prototype,"itemWidth",void 0);_.T([_.A2("#header"),_.N("design:type",HTMLElement)],SX.prototype,"headerElement",void 0);_.T([_.A2("#contents"),_.N("design:type",HTMLElement)],SX.prototype,"contentsElement",void 0);_.T([_.x("reloadUiContent"),_.N("design:type",Object),_.N("design:paramtypes",[])],SX.prototype,"loadingContentRenderer",null);
_.T([_.x("reloadUiContent"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"hasLoadingContent",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SX.prototype,"dataChanged",null);_.T([_.oi("data.contents.length"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SX.prototype,"contentLengthChanged",null);
_.T([_.Le("yt-request-elements-per-row"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SX.prototype,"onRequestElementsPerRow",null);_.T([_.Le("yt-rich-shelf-renderer-collapse"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],SX.prototype,"onRichShelfRendererCollapse",null);
_.T([_.oi("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SX.prototype,"handleRerenderDownloadsData",null);_.T([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],SX.prototype,"entitySelectorType",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"isSub",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"isWatch",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"isShortsPanel",null);
_.T([_.g({reflectToAttribute:!0}),_.x("isWatch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"reducedTopMargin",null);_.T([_.g({reflectToAttribute:!0}),_.x("data","isWatch","isWatchDefaultLayout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"noTopMargin",null);_.T([_.g({reflectToAttribute:!0}),_.x("isInlinePreviewEnabled","shownItems"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"topRowEndorsement",null);
_.T([_.x("data.header"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"hideHeader",null);_.T([_.Le("yt-rich-grid-reflow"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],SX.prototype,"reflowContent",null);_.T([_.Le("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SX.prototype,"onReloadContinuationFinish",null);
_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"isSlimGrid",null);_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"isShortsGrid",null);_.T([_.x("data","isSlimGrid","isShortsGrid"),_.g(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"noRichItemGutterMargins",null);
_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"isShortsGridSlim",null);_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"isCompactGrid",null);_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"isDefaultGrid",null);
_.T([_.x("data.targetId"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"hideChipsBarOnWatch",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SX.prototype,"onIsShortsGridChange",null);_.T([_.x("data.enableContentSpecificAspectRatio"),_.g(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SX.prototype,"force16By9ThumbnailAspectRatio",null);
_.T([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],SX.prototype,"continuationTriggerOffset",null);_.T([_.sq({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],SX);
_.O(SX,"ytd-rich-grid-renderer",function(){if(vC$!==void 0)return vC$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vC$=X},{mode:2});var vFl;var z1=function(){return _.a.apply(this,arguments)||this};
_.S(z1,_.a);_.R=z1.prototype;
_.R.onKeyDown=function(X){if(this.snippetElements.length!==0&&(X=X.keyCode,X===38||X===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);X===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.kY(this.highlightedIndex,-1,this.snippetElements.length);X=this.snippetElements.length;var H=this.highlightedIndex%X;this.highlightedIndex=H*X<0?H+X:H;X=this.snippetElements[this.highlightedIndex];this.highlightSnippet(X);this.ensureVisible(X)}};
_.R.onKeyUp=function(X){var H=this;D6x(X)&&(X.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Ss.cancelJob(this.inputTimerId),this.inputTimerId=_.Ss.addLowPriorityJob(function(){H.typedValue&&(H.fetchSnippets(H.typedValue),H.logInputGesture(H.data))},1E3))};
_.R.onClick=function(X){(X=_.wEC(X.target,null,"snippet-item"))&&this.selectSnippet(X)};
_.R.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.R.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.R.ready=function(){var X=this;this.inputElement.addEventListener("focus",function(){X.snippetsWrapper.style.removeProperty("display")})};
_.R.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.R.getSourceTimelines=function(){if(!this.data)return[];var X=[];if(this.data.searchInVideoSources)for(var H=_.C(this.data.searchInVideoSources),l=H.next();!l.done;l=H.next())l=l.value,l==="SEARCH_IN_VIDEO_SOURCE_ASR"?X.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):l==="SEARCH_IN_VIDEO_SOURCE_OCR"&&X.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return X};
_.R.fetchSnippets=function(X){var H=_.TP(this.hostElement,"yt-get-current-video-id-action")[0],l=this.getSourceTimelines();X={getSearchInVideoCommand:{externalVideoId:H,query:X!=null?X:"",sourceTimelines:l},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}})};
_.R.filterSnippets=function(X,H){var l=this;if(H){this.filteredSnippets=(0,_.Bb.unsafeClone)(X);var b=RegExp(_.zkl(H),"i");this.filteredSnippets=this.filteredSnippets.filter(function(w){return b.test(l.ytRendererBehavior.getSimpleString(w.snippet))});
X=_.C(this.filteredSnippets);for(var U=X.next();!U.done;U=X.next()){U=U.value;var K=this.ytRendererBehavior.getSimpleString(U.snippet);U.snippet={runs:[{text:K.substring(0,K.toLowerCase().indexOf(H))},{text:K.substring(K.toLowerCase().indexOf(H),K.toLowerCase().indexOf(H)+H.length),bold:!0},{text:K.substring(K.toLowerCase().indexOf(H)+H.length,K.length)}]}}}else this.filteredSnippets=X};
_.R.onUpdateSearchInVideoResults=function(X){if(!(this.snippets.length>0)){var H,l,b;if((b=(H=_.f(X,ugl))==null?void 0:(l=H.results)==null?void 0:l.length)!=null&&b){var U;this.filteredSnippets=this.snippets=((U=_.f(X,ugl))==null?void 0:U.results).map(function(K){var w,d,B;return{startMs:K==null?void 0:(w=K.searchInVideoResultRenderer)==null?void 0:w.startMs,startTimeText:K==null?void 0:(d=K.searchInVideoResultRenderer)==null?void 0:d.startTimeText,snippet:K==null?void 0:(B=K.searchInVideoResultRenderer)==
null?void 0:B.snippet}})}}};
_.R.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};
_.R.highlightSnippet=function(X){X.classList.add("highlighted")};
_.R.removeSnippetHighlight=function(X){X.classList.remove("highlighted")};
_.R.selectSnippet=function(X){this.typedValue=String(X.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(X);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.R.ensureVisible=function(X){var H=this.snippetsWrapper.scrollTop,l=H+this.snippetsWrapper.clientHeight,b=X.offsetTop-this.snippetsWrapper.offsetTop;X=b+X.clientHeight;b<H?this.snippetsWrapper.scrollTop-=H-b:X>l&&(this.snippetsWrapper.scrollTop+=X-l)};
_.R.seekPlayer=function(X){var H,l;return _.h(function(b){if(b.nextAddress==1){if(!X)return b.jumpTo(0);H=Number(X.dataset.startOffset);return b.yield(_.ZH().getPlayerPromise(),3)}l=b.yieldResult;l.seekTo(H/1E3,!0);l.wakeUpControls();_.m5(b)})};
_.R.logInputGesture=function(X){var H=_.Bi();H&&(X==null?0:X.trackingParams)&&_.Di(H,_.$l(X.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.R.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("typed-value-changed",this.typedValue))};
_.R.updateTypedValueFromBinding=function(X){this.typedValue=X.currentTarget.value};
z1.prototype.typedValueChangedForBinding=z1.prototype.typedValueChangedForBinding;z1.prototype.dataChanged=z1.prototype.dataChanged;z1.prototype.panelContentVisibleChanged=z1.prototype.panelContentVisibleChanged;z1.prototype.onClick=z1.prototype.onClick;z1.prototype.onKeyUp=z1.prototype.onKeyUp;z1.prototype.onKeyDown=z1.prototype.onKeyDown;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],z1.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],z1.prototype,"data",void 0);_.T([_.g({value:[]}),_.N("design:type",Array)],z1.prototype,"snippets",void 0);_.T([_.g({value:[]}),_.N("design:type",Array)],z1.prototype,"filteredSnippets",void 0);_.T([_.g({value:[]}),_.N("design:type",Array)],z1.prototype,"snippetElements",void 0);
_.T([_.A2("#siv-input"),_.N("design:type",HTMLElement)],z1.prototype,"inputElement",void 0);_.T([_.A2("#siv-snippets-wrapper"),_.N("design:type",HTMLElement)],z1.prototype,"snippetsWrapper",void 0);_.T([_.g(),_.N("design:type",String)],z1.prototype,"typedValue",void 0);_.T([_.g({value:-1}),_.N("design:type",Number)],z1.prototype,"highlightedIndex",void 0);_.T([_.Le("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[_.wB]),_.N("design:returntype")],z1.prototype,"onKeyDown",null);
_.T([_.Le("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[_.wB]),_.N("design:returntype")],z1.prototype,"onKeyUp",null);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],z1.prototype,"onClick",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],z1.prototype,"panelContentVisible",void 0);
_.T([_.Yh("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],z1.prototype,"panelContentVisibleChanged",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],z1.prototype,"dataChanged",null);_.T([_.Yh("typedValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],z1.prototype,"typedValueChangedForBinding",null);
_.T([_.sq({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],z1);
_.O(z1,"ytd-search-in-video-renderer",function(){if(vFl!==void 0)return vFl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vFl=X},{mode:1});var OsN;var nb=function(){return _.a.apply(this,arguments)||this};
_.S(nb,_.a);nb.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
nb.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]]"}}}}}};
nb.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var X,H,l,b,U=(H=_.f((X=this.data)==null?void 0:X.onClickCommand,_.HFz))==null?void 0:(l=H.item)==null?void 0:(b=l.notificationTextRenderer)==null?void 0:b.successResponseText;U&&_.g_O(this.hostElement,U)}};
_.ja.Object.defineProperties(nb.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b;return this.isProductPlaceholder&&((X=this.data)==null?void 0:(H=X.hiddenProductOptions)==null?void 0:H.showDropCountdown)&&!!((l=this.data)==null?0:(b=l.hiddenProductOptions)==null?0:b.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var X;return!this.isProductPlaceholder&&!((X=this.data)==null?0:X.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var X,H;return!((X=this.data)==null?0:X.priceReplacementText)&&!((H=this.data)==null||!H.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],nb.prototype,"componentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],nb.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],nb.prototype,"useCenterLayoutContainer",null);_.T([_.g({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],nb.prototype,"buttonOverride",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nb.prototype,"isProductPlaceholder",null);
_.T([_.x("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],nb.prototype,"showDropCountdown",null);_.T([_.x("isProductPlaceholder","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nb.prototype,"showBrandName",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nb.prototype,"showPriceReplacementText",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nb.prototype,"showPrice",null);
_.T([_.x("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],nb.prototype,"showMetadata",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],nb);
_.O(nb,"ytd-product-list-item-renderer",function(){if(OsN!==void 0)return OsN;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return OsN=X},{mode:1});var mre;var k_=function(){return _.a.apply(this,arguments)||this};
_.S(k_,_.a);k_.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
k_.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
k_.prototype.panelContentVisibleChanged=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return X.playerApi?l.jumpTo(2):l.yield(_.ZH().getPlayerPromise(),3);l.nextAddress!=2&&(X.playerApi=l.yieldResult);(H=X.playerApi)==null||H.productsInVideoVisibilityUpdated(!!X.panelContentVisible);_.m5(l)})};
k_.prototype.panelContentVisibleChanged=k_.prototype.panelContentVisibleChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],k_.prototype,"panelContentVisible",void 0);_.T([_.g(),_.N("design:type",Object)],k_.prototype,"data",void 0);
_.T([_.Yh("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],k_.prototype,"panelContentVisibleChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],k_);
_.O(k_,"ytd-product-list-renderer",function(){if(mre!==void 0)return mre;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return mre=X},{mode:1});var Qd$;var x_=function(){var X=_.a.apply(this,arguments)||this;X.isToggleChecked=!1;return X};
_.S(x_,_.a);x_.prototype.onDataChanged=function(){var X;this.isToggleChecked=((X=this.data)==null?void 0:X.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
x_.prototype.close=function(){var X;((X=this.data)==null?0:X.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
x_.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var X,H=_.f((X=this.data)==null?void 0:X.switchButton,MtA);H&&(this.isToggleChecked&&H.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(H.switchOnInnertubeCommand),!this.isToggleChecked&&H.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(H.switchOffInnertubeCommand))};
x_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
x_.prototype.onDataChanged=x_.prototype.onDataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],x_.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],x_.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],x_.prototype,"isToggleChecked",void 0);_.T([_.g({value:_.XS("CLOSE")}),_.N("design:type",String)],x_.prototype,"closeButtonAriaLabel",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],x_.prototype,"onDataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],x_);
_.O(x_,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(Qd$!==void 0)return Qd$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Qd$=X},{mode:1});var TEU;var DX=function(){var X=_.a.apply(this,arguments)||this;X.hideTimestamps=!!_.Ce("hide-transcript-timestamps");X.currentCueIndex=-1;X.flatCues=[];X.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};X.TEST_ONLY={getFlatCues:function(){return X.flatCues}};
return X};
_.S(DX,_.a);_.R=DX.prototype;_.R.hideTimestampsChanged=function(){_.R6("hide-transcript-timestamps",this.hideTimestamps)};
_.R.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.R.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.R.dataChanged=function(){var X;if((X=this.data)!=null&&X.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;X=_.C(this.data.cueGroups);for(var H=X.next();!H.done;H=X.next()){H=_.C(_.f(H.value,Wkd).cues);for(var l=H.next();!l.done;l=H.next())this.flatCues.push(Number(_.f(l.value,ER$).startOffsetMs))}}};
_.R.onYtPlayerTimeChanged=function(X){if(!(X<0)){for(var H=this.currentCueIndex,l=H;;){var b=l>=0?this.flatCues[l]/1E3:-1;if(X+.5<b)--l;else if(b=l+1<this.flatCues.length?this.flatCues[l+1]/1E3:Infinity,X+.5>b)l+=1;else break}l!==H&&(H>=0&&((X=this.getCueElement(H))&&X.classList.remove("active"),(H=this.getCueGroupElement(H))&&H.classList.remove("active")),(H=this.getCueElement(l))&&H.classList.add("active"),(H=this.getCueGroupElement(l))&&H.classList.add("active"),this.currentCueIndex=l,this.isHovered||
this.scrollElementToTop(l))}};
_.R.scrollElementToTop=function(X){X=this.getCueElement(X>=3?X-3:0);this.hostElement.scrollTop=Math.min(X.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.R.getCueElement=function(X){return _.mh(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[X]+'"]')};
_.R.getCueGroupElement=function(X){return(X=this.getCueElement(X))&&X.parentElement?X.parentElement.parentElement:null};
_.R.onTap=function(X){var H=_.WM(X);X.target.classList.contains("cue")&&this.seekCueElement(H)};
_.R.onKeyPress=function(X){X.keyCode==13&&(X=_.wEC(X.target,null,"cue"))&&this.seekCueElement(X)};
_.R.seekCueElement=function(X){X=Number(X.getAttribute("start-offset"));_.TP(this.hostElement,"yt-transcript-player-seek",[X/1E3])};
_.R.onMouseEnter=function(){this.isHovered=!0};
_.R.onMouseLeave=function(){this.isHovered=!1};
DX.prototype.onMouseLeave=DX.prototype.onMouseLeave;DX.prototype.onMouseEnter=DX.prototype.onMouseEnter;DX.prototype.onKeyPress=DX.prototype.onKeyPress;DX.prototype.onTap=DX.prototype.onTap;DX.prototype.dataChanged=DX.prototype.dataChanged;DX.prototype.hideTimestampsChanged=DX.prototype.hideTimestampsChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],DX.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],DX.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],DX.prototype,"hideTimestamps",void 0);_.T([_.g(),_.N("design:type",Boolean)],DX.prototype,"isHovered",void 0);_.T([_.Yh("hideTimestamps"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DX.prototype,"hideTimestampsChanged",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DX.prototype,"dataChanged",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],DX.prototype,"onTap",null);_.T([_.Le("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],DX.prototype,"onKeyPress",null);
_.T([_.Le("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DX.prototype,"onMouseEnter",null);_.T([_.Le("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DX.prototype,"onMouseLeave",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],DX);
_.O(DX,"ytd-transcript-body-renderer",function(){if(TEU!==void 0)return TEU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return TEU=X},{mode:1});var NEY;var t7=function(){var X=_.a.apply(this,arguments)||this;X.darkerPanels=_.P("web_watch_darker_panels");return X};
_.S(t7,_.a);t7.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],t7.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],t7.prototype,"darkerPanels",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],t7);
_.O(t7,"ytd-transcript-footer-renderer",function(){if(NEY!==void 0)return NEY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return NEY=X},{mode:1});var cpd;var jdx;var Wy=function(){var X=_.a.apply(this,arguments)||this;X.systemIcons=_.P("kevlar_system_icons");X.showClearButton=!1;return X};
_.S(Wy,_.a);_.R=Wy.prototype;_.R.handleInput=function(X){var H=this;X.target.value.length?_.pc(this,"ytdTranscriptSearchBoxSearch",function(){H.emitSearchEvent(X)},500):(_.hcK(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=X.target.value.length>0};
_.R.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.R.handleClick=function(){var X,H=(X=this.data)==null?void 0:X.trackingParams;H&&_.Y8(_.lv(),H)};
_.R.handleClear=function(){_.hcK(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var X,H,l=(H=_.f((X=this.data)==null?void 0:X.clearButton,_.yB))==null?void 0:H.trackingParams;l&&_.Y8(_.lv(),l);this.clear()};
_.R.emitSearchEvent=function(X){_.QX(this.hostElement,"yt-transcript-search-box-search",{query:X.target.value});var H,l;(X=(l=_.f((H=this.data)==null?void 0:H.searchButton,_.yB))==null?void 0:l.trackingParams)&&_.Y8(_.lv(),X)};
_.R.emitClearEvent=function(){_.QX(this.hostElement,"yt-transcript-search-box-clear")};
_.ja.Object.defineProperties(Wy.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.mh(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Wy.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Wy.prototype,"systemIcons",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Wy);
_.O(Wy,"ytd-transcript-search-box-renderer",function(){if(jdx!==void 0)return jdx;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return jdx=X},{mode:1});var rpd;var Jpy;var ED=function(){return _.a.apply(this,arguments)||this};
_.S(ED,_.a);ED.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var X,H;this.sectionHeaderAriaLabel=(X=this.data)==null?void 0:(H=X.accessibility)==null?void 0:H.accessibilityData.label}};
ED.prototype.fireSelectedEvent=function(X){_.QX(this.hostElement,"ytd-transcript-section-header",{startMs:X})};
ED.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
ED.prototype.handleKeyPress=function(X){this.data&&X.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.ja.Object.defineProperties(ED.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var X,H;return(H=(X=this.data)==null?void 0:X.enableTappableTranscriptHeader)!=null?H:!1}}});
ED.prototype.dataChanged=ED.prototype.dataChanged;_.T([_.g(),_.N("design:type",Object)],ED.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],ED.prototype,"sectionHeaderAriaLabel",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ED.prototype,"enableTappableTranscriptHeader",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ED.prototype,"dataChanged",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],ED);
_.O(ED,"ytd-transcript-section-header-renderer",function(){if(Jpy!==void 0)return Jpy;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Jpy=X},{mode:1});var Lpe;var YrY;var g_=function(){var X=_.a.apply(this,arguments)||this;X.isEditMode=!1;X.touchCaptionsEnabled=!1;X.deleteCaptionCorrectionPopupCommand=null;X.voteCaptionCorrectionPopupCommand=null;X.roundedContainer=!0;X.mouseOver=!1;X.textChanged=!1;X.messages={suggest_correction:_.XS("suggest_correction",void 0,"Edit caption"),suggested_caption:_.XS("suggested_caption",void 0,"Suggested caption"),submit_correction:_.XS("submit_correction",void 0,"Submit for review"),cancel_correction:_.XS("cancel_correction",
void 0,"Cancel"),replay_segment:_.XS("replay_segment",void 0,"Re-play segment"),delete_correction:_.XS("delete_correction",void 0,"Delete correction")};X.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return X};
_.S(g_,_.a);_.R=g_.prototype;_.R.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)};
_.R.handleDelete=function(X){if(this.deleteCaptionCorrectionPopupCommand){var H=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);H&&this.ytdOpenPopupBehavior.openPopup(H);X.stopPropagation()}};
_.R.handleSubmit=function(X){if(this.data&&this.data.submitCaptionCorrectionCommand&&(X.stopPropagation(),this.textChanged)){var H;X=(H=_.f(this.data.submitCaptionCorrectionCommand,_.dPF))==null?void 0:H.params;H=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:X,correctionText:String(this.ironTextAreaElement.value),originalText:_.D8(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(H);this.isEditMode=!1}};
_.R.handleUpdateSegmentText=function(X){(X=_.f(X,WdN))&&X.targetId&&this.data&&X.targetId===this.data.targetId&&(X.userCorrection&&(this.editedText=X.userCorrection),X.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.D8(this.data.snippet)),X.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=X.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=X.voteCaptionCorrectionPopupCommand?
X.voteCaptionCorrectionPopupCommand:null,X.accessibility&&(this.segmentAriaLabel=X.accessibility.accessibilityData.label))};
_.R.handleCancel=function(X){this.isEditMode=!1;X.stopPropagation();this.logClientVe(159409)};
_.R.handleEditSegmentCommand=function(X){(X=_.f(X,tta))&&X.targetId&&this.data&&X.targetId===this.data.targetId&&this.handleEdit()};
_.R.handleEditButtonClick=function(X){this.data&&(this.handleEdit(),X.stopPropagation())};
_.R.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var X;(X=this.ironTextAreaElement.textarea)==null||X.focus();this.logClientVe(159407)}};
_.R.handleMouseEnter=function(){this.mouseOver=!0};
_.R.handleMouseLeave=function(){this.mouseOver=!1};
_.R.handleReplay=function(X){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),X.stopPropagation(),this.logClientVe(159408))};
_.R.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()))};
_.R.handleKeypress=function(X){this.data&&(this.isEditMode?X.stopPropagation():this.isEnterPress(X)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(X)&&this.logClientVe(138758))};
_.R.handleTextboxClick=function(X){X.stopPropagation()};
_.R.handleTextboxKeydown=function(X){this.isControlEnterPress(X)?this.handleSubmit(X):X.key==="Escape"&&this.handleCancel(X)};
_.R.handleTextboxKeyup=function(){this.textChanged=_.D8(this.latestText)!==String(this.ironTextAreaElement.value)};
_.R.fireSelectedEvent=function(X){_.QX(this.hostElement,"yt-transcript-segment-selected",{startMs:X})};
_.R.fireReplayEvent=function(X,H){_.QX(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(X-100,0),endMs:H})};
_.R.fireEditEvent=function(X,H){_.QX(this.hostElement,"yt-transcript-segment-edit",{startMs:X,endMs:H})};
_.R.isEnterPress=function(X){return X.key==="Enter"||X.code==="Enter"||X.code==="NumpadEnter"||X.keyCode===13?!0:!1};
_.R.isControlEnterPress=function(X){var H=X.key==="Enter"||X.code==="Enter"||X.code==="NumpadEnter"||X.keyCode===13;return(X.ctrlKey||X.metaKey)&&H};
_.R.isCopyPress=function(X){var H=X.ctrlKey;return X.key==="c"&&H};
_.R.logClick=function(){var X,H=(X=this.data)==null?void 0:X.trackingParams;H&&_.Y8(_.lv(),H)};
_.R.logClientVe=function(X){_.Lk(_.lv(),_.cS(X))};
_.ja.Object.defineProperties(g_.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}}});
g_.prototype.handleMouseLeave=g_.prototype.handleMouseLeave;g_.prototype.handleMouseEnter=g_.prototype.handleMouseEnter;g_.prototype.dataChanged=g_.prototype.dataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],g_.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],g_.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],g_.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],g_.prototype,"isEditMode",void 0);_.T([_.g(),_.N("design:type",Object)],g_.prototype,"touchCaptionsEnabled",void 0);_.T([_.g(),_.N("design:type",Object)],g_.prototype,"editedText",void 0);_.T([_.g(),_.N("design:type",Object)],g_.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.T([_.g(),_.N("design:type",Object)],g_.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.T([_.g(),_.N("design:type",String)],g_.prototype,"segmentAriaLabel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],g_.prototype,"roundedContainer",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],g_.prototype,"mouseOver",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],g_.prototype,"textChanged",void 0);_.T([_.g(),_.N("design:type",Object)],g_.prototype,"messages",void 0);
_.T([_.A2("#suggestion"),_.N("design:type",Object)],g_.prototype,"ironTextAreaElement",void 0);_.T([_.x("data","editedText"),_.N("design:type",Object),_.N("design:paramtypes",[])],g_.prototype,"latestText",null);_.T([_.x("touchCaptionsEnabled","isEditMode"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],g_.prototype,"enableEditButton",null);
_.T([_.x("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],g_.prototype,"enableUndoButton",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g_.prototype,"dataChanged",null);_.T([_.Le("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g_.prototype,"handleMouseEnter",null);
_.T([_.Le("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g_.prototype,"handleMouseLeave",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],g_);
_.O(g_,"ytd-transcript-segment-renderer",function(){if(YrY!==void 0)return YrY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return YrY=X},{mode:1});var G1=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};X.isError=!1;X.darkerPanels=_.P("web_watch_darker_panels");X.useParentMaxHeight=_.P("web_watch_transscript_use_parent_max_height");X.segmentOffsets=[];X.segmentIndex=-1;return X};
_.S(G1,_.a);_.R=G1.prototype;_.R.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"}}}}};
_.R.segmentsChanged=function(){this.updateOffsets()};
_.R.onYtPlayerTimeChanged=function(X){for(var H=this.segmentIndex,l=H;;){if(l>=0){var b=this.segmentOffsets[l].start;var U=this.segmentOffsets[l].isAutoScrollable}else b=-1,U=!0;var K=X+.5;if(!U){b=l+1<this.segmentOffsets.length?this.segmentOffsets[l+1].start:Infinity;if(K>=b){l+=1;continue}l=-1;break}if(K<b)b=l-1>=0&&this.segmentOffsets[l-1].isAutoScrollable,U=l===0||b?1:2,l-=U;else if(U=l+1<this.segmentOffsets.length&&this.segmentOffsets[l+1].isAutoScrollable?1:2,b=l+U<this.segmentOffsets.length?
this.segmentOffsets[l+U].start:Infinity,K>b)l+=U;else{if(l<0)break;l<this.segmentOffsets.length&&K>this.segmentOffsets[l].end&&(l=-1);break}}if(H!==l){if(H>=0){var w;(w=this.getSegmentElement(H))==null||w.classList.remove("active")}this.segmentIndex=l;if(!(l<0)){var d;(d=this.getSegmentElement(l))==null||d.classList.add("active");this.isHovered||this.scrollElementToTop(l)}}};
_.R.handleSegmentEdit=function(X){X.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=X.target,_.TP(this.hostElement,"yt-transcript-player-edit",[X.detail.startMs/1E3,X.detail.endMs/1E3]))};
_.R.handleSegmentSelected=function(X){_.TP(this.hostElement,"yt-transcript-player-seek",[X.detail.startMs/1E3])};
_.R.handleSegmentReplay=function(X){_.TP(this.hostElement,"yt-transcript-player-replay",[X.detail.startMs/1E3,X.detail.endMs/1E3])};
_.R.handleSectionHeaderSelected=function(X){_.TP(this.hostElement,"yt-transcript-player-seek",[X.detail.startMs/1E3])};
_.R.onMouseEnter=function(){this.isHovered=!0};
_.R.onMouseLeave=function(){this.isHovered=!1};
_.R.onRetryButtonClick=function(){_.QX(this.hostElement,"transcript-retry-button-click")};
_.R.getSegmentElement=function(X){return _.mh(this.hostElement).querySelector(":nth-child("+(X+1)+")")};
_.R.scrollElementToTop=function(X){X=this.getSegmentElement(X>=2?X-2:0);this.hostElement.scrollTop=Math.min(X.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.R.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(X){var H,l=(H=X.transcriptSegmentRenderer)!=null?H:X.transcriptSectionHeaderRenderer;return{start:Number(l.startMs)/1E3,end:Number(l.endMs)/1E3,isAutoScrollable:X.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.R.clearHighlightedSegments=function(){var X=_.mh(this.hostElement);X=_.C(X.querySelectorAll("ytd-transcript-segment-renderer"));for(var H=X.next();!H.done;H=X.next())H.value.classList.remove("active")};
_.ja.Object.defineProperties(G1.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:X.searchResultSegments)||((H=this.data)==null?void 0:H.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
G1.prototype.onMouseLeave=G1.prototype.onMouseLeave;G1.prototype.onMouseEnter=G1.prototype.onMouseEnter;G1.prototype.handleSectionHeaderSelected=G1.prototype.handleSectionHeaderSelected;G1.prototype.handleSegmentReplay=G1.prototype.handleSegmentReplay;G1.prototype.handleSegmentSelected=G1.prototype.handleSegmentSelected;G1.prototype.handleSegmentEdit=G1.prototype.handleSegmentEdit;G1.prototype.segmentsChanged=G1.prototype.segmentsChanged;
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],G1.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],G1.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],G1.prototype,"isError",void 0);
_.T([_.g(),_.N("design:type",Object)],G1.prototype,"noResultLabel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],G1.prototype,"darkerPanels",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],G1.prototype,"useParentMaxHeight",void 0);_.T([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],G1.prototype,"segments",null);
_.T([_.x("segments","noResultLabel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],G1.prototype,"displayNoResults",null);_.T([_.Yh("segments"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G1.prototype,"segmentsChanged",null);_.T([_.Le("yt-transcript-segment-edit"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],G1.prototype,"handleSegmentEdit",null);
_.T([_.Le("yt-transcript-segment-selected"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],G1.prototype,"handleSegmentSelected",null);_.T([_.Le("yt-transcript-segment-replay"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],G1.prototype,"handleSegmentReplay",null);
_.T([_.Le("ytd-transcript-section-header"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],G1.prototype,"handleSectionHeaderSelected",null);_.T([_.Le("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G1.prototype,"onMouseEnter",null);_.T([_.Le("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G1.prototype,"onMouseLeave",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],G1);
_.O(G1,"ytd-transcript-segment-list-renderer",function(){if(Lpe!==void 0)return Lpe;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Lpe=X},{mode:1});var aG=function(){var X=_.a.apply(this,arguments)||this;X.hideTimestamps=!!_.Ce("hide-transcript-timestamps");X.isLoadingTranscripts=!1;X.darkerPanels=_.P("web_watch_darker_panels");X.isError=!1;X.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return X};
_.S(aG,_.a);_.R=aG.prototype;_.R.headerChanged=function(){var X,H;this.baseGetTranscriptsCommand=(H=_.f((X=this.data)==null?void 0:X.header,EKC))==null?void 0:H.onTextChangeCommand};
_.R.bodyChanged=function(){var X=this.getBodyRenderer();X&&(X.initialSegments&&(this.initialTranscriptsRenderer=X),X.noResultLabel&&(this.noResultLabel=X.noResultLabel),X.retryLabel&&(this.retryLabel=X.retryLabel))};
_.R.detached=function(){this.clearSearchBoxText()};
_.R.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.R.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"}}}};
_.R.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.R.fireSearch=function(X){var H=this;if(X){var l=X.detail.query;if(this.baseGetTranscriptsCommand){var b;X=(b=_.f(this.baseGetTranscriptsCommand,_.Rpq))==null?void 0:b.params;var U;b=_.f((U=this.data)==null?void 0:U.footer,gRZ);var K;if((U=(K=_.f(b==null?void 0:b.languageMenu,eAp))==null?void 0:K.subMenuItems)&&U.length>0&&(K=U.find(function(B){return B.selected}))){var w,d;
X=(w=K.continuation)==null?void 0:(d=w.reloadContinuationData)==null?void 0:d.continuation}w=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:X,searchQuery:l}});this.ytComponentBehavior.resolveCommand(w,{commandController:{onServerError:function(){H.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});UDU(this.ytContinuationHandlerBehavior,function(){return l===H.getCurrentSearchBoxText()})}}};
_.R.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.R.onRetryButtonClick=function(){this.isError=!1;var X={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:X}))};
_.R.hideTimestampsChanged=function(){_.R6("hide-transcript-timestamps",this.hideTimestamps)};
_.R.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.R.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.R.handleSignalActionCopyTranscript=function(){var X=this,H=this.getBodyRenderer();H&&(H=((H==null?void 0:H.searchResultSegments)||(H==null?void 0:H.initialSegments)||[]).map(function(l){return _.f(l,GFC)}).filter(function(l){return!!l}).map(function(l){return{snippet:l.snippet||{runs:[{text:""}]},
startTimeText:l.startTimeText||{simpleText:""}}}).map(function(l){var b=(l.snippet.runs||[]).reduce(function(U,K){return U+K.text},"");
return X.hideTimestamps?b:l.startTimeText.simpleText+" "+b}).join("\n"),this.copyToClipboard(H))};
_.R.copyToClipboard=function(X){navigator.clipboard&&navigator.clipboard.writeText(X)};
_.R.getCurrentSearchBoxText=function(){var X;return(X=this.searchBox)==null?void 0:X.value};
_.R.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.R.getBodyRenderer=function(){var X;return _.f((X=this.data)==null?void 0:X.body,gKd)};
_.R.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.ja.Object.defineProperties(aG.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.mh(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
aG.prototype.hideTimestampsChanged=aG.prototype.hideTimestampsChanged;aG.prototype.searchCleared=aG.prototype.searchCleared;aG.prototype.fireSearch=aG.prototype.fireSearch;aG.prototype.onReloadContinuationFinish=aG.prototype.onReloadContinuationFinish;aG.prototype.bodyChanged=aG.prototype.bodyChanged;aG.prototype.headerChanged=aG.prototype.headerChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],aG.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.EO),_.N("design:type",Object)],aG.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],aG.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],aG.prototype,"hideTimestamps",void 0);
_.T([_.g(),_.N("design:type",Object)],aG.prototype,"isLoadingTranscripts",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],aG.prototype,"darkerPanels",void 0);_.T([_.g(),_.N("design:type",Object)],aG.prototype,"isError",void 0);_.T([_.Yh("data.header"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aG.prototype,"headerChanged",null);
_.T([_.oi("data.body"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aG.prototype,"bodyChanged",null);_.T([_.Le("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aG.prototype,"onReloadContinuationFinish",null);_.T([_.Le("yt-transcript-search-box-search"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],aG.prototype,"fireSearch",null);
_.T([_.Le("yt-transcript-search-box-clear"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aG.prototype,"searchCleared",null);_.T([_.Yh("hideTimestamps"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aG.prototype,"hideTimestampsChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],aG);
_.O(aG,"ytd-transcript-search-panel-renderer",function(){if(rpd!==void 0)return rpd;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return rpd=X},{mode:1});var ZX=function(){var X=_.a.apply(this,arguments)||this;X.player=null;X.playerPollJobId=0;return X};
_.S(ZX,_.a);_.R=ZX.prototype;_.R.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.R.onLoadReloadContinuation=function(X){_.P("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:X.target.data.continuation}}):(X={clickTrackingParams:X.target.data.clickTrackingParams,getTranscriptEndpoint:{params:X.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}}))};
_.R.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"}}}};
_.R.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.R.attached=function(){this.updatePlayerListening()};
_.R.detached=function(){this.updatePlayerListening()};
_.R.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.R.startPlayerListening=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return(H=_.aq())?l.yield(H.getPlayerPromise(),2):l.return();X.player=l.yieldResult;X.playerPollJobId=_.Ss.addLowPriorityJob(function(){X.getPlayerVideoProgress()},1E3);
X.player.addEventListener("onCueRangeEnter",function(b){X.onCueRangeEnter(b)});
X.player.addEventListener("onCueRangeExit",function(b){X.onCueRangeExit(b)});
X.player.addEventListener("onStateChange",function(b){X.onPlayerStateChange(b)});
X.player.addEventListener("SEEK_TO",function(b){X.onPlayerSeek(b)});
_.m5(l)})};
_.R.getPlayerVideoProgress=function(){var X=this;_.Ss.cancelJob(this.playerPollJobId);if(this.player){var H=this.player.getCurrentTime();_.TP(this.hostElement,"yt-player-time-changed",[H])}this.playerPollJobId=_.Ss.addLowPriorityJob(function(){X.getPlayerVideoProgress()},1E3)};
_.R.stopPlayerListening=function(){this.player=null;_.Ss.cancelJob(this.playerPollJobId)};
_.R.onPlayerStateChange=function(X){X===2&&this.removePendingCue()};
_.R.onPlayerSeek=function(X){var H;if(H=this.pendingReplayCueId)H=this.pendingReplayCueId,H=X===(_.P("web_transcript_cue_id_killswitch")?Number(H):Number(H.split("_")[1]));H||this.removePendingCue()};
_.R.onCueRangeEnter=function(X){$Vl(X)&&(this.pendingReplayCueId=X)};
_.R.onCueRangeExit=function(X){$Vl(X)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.R.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.R.onYtTranscriptPlayerSeek=function(X){this.player&&this.player.seekTo(X,!0)};
_.R.onYtTranscriptPlayerReplay=function(X,H){this.player&&(this.player.addCueRange(UVC(X),X,H),this.player.seekTo(X,!0),this.player.playVideo())};
_.R.onYtTranscriptPlayerEdit=function(X,H){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(UVC(X),X,H),this.player.seekTo(X,!0))};
ZX.prototype.onLoadReloadContinuation=ZX.prototype.onLoadReloadContinuation;ZX.prototype.panelContentVisibleChanged=ZX.prototype.panelContentVisibleChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],ZX.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],ZX.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ZX.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],ZX.prototype,"panelContentVisible",void 0);_.T([_.Yh("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZX.prototype,"panelContentVisibleChanged",null);
_.T([_.Le("yt-load-reload-continuation"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],ZX.prototype,"onLoadReloadContinuation",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],ZX);
_.O(ZX,"ytd-transcript-renderer",function(){if(cpd!==void 0)return cpd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return cpd=X},{mode:1});var IPU;var Ape;var i3=function(){return _.a.apply(this,arguments)||this};
_.S(i3,_.a);i3.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.j7(this.hostElement,[this.data.clickCommand],this.hostElement))};
i3.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+(Ts()+NB)+"px)"};
i3.prototype.updateShouldHideFromBinding=function(X){this.shouldHide=X.detail.value};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],i3.prototype,"rendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],i3.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],i3.prototype,"shouldHide",void 0);_.T([_.sq({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],i3);
_.O(i3,"ytd-ad-engagement-panel-banner-renderer",function(){if(Ape!==void 0)return Ape;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Ape=X},{mode:2});var XHa;var vy=function(){var X=_.a.apply(this,arguments)||this;X.buttonUpdate=_.P("web_modern_buttons");X.adsSemanticText=_.P("enable_ads_web_ep_buenos_aires_and_padding_fix");return X};
_.S(vy,_.a);vy.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.T([_.g(),_.N("design:type",Object)],vy.prototype,"data",void 0);_.T([_.g({computed:"computeHideDefaultAdBadge(data)"}),_.N("design:type",Boolean)],vy.prototype,"hideDefaultAdBadge",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vy.prototype,"buttonUpdate",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vy.prototype,"adsSemanticText",void 0);_.T([_.sq({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],vy);
_.O(vy,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(XHa!==void 0)return XHa;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return XHa=X},{mode:1});var HvA;var OD=function(){var X=_.a.apply(this,arguments)||this;X.darkerPanels=_.P("web_watch_darker_panels");X.enableSqueezebackPanels=_.P("web_shorts_enable_squeezeback_panels");X.enableAnchoredPanel=_.P("desktop_shorts_v2_anchored_panel");X.headerClickListener=function(H){X.onHeaderClick(H)};
X.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return X};
_.S(OD,_.a);_.R=OD.prototype;_.R.computeAdsInfoButton=function(){if(_.P("web_modern_buttons")){var X,H;return(H=_.f((X=this.data)==null?void 0:X.subtitleComplex,Ggl))==null?void 0:H.adInfoRenderer}};
_.R.updateHeaderClickListener=function(){var X,H,l;((X=this.data)==null?0:X.navigationEndpoint)||((H=this.data)==null?0:H.onClickCommand)||_.f((l=this.data)==null?void 0:l.visibilityButton,_.VB)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.R.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}}}}}};
_.R.collapsedChanged=function(){var X;(X=this.data)!=null&&X.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.P("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.R.focus=function(X){var H=this;this.titleElement&&_.Ss.addJob(function(){_.mQ(H.titleElement,X)},0,500)};
_.R.computeTitleAriaLabel=function(X){var H=[];if(X.title){var l,b;H.push(this.ytRendererBehavior.getSimpleString(X.title)||((l=X.title.accessibility)==null?void 0:(b=l.accessibilityData)==null?void 0:b.label))}X.contextualInfo&&H.push(this.ytRendererBehavior.getSimpleString(X.contextualInfo));return H.join(" ")};
_.R.onHeaderClick=function(X){this.shouldTriggerHeaderClick(X)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.j7(this.hostElement,[this.data.onClickCommand],this.hostElement)):(X=this.getVisibilityToggleButton())&&X.click())};
_.R.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var X=_.f(this.data.visibilityButton,_.yB)||_.f(this.data.visibilityButton,_.VB);X&&this.ytRendererBehavior.logExplicitClick(X)}};
_.R.getVisibilityToggleButton=function(){var X=_.mh(this.hostElement).querySelector("#visibility-button").firstElementChild;return(X==null?void 0:X.is)==="ytd-toggle-button-renderer"?X:null};
_.R.shouldTriggerHeaderClick=function(X){return!_.WS(_.t2(X),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.R.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(X){X=_.f(X,$CN);this.targetId&&(X==null?void 0:X.targetId)===this.targetId&&(X=X.navigationButton)&&this.set("data.navigationButton",X)};
_.ja.Object.defineProperties(OD.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.P("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var X;return!!(((X=this.entity)==null?0:X.isActionButtonHidden)||this.hideActionButton)}}});
OD.prototype.collapsedChanged=OD.prototype.collapsedChanged;OD.prototype.updateHeaderClickListener=OD.prototype.updateHeaderClickListener;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],OD.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.sv),_.N("design:type",Object)],OD.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],OD.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],OD.prototype,"targetId",void 0);_.T([_.g(),_.N("design:type",Boolean)],OD.prototype,"collapsed",void 0);_.T([_.g(),_.N("design:type",Boolean)],OD.prototype,"hideActionButton",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],OD.prototype,"shortsPanel",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],OD.prototype,"liveChatEngagementPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],OD.prototype,"learningChatEngagementPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],OD.prototype,"darkerPanels",void 0);_.T([_.A2("#title"),_.N("design:type",HTMLElement)],OD.prototype,"titleElement",void 0);_.T([_.A2("#header"),_.N("design:type",HTMLElement)],OD.prototype,"headerElement",void 0);
_.T([_.g({computed:"computeAdsInfoButton(data)"}),_.N("design:type",Object)],OD.prototype,"adsInfoButton",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],OD.prototype,"enableSqueezebackPanels",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],OD.prototype,"enableAnchoredPanel",void 0);_.T([_.g({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(X,H){return _.JY(X.entities,"engagementPanelTitleHeaderEntity",H)}}),
_.N("design:type",Object)],OD.prototype,"entity",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OD.prototype,"adsSemanticText",null);_.T([_.Yh("data","data.navigationEndpoint","data.onClickCommand"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OD.prototype,"updateHeaderClickListener",null);
_.T([_.oi("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OD.prototype,"collapsedChanged",null);_.T([_.x("entity","hideActionButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OD.prototype,"isActionButtonHidden",null);_.T([_.sq({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],OD);
_.O(OD,"ytd-engagement-panel-title-header-renderer",function(){if(HvA!==void 0)return HvA;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return HvA=X},{mode:1});var lkU;var mo=function(){return _.a.apply(this,arguments)||this};
_.S(mo,_.a);mo.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],mo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],mo.prototype,"data",void 0);_.T([_.sq({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],mo);
_.O(mo,"ytd-macro-markers-info-item-renderer",function(){if(lkU!==void 0)return lkU;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return lkU=X},{mode:1});var oZ5;var QS=function(X,H,l,b,U,K){_.$e.call(this);var w=this;this.JSC$21186_containerElement=X;this.hostElement=H;this.supportedSyncItems=l;this.syncEntityKey=b;this.options=U;this.renderLazyListItems=K;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;bve(this);U2Z(this);this.JSC$21186_scrollAnimation=new _.ZB(function(d){X.scrollTop=d});
_.LY(this,this.JSC$21186_scrollAnimation);this.addOnDisposeCallback(function(){$2N(w,!1);w.activeItem&&w.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.S(QS,_.$e);var bve=function(X){var H=_.bC(_.jJ().resolve(_.qU),function(l){return l.entities.markersEngagementPanelSyncEntity||{}},function(l,b){var U;
if(l[X.syncEntityKey]!==b[X.syncEntityKey]&&((U=l[X.syncEntityKey])==null?void 0:U.activeItemIndex)!==void 0)if(b=l[X.syncEntityKey].activeItemIndex,l=X.getItemByIndex(b)){if(K3y(X,l),X.contentVisible)if(X.browsingMode){var K;((K=X.options)==null?void 0:K.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(K=R9d(X),l.offsetTop<X.JSC$21186_containerElement.clientHeight+X.JSC$21186_containerElement.scrollTop&&K&&!X.activeItemBelowSyncPosition&&$2N(X,!1));CAZ(X)}else X.scrollToItem(l)}else _.x2(new _.qd("Could not find "+
X.supportedSyncItems+" sync child to set active.",b,X.JSC$21186_containerElement.querySelectorAll(X.supportedSyncItems).length))});
X.unsubscribeFromTimedMarkersListSyncEntity=H;X.addOnDisposeCallback(H);wHC(X)},wHC=function(X){var H=_.jJ().resolve(_.qU);
H=_.ZOL(H.getState(),X.syncEntityKey);(H==null?void 0:H.activeItemIndex)!==void 0&&(H=X.getItemByIndex(H.activeItemIndex))&&K3y(X,H)},U2Z=function(X){var H=new _.jw(X.onScroll,50,X);
_.LY(X,H);var l=function(){H.fire()};
X.JSC$21186_containerElement.addEventListener("scroll",l);X.addOnDisposeCallback(function(){X.JSC$21186_containerElement.removeEventListener("scroll",l)})};
QS.prototype.getItemByIndex=function(X){var H;(H=this.renderLazyListItems)==null||H.call(this,X);H=this.JSC$21186_containerElement.querySelectorAll(this.supportedSyncItems);if(H.length>X)return H[X]};
var K3y=function(X,H){X.activeItem&&X.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));H.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));X.activeItem=H};
QS.prototype.scrollToItem=function(X){X=this.getScrollPositionForItem(X);this.JSC$21186_containerElement.scrollTop!==X&&this.JSC$21186_scrollAnimation.start(this.JSC$21186_containerElement.scrollTop,X,300)};
QS.prototype.getScrollPositionForItem=function(X){if(this.JSC$21186_containerElement.querySelectorAll(this.supportedSyncItems)[0]===X)return 0;var H,l=((H=this.options)==null?0:H.percentOffset)?this.JSC$21186_containerElement.clientHeight*this.options.percentOffset:0;X=_.eP(X).y+this.JSC$21186_containerElement.scrollTop-(_.eP(this.JSC$21186_containerElement).y+l);return Math.max(0,Math.min(X,this.JSC$21186_containerElement.scrollHeight-this.JSC$21186_containerElement.offsetHeight))};
QS.prototype.onScroll=function(){this.activeItemBelowSyncPosition=R9d(this);if(this.activeItem&&!this.JSC$21186_scrollAnimation.isAnimating()&&Math.abs(this.JSC$21186_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var X;switch((X=this.options)==null?void 0:X.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":d25(this,!h9U(this));CAZ(this);break;default:d25(this,!0)}}};
var d25=function(X,H){var l,b;_.h(function(U){if(U.nextAddress==1){if(X.browsingMode)return U.return();X.browsingMode=!0;H&&X.hostElement.classList.add("browsing-mode");X.playerExitBrowsingModeListener=function(){$2N(X,!1)};
return U.yield(_.j2(),2)}l=U.yieldResult;(b=l)==null||b.addEventListener("SEEK_TO",X.playerExitBrowsingModeListener);_.m5(U)})},$2N=function(X,H){H=H===void 0?!0:H;
X.browsingMode&&(X.browsingMode=!1,X.hostElement.classList.remove("browsing-mode"),H&&X.scrollToItem(X.activeItem),F3Z(X))},F3Z=function(X){var H,l;
_.h(function(b){if(b.nextAddress==1)return X.playerExitBrowsingModeListener?b.yield(_.j2(),3):b.jumpTo(0);H=b.yieldResult;(l=H)==null||l.removeEventListener("SEEK_TO",X.playerExitBrowsingModeListener);X.playerExitBrowsingModeListener=void 0;_.m5(b)})},CAZ=function(X){var H;
((H=X.options)==null?void 0:H.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(h9U(X)?X.hostElement.classList.remove("browsing-mode"):X.activeItem&&X.hostElement.classList.add("browsing-mode"))},R9d=function(X){if(!X.activeItem)return!1;
var H,l=((H=X.options)==null?0:H.percentOffset)?X.JSC$21186_containerElement.clientHeight*X.options.percentOffset:0;return X.activeItem.offsetTop>=X.JSC$21186_containerElement.scrollTop+l},h9U=function(X){if(!X.activeItem)return!1;
var H=X.activeItem.offsetTop+14<=X.JSC$21186_containerElement.scrollTop+X.JSC$21186_containerElement.clientHeight;return X.activeItem.offsetTop+X.activeItem.clientHeight-14>=X.JSC$21186_containerElement.scrollTop&&H};
QS.prototype.panelContentVisibleChanged=function(X){(this.contentVisible=X)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var BAy=function(X,H){X.syncEntityKey=H;var l;(l=X.unsubscribeFromTimedMarkersListSyncEntity)==null||l.call(X);bve(X)},q3p=function(X,H){X.options=H};var T1=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return X};
_.S(T1,_.a);_.R=T1.prototype;_.R.detached=function(){var X;(X=this.scrollController)==null||X.dispose();this.scrollController=void 0};
_.R.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"}}}};
_.R.dataChanged=function(){var X=this;_.N0(this,function(){if(X.scrollController){var H;(H=X.scrollController)==null||$2N(H,!1);var l,b,U;(b=X.scrollController)==null||BAy(b,(U=(l=X.data)==null?void 0:l.syncModelEntityKey)!=null?U:"default-macro-markers-list-renderer-entity-key");var K,w,d;(d=X.scrollController)==null||q3p(d,{percentOffset:(K=X.data)==null?void 0:K.selectedItemAlignmentPercentOffset,floatingPillType:(w=X.data)==null?void 0:w.floatingPillType})}else{var B,q,u,e;X.scrollController=
new QS(X.contents,X.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(e=(B=X.data)==null?void 0:B.syncModelEntityKey)!=null?e:"default-macro-markers-list-renderer-entity-key",{percentOffset:(q=X.data)==null?void 0:q.selectedItemAlignmentPercentOffset,floatingPillType:(u=X.data)==null?void 0:u.floatingPillType},function(y){X.renderLazyListItems(y)})}X.scrollController.panelContentVisibleChanged(!!X.panelContentVisible)})};
_.R.computeButtonShape=function(){var X=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){X.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.R.renderLazyListItems=function(X){for(var H=this.contents.children,l=0,b=0;b<H.length;b++){var U=void 0;(U=H[b].ytLazyListBehavior)==null||U.fillRemainingListItems();var K=void 0,w=void 0;U=_.f((K=this.data)==null?void 0:(w=K.contents)==null?void 0:w[b],_.rLG);w=K=void 0;if((K=U)==null?0:(w=K.contents)==null?0:w.length)l+=U.contents.length;if(l>=X)break}};
_.R.handleSetActivePanelItemAction=function(X){if((X=_.f(X,qOZ))&&this.panelTargetId===X.panelTargetId){X=X.itemIndex;var H,l,b=(l=(H=this.data)==null?void 0:H.syncModelEntityKey)!=null?l:"default-macro-markers-list-renderer-entity-key",U;((U=this.syncEntity)==null?void 0:U.activeItemIndex)!==X&&this.ytdReduxBehavior.dispatch(_.Us("markersEngagementPanelSyncEntity",b,{key:b,activeItemIndex:X}))}};
_.R.onSyncClick=function(){var X;(X=this.scrollController)==null||$2N(X)};
_.R.panelContentVisibleChanged=function(){var X;(X=this.scrollController)==null||X.panelContentVisibleChanged(!!this.panelContentVisible)};
T1.prototype.panelContentVisibleChanged=T1.prototype.panelContentVisibleChanged;T1.prototype.dataChanged=T1.prototype.dataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],T1.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.sv),_.N("design:type",Object)],T1.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],T1.prototype,"data",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],T1.prototype,"useCustomColors",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],T1.prototype,"panelTargetId",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],T1.prototype,"panelContentVisible",void 0);
_.T([_.A2("#contents"),_.N("design:type",HTMLElement)],T1.prototype,"contents",void 0);_.T([_.g({selectorArgs:["data.syncModelEntityKey"],selector:_.ZOL}),_.N("design:type",Object)],T1.prototype,"syncEntity",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T1.prototype,"dataChanged",null);
_.T([_.Yh("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T1.prototype,"panelContentVisibleChanged",null);_.T([_.sq({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],T1);
_.O(T1,"ytd-macro-markers-list-renderer",function(){if(oZ5!==void 0)return oZ5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return oZ5=X},{mode:1});var stx;var MrZ;var N4=function(){return _.a.apply(this,arguments)||this};
_.S(N4,_.a);N4.prototype.computeAriaLabel=function(X){var H,l;return(X==null?void 0:(H=X.accessibility)==null?void 0:(l=H.accessibilityData)==null?void 0:l.label)||_.XS("LOADING",void 0,"Loading")};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],N4.prototype,"data",void 0);_.T([_.g({computed:"computeAriaLabel(data)"}),_.N("design:type",String)],N4.prototype,"ariaLabel",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],N4);
_.O(N4,"yt-content-loading-renderer",function(){if(MrZ===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;stx===void 0&&(stx=document.createElement("template"));var b=stx;l.call(H,b.content.cloneNode(!0),X.content.firstChild);MrZ=X}X=MrZ;return X},{mode:1});_.gC(_.Z(function(X){var H=_.C(_.FU(!1,void 0,"OZMtVb")),l=H.next().value,b=H.next().value;H=_.C(_.FU(!1,void 0,"qWERsf"));var U=H.next().value,K=H.next().value;_.DR(function(){var B=_.f(X.data().collaboratePlaylistCollaborationSetting,DHd);B&&b(B.switchedOnByDefault);var q=_.f(X.data().allowNewCollaboratorsPlaylistCollaborationSetting,DHd);q&&K(q.switchedOnByDefault);if(!B&&!q||!B&&X.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")b(!0),K(!0)});
var w=function(B){b(B);K(B);var q=X.data().playlistCollaborationEntityKey||"";var u=_.tF().getState();(u=_.JY(u.entities,"playlistCollaborationEntity",q))&&(u==null?void 0:u.isCollaborative)===B||_.tF().dispatch(_.Us("playlistCollaborationEntity",q,Object.assign({},u,{isCollaborative:B})))},d=function(B){K(B)};
return _.F("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.F("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.F(_.l4,{data:function(){return X.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(B){return _.F(_.KmA,{data:B.data,
onSwitch:w})}})),_.F(_.M,{cond:l,
then:function(){return _.F(_.Xi,null,_.F("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.F(_.l4,{data:function(){return X.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(B){return _.F(_.KmA,{data:B.data,
onSwitch:d,overrideDisabled:!1})}})),_.F(_.M,{cond:U,
then:function(){return _.F("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.F(_.l4,{data:function(){return X.data().copyLinkButton}},{buttonViewModel:_.Qk}))}}),_.F("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.F(_.l4,{data:function(){return X.data().playlistCollaborators}},{contentListItemViewModel:_.taC})))}}))},"Nj"),"playlist-collaboration-view-model",{props:{data:_.zh}});var uYx=_.Z(function(X){var H=X.data;var l=X.customCommandResolver;return _.F(_.Xi,null,_.F("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.F(_.l4,{data:function(){return H().adAvatar}},{adAvatarViewModel:function(b){return _.F(_.tk6,{data:b.data,
customCommandResolver:l})}})),_.F("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.F(_.M,{cond:function(){return H().headline},
then:function(b){return _.F(_.Sj,{text:b,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.F("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.F(_.l4,{data:function(){return H().adBadge}},{adBadgeViewModel:function(b){return _.F(_.Ln,{data:b.data,
hasDot:function(){return H().primaryDetailsLine!==void 0},
customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.F(_.l4,{data:function(){return H().primaryDetailsLine}},{adDetailsLineViewModel:function(b){return _.F(_.YG,{data:b.data,
customCommandResolver:l,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Oj"),e9d=_.Z(function(X){var H=X.data;
var l=X.customCommandResolver;return _.F("ad-avatar-lockup-view-model",{class:function(){var b;return((b=H().interaction)==null?0:b.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.xl(_.jh({visibilityCallback:function(b){var U,K=(U=H().interaction)==null?void 0:U.onFirstVisible;b&&K&&_.yr(K)},
showOption:_.mf}),_.P6(function(){return H().interaction},l)),
"aria-label":function(){var b,U;return(b=H().interaction)==null?void 0:(U=b.accessibility)==null?void 0:U.label}},_.F(_.ff,null,_.F(_.yO,{when:function(){return H().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.F(uYx,{data:H,
customCommandResolver:l})}),_.F(_.VO,null,function(){return null})))},"Pj");_.gC(_.Z(function(X){var H=X.data;var l=X.panelContentVisibility;X=_.jh({visibilityCallback:function(K){var w,d=(w=H().interaction)==null?void 0:w.onFirstVisible;K&&d&&_.yr(d)},
showOption:_.mf});var b=_.P6(function(){return H().interaction},Kie);
_.t1(function(){var K,w;if(w=_.ij("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;w=(d=w())==null?void 0:d.onLayoutVisibleCallback}else w=null;(K=w)==null||K()},"Qj");
var U=function(){return l()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.F("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.xl(X,b)},_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.F(_.M,{cond:_.N0m("(min-width: "+(Ts()+NB)+"px) or (max-width: 600px)"),then:function(){return _.F(_.l4,{data:function(){return H().adImage}},{adImageViewModel:function(K){return _.F(_.Ti,{data:K.data,
targetHeight:80,customCommandResolver:Kie})}})}})),_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.F(_.l4,{data:function(){return H().adAvatarLockup}},{adAvatarLockupViewModel:function(K){return _.F(e9d,{data:K.data,
customCommandResolver:Kie})}})),_.F(_.M,{cond:U,
then:function(){return _.F(_.l4,{data:function(){return H().adButton}},{adButtonViewModel:function(K){return _.F(_.NX,{data:K.data,
customCommandResolver:Kie})}})},
else:function(){return _.F(_.l4,{data:function(){return H().menu}},{buttonViewModel:_.Qk})}}),_.F("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.F(_.l4,{data:function(){var K=_.f(H().toggleButton,_.SR);
return{toggleButtonViewModel:Object.assign({},K,{isTogglingDisabled:!0,isToggled:U()})}}},{toggleButtonViewModel:_.KL})))))},"Rj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.zh,
panelContentVisibility:_.zh}});var y6p=_.$q(REN,{debugName:"chipBarViewModel"});_.JR(_.p3,function(X){_.St(X,"chipBarViewModel","HwlOhd",REN)});var Vr$=_.$q(Cpl,{debugName:"gridShelfViewModel"});_.JR(_.p3,function(X){_.St(X,"gridShelfViewModel","JoU6vf",Cpl)});var PAl=_.$q(w8C,{debugName:"ytFeedbackPromptViewModel"});_.JR(_.p3,function(X){_.St(X,"ytFeedbackPromptViewModel","hU04te",w8C)});var fka=_.$q(dV$,{debugName:"learningJourneyLoaderViewModel"});_.JR(_.p3,function(X){_.St(X,"learningJourneyLoaderViewModel","dIvQ6c",dV$)});var pHY=_.$q(hE$,{debugName:"ytAccordionViewModel"});_.JR(_.p3,function(X){_.St(X,"ytAccordionViewModel","m9Vw4",hE$)});var S3A=_.$q(Fie,{debugName:"videoOverviewViewModel"});_.JR(_.p3,function(X){_.St(X,"videoOverviewViewModel","mcjWUc",Fie)});var z95=_.$q(Bka,{debugName:"youChatItemViewModel"});_.JR(_.p3,function(X){_.St(X,"youChatItemViewModel","QiZf0e",Bka)});var nZ5=_.$q(qJU,{debugName:"ytChatLoadingViewModel"});_.JR(_.p3,function(X){_.St(X,"ytChatLoadingViewModel","f8YPh",qJU)});var kAY=_.$q(sJ5,{debugName:"ytChatUserTurnViewModel"});_.JR(_.p3,function(X){_.St(X,"ytChatUserTurnViewModel","b3MoKf",sJ5)});var x2a=_.Z(function(X){var H=_.C((0,_.iMF)(X.data)).next().value,l=function(){var b,U;return(U=(b=H().contents)==null?void 0:b.length)!=null?U:0};
return _.F("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return X.data().targetId||""},
"aria-busy":function(){var b,U;return(U=(b=H().contents)==null?void 0:b.some(function(K){return!!K.chatLoadingViewModel}))!=null?U:!1}},_.F(_.l4,{data:function(){return X.data().header}},{chipBarViewModel:y6p,
sectionHeaderViewModel:_.on}),_.F(_.l4,{data:function(){return H().contents}},{accordionViewModel:pHY,
alertBannerViewModel:aQ$,chatLoadingViewModel:function(b,U){return _.F(nZ5,{data:b.data,containerHeight:X.containerHeight,isLastItem:function(){return U()===l()-1}})},
chatUserTurnViewModel:function(b,U){return _.F(kAY,{data:b.data,containerHeight:X.containerHeight,isLastItem:function(){return U()===l()-1}})},
feedbackPromptViewModel:PAl,gridShelfViewModel:function(b){return _.F(Vr$,{data:b.data,shouldUseOwnContainerSize:!0,marginSettings:X.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:fka,linearLayoutViewModel:_.Dl,lockupViewModel:function(b){return _.F(_.Ak,{data:b.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:X.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.on,videoOverviewViewModel:S3A,youChatItemViewModel:function(b,U){return _.F(z95,{data:b.data,pending:!1,containerHeight:X.containerHeight,isLastItem:function(){return U()===l()-1}})}}))},"Sj");_.gC(_.Z(function(X){var H=_.C((0,_.iMF)(X.data)).next().value,l=_.C(_.UF()),b=l.next().value;l=l.next().value;var U=_.xl(l);l=_.C(_.FU(void 0,void 0,"fqbUqd"));var K=l.next().value,w=l.next().value,d=function(){var B;return _.f((B=X.data().sectionListLayoutConfiguration)==null?void 0:B.layoutConfiguration,umd)};
_.DR(function(){var B,q=(B=U.value)==null?void 0:B.clientWidth;B=d()?_.PXy(q,d()):void 0;w(B)});
l={};return _.F("yt-section-list-renderer",{class:_.Qr("ytSectionListRendererHost",X.className,(l.ytSectionListRendererHostOverscrollContain=function(){var B;return(B=X.overscrollContain)==null?void 0:B.call(X)},l)),
el:U,"data-target-id":function(){return X.data().targetId||""}},_.F(_.l4,{data:function(){return H().contents}},{itemSectionRenderer:function(B){return _.F(x2a,{data:B.data,
containerLayoutConfig:K,marginSettings:X.marginSettings,containerHeight:function(){return b.height()}})}}))},"Tj"),"yt-section-list-renderer",{props:{data:_.zh,
className:_.ta,marginSettings:_.zh,overscrollContain:_.zh}});_.gC(_.Z(function(X){var H=function(){return _.f(X.data().inputComposerViewModel,eEZ)},l=_.Aa(_.ze.currentPageSubTypeSelector),b=_.Aa(_.ze.persistentPanelVisibleSelector),U=_.C(_.FU(!1,void 0,"RXGzYc")),K=U.next().value,w=U.next().value;
U=_.C(_.FU(!1,void 0,"oyonKd"));var d=U.next().value,B=U.next().value,q=function(){z(!0);var ub;_.yr(((ub=H())==null?void 0:ub.onSubmitCommand)||{})},u=function(){if(b()&&!d()){var ub;
(ub=_.rd())==null||ub.removeCueRange("aic-proactive");w(!1);B(!0);q();_.Mq(_.z3d(H().endOfVideoContinuation),{form:{formData:_.tD({clientMessageId:"youchat-"+Date.now(),pageContext:sy()})},commandController:{onSuccess:function(){z(!1)},
onServerError:function(){_.Mq(jHN(r()));z(!1)}}})}},e=function(){var ub=_.rd();
if(ub&&!K()&&!d()){var g8=ub.getDuration();g8>60&&(ub.addCueRange("aic-proactive",g8-60,g8-20),w(!0))}},y=function(){var ub;
return((ub=H())==null?void 0:ub.youchatPendingResponseEntityKey)||""},V=_.Aw(_.kXp,y),p=function(){var ub;
return!((ub=V())==null||!ub.isPendingResponse)},z=function(ub){_.x0C(y())(ub)};
U=_.C(_.FU(!0,void 0,"umCoCf"));var t=U.next().value,W=U.next().value,G=function(){var ub,g8;var mm=_.f((g8=H())==null?void 0:g8.inputFormField,HBa);return mm==null?void 0:(ub=mm.contentProperties)==null?void 0:ub.placeholderText},r=function(){return H().sectionTargetId||"youchat_messages_section"};
U=_.z7("yt-chat-input-view-model");var Q=_.SJ("textarea"),v=_.Aw(J0C,"chat_input_view_model_state"),J=L1Z(),Y=function(){var ub;return!((ub=v())==null||!ub.value)},Uy=function(){return X.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},Cy=function(){var ub;
(ub=_.rd())==null||ub.removeCueRange("aic-proactive");w(!1);B(!1);var g8;_.P("enable_navigational_proactive_messages_on_ai_companion")&&((g8=H())==null?0:g8.navigationContinuation)&&b()&&(q(),_.Mq(_.z3d(H().navigationContinuation),{form:{formData:_.tD({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:uk5(),pageContext:sy()})},commandController:{onSuccess:function(){z(!1)},
onServerError:function(){_.Mq(jHN(r()));z(!1)}}}))},sy=function(){var ub;
return(ub=_.jJ().resolve(_.c$(_.em)))==null?void 0:_.O$Z(ub,l())};
_.DR(function(){if(_.KG("enable_ai_chat_controller")){var ub;(ub=_.jJ().resolve(_.c$(_.em)))==null||ub.init(X.data().environment)}else if(ub=yv$(X.data()),!Y()&&ub){var g8;((g8=H())==null?0:g8.setPendingResponseOnWelcome)&&z(!0);_.Mq(ub,{form:{formData:_.tD({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:uk5(),pageContext:sy()})}});J(!0)}var mm=r(),QZ=_.jJ().resolve(_.c$(_.Lg)),Bz=function(){_.H6.remove(mm);if(_.KG("enable_ai_chat_controller")){var TK;(TK=_.jJ().resolve(_.c$(_.em)))!=null&&
TK.environment==="CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(TK.lastWelcomeContinuationSent=void 0)}else J(!1)},dt=function(){_.h1(function(){if(Uy()&&(Cy(mm),l()==="watch")){var TK=_.rd();
TK&&(TK.addEventListener("onStateChange",e),TK.addEventListener("onCueRangeEnter",u))}})};
g8=_.P("enable_ai_companion")?!Uy():!0;QZ==null||QZ.addEventListener("yt-navigate-start",Bz,{once:g8});QZ==null||QZ.addEventListener("yt-navigate-finish",dt,{once:g8});_.E2(function(){QZ==null||QZ.removeEventListener("yt-navigate-start",Bz);QZ==null||QZ.removeEventListener("yt-navigate-finish",dt);var TK=_.rd();TK&&(TK.removeEventListener("onCueRangeEnter",u),TK.removeEventListener("onStateChange",e),TK.removeCueRange("aic-proactive"))})});
_.Wg(function(){if(_.KG("enable_ai_chat_controller")){var ub=yv$(X.data());if(ub){var g8,mm=((g8=H())==null?0:g8.setPendingResponseOnWelcome)?z:void 0,QZ;(QZ=_.jJ().resolve(_.c$(_.em)))==null||Bsd(QZ,{command:ub,setPending:mm})}}},"SXTMBe");
var FO=function(){var ub=Q.value.value;Q.value.value="";MYl(Q.value);var g8,mm=((g8=H())==null?void 0:g8.enableGradientColorBg)||!1,QZ;g8=r0U(r(),ub,mm,(QZ=H())==null?void 0:QZ.chatUserTurnBackgroundStyle);_.Mq(g8);q();var Bz,dt,TK;QZ=(TK=_.sl((Bz=X.data())==null?void 0:Bz.sendUserQueryCommand))!=null?TK:_.z3d((dt=H())==null?void 0:dt.continuation);_.Mq(QZ,{form:{formData:_.tD({clientMessageId:"youchat-"+Date.now(),userInputText:ub,playerOffsetMs:uk5(),pageContext:sy()})},commandController:{onSuccess:function(){z(!1)},
onServerError:function(){_.Mq(jHN(r()));z(!1)}}})};
return _.F("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:U},_.F("div",{class:"chatInputViewModelChatInputWrapper"},_.F("form",{class:"chatInputViewModelChatInputForm"},_.F("textarea",{class:"chatInputViewModelChatInput",el:Q,"on:keydown":_.Nq(function(ub){var g8=p()||!1;MYl(Q.value);g8||ub.key!=="Enter"||ub.shiftKey||(ub.preventDefault(),FO());return!1}),
"on:keyup":_.Nq(function(){W(Q.value.value.length===0);return!1}),
"aria-label":function(){if(p()){var ub,g8;return((ub=H())==null?void 0:(g8=ub.loadingConfig)==null?void 0:g8.loadingAnimationA11yLabel)||""}return G()},
placeholder:G,rows:1}),_.F(_.Qk,{data:function(){return _.f(X.data().sendButton,_.fk)},
onClick:function(ub){ub.preventDefault();FO();W(Q.value.value.length===0)},
buttonOverrides:function(){return{disabled:t()||p()}}})),_.F(_.Sj,{className:"chatInputViewModelChatDisclaimer",
text:function(){var ub;return X.data().disclaimerText||((ub=_.f(X.data().disclaimer,_.JLG))==null?void 0:ub.text)}})))},"Vj"),"yt-chat-input-view-model",{props:{data:_.zh}});var D2p=["engagement-panel-clip-create","engagement-panel-clip-view"],trC=0,cy=function(){var X=_.a.apply(this,arguments)||this;var H;X.headerData=(H=X.data)==null?void 0:H.header;X.darkerPanels=_.P("web_watch_darker_panels");X.matchContentTheme=_.P("web_watch_panel_content_match_theme");X.disableAutoFill=!1;X.isFullscreen=!1;X.isTheaterMode=!1;X.liveChatReplyPanel=!1;X.enableAnchoredPanel=_.P("desktop_shorts_v2_anchored_panel");X.disableBackdropFilter=_.P("web_disable_backdrop_filter");X.isPersistentPanel=
!1;X.trackEngagementPanelVisibility=_.P("web_watch_track_engagement_panel_visibility");X.overscrollContain=!1;X.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 X};
_.S(cy,_.a);_.R=cy.prototype;
_.R.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(X){var H;return(X==null?void 0:(H=X.webComponentHint)==null?void 0:H.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.R.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var X;if((X=this.hostElement.parentElement)==null?0:X.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.R.detached=function(){this.updateTheaterDisablement()};
_.R.showPanel=function(){var X=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Ss.addJob(function(){X.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.R.maybeScrollToItemSection=function(X){var H=this,l,b=X==null?void 0:(l=X.sectionListEngagementPanelExtras)==null?void 0:l.scrollToItemSectionIdentifier;b&&_.Ss.addJob(function(){var U;(U=H.sectionListRendererElement)==null||U.scrollToItemSection(b)},8)};
_.R.hidePanel=function(){var X=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Ss.addJob(function(){X.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.R.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.R.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.R.updatePanel=function(X,H,l,b){var U=this;if((X=X==null?void 0:X.engagementPanelSectionListRenderer)||b){if(X){b=X.header;var K=X.content,w=X.footer,d=X.targetId,B=X.onShowCommands;X=X.onHideCommands;d&&this.set("data.targetId",d);b&&this.set("data.header",b);K&&this.set("data.content",K);w&&this.set("data.footer",w);_.P("enable_on_visibility_change_commands_for_panels")&&(B&&this.set("data.onShowCommands",B),X&&this.set("data.onHideCommands",X))}else b&&(X=b.content,K=b.secondaryHeaderContent,
w=b.targetId,b=b.loggingDirectives,w&&this.set("data.targetId",w),X&&this.set("data.content",X),b&&_.P("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",b),K&&(this.secondaryHeaderData=K));this.updateChildVisibilityProperties();if(H){var q;_.P("kevlar_update_panel_focus_scroll_killswitch")||(q={preventScroll:!0});this.focus(q)}_.N0(this,function(){_.QX(U.hostElement,"yt-refit");U.maybeScrollToItemSection(l)})}};
_.R.computeHeaderData=function(){var X,H=(0,_.Bb.unsafeClone)((X=this.data)==null?void 0:X.header);if(H){X=new _.Ed(Object.keys(H)[0]);var l=_.f(H,X),b=_.f(this.secondaryHeaderData,X);b&&_.dC(H,X,Object.assign({},b,l))}return H};
_.R.getReloadContinuation=function(){var X,H,l,b=_.C(((X=this.data)==null?void 0:(H=X.content)==null?void 0:(l=H.sectionListRenderer)==null?void 0:l.continuations)||[]);for(X=b.next();!X.done;X=b.next())if(X=X.value,X.reloadContinuationData)return X.reloadContinuationData.continuation};
_.R.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var X;((X=this.data)==null?0:X.targetId)&&(X=this.contentElement.firstElementChild)&&X.setAttribute("panel-target-id",this.data.targetId)};
_.R.forwardPopupClosedToFlowRootRenderer=function(){var X=_.mh(this.hostElement).querySelector("ytd-flow-root-renderer");if(X&&this.hostElement.closest("ytd-popup-container"))X.onPopupClosed()};
_.R.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var X;if(!D2p.includes((X=this.theaterDisablementPanelIdentifier)!=null?X:""))if(X=_.P("web_watch_imax_theater_mode")&&this.isTheaterMode,X=_.P("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||X,_.P("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||X){var H;this.visibility=(H=this.data)==null?void 0:H.visibility;var l;this.trackEngagementPanelVisibility&&((l=this.data)==null?void 0:l.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var b,U,K,w;this.contentEmpty=!!(((b=this.data)==null?0:(U=b.content)==null?0:U.structuredDescriptionContentRenderer)&&Object.keys((K=this.data)==null?void 0:(w=K.content)==null?void 0:
w.structuredDescriptionContentRenderer).length===0);(H=_.jJ().resolve(_.d3))&&H.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.R.isTheaterModeChanged=function(){_.P("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.R.isFullscreenChanged=function(){_.P("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.R.focus=function(X){if(this.header)this.header.focus(X);else{var H;(H=_.mh(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||H.focus(X)}};
_.R.visibilityChanged=function(){if(!_.P("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var X=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",l=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",U=b||!this.lastVisibility,K,w,d,B=((K=this.data)==null?void 0:(w=K.identifier)==null?void 0:
w.tag)||((d=this.data)==null?void 0:d.panelIdentifier);if(X&&U){var q;if((q=this.data)==null?0:q.onShowCommands)if(_.P("enable_on_visibility_change_commands_for_panels"))for(H=_.C(this.data.onShowCommands),l=H.next();!l.done;l=H.next())this.ytComponentBehavior.resolveCommand(l.value);else _.j7(this.hostElement,this.data.onShowCommands,this.hostElement);B&&_.WF().dispatch(_.Of({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:B}}))}else if(H&&l){var u;if((u=this.data)==null?0:u.onHideCommands)if(_.P("enable_on_visibility_change_commands_for_panels"))for(H=
_.C(this.data.onHideCommands),l=H.next();!l.done;l=H.next())this.ytComponentBehavior.resolveCommand(l.value);else _.j7(this.hostElement,this.data.onHideCommands,this.hostElement);B&&_.WF().dispatch(_.Of({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:B}}))}X&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*trC++));_.P("kevlar_watch_focus_on_engagement_panels")&&X&&b&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.R.notifyVisibilityChanged=function(X){var H;_.NG(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,X,(H=this.data)==null?void 0:H.targetId]);if(_.P("autonav_pause_for_comments_ep")){var l;_.QX(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:X==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(l=this.data)==null?void 0:l.targetId})}};
_.R.updateTheaterDisablement=function(){if(!_.P("kevlar_watch_theater_disablement_killswitch")){var X=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&D2p.includes(X)&&!_.P("watch_next_grid_ignore_disallowed_panels")){var H=_.BS(_.WF().getState()),l=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";X!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():l?(this.originalTheaterState===void 0&&(this.originalTheaterState=H,this.theaterDisablementPanelIdentifier=
X),H&&_.TP(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.R.clearTheaterDisablement=function(){_.TP(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.R.updateChildVisibilityProperties=function(){this.hostElement||_.P("kevlar_panel_property_init_killswitch")||this._enableProperties();var X=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=X);var H,l=(H=this.headerElement)==null?void 0:H.firstElementChild;if(l&&!this.adHeaderImageLockupViewModel){H=X==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";l.collapsed=H;l=_.mh(l).querySelector("#visibility-button");if(!l)return;(l=l.firstElementChild)&&
l.polymerController.is==="ytd-toggle-button-renderer"&&l.polymerController.data.isToggled!==H&&l.polymerController.set("data.isToggled",H)}var b;if(H=(b=this.contentElement)==null?void 0:b.firstElementChild)if(X&&X!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")H.removeAttribute("panel-content-visible");else{H.setAttribute("panel-content-visible","");var U;(U=H.markDirty)==null||U.call(H)}};
_.R.onYtChangeEngagementPanelVisibilityAction=function(X){var H=this,l,b=(l=this.data)==null?void 0:l.targetId,U,K,w;l=((U=this.data)==null?void 0:(K=U.identifier)==null?void 0:K.tag)||((w=this.data)==null?void 0:w.panelIdentifier);var d=_.f(X,_.FAG),B;X=b&&(d==null?void 0:d.targetId)===b||l&&(d==null?void 0:(B=d.panelIdentifier)==null?void 0:B.tag)===l;this.dialog&&X&&(d==null?void 0:d.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(b==="engagement-panel-comments-section"?_.TP(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.TP(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",l]));!_.P("kevlar_use_engagement_panel_management_component")&&X&&(b=d.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!b?_.Ss.addJob(function(){H.visibility=d.visibility},2,this.hideDelayMs):this.visibility=d.visibility,d.visibility&&this.notifyVisibilityChanged(d.visibility))};
_.R.onYtScrollToEngagementPanelCommand=function(X){var H,l=(H=this.data)==null?void 0:H.targetId,b,U,K;H=((b=this.data)==null?void 0:(U=b.identifier)==null?void 0:U.tag)||((K=this.data)==null?void 0:K.panelIdentifier);X=_.f(X,_.zkq);var w;(l&&(X==null?void 0:X.targetId)===l||H&&(X==null?void 0:(w=X.panelIdentifier)==null?void 0:w.tag)===H)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.TP(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.R.attachVEs=function(X){var H,l;(X==null?0:(H=X.content)==null?0:(l=H.productListRenderer)==null?0:l.trackingParams)&&_.lv().graftServerVe(X.content.productListRenderer.trackingParams);var b,U;(X==null?0:(b=X.content)==null?0:(U=b.transcriptRenderer)==null?0:U.trackingParams)&&_.lv().graftServerVe(X.content.transcriptRenderer.trackingParams)};
_.R.onYtUpdateEngagementPanelAction=function(X){var H,l=(H=this.data)==null?void 0:H.targetId;X=_.f(X,MKe);l&&(X==null?void 0:X.targetId)===l&&(this.updatePanel({engagementPanelSectionListRenderer:{header:X==null?void 0:X.header,content:X==null?void 0:X.content}},!1),this.attachVEs(X))};
_.R.onYtShowEngagementPanelScrimAction=function(X){var H,l=(H=this.data)==null?void 0:H.targetId;X=_.f(X,srU);l&&(X==null?void 0:X.engagementPanelTargetId)===l&&(this.scrimmed=!0)};
_.R.onYtHideEngagementPanelScrimAction=function(X){var H,l=(H=this.data)==null?void 0:H.targetId;X=_.f(X,wa$);l&&(X==null?void 0:X.engagementPanelTargetId)===l&&(this.scrimmed=!1)};
_.R.getIdentifier=function(){var X,H,l;return((X=this.data)==null?void 0:X.panelIdentifier)||((H=this.data)==null?void 0:(l=H.identifier)==null?void 0:l.tag)};
_.R.getSurface=function(){var X,H;return(X=this.data)==null?void 0:(H=X.identifier)==null?void 0:H.surface};
_.ja.Object.defineProperties(cy.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var X=this.getIdentifier();return X==="engagement-panel-youchat"||X==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
cy.prototype.visibilityChanged=cy.prototype.visibilityChanged;cy.prototype.isFullscreenChanged=cy.prototype.isFullscreenChanged;cy.prototype.isTheaterModeChanged=cy.prototype.isTheaterModeChanged;cy.prototype.dataChanged=cy.prototype.dataChanged;cy.prototype.forwardPopupClosedToFlowRootRenderer=cy.prototype.forwardPopupClosedToFlowRootRenderer;cy.prototype.onYtRendererstamperFinished=cy.prototype.onYtRendererstamperFinished;
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],cy.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],cy.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],cy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],cy.prototype,"ytdReduxBehavior",void 0);
_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],cy.prototype,"ytEventForwardingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],cy.prototype,"data",void 0);_.T([_.g({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.N("design:type",Object)],cy.prototype,"headerData",void 0);_.T([_.g(),_.N("design:type",Object)],cy.prototype,"secondaryHeaderData",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],cy.prototype,"visibility",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],cy.prototype,"contentEmpty",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],cy.prototype,"scrimmed",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],cy.prototype,"dialog",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],cy.prototype,"dropdown",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],cy.prototype,"darkerPanels",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],cy.prototype,"matchContentTheme",void 0);_.T([_.g(),_.N("design:type",Object)],cy.prototype,"disableAutoFill",void 0);_.T([_.g({reflectToAttribute:!0,value:_.P("optimal_reading_width_comments_ep")}),_.N("design:type",Boolean)],cy.prototype,"optimalReadingWidthComments",void 0);_.T([_.g(),_.N("design:type",Number)],cy.prototype,"hideDelayMs",void 0);
_.T([_.g({selector:_.qn,reflectToAttribute:!0}),_.N("design:type",Object)],cy.prototype,"isFullscreen",void 0);_.T([_.g({selector:_.BS,reflectToAttribute:!0}),_.N("design:type",Object)],cy.prototype,"isTheaterMode",void 0);_.T([_.g(),_.N("design:type",Number)],cy.prototype,"showDelayMs",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.targetId"),_.N("design:type",Object),_.N("design:paramtypes",[])],cy.prototype,"targetId",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],cy.prototype,"webSize",null);_.T([_.g(),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],cy.prototype,"hideFooterBorder",null);_.T([_.g(),_.N("design:type",Object)],cy.prototype,"isWatch",void 0);_.T([_.g(),_.N("design:type",Object)],cy.prototype,"originalTheaterState",void 0);_.T([_.g(),_.N("design:type",Object)],cy.prototype,"theaterDisablementPanelIdentifier",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],cy.prototype,"isWatchWhilePanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],cy.prototype,"shortsPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],cy.prototype,"liveChatEngagementPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],cy.prototype,"learningChatEngagementPanel",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],cy.prototype,"liveChatReplyPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],cy.prototype,"enableAnchoredPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],cy.prototype,"disableBackdropFilter",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],cy.prototype,"isPersistentPanel",void 0);_.T([_.g(),_.N("design:type",Object)],cy.prototype,"trackEngagementPanelVisibility",void 0);
_.T([_.g(),_.N("design:type",Object)],cy.prototype,"overscrollContain",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],cy.prototype,"isAiCompanionPanel",null);_.T([_.A2("#header"),_.N("design:type",HTMLElement)],cy.prototype,"headerElement",void 0);_.T([_.A2("#header > *"),_.N("design:type",HTMLElement)],cy.prototype,"header",void 0);_.T([_.A2("ytd-section-list-renderer"),_.N("design:type",Object)],cy.prototype,"sectionListRendererElement",void 0);
_.T([_.A2("panel-ad-header-image-lockup-view-model"),_.N("design:type",HTMLElement)],cy.prototype,"adHeaderImageLockupViewModel",void 0);_.T([_.A2("#content"),_.N("design:type",HTMLElement)],cy.prototype,"contentElement",void 0);_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cy.prototype,"onYtRendererstamperFinished",null);
_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cy.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.T([_.oi("data","isFullscreen","isTheaterMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cy.prototype,"dataChanged",null);_.T([_.Yh("isTheaterMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cy.prototype,"isTheaterModeChanged",null);
_.T([_.Yh("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cy.prototype,"isFullscreenChanged",null);_.T([_.Yh("visibility"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cy.prototype,"visibilityChanged",null);_.T([_.sq({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],cy);
_.O(cy,"ytd-engagement-panel-section-list-renderer",function(){if(IPU!==void 0)return IPU;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return IPU=X},{mode:2});var W3p;var jX=function(){var X=_.a.apply(this,arguments)||this;X.rounded=!0;X.pageAttachedTo=void 0;X.currentRequestResolver=void 0;X.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return X};
_.S(jX,_.a);jX.prototype.attached=function(){this.pageAttachedTo=_.jJ().resolve(_.gd).getCurrentPage();_.QX(this.hostElement,"yt-player-attached",this.player)};
jX.prototype.detached=function(){var X;if((X=this.pageAttachedTo)==null?0:X.hostElement)_.QX(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
jX.prototype.dataChanged=function(){var X=this,H;if(((H=this.data)==null?0:H.inlinePlaybackEndpoint)&&!_.P("web_channel_imp_ks")){this.currentRequestResolver&&this.currentRequestResolver.reject();H=this.data.inlinePlaybackEndpoint;var l=_.jJ().resolve(_.b$),b={};_.jJ().resolve(_.HS);b.lact=_.JV();var U=new _.cF;this.currentRequestResolver=U;U.promise.then(function(K){var w={autoplay:!0};!_.P("miniplayer_stop_channel_video_autoplay_killswitch")&&_.jJ().resolve(_.f9).isMiniplayerActive()&&(w.pause_at_start=
!0,w.autoplay=!1);K&&X.player.loadVideoWithPlayerResponse(K,w)});
tg5(l,{endpoint:H,startPlaybackInMutedState:!1},b).then(function(K){U.resolve(K)}).catch(function(){})}else if((l=this.data)==null?0:l.videoId)H={video_id:this.data.videoId,
autoplay:!0},!_.P("miniplayer_stop_channel_video_autoplay_killswitch")&&_.jJ().resolve(_.f9).isMiniplayerActive()&&(H.pause_at_start=!0,H.autoplay=!1),this.player.loadVideoWithPlayerVars(H)};
jX.prototype.handleSignalActionPausePlayer=function(){_.ZH().pause()};
jX.prototype.dataChanged=jX.prototype.dataChanged;_.T([_.g(),_.N("design:type",Object)],jX.prototype,"data",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],jX.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],jX.prototype,"rounded",void 0);_.T([_.A2("#player"),_.N("design:type",Object)],jX.prototype,"player",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jX.prototype,"dataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],jX);
_.O(jX,"ytd-channel-video-player-renderer",function(){if(W3p!==void 0)return W3p;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return W3p=X},{mode:1});var EZe;var r_=function(){return _.a.apply(this,arguments)||this};
_.S(r_,_.a);r_.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Ml(_.mh(this.hostElement).querySelector("#text"),_.nOC(_.Dz6,this.data.companionLegalText))};
r_.prototype.computeAutoScrollEnabled=function(X,H){return X&&!H};
r_.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
r_.prototype.onToggleTap=function(){this.expanded=!this.expanded};
r_.prototype.expandedChanged=r_.prototype.expandedChanged;r_.prototype.dataChanged=r_.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.T([_.k(K0Y),_.N("design:type",Object)],r_.prototype,"ytdAutoScrollBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],r_.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],r_.prototype,"expanded",void 0);
_.T([_.g({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.N("design:type",Boolean)],r_.prototype,"autoScrollEnabled",void 0);_.T([_.g(),_.N("design:type",String)],r_.prototype,"expanderIcon",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r_.prototype,"dataChanged",null);
_.T([_.Yh("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r_.prototype,"expandedChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],r_);
_.O(r_,"ytd-companion-legal-text-renderer",function(){if(EZe!==void 0)return EZe;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return EZe=X},{mode:1});var gZY;var J7=function(){var X=_.a.apply(this,arguments)||this;X.buttonUpdate=_.P("web_modern_buttons");X.kevlarWatchGrid=_.P("kevlar_watch_grid");X.centerAlignDescription=_.P("action_companion_center_align_description");X.truncateDomain=_.P("action_companion_truncate_domain");X.enableMonoStyle=_.P("enable_default_mono_cta_migration_web_client");return X};
_.S(J7,_.a);_.R=J7.prototype;_.R.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.R.getOnLayoutVisibleCallback=function(){var X=_.ij("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.onLayoutVisibleCallback:null};
_.R.getLayoutId=function(){var X=_.ij("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.layoutId:null};
_.R.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",J7.JSC$21251_DEFAULT_AD_BADGE_RENDERER);var X=this.getOnLayoutVisibleCallback();X&&X()}};
_.R.getButtonRenderer=function(X){return X.actionButton&&_.f(X.actionButton,_.yB)?(delete _.f(X.actionButton,_.yB).navigationEndpoint,_.f(X.actionButton,_.yB)):{}};
_.R.onClick=function(X){var H=this;if((!_.P("web_modern_buttons")||!_.WS(_.t2(X),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){X=_.aq();var l=this.getLayoutId();X&&l&&_.P("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?X.getPlayerPromise().then(function(b){(new _.qC(b)).executeCommand(H.data.navigationEndpoint,l)}):_.P("kevlar_companion_resolve_command_killswitch")?_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.TP(this.hostElement,"yt-companion-ad-clicked",["action-companion",l])}};
_.ja.Object.defineProperties(J7.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((X=this.data)==null?0:(H=X.detailsLine)==null?0:(l=H.adRating)==null?0:l.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 X,H,l,b;return((X=this.data)==null?0:(H=X.detailsLine)==null?0:(l=H.adRating)==null?0:(b=l.ratingIcon)==null?0:b.iconType)?_.jL(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b;return((X=this.data)==null?0:(H=X.detailsLine)==null?0:(l=H.texts)==null?0:(b=l[0])==null?0:b.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 X,H;return((X=this.data)==null?0:(H=X.description)==null?0:H.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var X=_.ij("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var X=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return X?X.indexOf("/default_banner")!==-1:!0}}});
J7.prototype.onClick=J7.prototype.onClick;J7.prototype.dataChanged=J7.prototype.dataChanged;J7.JSC$21251_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.XS("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],J7.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],J7.prototype,"rendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],J7.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],J7.prototype,"buttonUpdate",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],J7.prototype,"kevlarWatchGrid",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],J7.prototype,"centerAlignDescription",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],J7.prototype,"truncateDomain",void 0);
_.T([_.g({computed:"computeButtonOverride(buttonUpdate)"}),_.N("design:type",Object)],J7.prototype,"buttonOverride",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],J7.prototype,"enableMonoStyle",void 0);_.T([_.x("data.detailsLine.adRating.ratingText"),_.N("design:type",Object),_.N("design:paramtypes",[])],J7.prototype,"getRating",null);_.T([_.x("getRating"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J7.prototype,"computeRatingHidden",null);
_.T([_.x("data.detailsLine.adRating.ratingIcon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],J7.prototype,"iconType",null);_.T([_.x("data.detailsLine.texts.0.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],J7.prototype,"getDetailsLine",null);_.T([_.x("getDetailsLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J7.prototype,"computeDetailsLineHidden",null);
_.T([_.x("data.description.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],J7.prototype,"getDescriptionText",null);_.T([_.x("getDescriptionText"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J7.prototype,"computeDescriptionTextHidden",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],J7.prototype,"interactionLoggingClientData",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],J7.prototype,"hideBanner",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J7.prototype,"dataChanged",null);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],J7.prototype,"onClick",null);_.T([_.sq({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],J7);
_.O(J7,"ytd-action-companion-ad-renderer",function(){if(gZY!==void 0)return gZY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return gZY=X},{mode:2});var GA$;var akY;var Lb=function(){var X=_.a.apply(this,arguments)||this;X.buttonUpdate=_.P("web_modern_buttons");X.hideLegacyBanner=_.P("enable_dsa_one_click_ata_translators_infeed_elements");X.adInfoButtonStyle="mono";X.adInfoButtonType="text";X.noDotAdBadge=!0;return X};
_.S(Lb,_.a);_.R=Lb.prototype;_.R.getOnLayoutVisibleCallback=function(){var X=_.ij("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.onLayoutVisibleCallback:null};
_.R.getLayoutId=function(){var X=_.ij("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.layoutId:null};
_.R.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 X=this.data.image.thumbnail.thumbnails[0];this.imageSrc=X.url?_.Yn(X.url):void 0;this.imageWidth=X.width||0;this.imageHeight=X.height||0}this.data.clickthroughEndpoint&&_.f(this.data.clickthroughEndpoint,_.aL)&&(X=_.f(this.data.clickthroughEndpoint,_.aL).url,_.P("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
X||"":X?(X=_.Yn(X),this.clickThroughUrl=_.jA(X)):this.clickThroughUrl=void 0);(X=this.getOnLayoutVisibleCallback())&&X()}};
_.R.onClick=function(X){_.WS(_.t2(X),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(X)};
_.R.handleClick=function(){var X=this;this.data&&this.data.clickthroughEndpoint&&(_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(H){X.macroReplacementBehavior.sendServiceRequestAction([H])}),_.TP(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.R.onLoad=function(){_.NG(this.hostElement,"yt-refit-popups-action")};
_.ja.Object.defineProperties(Lb.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var X=_.ij("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var X=_.ij("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.interactionLoggingClientData:null}}});
Lb.prototype.onLoad=Lb.prototype.onLoad;Lb.prototype.onClick=Lb.prototype.onClick;Lb.prototype.dataChanged=Lb.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Lb.prototype,"rendererBehavior",void 0);_.T([_.k(qga.YtMacroReplacementBehavior),_.N("design:type",Object)],Lb.prototype,"macroReplacementBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Lb.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Lb.prototype,"buttonUpdate",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Lb.prototype,"hideLegacyBanner",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Lb.prototype,"adInfoButtonStyle",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Lb.prototype,"adInfoButtonType",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lb.prototype,"macros",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lb.prototype,"interactionLoggingClientData",null);_.T([_.g(),_.N("design:type",String)],Lb.prototype,"clickThroughUrl",void 0);_.T([_.g(),_.N("design:type",_.T2)],Lb.prototype,"imageSrc",void 0);_.T([_.g(),_.N("design:type",Number)],Lb.prototype,"imageWidth",void 0);_.T([_.g(),_.N("design:type",Number)],Lb.prototype,"imageHeight",void 0);_.T([_.g(),_.N("design:type",Object)],Lb.prototype,"noDotAdBadge",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lb.prototype,"dataChanged",null);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Lb.prototype,"onClick",null);_.T([_.Le("load"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lb.prototype,"onLoad",null);_.T([_.sq({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Lb);
_.O(Lb,"ytd-image-companion-renderer",function(){if(akY!==void 0)return akY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return akY=X},{mode:2});var Zv5;var Y_=function(){return _.a.apply(this,arguments)||this};
_.S(Y_,_.a);_.R=Y_.prototype;_.R.dataChanged=function(){this.set("data.adBadge",Y_.JSC$21260_DEFAULT_AD_BADGE_RENDERER);if(this.data){var X=this.getOnLayoutVisibleCallback();X&&X()}};
_.R.getOnLayoutVisibleCallback=function(){var X=_.ij("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.onLayoutVisibleCallback:null};
_.R.getLayoutId=function(){var X=_.ij("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.layoutId:null};
_.R.onCompanionClicked=function(X){this.data&&(X.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.TP(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.R.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var X=_.aq(),H=this.getLayoutId(),l=this.data.clickToAdvSiteEndpoint;X&&H&&_.P("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?X.getPlayerPromise().then(function(b){(new _.qC(b)).executeCommand(l,H)}):_.QX(this.hostElement,"yt-navigate",{endpoint:l})}};
_.R.sendTrackingPings=function(X){if(X&&X.length!==0&&X[0].loggingUrls&&(X=X[0].loggingUrls.map(this.getBaseUrl)))for(var H=0;H<X.length;H++)_.aw(X[H])};
_.R.getBaseUrl=function(X){return X.baseUrl||""};
_.ja.Object.defineProperties(Y_.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var X=_.ij("yt.www.ads.eventcache.getLastCompanionData");return X?(X=X())&&X.interactionLoggingClientData:null}}});
Y_.prototype.onCompanionClicked=Y_.prototype.onCompanionClicked;Y_.prototype.dataChanged=Y_.prototype.dataChanged;Y_.JSC$21260_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.XS("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Y_.prototype,"data",void 0);_.T([_.A2("#title"),_.N("design:type",HTMLElement)],Y_.prototype,"shopTitle",void 0);
_.T([_.oi("data.impressionEndpoints"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y_.prototype,"dataChanged",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Y_.prototype,"interactionLoggingClientData",null);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Y_.prototype,"onCompanionClicked",null);
_.T([_.sq({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Y_);
_.O(Y_,"ytd-shopping-companion-renderer",function(){if(Zv5!==void 0)return Zv5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Zv5=X},{mode:1});_.gC(_.Z(function(X){var H=X.data;X=_.jh({visibilityCallback:function(b){var U,K=(U=H().interaction)==null?void 0:U.onFirstVisible;b&&K&&_.yr(K)},
showOption:_.mf});var l=_.P6(function(){return H().interaction},VYx);
_.t1(function(){var b,U;U=(U=_.ij("yt.www.ads.eventcache.getLastCompanionData"))?(U=U())&&U.onLayoutVisibleCallback:null;(b=U)==null||b()},"Wj");
return _.F("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Nq(function(b){_.NG(b.currentTarget,"yt-refit-popups-action")}),
el:_.xl(X,l),"aria-label":function(){var b,U;return(b=H().interaction)==null?void 0:(U=b.accessibility)==null?void 0:U.label}},_.F("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.F(_.l4,{data:function(){return H().adImage}},{adImageViewModel:function(b){return _.F(_.Ti,{data:b.data,
targetHeight:80,customCommandResolver:VYx})}})),_.F("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.F("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.F(_.l4,{data:function(){return H().adBadge}},{adBadgeViewModel:function(b){return _.F(_.Ln,{data:b.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.F("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.F(_.l4,{data:function(){return H().menu}},{buttonViewModel:_.Qk}))))},"Xj"),"banner-image-layout-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;X=_.jh({visibilityCallback:function(b){var U,K=(U=H().interaction)==null?void 0:U.onFirstVisible;b&&K&&_.yr(K)},
showOption:_.mf});var l=_.P6(function(){return H().interaction},PpA);
_.t1(function(){var b,U;U=(U=_.ij("yt.www.ads.eventcache.getLastCompanionData"))?(U=U())&&U.onLayoutVisibleCallback:null;(b=U)==null||b()},"Yj");
return _.F("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.xl(X,l)},_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.F(_.l4,{data:function(){return H().adImage}},{adImageViewModel:function(b){return _.F(_.Ti,{data:b.data,
targetHeight:80,customCommandResolver:PpA})}})),_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.F(_.l4,{data:function(){return H().adAvatarLockup}},{adAvatarLockupViewModel:function(b){return _.F(e9d,{data:b.data,
customCommandResolver:PpA})}})),_.F(_.l4,{data:function(){return H().adButton}},{adButtonViewModel:function(b){return _.F(_.NX,{data:b.data,
customCommandResolver:PpA})}}),_.F("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.F(_.l4,{data:function(){return H().menu}},{buttonViewModel:_.Qk}))))},"Zj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.zh}});var ivA={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"},IG=function(){var X=_.a.apply(this,arguments)||this;X.updateCompanionDataJobId=0;X.contentVideoId=null;X.player=null;X.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return X};
_.S(IG,_.a);_.R=IG.prototype;_.R.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:ivA}}};
_.R.attached=function(){var X=this,H=_.aq();H&&H.getPlayerPromise().then(function(l){X.getCachedDataAndListen(l)})};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.R.updateRendererStamper=function(){var X={};if(this.data)for(var H in ivA)if(this.data[H]){X[H]=this.data[H];break}if(this.oneofRenderer!=void 0||Object.keys(X).length)this.oneofRenderer=X};
_.R.getCachedDataAndListen=function(X){var H=this.retrieveCachedCompanionData();H&&Object.keys(H).length&&this.receiveCompanionData(H);this.ytPlayerListenerBehavior.listenToPlayerEvent(X,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=X};
_.R.retrieveCachedCompanionData=function(){return _.ok.yt&&_.ok.yt.www&&_.ok.yt.www.ads&&_.ok.yt.www.ads.eventcache&&_.ok.yt.www.ads.eventcache.getLastCompanionData?_.ok.yt.www.ads.eventcache.getLastCompanionData():null};
_.R.receiveCompanionData=function(X){X&&Object.keys(X).length?(this.contentVideoId=X.contentVideoId,this.setCompanionData(X)):this.setCompanionData(X)};
_.R.setCompanionData=function(X){this.cancelPendingCompanionAdJobs();if(X){this.updateCompanionDataJobId=0;for(var H in ivA)ivA.hasOwnProperty(H)&&(this.data[H]=void 0);X.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",X.shoppingCompanionCarouselRenderer):X.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",X.imageCompanionAdRenderer):X.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",X.actionCompanionAdRenderer),_.NG(this.hostElement,
"yt-hide-unlimited-offer-module"),_.NG(this.hostElement,"yt-hide-tvfilm-offer-module")):X.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",X.bannerImageLayoutViewModel):X.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",X.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.R.dataChanged=function(){var X=this,H=_.aq();H?H.getPlayerPromise().then(function(l){X.contentVideoId&&l.getVideoUrl().includes("v="+X.contentVideoId)||(X.cancelPendingCompanionAdJobs(),X.updateRendererStamper())}):_.v$(Error("Rl"))};
_.R.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Ss.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.R.handleCompanionAdClicked=function(X,H){this.player.onAdUxClicked(X,H);this.player.pauseVideo()};
IG.prototype.dataChanged=IG.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],IG.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],IG.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],IG.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],IG.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],IG.prototype,"oneofRenderer",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IG.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],IG);
_.O(IG,"ytd-companion-slot-renderer",function(){if(GA$!==void 0)return GA$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return GA$=X},{mode:2});var vZl;var A7=function(){return _.a.apply(this,arguments)||this};
_.S(A7,_.a);A7.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
A7.prototype.dataChanged=A7.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],A7.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],A7.prototype,"companionSlotData",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A7.prototype,"dataChanged",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],A7);
_.O(A7,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(vZl!==void 0)return vZl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vZl=X},{mode:1});var Ove;var XD=function(){var X=_.a.apply(this,arguments)||this;X.skinnyMode=!1;X.COMPACT_EVENT_COUNT=4;X.onShelfToggleButtonTap=function(){X.logTap(X.data);X.showingMore=!X.showingMore};
X.onShelfToggleButtonFocus=function(){X.showingMore||(X.logTap(X.data),X.showingMore=!0,_.N0(X,function(){var H=X.COMPACT_EVENT_COUNT-1,l;(l=_.mh(X.hostElement).querySelector("#event-"+H))==null||l.focus()}))};
return X};
_.S(XD,_.a);_.R=XD.prototype;_.R.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.R.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.R.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.J2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.J2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.J2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.J2(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.J2(this.infoTooltip,this.infoTooltip.hide))};
_.R.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.J2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.J2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.J2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.J2(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.J2(this.infoTooltip,this.infoTooltip.hide))};
_.R.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)};
_.R.onShowingMoreChanged=function(){var X;this.showingMoreChanged((X=this.showingMore)!=null?X:!1)};
_.R.showingMoreChanged=function(X){var H=this.get("data.events")||[];this.set("restEvents",H.slice(1,X?H.length:this.COMPACT_EVENT_COUNT).map(function(l){return l.ticketEventRenderer}));
H.slice(0,X?H.length:this.COMPACT_EVENT_COUNT).forEach(function(l){var b=_.Bi();l=l.ticketEventRenderer.trackingParams;_.F6()&&b&&l&&(l=_.$l(l),b&&_.zu(b,l))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.R.computeAriaLabel=function(X){return X.subtitle1+", "+X.subtitle2};
_.R.logTap=function(X){_.F6()&&this.ytRendererBehavior.logExplicitClick(X)};
_.R.isKeyboardAction=function(X){return this.get("detail.x",X)===0&&this.get("detail.y",X)===0};
_.R.onFirstEventTap=function(X){X.target&&this.handleTap(X.target,this.firstEvent,this.isKeyboardAction(X))};
_.R.onTicketLinkTap=function(X){X.target&&this.handleTap(X.target,X.model.item,this.isKeyboardAction(X))};
_.R.handleTap=function(X,H,l){if(H.buttonCommand)if(H.hasMultipleOffers)Object.assign(_.f(H.buttonCommand,_.by),{properties:{source:l?"keyboard":"tap"}}),this.logTap(H),this.popupPositionTarget=X,_.j7(this.hostElement,[H.buttonCommand],this.hostElement);else{var b;if((b=_.f(H.buttonCommand,_.aL))==null?0:b.url)this.logTap(H),_.wr(window,_.f(H.buttonCommand,_.aL).url)}};
XD.prototype.onShowingMoreChanged=XD.prototype.onShowingMoreChanged;XD.prototype.dataChanged=XD.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],XD.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],XD.prototype,"firstEvent",void 0);_.T([_.g(),_.N("design:type",Object)],XD.prototype,"restEvents",void 0);_.T([_.g(),_.N("design:type",String)],XD.prototype,"imageUrl",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],XD.prototype,"showingMore",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],XD.prototype,"canShowMore",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],XD.prototype,"skinnyMode",void 0);_.T([_.g(),_.N("design:type",HTMLElement)],XD.prototype,"popupPositionTarget",void 0);_.T([_.A2("#banner-info-tooltip"),_.N("design:type",Object)],XD.prototype,"infoTooltip",void 0);
_.T([_.A2("#info-container"),_.N("design:type",HTMLElement)],XD.prototype,"infoContainer",void 0);_.T([_.A2("#shelf-toggler"),_.N("design:type",HTMLElement)],XD.prototype,"shelfToggleButton",void 0);_.T([_.A2("#separator"),_.N("design:type",HTMLDivElement)],XD.prototype,"separator",void 0);_.T([_.g(),_.N("design:type",String)],XD.prototype,"shelfTogglerLabelText",void 0);_.T([_.g(),_.N("design:type",String)],XD.prototype,"shelfTogglerIcon",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XD.prototype,"dataChanged",null);_.T([_.oi("showingMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XD.prototype,"onShowingMoreChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],XD);
_.O(XD,"ytd-ticket-shelf-renderer",function(){if(Ove!==void 0)return Ove;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Ove=X},{mode:1});var m2Z={};m2Z.YtVisibilityRootBehavior=[_.AZz.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Gp(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.gx("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var X=_.gx("INNERTUBE_CLIENT_NAME")!=="WEB";_.P("kevlar_use_vimio_behavior")&&X&&_.PVG()}}];var Hw={};Hw.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(X){X.detail.contextProvider=this;X.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
m2Z.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.kj();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(X){var H=this;this.pageCount+=1;_.P("kevlar_use_vimio_behavior")&&(_.gx("INNERTUBE_CLIENT_NAME")==="WEB"?_.Ss.addJob(function(){H.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(X)},
loadPage_:function(X){this.data=X},
ytPageBehaviorActiveObserver_:function(X){var H=this;_.P("kevlar_use_vimio_behavior")&&(X?_.gx("INNERTUBE_CLIENT_NAME")==="WEB"?_.Ss.addJob(function(){H.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(X){if(!this.setScrollTopJobId_){var H=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){H.setScrollTopJobId_=0;var l=_.jJ().resolve(_.c$(_.HS));l&&_.g2(l);this.getPageScrollingElement().scrollTop=X}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.eH(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];var QtZ;var TAA;var NAU;var c6p;var la=function(){var X=_.a.apply(this,arguments)||this;X.originalQuery=null;X.originalEndpoint=null;return X};
_.S(la,_.a);la.prototype.computeShowOriginalQueryWithoutEndpoint_=function(X,H){return!(!X||H)};
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],la.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],la.prototype,"correctedText",void 0);_.T([_.g(),_.N("design:type",Object)],la.prototype,"correctedQuery",void 0);_.T([_.g(),_.N("design:type",Object)],la.prototype,"correctedEndpoint",void 0);_.T([_.g(),_.N("design:type",Object)],la.prototype,"originalText",void 0);_.T([_.g(),_.N("design:type",Object)],la.prototype,"originalQuery",void 0);
_.T([_.g(),_.N("design:type",Object)],la.prototype,"originalEndpoint",void 0);_.T([_.g({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.N("design:type",Boolean)],la.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.T([_.qR({is:"yt-search-query-correction",disableElementRegistration:!0})],la);
_.O(la,"yt-search-query-correction",function(){if(c6p===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;NAU===void 0&&(NAU=document.createElement("template"));var b=NAU;l.call(H,b.content.cloneNode(!0),X.content.firstChild);c6p=X}X=c6p;return X},{mode:2});_.wd("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var jtZ=function(){return _.a.apply(this,arguments)||this};
_.S(jtZ,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],jtZ.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],jtZ.prototype,"data",void 0);_.T([_.qR({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],jtZ);
_.O(jtZ,"yt-did-you-mean-renderer",function(){if(TAA===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;QtZ===void 0&&(QtZ=document.createElement("template"));var b=QtZ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);TAA=X}X=TAA;return X},{mode:2});var r6a;var J6Y;_.wd("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var L3x=function(){return _.a.apply(this,arguments)||this};
_.S(L3x,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],L3x.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],L3x.prototype,"data",void 0);_.T([_.qR({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],L3x);
_.O(L3x,"yt-including-results-for-renderer",function(){if(J6Y===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;r6a===void 0&&(r6a=document.createElement("template"));var b=r6a;l.call(H,b.content.cloneNode(!0),X.content.firstChild);J6Y=X}X=J6Y;return X},{mode:2});var Y3C;var IkU;_.wd("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var oa=function(){return _.a.apply(this,arguments)||this};
_.S(oa,_.a);oa.prototype.computeExtraClasses_=function(X,H){var l="";X&&(l+=" "+X.toLowerCase().replace(/_/g,"-"));H&&(l+=" "+H.toLowerCase().replace(/_/g,"-"));return l};
oa.prototype.computeUrlImg_=function(){var X=this.data;X.image&&(_.mh(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.G0(X.image.thumbnails,Number.MAX_VALUE)+")")};
oa.prototype.computeUrlImg_=oa.prototype.computeUrlImg_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],oa.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oa.prototype,"computeUrlImg_",null);_.T([_.qR({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],oa);
_.O(oa,"yt-music-pass-feature-info-renderer",function(){if(IkU===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Y3C===void 0&&(Y3C=document.createElement("template"));var b=Y3C;l.call(H,b.content.cloneNode(!0),X.content.firstChild);IkU=X}X=IkU;return X},{mode:2});var A6e;var Xvl;_.wd("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var HpN=function(){return _.a.apply(this,arguments)||this};
_.S(HpN,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],HpN.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],HpN.prototype,"data",void 0);_.T([_.qR({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],HpN);
_.O(HpN,"yt-no-results-found-showing-results-for-renderer",function(){if(Xvl===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;A6e===void 0&&(A6e=document.createElement("template"));var b=A6e;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Xvl=X}X=Xvl;return X},{mode:2});var l05;var oJy;_.wd("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var bpl=function(){return _.a.apply(this,arguments)||this};
_.S(bpl,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bpl.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],bpl.prototype,"data",void 0);_.T([_.qR({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],bpl);
_.O(bpl,"yt-results-without-quotes-renderer",function(){if(oJy===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;l05===void 0&&(l05=document.createElement("template"));var b=l05;l.call(H,b.content.cloneNode(!0),X.content.firstChild);oJy=X}X=oJy;return X},{mode:2});var UEa;var $Ed;_.wd("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Ktx=function(){return _.a.apply(this,arguments)||this};
_.S(Ktx,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ktx.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ktx.prototype,"data",void 0);_.T([_.qR({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],Ktx);
_.O(Ktx,"yt-search-no-results-renderer",function(){if($Ed===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;UEa===void 0&&(UEa=document.createElement("template"));var b=UEa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);$Ed=X}X=$Ed;return X},{mode:2});var RSC;var ChA;_.wd("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var wv5=function(){return _.a.apply(this,arguments)||this};
_.S(wv5,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],wv5.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],wv5.prototype,"data",void 0);_.T([_.qR({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],wv5);
_.O(wv5,"yt-showing-results-for-renderer",function(){if(ChA===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;RSC===void 0&&(RSC=document.createElement("template"));var b=RSC;l.call(H,b.content.cloneNode(!0),X.content.firstChild);ChA=X}X=ChA;return X},{mode:2});var dEU;var hSA;_.wd("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var ba=function(){return _.a.apply(this,arguments)||this};
_.S(ba,_.a);
ba.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ba.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ba.prototype,"data",void 0);_.T([_.qR({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],ba);
_.O(ba,"yt-offer-item-expanded-renderer",function(){if(hSA===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;dEU===void 0&&(dEU=document.createElement("template"));var b=dEU;l.call(H,b.content.cloneNode(!0),X.content.firstChild);hSA=X}X=hSA;return X},{mode:2});var Ft5;var Bpd;_.wd("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var U5=function(){return _.a.apply(this,arguments)||this};
_.S(U5,_.a);
U5.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"}}}}};
U5.prototype.computeFullWidthMode=function(X){return!(!X||!X.fullWidthMode)};
U5.prototype.computeBorderlessMode=function(X){return!(!X||!X.borderlessMode)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],U5.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],U5.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.N("design:type",Boolean)],U5.prototype,"fullWidthMode",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.N("design:type",Boolean)],U5.prototype,"borderlessMode",void 0);_.T([_.qR({is:"yt-offer-item-renderer",disableElementRegistration:!0})],U5);
_.O(U5,"yt-offer-item-renderer",function(){if(Bpd===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Ft5===void 0&&(Ft5=document.createElement("template"));var b=Ft5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Bpd=X}X=Bpd;return X},{mode:2});var qSa;var sz$;_.wd("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var $z=function(){return _.a.apply(this,arguments)||this};
_.S($z,_.a);$z.prototype.computeAriaLevel_=function(X){return this.getLevelID_(X)};
$z.prototype.getLevelID_=function(X){return(X=X.match(/[0-9]+$/))&&X.length==1?X[0]:"1"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$z.prototype,"data",void 0);_.T([_.g({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.N("design:type",String)],$z.prototype,"ariaLevel",void 0);_.T([_.g({value:"heading",reflectToAttribute:!0}),_.N("design:type",String)],$z.prototype,"role",void 0);
_.T([_.g({value:-1,reflectToAttribute:!0}),_.N("design:type",Number)],$z.prototype,"tabindex",void 0);_.T([_.qR({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],$z);
_.O($z,"yt-subscription-product-header-renderer",function(){if(sz$===void 0){var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;qSa===void 0&&(qSa=document.createElement("template"));var b=qSa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);sz$=X}X=sz$;return X},{mode:2});var M_a;var uTN;_.wd("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var K4=function(){return _.a.apply(this,arguments)||this};
_.S(K4,_.a);K4.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:_.dd("menuRenderer"),events:!0}}};
K4.prototype.onStampFinished_=function(){_.mh(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
K4.prototype.onStampFinished_=K4.prototype.onStampFinished_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],K4.prototype,"data",void 0);_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K4.prototype,"onStampFinished_",null);
_.T([_.qR({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],K4);
_.O(K4,"yt-subscription-product-renderer",function(){if(uTN===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;M_a===void 0&&(M_a=document.createElement("template"));var b=M_a;l.call(H,b.content.cloneNode(!0),X.content.firstChild);uTN=X}X=uTN;return X},{mode:2});var eSe;var yXl;_.wd("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Ra=function(){return _.a.apply(this,arguments)||this};
_.S(Ra,_.a);Ra.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ra.prototype.imageScrimColorValuesChanged_=function(){var X,H=(X=this.data)==null?void 0:X.imageScrimColorValues;_.mh(this.hostElement).querySelector("#scrim").style.backgroundColor=H?_.qw(H[0]):"transparent"};
Ra.prototype.imageScrimColorValuesChanged_=Ra.prototype.imageScrimColorValuesChanged_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ra.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ra.prototype,"data",void 0);
_.T([_.Yh("data.imageScrimColorValues"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ra.prototype,"imageScrimColorValuesChanged_",null);_.T([_.qR({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Ra);
_.O(Ra,"yt-subscription-product-upsell-offer-renderer",function(){if(yXl===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;eSe===void 0&&(eSe=document.createElement("template"));var b=eSe;l.call(H,b.content.cloneNode(!0),X.content.firstChild);yXl=X}X=yXl;return X},{mode:2});var V_U;var Phe;var f0l;var pvZ;var SS5;var zSU;var C4=function(){return _.a.apply(this,arguments)||this};
_.S(C4,_.a);C4.prototype.onYtServiceRequestError_=function(X){_.x$(this.hostElement,X.detail.error.message)};
C4.prototype.onYtServiceRequestError_=C4.prototype.onYtServiceRequestError_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],C4.prototype,"data",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],C4.prototype,"collapsible",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],C4.prototype,"isManageRed",void 0);
_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],C4.prototype,"onYtServiceRequestError_",null);_.T([_.qR({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],C4);
_.O(C4,"yt-single-ypc-offer-renderer",function(){if(zSU===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;SS5===void 0&&(SS5=document.createElement("template"));var b=SS5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);zSU=X}X=zSU;return X},{mode:2});var wP=function(){return _.a.apply(this,arguments)||this};
_.S(wP,_.a);wP.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],wP.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],wP.prototype,"isManageRed",void 0);_.T([_.qR({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],wP);
_.O(wP,"yt-single-ypc-offer-list-renderer",function(){if(pvZ===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;f0l===void 0&&(f0l=document.createElement("template"));var b=f0l;l.call(H,b.content.cloneNode(!0),X.content.firstChild);pvZ=X}X=pvZ;return X},{mode:2});var nJN;var kvl;_.wd("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var dP=function(){return _.a.apply(this,arguments)||this};
_.S(dP,_.a);dP.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],dP.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],dP.prototype,"isManageRed",void 0);_.T([_.qR({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],dP);
_.O(dP,"yt-ypc-offers-list-renderer",function(){if(kvl===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;nJN===void 0&&(nJN=document.createElement("template"));var b=nJN;l.call(H,b.content.cloneNode(!0),X.content.firstChild);kvl=X}X=kvl;return X},{mode:2});_.wd("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var hc=function(){return _.a.apply(this,arguments)||this};
_.S(hc,_.a);
hc.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],hc.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],hc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hc.prototype,"data",void 0);_.T([_.qR({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],hc);
_.O(hc,"yt-unlimited-manage-subscription-page-renderer",function(){if(Phe===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;V_U===void 0&&(V_U=document.createElement("template"));var b=V_U;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Phe=X}X=Phe;return X},{mode:2});var xEa;var DEx;var FD=function(){return _.a.apply(this,arguments)||this};
_.S(FD,_.a);_.R=FD.prototype;_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.R.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.onKeypress_=function(X){X.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.R.handleHeaderTap_=function(X){X.preventDefault();X.stopPropagation();this.expandOffers_()};
_.R.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.R.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
FD.prototype.dataChanged_=FD.prototype.dataChanged_;_.T([_.k(_.Yw),_.N("design:type",Object)],FD.prototype,"ironA11yKeysBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],FD.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],FD.prototype,"offersVisible_",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FD.prototype,"dataChanged_",null);_.T([_.qR({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],FD);
_.O(FD,"yt-collapsible-ypc-offer-renderer",function(){if(DEx===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;xEa===void 0&&(xEa=document.createElement("template"));var b=xEa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);DEx=X}X=DEx;return X},{mode:2});var t_5;var WtY;_.wd("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Bw=function(){return _.a.apply(this,arguments)||this};
_.S(Bw,_.a);_.R=Bw.prototype;_.R.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.R.dataChanged_=function(){if(this.data.backgroundImage){var X=_.G0(this.data.backgroundImage.thumbnails,screen.width),H=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=H?"linear-gradient(180deg, "+H+"), url("+X+")":"url("+X+")";this.data.gtmId&&_.UK(this.data.gtmId,_.gx("GL",""))}};
_.R.onYtServiceRequestError_=function(X){_.x$(this.hostElement,X.detail.error.message)};
_.R.getScrimLayerColorStops_=function(){var X,H,l=(X=this.data.unlimitedHeaderV2Data)==null?void 0:(H=X.unlimitedHeaderV2Data)==null?void 0:H.scrimLayerColors;if(!l)return null;var b=100/l.length;return l.map(function(U,K){K*=b;return _.qw(U)+" "+K+"%"}).join(",")};
_.R.computeLogoWithPadding=function(X){var H,l,b;return(X=(H=X.unlimitedLogoImage)==null?void 0:(l=H.thumbnails)==null?void 0:(b=l[0])==null?void 0:b.height)&&X%31===0?!0:!1};
Bw.prototype.onYtServiceRequestError_=Bw.prototype.onYtServiceRequestError_;Bw.prototype.dataChanged_=Bw.prototype.dataChanged_;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.T([_.g({computed:"computeLogoWithPadding(data)"}),_.N("design:type",Boolean)],Bw.prototype,"logoWithPadding",void 0);
_.T([_.g(),_.N("design:type",Object)],Bw.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bw.prototype,"dataChanged_",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Bw.prototype,"onYtServiceRequestError_",null);_.T([_.qR({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Bw);
_.O(Bw,"yt-unlimited-page-header-renderer",function(){if(WtY===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;t_5===void 0&&(t_5=document.createElement("template"));var b=t_5;l.call(H,b.content.cloneNode(!0),X.content.firstChild);WtY=X}X=WtY;return X},{mode:2});var EJl;var gJA;_.wd("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var qA=function(){return _.a.apply(this,arguments)||this};
_.S(qA,_.a);qA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],qA.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],qA.prototype,"data",void 0);_.T([_.qR({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],qA);
_.O(qA,"yt-unlimited-user-notification-renderer",function(){if(gJA===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;EJl===void 0&&(EJl=document.createElement("template"));var b=EJl;l.call(H,b.content.cloneNode(!0),X.content.firstChild);gJA=X}X=gJA;return X},{mode:2});var Gvy;var a0a;var Zpd=function(){return _.a.apply(this,arguments)||this};
_.S(Zpd,_.a);_.T([_.g(),_.N("design:type",Object)],Zpd.prototype,"data",void 0);_.T([_.qR({is:"yt-alert-renderer",disableElementRegistration:!0})],Zpd);
_.O(Zpd,"yt-alert-renderer",function(){if(a0a===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Gvy===void 0&&(Gvy=document.createElement("template"));var b=Gvy;l.call(H,b.content.cloneNode(!0),X.content.firstChild);a0a=X}X=a0a;return X},{mode:2});var cXC=function(X){_.$e.call(this);this.JSC$21348_watchApi=X;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;ipY(this);vJC(this);OpZ(this);mEa(this);QzA(this);TpZ(this);Npe(this)};
_.S(cXC,_.$e);var OpZ=function(X){var H=function(){_.P("kevlar_is_pupi_enabled")||s5(X)};
X.JSC$21348_watchApi.getRoot().addEventListener("yt-player-updated",H);X.addOnDisposeCallback(function(){X.JSC$21348_watchApi.getRoot().removeEventListener("yt-player-updated",H)})},QzA=function(X){if(_.P("kevlar_endscreen_auto_theater_mode")){var H=X.JSC$21348_watchApi.subscribeToActiveChanged(function(){jzp(X)},!1);
X.addOnDisposeCallback(H)}},ipY=function(X){var H,l,b,U,K;
_.h(function(w){if(w.nextAddress==1)return w.yield(X.JSC$21348_watchApi.playerApi,2);H=w.yieldResult;l=function(d){d=!!d;rXC(X)&&(d=d?2:1,_.ac.getInstance().setState(d,!0,!1))};
b=function(d){d&&$od(_.WF().getState())&&(_.TP(X.JSC$21348_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),X.temporaryTheaterMode=!0)};
U=function(d){_.P("kevlar_player_update_autonav_on_new_data")&&d.type==="newdata"&&(_.P("kevlar_is_pupi_enabled")||s5(X))};
K=function(d){X.onPlayerStateChange(d)};
_.P("kevlar_endscreen_auto_theater_mode")&&H.addEventListener("onAutonavCancelled",b);H.addEventListener("onAutonavChangeRequest",l);H.addEventListener("onVideoDataChange",U);H.addEventListener("onStateChange",K);X.addOnDisposeCallback(function(){H.removeEventListener("onAutonavChangeRequest",l);H.removeEventListener("onVideoDataChange",U);H.removeEventListener("onStateChange",K);_.P("kevlar_endscreen_auto_theater_mode")&&H.removeEventListener("onAutonavCancelled",b)});
_.m5(w)})},vJC=function(X){X.JSC$21348_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){X.autonavCancelledBySignal=!0;
_.P("kevlar_is_pupi_enabled")||s5(X)});
X.JSC$21348_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(H,l,b){l&&s5(X,b)});
X.JSC$21348_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){rXC(X)&&_.ac.getInstance().setState(2,!0,!0)});
X.JSC$21348_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){rXC(X)&&_.ac.getInstance().setState(1,!0,!0)});
X.addOnDisposeCallback(function(){X.JSC$21348_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");X.JSC$21348_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");X.JSC$21348_watchApi.unregisterActionHandler("yt-enable-autoplay-command");X.JSC$21348_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},mEa=function(X){var H=X.JSC$21348_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Npe(X)}),l=X.JSC$21348_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){TpZ(X)});
X.addOnDisposeCallback(function(){X.JSC$21348_watchApi.unsubscribeByKey(H);X.JSC$21348_watchApi.unsubscribeByKey(l)})},Npe=function(X){X.autonavCancelledBySignal=!1;
_.P("kevlar_is_pupi_enabled")||s5(X)},TpZ=function(X){var H=X.JSC$21348_watchApi.getWatchNextResponse(),l,b;
var U=(H=(b=_.f(H==null?void 0:(U=H.playerOverlays)==null?void 0:(l=U.playerOverlayRenderer)==null?void 0:l.autonavToggle,_.yTQ))==null?void 0:b.enabled)?2:1;_.P("kevlar_is_pupi_enabled")?_.ac.getInstance().setState(U,!1,!1):s5(X);_.P("web_persist_server_autonav_state_on_client")&&typeof H==="boolean"&&_.utN(U===2)},rXC=function(X){if(X.autonavCancelledBySignal)return!1;
var H,l,b,U;return!!((H=X.JSC$21348_watchApi.getWatchNextResponse())==null?0:(l=H.contents)==null?0:(b=l.twoColumnWatchNextResults)==null?0:(U=b.autoplay)==null?0:U.autoplay)};
cXC.prototype.onPlayerStateChange=function(X){if(X===0){X=!_.ac.getInstance().isAutoplaySetExplicitly();var H=this.JSC$21348_watchApi.getWatchNextResponse(),l,b,U,K;H=_.f(H==null?void 0:(l=H.contents)==null?void 0:(b=l.twoColumnWatchNextResults)==null?void 0:(U=b.autoplay)==null?void 0:(K=U.autoplay)==null?void 0:K.autoplayExplicitChoiceDialogRenderer,_.iLF);rXC(this)&&X&&H&&_.JF.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:H},popupType:"DIALOG"}})}else jzp(this)};
var jzp=function(X){X.temporaryTheaterMode&&(X.temporaryTheaterMode=!1,_.TP(X.JSC$21348_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},s5=function(X,H){H=H===void 0?!1:H;
var l;_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21348_watchApi.playerApi,2);l=b.yieldResult;rXC(X)?l.setAutonavState(_.ac.getInstance().getState(),H):l.setAutonavState(1,H);_.m5(b)})};var JX$={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 YSZ=function(X){_.$e.call(this);var H=this;this.JSC$21353_watchApi=X;var l=this.JSC$21353_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Lta(H)});
this.addOnDisposeCallback(function(){H.JSC$21353_watchApi.unsubscribeByKey(l)});
Lta(this)};
_.S(YSZ,_.$e);var Lta=function(X){var H=X.JSC$21353_watchApi.getPlayerResponse(),l=X.JSC$21353_watchApi.getWatchNextResponse();if(!_.qWl(H==null?void 0:H.playabilityStatus,l==null?void 0:l.playerOverlays)){var b;var U=H==null?void 0:(b=H.playabilityStatus)==null?void 0:b.errorScreen}X.JSC$21353_watchApi.provideRenderingData("ERROR_SCREEN",U)};var I0y=_.Z(function(X){return _.F("yt-player-grid-renderer",{class:_.Qr("ytPlayerGridRendererHost",X.className)},_.F(_.l4,{data:X.data},{lockupViewModel:function(H){return _.F(_.Ak,{data:H.data,useOverlayStyling:!0})}}))},"$j");var AXx=_.Z(function(X){var H=X.data;X=_.P("web_watch_video_details_hide_subtitle");var l=_.P("web_watch_video_details_single_line_title"),b=_.Nq(function(){var d=H().onTap;d&&_.jJ().resolve(_.Vr).resolveCommand(d)}),U={},K={},w={};
return _.F("yt-player-overlay-video-details-renderer",{class:_.Qr("ytPlayerOverlayVideoDetailsRendererHost",(U.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.P("web_watch_video_details_transparent_background"),U)),"on:click":b,role:"button"},_.F("h2",{class:_.Qr("ytPlayerOverlayVideoDetailsRendererTitle",(K.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return l},K))},_.F(_.Sj,{text:function(){return H().title}})),_.F("div",{class:_.Qr("ytPlayerOverlayVideoDetailsRendererSubtitle",
(w.ytPlayerOverlayVideoDetailsRendererHideSubtitle=X,w))},_.F(_.Sj,{text:function(){return H().subtitle}})))},"ak");var MA={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},Xyy=_.Z(function(X){var H=X.data;var l=_.Aa(_.qn),b=_.P("web_watch_action_bar_resize_buttons"),U=_.P("web_watch_video_action_dsdvb"),K=_.P("delhi_modern_web_player_icons")&&!_.P("enable_web_delhi_icons");X=_.P("delhi_modern_web_player_disable_frosted_glass");var w=_.P("delhi_modern_web_player_compact_video_actions_controls"),
d=_.P("web_player_quick_action_buttons_icon_only"),B=function(){var u=b&&!l(),e={};w?e.size="S":u&&(e.size="M");d&&(e.iconPosition="icon-only");if(Object.keys(e).length!==0)return e},q={};
return _.F("yt-player-quick-action-buttons",{class:_.Qr("ytPlayerQuickActionButtonsHost",(q.ytPlayerQuickActionButtonsHostCompactControls=function(){return!l()||w},q.ytPlayerQuickActionButtonsHostDisableBackdropFilter=X,q))},_.F(_.P$,{each:function(){var u=H();
if(K){u=JSON.parse(JSON.stringify(u));for(var e=_.C(u),y=e.next();!y.done;y=e.next()){var V=y.value,p=void 0;y=_.f((p=_.f(V,_.p9))==null?void 0:p.toggleButtonViewModel,_.SR);var z=void 0;p=_.f((z=_.f(V,_.SY))==null?void 0:z.toggleButtonViewModel,_.SR);z=_.f(V,_.fk);V=_.f(V,_.SR);if(y)p=_.f(y.defaultButtonViewModel,_.fk),y=_.f(y.toggledButtonViewModel,_.fk),p&&p.iconName&&(p.iconName=MA[p.iconName]),y&&y.iconName&&(y.iconName=MA[y.iconName]);else if(p)y=_.f(p.defaultButtonViewModel,_.fk),p=_.f(p.toggledButtonViewModel,
_.fk),y&&y.iconName&&(y.iconName=MA[y.iconName]),p&&p.iconName&&(p.iconName=MA[p.iconName]);else if(z)z.iconName&&(z.iconName=MA[z.iconName]);else if(V){y=_.f(V.defaultButtonViewModel,_.fk);p=_.f(V.toggledButtonViewModel,_.fk);V=void 0;if((V=y)==null?0:V.iconName)y.iconName=MA[y.iconName];y=void 0;if((y=p)==null?0:y.iconName)p.iconName=MA[p.iconName]}}}U&&(u=fFZ(u));return u}},function(u){return _.F(_.l4,{data:function(){return u}},{buttonViewModel:function(e){return _.F(_.Qk,{data:e.data,
buttonOverrides:B})},
likeButtonViewModel:function(e){return _.F(_.y7,{data:e.data,buttonShapeOverrideables:B})},
dislikeButtonViewModel:function(e){return _.F(_.eb,{data:e.data,buttonShapeOverrideables:B})},
toggleButtonViewModel:function(e){return _.F(_.KL,{data:e.data,buttonShapeOverrides:B})}})}))},"bk");var lXY=function(X){_.$e.call(this);var H=this;this.JSC$21361_watchApi=X;X=_.C(_.FU({},void 0,"NNzZMe"));this.quickActionsViewModel=X.next().value;this.setQuickActionsViewModel=X.next().value;X=_.C(_.FU({},void 0,"iORsec"));this.playerOverlayVideoDetailsRenderer=X.next().value;this.setPlayerOverlayVideoDetailsRenderer=X.next().value;X=_.C(_.FU([],void 0,"dektd"));this.lockupViewModels=X.next().value;this.setLockupViewModels=X.next().value;X=_.C(_.FU({},void 0,"Sp5Hqf"));this.commentsButton=X.next().value;
this.setCommentsButton=X.next().value;X=_.C(_.FU({},void 0,"yDAoue"));this.descriptionButton=X.next().value;this.setDescriptionButton=X.next().value;var l=this.JSC$21361_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Hb$(H)});
this.addOnDisposeCallback(function(){H.JSC$21361_watchApi.unsubscribeByKey(l)});
Hb$(this)};
_.S(lXY,_.$e);
var Hb$=function(X){var H,l,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q,v,J,Y,Uy,Cy;_.h(function(sy){if(sy.nextAddress==1)return sy.yield(X.JSC$21361_watchApi.playerApi,2);H=sy.yieldResult;l=X.JSC$21361_watchApi.getWatchNextResponse();K=(b=l)==null?void 0:(U=b.playerOverlays)==null?void 0:U.playerOverlayRenderer;d=_.f((w=K)==null?void 0:w.fullscreenQuickActionsBar,_.eHH);(q=(B=X).setQuickActionsViewModel)==null||q.call(B,d||{});d&&o_5(X,H);y=(u=K)==null?void 0:(e=u.videoDetails)==null?void 0:e.playerOverlayVideoDetailsRenderer;
(p=(V=X).setPlayerOverlayVideoDetailsRenderer)==null||p.call(V,y||{});y&&bbp(X,H);if(_.P("web_player_use_external_grid_component")){var FO=[],ub,g8,mm,QZ,Bz=l==null?void 0:(ub=l.contents)==null?void 0:(g8=ub.twoColumnWatchNextResults)==null?void 0:(mm=g8.secondaryResults)==null?void 0:(QZ=mm.secondaryResults)==null?void 0:QZ.results;if(Bz)for(ub=_.C(Bz),g8=ub.next();!g8.done;g8=ub.next())if(g8=g8.value,g8.lockupViewModel)FO.push(g8);else if(mm=void 0,(mm=g8.itemSectionRenderer)==null?0:mm.contents)for(g8=
_.C(g8.itemSectionRenderer.contents),mm=g8.next();!mm.done;mm=g8.next())mm=mm.value,mm.lockupViewModel&&FO.push(mm);z=FO;(W=(t=X).setLockupViewModels)==null||W.call(t,z||[]);U4x(X,H)}r=_.f((G=K)==null?void 0:G.commentsButton,_.SR);(v=(Q=X).setCommentsButton)==null||v.call(Q,r||{});r&&$4Z(X,H);Y=_.f((J=K)==null?void 0:J.descriptionButton,_.fk);(Cy=(Uy=X).setDescriptionButton)==null||Cy.call(Uy,Y||{});Y&&Koy(X,H);_.m5(sy)})},o_5=function(X,H){if(!X.quickActionButtonsContainer)if(H.setFullscreenQuickActions){X.quickActionButtonsContainer=
document.createElement("div");
H.setFullscreenQuickActions(X.quickActionButtonsContainer);var l=function(){return X.quickActionsViewModel().quickActionButtons||[]},b=_.ky(X.quickActionButtonsContainer,function(){return _.F(Xyy,{data:l})},"ck");
X.addOnDisposeCallback(function(){H.setFullscreenQuickActions(void 0);b()})}else _.x2(new _.qd("setFullscreenQuickActions not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))},bbp=function(X,H){if(!X.playerOverlayVideoDetailsRendererContainer)if(H.setPlayerOverlayVideoDetailsRenderer){X.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
H.setPlayerOverlayVideoDetailsRenderer(X.playerOverlayVideoDetailsRendererContainer);var l=_.ky(X.playerOverlayVideoDetailsRendererContainer,function(){return _.F(AXx,{data:X.playerOverlayVideoDetailsRenderer})},"dk");
X.addOnDisposeCallback(function(){H.setPlayerOverlayVideoDetailsRenderer(void 0);l()})}else _.x2(new _.qd("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))},U4x=function(X,H){if(!X.gridRendererContainer)if(H.setFullscreenGrid){X.gridRendererContainer=document.createElement("div");
H.setFullscreenGrid(X.gridRendererContainer);var l=_.ky(X.gridRendererContainer,function(){return _.F(I0y,{data:X.lockupViewModels})},"ek");
X.addOnDisposeCallback(function(){H.setFullscreenGrid(void 0);l()})}else _.x2(new _.qd("setFullscreenGrid not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))},$4Z=function(X,H){if(!X.commentsButtonContainer)if(H.setCommentsButton){X.commentsButtonContainer=document.createElement("div");
H.setCommentsButton(X.commentsButtonContainer);var l=_.ky(X.commentsButtonContainer,function(){return _.F(_.KL,{data:X.commentsButton})},"fk");
X.addOnDisposeCallback(function(){H.setCommentsButton(void 0);l()})}else _.x2(new _.qd("setCommentsButton not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))},Koy=function(X,H){if(!X.descriptionButtonContainer)if(H.setDescriptionButton){X.descriptionButtonContainer=document.createElement("div");
H.setDescriptionButton(X.descriptionButtonContainer);var l=_.ky(X.descriptionButtonContainer,function(){return _.F(_.Qk,{data:X.descriptionButton})},"gk");
X.addOnDisposeCallback(function(){H.setDescriptionButton(void 0);l()})}else _.x2(new _.qd("setDescriptionButton not defined",{playerApi:Object.keys(H),
isReady:H.isReady(),appState:H.getAppState()}))};var ua=function(X){_.$e.call(this);var H=this;this.JSC$21367_watchApi=X;this.JSC$21367_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;X=_.bC(_.WF(),_.qn,function(l){H.onFullscreenChanged(l)});
this.addOnDisposeCallback(X);X=_.bC(_.WF(),LE,function(l){H.onWatchScroll(l)});
this.addOnDisposeCallback(X);_.P("kevlar_watch_while_v2")&&(X=_.bC(_.WF(),_.s9,function(l){R5e(H,l)}),this.addOnDisposeCallback(X));
C3Y(this);wy5(this);d45();this.onWatchScroll(LE(_.WF().getState()));_.G7("START_IN_FULL_WINDOW_MODE")&&this.JSC$21367_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.S(ua,_.$e);var C3Y=function(X){X.JSC$21367_watchApi.registerActionHandler("yt-fullscreen-change-action",function(H){var l=X.JSC$21367_watchApi.isActive();H&&!l||_.WF().dispatch(_.Of({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!H}}))});
X.addOnDisposeCallback(function(){X.JSC$21367_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},wy5=function(X){var H,l;
_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21367_watchApi.playerApi,2);H=b.yieldResult;l=function(){X.onFullerscreenEduClicked()};
H.addEventListener("onFullerscreenEduClicked",l);X.addOnDisposeCallback(function(){H.removeEventListener("onFullerscreenEduClicked",l)});
_.m5(b)})};
ua.prototype.onFullscreenChanged=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return H.isFullscreen=!!_.gZ(),b.yield(H.JSC$21367_watchApi.playerApi,2);l=b.yieldResult;H.JSC$21367_miniplayerActive||l.setFauxFullscreen(H.isFullscreen);if(X&&(H.JSC$21367_watchApi.focusOnPlayer(),!H.fullerscreenEduButtonShownThisPlayback)){H.fullerscreenEduButtonShownThisPlayback=!0;var U=_.Ce("yt-fullerscreen-edu-button-shown-count")||0;_.R6("yt-fullerscreen-edu-button-shown-count",U+1,31536E3);
H.updateFullerscreenEduButtonSubtleModeState()}_.m5(b)})};
var R5e=function(X,H){var l;_.h(function(b){if(b.nextAddress==1)return X.JSC$21367_miniplayerActive=H,b.yield(X.JSC$21367_watchApi.playerApi,2);l=b.yieldResult;l.setFauxFullscreen(!X.JSC$21367_miniplayerActive&&X.isFullscreen);_.m5(b)})};
ua.prototype.onWatchScroll=function(X){var H=this,l,b;return _.h(function(U){if(U.nextAddress==1)return _.P("external_fullscreen_with_edu")?U.yield(H.JSC$21367_watchApi.playerApi,2):U.return();l=U.yieldResult;b=X<=0;H.shouldShowFullerscreenEdu!==b&&(H.shouldShowFullerscreenEdu=b,l.updateFullerscreenEduButtonVisibility(!H.shouldShowFullerscreenEdu));_.m5(U)})};
ua.prototype.onFullerscreenEduClicked=function(){this.JSC$21367_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var X=_.Ce("yt-fullerscreen-edu-button-click-count")||0;_.R6("yt-fullerscreen-edu-button-click-count",X+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
ua.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var X=this,H,l,b,U,K,w;return _.h(function(d){if(d.nextAddress==1)return H=_.Ce("yt-fullerscreen-edu-button-click-count")||0,l=_.Ce("yt-fullerscreen-edu-button-shown-count")||0,b=_.Yy("external_fullscreen_button_click_threshold"),U=_.Yy("external_fullscreen_button_shown_threshold"),K=H>=b||l>=U,d.yield(X.JSC$21367_watchApi.playerApi,2);w=d.yieldResult;w.updateFullerscreenEduButtonSubtleModeState(K);_.m5(d)})};
ua.prototype.disposeInternal=function(){_.$e.prototype.disposeInternal.call(this);var X=_.gZ();_.P("kevlar_exit_fullscreen_leaving_watch")&&X&&_.GP(X)};
var d45=function(){if(_.P("web_watch_add_viewport_meta_tag")){var X=document.querySelector("meta[name=viewport]"),H=document.head;H&&!X&&(X=document.createElement("meta"),X.name="viewport",X.content="width=device-width, initial-scale=1.0, viewport-fit=cover",H.appendChild(X))}};var Fox=function(X){_.$e.call(this);var H=this;this.JSC$21370_watchApi=X;this.jobId=0;this.pendingRequestId=void 0;var l=this.JSC$21370_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){h5e(H)});
this.addOnDisposeCallback(function(){H.JSC$21370_watchApi.unsubscribeByKey(l)});
h5e(this)};
_.S(Fox,_.$e);var B_C=function(X){_.Ss.cancelJob(X.jobId);X.pendingRequestId=void 0},h5e=function(X){B_C(X);
var H=p8a(X.JSC$21370_watchApi.getWatchNextResponse());if(H){var l=250,b,U=(b=_.f(H,_.eg6))==null?void 0:b.initialDelayMs;_.P("web_watch_updated_metadata_server_initial_delay")&&U&&(l=U);X.jobId=_.Ss.addLowPriorityJob(function(){return X.fetchUpdatedMetadata(H)},l)}};
Fox.prototype.fetchUpdatedMetadata=function(X,H){var l=this,b,U,K,w,d,B,q,u,e,y,V,p,z,t,W;return _.h(function(G){switch(G.nextAddress){case 1:H&&(b={continuation:H});if(!_.P("web_get_updated_metadata_fantasy_panel_continuation_params")){G.jumpTo(2);break}U=_.jJ().resolve(_.d3);K="PAsports_fantasy";return G.yield(U.isVisible(K,!0),3);case 3:G.yieldResult&&(q=(d=(w=U).getUpdatePanelContinuationData)==null?void 0:(B=d.call(w,K))==null?void 0:B.updatePanelContinuationRequest)&&(b||(b={}),b.clientParams=
{panelContinuationParams:{panelContinuation:q}});case 2:u=_.jJ().resolve(_.b$);if(!u)return _.n2(Error("Sl")),G.return();e={};l.pendingRequestId=e;return G.yield(_.nl(u,X,b),4);case 4:y=G.yieldResult;if(e!==l.pendingRequestId)return G.return();z=(V=y)==null?void 0:(p=V.continuation)==null?void 0:p.timedContinuationData;((t=z)==null?0:t.continuation)&&((W=z)==null?0:W.timeoutMs)&&(l.jobId=_.Ss.addLowPriorityJob(function(){return l.fetchUpdatedMetadata(X,z.continuation)},z.timeoutMs));
_.m5(G)}})};
Fox.prototype.disposeInternal=function(){_.$e.prototype.disposeInternal.call(this);B_C(this)};var qD$=_.Z(function(X){var H=_.Nq(function(){var b=X.data().videoId;if(X.active())b=_.aO(b),_.jJ().resolve(_.Vr).resolveCommand(b);else{var U=X.playerApi(),K=U.getAvailableAudioTracks(),w,d,B=(w=X.sourceVideoConfig().audioTracks)==null?void 0:(d=w.find(function(q){return q.isDefaultForSource}))==null?void 0:d.id;
if(K=K.find(function(q){return q.getLanguageInfo().getId()===B}))U.setAudioTrack(K,!0),U.setCompositeParam({activeVideoId:b}),X.setActiveSourceId(b)}}),l={};
return _.F("ytw-composite-source-video-overlay",{class:_.Qr("ytwCompositeSourceVideoOverlayHost",(l.ytwCompositeSourceVideoOverlayActive=X.active,l.ytwCompositeSourceVideoOverlayInteracting=X.interacting,l)),style:_.rC({left:function(){var b;return((b=X.data().topLeftCornerX)!=null?b:0)*100+"%"},
top:function(){var b;return((b=X.data().topLeftCornerY)!=null?b:0)*100+"%"},
width:function(){var b;return((b=X.data().width)!=null?b:0)*100+"%"},
height:function(){var b;return((b=X.data().height)!=null?b:0)*100+"%"}}),
"on:click":H},_.F("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"hk");var sGN=_.Z(function(X){var H=_.C(_.Gx(function(){var w,d=(w=X.data().sources)==null?void 0:w.find(function(B){return B.isActive});
if(d)return d.videoId})),l=H.next().value,b=H.next().value;
H=_.C(_.FU(!1,void 0,"rmRJ8d"));var U=H.next().value,K=H.next().value;return _.F("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Nq(function(){K(!0)}),
"on:mouseout":_.Nq(function(){K(!1)})},_.F(_.M,{cond:function(){return X.data().sources},
then:function(w){return _.F(_.P$,{each:w},function(d){return _.F(qD$,{data:d,active:function(){return d.videoId===l()},
setActiveSourceId:b,interacting:U,playerApi:X.playerApi,sourceVideoConfig:function(){return SJp(X.compositeVideoConfig(),d.videoId)}})})}}))},"ik");var e5C=function(X){_.$e.call(this);this.JSC$21385_watchApi=X;X=_.C(_.FU({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=X.next().value;this.setCompositeVideoOverlayRenderer=X.next().value;X=_.C(_.FU({},void 0,"OlaJpc"));this.compositeVideoConfig=X.next().value;this.setCompositeVideoConfig=X.next().value;MX$(this);u_d(this)};
_.S(e5C,_.$e);var MX$=function(X){var H=X.JSC$21385_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){u_d(X)});
X.addOnDisposeCallback(function(){X.JSC$21385_watchApi.unsubscribeByKey(H)})},y7N=function(X){var H;
return _.h(function(l){if(l.nextAddress==1)return l.yield(X.JSC$21385_watchApi.playerApi,2);H=l.yieldResult;H.setCompositeVideoOverlayRendererComponent(X.container);_.m5(l)})},VXU=function(X){var H;
return _.h(function(l){if(l.nextAddress==1)return l.yield(X.JSC$21385_watchApi.playerApi,2);H=l.yieldResult;H.setCompositeVideoOverlayRendererComponent(void 0);_.m5(l)})},P3A=function(X){var H,l;
return _.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21385_watchApi.playerApi,2);H=b.yieldResult;X.container=document.createElement("div");l=_.ky(X.container,function(){return _.F(sGN,{data:X.compositeVideoOverlayRenderer,compositeVideoConfig:X.compositeVideoConfig,playerApi:H})},"jk");
X.addOnDisposeCallback(l);_.m5(b)})},u_d=function(X){var H,l,b,U,K,w,d,B;
_.h(function(q){return q.nextAddress==1?(H=X.JSC$21385_watchApi.getPlayerResponse(),K=_.f((l=H)==null?void 0:(b=l.overlay)==null?void 0:(U=b.playerControlsOverlayRenderer)==null?void 0:U.compositeVideoOverlay,hAZ),B=(w=H)==null?void 0:(d=w.playerConfig)==null?void 0:d.compositeVideoConfig,K&&X.setCompositeVideoOverlayRenderer(K),B&&X.setCompositeVideoConfig(B),K&&B?X.container?q.jumpTo(6):q.yield(P3A(X),6):fXU(X)?q.yield(VXU(X),0):q.jumpTo(0)):fXU(X)?q.jumpTo(0):q.yield(y7N(X),0)})},fXU=function(X){var H;
return!((H=X.container)==null||!H.parentElement)};
e5C.prototype.disposeInternal=function(){fXU(this)&&VXU(this);_.$e.prototype.disposeInternal.call(this)};var k1N=function(X){_.$e.call(this);var H=this;this.JSC$21391_watchApi=X;var l=this.JSC$21391_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var b=H.JSC$21391_watchApi.getPlayerResponse();if(b){var U,K;if(b=_.f((U=b.endscreen)==null?void 0:(K=U.endscreenRenderer)==null?void 0:K.hideButton,_.SR)){var w;(w=H.setEndscreenHideButton)==null||w.call(H,b);pyd(H)}}});
this.addOnDisposeCallback(function(){H.JSC$21391_watchApi.unsubscribeByKey(l)});
X=_.C(_.FU({},void 0,"ER3tqb"));this.endscreenHideButton=X.next().value;this.setEndscreenHideButton=X.next().value;SD$(this);z5U(this);n_e(this)};
_.S(k1N,_.$e);var pyd=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return X.creatorEndscreenHideButtonContainer?b.return():b.yield(X.JSC$21391_watchApi.playerApi,2);H=b.yieldResult;X.creatorEndscreenHideButtonContainer=document.createElement("div");_.mK(X.creatorEndscreenHideButtonContainer,!1);H.setCreatorEndscreenHideButton(X.creatorEndscreenHideButtonContainer);l=_.ky(X.creatorEndscreenHideButtonContainer,function(){return _.F(_.KL,{data:X.endscreenHideButton,useOutlinedIcon:!0})},"kk");
X.addOnDisposeCallback(function(){l();var U;(U=H)==null||U.setCreatorEndscreenHideButton(void 0)});
_.m5(b)})},SD$=function(X){var H,l;
_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21391_watchApi.playerApi,2);H=b.yieldResult;l=function(){X.creatorEndscreenHideButtonContainer&&_.mK(X.creatorEndscreenHideButtonContainer,!0)};
H.addEventListener("endscreenelementshown",l);X.addOnDisposeCallback(function(){var U;(U=H)==null||U.removeEventListener("endscreenelementshown",l)});
_.m5(b)})},z5U=function(X){var H=function(){X.creatorEndscreenHideButtonContainer&&_.mK(X.creatorEndscreenHideButtonContainer,!1)},l=X.JSC$21391_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",H),b=X.JSC$21391_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",H);
X.addOnDisposeCallback(function(){X.JSC$21391_watchApi.unsubscribeByKey(l);X.JSC$21391_watchApi.unsubscribeByKey(b)})},n_e=function(X){X.JSC$21391_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(H){var l=_.f(H,aGA);
X.JSC$21391_watchApi.playerApi.then(function(b){b==null||b.setCreatorEndscreenVisibility(!!l.hide)})});
X.addOnDisposeCallback(function(){X.JSC$21391_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};var D4N=function(X){_.$e.call(this);this.JSC$21397_watchApi=X;x4e(this)};
_.S(D4N,_.$e);var x4e=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21397_watchApi.playerApi,2);H=b.yieldResult;l=function(U){_.WF().dispatch(_.Of({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:U}}))};
H.addEventListener("onRetroModeChanged",l);X.addOnDisposeCallback(function(){H.removeEventListener("onRetroModeChanged",l)});
_.m5(b)})};var Eip=0,lN=0,Gol=0;var tXy=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),ek=function(X){_.$e.call(this);this.JSC$21414_watchApi=X;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Wo5(this)};
_.S(ek,_.$e);
var Wo5=function(X){var H,l,b;_.h(function(U){if(U.nextAddress==1)return U.yield(X.JSC$21414_watchApi.playerApi,2);H=U.yieldResult;if(X.isDisposed())return U.return();X.sessionStorage=_.Vvd("yt-sleep-timer");X.sessionStorage||_.x2(new _.qd("SessionStorage for Sleep Timer is undefined."));((l=X.sessionStorage)==null?void 0:l.get("yt-sleep-timer"))==="true"&&(i9x(),(b=X.sessionStorage)==null||b.remove("yt-sleep-timer"),H.syncVolume());E_y(X,H);g_5(X,H);G1$(X,H);_.m5(U)})},E_y=function(X,H){var l=function(q){X.onSleepTimerSettingsChanged(q,
H)},b=function(q){X.onPlayerStateChange(q,H)},U=function(){X.onLoopChange(H)},K=function(){X.onCloseMiniplayer(H)},w=function(){Wip(H,(0,_.Jl)(),viY(H),X.selectedOption==="End of video",H.getPlayerState()!==1)},d=function(){X.onSeekComplete(H)},B=function(){_.Ss.cancelJob(lN);
var q=H.getCurrentTime()>=H.getDuration(),u=X.selectedOption==="End of video"||X.selectedOption==="End of playlist"&&!xVN(X.playlistId);q&&u&&aXC(X,H)};
H.addEventListener("onSleepTimerSettingsChanged",l);H.addEventListener("onLoopChange",U);H.addEventListener("onLoopRangeChange",U);H.addEventListener("onStateChange",b);H.addEventListener("onCloseMiniplayer",K);H.addEventListener("onSleepTimerFeatureAvailable",w);H.addEventListener("SEEK_COMPLETE",d);H.addEventListener("onAdStart",B);X.addOnDisposeCallback(function(){H.removeEventListener("onSleepTimerSettingsChanged",l);H.removeEventListener("onLoopChange",U);H.removeEventListener("onLoopRangeChange",
U);H.removeEventListener("onStateChange",b);H.removeEventListener("onCloseMiniplayer",K);H.removeEventListener("onSleepTimerFeatureAvailable",w);H.removeEventListener("SEEK_COMPLETE",d);H.removeEventListener("onAdStart",B)})},g_5=function(X,H){var l=X.JSC$21414_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var b=H.getVideoData().video_id,U,K=(U=nid(X.JSC$21414_watchApi))==null?void 0:U.playlistId;
X.pauseAutonavPlayback&&(H.pauseVideo(),H.syncVolume(),X.pauseAutonavPlayback=!1);if(X.selectedOption==="End of video"&&b!==X.videoId)y5(X,H);else{if(X.selectedOption==="End of playlist"){U=xVN(X.playlistId);if(K!==X.playlistId){y5(X,H);break a}U?U&&Zb5(X,H):iby(X,H)}X.videoId=b;X.playlistId=K}}});
X.addOnDisposeCallback(function(){X.JSC$21414_watchApi.unsubscribeByKey(l)})},G1$=function(X,H){var l=_.jJ().resolve(_.qU),b=_.bC(l,_.kCb,function(K){K&&X.selectedOption!=="Off"&&y5(X,H)}),U=X.JSC$21414_watchApi.subscribeToActiveChanged(function(K){var w,d;
return _.h(function(B){if(B.nextAddress==1)return B.yield(_.HW().navigationFinishPromise,2);w=!_.v5v();d=_.jJ().resolve(_.f9).isMiniplayerActive();K||!zEZ(X.selectedOption)||d||w||y5(X,H);_.m5(B)})},!1);
l=_.bC(l,function(K){return K.entities.playlistLoopStateEntity||{}},function(K){K=K===void 0?{}:K;
var w=koY(X.JSC$21414_watchApi);if(w){var d;((d=K[w])==null?void 0:d.state)==="PLAYLIST_LOOP_STATE_ALL"&&zEZ(X.selectedOption)&&y5(X,H)}});
X.addOnDisposeCallback(b);X.addOnDisposeCallback(l);X.addOnDisposeCallback(U)};
ek.prototype.onSleepTimerSettingsChanged=function(X,H){switch(X){case "Off":this.selectedOption!=="Off"&&y5(this,H);break;case "End of video":case "End of playlist":v_A(this,X,H);break;default:v_A(this,X,H,tXy.get(X))}};
ek.prototype.onLoopChange=function(X){(X.getLoopVideo()||X.getLoopRange())&&zEZ(this.selectedOption)&&y5(this,X)};
ek.prototype.onCloseMiniplayer=function(X){zEZ(this.selectedOption)&&y5(this,X)};
var v_A=function(X,H,l,b){ObA(X,l);X.selectedOption=H;X.videoId=l.getVideoData().video_id;X.playlistId="";var U;(U=X.sessionStorage)==null||U.set("yt-sleep-timer","true");X.adjustmentsCount++;Wip(l,(0,_.Jl)(),viY(l),X.selectedOption==="End of video");if(X.selectedOption==="End of video")iby(X,l),m4p(X,l);else if(X.selectedOption==="End of playlist"){m4p(X,l);var K,w;X.playlistId=(w=(K=nid(X.JSC$21414_watchApi))==null?void 0:K.playlistId)!=null?w:"";xVN(X.playlistId)||iby(X,l)}else b&&(X.presetFadeSchedulerId=
_.Rs(_.Ss,function(){aFZ(l,15E3)},b-15E3),X.presetPauseSchedulerId=_.Rs(_.Ss,function(){aXC(X,l)},b),gid(l,(0,_.Jl)(),b))},aXC=function(X,H){if(X.JSC$21414_watchApi.isActive()){var l={dismissDialogEndpoint:{}};
var b={commandExecutorCommand:{commands:[l,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};l={buttonViewModel:{title:_.XS("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:l}}};b={buttonViewModel:{title:_.XS("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:b}}};var U={dialogHeaderViewModel:{headline:{content:_.XS("SLEEP_TIMER_ENDED_TITLE")}}},
K={basicContentViewModel:{paragraphs:[{text:{content:_.XS("SLEEP_TIMER_ENDED_TEXT")}}]}};l={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:U,content:K,footer:{panelFooterViewModel:{primaryButton:l,secondaryButton:b,shouldHideDivider:!0}}}}}}};_.jJ().resolve(_.Vr).resolveCommand(l,{form:{element:X}})}else i9x();QGp(X,!1);T_C(X,H);H.pauseVideo();_.ac.getInstance().getState()===2&&H.getPlayerState()===5&&(X.pauseAutonavPlayback=!0)},y5=function(X,H){QGp(X,!0);
T_C(X,H);i9x()},T_C=function(X,H){ObA(X,H);
X.selectedOption="Off";X.videoId="";X.playlistId="";X.adjustmentsCount=0;var l;(l=X.sessionStorage)==null||l.remove("yt-sleep-timer");_.Ss.cancelJob(Eip);H.resetSleepTimerMenuSettings()},QGp=function(X,H){H={timer_length_adjustment_times_during_session:X.adjustmentsCount-1,
is_session_cancelled:H};switch(X.selectedOption){case "Off":H.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":H.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":H.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:H.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",H.option_duration_in_minutes=tXy.get(X.selectedOption)/6E4}_.Sh("sleepTimerSessionFinishEvent",H)};
ek.prototype.onPlayerStateChange=function(X,H){X===1?Wip(H,(0,_.Jl)(),viY(H),this.selectedOption==="End of video"):X===0?(_.Ss.cancelJob(lN),H.setVideoTimeLeft(tYN(0,0))):X===2&&_.Ss.cancelJob(lN);this.selectedOption==="End of video"?X===0?aXC(this,H):X===2&&Z9$(H):this.selectedOption!=="End of playlist"||xVN(this.playlistId)||(X===0?aXC(this,H):X===2&&Z9$(H))};
ek.prototype.onSeekComplete=function(X){X.getPlayerState()===2&&Wip(X,(0,_.Jl)(),viY(X),this.selectedOption==="End of video",!0)};
ek.prototype.onCueRangeEnter=function(X,H){X==="sleep-timer-fade-audio"&&aFZ(H,(H.getDuration()-H.getProgressState().current)*1E3)};
ek.prototype.onCueRangeExit=function(X,H){X==="sleep-timer-fade-audio"&&H.getPlayerState()!==0&&Z9$(H,!0)};
var iby=function(X,H){H.addCueRange("sleep-timer-fade-audio",H.getDuration()-15,H.getDuration());H.addEventListener("onCueRangeEnter",function(l){X.onCueRangeEnter(l,H)});
H.addEventListener("onCueRangeExit",function(l){X.onCueRangeExit(l,H)})},Zb5=function(X,H){H.removeCueRange("sleep-timer-fade-audio");
H.removeEventListener("onCueRangeEnter",function(l){X.onCueRangeEnter(l,H)});
H.removeEventListener("onCueRangeExit",function(l){X.onCueRangeExit(l,H)})},ObA=function(X,H){zEZ(X.selectedOption)?Zb5(X,H):(_.Ss.cancelJob(X.presetPauseSchedulerId),_.Ss.cancelJob(X.presetFadeSchedulerId),X.presetPauseSchedulerId=0,X.presetFadeSchedulerId=0);
Z9$(H,!0)},m4p=function(X,H){H.setLoop(!1);
H.setLoopVideo(!1);H.setLoopRange(null);(X=koY(X.JSC$21414_watchApi))&&_.jJ().resolve(_.qU).dispatch(_.Us("playlistLoopStateEntity",X,{key:X,state:"PLAYLIST_LOOP_STATE_NONE"}))};var J7Z=function(X){_.$e.call(this);var H=this;this.JSC$21417_watchApi=X;_.P("web_watch_force_start_in_theater_mode")&&N_5(this,!0,!1);c7Y(this);jGp(this);r75(this);var l=this.JSC$21417_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.Yy("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.wL.get("wide",void 0)==="1"&&_.dL("wide","1",_.Yy("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){H.JSC$21417_watchApi.unsubscribeByKey(l)});
X=X.getRoot();if(X.is==="ytd-watch-flexy"||X.is==="ytd-watch-grid")X.onTheaterReduxValueUpdate(this.getState());this.getState()&&M0A();_.P("web_watch_log_theater_mode_cookie_state")&&_.wL.get("wide","0")==="1"&&_.L3b("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.S(J7Z,_.$e);var c7Y=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21417_watchApi.playerApi,2);H=b.yieldResult;l=function(U){N_5(X,!!U)};
H.addEventListener("SIZE_CLICKED",l);X.addOnDisposeCallback(function(){H.removeEventListener("SIZE_CLICKED",l)});
_.m5(b)})},jGp=function(X){X.JSC$21417_watchApi.registerActionHandler("yt-toggle-theater-mode",function(H,l){N_5(X,H,l===void 0?!0:l)});
X.addOnDisposeCallback(function(){X.JSC$21417_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
J7Z.prototype.getState=function(){return _.BS(_.WF().getState())};
var N_5=function(X,H,l){l=l===void 0?!0:l;var b,U,K,w=_.P("enable_player_resize_transition")&&!!X.JSC$21417_watchApi.getWatchNextResponse()&&!((b=X.JSC$21417_watchApi.getWatchNextResponse())==null?0:(U=b.contents)==null?0:(K=U.twoColumnWatchNextResults)==null?0:K.conversationBar);Cgd(function(){_.WF().dispatch(_.Of({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:H}}));_.P("theater_mode_scroll_to_top_killswitch")||X.JSC$21417_watchApi.scrollWatchTo(0,!1);_.gZ()&&_.P("external_fullscreen")&&_.GP(document.documentElement);
r75(X);l&&_.dL("wide",H?"1":"0",_.Yy("theater_mode_cookie_max_age_seconds",-1));_.TP(X.JSC$21417_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);X.JSC$21417_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:H});H&&M0A()},{shouldWrap:w})},r75=function(X){var H;
_.h(function(l){if(l.nextAddress==1)return l.yield(X.JSC$21417_watchApi.playerApi,2);H=l.yieldResult;H.setSizeStyle(!0,X.getState());_.m5(l)})};var IXA=function(X){_.$e.call(this);var H=this;this.playerApi=X;this.timeToPanelSyncKeyMap={};var l;if(X==null?0:(l=X.isReady)==null?0:l.call(X)){l=_.bC(_.jJ().resolve(_.qU),function(U){return U.entities.timedMarkersListSyncEntity||{}},function(U,K){U=U===void 0?{}:U;
K=K===void 0?{}:K;for(var w=_.C(Object.keys(K)),d=w.next();!d.done;d=w.next())d=d.value,U[d]!==K[d]&&Lo$(H,K[d]);K=_.C(Object.keys(U));for(w=K.next();!w.done;w=K.next())w=w.value,d=U[w],H.timeToPanelSyncKeyMap[w]&&YDp(H,d)});
this.addOnDisposeCallback(l);var b=function(U){H.onCueRangeEnter(U)};
X.addEventListener("onCueRangeEnter",b);this.addOnDisposeCallback(function(){var U;(U=X.removeEventListener)==null||U.call(X,"onCueRangeEnter",b)})}};
_.S(IXA,_.$e);
var YDp=function(X,H){var l,b;if((l=X.playerApi)==null?0:(b=l.isReady)==null?0:b.call(l)){var U;if((l=H==null?void 0:(U=H.timedListData)==null?void 0:U.sections)&&H!=null&&H.key)for(U=_.C(l),l=U.next();!l.done;l=U.next())if(l=l.value,l.timedSyncDataList&&l.sectionId)for(b=0;b<l.timedSyncDataList.length;b++){var K=l.timedSyncDataList[b];K.syncItemId&&X.playerApi.addCueRange(l.sectionId+"_"+H.key+"_"+K.syncItemId,Number(K.videoTimeMs)/1E3,b===l.timedSyncDataList.length-1?0x8000000000000:Number(l.timedSyncDataList[b+
1].videoTimeMs)/1E3)}}},Lo$=function(X,H){var l,b;
if((l=X.playerApi)==null?0:(b=l.isReady)==null?0:b.call(l)){var U;if((l=H==null?void 0:(U=H.timedListData)==null?void 0:U.sections)&&H!=null&&H.key)for(U=_.C(l),l=U.next();!l.done;l=U.next())if(l=l.value,l.timedSyncDataList&&l.sectionId){b=_.C(l.timedSyncDataList);for(var K=b.next();!K.done;K=b.next())K=K.value,K.syncItemId&&X.playerApi.removeCueRange(l.sectionId+"_"+H.key+"_"+K.syncItemId)}}};
IXA.prototype.onCueRangeEnter=function(X){for(var H=_.C(Object.keys(this.timeToPanelSyncKeyMap)),l=H.next();!l.done;l=H.next()){l=l.value;var b=_.C(X.split("_"+l+"_")),U=b.next().value;b=b.next().value;if(U&&b){X=_.jJ().resolve(_.qU);H=this.timeToPanelSyncKeyMap[l];var K=_.ZOL(X.getState(),H);l=A7x(l,U,b);if(l===-1)break;l={activeSyncId:b,activeItemIndex:l,activeSectionInfo:{sectionIdentifier:U}};K?X.dispatch(_.Mf("markersEngagementPanelSyncEntity",H,l)):X.dispatch(_.Us("markersEngagementPanelSyncEntity",
H,Object.assign({},{key:H},l)));break}}};
var A7x=function(X,H,l){var b=_.jJ().resolve(_.qU),U,K;X=(U=AYx(b.getState(),X))==null?void 0:(K=U.timedListData)==null?void 0:K.sections;if(!X)return-1;U=0;K=_.C(X);for(X=K.next();!X.done;X=K.next()){X=X.value;b=X.timedSyncDataList||[];if(X.sectionId===H)return H=b.findIndex(function(w){return w.syncItemId===l}),H===-1?H:U+H;
U+=b.length}return-1};var lnd=function(X){_.$e.call(this);var H=this;this.JSC$21431_watchApi=X;this.unresolvedCommands=[];this.JSC$21431_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(l){Xwy(H,l)});
this.addOnDisposeCallback(function(){H.JSC$21431_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
H4d(this)};
_.S(lnd,_.$e);var H4d=function(X){var H;_.h(function(l){if(l.nextAddress==1)return l.yield(X.JSC$21431_watchApi.playerApi,2);H=l.yieldResult;if(X.isDisposed())return l.return();X.timedSyncObserver=new IXA(H);X.unresolvedCommands.length&&(X.unresolvedCommands.forEach(function(b){return Xwy(X,b)}),X.unresolvedCommands=[]);
_.LY(X,X.timedSyncObserver);_.m5(l)})},Xwy=function(X,H){if(X.timedSyncObserver){var l=_.f(H,m$$);
if(l&&l.timedSyncEntityKey&&l.panelSyncEntityKey){X=X.timedSyncObserver;H=l.timedSyncEntityKey;var b=l.panelSyncEntityKey;l=!!l.isEnabled;l=l===void 0?!0:l;var U=_.jJ().resolve(_.qU);U=AYx(U.getState(),H);l?X.timeToPanelSyncKeyMap[H]||(X.timeToPanelSyncKeyMap[H]=b,YDp(X,U)):(delete X.timeToPanelSyncKeyMap[H],Lo$(X,U))}}else X.unresolvedCommands.push(H)};var ozl=_.Z(function(X){var H=X.data,l=X.maybeLogSmartSkipClientData,b=null,U=null,K=_.P("web_enable_auto_focus_for_timely_action_button"),w=function(){b=document.activeElement},d=function(){H().smartSkipMetadata&&(b=document.activeElement,_.pjp(function(){return U}))},B=function(u){if(H().smartSkipMetadata&&(!u||u.key!=="Enter")){b&&b.isConnected&&(_.pjp(function(){return b}),b=null);
var e;(e=U)==null||e.blur()}};
X=_.Nq(function(){l==null||l(!0,H());return!1});
var q=_.xl(_.Mh(function(){return H().rendererContext},{onTap:function(u,e){e({disableClickTracking:!0})}}),_.jh({visibilityCallback:function(u){if(K)u?U&&H().smartSkipMetadata&&(d(),document.addEventListener("focusin",w)):(document.removeEventListener("focusin",w),B());
else if(u){u=_.qh(H().rendererContext);var e=Number(H().maxVisibleDurationMilliseconds),y,V=(y=_.f(H().rendererContext,_.RB))==null?void 0:y.label;u&&e&&V&&(y={label:V,command:u,durationMs:e},_.jJ().resolve(_.uq).enqueue(y))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.xy(function(){if(K){var u;if((U=(u=q.value)==null?void 0:u.querySelector("button"))&&H().smartSkipMetadata){var e;(e=q.value)==null||e.addEventListener("keydown",B)}}});
_.E2(function(){K&&(U&&H().smartSkipMetadata&&U.removeEventListener("keydown",B),document.removeEventListener("focusin",w),B())});
return _.F("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:q,"on:click":X},_.F(_.l4,{data:function(){return H().content}},{buttonViewModel:_.Qk}))},"mk");var b4d=_.Z(function(X){var H=X.data,l=X.playerApi,b=_.jJ().resolve(_.q_U);X=_.C(_.Gx(function(){H()}));
var U=X.next().value,K=X.next().value,w=function(){return QJa(H(),U())},d=function(q,u){var e,y,V=(e=_.f(u==null?void 0:u.rendererContext,_.o1))==null?void 0:(y=e.loggingDirectives)==null?void 0:y.trackingParams;
if((u=u==null?void 0:u.smartSkipMetadata)&&u.loggingData&&(y=u.loggingData,u=y.algorithmId,e=y.startMilliseconds,y=y.endMilliseconds,u&&e!==void 0&&y!==void 0)){var p,z;q={smartSkipData:Object.assign({},{versionName:u,startMediaTimeMs:e,endMediaTimeMs:y},q&&{userInteractionMediaTimeMs:(Math.floor(((p=_.aq())==null?void 0:(z=p.getPlayer())==null?void 0:z.getCurrentTime())||0)*1E3).toString()})};p=_.Bi();var t;V&&(t=_.$l(V));p&&t&&_.tY(p,t,q)}},B=function(q,u){var e=QJa(H(),q);
if(e){var y=_.f(e,mV$),V;if(V=u)V=l(),e=_.f(e,mV$),V=e!=null&&e.smartSkipMetadata?!(V==null?0:V.isSameMarkerTypeVisible((e==null?void 0:e.smartSkipMetadata.markerKey)||"")):!0;if(V){var p,z;(y==null?0:(p=y.smartSkipMetadata)==null?0:(z=p.loggingData)==null?0:z.isCounterfactual)||(d(!1,y),K(q))}else u||U()!==q||K(void 0)}};
_.Wg(function(){var q=H().timelyActions;if(q){q=_.C(q);for(var u=q.next();!u.done;u=q.next()){u=_.f(u.value,mV$);var e=void 0;(e=u)!=null&&e.cueRangeId&&b.timelyActionsMap.set(u.cueRangeId,B)}_.E2(function(){b.timelyActionsMap.clear()})}},"l2RtC");
return _.F("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.F(_.l4,{data:w},{timelyActionViewModel:function(q){return _.F(ozl,{data:q.data,maybeLogSmartSkipClientData:function(){d(!0,_.f(w(),mV$))}})}}))},"ok");var $Ad=function(X){_.$e.call(this);this.JSC$21444_watchApi=X;X=_.C(_.FU({},void 0,"UN7k5e"));this.timelyActionsOverlay=X.next().value;this.setTimelyActionsOverlay=X.next().value;UA5(this)};
_.S($Ad,_.$e);var UA5=function(X){var H,l,b,U;_.h(function(K){if(K.nextAddress==1)return KE5(X),Rjy(X),X.timelyActionsContainer=document.createElement("div"),K.yield(X.JSC$21444_watchApi.playerApi,2);H=K.yieldResult;(b=(l=H).insertTimelyActionUi)==null||b.call(l,X.timelyActionsContainer);U=_.ky(X.timelyActionsContainer,function(){return _.F(b4d,{data:X.timelyActionsOverlay,playerApi:H})},"pk");
X.addOnDisposeCallback(U);_.m5(K)})},Rjy=function(X){var H=X.JSC$21444_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){KE5(X)});
X.addOnDisposeCallback(function(){X.JSC$21444_watchApi.unsubscribeByKey(H)})},KE5=function(X){var H=X.JSC$21444_watchApi.getWatchNextResponse();
if(H){var l,b;if(H=_.f((l=H.playerOverlays)==null?void 0:(b=l.playerOverlayRenderer)==null?void 0:b.timelyActionsOverlayViewModel,NGa)){var U;(U=X.setTimelyActionsOverlay)==null||U.call(X,H)}}};var ww$=function(X){_.$e.call(this);this.JSC$21448_watchApi=X;Cay(this)};
_.S(ww$,_.$e);var Cay=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21448_watchApi.playerApi,2);H=b.yieldResult;l=function(U){_.JF.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.f(U,H3C)},popupType:"TOAST"}})};
H.addEventListener("onYtShowToast",l);X.addOnDisposeCallback(function(){H.removeEventListener("onYtShowToast",l)});
_.m5(b)})};var dA5=function(X){var H=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.cF;this.element.addEventListener("load",function(){H.loaded=!0;H.resolver.resolve(H.element)});
this.element.addEventListener("error",function(){H.failed=!0});
this.element.src=X};var hjd=function(X,H){this.image=X;this.frame=H};
hjd.prototype.drawToCanvas=function(X,H){var l=this.frame.width/this.frame.columns,b=this.frame.height/this.frame.rows,U=H.offsetX,K=H.offsetY;Tka(H)?(X.fillStyle=H.fullscreen?"#000":"#0f0f0f",X.fillRect(U,K,(H==null?void 0:H.width)||l,(H==null?void 0:H.height)||b)):X.drawImage(this.image,this.frame.column*l,this.frame.row*b,l,b,U,K,(H==null?void 0:H.width)||l,(H==null?void 0:H.height)||b)};
var FEp=function(X){this.color=X};
FEp.prototype.drawToCanvas=function(X,H){var l=H.offsetX,b=H.offsetY,U=H.width,K=H.height;X.fillStyle=Tka(H)?H.fullscreen?"#000":"#0f0f0f":this.color;X.fillRect(l,b,U,K)};var V5=function(X,H){na.call(this);this.playerApi=H;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.tn(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();BP$(this,X);q5A(this);this.update()};
_.S(V5,na);V5.prototype.addEventListeners=function(){var X=this,H=function(){X.update()},l=function(U){X.paused||(U.type==="newdata"&&(X.mosaics.clear(),saN(X),Pw(X)),q5A(X),X.update())},b=function(){X.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",H);this.playerApi.addEventListener("onVideoDataChange",l);this.playerApi.addEventListener("onStateChange",b);this.addOnDisposeCallback(function(){X.playerApi.removeEventListener("onVideoProgress",H);X.playerApi.removeEventListener("onVideoDataChange",l);X.playerApi.removeEventListener("onStateChange",b)})};
var BP$=function(X,H){X.cinematicContainerRenderer!==H&&(X.cinematicContainerRenderer=H,saN(X),Pw(X),X.colorStoreUpdateJobId=_.Ss.addLowPriorityJob(function(){var l;if((l=X.cinematicContainerRenderer.colorStore)!=null&&l.sampledColors){l=Infinity;for(var b=_.C(X.cinematicContainerRenderer.colorStore.sampledColors),U=b.next();!U.done;U=b.next()){U=U.value;var K=Number(U.key);K!==0&&K<l&&(l=K);K=_.qw(U.value);X.colorStore.set(U.key,K)}X.colorStoreTimeInterval=l}}))},saN=function(X){X.colorStoreUpdateJobId&&
(_.Ss.cancelJob(X.colorStoreUpdateJobId),X.colorStoreUpdateJobId=void 0);
X.colorStore.clear();X.currentStoryboardColor=void 0},Mkl=function(X,H){var l;
return(l=X.getStoryboardFrame(H))==null?void 0:l.url};
V5.prototype.onPlayerStateChange=function(){this.update()};
V5.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var q5A=function(X){var H=X.getStoryboardFrame(0);H&&(H=new _.tn(H.width/H.columns,H.height/H.rows),Pdp(X.currentStoryboardSize,H)||(X.currentStoryboardSize=H,X.publish("STORYBOARD_SIZE_CHANGED",X.currentStoryboardSize)))},uDx=function(X,H){X.currentStoryboardIndex=H;
X.pendingStoryboardIndex=NaN;H=X.getStoryboardFrame(X.currentStoryboardIndex);X.currentStoryboard=new hjd(X.mosaics.get(H.url).element,H);X.publish("STORYBOARD_CHANGED",X.currentStoryboard);X.lastUpdateTime=(0,_.Jl)()};
V5.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Pw=function(X){X.currentStoryboardIndex=NaN;X.pendingStoryboardIndex=NaN;X.currentStoryboard&&(X.currentStoryboard=void 0,X.publish("STORYBOARD_CHANGED",void 0));X.lastUpdateTime=NaN};
V5.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Pw(this);else{var X=this.playerApi.getPlayerState(1);if(X===-1||X===5||X===0)Pw(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Jl)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(X=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){X=""+Math.round(X*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var H=this.colorStore.get(X);H?H!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=H,this.currentStoryboard=new FEp(H),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Jl)()):(_.x2(new _.qd("Could not find color for timestamp: "+X,this.cinematicContainerRenderer)),Pw(this))}else Pw(this);else eja(this,X)}};
var eja=function(X,H){var l=X.getStoryboardFrameIndex(H);if(l!==X.currentStoryboardIndex&&l!==X.pendingStoryboardIndex){H=Mkl(X,l);var b=X.mosaics.get(H);b?b.loaded&&uDx(X,l):(X.pendingStoryboardIndex=l,l=new dA5(H),X.mosaics.set(H,l),l.resolver.promise.then(function(){if(!X.isDisposed()&&!X.paused&&!isNaN(X.pendingStoryboardIndex)){var U=Mkl(X,X.pendingStoryboardIndex);if(U){var K;(K=X.mosaics.get(U))!=null&&K.loaded&&uDx(X,X.pendingStoryboardIndex)}else Pw(X)}}))}};
V5.prototype.getStoryboardFrameIndex=function(X){var H=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(X,H)};
V5.prototype.getStoryboardFrame=function(X){var H=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,l,b;return((b=(l=this.playerApi).getStoryboardFrame)==null?void 0:b.call(l,X,H))||null};
V5.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var p4=function(X,H,l,b){b=b===void 0?!1:b;_.$e.call(this);this.cinematicContainerRenderer=H;this.playerApi=l;this.theater=this.fullscreen=!1;var U;this.ambientLightThemeEnabled=!b&&!!(H==null?0:(U=H.config)==null?0:U.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=b)&&!0;this.container=document.createElement("div");X.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);ycU(this);this.backCanvas=
Nk$();this.frontCanvas=Nk$();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new V5(H,this.playerApi);_.LY(this,this.storyboardManager);this.addEventListeners();Vka(this)?Pax(this,100+f4(this)*3*2,100+f4(this)*3*2):fne(this);pwC(this,this.storyboardManager.currentStoryboard)};
_.S(p4,_.$e);
var ycU=function(X){var H=X.playerApi.getVideoAspectRatio();_.ko(X.container,{"aspect-ratio":""+H,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var l;var b;if((X.fullscreen||X.theater)&&((l=X.cinematicContainerRenderer.config)==null?0:(b=l.watchFullscreenConfig)==null?0:b.colorSourceWidthMultiplier))l=X.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var U;l=(U=
X.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?U:X.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var K,w;if((X.fullscreen||X.theater)&&((K=X.cinematicContainerRenderer.config)==null?0:(w=K.watchFullscreenConfig)==null?0:w.colorSourceHeightMultiplier))U=X.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var d;U=(d=X.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?d:X.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.ko(X.innerContainer,
{"aspect-ratio":""+H,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+l+", "+U+")"});cv5()&&_.ko(X.innerContainer,"filter","blur("+_.Yy("cinematic_watch_css_filter_blur_strength",40)+"px)")};
p4.prototype.setFullscreen=function(X,H){this.fullscreen=X;this.theater=!!H;ycU(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),X=this.storyboardManager.currentStoryboard,S5U(this),X&&zjA(this,X)};
p4.prototype.addEventListeners=function(){var X=this,H=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(U){pwC(X,U)}),l=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){fne(X)});
this.addOnDisposeCallback(function(){X.storyboardManager.unsubscribeByKey(H);X.storyboardManager.unsubscribeByKey(l)});
var b=function(){ycU(X)};
this.playerApi.addEventListener("onVideoDataChange",b);this.addOnDisposeCallback(function(){X.playerApi.removeEventListener("onVideoDataChange",b)})};
var fne=function(X){if(!Vka(X)){var H=X.storyboardManager.currentStoryboardSize;isNaN(H.width)||isNaN(H.height)||Pax(X,Number(H.width)+f4(X)*3*2,Number(H.height)+f4(X)*3*2)}},Pax=function(X,H,l){X.backCanvas.element.width=H;
X.backCanvas.element.height=l;X.frontCanvas.element.width=H;X.frontCanvas.element.height=l},Vka=function(X){return X.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},pwC=function(X,H,l){l=l===void 0?!1:l;
var b=X.frontCanvas.element.getAnimations()[0];b?(b.pause(),X.backCanvas.context.globalAlpha=Number(getComputedStyle(X.frontCanvas.element).opacity),X.frontCanvas.element.style.opacity="0",b.finish()):X.backCanvas.context.globalAlpha=1;X.backCanvas.context.drawImage(X.frontCanvas.element,0,0,X.backCanvas.element.width,X.backCanvas.element.height);S5U(X);H&&zjA(X,H);H=H?X.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Yy("cinematic_watch_fade_out_duration",500);b=_.Yy("cinematic_watch_transition_frame_rate")/
1E3;var U={};b&&(U={easing:"steps("+Math.round(H*b)+")"});(l===void 0?0:l)||X.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:H,iterations:1},U));X.frontCanvas.element.style.opacity="1"},S5U=function(X){var H=X.ambientLightThemeEnabled||X.ambientTheaterModeEnabled,l=X.ambientLightThemeEnabled||X.ambientFullscreenEnabled;
X.frontCanvas.context.fillStyle=X.theater&&H||X.fullscreen&&l?"#000":"#0f0f0f";cv5()||(X.frontCanvas.context.filter="blur(0)");X.frontCanvas.context.fillRect(0,0,X.frontCanvas.element.width,X.frontCanvas.element.height)},zjA=function(X,H){cv5()||(X.frontCanvas.context.filter="blur("+f4(X)+"px)");
X.frontCanvas.context.globalAlpha=X.fullscreen&&X.ambientFullscreenEnabled||X.theater&&X.ambientTheaterModeEnabled?_.Yy("cinematic_watch_effect_letterbox_opacity",.4):_.Yy("cinematic_watch_effect_opacity",.4);var l={offsetX:f4(X)*3,offsetY:f4(X)*3,theater:X.theater,fullscreen:X.fullscreen};Vka(X)&&(l.width=100,l.height=100);H.drawToCanvas(X.frontCanvas.context,l);X.frontCanvas.context.globalAlpha=1},f4=function(X){var H;
return(H=X.cinematicContainerRenderer.config.blurStrength)!=null?H:5};
p4.prototype.disposeInternal=function(){_.$e.prototype.disposeInternal.call(this);this.container.remove()};
p4.prototype.clear=function(){pwC(this,void 0,!0)};
p4.prototype.pause=function(){this.storyboardManager.pause()};var nzZ=_.B0(function(){var X,H,l=!((H=(X=document.createElement("canvas")).getContext)==null||!H.call(X,"2d")),b;X=!((b=CSS)==null||!b.supports("filter: blur(0)"));b=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var U;return l&&X&&b&&!((U=CSS)==null||!U.supports("aspect-ratio: 1 / 1"))}),Sk=function(X,H){na.call(this);
this.container=X;this.playerApi=H;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=kzN(this);this.update()};
_.S(Sk,na);var xAN=function(X){var H=document.documentElement.hasAttribute("dark");X.isDarkModeEnabled=H;X.update()},DAA=function(X,H){X.settingEnabled=H;
X.update()};
Sk.prototype.setFullscreen=function(X,H){this.fullscreen=X;this.theater=!!H;this.update()};
var tkA=function(X,H){X.cinematicContainerRenderer=H;X.cinematicContainerRenderer&&(X.cinematicsVe=_.cS(X.isShorts()?227858:159022),_.rg(_.lv(),X.cinematicsVe),X.loggingClientData={watchCinematicContainerData:{presentationStyle:X.cinematicContainerRenderer.presentationStyle}});X.update()};
Sk.prototype.isShorts=function(){var X,H;return((X=this.cinematicContainerRenderer)==null?void 0:(H=X.config)==null?void 0:H.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
Sk.prototype.isAllowed=function(){var X;if(X=nzZ()){var H,l,b;X=((l=this.cinematicContainerRenderer)==null?void 0:l.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((b=this.cinematicContainerRenderer)==null||!b.colorStore)||((H=this.cinematicContainerRenderer)==null?void 0:H.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(X)if(_.P("web_cinematics_pausing")){var U,K;X=this.isDarkModeEnabled||!!((U=this.cinematicContainerRenderer)==
null?0:(K=U.config)==null?0:K.enableInLightTheme)}else{var w,d;U=!!((w=this.cinematicContainerRenderer)==null?0:(d=w.config)==null?0:d.enableInLightTheme)&&(_.gx("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);X=this.isDarkModeEnabled||U}if(w=X){var B,q;w=!((q=(B=this.prefersReducedMotionQuery)==null?void 0:B.matches)!=null&&q)}return w};
var WEZ=function(X){var H;(H=X.currentCinematicEffect)==null||H.clear()},EzN=function(X){var H;
(H=X.currentCinematicEffect)==null||H.pause()},gzl=function(X){(X=X.currentCinematicEffect)!=null&&(X=X.storyboardManager,X.paused=!1,q5A(X),X.update())};
Sk.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var kzN=function(X){if(!_.P("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var H=window.matchMedia("(prefers-reduced-motion: reduce)"),l=function(){X.update()};
H.addListener(l);X.addOnDisposeCallback(function(){H.removeListener(l)});
return H}};
Sk.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var X=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new p4(this.container,X,this.playerApi,this.isDarkModeEnabled),_.LY(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var H=this.currentCinematicEffect;H.cinematicContainerRenderer!==
X&&(H.cinematicContainerRenderer=X,BP$(H.storyboardManager,X),ycU(H));X=_.oO();_.bH(0,194,!0);X.save();X=_.Bi();this.cinematicsVe&&X&&_.nA(X,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(X=_.Bi(),this.cinematicsVe&&X&&_.kB(X,[this.cinematicsVe],!1,this.loggingClientData),_.Gp(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.ja.Object.defineProperties(Sk.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var Gz5=!1,vzx=function(X){_.$e.call(this);this.JSC$21481_watchApi=X;this.fullscreen=this.theater=!1;anZ(this);Z4x(this);i4y(this)};
_.S(vzx,_.$e);var i4y=function(X){var H,l,b;_.h(function(U){if(U.nextAddress==1)return U.yield(X.JSC$21481_watchApi.playerApi,2);H=U.yieldResult;if(X.isDisposed())return U.return();l=X.JSC$21481_watchApi.getElement("CINEMATICS");if(!l)return U.return();X.JSC$21481_cinematicController=new Sk(l,H);_.LY(X,X.JSC$21481_cinematicController);xAN(X.JSC$21481_cinematicController);O4C(X,_.nAb());b=X.JSC$21481_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(K){mA$(X,K)});
X.addOnDisposeCallback(function(){X.JSC$21481_watchApi.unsubscribeByKey(b)});
Qax(X);mA$(X,X.JSC$21481_cinematicController.isAllowed());TPy(X);NPU(X);_.m5(U)})},TPy=function(X){X.fullscreen=_.qn(_.WF().getState());
X.theater=_.BS(_.WF().getState());ccp(X,X.fullscreen,X.theater);var H=_.bC(_.WF(),_.qn,function(b){X.fullscreen=b;ccp(X,X.fullscreen,X.theater)}),l=_.bC(_.WF(),_.BS,function(b){X.theater=b;
ccp(X,X.fullscreen,X.theater)});
X.addOnDisposeCallback(H);X.addOnDisposeCallback(l)},anZ=function(X){var H=X.JSC$21481_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Qax(X)});
X.addOnDisposeCallback(function(){X.JSC$21481_watchApi.unsubscribeByKey(H)})},Z4x=function(X){var H,l;
_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21481_watchApi.playerApi,2);H=b.yieldResult;l=function(U){O4C(X,U)};
H.addEventListener("cinematicSettingsToggleChange",l);X.addOnDisposeCallback(function(){H.removeEventListener("cinematicSettingsToggleChange",l)});
_.m5(b)})},Qax=function(X){var H=X.JSC$21481_watchApi.getWatchNextResponse(),l;
H=_.f(H==null?void 0:(l=H.pageVisualEffects)==null?void 0:l[0],hp);var b;(b=X.JSC$21481_cinematicController)==null||tkA(b,H)},O4C=function(X,H){var l;
(l=X.JSC$21481_cinematicController)==null||DAA(l,H);jaA(X)},mA$=function(X,H){var l;
_.h(function(b){if(b.nextAddress==1)return _.P("kevlar_watch_cinematics_invisible")&&(H=!1),b.yield(X.JSC$21481_watchApi.playerApi,2);l=b.yieldResult;l.updateCinematicSettings(H);jaA(X);_.m5(b)})},NPU=function(X){var H=_.oO();
if(_.P("kevlar_measure_ambient_mode_idle")&&!H.getFlag(192)&&!Gz5){Gz5=!0;var l=_.eh(_.Ss,function(){_.jJ().resolve(_.efN).start(1E4)},5E3);
X.addOnDisposeCallback(function(){_.Ss.cancelJob(l);_.jJ().resolve(_.efN).stop()})}},ccp=function(X,H,l){X.fullscreen=H;
X.theater=l;var b;(b=X.JSC$21481_cinematicController)==null||b.setFullscreen(X.fullscreen,X.theater);if(_.P("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(X.theater||X.fullscreen){var U;(U=X.JSC$21481_cinematicController)==null||gzl(U)}else{var K;(K=X.JSC$21481_cinematicController)==null||EzN(K)}},jaA=function(X){var H;
X.JSC$21481_watchApi.getRoot().toggleCinematicsActive(!((H=X.JSC$21481_cinematicController)==null||!H.isEnabled()))};var Y5p=function(X){_.$e.call(this);var H=this;this.JSC$21484_watchApi=X;this.commentsReady=!1;this.setCommentsJobId=0;X=_.bC(_.WF(),LE,function(){rcU(H)});
this.addOnDisposeCallback(X);var l=this.JSC$21484_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JcZ(H)}),b=this.JSC$21484_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){JcZ(H)});
this.addOnDisposeCallback(function(){H.JSC$21484_watchApi.unsubscribeByKey(l);H.JSC$21484_watchApi.unsubscribeByKey(b)});
var U=function(){_.P("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&LEY(H,"false")};
this.JSC$21484_watchApi.getRoot().addEventListener("yt-page-data-will-update",U);this.addOnDisposeCallback(function(){H.JSC$21484_watchApi.getRoot().removeEventListener("yt-page-data-will-update",U)});
JcZ(this)};
_.S(Y5p,_.$e);var JcZ=function(X){X.commentsReady=!1;_.Ss.cancelJob(X.setCommentsJobId);X.setCommentsJobId=_.eh(_.Ss,function(){rcU(X)},1E3)},rcU=function(X){if(!X.commentsReady){_.sf("cmi");
_.Ss.cancelJob(X.setCommentsJobId);var H,l,b,U,K=(H=X.JSC$21484_watchApi.getWatchNextResponse())==null?void 0:(l=H.contents)==null?void 0:(b=l.twoColumnWatchNextResults)==null?void 0:(U=b.results)==null?void 0:U.results.contents;H=void 0;if(K&&K.length)for(K=_.C(K),l=K.next();!l.done;l=K.next())if(l=l.value,U=b=void 0,((b=l)==null?void 0:(U=b.itemSectionRenderer)==null?void 0:U.sectionIdentifier)==="comment-item-section"){_.P("web_watch_provide_undefined_comments")?H=l.itemSectionRenderer:X.JSC$21484_watchApi.provideRenderingData("COMMENTS",
l.itemSectionRenderer);LEY(X,"true");break}_.P("web_watch_provide_undefined_comments")&&X.JSC$21484_watchApi.provideRenderingData("COMMENTS",H);X.commentsReady=!0;X.JSC$21484_watchApi.dispatchEvent("yt-watch-comments-ready")}},LEY=function(X,H){var l;
(l=X.JSC$21484_watchApi.getElement("COMMENTS"))==null||l.setAttribute("canScheduleJobs",H)};var InC=["engagement-panel-ads"],oLC=function(X){_.$e.call(this);var H=this;this.JSC$21487_watchApi=X;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.P("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.P("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.P("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Yy("swatcheroo_provide_all_data_delay_ms",
250);if(this.swatcherooProvideAllDataOnScheduledJob)Acp(this);else{var l=this.JSC$21487_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){X4p(H);zz(H)}),b=this.JSC$21487_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){n4(H);
zz(H)});
this.JSC$21487_watchApi.getRoot().is==="ytd-watch-grid"&&_.P("swatcheroo_pbs_load_grid")&&(HMd(this),l2e(this));this.addOnDisposeCallback(function(){H.JSC$21487_watchApi.unsubscribeByKey(l);H.JSC$21487_watchApi.unsubscribeByKey(b);_.Ss.cancelJob(H.provideRichGridJobId)});
X4p(this);n4(this)}};
_.S(oLC,_.$e);var Acp=function(X){var H=X.JSC$21487_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){X.providePlayerJobId=_.oJ(_.Ss,function(){X4p(X);zz(X)},X.provideAllDataDelayMs)}),l=X.JSC$21487_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){X.provideWatchNextJobId=_.oJ(_.Ss,function(){n4(X);
zz(X)},X.provideAllDataDelayMs)}),b=X.JSC$21487_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){X.provideWatchNextJobId=_.oJ(_.Ss,function(){n4(X);
zz(X)},X.provideAllDataDelayMs)});
X.JSC$21487_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.eh(_.Ss,function(){X4p(X);n4(X);zz(X)},100)});
X.JSC$21487_watchApi.addPageDisposeJob(function(){_.Ss.cancelJob(X.provideWatchNextJobId);_.Ss.cancelJob(X.providePlayerJobId)});
X.addOnDisposeCallback(function(){X.JSC$21487_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");X.JSC$21487_watchApi.unsubscribeByKey(H);X.JSC$21487_watchApi.unsubscribeByKey(l);X.JSC$21487_watchApi.unsubscribeByKey(b);_.Ss.cancelJob(X.providePlayerJobId);_.Ss.cancelJob(X.provideWatchNextJobId)});
X4p(X);n4(X)},X4p=function(X){var H=X.JSC$21487_watchApi.getPlayerResponse(),l,b,U=(b=H==null?void 0:(l=H.playabilityStatus)==null?void 0:l.messageRenderers)!=null?b:[],K,w;
H=(w=H==null?void 0:(K=H.playabilityStatus)==null?void 0:K.messages)!=null?w:[];K=_.C(H);for(w=K.next();!w.done;w=K.next())U.push({alertRenderer:{text:_.xM(w.value),type:"WARNING"}});X.JSC$21487_watchApi.provideRenderingData("ALERTS",U)},n4=function(X){var H=[],l,b,U,K=X.JSC$21487_watchApi.getWatchNextResponse(),w,d,B,q,u=K==null?void 0:(w=K.contents)==null?void 0:(d=w.twoColumnWatchNextResults)==null?void 0:(B=d.results)==null?void 0:(q=B.results)==null?void 0:q.contents;
if(u)for(w=_.C(u),d=w.next();!d.done;d=w.next())if(d=d.value,d.videoPrimaryInfoRenderer)var e=d;else if(d.videoSecondaryInfoRenderer){var y=d;q=B=void 0;d=Object.assign({},(B=d.videoSecondaryInfoRenderer)==null?void 0:(q=B.metadataRowContainer)==null?void 0:q.metadataRowContainerRenderer);if(d.rows&&d.collapsedItemCount!==void 0){d.rows=d.rows.slice(0,d.collapsedItemCount).filter(function(AQ){return!!AQ.richMetadataRowRenderer});
d.collapsedItemCount=d.rows.length;var V={metadataRowContainerRenderer:d}}}else if(d.merchandiseShelfRenderer)var p=d;else if(d.ticketShelfRenderer)var z=d;else if(d.expandableMetadataRenderer)var t=d;else if(d.itemSectionRenderer)if(B=d.itemSectionRenderer.contents,q=void 0,X.directlyProvideComments&&((q=d.itemSectionRenderer)==null?void 0:q.sectionIdentifier)==="comment-item-section")_.sf("cmi"),X.JSC$21487_watchApi.provideRenderingData("COMMENTS",d.itemSectionRenderer);else if(B)for(d=_.C(B),B=
d.next();!B.done;B=d.next())if(B=B.value,B.commentsEntryPointHeaderRenderer)var W=B;else if(B.clarificationRenderer||B.infoPanelContainerRenderer||B.infoPanelContentRenderer||B.emergencyOneboxRenderer){H.push(B);var G=G||!!y}else B.limitedStateMessageRenderer?b=B:B.videoMetadataCarouselViewModel&&(U=B);if(_.P("web_watch_merch_in_sd_when_ticket_shelf_present")&&p&&z){var r=p;p=void 0}if(X.provideWatchNextSecondaryResults){var Q,v,J;X.JSC$21487_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
K==null?void 0:(Q=K.contents)==null?void 0:(v=Q.twoColumnWatchNextResults)==null?void 0:(J=v.secondaryResults)==null?void 0:J.secondaryResults)}if(X.JSC$21487_watchApi.getRoot().is==="ytd-watch-grid"){var Y,Uy;X.JSC$21487_watchApi.provideRenderingData("LIVE_CHAT",K==null?void 0:(Y=K.contents)==null?void 0:(Uy=Y.twoColumnWatchNextResults)==null?void 0:Uy.conversationBar)}var Cy,sy,FO,ub;(Q=K==null?void 0:(Cy=K.contents)==null?void 0:(sy=Cy.twoColumnWatchNextResults)==null?void 0:(FO=sy.secondaryResults)==
null?void 0:(ub=FO.secondaryResults)==null?void 0:ub.offerModule)&&(Q.donationShelfRenderer||Q.donationUnavailableRenderer)&&X.JSC$21487_watchApi.getRoot().is!=="ytd-watch-grid"&&(l=Q);Cy=X.JSC$21487_watchApi.getPlayerResponse();if(!Cy||!_.qWl(Cy.playabilityStatus,K==null?void 0:K.playerOverlays)){var g8;if(K==null?0:(g8=K.contents)==null?0:g8.singleColumnWatchNextResults){var mm,QZ;var Bz=K==null?void 0:(mm=K.contents.singleColumnWatchNextResults.results)==null?void 0:(QZ=mm.results)==null?void 0:
QZ.contents}else{var dt,TK,sG,f_;g8=!!(u==null?0:(dt=u[0])==null?0:(TK=dt.itemSectionRenderer)==null?0:(sG=TK.contents)==null?0:(f_=sG[0])==null?0:f_.backgroundPromoRenderer);var Mv,nd;dt=!!(K==null?0:(Mv=K.contents)==null?0:(nd=Mv.twoColumnWatchNextResults)==null?0:nd.secondaryResults);g8&&!dt&&(Bz=u)}}u=H[0];Mv=H[1];G&&H.length===1&&(Mv=u,u=void 0);X.JSC$21487_watchApi.provideRenderingData("PRIMARY_INFO",e);X.JSC$21487_watchApi.provideRenderingData("SECONDARY_INFO",y);X.JSC$21487_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
W);X.JSC$21487_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",U);X.JSC$21487_watchApi.provideRenderingData("CLARIFICATION",u);X.JSC$21487_watchApi.provideRenderingData("RICH_METADATA",V);X.JSC$21487_watchApi.provideRenderingData("MERCH_SHELF",p);_.P("web_watch_merch_in_sd_when_ticket_shelf_present")&&X.JSC$21487_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",r);X.JSC$21487_watchApi.provideRenderingData("TICKET_SHELF",z);X.JSC$21487_watchApi.provideRenderingData("LIMITED_STATE",b);X.JSC$21487_watchApi.getRoot().is!==
"ytd-watch-grid"&&X.JSC$21487_watchApi.provideRenderingData("DONATION_SHELF",l);X.JSC$21487_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Bz);X.JSC$21487_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Mv);X.JSC$21487_watchApi.provideRenderingData("EXPANDABLE_METADATA",t);if(X.swatcherooProvideAllDataOnScheduledJob){var $U,MW,ZL,uF,rt,xQ;e=K==null?void 0:($U=K.contents)==null?void 0:(MW=$U.twoColumnWatchNextResults)==null?void 0:(ZL=MW.secondaryResults)==null?void 0:(uF=ZL.secondaryResults)==
null?void 0:(rt=uF.results)==null?void 0:(xQ=rt[0])==null?void 0:xQ.richGridRenderer;X.JSC$21487_watchApi.provideRenderingData("RICH_GRID_RENDERER",e)}};
oLC.prototype.hasCompanionAds=function(X){var H,l;return(l=X==null?void 0:(H=X.adPlacements)==null?void 0:H.some(function(b){var U,K,w,d;return(b==null?void 0:(U=b.adPlacementRenderer)==null?void 0:(K=U.renderer)==null?void 0:K.actionCompanionAdRenderer)||(b==null?void 0:(w=b.adPlacementRenderer)==null?void 0:(d=w.renderer)==null?void 0:d.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?l:!1};
var zz=function(X){if(!_.P("swaterdoo_ps_wn_handle_ks")){X.swatcherooProvideAllDataOnScheduledJob||l2e(X,3E3);var H=X.JSC$21487_watchApi.getPlayerResponse(),l,b,U,K,w,d=(l=X.JSC$21487_watchApi.getWatchNextResponse())==null?void 0:(b=l.contents)==null?void 0:(U=b.twoColumnWatchNextResults)==null?void 0:(K=U.secondaryResults)==null?void 0:(w=K.secondaryResults)==null?void 0:w.offerModule;H=X.hasCompanionAds(H);var B,q;l=(d==null?void 0:(B=d.tvfilmOfferModuleRenderer)==null?void 0:B.clientShouldSuppressIfCompanionAdDisplayed)||
(d==null?void 0:(q=d.unlimitedOfferModuleRenderer)==null?void 0:q.suppressIfCompanionAds);B=H&&l;X.JSC$21487_watchApi.getRoot().is==="ytd-watch-grid"&&X.JSC$21487_watchApi.provideRenderingData("OFFER_MODULE",B?void 0:d)}},l2e=function(X,H){_.P("swatcheroo_pbs_load_grid")&&(X.provideRichGridJobId&&_.Ss.cancelJob(X.provideRichGridJobId),X.provideRichGridJobId=_.oJ(_.Ss,function(){X.provideRichGridJobId=0;
var l,b,U,K,w,d,B,q=(l=X.JSC$21487_watchApi.getWatchNextResponse())==null?void 0:(b=l.contents)==null?void 0:(U=b.twoColumnWatchNextResults)==null?void 0:(K=U.secondaryResults)==null?void 0:(w=K.secondaryResults)==null?void 0:(d=w.results)==null?void 0:(B=d[0])==null?void 0:B.richGridRenderer;q&&X.JSC$21487_watchApi.provideRenderingData("RICH_GRID_RENDERER",q)},H))},HMd=function(X){var H,l;
_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21487_watchApi.playerApi,2);H=b.yieldResult;l=function(){X.onPlaybackStart()};
H.addEventListener("onPlaybackStartExternal",l);X.addOnDisposeCallback(function(){H.removeEventListener("onPlaybackStartExternal",l)});
_.m5(b)})};
oLC.prototype.onPlaybackStart=function(){l2e(this)};var bMY=_.cS(115994),UN5=_.cS(115993),kz=function(X,H,l){var b=this;var U=l.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 b.dragDownAction()}}}};
this.JSC$21502_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return b.dragDownAction()}}}};
this.fullscreen=!1;var K=_.lv();_.Ji(K,bMY,this.layer);_.Ji(K,UN5,this.layer);this.dragDownAction=function(){U();_.pl(K,{visualElement:b.fullscreen?bMY:UN5})};
this.gesture=new il(X,H,this.getConfig(!1),"pandown");this.attach()};
kz.prototype.attach=function(){this.gesture.attach()};
kz.prototype.detach=function(){this.gesture.detach()};
kz.prototype.update=function(X){this.fullscreen=X;var H=this.gesture;X=this.getConfig(X);H.config=X};
kz.prototype.getConfig=function(X){return X?this.JSC$21502_watchFullScreenConfig:this.JSC$21502_watchConfig};var K_U=function(X){_.$e.call(this);var H=this;this.JSC$21505_watchApi=X;X.playerApi.then(function(l){H.player=l});
this.gestures=new kz(this.JSC$21505_watchApi.getRoot(),X.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(oM5(_.WF().getState())&&LE(_.WF().getState())<=0)if(_.qn(_.WF().getState())){var l;(l=H.player)==null||l.toggleFullscreen()}else _.TP(H.JSC$21505_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
$Ne(this)};
_.S(K_U,_.$e);var $Ne=function(X){var H=_.bC(_.WF(),_.qn,function(l){X.onFullscreenChanged(l)});
X.addOnDisposeCallback(H);H=_.bC(_.WF(),LE,function(l){X.gestures&&(l>0?X.gestures.detach():X.gestures.attach())});
X.addOnDisposeCallback(H)};
K_U.prototype.onFullscreenChanged=function(X){this.gestures&&this.gestures.update(X)};var R7y=["PLAYLIST"],w4Y=function(X){_.$e.call(this);var H=this;this.JSC$21508_watchApi=X;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(X.subscribeToActiveChanged(function(l){H.onActiveChanged(l)}));
COe(this)};
_.S(w4Y,_.$e);var dN5=function(X){X.pageDisposalDataTypes=Object.values(JX$).filter(function(H){return!R7y.includes(H)})},COe=function(X){if(_.P("swatcheroo_enable_ghost_cards")||_.P("web_watch_clear_data_on_page_dispose"))dN5(X),X.JSC$21508_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Ss.cancelJob(X.clearDataJobId);
X.clearDataJobId=0}),X.runPageDisposeJob=function(){var H=_.jJ().resolve(_.gd).getDestinationPageType()==="watch";
X.clearDataJobId=_.oJ(_.Ss,X.runClearDataJob,H?0:_.Yy("web_watch_delay_page_dispose_ms",1E4))},X.runClearDataJob=function(){h7U(X)},X.runOnYtNavigateAwayFinish=function(){X.clearDataJobId&&(_.Ss.cancelJob(X.clearDataJobId),X.clearDataJobId=0,h7U(X))},document.addEventListener("yt-navigate-finish",X.runOnYtNavigateAwayFinish),X.JSC$21508_watchApi.addPageDisposeJob(X.runPageDisposeJob),X.addOnDisposeCallback(function(){X.JSC$21508_watchApi.removePageDisposeJob(X.runPageDisposeJob);
X.JSC$21508_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",X.runOnYtNavigateAwayFinish)})},h7U=function(X){X.pageDisposalDataTypes.forEach(function(H){X.JSC$21508_watchApi.provideRenderingData(H,void 0)});
X.clearDataJobId=0};
w4Y.prototype.onActiveChanged=function(X){X&&((X=document.querySelector("#watch-page-skeleton"))&&_.HE(X),F_y(this),document.body.removeAttribute("no-y-overflow"),_.G7("IS_SHELL_LOAD")&&zPy())};
var F_y=function(X){_.h(function(H){if(H.nextAddress==1)return H.yield(X.JSC$21508_watchApi.playerApi,2);_.Ds();_.m5(H)})};var BOY=_.P("kevlar_watch_while_counterfactual")?0:.25,uGZ=function(X){_.$e.call(this);this.JSC$21511_watchApi=X;this.JSC$21511_watchWhileEnabled=_.P("kevlar_watch_while_v2");this.JSC$21511_watchPipEnabled=_.P("web_watch_pip");qEx(this);sbY(this);MCZ(this)};
_.S(uGZ,_.$e);var qEx=function(X){X.JSC$21511_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){e7Z(X)});
X.addOnDisposeCallback(function(){X.JSC$21511_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},sbY=function(X){var H,l;
_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21511_watchApi.playerApi,2);H=b.yieldResult;l=function(U){U&&X.JSC$21511_watchPipEnabled?yeN(X):e7Z(X)};
H.addEventListener("onCollapseMiniplayer",l);X.addOnDisposeCallback(function(){H.removeEventListener("onCollapseMiniplayer",l)});
_.m5(b)})},MCZ=function(X){var H=X.JSC$21511_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&H&&X.JSC$21511_watchWhileEnabled&&(X.playerIntersectionObserver=new IntersectionObserver(function(l){X.handleIntersect(l)},{threshold:[BOY]}),X.playerIntersectionObserver.observe(H),X.addOnDisposeCallback(function(){var l;
(l=X.playerIntersectionObserver)==null||l.disconnect()}))},e7Z=function(X){var H,l,b;
_.h(function(U){if(U.nextAddress==1)return H=_.jJ().resolve(_.gd),l=H.data,b=_.JEK(l.response,l.playerResponse),_.HW().miniplayerButtonActivation=!0,_.jJ().resolve(_.f9).collapse(),U.yield(_.HW().navigationFinishPromise,2);if(U.nextAddress!=3)return _.HW().currentEndpoint=b.watchEndpoint||null,U.yield(_.jJ().resolve(_.f9).activate(X.JSC$21511_watchApi.getElement("PLAYER"),b,l),3);_.HW().userActivation=!0;_.m5(U)})},yeN=function(X){var H,l,b;
_.h(function(U){if(U.nextAddress==1)return _.jJ().resolve(_.f9).pictureInPictureSupported()?U.jumpTo(2):U.yield(X.JSC$21511_watchApi.playerApi,3);if(U.nextAddress!=2)return H=U.yieldResult,(l=H)==null||l.togglePictureInPicture(),U.return();b=_.jJ().resolve(_.gd);_.HW().watchPipActivation=!0;_.SAA(_.jJ().resolve(_.f9),b.data);_.m5(U)})};
uGZ.prototype.handleIntersect=function(X){VCU(this,X[X.length-1])};
var VCU=function(X,H){X.watchWhileJobId&&_.Ss.cancelJob(X.watchWhileJobId);X.watchWhileJobId=_.Ss.addLowPriorityJob(function(){var l,b;return _.h(function(U){if(U.nextAddress==1)return X.watchWhileJobId=void 0,l=_.jJ().resolve(_.f9),H.intersectionRatio>BOY?l.isMiniplayerActive()?U.yield(l.deactivate(),0):U.jumpTo(0):(b=!l.isMiniplayerActive())?U.yield(POd(X),5):U.jumpTo(4);U.nextAddress!=4&&(b=U.yieldResult);if(!b)return U.jumpTo(0);_.HW().watchWhileActivation=!0;return U.yield(f2e(X),0)})},100)},
POd=function(X){return _.h(function(H){return H.nextAddress==1?_.P("kevlar_watch_while_paused")?H.return(!0):H.yield(X.isPlayerPlaying(),2):H.return(H.yieldResult)})};
uGZ.prototype.isPlayerPlaying=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return l.yield(X.JSC$21511_watchApi.playerApi,2);H=l.yieldResult;return l.return(H.getPlayerStateObject().isPlaying)})};
var f2e=function(X){var H,l;return _.h(function(b){H=_.jJ().resolve(_.gd).data;l=_.JEK(H.response,H.playerResponse);_.HW().currentEndpoint=l.watchEndpoint||null;return b.yield(_.jJ().resolve(_.f9).activate(X.JSC$21511_watchApi.getElement("PLAYER"),l,H),0)})};var z7y=function(X){_.$e.call(this);this.JSC$21515_watchApi=X;p4N(this);SEa(this)};
_.S(z7y,_.$e);var SEa=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21515_watchApi.playerApi,2);H=b.yieldResult;l=function(U){var K;U.sessionData&&U.sessionData.itct&&(K=U.sessionData.itct);var w=U.watchEndpoint;if(w&&U.sessionData&&U.sessionData.autonav)w=_.RtO(w,K);else{var d;w=_.aO(U.videoId,(d=U.listId)!=null?d:void 0,K)}K={endpoint:w};U.sessionData&&(K.tempData=U.sessionData);X.JSC$21515_watchApi.dispatchEvent("yt-navigate",K)};
H.addEventListener("onPlayVideo",l);X.addOnDisposeCallback(function(){H.removeEventListener("onPlayVideo",l)});
_.m5(b)})},p4N=function(X){var H=function(l){X.onYtNavigate(l)};
X.JSC$21515_watchApi.getRoot().addEventListener("yt-navigate",H);X.addOnDisposeCallback(function(){X.JSC$21515_watchApi.getRoot().removeEventListener("yt-navigate",H)})};
z7y.prototype.onYtNavigate=function(X){var H=this,l,b,U,K,w,d,B,q,u;return _.h(function(e){if(e.nextAddress==1){if(!((l=X.detail)==null?0:(b=l.endpoint)==null?0:b.watchEndpoint))return e.return();U=X.detail.endpoint.watchEndpoint;K=H.JSC$21515_watchApi.getWatchNextResponse();d=_.f((w=K)==null?void 0:w.currentVideoEndpoint,_.ku);if(!d)return e.return();if(U.videoId!==d.videoId||U.playlistId&&U.playlistId!==d.playlistId||typeof U.startTimeSeconds!=="number")return e.jumpTo(0);X.stopPropagation();(B=
_.P("kevlar_watch_while_v2")&&!_.P("kevlar_watch_while_counterfactual"))&&_.jJ().resolve(_.f9).isMiniplayerActive()||H.JSC$21515_watchApi.scrollWatchTo(0,!0);return e.yield(H.JSC$21515_watchApi.playerApi,3)}q=e.yieldResult;u=U.startTimeSeconds;q.seekTo(u,void 0,void 0,void 0,84);q.wakeUpControls();u<q.getDuration()&&q.playVideo();_.m5(e)})};var knY=function(X){_.$e.call(this);var H=this;this.JSC$21518_watchApi=X;var l=this.JSC$21518_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){nLN(H)});
this.addOnDisposeCallback(function(){H.JSC$21518_watchApi.unsubscribeByKey(l)});
nLN(this);_.P("enable_ai_companion")&&(X=this.JSC$21518_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&v7y(X,"WATCH")};
_.S(knY,_.$e);var nLN=function(X){var H=X.JSC$21518_watchApi.getWatchNextResponse();if(H){var l,b=[].concat(_.LJ((l=H==null?void 0:H.engagementPanels)!=null?l:[]));_.P("web_watch_comments_visible_by_default")&&(l=b.find(function(U){var K;return((K=U.engagementPanelSectionListRenderer)==null?void 0:K.targetId)==="engagement-panel-comments-section"}),l==null?0:l.engagementPanelSectionListRenderer)&&(l.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
b.unshift.apply(b,_.LJ(xNd(H)));X.JSC$21518_watchApi.provideRenderingData("ENGAGEMENT_PANELS",b)}},tC5=function(X){var H,l,b,U=(H=X.engagementPanels)==null?void 0:(l=H.find(function(V){var p;
return((p=V.engagementPanelSectionListRenderer)==null?void 0:p.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(b=l.engagementPanelSectionListRenderer.content)==null?void 0:b.structuredDescriptionContentRenderer,K;
if(_.f(U==null?void 0:(K=U.items)==null?void 0:K.find(function(V){return!!_.f(V,Nmd)}),Nmd))return!0;
var w,d,B,q;if(X=(((w=X.contents)==null?void 0:(d=w.twoColumnWatchNextResults)==null?void 0:(B=d.results)==null?void 0:(q=B.results)==null?void 0:q.contents)||[]).find(function(V){return V.videoPrimaryInfoRenderer})){var u,e,y;
return(((u=X.videoPrimaryInfoRenderer)==null?void 0:(e=u.videoActions)==null?void 0:(y=e.menuRenderer)==null?void 0:y.flexibleItems)||[]).some(function(V){V=_.f(V,_.OL_);if(!V)return!1;var p,z;V=(p=V.topLevelButton)==null?void 0:(z=p.buttonViewModel)==null?void 0:z.onTap;if(!V)return!1;p=_.sl(V);if(!p)return!1;if(DNA(p))return!0;if(_.P("enable_creator_chatbot")){p=_.f(p,_.J$);if(!p)return!1;var t;return(t=p.commands)==null?void 0:t.some(function(W){return DNA(W)})}return!1})}return!1},DNA=function(X){var H;
return((H=_.f(X,_.up))==null?void 0:H.panelIdentifier)==="PAyouchat"},xNd=function(X){var H=[];
if(!_.P("web_watch_inject_placeholder_fantasy_panel_killswitch")){var l,b,U,K=(l=X.engagementPanels)==null?void 0:(b=l.find(function(d){var B;return((B=d.engagementPanelSectionListRenderer)==null?void 0:B.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(U=b.engagementPanelSectionListRenderer.content)==null?void 0:U.structuredDescriptionContentRenderer,w;
_.f(K==null?void 0:(w=K.items)==null?void 0:w.find(function(d){return!!_.f(d,aw$)}),aw$)&&(l=_.JMN("PAsports_fantasy"),l.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H.push(l))}tC5(X)&&(X=_.JMN("PAyouchat"),X.engagementPanelSectionListRenderer.targetId="PAyouchat",X.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H.push(X));
return H};var EL5=function(X){_.$e.call(this);this.JSC$21521_watchApi=X;W_C(this)};
_.S(EL5,_.$e);var W_C=function(X){X.JSC$21521_watchApi.registerActionHandler("yt-loop-command",function(H){gLp(X,H)});
X.JSC$21521_watchApi.registerActionHandler("yt-repeat-chapter-command",function(H){Gna(X,H)});
X.addOnDisposeCallback(function(){X.JSC$21521_watchApi.unregisterActionHandler("yt-loop-command");X.JSC$21521_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},gLp=function(X,H){var l;
_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21521_watchApi.playerApi,2);l=b.yieldResult;_.f(H,kyy).loop?(l.setLoopRange({startTimeMs:Number(_.f(H,kyy).startTimeMs),endTimeMs:Number(_.f(H,kyy).endTimeMs),postId:_.f(H,kyy).postId,type:"clips"}),l.playVideo()):l.setLoopRange(null);_.m5(b)})},Gna=function(X,H){var l,b;
_.h(function(U){if(U.nextAddress==1)return U.yield(X.JSC$21521_watchApi.playerApi,2);l=U.yieldResult;b=_.f(H,w3Z).repeat;b==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(l.setLoopRange({startTimeMs:Number(_.f(H,w3Z).startTimeMs),endTimeMs:Number(_.f(H,w3Z).endTimeMs),type:"repeatChapter"}),l.playVideo()):b==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&l.setLoopRange(null);_.m5(U)})};var ZMe=function(X){_.$e.call(this);this.JSC$21526_watchApi=X;a2U(this)};
_.S(ZMe,_.$e);var a2U=function(X){X.JSC$21526_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(H){iMx(X,H)});
X.addOnDisposeCallback(function(){X.JSC$21526_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},iMx=function(X,H){var l,b,U,K,w,d,B,q,u,e,y;
_.h(function(V){if(V.nextAddress==1)return V.yield(X.JSC$21526_watchApi.playerApi,2);l=V.yieldResult;if(K=(U=(b=_.f(H,dHe))==null?void 0:b.highlightedMenuItemKey)!=null?U:"")(d=(w=l).highlightSettingsMenuItem)==null||d.call(w,K);if(u=(q=(B=_.f(H,dHe))==null?void 0:B.openMenuItemKey)!=null?q:"")(y=(e=l).openSettingsMenuItem)==null||y.call(e,u);_.m5(V)})};var vL$=_.rc("/youtube/app/watch/player_state","playerStateEntity");var xz=function(X){_.$e.call(this);this.JSC$21529_watchApi=X;OMe(this)};
_.S(xz,_.$e);var mNY=function(X){switch(X){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"}},OMe=function(X){var H,l,b,U,K;
_.h(function(w){if(w.nextAddress==1)return w.yield(X.JSC$21529_watchApi.playerApi,2);H=w.yieldResult;if(X.isDisposed())return w.return();l=function(d){X.onPlayerStateChange(d)};
b=function(d){X.onAdStateChange(d)};
U=function(){X.onAdSkip()};
K=function(d){X.onVideoDataChange(d)};
H.addEventListener("onStateChange",l);H.addEventListener("onAdStateChange",b);H.addEventListener("onAdSkip",U);H.addEventListener("onVideoDataChange",K);X.addOnDisposeCallback(function(){H.removeEventListener("onStateChange",l);H.removeEventListener("onAdStateChange",b);H.removeEventListener("onAdSkip",U);H.removeEventListener("onVideoDataChange",K)});
_.m5(w)})},Qba=function(X){var H=_.tF(),l=H.dispatch;
a:switch(X.adsState){case -1:case 0:var b="ADS_STATE_NONE";break a;case 1:case 2:case 3:b="ADS_STATE_PLAYING";break a;default:b="ADS_STATE_UNKNOWN"}l.call(H,_.Us("playerStateEntity",vL$,{key:vL$,playerState:mNY(X.playerState),adsState:b,videoId:X.videoId}))};
xz.prototype.onPlayerStateChange=function(X){var H=this,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(H.JSC$21529_watchApi.playerApi,2);l=b.yieldResult;if(H.isDisposed())return b.return();H.playerState=X;H.videoId=l.getVideoData().video_id;Qba(H);_.m5(b)})};
xz.prototype.onAdStateChange=function(X){this.adsState=X;Qba(this)};
xz.prototype.onAdSkip=function(){this.adsState=0;Qba(this)};
xz.prototype.onVideoDataChange=function(X){X.type==="newdata"&&(this.adsState=-1,Qba(this))};var NOU=function(X){_.$e.call(this);var H=this;this.JSC$21533_watchApi=X;this.enableExternalPlaylistPanelInPlayer=_.P("delhi_web_player_use_external_playlist_panel");_.jJ().resolve(_.S3).setPlayer(this.JSC$21533_watchApi.getElement("PLAYER"));X=this.JSC$21533_watchApi.subscribeToActiveChanged(function(l){H.onActiveChanged(l)});
this.addOnDisposeCallback(X);TOa(this)};
_.S(NOU,_.$e);var TOa=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return X.enableExternalPlaylistPanelInPlayer?b.yield(X.JSC$21533_watchApi.playerApi,2):b.return();H=b.yieldResult;l=function(){if(X.playlistPanelElement)X.playlistPanelElement.onToggleExpanded()};
H.addEventListener("onToggleExternalPlaylistPanel",l);X.addOnDisposeCallback(function(){H.removeEventListener("onToggleExternalPlaylistPanel",l)});
_.m5(b)})};
NOU.prototype.onActiveChanged=function(X){var H=this,l=_.jJ().resolve(_.S3),b=function(){ceZ(H)};
X?(this.playlistPanelElement=this.JSC$21533_watchApi.getElement("PLAYLIST_PANEL"))?(l.setPlaylistComponent(this.playlistPanelElement),l.addEventListener("yt-playlist-data-updated",b),this.addOnDisposeCallback(function(){l.removeEventListener("yt-playlist-data-updated",b)}),ceZ(this)):_.v$(Error("Ul")):(l.removeEventListener("yt-playlist-data-updated",b),l.cancelVideoSkip())};
var ceZ=function(X){var H=_.jJ().resolve(_.S3);X.JSC$21533_watchApi.provideRenderingData("PLAYLIST",H.getPlaylistData())};var Dn=function(X){_.$e.call(this);var H=this;this.JSC$21536_watchApi=X;this.onPageScroll=function(){H.scrollThrottle.fire();H.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.jw(this.onThrottledScroll,200,this);_.LY(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.jw(this.onMastheadThrottledScroll,50,this);_.LY(this,this.mastheadScrollThrottle);this.animation=new _.ZB(function(l){H.JSC$21536_watchApi.getRoot().setScrollTop(l)});
X=_.bC(_.WF(),_.qn,function(){H.onFullscreenChanged()});
this.addOnDisposeCallback(X);jbU(this);re$(this);this.onThrottledScroll()};
_.S(Dn,_.$e);
Dn.prototype.onFullscreenChanged=function(){var X=this,H=this.JSC$21536_watchApi.getRoot();!this.pageScrollElement&&H.pageScrollElement?(this.pageScrollElement=H.pageScrollElement,H.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){X.pageScrollElement&&X.pageScrollElement.removeEventListener("scroll",X.onPageScroll)})):this.pageScrollElement&&!H.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var jbU=function(X){window.addEventListener("scroll",X.onPageScroll);X.addOnDisposeCallback(function(){window.removeEventListener("scroll",X.onPageScroll)})},re$=function(X){X.JSC$21536_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(H){a:{var l;
if(l=X.JSC$21536_watchApi.getRoot().contains(H)&&!X.animation.isAnimating()){l=H.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var b,U,K=(H==null?void 0:(b=H.parentElement)==null?void 0:(U=b.parentElement)==null?void 0:U.id)==="fixed-secondary";l=!(l&&K)}if(l){if(_.P("kevlar_watch_scroll_manager_absolute_offset_killswitch"))b=H.offsetTop;else for(b=0,U=H;U!==null;)b+=U.offsetTop,b-=U.scrollTop,U=U.offsetParent;U=b;b=U-24;H=U+H.offsetHeight+24;U=X.JSC$21536_watchApi.getRoot().getPageScrollingElement();
l=X.JSC$21536_watchApi.getRoot().getScrollTop();K=l+U.clientHeight-56;if(b<l+56)H=b-56;else if(H>K)H-=U.clientHeight;else break a;X.scrollWatchTo(Math.max(0,H),!0)}}});
X.addOnDisposeCallback(function(){X.JSC$21536_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
Dn.prototype.onThrottledScroll=function(){var X=_.WF(),H=X.dispatch,l=this.JSC$21536_watchApi.getRoot().getScrollTop();H.call(X,_.Of({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:l}}))};
Dn.prototype.onMastheadThrottledScroll=function(){this.JSC$21536_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$21536_watchApi.getRoot().getScrollTop())};
Dn.prototype.scrollWatchTo=function(X,H){(H===void 0?0:H)?this.animation.start(this.JSC$21536_watchApi.getRoot().getScrollTop(),Math.max(0,X),500):this.JSC$21536_watchApi.getRoot().setScrollTop(X)};var YEe=function(X){_.$e.call(this);var H=this;this.JSC$21539_watchApi=X;var l=this.JSC$21539_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){JeA(H)}),b=this.JSC$21539_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){L_Z(H)});
this.addOnDisposeCallback(function(){H.JSC$21539_watchApi.unsubscribeByKey(l);H.JSC$21539_watchApi.unsubscribeByKey(b)});
JeA(this);L_Z(this)};
_.S(YEe,_.$e);
var JeA=function(X){var H,l,b,U=(b=(H=X.JSC$21539_watchApi.getPlayerResponse())==null?void 0:(l=H.videoDetails)==null?void 0:l.title)!=null?b:"";X.JSC$21539_watchApi.dispatchEvent("yt-update-title",U)},L_Z=function(X){var H,l,b,U,K,w,d,B=(d=((w=(H=X.JSC$21539_watchApi.getWatchNextResponse())==null?void 0:(l=H.contents)==null?void 0:(b=l.twoColumnWatchNextResults)==null?void 0:(U=b.results)==null?void 0:(K=U.results)==null?void 0:K.contents)!=null?w:[]).find(function(q){return!!q.videoPrimaryInfoRenderer}))==null?
void 0:d.videoPrimaryInfoRenderer;
(H=_.D8(B==null?void 0:B.title))&&X.JSC$21539_watchApi.dispatchEvent("yt-update-title",H)};var Aed=function(X){_.$e.call(this);this.JSC$21542_watchApi=X;I2p(this)};
_.S(Aed,_.$e);var I2p=function(X){var H,l;_.h(function(b){if(b.nextAddress==1)return b.yield(X.JSC$21542_watchApi.playerApi,2);H=b.yieldResult;l=function(){X.onYpcContentRequest()};
H.addEventListener("onYpcContentRequest",l);X.addOnDisposeCallback(function(){H.removeEventListener("onYpcContentRequest",l)});
_.m5(b)})};
Aed.prototype.onYpcContentRequest=function(){var X,H,l,b,U,K=(X=this.JSC$21542_watchApi.getWatchNextResponse())==null?void 0:(H=X.contents)==null?void 0:(l=H.twoColumnWatchNextResults)==null?void 0:(b=l.secondaryResults)==null?void 0:(U=b.secondaryResults)==null?void 0:U.offerModule,w,d,B,q;X=(q=(B=(d=(w=K==null?void 0:K.episodeOfferModuleRenderer)!=null?w:K==null?void 0:K.movieOfferModuleRenderer)!=null?d:K==null?void 0:K.unlimitedOfferModuleRenderer)!=null?B:K==null?void 0:K.liveOfferModuleRenderer)!=
null?q:K==null?void 0:K.tvfilmOfferModuleRenderer;var u,e,y;K=(y=K==null?void 0:(u=K.tvfilmOfferModuleRenderer)==null?void 0:(e=u.actionButtons)==null?void 0:e.length)!=null?y:0;e=Math.max(K-1,0);var V,p,z;u=(z=X==null?void 0:(V=X.offerButton)==null?void 0:V.buttonRenderer)!=null?z:X==null?void 0:(p=X.actionButtons)==null?void 0:p[e].buttonRenderer;var t,W;(V=(W=(t=u==null?void 0:u.navigationEndpoint)!=null?t:u==null?void 0:u.serviceEndpoint)!=null?W:u==null?void 0:u.command)&&_.JF.instance.resolveCommand(V)};var XsZ=function(X){na.call(this);var H=this;this.rootElement=X;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return H.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(l){H.initOrDisposeActiveModules(l)}));
this.onAttached()};
_.S(XsZ,na);_.R=XsZ.prototype;_.R.getRoot=function(){return this.rootElement};
_.R.getElement=function(X){return this.rootElement.getElement(X)};
_.R.setPlayerResponse=function(X){this.playerResponse=X;this.publish("PLAYER_RESPONSE_UPDATED",X)};
_.R.getPlayerResponse=function(){return this.playerResponse};
_.R.setWatchNextResponse=function(X){this.watchNextResponse===X?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=X,this.publish("WATCH_NEXT_RESPONSE_UPDATED",X))};
_.R.getWatchNextResponse=function(){return this.watchNextResponse};
_.R.registerActionHandler=function(X,H){var l=this;if(_.P("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.ik(_.Zq.getInstance(),(b[X]=H,b),this.getRoot())}else this.actionHandlers.has(X)||(this.actionHandlers.set(X,[]),b={},_.ik(_.Zq.getInstance(),(b[X]=function(){var U=_.Ab.apply(0,arguments);return(l.actionHandlers.get(X)||[]).map(function(K){return K.apply(null,_.LJ(U))})},b),this.getRoot())),this.actionHandlers.get(X).push(H)};
_.R.unregisterActionHandler=function(X){if(_.P("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.vD(_.Zq.getInstance(),(H[X]=!0,H),this.getRoot())}else(H=this.actionHandlers.get(X))?(H.pop(),H.length===0&&(H={},_.vD(_.Zq.getInstance(),(H[X]=!0,H),this.getRoot()),this.actionHandlers.delete(X))):_.x2(new _.qd("Attempted to unregister an action handler which is not registered.",X))};
_.R.addPageDisposeJob=function(X){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.DWK(this.rootElement.pageDisposeJobs,X)};
_.R.removePageDisposeJob=function(X){this.rootElement.pageDisposeJobs&&_.Oy(this.rootElement.pageDisposeJobs,X)};
_.R.dispatchEvent=function(X,H){_.QX(this.rootElement,X,H)};
_.R.provideRenderingData=function(X,H){this.rootElement.provideRenderingData(X,H)};
_.R.scrollWatchTo=function(X,H){var l;(l=this.watchScrollManager)==null||l.scrollWatchTo(X,H)};
_.R.focusOnPlayer=function(){var X=this.getElement("PLAYER");_.N0(X,function(){if(X&&X.firstElementChild){var H=X.querySelector(".html5-video-player");H&&(_.g2(_.jJ().resolve(_.HS)),H.focus())}else _.x2(Error("Vl"))})};
var Hm$=function(X){var H=!!X.rootElement.theater,l=!!X.rootElement.fullscreen,b;(b=X.watchCinematicManager)==null||ccp(b,l,H)};
_.R=XsZ.prototype;_.R.subscribeToActiveChanged=function(X,H){H=H===void 0?!0:H;var l=_.bC(_.WF(),bTa,function(b){X(b)});
H&&X(bTa(_.WF().getState()));return l};
_.R.isActive=function(){return bTa(_.WF().getState())};
_.R.onAttached=function(){var X=_.P("external_fullscreen");_.P("use_unified_flag_accessor")&&(X=_.jJ().resolve(_.XQx).retriever.getFlag(_.OUH));(X||_.G7("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.R.initPersistentModules=function(){if(_.P("kevlar_watch_flexy_theater_manager")){var X=new J7Z(this);_.LY(this,X)}X=new w4Y(this);_.LY(this,X);X=new ua(this);_.LY(this,X);X=new oLC(this);_.LY(this,X);X=new xz(this);_.LY(this,X);X=new ek(this);_.LY(this,X);_.P("kevlar_watch_flexy_playlist_manager")&&(X=new NOU(this),_.LY(this,X))};
_.R.initOrDisposeActiveModules=function(X){X?(this.watchScrollManager=new Dn(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new z7y(this)),this.activeModules.push(new cXC(this)),this.activeModules.push(new YEe(this)),this.activeModules.push(new uGZ(this)),_.P("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new YSZ(this)),this.activeModules.push(new EL5(this)),_.P("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new Aed(this)),_.P("kevlar_watch_flexy_ads_manager")&&
this.activeModules.push(new ww$(this)),_.KG("kevlar_watch_cinematics")&&(this.watchCinematicManager=new vzx(this),this.activeModules.push(this.watchCinematicManager),Hm$(this)),_.P("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new ZMe(this)),_.P("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new K_U(this)),X=_.P("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.P("kevlar_watch_flexy_comments_manager")&&!X&&this.activeModules.push(new Y5p(this)),
_.P("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new Fox(this)),this.activeModules.push(new lnd(this)),this.activeModules.push(new knY(this)),_.P("web_enable_timely_actions")&&this.activeModules.push(new $Ad(this)),_.P("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new k1N(this)),_.P("web_watch_enable_multiview_manager")&&this.activeModules.push(new e5C(this)),_.P("web_fullscreen_components")&&this.activeModules.push(new lXY(this)),_.P("web_player_rtr_ctrls")&&
this.activeModules.push(new D4N(this))):(_.aZ(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.R.disposeInternal=function(){na.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ja.Object.defineProperties(XsZ.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.gC(_.Z(function(X){var H=_.SJ("script");_.Wg(function(){var l;if(l=JSON)l=Jvp(X.data()),l=_.F3(JSON.stringify(l).replace(/</g,"\\u003C"));var b=X.data(),U=_.D8(b.title).trim().length===0,K=!b.publishDate||b.publishDate.trim().length===0,w,d,B,q,u=!((w=b.thumbnail)==null?0:(d=w.thumbnails)==null?0:d.length)||!((B=b.thumbnail)==null?0:B.thumbnails[0].url)||((q=b.thumbnail)==null?void 0:q.thumbnails[0].url.trim().length)===0;H.value&&l&&!(U||K||u)&&_.ql(H.value,l)},"Vy9K7b");
return _.F("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.F("script",{el:H,type:"application/ld+json"}))},"rk"),"player-microformat-renderer",{props:{data:_.ta}});var lxe={},ocy=["learning-journey-engagement-panel","PAlearning_chat"];
lxe.YtdLearningJourneyWatchBehavior=[_.L.YtRendererBehavior,_.n0.YtPlayerListenerBehavior,_.Gh.YtRendererstamperBehavior,_.rh.YtActionHandlerBehavior,Hw.YtPageBehavior,_.jj.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 _.G7("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.P("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 _.G7("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 _.P("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.P("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.P("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 _.Yy("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Yy("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 _.KG("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 _.P("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.P("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 _.P("web_watch_rounded_player_large")||_.P("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 _.P("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.P("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.P("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 _.P("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.P("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:hz(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:hz(["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 X=this;this.watchController=void 0;this.pageDisposeJobs=[function(){X.showMetadataPlaceholder_()},
function(){_.P("web_watch_dont_clear_comments")||X.clearComments_()},
function(){X.clearPlayerAds_()},
function(){X.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;_.P("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.P("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new PYy(function(){return _.GE(X)},
this.hostElement);
this.pageDisposeJobs.push(function(){X.youThereManager_.reset()});
_.P("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){X.resetFullerscreenEduButtonForNewPlayback_()}));
_.P("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.hB;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;_.P("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.P("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));_.P("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.J2(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(X){X&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:X}),X.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(X){_.P("kevlar_watch_flexy_theater_manager")&&(this.theater=X,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.P("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(X){!_.P("kevlar_watch_while_v2")&&!_.P("web_watch_pip")||X||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(X){this.active!==void 0&&(this.fullscreen=X,_.P("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(X){this.active!==void 0&&(_.QX(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.P("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(X>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(X){M7d("learning_journey_watch",["pbs","pbp","pbu"]);this.updatePageData_(X)},
updatePageData_:function(X){var H=this;if(X)if(this.data===X){this.onPageLoadWithSameData_();var l;(l=this.watchController)==null||l.setWatchNextResponse(this.data)}else this.data=X;this.playlist&&_.FS({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.sf("nw");this.loading=!1;_.eh(_.Ss,function(){xo$();var b,U=((b=H.player)==null?void 0:b.getVideoData().cpn)||"";guC(function(K,w){avp(K,w,U)})})},
onPageLoadWithSameData_:function(){_.P("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 X=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!X);this.set("loadingData.playlistLoading",X&&X!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),X=this.watchNextSkeletonEl_.firstElementChild;X;)X.classList.remove("hidden"),X=X.nextElementSibling;var H,l,b;X=(H=this.loadingData)==null?void 0:(l=H.endpoint)==null?void 0:(b=l.watchEndpoint)==null?void 0:b.videoId;var U;X&&(U="https://i.ytimg.com/vi/"+X+"/frame0.jpg");_.mh(this.hostElement).querySelector("#player").style.backgroundImage=U?"url("+U+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var X=_.mh(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&X&&(X.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var H,l;(l=(H=this.watchMetadata).updateSentimentBarWidth)==
null||l.call(H);var b,U;(U=(b=this.watchMetadata).resize)==null||U.call(b)}_.mh(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(X){var H=_.mh(this.hostElement).querySelector(X);H?_.ap(H,!1):_.x2(new _.qd("Overscroll monitor not found for component: ",X))},
removeSplitScrollMouseTrap:function(X){var H=_.mh(this.hostElement).querySelector(X);H?_.Zv(H):_.x2(new _.qd("Disposal component for  overscroll monitoring not found: ",X))},
onLoadingChanged_:function(X){X?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(X){var H=this;X?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Ss.addLowPriorityJob(function(){H.onWindowResized_(_.Xs(!0))})},
updateTheaterModeState_:function(X){if(!_.P("kevlar_watch_flexy_theater_manager")){X=X||this.fullWindowMode_;if(this.theater!==void 0||X)this.theater=X;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();X&&M0A()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var X=this.theater;_.P("external_fullscreen")&&this.fullscreen&&(X=!0);X=X?_.mh(this.hostElement).querySelector("#player-full-bleed-container"):_.mh(this.hostElement).querySelector("#player-container-inner");var H=this.getPlayerContainer(),l=_.P("kevlar_watch_while_v2")||_.P("web_watch_pip");H.parentElement!==X&&(l&&_.jJ().resolve(_.f9).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.GE(this).appendTo(X,H),X.appendChild(_.mh(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var X=this;return _.h(function(H){if(H.nextAddress==1)return H.yield(_.jJ().resolve(_.f9).deactivate(),2);X.updatePlayerLocation();_.m5(H)})},
updateCinematicsLocation:function(){var X=this.getElement("CINEMATICS");if(X){var H=this.getCinematicsLocationContainer();X.parentElement!==H&&H.appendChild(X);var l;(l=this.watchController)==null||Hm$(l)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.mh(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.mh(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(X,H){var l=document.documentElement.hasAttribute("dark"),b=!l&&this.cinematicLightTheme;return X&&l||H&&l||(H||X)&&b},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var X;(X=this.watchController)==null||X.setWatchNextResponse(this.data);_.P("kevlar_watch_flexy_comments_manager")||this.initComments_();_.P("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.jJ().resolve(_.S3).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.P("web_watch_start_chat_in_theater_mode")){var H,
l,b;if((H=this.data)==null?0:(l=H.contents)==null?0:(b=l.twoColumnWatchNextResults)==null?0:b.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var U,K;((U=this.data)==null?0:(K=U.contents)==null?0:K.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(X){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData);X&&X.playabilityStatus&&(H=this.isVideoPlayable_(X.playabilityStatus,this.getPlayerOverlays_(this.data)),X=Liy(X.playabilityStatus),H&&!X||_.N0(this,function(){_.sf("pbu")}));
this.setPlayerAds_();_.NG(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(X){_.WF().dispatch(_.Of({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));X?this.activate_():this.deactivate_()},
attached:function(){var X=this;this.watchController=new XsZ(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.P("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var H=_.GE(this);_.P("kevlar_disable_prepare_player")||H.preparePlayer();_.P("kevlar_watch_flexy_playlist_manager")||_.jJ().resolve(_.S3).setPlayer(H);this.updatePageMediaQueries();H={"--ytd-watch-flexy-scrollbar-width":Ts()+
"px"};!_.Yy("kv_pl_mx_sz_ks")&&_.Yy("kevlar_watch_max_player_width")&&(H["--ytd-watch-flexy-max-player-width-wide-screen"]=GEU+"px");_.Yy("kevlar_watch_flexy_metadata_height")&&(H["--ytd-watch-flexy-space-below-player"]=ZlN+"px");this.safeUpdateStyles(H);_.P("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new F0l(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return X.onPlayerTouchPanDown_()}}));
_.P("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.mh(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var X=Ts(),H=NB+X,l=H;this.fixedPanels&&(H+=Ejp);var b=657+X;X=1327+X;_.mh(this.hostElement).querySelector("#two-column-query").query="(min-width: "+H+"px)";_.mh(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(b+"px), (min-height: 630px) and (min-width: ")+(H+"px) and (max-width: ")+(X+"px)");_.mh(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(X+"px)");_.mh(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+l+"px)"},
calculateCurrentPlayerSize_:function(){return this.theater||_.P("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.tn(NaN,NaN):ilN(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return ilN(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Gp(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var X=this;this.onWindowResized_(_.Xs());_.P("browse_skeleton_removal_on_watch_killswitch")||_.G7("IS_SHELL_LOAD")&&zPy();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var H=_.GE(this);H.addEventListener("yt-player-updated",_.J2(this,this.onPlayerUpdated_));H.getPlayerPromise().then(function(l){X.playerApiReady_(l)});
_.P("kevlar_watch_flexy_playlist_manager")||(H=_.jJ().resolve(_.S3),_.P("kevlar_watch_observe_playlist_navigations_killswitch")&&H.addEventListener("yt-navigate",_.J2(this,this.onYtNavigate_)),H.setPlaylistComponent(_.mh(this.hostElement).querySelector("#playlist")),H.addEventListener("yt-playlist-data-updated",_.J2(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Ss.addLowPriorityJob(function(){_.QX(X.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.GE(this).removeEventListener("yt-player-updated",_.J2(this,this.onPlayerUpdated_));if(!_.P("kevlar_watch_flexy_playlist_manager")){var X=_.jJ().resolve(_.S3);_.P("kevlar_watch_observe_playlist_navigations_killswitch")&&X.removeEventListener("yt-navigate",_.J2(this,this.onYtNavigate_));X.cancelVideoSkip();X.removeEventListener("yt-playlist-data-updated",_.J2(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();
_.QX(this.hostElement,"yt-autonav-pause-player",!1);X=_.gZ();_.P("kevlar_exit_fullscreen_leaving_watch")&&X&&_.GP(X)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(X){this.player&&this.player.updateVideoData({rvs:X.rvs})},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(X){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",X)},
onRetrieveLocation_:function(X,H){H.hasComments?H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):H.locationRetrieved("/related_ajax",void 0);X.stopPropagation()},
onSubscriptionChanged_:function(X,H){this.player&&(H?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.mh(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.mh(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(X){this.player=X;X=X.getPlayerState();_.WF().dispatch(_.uC(X));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.P("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.P("kevlar_unified_player")||_.P("kevlar_player_new_bootstrap_adoption"))&&_.Ds()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(X,H){H=H===void 0?!0:H;_.gZ()&&_.P("external_fullscreen")&&_.GP(document.documentElement);this.theaterRequested_=X;H&&_.dL("wide",X?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.P("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.TP(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.QX(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(X){_.Dq(X,typeof this.player),this.player&&_.Dq(X,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var X;((X=this.player)==null?0:X.isFullscreen())?this.player.toggleFullscreen():_.TP(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(X,H){return this.loading?H:!!Object.keys(X).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(X){if(X){X=_.C(X);for(var H=X.next();!H.done;H=X.next())H=H.value,H.youThereRenderer&&Sne(this.youThereManager_,H.youThereRenderer)}},
setPlaylistData_:function(X){return X||{}},
userEngagementConfigDataChanged_:function(X){if(X)if(X.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var H=this.youThereManager_;_.JV()<X.lowEngagementThresholdMs||xil(H,!0)}else X.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.TP(this.hostElement,"yt-autonav-pause-user-engagement",[X])},
isPlayerUnavailable_:function(X,H,l){return!!X&&!this.isVideoPlayable_(X,l)&&!H},
getPlayerOverlays_:function(X){return(X==null?void 0:X.playerOverlays)||null},
isVideoPlayable_:function(X,H){if(!X)return!1;var l=X.status==="OK"||X.status==="LIVE_STREAM_OFFLINE",b=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",X)||this.get("errorScreen.ypcTrailerRenderer",X);X=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",X);var U;H=H==null?void 0:(U=H.playerOverlayRenderer)==null?void 0:U.gatedActionsOverlayRenderer;return!!l||!!b||!!X||!!H},
shouldProceedToNextVideo_:function(X,H,l){var b=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H),U=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];U=_.P("web_no_skip_video_on_verification_checks")?(X==null?void 0:X.status)&&U.includes(X.status):X&&X.status==="AGE_CHECK_REQUIRED";var K=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",X);K==void 0&&(K=!0);!l||this.isVideoPlayable_(X,this.getPlayerOverlays_(H))||
b||U||!K||_.jJ().resolve(_.S3).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();Awy()},
onPlayerFeedbackStartRequest_:function(X){_.TP(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:X}])},
onPlayerFeedbackArticleRequest_:function(X){_.TP(this.hostElement,"yt-help-dialog-requested",[X])},
onPlayerYpcContentRequest_:function(){var X,H,l,b,U,K,w,d,B=((X=this.data)==null?NaN:(H=X.contents)==null?NaN:(l=H.twoColumnWatchNextResults)==null?NaN:(b=l.secondaryResults)==null?NaN:(U=b.secondaryResults)==null?NaN:(K=U.offerModule)==null?NaN:(w=K.tvfilmOfferModuleRenderer)==null?NaN:(d=w.actionButtons)==null?NaN:d.length)-1;X=[".offerButton.buttonRenderer.",".actionButtons."+(B>=0?B:0)+".buttonRenderer."];H=_.C(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(l=H.next();!l.done;l=H.next())for(l=l.value,b=_.C(X),U=b.next();!U.done;U=b.next())if(U="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+l+U.value,U=this.get(U+"navigationEndpoint",this.data)||this.get(U+"serviceEndpoint",this.data)||this.get(U+"command",this.data)){_.Lc(U,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(X){_.QX(this.hostElement,"yt-autonav-pause-player",X)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(X){X()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(X){switch(X){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(X){switch(X){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.QX(this.hostElement,"yt-autonav-pause-player-ended")}_.WF().dispatch(_.uC(X))},
onPlayerSubscribe_:function(X){_.TP(this.hostElement,"yt-player-subscribe",[X])},
onPlayerUnsubscribe_:function(X){_.TP(this.hostElement,"yt-player-unsubscribe",[X])},
onPlayerAdYtShowToast_:function(X){_.TP(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:X.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(X){if(X)return X},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(X){return!_.KG("web_watch_move_summary_to_sd")&&!!X},
computeWatchMetadataRefresh:function(){return _.P("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var X,H,l,b;this.watchNextSecondaryResults=(X=this.data)==null?void 0:(H=X.contents)==null?void 0:(l=H.twoColumnWatchNextResults)==null?void 0:(b=l.secondaryResults)==null?void 0:b.secondaryResults}},
setRichGridRendererData:function(X){this.richGridRendererData=X},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var X,H=(X=this.data)==null?void 0:X.engagementPanels;if(H==null?0:H.length){X=null;H=_.C(H);for(var l=H.next();!l.done;l=H.next()){l=l.value;var b=void 0;if(((b=l.engagementPanelSectionListRenderer)==null?void 0:b.targetId)==="engagement-panel-structured-description"){X=l;break}}var U,K,w;X=(U=X)==null?void 0:(K=U.engagementPanelSectionListRenderer)==null?void 0:(w=K.content)==null?void 0:w.structuredDescriptionContentRenderer;if(X==null?0:X.items){U=
[];K=_.C(X.items);for(w=K.next();!w.done;w=K.next()){w=w.value;if(!_.P("sd_horizontal_list_show_nav_killswitch")){var d=b=l=H=X=void 0,B=void 0,q=(X=w.horizontalCardListRenderer)==null?void 0:(H=X.header)==null?void 0:(l=H.richListHeaderRenderer)==null?void 0:(b=l.navigationButton)==null?void 0:(d=b.buttonRenderer)==null?void 0:(B=d.command)==null?void 0:B.commandExecutorCommand;q&&q.commands&&(q.commands=q.commands.filter(function(u){return!_.f(u,$CN)}))}w.expandableVideoDescriptionBodyRenderer||
w.videoDescriptionHeaderRenderer||U.push(w)}return{items:U}}}},
isPlaShelfEnabled_:function(X){if((this.get("adPlacements",X)||[]).length)return!0;X=this.get("playerAds",X)||[];return!(!X.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",X[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var X=this;_.QX(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();var H=this.getScrollTop()>0;this.gestures_&&(H?this.gestures_.detach():this.gestures_.attach());H!==this.showFullerscreenEdu_&&_.P("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=H,_.GE(this).getPlayerPromise().then(function(l){l.updateFullerscreenEduButtonVisibility(X.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.QX(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var X=this;this.commentsReady=!1;_.Ss.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.eh(_.Ss,function(){X.setComments_()},1E3)},
setComments_:function(){if(!_.P("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.sf("cmi");_.Ss.cancelJob(this.setCommentsJobId_);var X=YJZ(this.data);if(X&&X.length){X=_.C(X);for(var H=X.next();!H.done;H=X.next())if(H=H.value,this.get("itemSectionRenderer.sectionIdentifier",H)==="comment-item-section"){this.comments=H.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.QX(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.P("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.P("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.sf("cmc")},
doRemoveComments_:function(){this.comments={};_.P("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Ss.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Ss.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(X,H){var l=_.f(H.endpoint,_.ku);l&&(!(H=this.get("data.currentVideoEndpoint.watchEndpoint"))||l.videoId!==H.videoId||l.playlistId&&l.playlistId!==H.playlistId||l.index!==void 0&&l.index!==H.index||typeof l.startTimeSeconds!=="number"||(X.stopPropagation(),this.setScrollTop(0),_.GE(this).getPlayerPromise().then(function(b){var U=l.startTimeSeconds;b.seekTo(U);b.wakeUpControls();U<b.getDuration()&&b.playVideo()})))},
updatePlayerStartTime_:function(){var X=nEa();"t"in X&&(X=JwZ(X.t),this.player.seekTo(X,!0))},
updateTitleFromWatchNext:function(X){X=YJZ(X);var H,l;(X=_.D8(X==null?void 0:(H=X[0])==null?void 0:(l=H.videoPrimaryInfoRenderer)==null?void 0:l.title))&&_.QX(this.hostElement,"yt-update-title",X)},
updateTitle_:function(X){X=this.get("videoDetails.title",X)||"";_.QX(this.hostElement,"yt-update-title",X)},
syncWithRemoteVideo_:function(X,H,l){if(this.active&&this.player){var b=this.player.getVideoData();b.video_id===l&&(l=b.list,_.P("polymer_enable_mdx_queue")&&l&&l.startsWith("RQ")&&(l=void 0),b.video_id!==X||l!=H)&&(X=_.P("kevlar_player_watch_endpoint_navigation")?_.RtO(wFp(X,H)):_.aO(X,H),_.QX(this.hostElement,"yt-navigate",{endpoint:X,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var X=document.querySelector("#watch-page-skeleton");if(X){var H=X.querySelector("#primary-info"),l=X.querySelector("#secondary-info"),b=X.querySelector("#related");H&&_.mh(this.hostElement).querySelector("#info-skeleton").appendChild(H);l&&_.mh(this.hostElement).querySelector("#meta-skeleton").appendChild(l);b&&(_.mh(this.hostElement).querySelector("#related-skeleton").appendChild(b),this.watchNextSkeletonEl_=b);_.HE(X)}},
handlePlayerUpdated_:function(){_.GE(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(X,H){if(this.watchNextSkeletonEl_&&typeof H!=="undefined"){var l=this.watchNextSkeletonEl_.children,b=X&&X.indexSplices.length?X.indexSplices[0].index:0;X=Math.min(this.watchNextShownItems.length,l.length);H||(b=0,X=l.length);for(H=b;H<X;H++)l[H].classList.add("hidden")}},
onPlayerFullscreenChange_:function(X){_.P("external_fullscreen")||_.TP(this.hostElement,"yt-player-fullscreen",[X.fullscreen])},
onFullscreenChange_:function(X){this.fullscreen=X;this.gestures_&&this.gestures_.update(this.fullscreen);var H=_.GE(this);H.getPlayerPromise().then(function(l){l.setFauxFullscreen(!!_.gZ())});
this.updateFullBleedElementLocations();X&&(H.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(X,H){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!H},
computeIsDonationShelfCollapsed_:function(X){return X},
computeShouldShowMerchShelf:function(X,H){return H&&!!X},
computeResponseHasComments:function(X){var H,l,b,U,K;return!!(X==null?0:(H=X.contents)==null?0:(l=H.twoColumnWatchNextResults)==null?0:(b=l.results)==null?0:(U=b.results)==null?0:(K=U.contents)==null?0:K.some(function(w){var d;return(w==null?void 0:(d=w.itemSectionRenderer)==null?void 0:d.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(X,H){this.responseHasComments=this.computeResponseHasComments(this.data);return!!X&&!!Object.keys(X).length&&!H},
identity:_.GK,onWindowResized_:function(X){this.windowSize_=X;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.P("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onPlayerPresentingVideoDataChange_:function(X){var H=this;X&&X.type!=="dataloaded"&&X.type!=="dataupdated"||_.GE(this).getPlayerPromise().then(function(l){var b=l.getPlayerState();b!==5&&b!==0&&(l=1/l.getVideoAspectRatio(),H.videoHeightToWidthRatio_!==l&&(H.videoHeightToWidthRatio_=l))})},
schedulePlayerSizeUpdate_:function(X){var H=this,l=_.P("kevlar_watch_while_v2")||_.P("web_watch_pip"),b=function(){if(H.watchMetadata){var U,K;(K=(U=H.watchMetadata).resize)==null||K.call(U)}_.GE(H).getPlayerPromise().then(function(w){if(_.KG("kevlar_set_internal_player_size")){if(!l||!_.jJ().resolve(_.f9).isMiniplayerActive()){var d=H.calculateCurrentPlayerSize_();w.setInternalSize(d.width,d.height)}}else w.setSize(NaN,NaN);_.P("kevlar_watch_while")&&H.updateWatchWhileScrollThreshold_()})};
X?b():_.oJ(_.Ss,b)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(X){this.set("data.survey",X.detail)},
onYtShowSurveyCommand_:function(X){this.set("data.survey",_.f(X,OBl).survey)},
onDownloadedVideoDeleted:function(X){var H=this,l,b;return _.h(function(U){if(U.nextAddress==1){if(!H.active||(l=H.playerData)==null||!l.offlineState||H.videoId!==X)return U.return();(b=H.player)==null||b.stopVideo();_.HW().navigatingAwayFromWatchDeletedVideo=!0;_.Lc(_.qEb,H.hostElement);return U.yield(_.HW().navigationFinishPromise,2)}_.HW().navigatingAwayFromWatchDeletedVideo=!1;_.m5(U)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var X;this.theater?X=_.kY(.5625*this.windowSize_.width,480,this.windowSize_.height-185):X=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==X&&(this.watchWhileScrollThreshold_=X)}},
isTwoColumnsChanged_:function(X,H){if(X!==!0||H!==void 0){X=!_.P("live_chat_over_engagement_panels");H=_.mh(this.hostElement).querySelector("#chat-container");var l=_.mh(this.hostElement).querySelector("#plj-sidebar"),b=_.mh(this.hostElement).querySelector("#panels"),U=_.mh(this.hostElement).querySelector("#plj-panels"),K=_.mh(this.hostElement).querySelector("#plj-playlist"),w=_.mh(this.hostElement).querySelector("#alerts"),d=_.mh(this.hostElement).querySelector("#playlist"),B=_.mh(this.hostElement).querySelector("#related"),
q=_.mh(this.hostElement).querySelector("#donation-shelf"),u=_.mh(this.hostElement).querySelector("#comments");this.isTwoColumns_?(w=_.mh(this.hostElement).querySelector("#secondary-inner"),w.appendChild(l),l.appendChild(K),K.appendChild(d),l.appendChild(U),X&&w.appendChild(b),_.P("web_watch_theater_chat")||w.appendChild(H),X||w.appendChild(b),w.appendChild(q),w.appendChild(B)):(X&&_.px(b,w),_.px(d,w),_.P("web_watch_theater_chat")||_.px(H,w),X||_.px(b,w),_.px(q,w),u&&(U&&_.px(U,u),_.px(B,u)));_.P("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.P("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.P("web_watch_theater_chat")){var X=_.mh(this.hostElement).querySelector("#chat-container"),H=this.theater&&!this.fullscreen||_.P("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&H?_.P("web_watch_theater_chat_beside_player")?(H=_.mh(this.hostElement).querySelector("#panels-full-bleed-container"),(X==null?void 0:X.parentElement)!==H&&H.append(X),this.panelsBesidePlayer=!0):_.P("web_watch_theater_fixed_chat")&&
(H=_.mh(this.hostElement).querySelector("#columns"),(X==null?void 0:X.parentElement)!==H&&H.append(X),this.fixedPanels=!0):(_.P("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.P("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),H=_.mh(this.hostElement).querySelector("#playlist"),X&&H?_.SH(X,H):_.x2(new _.qd("Missing element when updating chat location",{"chatContainer defined":!!X,"playlist defined":!!H})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(X,H){return _.P("sw_metadata_vis_toggle_ks")?!0:!!X||!!H},
computeForceDarkPanelTheme:function(X){return _.P("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&X:!1},
safeUpdateStyles:function(X){try{_.j4(this.hostElement,X)}catch(H){_.x2(H)}},
videoHeightToWidthRatioChanged_:function(X,H){H&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.P("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(X){this.videoHeightToWidthRatio_=1/X},
computeIsVerticalVideo_:function(X){return X>=1},
computeIsFourThreeToSixteenNineVideo_:function(X){return X<=.7501&&X>=.5624},
computeIsExtraWideVideo_:function(X){return X<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.GE(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.GE(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){Dix(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(X){var H=_.Ce(X)||0;_.R6(X,H+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var X=_.Ce("yt-fullerscreen-edu-button-click-count")||0,H=_.Ce("yt-fullerscreen-edu-button-shown-count")||0,l=_.Yy("external_fullscreen_button_shown_threshold"),b=X>=_.Yy("external_fullscreen_button_click_threshold")||H>=l;_.GE(this).getPlayerPromise().then(function(U){U.updateFullerscreenEduButtonSubtleModeState(b)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(X,H){return H},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.jJ().resolve(_.S3).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var X=this;this.panelMaxHeightUpdateJob_&&_.Ss.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Ss.addLowPriorityJob(function(){X.panelMaxHeightUpdateJob_=0;var H;!X.isTwoColumns_||X.theater||X.fullscreen?H=460:H=X.calculateNormalPlayerSize_().height;var l=H+"px";_.P("live_chat_taller_height")&&!X.theater&&(l="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.P("live_chat_medium_height")&&
!X.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.P("live_chat_scaled_height")&&!X.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 238px)");X.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":H+"px","--ytd-watch-flexy-chat-max-height":l,"--ytd-watch-flexy-structured-description-max-height":H+"px","--ytd-watch-flexy-comments-panel-max-height":H+"px","--ytd-comments-engagement-panel-content-height":H+"px"})})},
onYtShowEngagementPanelScrimAction_:function(X){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",X)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.j7(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(X){var H=_.mh(this.hostElement).querySelector("#engagement-panel-scrim");X?H.addEventListener("tap",_.J2(this,this.onEngagementPanelScrimClick_)):H.removeEventListener("tap",_.J2(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(X){if(this.hostElement.contains(X)&&!this.scrollToAnimation_.isAnimating()){var H=X.offsetTop-24;X=X.offsetTop+X.offsetHeight+24;var l=this.getPageScrollingElement(),b=this.getScrollTop(),U=b+l.clientHeight-56;if(H<b+56)H-=56;else if(X>U)H=X-l.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,H),500)}},
onYtSignalActionScrollToComments:function(){var X=this.hostElement.querySelector("#comments");if(X&&!this.scrollToAnimation_.isAnimating()){X=X.offsetTop-56-24;if(_.P("kevlar_comment_teaser_scroll_to_midpoint")&&(X-=_.bB().height/3,X<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,X),500)}},
onYtEngagementPanelVisibleChanged:function(X,H,l){this.active&&this.trackEngagementPanelVisibility&&!InC.includes(l)&&(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(l),H!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&H!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(l),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(X){return X?"":"watch-active-metadata"},
computeNewMetadataClass:function(X){return X?"watch-active-metadata":""},
computeFullBleedPlayer:function(X,H){return X||H},
computeDefaultLayout:function(X){return!X},
computeDefaultTwoColumnLayout:function(X,H){return!X&&H},
computeWatchWhilePanelsActive:function(X,H){return X||H},
computeNoBorderOnChat:function(X){return _.P("web_watch_theater_chat_no_border")&&X},
computeLiveChatPresentAndExpanded:function(X,H){return X&&!H},
computePanelExpanded:function(X,H,l){return X||H||l},
onChangeMarkersVisibility:function(X){_.GE(this).getPlayerPromise().then(function(H){var l;(l=H.changeMarkerVisibility)==null||l.call(H,_.f(X,Fz).isVisible||!1,_.f(X,Fz).entityKeys||[],_.f(X,Fz).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(X){this.liveChatCollapsed=X.detail;_.WF().dispatch(rsa(X.detail))},
provideRenderingData:function(X,H){switch(X){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=H;break;case "PRIMARY_INFO":_.P("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=H);this.videoPrimaryInfoRendererValue=H==null?void 0:H.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.P("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=H);this.videoSecondaryInfoRendererValue=H==null?void 0:H.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
H;break;case "CLARIFICATION":this.clarifyBoxValue=H;break;case "LIVE_CHAT":this.conversationBar=H;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=H;break;case "PLAYLIST":this.externalPlaylistData_=H!=null?H:{};break;case "MERCH_SHELF":this.merchShelfValue=H==null?void 0:H.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=H;break;case "OFFER_MODULE":this.offerModule=H;break;case "LIMITED_STATE":this.limitedStateValue=H;break;case "DONATION_SHELF":this.donation=H;break;
case "ALERTS":this.alertsValue=H;break;case "COMMENTS":this.comments=H;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=H;break;case "ENGAGEMENT_PANELS":this.engagementPanels=H;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=H;break;case "RICH_GRID_RENDERER":this.richGridRendererData=H;break;case "EXPANDABLE_METADATA":this.expandableMetadata=H;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=H}},
toggleCinematicsActive:function(X){this.cinematicsActive=X},
getLearningJourneyEngagementPanels:function(X){return ocy.map(function(H){return X.find(function(l){var b;return(l==null?void 0:(b=l.engagementPanelSectionListRenderer)==null?void 0:b.targetId)===H})}).filter(function(H){return H!==void 0})},
getNonLearningJourneyEngagementPanels:function(X){return X.filter(function(H){var l;return!ocy.includes((H==null?void 0:(l=H.engagementPanelSectionListRenderer)==null?void 0:l.targetId)||"")})}}];var tc=function(){return _.Hc.apply(this,arguments)||this};
_.S(tc,_.Hc);_.R=tc.prototype;_.R.activeChanged=function(){if(this.active){var X=_.mh(this.hostElement).querySelector("#header");X&&_.QX(X,"iron-resize");window.addEventListener("scroll",_.J2(this,this.onScroll))}else window.removeEventListener("scroll",_.J2(this,this.onScroll)),_.QX(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.R.guideVisibleChanged=function(){var X=_.mh(this.hostElement).querySelector("#header");X&&_.QX(X,"iron-resize")};
_.R.onScroll=function(){var X=this;_.pc(this,"onScroll",function(){var H=_.mh(X.hostElement).querySelector("#header");H&&H.polymerController&&(H=H.polymerController.getScrollState().progress===1?"standard":"seamed",_.QX(X.hostElement,"yt-request-panel-mode-change",{mode:H}))},10)};
_.R.tabsChanged=function(){if(this.tabs){for(var X=null,H=0,l=this.tabs.length;H<l;++H){var b=this.tabs[H].tabRenderer;if(b&&b.selected){X=H;break}}this.selected=X}};
_.R.onTabsActivate=function(X){_.QX(this.hostElement,"yt-navigate",{endpoint:this.tabs[X.detail.selected].tabRenderer.endpoint})};
tc.prototype.tabsChanged=tc.prototype.tabsChanged;tc.prototype.guideVisibleChanged=tc.prototype.guideVisibleChanged;tc.prototype.activeChanged=tc.prototype.activeChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],tc.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.g(),_.N("design:type",Array)],tc.prototype,"tabs",void 0);
_.T([_.g(),_.N("design:type",Object)],tc.prototype,"selected",void 0);_.T([_.g(),_.N("design:type",Boolean)],tc.prototype,"active",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],tc.prototype,"disableHeaderFluidWidth",void 0);_.T([_.Yh("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tc.prototype,"activeChanged",null);
_.T([_.Yh("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tc.prototype,"guideVisibleChanged",null);_.T([_.Yh("tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tc.prototype,"tabsChanged",null);_.T([_.l9()],tc);var bm5=[_.L.YtRendererBehavior,_.PO.YtdGuideStateAwareBehavior,tc.prototype];var $_l=function(X){_.$e.call(this);var H=this;this.JSC$21574_watchApi=X;this.observer=null;var l=this.JSC$21574_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){U_x(H)});
this.addOnDisposeCallback(function(){H.JSC$21574_watchApi.unsubscribeByKey(l);H.observer&&(H.observer.disconnect(),H.observer=null)});
U_x(this)};
_.S($_l,_.$e);var U_x=function(X){var H,l,b,U,K;_.h(function(w){if(w.nextAddress==1){X.observer&&(X.observer.disconnect(),X.observer=null);H=X.JSC$21574_watchApi.getWatchNextResponse();if(!H)return w.return();l=_.f(H,yKC);return((b=l)==null?0:b.enableCreatorChatbot)&&l.creatorChannelId?_.P("enable_creator_chatbot_link_out")?w.yield((0,_.AS)("NSzT5"),6):w.yield((0,_.AS)("NSzT5"),5):w.jumpTo(0)}if(w.nextAddress!=6)return U=_.wzt,U(l.creatorChannelId),w.jumpTo(0);K=_.CFz;K(l.creatorChannelId);_.m5(w)})};var Ww=function(X){_.$e.call(this);this.JSC$21578_watchApi=X;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;Kvx(this)};
_.S(Ww,_.$e);var Kvx=function(X){_.h(function(H){if(H.nextAddress==1)return H.yield(RT5(X),2);CX5(X);_.m5(H)})},RT5=function(X){var H,l,b,U,K,w,d,B,q;
return _.h(function(u){if(u.nextAddress==1)return u.yield(X.JSC$21578_watchApi.playerApi,2);H=u.yieldResult;X.JSC$21578_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){wsN(X)});
X.JSC$21578_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){X.isShelfVisible?d_l(X):E5(X)});
l=_.WF().subscribe(function(){X.isTheaterMode=_.BS(_.WF().getState());X.isTheaterMode?E5(X):hT$(X)});
b=X.JSC$21578_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){CX5(X)});
U=function(e){X.onCueRangeEnter(e)};
H.addEventListener("onCueRangeEnter",U);K=function(e){X.onCueRangeExit(e)};
H.addEventListener("onCueRangeExit",K);w=function(){X.isSeeking=!0};
H.addEventListener("SEEK_TO",w);d=function(){X.onSeekComplete()};
H.addEventListener("SEEK_COMPLETE",d);B=function(){X.onAdStart()};
H.addEventListener("onAdStart",B);q=function(){X.onAdComplete()};
H.addEventListener("onAdComplete",q);X.addOnDisposeCallback(function(){l();X.JSC$21578_watchApi.unsubscribeByKey(b);H.removeEventListener("onCueRangeEnter",U);H.removeEventListener("onCueRangeExit",K);H.removeEventListener("SEEK_TO",w);H.removeEventListener("SEEK_COMPLETE",d);H.removeEventListener("onAdStart",B);H.removeEventListener("onAdComplete",q)});
_.m5(u)})},Fvx=function(X){var H,l,b,U,K,w,d,B,q;
return(K=(H=X.contents)==null?void 0:(l=H.twoColumnWatchNextResults)==null?void 0:(b=l.results)==null?void 0:(U=b.results)==null?void 0:U.contents)==null?void 0:(w=K.find(function(u){var e,y,V;return(e=u.itemSectionRenderer)==null?void 0:(y=e.contents)==null?void 0:(V=y[0])==null?void 0:V.shoppingTimelyShelfViewModel}))==null?void 0:(d=w.itemSectionRenderer)==null?void 0:(B=d.contents)==null?void 0:(q=B[0])==null?void 0:q.shoppingTimelyShelfViewModel},CX5=function(X){var H;
_.h(function(l){if(l.nextAddress==1)return(H=X.JSC$21578_watchApi.getWatchNextResponse())?l.yield(wsN(X),2):l.return();X.shoppingTimelyShelfViewModel=Fvx(H);B0e(X);qPZ(X);_.m5(l)})},B0e=function(X){var H,l=(H=X.shoppingTimelyShelfViewModel)==null?void 0:H.offerIdToVariants;
l&&(H=l.filter(function(b){return b.key&&b.value}).map(function(b){return[b.key,
b.value]}),X.variantsMap=new Map(H))},qPZ=function(X){var H,l,b,U,K,w;
_.h(function(d){if(d.nextAddress==1)return(l=(H=X.shoppingTimelyShelfViewModel)==null?void 0:H.cueRanges)?d.yield(X.JSC$21578_watchApi.playerApi,2):d.return();b=d.yieldResult;X.cueRanges=l;U=_.C(l);for(K=U.next();!K.done;K=U.next())w=K.value,w.startTime!==void 0&&w.endTime!==void 0&&w.id!==void 0&&b.addCueRange("shopping_timely_shelf"+w.id,sQl(w.startTime),sQl(w.endTime));_.m5(d)})},sQl=function(X){return Number(X.seconds||0)+(X.nanos||0)/1E9};
Ww.prototype.onCueRangeEnter=function(X){if(X.startsWith("shopping_timely_shelf")&&(this.activeCueId=X,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){X=X.substring(21);var H,l,b=(H=this.variantsMap)==null?void 0:(l=H.get(X))==null?void 0:l.shelf;b&&(this.JSC$21578_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",b),d_l(this))}};
Ww.prototype.onCueRangeExit=function(X){X.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||E5(this))};
Ww.prototype.onSeekComplete=function(){this.isSeeking=!1;hT$(this)};
var d_l=function(X){X.shoppingTimelyShelfViewModel&&(X.isShelfVisible=!0,_.Zq.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},E5=function(X){X.shoppingTimelyShelfViewModel&&X.isShelfVisible&&(X.isShelfVisible=!1,_.Zq.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},wsN=function(X){var H,l,b,U,K;
return _.h(function(w){if(w.nextAddress==1)return w.yield(X.JSC$21578_watchApi.playerApi,2);H=w.yieldResult;if(X.cueRanges)for(l=_.C(X.cueRanges),b=l.next();!b.done;b=l.next())U=b.value,U.id&&(K="shopping_timely_shelf"+U.id,H.removeCueRange(K));X.JSC$21578_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});E5(X);X.shoppingTimelyShelfViewModel=void 0;X.cueRanges=void 0;X.variantsMap=void 0;X.isSeeking=!1;X.activeCueId=void 0;_.m5(w)})};
Ww.prototype.onAdStart=function(){this.isAdPlaying=!0;E5(this)};
Ww.prototype.onAdComplete=function(){this.isAdPlaying=!1;hT$(this)};
var hT$=function(X){if(X.activeCueId)X.onCueRangeEnter(X.activeCueId);else E5(X)};var V$e=function(X){_.$e.call(this);var H=this;this.JSC$21585_watchApi=X;X=_.bC(_.WF(),_.fay,function(){M$p(H)});
this.addOnDisposeCallback(X);X=_.bC(_.WF(),UoZ,function(){M$p(H)});
this.addOnDisposeCallback(X);uop(this);eT5(this);yAA()};
_.S(V$e,_.$e);var uop=function(X){var H=function(b){_.WF().dispatch(jex(b.matches))},l=window.matchMedia("(max-width: "+(999+Ts())+"px)");
l.addListener(H);X.addOnDisposeCallback(function(){l.removeListener(H)});
H(l)},eT5=function(X){X.JSC$21585_watchApi.registerActionHandler("yt-window-resized",function(){yAA()});
X.addOnDisposeCallback(function(){X.JSC$21585_watchApi.unregisterActionHandler("yt-window-resized")})},yAA=function(){var X=_.Xs();
_.WF().dispatch(_.Of({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:X.width,height:X.height}}}))},M$p=function(X){var H;
_.h(function(l){if(l.nextAddress==1)return l.yield(X.JSC$21585_watchApi.playerApi,2);H=l.yieldResult;H.setSize(NaN,NaN);_.m5(l)})};var PXa=function(X){_.$e.call(this);var H=_.jJ().resolve(_.Cz);U6C(H,X.getElement("PLAYER_CONTAINER"),X.getElement("BELOW_THE_PLAYER"),X.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var l=X.getElement("PLAYER_CONTAINER"),b=X.getElement("BELOW_THE_PLAYER"),U=X.getElement("SECONDARY");H.isLockupToWatchTransitionEnabled&&(l&&_.VE(H.viewTransitionCoordinator,l),b&&_.VE(H.viewTransitionCoordinator,b),U&&_.VE(H.viewTransitionCoordinator,U))})};
_.S(PXa,_.$e);var gP=function(X){na.call(this);var H=this;this.rootElement=X;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return H.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(l){H.initOrDisposeActiveModules(l)}));
this.onAttached()};
_.S(gP,na);_.R=gP.prototype;_.R.getRoot=function(){return this.rootElement};
_.R.getElement=function(X){return this.rootElement.getElement(X)};
_.R.setPlayerResponse=function(X){this.playerResponse=X;this.publish("PLAYER_RESPONSE_UPDATED",X)};
_.R.getPlayerResponse=function(){return this.playerResponse};
_.R.setWatchNextResponse=function(X){this.watchNextResponse===X?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=X,this.publish("WATCH_NEXT_RESPONSE_UPDATED",X))};
_.R.getWatchNextResponse=function(){return this.watchNextResponse};
_.R.registerActionHandler=function(X,H){var l=this;if(_.P("web_watch_controller_reg_multiple_handlers_killswitch")){var b={};_.ik(_.Zq.getInstance(),(b[X]=H,b),this.getRoot())}else this.actionHandlers.has(X)||(this.actionHandlers.set(X,[]),b={},_.ik(_.Zq.getInstance(),(b[X]=function(){var U=_.Ab.apply(0,arguments);return(l.actionHandlers.get(X)||[]).map(function(K){return K.apply(null,_.LJ(U))})},b),this.getRoot())),this.actionHandlers.get(X).push(H)};
_.R.unregisterActionHandler=function(X){if(_.P("web_watch_controller_reg_multiple_handlers_killswitch")){var H={};_.vD(_.Zq.getInstance(),(H[X]=!0,H),this.getRoot())}else(H=this.actionHandlers.get(X))?(H.pop(),H.length===0&&(H={},_.vD(_.Zq.getInstance(),(H[X]=!0,H),this.getRoot()),this.actionHandlers.delete(X))):_.x2(new _.qd("Attempted to unregister an action handler which is not registered.",X))};
_.R.addPageDisposeJob=function(X){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.DWK(this.rootElement.pageDisposeJobs,X)};
_.R.removePageDisposeJob=function(X){this.rootElement.pageDisposeJobs&&_.Oy(this.rootElement.pageDisposeJobs,X)};
_.R.dispatchEvent=function(X,H){_.QX(this.rootElement,X,H)};
_.R.provideRenderingData=function(X,H){this.rootElement.provideRenderingData(X,H)};
_.R.scrollWatchTo=function(X,H){var l;(l=this.watchScrollManager)==null||l.scrollWatchTo(X,H)};
_.R.focusOnPlayer=function(){var X=this.getElement("PLAYER");_.N0(X,function(){if(X&&X.firstElementChild){var H=X.querySelector(".html5-video-player");H&&(_.g2(_.jJ().resolve(_.HS)),H.focus())}else _.x2(Error("Vl"))})};
_.R.subscribeToActiveChanged=function(X,H){H=H===void 0?!0:H;var l=_.bC(_.WF(),oM5,function(b){X(b)});
H&&X(oM5(_.WF().getState()));return l};
_.R.isActive=function(){return oM5(_.WF().getState())};
_.R.onAttached=function(){var X=_.P("external_fullscreen");_.P("use_unified_flag_accessor")&&(X=_.jJ().resolve(_.XQx).retriever.getFlag(_.OUH));(X||_.G7("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var fx5=function(X){return X.getRoot().is==="ytd-watch-flexy"||X.getRoot().is==="ytd-watch-grid"},Gz=function(X){return X.getRoot().is==="ytd-watch-fixie"};
gP.prototype.initPersistentModules=function(){if(Gz(this)||fx5(this)&&_.P("kevlar_watch_flexy_theater_manager")){var X=new J7Z(this);_.LY(this,X)}X=new w4Y(this);_.LY(this,X);X=new ua(this);_.LY(this,X);X=new oLC(this);_.LY(this,X);X=new xz(this);_.LY(this,X);X=new ek(this);_.LY(this,X);if(Gz(this)||fx5(this)&&_.P("kevlar_watch_flexy_playlist_manager"))X=new NOU(this),_.LY(this,X);_.P("web_thumbnail_to_watch_transition")&&(X=new PXa(this),_.LY(this,X))};
gP.prototype.initOrDisposeActiveModules=function(X){X?(this.watchScrollManager=new Dn(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new z7y(this)),_.P("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new Ww(this)),this.activeModules.push(new cXC(this)),Gz(this)&&this.activeModules.push(new V$e(this)),this.activeModules.push(new YEe(this)),this.activeModules.push(new uGZ(this)),(Gz(this)||_.P("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new YSZ(this)),
this.activeModules.push(new EL5(this)),(Gz(this)||_.P("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new Aed(this)),(Gz(this)||_.P("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new ww$(this)),_.KG("kevlar_watch_cinematics")&&(this.watchCinematicManager=new vzx(this),this.activeModules.push(this.watchCinematicManager)),_.P("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new ZMe(this)),_.P("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new K_U(this)),
X=_.P("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.P("kevlar_watch_flexy_comments_manager")&&!X&&this.activeModules.push(new Y5p(this)),_.P("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new Fox(this)),this.activeModules.push(new lnd(this)),this.activeModules.push(new knY(this)),_.P("web_enable_timely_actions")&&this.activeModules.push(new $Ad(this)),_.P("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new k1N(this)),_.P("web_watch_enable_multiview_manager")&&
this.activeModules.push(new e5C(this)),_.P("web_fullscreen_components")&&this.activeModules.push(new lXY(this)),_.P("web_player_rtr_ctrls")&&this.activeModules.push(new D4N(this)),(_.P("enable_creator_chatbot")||_.P("enable_creator_chatbot_link_out"))&&this.activeModules.push(new $_l(this))):(_.aZ(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
gP.prototype.disposeInternal=function(){na.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ja.Object.defineProperties(gP.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.gC(_.Z(function(X){var H=X.data;X=_.C(_.FU(!1,void 0,"VotqNe"));var l=X.next().value,b=X.next().value;_.DR(function(){_.Zq.getInstance().triggerAction("yt-request-timely-shelf-state")});
var U=_.uL(function(){var q,u,e=(q=_.f(H().rendererContext,_.o1))==null?void 0:(u=q.loggingDirectives)==null?void 0:u.trackingParams;if(e)return _.$l(e)},void 0,"AvMXxb");
_.ik(_.Zq.getInstance(),{"yt-hide-shopping-timely-shelf":function(){b(!1);var q=_.Bi(),u=U();q&&u&&_.kB(q,[u])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){b(!0);var q=_.Bi(),u=U();q&&u&&_.nA(q,[u])})}});
var K=function(){var q;return(q=H().image)==null?void 0:q.image},w=function(){var q,u;
return!!((q=K())==null?0:(u=q.sources)==null?0:u.some(function(e){var y;return!!(e==null?0:(y=e.clientResource)==null?0:y.imageName)}))},d=function(){var q;
return((q=H().image)==null?void 0:q.height)||40},B=function(){var q;
return(q=H().image)==null?void 0:q.backgroundColor};
X={};return _.F("yt-shopping-timely-shelf-content-view-model",{el:_.xl(_.Mh(function(){return H().rendererContext})),
class:_.Qr("ytShoppingTimelyShelfContentViewModelHost",(X.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(H().image||H().avatar||H().line1)&&l()},X)),
style:_.rC({"--shopping-timely-shelf-content-padding-top":function(){var q;return IFa((q=H().padding)==null?void 0:q.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var q;return IFa((q=H().padding)==null?void 0:q.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var q;return IFa((q=H().padding)==null?void 0:q.start)},
"--shopping-timely-shelf-content-padding-end":function(){var q;return IFa((q=H().padding)==null?void 0:q.end)},
"--yt-shopping-timely-shelf-background-color":function(){return H().backgroundColor!==void 0?_.qw(H().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var q,u;return((u=(q=H().image)==null?void 0:q.cornerRadius)!=null?u:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return B()!==void 0?_.qw(B()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var q;return(((q=H().image)==null?void 0:q.width)||40)+"px"}})},_.F(_.M,{cond:K,
then:function(q){var u={};return _.F(_.Dp,{preserveHeight:!0,preserveWidth:!0,height:d,data:q,alt:"",className:_.Qr("ytShoppingTimelyShelfContentViewModelImage",(u.ytShoppingTimelyShelfContentViewModelIcon=w,u))})}}),_.F(_.l4,{data:function(){return H().avatar}},{avatarViewModel:_.MX}),_.F("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.F(_.l4,{data:function(){return H().line1}},{shoppingContentLineViewModel:function(q){return _.F(_.an,{data:q.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.F(_.l4,{data:function(){return H().line2}},{shoppingContentLineViewModel:function(q){return _.F(_.an,{data:q.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.F("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.F(_.l4,{data:function(){var q;
return(q=H().button)!=null?q:[]}},{buttonViewModel:function(q){var u=q.data;
return _.F(_.Qk,{data:u,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(e){u().onTap&&e.stopPropagation()}})}})))},"sk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.zh}});var psY={};
psY.YtdWatchBehavior=[_.L.YtRendererBehavior,_.n0.YtPlayerListenerBehavior,_.Gh.YtRendererstamperBehavior,_.rh.YtActionHandlerBehavior,Hw.YtPageBehavior,_.jj.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 _.G7("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.P("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 _.G7("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 _.P("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.P("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 _.Yy("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Yy("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 _.P("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.P("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.P("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.P("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.P("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 _.P("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.P("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.P("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.P("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.P("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.P("swatcheroo_enable_ghost_cards")||_.P("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 _.P("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 _.P("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.P("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 _.P("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 _.P("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(X,H,l){return X&&(H||!l)},
computeShowGhostRelated_:function(X,H,l){return X&&(H||!l)},
monitorScroll:!0,configureRendererStamper:function(){var X={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:hz(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:hz(["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"||_.P("swa_prov_panels_ks")?X.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(X.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},X.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return X},
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 X=this;this.watchController=void 0;this.pageDisposeJobs=[function(){X.showMetadataPlaceholder_()},
function(){_.P("web_watch_dont_clear_comments")||X.clearComments_()},
function(){X.clearPlayerAds_()},
function(){X.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;_.P("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.P("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new PYy(function(){return _.GE(X)},this.hostElement);
this.pageDisposeJobs.push(function(){X.youThereManager_.reset()});
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.hB;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;_.P("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));_.P("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.J2(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(X){X&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:X}),X.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(X){_.P("kevlar_watch_flexy_theater_manager")&&(this.theater=X,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(X){!_.P("kevlar_watch_while_v2")&&!_.P("web_watch_pip")||X||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(X){this.active!==void 0&&(this.fullscreen=X,_.P("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(X){this.active!==void 0&&(_.QX(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.P("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(X>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(X){M7d("watch",["pbs","pbp","pbu"]);this.updatePageData_(X)},
updatePageData_:function(X){var H=this;if(X)if(this.data===X){this.onPageLoadWithSameData_();var l;(l=this.watchController)==null||l.setWatchNextResponse(this.data)}else this.data=X;this.playlist&&_.FS({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.sf("nw");this.loading=!1;_.eh(_.Ss,function(){xo$();var b,U=((b=H.player)==null?void 0:b.getVideoData().cpn)||"";guC(function(K,w){avp(K,w,U)})})},
onPageLoadWithSameData_:function(){_.P("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 X=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!X);this.set("loadingData.playlistLoading",X&&X!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),X=this.watchNextSkeletonEl_.firstElementChild;X;)X.classList.remove("hidden"),X=X.nextElementSibling;if(_.P("kevlar_watch_frame0_loading_state")){var H,l,b;X=(H=this.loadingData)==null?void 0:(l=H.endpoint)==null?void 0:(b=l.watchEndpoint)==null?void 0:b.videoId;var U;X&&(U="https://i.ytimg.com/vi/"+X+"/frame0.jpg");_.mh(this.hostElement).querySelector("#player").style.backgroundImage=U?"url("+U+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var X=_.mh(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&X&&(X.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var H,l;(l=(H=this.watchMetadata).updateSentimentBarWidth)==
null||l.call(H);var b,U;(U=(b=this.watchMetadata).resize)==null||U.call(b)}_.P("kevlar_watch_frame0_loading_state")&&(_.mh(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(X){var H=_.mh(this.hostElement).querySelector(X);H?_.ap(H,!1):_.x2(new _.qd("Overscroll monitor not found for component: ",X))},
removeSplitScrollMouseTrap:function(X){var H=_.mh(this.hostElement).querySelector(X);H?_.Zv(H):_.x2(new _.qd("Disposal component for  overscroll monitoring not found: ",X))},
onLoadingChanged_:function(X){X?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.P("web_thumbnail_to_watch_transition")&&!_.VsC||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.P("web_thumbnail_to_watch_transition")&&!_.VsC||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(X){var H=this;X?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Ss.addLowPriorityJob(function(){H.onWindowResized_(_.Xs(!0))})},
updateTheaterModeState_:function(X){if(!_.P("kevlar_watch_flexy_theater_manager")){X=X||this.fullWindowMode_;if(this.theater!==void 0||X)this.theater=X;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();X&&M0A()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var X=this.fullBleedPlayer?_.mh(this.hostElement).querySelector("#player-full-bleed-container"):_.mh(this.hostElement).querySelector("#player-container-inner");var H=this.getPlayerContainer(),l=_.P("kevlar_watch_while_v2")||_.P("web_watch_pip");H.parentElement!==X&&(l&&_.jJ().resolve(_.f9).isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.GE(this).appendTo(X,H))},
updateErrorScreenLocation:function(){var X=_.mh(this.hostElement).querySelector("#error-screen"),H=this.fullBleedPlayer?_.mh(this.hostElement).querySelector("#player-full-bleed-container"):_.mh(this.hostElement).querySelector("#player");X.parentElement!==H&&H.appendChild(X)},
deactivateMiniplayerAndResetPlayer:function(){var X=this;return _.h(function(H){if(H.nextAddress==1)return H.yield(_.jJ().resolve(_.f9).deactivate(),2);X.updatePlayerLocation();_.m5(H)})},
updateCinematicsLocation:function(){var X=this.getElement("CINEMATICS");if(X){var H=this.getCinematicsLocationContainer();X.parentElement!==H&&H.appendChild(X)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.mh(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.mh(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(X,H,l){var b=document.documentElement.hasAttribute("dark"),U=!b&&this.cinematicLightTheme;return l||X&&b||H&&b||(H||X)&&U},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var X=this,H;(H=this.watchController)==null||H.setWatchNextResponse(this.data);_.P("kevlar_watch_flexy_comments_manager")||this.initComments_();_.P("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.jJ().resolve(_.S3).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,_.P("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Ss.addLowPriorityJob(function(){_.NG(X.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.P("web_watch_start_chat_in_theater_mode")){var l,b,U;if((l=this.data)==null?0:(b=l.contents)==null?0:(U=b.twoColumnWatchNextResults)==null?0:U.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var K,w;((K=this.data)==null?0:(w=K.contents)==null?0:w.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(X){var H;(H=this.watchController)==null||H.setPlayerResponse(this.playerData);X&&X.playabilityStatus&&(H=this.isVideoPlayable_(X.playabilityStatus,this.getPlayerOverlays_(this.data)),X=Ave(X.playabilityStatus),H&&!X||_.N0(this,function(){_.sf("pbu")}));
this.setPlayerAds_();_.NG(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(X,H){if((_.P("kevlar_watch_while_v2")||_.P("web_watch_pip"))&&this.playerData&&H)return this.playerData.videoDetails},
watchPageActiveChanged_:function(X){_.WF().dispatch(csY(this.active));X?this.activate_():this.deactivate_()},
attached:function(){var X=this;this.watchController=new gP(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);_.P("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var H=_.GE(this);_.P("kevlar_disable_prepare_player")||
H.preparePlayer();_.P("kevlar_watch_flexy_playlist_manager")||_.jJ().resolve(_.S3).setPlayer(H);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();H={"--ytd-watch-flexy-scrollbar-width":Ts()+"px"};this.is==="ytd-watch-grid"&&(_.WF().dispatch(_.Of({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),H["--ytd-watch-flexy-sidebar-width"]=Ejp+"px",H["--ytd-watch-grid-horizontal-page-margins"]=c7+"px",H["--ytd-watch-grid-columns-top-margins"]=aHy+"px",
H["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Yy("kv_pl_mx_sz_ks")&&_.Yy("kevlar_watch_max_player_width")&&(H["--ytd-watch-flexy-max-player-width-wide-screen"]=GEU+"px");_.Yy("kevlar_watch_flexy_metadata_height")&&(H["--ytd-watch-flexy-space-below-player"]=ZlN+"px");this.safeUpdateStyles(H);_.P("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new kz(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return X.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.mh(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var X=Ts(),H=NB+X,l=H;this.fixedPanels&&(H+=Ejp);var b=657+X;X=1327+X;_.mh(this.hostElement).querySelector("#two-column-query").query="(min-width: "+H+"px)";_.mh(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(b+"px), (min-height: 630px) and (min-width: ")+(H+"px) and (max-width: ")+(X+"px)");_.mh(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(X+"px)");_.mh(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+l+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var X=this.squeezeback&&!_.P("web_watch_squeezeback_player_size_killswitch");return this.theater||_.P("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||X||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.tn(NaN,NaN):ilN(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return ilN(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Gp(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var X=this;this.onWindowResized_(_.Xs());_.P("browse_skeleton_removal_on_watch_killswitch")||_.G7("IS_SHELL_LOAD")&&zPy();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var H=_.GE(this);H.addEventListener("yt-player-updated",_.J2(this,this.onPlayerUpdated_));H.getPlayerPromise().then(function(l){X.playerApiReady_(l)});
_.P("kevlar_watch_flexy_playlist_manager")||(H=_.jJ().resolve(_.S3),_.P("kevlar_watch_observe_playlist_navigations_killswitch")&&H.addEventListener("yt-navigate",_.J2(this,this.onYtNavigate_)),H.setPlaylistComponent(_.mh(this.hostElement).querySelector("#playlist")),H.addEventListener("yt-playlist-data-updated",_.J2(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Ss.addLowPriorityJob(function(){_.QX(X.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.GE(this).removeEventListener("yt-player-updated",_.J2(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.P("kevlar_watch_flexy_playlist_manager")){var X=_.jJ().resolve(_.S3);_.P("kevlar_watch_observe_playlist_navigations_killswitch")&&X.removeEventListener("yt-navigate",_.J2(this,this.onYtNavigate_));
X.cancelVideoSkip();X.removeEventListener("yt-playlist-data-updated",_.J2(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();_.QX(this.hostElement,"yt-autonav-pause-player",!1);X=_.gZ();_.P("kevlar_exit_fullscreen_leaving_watch")&&X&&_.GP(X)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(X){this.player&&this.player.updateVideoData({rvs:X.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(X){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",X)},
onRetrieveLocation_:function(X,H){H.hasComments?H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):H.locationRetrieved("/related_ajax",void 0);X.stopPropagation()},
onSubscriptionChanged_:function(X,H){this.player&&(H?this.player.channelSubscribed():this.player.channelUnsubscribed())},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.mh(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.mh(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(X){this.player=X;X=X.getPlayerState();_.WF().dispatch(_.uC(X));this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();(_.P("kevlar_unified_player")||_.P("kevlar_player_new_bootstrap_adoption"))&&_.Ds()},
setTheaterModeRequested:function(X,H){H=H===void 0?!0:H;_.gZ()&&_.P("external_fullscreen")&&_.GP(document.documentElement);this.theaterRequested_=X;H&&_.dL("wide",X?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.TP(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.QX(this.hostElement,"yt-set-theater-mode-enabled",{enabled:this.theater})},
setPlayerTheaterMode_:function(){try{this.player.setSizeStyle(!0,this.theater)}catch(X){_.Dq(X,typeof this.player),this.player&&_.Dq(X,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var X;((X=this.player)==null?0:X.isFullscreen())?this.player.toggleFullscreen():_.TP(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(X,H){return this.loading?H:!!Object.keys(X).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(X){if(X){X=_.C(X);for(var H=X.next();!H.done;H=X.next())H=H.value,H.youThereRenderer&&Sne(this.youThereManager_,H.youThereRenderer)}},
setPlaylistData_:function(X){return X||{}},
userEngagementConfigDataChanged_:function(X){if(X)if(X.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var H=this.youThereManager_;_.JV()<X.lowEngagementThresholdMs||xil(H,!0)}else X.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.TP(this.hostElement,"yt-autonav-pause-user-engagement",[X])},
isPlayerUnavailable_:function(X,H,l){return!!X&&!this.isVideoPlayable_(X,l)&&!H},
getPlayerOverlays_:function(X){return(X==null?void 0:X.playerOverlays)||null},
isVideoPlayable_:function(X,H){if(!X)return!1;var l=X.status==="OK"||X.status==="LIVE_STREAM_OFFLINE",b=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",X)||this.get("errorScreen.ypcTrailerRenderer",X);X=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",X);var U;H=H==null?void 0:(U=H.playerOverlayRenderer)==null?void 0:U.gatedActionsOverlayRenderer;return!!l||!!b||!!X||!!H},
shouldProceedToNextVideo_:function(X,H,l){var b=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",H),U=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];U=_.P("web_no_skip_video_on_verification_checks")?(X==null?void 0:X.status)&&U.includes(X.status):X&&X.status==="AGE_CHECK_REQUIRED";var K=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",X);K==void 0&&(K=!0);!l||this.isVideoPlayable_(X,this.getPlayerOverlays_(H))||
b||U||!K||_.jJ().resolve(_.S3).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();Awy()},
onPlayerFeedbackStartRequest_:function(X){_.TP(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:X}])},
onPlayerFeedbackArticleRequest_:function(X){_.TP(this.hostElement,"yt-help-dialog-requested",[X])},
onPlayerYpcContentRequest_:function(){var X,H,l,b,U,K,w,d,B=((X=this.data)==null?NaN:(H=X.contents)==null?NaN:(l=H.twoColumnWatchNextResults)==null?NaN:(b=l.secondaryResults)==null?NaN:(U=b.secondaryResults)==null?NaN:(K=U.offerModule)==null?NaN:(w=K.tvfilmOfferModuleRenderer)==null?NaN:(d=w.actionButtons)==null?NaN:d.length)-1;X=[".offerButton.buttonRenderer.",".actionButtons."+(B>=0?B:0)+".buttonRenderer."];H=_.C(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(l=H.next();!l.done;l=H.next())for(l=l.value,b=_.C(X),U=b.next();!U.done;U=b.next())if(U="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+l+U.value,U=this.get(U+"navigationEndpoint",this.data)||this.get(U+"serviceEndpoint",this.data)||this.get(U+"command",this.data)){_.Lc(U,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(X){_.QX(this.hostElement,"yt-autonav-pause-player",X)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(X){X()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(X){switch(X){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(X){switch(X){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.QX(this.hostElement,"yt-autonav-pause-player-ended")}_.WF().dispatch(_.uC(X))},
onPlayerSubscribe_:function(X){_.TP(this.hostElement,"yt-player-subscribe",[X])},
onPlayerUnsubscribe_:function(X){_.TP(this.hostElement,"yt-player-unsubscribe",[X])},
onPlayerAdYtShowToast_:function(X){_.TP(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:X.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(X){if(X)return X},
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(X){return!_.KG("web_watch_move_summary_to_sd")&&!!X},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.P("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var X,H,l,b;this.watchNextSecondaryResults=(X=this.data)==null?void 0:(H=X.contents)==null?void 0:(l=H.twoColumnWatchNextResults)==null?void 0:(b=l.secondaryResults)==null?void 0:b.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var X,H=(X=this.data)==null?void 0:X.engagementPanels;if(H==null?0:H.length){X=null;H=_.C(H);for(var l=H.next();!l.done;l=H.next()){l=l.value;var b=void 0;if(((b=l.engagementPanelSectionListRenderer)==null?void 0:b.targetId)==="engagement-panel-structured-description"){X=l;break}}var U,K,w;X=(U=X)==null?void 0:(K=U.engagementPanelSectionListRenderer)==null?void 0:(w=K.content)==null?void 0:w.structuredDescriptionContentRenderer;if(X==null?0:X.items){U=
[];K=_.C(X.items);for(w=K.next();!w.done;w=K.next()){w=w.value;if(!_.P("sd_horizontal_list_show_nav_killswitch")){var d=b=l=H=X=void 0,B=void 0,q=(X=w.horizontalCardListRenderer)==null?void 0:(H=X.header)==null?void 0:(l=H.richListHeaderRenderer)==null?void 0:(b=l.navigationButton)==null?void 0:(d=b.buttonRenderer)==null?void 0:(B=d.command)==null?void 0:B.commandExecutorCommand;q&&q.commands&&(q.commands=q.commands.filter(function(u){return!_.f(u,$CN)}))}(!w.expandableVideoDescriptionBodyRenderer&&
!w.videoDescriptionHeaderRenderer||_.P("web_delhi_colorful_sd"))&&U.push(w)}return{items:U}}}},
isPlaShelfEnabled_:function(X){if((this.get("adPlacements",X)||[]).length)return!0;X=this.get("playerAds",X)||[];return!(!X.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",X[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var X=this;this.commentsReady=!1;_.Ss.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.eh(_.Ss,function(){X.setComments_()},1E3)},
setComments_:function(){if(!_.P("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.sf("cmi");_.Ss.cancelJob(this.setCommentsJobId_);var X=XC$(this.data);if(X&&X.length){X=_.C(X);for(var H=X.next();!H.done;H=X.next())if(H=H.value,this.get("itemSectionRenderer.sectionIdentifier",H)==="comment-item-section"){this.comments=H.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.QX(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.P("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.P("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.sf("cmc")},
doRemoveComments_:function(){this.comments={};_.P("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Ss.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Ss.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(X,H){var l=_.f(H.endpoint,_.ku);l&&(!(H=this.get("data.currentVideoEndpoint.watchEndpoint"))||l.videoId!==H.videoId||l.playlistId&&l.playlistId!==H.playlistId||l.index!==void 0&&l.index!==H.index||typeof l.startTimeSeconds!=="number"||(X.stopPropagation(),this.setScrollTop(0),_.GE(this).getPlayerPromise().then(function(b){var U=l.startTimeSeconds;b.seekTo(U);b.wakeUpControls();U<b.getDuration()&&b.playVideo()})))},
updatePlayerStartTime_:function(){var X=nEa();"t"in X&&(X=JwZ(X.t),this.player.seekTo(X,!0))},
updateTitleFromWatchNext:function(X){X=XC$(X);var H,l;(X=_.D8(X==null?void 0:(H=X[0])==null?void 0:(l=H.videoPrimaryInfoRenderer)==null?void 0:l.title))&&_.QX(this.hostElement,"yt-update-title",X)},
updateTitle_:function(X){X=this.get("videoDetails.title",X)||"";_.QX(this.hostElement,"yt-update-title",X)},
syncWithRemoteVideo_:function(X,H,l){if(this.active&&this.player){var b=this.player.getVideoData();b.video_id===l&&(l=b.list,_.P("polymer_enable_mdx_queue")&&l&&l.startsWith("RQ")&&(l=void 0),b.video_id!==X||l!=H)&&(X=_.P("kevlar_player_watch_endpoint_navigation")?_.RtO(wFp(X,H)):_.aO(X,H),_.QX(this.hostElement,"yt-navigate",{endpoint:X,isRemotePlayback:!0}))}},
attachWatchPageSkeleton_:function(){var X=document.querySelector("#watch-page-skeleton");if(X){var H=X.querySelector("#primary-info"),l=X.querySelector("#secondary-info"),b=X.querySelector("#related");H&&_.mh(this.hostElement).querySelector("#info-skeleton").appendChild(H);l&&_.mh(this.hostElement).querySelector("#meta-skeleton").appendChild(l);b&&(_.mh(this.hostElement).querySelector("#related-skeleton").appendChild(b),this.watchNextSkeletonEl_=b);_.HE(X)}},
handlePlayerUpdated_:function(){_.GE(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(X,H){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof H!=="undefined"){var l=this.watchNextSkeletonEl_.children,b=X&&X.indexSplices.length?X.indexSplices[0].index:0;X=Math.min(this.watchNextShownItems.length,l.length);H||(b=0,X=l.length);if(!this.ghostCardsEnabled)for(H=b;H<X;H++)l[H].classList.add("hidden")}},
onPlayerFullscreenChange_:function(X){_.P("external_fullscreen")||_.TP(this.hostElement,"yt-player-fullscreen",[X.fullscreen])},
onFullscreenChange_:function(X){this.fullscreen=X;this.gestures_&&this.gestures_.update(this.fullscreen);var H=_.GE(this);H.getPlayerPromise().then(function(l){l.setFauxFullscreen(!!_.gZ())});
this.updateFullBleedElementLocations();X&&H.focusOnPlayer()},
computeShouldStampChat_:function(X,H){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!H},
computeIsDonationShelfCollapsed_:function(X){return X},
computeShouldShowMerchShelf:function(X,H){return H&&!!X},
computeResponseHasComments:function(X){var H,l,b,U,K;return!!(X==null?0:(H=X.contents)==null?0:(l=H.twoColumnWatchNextResults)==null?0:(b=l.results)==null?0:(U=b.results)==null?0:(K=U.contents)==null?0:K.some(function(w){var d;return(w==null?void 0:(d=w.itemSectionRenderer)==null?void 0:d.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(X,H,l,b){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&b?!1:!!X&&!!Object.keys(X).length&&!H},
identity:_.GK,onWindowResized_:function(X){this.windowSize_=X;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())},
onPlayerPresentingVideoDataChange_:function(X){var H=this;X&&X.type!=="dataloaded"&&X.type!=="dataupdated"||_.GE(this).getPlayerPromise().then(function(l){var b=l.getPlayerState();b!==5&&b!==0&&(l=1/l.getVideoAspectRatio(),H.videoHeightToWidthRatio_!==l&&(H.videoHeightToWidthRatio_=l))})},
schedulePlayerSizeUpdate_:function(X){var H=this,l=_.P("kevlar_watch_while_v2")||_.P("web_watch_pip"),b=function(){if(H.watchMetadata){var U,K;(K=(U=H.watchMetadata).resize)==null||K.call(U)}_.GE(H).getPlayerPromise().then(function(w){if(_.KG("kevlar_set_internal_player_size")){if(!l||!_.jJ().resolve(_.f9).isMiniplayerActive()){var d=H.calculateCurrentPlayerSize_();w.setInternalSize(d.width,d.height)}}else w.setSize(NaN,NaN);_.P("kevlar_watch_while")&&H.updateWatchWhileScrollThreshold_()})};
X?b():_.oJ(_.Ss,b)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(X){this.set("data.survey",X.detail)},
onYtShowSurveyCommand_:function(X){this.set("data.survey",_.f(X,OBl).survey)},
onDownloadedVideoDeleted:function(X){var H=this,l,b;return _.h(function(U){if(U.nextAddress==1){if(!H.active||(l=H.playerData)==null||!l.offlineState||H.videoId!==X)return U.return();(b=H.player)==null||b.stopVideo();_.HW().navigatingAwayFromWatchDeletedVideo=!0;_.Lc(_.qEb,H.hostElement);return U.yield(_.HW().navigationFinishPromise,2)}_.HW().navigatingAwayFromWatchDeletedVideo=!1;_.m5(U)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var X;this.theater?X=_.kY(.5625*this.windowSize_.width,480,this.windowSize_.height-185):X=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==X&&(this.watchWhileScrollThreshold_=X)}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var X=_.mh(this.hostElement).querySelector("#secondary-inner");if(X){var H=_.mh(this.hostElement).querySelector("#below"),l=_.mh(this.hostElement).querySelector("#secondary"),b=_.mh(this.hostElement).querySelector("#comments");b&&l&&H&&(this.defaultTwoColumnLayout?(X.appendChild(b),l.appendChild(X)):(H.appendChild(b),yN(H,X)))}}},
isTwoColumnsChanged_:function(X,H){if(X!==!0||H!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(X=_.mh(this.hostElement).querySelector("#secondary-inner"))){H=_.mh(this.hostElement).querySelector("#below");var l=_.mh(this.hostElement).querySelector("#secondary"),b=_.mh(this.hostElement).querySelector("#comments");b&&l&&H&&(this.isTwoColumns_?(X.appendChild(b),l.appendChild(X)):(H.appendChild(b),yN(H,X)))}}else{X=!_.P("web_watch_enable_fs_squeezeback_panels");
H=_.mh(this.hostElement).querySelector("#panels");var U=_.mh(this.hostElement).querySelector("#alerts"),K=_.mh(this.hostElement).querySelector("#shopping-timely-shelf");l=_.mh(this.hostElement).querySelector("#playlist");b=_.mh(this.hostElement).querySelector("#related");var w=_.mh(this.hostElement).querySelector("#donation-shelf"),d=_.mh(this.hostElement).querySelector("#comments"),B=_.mh(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(U=_.mh(this.hostElement).querySelector("#secondary-inner"),
X&&(U.appendChild(H),U.appendChild(l),this.aiCompanionEnabled&&B&&U.appendChild(B)),U.appendChild(w),U.appendChild(b)):(X&&(_.px(H,U),_.px(l,U),this.aiCompanionEnabled&&B&&_.px(B,U),_.px(K,l)),_.px(w,U),d&&_.px(b,d));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.P("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.P("web_watch_enable_fs_squeezeback_panels")&&_.P("web_watch_theater_chat")){var X=_.mh(this.hostElement).querySelector("#chat-container"),H=this.theater&&!this.fullscreen||_.P("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&H?(H=_.mh(this.hostElement).querySelector("#columns"),(X==null?void 0:X.parentElement)!==H&&H.append(X),this.fixedPanels=!0):(this.fixedPanels=
!1,H=_.mh(this.hostElement).querySelector("#playlist"),X&&H?_.SH(X,H):_.x2(new _.qd("Missing element when updating chat location",{"chatContainer defined":!!X,"playlist defined":!!H})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(X,H){return _.P("sw_metadata_vis_toggle_ks")?!0:!!X||!!H},
computeForceDarkPanelTheme:function(X){return _.P("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&X:!1},
safeUpdateStyles:function(X){try{_.j4(this.hostElement,X)}catch(H){_.x2(H)}},
videoHeightToWidthRatioChanged_:function(X,H){H&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(X){this.videoHeightToWidthRatio_=1/X},
computeIsVerticalVideo_:function(X){return X>=1},
computeIsFourThreeToSixteenNineVideo_:function(X){return X<=.7501&&X>=.5624},
computeIsExtraWideVideo_:function(X){return X<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.GE(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.GE(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){Dix(this.youThereManager_)},
computePlaylistData_:function(X,H){return H},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.jJ().resolve(_.S3).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var X=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Ss.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Ss.addLowPriorityJob(function(){X.fullHeightPanelPositionUpdateJobId=0;var H=_.mh(X.hostElement).querySelector("#secondary"),l=_.mh(X.hostElement).querySelector("#fixed-secondary");H=H.getBoundingClientRect();var b=H.width;X.swatcherooSqueezeback&&
(b+=c7);if(X.swatcherooSqueezeback){var U=_.mh(X.hostElement).querySelector("#squeezeback-constraining-container");U.style.width=b+"px";U.style.flex="0 0 "+b+"px"}l.style.width=b+"px";l.style.left=H.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var X=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Ss.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Ss.addLowPriorityJob(function(){X.panelMaxHeightUpdateJob_=0;var H;!X.isTwoColumns_||X.theater||X.fullscreen?H=460:H=X.calculateNormalPlayerSize_().height;var l=H+"px";_.P("live_chat_taller_height")&&!X.theater&&(l="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.P("live_chat_medium_height")&&!X.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.P("live_chat_scaled_height")&&!X.theater&&(l="calc(100vh - var(--ytd-toolbar-height) - 238px)");X.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":H+"px","--ytd-watch-flexy-chat-max-height":l,"--ytd-watch-flexy-structured-description-max-height":H+"px","--ytd-watch-flexy-comments-panel-max-height":H+"px","--ytd-comments-engagement-panel-content-height":H+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(X){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",X)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.j7(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(X){var H=_.mh(this.hostElement).querySelector("#engagement-panel-scrim");X?H.addEventListener("tap",_.J2(this,this.onEngagementPanelScrimClick_)):H.removeEventListener("tap",_.J2(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtEngagementPanelVisibleChanged:function(X,H,l){if(this.active&&this.trackEngagementPanelVisibility&&!InC.includes(l)){if(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.NG(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var b=_.jJ().resolve(_.d3);this.visiblePanelIdentifiers_.forEach(function(U){U!==l&&b.hidePanel({identifier:U})})}this.visiblePanelIdentifiers_.add(l)}H!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&H!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(l);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(X){return X?"":"watch-active-metadata"},
computeNewMetadataClass:function(X){return X?"watch-active-metadata":""},
computeIsSingleColumn:function(X,H){return H&&!X},
computeFullBleedPlayer:function(X,H,l){return _.P("external_fullscreen")&&X||H||l},
computeDefaultLayout:function(X){return!X},
computeDefaultTwoColumnLayout:function(X,H){return!X&&H},
updatePanelsLocation:function(){if(_.P("web_watch_enable_fs_squeezeback_panels")){var X=_.mh(this.hostElement).querySelector("#below"),H=_.mh(this.hostElement).querySelector("#panels"),l=_.mh(this.hostElement).querySelector("#playlist"),b=_.mh(this.hostElement).querySelector("#chat-container"),U=_.mh(this.hostElement).querySelector("#panels-full-bleed-container"),K=_.mh(this.hostElement).querySelector("#secondary-inner"),w=_.mh(this.hostElement).querySelector("#shopping-timely-shelf"),d=_.mh(this.hostElement).querySelector("#persistent-panel-container");
if(X&&H&&l&&b&&U&&K&&w&&(this.aiCompanionEnabled?d:1)){var B=this.fullscreen||this.theater&&this.iMaxTheaterMode,q=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;q?(q=_.mh(this.hostElement).querySelector("#columns"),(b==null?void 0:b.parentElement)!==q&&q.append(b),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):B?U.appendChild(b):this.isTwoColumns_?yN(K,b):yN(X,b);B?(U.appendChild(H),U.appendChild(l),
this.aiCompanionEnabled&&d&&U.appendChild(d)):(this.isTwoColumns_?(yN(K,H),yN(K,l),this.aiCompanionEnabled&&d&&yN(K,d)):(yN(X,H),yN(X,l),this.aiCompanionEnabled&&d&&yN(X,d)),yN(X,w))}}},
swatcherooUpdatePanelsLocation:function(X,H,l,b,U,K){if(this.is==="ytd-watch-grid"){H=X&&!H;this.swatcherooSplitScroll&&(H?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));l=_.mh(this.hostElement).querySelector("#panels");var w=_.mh(this.hostElement).querySelector("#playlist"),d=_.mh(this.hostElement).querySelector("#persistent-panel-container"),
B=_.mh(this.hostElement).querySelector("#fixed-secondary"),q=_.mh(this.hostElement).querySelector("#fixed-below"),u=_.mh(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),e=_.mh(this.hostElement).querySelector("#chat-container");K&&(X?(B.appendChild(l),this.aiCompanionEnabled&&d&&B.appendChild(d)):(q.appendChild(l),this.aiCompanionEnabled&&d&&q.appendChild(d)));U?X?B.appendChild(e):q.appendChild(e):_.SH(e,u);b?X?B.appendChild(w):q.appendChild(w):_.SH(w,
u);this.swatcherooSplitScroll&&(X=_.mh(this.hostElement).querySelector("#secondary"),b=_.mh(this.hostElement).querySelector("#columns"),U=_.mh(this.hostElement).querySelector("#fixed-columns-secondary"),H?U.appendChild(X):b.appendChild(X))}},
computeMetadataSkinnyMode:function(X,H,l){return this.is!=="ytd-watch-grid"?!1:X?l:H},
computeWatchWhilePanelsActive:function(X,H){return X||H},
computeNoBorderOnChat:function(X){return _.P("web_watch_theater_chat_no_border")&&X},
computeLiveChatPresentAndExpanded:function(X,H){return X&&!H},
computePanelExpanded:function(X,H,l){return X||H||l},
computeSqueezeback:function(X,H,l,b){if(_.P("web_watch_enable_fs_squeezeback_panels")){var U=this.iMaxTheaterMode&&this.theater,K=this.theater&&!this.iMaxTheaterMode;return(X||H||l)&&(U||b)||H&&K}},
computeSwatcherooSqueezeback:function(X,H,l){return this.is!=="ytd-watch-grid"||_.P("ww_squeezeback_killswitch")?!1:X&&H&&l},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(X){_.GE(this).getPlayerPromise().then(function(H){var l;(l=H.changeMarkerVisibility)==null||l.call(H,_.f(X,Fz).isVisible||!1,_.f(X,Fz).entityKeys||[],_.f(X,Fz).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(X){this.liveChatCollapsed=X.detail;_.WF().dispatch(rsa(X.detail));if(!this.liveChatCollapsed&&this.squeezeback){var H=_.jJ().resolve(_.d3);this.visiblePanelIdentifiers_.forEach(function(l){H.hidePanel({identifier:l})})}},
onSetPlaylistCollapsed:function(X){_.P("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!X)},
provideRenderingData:function(X,H){switch(X){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=H;break;case "PRIMARY_INFO":_.P("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=H);this.videoPrimaryInfoRendererValue=H==null?void 0:H.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.P("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=H);this.videoSecondaryInfoRendererValue=H==null?void 0:H.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
H;break;case "CLARIFICATION":this.clarifyBoxValue=H;break;case "LIVE_CHAT":this.conversationBar=H;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=H;break;case "PLAYLIST":this.externalPlaylistData_=H!=null?H:{};break;case "MERCH_SHELF":this.merchShelfValue=H==null?void 0:H.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=H;break;case "TICKET_SHELF":this.ticket=H;break;case "OFFER_MODULE":this.offerModule=H;break;case "LIMITED_STATE":this.limitedStateValue=
H;break;case "DONATION_SHELF":this.donation=H;break;case "ALERTS":this.alertsValue=H;break;case "COMMENTS":this.comments=H;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=H;break;case "ENGAGEMENT_PANELS":this.engagementPanels=H;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=H;break;case "RICH_GRID_RENDERER":this.richGridRendererData=H;break;case "EXPANDABLE_METADATA":this.expandableMetadata=H;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
H;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=H;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=H}},
toggleCinematicsActive:function(X){this.cinematicsActive=X}}];var SPl=function(X,H){var l;return((l=X.prefixMapping)==null?0:l[H])?X.prefixMapping[H]:X.SHARED_RENDERERS_.hasOwnProperty(H)?"yt":X.prefix},aa={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}}};aa.DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,addSpacing:_.P("kevlar_add_spacing_to_sheets")},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
aa.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"};
aa.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"};aa.LOCKED_OVERLAY_DIALOG={component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,scrollAction:"lock",withBackdrop:!0},preventAutonav:!0};
aa.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.P("kevlar_mealbar_above_player"),modern:_.gx("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"}};
aa.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};aa.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};aa.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
aa.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)"}};
aa.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};
aa.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};
aa.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};
aa.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.P("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"}};
aa.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"}};aa.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};aa.TOAST={component:null,properties:{}};var zTe=new function(X,H,l){this.supportedPopups=X;this.navigationEndpointPopupMap=H;this.popupTypeMap=l;this.supportedPopups=X;this.navigationEndpointPopupMap=H;this.popupTypeMap=l}({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:_.P("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"}),nce=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=aa;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 kJZ=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.qj.getInstance()},Zn=function(X,H){var l=X.pageNameToElement.get(H);
if(!l){switch(H){case "watch":var b=_.P("web_watch_force_learning_journey_for_testing")?_.Wr("ytd-watch-learning-journey"):_.P("kevlar_watch_fixie")?_.Wr("ytd-watch-fixie"):_.P("kevlar_watch_grid")?_.Wr("ytd-watch-grid"):_.Wr("ytd-watch-flexy");break;case "learning_journey_watch":b=_.Wr("ytd-watch-learning-journey");break;case "shorts":b=_.Wr("ytd-shorts");break;case "search":b=_.Wr("ytd-search");break;case "channel":b=_.Wr("ytd-browse");b.pageSubtype="channels";break;case "trending":b=_.Wr("ytd-browse");
b.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":b=
_.Wr("ytd-browse");b.pageSubtype=H;break;case "browse":b=_.Wr("ytd-browse");break;default:_.x2(new _.qd("Error getting page element for type",H))}l=b;X.pageNameToElement.set(H,l)}return l};
kJZ.prototype.preparePage=function(X,H,l){l&&(X=_.LT(l)||X);if(X!=="watch"&&X!=="learning_journey_watch"){var b=this.elementPoolPopulator,U=X;U!=b.targetPage_&&b.pendingPages_.indexOf(U)>-1&&(b.targetPage_&&(b.pendingPages_.unshift(b.targetPage_),b.abort()),o75(b,U),_.Dm_(b,U))}if((b=Zn(this,X))||!_.f(l,_.aL)){b.isAttached||b===H||(b.hidden=!0);if(!b.data&&(X!=="watch"&&X!=="learning_journey_watch"||!_.P("swatcheroo_page_pool_dont_provide_filler_data"))){var K;if(X=(K=_.gx("FILLER_DATA",{})[X])==
null?void 0:K.response)b.data=X}return b}};var x_C=function(X){this.JSC$33524_clientRoot=X;this.playlistHandlerActionMap={"yt-add-to-playlist-command":bjY,"yt-end-playlist-command":U7$,"yt-recover-playlist-command":KqY,"yt-refresh-playlist-command":wCN,"yt-playlist-remove-videos-action":RGy};_.ik(_.Zq.getInstance(),this.playlistHandlerActionMap,this.JSC$33524_clientRoot);yJ$()},D_a;var ia=function(X,H,l){this.apiKey=X;this.endpoint=H;this.confidenceThreshold=l===void 0?.5:l;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=H==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||H==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
H==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||H==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new ZcY};
_.R=ia.prototype;
_.R.start=function(X){if(this.state===0)if(this.isOnline()){X.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=X.supportsHttpHeadersOverwriteParam);X.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=X.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.qJ("voice_assistant");_.MJ("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=X.languageCode||"en-US";this.supportsCrossDomainXhr=X.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=X.youtubeAssistantRequest||null;this.listeningHandler=X.listeningHandler||this.listeningHandler;this.audioDetectedHandler=X.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=X.stopHandler||this.stopHandler;this.completeHandler=X.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=X.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=X.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
X.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=X.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=X.accessToken;this.additionalHeaders=X.additionalHeaders||{};var H;this.prefetchResponseTimeoutMs=(H=X.prefetchResponseTimeoutMs)!=null?H:this.prefetchResponseTimeoutMs;t$Z(this);this.startAudio();WvY(this)}else this.errorHandler("OFFLINE")};
_.R.stop=function(X){var H=X===void 0?{}:X;X=H.logCancel===void 0?!0:H.logCancel;var l=H.logMicClosed===void 0?!0:H.logMicClosed;var b=H.handleError===void 0?!0:H.handleError;H=H.handleStop===void 0?!0:H.handleStop;this.state!==0&&(X&&vw("voz_cx"),O5(this,{logMicClosed:l,handleStop:H}),b&&this.errorHandler("ABORTED"))};
_.R.getState=function(){return this.state};
_.R.isSupported=function(){return!0};
_.R.stopAudio=function(X){(X===void 0||X)&&vw("voz_mf")};
_.R.startAudio=function(){vw("voz_vp");return _.rZ(null)};
var Ecl=function(X,H){X.channelOpen&&(X.state!==2&&(X.state=2,vw("voz_ss"),X.listeningHandler()),H=new Uint8Array(H),H='{ "audioIn": "'+_.Ik(H)+'" }',X.channel.send(H))},O5=function(X,H){var l=H===void 0?{}:H;
H=l.logMicClosed===void 0?!0:l.logMicClosed;l=l.handleStop===void 0?!0:l.handleStop;X.vozEndOfDataTimeout>-1&&(clearTimeout(X.vozEndOfDataTimeout),X.vozEndOfDataTimeout=-1);gcd(X);X.stopAudio(H);X.channel&&(X.channelOpen=!1,X.manuallyClosedChannel=!0,X.channel.close(),X.channel=void 0);X.transcribedSpeechResults=[];X.state=0;l&&X.stopHandler()},t$Z=function(X){var H={httpHeadersOverwriteParam:X.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},X.additionalHeaders,X.accessToken&&X.isUsingVoz?{Authorization:"Bearer "+X.accessToken}:{"x-goog-api-key":X.apiKey}),supportsCrossDomainXhr:X.supportsCrossDomainXhr};X.channel=new $F(X.endpoint,H);X.channel.open();_.n8(X.channel,"w",function(){var l=X.channel,b=l.send,U=X.isUsingVoz?"PLACEHOLDER":"example";U={config:{dialogStateIn:{languageCode:X.languageCode},deviceConfig:{deviceId:U,deviceModelId:U},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!X.isUsingVoz)U.config.requestType=4;else if(X.isUsingVoz&&X.youtubeAssistantRequest){var K=JSON.stringify(X.youtubeAssistantRequest);U.config.internalIn={youtubeAssistantS3InputJson:K}}b.call(l,U);X.channelOpen=!0;X.manuallyClosedChannel=!1});
_.n8(X.channel,"x",function(){X.manuallyClosedChannel||(X.channelOpen=!1,X.channel=void 0,O5(X))});
_.n8(X.channel,"z",function(l){if(l.data){gcd(X);for(var b=0;b<l.data.length;b++){var U=X,K=l.data[b],w=K.speechResults;if(w)a:{var d=[];K=[];var B=!1;w=_.C(w);for(var q=w.next();!q.done;q=w.next()){q=q.value;if(q.noSpeech){O5(U);U.errorHandler("NO_SPEECH");break a}q.transcript!==void 0&&q.stability!==void 0&&(q.stability<U.confidenceThreshold&&(B=!0),B?K.push(q.transcript):d.push(q.transcript))}if(d.length!==0||K.length!==0)d=d.join(" "),K=K.join(" "),U.receivedEndOfUtterance&&!U.isUsingVoz?U.isUsingVoz||
U.completeHandler([d,K]):(B=U,w=d,q=K,vw("voz_sf"),B.transcriptionUpdateHandler(w,q),B.transcribedSpeechResults=[w,q]),U.receivedEndOfUtterance&&(vw("voz_eou"),U.transcriptionCompleteHandler([d,K]),U.isUsingVoz&&(U.prefetchResponseTimeoutMs===0?O5(U,{logMicClosed:!1,handleStop:!0}):U.prefetchResponseTimeoutMs>0&&GJZ(U)))}else U.isUsingVoz&&(K==null?0:K.internalOut)?(K=JSON.parse(K.internalOut.youtubeAssistantS3OutputJson),K.userHasOptedInToVaa||K.vaaConsent?U.vaaConsentUpdateHandler(!!K.userHasOptedInToVaa,
!!K.vaaConsent):(axe(U),K&&(d=U.transcribedSpeechResults,vw("voz_rqf"),U.completeHandler(d,K)))):K.eventType==="END_OF_UTTERANCE"?U.receivedEndOfUtterance=!0:(vw("voz_err"),U.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.x2(Error("Wl")))}}});
_.n8(X.channel,"y",function(l){O5(X);switch(l.status){case 1:l="WEBCHANNEL_NETWORK_ERROR";break;case 2:l="WEBCHANNEL_SERVER_ERROR";break;default:l="WEBCHANNEL_UNKNOWN_ERROR"}X.errorHandler(l);X.logError(Error(l))})};
ia.prototype.logError=function(X){_.n2(X)};
ia.prototype.isOnline=function(){return!0};
var GJZ=function(X){axe(X);X.prefetchResponseSetTimeoutId=setTimeout(function(){O5(X,{logMicClosed:!1,handleStop:!0})},X.prefetchResponseTimeoutMs)},axe=function(X){X.prefetchResponseSetTimeoutId>-1&&(clearTimeout(X.prefetchResponseSetTimeoutId),X.prefetchResponseSetTimeoutId=-1)},WvY=function(X){gcd(X);
X.noResponseReceivedTimeout=window.setTimeout(function(){O5(X);X.errorHandler("NO_SPEECH")},11E3)},gcd=function(X){X.noResponseReceivedTimeout>-1&&(window.clearTimeout(X.noResponseReceivedTimeout),X.noResponseReceivedTimeout=-1)},vw=function(X){_.sf(X,void 0,"voice_assistant")};var mE=function(){ia.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.S(mE,ia);mE.prototype.isSupported=function(){return d7x()};
mE.prototype.startAudio=function(){var X=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Cq(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(b){Zm5(X,b)};
this.processor.connect(this.audioContext.destination);var H=function(b){X.stream=b;if(!X.audioContext)return _.rZ(null);b=X.audioContext.createMediaStreamSource(b);X.processor&&b.connect(X.processor);return _.rZ(null)},l={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?H(this.stream):(l=navigator.mediaDevices.getUserMedia(l))?l.then(H).catch(function(b){O5(X);b.name&&b.name==="NotAllowedError"?X.errorHandler("NO_MICROPHONE_PERMISSION"):(X.errorHandler("AUDIO_ERROR"),X.logError(b));return _.Cq(null)}):(O5(this),this.errorHandler("AUDIO_ERROR"),_.x2(Error("Xl")));
return ia.prototype.startAudio.call(this)};
mE.prototype.stopAudio=function(X){X=X===void 0?!0:X;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(H){H.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;ia.prototype.stopAudio.call(this,X)};
mE.prototype.isOnline=function(){return navigator.onLine};
var Zm5=function(X,H){if(X.audioContext)if(window.OfflineAudioContext){var l=X.audioContext.sampleRate,b=H.inputBuffer.getChannelData(0);H=new window.OfflineAudioContext(1,b.length,16E3);for(var U=H.createBuffer(1,b.length,l),K=U.getChannelData(0),w=0,d=0;d<b.length;d++)K[d]=b[d],w+=K[d]*K[d];!X.audioDetected&&Math.sqrt(w/b.length)>.01&&(X.audioDetected=!0,X.audioDetectedHandler());b=H.createBufferSource();b.buffer=U;b.connect(H.destination);b.start(0);H.oncomplete=function(B){B=B.renderedBuffer.getChannelData(0);
for(var q=Math.floor(16384E3/l),u=new Int16Array(q),e=0;e<q;++e)u[e]=Math.max(-1,Math.min(1,B[e]))*32767;Ecl(X,u.buffer)};
H.startRendering()}else imY(X,H)},imY=function(X,H){var l=X.audioContext.sampleRate,b=H.inputBuffer.getChannelData(0),U=Math.floor((l+8E3)/16E3);
l=b.length/U;H=new Float32Array(l);for(var K=0;K<l;++K)H[K]=b[K*U];b=new Int16Array(l);for(U=0;U<l;++U)b[U]=Math.max(-1,Math.min(1,H[U]))*32767;Ecl(X,b.buffer)};var vc$={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var OmU=function(){this.JSC$21668_audioEnabled=!0;this.audioFeedbackHolder={}};
OmU.prototype.isPlaying=function(X){return X.currentTime>0&&!X.paused&&!X.ended&&X.readyState>2};
var m_N=function(X){for(var H=_.C(Object.values(vc$)),l=H.next();!l.done;l=H.next())l=l.value,X.audioFeedbackHolder[l]=new Audio,X.audioFeedbackHolder[l].src="/s/search/audio/"+l+".mp3",X.audioFeedbackHolder[l].load()},Q5=function(X,H){if(X.JSC$21668_audioEnabled!==!1&&H in X.audioFeedbackHolder){for(var l=_.C(Object.values(X.audioFeedbackHolder)),b=l.next();!b.done;b=l.next())b=b.value,X.isPlaying(b)&&b.pause();
X.audioFeedbackHolder[H].currentTime=0;X.audioFeedbackHolder[H].play().catch(function(){})}};var QQN=function(X,H){var l=this;this.store=X;this.service=H;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){l.setState("offline");l.stop()};
this.audioPlayer=new OmU;var b;(b=this.audioPlayer)==null||m_N(b)};
_.R=QQN.prototype;_.R.getService=function(){return this.service};
_.R.isEnabled=function(){return!!this.service};
_.R.isSupported=function(){var X;return(X=this.service)==null?void 0:X.isSupported()};
_.R.start=function(){var X=this,H,l,b,U,K,w,d,B,q,u,e,y,V;return _.h(function(p){switch(p.nextAddress){case 1:X.store.dispatch(Jse("",""));if(!navigator.onLine)return X.setState("offline"),p.return();window.addEventListener("offline",X.handleOfflineEvent);X.stream=null;if(!X.permissionsSupported){p.jumpTo(2);break}_.Ew(p,3);return p.yield(T0y(X),5);case 5:H=p.yieldResult;if(!H)return(l=X.audioPlayer)==null||Q5(l,"failure"),p.return();X.service.stream=X.stream;X.setState("listening");_.Zt(p,2);break;
case 3:_.Ow(p),X.permissionsSupported=!1;case 2:b={context:_.M4m(_.IF())},b.youtubeAssistantParams={searchParams:{inlineSearchResponse:X.enableInlineSearchResponse}},U=function(z,t){X.store.dispatch(LAp("transcribing"));X.store.dispatch(Jse(z,t))},K=function(){var z;
(z=X.audioPlayer)==null||Q5(z,"open");X.setState("listening")},w=function(){X.setState("transcribing")},d=function(z){X.setErrorState(z)},B=function(z,t){var W;
(W=X.audioPlayer)==null||Q5(W,"success");t&&(_.P("kevlar_voice_search_inline_search")&&(X.responseProcessor=_.jJ().resolve(_.N8z),X.responseProcessor&&(W=t.navigationAction,z=t.prefetchedSearchResponse,W&&z&&(W=(new _.dFe).JSC$14495_getStoreKey(W),_.n9(X.responseProcessor,z,W)))),X.JSC$21686_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",t))},q=function(){window.removeEventListener("offline",X.handleOfflineEvent)},u=_.zKK(!1),e=u.Authorization!=null,y=X.enableFirstPartyAuth||
X.enableFPAForSignedInUsers&&e?u:{"X-Goog-Visitor-Id":u["X-Goog-Visitor-Id"]},V={completeHandler:B,
errorHandler:d,listeningHandler:K,audioDetectedHandler:w,stopHandler:q,transcriptionUpdateHandler:U,youtubeAssistantRequest:b,languageCode:N0$(),additionalHeaders:y,supportsCrossDomainXhr:X.enableFirstPartyAuth||X.enableFPAForSignedInUsers&&e,supportsHttpHeadersOverwriteParam:!X.disableHttpHeadersOverwrite},X.service.start(V),_.m5(p)}})};
_.R.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.R.reset=function(){this.store.dispatch(_.Of({type:"RESET_VOICE_SEARCH_STATE"}))};
_.R.setState=function(X){this.store.dispatch(LAp(X))};
_.R.setErrorState=function(X){switch(X){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var H;(H=this.audioPlayer)==null||Q5(H,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)T0y(this);else{var l;(l=this.audioPlayer)==null||Q5(l,"failure");this.setState("permission-denied")}break;case "ABORTED":var b;(b=this.audioPlayer)==null||Q5(b,"no_input");break;default:var U;(U=this.audioPlayer)==
null||Q5(U,"no_input");this.setState("timeout")}};
var T0y=function(X){var H,l;return _.h(function(b){switch(b.nextAddress){case 1:return b.yield(navigator.permissions.query({name:"microphone"}),2);case 2:H=b.yieldResult;if(H.state==="granted")return b.return(!0);if(H.state==="denied")return X.setState("permission-denied"),b.return(!1);X.setState("permission");l={audio:{sampleSize:16,channelCount:1},video:!1};_.Ew(b,3);return b.yield(navigator.mediaDevices.getUserMedia(l),5);case 5:return X.stream=b.yieldResult,b.return(!0);case 3:return _.Ow(b),
X.setState("permission-denied"),b.return(!1)}})},N0$=function(){var X=_.gx("INNERTUBE_CONTEXT_HL"),H=_.gx("INNERTUBE_CONTEXT_GL");
return X.indexOf("-")>-1?X:X+"-"+H};var cAy=function(X,H,l){QQN.call(this,H,l);this.JSC$21686_actionRouter=X;this.enableInlineSearchResponse=_.P("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.P("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.P("kevlar_voice_search_enable_fpa_signedin_users")},jQZ;
_.S(cAy,QQN);
var rAZ=function(){if(!jQZ){var X="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.P("kevlar_voice_search_auth_enabled")||_.P("kevlar_voice_search_use_yt_endpoint")?X="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.P("kevlar_voice_search_use_fp_endpoint")&&(X="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");jQZ=
new cAy(_.Zq.getInstance(),_.WF(),new mE(_.gx("VOZ_API_KEY"),X,.5))}return jQZ};var JAa=function(X){this.JSC$21690_clientRoot=X;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)]]));X=_.C(this.eventListeners);for(var H=X.next();!H.done;H=X.next()){var l=
_.C(H.value);H=l.next().value;l=l.next().value;l=_.C(l);for(var b=l.next();!b.done;b=l.next()){var U=_.C(b.value);b=U.next().value;U=U.next().value;H.addEventListener(b,U)}}_.ik(_.Zq.getInstance(),this.autonavPauseActionMap,this.JSC$21690_clientRoot)},Lvl,YPl=function(X){return _.P("kevlar_autonav_popup_filtering")?(X=_.WM(X))?X.hasAttribute("prevent-autonav"):!0:!0};
_.R=JAa.prototype;_.R.onIronOverlayOpened=function(X){YPl(X)&&(this.autonavPauseReasons.overlayOpen=!0,Tz(this))};
_.R.onIronOverlayClosed=function(X){YPl(X)&&(this.autonavPauseReasons.overlayOpen=!1,Tz(this))};
_.R.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Tz(this)};
_.R.onYtAutonavPauseBlur=function(){var X=this;_.Ss.addJob(function(){IxU()||(X.autonavPauseReasons.inputBoxFocus=!1,Tz(X))},8,0)};
_.R.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Tz(this)};
_.R.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Tz(this)};
_.R.onYtAutonavPauseScroll=function(){var X=_.jJ().resolve(_.gd);X.isOnWatch()&&(X=X.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=X.getBoundingClientRect().top<-200,Tz(this))};
_.R.onYtAutonavPauseUserEngagement=function(X){var H=this;if(_.P("user_engagement_enable_autoplay_pause_feature")){var l=Number(X.lowEngagementThresholdMs);isNaN(l)||l<=0||X.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?jp("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.jJ().resolve(_.HS),_.JV()<l?_.eh(_.Ss,function(){jp("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):cwp()?(this.userEngagementCsn=_.Bi(),_.eh(_.Ss,function(){jp("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
H.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Tz(this)):jp("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.keb(Error("Yl`"+JSON.stringify(X)))};
_.R.onYtAutonavPausePlayer=function(X){this.autonavPauseReasons.requestedByPlayer=!!X.detail;Tz(this)};
_.R.onYtAutonavVisibilityChanged=function(){var X=this,H,l,b;return _.h(function(U){if(U.nextAddress==1)return(H=_.aq())?U.yield(H.getPlayerPromise(),2):U.return();l=U.yieldResult;b=l.isMuted()||l.getVolume()===0;X.autonavPauseReasons.backgroundAndMute=IxU()&&b;Tz(X);_.m5(U)})};
_.R.onYtAutonavPausePlayerEnded=function(){_.jJ().resolve(_.HS);var X=144E5;_.P("user_engagement_enable_autoplay_pause_feature")||_.P("is_part_of_any_user_engagement_experiment")||(X=45E5);this.autonavPauseReasons.longIdle=_.JV()>X;AA$(this);Tz(this)};
_.R.onYtUserActivity=function(){var X=this;this.autonavPauseReasons.userEngagement&&(_.eh(_.Ss,function(){jp("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",X.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Tz(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.eh(_.Ss,function(){jp("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",X.userEngagementCsn);_.z3()}),this.autonavPauseReasons.youthereLactExperiment=!1,Tz(this));
this.autonavPauseReasons.longIdle&&!_.P("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Tz(this))};
var IxU=function(){var X=window.document.visibilityState;return!(!X||X==="visible")},Tz=function(X){for(var H=!1,l=_.C(Object.values(X.autonavPauseReasons)),b=l.next();!b.done;b=l.next())b=b.value,H=H||b;
H?_.ac.getInstance().pause(X.autonavPauseReasons):(X=_.ac.getInstance(),X.autonavState_==3?(X.setState(2,!1,!1),X.autonavPauseReason_=void 0):X.autonavState_==1&&(X.disabledAutonavPauseReason_=void 0))},AA$=function(X){var H=!1;
if(_.P("enable_autoplay_pause_by_lact")){_.jJ().resolve(_.HS);H=_.Yy("autoplay_pause_by_lact_sec")*1E3;var l=_.Yy("autoplay_pause_by_lact_sampling_fraction");(H=_.JV()>=H&&Math.random()<l)&&!cwp()&&(_.eh(_.Ss,function(){jp("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),H=!1)}H!==X.autonavPauseReasons.youthereLactExperiment&&(X.autonavPauseReasons.youthereLactExperiment=H)&&(X.userEngagementCsn=_.Bi(),_.eh(_.Ss,function(){jp("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",X.userEngagementCsn)}));
X.autonavPauseReasons.userEngagement&&_.eh(_.Ss,function(){jp("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",X.userEngagementCsn)})};
JAa.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(jp("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.z3(),this.autonavPauseReasons.youthereLactExperiment=!1,Tz(this));this.autonavPauseReasons.userEngagement&&(jp("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Tz(this))};
JAa.prototype.onYtEngagementPanelVisibleChanged=function(X){X.detail&&X.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=X.detail.visible,Tz(this))};
JAa.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var XkZ=_.ze.persistentPanelVisibleSelector,NA=function(){var X=_.a.apply(this,arguments)||this;X.miniGuideVisible=!1;X.guideOpened=_.P("disable_initial_guide_state_fix")?!1:X.canFitPersistentGuide(X.initialBodyClientWidth);X.guideUserStateOpened=X.getInitialGuideUserStateOpened();X.isFullscreenShorts=!1;X.miniGuideWidthThreshold=_.Yy("kevlar_mini_guide_width_threshold",791);X.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
X.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");X.persistentGuideBlockedPagePathRegex=new RegExp(X.persistentGuideBlockedPagesPatterns.join("|"));X.animationTransitionDuration=0;X.lateDataResolver=_.kj();X.initialGuideDataFetchFailed=!1;X.initialLoad=!0;X.guideRenderers=new Set;X.isMouseOverGuide=!1;X.sessionUserManuallyExpandedGuideState=
!1;X.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return X};
_.S(NA,_.a);_.R=NA.prototype;_.R.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.R.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.R.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.R.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.R.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.R.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.R.ready=function(){_.jJ().addProvider({provide:_.Vx,useValue:this.hostElement})};
_.R.attached=function(){var X=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.J2(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.J2(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.J2(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.J2(this,this.onYtGuideShow));_.N0(this,function(){X.animationTransitionDuration=200})};
_.R.detached=function(){document.removeEventListener("yt-navigate-finish",_.J2(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.J2(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.J2(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.J2(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.J2(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.J2(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.J2(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.R.getData=function(){return this.data};
_.R.load=function(){var X=this,H,l,b,U;return _.h(function(K){switch(K.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=X.lateDataResolver.resolve.bind(X),K.return(X.lateDataResolver.promise);if(window.ytInitialGuideData)return H=_.kj(),H.resolve(window.ytInitialGuideData),K.return(H.promise);b=!1;_.Ew(K,2);return K.yield(X.fetchGuideData(),4);case 4:l=K.yieldResult;_.Zt(K,3);break;case 2:U=_.Ow(K),U.message==="Returned error"&&(b=
!0);case 3:if(l)return K.return(l);X.onYtGuideClose();b||(X.initialGuideDataFetchFailed=!0);return K.return(X.lateDataResolver.promise)}})};
_.R.fetchGuideData=function(){var X=this,H,l,b,U,K,w,d;return _.h(function(B){if(B.nextAddress==1)return H=_.jJ(),X.guidePromise||(l=H.resolve(_.b$),X.guidePromise=_.nl(l,zvU)),B.yield(X.guidePromise,2);if(B.nextAddress!=3)return b=B.yieldResult,U=H.resolve(_.$C),B.yield(U(),3);(K=B.yieldResult)&&((w=b)==null?void 0:(d=w.responseContext)==null?void 0:d.maxAgeSeconds)!==0&&K.put("service:guide:fallback",new _.JW({innertubeResponse:b}));return B.return(b)})};
_.R.initializeGuideDataIfEmpty=function(){var X=this,H,l;return _.h(function(b){if(b.nextAddress==1){if(!X.initialGuideDataFetchFailed||X.data)return b.return();_.Ew(b,2);return b.yield(X.fetchGuideData(),4)}if(b.nextAddress!=2)return(H=b.yieldResult)&&X.lateDataResolver.resolve(H),_.Zt(b,0);l=_.Ow(b);_.x2(l);_.m5(b)})};
_.R.initializeGuideData=function(){var X=this,H,l;return _.h(function(b){switch(b.nextAddress){case 1:return _.Xk(NVA(),{mainAppWeb:_.ne()}),_.Ew(b,2),b.yield(X.load(),4);case 4:X.data=b.yieldResult;_.Zt(b,3);break;case 2:H=_.Ow(b),_.H8(NVA(),"FAILURE"),_.x2(new _.qd("Guide data not present",{errorMessage:H.message}));case 3:l=X.data&&X.data.items&&X.data.items.length>0?"SUCCESS":"FAILURE",l==="FAILURE"&&_.x2(new _.qd("Guide data.items empty")),_.H8(NVA(),l),_.m5(b)}})};
_.R.setGuideData=function(X){var H=this,l,b;return _.h(function(U){if(U.nextAddress==1)return H.disabled?U.return():H.data?(X.data=H.data,H.guideRenderers.add(X),U.return()):U.yield(H.initializeGuideData(),2);H.graftGuideToPage();l=_.G7("IS_HOMEPAGE_COLD")?"eop":void 0;_.P("disable_element_pool_populator")?H.setGuideDataAfterInit(X):(b=new _.EK(1,l),_.gh(b,H.setGuideDataAfterInit.bind(H,X)));_.m5(U)})};
_.R.setGuideDataAfterInit=function(X){X.data=this.data;X.markDirty();this.guideRenderers.add(X);_.fc(function(){_.sf("gle")});
_.N0(this,function(){_.sf("gpe")})};
_.R.graftGuideToPage=function(){if(this.data){var X=this.data&&this.data.trackingParams;X&&(X=_.$l(X),_.Ji(_.lv(),X))}};
_.R.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.J2(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.R.onDrawerOpenedChanged=function(X,H){!H.value&&this.guideOpened&&(this.guideOpened=!1)};
_.R.onYtGuideToggle=function(X){var H=this.guideOpened;this.guideOpened=!H;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var l=_.oO();_.bH(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;l.save()}this.updateGuideDrawerElementState();if(this.guideElement){var b;this.guideOpened&&((b=X.detail)==null?0:b.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.J2(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.J2(this,this.onAppDrawerTransitioned))}H||this.initializeGuideDataIfEmpty()};
_.R.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.J2(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Qi(this.guideElement)};
_.R.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.J2(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(m6a(this.guideOpened))};
_.R.guidePersistentAndVisibleChanged=function(){_.NG(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.R.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Of({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.R.miniGuideVisibleChanged=function(){_.NG(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.R.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(m6a(this.guideOpened)),this.initialLoad=!1);_.NG(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.R.activeEndpointChanged=function(){_.NG(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.R.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.R.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()};
_.R.cachedClientWidthChanged=function(){this.updateGuideState()};
_.R.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.R.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var X=this.canFitPersistentGuide(this.cachedClientWidth);X?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=X}this.updateGuideDrawerElementState()};
_.R.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.R.getGuideOpened=function(){return this.guideOpened};
_.R.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.R.getActiveEndpoint=function(){return this.activeEndpoint};
_.R.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.R.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&&_.QX(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.R.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.P("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.R.handleGuideMouseLeave=function(){var X=this;!this.sessionUserManuallyExpandedGuideState&&_.P("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.pc(this,"handleGuideMouseLeave",function(){X.isMouseOverGuide||!X.guideOpened||X.miniGuideVisible||(X.guideOpened=!1,X.updateGuideDrawerElementState())},100))};
_.R.computeGuidePersistentAndVisible=function(){var X=this;_.pc(this,"computeGuidePersistentAndVisible",function(){X.guidePersistentAndVisible=X.guideOpened&&X.guidePersistent;X.guideIsVisibleButNotPersistent=!(!X.guideOpened||X.guidePersistent)})};
_.R.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.R.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.R.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.R.startLoadingWatch=function(){this.closeGuide()};
_.R.startLoadingShorts=function(){_.P("web_hide_guide_on_shorts")&&this.closeGuide()};
_.R.onYtNavigateFinish=function(X,H){if(!_.Jv||H){this.activeEndpoint=H.endpoint;this.pageType=H.pageType;this.pageUrl=H.response.url;var l,b;X=(b=_.f((l=H.endpoint)==null?void 0:l.commandMetadata,_.Ip))==null?void 0:b.url;!this.pageUrl&&X&&(this.pageUrl=X);_.P("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.R.getVisibleGuideRenderer=function(){for(var X=_.C(this.guideRenderers),H=X.next();!H.done;H=X.next())if(H=H.value,this.miniGuideVisible&&H.is==="ytd-mini-guide-renderer"||this.guideOpened&&H.is==="ytd-guide-renderer")return H;return null};
_.R.markGuideRendererDirty=function(X){if(X){typeof X.markDirty==="function"&&X.markDirty();X=_.C([].concat(_.LJ(_.mh(X).children)));for(var H=X.next();!H.done;H=X.next())this.markGuideRendererDirty(H.value)}};
_.R.persistentGuideEnabled=function(X,H){if(!H||X==="watch"||X==="settings"||X==="shorts"&&this.isFullscreenShorts||_.P("reels_web_disable_persistent_guide_shorts")&&X==="shorts")return!1;var l=_.c1(H)||"";return _.P("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(b){return l===b}):!this.persistentGuideBlockedPagePathRegex.test(l)};
_.R.canFitPersistentGuide=function(X){var H=_.Yy("kevlar_persistent_guide_width_threshold",1312);return H===-1||_.P("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:X>this.calculateGuideThreshold(H)};
_.R.calculateGuideThreshold=function(X){return _.P("enable_ai_companion")?X+(this.persistentPanelVisible?400:0):X};
_.R.canFitMiniGuide=function(X){return this.miniGuideWidthThreshold===-1?!1:X>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.R.onResize=function(){var X=this;_.pc(this,"calculateGuideState",function(){X.onResizeDebounced()})};
_.R.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.R.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.R.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.R.getInitialGuideUserStateOpened=function(){return _.P("web_force_mini_guide_default")?!1:!_.oO().getFlag(109)};
_.ja.Object.defineProperties(NA.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.gx("initialBodyClientWidth")||window.innerWidth}}});
NA.prototype.onResize=NA.prototype.onResize;NA.prototype.observeForMiniGuideVisible=NA.prototype.observeForMiniGuideVisible;NA.prototype.computeGuidePersistentAndVisible=NA.prototype.computeGuidePersistentAndVisible;NA.prototype.persistentPanelVisibleChanged=NA.prototype.persistentPanelVisibleChanged;NA.prototype.cachedClientWidthChanged=NA.prototype.cachedClientWidthChanged;NA.prototype.resetGuide=NA.prototype.resetGuide;NA.prototype.activeEndpointChanged=NA.prototype.activeEndpointChanged;
NA.prototype.guideOpenedChanged=NA.prototype.guideOpenedChanged;NA.prototype.miniGuideVisibleChanged=NA.prototype.miniGuideVisibleChanged;NA.prototype.guideIsVisibleButNotPersistentChanged=NA.prototype.guideIsVisibleButNotPersistentChanged;NA.prototype.guidePersistentAndVisibleChanged=NA.prototype.guidePersistentAndVisibleChanged;NA.prototype.onGuideElementChanged=NA.prototype.onGuideElementChanged;NA.prototype.onGuidePersistentChanged=NA.prototype.onGuidePersistentChanged;
NA.prototype.onRenderGuideChanged=NA.prototype.onRenderGuideChanged;NA.prototype.onActiveEndpointChanged=NA.prototype.onActiveEndpointChanged;NA.prototype.onMiniGuideVisibleChanged=NA.prototype.onMiniGuideVisibleChanged;NA.prototype.onGuideIsVisibleButNotPersistentChanged=NA.prototype.onGuideIsVisibleButNotPersistentChanged;NA.prototype.onGuidePersistendAndVisibleChanged=NA.prototype.onGuidePersistendAndVisibleChanged;
_.T([_.k(_.$s),_.N("design:type",Object)],NA.prototype,"ironResizableBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],NA.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],NA.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],NA.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],NA.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Boolean)],NA.prototype,"disabled",void 0);_.T([_.g(),_.N("design:type",Boolean)],NA.prototype,"guidePersistentAndVisible",void 0);_.T([_.Yh("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"onGuidePersistendAndVisibleChanged",null);_.T([_.g(),_.N("design:type",Boolean)],NA.prototype,"guideIsVisibleButNotPersistent",void 0);
_.T([_.Yh("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.T([_.g(),_.N("design:type",Object)],NA.prototype,"miniGuideVisible",void 0);_.T([_.Yh("miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"onMiniGuideVisibleChanged",null);_.T([_.g(),_.N("design:type",Boolean)],NA.prototype,"forceMiniGuideClose",void 0);
_.T([_.g(),_.N("design:type",Object)],NA.prototype,"activeEndpoint",void 0);_.T([_.Yh("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"onActiveEndpointChanged",null);_.T([_.g(),_.N("design:type",Boolean)],NA.prototype,"renderGuide",void 0);_.T([_.Yh("renderGuide"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"onRenderGuideChanged",null);
_.T([_.g({selector:XkZ}),_.N("design:type",Boolean)],NA.prototype,"persistentPanelVisible",void 0);_.T([_.g(),_.N("design:type",Object)],NA.prototype,"guideOpened",void 0);_.T([_.g(),_.N("design:type",Boolean)],NA.prototype,"guidePersistent",void 0);_.T([_.Yh("guidePersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"onGuidePersistentChanged",null);_.T([_.g(),_.N("design:type",Object)],NA.prototype,"guideUserStateOpened",void 0);
_.T([_.g(),_.N("design:type",String)],NA.prototype,"pageUrl",void 0);_.T([_.g(),_.N("design:type",String)],NA.prototype,"pageType",void 0);_.T([_.g(),_.N("design:type",Number)],NA.prototype,"cachedClientWidth",void 0);_.T([_.g(),_.N("design:type",Object)],NA.prototype,"guideElement",void 0);_.T([_.g({selector:_.QE}),_.N("design:type",Object)],NA.prototype,"isFullscreenShorts",void 0);
_.T([_.Yh("guideElement"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"onGuideElementChanged",null);_.T([_.Yh("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"guidePersistentAndVisibleChanged",null);
_.T([_.oi("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"guideIsVisibleButNotPersistentChanged",null);_.T([_.Yh("miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"miniGuideVisibleChanged",null);_.T([_.oi("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"guideOpenedChanged",null);
_.T([_.Yh("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"activeEndpointChanged",null);_.T([_.oi("pageUrl"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"resetGuide",null);_.T([_.oi("cachedClientWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"cachedClientWidthChanged",null);
_.T([_.oi("persistentPanelVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"persistentPanelVisibleChanged",null);_.T([_.Yh("guideOpened","guidePersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"computeGuidePersistentAndVisible",null);
_.T([_.oi("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"observeForMiniGuideVisible",null);_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NA.prototype,"onResize",null);_.T([_.sq({disableElementRegistration:!0,is:"yt-guide-manager"})],NA);var HwZ=_.O(NA,"yt-guide-manager",void 0,{mode:2});var BJd=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"],bN=new Map;bN.set(32,59972);bN.set(27,50765);bN.set(70,60102);bN.set(76,60221);bN.set(77,60222);bN.set(74,60223);bN.set(84,60224);bN.set(38,61941);bN.set(40,61942);bN.set(73,62521);bN.set(67,62522);bN.set(80,63390);bN.set(78,63397);bN.set(75,59972);bN.set(188,63385);bN.set(190,63384);bN.set(36,63387);bN.set(35,63386);bN.set(37,63388);
bN.set(39,63389);bN.set(79,63423);bN.set(87,63424);bN.set(107,63426);bN.set(109,63425);bN.set(65,63428);bN.set(83,63430);bN.set(68,63429);bN.set(221,63431);bN.set(219,63432);bN.set(97,63439);bN.set(98,63440);bN.set(99,63441);bN.set(100,63442);bN.set(101,63443);bN.set(102,63444);bN.set(103,63445);bN.set(104,63446);bN.set(105,63447);var o7=new Map;o7.set(80,63390);o7.set(78,63397);o7.set(188,63400);o7.set(190,63401);o7.set(191,60765);o7.set(13,247917);var Fql=new Map,hGa=new Map;var cw=function(){var X=_.a.apply(this,arguments)||this;X.JSC$21699_keyboardInUse=!1;X.boundHandleCapturedKeydownEvent=function(H){X.handleCapturedKeydownEvent(H)};
return X};
_.S(cw,_.a);_.R=cw.prototype;_.R.attached=function(){this.listenToDocument(document)};
_.R.listenToDocument=function(X){X.addEventListener("keydown",_.J2(this,this.onKeyDownEvent));X.addEventListener("keyup",_.J2(this,this.onKeyUpEvent));X.addEventListener("mousedown",_.J2(this,this.onMouseDownEvent));_.P("desktop_keyboard_capture_keydown_killswitch")||X.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);X.addEventListener("yt-page-data-updated",_.J2(this,this.onPageUpdate))};
_.R.detached=function(){this.unlistenFromDocument(document)};
_.R.unlistenFromDocument=function(X){X.removeEventListener("keydown",_.J2(this,this.onKeyDownEvent));X.removeEventListener("keyup",_.J2(this,this.onKeyUpEvent));X.removeEventListener("mousedown",_.J2(this,this.onMouseDownEvent));_.P("desktop_keyboard_capture_keydown_killswitch")||X.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);X.removeEventListener("yt-page-data-updated",_.J2(this,this.onPageUpdate))};
_.R.ready=function(){_.jJ().addProvider({provide:_.aE,useValue:this})};
_.R.isKeyBoardInUse=function(){return this.JSC$21699_keyboardInUse};
_.R.handleCapturedKeydownEvent=function(X){if(X.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(X)};
_.R.onMouseDownEvent=function(){this.JSC$21699_keyboardInUse=!1};
_.R.onPageUpdate=function(){if(_.P("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.P("web_shorts_keyboard_shortcut_usage_log")){Fql.clear();for(var X=_.C(bN),H=X.next();!H.done;H=X.next()){var l=_.C(H.value);H=l.next().value;l=l.next().value;l=_.cS(l);Fql.set(H,l);_.pA(_.Bi(),_.F6(),l)}hGa.clear();X=_.C(o7);for(H=X.next();!H.done;H=X.next())l=_.C(H.value),H=l.next().value,l=l.next().value,l=_.cS(l),hGa.set(H,l),_.pA(_.Bi(),_.F6(),l);_.SF(_.Bi(),_.F6(),[].concat(_.LJ(hGa.values()),_.LJ(Fql.values())));
_.nA(_.Bi(),[].concat(_.LJ(hGa.values()),_.LJ(Fql.values())))}};
_.R.onMiniplayerActiveChange=function(){var X;(X=_.jJ().resolve(_.f9).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(X.document):this.unlistenFromDocument(X.document))};
_.R.ignoreKeyEvent=function(X){if(X.ctrlKey||X.altKey)if(_.P("kevlar_macro_markers_keyboard_shortcut")){if(X.keyCode!==37&&X.keyCode!==39)return!0}else return!0;var H=_.t2(X)||[];return qCY(H)?(_.P("web_button_or_anchor_list_item")&&sVp(H,X)&&(this.JSC$21699_keyboardInUse=!0),!0):X.defaultPrevented?(Uk(X.keyCode,X.shiftKey,this.isShortsPage),!0):X.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(X):!1};
_.R.isSpacebarClick=function(X){var H=X||window.event;var l;H.composedPath&&typeof H.composedPath==="function"?l=H.composedPath():l=H.path;l&&l.length?H=l[0]:(H=H||window.event,H=H.target||H.srcElement,H.nodeType==3&&(H=H.parentNode));return H&&X.keyCode===32&&(X=H.tagName==="BUTTON"||H.tagName==="A"||H.tagName==="INPUT",H=(H=H.getAttribute("role"))&&(H==="option"||H==="button"||H.indexOf("menuitem")===0),X||H)?!0:!1};
_.R.onKeyDownEvent=function(X){if(!this.ignoreKeyEvent(X)&&(X.keyCode===191&&(X.shiftKey||X.metaKey?X.repeat!=null&&X.repeat||(this.openHotkeyDialog(),Uk(X.keyCode,X.shiftKey,this.isShortsPage)):(this.focusSearchBox(),X.preventDefault())),!X.metaKey)){var H=_.jJ().resolve(_.f9);switch(X.keyCode){case 9:this.JSC$21699_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(X);break;case 84:H.pipController.getWindow()&&window.focus();this.toggleTheaterMode(X.keyCode,X.shiftKey);break;case 73:H.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(X.keyCode,X.shiftKey);break;case 70:if(this.isShortsPage){QRl();break}this.isMiniplayerActive()?H.pipController.getWindow()&&(H.close(!0),window.focus()):this.passEventToPlayer(X);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(X.keyCode,X.shiftKey):this.closeMiniplayer(X.keyCode,X.shiftKey)||this.passEventToPlayer(X);break;case 13:X.shiftKey&&_.jJ().resolve(_.uq).activate(X);break;default:this.passEventToPlayer(X)}}};
_.R.onKeyUpEvent=function(X){if(!this.ignoreKeyEvent(X))if(_.P("web_speedmaster_spacebar_control")&&X.keyCode===32)this.handlePlayerSpaceKey(X,!0);else{var H=this.getPlayerManager();H&&(H=H.getPlayer())&&H.handleGlobalKeyUp(X.keyCode,X.shiftKey,X.ctrlKey,X.altKey,X.metaKey,X.key,X.code)}};
_.R.getPlayerManager=function(){var X=_.aq(),H=_.jJ().resolve(_.c$(_.gd));return X&&H&&H.isOnWatch()?X:null};
_.R.passEventToPlayer=function(X,H){var l=this,b,U,K,w;return _.h(function(d){if(d.nextAddress==1){if(!_.P("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&l.isMiniplayerActive())b=_.jJ().resolve(_.f9).getPlayerElement();else if(l.inlinePreviewIsActive){if(U=_.NG(l.hostElement,"yt-get-inline-preview-player-action"),(K=U)==null?0:K[0])b=U[0]}else b=_.aq();return b?d.yield(b.getPlayerPromise(),3):d.jumpTo(0)}w=d.yieldResult;H?w.handleGlobalKeyUp(X.keyCode,X.shiftKey,X.ctrlKey,X.altKey,X.metaKey,
X.key,X.code):w.handleGlobalKeyDown(X.keyCode,X.shiftKey,X.ctrlKey,X.altKey,X.metaKey,X.key,X.code,X.repeat);X.keyCode!==38&&X.keyCode!==40&&Uk(X.keyCode,X.shiftKey,l.isShortsPage);_.m5(d)})};
_.R.focusSearchBox=function(){_.QX(this.hostElement,"yt-focus-searchbox")};
_.R.openHotkeyDialog=function(){_.QX(this.hostElement,"yt-open-hotkey-dialog")};
_.R.isMiniplayerActive=function(){return _.jJ().resolve(_.f9).isMiniplayerActive()};
_.R.closeMiniplayer=function(X,H){return this.isMiniplayerActive()?(_.jJ().resolve(_.f9).close(),Uk(X,H,this.isShortsPage),!0):!1};
_.R.toggleTheaterMode=function(X,H){var l=_.BS(_.WF().getState()),b=this.getPlayerManager(),U=_.P("disable_theater_mode_keyboard")||_.G7("START_IN_FULL_WINDOW_MODE");b&&!U&&(l=!l,_.gZ()&&_.P("external_fullscreen")&&(l=!0),_.TP(this.hostElement,"yt-toggle-theater-mode",[l]),Uk(X,H,this.isShortsPage))};
_.R.toggleMiniplayer=function(X,H){var l=this.getPlayerManager();if(this.isMiniplayerActive()){var b;((b=_.jJ().resolve(_.c$(_.gd)))==null?0:b.isOnWatch())?_.jJ().resolve(_.f9).close(!0):_.nE(_.jJ().resolve(_.f9));Uk(X,H,this.isShortsPage)}else l&&(_.TP(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Uk(X,H,this.isShortsPage))};
_.R.handlePlayerSpaceKey=function(X,H){var l=!!_.aq()||this.isMiniplayerActive();l=_.P("disable_space_scroll_fix")||l;_.P("global_spacebar_pause")&&!this.isKeyBoardInUse()&&l&&(X.preventDefault(),this.passEventToPlayer(X,H))};
_.R.isPresentingTheaterMode=function(){return _.P("web_watch_enable_tm_esc_key")?_.BS(_.WF().getState())&&!_.gZ():!1};
cw.prototype.onMiniplayerActiveChange=cw.prototype.onMiniplayerActiveChange;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],cw.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],cw.prototype,"ytdReduxBehavior",void 0);_.T([_.g({selector:_.xjZ}),_.N("design:type",Boolean)],cw.prototype,"inlinePreviewIsActive",void 0);_.T([_.g({selector:_.wwm}),_.N("design:type",Boolean)],cw.prototype,"isShortsPage",void 0);
_.T([_.g({selector:_.s9}),_.N("design:type",Boolean)],cw.prototype,"miniplayerIsActive",void 0);_.T([_.Yh("miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cw.prototype,"onMiniplayerActiveChange",null);_.T([_.sq({disableElementRegistration:!0,is:"yt-hotkey-manager"})],cw);_.O(cw,"yt-hotkey-manager",void 0,{mode:2});var jk=function(){var X=_.a.apply(this,arguments)||this;X.loopStateEntityKey_=null;X.playlistLoopStateEntity_=null;X.isShuffleNextPlaylist=!1;X.PLAYER_EVENTS_=new Map;X.playerListenersSetup_=!1;X.videoSkipJob_=0;X.canAutoAdvance_=!1;X.playerManager_=null;X.TEST_ONLY={};return X};
_.S(jk,_.a);_.R=jk.prototype;_.R.ready=function(){_.jJ().addProvider({provide:_.S3,useValue:this.hostElement})};
_.R.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_)};
_.R.attached=function(){document.addEventListener("yt-navigate-start",_.J2(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.J2(this,this.onYtNavigateFinish_))};
_.R.detached=function(){document.removeEventListener("yt-navigate-start",_.J2(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.J2(this,this.onYtNavigateFinish_))};
_.R.updatePlaylistEventListeners=function(X,H){H&&!this.playerListenersSetup_?(this.playerManager_=X,this.registerPlaylistEventListeners_(X)):!H&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(X))};
_.R.setPlayer=function(X){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=X};
_.R.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.R.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.R.registerPlaylistEventListeners_=function(X){var H=this;X.getPlayerPromise().then(function(l){H.playerListenersSetup_||(H.ytPlayerListenerBehavior.listenToPlayerEvents(l,H.PLAYER_EVENTS_),H.playerListenersSetup_=!0)})};
_.R.removePlaylistEventListeners_=function(X){var H=this;X.getPlayerPromise().then(function(l){H.playerListenersSetup_&&(H.ytPlayerListenerBehavior.unlistenFromPlayerEvents(l,H.PLAYER_EVENTS_),H.playerListenersSetup_=!1)})};
_.R.setPlaylistComponent=function(X){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.J2(this,this.onPlaylistYtNavigate_)),X&&(X.data&&this.playlistComponent.data&&X.data.playlistId==this.playlistComponent.data.playlistId?(X.loopOn=this.playlistComponent.loopOn,X.shuffleOn=this.playlistComponent.shuffleOn):(X.loopOn=!1,X.shuffleOn=!1),this.isShuffleNextPlaylist&&(X.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=X;this.playlistComponent.addEventListener("yt-navigate",
_.J2(this,this.onPlaylistYtNavigate_))};
_.R.setAutoplayRenderer=function(X){this.autoplayData=X};
_.R.setPlaylistData=function(X){this.currentPlaylistData_=X;_.QX(this.hostElement,"yt-playlist-data-updated");_.Bb.isEmpty(X)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(X)};
_.R.setPlayerPlaybackControlData=function(X){this.playerManager_&&this.playerManager_.updatePlayerComponents(X.playlistPanelRenderer)};
_.R.getPlaylistData=function(){return this.currentPlaylistData_};
_.R.getTempData_=function(X,H){if(this.playlistComponent==null)return null;X={};this.playlistComponent.shuffleOn&&(X.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(X.loop_on=this.playlistComponent.loopOn);H&&(X.autonav="1",_.jJ().resolve(_.HS),H=_.JV(),H>0&&(X.lact=H),this.playerManager_&&(H=this.playerManager_.getPlayer())&&H.shouldSendVisibilityState()&&(H=H.getVisibilityState(),H!=0&&(X.vis=H)));_.P("enable_unknown_lact_fix_on_html5")&&(_.jJ().resolve(_.HS),X.lact=
_.JV());return X};
_.R.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.R.setLoopStateEntityKey_=function(X){var H;this.loopStateEntityKey_=((H=this.getPlaylistLoopData_(X))==null?void 0:H.playlistLoopStateEntityKey)||null};
_.R.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.R.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.R.skipVideo=function(){var X=this,H=_.P("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||H)H=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Rs(_.Ss,function(){X.onPlaylistNext();X.videoSkipJob_=0},H)};
_.R.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Ss.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.R.isInBackground_=function(){var X=window.document.visibilityState;return!(!X||X=="visible")};
_.R.onPlaylistIndex_=function(X){this.playlistComponent&&(X=this.playlistComponent.data.contents[X].playlistPanelVideoRenderer.navigationEndpoint,_.QX(this.hostElement,"yt-navigate",{endpoint:X,tempData:this.getTempData_(X)}))};
_.R.onPlayerStateChange_=function(X){if(X=X==0&&this.playlistComponent&&this.canAutoAdvance_)X=_.ac.getInstance(),X=!(X.autonavState_===3?X.autonavPauseReason_&&X.autonavPauseReason_.inputBoxFocus===!0:X.autonavState_===1&&X.disabledAutonavPauseReason_&&X.disabledAutonavPauseReason_.inputBoxFocus===!0);X&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.R.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.R.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.R.navigateToAutoplayWatchEndpoint_=function(X,H,l){var b=this.playlistComponent.data.currentIndex,U=this.getNumPlayableVideos_();X=="NORMAL"&&H=="autoplayVideo"&&b+1>=U&&l||!(X=this.getVideoEndpoint_(X,H))||(l=this.getTempData_(X,l),_.QX(this.hostElement,"yt-navigate",{endpoint:X,tempData:l}))};
_.R.getNumPlayableVideos_=function(){for(var X=0,H=_.C(this.playlistComponent.data.contents||[]),l=H.next();!l.done;l=H.next())l.value.playlistPanelVideoRenderer&&(X+=1);return X};
_.R.getVideoEndpoint_=function(X,H){if(this.autoplayData&&this.autoplayData.sets)for(var l=0,b=this.autoplayData.sets.length;l<b;l++){var U=this.autoplayData.sets[l];if(U.mode==X){if(U[H])return U[H];break}}else X=new _.qd("AutoplayData is undefined in playlist manager","Mode: "+X+" endpoint: "+H),_.x2(X)};
_.R.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.R.onPlaylistYtNavigate_=function(X){if(X.detail.endpoint){X.stopPropagation();var H=X.detail;H.tempData=this.getTempData_(X.detail.endpoint);_.QX(this.hostElement,"yt-navigate",H)}};
_.R.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.R.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.R.playlistLoopStateEntityChanged_=function(X){var H=this,l,b,U;return _.h(function(K){if(K.nextAddress==1){if(!X)return K.return();l=X.state==="PLAYLIST_LOOP_STATE_ONE";return H.playerManager_?K.yield(H.playerManager_.getPlayerPromise(),3):K.jumpTo(2)}K.nextAddress!=2&&(b=K.yieldResult,b.setLoopVideo(l));U=X.state==="PLAYLIST_LOOP_STATE_ALL";H.playlistComponent&&(H.playlistComponent.loopOn=U);_.m5(K)})};
_.R.getPlaylistLoopData_=function(X){var H,l;if(X=X==null?void 0:(H=X.playlistButtons)==null?void 0:(l=H.menuRenderer)==null?void 0:l.topLevelButtons)for(H=_.C(X),l=H.next();!l.done;l=H.next())if(l=l.value,l.playlistLoopButtonRenderer)return l.playlistLoopButtonRenderer};
_.R.getLoopStateCommand_=function(X){var H=this.getPlaylistData(),l;H=((l=this.getPlaylistLoopData_(H))==null?void 0:l.states)||[];var b;X=(b=_.f(H[X?1:2],_.b7v))==null?void 0:b.button;var U;return(U=_.f(X,_.yB))==null?void 0:U.command};
_.R.onPlayerLoopChange_=function(X){this.playlistLoopStateEntity_&&(X?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(X=this.getLoopStateCommand_(X))&&this.ytComponentBehavior.resolveCommand(X)};
_.R.onSleepTimerSettingsChanged_=function(X){this.canAutoAdvance_=X!=="End of video"};
jk.prototype.onPlaylistLoopStateEntityChanged=jk.prototype.onPlaylistLoopStateEntityChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],jk.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],jk.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],jk.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],jk.prototype,"loopStateEntityKey_",void 0);
_.T([_.g({selectorArgs:["loopStateEntityKey_"],selector:_.$S.playlistLoopStateEntitySelector}),_.N("design:type",Object)],jk.prototype,"playlistLoopStateEntity_",void 0);_.T([_.Yh("playlistLoopStateEntity_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jk.prototype,"onPlaylistLoopStateEntityChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"yt-playlist-manager"})],jk);_.O(jk,"yt-playlist-manager",void 0,{mode:2});var lfU,of$=function(){if(lfU!==void 0)return lfU;var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return lfU=X};var rP=function(){var X=_.a.apply(this,arguments)||this;X.lastCallback=null;X.getAccountLinkPromises={};X.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);X.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return X};
_.S(rP,_.a);_.R=rP.prototype;_.R.getLocation=function(){return window.location.href};
_.R.getCompletionUrl=function(){return _.rX(this.getLocation())};
_.R.containsRedirectState=function(X){return(X=_.T8(_.rjZ(X)))?(new URLSearchParams(X)).get("redirect_state")!==null:!1};
_.R.createGalConfig=function(X,H){var l=new n8U;X=l=H?this.getPopupOrRedirectSetting(l,_.gx("LINK_API_KEY"),_.gx("LINK_API_KEY_REDIRECT"),X):kId(l,_.gx("LINK_API_KEY"));X.authUser=_.gx("SESSION_INDEX")||0;X.supportedFlows=new Set([4]);return X.build()};
_.R.getPopupOrRedirectSetting=function(X,H,l,b){this.isGalInteractionPopupMode(b)?(X.interactionMode=0,X=kId(X,H)):(X.interactionMode=1,H=this.getCompletionUrl(),X.completionUrl=H,X=kId(X,l));return X};
_.R.isGalInteractionPopupMode=function(X){if(this.redirectModeProviderAllowlist.has(X))switch(X){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.R.getStatusEntityKeyForProviderId=function(X){return _.rc(X+":all","accountLinkStatusEntity")};
_.R.findNestedPropValue=function(X,H){var l=!1,b=null;JSON.stringify(X,function(U,K){l||U!==H||(l=!0,b=K);return l?null:K});
return b};
_.R.findAccountLinkButtonViewModel=function(X,H){var l=null,b=!1;JSON.stringify(X,function(U,K){b||K.accountLinkStatusEntityKey!==H||K.accountLinkStatusSecondaryEntityKey||(b=!0,l=K);return b?null:K});
return l};
_.R.executeLinkingSuccessOrFailureCommands=function(X,H,l){var b=null,U;(H==null?0:(U=H.url)==null?0:U.includes("account_sharing"))?b=H==null?void 0:H.response:b=H==null?void 0:H.response;(H=this.findAccountLinkButtonViewModel(b,X))?(X=l?this.findNestedPropValue(H,"onSuccessCommand"):this.findNestedPropValue(H,"onFailureCommand"))?_.LN([X],this.hostElement):_.v$(Error("Zl")):_.v$(Error("$l`"+X))};
_.R.handleInitializeRequest=function(X,H){var l=this,b=c2y(this.createGalConfig(X,!0));this.containsRedirectState(this.getLocation())?OeZ(X,b.config,b.galService).then(function(U){var K=l.getStatusEntityKeyForProviderId(X);if(U.statusCode===1)H&&l.executeLinkingSuccessOrFailureCommands(K,H,!0),U=l.getLocation().indexOf("#"),U!==-1&&window.history.pushState(null,"",l.getLocation().substring(0,U));else return H&&l.executeLinkingSuccessOrFailureCommands(K,H,!1),Promise.reject(Error(U.statusMessage))}).catch(function(U){_.x2(U);
_.Sh("gamingAccountLinkStatusChanged",{serviceId:X,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(U)}):this.getAccountLinkPromises[X]=b.startLinkingSession({serviceId:X})};
_.R.handleAccountLinkCommand=function(X){_.f(X,cKl)&&this.handleLinkRequest(_.f(X,cKl))};
_.R.handleLinkRequest=function(X){var H=this,l=X.thirdPartyId;if(l)if(this.isGalInteractionPopupMode(l)){var b=function(){H.closeAndFire("ytd-gaming-account-link-setting-renderer",X.onFailureCommand)},U=function(){H.closeAndFire("ytd-gaming-account-link-setting-renderer",X.onSuccessCommand)};
this.lastCallback=U;this.getAccountLinkPromises[l].then(function(K){CCl(K).then(function(w){w.statusCode===1?U():b()})}).catch(function(){b()})}else this.getAccountLinkPromises[l].then(function(K){CCl(K).then(function(w){if(w.statusCode!==1)return Promise.reject(Error(w.statusMessage))})}).catch(function(K){_.x2(K);
_.Sh("gamingAccountLinkStatusChanged",{serviceId:l,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(K)})};
_.R.closeAndFire=function(X,H){_.TP(this.hostElement,"yt-close-popup-action",[X]);H&&_.LN([H],this.hostElement)};
_.R.handleAccountUnlinkCommand=function(X){_.f(X,jrU)&&this.handleUnlinkRequest(_.f(X,jrU))};
_.R.handleUnlinkRequest=function(X){var H=this,l=X.thirdPartyId;if(l){var b=function(){H.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",X.onFailureCommand)},U=function(){H.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",X.onSuccessCommand)};
this.lastCallback=U;var K=c2y(this.createGalConfig(l,!1));this.unlinkUserGal(K,l).then(function(w){w.statusCode===1?U():b()}).catch(function(){b()})}};
_.R.unlinkUserGal=function(X,H){return X.deleteLink(H)};
_.R.handleLogAccountLinkingEventCommand=function(X){_.P("enable_gel_log_commands")&&_.f(X,nIy)&&(X=_.f(X,nIy).event)&&_.Sh("gamingAccountLinkStatusChanged",X)};
_.ja.Object.defineProperties(rP,{template:{configurable:!0,enumerable:!0,get:function(){return of$()}}});
_.T([_.k(_.cr.YtOpenPopupBehavior),_.N("design:type",Object)],rP.prototype,"ytOpenPopupBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],rP.prototype,"ytActionHandlerBehavior",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-third-party-manager"})],rP);_.O(rP,"ytd-third-party-manager",function(){return of$()},{mode:2});var bwC=2/3,UY5=_.cS(130749),$Ye=function(X,H){var l=this;this.element=X;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){l.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:bwC,moveAction:function(b){l.moveAction(b)},
triggerAction:function(){l.element.isReloading=!0;_.pl(_.lv(),{visualElement:UY5});_.JF.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:l.element}})}}}};
_.Ji(_.lv(),UY5,this.layer);this.gesture=new il(X,H,this.refreshConfig,"pan-down");this.attach()};
_.R=$Ye.prototype;_.R.attach=function(){this.gesture.attach()};
_.R.detach=function(){this.gesture.detach()};
_.R.reset=function(){this.element.close()};
_.R.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.R.moveAction=function(X){this.element.rotation=X*360};var K7Z=_.cS(130750),CSe=function(X,H,l,b,U){var K=this;this.element=X;this.parent=l;this.channelHeader=b;this.ytdReduxDispatch=U;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){K.tabsStartAtInPx=K.channelHeader.clientHeight-48;var w;(w=K.selectedTab)!=null&&w.title&&(w=_.jJ().resolve(_.c$(_.gd)))&&(w=w.getCurrentPage(),K.lastVisitedTabScrollPosition=w.getScrollTop(),K.previousTab&&
((K.lastVisitedTabScrollPosition===void 0?0:K.lastVisitedTabScrollPosition<K.channelHeader.clientHeight-48)?K.scrollPositionForTabs.has(K.selectedTab.title)&&K.scrollPositionForTabs.delete(K.selectedTab.title):K.scrollPositionForTabs.set(K.selectedTab.title,w.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:RUN(),triggerAction:function(){K.navigate(K.previousTab)},
moveAction:function(w,d){K.moveAction(w,d)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-RUN(),triggerAction:function(){K.navigate(K.nextTab)},
moveAction:function(w,d){K.moveAction(w,d)}}}};
_.Ji(_.lv(),K7Z,this.layer);this.gesture=new il(X,H,this.tabConfig);this.attach()};
_.R=CSe.prototype;_.R.attach=function(){this.gesture.attach()};
_.R.detach=function(){this.gesture.detach()};
_.R.tabsChanged=function(X){if(X){var H=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;X=_.C(X);for(var l=X.next();!l.done;l=X.next()){l=l.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=l);var b=void 0;if((b=l)==null?0:b.selected)this.previousTab=H,this.selectedTab=l;H=l}H=this.gesture;X=this.getConfig();H.config=X;this.scrollPositionNeedsUpdate=!0}};
_.R.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}})};
_.R.moveAction=function(X,H){if(!this.tabsElement){var l;this.tabsElement=(l=this.parent.header)==null?void 0:l.tabsElement;H==="right"&&this.previousTab?(l=this.previousTab.endpoint,_.Iea(_.jJ().resolve(_.Fk),l,{},"")):H==="left"&&this.nextTab&&(l=this.nextTab.endpoint,_.Iea(_.jJ().resolve(_.Fk),l,{},""));if(!this.tabsElement)return}l=this.tabsElement._pos;H==="right"&&(X*=-1);this.tabsElement._positionBar(l.width,l.left*1+l.width*X)};
var RUN=function(){var X,H;return(H=(X=_.jJ().resolve(_.gd).getCurrentPage())==null?void 0:X.clientWidth)!=null?H:0};
CSe.prototype.navigate=function(X){this.element.data=void 0;if(X=X==null?void 0:X.endpoint)this.ytdReduxDispatch(Tsd(!0)),_.pl(_.lv(),{visualElement:K7Z}),_.JF.instance.resolveCommand({navigateAction:{endpoint:X}},{form:{element:this.element}})};var wkd;var dYl;var Jc=function(){var X=_.a.apply(this,arguments)||this;X.rotation=0;X.isReloading=!1;return X};
_.S(Jc,_.a);Jc.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Jc.prototype.reset=function(){this.hostElement.style.opacity=""};
Jc.prototype.close=function(){var X=this;return _.h(function(H){if(H.nextAddress==1)return H.yield(X.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);X.hostElement.style.opacity="0";_.m5(H)})};
Jc.prototype.rotationChanged=Jc.prototype.rotationChanged;_.T([_.g(),_.N("design:type",Object)],Jc.prototype,"rotation",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Jc.prototype,"isReloading",void 0);_.T([_.A2("#icon"),_.N("design:type",HTMLElement)],Jc.prototype,"icon",void 0);_.T([_.Yh("rotation"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jc.prototype,"rotationChanged",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-refresh"})],Jc);
_.O(Jc,"ytd-refresh",function(){if(dYl!==void 0)return dYl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return dYl=X},{mode:1});var hUZ;var L4=function(){var X=_.a.apply(this,arguments)||this;X.useRaf=!_.P("web_use_raf_app_header_layout_killswitch");return X};
_.S(L4,_.a);L4.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"}}}};
L4.prototype.dataChanged=function(){if(this.data){var X=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var H=_.G0(this.data.banner.thumbnails,this.hostElement.clientWidth);H&&(H.indexOf("//")===0&&(H="https:"+H),this.hasBannerArt=!0,_.j4(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+H+")"}))}this.hasBannerArt!==X&&_.mh(this.hostElement).querySelector("#header").fire("iron-resize")}};
L4.prototype.updateSelectedFromBinding=function(X){this.selected=X.detail.value};
L4.prototype.dataChanged=L4.prototype.dataChanged;_.T([_.k(bm5),_.N("design:type",Object)],L4.prototype,"ytdTabbedHeaderBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],L4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.yx),_.N("design:type",Object)],L4.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],L4.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],L4.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],L4.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Number)],L4.prototype,"selected",void 0);_.T([_.g(),_.N("design:type",Boolean)],L4.prototype,"active",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],L4.prototype,"hasBannerArt",void 0);_.T([_.g(),_.N("design:type",Object)],L4.prototype,"useRaf",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],L4.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],L4);
_.O(L4,"ytd-interactive-tabbed-header-renderer",function(){if(hUZ!==void 0)return hUZ;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return hUZ=X},{mode:1});var F7Z;var Yz=function(){return _.a.apply(this,arguments)||this};
_.S(Yz,_.a);Yz.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Yz.prototype.computeActionsAlignment=function(X){return(X==null?void 0:X.actionsAlignment)||""};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Yz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Yz.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.N("design:type",String)],Yz.prototype,"actionsAlignment",void 0);
_.T([_.sq({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Yz);
_.O(Yz,"ytd-page-footer-renderer",function(){if(F7Z!==void 0)return F7Z;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return F7Z=X},{mode:1});var B4y;var que;var Ia=function(){var X=_.a.apply(this,arguments)||this;X.isEditing=!1;X.useSlot=!1;X.isMultiline=!1;return X};
_.S(Ia,_.a);_.R=Ia.prototype;_.R.onKeydown=function(X){if(X.keyCode===13&&!this.isMultiline)this.onSave();else if(X.keyCode===27)this.onCancel()};
_.R.computeComponentStyle=function(X){return(X==null?0:X.style)?X.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.R.computeisMultiline=function(X){if(this.multilineOverride!==void 0)return this.multilineOverride;var H,l;return!!(X==null?0:(H=X.formField)==null?0:(l=H.textInputFormFieldRenderer)==null?0:l.isMultiline)};
_.R.computeTextDisplayed=function(X,H){if(X)return X;if(H)return H};
_.R.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.R.onSave=function(){if(this.textForm.validate()){this.textForm.save();var X=this.textForm.value;if(X)this.set("data.textDisplayed",_.xM(X));else{var H;((H=this.data)==null?0:H.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.kS("inline-form-changed",this.data));this.isEditing=!1}};
_.R.onCancel=function(){var X=_.D8(this.data.textDisplayed);X===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(X);this.isEditing=!1};
Ia.prototype.onKeydown=Ia.prototype.onKeydown;_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],Ia.prototype,"ytEventForwardingBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ia.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ia.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ia.prototype,"isEditing",void 0);_.T([_.g(),_.N("design:type",Object)],Ia.prototype,"useSlot",void 0);_.T([_.g(),_.N("design:type",Boolean)],Ia.prototype,"multilineOverride",void 0);_.T([_.g(),_.N("design:type",Boolean)],Ia.prototype,"enableOverlayTheme",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.N("design:type",String)],Ia.prototype,"componentStyle",void 0);
_.T([_.g({computed:"computeisMultiline(data)"}),_.N("design:type",Object)],Ia.prototype,"isMultiline",void 0);_.T([_.A2("#text-form"),_.N("design:type",Object)],Ia.prototype,"textForm",void 0);_.T([_.Le("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],Ia.prototype,"onKeydown",null);_.T([_.sq({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Ia);
_.O(Ia,"ytd-inline-form-renderer",function(){if(que!==void 0)return que;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return que=X},{mode:1});var sTZ;var Ac=function(){var X=_.a.apply(this,arguments)||this;X.previousSelectValue=void 0;X.selectedItemMessage=void 0;return X};
_.S(Ac,_.a);Ac.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Ac.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var X,H,l,b,U=(X=this.data)==null?void 0:(H=X.dropdown)==null?void 0:(l=H.dropdownRenderer)==null?void 0:(b=l.entries)==null?void 0:b.map(function(d){return d.privacyDropdownItemRenderer});
X=_.C(U!=null?U:[]);for(H=X.next();!H.done;H=X.next())if((H=H.value)&&H.int32Value===this.selectedValue){this.selectedItemMessage=H.itemMessage;break}}else this.selectedItemMessage=void 0;var K;(K=this.onValueChanged)==null||K.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var w;(w=this.data)!=null&&w.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Ac.prototype.onValueChangedForSelectedValue=function(X){this.selectedValue=X.detail.value};
Ac.prototype.selectedValueChanged=Ac.prototype.selectedValueChanged;_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],Ac.prototype,"ytEventForwardingBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Ac.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ac.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],Ac.prototype,"theme",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Number)],Ac.prototype,"selectedValue",void 0);_.T([_.g(),_.N("design:type",Function)],Ac.prototype,"onValueChanged",void 0);
_.T([_.oi("selectedValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ac.prototype,"selectedValueChanged",null);_.T([_.sq({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Ac);
_.O(Ac,"ytd-dropdown-form-field-renderer",function(){if(sTZ!==void 0)return sTZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return sTZ=X},{mode:2});var MQa;var XG=function(){return _.a.apply(this,arguments)||this};
_.S(XG,_.a);_.ja.Object.defineProperties(XG.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var X=[],H=_.C(this.data||[]),l=H.next();!l.done;l=H.next())(l=_.f(l.value,Fdp))&&X.push(l);return X}}});
_.T([_.g(),_.N("design:type",Array)],XG.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],XG.prototype,"byline",null);_.T([_.sq({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],XG);
_.O(XG,"ytd-playlist-byline-renderer",function(){if(MQa!==void 0)return MQa;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return MQa=X},{mode:1});var uMp;var H4=function(){var X=_.a.apply(this,arguments)||this;X.rtlBullet=_.P("web_playlist_stats_rtl_bullet_icon_killswitch");X.modern=_.P("web_modern_buttons");X.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return X};
_.S(H4,_.a);_.R=H4.prototype;_.R.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"}}}}};
_.R.attached=function(){};
_.R.computeIsCustomThumbnail=function(X){return X?!!X.playlistCustomThumbnailRenderer:!1};
_.R.onYtNavigate=function(X,H){if(H&&H.actions&&H.actions.indexOf("shuffle")>-1){X=_.jJ().resolve(_.S3);var l=H.tempData||{};l.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);H.tempData=l;X.isShuffleNextPlaylist=!0}};
_.R.onUpdatePlaylistAction=function(X){var H;X=(H=_.f(X,_.uIH))==null?void 0:H.updatedRenderer;if(H=_.f(X,tKl))this.data=H};
_.R.computeStyleType=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.R.computeThumbnailWidth=function(X){return X==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.R.computeHideThumbnailAria=function(X){if(X==null?0:X.thumbnailOverlays)for(var H=0;H<X.thumbnailOverlays.length;H++){var l=void 0;if((l=X.thumbnailOverlays[H])==null?0:l.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
H4.prototype.onYtNavigate=H4.prototype.onYtNavigate;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],H4.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],H4.prototype,"ytComponentBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],H4.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],H4.prototype,"rtlBullet",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.N("design:type",String)],H4.prototype,"styleType",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],H4.prototype,"thumbnailWidth",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],H4.prototype,"modern",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.N("design:type",Boolean)],H4.prototype,"isCustomThumbnail",void 0);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],H4.prototype,"onYtNavigate",null);_.T([_.sq({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],H4);
_.O(H4,"ytd-playlist-sidebar-primary-info-renderer",function(){if(uMp!==void 0)return uMp;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return uMp=X},{mode:1});var eUy;var lO=function(){return _.a.apply(this,arguments)||this};
_.S(lO,_.a);lO.prototype.computeOwnerVisibility=function(X){return!(!X.videoOwner&&!X.button)};
lO.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],lO.prototype,"data",void 0);_.T([_.sq({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],lO);
_.O(lO,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(eUy!==void 0)return eUy;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return eUy=X},{mode:1});var yt5;var ob=function(){var X=_.a.apply(this,arguments)||this;X.expanded=!1;X.isCompact=!1;return X};
_.S(ob,_.a);_.R=ob.prototype;_.R.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.R.dataChanged=function(){this.data&&_.Ml(_.mh(this.text),_.nOC(_.Dz6,_.D8(this.data.text||null)))};
_.R.computeAutoScrollEnabled=function(X,H){return X&&!H};
_.R.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.R.toggleOnTap=function(){this.expanded=!this.expanded};
ob.prototype.expandedChanged=ob.prototype.expandedChanged;ob.prototype.dataChanged=ob.prototype.dataChanged;_.T([_.k(K0Y),_.N("design:type",Object)],ob.prototype,"ytdAutoScrollBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ob.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ob.prototype,"expanded",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ob.prototype,"isCompact",void 0);_.T([_.g({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.N("design:type",Boolean)],ob.prototype,"autoScrollEnabled",void 0);_.T([_.A2("#text"),_.N("design:type",Object)],ob.prototype,"text",void 0);_.T([_.A2("#expander-icon"),_.N("design:type",Object)],ob.prototype,"expanderIcon",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ob.prototype,"dataChanged",null);_.T([_.Yh("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ob.prototype,"expandedChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],ob);
_.O(ob,"ytd-channel-legal-info-renderer",function(){if(yt5!==void 0)return yt5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return yt5=X},{mode:1});var VQp;var PSU=_.XS("DOWNLOAD",{},"Download"),ffy=_.XS("DOWNLOADING",{},"Downloading"),pk5=_.XS("DOWNLOADED",{},"Downloaded"),bO=function(){var X=_.a.apply(this,arguments)||this;X.downloadProgress=0;X.isDownloadComplete=!1;X.transferState="TRANSFER_STATE_UNKNOWN";return X};
_.S(bO,_.a);_.R=bO.prototype;_.R.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.R.dataChanged=function(){var X;(X=this.data)!=null&&X.tooltip||(X=_.yR(_.WF().getState(),this.playlistId),this.updateButtonState(X))};
_.R.computePlaylistId=function(X){return X};
_.R.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.R.updateButtonState=function(X){if(this.data&&(this.data.tooltip!==ffy||!_.b5(X))){this.isDownloadComplete=!1;switch(X){case "TRANSFER_STATE_UNKNOWN":X=PSU;var H="OFFLINE_DOWNLOAD";var l="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":X=pk5;H="OFFLINE_PIN";l="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":X=ffy;H="OFFLINE_DOWNLOADING_ZERO";l="ACTION_REMOVE_WITH_PROMPT";
break;default:X=PSU,H="OFFLINE_DOWNLOAD",l="ACTION_ADD"}var b=Object.assign({},this.data);b.tooltip=X;b.accessibilityData={accessibilityData:{label:X}};b.icon={iconType:H};b.size="SIZE_DEFAULT";_.f(b.command,_.Iq)&&(_.f(b.command,_.Iq).action=l);this.set("data",b)}};
_.R.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var X="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?X="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?X="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?X="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?X="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?X="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(X="OFFLINE_PIN",this.isDownloadComplete=!0);var H;X!==((H=this.data.icon)==null?void 0:H.iconType)&&(H=Object.assign({},this.data),H.tooltip=ffy,H.accessibilityData={accessibilityData:{label:ffy}},H.icon={iconType:X},_.f(H.command,_.Iq)&&(_.f(H.command,_.Iq).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",H))}};
bO.prototype.updateProgress=bO.prototype.updateProgress;bO.prototype.onTransferStateChanged=bO.prototype.onTransferStateChanged;bO.prototype.dataChanged=bO.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bO.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],bO.prototype,"ytdReduxBehavior",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],bO.prototype,"forceIconButton",void 0);
_.T([_.g({value:!0}),_.N("design:type",Boolean)],bO.prototype,"forceIconOnly",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],bO.prototype,"overrides",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],bO.prototype,"buttonTooltipPosition",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],bO.prototype,"styleActionButton",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],bO.prototype,"disableTextTransform",void 0);
_.T([_.g({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.N("design:type",String)],bO.prototype,"playlistId",void 0);_.T([_.g(),_.N("design:type",Object)],bO.prototype,"data",void 0);_.T([_.g({selector:_.i0K,selectorArgs:["playlistId"]}),_.N("design:type",Object)],bO.prototype,"downloadProgress",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],bO.prototype,"isDownloadComplete",void 0);
_.T([_.g({selector:_.yR,selectorArgs:["playlistId"]}),_.N("design:type",String)],bO.prototype,"transferState",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],bO.prototype,"showTooltips",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],bO.prototype,"sendCommandWhenDisabled",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],bO.prototype,"disabled",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bO.prototype,"dataChanged",null);_.T([_.oi("transferState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bO.prototype,"onTransferStateChanged",null);_.T([_.oi("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bO.prototype,"updateProgress",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],bO);
_.O(bO,"ytd-download-playlist-button-renderer",function(){if(VQp!==void 0)return VQp;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return VQp=X},{mode:1});var Sux;_.gC(_.ozC,"thumbnail-overlay-button-view-model",{props:{data:_.zh,lockupExperiments:_.zh}});var UE=function(){var X=_.a.apply(this,arguments)||this;X.isSquare=!1;X.isVertical=!1;return X};
_.S(UE,_.a);UE.prototype.computeIsSquare=function(X){return X!=null&&X.thumbnail?JYZ(X.thumbnail)==="SQUARE":!1};
UE.prototype.computeIsVertical=function(X){return X!=null&&X.thumbnail?JYZ(X.thumbnail)==="VERTICAL":!1};
UE.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],UE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.N("design:type",Object)],UE.prototype,"isSquare",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.N("design:type",Object)],UE.prototype,"isVertical",void 0);
_.T([_.g(),_.N("design:type",Object)],UE.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],UE);
_.O(UE,"ytd-hero-playlist-thumbnail-renderer",function(){if(Sux!==void 0)return Sux;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Sux=X},{mode:1});var $L=function(){var X=_.a.apply(this,arguments)||this;X.isDarkTheme=!1;X.isUltraWide=!1;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return X};
_.S($L,_.a);_.R=$L.prototype;_.R.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.jJ();var X;(X=_.jJ().resolve(_.c$(_.BI)))!=null&&(X.headerElement=this.hostElement)};
_.R.detached=function(){var X;(X=_.jJ().resolve(_.c$(_.BI)))!=null&&(X.headerElement=void 0)};
_.R.onUpdateHeader=function(X){(X=X.detail)&&this.set("data",X)};
_.R.computeTextDisplayed=function(X){if(X)return X.textDisplayed?X.textDisplayed:X.placeholder};
_.R.gradientColorToLinearGradientStop=function(X){var H=this.isDarkTheme?X.darkThemeColor:X.lightThemeColor;return H?_.qw(H)+" "+((X==null?void 0:X.startLocation)||0)*100+"%":"transparent"};
_.R.onWindowResize=function(){var X;((X=this.data)==null?0:X.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.R.onIronResize=function(X){this.isUltraWide=!X.detail.value};
_.R.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.R.onUpdatePlaylistName=function(X){var H=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},X.detail.value));_.N0(this,function(){var l;(l=H.editableTitle)==null||l.resize()})};
_.R.onUpdatePlaylistDescription=function(X){var H=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},X.detail.value));_.N0(this,function(){var l;(l=H.editableDescriptionInlineExpander)==null||l.resize()})};
_.R.getCinematicData=function(X){return _.f(X==null?void 0:X.cinematicContainer,hp)};
_.ja.Object.defineProperties($L.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 X,H=(X=this.getCinematicData(this.data))==null?void 0:X.config;return(X=this.isDarkTheme?H==null?void 0:H.darkThemeBackgroundColor:H==null?void 0:H.lightThemeBackgroundColor)?"background-color:"+_.BM(X)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var X;return _.f((X=this.data)==null?void 0:X.descriptionForm,kgZ)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var X=this,H,l,b;return"background:linear-gradient(to bottom, "+(((b=(H=this.getCinematicData(this.data))==null?void 0:(l=H.gradientColorConfig)==null?void 0:l.map(function(U){return X.gradientColorToLinearGradientStop(U)}))==null?void 0:b.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var X;return _.D8((X=this.data)==null?void 0:X.descriptionTapText)}}});
$L.prototype.onUpdateHeader=$L.prototype.onUpdateHeader;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],$L.prototype,"actionHandlerBehavior",void 0);_.T([_.A2("#description-inline-expander"),_.N("design:type",Object)],$L.prototype,"descriptionInlineExpander",void 0);
_.T([_.A2("#editable-description-inline-expander"),_.N("design:type",Object)],$L.prototype,"editableDescriptionInlineExpander",void 0);_.T([_.g(),_.N("design:type",Object)],$L.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],$L.prototype,"isUltraWide",void 0);_.T([_.A2("#editable-title-display"),_.N("design:type",Object)],$L.prototype,"editableTitle",void 0);_.T([_.x("isUltraWide"),_.N("design:type",Object),_.N("design:paramtypes",[])],$L.prototype,"maxDescriptionLines",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$L.prototype,"noCinematicData",null);_.T([_.Le("yt-new-playlist-header"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$L.prototype,"onUpdateHeader",null);_.T([_.x("data","isDarkTheme"),_.N("design:type",Object),_.N("design:paramtypes",[])],$L.prototype,"backgroundStyle",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$L.prototype,"descriptionFormData",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$L.prototype,"getDropdownTheme",null);_.T([_.x("data","isDarkTheme"),_.N("design:type",String),_.N("design:paramtypes",[])],$L.prototype,"gradientStyle",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$L.prototype,"descriptionTapText",null);
_.T([_.sq({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],$L);
_.O($L,"ytd-playlist-header-renderer",function(){if(B4y!==void 0)return B4y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return B4y=X},{mode:2});var zU5;var nfx;var KM=function(){return _.a.apply(this,arguments)||this};
_.S(KM,_.a);KM.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],KM.prototype,"data",void 0);_.T([_.sq({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],KM);
_.O(KM,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(nfx!==void 0)return nfx;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return nfx=X},{mode:1});var Rb=function(){return _.a.apply(this,arguments)||this};
_.S(Rb,_.a);
Rb.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}}}}};
Rb.prototype.computeUsePremiumShowStyle=function(X){if(!X||!X.items)return!1;for(var H=0;H<X.items.length;H++)if(_.f(X.items[H],tKl)){var l=void 0;return((l=_.f(X.items[H],tKl))==null?void 0:l.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Rb.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.N("design:type",Boolean)],Rb.prototype,"usePremiumShowStyle",void 0);
_.T([_.sq({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Rb);
_.O(Rb,"ytd-playlist-sidebar-renderer",function(){if(zU5!==void 0)return zU5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return zU5=X},{mode:1});var kOZ;var xYZ;var DYY=function(X,H,l,b,U,K,w,d){this.minWidth=X;this.minHeight=H;this.recommendedWidth=l;this.recommendedHeight=b;this.JSC$21774_maxFileSize=U;this.title=K;this.bannerGalleryTitle=w;this.channelId=d;this.picker_=null;X=_.bHy("yt-banner");H=X.addView;l=(new xyC("youtubebanner")).addUploadMetadata("silo_id","19");l.opts.ytMaxFileSize=this.JSC$21774_maxFileSize;b=this.recommendedHeight;l.opts.ytRecWidth=this.recommendedWidth;l.opts.ytRecHeight=b;H.call(X,l);X.addView(new _.dz);H=X.addView;l=new _.dz;
l.opts.type="ytbanner";H.call(X,l.JSC$10384_setLabel(this.bannerGalleryTitle));H=X.setTitle(this.title).setSize(1E3);H.urlParamMap_.set("thumbs","orig");l=this.minWidth;b=this.minHeight;if(isNaN(l)||isNaN(b))throw Error("ib`"+l+"`"+b);H.urlParamMap_.set("minSize",l+"x"+b);H.urlParamMap_.set("cropMode","ytcb");this.builder_=X};
DYY.prototype.open=function(){var X=this;return new _.UA(function(H,l){_.chQ(X.builder_,function(b){b.action=="picked"?H(b):b.action=="cancel"&&l(Error("am"))});
X.picker_&&X.picker_.dispose();X.picker_=X.builder_.build();X.picker_.setVisible(!0)})};
DYY.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var tQN=function(X){this.channelId=X};
tQN.prototype.upload=function(X){var H="";X.viewToken&&(H=X.viewToken[2].type);var l=X.docs[0];X=l.crop;H={channel_id:this.channelId,fife_url:l.thumbnails[0].url,photo_id:l.id,is_gallery_image:H=="ytbanner"};X&&(H.crop_top=X.top,H.crop_right=X.right,H.crop_bottom=X.bottom,H.crop_left=X.left);return _.Ow8("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:H})};var CM=function(){var X=_.a.apply(this,arguments)||this;X.ariaLabel=null;return X};
_.S(CM,_.a);_.R=CM.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.R.detached=function(){this.picker&&this.picker.dispose()};
_.R.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.R.computeAriaLabel=function(X){return X};
_.R.onTap=function(){var X=this,H;if((H=this.data)==null||!H.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new DYY(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 l;(l=this.picker)==null||l.open().then(function(b){X.handleBannerPicked(b)},function(){})}};
_.R.handleBannerPicked=function(X){var H=this;this.uploader||(this.uploader=new tQN(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(X).then(function(l){H.handleBannerUploadSucceeded(l)},function(l){H.handleBannerUploadFailed(l)})};
_.R.handleBannerUploadSucceeded=function(X){X&&X.errors?this.handleBannerUploadFailed(X):(_.QX(this.hostElement,"yt-banner-updated",X),this.message=null)};
_.R.handleBannerUploadFailed=function(X){this.message=X&&X.errors&&X.errors.length?X.errors[0]:null};
CM.prototype.dataChanged=CM.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],CM.prototype,"componentBehavior",void 0);_.T([_.k(_.C7),_.N("design:type",Object)],CM.prototype,"ironButtonState",void 0);_.T([_.g(),_.N("design:type",Object)],CM.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.N("design:type",Object)],CM.prototype,"ariaLabel",void 0);
_.T([_.g(),_.N("design:type",Object)],CM.prototype,"message",void 0);_.T([_.g(),_.N("design:type",Object)],CM.prototype,"picker",void 0);_.T([_.g(),_.N("design:type",Object)],CM.prototype,"uploader",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CM.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],CM);
_.O(CM,"ytd-channel-banner-editor-renderer",function(){if(xYZ!==void 0)return xYZ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return xYZ=X},{mode:1});var W7y;var Efa=_.W8(["#"]),wO=function(){return _.a.apply(this,arguments)||this};
_.S(wO,_.a);wO.prototype.computeHrefWithDefault=function(X){return this.ytComponentBehavior.computeHref_(X,!0)||_.pJK(Efa)};
wO.prototype.dataChanged=function(){var X=this.data;X&&X.targetId&&_.Iy(_.AO(),X.targetId,this.moreIcon)};
wO.prototype.dataChanged=wO.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],wO.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],wO.prototype,"data",void 0);_.T([_.A2("#more-icon"),_.N("design:type",Object)],wO.prototype,"moreIcon",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wO.prototype,"dataChanged",null);
_.T([_.sq({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],wO);
_.O(wO,"ytd-channel-tagline-renderer",function(){if(W7y!==void 0)return W7y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return W7y=X},{mode:1});var gfp;var dO=function(){return _.a.apply(this,arguments)||this};
_.S(dO,_.a);_.R=dO.prototype;_.R.ready=function(){var X=this;_.mh(this.hostElement).querySelector("#form").addEventListener("submit",function(H){X.onSubmit(H)})};
_.R.onDataChanged=function(){var X;((X=this.data)==null?0:X.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.R.onIconButtonKeydown=function(X){X.keyCode===13&&this.iconButton.click()};
_.R.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.R.openOnClickHandler=function(){this.input.focus()};
_.R.onSubmit=function(X){X.preventDefault();return!1};
_.R.submitOnEnterKeyUp=function(X){var H;if(X.keyCode===13&&((H=this.data)==null?0:H.expandedText)){X=this.data.endpoint;H=_.Bb.unsafeClone(X);var l;((l=_.f(H==null?void 0:H.commandMetadata,_.Ip))==null?0:l.url)?(_.f(H.commandMetadata,_.Ip).url=_.oZ(_.f(H.commandMetadata,_.Ip).url,"query",this.data.expandedText),_.f(H,_.YM)&&(_.f(H,_.YM).query=this.data.expandedText),_.QX(this.hostElement,"yt-navigate",{endpoint:H,tempData:{disableCache:!0}})):(l=new _.qd("Error: Trying to navigate to an endpoint without url",
X),_.n2(l))}};
_.R.updateDataExpandedTextFromBinding=function(X){this.set("data.expandedText",X.detail.value)};
_.ja.Object.defineProperties(dO.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.P("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
dO.prototype.onDataChanged=dO.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);_.T([_.k(Cte),_.N("design:type",Object)],dO.prototype,"ytdExpandableInputBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],dO.prototype,"data",void 0);_.T([_.A2("#input"),_.N("design:type",Object)],dO.prototype,"input",void 0);_.T([_.A2("#icon-button"),_.N("design:type",HTMLElement)],dO.prototype,"iconButton",void 0);
_.T([_.g(),_.N("design:type",String),_.N("design:paramtypes",[])],dO.prototype,"searchIcon",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dO.prototype,"onDataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],dO);
var M5Z=_.mr()(dO,"ytd-expandable-tab-renderer",function(){if(gfp===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);gfp=X}X=gfp;return X},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var GOZ;var he=function(){var X=_.a.apply(this,arguments)||this;X.avatarSize=80;X.ariaLabel=_.XS("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return X};
_.S(he,_.a);he.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
he.prototype.computeHref=function(X){var H;return((H=_.f(X,_.aL))==null?0:H.url)?this.componentBehavior.computeHref_(X):null};
he.prototype.onTap=function(){var X,H;(X=this.data)==null||!X.editAvatarServiceEndpoint||((H=_.f(this.data.editAvatarServiceEndpoint,_.aL))==null?0:H.url)||_.jJ().resolve(_.Vr).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.T([_.k(_.C7),_.N("design:type",Object)],he.prototype,"ironButtonState",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],he.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],he.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],he.prototype,"avatarSize",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],he.prototype,"ariaLabel",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],he);
_.O(he,"ytd-channel-avatar-editor",function(){if(GOZ!==void 0)return GOZ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return GOZ=X},{mode:1});var afd=_.Z(function(X){var H=X.data;var l=X.noPadding;var b=X.enableBanner;var U=X.cinematicContainerTopbarOffset;var K=X.allowCinematicContainerOverflow;var w=X.displayAsSidebar;X=X.className;_.Wg(function(){H().tagManagerId&&(_.UK(H().tagManagerId,_.gx("GL")),$8x(H().tagManagerId))},"vUc8md");
var d=_.Aw(eGx,function(){return H().pageHeaderEntityKey});
return _.F("yt-page-header-renderer",{class:_.Qr("pageHeaderRendererHost",X)},_.F(_.l4,{data:function(){var B;return((B=d())==null?0:B.header)?d().header:(w==null?0:w())&&H().sidebarContent?H().sidebarContent:H().content}},{pageHeaderViewModel:function(B){return _.F(_.ryC,{data:B.data,
noPadding:l,enableBanner:b,cinematicContainerTopbarOffset:U,allowCinematicContainerOverflow:K,displayAsSidebar:function(){return(w==null?void 0:w())&&H().enableSidebarView}})}}))},"uk");
afd.idomCompat=!0;_.gC(afd,"yt-page-header-renderer",{props:{data:_.zh,noPadding:_.zh,enableBanner:_.zh,cinematicContainerTopbarOffset:_.zh,allowCinematicContainerOverflow:_.zh,displayAsSidebar:_.zh,className:_.zh}});_.gC(_.EY,"yt-image-banner-view-model",{props:{data:_.zh,isPositionRelative:_.zh}});_.gC(_.FDZ,"yt-tab-group-shape",{props:{shape:_.zh}});var ZwZ=_.ze.persistentPanelVisibleSelector,FG=function(){var X=_.a.apply(this,arguments)||this;X.expandableCustomTabRenderable=function(H){return u0d(H,function(){return void X.onSearchNavigate()})};
X.isRichGrid=!1;X.isConstrainedList=!1;X.richGridMiniMode=!1;X.richGridStyle="RICH_GRID_STYLE_UNKNOWN";X.isRichGridShorts=!1;X.responsiveSizing="COMPACT";X.disableGridStateAware=!1;X.useRaf=!_.P("web_use_raf_app_header_layout_killswitch");X.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return X};
_.S(FG,_.a);_.R=FG.prototype;_.R.computeHeaderDisabled=function(X,H){return H||!X||this.tabsHidden};
_.R.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.R.computeIsRichGridShorts=function(X){return X==="RICH_GRID_STYLE_SHORTS_GRID"||X==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.R.computeImageBannerViewModel=function(){var X,H;return _.f((H=_.f((X=this.data)==null?void 0:X.content,_.AWH))==null?void 0:H.banner,_.cW9)};
_.R.computeHasCinematicContainer=function(){var X,H;return!((H=_.f((X=this.data)==null?void 0:X.content,_.AWH))==null||!H.background)};
_.R.handleHeaderResize=function(){var X=_.mh(this.hostElement).querySelector("#header");X&&_.QX(X,"iron-resize")};
_.R.handleInsertTabCommand=function(X){var H=_.f(X,VtZ);H&&(H.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(l){return l.tabRenderer&&l.tabRenderer.tabIdentifier===H.tabIdentifier})||this.splice("tabs",H.tabIndex||-1,0,H.tab))};
_.R.handleRefreshChannelTabAction=function(X){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===X&&_.QX(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.R.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.R.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.j4(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.R.observerRichGridSlimItemsPerRow=function(){_.j4(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.R.updateCssVars=function(){this.richGridItemsPerRow&&_.j4(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Yy("rich_grid_max_item_width",500))+16)-16+"px"})};
_.R.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.j4(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.R.onDataChanged=function(){this.handleHeaderResize()};
_.R.onWindowResize=function(){this.handleHeaderResize()};
_.R.onFocusedChanged=function(X){(X=_.WM(X))&&X.is==="tp-yt-paper-tab"&&X.hasRipple()&&(X.getRipple().holdDown=!X.pointerDown&&X.focused)};
_.R.updateSelectedFromBinding=function(X){this.ytdTabbedHeaderBehavior.selected=X.detail.value};
_.R.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.ja.Object.defineProperties(FG.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:V55(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.imageBannerViewModel)==null?void 0:X.style)==="IMAGE_BANNER_STYLE_INSET"}}});
FG.prototype.onDataChanged=FG.prototype.onDataChanged;FG.prototype.updateCssVarsForResponsiveGrid=FG.prototype.updateCssVarsForResponsiveGrid;FG.prototype.updateCssVars=FG.prototype.updateCssVars;FG.prototype.observerRichGridSlimItemsPerRow=FG.prototype.observerRichGridSlimItemsPerRow;FG.prototype.observerRichGridItemsPerRow=FG.prototype.observerRichGridItemsPerRow;FG.prototype.persistentPanelVisibleChanged=FG.prototype.persistentPanelVisibleChanged;
_.T([_.k(_.yx),_.N("design:type",Object)],FG.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.k(bm5),_.N("design:type",Object)],FG.prototype,"ytdTabbedHeaderBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],FG.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],FG.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],FG.prototype,"ytdReduxBehavior",void 0);_.T([_.A2("#tabs"),_.N("design:type",Object)],FG.prototype,"tabsElement",void 0);_.T([_.g(),_.N("design:type",Array)],FG.prototype,"tabs",void 0);_.T([_.g(),_.N("design:type",Object)],FG.prototype,"expandableCustomTabRenderable",void 0);
_.T([_.x("tabs.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],FG.prototype,"tabGroupShape",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],FG.prototype,"isRichGrid",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],FG.prototype,"isConstrainedList",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Object)],FG.prototype,"richGridMiniMode",void 0);_.T([_.g({selector:function(X){return X.ui.richGridStyle}}),
_.N("design:type",Object)],FG.prototype,"richGridStyle",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.N("design:type",Object)],FG.prototype,"isRichGridShorts",void 0);_.T([_.g({selector:_.qo}),_.N("design:type",Number)],FG.prototype,"richGridItemsPerRow",void 0);_.T([_.g({selector:function(X){return X.ui.richGridContainerWidth}}),
_.N("design:type",Number)],FG.prototype,"richGridContainerWidth",void 0);_.T([_.g({selector:_.pOW}),_.N("design:type",Number)],FG.prototype,"richGridSlimItemsPerRow",void 0);_.T([_.g(),_.N("design:type",Object)],FG.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],FG.prototype,"responsiveSizing",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],FG.prototype,"disableGridStateAware",void 0);
_.T([_.g({computed:"computeImageBannerViewModel(data)"}),_.N("design:type",Object)],FG.prototype,"imageBannerViewModel",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.N("design:type",Boolean)],FG.prototype,"hasCinematicContainer",void 0);_.T([_.g({selector:y$e,reflectToAttribute:!0}),_.N("design:type",Boolean)],FG.prototype,"guideIsVisibleButNotPersistent",void 0);
_.T([_.g({selector:ZwZ}),_.N("design:type",Boolean)],FG.prototype,"persistentPanelVisible",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("imageBannerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],FG.prototype,"hasBanner",null);_.T([_.g({reflectToAttribute:!0}),_.x("imageBannerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],FG.prototype,"hasInsetBanner",null);_.T([_.g(),_.N("design:type",Object)],FG.prototype,"useRaf",void 0);
_.T([_.g({computed:"computeTabsHidden(tabs)",value:!0}),_.N("design:type",Boolean)],FG.prototype,"tabsHidden",void 0);_.T([_.Yh("persistentPanelVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FG.prototype,"persistentPanelVisibleChanged",null);_.T([_.Yh("richGridItemsPerRow","isRichGrid"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FG.prototype,"observerRichGridItemsPerRow",null);
_.T([_.Yh("richGridSlimItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FG.prototype,"observerRichGridSlimItemsPerRow",null);_.T([_.Yh("richGridItemsPerRow","richGridMiniMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FG.prototype,"updateCssVars",null);
_.T([_.Yh("richGridContainerWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FG.prototype,"updateCssVarsForResponsiveGrid",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FG.prototype,"onDataChanged",null);_.T([_.sq({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],FG);
_.O(FG,"ytd-tabbed-page-header",function(){if(kOZ!==void 0)return kOZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return kOZ=X},{mode:1});var iw$;var B4=function(){return _.a.apply(this,arguments)||this};
_.S(B4,_.a);B4.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],B4.prototype,"data",void 0);_.T([_.sq({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],B4);
_.O(B4,"ytd-labs-edit-renderer",function(){if(iw$!==void 0)return iw$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return iw$=X},{mode:1});var vfd;var qN=function(){var X=_.a.apply(this,arguments)||this;X.dark=!1;X.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";X.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(qN,_.a);qN.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qN.prototype.ready=function(){var X=document.documentElement.hasAttribute("dark");this.setBackgroundImage(X);this.dark=X};
qN.prototype.onDarkModeToggledAction=function(X){this.setBackgroundImage(X);this.dark=X};
qN.prototype.setBackgroundImage=function(X){_.j4(this.hostElement,{"--yt-labs-header-background":"url("+(X?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],qN.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],qN.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],qN.prototype,"dark",void 0);
_.T([_.sq({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],qN);
_.O(qN,"ytd-labs-header-renderer",function(){if(vfd!==void 0)return vfd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vfd=X},{mode:1});var OwY;var sE=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return X};
_.S(sE,_.a);sE.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"}}}}}};
sE.prototype.onYtToggleButton=function(X){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",X.detail.toggled)};
sE.prototype.onManageLabsState=function(X){if(X=_.f(X,VKY))X.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?X.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&X.labsItemId===this.data.labsItemId&&(X.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.TP(this.hostElement,"yt-check-labs-opted-in-state").some(function(H){return H})&&this.data.confirmationDialogCommand?_.j7(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.jJ().resolve(_.Vr).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&X.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.jJ().resolve(_.Vr).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
sE.prototype.onCheckLabsOptedInState=function(){var X=this.get("data.primaryButton.toggleButtonRenderer");return X?X.isToggled:!1};
_.ja.Object.defineProperties(sE.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
sE.prototype.onYtToggleButton=sE.prototype.onYtToggleButton;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],sE.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],sE.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],sE.prototype,"itemStyle",null);_.T([_.Le("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],sE.prototype,"onYtToggleButton",null);_.T([_.sq({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],sE);
_.O(sE,"ytd-labs-item-renderer",function(){if(OwY!==void 0)return OwY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return OwY=X},{mode:1});var mYa;var QT5;var T4U=function(){return _.a.apply(this,arguments)||this};
_.S(T4U,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],T4U.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],T4U.prototype,"data",void 0);_.T([_.sq({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],T4U);
_.O(T4U,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(QT5!==void 0)return QT5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return QT5=X},{mode:1});var N45;var MN=function(){return _.a.apply(this,arguments)||this};
_.S(MN,_.a);MN.prototype.observeSuperchatChip=function(){if(this.data){var X={"--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)};_.j4(this.hostElement,X)}};
MN.prototype.colorFromDecimal=function(X){return _.qw(Number(X||0))};
MN.prototype.observeSuperchatChip=MN.prototype.observeSuperchatChip;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],MN.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MN.prototype,"observeSuperchatChip",null);_.T([_.sq({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],MN);
_.O(MN,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(N45!==void 0)return N45;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return N45=X},{mode:1});var uO=function(){return _.a.apply(this,arguments)||this};
_.S(uO,_.a);uO.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"}}}};
_.ja.Object.defineProperties(uO.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],uO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],uO.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],uO.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uO.prototype,"hideMessageBlock",null);
_.T([_.sq({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],uO);
_.O(uO,"ytd-live-chat-history-entry-renderer",function(){if(mYa!==void 0)return mYa;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return mYa=X},{mode:1});var ctp;var eC=function(){return _.a.apply(this,arguments)||this};
_.S(eC,_.a);eC.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.j4(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.ja.Object.defineProperties(eC.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var X,H;return this.componentBehavior.computeIcon_(((H=_.f((X=this.data)==null?void 0:X.badge,_.lDF))==null?void 0:H.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var X,H;return(H=_.f((X=this.data)==null?void 0:X.badge,_.lDF))==null?void 0:H.label}}});
eC.prototype.observerRichGridItemsPerRow=eC.prototype.observerRichGridItemsPerRow;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],eC.prototype,"componentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],eC.prototype,"ytdReduxBehavior",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.BF}),_.N("design:type",Boolean)],eC.prototype,"richGridMiniMode",void 0);
_.T([_.g({selector:_.qo}),_.N("design:type",Number)],eC.prototype,"richGridItemsPerRow",void 0);_.T([_.g(),_.N("design:type",Object)],eC.prototype,"data",void 0);_.T([_.Yh("richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eC.prototype,"observerRichGridItemsPerRow",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],eC.prototype,"badgeIconName",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],eC.prototype,"badgeLabel",null);_.T([_.sq({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],eC);
_.O(eC,"ytd-member-hub-profile-renderer",function(){if(ctp!==void 0)return ctp;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ctp=X},{mode:1});var jT$;var ya=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return X};
_.S(ya,_.a);
ya.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"}}}};
ya.prototype.handleUpdateTextCommand=function(X){(X=_.f(X,_.Qev))&&this.data&&this.data.id===X.id&&this.set("data",X)};
ya.prototype.handleUpdateConnectedAppRendererCommand=function(X){if(_.f(X,_.cst)&&this.data){var H,l;if(X=(H=_.f(X,_.cst))==null?void 0:(l=H.newConnectedAppRenderer)==null?void 0:l.connectedAppRenderer)this.data=X}};
ya.prototype.computeConnectedAppStyle=function(X){return X.style?X.style.toLowerCase().replace(/_/g,"-"):""};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ya.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],ya.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ya.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ya.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.N("design:type",String)],ya.prototype,"connectedAppStyle",void 0);_.T([_.sq({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],ya);
_.O(ya,"ytd-connected-app-renderer",function(){if(jT$!==void 0)return jT$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return jT$=X},{mode:1});var rty;var Jte=function(){return _.a.apply(this,arguments)||this};
_.S(Jte,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Jte.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Jte.prototype,"data",void 0);_.T([_.sq({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Jte);
_.O(Jte,"ytd-channel-options-renderer",function(){if(rty!==void 0)return rty;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return rty=X},{mode:1});var L7N;var Va=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return X};
_.S(Va,_.a);Va.prototype.onCheckboxChange=function(X){this.data&&(X=(this.checked=_.WM(X).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}})};
Va.prototype.handleUpdateCheckboxCommand=function(X){(X=_.f(X,_.m6G))&&this.data&&this.data.id===X.id&&(this.set("data.disabled",X.disabled),this.set("data.title",X.title))};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Va.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Va.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Va.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],Va.prototype,"checked",void 0);_.T([_.sq({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Va);
_.O(Va,"ytd-settings-checkbox-renderer",function(){if(L7N!==void 0)return L7N;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return L7N=X},{mode:1});var Yu5;var P4=function(){return _.a.apply(this,arguments)||this};
_.S(P4,_.a);P4.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],P4.prototype,"data",void 0);_.T([_.sq({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],P4);
_.O(P4,"ytd-settings-email-item-renderer",function(){if(Yu5!==void 0)return Yu5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Yu5=X},{mode:1});var Ify;var fM=function(){return _.a.apply(this,arguments)||this};
_.S(fM,_.a);fM.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"}}}};
fM.prototype.getExpansionIcon=function(X){return X?"COLLAPSE":"EXPAND"};
fM.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.ja.Object.defineProperties(fM.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],fM.prototype,"data",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],fM.prototype,"expanded",void 0);_.T([_.x("expanded"),_.N("design:type",String),_.N("design:paramtypes",[])],fM.prototype,"emailListExpanded",null);
_.T([_.A2("#options"),_.N("design:type",Object)],fM.prototype,"options",void 0);_.T([_.sq({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],fM);
_.O(fM,"ytd-settings-email-list-renderer",function(){if(Ify!==void 0)return Ify;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Ify=X},{mode:1});var Atl;var XVA;var H1C;var l4e;var odp;var pM=function(){return _.a.apply(this,arguments)||this};
_.S(pM,_.a);_.R=pM.prototype;_.R.computePreselectedOption=function(X,H){return H===this.itemSelected_?X:void 0};
_.R.dataChanged_=function(){var X=this;this.preselectedSubreason=this.itemSelected_=-1;var H;(H=this.data)!=null&&H.key&&_.N0(this,function(){var l,b=Number((l=X.data)==null?void 0:l.key);!Number.isNaN(b)&&(X.itemSelected_=b,l=(l=(X.data.items||[])[b])&&l.optionSelectableItemRenderer&&l.optionSelectableItemRenderer.preselectedIndex)&&(X.preselectedSubreason=l)})};
_.R.isSubReasonHidden_=function(X,H){return X!=H};
_.R.onTopItemSelected_=function(X,H){for(var l=_.mh(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),b=0,U=l.length;b<U;b++)l[b].select(0);_.TP(this.hostElement,"yt-report-form-update",[H.item.value]);X.stopPropagation()};
_.R.onItemSelected_=function(X,H){_.TP(this.hostElement,"yt-report-form-update",[H.item.value]);X.stopPropagation()};
_.R.getItem_=function(X){return X.serviceItem?X.serviceItem:X.navigationItem?X.navigationItem:X.optionSelectableItemRenderer?X.optionSelectableItemRenderer:null};
_.R.computeText_=function(X){return(X=this.getItem_(X))?this.ytRendererBehavior.getSimpleString(X.text):null};
_.R.validate=function(){return this.itemSelected_!==-1};
_.R.computeAriaLabel_=function(X){var H=_.D8(X.text);(X=X.accessibility&&X.accessibility.accessibilityData&&X.accessibility.accessibilityData.label)&&(H+=". "+X);return H};
_.R.computeItemSelected_=function(X){return X};
_.R.preventSelection_=function(X){X.stopPropagation();this.tooltipTapped=!0};
_.R.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.R.updateItemSelectedFromBinding=function(X){this.itemSelected_=X.detail.value};
_.R.save=function(){var X;this.validate()&&(X=this.data)!=null&&X.items&&(X=this.data.items[this.itemSelected_],X!=null&&X.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(X.optionSelectableItemRenderer.submitEndpoint)||_.ci(this.hostElement,[X.optionSelectableItemRenderer.submitEndpoint])))};
pM.prototype.onPaperRippleTransitionEnd_=pM.prototype.onPaperRippleTransitionEnd_;pM.prototype.dataChanged_=pM.prototype.dataChanged_;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],pM.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pM.prototype,"data",void 0);_.T([_.g({value:-1}),_.N("design:type",Number)],pM.prototype,"itemSelected_",void 0);
_.T([_.g({computed:"computeItemSelected_(itemSelected_)"}),_.N("design:type",Number)],pM.prototype,"value",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],pM.prototype,"restoreFocusOnClose",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],pM.prototype,"tooltipTapped",void 0);_.T([_.g({value:-1}),_.N("design:type",Number)],pM.prototype,"preselectedSubreason",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pM.prototype,"dataChanged_",null);_.T([_.Le("transitionend"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pM.prototype,"onPaperRippleTransitionEnd_",null);_.T([_.qR({is:"yt-options-renderer",disableElementRegistration:!0})],pM);
_.O(pM,"yt-options-renderer",function(){if(odp===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;l4e===void 0&&(l4e=document.createElement("template"));var b=l4e;l.call(H,b.content.cloneNode(!0),X.content.firstChild);odp=X}X=odp;return X},{mode:2});var b1Z;var UTa;var $TZ;var K8a;var SC=function(){return _.a.apply(this,arguments)||this};
_.S(SC,_.a);SC.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
SC.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
SC.prototype.onTap=function(X){if(this.hostElement.classList.contains("selected")||_.TP(this.hostElement,"yt-share-panel-can-select-contact-action")[0])X&&X.detail&&(X.detail.x||X.detail.y)&&_.mh(this.hostElement).querySelector("#target").blur(),(X=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),X={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:X?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.TP(this.hostElement,"yt-share-panel-select-contact-action",[X])};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.T([_.g({observer:"onDataChanged"}),_.N("design:type",Object)],SC.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.N("design:type",String)],SC.prototype,"componentTitle",void 0);_.T([_.A2("#thumbnail"),_.N("design:type",Object)],SC.prototype,"thumbnail",void 0);_.T([_.qR({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],SC);
_.O(SC,"yt-enrolled-contact-renderer",function(){if(K8a===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;$TZ===void 0&&($TZ=document.createElement("template"));var b=$TZ;l.call(H,b.content.cloneNode(!0),X.content.firstChild);K8a=X}X=K8a;return X},{mode:2});var RYa;var C8Z;var zn=function(){return _.a.apply(this,arguments)||this};
_.S(zn,_.a);zn.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
zn.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
zn.prototype.onTap=function(X){if(this.hostElement.classList.contains("selected")||_.TP(this.hostElement,"yt-share-panel-can-select-contact-action")[0])X&&X.detail&&(X.detail.x||X.detail.y)&&_.mh(this.hostElement).querySelector("#target").blur(),(X=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),X={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:X?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.TP(this.hostElement,"yt-share-panel-select-contact-action",[X])};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.T([_.g({observer:"onDataChanged"}),_.N("design:type",Object)],zn.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.N("design:type",String)],zn.prototype,"componentTitle",void 0);_.T([_.A2("#thumbnail"),_.N("design:type",Object)],zn.prototype,"thumbnail",void 0);_.T([_.qR({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],zn);
_.O(zn,"yt-suggested-contact-renderer",function(){if(C8Z===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;RYa===void 0&&(RYa=document.createElement("template"));var b=RYa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);C8Z=X}X=C8Z;return X},{mode:2});var nM=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-share-panel-reset-action":"onReset"};return X};
_.S(nM,_.a);nM.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"}}}}}};
nM.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.TP(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
nM.prototype.onReset=function(){for(var X=_.mh(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),H=X.length-1;H>=0;H--)X[H].classList.toggle("selected")};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],nM.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],nM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g({observer:"onDataChanged"}),_.N("design:type",Object)],nM.prototype,"data",void 0);
_.T([_.qR({is:"yt-contact-section-renderer",disableElementRegistration:!0})],nM);
_.O(nM,"yt-contact-section-renderer",function(){if(UTa===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;b1Z===void 0&&(b1Z=document.createElement("template"));var b=b1Z;l.call(H,b.content.cloneNode(!0),X.content.firstChild);UTa=X}X=UTa;return X},{mode:2});var kL=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return X};
_.S(kL,_.a);_.R=kL.prototype;_.R.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"}}}};
_.R.onYtRefreshFormCommand=function(X){var H;(X=_.f((H=_.f(X,_.fgz))==null?void 0:H.formRenderer,nRd))&&this.set("data",X)};
_.R.reset=function(){var X=_.mh(this.hostElement).querySelector("#fields").children;X=_.C(X);for(var H=X.next();!H.done;H=X.next())H=H.value,H.reset&&H.reset()};
_.R.getForm=function(){var X={},H=_.mh(this.hostElement).querySelector("#fields").children;H=_.C(H);for(var l=H.next();!l.done;l=H.next()){l=l.value;if(!l.validate())return null;X[l.data.key]=l.value}return X};
_.R.submitFormFields=function(){if(this.fields)for(var X=_.C(this.fields),H=X.next();!H.done;H=X.next())H=H.value,H.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?H.save():H.nodeName==="YT-OPTIONS-RENDERER"&&H.save()};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],kL.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],kL.prototype,"data",void 0);_.T([_.Xh("#fields > *"),_.N("design:type",Array)],kL.prototype,"fields",void 0);
_.T([_.qR({is:"yt-form-renderer",disableElementRegistration:!0})],kL);
_.O(kL,"yt-form-renderer",function(){if(H1C===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;XVA===void 0&&(XVA=document.createElement("template"));var b=XVA;l.call(H,b.content.cloneNode(!0),X.content.firstChild);H1C=X}X=H1C;return X},{mode:2});var xL=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return X};
_.S(xL,_.a);xL.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"}}}};
xL.prototype.handleSignalActionSubmitForm=function(){var X,H=(X=this.formRenderer)==null?void 0:X.getForm();H&&this.data.serviceEndpoint&&_.jJ().resolve(_.Vr).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},H,{element:this.hostElement})})};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],xL.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xL.prototype,"data",void 0);_.T([_.A2("yt-form-renderer"),_.N("design:type",Object)],xL.prototype,"formRenderer",void 0);
_.T([_.sq({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],xL);
_.O(xL,"ytd-settings-gaia-link-renderer",function(){if(Atl!==void 0)return Atl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Atl=X},{mode:1});var wVp;var dTx;var D2=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return X};
_.S(D2,_.a);D2.prototype.dataChanged=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return X.radio.removeAttribute("checked"),!X.data||!X.data.id||X.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||mn5()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(H=X.data&&X.data.id)?l.yield(Tde(X.data.id),4):l.jumpTo(3):(X.set("data.hidden",!0),l.jumpTo(0));l.nextAddress!=3&&(H=l.yieldResult);H&&_.TP(X.hostElement,"yt-select-settings-radio-option",[X.data.id]);_.m5(l)})};
D2.prototype.onButtonChanged=function(X){_.WM(X).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.jJ().resolve(_.Vr).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.TP(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
D2.prototype.onSelectOption=function(X){this.data&&this.data.id&&(this.data.id===X?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
D2.prototype.dataChanged=D2.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],D2.prototype,"ytActionHandlerBehavior",void 0);_.T([_.A2("#radio"),_.N("design:type",Object)],D2.prototype,"radio",void 0);_.T([_.g(),_.N("design:type",Object)],D2.prototype,"data",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],D2.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],D2);
_.O(D2,"ytd-settings-radio-option-renderer",function(){if(dTx!==void 0)return dTx;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return dTx=X},{mode:1});_.gC(_.n3,"basic-content-view-model",{props:{data:_.ta,className:_.ta}});var te=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return X};
_.S(te,_.a);te.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&mn5()&&this.set("data.hidden",!1)};
te.prototype.onSwitchReady=function(){var X=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.P("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){VF$().then(function(H){H&&(Notification.permission==="default"?X.set("data.hidden",!1):Notification.permission==="granted"&&Nc("NotificationsDisabled").then(function(l){l||_.TP(X.hostElement,"yt-toggle-settings-switch",[X.data.id,!l]);X.set("data.hidden",!1)}).catch(function(){}))})})};
te.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}}}}};
te.prototype.handleUpdateOptionsCommand=function(X){(X=_.f(X,_.Ts_))&&this.data&&this.data.id===X.id&&(this.set("data.hidden",X.hidden),X.text!==void 0&&this.set("data.text",X.text),X.clearOptions&&this.set("data.options",[]))};
te.prototype.onSwitchReady=te.prototype.onSwitchReady;te.prototype.dataChanged=te.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],te.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],te.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],te.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],te.prototype,"data",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],te.prototype,"dataChanged",null);_.T([_.Le("yt-settings-switch-ready"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],te.prototype,"onSwitchReady",null);_.T([_.sq({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],te);
_.O(te,"ytd-settings-options-renderer",function(){if(wVp!==void 0)return wVp;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return wVp=X},{mode:1});var hYp;var W4=function(){return _.a.apply(this,arguments)||this};
_.S(W4,_.a);W4.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],W4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],W4.prototype,"data",void 0);_.T([_.sq({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],W4);
_.O(W4,"ytd-settings-sidebar-renderer",function(){if(hYp!==void 0)return hYp;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return hYp=X},{mode:1});var F8y;var EE=function(){return _.a.apply(this,arguments)||this};
_.S(EE,_.a);EE.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
EE.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
EE.prototype.onYtExpanderMoreTapped=EE.prototype.onYtExpanderMoreTapped;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],EE.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],EE.prototype,"data",void 0);
_.T([_.Le("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EE.prototype,"onYtExpanderMoreTapped",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],EE);
_.O(EE,"ytd-product-details-description-renderer",function(){if(F8y!==void 0)return F8y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return F8y=X},{mode:1});var BaZ;var gO=function(){var X=_.a.apply(this,arguments)||this;X.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";X.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";X.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";X.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return X};
_.S(gO,_.a);gO.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ja.Object.defineProperties(gO.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:(H=X.offerData)==null?void 0:H.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?void 0:X.purchaseButtonRenderers)!==void 0&&((H=this.data)==null?void 0:H.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var X,H;return!((X=this.data)==null||!X.formattedFromMerchantText)&&(!((H=this.data)==null||!H.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],gO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],gO.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],gO.prototype,"data",void 0);
_.T([_.g({type:_.P("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],gO.prototype,"shippingIcon",void 0);_.T([_.g({type:_.P("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],gO.prototype,"shippingAddressIcon",void 0);_.T([_.g({type:_.P("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],gO.prototype,"googleGuaranteeIcon",void 0);
_.T([_.g({type:_.P("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],gO.prototype,"returnPolicyIcon",void 0);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gO.prototype,"showAdditionalFees",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gO.prototype,"showMultiPurchaseButtons",null);
_.T([_.x("data","showMultiPurchaseButtons"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gO.prototype,"showPurchaseData",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],gO);
_.O(gO,"ytd-product-details-hero-offer-renderer",function(){if(BaZ!==void 0)return BaZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return BaZ=X},{mode:1});var qNp;var sNp;var Gn=function(){return _.a.apply(this,arguments)||this};
_.S(Gn,_.a);_.R=Gn.prototype;_.R.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.R.onKeyDown=function(X){X=X.keyCode;X!==13&&X!==32||this.handleSelection()};
_.R.onMouseEnterImage=function(){var X;((X=this.data)==null?void 0:X.thumbnailDetails)!==void 0&&_.NG(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.R.onMouseLeaveImage=function(){_.NG(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.R.handleSelection=function(){this.data&&_.QX(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.ja.Object.defineProperties(Gn.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.isSelected)}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Gn.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Gn.prototype,"isSelected",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Gn);
_.O(Gn,"ytd-product-details-thumbnail-renderer",function(){if(sNp!==void 0)return sNp;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return sNp=X},{mode:1});var ab=function(){var X=_.a.apply(this,arguments)||this;var H={};X.actionMap=(H["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",H["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",H);X.selectedThumbnailIndex=0;X.selectItem=function(l){l.target.onKeyDown(l)};
return X};
_.S(ab,_.a);_.R=ab.prototype;_.R.handlePreviewImageSelect=function(X){this.hoverThumbnail=X};
_.R.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.R.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.R.onThumbnailSelected=function(X,H){this.selectedThumbnailIndex=H};
_.R.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.R.updateOffset=function(){var X=_.mh(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-X));this.ytdHorizontalListBehavior.reposition_()};
_.ja.Object.defineProperties(ab.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null?0:X.imageRenderer){var H,l;return((H=this.data)==null?void 0:(l=H.imageRenderer)==null?void 0:l.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var X;if((X=this.data)==null?0:X.imageRenderer){var H;return(H=_.f(this.data.imageRenderer[this.selectedThumbnailIndex],JdZ))==null?void 0:H.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var X=this,H,l,b,U=(b=(H=this.data)==null?void 0:(l=H.imageRenderer)==null?void 0:l.map(function(K,w){return{productDetailsThumbnailRenderer:Object.assign({},_.f(K,JdZ),{index:w,isSelected:w===X.selectedThumbnailIndex})}}))!=null?b:[];
return Object.assign({},this.data,{imageRenderer:U})}}});
ab.prototype.updateOffset=ab.prototype.updateOffset;ab.prototype.dataChanged=ab.prototype.dataChanged;ab.prototype.onThumbnailSelected=ab.prototype.onThumbnailSelected;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.Z$.YtdHorizontalListBehavior),_.N("design:type",Object)],ab.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],ab.prototype,"componentBehavior",void 0);_.T([_.k([_.rh.YtActionHandlerBehavior]),_.N("design:type",Object)],ab.prototype,"actionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ab.prototype,"data",void 0);_.T([_.g({value:"$.items.children"}),_.N("design:type",String)],ab.prototype,"itemsPath",void 0);_.T([_.g({value:3}),_.N("design:type",Number)],ab.prototype,"initialCount",void 0);
_.T([_.A2("#items"),_.N("design:type",Object)],ab.prototype,"items",void 0);_.T([_.g(),_.N("design:type",Object)],ab.prototype,"selectedThumbnailIndex",void 0);_.T([_.g(),_.N("design:type",Object)],ab.prototype,"hoverThumbnail",void 0);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ab.prototype,"showThumbnails",null);
_.T([_.Le("ytd-product-details-thumbnail-renderer-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Number]),_.N("design:returntype")],ab.prototype,"onThumbnailSelected",null);_.T([_.x("data","selectedThumbnailIndex","hoverThumbnail"),_.N("design:type",Object),_.N("design:paramtypes",[])],ab.prototype,"thumbnailDetails",null);_.T([_.x("data","selectedThumbnailIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],ab.prototype,"populatedData",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ab.prototype,"dataChanged",null);_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ab.prototype,"updateOffset",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],ab);
_.O(ab,"ytd-product-details-image-carousel-renderer",function(){if(qNp!==void 0)return qNp;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return qNp=X},{mode:2});var MTx;var Z2=function(){return _.a.apply(this,arguments)||this};
_.S(Z2,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Z2.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Z2.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Z2.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Z2);
_.O(Z2,"ytd-product-details-offer-renderer",function(){if(MTx!==void 0)return MTx;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return MTx=X},{mode:1});var uNZ;var iO=function(){var X=_.a.apply(this,arguments)||this;X.isOffersHidden=!0;return X};
_.S(iO,_.a);iO.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var X,H=_.f((X=this.data)==null?void 0:X.viewOffersButton,_.yB);H&&this.ytRendererBehavior.logExplicitClick(H)};
iO.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.ja.Object.defineProperties(iO.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b;return(l=_.f((X=this.data)==null?void 0:(H=X.offers)==null?void 0:H[0],Ady))==null?void 0:(b=l.offerData)==null?void 0:b.vendorLogoUrl}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],iO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],iO.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],iO.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],iO.prototype,"isOffersHidden",void 0);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],iO.prototype,"firstOfferVendorLogoUrl",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],iO);
_.O(iO,"ytd-product-details-offers-container-renderer",function(){if(uNZ!==void 0)return uNZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return uNZ=X},{mode:1});var eYZ;var yM$;var v4=function(){return _.a.apply(this,arguments)||this};
_.S(v4,_.a);v4.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
v4.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.NG(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
v4.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.NG(this,"ytd-product-details-variant-image-unselect")};
_.ja.Object.defineProperties(v4.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 X;return((X=this.data)==null?void 0:X.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((X=this.data)==null?void 0:X.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((H=this.data)==null?void 0:H.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((l=this.data)==null?void 0:l.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var X;if(((X=this.data)==null?void 0:X.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var X,H;return this.isUnavailable?(X=this.data)==null?void 0:X.variantOptionUnavailableAccessibilityLabel:(H=this.data)==null?void 0:H.variantOptionAccessibilityLabel}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],v4.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],v4.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],v4.prototype,"displayType",void 0);
_.T([_.x("displayType","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],v4.prototype,"isImageButton",null);_.T([_.x("displayType","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],v4.prototype,"isPillButton",null);_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],v4.prototype,"isActive",null);
_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],v4.prototype,"isUnavailable",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],v4.prototype,"thumbnailDetails",null);_.T([_.x("isUnavailable","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],v4.prototype,"accessibilityLabel",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],v4);
_.O(v4,"ytd-product-details-variant-option-renderer",function(){if(yM$!==void 0)return yM$;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return yM$=X},{mode:1});var VTC;var OE=function(){var X=_.a.apply(this,arguments)||this;X.variantsExpanded=!1;X.hideShowMoreLessVariantButton=!0;X.initialized=!1;X.computeVariantsDebouncer=null;X.computeVariants=function(H){H=H===void 0?!1:H;X.variantsExpanded||X.showOptions()||!H||(X.variantsExpanded=!0);if(X.variantsExpanded){H=_.C(X.items.children);for(var l=H.next();!l.done;l=H.next())l.value.hidden=!1}X.initialized=!0};
return X};
_.S(OE,_.a);_.R=OE.prototype;_.R.ready=function(){var X=this;setTimeout(function(){X.computeVariants(!0)})};
_.R.showOptions=function(){for(var X=_.C(this.items.children),H=X.next();!H.done;H=X.next())H.value.hidden=!0;var l=this.container.getBoundingClientRect().width,b=0,U=X=0;H=!1;for(var K=_.C(this.items.children),w=K.next();!w.done;w=K.next()){w=w.value;w.hidden=!1;var d=w.getBoundingClientRect().width;if(b+d<l)b+=d;else if(++U<2)b=d;else break;X+=1;w.hasAttribute("is-active")&&(H=!0)}for(l=X;l<this.items.children.length;l++)this.items.children[l].hidden=!0;this.hideShowMoreLessVariantButton=X===this.items.children.length;
return H};
_.R.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Qy(this.computeVariantsDebouncer,_.DK.after(100),this.computeVariants)};
_.R.onShowMoreLessVariantsButtonClick=function(){var X;(X=this.data)!=null&&X.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.R.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.ja.Object.defineProperties(OE.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(X=this.data)==null?void 0:(H=X.variantOptionRenderers)==null?void 0:H.find(function(K){return _.f(K,YzZ).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),b,U;
return(U=(b=_.f(l,YzZ))==null?void 0:b.name)!=null?U:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.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"}}}});
OE.prototype.debouncedComputeVariants=OE.prototype.debouncedComputeVariants;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],OE.prototype,"componentBehavior",void 0);_.T([_.k(_.$s),_.N("design:type",Object)],OE.prototype,"ironResizableBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],OE.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],OE.prototype,"variantsExpanded",void 0);_.T([_.g(),_.N("design:type",Object)],OE.prototype,"hideShowMoreLessVariantButton",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],OE.prototype,"initialized",void 0);_.T([_.A2("#items"),_.N("design:type",HTMLDivElement)],OE.prototype,"items",void 0);_.T([_.A2("#container"),_.N("design:type",HTMLDivElement)],OE.prototype,"container",void 0);
_.T([_.A2("#more-variants-button"),_.N("design:type",HTMLElement)],OE.prototype,"moreVariantsButton",void 0);_.T([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],OE.prototype,"selectedOptionName",null);_.T([_.Yh("data","variantsExpanded"),_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OE.prototype,"debouncedComputeVariants",null);
_.T([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],OE.prototype,"displayType",null);_.T([_.x("displayType"),_.N("design:type",Object),_.N("design:paramtypes",[])],OE.prototype,"variantItemsClassname",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],OE);
_.O(OE,"ytd-product-details-variant-renderer",function(){if(VTC!==void 0)return VTC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return VTC=X},{mode:1});var m_=function(){return _.a.apply(this,arguments)||this};
_.S(m_,_.a);
m_.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"}}}};
_.ja.Object.defineProperties(m_.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(H=_.f((X=this.data)==null?void 0:X.offersContainerRenderer,IGa))==null?void 0:H.offers;return l!==void 0&&(l==null?void 0:l.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 X,H,l;return((l=(X=this.data)==null?void 0:(H=X.variants)==null?void 0:H.map(function(b){var U,K;b=(K=(U=_.f(b,LnZ))==null?void 0:U.variantOptionRenderers)==null?void 0:K.find(function(d){var B;return((B=_.f(d,YzZ))==null?void 0:B.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var w;return(w=_.f(b,YzZ))==null?void 0:w.name}).filter(function(b){return typeof b==="string"}))!=null?l:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b=(H=_.f((X=this.data)==null?void 0:X.shoppingFlaggingRenderer,X3$))==null?void 0:(l=H.reportButton)==null?void 0:l.buttonRenderer;if(b)return{text:b.text,command:b.command,icon:{iconType:"FLAG"},accessibilityData:b.accessibilityData,trackingParams:b.trackingParams,loggingDirectives:b.loggingDirectives}}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],m_.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],m_.prototype,"data",void 0);_.T([_.A2("#image-carousel-renderer"),_.N("design:type",Object)],m_.prototype,"imageCarouselRenderer",void 0);
_.T([_.A2("#hero-offer-renderer"),_.N("design:type",Object)],m_.prototype,"productDetailsHeroOfferRenderer",void 0);_.T([_.A2("#variants"),_.N("design:type",Object)],m_.prototype,"productDetailsVariantRenderer",void 0);_.T([_.A2("#offers"),_.N("design:type",Object)],m_.prototype,"productDetailsOffersContainerRenderer",void 0);_.T([_.A2("#description-renderer"),_.N("design:type",Object)],m_.prototype,"productDetailsDescriptionRenderer",void 0);
_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],m_.prototype,"showPurchaseData",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],m_.prototype,"showHeroOfferRenderer",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],m_.prototype,"showBrandText",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],m_.prototype,"showOffers",null);
_.T([_.x("showOffers","showPurchaseData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],m_.prototype,"showBuySeparator",null);_.T([_.x("showOffers","showPurchaseData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],m_.prototype,"showBuyCard",null);_.T([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],m_.prototype,"selectedVariantsText",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],m_.prototype,"shoppingReportingButtonData",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],m_);
_.O(m_,"ytd-product-details-renderer",function(){if(eYZ!==void 0)return eYZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return eYZ=X},{mode:1});var P8a;var f4U;var pVl;var Qa=function(){return _.a.apply(this,arguments)||this};
_.S(Qa,_.a);Qa.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ja.Object.defineProperties(Qa.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Qa.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Qa.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Qa.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],Qa.prototype,"formattedAmount",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Qa.prototype,"ariaLabel",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("data.style"),_.N("design:type",String),_.N("design:paramtypes",[])],Qa.prototype,"vcBalanceWidgetStyle",null);_.T([_.qR({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Qa);
_.O(Qa,"yt-vc-balance-renderer",function(){if(pVl===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;f4U===void 0&&(f4U=document.createElement("template"));var b=f4U;l.call(H,b.content.cloneNode(!0),X.content.firstChild);pVl=X}X=pVl;return X},{mode:2});_.wd("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Tn=function(){return _.a.apply(this,arguments)||this};
_.S(Tn,_.a);_.ja.Object.defineProperties(Tn.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Tn.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Tn.prototype,"data",void 0);_.T([_.g({selectorArgs:["data.vcBalanceEntityKey"],selector:function(X,H){return _.JY(X.entities,"vcBalanceEntity",H)}}),
_.N("design:type",Object)],Tn.prototype,"vcBalanceEntity",void 0);_.T([_.x("vcBalanceEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],Tn.prototype,"formattedAmount",null);_.T([_.x("vcBalanceEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],Tn.prototype,"vcBalanceAriaLabel",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],Tn);
_.O(Tn,"ytd-vc-balance-renderer",function(){if(P8a!==void 0)return P8a;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return P8a=X},{mode:1});var SNx;var NN=function(){var X=_.a.apply(this,arguments)||this;X.expandableCustomTabRenderable=function(H){return u0d(H,function(){return void X.onSearchNavigate()})};
return X};
_.S(NN,_.a);NN.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
NN.prototype.onSearchNavigate=function(){this.selected=void 0};
NN.prototype.onTabsChange=function(){var X,H=(X=this.tabs)==null?void 0:X.findIndex(function(l){var b;return l==null?void 0:(b=l.tabRenderer)==null?void 0:b.selected});
H!==void 0&&(this.selected=H)};
NN.prototype.onTabsActive=function(X){if(this.tabs!==void 0){var H,l;(X=(H=this.tabs[X.detail.selected])==null?void 0:(l=H.tabRenderer)==null?void 0:l.endpoint)&&_.QX(this.hostElement,"yt-navigate",{endpoint:X})}};
_.ja.Object.defineProperties(NN.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:V55(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
NN.prototype.onTabsChange=NN.prototype.onTabsChange;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.yx),_.N("design:type",Object)],NN.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],NN.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],NN.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Array)],NN.prototype,"tabs",void 0);_.T([_.g(),_.N("design:type",Number)],NN.prototype,"selected",void 0);_.T([_.x("tabs.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],NN.prototype,"tabGroupShape",null);_.T([_.g(),_.N("design:type",Object)],NN.prototype,"expandableCustomTabRenderable",void 0);
_.T([_.x("tabs"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],NN.prototype,"tabsEnabled",null);_.T([_.oi("tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],NN.prototype,"onTabsChange",null);_.T([_.sq({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],NN);
_.O(NN,"ytd-topic-channel-details-renderer",function(){if(SNx!==void 0)return SNx;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return SNx=X},{mode:1});var zYN;var c4=function(){var X=_.a.apply(this,arguments)||this;X.disableGridStateAware=!1;return X};
_.S(c4,_.a);c4.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]]"}}}}}};
c4.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
c4.prototype.updateCssVars=function(){_.j4(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Yy("rich_grid_max_item_width",500))+16)-16+"px"})};
c4.prototype.updateCssVars=c4.prototype.updateCssVars;c4.prototype.activeChanged=c4.prototype.activeChanged;_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],c4.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],c4.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],c4.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Array)],c4.prototype,"tabs",void 0);_.T([_.g(),_.N("design:type",Boolean)],c4.prototype,"active",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],c4.prototype,"disableGridStateAware",void 0);
_.T([_.g({selector:_.qo}),_.N("design:type",Number)],c4.prototype,"richGridItemsPerRow",void 0);_.T([_.g({selector:_.BF}),_.N("design:type",Boolean)],c4.prototype,"richGridMiniMode",void 0);_.T([_.A2("ytd-carousel-item-renderer"),_.N("design:type",Object)],c4.prototype,"carousel",void 0);_.T([_.Yh("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c4.prototype,"activeChanged",null);
_.T([_.Yh("richGridItemsPerRow","richGridMiniMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c4.prototype,"updateCssVars",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],c4);
_.O(c4,"ytd-carousel-header-renderer",function(){if(zYN!==void 0)return zYN;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return zYN=X},{mode:1});var ndl;var kfa=_.W8(["https://www.google-analytics.com/analytics.js"]),jC=function(){var X=_.a.apply(this,arguments)||this;X.scriptAnalyticsAdded=!1;return X};
_.S(jC,_.a);jC.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var X,H=(X=this.data)==null?void 0:X.tagManagerId;H&&(_.UK(H,_.gx("GL")),$8x(H))};
jC.prototype.sendGoogleAnalyticsPageview=function(X){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var l=_.Ab.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(l)};
var H=window.ga;H("set","page",window.location.pathname);H.l=+new Date;H("set","forceSSL",!0);H("create",X,"'auto'");H("send","pageview")};
jC.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var X=_.XJ("SCRIPT");X.name="ga-analytics";var H=_.z8(kfa);_.sw(X,H);X.async=!0;_.mh(this.hostElement).appendChild(X)};
jC.prototype.dataChanged=jC.prototype.dataChanged;_.T([_.g(),_.N("design:type",Object)],jC.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jC.prototype,"dataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],jC);
_.O(jC,"ytd-channel-metadata-renderer",function(){if(ndl!==void 0)return ndl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ndl=X},{mode:1});var xTY;var DTU;var tTa=function(){return _.a.apply(this,arguments)||this};
_.S(tTa,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tTa.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],tTa.prototype,"data",void 0);_.T([_.sq({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],tTa);
_.O(tTa,"ytd-sub-feed-option-renderer",function(){if(DTU!==void 0)return DTU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return DTU=X},{mode:1});var W8Y;var rO=function(){return _.a.apply(this,arguments)||this};
_.S(rO,_.a);rO.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],rO.prototype,"ytRendererStamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],rO.prototype,"data",void 0);_.T([_.sq({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],rO);
_.O(rO,"ytd-sub-feed-selector-renderer",function(){if(W8Y!==void 0)return W8Y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return W8Y=X},{mode:1});var Je=function(){return _.a.apply(this,arguments)||this};
_.S(Je,_.a);
Je.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Je.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Je.prototype,"data",void 0);_.T([_.sq({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Je);
_.O(Je,"ytd-browse-feed-actions-renderer",function(){if(xTY!==void 0)return xTY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return xTY=X},{mode:1});var EdN;var gdd;var LM=function(){return _.a.apply(this,arguments)||this};
_.S(LM,_.a);LM.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],LM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],LM.prototype,"data",void 0);_.T([_.sq({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],LM);
_.O(LM,"ytd-mini-channel-renderer",function(){if(gdd!==void 0)return gdd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return gdd=X},{mode:1});var Gfy;var YL=function(){return _.a.apply(this,arguments)||this};
_.S(YL,_.a);YL.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],YL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],YL.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],YL);
_.O(YL,"ytd-vertical-channel-section-renderer",function(){if(Gfy!==void 0)return Gfy;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Gfy=X},{mode:1});var Ib=function(){return _.a.apply(this,arguments)||this};
_.S(Ib,_.a);Ib.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ib.prototype,"data",void 0);_.T([_.sq({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Ib);
_.O(Ib,"ytd-browse-secondary-contents-renderer",function(){if(EdN!==void 0)return EdN;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
return EdN=X},{mode:1});var a4e;var Ae=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};X.notActive=!1;X.isConstrainedList=!1;X.marginSettings=0;return X};
_.S(Ae,_.a);_.R=Ae.prototype;
_.R.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(X){var H;return(X==null?void 0:(H=X.webComponentHint)==null?void 0:H.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?
"yt-section-list-renderer":"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.R.getPath=function(X,H){var l="data.tabs.#"+H+".";X.tabs[H].tabRenderer?l+="tabRenderer.":X.tabs[H].expandableTabRenderer&&(l+="expandableTabRenderer.");return l+"content.sectionListRenderer"};
_.R.computeDisplayedContent=function(X){this.unlinkPaths("content");if(X&&X.tabs)for(var H=X.tabs.length,l=0;l<H;l++){var b=X.tabs[l].tabRenderer||X.tabs[l].expandableTabRenderer;if(b.selected&&b.content)return this.linkPaths("content",this.getPath(X,l)),b.content}return null};
_.R.computeHasSecondaryColumnData=function(X){return!!X&&!!X.secondaryContents};
_.R.onRetrieveLocation=function(X,H){H.locationRetrieved(H.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);X.stopPropagation()};
_.R.onYtServiceRequestSent=function(X,H){_.P("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(H)};
_.R.onYtServiceRequestCompleted=function(X,H){_.P("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(H)};
_.R.onReplaceFeedContentAction=function(X){if(!_.P("replace_feed_content_action_killswitch")&&!this.notActive){var H;(X=(H=_.f(X,vGy))==null?void 0:H.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(X)}};
_.R.handleServiceRequestActions=function(X){if(X=X.actions){X=_.C(X);for(var H=X.next();!H.done;H=X.next()){H=H.value;var l=void 0;((l=_.f(H,vGy))==null?0:l.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.f(H,vGy).items)}}};
Ae.prototype.onYtServiceRequestCompleted=Ae.prototype.onYtServiceRequestCompleted;Ae.prototype.onYtServiceRequestSent=Ae.prototype.onYtServiceRequestSent;Ae.prototype.onRetrieveLocation=Ae.prototype.onRetrieveLocation;_.T([_.k(_.yx),_.N("design:type",Object)],Ae.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ae.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Ae.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ae.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ae.prototype,"data",void 0);_.T([_.g({computed:"computeDisplayedContent(data)"}),_.N("design:type",Object)],Ae.prototype,"content",void 0);
_.T([_.g({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Ae.prototype,"hasSecondaryColumnData",void 0);_.T([_.g({value:function(){return window.outerHeight>1024?3:2}}),
_.N("design:type",Number)],Ae.prototype,"initialCount",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Ae.prototype,"pageSubtype",void 0);_.T([_.A2("ytd-section-list-renderer"),_.N("design:type",Object)],Ae.prototype,"listRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],Ae.prototype,"notActive",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Ae.prototype,"isConstrainedList",void 0);
_.T([_.g(),_.N("design:type",String)],Ae.prototype,"responsiveSizing",void 0);_.T([_.g(),_.N("design:type",Number)],Ae.prototype,"marginSettings",void 0);_.T([_.Le("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Ae.prototype,"onRetrieveLocation",null);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],Ae.prototype,"onYtServiceRequestSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],Ae.prototype,"onYtServiceRequestCompleted",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Ae);
_.O(Ae,"ytd-two-column-browse-results-renderer",function(){if(a4e!==void 0)return a4e;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return a4e=X},{mode:2});var Z1e;var i1N;var Xo=function(){var X=_.a.apply(this,arguments)||this;X.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"]);X.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"]);X.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return X};
_.S(Xo,_.a);_.R=Xo.prototype;_.R.attached=function(){this.requestElementsPerRow()};
_.R.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_]]"}}}}}};
_.R.onUpdateElementsPerRowAction=function(X){X&&this.elementsPerRow!==X&&(this.elementsPerRow=X)};
_.R.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.R.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.R.computeAlertStyle_=function(X){return X};
_.R.observerElementsPerRow=function(){this.elementsPerRow&&_.j4(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.R.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.R.requestElementsPerRow=function(){_.QX(this.hostElement,"yt-request-elements-per-row")};
Xo.prototype.onIsVisibleChanged_=Xo.prototype.onIsVisibleChanged_;Xo.prototype.observerElementsPerRow=Xo.prototype.observerElementsPerRow;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Xo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Xo.prototype,"actionHandlerBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],Xo.prototype,"data",void 0);_.T([_.g({value:6,reflectToAttribute:!0}),_.N("design:type",Number)],Xo.prototype,"elementsPerRow",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Xo.prototype,"wrapButtons",void 0);_.T([_.g({value:_.gx("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.N("design:type",Boolean)],Xo.prototype,"isMusic",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.N("design:type",String)],Xo.prototype,"alertStyle",void 0);_.T([_.g({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.N("design:type",Function)],Xo.prototype,"dismissBoundButtonTap_",void 0);_.T([_.g({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.N("design:type",Function)],Xo.prototype,"acceptBoundButtonTap_",void 0);_.T([_.Yh("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xo.prototype,"observerElementsPerRow",null);_.T([_.Yh("data.isVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xo.prototype,"onIsVisibleChanged_",null);_.T([_.qR({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Xo);
_.O(Xo,"yt-alert-with-actions-renderer",function(){if(i1N===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Z1e===void 0&&(Z1e=document.createElement("template"));var b=Z1e;l.call(H,b.content.cloneNode(!0),X.content.firstChild);i1N=X}X=i1N;return X},{mode:2});var vdZ=_.Z(function(X){var H={};return _.F(_.Sj,{text:X.text,className:_.Qr("ytPersonalGreetingViewModelHeadline",(H.ytPersonalGreetingViewModelHeadlineSmall=X.isSmallHeadline,H))})},"wk");_.gC(_.Z(function(X){var H=_.Mh(function(){var y;return(y=X.data())==null?void 0:y.rendererContext},void 0,void 0,void 0,!0),l=function(){return X.data().canvasPromoData},b=function(){var y;
return(y=X.data().bannerHeight)!=null?y:56},U=_.C(_.UF({throttleMs:100})),K=U.next().value;
U=U.next().value;var w=_.C(_.UF({throttleMs:100})),d=w.next().value;w=w.next().value;var B=_.C(_.UF({throttleMs:100})),q=B.next().value;B=B.next().value;var u=function(){return d.width()-K.width()>1},e=function(){return b()===48};
return _.F("yt-personal-greeting-view-model",{el:_.xl(H,U),"aria-hidden":u,class:_.Qr(X.className,"ytPersonalGreetingViewModelHost"),style:_.rC({height:(0,_.f3)(function(){return u()?0:b()})})},_.F(_.M,{cond:function(){return X.data().avatar&&!(q.width()+(X.data().avatar?48:0)-K.width()>1)},
then:function(){return _.F(_.l4,{data:function(){return X.data().avatar}},{decoratedAvatarViewModel:function(y){return _.F(_.uu,{data:y.data,
className:_.Qr("ytPersonalGreetingViewModelAvatar")})}})}}),_.F("h1",null,_.F(vdZ,{text:function(){var y;
return(l==null?void 0:(y=l())==null?void 0:y.headline)||(q.width()+(X.data().avatar?48:0)-K.width()>1?X.data().shorterGreeting:X.data().greeting)},
isSmallHeadline:e})),_.F("span",{el:_.xl(B),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.F(vdZ,{text:function(){return X.data().greeting},
isSmallHeadline:e})),_.F("span",{el:_.xl(w),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.F(vdZ,{text:function(){return X.data().shorterGreeting},
isSmallHeadline:e})))},"vk"),"yt-personal-greeting-view-model",{props:{data:_.zh,
className:_.zh}});var Hs=function(){var X=_.a.apply(this,arguments)||this;X.hidden=!1;X.isConstrainedList=!1;X.responsiveSizing="COMPACT";X.attachedPlayers=_.P("kevlar_channel_trailer_multi_attach")?[]:void 0;X.player=null;X.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return X};
_.S(Hs,_.a);_.R=Hs.prototype;
_.R.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}}}}};
_.R.created=function(){var X=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){X.disposeMastheadAd()}]};
_.R.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new $Ye(this.refresh,this.contents))};
_.R.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.R.activeChanged=function(){var X=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=X)};
_.R.tabsChanged=function(){var X=this,H,l;if(this.pageSubtype==="channels"||_.P("kevlar_tab_gestures_for_tabbed_header_data")&&((H=this.data)==null?0:(l=H.header)==null?0:l.carouselHeaderRenderer))this.tabGestures=new CSe(this.contents,this.contents,this.hostElement,this.header,function(w){X.ytdReduxBehavior.dispatch(w)});
var b,U,K;H=(b=this.data)==null?void 0:(U=b.contents)==null?void 0:(K=U.twoColumnBrowseResultsRenderer)==null?void 0:K.tabs;this.tabGestures&&this.tabGestures.tabsChanged(H)};
_.R.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.R.engagementPanelsChanged=function(){var X=_.jJ().resolve(_.d3);if(X){if(this.engagementPanels)for(var H=_.C(this.engagementPanels),l=H.next();!l.done;l=H.next()){var b=void 0;(l=(b=l.value.identifier)==null?void 0:b.tag)&&X.panelMap.delete(l)}this.engagementPanels=[];var U;H=_.C(((U=this.data)==null?void 0:U.panels)||[]);for(U=H.next();!U.done;U=H.next()){U=_.f(U.value,Qn5);var K=l=void 0,w=void 0,d=void 0;if(b=((l=U)==null?void 0:l.targetId)||((K=U)==null?void 0:K.panelIdentifier)||((w=U)==null?
void 0:(d=w.identifier)==null?void 0:d.tag))K=l=void 0,(K=(l=X).registerPanelContent)==null||K.call(l,b,{engagementPanelSectionListRenderer:U}),this.engagementPanels.push(U)}}};
_.R.onStampFinished=function(){var X=this;_.N0(this,function(){if(X.tabGestures){var H=X.tabGestures;if(H.scrollPositionNeedsUpdate){var l=_.jJ().resolve(_.c$(_.gd)),b;if((b=H.selectedTab)!=null&&b.title&&l&&(b=l.getCurrentPage())){if(H.scrollPositionForTabs.has(H.selectedTab.title)){var U,K;l=(K=(U=l.getCurrentPage())==null?void 0:U.clientHeight)!=null?K:0;U=H.scrollPositionForTabs.get(H.selectedTab.title);b.setScrollTop(U);l>U+100&&(H.scrollPositionNeedsUpdate=!1)}else b.setScrollTop(Math.min(H.lastVisitedTabScrollPosition!==
void 0?H.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,H.tabsStartAtInPx)),H.scrollPositionNeedsUpdate=!1;H.ytdReduxDispatch(Tsd(!1))}}}})};
_.R.loadPage_=function(X){this.initCsi();X&&(this.data=X);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.R.getTitle=function(X){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",X))return this.get("microformat.microformatDataRenderer.title",X);if(this.get("header.feedTabbedHeaderRenderer.title",X))return _.D8(this.get("header.feedTabbedHeaderRenderer.title",X));if(this.get("header.interactiveTabbedHeaderRenderer.title",X))return this.get("header.interactiveTabbedHeaderRenderer.title",X);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
X))return _.D8(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",X));var H,l;return(X==null?0:(H=X.header)==null?0:(l=H.pageHeaderRenderer)==null?0:l.pageTitle)?X.header.pageHeaderRenderer.pageTitle:""};
_.R.updateTitle=function(X){_.QX(this.hostElement,"yt-update-title",this.getTitle(X))};
_.R.initCsi=function(){M7d(this.pageSubtype||"browse",["ol","cpt"])};
_.R.getPlayer=function(){if(_.P("kevlar_channel_trailer_multi_attach")){for(var X=_.C(this.attachedPlayers),H=X.next();!H.done;H=X.next())if(H=H.value,H.isConnected||_.aA(this.hostElement,H))return H;return null}return this.player};
_.R.getPlayerContainer=function(){return null};
_.R.onPlayerAttached=function(X,H){_.P("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(H):this.player=H};
_.R.onPlayerDetached=function(X,H){_.P("kevlar_channel_trailer_multi_attach")?(X=this.attachedPlayers.indexOf(H),X<0||this.attachedPlayers.splice(X,1)):this.player=null};
_.R.getServiceTrackingParams=function(){var X,H;return((X=this.data)==null?void 0:(H=X.responseContext)==null?void 0:H.serviceTrackingParams)||[]};
_.R.setMastheadAd=function(X){X&&X.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=X&&X.mastheadAd};
_.R.dataChanged=function(){var X=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||zPy();_.N0(this,function(){_.NG(X.hostElement,"ytd-update-grid-state-action")})};
_.R.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.R.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var X=this.data.alerts;return X&&X.find(function(H){return!!H.alertWithActionsRenderer})}};
_.R.computeGreetingData=function(){if(this.data&&this.data.alerts){var X=this.data.alerts;return X&&X.find(function(H){return!!H.personalGreetingViewModel})}};
_.R.computeHasMemberHubProfileRenderer=function(X){var H;return!!(X==null?0:(H=X.header)==null?0:H.memberHubProfileRenderer)};
_.R.handleAlertCommand=function(X){this.get("alertCommand.alert.alertWithActionsRenderer",X)&&(X=_.f(X,bBx),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",X.alert))};
_.R.handleYtPlaylistDeletionRedirect=function(X){X=this.get("playlistDeletionRedirectCommand.redirectEndpoint",X);_.QX(this.hostElement,"yt-navigate",{endpoint:X})};
_.R.computeFluidWidth=function(X,H,l){if(H==="mini_app"||l)return!0;var b,U,K;X=X==null?void 0:(b=X.contents)==null?void 0:(U=b.twoColumnBrowseResultsRenderer)==null?void 0:(K=U.tabs)==null?void 0:K.find(function(B){var q;return B==null?void 0:(q=B.tabRenderer)==null?void 0:q.selected});
if(!X)return!1;var w,d;return!!((w=X.tabRenderer)==null?0:(d=w.content)==null?0:d.richGridRenderer)&&!["channel","channels","playables"].includes(H)};
_.R.computeHeaderFluidWidth=function(X){return X==="hashtag-landing-page"};
_.R.computeHasSidebar=function(X){var H;return!!(X.sidebar||((H=X.header)==null?0:H.playlistHeaderRenderer))};
_.R.computeHasPageHeaderSidebar=function(X){var H,l;return!!((H=X.header)==null?0:(l=H.pageHeaderRenderer)==null?0:l.enableSidebarView)};
_.R.computeUseUnifiedShowPageLayout=function(X){if(!X||this.pageSubtype!=="show"||!X.sidebar||!X.sidebar.playlistSidebarRenderer)return!1;X=X.sidebar.playlistSidebarRenderer;if(!X.items)return!1;for(var H=0;H<X.items.length;H++)if(_.f(X.items[H],tKl)){var l=void 0;return((l=_.f(X.items[H],tKl))==null?void 0:l.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.R.computeIsConstrainedList=function(X){return X==="subscriptions-channels"};
_.R.computeResponsiveSizing=function(X){return X==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.ja.Object.defineProperties(Hs.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var X,H;return((X=this.data)==null?0:(H=X.header)==null?0:H.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var X,H;if(!((X=this.data)==null?0:(H=X.sidebar)==null?0:H.playlistSidebarRenderer))return!1;var l;return(l=this.data)!=null&&l.header?!1:!0}}});
_.ja.Object.defineProperties(Hs,{template:{configurable:!0,enumerable:!0,get:function(){if(wkd===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);wkd=X}X=wkd;return X}}});
Hs.prototype.dataChanged=Hs.prototype.dataChanged;Hs.prototype.onPlayerDetached=Hs.prototype.onPlayerDetached;Hs.prototype.onPlayerAttached=Hs.prototype.onPlayerAttached;Hs.prototype.onStampFinished=Hs.prototype.onStampFinished;Hs.prototype.engagementPanelsChanged=Hs.prototype.engagementPanelsChanged;Hs.prototype.scrollAtTopChanged=Hs.prototype.scrollAtTopChanged;Hs.prototype.tabsChanged=Hs.prototype.tabsChanged;Hs.prototype.activeChanged=Hs.prototype.activeChanged;
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Hs.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],Hs.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Hs.prototype,"ytdReduxBehavior",void 0);_.T([_.k(Hw.YtPageBehavior),_.N("design:type",Object)],Hs.prototype,"ytPageBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Hs.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Hs.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Hs.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Hs.prototype,"hidden",void 0);
_.T([_.g(),_.N("design:type",Object)],Hs.prototype,"mastheadAdData",void 0);_.T([_.g({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.N("design:type",Object)],Hs.prototype,"alertBannerData",void 0);_.T([_.g({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.N("design:type",Object)],Hs.prototype,"greetingData",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Hs.prototype,"pageSubtype",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.N("design:type",Boolean)],Hs.prototype,"hasMemberHubProfileRenderer",void 0);_.T([_.g({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Hs.prototype,"hasSidebar",void 0);_.T([_.g({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Hs.prototype,"hasPageHeaderSidebar",void 0);
_.T([_.g({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Hs.prototype,"roundedContainer",void 0);_.T([_.g({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Hs.prototype,"useUnifiedShowPageLayout",void 0);_.T([_.g({computed:"computeIsConstrainedList(pageSubtype)"}),_.N("design:type",Object)],Hs.prototype,"isConstrainedList",void 0);
_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Hs.prototype,"usePlaylistHeaderRenderer",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Hs.prototype,"useOldPlaylistSidebarRenderer",null);_.T([_.g({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.N("design:type",Boolean)],Hs.prototype,"fluidWidth",void 0);_.T([_.g({selector:V7$}),_.N("design:type",Boolean)],Hs.prototype,"scrollAtTop",void 0);
_.T([_.g({selector:PTx}),_.N("design:type",Boolean)],Hs.prototype,"tabGesturesIsActive",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.N("design:type",Boolean)],Hs.prototype,"disableHeaderFluidWidth",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.N("design:type",String)],Hs.prototype,"responsiveSizing",void 0);
_.T([_.A2("ytd-two-column-browse-results-renderer"),_.N("design:type",HTMLElement)],Hs.prototype,"contents",void 0);_.T([_.A2("#header"),_.N("design:type",HTMLElement)],Hs.prototype,"header",void 0);_.T([_.A2("ytd-refresh"),_.N("design:type",Object)],Hs.prototype,"refresh",void 0);_.T([_.Yh("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hs.prototype,"activeChanged",null);
_.T([_.Yh("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hs.prototype,"tabsChanged",null);_.T([_.Yh("scrollAtTop"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hs.prototype,"scrollAtTopChanged",null);_.T([_.g(),_.N("design:type",Object)],Hs.prototype,"engagementPanels",void 0);
_.T([_.Yh("data.panels"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hs.prototype,"engagementPanelsChanged",null);_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hs.prototype,"onStampFinished",null);_.T([_.Le("yt-player-attached"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Element]),_.N("design:returntype")],Hs.prototype,"onPlayerAttached",null);
_.T([_.Le("yt-player-detached"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Element]),_.N("design:returntype")],Hs.prototype,"onPlayerDetached",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hs.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-browse"})],Hs);var O1N,mTC=function(){if(O1N!==void 0)return O1N;var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return O1N=X};var lX=function(){var X=_.a.apply(this,arguments)||this;X.currentPage=void 0;X.renderLoadingStateJobId=0;X.updatePageDataJobId=0;X.pageDisposeJobsets=new WeakMap;X.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"};X.shouldApplyLockupToWatchTransition=_.P("web_thumbnail_to_watch_transition");X.shouldApplySlideTransition=_.I0("web_page_transition_type")==="slide"||_.P("enable_plj_landing_page");X.shouldApplyLearningJourneyTransition=_.P("enable_plj_landing_page");X.TEST_ONLY=void 0;return X};
_.S(lX,_.a);_.R=lX.prototype;_.R.ready=function(){var X=_.jJ();X.addProvider({provide:_.gd,useValue:this});X.addProvider({provide:_.Q$U,useValue:this})};
_.R.created=function(){this.pagePool=new kJZ;this.contextSwitcher=new AZp};
_.R.attached=function(){_.QX(this.hostElement,"attached");var X=_.jJ().resolve(_.c$(_.o6));X&&(this.contextSwitcher.JSC$20167_networkService_=X);this.viewTransitionManager=_.jJ().resolve(_.Cz)};
_.R.getPageOffset=function(X){return X.getScrollTop()};
_.R.setPageOffset=function(X,H){try{X.setScrollTop(H)}catch(l){}};
_.R.setPageOffsetForNavigation=function(X,H){_.QX(this.hostElement,"yt-navigate-set-page-offset",{page:X,offset:H===void 0?0:H})};
_.R.pauseActiveContext=function(){var X=this.contextSwitcher;X.activeContext_&&X.activeContext_.pause()};
_.R.attachPage=function(X){var H,l=!_.P("pc_is_attached_ks")&&(X==null?void 0:(H=X.polymerController)==null?void 0:H.isAttached);if(!X.isAttached&&!l)try{_.mh(this.hostElement).appendChild(X)}catch(U){var b;_.x2(new _.qd("Error attaching page element for component",{origin:(b=this.currentPage)==null?void 0:b.is,component:X.is}))}};
_.R.setActivePage=function(X,H){var l=this,b=!1,U=function(){var K=l.isOnWatch(),w=l.currentPage;if(X)if(X!==l.currentPage){w&&(w.hidden=!0,w.active=!1,w.removeAttribute("role"));l.currentPage=X;var d,B=H!=null?H:_.LT((d=l.data)==null?void 0:d.endpoint);w&&_.QX(l.hostElement,"yt-page-type-changed",{oldPageType:w.is,newPageType:X.is,newPageSubtype:B});_.tF().dispatch(_.Of({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:X.is}));_.tF().dispatch(_.Of({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:B||""}));
X.hidden=!1;l.attachPage(X);X.active=!0;X.setAttribute("role","main");w&&l.setPageOffsetForNavigation(X,0);_.P("kevlar_remove_page_dom_on_switch")&&!K&&w&&_.mh(l.hostElement).removeChild(w)}else b=!0;else l.handleMissingDestinationPage(w)};
this.shouldRunBrowseTransition(this.currentPage,X)?$65(this.viewTransitionManager,U):this.shouldRunLearningJourneyTransition(this.currentPage,X)?Cde(this.viewTransitionManager,U):U();return b};
_.R.handleMissingDestinationPage=function(X){if(this.isColdLoadForUnknownPage(X))_.x2(new _.qd("Cold load for unknown page"));else{var H;X=new _.qd("Unable to set active page",X?X.is:"unknown origin",(H=this.data)==null?void 0:H.endpoint);_.n2(X)}};
_.R.isColdLoadForUnknownPage=function(X){return!X&&ZT(this.data)==="unknown"};
_.R.shouldRunBrowseTransition=function(X,H){return this.shouldApplySlideTransition&&(X==null?void 0:X.is)==="ytd-browse"&&(H==null?void 0:H.is)==="ytd-browse"&&X!==H};
_.R.shouldRunLearningJourneyTransition=function(X,H){return this.shouldApplyLearningJourneyTransition&&(X==null?void 0:X.is)==="ytd-browse"&&((H==null?void 0:H.is)==="ytd-watch-learning-journey"||(H==null?void 0:H.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.R.shouldRunWatchNextLoadedTransition=function(X,H){return this.viewTransitionManager&&X.is==="ytd-watch-flexy"&&H};
_.R.updatePageData=function(X){var H=this,l=this.data;this.updatePageDataJobId&&_.Ss.cancelJob(this.updatePageDataJobId);this.data=X;return new _.UA(function(b){var U=function(){X.filler?H.performDataUpdate(X,l):XGy(function(){H.performDataUpdate(X,l)});
var K=_.ng();_.kp(K,"cr")||K.processSignal("cr");b()};
X&&X.page==="watch"?H.updatePageDataJobId=_.Rs(_.Ss,U):U()})};
_.R.isDownloadsPage=function(X){var H,l;return(X==null?void 0:(H=X.endpoint)==null?void 0:(l=H.browseEndpoint)==null?void 0:l.browseId)==="FEdownloads"};
_.R.setPlayerSyncInterval=function(X){var H;return _.h(function(l){if(l.nextAddress==1)return l.yield(_.jJ().resolve(_.my),2);H=l.yieldResult;H.setUpPositionSyncInterval(X);_.m5(l)})};
_.R.performDataUpdate=function(X,H){_.P("kevlar_early_popup_close")||_.TP(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var l=!X.filler;l&&(_.sf("lps"),_.P("config_age_report_killswitch")||R4Z());var b=ZT(X),U,K=!1;if(_.P("kevlar_remove_page_dom_on_switch")){var w=H&&ZT(H);b===w&&(U=this.getCurrentPage())}U||(U=Zn(this.pagePool,b));l&&bFe(this.pagePool.elementPoolPopulator,b);l&&!this.renderLoadingStateJobId&&(K=this.setActivePage(U));if(U){w=b==="watch";var d=
b==="shorts",B=b==="learning_journey_watch";_.P("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(U);if(w||d||B)U.playerData=X.playerResponse;if(d){X.reelWatchSequenceResponse?U.reelWatchSequenceResponse=X.reelWatchSequenceResponse:U.cachedReelWatchSequenceResponse&&!U.reelWatchSequenceResponse&&(U.reelWatchSequenceResponse=U.cachedReelWatchSequenceResponse);X.reelWatchSequenceResponse&&(H==null?void 0:H.page)!=="shorts"&&(U.cachedReelWatchSequenceResponse=X.reelWatchSequenceResponse);
U.currentEndpoint=X.endpoint;var q;U.isPreviousPageShorts=!!(H==null?0:(q=H.endpoint)==null?0:q.reelWatchEndpoint)}q=this.isDownloadsPage(X);var u=this.isDownloadsPage(H);q&&!u?this.setPlayerSyncInterval(6E5):!q&&u&&this.setPlayerSyncInterval();_.P("block_all_player_prefetch_requests")||this.preparePrefetchRequest(X,U,l,w,d,B);wAZ(_.jJ().resolve(_.f9),H,X);if(_.P("enable_ai_companion")){var e;(e=_.jJ().resolve(_.c$(_.Bm)))==null||_.Q5Y(e,this.getPersistentPanelSurface(b))}_.g2(_.jJ().resolve(_.HS));
_.P("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(U);l?(l=typeof U.loadPage,l==="function"?(U.pageContext=XIp(this.contextSwitcher,U,U.data!==X.response),l=function(){U.loadPage(X.response)},this.shouldApplySlideTransition&&U.is==="ytd-browse"&&K&&(b==="learning"||this.isDifferentBrowseId(X==null?void 0:X.endpoint,H==null?void 0:H.endpoint))?$65(this.viewTransitionManager,l):this.shouldRunWatchNextLoadedTransition(U,K)?Rkp(this.viewTransitionManager,l):l()):_.k2(new _.qd("b/38014653 ",
[b,
U.is,U.nodeName,l,U.isAttached,H&&ZT(H),this.hostElement.children.length])),_.sf("pdl")):(U.hidden=!0,X.response.filler=!0,U.data=X.response,this.attachPage(U));_.QX(this.hostElement,"yt-page-data-updated",{pageType:b})}_.eh(_.Ss,function(){_.P("logging_avoid_blocking_during_navigation")&&_.HSk().transition("none");var y=qnN(),V=U;if(X){var p=vja(X),z=Oll(X),t;a:{if(X.playerResponse){var W=X.playerResponse,G;if((t=W.auxiliaryUi)==null?0:(G=t.messageRenderers)==null?0:G.upsellDialogRenderer){t=W.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(X.response&&(t=X.response,(W=t.overlay)==null?0:W.upsellDialogRenderer)){t=t.overlay.upsellDialogRenderer;break a}t=void 0}var r;var Q;G=(r=X.playerResponse)==null?void 0:(Q=r.auxiliaryUi)==null?void 0:Q.messageRenderers;r=(G==null?void 0:G.enforcementMessageViewModel)||(G==null?void 0:G.bkaEnforcementMessageViewModel);r=(r==null?void 0:r.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?r:void 0;var v;a:{if(X.response&&(Q=X.response,(v=Q.overlay)==null?0:v.commandWrapperPromoRenderer)){v=
Q.overlay.commandWrapperPromoRenderer;break a}v=void 0}B65(y,p,z,t,r,v,V)}})};
_.R.preparePrefetchRequest=function(X,H,l,b,U,K){var w,d,B,q,u,e,y,V,p,z,t,W,G,r,Q;return _.h(function(v){if(v.nextAddress==1)return!l||!(b||U||K)||_.P("kevlar_disable_background_prefetch")&&_.ZR(oEN)()===0?v.return():(w=_.GE(H))?v.yield(w.getPlayerPromise(),2):v.return();d=v.yieldResult;B=_.jJ().resolve(_.c$(_.o6));if(!B)return v.return();if(U)return q=_.QU(_.JO),uny(q,(u=X.endpoint)==null?void 0:u.reelWatchEndpoint,H.reelWatchSequenceResponse,d,B),v.return();V=(e=X.response)==null?void 0:(y=e.responseContext)==
null?void 0:y.webResponseContextExtensionData;if(!V)return v.return();G=(p=X.response)==null?void 0:(z=p.contents)==null?void 0:(t=z.twoColumnWatchNextResults)==null?void 0:(W=t.autoplay)==null?void 0:W.autoplay;r=_.jJ().resolve(_.S3);Q=_.QU(_.JO);eMY(Q,V,d,B,r,G);_.m5(v)})};
_.R.movePlayerToWatch=function(X){var H=this,l,b;return _.h(function(U){l=Zn(H.pagePool,"watch");b=l.getPlayerContainer();X.appendTo(b);_.m5(U)})};
_.R.movePlayerToShorts=function(X){var H=this,l,b,U;return _.h(function(K){l=Zn(H.pagePool,"shorts");b=l.getPlayerContainer();(U=X)==null||U.appendTo(b,void 0,!0);_.m5(K)})};
_.R.getPlayerFromWatch=function(){var X=Zn(this.pagePool,"watch");return _.GE(X)};
_.R.getPlayerFromShorts=function(){var X=Zn(this.pagePool,"shorts");return _.GE(X)};
_.R.startLoadingWatch=function(){var X=this,H=Zn(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Ss.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.P("web_watch_transition_enable_start_loading_watch_callsite")?KAZ(this.viewTransitionManager,function(){X.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(H,"watch");
if(_.P("enable_ai_companion")){var l;(l=_.jJ().resolve(_.c$(_.Bm)))==null||_.Q5Y(l,this.getPersistentPanelSurface("watch"))}};
_.R.startLoadingShorts=function(){var X=Zn(this.pagePool,"shorts");this.setActivePage(X,"shorts")};
_.R.startLoadingLearningJourney=function(){var X=Zn(this.pagePool,"learning_journey_watch");this.setActivePage(X,"learning_journey_watch")};
_.R.getCurrentPage=function(){return this.currentPage};
_.R.getDestinationPageType=function(){return this.destinationPageType};
_.R.getCurrentData=function(){return this.data};
_.R.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.R.isOnShorts=function(){var X;return((X=this.currentPage)==null?void 0:X.is)==="ytd-shorts"};
_.R.isWatchPage=function(X){return!!X&&(X.is==="ytd-watch-flexy"||X.is==="ytd-watch-fixie"||X.is==="ytd-watch-grid")};
_.R.preparePage=function(X,H){var l=this,b=function(){var K=l.pagePool.preparePage(X,l.currentPage,H);K&&l.attachPage(K)},U=function(K){_.Dq(K,H);
_.x2(K)};
try{b()}catch(K){U(K)}};
_.R.lazyPrepareCriticalPages=function(X,H){X=_.LT(H)||X;this.maybePrepareWatchPage(X)};
_.R.maybePrepareWatchPage=function(X){X==="watch"||X==="learning_journey_watch"&&_.P("web_watch_learning_journey_disable_lazy_pages")||_.eh(_.Ss,this.preparePage.bind(this,"watch"))};
_.R.renderPageLoadingState=function(X,H){this.preparePage(X,H);var l=Zn(this.pagePool,X);l.loadingData&&(l.loadingData.endpoint=H);l.loading=!0;this.setActivePage(l,X);X!=="watch"&&X!=="learning_journey_watch"||_.QX(this.hostElement,"yt-guide-close")};
_.R.prepareForNavigation=function(X,H){var l=this;if(this.currentPage&&this.data){var b=_.LT(H)||X;this.destinationPageType=b;ZT(this.data)==b&&_.QX(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((X==="watch"||X==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Ss.cancelJob(this.renderLoadingStateJobId);_.jJ().resolve(_.f9).deactivate(H);_.oJ(_.Ss,function(){var K=l.viewTransitionManager,w=l.currentPage;
if(K.isLockupToWatchTransitionEnabled&&K.isLockupThumbnailRegistrationEnabled&&w)if(K.registeredLockupThumbnail)K.lockupThumbnailRegisteredFromWatchEndpoint&&_.x2(new _.qd("Lockup thumbnail already registered from watch endpoint."));else{a:{var d=_.f(H,_.ku);if(d==null?0:d.videoId){var B="yt-lockup-view-model ."+_.MXm(d.videoId)+" yt-thumbnail-view-model";w=w.querySelectorAll(B);if(w.length===1){d=w[0];break a}w.length>1?_.x2(new _.qd("Multiple LockupViewModel thumbnails found for videoId: "+d.videoId+
". Selector: "+B)):_.P("web_thumbnail_to_watch_transition_debug")&&_.x2(new _.qd("No LockupViewModel thumbnail found for videoId: "+d.videoId+". Selector: "+B))}d=void 0}d&&(K.registeredLockupThumbnail=d,K.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.nVY(K,d))}});
var U=this.data;this.renderLoadingStateJobId=_.oJ(_.Ss,function(){KAZ(l.viewTransitionManager,function(){if(l.data!=U){var K=Zn(l.pagePool,X);l.setActivePage(K)}else l.renderPageLoadingState(X,H);l.renderLoadingStateJobId=0})},150)}};
_.R.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var X=new _.EK(1);this.currentPage.pageDisposeJobs.forEach(function(H){_.gh(X,H)});
this.pageDisposeJobsets.set(this.currentPage,X)}};
_.R.flushPageDisposeJobset=function(X){var H=this.pageDisposeJobsets.get(X);H&&(H.flushJobs(),this.pageDisposeJobsets.delete(X))};
_.R.onYtStopOldPlayer=function(X,H){H=H===void 0?!1:H;var l,b=_.l0("kevlar_new_stop_old_player_logic_pages");if(_.P("kevlar_check_current_page_on_stop_old_player")&&(b.length===0||this.currentPage&&b.includes(this.currentPage.is)))if(this.data&&(l=ZT(this.data)),ZT(X)===l&&this.currentPage&&ZT(this.currentPage.data)!==l)var U=_.GE(this.currentPage);else l=ZT(this.data),U=Zn(this.pagePool,l),U=_.GE(U);else this.data&&(l=ZT(this.data),U=Zn(this.pagePool,l),U=_.GE(U));if(U){b=ZT(X);var K=Zn(this.pagePool,
b);K=_.GE(K);if(U==K)H&&!_.P("kevlar_disable_preemptive_player_reset")&&U.resetForNewPlayback();else if(H=l==="watch"&&b!=="watch",!H||b==="shorts"||_.v5v()&&!wfU(this.data,X))X=_.jJ().resolve(_.f9),H&&X.isMiniplayerActive()&&X.pipController.getWindow()||U.stop()}};
_.R.isDifferentBrowseId=function(X,H){X=_.f(X,_.YM);H=_.f(H,_.YM);return(X==null?void 0:X.browseId)!==(H==null?void 0:H.browseId)};
_.R.getPersistentPanelSurface=function(X){switch(X){case "watch":return"WATCH";default:return"APP"}};
_.ja.Object.defineProperties(lX,{template:{configurable:!0,enumerable:!0,get:function(){return mTC()}}});
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],lX.prototype,"ytActionHandlerBehavior",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-page-manager"})],lX);_.O(lX,"ytd-page-manager",function(){return mTC()},{mode:_.Qc("kevlar_poly_si_batch_j081")?1:2});var QNC;var Tax;var oQ=function(){var X=_.a.apply(this,arguments)||this;X.hasChipBar=!1;return X};
_.S(oQ,_.a);oQ.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}}};
oQ.prototype.computeHasChipBar=function(X){return!(X==null||!X.chipBar)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],oQ.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.N("design:type",Object)],oQ.prototype,"hasChipBar",void 0);_.T([_.sq({is:"ytd-search-header-renderer",disableElementRegistration:!0})],oQ);
_.O(oQ,"ytd-search-header-renderer",function(){if(Tax!==void 0)return Tax;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Tax=X},{mode:1});var NaZ;var bX=function(){return _.a.apply(this,arguments)||this};
_.S(bX,_.a);bX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
bX.prototype.computeBlueBottomLink=function(X){return X};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],bX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],bX.prototype,"data",void 0);_.T([_.g({computed:"computeIcon_(data.bottomIcon)"}),_.N("design:type",String)],bX.prototype,"bottomIcon",void 0);
_.T([_.g({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.N("design:type",Boolean)],bX.prototype,"enableBlueBottomLink",void 0);_.T([_.sq({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],bX);
_.O(bX,"ytd-web-answer-renderer",function(){if(NaZ!==void 0)return NaZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return NaZ=X},{mode:2});var cMA;var UP=function(){return _.a.apply(this,arguments)||this};
_.S(UP,_.a);UP.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],UP.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-page-continuation"})],UP);
_.O(UP,"ytd-page-continuation",function(){if(cMA!==void 0)return cMA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return cMA=X},{mode:1});var jNe;var rMA;var JMU;var L8U=function(){return _.a.apply(this,arguments)||this};
_.S(L8U,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],L8U.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],L8U.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],L8U);
_.O(L8U,"ytd-watch-card-one-vs-one-event",function(){if(JMU!==void 0)return JMU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return JMU=X},{mode:1});var YNp=function(){return _.a.apply(this,arguments)||this};
_.S(YNp,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],YNp.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],YNp.prototype,"data",void 0);_.T([_.sq({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],YNp);
_.O(YNp,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(rMA!==void 0)return rMA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return rMA=X},{mode:1});var I4$;var AMx=function(){return _.a.apply(this,arguments)||this};
_.S(AMx,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],AMx.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],AMx.prototype,"data",void 0);_.T([_.sq({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],AMx);
_.O(AMx,"ytd-banner-and-box-hero-image-renderer",function(){if(I4$!==void 0)return I4$;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return I4$=X},{mode:1});var XY5;var $c=function(){var X=_.a.apply(this,arguments)||this;X.modern=_.P("web_modern_buttons");return X};
_.S($c,_.a);$c.prototype.computeIcon=function(){var X,H,l=(X=this.data)==null?void 0:(H=X.icon)==null?void 0:H.iconType;if(l)return _.jL(l)};
$c.prototype.computeButtonShape=function(){var X;return{buttonText:_.D8((X=this.data)==null?void 0:X.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.ja.Object.defineProperties($c.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$c.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],$c.prototype,"modern",void 0);_.T([_.g({type:_.P("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.x("data.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],$c.prototype,"buttonColor",null);
_.T([_.sq({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],$c);
_.O($c,"ytd-call-to-action-button-renderer",function(){if(XY5!==void 0)return XY5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return XY5=X},{mode:1});var Ho$;var Km=function(){return _.a.apply(this,arguments)||this};
_.S(Km,_.a);Km.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.mh(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.G0(this.data.leftThumbnail.thumbnails,216)+")")};
Km.prototype.onLeftThumbnailChanged=Km.prototype.onLeftThumbnailChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Km.prototype,"data",void 0);_.T([_.Yh("data.leftThumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Km.prototype,"onLeftThumbnailChanged",null);_.T([_.sq({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Km);
_.O(Km,"ytd-collage-hero-image-renderer",function(){if(Ho$!==void 0)return Ho$;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Ho$=X},{mode:1});var lj5;var RQ=function(){return _.a.apply(this,arguments)||this};
_.S(RQ,_.a);RQ.prototype.computeStyle=function(X){return X};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],RQ.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],RQ.prototype,"componentStyle",void 0);_.T([_.sq({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],RQ);
_.O(RQ,"ytd-single-hero-image-renderer",function(){if(lj5!==void 0)return lj5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return lj5=X},{mode:1});var oAd;var Cm=function(){return _.a.apply(this,arguments)||this};
_.S(Cm,_.a);_.R=Cm.prototype;
_.R.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:_.P("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.R.computeSubtitle=function(X){if(this.data){var H;if(this.data.upcomingEventData){X=_.D8(X.subtitle);var l=Number(this.data.upcomingEventData.startTime);isNaN(l)||(H=_.xM(_.CS(X,l)))}else H=X.subtitle;return H}};
_.R.onHeroTap=function(X){X.preventDefault();var H=this.data&&this.data.navigationEndpoint;!H||!_.WS(_.t2(X),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.WS(_.t2(X),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.P("kevlar_watchcard_hero_video_renderer_killswitch")?_.QX(this.hostElement,"yt-navigate",{navigationEndpoint:H}):this.ytComponentBehavior.resolveCommand(H))};
_.R.computeHeroTabIndex=function(X){return X&&X.simpleText?-1:0};
_.R.computeHeroRole=function(X){return X&&X.simpleText?"":"link"};
_.R.computeIsReminderButtonPresent=function(X){return!(!X||!X.reminderButton)};
_.R.computeHideBottomItems=function(X){return!(this.computeIsReminderButtonPresent(X)||X.subtitle)};
_.R.dataChanged=function(){var X=this.get("data.buttons.buttonRenderer.serviceEndpoint"),H;((H=_.f(X==null?void 0:X.commandMetadata,_.Ub))==null?0:H.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(X)};
Cm.prototype.dataChanged=Cm.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Cm.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Cm.prototype,"data",void 0);
_.T([_.g({computed:"computeSubtitle(data)"}),_.N("design:type",String)],Cm.prototype,"subtitle",void 0);_.T([_.g({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Cm.prototype,"isReminderButtonPresent",void 0);_.T([_.g({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Cm.prototype,"hideBottomItems",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cm.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Cm);
_.O(Cm,"ytd-watch-card-hero-video-renderer",function(){if(oAd!==void 0)return oAd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return oAd=X},{mode:1});var bo5;var w0=function(){return _.a.apply(this,arguments)||this};
_.S(w0,_.a);_.R=w0.prototype;_.R.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"}}}};
_.R.computeTitleBadges=function(X){return X?[X]:[]};
_.R.computeHeaderStyle=function(X){return X?X.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.R.computeAvatarAriaLabel=function(X){if(X){var H,l,b,U;return(U=(H=X.avatar)==null?void 0:(l=H.accessibility)==null?void 0:(b=l.accessibilityData)==null?void 0:b.label)!=null?U:_.D8(X==null?void 0:X.title)}};
_.R.computeAvatarHeight=function(X){return X==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.R.computeBadgeRowClass=function(X){return(X==null?0:X[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],w0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],w0.prototype,"data",void 0);_.T([_.g({computed:"computeTitleBadges(data.titleBadge)"}),_.N("design:type",Array)],w0.prototype,"titleBadges",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.N("design:type",String)],w0.prototype,"headerStyle",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.N("design:type",String)],w0.prototype,"badgeRowClass",void 0);_.T([_.sq({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],w0);
_.O(w0,"ytd-watch-card-rich-header-renderer",function(){if(bo5!==void 0)return bo5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return bo5=X},{mode:1});var U1Z;var $1C;var d0=function(){return _.a.apply(this,arguments)||this};
_.S(d0,_.a);d0.prototype.onMetadataTap=function(X){var H=this.data&&this.data.navigationEndpoint;H&&!_.WS(_.t2(X),this.hostElement,["A".toString()])&&_.QX(this.hostElement,"yt-navigate",{endpoint:H})};
_.ja.Object.defineProperties(d0.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 X;if(this.data.upcomingEventData){var H=_.D8(this.data.subtitle),l=Number(this.data.upcomingEventData.startTime);isNaN(l)||(X=_.xM(_.CS(H,l)))}else X=this.data.subtitle;return X}}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],d0.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.style"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],d0.prototype,"isCondensed",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],d0.prototype,"subtitle",null);
_.T([_.sq({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],d0);
_.O(d0,"ytd-watch-card-compact-video-renderer",function(){if($1C!==void 0)return $1C;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return $1C=X},{mode:1});var KH$;var RwZ=function(){return _.a.apply(this,arguments)||this};
_.S(RwZ,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],RwZ.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],RwZ.prototype,"data",void 0);_.T([_.sq({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],RwZ);
_.O(RwZ,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(KH$!==void 0)return KH$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return KH$=X},{mode:1});var hA=function(){return _.a.apply(this,arguments)||this};
_.S(hA,_.a);hA.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],hA.prototype,"ytRendererStamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hA.prototype,"data",void 0);_.T([_.sq({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],hA);
_.O(hA,"ytd-vertical-watch-card-list-renderer",function(){if(U1Z!==void 0)return U1Z;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return U1Z=X},{mode:1});var CGZ;var Fo=function(){var X=_.a.apply(this,arguments)||this;X.ariaExpanded="false";return X};
_.S(Fo,_.a);_.R=Fo.prototype;_.R.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.R.dataChanged=function(){var X;this.currentSeasonIndex=((X=this.data)==null?void 0:X.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.R.computeEpisodesInfo=function(X,H,l){if(X!==void 0&&H.length===X.length)return X[l]};
_.R.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.R.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.R.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.R.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.R.getUppercaseSimpleString=function(X){return this.ytRendererBehavior.getSimpleString(X).toUpperCase()};
_.R.updateCurrentSeasonIndexFromBinding=function(X){this.currentSeasonIndex=X.detail.value};
Fo.prototype.onIronOverlayClosed=Fo.prototype.onIronOverlayClosed;Fo.prototype.currentSeasonIndexChanged=Fo.prototype.currentSeasonIndexChanged;Fo.prototype.dataChanged=Fo.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Fo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Fo.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",String)],Fo.prototype,"label",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],Fo.prototype,"currentSeasonIndex",void 0);_.T([_.g({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.N("design:type",Object)],Fo.prototype,"episodesInfo",void 0);_.T([_.g({value:"false"}),_.N("design:type",Object)],Fo.prototype,"ariaExpanded",void 0);_.T([_.A2("#lists"),_.N("design:type",Object)],Fo.prototype,"lists",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fo.prototype,"dataChanged",null);_.T([_.oi("currentSeasonIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fo.prototype,"currentSeasonIndexChanged",null);_.T([_.Le("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Fo.prototype,"onIronOverlayClosed",null);
_.T([_.sq({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Fo);
_.O(Fo,"ytd-watch-card-section-dropdown-renderer",function(){if(CGZ!==void 0)return CGZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return CGZ=X},{mode:1});var wYp;var Bs=function(){var X=_.a.apply(this,arguments)||this;X.isSearch=!1;return X};
_.S(Bs,_.a);Bs.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Bs.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Bs.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Bs.prototype,"isSearch",void 0);_.T([_.sq({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Bs);
_.O(Bs,"ytd-watch-card-section-sequence-renderer",function(){if(wYp!==void 0)return wYp;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
return wYp=X},{mode:1});var d1U=_.Z(function(X){return _.F("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.F(_.l4,{data:function(){return X.data().ctaButton}},{buttonViewModel:_.Qk}),_.F(_.Sj,{text:function(){return X.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"xk");
d1U.idomCompat=!0;_.gC(d1U,"ytd-button-banner-view-model",{props:{data:_.zh}});var q_=function(){var X=_.a.apply(this,arguments)||this;X.isSearch=!1;return X};
_.S(q_,_.a);
q_.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],q_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],q_.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],q_.prototype,"rounded",void 0);_.T([_.g(),_.N("design:type",Object)],q_.prototype,"isSearch",void 0);
_.T([_.sq({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],q_);
_.O(q_,"ytd-universal-watch-card-renderer",function(){if(jNe!==void 0)return jNe;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return jNe=X},{mode:1});var hwa;_.gC(_.Z(function(X){var H=X.data;var l;X=!((l=_.jJ().resolve(_.c$(_.b4)))==null||!l());l={};return _.F("overview-message-view-model",{class:_.Qr("ytwOverviewMessageViewModelHost",(l.ytwOverviewMessageViewModelDarkBackground=X,l.ytwOverviewMessageViewModelLightBackground=!X,l))},_.F(_.M,{cond:function(){return H().primaryImage},
then:function(b){return _.F(_.Dp,{data:b,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.F(_.M,{cond:function(){return H().primaryText},
then:function(){return _.F("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.F(_.Sj,{text:function(){return H().primaryText}}))}}),_.F(_.M,{cond:function(){return H().secondaryText},
then:function(){return _.F("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.F(_.Sj,{text:function(){return H().secondaryText}}))}}))},"yk"),"overview-message-view-model",{props:{data:_.zh}});_.gC(_.Xz5,"ytd-overview-answer-view-model",{props:{data:_.zh}});var sP=function(){return _.a.apply(this,arguments)||this};
_.S(sP,_.a);sP.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"}}}};
sP.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.EO),_.N("design:type",Object)],sP.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],sP.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],sP.prototype,"isSearch",void 0);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],sP);
_.O(sP,"ytd-secondary-search-container-renderer",function(){if(hwa!==void 0)return hwa;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
return hwa=X},{mode:1});var FHa;var M_=function(){var X=_.a.apply(this,arguments)||this;X.renderSecondarySearchContainer=!1;X.isSearch=!1;return X};
_.S(M_,_.a);_.R=M_.prototype;_.R.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"}}}};
_.R.created=function(){var X=this;this.boundStampSecondarySearchContainerIfFits=function(){X.stampSecondarySearchContainerIfFits()};
_.Et("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.R.computeIsSearchFrictionPage=function(X){var H,l,b,U,K;X=X==null?void 0:(H=X.primaryContents)==null?void 0:(l=H.sectionListRenderer)==null?void 0:(b=l.contents)==null?void 0:(U=b[0])==null?void 0:(K=U.itemSectionRenderer)==null?void 0:K.contents;if(!X)return!1;H=_.C(X);for(l=H.next();!l.done;l=H.next())if(b=void 0,(b=l.value)==null?0:b.searchFrictionViewModel)return!0;return!1};
_.R.computeShowSecondaryColumn=function(X,H){return!!(H&&H.secondaryContents&&X)};
_.R.activeChanged=function(){var X=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.J2(this,this.debounceStampSecondarySearchContainerIfFits)),_.fc(function(){X.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.J2(this,this.debounceStampSecondarySearchContainerIfFits))};
_.R.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.R.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.R.debounceStampSecondarySearchContainerIfFits=function(){_.pc(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.R.onRetrieveLocation=function(X,H){H.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);X.stopPropagation()};
_.R.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
M_.prototype.dataChanged=M_.prototype.dataChanged;M_.prototype.onRetrieveLocation=M_.prototype.onRetrieveLocation;M_.prototype.persistentGuideChanged=M_.prototype.persistentGuideChanged;M_.prototype.activeChanged=M_.prototype.activeChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],M_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],M_.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],M_.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.k(_.$s),_.N("design:type",Object)],M_.prototype,"ironResizableBehavior",void 0);_.T([_.g(),_.N("design:type",Boolean)],M_.prototype,"active",void 0);_.T([_.g(),_.N("design:type",Object)],M_.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.P("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],M_.prototype,"useBiggerThumbs",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.I0("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],M_.prototype,"biggerThumbsStyle",void 0);_.T([_.g(),_.N("design:type",Object)],M_.prototype,"renderSecondarySearchContainer",void 0);_.T([_.g({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.N("design:type",Boolean)],M_.prototype,"showSecondaryColumn",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.N("design:type",Boolean)],M_.prototype,"isSearchFrictionPage",void 0);
_.T([_.g(),_.N("design:type",Object)],M_.prototype,"isSearch",void 0);_.T([_.Yh("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M_.prototype,"activeChanged",null);_.T([_.Yh("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M_.prototype,"persistentGuideChanged",null);
_.T([_.Le("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],M_.prototype,"onRetrieveLocation",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M_.prototype,"dataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],M_);
_.O(M_,"ytd-two-column-search-results-renderer",function(){if(FHa!==void 0)return FHa;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return FHa=X},{mode:1});var uX=function(){var X=_.a.apply(this,arguments)||this;X.hasSearchHeader=!1;X.hasSecondaryContent=!1;X.hasBiggerThumbs=_.P("enable_desktop_search_bigger_thumbs");X.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return X};
_.S(uX,_.a);_.R=uX.prototype;_.R.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:hz(["aa","eocs"])}}};
_.R.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.R.loadPage_=function(X){this.initCsi();X&&(this.data=X,_.Et("REFINEMENTS_TUPLE",["FromSearchResponse",X.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Qi(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.R.initCsi=function(){M7d("results",["ol","cpt"])};
_.R.updateTitle=function(){var X=_.Hb(window.location.href,"q");X||(X=_.Hb(window.location.href,"search_query"));_.QX(this.hostElement,"yt-update-title",X||"")};
_.R.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.R.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.P("web_srp_data_changed_terminate_imp_killswitch")||_.TP(this.hostElement,"yt-terminate-video-preview-action")};
_.R.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.R.computeHasSearchHeader=function(X){var H;X=X==null?void 0:(H=X.header)==null?void 0:H.searchHeaderRenderer;return!!X&&(!!X.searchFilterButton||!!X.chipBar)};
_.R.computeHasSecondaryContent=function(X){var H,l;return!!(X==null?0:(H=X.contents)==null?0:(l=H.twoColumnSearchResultsRenderer)==null?0:l.secondaryContents)};
_.ja.Object.defineProperties(uX,{template:{configurable:!0,enumerable:!0,get:function(){if(QNC===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);QNC=X}X=QNC;return X}}});
uX.prototype.onReloadContinuationFinish=uX.prototype.onReloadContinuationFinish;uX.prototype.dataChanged=uX.prototype.dataChanged;_.T([_.k(Hw.YtPageBehavior),_.N("design:type",Object)],uX.prototype,"ytPageBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],uX.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.EO),_.N("design:type",Object)],uX.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],uX.prototype,"data",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],uX.prototype,"monitorScroll",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],uX.prototype,"hasSearchHeader",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],uX.prototype,"hasSecondaryContent",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],uX.prototype,"hasBiggerThumbs",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uX.prototype,"dataChanged",null);
_.T([_.Le("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uX.prototype,"onReloadContinuationFinish",null);_.T([_.sq({is:"ytd-search"})],uX);var BiY;var qpC;var s9C;var e$=function(){var X=_.a.apply(this,arguments)||this;X.ctaVisualElement=null;X.currentCsn=null;return X};
_.S(e$,_.a);_.R=e$.prototype;_.R.onDataChanged=function(){this.maybeLogShows()};
_.R.computeButtonShape=function(){var X=this;if(this.data)return{buttonText:_.D8(this.data.text),state:"active",onTap:function(){X.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.R.maybeCreateCtaVe=function(){var X;if((X=this.data)!=null&&X.badgeInteractionLogging){var H;if(X=(H=this.data.badgeInteractionLogging)==null?void 0:H.trackingParams)this.ctaVisualElement=_.$l(X)}};
_.R.maybeLogClicks=function(){this.currentCsn=_.Bi(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.xB(this.currentCsn,this.ctaVisualElement)};
_.R.maybeLogShows=function(){this.currentCsn=_.Bi(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.nA(this.currentCsn,[this.ctaVisualElement])};
_.R.onTap=function(){var X;if((X=this.data)!=null&&X.onClickCommand){var H;this.ytComponentBehavior.resolveCommand((H=this.data)==null?void 0:H.onClickCommand);this.maybeLogClicks()}};
e$.prototype.onDataChanged=e$.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],e$.prototype,"ytComponentBehavior",void 0);_.T([_.g({}),_.N("design:type",Object)],e$.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e$.prototype,"onDataChanged",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],e$);
_.O(e$,"ytd-shopping-overlay-badge-renderer",function(){if(s9C!==void 0)return s9C;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return s9C=X},{mode:1});var MWa;var ym=function(){return _.a.apply(this,arguments)||this};
_.S(ym,_.a);ym.prototype.computeShouldButtonBeVertical=function(X,H){return X||H};
ym.prototype.onYtServiceRequestSent=function(X,H){(X=_.f(H.endpoint,_.wg))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Us("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:X.status})):this.handleLikeEndpoint(X))};
ym.prototype.computelikeStatusEntityKey=function(X){return X==null?void 0:X.likeStatusEntityKey};
ym.prototype.handleLikeEndpoint=function(X){X.status==="LIKE"?this.JSC$22057_ytdDislikeToggleButtonRenderer.toggle(!1):X.status==="DISLIKE"?this.JSC$22057_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$22057_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$22057_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.ja.Object.defineProperties(ym.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var X;return pCZ(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(X=this.likeStatusEntity)==null?void 0:X.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var X;if(this.data&&((X=this.data)==null||!X.hideDislikeButton)){var H;return pCZ(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(H=this.likeStatusEntity)==null?void 0:H.likeStatus)}}}});
ym.prototype.onYtServiceRequestSent=ym.prototype.onYtServiceRequestSent;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],ym.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ym.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],ym.prototype,"vertical",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],ym.prototype,"textTransform",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],ym.prototype,"useShortsIcon",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],ym.prototype,"underIconLabel",void 0);_.T([_.g({value:"left"}),_.N("design:type",String)],ym.prototype,"buttonTooltipPosition",void 0);_.T([_.g(),_.N("design:type",Object)],ym.prototype,"overrides",void 0);
_.T([_.A2("#like-button"),_.N("design:type",Object)],ym.prototype,"JSC$22057_ytdLikeToggleButtonRenderer",void 0);_.T([_.A2("#dislike-button"),_.N("design:type",Object)],ym.prototype,"JSC$22057_ytdDislikeToggleButtonRenderer",void 0);_.T([_.x("data","likeStatusEntity.likeStatus","useShortsIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],ym.prototype,"likeButton",null);
_.T([_.x("data","likeStatusEntity.likeStatus","useShortsIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],ym.prototype,"dislikeButton",null);_.T([_.g({computed:"computelikeStatusEntityKey(data)"}),_.N("design:type",String)],ym.prototype,"likeStatusEntityKey",void 0);_.T([_.g({selectorArgs:["likeStatusEntityKey"],selector:_.Mn}),_.N("design:type",Object)],ym.prototype,"likeStatusEntity",void 0);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],ym.prototype,"onYtServiceRequestSent",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],ym);
_.mr()(ym,"ytd-like-button-renderer",function(){if(MWa===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);MWa=X}X=MWa;return X},{mode:1});_.gC(_.VJZ,"reel-sound-metadata-view-model",{props:{data:_.ta,overlayDensity:_.ta}});_.gC(_.may,"player-disclosure-view-model",{props:{data:_.zh,extractOverlay:_.zh}});_.gC(_.t$Y,"pivot-button-view-model",{props:{data:_.ta,className:_.ta}});_.gC(_.Wvt,"reel-action-bar-view-model",{props:{data:_.zh,buttonShapeOverrideables:_.zh}});_.gC(_.PkC,"yt-reel-metapanel-view-model",{props:{data:_.zh,overlayDensity:_.zh,extractOverlay:_.zh}});var uyZ=_.Z(function(X){var H=X.children;var l=X.region;X=_.C(_.FU(void 0,void 0,"flxBBc"));var b=X.next().value,U=X.next().value;X=_.C(_.FU("0px",void 0,"IAR7k"));var K=X.next().value,w=X.next().value;X=_.C(_.FU("0px",void 0,"QV4iWb"));var d=X.next().value,B=X.next().value;X=_.C(_.FU(0,void 0,"Q2oK6b"));var q=X.next().value,u=X.next().value;X=_.C(_.FU(0,void 0,"hYKowe"));var e=X.next().value,y=X.next().value,V=function(){var r=b();if(r){var Q;if(((Q=_.rd())==null?void 0:Q.getPlayerState())!==-1){r.style.display=
"inherit";var v;(v=_.rd())==null||v.removeEventListener("onStateChange",V)}else r.style.display="none";z()}},p=function(){var r;
return(r=_.aq())==null?void 0:r.querySelector("video")},z=function(){var r=p();
if(r){u(r.getBoundingClientRect().width);y(r.getBoundingClientRect().height);var Q;w((r==null?void 0:(Q=r.style)==null?void 0:Q.left)||"0px");var v;B((r==null?void 0:(v=r.style)==null?void 0:v.top)||"0px")}};
_.Wg(function(){var r=b();if(r){var Q,v,J;if(((Q=_.rd())==null?void 0:Q.getPlayerState())===-1&&Math.round(((J=(v=_.rd())==null?void 0:v.getVideoAspectRatio())!=null?J:0)*100)!==Math.round(q()/e()*100)){r.style.display="none";var Y,Uy;y(q()/((Uy=(Y=_.rd())==null?void 0:Y.getVideoAspectRatio())!=null?Uy:1))}}},"N29KDe");
var t=function(){z()},W;
_.xy(function(){z();var r;if(!(l==null?0:(r=l())==null?0:r.transformationMatrix))throw Error("em");var Q;(Q=_.rd())==null||Q.addEventListener("onStateChange",V);if(window.ResizeObserver){if(r=p())W=new ResizeObserver(t),W.observe(r)}else window.addEventListener("resize",z);_.E2(function(){var v;(v=_.rd())==null||v.removeEventListener("onStateChange",V);W?W.disconnect():window.removeEventListener("resize",z)})});
var G=function(){var r,Q,v=(Q=l==null?void 0:(r=l())==null?void 0:r.transformationMatrix)!=null?Q:[];r=q();Q=e();for(var J=[],Y=0,Uy=-1;Y<v.length;Y++)Y%3===0&&(Uy++,J[Uy]=[]),J[Uy].push(v[Y]);v=new hU(J);J=new hU([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);J=v.multiply(J);v=new hU([[0,0],[0,0],[0,0],[0,0]]);for(Y=0;Y<J.getSize().width;Y++){Uy=Ks(J,0,Y);var Cy=Ks(J,1,Y);if(Uy===null||Cy===null)throw Error("dm`"+(Y+1).toString());oX5(v,Y,0,Uy*r);oX5(v,Y,1,Cy*Q)}r=Ks(v,0,0);Y=Ks(v,1,0);Q=Ks(v,0,1);Uy=Ks(v,1,1);
if(r===null||Y===null||Q===null||Uy===null)throw Error("bm");J=SCy(r,Y,Q,Uy);Cy=Ks(v,3,0);v=Ks(v,3,1);if(Cy===null||v===null)throw Error("cm");v=SCy(r,Cy,Q,v);Uy=(Number((Uy*-1).toFixed(2))-Number((Q*-1).toFixed(2)))/(Number(Y.toFixed(2))-Number(r.toFixed(2)));Cy=Math.atan(Uy)*180/Math.PI;Y=Uy===Number.POSITIVE_INFINITY?-90:Uy===Number.NEGATIVE_INFINITY?90:Object.is(Uy,-0)?180:Uy===0?0:Uy>0?Cy*-1:r<Y?Cy*-1:Math.abs(Cy)+180;return"left:calc("+r+"px + "+K()+"); top:calc("+(Q+"px + "+d()+"); width:")+
(J+"px; height:")+(v+"px; transform:rotate(")+(Y+"deg);\n        --sticker-width:"+J+";")};
return _.F(_.KSL,{root:"#sticker-layer"},function(){return _.F("yt-overlay-sticker",{el:_.xl(U),style:G,class:"ytOverlayStickerHost"},H)})},"Bk");var ewd=_.Z(function(X){function H(){var V,p,z,t,W=(p=_.f((V=B())==null?void 0:V.command,_.HFz))==null?void 0:(z=p.item)==null?void 0:(t=z.notificationTextRenderer)==null?void 0:t.successResponseText;if(W)V=_.gR(W),_.TP(b.value,"yt-open-popup-action",[V,b.value]);else if(q())ng5(q(),b.value);else{var G;ng5((G=B())==null?void 0:G.command,b.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var l=X.data;var b=_.SJ("svg"),U=_.C(_.FU(!1,void 0,"e9onLe"));X=U.next().value;var K=U.next().value,w=_.C(_.FU(!1,void 0,"ptnIQd"));U=w.next().value;var d=w.next().value,B=function(){var V;return _.f((V=l())==null?void 0:V.popUp,alx)},q=function(){var V;
return(V=l())==null?void 0:V.command},u=function(){return _.f(q(),_.$$)!==void 0};
w=_.Nq(function(){H();return!1});
var e={},y={};return _.F("svg",{"on:mouseover":_.Nq(function(){u()&&K(!0);d(!0);return!1}),
"on:mouseout":_.Nq(function(){K(!1);d(!1);return!1}),
"on:keydown":_.Nq(function(V){V.key==="Enter"&&H();return!1}),
"on:focus":_.Nq(function(){u()&&K(!0);return!1}),
"on:blur":_.Nq(function(){u()&&K(!1);return!1}),
el:b,tabindex:0,"aria-label":function(){var V;return(V=l())==null?void 0:V.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Qr("ytPlayerOverlayInteractionInteractionsSvg",(e.ytPlayerOverlayInteractionInteractionsSvgHover=X,e),(y.ytPlayerOverlayInteractionInteractionsSvgHideOutline=U,y)),role:"button","on:click":w})},"Ek");_.gC(_.Z(function(X){var H=X.data;_.xy(function(){var l;if((l=H())==null?0:l.trackingParams){var b;_.lv().graftServerVe((b=H().trackingParams)!=null?b:"")}});
return _.F("yt-player-overlay-interaction",null,_.F(uyZ,{region:function(){var l,b;return(l=H())==null?void 0:(b=l.regions)==null?void 0:b[0]}},_.F(ewd,Object.assign({},X))))},"Dk"),"yt-player-overlay-interaction",{props:{data:_.zh}});var ymZ=_.Z(function(X){var H=X.data;var l=X.index;var b=X.selectedChoice;var U=function(){var K;return _.f((K=H())==null?void 0:K.renderer,Xla)};
X={};return _.F("yt-overlay-poll-sticker-choice",{class:_.Qr("ytOverlayPollStickerChoiceHost"),style:_.rC({"--displayed-percentage":function(){var K,w,d,B;return""+Math.ceil(Number((b==null?void 0:b())===l()?(K=U())==null?void 0:(w=K.selected)==null?void 0:w.progressBarWidth:(d=U())==null?void 0:(B=d.unselected)==null?void 0:B.progressBarWidth)*100)}})},_.F("div",{class:_.Qr("ytOverlayPollStickerChoicePollChoice",(X.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(b==null?void 0:b())!==
void 0},X.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(b==null?void 0:b())===l()},X))},_.F("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var K;
return((K=U())==null?void 0:K.text)||""}),_.F("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(b==null?void 0:b())==="undefined")var K="";
else{var w,d,B,q;K=(b==null?void 0:b())===l()?(w=U())==null?void 0:(d=w.selected)==null?void 0:d.votePercentage:(B=U())==null?void 0:(q=B.unselected)==null?void 0:q.votePercentage}return K})))},"Fk");var VWx=_.Z(function(X){var H=X.data;var l=X.enableDebuggingFeatures;var b=_.Aa(function(K){var w,d=((w=H())==null?void 0:w.postPollStateEntityKey)||"";K=_.JY(K.entities,"postPollStateEntity",d);var B;return((B=H())==null?0:B.viewerIsOwner)?Object.assign({},K,{selectedOptionId:-1,voted:!0}):K}),U=_.jJ().resolve(_.Vr);
X={};return _.F("yt-overlay-poll-sticker",null,_.F(uyZ,{region:function(){var K,w;return(K=H())==null?void 0:(w=K.region)==null?void 0:w.interactionRegion}},_.F("div",{class:_.Qr("ytOverlayPollStickerHost",(X.ytOverlayPollStickerDebugStyle=function(){return l==null?void 0:l()},X)),
style:_.rC({"--original-height":function(){var K;return""+(((K=H())==null?void 0:K.mainBodyHeight)||1)},
"--original-width":function(){var K;return""+(((K=H())==null?void 0:K.mainBodyWidth)||1)},
"--scaled-width":function(){var K;return""+(((K=H())==null?void 0:K.mainBodyWidth)||1)},
"--primary-surface":function(){var K,w;return zGp(((K=H())==null?void 0:(w=K.theme)==null?void 0:w.primarySurface)||0)},
"--raised-surface":function(){var K,w;return zGp(((K=H())==null?void 0:(w=K.theme)==null?void 0:w.raisedSurface)||0)},
"--secondary-surface":function(){var K,w;return zGp(((K=H())==null?void 0:(w=K.theme)==null?void 0:w.secondarySurface)||0)},
"--primary-text":function(){var K,w;return zGp(((K=H())==null?void 0:(w=K.theme)==null?void 0:w.primaryText)||0)},
"--secondary-text":function(){var K,w;return zGp(((K=H())==null?void 0:(w=K.theme)==null?void 0:w.secondaryText)||0)}})},_.F("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return H().questionText}," "),_.F(_.P$,{each:function(){return H().pollChoiceConfigs||[]}},function(K,w){return _.F("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.Nq(function(){var d=w(),B;if((B=H())==null||!B.viewerIsOwner){var q,u;B=(q=H())==null?void 0:(u=q.pollChoiceConfigs)==null?void 0:u[d];if(u=(B==null?0:B.renderer)?_.f(B.renderer,Xla):void 0){var e;q=((e=b())==null?void 0:e.selectedOptionId)!==d;var y;if(e=(y=q?u.selectedPollCommand:u.deselectedPollCommand)==null?void 0:y.innertubeCommand){U.resolveCommand(e);var V,p;_.tF().dispatch(_.Us("postPollStateEntity",((V=b())==null?void 0:V.key)||"",{key:((p=b())==null?void 0:p.key)||"",selectedOptionId:q?
d:-1,voted:q}))}}}})},_.F(ymZ,{data:K,
index:w,selectedChoice:function(){var d,B;return((d=b())==null?0:d.voted)?(B=b())==null?void 0:B.selectedOptionId:void 0}}))}),_.F("div",{class:"ytOverlayPollStickerVoteCount"},function(){var K,w;
return((K=b())==null?0:K.voted)&&((w=b())==null?void 0:w.selectedOptionId)!==-1?H().postVoteCountText:H().preVoteCountText}))))},"Gk");_.gC(_.Z(function(X){var H=X.data;X=_.uL(function(){var l;return _.P("enable_shorts_poll_stickers_web")?(((l=H())==null?void 0:l.stickers)||[]).filter(function(b){return b.pollSticker}):[]},void 0,"Cflxwb");
return _.F("yt-stickers-layer",null,_.F(_.P$,{each:X},function(l){return _.F(VWx,{data:l.pollSticker,enableDebuggingFeatures:function(){var b;return(b=H())==null?void 0:b.enableDebuggingFeatures}})}))},"Hk"),"yt-stickers-layer",{props:{data:_.zh}});var Vm=function(){var X=_.a.apply(this,arguments)||this;X.showScrubber=!1;X.isWatchWhileMode=!1;X.enableAnchoredPanel=_.P("desktop_shorts_v2_anchored_panel");X.enablePollStickers=_.P("enable_shorts_poll_stickers_web");X.anchoredPanelActive=!1;X.enableLivingroomLayout=_.P("reels_enable_livingroom_layout");X.enablePlayerMetadataContainer=_.P("reels_web_enable_metadata_container");X.enableSqueezebackPanels=_.P("web_shorts_enable_squeezeback_panels");X.useAspectRatio=_.P("web_use_aspect_ratio");X.isSqueezebackActive=
!1;X.smallScreenSqueezeback=!1;X.isPlayerStarted=!1;X.overlayDensity=0;X.extractOverlay=!1;X.extractActionBar=!1;X.isOverlay=!1;X.isImmersive=!1;X.isImmersiveHorizontal=!1;X.isFullscreen=!1;X.onWindowResized=function(){var H;X.set("isImmersive",((H=window.getComputedStyle(X.hostElement))==null?void 0:H.getPropertyValue("--immersive-mode-on"))==="1");X.set("isImmersiveHorizontal",X.isImmersive&&X.enableLivingroomLayout&&!X.isWatchWhileMode)};
return X};
_.S(Vm,_.a);_.R=Vm.prototype;_.R.updateIsOverlay=function(X){this.isOverlay=X.detail.value};
_.R.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.R.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.R.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.R.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.R.onOverlayDensityChange=function(){var X=_.mh(this.hostElement).querySelector("ytd-info-panel-container-renderer");X&&(X.set("extractOverlay",this.extractOverlay),X.set("roundedContainer",this.extractOverlay))};
_.R.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.R.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.R.ready=function(){(_.P("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"))&&(!_.P("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.I0("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.I0("reels_action_justified_content")||"flex-start")};
_.R.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}}};
_.R.setFakeLoadingButtons=function(){_.P("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.XS("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.XS("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.XS("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.XS("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.XS("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()};
_.R.setEmptyOverlayMetadata=function(){_.P("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}))};
_.ja.Object.defineProperties(Vm.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.infoPanel)}}});
Vm.prototype.onOverlayDensityChange=Vm.prototype.onOverlayDensityChange;Vm.prototype.onIsActiveChanged=Vm.prototype.onIsActiveChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Vm.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Vm.prototype,"ytdReduxBehavior",void 0);
_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Vm.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Vm.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],Vm.prototype,"isActive",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Vm.prototype,"hidden",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],Vm.prototype,"useShortsIcon",void 0);
_.T([_.g({value:"left"}),_.N("design:type",String)],Vm.prototype,"buttonTooltipPosition",void 0);_.T([_.g({value:_.P("reels_enable_livingroom_layout")?"top":"left"}),_.N("design:type",String)],Vm.prototype,"likeButtonTooltipPosition",void 0);_.T([_.g({value:"none"}),_.N("design:type",String)],Vm.prototype,"textTransform",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"showScrubber",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"isWatchWhileMode",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.infoPanel"),_.N("design:type",Object),_.N("design:paramtypes",[])],Vm.prototype,"hasInfoPanel",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"enableAnchoredPanel",void 0);_.T([_.g(),_.N("design:type",Object)],Vm.prototype,"enablePollStickers",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"anchoredPanelActive",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"enableLivingroomLayout",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Vm.prototype,"enablePlayerMetadataContainer",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"enableSqueezebackPanels",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"useAspectRatio",void 0);_.T([_.g({selector:_.dAO,reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"isSqueezebackActive",void 0);_.T([_.g({selector:f8C,reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"smallScreenSqueezeback",void 0);_.T([_.g({selector:pFN}),_.N("design:type",Object)],Vm.prototype,"isPlayerStarted",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"overlayDensity",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"extractOverlay",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"extractActionBar",void 0);_.T([_.g(),_.N("design:type",Object)],Vm.prototype,"isOverlay",void 0);_.T([_.g(),_.N("design:type",Object)],Vm.prototype,"isImmersive",void 0);
_.T([_.g(),_.N("design:type",Object)],Vm.prototype,"isImmersiveHorizontal",void 0);_.T([_.g({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.N("design:type",Boolean)],Vm.prototype,"isShortsImmersive",void 0);_.T([_.g({computed:"computeButtonOverride(extractActionBar)"}),_.N("design:type",Object)],Vm.prototype,"buttonOverride",void 0);
_.T([_.g({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.N("design:type",Object)],Vm.prototype,"actionBarButtonOverride",void 0);_.T([_.g({selector:_.QE,reflectToAttribute:!0}),_.N("design:type",Object)],Vm.prototype,"isFullscreen",void 0);_.T([_.Yh("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vm.prototype,"onIsActiveChanged",null);
_.T([_.Yh("extractOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vm.prototype,"onOverlayDensityChange",null);_.T([_.sq({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Vm);
_.O(Vm,"ytd-reel-player-overlay-renderer",function(){if(qpC!==void 0)return qpC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return qpC=X},{mode:1});var PGx;var Ps=function(){var X=_.a.apply(this,arguments)||this;X.videoDuration=0;X.playedTime=0;X.isActive=!1;X.JSC$22082_playerEvents=new Map;return X};
_.S(Ps,_.a);_.R=Ps.prototype;_.R.created=function(){this.JSC$22082_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22082_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.R.attached=function(){this.getPlayerAndInitializeListeners()};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22082_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.J2(this,this.onPageChanged))};
_.R.getPlayerAndInitializeListeners=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return H=_.aq(),H?l.yield(H.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.J2(X,X.onPageChanged)),l.jumpTo(0));X.player=l.yieldResult;X.initializePlayerListeners();_.m5(l)})};
_.R.onPageChanged=function(X){var H=this;return _.h(function(l){if(l.nextAddress==1)return X.detail.newPageType!=="ytd-shorts"?l.return():l.yield(_.ZH().getPlayerPromise(),2);H.player=l.yieldResult;H.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.J2(H,H.onPageChanged));_.m5(l)})};
_.R.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22082_playerEvents)};
_.R.onVideoDataChange=function(X){var H=this;return _.h(function(l){if(!H.player||X.type!=="newdata")return l.return();H.videoDuration=_.P("web_shorts_use_progress_state_for_gapless")?H.player.getProgressState(X.playertype).seekableEnd:H.player.getDuration(X.playertype);H.playedTime=0;_.m5(l)})};
_.R.onVideoProgress=function(X){var H=this,l,b;return _.h(function(U){if(!H.player)return U.return();l=H.player.getPresentingPlayerType();b=H.player.getPlayerState();H.videoDuration=_.P("web_shorts_use_progress_state_for_gapless")?H.player.getProgressState(l).seekableEnd:H.player.getDuration(l);H.playedTime=b===0?H.videoDuration:X;_.m5(U)})};
_.R.getPercentPlayed=function(X,H){return X?_.kY(H/X,0,1):0};
_.ja.Object.defineProperties(Ps.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 X="";return X=this.videoDuration&&this.playedTime?X+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):X+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Ps.prototype,"componentBehavior",void 0);_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],Ps.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ps.prototype,"player",void 0);_.T([_.g(),_.N("design:type",Object)],Ps.prototype,"videoDuration",void 0);_.T([_.g(),_.N("design:type",Object)],Ps.prototype,"playedTime",void 0);_.T([_.g(),_.N("design:type",Object)],Ps.prototype,"isActive",void 0);
_.T([_.x("videoDuration","playedTime"),_.N("design:type",Number),_.N("design:paramtypes",[])],Ps.prototype,"percentPlayed",null);_.T([_.x("videoDuration","playedTime"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ps.prototype,"percentPlayedStyle",null);_.T([_.x("videoDuration","isActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ps.prototype,"hideProgressBar",null);
_.O(Ps,"ytd-progress-bar-line",function(){if(PGx===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);PGx=X}X=PGx;return X},{mode:2});var fj5;_.gC(drl,"ytm-closed-captioning-button",{props:{captionIconType:_.zh,onClick:_.ta,ariaLabel:_.zh,ariaPressed:_.zh,isOverlay:_.ta}});_.gC(_.MhC,"volume-controls",{props:{orientation:_.zh}});var fm=function(){var X=_.a.apply(this,arguments)||this;X.playerState=null;X.isMuted=!1;X.volumeControlsOrientationState="horizontal_right";X.isOverlay=!0;X.isAdsOverlay=!1;X.captionIconType=-1;X.ariaLabel="";X.overlayDensity=0;X.JSC$22085_playerEvents=new Map;X.onClosedCaptionsButtonClick=function(){X.player&&DoU(X.player)&&(X.player.toggleSubtitles(),X.updateCaptionIconType())};
return X};
_.S(fm,_.a);_.R=fm.prototype;_.R.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)};
_.R.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.cS(28662);this.playPauseButtonClientVE=_.cS(36842);this.fullscreenButtonToggleOffClientVE=_.cS(222256);this.fullscreenButtonToggleOnClientVE=_.cS(222257);var X=_.Bi(),H=_.F6();X&&H&&(_.P("combine_ve_grafts")?(_.rg(_.lv(),this.muteButtonClientVE,H),_.rg(_.lv(),this.playPauseButtonClientVE,H)):_.SF(X,H,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.R.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22085_playerEvents),this.player=null)};
_.R.updateCaptionIconType=function(){var X=-1,H=void 0,l=_.XS("CLOSED_CAPTIONS_DISABLED");this.player&&DoU(this.player)&&(t0$(this.player)?(H=!0,l=_.XS("CLOSED_CAPTIONS_ON"),X=1):(H=!1,l=_.XS("CLOSED_CAPTIONS_OFF"),X=0));this.captionIconType=X;this.ariaPressedState=H;this.ariaLabel=l};
_.R.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.R.getPlayerAndInitializeListeners=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return H=_.aq(),H?l.yield(H.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.J2(X,X.onPageChanged)),l.jumpTo(0));X.player=l.yieldResult;X.initializePlayerListeners();_.m5(l)})};
_.R.onPageChanged=function(X){var H=this;return _.h(function(l){if(l.nextAddress==1)return X.detail.newPageType!=="ytd-shorts"?l.return():l.yield(_.ZH().getPlayerPromise(),2);H.player=l.yieldResult;H.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.J2(H,H.onPageChanged));_.m5(l)})};
_.R.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22085_playerEvents);this.updateCaptionIconType()};
_.R.onPlayerStateChange=function(X){this.playerState=X};
_.R.onPlayerVolumeChange=function(X){this.isMuted=X.muted};
_.R.onPlayPauseButtonClick=function(){var X=this,H,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(_.ZH().getPlayerPromise(),2);H=b.yieldResult;(l=_.Bi())&&X.playPauseButtonClientVE&&_.xB(l,X.playPauseButtonClientVE);H.getPlayerState()!==1?H.playVideo():H.pauseVideo();_.m5(b)})};
_.R.computePlayPauseIcon=function(X){return X===2||X===-1||X===5?"PLAY_ARROW_FILLED":"PAUSE_FILLED"};
_.R.computeFullscreenLabel=function(X){return X?_.XS("FULLSCREEN_EXIT_LABEL"):_.XS("FULLSCREEN_ENTER_LABEL")};
_.R.computePlayPauseLabel=function(X){return X===1||X===3?_.XS("PLAYER_LABEL_PAUSE"):_.XS("PLAYER_LABEL_PLAY")};
_.R.onMuteButtonClick=function(){var X=this,H,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(_.ZH().getPlayerPromise(),2);H=b.yieldResult;(l=_.Bi())&&X.muteButtonClientVE&&_.xB(l,X.muteButtonClientVE);H.isMuted()?H.unMute(!0):H.mute(!0);_.m5(b)})};
_.R.computeMuteIcon=function(X){return X?"miniplayer:volume-off":"miniplayer:volume-up"};
_.R.computeMuteLabel=function(X){return X?_.XS("PLAYER_LABEL_UNMUTE"):_.XS("PLAYER_LABEL_MUTE")};
_.R.onFullscreenButtonClick=function(){var X=_.Bi();X&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.xB(X,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.xB(X,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();QRl()};
_.ja.Object.defineProperties(fm.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var X=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(){X.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([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],fm.prototype,"componentBehavior",void 0);_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],fm.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],fm.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],fm.prototype,"player",void 0);_.T([_.g(),_.N("design:type",Object)],fm.prototype,"playerState",void 0);_.T([_.g(),_.N("design:type",Object)],fm.prototype,"isMuted",void 0);
_.T([_.g({computed:"computePlayPauseIcon(playerState)"}),_.N("design:type",String)],fm.prototype,"playPauseIcon",void 0);_.T([_.g({computed:"computeMuteIcon(isMuted)"}),_.N("design:type",String)],fm.prototype,"muteIcon",void 0);_.T([_.g({selector:_.QE}),_.N("design:type",Boolean)],fm.prototype,"isFullscreen",void 0);_.T([_.g(),_.N("design:type",Object)],fm.prototype,"volumeControlsOrientationState",void 0);_.T([_.g(),_.N("design:type",Object)],fm.prototype,"isOverlay",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fm.prototype,"isAdsOverlay",void 0);_.T([_.g(),_.N("design:type",Object)],fm.prototype,"captionIconType",void 0);_.T([_.g(),_.N("design:type",Object)],fm.prototype,"ariaLabel",void 0);_.T([_.g(),_.N("design:type",Object)],fm.prototype,"ariaPressedState",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],fm.prototype,"overlayDensity",void 0);_.T([_.g(),_.N("design:type",Object)],fm.prototype,"data",void 0);
_.T([_.g({computed:"computeActionBarButtonOverride()"}),_.N("design:type",Object)],fm.prototype,"actionBarButtonOverride",void 0);_.T([_.x("playerState"),_.N("design:type",Object),_.N("design:paramtypes",[])],fm.prototype,"playPauseButtonData",null);_.T([_.x("isFullscreen"),_.N("design:type",Object),_.N("design:paramtypes",[])],fm.prototype,"fullscreenButtonData",null);_.T([_.g(),_.N("design:type",Object)],fm.prototype,"onClosedCaptionsButtonClick",void 0);
_.T([_.x("isFullscreen"),_.N("design:type",String),_.N("design:paramtypes",[])],fm.prototype,"fullscreenIcon",null);
_.O(fm,"ytd-shorts-player-controls",function(){if(fj5===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);fj5=X}X=fj5;return X},{mode:1});var pYp;_.gC(_.W5A,"yt-interstitial-view-model",{props:{data:_.zh}});var Spe=_.Z(function(X){var H=X.data;return _.F("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.F("h1",{class:"reelWatchBreakViewModelHostTitle"},_.F(_.Sj,{text:function(){return H().title}})),_.F("h2",{class:"reelWatchBreakViewModelHostBody"},_.F(_.Sj,{text:function(){return H().body},
isOverlay:!0})),_.F(_.l4,{data:function(){return H().buttons}},{buttonViewModel:function(l,b){return _.F("div",{class:function(){return b()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.F(_.Qk,{data:l.data}))}}))},"Ik");
Spe.idomCompat=!0;_.gC(Spe,"reel-watch-break-view-model",{props:{data:_.zh}});var pm=function(){return _.a.apply(this,arguments)||this};
_.S(pm,_.a);pm.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}}};
_.ja.Object.defineProperties(pm.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var X;return!!_.f((X=this.data)==null?void 0:X.renderer,ZBe)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var X;return!!_.f((X=this.data)==null?void 0:X.renderer,Gyd)}}});
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],pm.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],pm.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pm.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("data.renderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pm.prototype,"isSurvey",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.renderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pm.prototype,"isInterstitialViewModel",null);_.T([_.sq({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],pm);
_.O(pm,"ytd-reel-non-video-content-renderer",function(){if(pYp!==void 0)return pYp;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
return pYp=X},{mode:2});var zwl;_.gC(_.sLZ,"desktop-shorts-player-controls",{});var S$=function(){var X=_.a.apply(this,arguments)||this;X.isPlayerPaused=!1;X.isPlayerStarted=!1;X.showPlayerControls=!1;X.showScrubber=!1;X.autoHideJobId=0;X.overlayType=_.I0("web_shorts_expanded_overlay_type");X.panelData=void 0;X.isWatchWhileMode=!1;X.hasError=!1;X.panelShowDelayMs=1;X.scrubberComponent={};X.isFullscreen=!1;X.shouldHideOverlay=!1;X.enableAnchoredPanel=_.P("desktop_shorts_v2_anchored_panel");X.enablePersistentAnchoredPanel=_.P("desktop_shorts_v2_persistent_anchored_panel");X.hideWatchWhilePanel=
_.P("web_shorts_hide_watch_while_panel");X.useAspectRatio=_.P("web_use_aspect_ratio");X.isPersistentPanelActive=!1;X.anchoredPanelActive=!1;X.isShortsPipActive=!1;X.smallScreenSqueezeback=!1;X.overlayDensity=0;X.extractOverlay=!1;X.extractActionBar=!1;X.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};X.onWindowResized=function(){_.pc(X,"calculateOverlayDensity",function(){X.calculateOverlayDensity()},
100)};
return X};
_.S(S$,_.a);_.R=S$.prototype;_.R.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.R.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.R.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var X=_.jJ().resolve(_.d3);this.isWatchWhileMode&&_.Ss.addJob(function(){X.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.R.handleShowReelsCommentsOverlayCommand=function(X){X=_.f(X,snC);this.isActive&&(X==null?0:X.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))};
_.R.updateEngagementPanelVisibility=function(X,H){X&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:H?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:X}})};
_.R.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.R.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.jJ().resolve(_.bW).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.R.handleWatchWhilePanelScrimClick=function(){var X=_.jJ().resolve(_.d3);this.activeWatchWhilePanel&&(X.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.R.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.R.configureRendererStamper=function(){var X;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:(X=WAZ[_.I0("web_shorts_overlay_render_priority")])!=null?X:0}}};
_.R.handlePlayerClick=function(X){var H=this,l,b;if((b=(l=window).matchMedia)!=null&&b.call(l,"(any-pointer: coarse)").matches||!X)this.showPlayerControls=!0,_.Ss.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Ss.addJob(function(){H.showPlayerControls=!1},0,4E3)};
_.R.isFirstReel=function(){return this.index===0};
_.R.handleMouseenter=function(){_.Ss.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.R.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.R.handleScrubberEnter=function(){this.showScrubber=!0};
_.R.handleScrubberLeave=function(){this.showScrubber=!1};
_.R.maybeLogNonDefaultAspectRatio=function(){var X;(X=this.data)!=null&&X.thumbnail&&this.isActive&&.5625!==LSA(this.data.thumbnail)&&_.L3b("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.R.calculateOverlayDensity=function(){var X=document.querySelector("#shorts-container");if(X){var H=!1,l,b=this.playerContainer.offsetWidth,U=this.playerContainer.offsetHeight;X=X.offsetWidth/2-b/2;X>=368?(X=1,H=l=!0):X>=72?(X=0,l=!0):(X=2,l=!1);b>=600&&U>=840?X=1:window.innerWidth<=599&&(X=2,l=H=!1);this.isPersistentPanelActive&&(X=0,H=!1);this.extractActionBar=l;this.overlayDensity=X;this.extractOverlay=H;var K;(K=this.onOverlayDensityChanged)==null||K.call(this,this.index,this.overlayDensity,
this.extractOverlay,this.extractActionBar)}};
_.R.onOverlayDensityChange=function(){var X;(X=this.onOverlayDensityChanged)==null||X.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(X=_.mh(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))X.set("overlayDensity",this.overlayDensity),X.set("extractOverlay",this.extractOverlay),X.set("extractActionBar",this.extractActionBar);if(X=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))X.overlayDensity=this.overlayDensity,X.extractOverlay=
this.extractOverlay,X.extractActionBar=this.extractActionBar};
_.R.isVideoContent=function(X){_.jJ().resolve(_.bW);return!!_.f(X,_.HM)};
_.R.isNonVideoContent=function(X){_.jJ().resolve(_.bW);return!!_.f(X,_.uy)};
_.R.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.ja.Object.defineProperties(S$.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.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 X;return!this.isActive||!this.isPlayerStarted||(X=this.data)!=null&&X.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var X;if(((X=this.data)==null?0:X.command)&&this.isVideoContent(this.data.command)){var H,l;if(((H=this.data)==null?0:H.adsOverlay)&&Object.keys((l=this.data)==null?void 0:l.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var b,U;if(((b=this.data)==null?0:b.reelPlayerOverlayRenderer)&&Object.keys((U=this.data)==null?void 0:U.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
S$.prototype.onOverlayDensityChange=S$.prototype.onOverlayDensityChange;S$.prototype.calculateOverlayDensity=S$.prototype.calculateOverlayDensity;S$.prototype.maybeLogNonDefaultAspectRatio=S$.prototype.maybeLogNonDefaultAspectRatio;S$.prototype.onEngagementPanelsChanged=S$.prototype.onEngagementPanelsChanged;S$.prototype.onScrubberDataChange=S$.prototype.onScrubberDataChange;S$.prototype.updateShouldHideOverlay=S$.prototype.updateShouldHideOverlay;
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],S$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],S$.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],S$.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],S$.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Number)],S$.prototype,"index",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],S$.prototype,"isActive",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],S$.prototype,"isHiddenInDom",void 0);_.T([_.g(),_.N("design:type",Object)],S$.prototype,"isPlayerPaused",void 0);_.T([_.g({selector:pFN}),_.N("design:type",Object)],S$.prototype,"isPlayerStarted",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"showPlayerControls",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"showScrubber",void 0);_.T([_.g(),_.N("design:type",Object)],S$.prototype,"autoHideJobId",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"overlayType",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],S$.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],S$.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],S$.prototype,"watchWhileEngagementPanels",void 0);_.T([_.g(),_.N("design:type",Object)],S$.prototype,"panelData",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"isWatchWhileMode",void 0);_.T([_.g(),_.N("design:type",String)],S$.prototype,"activeWatchWhilePanel",void 0);_.T([_.g(),_.N("design:type",Object)],S$.prototype,"hasError",void 0);_.T([_.g(),_.N("design:type",Object)],S$.prototype,"panelShowDelayMs",void 0);
_.T([_.g(),_.N("design:type",Object)],S$.prototype,"scrubberComponent",void 0);_.T([_.g({selector:_.QE,reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"isFullscreen",void 0);_.T([_.g(),_.N("design:type",Object)],S$.prototype,"shouldHideOverlay",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"enableAnchoredPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"enablePersistentAnchoredPanel",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"hideWatchWhilePanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"useAspectRatio",void 0);_.T([_.g({selector:_.dAO,reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"isPersistentPanelActive",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"anchoredPanelActive",void 0);
_.T([_.g({selector:_.Te,reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"isShortsPipActive",void 0);_.T([_.g({selector:f8C,reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"smallScreenSqueezeback",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data.adsOverlay"),_.N("design:type",Object),_.N("design:paramtypes",[])],S$.prototype,"isAdsOverlay",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"overlayDensity",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"extractOverlay",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"extractActionBar",void 0);_.T([_.g(),_.N("design:type",Function)],S$.prototype,"onOverlayDensityChanged",void 0);_.T([_.g(),_.x("isActive","hasError","isPlayerStarted"),_.N("design:type",Object),_.N("design:paramtypes",[])],S$.prototype,"shouldRenderPlayerElements",null);
_.T([_.g(),_.x("isActive","isWatchWhileMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],S$.prototype,"watchWhileOrPersistentActive",null);_.T([_.Yh("isActive","hasError","showingExpandedOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S$.prototype,"updateShouldHideOverlay",null);
_.T([_.g({reflectToAttribute:!0}),_.x("isActive","isPlayerStarted","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],S$.prototype,"shouldRenderScrubber",null);_.T([_.Yh("shouldRenderScrubber"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S$.prototype,"onScrubberDataChange",null);_.T([_.x("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],S$.prototype,"overlayComponent",null);
_.T([_.Yh("watchWhileEngagementPanels"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S$.prototype,"onEngagementPanelsChanged",null);_.T([_.A2("#player-container"),_.N("design:type",HTMLElement)],S$.prototype,"playerContainer",void 0);_.T([_.A2("#cinematic-container"),_.N("design:type",HTMLElement)],S$.prototype,"cinematicContainer",void 0);
_.T([_.Yh("isPersistentPanelActive","data.thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S$.prototype,"maybeLogNonDefaultAspectRatio",null);_.T([_.Yh("isPersistentPanelActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S$.prototype,"calculateOverlayDensity",null);
_.T([_.Yh("overlayDensity","extractOverlay","extractActionBar"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S$.prototype,"onOverlayDensityChange",null);_.T([_.sq({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],S$);
_.O(S$,"ytd-reel-video-renderer",function(){if(zwl!==void 0)return zwl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return zwl=X},{mode:2});var zJ=function(){var X=_.a.apply(this,arguments)||this;X.isPreviousPageShorts=!1;X.index=0;X.delayedActiveIndex=0;X.playablePreviousIndex=null;X.isPlayerPaused=!1;X.isPlayerStarted=!1;X.intersectionObserverThreshold=.6;X.fitToVisibleBounds=!1;X.pageSubtype="shorts";X.enablePreviousContinuation=_.P("shorts_in_playlists_web");X.shortsPipEnabled=_.P("web_shorts_pip");X.isDark=document.documentElement.hasAttribute("dark");X.shortsViewTransitions=_.P("web_shorts_view_transitions");X.isFullscreen=!1;X.isShortsPipActive=
!1;X.buttonOverride={iconPosition:"icon-only",size:"XL"};X.anchoredPanelActive=!1;X.isActive=!1;X.smallScreenPersistentPanel=!1;X.isPersistentPanelActive=!1;X.smallScreenSqueezeBack=!1;X.enableScrollIntoViewCenter=_.P("web_scroll_into_view_center");X.extractOverlay=!1;X.useAspectRatio=_.P("web_use_aspect_ratio");X.continuationRequestPending=!1;X.carouselContainers=[];X.isShortsInitialized=!1;X.hasDataUpdated=!1;X.playerInPosition=!1;X.hidePreviousButtonImmediately=!1;X.showPreviousButtonImmediately=
!1;X.endOfNextContinuation=!1;X.currentPlayerIndex=0;X.nextReelVe=_.cS(56921);X.prevReelVe=_.cS(56922);X.loopToggleOffVe=_.cS(198013);X.loopToggleOnVe=_.cS(198014);X.ambientModeToggleVe=_.cS(227860);X.reelPlayerPausedStateRendererVe=_.cS(141313);X.storedPlaybackSpeed=null;X.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"};
X.onOverlayDensityChanged=function(H,l,b,U){H=X.getActiveReelVideo(H);X.extractOverlay=!!b;H==null||H.setAttribute("overlay-density",String(l));b===void 0||H!=null&&H.toggleAttribute("extract-overlay",b);U===void 0||H!=null&&H.toggleAttribute("extract-action-bar",U)};
return X};
_.S(zJ,_.a);_.R=zJ.prototype;_.R.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.R.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.R.onResize=function(){var X=_.WF(),H=X.dispatch,l=this.calculateIsSmallWidth();H.call(X,_.Of({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:l}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.R.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}}};
_.R.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var X=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,H=X,l=0;X<250&&(H=X+this.shortsInnerContainer.clientWidth,l=24);_.j4(this.hostElement,{"--ytd-shorts-header-width":H+"px","--ytd-shorts-top-spacing":l+"px"})}};
_.R.isFirstShorts=function(X){return X?this.index===-X.length:this.index===0};
_.R.isActiveReel=function(X,H,l){l&&(H=this.calculatePrevIndex(H,l));return X===H};
_.R.onFullscreenChange=function(){_.P("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.jJ().resolve(_.f9).close(!0))};
_.R.engagementPanelsChanged=function(){var X;this.watchWhileEngagementPanels=(X=this.data)==null?void 0:X.engagementPanels};
_.R.unregisterPanels=function(){var X=_.jJ().resolve(_.d3);if(this.watchWhileEngagementPanels)for(var H=_.C(this.watchWhileEngagementPanels),l=H.next();!l.done;l=H.next()){var b=l.value,U=void 0,K=void 0;l=(U=b.engagementPanelSectionListRenderer)==null?void 0:(K=U.identifier)==null?void 0:K.tag;b=this.getPanelIdentifier(b.engagementPanelSectionListRenderer);X&&(l&&X.panelMap.delete(l),b&&_.P("web_shorts_panel_caching_bugfix")&&(U=l=void 0,(U=(l=X).unregisterPanelContent)==null||U.call(l,b)))}};
_.R.isVideoContent=function(X){return this.isVideoContentCommand(X==null?void 0:X.command)};
_.R.getActiveReelVideo=function(X){return _.mh(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+X+'"]')};
_.R.calculatePrevIndex=function(X,H){return H?X-((H==null?void 0:H.length)||0):-1};
_.R.onKeydown=function(X){var H=_.t2(X)||[];if(!qCY(H))if(X.code==="ArrowUp")X.preventDefault(),this.handlePrevButtonClick();else if(X.code==="ArrowDown")X.preventDefault(),this.handleNextButtonClick();else if(X.code==="KeyM")this.toggleMuteUnmuteVideo();else if(X.code==="KeyK"||X.code==="Space")this.togglePlayPauseVideo();else if((X.code==="KeyA"||X.code==="ArrowLeft")&&_.P("web_shorts_keyboard_enable_seek_shortcuts")){var l;(l=this.player)==null||l.seekBy(-5)}else if((X.code==="KeyD"||X.code===
"ArrowRight")&&_.P("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var b;(b=this.player)==null||b.seekBy(5)}};
_.R.onServiceRequestCompleted=function(X,H){X=H.data;X.continuationEndpoint&&X.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:X.entries,continuationEndpoint:X.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=X):X.prevContinuationEndpoint&&X.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:X.prevEntries,prevContinuationEndpoint:X.prevContinuationEndpoint}}):
this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.R.handleEngagementPanelVisibilityChanged=function(X,H){var l=_.jJ().resolve(_.d3);if(X&&l){var b=this.getPanelIdentifier(X);if(H==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==b){l.hidePanel({identifier:this.activePanel});var U;this.activePanel=((U=X.identifier)==null?void 0:U.tag)||X.panelIdentifier}else this.isPersistentPanelActive=!0,_.WF().dispatch(iRp(!0)),this.anchoredPanelActive=!0,this.activePanel=b;else H==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===b&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.WF().dispatch(iRp(!1)))}};
_.R.handlePanelScrimClick=function(){var X=_.jJ().resolve(_.d3);this.activePanel&&(X.hidePanel({identifier:this.activePanel}),_.WF().dispatch(iRp(!1)))};
_.R.getShortsLoopSetting=function(){var X,H,l,b,U;return _.h(function(K){switch(K.nextAddress){case 1:return _.P("kevlar_shorts_auto_advance")?K.yield(_.dD.getInstance(),2):K.return(!0);case 2:return(X=K.yieldResult)?K.yield(X.get("sfvles"),3):K.return(!0);case 3:return l=(H=K.yieldResult)!=null?H:!1,K.yield(X.get("sfvle"),4);case 4:return U=(b=K.yieldResult)!=null?b:!0,l?K.return(U):K.return(!0)}})};
_.R.handleSignalActionToggleLoopShortsOff=function(){var X=this,H,l,b;return _.h(function(U){switch(U.nextAddress){case 1:if(!X.player)return U.return();X.player.setLoopVideo(!1);H=_.lv();_.Lk(H,X.loopToggleOffVe);return U.yield(_.dD.getInstance(),2);case 2:return(l=U.yieldResult)?U.yield(l.set("sfvle",!1),3):U.return();case 3:return U.yield(l.set("sfvles",!0),4);case 4:b=_.oO(),_.bH(0,203,!1),_.bH(0,204,!0),b.save(),_.m5(U)}})};
_.R.handleSignalActionToggleLoopShortsOn=function(){var X=this,H,l,b;return _.h(function(U){switch(U.nextAddress){case 1:if(!X.player)return U.return();X.player.setLoopVideo(!0);H=_.lv();_.Lk(H,X.loopToggleOnVe);return U.yield(_.dD.getInstance(),2);case 2:return(l=U.yieldResult)?U.yield(l.set("sfvle",!0),3):U.return();case 3:return U.yield(l.set("sfvles",!0),4);case 4:b=_.oO(),_.bH(0,203,!0),_.bH(0,204,!0),b.save(),_.m5(U)}})};
_.R.handleSignalActionToggleCinematicShortsOn=function(){a8U(!0);var X;(X=this.JSC$22110_cinematicController)==null||DAA(X,!0);_.Lk(_.lv(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.R.handleSignalActionToggleCinematicShortsOff=function(){a8U(!1);var X;(X=this.JSC$22110_cinematicController)==null||DAA(X,!1);_.Lk(_.lv(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.R.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.R.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.R.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var X=this.overlayContainer.querySelector("#experiment-overlay");X&&_.Ss.addLowPriorityJob(function(){X.style.display="unset"},100)}else if(this.overlayContainer){var H;
((H=this.playerElement.getPlayer())==null?void 0:H.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.R.getCurrentShort=function(){if(this.currentEndpoint){var X=this.currentEndpoint;if(this.isNonVideoContentCommand(X)){var H=_.f(X,_.uy);return{reelNonVideoContentRenderer:_.f(H==null?void 0:H.renderer,_.ES9),command:X}}if(this.data){var l;H=(l=_.f(this.currentEndpoint,_.HM))==null?void 0:l.thumbnail;var b;l=(b=this.data.overlay)==null?void 0:b.reelPlayerOverlayRenderer;_.jJ().resolve(_.bW);X=this.data;var U,K;b=(U=X.overlay)==null?void 0:(K=U.shortsAdsRenderer)==null?void 0:K.adSlots;if(b!==void 0)b.length===
0?(_.k$("Shorts ads returned no ad slots."),X=void 0):(b.length>1&&_.k$("Shorts ads has more than one ad slots."),X=_.f(b[0],_.wG6));else{var w,d;X=_.f((w=X.overlay)==null?void 0:(d=w.shortsAdsRenderer)==null?void 0:d.overlay,_.wG6)}w=X;X=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.f(this.currentEndpoint,_.HM),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var B;return{reelPlayerOverlayRenderer:l,thumbnail:H,command:X,adsOverlay:w,
videoId:(B=_.f(this.currentEndpoint,_.HM))==null?void 0:B.videoId}}}};
_.R.created=function(){var X=this;this.scrollToVideoThrottle=new _.jw(function(H,l){l=l===void 0?"smooth":l;var b;(b=X.getActiveReelVideo(H))==null||b.scrollIntoView({behavior:l,block:"nearest",inline:X.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.jJ().resolve(_.bW);this.maybeCreateIntersectionObserver()};
_.R.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.R.attached=function(){var X=this;_.jJ().resolve(_.bW).registerRootElement(this);this.pageScrollElement=_.mh(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.J2(this,this.processResetAction));_.P("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){X.maybeCreateIntersectionObserver();X.scrollToVideoThrottle.fire(X.activeIndex,"instant");X.shortsContainer.style.overflowY=
"scroll"}))};
_.R.calculateSqueezebackPanelSize=function(){var X=this,H=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Ss.addLowPriorityJob(function(){H<360?(X.hostElement.style.setProperty("--anchored-panel-width","480px"),_.WF().dispatch(vwl(!0))):(X.hostElement.style.setProperty("--anchored-panel-width",Math.min(H,480)+"px"),_.WF().dispatch(vwl(!1)))})};
_.R.detached=function(){var X=_.jJ().resolve(_.bW);X.rootElement=void 0;var H;(H=X.unsubscribeFromStore)==null||H.call(X);X.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.J2(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.R.onResizeFinished=function(X,H){var l=this,b=new ResizeObserver(function(){l.shortsContainer.style.overflowY="hidden";_.Ss.addLowPriorityJob(function(){H()},100)});
b.observe(X);return b};
_.R.resetDocumentScrollTop=function(){var X,H;if((X=document)==null?0:(H=X.scrollingElement)==null?0:H.scrollTop)document.scrollingElement.scrollTop=0};
_.R.loadPage_=function(X){var H=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),X){var l;if((l=_.f(this.currentEndpoint,_.HM))==null?0:l.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=X;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){H.isPlayerStarted&&
(H.handleOnPlaybackCommand(),H.afterPlayerStarted=function(){})};
this.registerPanel(X)}};
_.R.afterPlayerStarted=function(){};
_.R.handleOnPlaybackCommand=function(){if(_.P("web_shorts_comment_stickers")&&this.isPlayerStarted){var X,H=(X=_.f(this.currentEndpoint,_.HM))==null?void 0:X.onPlaybackCommand;H&&this.ytComponentBehavior.resolveCommand(H)}};
_.R.maybeCreateIntersectionObserver=function(){var X=this,H=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==H){this.intersectionObserverThreshold=H;var l={rootMargin:"0px",threshold:H},b;(b=this.intersectionObserver)==null||b.disconnect();this.intersectionObserver=new IntersectionObserver(function(U){U=_.C(U);for(var K=U.next();!K.done;K=U.next())if(K=K.value,K.intersectionRatio>H){K=Number(K.target.id);if(isNaN(K))break;if(K===X.index)break;
_.Y6N();X.loadVideo(K);_.uH("r_vtc")}},l);
this.observeShorts()}};
_.R.observeShorts=function(){var X,H,l=(((X=this.shortsProcessedPrevSequence)==null?void 0:X.length)||0)+(((H=this.shortsProcessedSequence)==null?void 0:H.length)||0);this.carouselContainers.length<l&&(this.carouselContainers=[].concat(_.LJ(_.mh(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))));X=_.C(this.carouselContainers);for(H=X.next();!H.done;H=X.next())H=H.value,l=void 0,(l=this.intersectionObserver)==null||l.observe(H)};
_.R.initCsi=function(){M7d("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var X={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},H,l;if((H=this.playerData)==null?0:(l=H.cacheMetadata)==null?0:l.isCacheHit)X.isCacheHit=!0;var b;if(H=(b=_.f(this.currentEndpoint,_.HM))==null?void 0:
b.prefetchTaskId)X.prefetchInfo={taskId:H};_.FS(X)};
_.R.isAd=function(){var X,H;return!!((X=_.f(this.currentEndpoint,_.HM))==null?0:(H=X.adClientParams)==null?0:H.isAd)};
_.R.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.R.getPlayerContainer=function(){var X;return(X=_.mh(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:X.playerContainer};
_.R.onPlayerStateChange=function(X){var H=this;this.isPlayerPaused=X===2;X!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?X===1&&this.index===0&&(this.isPlayerStarted||_.WF().dispatch(ORy(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.WF().dispatch(ORy(!0)));this.player&&!this.player.getLoopVideo()&&_.Ss.addLowPriorityJob(function(){H.getShortsLoopSetting().then(function(l){var b;(b=H.player)==null||b.setLoopVideo(l)})});
this.isPlayerPaused&&_.P("web_shorts_paused_state_logging")&&_.nA(_.Bi(),[this.reelPlayerPausedStateRendererVe])};
_.R.isShortPlayable=function(){if(_.P("kevlar_playable_short_killswitch"))return!0;var X;return(X=this.playerData)!=null&&X.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.R.setNormalPlaybackSpeed=function(){var X=this,H,l;return _.h(function(b){if(b.nextAddress==1)return b.yield(X.getPlayer().getPlayerPromise(),2);H=b.yieldResult;l=H.getPlaybackRate();l!==1&&(X.storedPlaybackSpeed=l,H.setPlaybackRate(1));_.m5(b)})};
_.R.restorePlaybackSpeed=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1)return X.storedPlaybackSpeed===null?l.jumpTo(0):l.yield(X.getPlayer().getPlayerPromise(),3);H=l.yieldResult;H.setPlaybackRate(X.storedPlaybackSpeed);X.storedPlaybackSpeed=null;_.m5(l)})};
_.R.playerDataChanged=function(){var X=this,H,l,b,U,K,w,d,B,q;return _.h(function(u){if(u.nextAddress==1){H=X.getPlayer();(l=X.intersectionObserver)==null||l.disconnect();if(X.playerData){if(((b=X.playerData.videoDetails)==null?void 0:b.videoId)!==((U=H.getPlayer())==null?void 0:U.getVideoData().video_id)){K={};if(w=_.f(X.currentEndpoint,_.HM))K.watch_endpoint=w,w.endTimeSeconds&&(K.end=w.endTimeSeconds);H.loadVideoWithPlayerResponse(X.playerData,K)}}else return u.return();return X.player?u.jumpTo(2):
u.yield(H.getPlayerPromise(),3)}u.nextAddress!=2&&(X.player=u.yieldResult,X.JSC$22110_playerStateChangeListener=X.onPlayerStateChange.bind(X),X.player.addEventListener("onStateChange",X.JSC$22110_playerStateChangeListener),_.P("kevlar_client_enable_shorts_player_bootstrap")&&_.Ds(),X.scrollToVideoThrottle.fire(X.index),X.movePlayerToVideo(X.index),_.Ss.addLowPriorityJob(function(){X.getShortsLoopSetting().then(function(e){var y;(y=X.player)==null||y.setLoopVideo(e)})}),_.x$z.resolve(X.player),X.player.syncVolume(),
X.getPlayer().focusOnPlayer());
_.Ss.addLowPriorityJob(function(){X.observeShorts()},100);
d=X.player.getPlayerState(X.player.getPresentingPlayerType());d!==1||X.isPlayerStarted||_.WF().dispatch(ORy(!0));X.updateBackNavContainerWidth();B=_.f(X.currentEndpoint,_.HM);((q=B)==null?0:q.startTimeSeconds)&&X.player.seekTo(B.startTimeSeconds);if(X.JSC$22110_cinematicController||X.cinematicsInitializeJobId)return u.return();X.cinematicsInitializeJobId=_.Ss.addLowPriorityJob(function(){X.initCinematicController();X.cinematicsInitializeJobId=void 0});
_.m5(u)})};
_.R.onShortUndoDismiss=function(){var X=this,H=mD5().pop();H!==void 0&&(_.N0(this,function(){X.showCardWithIndex(H)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.R.onShortsDismiss=function(X){if(X=X.detail.reelDismissalActionRenderer)(X=_.f(X.onDismissalCompletionRenderer,H3C))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:X}}}),this.scrollAndDismissCard()};
_.R.processReelNonVideoContentDismissalCommand=function(X){var H=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);X=_.f(X,qY$);this.activeDimissalTimeout=setTimeout(function(){H.scrollAndDismissCard()},Number(X==null?void 0:X.delayMs))};
_.R.scrollAndDismissCard=function(){var X=this,H=this.index;mD5().push(H);_.N0(this,function(){var l=X.getPlayableNextIndex();l!==null&&(X.hideCardWithIndex(H),X.scrollToVideoThrottle.fire(l))})};
_.R.hideCardWithIndex=function(X){if(X=this.getActiveReelVideo(X))X.hidden=!0};
_.R.showCardWithIndex=function(X){if(X=this.getActiveReelVideo(X))X.hidden=!1};
_.R.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.R.activeChanged=function(X){_.WF().dispatch(_.Of({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:X}}));if(X)document.addEventListener("keydown",_.J2(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var H;(H=this.player)==null||H.sendAbandonmentPing()}var l;(l=this.player)==null||l.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.J2(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.R.graftClientVisualElements=function(){if(this.data){var X=_.lv();_.zxD(X,_.rZ({response:this.reelWatchSequenceResponse}));_.rg(X,this.nextReelVe);_.rg(X,this.prevReelVe);_.P("kevlar_shorts_auto_advance")&&(_.rg(X,this.loopToggleOffVe),_.rg(X,this.loopToggleOnVe));_.rg(X,this.ambientModeToggleVe);_.nA(_.Bi(),[this.nextReelVe,this.prevReelVe]);_.P("web_shorts_paused_state_logging")&&_.rg(X,this.reelPlayerPausedStateRendererVe)}};
_.R.graftNvcRenderer=function(){var X,H,l,b,U=this.index<0?(X=this.shortsProcessedPrevSequence)==null?void 0:(H=X[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:H.command:(l=this.shortsProcessedSequence)==null?void 0:(b=l[this.index])==null?void 0:b.command;if(U&&this.isNonVideoContentCommand(U)){X=_.f(U,_.uy);var K,w;(X=(K=_.f(X==null?void 0:X.renderer,_.ES9))==null?void 0:(w=K.loggingDirectives)==null?void 0:w.trackingParams)&&_.lv().graftServerVe(X)}};
_.R.setActiveIndex=function(){_.jJ().resolve(_.bW).setActiveIndex(this.index)};
_.R.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.R.lazyUpdateMiniplayerData=function(){var X=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Ss.addLowPriorityJob(function(){X.updateMiniplayerData();X.updateMiniplayerDataJobId=void 0}))};
_.R.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Ss.cancelJob(this.updateMiniplayerDataJobId)};
_.R.updateMiniplayerData=function(){var X,H,l,b=_.jJ().resolve(_.f9),U={shortsData:this.getCurrentShort(),previousButtonDisabled:!((X=this.prevButtonData)==null||!X.isDisabled),nextButtonDisabled:!((H=this.nextButtonData)==null||!H.isDisabled),playabilityStatus:(l=this.playerData)==null?void 0:l.playabilityStatus};_.DT(b,U)};
_.R.resetPlayerLocation=function(){var X=this.getPlayer();this.initialPlayerContainer&&X.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.R.movePlayerToVideo=function(X,H){var l=this;H=H===void 0?!0:H;var b=this.getActiveReelVideo(X),U=this.getPlayer();if(b){this.overlayContainer?b.appendChild(this.overlayContainer):(this.overlayContainer=_.mh(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,b.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||U.appendTo(this.overlayContainer.playerContainer,void 0,!0));var K;(K=this.player)==null||K.setSize(NaN,NaN);this.isActive||_.Ss.addJob(function(){l.isActive=
!0},0);
U.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.P("reels_web_disable_rtr_tick")||_.P("reels_web_use_pbs_first_shorts")&&X===0||_.sf("r_tr");this.currentPlayerIndex=X;b.appendChild(this.errorScreenContainer);var w;(w=this.JSC$22110_cinematicController)==null||gzl(w)}else H?_.Ss.addLowPriorityJob(function(){l.movePlayerToVideo(l.index,!1)}):Math.random()<=_.Yy("web_shorts_error_logging_threshold")&&_.k2(new _.qd("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:H,
index:X}))};
_.R.getAspectRatio=function(X){return(X==null?0:X.thumbnail)&&LSA(X.thumbnail)?"--ytd-shorts-player-ratio: "+LSA(X.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.R.getBackgroundImage=function(X){if(X!=null&&X.thumbnail)return(X=_.a1(X.thumbnail.thumbnails))?'background-image:url("'+X+'");':"background-color:black;"};
_.R.getBackgroundImageUrl=function(X){if(X!=null&&X.thumbnail)return _.a1(X.thumbnail.thumbnails)};
_.R.onPersistentPanelActiveChanged=function(){var X,H=(X=_.f(this.currentEndpoint,_.HM))==null?void 0:X.thumbnail;if(H&&LSA(H)!==.5625){var l;(l=this.player)==null||l.setSize(NaN,NaN)}};
_.R.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.R.moveCinematicsToVideo=function(){var X=_.mh(this.hostElement).querySelector("ytd-reel-video-renderer");(X==null?0:X.cinematicContainer)&&X.cinematicContainer!==this.shortsCinematicContainer.parentElement&&X.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.R.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.R.updatePrevButtonData=function(){var X=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);X?this.prevButtonData=X=Object.assign({},X,{accessibility:{label:_.XS("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.XS("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=X=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.R.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.R.updateNextButtonData=function(){var X=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);X&&(this.nextButtonData=X=Object.assign({},X,{accessibility:{label:_.XS("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.XS("NEXT_VIDEO_LABEL")||""}))};
_.R.getPlayablePreviousIndex=function(){for(var X,H=this.index-1;H>=-(((X=this.prevShortsSequence)==null?void 0:X.length)||0);H--)if(!mD5().includes(H))return H;return null};
_.R.getIndexInSequence=function(X,H){return X.findIndex(function(l){var b;return((b=_.f(l.command,_.HM))==null?void 0:b.videoId)===H})};
_.R.handlePrevButtonClick=function(X){var H=this,l,b;return _.h(function(U){l=H.getPlayablePreviousIndex();if(l===null)return U.return();H.gestureType=((b=X)==null?void 0:b.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";l===0&&(H.hidePreviousButtonImmediately=!0);if(H.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){H.scrollToVideoThrottle.fire(l,"auto")}),U.return();
H.scrollToVideoThrottle.fire(l);_.m5(U)})};
_.R.getPlayableNextIndex=function(){for(var X,H=this.index+1;H<(((X=this.shortsProcessedSequence)==null?void 0:X.length)||0);H++)if(!mD5().includes(H))return H;return null};
_.R.handleNextButtonClick=function(X,H){var l=this,b,U;return _.h(function(K){b=l.getPlayableNextIndex();if(b===null)return K.return();b===1&&(l.showPreviousButtonImmediately=!0);l.gestureType=((U=X)==null?void 0:U.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";H&&(l.gestureType=H);if(l.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){l.scrollToVideoThrottle.fire(b,"auto")}),K.return();
l.scrollToVideoThrottle.fire(b);_.m5(K)})};
_.R.handleReelNavigateCommand=function(X,H,l){(X=_.f(X,Bme))&&H&&X.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(l)};
_.R.loadVideo=function(X,H){var l=this;H=H===void 0?!1:H;if(X!==this.currentPlayerIndex){_.WF().dispatch(ORy(!1));if(this.isAd()&&!H){var b;(b=this.player)==null||b.notifyShortsAdSwipeEvent()}var U;(U=this.JSC$22110_cinematicController)==null||EzN(U);var K;(K=this.JSC$22110_cinematicController)==null||WEZ(K);b=X>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(b));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var w,d,B,q;H=X<0?(w=this.shortsProcessedPrevSequence)==null?void 0:(d=w[this.shortsProcessedPrevSequence.length+X])==null?void 0:d.command:(B=this.shortsProcessedSequence)==null?void 0:(q=B[X])==null?void 0:q.command;this.index=X;this.gestureType||(this.gestureType=b?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");H&&this.isVideoContentCommand(H)&&(this.ytComponentBehavior.resolveCommand(H,
{form:{createScreenConfig:{clickedVisualElement:b?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(H&&this.isNonVideoContentCommand(H)){this.currentEndpoint=H;this.data=void 0;w=_.lv();d=_.f(H,_.uy);var u,e;(d=(u=_.f(d==null?void 0:d.renderer,_.ES9))==null?void 0:(e=u.screenLoggingData)==null?void 0:e.screenVeType)&&_.jR(w,d);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(u=this.getActiveReelVideo(X))&&
u.appendChild(this.overlayContainer)}var y,V;u=_.P("web_shorts_early_continuation")?X>0&&((y=this.reelWatchSequenceResponse)==null?void 0:y.entries)&&X>=this.reelWatchSequenceResponse.entries.length-3:((V=this.reelWatchSequenceResponse)==null?void 0:V.entries)&&X===this.reelWatchSequenceResponse.entries.length-1;var p;if(((p=this.reelWatchSequenceResponse)==null?0:p.continuationEndpoint)&&u){var z,t,W={contentPlaybackContext:_.rW({},(t=_.f((z=this.currentEndpoint)==null?void 0:z.commandMetadata,_.Ip))==
null?void 0:t.url,window.location.href)};_.P("web_shorts_early_continuation")?this.continuationRequestPending||(_.Ss.addJob(function(){l.ytComponentBehavior.resolveCommand(l.reelWatchSequenceResponse.continuationEndpoint,{form:W})},8),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:W})}var G,r;
X=X===-(((G=this.reelWatchSequenceResponse)==null?void 0:(r=G.prevEntries)==null?void 0:r.length)||0);var Q,v;((Q=this.reelWatchSequenceResponse)==null?0:Q.prevContinuationEndpoint)&&((v=this.reelWatchSequenceResponse)==null?0:v.prevEntries)&&X&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.R.setMiniplayerPreview=function(X){X=(X===void 0?0:X)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var H,l,b=_.jJ().resolve(_.f9),U={shortsData:void 0,shortsPreviewThumbnail:X?(H=this.shortsProcessedSequence)==null?void 0:(l=H[X])==null?void 0:l.thumbnail:void 0};_.DT(b,U)};
_.R.updateTitle=function(X){var H,l;X=(X==null?0:X.adSlots)?"":(l=X==null?void 0:(H=X.videoDetails)==null?void 0:H.title)!=null?l:"";_.QX(this.hostElement,"yt-update-title",X)};
_.R.registerPanel=function(X){var H=_.jJ().resolve(_.d3);if(H){X=_.C(X.engagementPanels||[]);for(var l=X.next();!l.done;l=X.next()){l=l.value;var b=this.getPanelIdentifier(l.engagementPanelSectionListRenderer),U=void 0,K=void 0;(K=(U=H).registerPanelContent)==null||K.call(U,b,l)}}};
_.R.getPanelIdentifier=function(X){var H;return(X==null?void 0:(H=X.identifier)==null?void 0:H.tag)||(X==null?void 0:X.panelIdentifier)||(X==null?void 0:X.targetId)};
_.R.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;_.WF().dispatch(ORy(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=[];_.WF().dispatch(iRp(!1));
var X;(X=this.shortsController)!=null&&(X.dismissedIndices=[]);var H;(H=this.shortsController)!=null&&H.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.jJ().resolve(_.f9).close(!0)};
_.R.processAppendReelWatchSequenceContinuationEntriesAction=function(X){var H=this,l;(l=this.intersectionObserver)==null||l.disconnect();X=X.appendReelWatchSequenceContinuationEntriesAction;if(X==null?0:X.entries){var b;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.LJ(((b=this.reelWatchSequenceResponse)==null?void 0:b.entries)||[]),_.LJ(X.entries)),continuationEndpoint:X.continuationEndpoint})}else if(X==null?0:X.prevEntries){var U;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.LJ(((U=this.reelWatchSequenceResponse)==null?void 0:U.prevEntries)||[]),_.LJ(X.prevEntries)),prevContinuationEndpoint:X.prevContinuationEndpoint});_.Ss.addLowPriorityJob(function(){H.movePlayerToVideo(H.index);H.scrollToVideoThrottle.fire(H.index,"instant")})}else return;
_.Ss.addLowPriorityJob(function(){H.observeShorts()},100)};
_.R.processWatchSequence=function(X){var H=this;return X.map(function(l){l=l.command;return H.isVideoContentCommand(l)?{thumbnail:_.f(l,_.HM).thumbnail,command:l}:{command:l}})};
_.R.calculateIntersectionObserverThreshold=function(){var X=_.mh(this.hostElement).querySelector("ytd-reel-video-renderer"),H=1;(X==null?0:X.offsetHeight)&&(X==null?0:X.offsetWidth)&&(H=Math.min(X.offsetHeight,this.shortsContainer.offsetHeight)/X.offsetHeight*(Math.min(X.offsetWidth,this.shortsContainer.offsetWidth)/X.offsetWidth));return Math.round(H*.6*10)/10};
_.R.isVideoContentCommand=function(X){_.jJ().resolve(_.bW);return!!_.f(X,_.HM)};
_.R.isNonVideoContentCommand=function(X){_.jJ().resolve(_.bW);return!!_.f(X,_.uy)};
_.R.initCinematicController=function(){var X=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22110_cinematicController=new Sk(this.shortsCinematicContainer,this.player);var H,l=_.f((H=this.data)==null?void 0:H.background,hp);tkA(this.JSC$22110_cinematicController,l);DAA(this.JSC$22110_cinematicController,GcC(l));xAN(this.JSC$22110_cinematicController);_.Ss.addLowPriorityJob(function(){X.moveCinematicsToVideo()})}};
_.R.handleMiniplayerNavigateShorts=function(X){X==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():X==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.R.handleSignalActionToggleShortsPictureInPicture=function(){if(_.jJ().resolve(_.f9).pictureInPictureSupported()){var X=_.jJ().resolve(_.bW);if(_.P("web_shorts_pip")){var H=_.jJ().resolve(_.f9);X.isShortsPipActive()?H.deactivate():H.isMiniplayerActive()||(_.HW().shortsPipActivation=!0,_.z2l(H))}}else(X=this.player)==null||X.togglePictureInPicture()};
_.ja.Object.defineProperties(zJ.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.reelWatchSequenceResponse)!=null&&X.prevEntries)return this.processWatchSequence([].concat(_.LJ(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(_.LJ(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.reelWatchSequenceResponse)!=null&&X.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var X=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var H;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((H=this.shortsProcessedSequence)==null?void 0:H.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var l;H=_.f((l=this.firstShortsData)==null?void 0:l.command,_.HM);if(H==null||!H.videoId)return this.shortsProcessedSequence;l=this.getIndexInSequence(this.shortsSequence,
H.videoId);if(l!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=l,_.Ss.addLowPriorityJob(function(){X.scrollToVideoThrottle.fire(X.index,"auto");X.movePlayerToVideo(X.index)}));
return[].concat(_.LJ(this.shortsSequence))}this.shortsProcessedPrevSequence||_.oJ(_.Ss,function(){X.observeShorts()},100);
return[this.firstShortsData].concat(_.LJ(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var X=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;X&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(X)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 X,H;return this.index===((X=this.reelWatchSequenceResponse)==null?void 0:(H=X.entries)==null?void 0:H.length)}var l;return!((l=this.reelWatchSequenceResponse)==null?0:l.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var X;(X=this.delayedActiveIndexUpdateDebouncer)==null||X.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return this.isShortPlayable()||((H=_.f((X=this.data)==null?void 0:X.watchStatus,_.QhG))==null?void 0:(l=H.style)==null?void 0:l.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var X=this,H=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),l;if((this.data||H)&&(((l=this.data)==null?0:l.engagementPanels)||this.isAd()||H)){H=!1;this.activePanel="shorts-comments-panel";var b;l=_.C(((b=this.data)==null?void 0:b.engagementPanels)||[]);for(b=l.next();!b.done;b=l.next())if(this.getPanelIdentifier(b.value.engagementPanelSectionListRenderer)===this.activePanel){H=!0;break}if(this.isPersistentPanelActive){var U=
_.jJ().resolve(_.d3);_.Ss.addJob(function(){U.showPanel({identifier:X.activePanel,target:null})},0,100)}var K;
b=[].concat(_.LJ(Object.values(((K=this.data)==null?void 0:K.engagementPanels)||{})));K=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);l=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return K===void 0&&l===void 0||(K==null?0:K.isDisabled)||(l==null?void 0:l.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!H?(H=b==null?void 0:b.findIndex(function(w){var d,B;return((d=w.engagementPanelSectionListRenderer)==null?void 0:(B=d.identifier)==null?void 0:B.tag)==="shorts-comments-panel"}),H===-1||H===void 0||b!=null&&b.splice(H,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.XS("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.XS("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:_.XS("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.XS("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(_.LJ(Object.values(b||
{})))):b}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var X=this,H,l,b;if((H=this.playerData)==null?0:(l=H.playabilityStatus)==null?0:(b=l.errorScreen)==null?0:b.playerInterstitialRenderer)return _.Ss.addLowPriorityJob(function(){X.movePlayerToVideo(X.index)}),this.playerData.playabilityStatus.errorScreen;
var U,K;return((U=this.data)==null?void 0:U.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((K=this.data)==null?0:K.watchStatus)&&_.f(this.data.watchStatus,_.$IC)?(_.Ss.addLowPriorityJob(function(){X.movePlayerToVideo(X.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.ja.Object.defineProperties(zJ,{template:{configurable:!0,enumerable:!0,get:function(){if(BiY===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);BiY=X}X=BiY;return X}}});
zJ.prototype.onNextButtonDataChange=zJ.prototype.onNextButtonDataChange;zJ.prototype.onPrevButtonDataChange=zJ.prototype.onPrevButtonDataChange;zJ.prototype.onPersistentPanelActiveChanged=zJ.prototype.onPersistentPanelActiveChanged;zJ.prototype.lazyUpdateMiniplayerData=zJ.prototype.lazyUpdateMiniplayerData;zJ.prototype.onShortsPipActiveChanged=zJ.prototype.onShortsPipActiveChanged;zJ.prototype.setActiveIndex=zJ.prototype.setActiveIndex;zJ.prototype.graftNvcRenderer=zJ.prototype.graftNvcRenderer;
zJ.prototype.graftClientVisualElements=zJ.prototype.graftClientVisualElements;zJ.prototype.onActiveChanged=zJ.prototype.onActiveChanged;zJ.prototype.onShortsDismiss=zJ.prototype.onShortsDismiss;zJ.prototype.onShortUndoDismiss=zJ.prototype.onShortUndoDismiss;zJ.prototype.playerDataChanged=zJ.prototype.playerDataChanged;zJ.prototype.afterPlayerStarted=zJ.prototype.afterPlayerStarted;zJ.prototype.unhideCurrentOverlay=zJ.prototype.unhideCurrentOverlay;zJ.prototype.onServiceRequestCompleted=zJ.prototype.onServiceRequestCompleted;
zJ.prototype.engagementPanelsChanged=zJ.prototype.engagementPanelsChanged;zJ.prototype.onFullscreenChange=zJ.prototype.onFullscreenChange;zJ.prototype.onResize=zJ.prototype.onResize;zJ.prototype.setFirstShortsData=zJ.prototype.setFirstShortsData;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],zJ.prototype,"ytComponentBehavior",void 0);_.T([_.k(Hw.YtPageBehavior),_.N("design:type",Object)],zJ.prototype,"ytPageBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],zJ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.$s),_.N("design:type",Object)],zJ.prototype,"ironResizableBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],zJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uf),_.N("design:type",Object)],zJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],zJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],zJ.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"playerData",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"reelWatchSequenceResponse",void 0);
_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"cachedReelWatchSequenceResponse",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"currentEndpoint",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"nextButtonData",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"prevButtonData",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"isPreviousPageShorts",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"index",void 0);
_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"delayedActiveIndex",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"playablePreviousIndex",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"player",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"isPlayerPaused",void 0);_.T([_.g({selector:pFN}),_.N("design:type",Object)],zJ.prototype,"isPlayerStarted",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"intersectionObserver",void 0);
_.T([_.g(),_.N("design:type",Number)],zJ.prototype,"cinematicsInitializeJobId",void 0);_.T([_.g(),_.N("design:type",Number)],zJ.prototype,"updateMiniplayerDataJobId",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"fitToVisibleBounds",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"pageSubtype",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],zJ.prototype,"enablePreviousContinuation",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zJ.prototype,"shortsPipEnabled",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zJ.prototype,"isDark",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zJ.prototype,"shortsViewTransitions",void 0);_.T([_.g({selector:_.QE,reflectToAttribute:!0}),_.N("design:type",Object)],zJ.prototype,"isFullscreen",void 0);
_.T([_.g({selector:_.Te,reflectToAttribute:!0}),_.N("design:type",Object)],zJ.prototype,"isShortsPipActive",void 0);_.T([_.A2("#shorts-inner-container"),_.N("design:type",HTMLElement)],zJ.prototype,"shortsInnerContainer",void 0);_.T([_.A2("#back-nav-button ytd-button-renderer"),_.N("design:type",_.ah)],zJ.prototype,"backNavButton",void 0);_.T([_.A2("#shorts-container"),_.N("design:type",HTMLElement)],zJ.prototype,"shortsContainer",void 0);
_.T([JD("error-screen"),_.N("design:type",HTMLElement)],zJ.prototype,"errorScreenContainer",void 0);_.T([JD("player"),_.N("design:type",Object)],zJ.prototype,"playerElement",void 0);_.T([JD("shorts-cinematic-container"),_.N("design:type",HTMLElement)],zJ.prototype,"shortsCinematicContainer",void 0);_.T([JD("initial-player-container"),_.N("design:type",HTMLElement)],zJ.prototype,"initialPlayerContainer",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"buttonOverride",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zJ.prototype,"anchoredPanelActive",void 0);_.T([_.g(),_.N("design:type",String)],zJ.prototype,"activePanel",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"isActive",void 0);_.T([_.g({selector:f8C,reflectToAttribute:!0}),_.N("design:type",Object)],zJ.prototype,"smallScreenPersistentPanel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zJ.prototype,"isPersistentPanelActive",void 0);
_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"smallScreenSqueezeBack",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"enableScrollIntoViewCenter",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zJ.prototype,"extractOverlay",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zJ.prototype,"useAspectRatio",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"continuationRequestPending",void 0);
_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"shortsController",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"panelContainer",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"overlayContainer",void 0);_.T([_.g(),_.N("design:type",Array)],zJ.prototype,"carouselContainers",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"isShortsInitialized",void 0);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"firstShortsData",void 0);
_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"firstShortsDataModel",void 0);_.T([_.x("reelWatchSequenceResponse"),_.N("design:type",Object),_.N("design:paramtypes",[])],zJ.prototype,"prevShortsSequence",null);_.T([_.x("data","prevShortsSequence"),_.N("design:type",Object),_.N("design:paramtypes",[])],zJ.prototype,"shortsProcessedPrevSequence",null);_.T([_.x("reelWatchSequenceResponse"),_.N("design:type",Object),_.N("design:paramtypes",[])],zJ.prototype,"shortsSequence",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"setFirstShortsData",null);_.T([_.x("data","shortsSequence","firstShortsData"),_.N("design:type",Object),_.N("design:paramtypes",[])],zJ.prototype,"shortsProcessedSequence",null);
_.T([_.g({reflectToAttribute:!0}),_.x("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zJ.prototype,"isUpArrowHidden",null);_.T([_.g({reflectToAttribute:!0}),_.x("reelWatchSequenceResponse","index","endOfNextContinuation"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zJ.prototype,"isDownArrowHidden",null);
_.T([_.g(),_.x("index"),_.N("design:type",Number),_.N("design:paramtypes",[])],zJ.prototype,"activeIndex",null);_.T([_.x("isShortPlayable","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zJ.prototype,"shouldRenderOfflineContent",null);_.T([_.Le("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"onResize",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],zJ.prototype,"anchoredEngagementPanels",null);
_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"watchWhileEngagementPanels",void 0);_.T([_.Yh("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"onFullscreenChange",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"engagementPanelsChanged",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],zJ.prototype,"onServiceRequestCompleted",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"unhideCurrentOverlay",null);_.T([_.Yh("isPlayerStarted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"afterPlayerStarted",null);
_.T([_.x("playerData","reelWatchSequenceResponse","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],zJ.prototype,"errorScreen",null);_.T([_.x("errorScreen"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],zJ.prototype,"hasError",null);_.T([_.Yh("playerData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],zJ.prototype,"playerDataChanged",null);
_.T([_.Le("yt-dismissible-item-undo-feedback"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"onShortUndoDismiss",null);_.T([_.Le("yt-disable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],zJ.prototype,"onShortsDismiss",null);_.T([_.oi("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"onActiveChanged",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"graftClientVisualElements",null);_.T([_.Yh("currentPlayerIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"graftNvcRenderer",null);_.T([_.Yh("index"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"setActiveIndex",null);
_.T([_.Yh("isShortsPipActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"onShortsPipActiveChanged",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"lazyUpdateMiniplayerData",null);_.T([_.g(),_.N("design:type",Object)],zJ.prototype,"onOverlayDensityChanged",void 0);
_.T([_.Yh("isPersistentPanelActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"onPersistentPanelActiveChanged",null);_.T([_.Yh("index","data","isUpArrowHidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"onPrevButtonDataChange",null);_.T([_.Yh("index","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zJ.prototype,"onNextButtonDataChange",null);
_.T([_.sq({is:"ytd-shorts"})],zJ);var nAx;var kme;var x1y;var nm=function(){return _.a.apply(this,arguments)||this};
_.S(nm,_.a);nm.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],nm.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],nm);
_.O(nm,"ytd-compact-tvfilm-entry-point-renderer",function(){if(x1y!==void 0)return x1y;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return x1y=X},{mode:1});var D1d;var tWa;var WH$;var kc=function(){return _.a.apply(this,arguments)||this};
_.S(kc,_.a);kc.prototype.ready=function(){this.initializeDefs()};
kc.prototype.initializeDefs=function(){var X=this.meta.byKey("yt-icons"),H=_.mh(X).querySelector("#star"),l=_.mh(X).querySelector("#star_half");X=_.mh(X).querySelector("#star_border");H&&this.defs.appendChild(H.cloneNode(!0));l&&this.defs.appendChild(l.cloneNode(!0));X&&this.defs.appendChild(X.cloneNode(!0))};
kc.prototype.percentChanged=function(){for(var X=this.rating;X.firstChild;)X.removeChild(X.firstChild);var H=Math.round(this.percent/10);X=Math.floor(H/2);H%=2;var l=5-X-H;this.appendStars("star",X,0);this.appendStars("star_half",H,X);this.appendStars("star_border",l,X+H)};
kc.prototype.appendStars=function(X,H,l){for(var b=0;b<H;b++){var U=(18+this.spacing)*(b+l),K=document.createElementNS("http://www.w3.org/2000/svg","use");eeC(K,"#"+X);K.setAttribute("x",""+U);K.setAttribute("y","0");this.rating.appendChild(K)}};
kc.prototype.percentChanged=kc.prototype.percentChanged;_.T([_.A2("#defs"),_.N("design:type",HTMLElement)],kc.prototype,"defs",void 0);_.T([_.A2("#rating"),_.N("design:type",HTMLElement)],kc.prototype,"rating",void 0);_.T([_.g(),_.N("design:type",Number)],kc.prototype,"percent",void 0);_.T([_.g({value:6}),_.N("design:type",Number)],kc.prototype,"spacing",void 0);_.T([_.g({value:_.bd.create("iron-meta",{type:"iconset"})}),_.N("design:type",_.lc)],kc.prototype,"meta",void 0);
_.T([_.Yh("percent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kc.prototype,"percentChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-ratings"})],kc);
_.O(kc,"ytd-ratings",function(){if(WH$!==void 0)return WH$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return WH$=X},{mode:1});var EAC=function(){return _.a.apply(this,arguments)||this};
_.S(EAC,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],EAC.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],EAC.prototype,"data",void 0);_.T([_.sq({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],EAC);
_.O(EAC,"ytd-offer-review-renderer",function(){if(tWa!==void 0)return tWa;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return tWa=X},{mode:1});var xc=function(){var X=_.a.apply(this,arguments)||this;X.badges=[{textBadge:{label:_.xM("CC")}}];return X};
_.S(xc,_.a);_.R=xc.prototype;_.R.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.R.dataChanged=function(){var X=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(X&&X.commandMetadata&&_.f(X.commandMetadata,_.Ub)&&_.f(X.commandMetadata,_.Ub).fireAutomatically)_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}});else{var H;X&&((H=_.f(X,_.Ub))==null?0:H.fireAutomatically)&&_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}})}};
_.R.isEmptyContent=function(X){return this.isStorefrontEntryPointEmpty(X)&&this.shouldHideOfferModule(X)};
_.R.isStorefrontEntryPointEmpty=function(X){return!X||!X.storefrontEntryPoint};
_.R.shouldHideOfferModule=function(X){return!!X.hideVideoDetails};
_.R.isOfferModuleNavigationInactive=function(X){return!X.navigationEndpoint&&!X.serviceEndpoint};
_.R.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.jJ().resolve(_.Vr).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
xc.prototype.dataChanged=xc.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],xc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xc.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.N("design:type",Boolean)],xc.prototype,"hidden",void 0);
_.T([_.g(),_.N("design:type",Object)],xc.prototype,"badges",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xc.prototype,"dataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],xc);
_.O(xc,"ytd-movie-offer-module-renderer",function(){if(D1d!==void 0)return D1d;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return D1d=X},{mode:1});var gAZ;var Gme=function(){return _.a.apply(this,arguments)||this};
_.S(Gme,_.a);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Gme.prototype,"componentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Gme.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Gme);
_.O(Gme,"ytd-media-masthead-renderer",function(){if(gAZ!==void 0)return gAZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return gAZ=X},{mode:1});var ajl;_.gC(_.T85,"course-metadata-view-model",{props:{data:_.ta,isOverlay:_.ta}});var Dx=function(){var X=_.a.apply(this,arguments)||this;X.isMetadataVisible=!1;X.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return X};
_.S(Dx,_.a);_.R=Dx.prototype;
_.R.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"}}}}};
_.R.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.R.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.R.expanderChanged=function(){var X;if((X=this.data)==null?0:X.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.R.isExpandButtonToggled=function(){var X,H;return(H=_.f((X=this.data)==null?void 0:X.expandMetadataButton,_.SR))==null?void 0:H.isToggled};
_.R.onVisibilityButtonClick=function(){var X;if((X=this.data)==null?0:X.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.R.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Dx.prototype.expanderChanged=Dx.prototype.expanderChanged;Dx.prototype.dataChanged=Dx.prototype.dataChanged;Dx.prototype.descriptionChanged=Dx.prototype.descriptionChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Dx.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Dx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k([_.rh.YtActionHandlerBehavior]),_.N("design:type",Object)],Dx.prototype,"actionHandlerBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],Dx.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Dx.prototype,"isMetadataVisible",void 0);_.T([_.A2("#expander"),_.N("design:type",Object)],Dx.prototype,"expander",void 0);_.T([_.Yh("data.description"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dx.prototype,"descriptionChanged",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dx.prototype,"dataChanged",null);_.T([_.Yh("isMetadataVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dx.prototype,"expanderChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Dx);
_.O(Dx,"ytd-tvfilm-offer-module-renderer",function(){if(ajl!==void 0)return ajl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ajl=X},{mode:2});var Zo5;var tA=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return X};
_.S(tA,_.a);tA.prototype.dataChanged=function(){this.hostElement.hidden=!1};
tA.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
tA.prototype.onThumbnailTap=function(X){this.data&&this.data.serviceEndpoint&&(_.jJ().resolve(_.Vr).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),X.stopPropagation())};
tA.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
tA.prototype.dataChanged=tA.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tA.prototype,"rendererBehaviors",void 0);_.T([_.k([_.rh.YtActionHandlerBehavior]),_.N("design:type",Object)],tA.prototype,"actionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],tA.prototype,"data",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tA.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],tA);
_.O(tA,"ytd-unlimited-offer-module-renderer",function(){if(Zo5!==void 0)return Zo5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Zo5=X},{mode:1});var iol;var vAe;var Ws=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return X};
_.S(Ws,_.a);Ws.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Ws.prototype.handleRelatedChipCommand=function(X){X=_.f(X,O3l);var H=X.contents;H?_.NG(this.hostElement,"yt-item-section-replace-action",[H,X.targetSectionIdentifier]):_.NG(this.hostElement,"yt-item-section-continuation-action",[X.continuationData,X.targetSectionIdentifier])};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ws.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Ws.prototype,"actionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ws.prototype,"data",void 0);_.T([_.qR({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Ws);
_.O(Ws,"yt-related-chip-cloud-renderer",function(){if(vAe===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;iol===void 0&&(iol=document.createElement("template"));var b=iol;l.call(H,b.content.cloneNode(!0),X.content.firstChild);vAe=X}X=vAe;return X},{mode:2});var EP=function(){var X=_.a.apply(this,arguments)||this;X.isTwoColumns=!0;X.watchFeedBigThumbs=_.P("kevlar_watch_feed_big_thumbs");X.watchFeedBigThumbsOnLockup=_.P("web_watch_next_big_thumbs");X.watchNextGridHideChips=_.P("kevlar_watch_grid_hide_chips");X.eligibleToSwitchToGrid=!0;X.disableShortsShelfHeightOverride=_.P("web_shorts_wn_shelf_ratio_tuning");X.isWatchNextGrid=!1;X.reuseComponents=!_.P("kevlar_watch_grid");X.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return X};
_.S(EP,_.a);_.R=EP.prototype;
_.R.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:!_.P("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}}};
_.R.getItemsPath=function(){return"data.results"};
_.R.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.R.created=function(){this.ytLazyListBehavior.initialCount=1};
_.R.ready=function(){_.j4(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.R.resultsChanged=function(){if(this.data&&this.data.results){for(var X=this.data.results,H=null,l=null,b=0;b<X.length;b++)X[b].relatedChipCloudRenderer?H=X[b].relatedChipCloudRenderer:X[b].itemSectionRenderer&&(l=X[b].itemSectionRenderer);if(H&&l)for(this.set("data.continuations",[]),X=_.f(H.content,_.TIH).chips,H=0;H<X.length;H++)if(b=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",X[H]),b.loadCached||!b.contents){b.contents=l.contents;break}}};
_.R.dataChanged=function(){var X=this,H;if((H=this.data)!=null&&H.results&&this.hasAllowedInstreamAd(this.playerData)){if(H=this.data.results.filter(function(d){return!!d.promotedSparklesWebRenderer})){for(var l=0;l<H.length;l++){var b=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",H[l]);
if(b)for(var U=0;U<b.length;U++)b[U]&&b[U].baseUrl&&_.aw(b[U].baseUrl)}this.set("data.results",this.data.results.filter(function(d){return!d.promotedSparklesWebRenderer}))}if(H=this.data.results.filter(function(d){return!!X.getSparklesAd(d)})){H=_.C(H);
for(U=H.next();!U.done;U=H.next())if(b=l=void 0,U=(l=this.getSparklesAd(U.value))==null?void 0:(b=l.errorCommand)==null?void 0:b.loggingUrls)for(l=_.C(U),b=l.next();!b.done;b=l.next())(b=b.value)&&b.baseUrl&&_.aw(b.baseUrl);var K,w;this.set("data.results",(K=this.data)==null?void 0:(w=K.results)==null?void 0:w.filter(function(d){return!d.adSlotRenderer}))}}};
_.R.getSparklesAd=function(X){var H,l;X=_.f((H=X.adSlotRenderer)==null?void 0:(l=H.fulfillmentContent)==null?void 0:l.fulfilledLayout,_.RMY);return _.f(X==null?void 0:X.renderingContent,TFY)};
_.R.hasAllowedInstreamAd=function(X){X=this.get("adPlacements",X)||[];for(var H=0;H<X.length;H++){var l=this.get("adPlacementRenderer.config.adPlacementConfig",X[H]);if(l&&l.suppressDisplayAd)return!0}return!1};
_.R.computeHideUnlimitedOfferModule=function(X,H){return X&&X.offerModule&&H&&X.offerModule.unlimitedOfferModuleRenderer&&X.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(H)?!0:!1};
_.R.hideUnlimitedOfferModuleChanged=function(){var X=_.mh(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");X&&(X.hidden=this.hideUnlimitedOfferModule)};
_.R.updateLockupContainerTypes=function(X){if(this.eligibleToSwitchToGrid){var H;(H=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||H.forEach(function(l){l.containerType=X})}};
_.R.computeHideTvfilmOfferModule=function(X,H){var l,b;return!!((X==null?0:(l=X.offerModule)==null?0:(b=l.tvfilmOfferModuleRenderer)==null?0:b.clientShouldSuppressIfCompanionAdDisplayed)&&H&&this.hasCompanionAds(H))};
_.R.hideTvfilmOfferModuleChanged=function(){var X=_.mh(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");X&&(X.hidden=this.hideTvfilmOfferModule)};
_.R.hasCompanionAds=function(X){X=this.get("adPlacements",X)||[];for(var H=0;H<X.length;H++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",X[H]))return!0;var l=void 0,b=void 0,U=void 0;if(!_.P("web_watch_top_banner_companion_check_killswitch")&&((l=X[H])==null?0:(b=l.adPlacementRenderer)==null?0:(U=b.renderer)==null?0:U.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.R.hasSuppressedResults=function(X){return X==null?!0:X.filter(function(H){return!H.continuationItemRenderer&&!H.compactPromotedVideoRenderer&&!H.promotedSparklesWebRenderer}).length===0};
_.R.computeShowButton=function(X,H){return this.isWatchNextGrid?X:X||this.hasSuppressedResults(H)};
_.R.showButtonChanged=function(){if(this.isWatchNextGrid){var X=_.mh(this.hostElement).querySelector("ytd-rich-grid-renderer");X&&this.showButton!==null&&(X.continuationShowButton=this.showButton)}else{X=_.mh(this.hostElement).querySelector("yt-next-continuation");var H=_.mh(this.hostElement).querySelector("ytd-continuation-item-renderer"),l=_.mh(this.hostElement).querySelector("ytd-item-section-renderer");X&&(X.showButton=this.showButton);H&&(H.showButton=this.showButton);l&&(l.continuationShowButton=
this.showButton)}};
_.R.continuationTap=function(X){var H;if(((H=this.data)==null?void 0:H.continuations)!=null&&X.target.tagName==="TP-YT-PAPER-BUTTON")for(X=this.data.continuations,H=0;H<X.length;H++)X[H].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(X[H].nextContinuationData||{})};
_.R.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("shown-items-changed",this.shownItems))};
_.ja.Object.defineProperties(EP.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 X;return!((X=this.shownItems)==null||!X.some(function(H){return!!H.lockupViewModel||H.compactVideoRenderer}))}}});
EP.prototype.shownItemsChangedForBinding=EP.prototype.shownItemsChangedForBinding;EP.prototype.showButtonChanged=EP.prototype.showButtonChanged;EP.prototype.hideTvfilmOfferModuleChanged=EP.prototype.hideTvfilmOfferModuleChanged;EP.prototype.updateLockupContainerTypes=EP.prototype.updateLockupContainerTypes;EP.prototype.hideUnlimitedOfferModuleChanged=EP.prototype.hideUnlimitedOfferModuleChanged;EP.prototype.dataChanged=EP.prototype.dataChanged;EP.prototype.resultsChanged=EP.prototype.resultsChanged;
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.aI.YtLazyListBehavior),_.N("design:type",Object)],EP.prototype,"ytLazyListBehavior",void 0);_.T([_.k(_.ge.YtNextContinuationBehavior),_.N("design:type",Object)],EP.prototype,"ytNextContinuationBehavior",void 0);
_.T([_.k(_.EO),_.N("design:type",Object)],EP.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],EP.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],EP.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],EP.prototype,"playerData",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],EP.prototype,"autoFill",void 0);_.T([_.g({value:60}),_.N("design:type",Number)],EP.prototype,"targetFramerate",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],EP.prototype,"isTwoColumns",void 0);_.T([_.g(),_.N("design:type",Object)],EP.prototype,"shownItems",void 0);_.T([_.g({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.N("design:type",Boolean)],EP.prototype,"hideUnlimitedOfferModule",void 0);_.T([_.g({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.N("design:type",Boolean)],EP.prototype,"hideTvfilmOfferModule",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],EP.prototype,"watchFeedBigThumbs",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],EP.prototype,"watchFeedBigThumbsOnLockup",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],EP.prototype,"watchNextGridHideChips",void 0);_.T([_.g(),_.N("design:type",Object)],EP.prototype,"eligibleToSwitchToGrid",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],EP.prototype,"disableShortsShelfHeightOverride",void 0);_.T([_.g({selector:_.sm,reflectToAttribute:!0}),_.N("design:type",Object)],EP.prototype,"isGridViewEnabled",void 0);_.T([_.g({selector:_.PPL,reflectToAttribute:!0}),_.N("design:type",Object)],EP.prototype,"isSwatcherooActive",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],EP.prototype,"showMoreButton",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],EP.prototype,"isWatchNextGrid",void 0);_.T([_.g({computed:"computeShowButton(showMoreButton, data.results)"}),_.N("design:type",Boolean)],EP.prototype,"showButton",void 0);_.T([_.oi("data.results.*"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EP.prototype,"resultsChanged",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EP.prototype,"dataChanged",null);_.T([_.Yh("hideUnlimitedOfferModule"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EP.prototype,"hideUnlimitedOfferModuleChanged",null);_.T([_.x("isGridViewEnabled","containsLockups","data"),_.g({reflectToAttribute:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],EP.prototype,"lockupContainerType",null);
_.T([_.Yh("lockupContainerType","data"),_.N("design:type",Function),_.N("design:paramtypes",[Number]),_.N("design:returntype")],EP.prototype,"updateLockupContainerTypes",null);_.T([_.Yh("hideTvfilmOfferModule"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EP.prototype,"hideTvfilmOfferModuleChanged",null);_.T([_.Yh("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EP.prototype,"showButtonChanged",null);
_.T([_.Yh("shownItems"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EP.prototype,"shownItemsChangedForBinding",null);_.T([_.x("shownItems"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],EP.prototype,"containsLockups",null);
_.O(EP,"ytd-watch-next-secondary-results-renderer",function(){if(kme===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);kme=X}X=kme;return X},{mode:1});var OoC;var g0=function(){var X=_.a.apply(this,arguments)||this;X.currentPageUrl="";X.baseUrl="";X.isHiddenByUser=null;X.hidden=!1;X.showAboveScrim=!1;X.watchNextGrid=_.P("kevlar_watch_grid");X.modernButtons=_.P("web_modern_buttons");X.roundedContainer=!0;X.noBorder=!1;X.roundBackground=!_.P("live_chat_round_background_killswitch");X.overflowHideChat=_.P("live_chat_overflow_hide_chat");X.forceDarkTheme=!1;X.theaterWatchWhile=!1;X.isListeningForPlayerProgress=!1;X.JSC$22164_playerEvents=new Map;X.isFrameReady=
!1;X.player=null;X.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 X};
_.S(g0,_.a);_.R=g0.prototype;_.R.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.NG(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.R.created=function(){var X=this;this.handleIframeEventListener=function(H){X.handleIframeEvent(H)};
this.handleKeyboardEventListener=function(H){X.handleKeyboardEvent(H)};
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)};
_.R.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()};
_.R.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};
_.R.computeBaseUrl=function(X){var H="/live_chat";this.isChatReplay()&&(H="/live_chat_replay");return _.NQ(_.Tj(_.QD(_.iI(X),H),null),"").toString()};
_.R.dataChanged=function(){_.P("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.R.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var X=this.url;if(this.isChatReplay()&&this.player){var H=Math.floor(this.player.getProgressState().current*1E3);X=_.OT(_.iI(X),"playerOffsetMs",H.toString()).toString()}H=this.chatframe;try{var l=X==="about:blank"?_.P1F:_.Yn(X),b=H.contentDocument.location,U=_.X3(l);U!==void 0&&b.replace(U)}catch(K){H.src=X}}};
_.R.collapsedChanged=function(){_.QX(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.R.handleIframeEvent=function(X){if(X&&this.baseUrl.startsWith(X.origin)&&X.source===this.chatframe.contentWindow&&_.r8(X.data))if(X.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(X);else if(X.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(X.data["yt-show-feedback-dialog"]){var H=_.jJ().resolve(_.c$(_.Sw5));if(H){var l=X.ports,b;l&&l.length&&(b=function(){l[0].postMessage({})});
X=X.data["yt-show-feedback-dialog"];H.showFeedbackDialog(X.customProductData,X.feedbackContent,b,X.bucket)}}else if(X.data["yt-show-survey"])_.QX(this.hostElement,"yt-show-survey",X.data["yt-show-survey"]);else if(X.data["yt-purchase-membership"])_.jJ().resolve(_.Vr).resolveCommand(X.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(X.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(X.data["yt-tunnel-out-live-service-request"]);else if(X.data["yt-user-activity"])_.rn();
else if(X.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(X.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(X.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(X.data["yt-open-popup"]);else if(X.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(X.data["yt-log-flow-logging-event-command"]);else if(X.data["yt-hide-live-chat"])this.onShowHideChat();else X.data["yt-report-moderation-state-log"]&&
this.player&&(H={cpn:this.player.getVideoData().cpn},_.Sh("liveChatBeingModerated",H))};
_.R.attachLiveChatResponseVeTrackingParams=function(X){X=_.$l(X);var H=_.Bi(),l=_.ij("liveChatRenderer.trackingParams",this.data);H&&l&&_.pA(H,_.$l(l),X)};
_.R.handleBuyflowMessages=function(X){var H=X.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,l=X.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,b=X.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.FHy(_.QU(_.Dc),H.replace(/-/g,"+").replace(/_/g,"/"),function(U){X.ports[0].postMessage({success:!0,buyFlowResponse:U})},void 0,function(U){X.ports[0].postMessage({success:!1,
error:U&&U.message||"Buyflow rejected without error."})},_.oO().get("hl"),void 0,function(){X.ports[0].postMessage({closed:!0})},l,b)};
_.R.setupPlayerProgressRelay=function(){var X=this;if(!this.isListeningForPlayerProgress){var H=_.ZH();H!=null&&H.getPlayerPromise&&(H.getPlayerPromise().then(function(l){X.playerApiReady(l)}),this.isListeningForPlayerProgress=!0)}};
_.R.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.R.playerApiReady=function(X){this.setPlayer(X)};
_.R.playerProgressHandler=function(){if(this.player){var X=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":X.current})}};
_.R.playerAdStartHandler=function(X){this.postToContentWindow({"yt-player-ad-start":X})};
_.R.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.R.playerStateChangeHandler=function(X){this.postToContentWindow({"yt-player-state-change":X})};
_.R.setPlayer=function(X){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22164_playerEvents);X&&(this.player=X,this.ytPlayerListenerBehavior.listenToPlayerEvents(X,this.JSC$22164_playerEvents),_.QX(this.hostElement,"player-api-ready"))};
_.R.liveChatPageUrl=function(X,H,l,b){return!l||H?"about:blank":l.liveChatRenderer?(H=_.iI(this.currentPageUrl).JSC$10342_queryData_,BzN(H),X=_.iI(X),H.add("continuation",l.liveChatRenderer.continuations[0].reloadContinuationData.continuation),l=_.PM()==="USER_INTERFACE_THEME_DARK",(b||l)&&H.add("dark_theme","true"),_.Tj(X,H),b=_.iI(X.toString()),l=b.JSC$10342_queryData_,"SESSION_INDEX"in _.W$&&(l.add("authuser",_.gx("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.W$&&l.add("pageId",_.gx("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.W$&&l.add("sdc",_.gx("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),b.toString()):""};
_.R.isCollapsed=function(X,H){return H!==null?H:this.isChatReplay()||X&&X.conversationBarRenderer&&X.conversationBarRenderer.availabilityMessage?!0:X?X.liveChatRenderer?X.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.P("live_chat_hide_premiere_replay_message")||X.conversationBarRenderer&&X.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.R.isHidden=function(X,H,l){var b=H&&H.conversationBarRenderer&&H.conversationBarRenderer.availabilityMessage,U=H&&H.liveChatRenderer&&H.liveChatRenderer.showHideButton,K=H&&H.liveChatRenderer&&H.liveChatRenderer.showButton;return l&&X&&!b&&!K||!l&&X&&!b&&!U?!0:H&&H.liveChatRenderer&&H.liveChatRenderer.initialDisplayState?H.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.R.computeButtonOverride=function(X,H){if(X&&H)return{type:"outline"}};
_.R.setCollapsedState=function(X){_.f(X,_.h6F)&&((this.isHiddenByUser=!!_.f(X,_.h6F).collapsed)||_.TP(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.R.forwardReduxActionToIframe=function(X){this.postToContentWindow({"yt-live-chat-forward-redux-action":X})};
_.R.onLoopRangeChange=function(X){this.showAboveScrim=!(X==null||!X.postId)};
_.R.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.R.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.R.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.R.sendDarkThemePostMessage=function(X){this.postToContentWindow({"yt-live-chat-set-dark-theme":X})};
_.R.onLiveChatBuyFlowCallback=function(X){this.postToContentWindow({"yt-live-chat-buy-flow-callback":X})};
_.R.handleKeyboardEvent=function(X){(0,_.Bb.containsValue)(tU5,X.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:X.type,keyCode:X.keyCode}})};
_.R.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.R.postToContentWindow=function(X){if(this.isFrameReady)try{var H=window.location.protocol+"//"+window.location.host,l;(l=this.chatframe)!=null&&l.contentWindow?this.chatframe.contentWindow.postMessage(X,H):_.x2(new _.qd("Tried posting a message to an iframe with no content window",X))}catch(b){_.n2(b)}};
_.R.shouldHideChatFrame=function(X){return X&&_.P("hide_live_chat_button_when_collapsed")};
_.ja.Object.defineProperties(g0.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.P("live_chat_overflow_hide_chat")||_.P("web_watch_chat_hide_button_killswitch"))return _.P("live_chat_overflow_hide_chat");var X,H,l,b;return!!((X=this.data)==null?0:(H=X.liveChatRenderer)==null?0:(l=H.header)==null?0:(b=l.liveChatHeaderRenderer)==null?0:b.collapseButton)}}});
g0.prototype.collapsedChanged=g0.prototype.collapsedChanged;g0.prototype.urlChanged=g0.prototype.urlChanged;g0.prototype.dataChanged=g0.prototype.dataChanged;g0.prototype.onShowHideChat=g0.prototype.onShowHideChat;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],g0.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],g0.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.n0.YtPlayerListenerBehavior),_.N("design:type",_.kW)],g0.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.k(_.cr.YtOpenPopupBehavior),_.N("design:type",Object)],g0.prototype,"ytOpenPopupBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],g0.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],g0.prototype,"currentPageUrl",void 0);
_.T([_.g({computed:"computeBaseUrl(currentPageUrl,data)"}),_.N("design:type",Object)],g0.prototype,"baseUrl",void 0);_.T([_.g({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.N("design:type",String)],g0.prototype,"url",void 0);_.T([_.g(),_.N("design:type",Object)],g0.prototype,"isHiddenByUser",void 0);_.T([_.g({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.N("design:type",Object)],g0.prototype,"hidden",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.N("design:type",Boolean)],g0.prototype,"collapsed",void 0);_.T([_.g({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.N("design:type",Boolean)],g0.prototype,"hideChatFrame",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],g0.prototype,"showAboveScrim",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],g0.prototype,"watchNextGrid",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],g0.prototype,"modernButtons",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],g0.prototype,"roundedContainer",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],g0.prototype,"noBorder",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],g0.prototype,"roundBackground",void 0);
_.T([_.g({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.N("design:type",Object)],g0.prototype,"toggleButtonOverride",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],g0.prototype,"overflowHideChat",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],g0.prototype,"forceDarkTheme",void 0);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],g0.prototype,"enableShowWithoutHideChatButton",null);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],g0.prototype,"theaterWatchWhile",void 0);_.T([_.A2("#chatframe"),_.N("design:type",HTMLIFrameElement)],g0.prototype,"chatframe",void 0);_.T([_.Le("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g0.prototype,"onShowHideChat",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g0.prototype,"dataChanged",null);
_.T([_.Yh("url"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g0.prototype,"urlChanged",null);_.T([_.Yh("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g0.prototype,"collapsedChanged",null);_.T([_.sq({is:"ytd-live-chat-frame",disableElementRegistration:!0})],g0);
_.O(g0,"ytd-live-chat-frame",function(){if(OoC!==void 0)return OoC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return OoC=X},{mode:1});var m1y;var GJ=function(){var X=_.a.apply(this,arguments)||this;X.lastRenderedPanelIds=new Set;X.visiblePanels=[];X.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return X};
_.S(GJ,_.a);_.R=GJ.prototype;_.R.dataChanged=function(){if(this.data){for(var X=[],H=_.C(this.data),l=H.next();!l.done;l=H.next()){l=l.value;var b=void 0,U=void 0,K=(b=l)==null?void 0:(U=b.engagementPanelSectionListRenderer)==null?void 0:U.visibility;U=b=void 0;((b=l)==null?0:(U=b.engagementPanelSectionListRenderer)==null?0:U.targetId)&&K!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&X.push(l)}this.visiblePanels=X}else this.visiblePanels=[]};
_.R.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}}};
_.R.withoutVisiblePanelById=function(X){return this.visiblePanels.filter(function(H){var l;return((l=H.engagementPanelSectionListRenderer)==null?void 0:l.targetId)!==X})};
_.R.onYtChangeEngagementPanelVisibilityAction=function(X){var H=this,l=_.f(X,_.FAG);if(this.data&&(l==null?0:l.targetId)&&(l==null?0:l.visibility)){var b,U=(b=this.data.find(function(w){var d;return((d=w.engagementPanelSectionListRenderer)==null?void 0:d.targetId)===l.targetId}))==null?void 0:b.engagementPanelSectionListRenderer;
if(U){var K=this.withoutVisiblePanelById(l.targetId);l.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(X=this.data.find(function(w){var d;return((d=w.engagementPanelSectionListRenderer)==null?void 0:d.targetId)===l.targetId}))&&(K=[X].concat(_.LJ(K)));
this.hideDelayMs&&l.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&K.length===0?_.Ss.addJob(function(){U.visibility=l.visibility;H.visiblePanels=K},10,this.hideDelayMs):(U.visibility=l.visibility,this.visiblePanels=K);
_.NG(this.hostElement,"yt-engagement-panels-visible-changed",[K])}}};
_.R.onRendererstamperFinished=function(){var X=new Set(this.visiblePanels.map(function(H){var l;return(l=H.engagementPanelSectionListRenderer)==null?void 0:l.targetId}));
this.handlePanelVisibilityChange(X,this.lastRenderedPanelIds);this.lastRenderedPanelIds=X};
_.R.handlePanelVisibilityChange=function(X,H){X=X===void 0?new Set:X;H=H===void 0?new Set:H;if(this.data)for(var l=_.C(this.data),b=l.next();!b.done;b=l.next()){b=b.value;var U=void 0,K=void 0,w=(U=b)==null?void 0:(K=U.engagementPanelSectionListRenderer)==null?void 0:K.targetId;if(w&&(U=H.has(w),K=X.has(w),w=void 0,!U&&K?(K=U=void 0,w=(U=b)==null?void 0:(K=U.engagementPanelSectionListRenderer)==null?void 0:K.onShowCommands):U&&!K&&(K=U=void 0,w=(U=b)==null?void 0:(K=U.engagementPanelSectionListRenderer)==
null?void 0:K.onHideCommands),w))for(b=_.C(w),w=b.next();!w.done;w=b.next())this.ytComponentBehavior.resolveCommand(w.value)}};
GJ.prototype.onRendererstamperFinished=GJ.prototype.onRendererstamperFinished;GJ.prototype.dataChanged=GJ.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],GJ.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],GJ.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],GJ.prototype,"lastRenderedPanelIds",void 0);_.T([_.g(),_.N("design:type",Number)],GJ.prototype,"hideDelayMs",void 0);_.T([_.g(),_.N("design:type",Array)],GJ.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Array)],GJ.prototype,"visiblePanels",void 0);_.T([_.g(),_.N("design:type",Boolean)],GJ.prototype,"isWatchWhilePanel",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GJ.prototype,"dataChanged",null);_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GJ.prototype,"onRendererstamperFinished",null);_.T([_.sq({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],GJ);
_.O(GJ,"ytd-watch-engagement-panels",function(){if(m1y!==void 0)return m1y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return m1y=X},{mode:1});var Q9Z;var TiU;var Ni$=function(){return _.a.apply(this,arguments)||this};
_.S(Ni$,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ni$.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ni$.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Ni$);
_.O(Ni$,"ytd-comments-entry-point-message-renderer",function(){if(TiU!==void 0)return TiU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return TiU=X},{mode:1});var cmZ;var aQ=function(){return _.a.apply(this,arguments)||this};
_.S(aQ,_.a);_.ja.Object.defineProperties(aQ.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.teaserAvatar)}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],aQ.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],aQ.prototype,"hasAvatar",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],aQ);
_.O(aQ,"ytd-comments-entry-point-teaser-renderer",function(){if(cmZ!==void 0)return cmZ;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return cmZ=X},{mode:1});var j9C;var rml=function(){return _.a.apply(this,arguments)||this};
_.S(rml,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],rml.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],rml.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],rml);
_.O(rml,"ytd-comments-simplebox-renderer",function(){if(j9C!==void 0)return j9C;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return j9C=X},{mode:1});var Zx=function(){var X=_.a.apply(this,arguments)||this;X.fullHeight=!_.P("comment_teaser_full_height_kill_switch")&&_.P("kevlar_watch_grid");return X};
_.S(Zx,_.a);Zx.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"}}}};
Zx.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Zx.prototype.onTap=function(){var X=this.tapCommand;X&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(X))};
Zx.prototype.onKeyUp=function(X){if(X.keyCode===13)this.onTap()};
_.ja.Object.defineProperties(Zx.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null?0:X.onTap)return this.data.onTap}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)!=null&&X.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Zx.prototype.onKeyUp=Zx.prototype.onKeyUp;Zx.prototype.onTap=Zx.prototype.onTap;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Zx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Zx.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Zx.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Zx.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Zx.prototype,"fullHeight",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zx.prototype,"tapCommand",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zx.prototype,"simpleboxPlaceholder",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zx.prototype,"hasSimpleboxPlaceholder",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zx.prototype,"simpleboxAvatar",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zx.prototype,"teaserContent",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zx.prototype,"hasTeaserContent",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zx.prototype,"teaserAvatar",null);
_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zx.prototype,"hasTeaserAvatar",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zx.prototype,"messageText",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zx.prototype,"contentRenderer",null);_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zx.prototype,"hasContents",null);
_.T([_.x("data"),_.g({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zx.prototype,"hasContentRenderer",null);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zx.prototype,"onTap",null);_.T([_.Le("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[_.wB]),_.N("design:returntype")],Zx.prototype,"onKeyUp",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Zx);
_.O(Zx,"ytd-comments-entry-point-header-renderer",function(){if(Q9Z!==void 0)return Q9Z;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Q9Z=X},{mode:1});var Jmx;_.gC(_.PW6,"yt-animated-rolling-number",{props:{numberText:_.zh,numberValue:_.zh,heightPx:_.zh,fontSizeMultiplier:_.zh,shouldAnimate:_.zh,forceRollUp:_.zh}});var LHY=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Ypa={numberText:"",heightPx:2*LHY,shouldAnimate:!1},iX=function(){var X=_.a.apply(this,arguments)||this;X.usingAnimatedComponents=!0;X.wasDetailed=!1;X.JSC$22194_browserSupportsAnimation=_.P("web_supports_animations_api");X.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};X.detailed=!1;X.shouldAnimate=!1;X.viewCountProps=Ypa;X.dateTextProps=
Ypa;X.isEmpty=!1;X.metadataBadgesInDescription=_.P("web_metadata_badges_in_description");return X};
_.S(iX,_.a);_.R=iX.prototype;_.R.computeIsEmpty=function(X,H,l,b,U,K,w,d){return!_.P("web_hide_watch_info_empty")||_.D8(X)?!1:H?!(_.D8(l)||b||_.D8(U)||_.D8(K)||w||_.D8(d)):!0};
_.R.attached=function(){var X=this;_.jJ().resolve(_.L6).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(H){X.set("videoPrimaryInfoRenderer.subtitle",H)})};
_.R.detached=function(){_.jJ().resolve(_.L6).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.R.resetAnimationState=function(){this.shouldAnimate=!1};
_.R.updateDynamicMetadata=function(){if(this.JSC$22194_browserSupportsAnimation){if(!this.detailed){var X,H,l,b;var U=(X=this.videoPrimaryInfoRenderer)==null?void 0:(H=X.viewCount)==null?void 0:(l=H.videoViewCountRenderer)==null?void 0:(b=l.extraShortViewCount)==null?void 0:b.simpleText;var K,w,d,B;var q=(K=this.videoPrimaryInfoRenderer)==null?void 0:(w=K.viewCount)==null?void 0:(d=w.videoViewCountRenderer)==null?void 0:(B=d.shortViewCount)==null?void 0:B.simpleText}if(!q){var u,e,y,V;U=(u=this.videoPrimaryInfoRenderer)==
null?void 0:(e=u.viewCount)==null?void 0:(y=e.videoViewCountRenderer)==null?void 0:(V=y.unlabeledViewCountValue)==null?void 0:V.simpleText;var p,z,t,W;q=(p=this.videoPrimaryInfoRenderer)==null?void 0:(z=p.viewCount)==null?void 0:(t=z.videoViewCountRenderer)==null?void 0:(W=t.viewCount)==null?void 0:W.simpleText}var G,r,Q;X=Number((G=this.videoPrimaryInfoRenderer)==null?void 0:(r=G.viewCount)==null?void 0:(Q=r.videoViewCountRenderer)==null?void 0:Q.originalViewCount);var v,J;G=(v=this.videoPrimaryInfoRenderer)==
null?void 0:(J=v.relativeDateText)==null?void 0:J.simpleText;var Y;v=!((Y=this.videoPrimaryInfoRenderer)==null||!Y.relativeDateText);if(U&&q&&X&&(G||!v)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;Y=q.split(new RegExp("("+U+")"));U=_.xM(Y[0]);var Uy;q={numberText:(Uy=Y[1])!=null?Uy:"",numberValue:X,heightPx:2*LHY,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Cy;Uy=((Cy=Y[2])!=null?Cy:"")+"  ";this.setViewCount(q,U,_.xM(Uy));if(!this.detailed&&
v){U=G.split(/(\d+)/);Cy=_.xM(U[0]);var sy;Uy={numberText:(sy=U[1])!=null?sy:"",heightPx:2*LHY,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var FO;sy=((FO=U[2])!=null?FO:"")+"  ";this.setDateText(Uy,Cy,_.xM(sy))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.R.setViewCount=function(X,H,l){_.D8(H)!==_.D8(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=H);this.viewCountProps.numberText!==(X==null?void 0:X.numberText)&&(this.viewCountProps=X||Ypa);_.D8(l)!==_.D8(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=l)};
_.R.setDateText=function(X,H,l){_.D8(H)!==_.D8(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=H);this.dateTextProps.numberText!==(X==null?void 0:X.numberText)&&(this.dateTextProps=X||Ypa);_.D8(l)!==_.D8(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=l)};
_.R.onYtUpdateViewershipAction=function(X){this.videoPrimaryInfoRenderer&&(_.f(X,vKZ).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.f(X,vKZ).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.f(X,vKZ).viewCount)))};
_.R.onYtUpdateDateTextAction=function(X){if(this.videoPrimaryInfoRenderer){X=_.f(X,Z3N).dateText;this.shouldAnimate=!0;var H;((H=this.videoPrimaryInfoRenderer)==null?0:H.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",X):this.set("videoPrimaryInfoRenderer.dateText",X)}};
_.ja.Object.defineProperties(iX.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Wqx(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.D8(Wqx(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.D8(this.viewCountPreNumberText),this.viewCountProps.numberText,_.D8(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.D8(this.dateTextPreNumberText),this.dateTextProps.numberText,_.D8(this.dateTextPostNumberText)].join("")}}});
iX.prototype.updateDynamicMetadata=iX.prototype.updateDynamicMetadata;iX.prototype.resetAnimationState=iX.prototype.resetAnimationState;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],iX.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],iX.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],iX.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],iX.prototype,"videoPrimaryInfoRenderer",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],iX.prototype,"detailed",void 0);_.T([_.g(),_.N("design:type",Object)],iX.prototype,"shouldAnimate",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],iX.prototype,"viewCountPreNumberText",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],iX.prototype,"viewCountProps",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],iX.prototype,"viewCountPostNumberText",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],iX.prototype,"dateTextPreNumberText",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],iX.prototype,"dateTextProps",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],iX.prototype,"dateTextPostNumberText",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeIsEmpty(infoText, usingAnimatedComponents, viewCountPreNumberText, viewCountProps.numberText, viewCountPostNumberText, dateTextPreNumberText, dateTextProps.numberText, dateTextPostNumberText)"}),_.N("design:type",Object)],iX.prototype,"isEmpty",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],iX.prototype,"metadataBadgesInDescription",void 0);_.T([_.x("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.N("design:type",Object),_.N("design:paramtypes",[])],iX.prototype,"infoText",null);
_.T([_.x("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.N("design:type",String),_.N("design:paramtypes",[])],iX.prototype,"descriptionInfoTooltipText",null);_.T([_.x("detailed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iX.prototype,"showDescriptionInfoTooltip",null);
_.T([_.x("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.N("design:type",String),_.N("design:paramtypes",[])],iX.prototype,"animatedViewCountAccessibilityLabel",null);_.T([_.x("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.N("design:type",String),_.N("design:paramtypes",[])],iX.prototype,"animatedDateTextAccessibilityLabel",null);
_.T([_.Yh("videoPrimaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iX.prototype,"resetAnimationState",null);_.T([_.Yh("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iX.prototype,"updateDynamicMetadata",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-watch-info-text"})],iX);
_.O(iX,"ytd-watch-info-text",function(){if(Jmx!==void 0)return Jmx;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Jmx=X},{mode:1});var IjN;var Amd="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var Xee=_.Z(function(X){var H=X.data;var l=X.setTapCommand;_.Wg(function(){var b=_.sl(H().onTap);l(b)},"CLm0Xe");
return _.F("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.F(_.l4,{data:function(){return H().avatar}},{avatarViewModel:_.MX}),_.F("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.F("span",null,function(){return H().simpleboxText})))},"Kk");var HCU=_.Z(function(X){return _.F("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.F(_.M,{cond:function(){return _.f(X.data().avatar,_.eu)},
then:function(H){return _.F(_.MX,{data:H,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.F("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.F(_.Sj,{text:function(){return X.data().teaserText}})))},"Lk");var lWd=_.Z(function(X){var H=X.data;var l=X.setTapCommand;_.Wg(function(){var b=_.sl(H().onTap);l(b)},"qxjCCd");
return _.F("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.F(_.l4,{data:function(){return H().teasers}},{commentsEntryPointTeaserViewModel:HCU}))},"Nk");var o9e=_.Z(function(X){var H=X.data;var l=X.setTapCommand;_.Wg(function(){var b=_.sl(H().onTap);l(b)},"CRZByf");
return _.F("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.F(_.Sj,{text:function(){return H().messageText}}))},"Pk");var bCZ=_.Z(function(X){var H=X.data;var l=X.setTapCommand;var b=X.isDisabled;_.Wg(function(){var U=(b==null?0:b())?void 0:_.sl(H().onTap);l(U)},"GZxRqd");
return _.F("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.F(_.Ja,{icon:function(){return H().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.F(_.M,{cond:function(){return H().image},
then:function(U){return _.F(_.Dp,{data:U,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.F(_.Sj,{text:function(){return H().text},
className:function(){return H().image||H().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.F(_.l4,{data:function(){return H().button}},{buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:b==null?void 0:b()}}})}}))},"Rk");var ULU=_.Z(function(X){var H=X.data;var l=X.itemIndex;var b=X.selectedIndex;var U=X.indexUpdatedCallback;var K=X.observer;X=X.title;var w=_.SJ("yt-carousel-item-view-model",function(e){K&&K().observe(e)}),d=function(e){l()===b()&&U(e)},B=_.Aa(K1y),q=_.Aa(_.SMm),u=function(){var e,y,V,p,z;
return((e=H())==null?void 0:e.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!B()||((y=H())==null?void 0:y.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((V=q())==null?void 0:V.includes("PAposts_by_host"))||((p=H())==null?void 0:p.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((z=q())==null?void 0:z.includes("PAyouchat"))};
return _.F("yt-carousel-item-view-model",{el:w,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":X},_.F(_.l4,{data:function(){var e,y;return(y=(e=_.f(H().carouselItem,Akl))==null?void 0:e.textCarousel)!=null?y:H().carouselItem}},{textCarouselItemViewModel:function(e){return _.F(bCZ,{data:e.data,
setTapCommand:d,isDisabled:u})},
commentTeaserCarouselItemViewModel:function(e){return _.F(lWd,{data:e.data,setTapCommand:d})},
commentInputBoxCarouselItemViewModel:function(e){return _.F(Xee,{data:e.data,setTapCommand:d})},
commentsEntryPointMessageViewModel:function(e){return _.F(o9e,{data:e.data,setTapCommand:d})}}))},"Sk");var $LC=_.Z(function(X){var H=X.numDots;var l=X.activeIndex;return _.F("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.F(_.P$,{each:function(){return Array.from({length:H()})},
keyBy:"INDEX"},function(b,U){return _.F("div",{class:function(){var K={};return _.dj("ytCarouselDotsShapeDot",(K.ytCarouselDotsShapeDotActive=U===l(),K))}})}))},"Tk");var Kba=_.Z(function(X){var H=X.data;var l=X.handleCarouselNavigation;var b=X.numItems;var U=X.selectedIndex;var K=function(){return{disabled:U()===0}},w=function(){return{disabled:U()===b()-1}};
return _.F("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.F("div",null,_.F("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return H().title}),_.F(_.M,{cond:function(){return H().subtitle},
then:function(d){return _.F("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return H().subtitleAccessibilityText}},d)}})),_.F(_.M,{cond:function(){return b()>1},
then:function(){return _.F("div",{class:"ytCarouselTitleViewModelNavigation"},_.F($LC,{numDots:b,activeIndex:U}),_.F(_.M,{cond:function(){return H().previousButton},
then:function(d){return _.F(_.l4,{data:d},{buttonViewModel:function(B){return _.F(_.Qk,{data:B.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return l(-1)},
buttonOverrides:K})}})}}),_.F(_.M,{cond:function(){return H().nextButton},
then:function(d){return _.F(_.l4,{data:d},{buttonViewModel:function(B){return _.F(_.Qk,{data:B.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return l(1)},
buttonOverrides:w})}})}}))}}))},"Uk");_.gC(_.Z(function(X){var H=X.data;var l,b=_.SJ("yt-video-metadata-carousel-view-model"),U=_.SJ("div",function(v){var J=function(){var Y=v.offsetWidth*z(),Uy=24*(z()-1);y(Y+Uy)};
J();window.ResizeObserver&&(l=new ResizeObserver(J),l.observe(v))}),K=_.gx("HTML_DIR")==="rtl",w=!1,d=0,B=0;
X=_.C(_.FU(0,void 0,"M49TDf"));var q=X.next().value,u=X.next().value;X=_.C(_.FU(0,void 0,"zLIok"));var e=X.next().value,y=X.next().value;X=_.C(_.FU(!1,void 0,"bhelhc"));var V=X.next().value,p=X.next().value,z=function(){var v,J,Y;return(Y=(v=H())==null?void 0:(J=v.carouselTitles)==null?void 0:J.length)!=null?Y:0},t=function(){U.value&&U.value.scrollLeft!==d&&u((K?U.value.scrollLeft<d:U.value.scrollLeft>d)?Math.min(q()+1,z()-1):Math.max(q()-1,0))},W;
window.IntersectionObserver&&(W=new IntersectionObserver(function(v){v=_.C(v);for(var J=v.next();!J.done;J=v.next())if(J.value.isIntersecting){if(w){w=!1;break}t()}else u(B)},{threshold:.2}));
_.Wg(function(){if(U.value){var v=(K?-1:1)*(e()/z()+12)*(V()&&W?B:q());typeof U.value.scrollTo==="function"?U.value.scrollTo({left:v,behavior:"smooth"}):U.value.scrollLeft=v;d=v;B=V()&&W?B:q()}},"s9rbgc");
var G,r=function(v){G=v};
_.E2(function(){var v;(v=l)==null||v.disconnect();var J;(J=W)==null||J.disconnect()});
var Q=function(v){v=q()+v;v>=0&&v<z()&&(w=!0,u(v))};
return _.F("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:b,"on:click":_.Nq(function(v){if(_.B6(_.FA(v),b.value,["BUTTON".toString()])||!G)return!1;_.jJ().resolve(_.Vr).resolveCommand(G,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Nq(function(){p(!0);return!1}),
"on:touchend":_.Nq(function(){W||t();p(!1);return!1}),
hidden:function(){var v,J;return!((v=H())==null?0:(J=v.carouselItems)==null?0:J.length)}},_.F("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.F(_.M,{cond:function(){return H().carouselTitles},
then:function(v){return _.F(_.l4,{data:function(){return v()[V()&&W?B:q()]}},{carouselTitleViewModel:function(J){return _.F(Kba,{data:J.data,
handleCarouselNavigation:Q,numItems:z,selectedIndex:q})}})}})),_.F("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:U},_.F("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+e()+"px;"}},_.F(_.M,{cond:function(){return H().carouselItems},
then:function(v){return _.F(_.P$,{each:v},function(J,Y){return _.F(_.l4,{data:function(){return J}},{carouselItemViewModel:function(Uy){return _.F(ULU,{data:Uy.data,
itemIndex:Y,selectedIndex:q,indexUpdatedCallback:r,observer:W,title:function(){a:{var Cy=Y();var sy,FO=(sy=H())==null?void 0:sy.carouselTitles;if(FO&&(Cy=FO[Cy])){var ub;Cy=(ub=_.f(Cy,IZZ))==null?void 0:ub.title;break a}Cy=void 0}return Cy}})}})})}}))))},"Wk"),"yt-video-metadata-carousel-view-model",{props:{data:_.zh}});var vs=function(){var X=_.a.apply(this,arguments)||this;X.isHovering=!1;X.enableColorSampling=_.P("web_delhi_colorful_sd");X.metadataBadgesInDescription=_.P("web_metadata_badges_in_description");X.descriptionCollapsed=!0;X.useFadedScrimDescription=_.P("kevlar_enable_faded_scrim_on_description");X.skinnyMode=!1;X.playlist=!1;X.isDark=document.documentElement.hasAttribute("dark");X.disableVideoOwnerOnTap=_.P("swatchie_video_owner_on_tap_ks");X.swatcherooDelayLoad=_.P("swatcheroo_enable_ghost_cards");
X.primaryMenuWidth=0;X.videoId="";X.titleHeadlineXs=_.P("web_watch_typography_title_headline_xs");X.titleHeadlineS=_.P("web_watch_typography_title_headline_s");X.titleHeadlineM=_.P("web_watch_typography_title_headline_m");X.titleHashtagBlackLinkified=_.P("web_title_hashtag_black_linkified");X.titleHashtagGreyLinkified=_.P("web_title_hashtag_grey_linkified");X.actionButtonsUpdateOwnerWidth=!0;X.actionMap={"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction",
"yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};X.isFullscreen=!1;X.isTheaterMode=!1;return X};
_.S(vs,_.a);_.R=vs.prototype;_.R.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.R.updateOwnerAndDescriptionPosition=function(){_.P("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),yN(this.bottomRowElement,this.ownerElement)):(yN(this.bottomRowElement,this.descriptionElement),yN(this.topRowElement,this.ownerElement)))};
_.R.titleOnTap=function(X){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.WS(_.t2(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||this.handleExpandDescriptionCommands()}};
_.R.videoOwnerOnTap=function(X){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.WS(_.t2(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.R.detached=function(){var X=this,H;return _.h(function(l){(H=X.resizeObserver)==null||H.disconnect();_.m5(l)})};
_.R.maybeAttachResizeObserver=function(){var X=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.jw(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){X.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.R.maybeUpdateActionsOnSeparateLine=function(){this.skinnyMode?this.actionsOnSeparateLine=!0:this.primaryMenuWidth&&(this.actionsOnSeparateLine=this.primaryMenuWidth>this.hostElement.clientWidth-(this.ownerElement.clientWidth+32)?!0:!1)};
_.R.stripAttributedDescription=function(X){return{content:X.content.replace(/[\r\n]{2,}/g,"\n")}};
_.R.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.P("web_modern_buttons"),forceIconButton:!_.P("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"}}}};
_.R.videoPrimaryInfoRendererChanged=function(){var X;if((X=this.videoPrimaryInfoRenderer)==null?0:X.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.R.videoSecondaryInfoRendererChanged=function(){var X,H;(X=this.descriptionInlineExpander)==null||(H=X.collapse)==null||H.call(X);this.descriptionExpandClientVe=_.cS(110509);this.descriptionCollapseClientVe=_.cS(110510);X=_.Bi();H=_.F6();X&&H&&(_.P("combine_ve_grafts")?(_.rg(_.lv(),this.descriptionExpandClientVe,H),_.rg(_.lv(),this.descriptionCollapseClientVe,H)):_.SF(X,H,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.R.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.R.updateTopLevelIconsOnly=function(){var X=this;_.P("top_level_update_killswitch")||this.menu&&_.Ss.addLowPriorityJob(function(){X.menu.topLevelIconsOnly=X.skinnyMode},_.Yy("swathceroo_delay_flexible_menu_update",100))};
_.R.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.R.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.R.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.R.onYtTextInlineExpanderExpandedChanged=function(){if(!_.P("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var X,H;(H=(X=this.structuredDescriptionContentRendererElement).resize)==null||H.call(X)}};
_.R.onRenderStamperFinished=function(X){(X==null?void 0:X.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.R.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.R.onYtExpanderLessTapped=function(){var X,H=(X=this.videoSecondaryInfoRenderer)==null?void 0:X.showLessCommand;H&&this.ytComponentBehavior.resolveCommand(H)};
_.R.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.R.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.R.onDescriptionClick=function(X){if(!_.WS(_.t2(X)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var H;((H=window.getSelection())==null?0:H.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.P("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.R.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.R.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.R.logCollapseClick=function(){var X=_.Bi();X&&this.descriptionCollapseClientVe&&_.xB(X,this.descriptionCollapseClientVe)};
_.R.logExpandClick=function(){var X=_.Bi();X&&this.descriptionExpandClientVe&&_.xB(X,this.descriptionExpandClientVe)};
_.R.collapseDescription=function(){this.descriptionCollapsed=!0};
_.R.scrollToTopOfContainer=function(){_.TP(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.R.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.R.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.R.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.R.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var X,H;(H=(X=this.descriptionInlineExpander).resize)==null||H.call(X)}else _.x2(new _.qd("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var l;(l=this.menu)==null||l.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.R.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var X,H,l=(H=(X=_.mh(this.menu).querySelector("#button-shape"))==null?void 0:X.clientWidth)!=null?H:0,b,U;X=((U=(b=_.mh(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:b.clientWidth)!=null?U:0)+8+l;var K,w;l=(w=(K=_.mh(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:K.children.length)!=null?w:2;X<=8*l||(this.primaryMenuWidth=X)}};
_.R.onYtUpdateTitleAction=function(X){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.f(X,i3p).title)};
_.R.onYtUpdateDescriptionAction=function(X){if(X=_.f(X,_.s2G)){var H,l=!((H=this.videoSecondaryInfoRenderer)==null||!H.attributedDescription);X.isEmpty||!X.description&&!X.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):X.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",X.attributedDescription):X.description&&(l?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.ha(X.description)):this.set("videoSecondaryInfoRenderer.description",X.description))}};
_.R.onYtDarkModeToggledAction=function(X){this.isDark=X};
_.R.registerPanel=function(){if(!_.P("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var X=_.P("web_watch_imax_theater_mode")&&this.isTheaterMode;X=_.P("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||X;var H=_.jJ().resolve(_.d3);H&&!X&&H.registerPanel("engagement-panel-structured-description",this)}};
_.R.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.R.parseColorSamplingData=function(){var X;if(_.P("web_delhi_colorful_sd")&&((X=this.structuredDescriptionContentRenderer)==null?0:X.items)&&(X=this.structuredDescriptionContentRenderer.items.find(function(U){return!!_.f(U,B_)}))){var H,l;
this.hoverColor={lightTheme:(H=_.f(X,B_))==null?void 0:H.lightThemeColorPalette,darkTheme:(l=_.f(X,B_))==null?void 0:l.darkThemeColorPalette};var b;this.hoverText=(b=_.f(X,B_))==null?void 0:b.colorSampledDescriptionBodyText}};
_.R.updateHoverColor=function(){if(_.P("web_delhi_colorful_sd")){var X=this.hoverColor,H={},l;X=(l=this.isDark?X==null?void 0:X.darkTheme:X==null?void 0:X.lightTheme)!=null?l:{};l=_.C(Amd);for(var b=l.next();!b.done;b=l.next()){b=b.value;var U=X[b];H["--yt-saturated-"+_.YE(b)]=U?_.qw(U):"initial"}_.j4(this.hostElement,H)}};
_.R.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.R.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.R.showPanel=function(X){this.expandDescription();var H=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;H.resize();var l,b=X==null?void 0:(l=X.sectionListEngagementPanelExtras)==null?void 0:l.scrollToItemSectionIdentifier;b?_.Ss.addJob(function(){H==null||H.scrollToSection(b)},8):this.scrollToTopOfContainer()};
_.R.isVisible=function(){return!this.descriptionCollapsed};
_.R.getReloadContinuation=function(){};
_.R.hidePanel=function(){};
_.R.updatePanel=function(){};
_.ja.Object.defineProperties(vs.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var X;return _.P("web_delhi_colorful_sd")&&(X=this.structuredDescriptionContentRenderer)!=null&&X.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(H){return!_.f(H,B_)&&!_.f(H,TmY)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.structuredDescriptionContentRendererComputed)!=null&&X.items){var H;X=_.C((H=this.structuredDescriptionContentRendererComputed)==null?void 0:H.items);for(H=X.next();!H.done;H=X.next())if(H=_.f(H.value,_.KsY))return H}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.videoPrimaryInfoRenderer)==null?0:X.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return!!((X=this.videoSecondaryInfoRenderer)==null?0:(H=X.owner)==null?0:(l=H.videoOwnerRenderer)==null?0:l.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var X,H;if((X=this.videoSecondaryInfoRenderer)==null?0:(H=X.attributedDescription)==null?0:H.content){var l,b;return(b=this.stripAttributedDescription((l=this.videoSecondaryInfoRenderer)==null?void 0:l.attributedDescription))!=null?b:{runs:[]}}}if(_.P("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var U,K,w,d;return(d=(w=(U=this.videoSecondaryInfoRenderer)==
null?void 0:U.description)!=null?w:(K=this.videoSecondaryInfoRenderer)==null?void 0:K.attributedDescription)!=null?d:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var X,H;return(H=(X=this.videoSecondaryInfoRenderer)==null?void 0:X.headerRuns)!=null?H:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.commentsEntryPointHeaderRenderer)==null||!X.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.videoMetadataCarousel)==null||!X.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Yy("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var X,H,l=Object.assign({},(X=this.videoSecondaryInfoRenderer)==null?void 0:(H=X.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer);if(l&&l.rows&&l.collapsedItemCount!==void 0&&!(l.rows.length<=l.collapsedItemCount))return l.rows=l.rows.slice(l.collapsedItemCount),l.collapsedItemCount=0,l}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var X,H,l=Object.assign({},(X=this.videoSecondaryInfoRenderer)==null?void 0:(H=X.metadataRowContainer)==null?void 0:H.metadataRowContainerRenderer);if(l&&l.rows&&l.collapsedItemCount!==void 0)return l.rows=l.rows.slice(0,l.collapsedItemCount),l.collapsedItemCount=l.rows.length,l}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var X,H;return!!((X=this.structuredDescriptionContentRendererComputed)==null?0:(H=X.items)==null?0:H.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var X;return(X=this.videoSecondaryInfoRenderer)==null?void 0:X.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((X=this.videoSecondaryInfoRenderer)==null?0:(H=X.owner)==null?0:(l=H.videoOwnerRenderer)==null?0:l.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var X,H,l,b;return!!((X=this.videoPrimaryInfoRenderer)==null?0:(H=X.videoActions)==null?0:(l=H.menuRenderer)==null?0:(b=l.flexibleItems)==null?0:b.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.z0(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.z0(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var X=this;if(_.P("web_title_hashtag_grey_delinkified")){var H,l=_.Bb.unsafeClone((H=this.videoPrimaryInfoRenderer)==null?void 0:H.title);(H=l==null?void 0:l.runs)&&H.forEach(function(b){if(b==null?0:b.navigationEndpoint)b.textColor=4284506208,X.isDark&&(b.textColor=4289374890)});
return l}return(l=this.videoPrimaryInfoRenderer)==null?void 0:l.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.P("web_title_hashtag_black_delinkified")||_.P("web_title_hashtag_grey_delinkified")}}});
vs.prototype.updateHoverColor=vs.prototype.updateHoverColor;vs.prototype.parseColorSamplingData=vs.prototype.parseColorSamplingData;vs.prototype.resetDescriptionState=vs.prototype.resetDescriptionState;vs.prototype.registerPanel=vs.prototype.registerPanel;vs.prototype.onYtExpanderLessTapped=vs.prototype.onYtExpanderLessTapped;vs.prototype.onYtExpanderMoreTapped=vs.prototype.onYtExpanderMoreTapped;vs.prototype.onRenderStamperFinished=vs.prototype.onRenderStamperFinished;
vs.prototype.onYtTextInlineExpanderExpandedChanged=vs.prototype.onYtTextInlineExpanderExpandedChanged;vs.prototype.onYtTextInlineExpanderCollapseClicked=vs.prototype.onYtTextInlineExpanderCollapseClicked;vs.prototype.onYtTextInlineExpanderExpandClicked=vs.prototype.onYtTextInlineExpanderExpandClicked;vs.prototype.moveActionsElement=vs.prototype.moveActionsElement;vs.prototype.updateTopLevelIconsOnly=vs.prototype.updateTopLevelIconsOnly;vs.prototype.structuredDescriptionContentRendererChanged=vs.prototype.structuredDescriptionContentRendererChanged;
vs.prototype.videoSecondaryInfoRendererChanged=vs.prototype.videoSecondaryInfoRendererChanged;vs.prototype.videoPrimaryInfoRendererChanged=vs.prototype.videoPrimaryInfoRendererChanged;vs.prototype.maybeUpdateActionsOnSeparateLine=vs.prototype.maybeUpdateActionsOnSeparateLine;vs.prototype.updateOwnerAndDescriptionPosition=vs.prototype.updateOwnerAndDescriptionPosition;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],vs.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],vs.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],vs.prototype,"ytdReduxBehavior",void 0);
_.T([_.A2("#above-the-fold"),_.N("design:type",HTMLElement)],vs.prototype,"aboveTheFoldContainer",void 0);_.T([_.A2("#menu ytd-menu-renderer"),_.N("design:type",Object)],vs.prototype,"menu",void 0);_.T([_.A2("#description-inline-expander"),_.N("design:type",Object)],vs.prototype,"descriptionInlineExpander",void 0);_.T([_.A2("#faded-structured-description"),_.N("design:type",Object)],vs.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);
_.T([_.A2("#structured-description"),_.N("design:type",Object)],vs.prototype,"structuredDescriptionContentRendererElement",void 0);_.T([_.A2("#title"),_.N("design:type",HTMLElement)],vs.prototype,"titleElement",void 0);_.T([_.A2("#description"),_.N("design:type",HTMLElement)],vs.prototype,"descriptionElement",void 0);_.T([_.A2("#description-interaction"),_.N("design:type",Object)],vs.prototype,"descriptionInteraction",void 0);
_.T([_.A2("#owner"),_.N("design:type",HTMLElement)],vs.prototype,"ownerElement",void 0);_.T([_.A2("#top-row"),_.N("design:type",HTMLElement)],vs.prototype,"topRowElement",void 0);_.T([_.A2("#bottom-row"),_.N("design:type",HTMLElement)],vs.prototype,"bottomRowElement",void 0);_.T([_.A2("#actions"),_.N("design:type",HTMLElement)],vs.prototype,"actionsElement",void 0);_.T([_.A2("#bottom-actions"),_.N("design:type",HTMLElement)],vs.prototype,"bottomActionsElement",void 0);
_.T([_.A2("#ytd-watch-info-text"),_.N("design:type",Object)],vs.prototype,"watchInfoTextElement",void 0);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"videoPrimaryInfoRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"videoSecondaryInfoRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"commentsEntryPointHeaderRenderer",void 0);
_.T([_.g(),_.N("design:type",Object)],vs.prototype,"videoMetadataCarousel",void 0);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"structuredDescriptionContentRenderer",void 0);_.T([_.x("structuredDescriptionContentRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"structuredDescriptionContentRendererComputed",null);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"videoSummary",void 0);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"merchShelf",void 0);
_.T([_.g(),_.N("design:type",Object)],vs.prototype,"infoPanelBelowMetadata",void 0);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"hoverColor",void 0);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"hoverText",void 0);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"isHovering",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"enableColorSampling",void 0);
_.T([_.x("structuredDescriptionContentRendererComputed"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"productShelf",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"metadataBadgesInDescription",void 0);_.T([_.x("videoPrimaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"shouldHideBadges",null);
_.T([_.x("productShelf","descriptionCollapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vs.prototype,"shouldShowProductShelf",null);_.T([_.g(),_.N("design:type",Boolean)],vs.prototype,"isWatchFlexy",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"descriptionCollapsed",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],vs.prototype,"useFadedScrimDescription",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"skinnyMode",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("videoSecondaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"largerItemWrap",null);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"playlist",void 0);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"clarifyBox",void 0);_.T([_.g(),_.N("design:type",Object)],vs.prototype,"playerAds",void 0);
_.T([_.g(),_.N("design:type",Boolean)],vs.prototype,"isDark",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],vs.prototype,"actionsOnSeparateLine",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"disableVideoOwnerOnTap",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"swatcherooDelayLoad",void 0);_.T([_.g(),_.N("design:type",Boolean)],vs.prototype,"suppressTopLevelMetadataRows",void 0);
_.T([_.g(),_.N("design:type",Object)],vs.prototype,"primaryMenuWidth",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"videoId",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"titleHeadlineXs",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"titleHeadlineS",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"titleHeadlineM",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"titleHashtagBlackLinkified",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"titleHashtagGreyLinkified",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.T([_.oi("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"updateOwnerAndDescriptionPosition",null);
_.T([_.oi("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"maybeUpdateActionsOnSeparateLine",null);_.T([_.x("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"descriptionText",null);
_.T([_.x("videoSecondaryInfoRenderer.headerRuns"),_.N("design:type",Array),_.N("design:paramtypes",[])],vs.prototype,"headerRuns",null);_.T([_.g({value:!1}),_.x("commentsEntryPointHeaderRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"hasTeaser",null);_.T([_.g({value:!1,reflectToAttribute:!0}),_.x("videoMetadataCarousel"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"hasTeaserCarousel",null);
_.T([_.g({value:3}),_.x("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"descriptionMaxLines",null);_.T([_.x("videoSecondaryInfoRenderer.metadataRowContainer"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"collapsibleMetadataRows",null);
_.T([_.x("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"alwaysVisibleMetadataRows",null);_.T([_.x("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vs.prototype,"hasInlineStructuredDescription",null);
_.T([_.x("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vs.prototype,"showInlineStructuredDescription",null);_.T([_.x("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"descriptionExpandCommand",null);
_.T([_.x("videoSecondaryInfoRenderer.owner"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"videoOwnerCommand",null);_.T([_.g({reflectToAttribute:!0}),_.x("videoPrimaryInfoRenderer.videoActions"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vs.prototype,"flexMenuEnabled",null);_.T([_.g({selector:_.qn,reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"isFullscreen",void 0);
_.T([_.g({selector:_.BS,reflectToAttribute:!0}),_.N("design:type",Object)],vs.prototype,"isTheaterMode",void 0);_.T([_.x("descriptionText","useFadedScrimDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vs.prototype,"showAttributedStringDescription",null);_.T([_.x("descriptionText","useFadedScrimDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vs.prototype,"showFormattedStringDescription",null);
_.T([_.x("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vs.prototype,"showFadedStructuredDescription",null);_.T([_.oi("videoPrimaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"videoPrimaryInfoRendererChanged",null);_.T([_.x("videoPrimaryInfoRenderer.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"videoTitle",null);
_.T([_.x("videoPrimaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],vs.prototype,"noEndpoints",null);_.T([_.oi("videoSecondaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"videoSecondaryInfoRendererChanged",null);
_.T([_.Yh("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"structuredDescriptionContentRendererChanged",null);_.T([_.Yh("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"updateTopLevelIconsOnly",null);
_.T([_.Yh("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"moveActionsElement",null);_.T([_.Le("yt-text-inline-expander-expand-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.T([_.Le("yt-text-inline-expander-collapse-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.T([_.Le("yt-text-inline-expander-expanded-changed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],vs.prototype,"onRenderStamperFinished",null);_.T([_.Le("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"onYtExpanderMoreTapped",null);_.T([_.Le("yt-expander-less-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"onYtExpanderLessTapped",null);
_.T([_.Yh("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"registerPanel",null);_.T([_.Yh("videoSecondaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"resetDescriptionState",null);
_.T([_.Yh("structuredDescriptionContentRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"parseColorSamplingData",null);_.T([_.Yh("hoverColor","isDark"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vs.prototype,"updateHoverColor",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-watch-metadata"})],vs);
_.O(vs,"ytd-watch-metadata",function(){if(IjN!==void 0)return IjN;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return IjN=X},{mode:2});var OP=function(){var X=_.a.apply(this,arguments)||this;X.hidden=!1;X.errorScreen=null;X.playlistData={};return X};
_.S(OP,_.a);_.R=OP.prototype;_.R.getPlayer=function(){return this.ytdPlayer};
_.R.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:hz(["aa","eocs"])}}};
_.R.onActiveChanged=function(){_.WF().dispatch(csY(this.ytPageBehavior.active))};
_.R.playerDataChanged=function(){var X;(X=this.watchController)==null||X.setPlayerResponse(this.playerData)};
_.R.dataChanged=function(){var X;(X=this.watchController)==null||X.setWatchNextResponse(this.data)};
_.R.sizeChanged=function(){var X,H;(H=(X=this.metadata).resize)==null||H.call(X)};
_.R.attached=function(){this.watchController=new gP(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.R.detached=function(){_.Gp(this.watchController);this.watchController=void 0};
_.R.getPlayerContainer=function(){return this.playerContainer};
_.R.getElement=function(X){switch(X){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.R.provideRenderingData=function(X,H){switch(X){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=H;break;case "ERROR_SCREEN":this.errorScreen=H!=null?H:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=H;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=H;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=H;break;case "RICH_METADATA":this.richMetadataRowContainer=H;break;case "CLARIFICATION":this.clarificationData=H;break;case "PLAYLIST":this.playlistData=
H!=null?H:{};break;case "MERCH_SHELF":this.merchShelf=H;break;case "TICKET_SHELF":this.ticketShelf=H;break;case "LIMITED_STATE":this.limitedState=H;break;case "DONATION_SHELF":this.donationShelf=H;break;case "ALERTS":this.alerts=H}};
_.ja.Object.defineProperties(OP.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return!this.hidden&&!!((X=this.data)==null?0:(H=X.contents)==null?0:(l=H.twoColumnWatchNextResults)==null?0:l.conversationBar)}}});
OP.prototype.sizeChanged=OP.prototype.sizeChanged;OP.prototype.dataChanged=OP.prototype.dataChanged;OP.prototype.playerDataChanged=OP.prototype.playerDataChanged;OP.prototype.onActiveChanged=OP.prototype.onActiveChanged;_.T([_.k(Hw.YtPageBehavior),_.N("design:type",Object)],OP.prototype,"ytPageBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],OP.prototype,"ytComponentBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],OP.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"playerData",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],OP.prototype,"hidden",void 0);_.T([_.A2("#ytd-player"),_.N("design:type",HTMLElement)],OP.prototype,"ytdPlayer",void 0);_.T([_.A2("#player-container"),_.N("design:type",HTMLElement)],OP.prototype,"playerContainer",void 0);_.T([_.A2("#metadata"),_.N("design:type",Object)],OP.prototype,"metadata",void 0);_.T([_.A2("#playlist"),_.N("design:type",HTMLElement)],OP.prototype,"playlistPanel",void 0);
_.T([_.g({selector:$od,reflectToAttribute:!0}),_.N("design:type",Object)],OP.prototype,"fixie",void 0);_.T([_.g({selector:_.p7N,reflectToAttribute:!0}),_.N("design:type",Object)],OP.prototype,"singleColumn",void 0);_.T([_.g({selector:function(X){return _.BS(X)&&!_.qn(X)},
reflectToAttribute:!0}),_.N("design:type",Object)],OP.prototype,"theater",void 0);_.T([_.g({selector:_.qn,reflectToAttribute:!0}),_.N("design:type",Object)],OP.prototype,"fullscreen",void 0);_.T([_.g({selector:UoZ}),_.N("design:type",Object)],OP.prototype,"windowSize",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"singleColumnContents",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"errorScreen",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"playlistData",void 0);
_.T([_.g(),_.N("design:type",Object)],OP.prototype,"videoPrimaryInfoRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"videoSecondaryInfoRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"richMetadataRowContainer",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"clarificationData",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"commentsEntryPointHeaderRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"ticketShelf",void 0);
_.T([_.g(),_.N("design:type",Object)],OP.prototype,"merchShelf",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"donationShelf",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"limitedState",void 0);_.T([_.g(),_.N("design:type",Object)],OP.prototype,"alerts",void 0);_.T([_.x("playlistData"),_.N("design:type",Object),_.N("design:paramtypes",[])],OP.prototype,"hasPlaylistData",null);
_.T([_.x("data","hidden"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],OP.prototype,"hasChat",null);_.T([_.Yh("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OP.prototype,"onActiveChanged",null);_.T([_.Yh("playerData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OP.prototype,"playerDataChanged",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OP.prototype,"dataChanged",null);_.T([_.Yh("windowSize","singleColumn"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OP.prototype,"sizeChanged",null);
_.O(OP,"ytd-watch-fixie",function(){if(nAx===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);nAx=X}X=nAx;return X},{mode:1});var RWY;var mv=function(){var X=_.a.apply(this,arguments)||this;X.viewTransitionEnabled=_.P("enable_player_resize_transition");X.smallerChatMinHeight=_.P("live_chat_smaller_min_height");X.isDarkTheme=document.documentElement.hasAttribute("dark");X.defaultCollapsePlaylist=_.P("web_watch_default_collapse_playlist");X.respectAspectRatio=_.P("web_enable_aspect_ratio_fix");X.retroModeReduxValue=!1;X.persistentPanelVisibleValue=!1;return X};
_.S(mv,_.a);_.R=mv.prototype;_.R.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.R.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.R.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.R.updateRetroModeReduxValue=function(){_.P("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.R.updatePersistentPanelVisibleValue=function(){_.P("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.R.ready=function(){var X=this,H=function(){X.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.R.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.R.updateIsTwoColumnsFromBinding=function(X){_.P("web_watch_update_narrow_width_killswitch")||_.WF().dispatch(jex(!X.detail.value));this.ytdWatchBehavior.isTwoColumns_=X.detail.value};
_.R.updateFlexySmallWindowFromBinding=function(X){this.ytdWatchBehavior.flexySmallWindow_=X.detail.value};
_.R.updateFlexyLargeWindowFromBinding=function(X){this.ytdWatchBehavior.flexyLargeWindow_=X.detail.value};
_.R.updateWatchWhileWindowSizeSufficientFromBinding=function(X){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=X.detail.value};
_.R.updateWatchNextCanShowMoreFromBinding=function(X){this.ytdWatchBehavior.watchNextCanShowMore=X.detail.value};
_.R.updateShownItemsFromBinding=function(X){X.detail.path?this.set(X.detail.path,X.detail.value):this.ytdWatchBehavior.watchNextShownItems=X.detail.value};
_.R.getElement=function(X){switch(X){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}};
_.ja.Object.defineProperties(mv.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(X=_.f(this.data.pageVisualEffects[H],hp))return H=void 0,(H=X.config)==null?void 0:H.enableInLightTheme;return!1}}});
_.ja.Object.defineProperties(mv,{template:{configurable:!0,enumerable:!0,get:function(){if(RWY===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);RWY=X}X=RWY;return X}}});
mv.prototype.updatePersistentPanelVisibleValue=mv.prototype.updatePersistentPanelVisibleValue;mv.prototype.updateRetroModeReduxValue=mv.prototype.updateRetroModeReduxValue;mv.prototype.updateScrollTopValue=mv.prototype.updateScrollTopValue;mv.prototype.updateFullscreenValue=mv.prototype.updateFullscreenValue;mv.prototype.updateTheaterValue=mv.prototype.updateTheaterValue;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],mv.prototype,"ytComponentBehavior",void 0);_.T([_.k(psY.YtdWatchBehavior),_.N("design:type",Object)],mv.prototype,"ytdWatchBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],mv.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],mv.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],mv.prototype,"playerData",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],mv.prototype,"viewTransitionEnabled",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],mv.prototype,"smallerChatMinHeight",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],mv.prototype,"isDarkTheme",void 0);_.T([_.g(),_.N("design:type",Object)],mv.prototype,"defaultCollapsePlaylist",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],mv.prototype,"respectAspectRatio",void 0);
_.T([_.g({selector:_.BS}),_.N("design:type",Object)],mv.prototype,"theaterValue",void 0);_.T([_.g({selector:_.qn}),_.N("design:type",Object)],mv.prototype,"fullscreenValue",void 0);_.T([_.g({selector:LE}),_.N("design:type",Object)],mv.prototype,"scrollTopValue",void 0);_.T([_.g({selector:_.s9}),_.N("design:type",Object)],mv.prototype,"miniplayerIsActive",void 0);_.T([_.g({selector:function(X){return X.watch.isWatchRetroMode}}),
_.N("design:type",Object)],mv.prototype,"retroModeReduxValue",void 0);_.T([_.g({selector:_.ze.persistentPanelVisibleSelector}),_.N("design:type",Object)],mv.prototype,"persistentPanelVisibleValue",void 0);_.T([JD("ytd-player"),_.N("design:type",HTMLElement)],mv.prototype,"ytdPlayer",void 0);_.T([_.A2("#playlist"),_.N("design:type",HTMLElement)],mv.prototype,"JSC$22217_ytdPlaylistPanelRenderer",void 0);_.T([JD("ytd-comments"),_.N("design:type",HTMLElement)],mv.prototype,"ytdComments",void 0);
_.T([_.A2("#primary"),_.N("design:type",HTMLElement)],mv.prototype,"primary",void 0);_.T([_.A2("#secondary"),_.N("design:type",HTMLElement)],mv.prototype,"secondary",void 0);_.T([_.A2("#player-container"),_.N("design:type",HTMLElement)],mv.prototype,"playerContainer",void 0);_.T([_.A2("#below"),_.N("design:type",HTMLElement)],mv.prototype,"below",void 0);_.T([_.A2("#cinematics"),_.N("design:type",HTMLElement)],mv.prototype,"JSC$22217_cinematics",void 0);
_.T([_.A2("#persistent-panel-container"),_.N("design:type",HTMLElement)],mv.prototype,"persistentPanelContainer",void 0);_.T([_.Yh("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mv.prototype,"updateTheaterValue",null);_.T([_.Yh("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mv.prototype,"updateFullscreenValue",null);
_.T([_.Yh("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mv.prototype,"updateScrollTopValue",null);_.T([_.Yh("retroModeReduxValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mv.prototype,"updateRetroModeReduxValue",null);_.T([_.Yh("persistentPanelVisibleValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mv.prototype,"updatePersistentPanelVisibleValue",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],mv.prototype,"cinematicLightTheme",null);_.T([_.sq({is:"ytd-watch-flexy"})],mv);var CoN;var wey;var dLN=function(){return _.a.apply(this,arguments)||this};
_.S(dLN,_.a);_.T([_.sq({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],dLN);
_.O(dLN,"ytd-ghost-comments-renderer",function(){if(wey===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);wey=X}X=wey;return X},{mode:1});var hWZ;var FbZ=function(){return _.a.apply(this,arguments)||this};
_.S(FbZ,_.a);_.T([_.sq({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],FbZ);
_.O(FbZ,"ytd-ghost-watch-metadata-renderer",function(){if(hWZ===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);hWZ=X}X=hWZ;return X},{mode:1});var Qm=function(){var X=_.a.apply(this,arguments)||this;X.ghostGridRenderer={rows:6};X.smallerChatMinHeight=_.P("live_chat_smaller_min_height");X.darkerPanels=_.P("web_watch_darker_panels");X.isDarkTheme=document.documentElement.hasAttribute("dark");return X};
_.S(Qm,_.a);_.R=Qm.prototype;_.R.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.R.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.R.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.R.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.R.ready=function(){var X=this,H=function(){X.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.R.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.R.updateIsTwoColumnsFromBinding=function(X){this.ytdWatchBehavior.isTwoColumns_=X.detail.value};
_.R.updateFlexySmallWindowFromBinding=function(X){this.ytdWatchBehavior.flexySmallWindow_=X.detail.value};
_.R.updateFlexyLargeWindowFromBinding=function(X){this.ytdWatchBehavior.flexyLargeWindow_=X.detail.value};
_.R.updateWatchWhileWindowSizeSufficientFromBinding=function(X){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=X.detail.value};
_.R.updateWatchNextCanShowMoreFromBinding=function(X){this.ytdWatchBehavior.watchNextCanShowMore=X.detail.value};
_.R.updateShownItemsFromBinding=function(X){_.P("swatcheroo_direct_use_rich_grid")||(X.detail.path?this.set(X.detail.path,X.detail.value):this.ytdWatchBehavior.watchNextShownItems=X.detail.value)};
_.R.getElement=function(X){switch(X){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}};
_.ja.Object.defineProperties(Qm.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(X=_.f(this.data.pageVisualEffects[H],hp))return H=void 0,(H=X.config)==null?void 0:H.enableInLightTheme;return!1}}});
Qm.prototype.updateMiniplayerIsActiveValue=Qm.prototype.updateMiniplayerIsActiveValue;Qm.prototype.updateScrollTopValue=Qm.prototype.updateScrollTopValue;Qm.prototype.updateFullscreenValue=Qm.prototype.updateFullscreenValue;Qm.prototype.updateTheaterValue=Qm.prototype.updateTheaterValue;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Qm.prototype,"ytComponentBehavior",void 0);
_.T([_.k(psY.YtdWatchBehavior),_.N("design:type",Object)],Qm.prototype,"ytdWatchBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Qm.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Qm.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Qm.prototype,"ghostGridRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],Qm.prototype,"playerData",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Qm.prototype,"smallerChatMinHeight",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Qm.prototype,"darkerPanels",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Qm.prototype,"isDarkTheme",void 0);_.T([_.g({selector:_.BS}),_.N("design:type",Object)],Qm.prototype,"theaterValue",void 0);_.T([_.g({selector:_.qn}),_.N("design:type",Object)],Qm.prototype,"fullscreenValue",void 0);_.T([_.g({selector:LE}),_.N("design:type",Object)],Qm.prototype,"scrollTopValue",void 0);
_.T([_.g({selector:_.s9}),_.N("design:type",Object)],Qm.prototype,"miniplayerIsActiveValue",void 0);_.T([_.A2("#ytd-player"),_.N("design:type",HTMLElement)],Qm.prototype,"ytdPlayer",void 0);_.T([_.A2("#playlist"),_.N("design:type",HTMLElement)],Qm.prototype,"JSC$22222_ytdPlaylistPanelRenderer",void 0);_.T([_.A2("#ytd-comments"),_.N("design:type",HTMLElement)],Qm.prototype,"ytdComments",void 0);_.T([_.A2("#primary"),_.N("design:type",HTMLElement)],Qm.prototype,"primary",void 0);
_.T([_.A2("#secondary"),_.N("design:type",HTMLElement)],Qm.prototype,"secondary",void 0);_.T([_.A2("#player-container"),_.N("design:type",HTMLElement)],Qm.prototype,"playerContainer",void 0);_.T([_.A2("#cinematics"),_.N("design:type",HTMLElement)],Qm.prototype,"JSC$22222_cinematics",void 0);_.T([_.Yh("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qm.prototype,"updateTheaterValue",null);
_.T([_.Yh("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qm.prototype,"updateFullscreenValue",null);_.T([_.Yh("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qm.prototype,"updateScrollTopValue",null);_.T([_.Yh("miniplayerIsActiveValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qm.prototype,"updateMiniplayerIsActiveValue",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qm.prototype,"cinematicLightTheme",null);
_.O(Qm,"ytd-watch-grid",function(){if(CoN===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);CoN=X}X=CoN;return X},{mode:2});var BSA;var TJ=function(){var X=_.a.apply(this,arguments)||this;X.flexy=!0;X.learningJourney=!0;X.viewTransitionEnabled=_.P("enable_player_resize_transition");X.smallerChatMinHeight=_.P("live_chat_smaller_min_height");X.isDarkTheme=document.documentElement.hasAttribute("dark");X.theaterLargerPlayer=_.P("web_watch_theater_larger_player");X.defaultCollapsePlaylist=_.P("web_watch_default_collapse_playlist");X.enableCanvasLayout=_.P("web_enable_canvas_on_learning_journey");return X};
_.S(TJ,_.a);_.R=TJ.prototype;_.R.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.R.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.R.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.R.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.R.ready=function(){var X=this,H=function(){X.onColumnScroll()};
this.primary.addEventListener("scroll",H);this.secondary.addEventListener("scroll",H)};
_.R.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.R.updateIsTwoColumnsFromBinding=function(X){_.P("web_watch_update_narrow_width_killswitch")||_.WF().dispatch(jex(!X.detail.value));this.ytdWatchBehavior.isTwoColumns_=X.detail.value};
_.R.updateFlexySmallWindowFromBinding=function(X){this.ytdWatchBehavior.flexySmallWindow_=X.detail.value};
_.R.updateFlexyLargeWindowFromBinding=function(X){this.ytdWatchBehavior.flexyLargeWindow_=X.detail.value};
_.R.updateWatchWhileWindowSizeSufficientFromBinding=function(X){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=X.detail.value};
_.R.updateWatchNextCanShowMoreFromBinding=function(X){this.ytdWatchBehavior.watchNextCanShowMore=X.detail.value};
_.R.updateShownItemsFromBinding=function(X){X.detail.path?this.set(X.detail.path,X.detail.value):this.ytdWatchBehavior.watchNextShownItems=X.detail.value};
_.R.getElement=function(X){switch(X){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}};
_.ja.Object.defineProperties(TJ.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 X;if((X=this.data)==null||!X.pageVisualEffects)return!1;for(var H=0;H<this.data.pageVisualEffects.length;H++)if(X=_.f(this.data.pageVisualEffects[H],hp))return H=void 0,(H=X.config)==null?void 0:H.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.learningJourneyEngagementPanels)==null?void 0:X.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var X,H=(X=this.learningJourneyEngagementPanels)==null?void 0:X.find(function(y){var V;return(y==null?void 0:(V=y.engagementPanelSectionListRenderer)==null?void 0:V.panelIdentifier)==="learning-journey-engagement-panel"});
if(H){var l,b,U,K,w,d,B,q,u;if(X=(q=((B=(w=((K=H==null?void 0:(l=H.engagementPanelSectionListRenderer)==null?void 0:(b=l.content)==null?void 0:(U=b.sectionListRenderer)==null?void 0:U.contents)!=null?K:[])[0])==null?void 0:(d=w.itemSectionRenderer)==null?void 0:d.contents)!=null?B:[])[0])==null?void 0:(u=q.accordionViewModel)==null?void 0:u.onTitleTap){var e=_.sl(X);if(e)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.JF.instance.resolveCommand(e)}}}}}}});
_.ja.Object.defineProperties(TJ,{template:{configurable:!0,enumerable:!0,get:function(){if(BSA===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);BSA=X}X=BSA;return X}}});
TJ.prototype.updateMiniplayerIsActiveValue=TJ.prototype.updateMiniplayerIsActiveValue;TJ.prototype.updateScrollTopValue=TJ.prototype.updateScrollTopValue;TJ.prototype.updateFullscreenValue=TJ.prototype.updateFullscreenValue;TJ.prototype.updateTheaterValue=TJ.prototype.updateTheaterValue;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],TJ.prototype,"ytComponentBehavior",void 0);
_.T([_.k(lxe.YtdLearningJourneyWatchBehavior),_.N("design:type",Object)],TJ.prototype,"ytdWatchBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],TJ.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],TJ.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],TJ.prototype,"playerData",void 0);_.T([_.g(),_.N("design:type",Object)],TJ.prototype,"browseData",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],TJ.prototype,"flexy",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],TJ.prototype,"learningJourney",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],TJ.prototype,"viewTransitionEnabled",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],TJ.prototype,"smallerChatMinHeight",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],TJ.prototype,"isDarkTheme",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],TJ.prototype,"theaterLargerPlayer",void 0);_.T([_.g(),_.N("design:type",Object)],TJ.prototype,"defaultCollapsePlaylist",void 0);_.T([_.g(),_.N("design:type",Object)],TJ.prototype,"enableCanvasLayout",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("playerData","browseData","enableCanvasLayout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],TJ.prototype,"showBrowseResponse",null);
_.T([_.g({reflectToAttribute:!0}),_.x("playerData","enableCanvasLayout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],TJ.prototype,"showWatchResponse",null);_.T([_.g({selector:_.BS}),_.N("design:type",Object)],TJ.prototype,"theaterValue",void 0);_.T([_.g({selector:_.qn}),_.N("design:type",Object)],TJ.prototype,"fullscreenValue",void 0);_.T([_.g({selector:LE}),_.N("design:type",Object)],TJ.prototype,"scrollTopValue",void 0);
_.T([_.g({selector:_.s9}),_.N("design:type",Object)],TJ.prototype,"miniplayerIsActiveValue",void 0);_.T([_.A2("#ytd-plj-player"),_.N("design:type",HTMLElement)],TJ.prototype,"ytdPlayer",void 0);_.T([_.A2("#playlist"),_.N("design:type",HTMLElement)],TJ.prototype,"JSC$22225_ytdPlaylistPanelRenderer",void 0);_.T([JD("ytd-comments"),_.N("design:type",HTMLElement)],TJ.prototype,"ytdComments",void 0);_.T([_.A2("#primary"),_.N("design:type",HTMLElement)],TJ.prototype,"primary",void 0);
_.T([_.A2("#secondary"),_.N("design:type",HTMLElement)],TJ.prototype,"secondary",void 0);_.T([_.A2("#player-container"),_.N("design:type",HTMLElement)],TJ.prototype,"playerContainer",void 0);_.T([_.A2("#cinematics"),_.N("design:type",HTMLElement)],TJ.prototype,"JSC$22225_cinematics",void 0);_.T([_.Yh("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TJ.prototype,"updateTheaterValue",null);
_.T([_.Yh("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TJ.prototype,"updateFullscreenValue",null);_.T([_.Yh("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TJ.prototype,"updateScrollTopValue",null);_.T([_.Yh("miniplayerIsActiveValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TJ.prototype,"updateMiniplayerIsActiveValue",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],TJ.prototype,"cinematicLightTheme",null);_.T([_.g({reflectToAttribute:!0}),_.x("learningJourneyEngagementPanels"),_.N("design:type",Object),_.N("design:paramtypes",[])],TJ.prototype,"hasLearningJourneyPanels",null);_.T([_.x("learningJourneyEngagementPanels"),_.N("design:type",Object),_.N("design:paramtypes",[])],TJ.prototype,"backButtonData",null);_.T([_.sq({is:"ytd-watch-learning-journey"})],TJ);var qWy;var N_=function(){var X=_.a.apply(this,arguments)||this;X.systemIcons=_.P("kevlar_system_icons");return X};
_.S(N_,_.a);_.R=N_.prototype;_.R.ready=function(){this.hostElement.addEventListener("tap",_.J2(this,this.onEndpointTapExtra))};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.R.onFocus=function(){var X;(X=_.mh(this.hostElement).querySelector("tp-yt-paper-item"))==null||X.focus()};
_.R.onEndpointTapExtra=function(X){_.QX(this.hostElement,"iron-activate");var H=this.data.navigationEndpoint;H&&_.f(H,_.cDy)&&(X.stopPropagation(),_.j7(this.hostElement,[H],this.hostElement))};
_.R.computeIcon=function(X){return X&&X.iconType?_.jL(X.iconType):""};
_.R.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.R.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.R.forceUpdateStylesOnLegacyBrowsers=function(){_.P("kevlar_legacy_browsers")&&_.j4(this.hostElement)};
N_.prototype.forceUpdateStylesOnLegacyBrowsers=N_.prototype.forceUpdateStylesOnLegacyBrowsers;N_.prototype.onFocus=N_.prototype.onFocus;_.T([_.k(_.gI),_.N("design:type",Object)],N_.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.Br5.YtConditionalRendererBehavior),_.N("design:type",Object)],N_.prototype,"ytConditionalRendererBehavior",void 0);_.T([_.k(_.jj.YtEndpointBehavior),_.N("design:type",Object)],N_.prototype,"ytEndpointBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],N_.prototype,"data",void 0);_.T([_.g({computed:"computeIcon(data.icon)",value:""}),_.N("design:type",String)],N_.prototype,"icon",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],N_.prototype,"useIcons",void 0);_.T([_.g({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Boolean)],N_.prototype,"hasSeparator",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],N_.prototype,"systemIcons",void 0);_.T([_.Le("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N_.prototype,"onFocus",null);_.T([_.Yh("useIcons","hasSeparator"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N_.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.O(N_,"ytd-menu-navigation-item-renderer",function(){if(qWy===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);qWy=X}X=qWy;return X},{mode:1});var sPU;var M8a=_.xM(_.XS("DOWNLOAD",{},"Download")),uqd=_.xM(_.XS("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),eWa=_.xM(_.XS("RETRY",{},"Retry")),y3Y=_.xM(_.XS("PAUSE_DOWNLOADING",{},"Pause downloading")),V8$=_.xM(_.XS("RESUME_DOWNLOAD",{},"Resume download")),cs=function(){var X=_.a.apply(this,arguments)||this;X.primaryText=M8a;X.primaryIconType="OFFLINE_DOWNLOAD";X.hasSecondaryContent=!1;X.hasSeparator=!1;X.transferState="TRANSFER_STATE_UNKNOWN";X.isVideoDeletedByUser=!1;X.isHidden=!1;X.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return X};
_.S(cs,_.a);_.R=cs.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.R.onFocus=function(){this.primaryEntry.focus()};
_.R.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.R.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.R.getRemoveAction=function(){return"ACTION_REMOVE"};
_.R.sendOfflineAction=function(X){var H=this.data.serviceEndpoint;if(H){var l=_.f(H,_.Yj);l&&X&&(l.action=X);this.ytComponentBehavior.resolveCommand(H)}};
_.R.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=M8a,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=M8a;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=eWa;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=uqd;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=V8$;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=uqd;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
y3Y;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=uqd;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=uqd;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=M8a,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.R.showHideButton=function(){var X;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((X=this.playerStateEntity)==null?void 0:X.adsState)==="ADS_STATE_PLAYING"};
_.R.isSecondaryEntryHidden=function(X,H){return X?!0:!H};
_.R.computeHasSeparator=function(){var X;return!((X=this.data)==null||!X.hasSeparator)};
_.R.computePlayerStateEntityKey=function(X){return X};
cs.prototype.showHideButton=cs.prototype.showHideButton;cs.prototype.onTransferStateChange=cs.prototype.onTransferStateChange;cs.prototype.onFocus=cs.prototype.onFocus;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],cs.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],cs.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],cs.prototype,"ytComponentBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],cs.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],cs.prototype,"primaryText",void 0);_.T([_.g(),_.N("design:type",String)],cs.prototype,"primaryIconType",void 0);_.T([_.g(),_.N("design:type",String)],cs.prototype,"primaryAction",void 0);_.T([_.g(),_.N("design:type",Object)],cs.prototype,"secondaryText",void 0);_.T([_.g(),_.N("design:type",String)],cs.prototype,"secondaryIconType",void 0);
_.T([_.g(),_.N("design:type",String)],cs.prototype,"secondaryAction",void 0);_.T([_.g(),_.N("design:type",Object)],cs.prototype,"hasSecondaryContent",void 0);_.T([_.g({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Object)],cs.prototype,"hasSeparator",void 0);_.T([_.g({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.N("design:type",String)],cs.prototype,"playerStateEntityKey",void 0);
_.T([_.g({selector:_.T0,selectorArgs:["playerStateEntityKey"]}),_.N("design:type",Object)],cs.prototype,"playerStateEntity",void 0);_.T([_.g({selector:_.e0,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",String)],cs.prototype,"transferState",void 0);_.T([_.g({selector:_.rWm,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",Object)],cs.prototype,"isVideoDeletedByUser",void 0);
_.T([_.g(),_.N("design:type",Object)],cs.prototype,"isHidden",void 0);_.T([_.g({selector:_.O0y,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",Object)],cs.prototype,"offlineabilityState",void 0);_.T([_.A2("#primary-entry"),_.N("design:type",Object)],cs.prototype,"primaryEntry",void 0);_.T([_.Le("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cs.prototype,"onFocus",null);
_.T([_.oi("transferState","isVideoDeletedByUser"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cs.prototype,"onTransferStateChange",null);_.T([_.oi("offlineabilityState","playerStateEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cs.prototype,"showHideButton",null);
_.O(cs,"ytd-menu-service-item-download-renderer",function(){if(sPU===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);sPU=X}X=sPU;return X},{mode:1});var Po5;var j$=function(){var X=_.a.apply(this,arguments)||this;X.useIcons=!1;X.systemIcons=_.P("kevlar_system_icons");return X};
_.S(j$,_.a);_.R=j$.prototype;_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.R.onFocus=function(){var X;(X=_.mh(this.hostElement).querySelector("tp-yt-paper-item"))==null||X.focus()};
_.R.onTap=function(){_.NG(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var X=this.data.serviceEndpoint,H=this.data.command;if(X){var l,b=(l=this.data)==null?void 0:l.trackingParams;l=!!_.f(X,_.Nh6);b&&l&&_.WF().dispatch(_.Of({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:b}}));this.ytComponentBehavior.resolveCommand(X)||_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}})}H&&(this.ytComponentBehavior.resolveCommand(H)||_.j7(this.hostElement,
[H],this.hostElement))};
_.R.computeIcon=function(X){return X&&X.iconType?_.jL(X.iconType):""};
_.R.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.R.computeHasSeparator=function(){var X;return!((X=this.data)==null||!X.hasSeparator)};
_.R.forceUpdateStylesOnLegacyBrowsers=function(){_.P("kevlar_legacy_browsers")&&_.j4(this.hostElement)};
_.R.computeIsSelected=function(){var X;return!((X=this.data)==null||!X.isSelected)};
j$.prototype.forceUpdateStylesOnLegacyBrowsers=j$.prototype.forceUpdateStylesOnLegacyBrowsers;j$.prototype.onTap=j$.prototype.onTap;j$.prototype.onFocus=j$.prototype.onFocus;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],j$.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],j$.prototype,"ytComponentBehavior",void 0);
_.T([_.k(_.Br5.YtConditionalRendererBehavior),_.N("design:type",Object)],j$.prototype,"ytConditionalRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],j$.prototype,"data",void 0);_.T([_.g({computed:"computeIcon(data.icon)",value:""}),_.N("design:type",String)],j$.prototype,"icon",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],j$.prototype,"useIcons",void 0);
_.T([_.g({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Boolean)],j$.prototype,"hasSeparator",void 0);_.T([_.g({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.N("design:type",Boolean)],j$.prototype,"isSelected",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],j$.prototype,"systemIcons",void 0);
_.T([_.Le("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j$.prototype,"onFocus",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],j$.prototype,"onTap",null);_.T([_.Yh("useIcons","hasSeparator"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j$.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.O(j$,"ytd-menu-service-item-renderer",function(){if(Po5===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);Po5=X}X=Po5;return X},{mode:2});var fWl;var r0=function(){return _.a.apply(this,arguments)||this};
_.S(r0,_.a);_.R=r0.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onDataChanged=function(){var X=this;_.N0(this,function(){X.postbox.openDialog();X.focus();_.QX(X.hostElement,"yt-refit")})};
_.R.focus=function(){this.postbox.focus()};
_.R.closePopup=function(){_.TP(this.hostElement,"yt-close-popup-action")};
_.R.onYtCommentboxDismiss=function(){this.closePopup()};
r0.prototype.onYtCommentboxDismiss=r0.prototype.onYtCommentboxDismiss;r0.prototype.onDataChanged=r0.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],r0.prototype,"data",void 0);_.T([_.g({value:function(){return _.XS("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],r0.prototype,"closeButtonAriaLabel",void 0);_.T([_.A2("#postbox"),_.N("design:type",Object)],r0.prototype,"postbox",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r0.prototype,"onDataChanged",null);_.T([_.Le("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r0.prototype,"onYtCommentboxDismiss",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],r0);
_.O(r0,"ytd-backstage-post-dialog-popup-renderer",function(){if(fWl!==void 0)return fWl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return fWl=X},{mode:1});var pey;var JA=function(){var X=_.a.apply(this,arguments)||this;X.modernModal=!0;return X};
_.S(JA,_.a);JA.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
JA.prototype.computeShouldHideOldButtons=function(){var X;return!((X=this.data)==null?0:X.button)};
_.ja.Object.defineProperties(JA.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var X,H;return(X=this.data)==null?void 0:(H=X.button)==null?void 0:H.buttonRenderer}}});
_.T([_.g(),_.N("design:type",Object)],JA.prototype,"data",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],JA.prototype,"ytEventForwardingBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],JA.prototype,"modernModal",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],JA.prototype,"buttonRendererData",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],JA);
_.O(JA,"ytd-modal-with-title-and-button-renderer",function(){if(pey!==void 0)return pey;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return pey=X},{mode:1});var SW5;var Lm=function(){return _.a.apply(this,arguments)||this};
_.S(Lm,_.a);Lm.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("page-changed",this.page))};
Lm.prototype.pageChangedForBinding=Lm.prototype.pageChangedForBinding;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Lm.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],Lm.prototype,"page",void 0);_.T([_.Yh("page"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lm.prototype,"pageChangedForBinding",null);
_.T([_.sq({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Lm);
_.O(Lm,"ytd-account-item-section-header-renderer",function(){if(SW5!==void 0)return SW5;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return SW5=X},{mode:1});var zWA;var Yc=function(){return _.a.apply(this,arguments)||this};
_.S(Yc,_.a);Yc.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"}}}};
Yc.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Yc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.EO),_.N("design:type",Object)],Yc.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Yc.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!1}),_.N("design:type",Function)],Yc.prototype,"onAccountItemTap",void 0);
_.T([_.sq({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Yc);
_.O(Yc,"ytd-account-item-section-renderer",function(){if(zWA!==void 0)return zWA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return zWA=X},{mode:1});var n9a;var k9N;var xLd=function(){return _.a.apply(this,arguments)||this};
_.S(xLd,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xLd.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xLd.prototype,"data",void 0);_.T([_.sq({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],xLd);
_.O(xLd,"ytd-accounts-dialog-header-renderer",function(){if(k9N!==void 0)return k9N;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return k9N=X},{mode:1});var DLZ;var IQ=function(){return _.a.apply(this,arguments)||this};
_.S(IQ,_.a);IQ.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],IQ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],IQ.prototype,"data",void 0);_.T([_.sq({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],IQ);
_.O(IQ,"ytd-google-account-header-renderer",function(){if(DLZ!==void 0)return DLZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return DLZ=X},{mode:1});var AA=function(){return _.a.apply(this,arguments)||this};
_.S(AA,_.a);AA.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"}}}};
AA.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("page-changed",this.page))};
AA.prototype.pageChangedForBinding=AA.prototype.pageChangedForBinding;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],AA.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],AA.prototype,"page",void 0);
_.T([_.Yh("page"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AA.prototype,"pageChangedForBinding",null);_.T([_.sq({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],AA);
_.mr()(AA,"ytd-account-section-list-renderer",function(){if(n9a===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);n9a=X}X=n9a;return X},{allowedProps:["data"],
mode:1});var t85;var XM=function(){var X=_.a.apply(this,arguments)||this;X.enableHandlesAccountMenuSwitcher=_.P("enable_handles_account_menu_switcher");return X};
_.S(XM,_.a);XM.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
XM.prototype.dataChanged=XM.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],XM.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],XM.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.T([_.A2("#avatar"),_.N("design:type",Object)],XM.prototype,"avatar",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XM.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],XM);
_.mr()(XM,"ytd-active-account-header-renderer",function(){if(t85===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);t85=X}X=t85;return X},{allowedProps:["data"],
mode:1});var Wbl;var E9Z;var Hk=function(){return _.a.apply(this,arguments)||this};
_.S(Hk,_.a);Hk.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Hk.prototype.onBackTap=function(){_.QX(this.hostElement,"yt-menu-back-tapped")};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Hk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Hk.prototype,"data",void 0);_.T([_.sq({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],Hk);
_.mr()(Hk,"ytd-simple-menu-header-renderer",function(){if(E9Z===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);E9Z=X}X=E9Z;return X},{allowedProps:["data"],
mode:2});var g9N;var G9a=function(){return _.a.apply(this,arguments)||this};
_.S(G9a,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],G9a.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],G9a.prototype,"data",void 0);_.T([_.sq({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],G9a);
_.O(G9a,"ytd-comment-video-thumbnail-header-renderer",function(){if(g9N!==void 0)return g9N;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return g9N=X},{mode:1});var aWY;var ZCa=function(){return _.a.apply(this,arguments)||this};
_.S(ZCa,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ZCa.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ZCa.prototype,"data",void 0);_.T([_.sq({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],ZCa);
_.O(ZCa,"ytd-abuse-type-selector-renderer",function(){if(aWY!==void 0)return aWY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return aWY=X},{mode:1});var iCY;var v9U=(0,_.qp_)(_.Bit.reportChannelAbuse,{isVideoIdSelectedSelector:function(X,H){return H in X.selectedVideoIds},
additionalContextSelector:function(X){return X.additionalContext},
impersonatedChannelUrlSelector:function(X){return X.impersonatedChannelUrl},
reportChannelAbuseSelector:function(X){return X}});var lS=function(){return _.a.apply(this,arguments)||this};
_.S(lS,_.a);lS.prototype.attached=function(){var X=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){X.additionalContextInput.focusTextInput()})};
lS.prototype.handleAdditionalContextChanged=function(){var X=this;_.pc(this,"ytd-report-channel-additional-context-update",function(){X.ytdReduxBehavior.dispatch(_.Of({type:"ADDITIONAL_CONTEXT_UPDATED",payload:X.additionalContext}))},300)};
lS.prototype.updateAdditionalContextFromBinding=function(X){this.additionalContext=X.detail.value};
lS.prototype.handleAdditionalContextChanged=lS.prototype.handleAdditionalContextChanged;_.T([_.k(_.sv),_.N("design:type",Object)],lS.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",String)],lS.prototype,"additionalContext",void 0);_.T([_.g({selector:v9U.additionalContextSelector}),_.N("design:type",String)],lS.prototype,"additionalContextRedux",void 0);_.T([_.g(),_.N("design:type",Object)],lS.prototype,"data",void 0);
_.T([_.A2("yt-text-input-form-field-renderer"),_.N("design:type",Object)],lS.prototype,"additionalContextInput",void 0);_.T([_.Yh("additionalContext"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lS.prototype,"handleAdditionalContextChanged",null);_.T([_.sq({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],lS);
_.O(lS,"ytd-report-channel-modal-additional-context-renderer",function(){if(iCY!==void 0)return iCY;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return iCY=X},{mode:1});var OCl;var oT=function(){var X=_.a.apply(this,arguments)||this;X.nextButtonDisabled=null;X.submitEndpoint=null;X.navigationEndpoint=null;X.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return X};
_.S(oT,_.a);_.R=oT.prototype;_.R.computeNextButtonData=function(X,H,l){var b={};H&&(b.navigationEndpoint=H);l&&(b.serviceEndpoint=l);X&&X.buttonRenderer&&_.Bb.extend(b,X.buttonRenderer);return b};
_.R.handleReportChannelModalDisableNextButtonAction=function(X){this.setNextButtonIsDisabled(X)};
_.R.handleReportFormEndpointUpdateAction=function(X){this.setNextButtonIsDisabled(!!X.disableSubmitButton);this.resetEndpointData();X.submitEndpoint?this.submitEndpoint=X.submitEndpoint:X.submitNavigationEndpoint&&(this.navigationEndpoint=X.submitNavigationEndpoint)};
_.R.handleSignalActionSubmitForm=function(){var X,H=Object.keys(((X=this.reportChannelAbuseForm)==null?void 0:X.selectedVideoIds)||{}),l;X=((l=this.reportChannelAbuseForm)==null?void 0:l.additionalContext)||"";var b;l=((b=this.reportChannelAbuseForm)==null?void 0:b.impersonatedChannelUrl)||"";var U;if((U=this.data)==null?0:U.submitEndpoint){H={impersonated_channel_url:l,text:X,video_ids:H};var K;_.jJ().resolve(_.Vr).resolveCommand((K=this.data)==null?void 0:K.submitEndpoint,{form:Object.assign({},
H,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.R.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.R.onYtServiceRequestError=function(X){this.setNextButtonIsDisabled(!1);_.x$(this.hostElement,X.detail.error.message)};
_.R.setNextButtonIsDisabled=function(X){this.set("data.nextButton.buttonRenderer.isDisabled",X)};
_.R.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
oT.prototype.onYtServiceRequestError=oT.prototype.onYtServiceRequestError;oT.prototype.onYtServiceRequestCompleted=oT.prototype.onYtServiceRequestCompleted;_.T([_.g(),_.N("design:type",Object)],oT.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],oT.prototype,"nextButtonDisabled",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],oT.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],oT.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],oT.prototype,"submitEndpoint",void 0);_.T([_.g(),_.N("design:type",Object)],oT.prototype,"navigationEndpoint",void 0);_.T([_.g({selector:v9U.reportChannelAbuseSelector}),_.N("design:type",Object)],oT.prototype,"reportChannelAbuseForm",void 0);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],oT.prototype,"onYtServiceRequestCompleted",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],oT.prototype,"onYtServiceRequestError",null);_.T([_.sq({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],oT);
_.O(oT,"ytd-report-channel-modal-footer-renderer",function(){if(OCl!==void 0)return OCl;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return OCl=X},{mode:1});var mLU;var bS=function(){var X=_.a.apply(this,arguments)||this;X.boundOnTapDismissButton=function(){X.closePopup()};
return X};
_.S(bS,_.a);bS.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
bS.prototype.handleDataChanged=function(){_.mQ(this.hostElement)};
bS.prototype.closePopup=function(){_.TP(this.hostElement,"yt-close-popup-action")};
bS.prototype.handleDataChanged=bS.prototype.handleDataChanged;_.T([_.g(),_.N("design:type",Object)],bS.prototype,"boundOnTapDismissButton",void 0);_.T([_.g(),_.N("design:type",Object)],bS.prototype,"data",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],bS.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bS.prototype,"handleDataChanged",null);_.T([_.sq({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],bS);
_.O(bS,"ytd-report-channel-modal-header-renderer",function(){if(mLU!==void 0)return mLU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return mLU=X},{mode:1});var QP$;var Uu=function(){var X=_.a.apply(this,arguments)||this;X.autoValidate=!1;X.invalid=!1;X.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return X};
_.S(Uu,_.a);_.R=Uu.prototype;_.R.attached=function(){var X=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){X.channelUrlInput.focusTextInput()})};
_.R.disableNextButton=function(X){_.TP(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[X])};
_.R.handleImpersonatedChannelUrlChanged=function(){var X=this;this.disableNextButton(!0);this.invalid=!1;_.pc(this,"ytd-report-channel-impersonated-channel-update",function(){var H=X.impersonatedChannelUrl.trim();X.ytdReduxBehavior.dispatch(_.Of({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:H}));var l;((l=X.data)==null?0:l.submitEndpoint)&&H&&_.jJ().resolve(_.Vr).resolveCommand(X.data.submitEndpoint,{form:{impersonated_channel_url:H,element:X.hostElement}})},500)};
_.R.handleModifyReportFormCommand=function(X){this.invalid=this.get("modifyReportFormCommand.action",X)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.R.updateInvalidFromBinding=function(X){this.invalid=X.detail.value};
_.R.updateImpersonatedChannelUrlFromBinding=function(X){this.impersonatedChannelUrl=X.detail.value};
Uu.prototype.handleImpersonatedChannelUrlChanged=Uu.prototype.handleImpersonatedChannelUrlChanged;_.T([_.k(_.sv),_.N("design:type",Object)],Uu.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Uu.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Uu.prototype,"autoValidate",void 0);_.T([_.g(),_.N("design:type",Object)],Uu.prototype,"invalid",void 0);
_.T([_.g(),_.N("design:type",String)],Uu.prototype,"impersonatedChannelUrl",void 0);_.T([_.g({selector:v9U.impersonatedChannelUrlSelector}),_.N("design:type",String)],Uu.prototype,"impersonatedChannelUrlRedux",void 0);_.T([_.g(),_.N("design:type",Object)],Uu.prototype,"data",void 0);_.T([_.A2("#text-input"),_.N("design:type",Object)],Uu.prototype,"channelUrlInput",void 0);
_.T([_.Yh("impersonatedChannelUrl"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uu.prototype,"handleImpersonatedChannelUrlChanged",null);_.T([_.sq({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Uu);
_.O(Uu,"ytd-report-channel-modal-impersonation-renderer",function(){if(QP$!==void 0)return QP$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return QP$=X},{mode:1});var TSa;var NSl;var $f=function(){return _.a.apply(this,arguments)||this};
_.S($f,_.a);$f.prototype.onCheckboxToggled=function(X){var H,l,b=(l=_.f((H=this.data)==null?void 0:H.video,_.YRG))==null?void 0:l.videoId;b&&this.ytdReduxBehavior.dispatch(X.target.checked?_.Of({type:"VIDEO_SELECTED",payload:b}):_.Of({type:"VIDEO_UNSELECTED",payload:b}))};
$f.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.ja.Object.defineProperties($f.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var X,H=(X=this.data)==null?void 0:X.video;if(!H)return{};var l;X=(l=_.f(H,_.YRG))==null?void 0:l.navigationEndpoint;if(!X)return H;_.f(X==null?void 0:X.commandMetadata,_.Ip)&&(_.f(X.commandMetadata,_.Ip).ignoreNavigation=!0);return H}}});
_.T([_.g({reflectToAttribute:!0,selector:v9U.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.N("design:type",Boolean)],$f.prototype,"checked",void 0);_.T([_.g(),_.N("design:type",Object)],$f.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$f.prototype,"video",null);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$f.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],$f.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],$f.prototype,"ytdReduxBehavior",void 0);_.T([_.sq({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],$f);
_.O($f,"ytd-selectable-video-renderer",function(){if(NSl!==void 0)return NSl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return NSl=X},{mode:1});var Kw=function(){var X=_.a.apply(this,arguments)||this;X.monitorScroll=!0;return X};
_.S(Kw,_.a);Kw.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Kw.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Kw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Kw.prototype,"data",void 0);_.T([_.sq({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Kw);
_.O(Kw,"ytd-selectable-video-list-renderer",function(){if(TSa!==void 0)return TSa;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return TSa=X},{mode:1});var c35;_.wd("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var RT=function(){return _.a.apply(this,arguments)||this};
_.S(RT,_.a);RT.prototype.onChange=function(X){if(X=_.WM(X).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.P("kevlar_command_handler_migration_killswitch"))_.j7(this.hostElement,X,this.hostElement);else{X=_.C(X);for(var H=X.next();!H.done;H=X.next())this.ytComponentBehavior.resolveCommand(H.value)}};
RT.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
RT.prototype.updateDataToggledFromBinding=function(X){this.set("data.toggled",X.detail.value)};
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],RT.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],RT.prototype,"data",void 0);_.T([_.g({computed:"isEnabled(data)"}),_.N("design:type",Boolean)],RT.prototype,"enabled",void 0);_.T([_.sq({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],RT);
_.O(RT,"ytd-toggle-item-renderer",function(){if(c35!==void 0)return c35;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return c35=X},{mode:1});var jPC;var r3p;var J3N;var Cw=function(){var X=_.a.apply(this,arguments)||this;X.setVisible=!1;X.boundOnSubmitButtonClick=function(){X.onSubmitButtonClick()};
X.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return X};
_.S(Cw,_.a);Cw.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}}}}}};
Cw.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Cw.prototype.onSubmitButtonClick=function(){var X;((X=this.data)==null?0:X.submitEndpoint)&&!_.P("enable_ytc_refunds_submit_form_signal_action")&&_.ci(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Cw.prototype.handleSignalActionSubmitForm=function(){var X;((X=this.data)==null?0:X.submitEndpoint)&&_.ci(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.ja.Object.defineProperties(Cw.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.hiddenByDefault)&&!this.setVisible}}});
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Cw.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Cw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Cw.prototype,"setVisible",void 0);_.T([_.g(),_.N("design:type",Object)],Cw.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],Cw.prototype,"surveyFeedbackData",void 0);_.T([_.g(),_.N("design:type",Object)],Cw.prototype,"boundOnSubmitButtonClick",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data","setVisible"),_.N("design:type",Object),_.N("design:paramtypes",[])],Cw.prototype,"visibilityHidden",null);_.T([_.qR({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Cw);
_.O(Cw,"yt-flow-footer-renderer",function(){if(J3N===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;r3p===void 0&&(r3p=document.createElement("template"));var b=r3p;l.call(H,b.content.cloneNode(!0),X.content.firstChild);J3N=X}X=J3N;return X},{mode:2});var Lba=(0,_.qp_)(_.Bit.ypc,{surveyFeedbackDataSelector:function(X){return X.surveyFeedbackData}});var w4=function(){return _.a.apply(this,arguments)||this};
_.S(w4,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],w4.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],w4.prototype,"data",void 0);_.T([_.g({selector:Lba.surveyFeedbackDataSelector}),_.N("design:type",Object)],w4.prototype,"surveyFeedbackData",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],w4);
_.O(w4,"ytd-flow-footer-renderer",function(){if(jPC!==void 0)return jPC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return jPC=X},{mode:2});var YWC;var IWA;var d4=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return X};
_.S(d4,_.a);_.R=d4.prototype;_.R.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.dd("multiPageMenuSectionItems")}}};
_.R.handleHideEnclosingAction_=function(X){if(this.data&&this.data.items)for(var H=0;H<this.data.items.length;H++){var l=this.data.items[H].notificationRenderer;if(l&&l.notificationId==X.hideEnclosingAction.notificationId){this.splice("data.items",H,1);_.TP(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.R.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Nw(this.hostElement,"hidden",!0)};
_.R.updateMenu_=function(X){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&X&&!X.doNotRefreshInbox){X=this.data.continuations;for(var H=0;H<X.length;H++)if(X[H].invalidationContinuationData){var l=void 0;var b=(l=X[H].invalidationContinuationData)==null?void 0:l.continuation;break}X=_.Bb.clone(this.data.continuationUpdateEndpoint||null);X.continuation=b;X.click_tracking_params=this.data.trackingParams;_.ci(this.hostElement,[X])}};
_.R.onServiceRequestCompleted_=function(X,H){if(this.data&&(X=H.actions)){H=0;for(var l=X.length;H<l;H++){var b=_.f(X[H],_.hkQ);if(!b)break;if((b.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||b.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&b.continuationItems&&this.data.items){var U=this.data.items.length-1;this.data.items[U].continuationItemRenderer&&(b=["data.items",U,1].concat(b.continuationItems),this.splice.apply(this,b))}}}};
d4.prototype.onServiceRequestCompleted_=d4.prototype.onServiceRequestCompleted_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],d4.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],d4.prototype,"data",void 0);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],d4.prototype,"onServiceRequestCompleted_",null);_.T([_.qR({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],d4);
_.mr()(d4,"yt-multi-page-menu-section-renderer",function(){if(IWA===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;YWC===void 0&&(YWC=document.createElement("template"));var b=YWC;l.call(H,b.content.cloneNode(!0),X.content.firstChild);IWA=X}X=IWA;return X},{allowedProps:["data"],
mode:2});var A3e;var XqU;var ht=function(){return _.a.apply(this,arguments)||this};
_.S(ht,_.a);ht.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.ja.Object.defineProperties(ht.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.progress)==null?0:this.data.progress*100}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ht.prototype,"data",void 0);_.T([_.x("data.progress"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ht.prototype,"showProgressBar",null);
_.T([_.x("data.progress"),_.N("design:type",Number),_.N("design:paramtypes",[])],ht.prototype,"progress",null);_.T([_.qR({is:"yt-flow-header-renderer",disableElementRegistration:!0})],ht);
_.O(ht,"yt-flow-header-renderer",function(){if(XqU===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;A3e===void 0&&(A3e=document.createElement("template"));var b=A3e;l.call(H,b.content.cloneNode(!0),X.content.firstChild);XqU=X}X=XqU;return X},{mode:2});var HQa;var lb$;var FM=function(){return _.a.apply(this,arguments)||this};
_.S(FM,_.a);FM.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],FM.prototype,"data",void 0);_.T([_.qR({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],FM);
_.O(FM,"yt-post-confirmation-flow-step-renderer",function(){if(lb$===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;HQa===void 0&&(HQa=document.createElement("template"));var b=HQa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);lb$=X}X=lb$;return X},{mode:2});var o0N;var bQZ;var Bk=function(){return _.a.apply(this,arguments)||this};
_.S(Bk,_.a);
Bk.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Bk.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Bk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Bk.prototype,"data",void 0);_.T([_.qR({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Bk);
_.O(Bk,"yt-refund-confirmation-flow-step-renderer",function(){if(bQZ===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;o0N===void 0&&(o0N=document.createElement("template"));var b=o0N;l.call(H,b.content.cloneNode(!0),X.content.firstChild);bQZ=X}X=bQZ;return X},{mode:2});var UMa=_.Z(function(X){var H=X.data;return _.F("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.F("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.F(_.Dp,{data:function(){return{thumbnails:[{url:H().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.F("div",{class:"profileBadgeViewModelContent"},_.F("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return H().badgeDesc}),_.F(_.M,{cond:function(){return H().badgeSubtitle},
then:function(){return _.F("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return H().badgeSubtitle})}})))},"Xk");
UMa.idomCompat=!0;var $MZ=_.Z(function(X){var H=X.data;return _.F("yt-comment-interaction-view-model",{el:_.xl(_.Mh(function(){return H().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.F("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return H().onTapA11yLabel},
"on:keydown":_.h5(),tabindex:0},_.F("div",{class:"ytCommentInteractionViewModelHeader"},_.F("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return H().headerPrefix},' "',function(){return H().videoTitle}),_.F("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.F("div",{class:"ytCommentInteractionViewModelContent"},_.F("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return H().commentContent}),_.F("div",{class:"ytCommentInteractionViewModelChevron"},
_.F(_.Dp,{data:function(){return{thumbnails:[{url:H().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Yk");
$MZ.idomCompat=!0;var KOp=_.Z(function(X){var H=X.data;return _.F("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.F(_.l4,{data:function(){return H().avatar}},{avatarViewModel:_.MX}),_.F("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return H().channelName}))},"Zk");
KOp.idomCompat=!0;var h$$=_.Z(function(X){var H=X.data;X={};return _.F("yt-profile-info-view-model",{class:_.Qr("ytProfileInfoViewModelHost",(X.ytProfileInfoViewModelWithVideoShelf=function(){return H().videosHorizontalShelf},X))},_.F(R$C,{profileInfo:H}),_.F(_.l4,{data:function(){return H().videosHorizontalShelf}},{horizontalShelfViewModel:function(l){return _.F("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.F(_.W3,{data:l.data}))}}),_.F(_.M,{cond:function(){return H().comments},
then:function(){return _.F(CrZ,{profileInfo:H})}}),_.F(_.M,{cond:function(){return H().sharedSubscriptionsTitle},
then:function(){return _.F(_.M,{cond:function(){return H().subscriptionsAccessButtonCommand},
then:function(){return _.F(wqx,{profileInfo:H})},
else:function(){return _.F(dMd,{profileInfo:H})}})}}))},"$k");
h$$.idomCompat=!0;var CrZ=_.Z(function(X){var H=X.profileInfo;return _.F("div",{class:"ytProfileInfoViewModelActivity"},_.F("div",{class:"ytProfileInfoViewModelHeader"},_.F("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return H().commentsInteractionTitle})),_.F(_.l4,{data:function(){return H().comments}},{commentInteractionViewModel:function(l){return _.F("div",{class:"ytProfileInfoViewModelActivity"},_.F($MZ,{data:l.data}))}}))},"al"),wqx=_.Z(function(X){var H=X.profileInfo;
return _.F("div",{class:"ytProfileInfoViewModelSubSection"},_.F("div",{class:"ytProfileInfoViewModelSubHeader"},_.F(_.ZE,{command:function(){return H().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.F("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return H().sharedSubscriptionsTitle}),_.F("div",null,_.F(_.l4,{data:function(){return H().subscriptionsAccessButton}},{buttonViewModel:_.Qk})))),_.F(FOd,{sharedSubscriptions:function(){var l;
return((l=H().sharedSubscriptions)==null?void 0:l.slice(0,5))||[]}}))},"bl"),dMd=_.Z(function(X){var H=X.profileInfo;
return _.F("div",{class:"ytProfileInfoViewModelSubSection"},_.F("div",{class:"ytProfileInfoViewModelSubHeader"},_.F("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return H().sharedSubscriptionsTitle})),_.F(FOd,{sharedSubscriptions:function(){var l;
return((l=H().sharedSubscriptions)==null?void 0:l.slice(0,5))||[]}}))},"cl"),FOd=_.Z(function(X){return _.F("div",{class:"ytProfileInfoViewModelSubs"},_.F(_.l4,{data:X.sharedSubscriptions},{sharedSubscriptionViewModel:function(H){return _.F("div",{class:"ytProfileInfoViewModelSub"},_.F(KOp,{data:H.data}))}}))},"dl"),R$C=_.Z(function(X){var H=X.profileInfo;
return _.F("div",{class:"ytProfileInfoViewModelActivity"},_.F(_.P$,{each:function(){return[H().profileBadgeInfoYtWide,H().profileBadgeInfoChannelWide].filter(function(l){return!!l})},
keyBy:"INDEX"},function(l){return _.F(_.Xi,null,_.F("div",{class:"ytProfileInfoViewModelHeader"},_.F("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return l().profileSectionTitle}),_.F("div",{class:"ytProfileInfoViewModelSectionDesc"},_.F("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var b;
return(b=l().commentBadge)==null?void 0:b.commentDesc}),_.F(_.M,{cond:function(){var b;
return(b=l().commentBadge)==null?void 0:b.blackHeartDesc},
then:function(){return _.F("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.F("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.F(_.Dp,{data:function(){var b;
return{thumbnails:[{url:(b=l().commentBadge)==null?void 0:b.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.F("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var b;return(b=l().commentBadge)==null?void 0:b.blackHeartDesc}))),_.F("div",{class:"ytProfileInfoViewModelBadge"},_.F(_.P$,{each:function(){return l().badges||[]}},function(b){return _.F(UMa,{data:b})})))}))},"el");var BNZ=_.Z(function(X){var H=X.data;var l=function(){return H().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.F("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.F(_.l4,{data:function(){return H().profileIdentityInfo}},{profileIdentityInfoViewModel:function(b){return _.F(GMd,{data:b.data,
hideDivider:l,isChannelInfoCard:l})},
profileInfoViewModel:h$$}),_.F(_.l4,{data:function(){return H().profileInfo}},{profileIdentityInfoViewModel:GMd,
profileInfoViewModel:h$$}))},"fl");
BNZ.idomCompat=!0;_.gC(BNZ,"yt-profile-card-view-model",{props:{data:_.zh}});var qY=function(){var X=_.a.apply(this,arguments)||this;X.enableFocusFix=_.P("music_web_enable_focus_on_setting_menu_fix")&&_.G7("IS_MOBILE_WEB",!1);X.covered=!1;X.hideMenu=!1;X.isCommentNotificationOnProfileCard=!1;X.scrolledByTouch=!1;X.disableBackdropFilter=_.P("web_disable_backdrop_filter");X.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return X};
_.S(qY,_.a);_.R=qY.prototype;
_.R.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"}}}};
_.R.ready=function(){var X=this;this.JSC$22332_containerElement.addEventListener("scroll",function(){X.ytRendererBehavior.markDirty()})};
_.R.attributeChanged=function(X,H){X==="menu-style"&&_.TP(this.hostElement,"yt-multi-page-menu-closed-action",[H])};
_.R.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.J2(this,this.focusOnStampFinished))};
_.R.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.J2(this,this.focusOnStampFinished))};
_.R.reset=function(){this.closeJobId&&(_.Ss.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.R.focusOnStampFinished=function(X){X.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.J2(this,this.focusOnStampFinished)),this.doFocus())};
_.R.doFocus=function(){var X=_.dO9(this.sectionsElement);X.length&&X[0].focus()};
_.R.computeMenuStyle=function(X){return X?X.toLowerCase().replace(/_/g,"-"):""};
_.R.computeIsCommentNotificationOnProfileCard=function(X){return _.P("enable_profile_cards_on_comments")&&X.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.R.computeHideMenu=function(X,H){return X||!(!H||!H.showLoadingSpinner)};
_.R.onPopupClosed=function(){this.isPopUpOpen=!1;_.TP(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.R.onPopupOpened=function(X,H){this.isPopUpOpen=!0;H.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.QX(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Of({type:"CHANNEL_REPORT_RESET"})))};
_.R.onYtNavigate=function(X,H){this.shouldCloseOnNavigateEvent(H.endpoint)&&_.TP(this.hostElement,"yt-close-all-popups-action")};
_.R.handleEndpoint=function(X){X=_.f(X,_.sb);!this.isCommentNotificationOnProfileCard&&X&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$22332_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.R.handleActions=function(X){for(var H=0,l=X.length;H<l;H++){var b=_.f(X[H],KkN);b&&this.handleGetMultiPageMenuAction(b);(b=_.f(X[H],_.hkQ))&&this.handleAppendContinuationItemsAction(b)}};
_.R.onServiceRequestSentOrCompleted=function(X,H){X.detail&&X.detail.endpoint&&this.handleEndpoint(X.detail.endpoint);H.actions&&this.handleActions(H.actions)};
_.R.handleGetMultiPageMenuAction=function(X){var H=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.mh(this.submenuElement).appendChild(H);(X=X.menu.multiPageMenuRenderer)&&this.logSubmenu(X);H.data=X;H.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.R.handleAppendContinuationItemsAction=function(X){if(this.data&&X.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&X.continuationItems&&this.data.sections){var H=this.data.sections.length-1;this.data.sections[H].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),H--);if(this.data.sections[H].multiPageMenuNotificationSectionRenderer&&X.continuationItems){X=_.C(X==null?void 0:X.continuationItems);for(var l=X.next();!l.done;l=X.next())if(l=l.value,_.f(l,llY)){var b=
void 0,U=void 0,K=void 0,w=void 0,d=void 0;((b=this)==null?0:(U=b.data)==null?0:(K=U.sections)==null?0:(w=K[H])==null?0:(d=w.multiPageMenuNotificationSectionRenderer)==null?0:d.items)&&this.push("data.sections."+H+".multiPageMenuNotificationSectionRenderer.items",l)}else if(_.f(l,_.osQ)||_.f(l,_.OF))this.push("data.sections",l),H++}}};
_.R.logSubmenu=function(X){if(!_.P("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var H=this.ytRendererBehavior.getScreenLayer(),l=_.Bi(H),b=_.F6(H);if((X=X.trackingParams)&&l&&b){var U=_.$l(X);_.P("combine_ve_grafts")?_.lv().graftServerVe(X,b,H):_.pA(l,b,U)}}};
_.R.emptySubmenuContainer=function(){for(var X=_.mh(this.submenuElement);X.firstChild;)X.removeChild(X.firstChild)};
_.R.onMenuBackTap=function(X){_.QX(this.hostElement,"yt-submenu-closed");X.stopPropagation()};
_.R.onSubmenuClosed=function(X){_.WM(X)!==this.hostElement&&(this.covered=!1,_.QX(this.hostElement,"yt-refit"),X.stopPropagation())};
_.R.onRetrieveLocation=function(X,H){H.hasComments&&(H.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),X.stopPropagation())};
_.R.shouldCloseOnNavigateEvent=function(X){if(!X)return!0;if(_.f(X,_.ZDC)||_.f(X,_.iDD)||_.f(X,_.aEG)||_.f(X,_.aL))return!1;var H;return((H=_.f(X==null?void 0:X.commandMetadata,_.Ip))==null?0:H.ignoreNavigation)?!1:!0};
_.R.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.R.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.R.refitAfterRender=function(){var X=this;_.N0(this,function(){_.QX(X.hostElement,"yt-refit")})};
qY.prototype.refitAfterRender=qY.prototype.refitAfterRender;qY.prototype.onRetrieveLocation=qY.prototype.onRetrieveLocation;qY.prototype.onSubmenuClosed=qY.prototype.onSubmenuClosed;qY.prototype.onMenuBackTap=qY.prototype.onMenuBackTap;qY.prototype.onServiceRequestSentOrCompleted=qY.prototype.onServiceRequestSentOrCompleted;qY.prototype.onYtNavigate=qY.prototype.onYtNavigate;qY.prototype.onPopupOpened=qY.prototype.onPopupOpened;qY.prototype.onPopupClosed=qY.prototype.onPopupClosed;
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],qY.prototype,"ytEventForwardingBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],qY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],qY.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],qY.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],qY.prototype,"enableFocusFix",void 0);_.T([_.g(),_.N("design:type",Object)],qY.prototype,"covered",void 0);_.T([_.g({computed:"computeHideMenu(covered, data)"}),_.N("design:type",Object)],qY.prototype,"hideMenu",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.N("design:type",String)],qY.prototype,"menuStyle",void 0);
_.T([_.g({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.N("design:type",Object)],qY.prototype,"isCommentNotificationOnProfileCard",void 0);_.T([_.g(),_.N("design:type",Boolean)],qY.prototype,"isPopUpOpen",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],qY.prototype,"scrolledByTouch",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],qY.prototype,"disableBackdropFilter",void 0);
_.T([_.A2("#sections"),_.N("design:type",HTMLElement)],qY.prototype,"sectionsElement",void 0);_.T([_.A2("#spinner"),_.N("design:type",HTMLElement)],qY.prototype,"spinnerElement",void 0);_.T([_.A2("#header"),_.N("design:type",HTMLElement)],qY.prototype,"headerElement",void 0);_.T([_.A2("#container"),_.N("design:type",HTMLElement)],qY.prototype,"JSC$22332_containerElement",void 0);_.T([_.A2("#submenu"),_.N("design:type",HTMLElement)],qY.prototype,"submenuElement",void 0);
_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qY.prototype,"onPopupClosed",null);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],qY.prototype,"onPopupOpened",null);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],qY.prototype,"onYtNavigate",null);
_.T([_.Le("yt-service-request-completed"),_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],qY.prototype,"onServiceRequestSentOrCompleted",null);_.T([_.Le("yt-menu-back-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],qY.prototype,"onMenuBackTap",null);
_.T([_.Le("yt-submenu-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],qY.prototype,"onSubmenuClosed",null);_.T([_.Le("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],qY.prototype,"onRetrieveLocation",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qY.prototype,"refitAfterRender",null);
_.T([_.sq({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],qY);
_.O(qY,"ytd-multi-page-menu-renderer",function(){if(Wbl!==void 0)return Wbl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Wbl=X},{mode:1});var qX$;var su=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return X};
_.S(su,_.a);_.R=su.prototype;_.R.created=function(){this.showTooltips=!0};
_.R.computeAccessibility_=function(X){return this.get("accessibility.accessibilityData",X)||null};
_.R.onTap=function(){var X=_.NG(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(X&&X.length===1&&X[0])_.TP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var H;if((H=this.data)==null?0:H.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var l;((l=this.data)==null?0:l.menuRequest)&&_.ci(this.hostElement,[this.data.menuRequest])}}};
_.R.handleTopbarMenuClosedAction=function(X){var H,l;(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(X)===((H=this.data)==null?void 0:(l=H.icon)==null?void 0:l.iconType)&&this.toggleIconState(!1)};
_.R.toggleIconState=function(X){_.P("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=X)};
_.R.handleUpdateTopbarAvatarAction=function(X){var H;X=(H=_.f(X,jXC))==null?void 0:H.avatarUrl;var l,b;H=(l=this.data)==null?void 0:(b=l.avatar)==null?void 0:b.thumbnails;X&&H&&(l={thumbnails:[Object.assign({},H[0],{url:X})]},this.set("data.avatar",l))};
_.ja.Object.defineProperties(su.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.mh(this.hostElement).querySelector("#button")}}});
su.prototype.onTap=su.prototype.onTap;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],su.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],su.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.U5z.YtButtonBehavior),_.N("design:type",Object)],su.prototype,"ytButtonBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],su.prototype,"data",void 0);
_.T([_.A2("yt-icon-button#button"),_.N("design:type",Object)],su.prototype,"iconButton",void 0);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],su.prototype,"onTap",null);_.T([_.sq({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],su);
_.mr()(su,"ytd-topbar-menu-button-renderer",function(){if(qX$===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);qX$=X}X=qX$;return X},{allowedProps:["data"],
mode:1});var s3d;var MY=function(){return _.a.apply(this,arguments)||this};
_.S(MY,_.a);MY.prototype.getSelected=function(){return this.reasons.selected};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],MY.prototype,"data",void 0);_.T([_.A2("#reasons"),_.N("design:type",Object)],MY.prototype,"reasons",void 0);_.T([_.sq({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],MY);
_.O(MY,"ytd-ad-feedback-content",function(){if(s3d!==void 0)return s3d;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return s3d=X},{mode:1});var MSl;var uS=function(){return _.a.apply(this,arguments)||this};
_.S(uS,_.a);_.R=uS.prototype;_.R.onPopupOpened=function(){_.TP(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.R.computeConfirmButton=function(X){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:X.confirmLabel}};
_.R.computeCancelButton=function(X){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:X.cancelLabel}};
_.R.onConfirmTap=function(){var X=this.content.getSelected();X!==void 0&&(X=this.data.reasons[X].endpoint)&&(_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}}),_.TP(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.R.sendFeedbackSubmitToastAction=function(){var X;(X=this.data)!=null&&X.completionMessage&&(X=_.gR(this.data.completionMessage),_.TP(this.hostElement,"yt-open-popup-action",[X,this]))};
_.R.onCancelTap=function(){_.TP(this.hostElement,"yt-close-popup-action")};
uS.prototype.onPopupOpened=uS.prototype.onPopupOpened;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],uS.prototype,"data",void 0);_.T([_.A2("#content"),_.N("design:type",Object)],uS.prototype,"content",void 0);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],uS.prototype,"onPopupOpened",null);
_.T([_.sq({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],uS);
_.O(uS,"ytd-ad-feedback-renderer",function(){if(MSl!==void 0)return MSl;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return MSl=X},{mode:1});var u1Y;var e$x=function(){return _.a.apply(this,arguments)||this};
_.S(e$x,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],e$x.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],e$x.prototype,"data",void 0);_.T([_.sq({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],e$x);
_.O(e$x,"ytd-ad-info-dialog-content",function(){if(u1Y!==void 0)return u1Y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return u1Y=X},{mode:1});var yEU;var eQ=function(){return _.a.apply(this,arguments)||this};
_.S(eQ,_.a);eQ.prototype.computeConfirmButton=function(X){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:X.confirmLabel}};
eQ.prototype.onConfirmTap=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
eQ.prototype.computeShouldShowTitle=function(){var X;return!((X=this.data)==null||!X.title)};
eQ.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.jJ().resolve(_.Vr).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
eQ.prototype.onPopupClosed=eQ.prototype.onPopupClosed;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],eQ.prototype,"data",void 0);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],eQ.prototype,"onPopupClosed",null);_.T([_.sq({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],eQ);
_.O(eQ,"ytd-ad-info-dialog-renderer",function(){if(yEU!==void 0)return yEU;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return yEU=X},{mode:1});var VS5;var yf=function(){var X=_.a.apply(this,arguments)||this;X.actionButtonClass="action-button";X.dismissButtonId="dismiss-button";X.dialogDismiss=!0;return X};
_.S(yf,_.a);_.R=yf.prototype;_.R.computeInPlayer=function(X){return(X==null?void 0:X.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.R.computedLogo=function(){var X,H;return this.isDarkTheme()?(X=this.data)==null?void 0:X.logoDark:(H=this.data)==null?void 0:H.logo};
_.R.computedHeaderImage=function(){var X,H;return this.isDarkTheme()?(X=this.data)==null?void 0:X.headerImageDark:(H=this.data)==null?void 0:H.headerImage};
_.R.computeLogoIconId=function(){var X,H,l,b=(X=this.computedLogo())==null?void 0:(H=X.sources)==null?void 0:(l=H[0])==null?void 0:l.height;return b&&b%31===0?"logo-icon-with-padding":"logo-icon"};
_.R.computeLogoIconHeight=function(){var X,H,l,b=(X=this.computedLogo())==null?void 0:(H=X.sources)==null?void 0:(l=H[0])==null?void 0:l.height;return b&&b%31===0?"31":"24"};
_.R.onPopupClosed=function(){_.jJ().resolve(_.Me).dispose()};
_.R.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.R.onShow=function(){this.inPlayer&&_.J0(6);this.titleElement.focus()};
_.R.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var X=0;X<this.data.impressionEndpoints.length;X++){var H=_.f(this.data.impressionEndpoints[X],_.qq);H&&this.ytComponentBehavior.resolveCommand(H)}};
_.R.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.TP(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.ja.Object.defineProperties(yf.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var X,H;return!((X=this.data)==null||!X.headerImageDark)&&!((H=this.data)==null||!H.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.secondaryButton)}}});
yf.prototype.onPopupClosed=yf.prototype.onPopupClosed;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],yf.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Vk.YtVisibilityBehavior),_.N("design:type",Object)],yf.prototype,"ytVisibilityBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],yf.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],yf.prototype,"actionButtonClass",void 0);_.T([_.g(),_.N("design:type",Object)],yf.prototype,"dismissButtonId",void 0);_.T([_.g(),_.N("design:type",Object)],yf.prototype,"dialogDismiss",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],yf.prototype,"hasHeaderImage",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],yf.prototype,"hasPremiumButton",null);
_.T([_.g({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.N("design:type",Boolean)],yf.prototype,"inPlayer",void 0);_.T([_.A2("#dismiss-button"),_.N("design:type",HTMLElement)],yf.prototype,"dismissButton",void 0);_.T([_.A2("#title"),_.N("design:type",HTMLElement)],yf.prototype,"titleElement",void 0);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yf.prototype,"onPopupClosed",null);
_.T([_.sq({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],yf);
_.O(yf,"ytd-enforcement-message-view-model",function(){if(VS5!==void 0)return VS5;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return VS5=X},{mode:1});var PrN;var fba;var Vf=function(){var X=_.a.apply(this,arguments)||this;X.TEST_ONLY={immediateValidation:function(){X.immediateValidation()},
onValidationResponse:function(H){X.onValidationResponse(H)},
onGenerateHandleFromNameResponse:function(H){X.onGenerateHandleFromNameResponse(H)}};
return X};
_.S(Vf,_.a);_.R=Vf.prototype;_.R.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.R.validate=function(){this.immediateValidation()};
_.R.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.R.setHandleInputValue=function(X){this.handleDir=this.getHandleDir(X);this.handleInput.value=X;this.validationState={status:"PENDING"};this.immediateValidation()};
_.R.getHandleDir=function(X){var H=X===""&&!1;return(H=_.r$F.test.call(_.r$F,X))?"rtl":"ltr"};
_.R.onDataChanged=function(){var X,H;this.handleDir=this.getHandleDir((H=(X=this.data)==null?void 0:X.handle)!=null?H:"");var l;this.validationState=((l=this.data)==null?0:l.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var b;((b=this.data)==null?0:b.validateOnInit)&&this.immediateValidation()};
_.R.stopPropagation=function(X){X.stopPropagation()};
_.R.onInput=function(){var X;this.handleDir=this.getHandleDir((X=this.handleInput.value)!=null?X:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.R.onFocusout=function(X){this.handleInput.contains(X.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.R.delayedValidation=function(){var X,H;this.debouncedValidation((H=(X=this.data)==null?void 0:X.validationDelayMs)!=null?H:1E3)};
_.R.immediateValidation=function(){this.debouncedValidation(0)};
_.R.debouncedValidation=function(X){var H=this;_.pc(this,"debouncedValidation",function(){var l,b=H.staticValidation((l=H.handleInput.value)!=null?l:"");if(b!==void 0)H.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:b};else{var U;if((U=H.data)!=null&&U.validateChannelHandleCommand){H.validationState={status:"LOADING"};var K;H.ytComponentBehavior.resolveCommand(H.data.validateChannelHandleCommand,{form:{handle:(K=H.handleInput.value)!=null?K:""},commandController:{onSuccess:function(w,
d){H.onValidationResponse(d)},
onServerError:function(w,d){H.onValidationServerError(d)}}})}else H.handleUnexpectedValidationError(new _.qd("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",H.data))}},X)};
_.R.staticValidation=function(X){var H;if(((H=this.data)==null?void 0:H.channelHandleStaticValidationParams)!==void 0){H=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(X)&&H.validValueRegexpErrorMessage!==void 0)return H.validValueRegexpErrorMessage;if(H.minLength!==void 0&&X.length<H.minLength&&H.minLengthErrorMessage!==void 0)return H.minLengthErrorMessage;if(H.maxLength!==void 0&&X.length>H.maxLength&&H.maxLengthErrorMessage!==void 0)return H.maxLengthErrorMessage}};
_.R.onValidationResponse=function(X){var H=_.f(X.result,rke);H===void 0?this.handleUnexpectedValidationError(new _.qd("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",X)):this.handleValidationResultRenderer(H)};
_.R.onValidationServerError=function(X){this.handleUnexpectedValidationError(new _.qd("ValidateChannelHandle request failed.",X))};
_.R.handleValidationResultRenderer=function(X){if(X.handle===void 0)this.handleUnexpectedValidationError(new _.qd("ChannelHandleValidationResultRenderer does not contain handle.",X));else if(X.handle===this.handleInput.value)switch(X.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:X.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:X.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.qd("Unrecognized ChannelHandleValidationResult",X));break;default:_.Hp(X.result)}};
_.R.handleUnexpectedValidationError=function(X){var H;this.validationState={status:"UNKNOWN",handle:(H=this.handleInput.value)!=null?H:""};_.x2(X)};
_.R.stopEventPropagation=function(X){X.stopPropagation()};
_.R.updateHandleOnChannelNameInputChange=function(X){if(!this.wasEdited){var H,l;this.debouncedGenerateHandleFromName(X,(l=(H=this.data)==null?void 0:H.validationDelayMs)!=null?l:1E3)}};
_.R.debouncedGenerateHandleFromName=function(X,H){var l=this;_.pc(this,"debouncedGenerateHandleFromName",function(){var b;(b=l.data)!=null&&b.validateChannelHandleCommand?l.ytComponentBehavior.resolveCommand(l.data.validateChannelHandleCommand,{form:{name:X},commandController:{onSuccess:function(U,K){l.onGenerateHandleFromNameResponse(K)},
onServerError:function(U,K){_.x2(new _.qd("Error calling GenerateHandleFromName",K))}}}):_.x2(new _.qd("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",l.data))},H)};
_.R.onGenerateHandleFromNameResponse=function(X){this.wasEdited||((X=_.f(X.result,JkC))?this.setHandleInputValue(X.handle):_.x2(new _.qd("Invalid results when generate handle from name")))};
_.ja.Object.defineProperties(Vf.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var X;if(X=this.validationState)X=this.validationState,X=X.status==="OK"||X.status==="UNKNOWN";if(X)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var X;if(((X=this.validationState)==null?void 0:X.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 X,H=(X=this.channelHandleEntity)==null?void 0:X.handleEdit;this.handleDir=this.getHandleDir(H!=null?H:"");return H}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var X,H;if(((X=this.data)==null?void 0:(H=X.channelHandleStaticValidationParams)==null?void 0:H.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
Vf.prototype.stopEventPropagation=Vf.prototype.stopEventPropagation;Vf.prototype.onDataChanged=Vf.prototype.onDataChanged;Vf.prototype.applyHandleEdit=Vf.prototype.applyHandleEdit;Vf.prototype.onValueChanged=Vf.prototype.onValueChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Vf.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Vf.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Vf.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Boolean)],Vf.prototype,"wasEdited",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Vf.prototype,"handleDir",void 0);_.T([_.A2("#handle-input"),_.N("design:type",Object)],Vf.prototype,"handleInput",void 0);_.T([_.g(),_.x("validationState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Vf.prototype,"value",null);
_.T([_.Yh("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vf.prototype,"onValueChanged",null);_.T([_.x("validationState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Vf.prototype,"errorIndicator",null);_.T([_.g({reflectToAttribute:!0}),_.x("errorIndicator"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Vf.prototype,"borderErrorIndicator",null);
_.T([_.g({selectorArgs:["data.channelHandleEntityKey"],selector:function(X,H){return _.JY(X.entities,"channelHandle",H)}}),
_.N("design:type",Object)],Vf.prototype,"channelHandleEntity",void 0);_.T([_.x("channelHandleEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],Vf.prototype,"handleEdit",null);_.T([_.Yh("handleEdit"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vf.prototype,"applyHandleEdit",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vf.prototype,"onDataChanged",null);
_.T([_.x("data.channelHandleStaticValidationParams.validValueRegexp"),_.N("design:type",Object),_.N("design:paramtypes",[])],Vf.prototype,"validValueRegexp",null);_.T([_.Le("yt-service-request-sent"),_.Le("yt-service-request-completed"),_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Vf.prototype,"stopEventPropagation",null);_.T([_.sq({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],Vf);
_.O(Vf,"ytd-channel-handle-input-renderer",function(){if(fba!==void 0)return fba;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return fba=X},{mode:2});var Pk=function(){var X=_.a.apply(this,arguments)||this;X.data=null;X.errorMessage=null;X.isLoading=!0;X.enableNewChannelCreationOnIdForAll=_.P("enable_new_channel_creation_for_id4all");X.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction"};X.testOnly={setErrorMessage:function(H){X.resetErrorState();X.setErrorState(H)}};
return X};
_.S(Pk,_.a);_.R=Pk.prototype;_.R.created=function(){this.logScreenVe()};
_.R.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")};
_.R.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var X;((X=this.zeroStepErrorMessageEntity)==null?0:X.value)&&this.set("errorMessage",_.xM(this.zeroStepErrorMessageEntity.value))};
_.R.onCreateTap=function(){var X=this;if(this.data&&this.data.channelCreationEndpoint){var H,l;if(!((H=this.data.createChannelButton)==null?0:(l=H.buttonRenderer)==null?0:l.isDisabled)){var b;if((b=this.nameInput)!=null&&b.value){this.setLoadingState();var U,K;H=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(U=this.handleInput)==null?void 0:U.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((K=this.handleInput)==null?void 0:K.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:H,commandController:{onSuccess:function(w,d){X.onChannelCreationEndpointSuccess(d);X.obakeImageSource&&_.Sh("channelCreatedWithObakeImage",{imageSourceType:X.obakeImageSource})},
onServerError:function(){X.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.R.endpointRequiresServiceRequestAction=function(X){return!!_.f(X,_.up)||!!_.f(X,jXC)};
_.R.isNavigateAction=function(X){var H;return!!_.f(X,ina)||!!_.f((H=_.f(X,Xa$))==null?void 0:H.command,ina)};
_.R.isPlaylistAction=function(X){return!!_.f(X,_.MI)||!!_.f(X,_.PX)};
_.R.onChannelCreationEndpointSuccess=function(X){if(X.createChannelError){var H;this.setErrorState((H=X.createChannelError)==null?void 0:H.errorMessage);this.handleInput&&this.handleInput.validate()}else{X.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(X.navigationEndpoint);if(X.actions){H=_.C(X.actions);for(var l=H.next();!l.done;l=H.next())if(l=l.value,this.endpointRequiresServiceRequestAction(l)&&this.ytComponentBehavior.resolveCommand(l),this.isNavigateAction(l)){var b=void 0;l=_.f((b=
_.f(l,Xa$))==null?void 0:b.command,ina);b=void 0;this.isPlaylistAction((b=l)==null?void 0:b.endpoint)&&(_.TP(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),b=void 0,this.ytComponentBehavior.resolveCommand((b=l)==null?void 0:b.endpoint))}}X.actions&&X.actions.some(function(U){var K;return _.f(U,ina)||_.f((K=_.f(U,Xa$))==null?void 0:K.command,ina)})||_.TP(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.R.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.R.onCancelTap=function(){var X,H,l;if(!((X=this.data)==null?0:(H=X.cancelButton)==null?0:(l=H.buttonRenderer)==null?0:l.isDisabled)){var b,U,K;X=(b=this.data)==null?void 0:(U=b.cancelButton)==null?void 0:(K=U.buttonRenderer)==null?void 0:K.command;if(!X||!_.f(X,_.NlO)){var w;this.nameInput&&((w=this.data)==null?0:w.name)&&(this.nameInput.value=this.data.name);var d;this.handleInput&&((d=this.data)==null?0:d.channelHandleInput)&&(this.handleInput.data=_.f(this.data.channelHandleInput,Lfx));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.R.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.R.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.R.onClearProfilePhotoTap=function(){var X,H,l;((X=this.data)==null?0:(H=X.clearProfilePhotoButton)==null?0:(l=H.buttonRenderer)==null?0:l.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.R.onEditAvatarTap=function(){var X,H,l;((X=this.data)==null?0:(H=X.editAvatarButton)==null?0:(l=H.buttonRenderer)==null?0:l.isDisabled)||this.openProfilePicturePicker()};
_.R.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)};
_.R.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var X;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((X=this.data)==null?0:X.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.R.setErrorState=function(X){this.resetErrorState();if(X)this.set("errorMessage",X);else{var H;if((H=this.zeroStepErrorMessageEntity)==null?0:H.value)this.set("errorMessage",_.xM(this.zeroStepErrorMessageEntity.value));else{var l;((l=this.data)==null?0:l.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.R.fetchImageBlobWithAlr=function(X,H){H=H===void 0?5:H;var l=this,b,U,K,w,d;return _.h(function(B){switch(B.nextAddress){case 1:return B.yield(fetch(X,{method:"GET",mode:"cors"}),2);case 2:b=B.yieldResult;if(b.ok){B.jumpTo(3);break}if(H===0)throw Error();U=l.addJitter(Math.pow(2,5-H));return B.yield(new Promise(function(q){setTimeout(q,U*1E3)}),4);
case 4:return B.return(l.fetchImageBlobWithAlr(X,H-1));case 3:if(!b.headers.get("content-type").split(";").some(function(q){return q.trim()==="text/plain"})){B.jumpTo(5);
break}K=l;w=K.fetchImageBlobWithAlr;return B.yield(b.text(),6);case 6:return B.return(w.call(K,B.yieldResult,H-1));case 5:return B.yield(b.blob(),7);case 7:return d=B.yieldResult,B.return(d)}})};
_.R.addJitter=function(X){var H=X*.3*Math.random();Math.random()>.5&&(H*=-1);return X+H};
_.R.openProfilePicturePicker=function(){var X=this,H,l,b,U,K,w;return _.h(function(d){if(d.nextAddress==1){H=X.data.scottyUploadUrl;if(!H)return d.return();l=document.documentElement.hasAttribute("dark");b=document.body.style.colorScheme;l&&(document.body.style.colorScheme="dark");U=UyZ($y$(bL$(YKe(l?"dark":"light")),function(B){var q,u,e,y,V;return _.h(function(p){if(p.nextAddress==1)return q=_.Xv(foN(new C9x(B.photoUrl,!1)).build(),"alr","yes"),X.obakeImageSource=X.pictureChangeSourceToObakeImageSourceType(B.photoSource),
_.Ew(p,2),X.setLoadingState(),p.yield(X.fetchImageBlobWithAlr(q),4);if(p.nextAddress!=2)return u=p.yieldResult,e=new FileReader,e.addEventListener("load",function(){var z,t,W,G,r,Q;return _.h(function(v){if(v.nextAddress==1){if(u.size>15728640)return X.setErrorState((z=X.data)==null?void 0:z.imageSizeErrorMessage),_.x2(Error("im")),v.return();if(!e.result)return X.setErrorState((t=X.data)==null?void 0:t.genericImageLoadErrorMessage),_.x2(Error("jm")),v.return();W=e.result;_.Ew(v,2);return v.yield(EgZ(u,
H),4)}if(v.nextAddress!=2)return G=v.yieldResult,X.handleImageUpdatedAction(W,G),X.resetErrorState(),_.Zt(v,0);r=_.Ow(v);X.setErrorState((Q=X.data)==null?void 0:Q.uploadErrorMessage);if(r instanceof Error)_.n2(r);else{var J=new _.qd(JSON.stringify(r));_.n2(J)}_.m5(v)})}),e.readAsDataURL(u),_.Zt(p,0);
y=_.Ow(p);X.setErrorState((V=X.data)==null?void 0:V.genericImageLoadErrorMessage);y instanceof Error?_.n2(y):_.k2(new _.qd(JSON.stringify(y)));_.m5(p)})}),function(){document.body.style.colorScheme=b});
_.Ew(d,2);return((K=X.data)==null?0:K.shouldViewChannelCreationFormForSupex)?d.yield(U.openPicker("profile-picture/art-selection"),5):d.yield(U.openPicker(),5)}if(d.nextAddress!=2)return _.Zt(d,0);_.Ow(d);X.setErrorState((w=X.data)==null?void 0:w.selectImageErrorMessage);_.m5(d)})};
_.R.pictureChangeSourceToObakeImageSourceType=function(X){switch(X){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.R.logScreenVe=function(){_.jR(_.lv(),124448)};
_.R.graftServerVe=function(){var X=_.F6(),H,l,b=(H=this.data)==null?void 0:(l=H.loggingDirectives)==null?void 0:l.trackingParams;b&&X&&(this.channelCreationFormVe=_.lv().graftServerVe(b,X),X={visualElement:this.channelCreationFormVe},_.AF().reportShown(X))};
_.R.isNameChanged=function(X){var H;return((H=this.data)==null?void 0:H.name)!==X};
_.R.isHandleChanged=function(X){var H,l=_.f((H=this.data)==null?void 0:H.channelHandleInput,Lfx);return l&&X?l.handle!==X:!1};
_.R.handleImageUpdatedAction=function(X,H){this.previewDataUrl=X;this.encryptedBlobId=H};
_.R.handleImageSelectionErrorAction=function(X){this.setErrorState(X)};
_.R.handleImageSelectionResetErrorAction=function(){this.resetErrorState()};
_.R.maybeWipeZeroStepErrorMessage=function(){var X,H=(X=this.data)==null?void 0:X.zeroStepErrorMessageEntityKey,l;H&&((l=this.zeroStepErrorMessageEntity)==null?0:l.value)&&this.ytdReduxBehavior.dispatch(_.Us("stringEntity",H,{key:H,value:""}))};
_.ja.Object.defineProperties(Pk.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 X;return((X=this.photoThumbnail)==null?0:X.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 X;return!((X=this.data)==null||!X.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.descriptionInfo}}});
Pk.prototype.dataChanged=Pk.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Pk.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Pk.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Pk.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Pk.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Pk.prototype,"errorMessage",void 0);
_.T([_.g(),_.N("design:type",Object)],Pk.prototype,"isLoading",void 0);_.T([_.g(),_.N("design:type",String)],Pk.prototype,"previewDataUrl",void 0);_.T([_.g(),_.N("design:type",Number)],Pk.prototype,"obakeImageSource",void 0);_.T([_.A2("#title-input"),_.N("design:type",Object)],Pk.prototype,"nameInput",void 0);_.T([_.A2("#handle-input"),_.N("design:type",Object)],Pk.prototype,"handleInput",void 0);_.T([_.g(),_.N("design:type",Boolean)],Pk.prototype,"enableNewChannelCreationOnIdForAll",void 0);
_.T([_.g({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.naZ}),_.N("design:type",Object)],Pk.prototype,"zeroStepErrorMessageEntity",void 0);_.T([_.x("data","data.isDefaultProfilePhoto","previewDataUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pk.prototype,"photoThumbnail",null);_.T([_.x("data","data.isDefaultProfilePhoto","photoThumbnail"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pk.prototype,"userSetPhotoThumbnailUrl",null);
_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pk.prototype,"hideProfilePhotoButtonLayer",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pk.prototype,"enableIdentityForAllChannelCreationDialog",null);_.T([_.oi("data","zeroStepErrorMessageEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pk.prototype,"dataChanged",null);
_.T([_.g({reflectToAttribute:!0}),_.x("data.descriptionInfo","zeroStepErrorMessageEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pk.prototype,"description",null);_.T([_.sq({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Pk);
_.O(Pk,"ytd-channel-creation-dialog-renderer",function(){if(PrN!==void 0)return PrN;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return PrN=X},{mode:1});var pqd;var fw=function(){var X=_.a.apply(this,arguments)||this;X.isLoading=!1;X.isDisabled=!1;return X};
_.S(fw,_.a);fw.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
fw.prototype.updateDisabled=function(){var X;this.isDisabled=this.isLoading||((X=this.handleInput)==null?void 0:X.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
fw.prototype.onSaveClick=function(){var X=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var H;((H=this.data)==null?void 0:H.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var l;if((l=X.data)==null?0:l.nextEndpoint){var b;X.ytComponentBehavior.resolveCommand((b=X.data)==null?void 0:b.nextEndpoint)}else X.isLoading=
!1,X.closeDialog()},
onServerError:function(){X.isLoading=!1;X.handleInput.validate();var l;X.errorMessage=(l=X.data)==null?void 0:l.errorMessage}}}))}};
fw.prototype.closeDialog=function(){_.TP(this.hostElement,"yt-close-popup-action",[this.is])};
fw.prototype.updateDisabled=fw.prototype.updateDisabled;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],fw.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],fw.prototype,"data",void 0);_.T([_.A2("#handle-input"),_.N("design:type",Object)],fw.prototype,"handleInput",void 0);_.T([_.Yh("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fw.prototype,"updateDisabled",null);
_.T([_.sq({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],fw);
_.O(fw,"ytd-channel-handle-edit-dialog-renderer",function(){if(pqd!==void 0)return pqd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return pqd=X},{mode:1});var SXa;var pw=function(){return _.a.apply(this,arguments)||this};
_.S(pw,_.a);pw.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pw.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],pw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pw.prototype,"data",void 0);_.T([_.sq({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],pw);
_.O(pw,"ytd-channel-switcher-footer-renderer",function(){if(SXa!==void 0)return SXa;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return SXa=X},{mode:1});var z$$;var n0x;var SQ=function(){return _.a.apply(this,arguments)||this};
_.S(SQ,_.a);SQ.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
SQ.prototype.onIronChange=SQ.prototype.onIronChange;_.T([_.g(),_.N("design:type",Object)],SQ.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!1}),_.N("design:type",Function)],SQ.prototype,"onDontAskAgainChanged",void 0);_.T([_.A2("#checkbox"),_.N("design:type",Object)],SQ.prototype,"checkbox",void 0);_.T([_.Le("iron-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SQ.prototype,"onIronChange",null);
_.T([_.sq({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],SQ);
_.O(SQ,"ytd-identity-prompt-footer-renderer",function(){if(n0x!==void 0)return n0x;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return n0x=X},{mode:1});var zO=function(){var X=_.a.apply(this,arguments)||this;X.dontAskAgain=!1;X.showPopup=!1;X.boundDontAskAgainChanged=function(H){X.dontAskAgainChanged(H)};
X.boundOnAccountItemTap=function(H){X.onAccountItemTap(H)};
return X};
_.S(zO,_.a);_.R=zO.prototype;
_.R.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]]"}}}}}};
_.R.ready=function(){var X=this;_.mh(this.hostElement).querySelector("#container").addEventListener("scroll",function(){X.ytRendererBehavior.markDirty()})};
_.R.dontAskAgainChanged=function(X){this.dontAskAgain=X};
_.R.onAccountItemTap=function(X){if(X){var H={};this.dontAskAgain&&(H={dont_ask_again:this.dontAskAgain});_.y_(X,H)}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.R.redirectOnlyAccount=function(X){X.sections&&X.sections.length>0&&(X=_.f(X.sections[0],_.LTY),(X==null?0:X.contents)&&(X==null?void 0:X.contents.length)<=1?(X=_.QO(window.location.href),(X==null?0:X.next)&&_.SfZ(X.next)?_.y_(X.next):_.y_("/")):this.showPopup=!0)};
zO.prototype.dataChanged=zO.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],zO.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!1}),_.N("design:type",Object)],zO.prototype,"dontAskAgain",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],zO.prototype,"showPopup",void 0);_.T([_.g({reflectToAttribute:!1}),_.N("design:type",Object)],zO.prototype,"boundDontAskAgainChanged",void 0);_.T([_.g({reflectToAttribute:!1}),_.N("design:type",Object)],zO.prototype,"boundOnAccountItemTap",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zO.prototype,"dataChanged",null);
_.T([_.sq({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],zO);
_.O(zO,"ytd-channel-switcher-renderer",function(){if(z$$!==void 0)return z$$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return z$$=X},{mode:1});var k$Z;var nw=function(){return _.a.apply(this,arguments)||this};
_.S(nw,_.a);_.ja.Object.defineProperties(nw.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.T([_.g(),_.N("design:type",Object)],nw.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],nw.prototype,"steps",null);_.T([_.sq({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],nw);
_.O(nw,"ytd-channel-transfer-stepper-renderer",function(){if(k$Z!==void 0)return k$Z;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return k$Z=X},{mode:1});var xMy;var kf=function(){var X=_.a.apply(this,arguments)||this;X.data=null;X.isError=!1;X.isLoading=!1;return X};
_.S(kf,_.a);_.R=kf.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.R.computeProfileName=function(X){return X?X.givenNameValue+" "+X.familyNameValue:""};
_.R.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)};
_.R.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)};
kf.prototype.onYtServiceRequestError=kf.prototype.onYtServiceRequestError;kf.prototype.onYtServiceRequestSent=kf.prototype.onYtServiceRequestSent;kf.prototype.dataChanged=kf.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],kf.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],kf.prototype,"data",void 0);
_.T([_.g({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.N("design:type",String)],kf.prototype,"profileName",void 0);_.T([_.g(),_.N("design:type",Object)],kf.prototype,"isError",void 0);_.T([_.g(),_.N("design:type",Object)],kf.prototype,"isLoading",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kf.prototype,"dataChanged",null);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],kf.prototype,"onYtServiceRequestSent",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],kf.prototype,"onYtServiceRequestError",null);_.T([_.sq({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],kf);
_.O(kf,"ytd-channel-warm-welcome-cont-renderer",function(){if(xMy!==void 0)return xMy;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return xMy=X},{mode:1});var DMY;var xf=function(){var X=_.a.apply(this,arguments)||this;X.data=null;return X};
_.S(xf,_.a);xf.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
xf.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],xf.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xf.prototype,"data",void 0);_.T([_.sq({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],xf);
_.O(xf,"ytd-channel-warm-welcome-renderer",function(){if(DMY!==void 0)return DMY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return DMY=X},{mode:1});var tSU;var Df=function(){return _.a.apply(this,arguments)||this};
_.S(Df,_.a);_.ja.Object.defineProperties(Df.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.authorThumbnail)||{}}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Df.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Df.prototype,"thumbnailDetails",null);_.T([_.sq({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Df);
_.O(Df,"ytd-comment-preview-renderer",function(){if(tSU!==void 0)return tSU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return tSU=X},{mode:1});var WOl;var tt=function(){return _.a.apply(this,arguments)||this};
_.S(tt,_.a);tt.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ja.Object.defineProperties(tt.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.submitButton}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],tt.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],tt.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],tt.prototype,"submitButton",null);_.T([_.sq({is:"ytd-notice-renderer",disableElementRegistration:!0})],tt);
_.O(tt,"ytd-notice-renderer",function(){if(WOl!==void 0)return WOl;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return WOl=X},{mode:1});var E05;var Wk=function(){return _.a.apply(this,arguments)||this};
_.S(Wk,_.a);Wk.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Wk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Wk.prototype,"data",void 0);_.T([_.sq({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Wk);
_.O(Wk,"ytd-preview-comment-dialog-content",function(){if(E05!==void 0)return E05;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return E05=X},{mode:1});var g05;var Eu=function(){return _.a.apply(this,arguments)||this};
_.S(Eu,_.a);Eu.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Eu.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Eu.prototype,"data",void 0);_.T([_.sq({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Eu);
_.O(Eu,"ytd-preview-comment-dialog-renderer",function(){if(g05!==void 0)return g05;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return g05=X},{mode:1});var G$e;var ab$=_.P("web_button_rework")&&_.G7("BUTTON_REWORK")||_.P("web_button_rework_with_live"),g4=function(){var X=_.a.apply(this,arguments)||this;X.closeLabel=_.XS("CLOSE");X.selectedAmountIndex=1;X.privacyCheckboxValue=!1;X.useAmsterdamStyle=ab$;X.amountPlaceholderIndex=-1;return X};
_.S(g4,_.a);_.R=g4.prototype;_.R.onAmountClick=function(X){this.selectedAmountIndex=_.mh(this.hostElement).querySelector("#amounts").indexForElement(X.currentTarget)};
_.R.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.TP(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.R.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.TP(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.TP(this.hostElement,"yt-close-popup-action",[this.is]);var X;(X=_.aq())==null||X.getPlayerPromise().then(function(H){H.pauseVideo()})}};
_.R.donationCallback=function(X){X.success?(this.hostElement.hasAttribute("live-chat")&&X.response&&X.response.data&&X.response.data.actions&&_.TP(this.hostElement,"yt-live-chat-open-popup",[X.response.data.actions[0]]),_.TP(this.hostElement,"yt-close-popup-action",[this.is]),_.TP(this.hostElement,"yt-live-chat-close-buy-flow")):X.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(X.errorMessageRenderer)};
_.R.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.mh(this.hostElement).querySelector("#custom-amount-input").focus()};
_.R.updateConfirmationDialogTextWithAmount=function(X){var H=this.getConfirmDialogRuns();H&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(H),"text"],this.getFormattedAmount(X))};
_.R.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.R.getAmountPlaceholderIndex=function(X){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=X.findIndex(function(H){return H.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.R.getFormattedAmount=function(X){var H;return(new _.pT(4,((H=this.data)==null?void 0:H.currencyCode)||"")).format(X)};
_.R.isAmountValid=function(X){if(X==="")return!1;X=Number(X)*1E6;var H=this.get("minAmountMicros",this.data),l=this.get("maxAmountMicros",this.data);return H&&X<H||l&&X>l?!1:!0};
_.R.setInputError=function(){this.shouldShowValidationError?_.mh(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.mh(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.R.setInitialCheckboxValue=function(){var X;this.privacyCheckboxValue=!((X=this.data)==null||!X.privacyCheckboxInitialState)};
_.R.updateCustomAmountInputFromBinding=function(X){this.customAmountInput=X.detail.value};
_.R.updatePrivacyCheckboxValueFromBinding=function(X){this.privacyCheckboxValue=X.detail.value};
_.ja.Object.defineProperties(g4.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var X=this,H,l;return((H=this.data)==null?void 0:(l=H.suggestedAmounts)==null?void 0:l.map(function(b,U){return{buttonRenderer:{style:X.selectedAmountIndex===U?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:b.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 X;return!((X=this.data)==null||!X.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 X=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(X&&this.amountMicros!==null)return Object.assign({},X,{ypcGetCartEndpoint:Object.assign({},X.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 X=this.get("confirmLargeAmount",this.data);if(X&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),X}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var X=this.get("donateButton.buttonRenderer",this.data);if(X)return Object.assign({},X,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
g4.prototype.setInitialCheckboxValue=g4.prototype.setInitialCheckboxValue;g4.prototype.setInputError=g4.prototype.setInputError;g4.prototype.setFocusOnCustomAmountInput=g4.prototype.setFocusOnCustomAmountInput;_.T([_.k(WBe),_.N("design:type",Object)],g4.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],g4.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],g4.prototype,"closeLabel",void 0);_.T([_.g(),_.N("design:type",Object)],g4.prototype,"selectedAmountIndex",void 0);_.T([_.g(),_.N("design:type",String)],g4.prototype,"customAmountInput",void 0);_.T([_.g(),_.N("design:type",Object)],g4.prototype,"privacyCheckboxValue",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],g4.prototype,"useAmsterdamStyle",void 0);_.T([_.Yh("customAmount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g4.prototype,"setFocusOnCustomAmountInput",null);_.T([_.x("data","selectedAmountIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],g4.prototype,"suggestedAmountButtons",null);
_.T([_.x("data","selectedAmountIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],g4.prototype,"isCustomAmountSelected",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],g4.prototype,"showPrivacyCheckbox",null);_.T([_.x("data","selectedAmountIndex","customAmount"),_.N("design:type",Object),_.N("design:paramtypes",[])],g4.prototype,"amountMicros",null);
_.T([_.x("isCustomAmountSelected","customAmountInput"),_.N("design:type",Object),_.N("design:paramtypes",[])],g4.prototype,"customAmount",null);_.T([_.x("customAmount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],g4.prototype,"shouldShowValidationError",null);_.T([_.x("customAmount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],g4.prototype,"isDonateButtonEnabled",null);
_.T([_.x("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.N("design:type",Object),_.N("design:paramtypes",[])],g4.prototype,"donateCommand",null);_.T([_.x("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.N("design:type",Object),_.N("design:paramtypes",[])],g4.prototype,"donateCommandWithConfirmation",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],g4.prototype,"largeDonationThreshold",null);
_.T([_.x("customAmount","donateCommand","amountMicros"),_.N("design:type",Object),_.N("design:paramtypes",[])],g4.prototype,"confirmLargeAmountCommand",null);_.T([_.x("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.N("design:type",Object),_.N("design:paramtypes",[])],g4.prototype,"donateButtonRenderer",null);_.T([_.Yh("shouldShowValidationError"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g4.prototype,"setInputError",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g4.prototype,"setInitialCheckboxValue",null);_.T([_.sq({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],g4);
_.O(g4,"ytd-donation-amount-picker-renderer",function(){if(G$e!==void 0)return G$e;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return G$e=X},{mode:1});var ZQd;var iQU=function(){return _.a.apply(this,arguments)||this};
_.S(iQU,_.a);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],iQU.prototype,"ytComponentBehavior",void 0);_.T([_.g({}),_.N("design:type",Object)],iQU.prototype,"data",void 0);_.T([_.sq({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],iQU);
_.O(iQU,"ytd-donation-post-transaction-content",function(){if(ZQd!==void 0)return ZQd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ZQd=X},{mode:1});var v0A;var GO=function(){return _.a.apply(this,arguments)||this};
_.S(GO,_.a);GO.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.T([_.g({}),_.N("design:type",Object)],GO.prototype,"data",void 0);_.T([_.sq({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],GO);
_.O(GO,"ytd-donation-post-transaction-renderer",function(){if(v0A!==void 0)return v0A;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return v0A=X},{mode:1});var OQC;var mMN;var aT=function(){return _.a.apply(this,arguments)||this};
_.S(aT,_.a);aT.prototype.computeIsStreamingProvider=function(X){return!!X.isStreamingShelf};
aT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],aT.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],aT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],aT.prototype,"data",void 0);_.T([_.g({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],aT.prototype,"isStreamingProvider",void 0);
_.T([_.sq({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],aT);
_.O(aT,"ytd-media-provider-renderer",function(){if(mMN!==void 0)return mMN;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return mMN=X},{mode:1});var Q3A;var Zf=function(){return _.a.apply(this,arguments)||this};
_.S(Zf,_.a);Zf.prototype.observeLightsourcePalette=function(){var X,H=(X=this.data)==null?void 0:X.vibrantsourceColorPaletteData;H&&_.Rq(this.hostElement,H)};
Zf.prototype.observeLightsourcePalette=Zf.prototype.observeLightsourcePalette;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Zf.prototype,"data",void 0);
_.T([_.Yh("data.vibrantsourceColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zf.prototype,"observeLightsourcePalette",null);_.T([_.sq({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Zf);
_.O(Zf,"ytd-streaming-pop-up-dialog",function(){if(Q3A!==void 0)return Q3A;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Q3A=X},{mode:1});var iS=function(){return _.a.apply(this,arguments)||this};
_.S(iS,_.a);iS.prototype.onPopupOpened_=function(){var X;((X=this.data)==null?0:X.serviceEndpoint)&&_.jJ().resolve(_.Vr).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
iS.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
iS.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"}}}}};
iS.prototype.onPopupOpened_=iS.prototype.onPopupOpened_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.EO),_.N("design:type",Object)],iS.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],iS.prototype,"data",void 0);
_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iS.prototype,"onPopupOpened_",null);_.T([_.sq({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],iS);
_.O(iS,"ytd-brandconnect-popup-renderer",function(){if(OQC!==void 0)return OQC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return OQC=X},{mode:1});var TNC;var vk=function(){return _.a.apply(this,arguments)||this};
_.S(vk,_.a);_.R=vk.prototype;_.R.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){for(var X=0;X<this.getOptionRenderers().length;X++)this.notifyPath("data.options."+X+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+X+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.R.updateSubmitButton=function(X){this.set("data.submitButton.buttonRenderer.isDisabled",!X)};
_.R.computeAlt=function(X){return _.D8(X)};
_.R.onDismissTap=function(){_.TP(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.jJ().resolve(_.Vr).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.R.getOptionRenderers=function(X){return(X=X||this.data)&&X.options?X.options.reduce(function(H,l){l.checkboxSurveyOptionRenderer&&H.push(l.checkboxSurveyOptionRenderer);return H},[]):[]};
_.R.onOptionChange=function(X){var H=this,l=!1;if(X.detail.checked)for(var b=this.getOptionRenderers().find(function(d){return d.value===X.detail.value}),U=this.getOptionRenderers(),K=0;K<U.length;K++){var w=U[K];
this.notifyPath("data.options."+K+".checkboxSurveyOptionRenderer.checked");w.checked&&((b==null?0:b.isExclusiveOption)?!w.isExclusiveOption:w.isExclusiveOption)?this.set("data.options."+K+".checkboxSurveyOptionRenderer.checked",!1):w.checked&&(l=!0)}else l=this.getOptionRenderers().some(function(d,B){H.notifyPath("data.options."+B+".checkboxSurveyOptionRenderer.checked");return d.checked});
this.updateSubmitButton(l)};
_.R.onSubmitTap=function(){var X=this.getOptionRenderers().filter(function(K){return K.checked});
if(X.length!==0){var H=X.map(function(K){return K.responseEndpoint});
X=[];for(var l=1;l<H.length;l++){var b=void 0,U=(b=_.f(H[l],_.eY))==null?void 0:b.feedbackToken;U&&X.push(U)}H=[H[0]];X.length&&H.push({extra_feedback_tokens:X});_.ci(this.hostElement,H);_.TP(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);X=this.data&&this.data.submitActions||[];if(_.P("kevlar_command_handler_migration_killswitch"))_.j7(this.hostElement,X,this.hostElement);else for(X=_.C(X),H=X.next();!H.done;H=X.next())this.ytComponentBehavior.resolveCommand(H.value)}};
vk.prototype.onOptionChange=vk.prototype.onOptionChange;vk.prototype.dataChanged=vk.prototype.dataChanged;_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],vk.prototype,"ytEventForwardingBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],vk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],vk.prototype,"ytComponentBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.T([_.k(wdA),_.N("design:type",Object)],vk.prototype,"ytdHatsSurveyBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],vk.prototype,"data",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vk.prototype,"dataChanged",null);
_.T([_.Le("ytd-checkbox-survey-option-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],vk.prototype,"onOptionChange",null);_.T([_.sq({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],vk);
_.O(vk,"ytd-checkbox-survey-renderer",function(){if(TNC!==void 0)return TNC;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return TNC=X},{mode:1});var NNa;var cEY;var Ou=function(){return _.a.apply(this,arguments)||this};
_.S(Ou,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.T([_.k(Rbx),_.N("design:type",Object)],Ou.prototype,"ytdDismissalReasonBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ou.prototype,"data",void 0);_.T([_.sq({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Ou);
_.O(Ou,"ytd-dismissal-reason-text-renderer",function(){if(cEY!==void 0)return cEY;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return cEY=X},{mode:1});var j3Y;var m7=function(){return _.a.apply(this,arguments)||this};
_.S(m7,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.T([_.k(Rbx),_.N("design:type",Object)],m7.prototype,"ytdDismissalReasonBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],m7.prototype,"data",void 0);_.T([_.sq({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],m7);
_.O(m7,"ytd-dismissal-reason-video-renderer",function(){if(j3Y!==void 0)return j3Y;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return j3Y=X},{mode:1});var Qf=function(){return _.a.apply(this,arguments)||this};
_.S(Qf,_.a);_.R=Qf.prototype;_.R.created=function(){this.selectedFeedbackTokens=new MB};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.R.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.R.onDismissalReasonSelected=function(X,H){_.QX(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(H);this.hasReasonsSelected=!0};
_.R.onDismissalReasonDeselected=function(X,H){_.QX(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(H);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.R.onCancelTap=function(){_.TP(this.hostElement,"yt-close-popup-action")};
_.R.onSubmitTap=function(){var X=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(X={feedback_tokens:X},_.jJ().resolve(_.Vr).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},X,{element:this.hostElement})}));_.TP(this.hostElement,"yt-close-popup-action")};
Qf.prototype.onDismissalReasonDeselected=Qf.prototype.onDismissalReasonDeselected;Qf.prototype.onDismissalReasonSelected=Qf.prototype.onDismissalReasonSelected;Qf.prototype.dataChanged=Qf.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Qf.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Boolean)],Qf.prototype,"hasReasonsSelected",void 0);_.T([_.g(),_.N("design:type",MB)],Qf.prototype,"selectedFeedbackTokens",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qf.prototype,"dataChanged",null);_.T([_.Le("yt-dismissal-reason-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],Qf.prototype,"onDismissalReasonSelected",null);
_.T([_.Le("yt-dismissal-reason-deselected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],Qf.prototype,"onDismissalReasonDeselected",null);_.T([_.sq({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Qf);
_.O(Qf,"ytd-dismissal-follow-up-renderer",function(){if(NNa!==void 0)return NNa;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return NNa=X},{mode:1});var rE$;var TO=function(){return _.a.apply(this,arguments)||this};
_.S(TO,_.a);_.R=TO.prototype;_.R.onCheckedChange=function(){this.multiselect||_.QX(this.hostElement,"yt-feedback-single-select-changed");_.mh(this.hostElement).querySelector("#freeform").focus();_.QX(this.hostElement,"yt-refit")};
_.R.showTextBox=function(X,H){return X&&H};
_.R.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))};
_.R.updateDataCheckedFromBinding=function(X){this.set("data.checked",X.detail.value)};
_.R.updateDataResultTextFromBinding=function(X){this.set("data.resultText",X.detail.value)};
TO.prototype.dataChanged=TO.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],TO.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],TO.prototype,"multiselect",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TO.prototype,"dataChanged",null);
_.T([_.sq({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],TO);
_.O(TO,"ytd-feedback-option-renderer",function(){if(rE$!==void 0)return rE$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return rE$=X},{mode:1});var JEZ;var K1=function(){return _.a.apply(this,arguments)||this};
_.S(K1,_.a);K1.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
K1.prototype.onSingleSelectCheckedChanged=function(X){X=_.WM(X);for(var H=0;H<this.data.options.length;H++)if(X.data!==_.f(this.data.options[H],fle)){var l="data.options."+H+".feedbackOptionRenderer.checked";this.notifyPath(l);this.set(l,!1)}};
K1.prototype.onSingleSelectCheckedChanged=K1.prototype.onSingleSelectCheckedChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],K1.prototype,"data",void 0);
_.T([_.Le("yt-feedback-single-select-changed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],K1.prototype,"onSingleSelectCheckedChanged",null);_.T([_.sq({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],K1);
_.O(K1,"ytd-feedback-question-renderer",function(){if(JEZ!==void 0)return JEZ;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return JEZ=X},{mode:1});var LOy;var RN=function(){return _.a.apply(this,arguments)||this};
_.S(RN,_.a);RN.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
RN.prototype.getSelectedFeedbackResults=function(){for(var X={},H=0;H<this.data.questions.length;H++)for(var l=_.f(this.data.questions[H],Psl),b=0;b<l.options.length;b++){var U=_.f(l.options[b],fle);U&&U.checked&&(X[U.optionKey]=U.resultText)}return X};
RN.prototype.onKeyUp=function(){var X=this;_.v5(_.Ss,function(){_.QX(X.hostElement,"yt-refit")});
_.Ss.start()};
RN.prototype.submitSurvey=function(){var X=this.getSelectedFeedbackResults();Object.keys(X).length>0&&this.data.submitFeedbackEndpoint&&(X={survey_results:X,is_feedback_token_unencrypted:!0},_.jJ().resolve(_.Vr).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},X,{element:this.hostElement})}))};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],RN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],RN.prototype,"data",void 0);_.T([_.sq({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],RN);
_.O(RN,"ytd-feedback-survey-renderer",function(){if(LOy!==void 0)return LOy;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return LOy=X},{mode:1});var YXl;var Ibd;var C1=function(){return _.a.apply(this,arguments)||this};
_.S(C1,_.a);C1.prototype.computeAlt=function(X){return _.D8(X)};
C1.prototype.submitResponse=function(){var X,H;(X=this.data)!=null&&X.feedbackToken&&((H=this.data)==null?void 0:H.nextStageIndex)!==void 0&&(_.NG(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.NG(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
C1.prototype.onClick=function(){this.submitResponse()};
C1.prototype.onClick=C1.prototype.onClick;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],C1.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],C1.prototype,"vertical",void 0);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C1.prototype,"onClick",null);
_.T([_.sq({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],C1);
_.O(C1,"ytd-single-select-answer-option-renderer",function(){if(Ibd!==void 0)return Ibd;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Ibd=X},{mode:1});var AEZ;var wa=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return X};
_.S(wa,_.a);wa.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
wa.prototype.dataChanged=function(){var X,H;this.vertical=((H=(X=this.data)==null?void 0:X.answerOrientation)!=null?H:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
wa.prototype.submitFeedback=function(X){var H;((H=this.data)==null?0:H.responseEndpoint)&&X&&_.ci(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[X]}])};
wa.prototype.dataChanged=wa.prototype.dataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],wa.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],wa.prototype,"eventForwardingBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],wa.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],wa.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],wa.prototype,"vertical",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wa.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],wa);
_.O(wa,"ytd-single-select-question-renderer",function(){if(AEZ!==void 0)return AEZ;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return AEZ=X},{mode:1});var da=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return X};
_.S(da,_.a);_.R=da.prototype;_.R.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"}}}};
_.R.dataChanged=function(){this.jumpToStage(0)};
_.R.jumpToStage=function(X){var H,l;if((H=this.data)==null?0:(l=H.stages)==null?0:l[X])this.currentStage=this.data.stages[X],this.refitAfterRender()};
_.R.computeAlt=function(X){return _.D8(X)};
_.R.computeSimpleMessage=function(X){var H;return(H=_.f(X,zAU))==null?void 0:H.messageText};
_.R.computeHideDismiss=function(X){var H;return(H=_.f(X,zaN))==null?void 0:H.hideParentDismissButton};
_.R.onDismissTap=function(){_.TP(this.hostElement,"yt-close-popup-action");_.f(this.currentStage,zAU)||this.data.dismissalEndpoint&&_.jJ().resolve(_.Vr).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.R.refitAfterRender=function(){var X=this;_.N0(this,function(){_.QX(X.hostElement,"yt-refit")})};
da.prototype.dataChanged=da.prototype.dataChanged;_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],da.prototype,"eventForwardingBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],da.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],da.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],da.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k(wdA),_.N("design:type",Object)],da.prototype,"ytdHatsSurveyBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],da.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],da.prototype,"currentStage",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],da.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],da);
_.O(da,"ytd-multi-stage-survey-renderer",function(){if(YXl!==void 0)return YXl;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return YXl=X},{mode:1});var Xhz;var hM=function(){return _.a.apply(this,arguments)||this};
_.S(hM,_.a);hM.prototype.computeAlt=function(X){return _.D8(X)};
hM.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.jJ().resolve(_.Vr).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.TP(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(QeZ(!1)))};
hM.prototype.onTap=function(){this.vertical&&this.submitResponse()};
hM.prototype.onTap=hM.prototype.onTap;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],hM.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hM.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],hM.prototype,"vertical",void 0);
_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hM.prototype,"onTap",null);_.T([_.sq({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],hM);
_.O(hM,"ytd-single-option-survey-option-renderer",function(){if(Xhz!==void 0)return Xhz;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Xhz=X},{mode:1});var HyA;var FN=function(){return _.a.apply(this,arguments)||this};
_.S(FN,_.a);_.R=FN.prototype;_.R.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.dataChanged=function(){var X,H;this.vertical=(((X=this.data)==null?void 0:(H=X.surveyOrientation)==null?void 0:H.type)||"HORIZONTAL")==="VERTICAL"};
_.R.computeAlt=function(X){return _.D8(X)};
_.R.onDismissTap=function(){_.TP(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.jJ().resolve(_.Vr).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(QeZ(!1))};
FN.prototype.dataChanged=FN.prototype.dataChanged;_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],FN.prototype,"eventForwardingBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],FN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(wdA),_.N("design:type",Object)],FN.prototype,"ytdHatsSurveyBehavior",void 0);
_.T([_.k(_.sv),_.N("design:type",Object)],FN.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],FN.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],FN.prototype,"vertical",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FN.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],FN);
_.O(FN,"ytd-single-option-survey-renderer",function(){if(HyA!==void 0)return HyA;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return HyA=X},{mode:1});var lL9;var BV=function(){return _.a.apply(this,arguments)||this};
_.S(BV,_.a);BV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
BV.prototype.onDismissTap=function(){_.TP(this.hostElement,"yt-close-popup-action")};
BV.prototype.onNavigate=function(){_.TP(this.hostElement,"yt-close-popup-action")};
BV.prototype.onNavigate=BV.prototype.onNavigate;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],BV.prototype,"ytEventForwardingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],BV.prototype,"data",void 0);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BV.prototype,"onNavigate",null);
_.T([_.sq({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],BV);
_.O(BV,"ytd-survey-follow-up-renderer",function(){if(lL9!==void 0)return lL9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return lL9=X},{mode:1});var oNa;var byu;var UW9;var qT=function(){var X=_.a.apply(this,arguments)||this;X.polymer2="Element"in Polymer;return X};
_.S(qT,_.a);_.R=qT.prototype;_.R.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.R.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.R.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.R.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("minutes-changed",this.minutes))};
_.R.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("seconds-changed",this.seconds))};
_.R.updateMinutesFromBinding=function(X){this.minutes=X.detail.value};
_.R.updateSecondsFromBinding=function(X){this.seconds=X.detail.value};
qT.prototype.secondsChangedForBinding=qT.prototype.secondsChangedForBinding;qT.prototype.minutesChangedForBinding=qT.prototype.minutesChangedForBinding;qT.prototype.secondsChanged=qT.prototype.secondsChanged;_.T([_.g(),_.N("design:type",String)],qT.prototype,"minutes",void 0);_.T([_.g(),_.N("design:type",String)],qT.prototype,"seconds",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],qT.prototype,"polymer2",void 0);
_.T([_.A2("#seconds"),_.N("design:type",Object)],qT.prototype,"secondsEl",void 0);_.T([_.Yh("seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qT.prototype,"secondsChanged",null);_.T([_.Yh("minutes"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qT.prototype,"minutesChangedForBinding",null);
_.T([_.Yh("seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qT.prototype,"secondsChangedForBinding",null);_.T([_.qR({is:"yt-timestamp-input",disableElementRegistration:!0})],qT);
_.O(qT,"yt-timestamp-input",function(){if(UW9===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;byu===void 0&&(byu=document.createElement("template"));var b=byu;l.call(H,b.content.cloneNode(!0),X.content.firstChild);UW9=X}X=UW9;return X},{mode:2});var sN=function(){return _.a.apply(this,arguments)||this};
_.S(sN,_.a);_.R=sN.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$22504_scroller.dialogElement=this.hostElement.parentNode};
_.R.dataChanged=function(){var X=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.ZH().getPlayerPromise().then(function(H){H=H.getCurrentTime();X.minutes=Math.floor(H/60).toString();X.seconds=(Math.floor(H)%60).toString()})};
_.R.onTapSubmit=function(X){X.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(X={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(X.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(X.minutes=this.minutes,X.seconds=this.seconds),_.jJ().resolve(_.Vr).resolveCommand(this.serviceEndpoint,{form:Object.assign({},X,{element:this.hostElement})}))};
_.R.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.R.onYtServiceRequestCompleted=function(X,H){H=H.actions;if(Array.isArray(H))for(var l=0,b=H.length;l<b;l++)_.f(H[l],_.by)&&(X.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(H[l]))};
_.R.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.R.toggleSubmitButton=function(X){this.set("submitButton.isDisabled",!X)};
_.R.handleInput=function(){var X=this.issueType,H=this.affiliation,l=this.minutes,b=this.seconds;l=!this.showTimestamp||!!l&&!!b;this.toggleSubmitButton(!!this.descriptionText&&!!X&&!!H&&l)};
_.R.computeServiceEndpoint=function(X){return this.get("submitButton.buttonRenderer.serviceEndpoint",X)};
_.R.computeSubmitButton=function(X){(X=this.get("submitButton.buttonRenderer",X))&&(X=Object.assign({},X,{serviceEndpoint:void 0}));return X};
_.R.computeShowTimestamp=function(X){return!!X};
_.R.onValueChangedForIssueType=function(X){this.issueType=X.detail.value};
_.R.onValueChangedForAffiliation=function(X){this.affiliation=X.detail.value};
_.R.updateDescriptionTextFromBinding=function(X){this.descriptionText=X.detail.value};
_.R.updateFullNameTextFromBinding=function(X){this.fullNameText=X.detail.value};
_.R.updateMinutesFromBinding=function(X){this.minutes=X.detail.value};
_.R.updateSecondsFromBinding=function(X){this.seconds=X.detail.value};
sN.prototype.handleInput=sN.prototype.handleInput;sN.prototype.onYtServiceRequestError=sN.prototype.onYtServiceRequestError;sN.prototype.onYtServiceRequestCompleted=sN.prototype.onYtServiceRequestCompleted;sN.prototype.onYtServiceRequestSent=sN.prototype.onYtServiceRequestSent;sN.prototype.dataChanged=sN.prototype.dataChanged;_.T([_.k(_.cr.YtOpenPopupBehavior),_.N("design:type",Object)],sN.prototype,"ytOpenPopupBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.T([_.A2("#scroller"),_.N("design:type",Object)],sN.prototype,"JSC$22504_scroller",void 0);_.T([_.A2("#description"),_.N("design:type",HTMLInputElement)],sN.prototype,"description",void 0);_.T([_.A2("#full-name"),_.N("design:type",Object)],sN.prototype,"fullName",void 0);_.T([_.g(),_.N("design:type",Object)],sN.prototype,"data",void 0);
_.T([_.g({computed:"computeShowTimestamp(data.timestampLabel)"}),_.N("design:type",Boolean)],sN.prototype,"showTimestamp",void 0);_.T([_.g({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.N("design:type",Object)],sN.prototype,"serviceEndpoint",void 0);_.T([_.g({computed:"computeSubmitButton(data)"}),_.N("design:type",Object)],sN.prototype,"submitButton",void 0);_.T([_.g(),_.N("design:type",String)],sN.prototype,"descriptionText",void 0);
_.T([_.g(),_.N("design:type",Number)],sN.prototype,"issueType",void 0);_.T([_.g(),_.N("design:type",Number)],sN.prototype,"affiliation",void 0);_.T([_.g(),_.N("design:type",String)],sN.prototype,"fullNameText",void 0);_.T([_.g(),_.N("design:type",String)],sN.prototype,"minutes",void 0);_.T([_.g(),_.N("design:type",String)],sN.prototype,"seconds",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sN.prototype,"dataChanged",null);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],sN.prototype,"onYtServiceRequestSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],sN.prototype,"onYtServiceRequestCompleted",null);
_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],sN.prototype,"onYtServiceRequestError",null);_.T([_.Yh("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sN.prototype,"handleInput",null);_.T([_.sq({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],sN);
_.O(sN,"ytd-legal-report-details-form-renderer",function(){if(oNa!==void 0)return oNa;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return oNa=X},{mode:1});var $Wr;var MT=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return X};
_.S(MT,_.a);MT.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
MT.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var X=this.formRenderer.getForm();X&&this.data.submitEndpoint&&(_.jJ().resolve(_.Vr).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},X,{element:this.hostElement})}),_.TP(this.hostElement,"yt-close-popup-action"))}};
MT.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.TP(this.hostElement,"yt-close-popup-action"))};
MT.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
MT.prototype.onPopupClosed=MT.prototype.onPopupClosed;_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],MT.prototype,"ytEventForwardingBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],MT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],MT.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);
_.T([_.A2("yt-form-renderer"),_.N("design:type",Object)],MT.prototype,"formRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],MT.prototype,"data",void 0);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MT.prototype,"onPopupClosed",null);_.T([_.sq({is:"ytd-form-popup-content",disableElementRegistration:!0})],MT);
_.O(MT,"ytd-form-popup-content",function(){if($Wr!==void 0)return $Wr;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return $Wr=X},{mode:1});var Kmr;var u8=function(){return _.a.apply(this,arguments)||this};
_.S(u8,_.a);u8.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
u8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
u8.prototype.onPopupOpened=function(){_.QX(this.hostElement,"yt-invalidate-popup-tabbables")};
u8.prototype.onYtServiceRequestCompleted=function(X,H){H.data&&H.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.QX(this.hostElement,"yt-invalidate-popup-tabbables"))};
u8.prototype.onYtServiceRequestCompleted=u8.prototype.onYtServiceRequestCompleted;u8.prototype.onPopupOpened=u8.prototype.onPopupOpened;_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],u8.prototype,"ytEventForwardingBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],u8.prototype,"ytRendererBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],u8.prototype,"data",void 0);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u8.prototype,"onPopupOpened",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],u8.prototype,"onYtServiceRequestCompleted",null);_.T([_.sq({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],u8);
_.O(u8,"ytd-form-popup-renderer",function(){if(Kmr!==void 0)return Kmr;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Kmr=X},{mode:1});var RzU;var eT=function(){var X=_.a.apply(this,arguments)||this;X.isLoading=!1;return X};
_.S(eT,_.a);_.R=eT.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");CTa(this.hostElement)};
_.R.onYtServiceRequestSent=function(){this.isLoading=!0};
_.R.onYtServiceRequestCompleted=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.R.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.j7(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.R.closePopupHandler=function(){this.fireOnCloseActions()};
_.R.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var X=this.get("data.headerImage.thumbnails");X&&(X=_.G0(X,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+X+")")}};
_.R.onYtNavigate=function(X){(X=_.WM(X))&&X.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
eT.prototype.onYtNavigate=eT.prototype.onYtNavigate;eT.prototype.onHeaderImageChanged=eT.prototype.onHeaderImageChanged;eT.prototype.closePopupHandler=eT.prototype.closePopupHandler;eT.prototype.onYtServiceRequestCompleted=eT.prototype.onYtServiceRequestCompleted;eT.prototype.onYtServiceRequestSent=eT.prototype.onYtServiceRequestSent;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],eT.prototype,"ytEventForwardingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],eT.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],eT.prototype,"isLoading",void 0);_.T([_.A2("#header"),_.N("design:type",HTMLDivElement)],eT.prototype,"header",void 0);_.T([_.A2("#confirm-button"),_.N("design:type",_.lU)],eT.prototype,"confirmButton",void 0);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],eT.prototype,"onYtServiceRequestSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],eT.prototype,"onYtServiceRequestCompleted",null);
_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],eT.prototype,"closePopupHandler",null);_.T([_.Yh("data.headerImage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eT.prototype,"onHeaderImageChanged",null);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],eT.prototype,"onYtNavigate",null);
_.T([_.sq({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],eT);
_.O(eT,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(RzU!==void 0)return RzU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return RzU=X},{mode:1});var CbX;var yI=function(){var X=_.a.apply(this,arguments)||this;X.isLoading=!1;return X};
_.S(yI,_.a);_.R=yI.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);CTa(this.hostElement)};
_.R.onYtServiceRequestCompleted=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.R.onYtServiceRequestError=function(X){_.x$(this.hostElement,X.detail.error.message)};
_.R.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.R.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.TP(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.R.onDataChanged=function(){this.isLoading=!1;var X=this.get("data.headerImage.thumbnails");X&&(X=_.G0(X,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+X+")");X=_.Bi();var H=_.F6(),l=this.get("data.trackingParams");l&&H&&X&&_.pA(X,H,_.$l(l))};
_.ja.Object.defineProperties(yI.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
yI.prototype.onDataChanged=yI.prototype.onDataChanged;yI.prototype.onDomChange=yI.prototype.onDomChange;yI.prototype.onYtServiceRequestError=yI.prototype.onYtServiceRequestError;yI.prototype.onYtServiceRequestCompleted=yI.prototype.onYtServiceRequestCompleted;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],yI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],yI.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],yI.prototype,"isLoading",void 0);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yI.prototype,"hasDescription",null);_.T([_.A2("tp-yt-paper-dialog-scrollable"),_.N("design:type",Object)],yI.prototype,"scrollable",void 0);_.T([_.A2("#header"),_.N("design:type",HTMLElement)],yI.prototype,"header",void 0);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yI.prototype,"onYtServiceRequestCompleted",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yI.prototype,"onYtServiceRequestError",null);
_.T([_.Le("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yI.prototype,"onDomChange",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yI.prototype,"onDataChanged",null);_.T([_.sq({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],yI);
_.O(yI,"ytd-gaming-account-link-setting-renderer",function(){if(CbX!==void 0)return CbX;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return CbX=X},{mode:1});var whA;var dWu;var VI=function(){var X=_.a.apply(this,arguments)||this;X.isHeader=!1;X.getEndpointForm=function(){return vga(X.data)};
return X};
_.S(VI,_.a);_.R=VI.prototype;_.R.triggerHintActions=function(){var X=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var H=_.NG(X.hostElement,"yt-get-opened-popups-action");!(H&&H.length===1?H[0]:[]).some(function(l){l=l.openPopupAction.popupType;return l==="SURVEY"||l==="MEALBAR"||l==="HINT"})&&X.data.hintActions&&X.guideOpened&&(_.j7(X.hostElement,X.data.hintActions,X.hostElement),X.data.hintActions=void 0)})};
_.R.getBadgeIconType=function(X){return X&&X.liveBroadcasting?"live":null};
_.R.onDown=function(){this.interaction.triggerDown()};
_.R.onUp=function(){this.interaction.triggerUp()};
_.R.onTap=function(X){if(this.data.serviceEndpoint){var H;_.P("shorts_controller_retrieve_seedless_sequence_v2")&&((H=_.f(this.data.serviceEndpoint,_.HM))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):ijC(this.data.serviceEndpoint,this);X.preventDefault()}else this.data.navigationEndpoint&&!_.WS(_.t2(X),this.hostElement,["A".toString()])&&_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.R.computeActive=function(X,H){if(!X)return!1;var l=X.navigationEndpoint;X=X.serviceEndpoint;if(!l&&!X||!H)return!1;if(l){X=(X=_.LT(H))&&["subscriptions","filteredsubscriptions"].includes(X);if(_.f(l,_.YM)&&_.f(H,_.YM)&&!X){var b=_.f(l,_.YM).browseId;H=_.f(H,_.YM).browseId;return b!==void 0&&H!==void 0&&(b===H||b==="VLWL"&&H==="FEwatch_later"||b==="FEwatch_later"&&H==="VLWL")}var U;l=(U=_.f(l.commandMetadata,_.Ip))==null?void 0:U.url;H=(b=_.f(H.commandMetadata,_.Ip))==null?void 0:b.url;return!(!l||
!H||l!==H&&l!==_.c1(H))}return this.isActiveShortsTab(X,H)};
_.R.isActiveShortsTab=function(X,H){H=!!_.f(H,_.HM)||!!_.f(H,_.uy);return(!!_.f(X,_.HM)||!!_.f(X,_.uy))&&H};
_.R.computeIsPrimary=function(X){return!!X};
_.ja.Object.defineProperties(VI.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 X=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&X)return X}}});
VI.prototype.onTap=VI.prototype.onTap;VI.prototype.onUp=VI.prototype.onUp;VI.prototype.onDown=VI.prototype.onDown;VI.prototype.triggerHintActions=VI.prototype.triggerHintActions;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],VI.prototype,"componentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],VI.prototype,"rendererBehavior",void 0);_.T([_.k(_.tx.YtTaskEmitterBehavior),_.N("design:type",Object)],VI.prototype,"taskEmitterBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],VI.prototype,"activeEndpoint",void 0);_.T([_.g(),_.N("design:type",Object)],VI.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],VI.prototype,"guideOpened",void 0);_.T([_.g(),_.N("design:type",String)],VI.prototype,"type",void 0);_.T([_.A2("yt-interaction"),_.N("design:type",Object)],VI.prototype,"interaction",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],VI.prototype,"isHeader",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("data","activeEndpoint"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],VI.prototype,"active",null);_.T([_.g({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],VI.prototype,"isPrimary",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.count","data.presentationStyle","data.badges.*"),_.N("design:type",String),_.N("design:paramtypes",[])],VI.prototype,"lineEndStyle",null);
_.T([_.x("lineEndStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],VI.prototype,"ariaLabel",null);_.T([_.Yh("data.hintActions","guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VI.prototype,"triggerHintActions",null);_.T([_.Le("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VI.prototype,"onDown",null);
_.T([_.Le("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VI.prototype,"onUp",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],VI.prototype,"onTap",null);_.T([_.sq({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],VI);
_.O(VI,"ytd-guide-entry-renderer",function(){if(dWu!==void 0)return dWu;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return dWu=X},{mode:1});var PV=function(){var X=_.a.apply(this,arguments)||this;X.userToggled=!1;return X};
_.S(PV,_.a);_.R=PV.prototype;_.R.getItemsPath=function(){return"data.expandableItems"};
_.R.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.R.onExpanderItemTapped=function(X){var H=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.P("kevlar_guide_expandable_items_killswitch")&&_.N0(this,function(){_.Qi(H.expandableItems)});
X.preventDefault()};
_.R.onCollapserItemTapped=function(X){var H=this;this._setExpanded(!1);this.userToggled=!0;X.preventDefault();this.expandableItems&&!_.P("kevlar_guide_collapsible_items_killswitch")&&_.N0(this,function(){_.mQ(H.hostElement)})};
_.R.observeActiveEndpoint=function(){for(var X=this.activeEndpoint,H=this.data,l=this.expandableItems.children,b=0,U=l.length;b<U;b++)l[b].activeEndpoint=X;H&&H.autoExpandCommand&&X&&!this.userToggled&&(l=this.data.autoExpandCommand,H=!(!_.f(l,_.YM)||!_.f(X,_.YM)||_.f(l,_.YM).browseId!==_.f(X,_.YM).browseId),X=this.get("commandMetadata.webCommandMetadata.url",X),l=this.get("commandMetadata.webCommandMetadata.url",l),H=H||!!(X&&l&&X.includes(l)),this._setExpanded(H),H&&this.ytLazyListBehavior.fillRemainingListItems())};
PV.prototype.observeActiveEndpoint=PV.prototype.observeActiveEndpoint;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],PV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.aI.YtLazyListBehavior),_.N("design:type",Object)],PV.prototype,"ytLazyListBehavior",void 0);_.T([_.A2("#expandable-items"),_.N("design:type",HTMLElement)],PV.prototype,"expandableItems",void 0);
_.T([_.g(),_.N("design:type",Object)],PV.prototype,"data",void 0);_.T([_.g({readOnly:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],PV.prototype,"expanded",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],PV.prototype,"initialCount",void 0);_.T([_.g(),_.N("design:type",Object)],PV.prototype,"activeEndpoint",void 0);_.T([_.Yh("data","activeEndpoint","canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PV.prototype,"observeActiveEndpoint",null);
_.T([_.sq({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],PV);
_.O(PV,"ytd-guide-collapsible-entry-renderer",function(){if(whA!==void 0)return whA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return whA=X},{mode:2});var hz2;var Fmz;var f1=function(){var X=_.a.apply(this,arguments)||this;X.allVideosCount=0;X.renderGuideEntry=!1;return X};
_.S(f1,_.a);f1.prototype.observeRenderEntry=function(){var X;this.renderGuideEntry=!((X=this.data)==null||!X.alwaysShow)||!!this.allVideosCount};
f1.prototype.observeRenderEntry=f1.prototype.observeRenderEntry;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],f1.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],f1.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],f1.prototype,"activeEndpoint",void 0);_.T([_.g({selector:_.GCN}),_.N("design:type",Object)],f1.prototype,"allVideosCount",void 0);
_.T([_.g(),_.N("design:type",Object)],f1.prototype,"renderGuideEntry",void 0);_.T([_.oi("allVideosCount","data.alwaysShow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],f1.prototype,"observeRenderEntry",null);_.T([_.sq({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],f1);
_.O(f1,"ytd-guide-downloads-entry-renderer",function(){if(Fmz===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);Fmz=X}X=Fmz;return X},{mode:1});var p1=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return X};
_.S(p1,_.a);_.R=p1.prototype;_.R.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]]"}}}}}};
_.R.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var X=this.sectionItems.children,H=0,l=X.length;H<l;H++)X[H].activeEndpoint=this.activeEndpoint}};
_.R.handleAddToGuideSectionAction=function(X){var H=_.f(X,Ra$);if(H&&this.data&&(X=H.items,H=H.handlerData,X&&H&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(H)>-1)){H=0;for(var l=X.length;H<l;H++)X[H].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,X[H])}};
_.R.handleRemoveFromGuideSectionAction=function(X){var H=_.f(X,C_A);H&&this.data&&(X=H.guideEntryId,H=H.handlerData,X&&H&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(H)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(X,this.data.sectionItems),this.removeFromCollapsedSection(X,this.data.sectionItems)))};
_.R.removeFromExpandedSection=function(X,H){X=this.getEntryIndexMatchingId(X,H);X!==-1&&this.splice("data.sectionItems",X,1)};
_.R.removeFromCollapsedSection=function(X,H){var l=H.findIndex(function(b){return!!_.f(b,m7C)});
l&&l!==-1&&H[l]&&_.f(H[l],m7C)&&(H=_.f(H[l],m7C).expandableItems)&&(X=this.getEntryIndexMatchingId(X,H),X!==-1&&this.splice("data.sectionItems."+l+".guideCollapsibleEntryRenderer.expandableItems",X,1))};
_.R.getEntryIndexMatchingId=function(X,H){var l=this;return H.findIndex(function(b){return l.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",b)===X})};
p1.prototype.activeEndpointChanged=p1.prototype.activeEndpointChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],p1.prototype,"actionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],p1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.A2("#section-items"),_.N("design:type",HTMLDivElement)],p1.prototype,"sectionItems",void 0);
_.T([_.A2("#header-entry"),_.N("design:type",Object)],p1.prototype,"headerEntry",void 0);_.T([_.g(),_.N("design:type",Object)],p1.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],p1.prototype,"activeEndpoint",void 0);_.T([_.Yh("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p1.prototype,"activeEndpointChanged",null);_.T([_.sq({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],p1);
_.O(p1,"ytd-guide-collapsible-section-entry-renderer",function(){if(hz2===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);hz2=X}X=hz2;return X},{mode:1});var B8a;var qy2;var ST=function(){var X=_.a.apply(this,arguments)||this;X.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 X};
_.S(ST,_.a);_.R=ST.prototype;
_.R.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}}}}};
_.R.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var X=_.NG(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);X&&X.length===1&&X[0]&&_.NG(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.R.handleResetChannelUnreadCountCommand=function(X){var H;(X=(H=_.f(X,haa))==null?void 0:H.channelId)&&this.data&&this.data.items&&(H=this.getPathToEntryMatchingId(X))&&(this.set(H+".guideEntryRenderer.count",0),this.set(H+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.R.handleResetSubscriptionsUnreadDotCommand=function(X){var H,l=(H=_.f(X,Fke))==null?void 0:H.targetId,b;l&&(b=this.data)!=null&&b.items&&(X=this.data.items.findIndex(function(U){var K;return((K=U.guideEntryRenderer)==null?void 0:K.targetId)===l}),X<0||this.set("data.items."+X+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.R.getPathToEntryMatchingId=function(X){if(this.data&&this.data.items){var H=this.getEntryIndexMatchingId(X,this.data.items);if(H>-1)return"data.items."+H;for(var l=0;l<this.data.items.length;l++)if(H=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[l]))if(H=this.getEntryIndexMatchingId(X,H),H>-1)return"data.items."+l+".guideCollapsibleEntryRenderer.expandableItems."+H}};
_.R.handleAddToGuideSectionAction=function(X){var H=this;if(_.f(X,Ra$)){var l=_.f(X,Ra$).items;X=_.f(X,Ra$).handlerData;var b,U;if(l&&X&&((b=this.data)==null?void 0:(U=b.handlerDatas)==null?void 0:U.indexOf(X))>-1){l=l.filter(function(w){return(w=H.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",w))&&!H.isGuideItemPresent(w)});
var K;if(X==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((K=this.data)==null?0:K.items)&&(b=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),b>-1)){this.splice.apply(this,["data.items",b+1,0].concat(_.LJ(l)));return}this.unshift.apply(this,["data.items"].concat(_.LJ(l)))}}};
_.R.isGuideItemPresent=function(X){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(X,this.data.items)!==-1)return!0;var H=this.data.items.find(function(l){return!!l.guideCollapsibleEntryRenderer});
if((H==null?0:H.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(X,H.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.R.getEntryIndexMatchingId=function(X,H){var l=this;return H.findIndex(function(b){return l.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",b)===X})};
_.R.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(X,H){var l=this;return H.findIndex(function(b){return l.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",b)===X})};
_.R.handleRemoveFromGuideSectionAction=function(X){if(_.f(X,C_A)){var H=_.f(X,C_A).guideEntryId;X=_.f(X,C_A).handlerData;var l,b;H&&X&&((l=this.data)==null?void 0:(b=l.handlerDatas)==null?void 0:b.indexOf(X))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(H,this.data.items),this.removeFromCollapsedSection(H,this.data.items))}};
_.R.removeFromExpandedSection=function(X,H){X=this.getEntryIndexMatchingId(X,H);X!==-1&&this.splice("data.items",X,1)};
_.R.removeFromCollapsedSection=function(X,H){var l=H.findIndex(function(b){return!!b.guideCollapsibleEntryRenderer});
l!==-1&&(H=H[l].guideCollapsibleEntryRenderer.expandableItems)&&(X=this.getEntryIndexMatchingId(X,H),X!==-1&&this.splice("data.items."+l+".guideCollapsibleEntryRenderer.expandableItems",X,1))};
_.R.activeEndpointChanged=function(){for(var X=_.mh(this.hostElement).querySelector("#items").children,H=0,l=X.length;H<l;H++)X[H].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.R.guideOpenedChanged=function(){for(var X=_.mh(this.hostElement).querySelector("#items").children,H=0,l=X.length;H<l;H++)X[H].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
ST.prototype.guideOpenedChanged=ST.prototype.guideOpenedChanged;ST.prototype.activeEndpointChanged=ST.prototype.activeEndpointChanged;ST.prototype.persistentGuideChanged=ST.prototype.persistentGuideChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ST.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],ST.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.aI.YtLazyListBehavior),_.N("design:type",Object)],ST.prototype,"ytLazyListBehavior",void 0);_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],ST.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],ST.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ST.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",String)],ST.prototype,"type",void 0);_.T([_.g({value:20}),_.N("design:type",Number)],ST.prototype,"initialCount",void 0);_.T([_.g({value:10}),_.N("design:type",Number)],ST.prototype,"targetFramerate",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],ST.prototype,"autoFill",void 0);_.T([_.g({value:50}),_.N("design:type",Number)],ST.prototype,"renderDelay",void 0);
_.T([_.Yh("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ST.prototype,"persistentGuideChanged",null);_.T([_.oi("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ST.prototype,"activeEndpointChanged",null);_.T([_.oi("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ST.prototype,"guideOpenedChanged",null);
_.T([_.sq({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],ST);
_.O(ST,"ytd-guide-section-renderer",function(){if(qy2!==void 0)return qy2;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return qy2=X},{mode:2});var skU;var zf=function(){return _.a.apply(this,arguments)||this};
_.S(zf,_.a);_.ja.Object.defineProperties(zf.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],zf.prototype,"rendererBehaviors",void 0);_.T([_.g(),_.N("design:type",Object)],zf.prototype,"data",void 0);_.T([_.g(),_.x("data.signInButton.buttonRenderer.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],zf.prototype,"alignByText",null);_.T([_.sq({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],zf);
_.O(zf,"ytd-guide-signin-promo-renderer",function(){if(skU===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);skU=X}X=skU;return X},{mode:1});var n1=function(){var X=_.a.apply(this,arguments)||this;X.showFooter=!1;return X};
_.S(n1,_.a);n1.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}}}}};
n1.prototype.attached=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1){H=_.jJ().resolve(_.c$(_.Vx));if(!H)return l.jumpTo(0);H.setGuideData(X.hostElement);return l.yield(0,3)}X.ytLazyListBehavior.initialCount=2;return l.return()})};
n1.prototype.onMouseExit=function(){_.P("web_guide_hover_expansion")&&_.NG(this.hostElement,"yt-guide-mouseleaved",[])};
n1.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
n1.prototype.dataChanged=n1.prototype.dataChanged;n1.prototype.onMouseExit=n1.prototype.onMouseExit;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.aI.YtLazyListBehavior),_.N("design:type",Object)],n1.prototype,"ytLazyListBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],n1.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],n1.prototype,"showFooter",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],n1.prototype,"autoFill",void 0);_.T([_.Le("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],n1.prototype,"onMouseExit",null);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],n1.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-guide-renderer",disableElementRegistration:!0})],n1);
_.O(n1,"ytd-guide-renderer",function(){if(B8a!==void 0)return B8a;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return B8a=X},{mode:2});var Ml9;var kd=function(){var X=_.a.apply(this,arguments)||this;X.systemIcons=_.P("kevlar_system_icons");X.frostedGlass=_.P("web_frosted_glass");X.onAllyMenuButtonClick=function(){var H=X.getShowSheetCommand();H&&X.ytComponentBehavior.resolveCommand(H)};
X.getEndpointForm=function(){return vga(X.data)};
return X};
_.S(kd,_.a);_.R=kd.prototype;_.R.attached=function(){this.JSC$22557_sheetController=_.jJ().resolve(_.hT)};
_.R.onDown=function(){this.interaction.triggerDown()};
_.R.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var X;(X=this.JSC$22557_sheetController)==null||OFC(X,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.R.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.R.isSeedlessReelCommand=function(X){var H;return!!X&&((H=_.f(X,_.HM))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.R.isShowSheetCommand=function(X){return!!X&&!!_.f(X,_.$$)};
_.R.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.R.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.R.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.R.onUp=function(){this.interaction.triggerUp()};
_.R.onTap=function(X){if(this.data.serviceEndpoint){if(_.P("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var H;(H=this.JSC$22557_sheetController)==null||OFC(H,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));X.preventDefault();
return}ijC(this.data.serviceEndpoint,this)}X.preventDefault()}else{var l;((l=this.data)==null?0:l.navigationEndpoint)&&!_.WS(_.t2(X),this.hostElement,["A".toString()])&&_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.R.computeActive=function(X,H){if(!X)return!1;var l=X.navigationEndpoint;X=X.serviceEndpoint;if(!l&&!X||!H)return!1;if(l){X=_.f(l,_.YM);var b=_.f(H,_.YM);if(X&&b)return X.browseId===b.browseId&&X.params===b.params;var U;l=(U=_.f(l.commandMetadata,_.Ip))==null?void 0:U.url;var K;H=(K=_.f(H.commandMetadata,_.Ip))==null?void 0:K.url;return!(!l||!H||l!==H&&l!==_.c1(H))}return this.isActiveShortsTab(X,H)};
_.R.isActiveShortsTab=function(X,H){H=!!_.f(H,_.HM)||!!_.f(H,_.uy);return(!!_.f(X,_.HM)||!!_.f(X,_.uy))&&H};
_.R.computeTitle=function(X,H){return H?"":_.D8(X)};
_.R.computeEndpoint=function(X){return this.isSeedlessReelCommand(X.serviceEndpoint)?X.serviceEndpoint:X.navigationEndpoint};
_.R.computeHref=function(X){X=this.isSeedlessReelCommand(X.serviceEndpoint)?X.serviceEndpoint:X.navigationEndpoint;return(X=this.ytComponentBehavior.computeHref_(X))?X:"#"};
_.R.computeAriaLabelTitle=function(X){return _.D8(X)};
_.R.computeAllyShowMenuOnTap=function(X){return this.isShowSheetCommand(X.mouseEnterEndpoint)||this.isShowSheetCommand(X.serviceEndpoint)};
_.ja.Object.defineProperties(kd.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
kd.prototype.onMouseLeave=kd.prototype.onMouseLeave;kd.prototype.onMouseEnter=kd.prototype.onMouseEnter;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],kd.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.C7),_.N("design:type",Object)],kd.prototype,"ironButtonState",void 0);_.T([_.g(),_.N("design:type",Object)],kd.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],kd.prototype,"activeEndpoint",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],kd.prototype,"noLabels",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.N("design:type",Boolean)],kd.prototype,"isActive",void 0);_.T([_.g({computed:"computeEndpoint(data)"}),_.N("design:type",Object)],kd.prototype,"computedEndpoint",void 0);
_.T([_.g({computed:"computeHref(data)"}),_.N("design:type",String)],kd.prototype,"computedHref",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],kd.prototype,"systemIcons",void 0);_.T([_.A2("yt-interaction"),_.N("design:type",Object)],kd.prototype,"interaction",void 0);_.T([_.x("isActive"),_.N("design:type",Object),_.N("design:paramtypes",[])],kd.prototype,"ariaSelected",null);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],kd.prototype,"frostedGlass",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.N("design:type",Boolean)],kd.prototype,"allyShowMenuOnTap",void 0);_.T([_.Le("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],kd.prototype,"onMouseEnter",null);_.T([_.Le("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],kd.prototype,"onMouseLeave",null);
_.T([_.sq({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],kd);
_.O(kd,"ytd-mini-guide-entry-renderer",function(){if(Ml9!==void 0)return Ml9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Ml9=X},{mode:_.Qc("kevlar_poly_si_batch_j063")?1:2});var uOn;var xd=function(){var X=_.a.apply(this,arguments)||this;X.allVideosCount=0;X.noLabels=_.P("kevlar_mini_guide_no_labels");X.frostedGlass=_.P("web_frosted_glass");return X};
_.S(xd,_.a);_.R=xd.prototype;_.R.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.R.onMouseEnter=function(){_.P("web_guide_hover_expansion")&&_.NG(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.R.visibleChanged=function(){if(this.visible&&!this.data){var X=_.jJ().resolve(_.c$(_.Vx));X&&X.setGuideData(this.hostElement);_.rg(_.lv(),this.miniGuideVe);(X=_.Bi())&&this.miniGuideVe&&_.zu(X,this.miniGuideVe)}};
_.R.dataChanged=function(){var X=_.P("kevlar_guide_menu_on_hover")&&_.P("kevlar_modern_mini_guide"),H=_.P("kevlar_guide_menu_on_click")&&_.P("kevlar_modern_mini_guide"),l;var b=(l=this.data)==null?void 0:l.items;l=this.allVideosCount;var U=[];X=X?0:H?1:void 0;H=X!==void 0;if(b){for(var K=[],w=!1,d=_.C(b),B=d.next();!B.done;B=d.next()){B=B.value;if(B.guideSubscriptionsSectionRenderer){var q=void 0;K=((q=B.guideSubscriptionsSectionRenderer)==null?void 0:q.items)||[]}q=void 0;if((q=B.guideSectionRenderer)==
null?0:q.items)for(q=void 0,B=_.C((q=B.guideSectionRenderer)==null?void 0:q.items),q=B.next();!q.done;q=B.next()){var u=void 0;((u=q.value.guideEntryRenderer)==null?void 0:u.targetId)==="subscriptions-guide-item"&&(w=!0)}}b=_.C(b);for(d=b.next();!d.done;d=b.next())if(d=d.value,B=void 0,(B=d.guideSectionRenderer)==null?0:B.items)for(B=void 0,d=_.C((B=d.guideSectionRenderer)==null?void 0:B.items),B=d.next();!B.done;B=d.next()){B=B.value;var e=u=void 0;q=B.guideEntryRenderer||_.f((u=B)==null?void 0:
(e=u.guideCollapsibleSectionEntryRenderer)==null?void 0:e.headerEntry,OjN);u=[];e=[];var y=void 0;if(((y=q)==null?void 0:y.targetId)==="subscriptions-guide-item")u=K;else{var V=y=void 0;if((y=B)==null?0:(V=y.guideCollapsibleSectionEntryRenderer)==null?0:V.sectionItems)e=u=B.guideCollapsibleSectionEntryRenderer.sectionItems}TJZ(U,q,H?u:[],X);if(e.length>0)for(B=_.C(e),q=B.next();!q.done;q=B.next())q=q.value,e=_.f(q,x$p),u=void 0,e=e&&_.P("enable_mini_guide_downloads_item")&&(e.alwaysShow||l)?_.f((u=
e)==null?void 0:u.entryRenderer,OjN):_.f(q,OjN),TJZ(U,e,[])}else B=void 0,!w&&((B=d.guideSubscriptionsSectionRenderer)==null?0:B.items)&&(u=q=B=void 0,d=_.f((B=d.guideSubscriptionsSectionRenderer)==null?void 0:(q=B.items[0])==null?void 0:(u=q.guideCollapsibleSectionEntryRenderer)==null?void 0:u.headerEntry,OjN),TJZ(U,d,K,X))}this.miniGuideItems=U};
_.R.activeEndpointChanged=function(){for(var X=this.items.children,H=0;H<X.length;H++)X[H].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.R.registerWithViewTransitionManager=function(){var X=this;_.eh(_.Ss,function(){var H=_.jJ().resolve(_.c$(_.Cz));if(H&&H.isAnyTransitionEnabled){var l={};H.viewTransitionCoordinator.registerElement(X.hostElement,(l.slide="mini-guide-page-transition",l))}})};
xd.prototype.activeEndpointChanged=xd.prototype.activeEndpointChanged;xd.prototype.dataChanged=xd.prototype.dataChanged;xd.prototype.visibleChanged=xd.prototype.visibleChanged;xd.prototype.onMouseEnter=xd.prototype.onMouseEnter;_.T([_.k(_.sv),_.N("design:type",Object)],xd.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],xd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],xd.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],xd.prototype,"ytComponentBehavior",void 0);_.T([_.A2("#items"),_.N("design:type",Object)],xd.prototype,"items",void 0);_.T([_.g(),_.N("design:type",Object)],xd.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Boolean)],xd.prototype,"visible",void 0);_.T([_.g(),_.N("design:type",Object)],xd.prototype,"miniGuideItems",void 0);_.T([_.g({selector:_.GCN}),_.N("design:type",Object)],xd.prototype,"allVideosCount",void 0);_.T([_.g({value:_.cS(283834)}),_.N("design:type",_.h$)],xd.prototype,"miniGuideVe",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"noLabels",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],xd.prototype,"frostedGlass",void 0);_.T([_.Le("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"onMouseEnter",null);_.T([_.oi("visible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"visibleChanged",null);
_.T([_.oi("data","allVideosCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"dataChanged",null);_.T([_.oi("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xd.prototype,"activeEndpointChanged",null);_.T([_.sq({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],xd);
_.O(xd,"ytd-mini-guide-renderer",function(){if(uOn===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);uOn=X}X=uOn;return X},{mode:1});var ezU;var yyR=/^[\x00-\x7F]+$/,D4=function(){return _.a.apply(this,arguments)||this};
_.S(D4,_.a);_.ja.Object.defineProperties(D4.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var X,H=_.D8((X=this.data)==null?void 0:X.handle);if(H)return _.xM("@"+H)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var X=_.D8(this.displayHandle),H,l=_.D8((H=this.data)==null?void 0:H.handleUrl);if(X&&l)return _.xM(l+X)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var X=_.D8(this.displayHandle);if(X&&!yyR.test(X)){var H;return(H=this.data)==null?void 0:H.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var X=_.D8(this.displayHandleUrl),H,l=_.D8((H=this.data)==null?void 0:H.urlInfoText);if(X&&l)return _.xM(l+" "+X)}}});
_.T([_.g(),_.N("design:type",Object)],D4.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],D4.prototype,"displayHandle",null);_.T([_.x("displayHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],D4.prototype,"displayHandleUrl",null);_.T([_.x("displayHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],D4.prototype,"warningText",null);
_.T([_.x("displayHandleUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],D4.prototype,"urlInfoTextWithUrl",null);_.T([_.sq({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],D4);
_.O(D4,"ytd-handles-claiming-confirm-dialog-content",function(){if(ezU!==void 0)return ezU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ezU=X},{mode:1});var VlA;var tM=function(){var X=_.a.apply(this,arguments)||this;X.okButtonOverride={style:"mono",type:"outline",size:"M"};return X};
_.S(tM,_.a);tM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
tM.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],tM.prototype,"okButtonOverride",void 0);_.T([_.g(),_.N("design:type",Object)],tM.prototype,"data",void 0);_.T([_.sq({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],tM);
_.O(tM,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(VlA!==void 0)return VlA;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return VlA=X},{mode:1});var PbA;var fLu=/^[\x00-\x7F]+$/,WV=function(){var X=_.a.apply(this,arguments)||this;X.isLoading=!1;return X};
_.S(WV,_.a);WV.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var X;this.selectedHandle=(X=this.handleInput)==null?void 0:X.value;this.onSelectedHandleChanged(this.selectedHandle);_.NG(this.hostElement,"yt-refit-popups-action")}};
_.ja.Object.defineProperties(WV.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var X;return(X=this.data)==null?void 0:X.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.xM("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.xM(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!fLu.test(this.selectedHandle)){var X;return(X=this.data)==null?void 0:X.warningText}}}});
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],WV.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],WV.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],WV.prototype,"selectedHandle",void 0);_.T([_.g(),_.N("design:type",Object)],WV.prototype,"isLoading",void 0);_.T([_.g(),_.N("design:type",Function)],WV.prototype,"onSelectedHandleChanged",void 0);_.T([_.A2("#channel-handle-input"),_.N("design:type",Object)],WV.prototype,"handleInput",void 0);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],WV.prototype,"handleUrlPrefix",null);_.T([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],WV.prototype,"displayHandle",null);_.T([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],WV.prototype,"displayHandleUrl",null);_.T([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],WV.prototype,"warningText",null);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.T([_.sq({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],WV);
_.O(WV,"ytd-handles-claiming-edit-dialog-content",function(){if(PbA!==void 0)return PbA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return PbA=X},{mode:1});var phX;var EN=function(){var X=_.a.apply(this,arguments)||this;X.actionButtonOverride={style:"mono",type:"filled",size:"M"};X.cancelButtonOverride={style:"mono",type:"text",size:"M"};X.selectButtonDisabled=!1;X.isLoading=!1;X.hasSelectedHandleEventListener=!1;X.selectedHandleChanged=function(H){X.selectedHandle=H};
return X};
_.S(EN,_.a);_.R=EN.prototype;_.R.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.R.onDataChanged=function(){var X,H;this.selectedHandle=(H=_.f((X=this.data)==null?void 0:X.inputField,Lfx))==null?void 0:H.handle};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onCancel=function(){this.selectedHandle="";_.TP(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.onSelectHandle=function(){var X=this;if(this.selectedHandle!==void 0){var H;((H=this.data)==null?void 0:H.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(l,b){if(b.newHandleUpdateStatus!==void 0&&b.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&b.newHandleUpdateStatus.errorMessage)_.x$(X.hostElement,_.D8(b.newHandleUpdateStatus.errorMessage)),
X.isLoading=!1;else{var U;if((U=X.data)==null?0:U.onChannelUpdateSuccess){l=X.data.onChannelUpdateSuccess;var K,w;if(b=(K=_.f(l,_.by))==null?void 0:(w=K.popup)==null?void 0:w.handlesClaimingConfirmDialogRenderer)b.handle=_.xM(X.selectedHandle);X.ytComponentBehavior.resolveCommand(l);_.TP(X.hostElement,"yt-close-popup-action",[X.is])}else X.isLoading=!1}},
onServerError:function(){var l;X.content&&((l=X.content)==null?0:l.handleInput)&&X.content.handleInput.validate();X.isLoading=!1;_.x$(X.hostElement,_.XS("TRY_AGAIN_LATER"))}}}))}};
_.R.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
EN.prototype.onDataChanged=EN.prototype.onDataChanged;EN.prototype.onSelectedHandleChanged=EN.prototype.onSelectedHandleChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],EN.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],EN.prototype,"actionButtonOverride",void 0);_.T([_.g(),_.N("design:type",Object)],EN.prototype,"cancelButtonOverride",void 0);_.T([_.g(),_.N("design:type",Object)],EN.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",String)],EN.prototype,"selectedHandle",void 0);_.T([_.g(),_.N("design:type",Object)],EN.prototype,"selectButtonDisabled",void 0);_.T([_.g(),_.N("design:type",Object)],EN.prototype,"isLoading",void 0);_.T([_.g(),_.N("design:type",Object)],EN.prototype,"hasSelectedHandleEventListener",void 0);_.T([_.g(),_.N("design:type",Object)],EN.prototype,"handleInput",void 0);
_.T([_.Yh("selectedHandle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EN.prototype,"onSelectedHandleChanged",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EN.prototype,"onDataChanged",null);_.T([_.A2("ytd-handles-claiming-edit-dialog-content"),_.N("design:type",Object)],EN.prototype,"content",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],EN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.sq({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],EN);
_.O(EN,"ytd-handles-claiming-edit-dialog-renderer",function(){if(phX!==void 0)return phX;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return phX=X},{mode:1});var Syo;var Gf=function(){return _.a.apply(this,arguments)||this};
_.S(Gf,_.a);_.ja.Object.defineProperties(Gf.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null?0:X.handle){var H;return _.xM("@"+_.D8((H=this.data)==null?void 0:H.handle))}}}});
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Gf.prototype,"formattedHandle",null);_.T([_.g(),_.N("design:type",Object)],Gf.prototype,"data",void 0);_.T([_.sq({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],Gf);
_.O(Gf,"ytd-handles-claiming-radio-option-renderer",function(){if(Syo!==void 0)return Syo;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Syo=X},{mode:1});var zzb;var nNn=/^[\x00-\x7F]+$/,aN=function(){var X=_.a.apply(this,arguments)||this;X.initialRadioIndex="-1";X.isLoading=!1;X.maybeSubmitFeedback=function(){X.feedbackSurveyRenderer.submitSurvey()};
return X};
_.S(aN,_.a);aN.prototype.updateSelectedHandleIndexFromBinding=function(X){this.selectedRadioIndex=+X.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(X)};
aN.prototype.selectedHandleChanged=function(X){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var H;this.selectedHandle=(H=this.handleInput)==null?void 0:H.value;this.onSelectedHandleChanged(X)}};
_.ja.Object.defineProperties(aN.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var X;return(((X=this.data)==null?void 0:X.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var X;return this.ytRendererBehavior.getSimpleString((X=this.data)==null?void 0:X.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.xM("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.xM(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!nNn.test(this.selectedHandle)){var X;return(X=this.data)==null?void 0:X.warningText}}}});
_.T([_.g(),_.N("design:type",Object)],aN.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],aN.prototype,"initialRadioIndex",void 0);_.T([_.g(),_.N("design:type",Number)],aN.prototype,"selectedRadioIndex",void 0);_.T([_.g(),_.N("design:type",String)],aN.prototype,"selectedHandle",void 0);_.T([_.g(),_.N("design:type",Object)],aN.prototype,"isLoading",void 0);_.T([_.g(),_.N("design:type",Function)],aN.prototype,"onSelectedHandleChanged",void 0);
_.T([_.g(),_.N("design:type",Function)],aN.prototype,"onSelectedRadioIndexChanged",void 0);_.T([_.A2("#channel-handle-input"),_.N("design:type",Object)],aN.prototype,"handleInput",void 0);_.T([_.A2("ytd-feedback-survey-renderer"),_.N("design:type",Object)],aN.prototype,"feedbackSurveyRenderer",void 0);_.T([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],aN.prototype,"radioButtonLength",null);
_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],aN.prototype,"handleUrlPrefix",null);_.T([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],aN.prototype,"displayHandle",null);_.T([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],aN.prototype,"displayHandleUrl",null);_.T([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],aN.prototype,"warningText",null);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.T([_.sq({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],aN);
_.O(aN,"ytd-handles-claiming-select-dialog-content",function(){if(zzb!==void 0)return zzb;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return zzb=X},{mode:1});var kKR;var Z4=function(){var X=_.a.apply(this,arguments)||this;X.actionButtonOverride={style:"mono",type:"filled",size:"M"};X.cancelButtonOverride={style:"mono",type:"text",size:"M"};X.initialRadioIndex="-1";X.selectButtonDisabled=!1;X.isLoading=!1;X.selectedRadioIndexChanged=function(H){X.selectedRadioIndex=Number(H.detail.value)};
X.selectedHandleChanged=function(H){X.selectedHandle=H.detail.value};
return X};
_.S(Z4,_.a);_.R=Z4.prototype;_.R.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.R.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.R.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.NG(this.hostElement,"yt-refit-popups-action")};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.TP(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.onSelectHandle=function(){var X=this;if(this.selectedHandle!==void 0){var H;((H=this.data)==null?void 0:H.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(l,b){if(b.newHandleUpdateStatus!==void 0&&b.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&b.newHandleUpdateStatus.errorMessage)_.x$(X.hostElement,_.D8(b.newHandleUpdateStatus.errorMessage)),
X.isLoading=!1;else{var U;if((U=X.data)==null?0:U.onChannelUpdateSuccess){l=X.data.onChannelUpdateSuccess;b=_.f(l,_.by);var K;if(b==null?0:(K=b.popup)==null?0:K.handlesClaimingConfirmDialogRenderer)b.popup.handlesClaimingConfirmDialogRenderer.handle=_.xM(X.selectedHandle);X.ytComponentBehavior.resolveCommand(l);_.TP(X.hostElement,"yt-close-popup-action",[X.is])}else X.isLoading=!1}},
onServerError:function(){if(X.selectedRadioIndex===X.radioButtonLength){var l;X.content&&((l=X.content)==null?0:l.handleInput)&&X.content.handleInput.validate()}X.isLoading=!1;_.x$(X.hostElement,_.XS("TRY_AGAIN_LATER"))}}}))}};
_.R.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var X,H;this.selectedHandle=(X=this.content)==null?void 0:(H=X.handleInput)==null?void 0:H.value}else this.selectedRadioIndex>=0&&((X=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(X==null?void 0:X.handle):this.selectedHandle=void 0)};
_.R.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.R.getRadioItem=function(X){if(this.radioButtonLength>X&&X>=0)return _.f(this.data.radioButton[X],xCx)};
_.ja.Object.defineProperties(Z4.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var X;return(((X=this.data)==null?void 0:X.radioButton)||[]).length}}});
Z4.prototype.onSelectedHandleChanged=Z4.prototype.onSelectedHandleChanged;Z4.prototype.onSelectedHandleIndexChanged=Z4.prototype.onSelectedHandleIndexChanged;Z4.prototype.onDataChanged=Z4.prototype.onDataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Z4.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Z4.prototype,"actionButtonOverride",void 0);_.T([_.g(),_.N("design:type",Object)],Z4.prototype,"cancelButtonOverride",void 0);
_.T([_.g(),_.N("design:type",Object)],Z4.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Z4.prototype,"initialRadioIndex",void 0);_.T([_.g(),_.N("design:type",Number)],Z4.prototype,"selectedRadioIndex",void 0);_.T([_.g(),_.N("design:type",String)],Z4.prototype,"selectedHandle",void 0);_.T([_.g(),_.N("design:type",Object)],Z4.prototype,"selectButtonDisabled",void 0);_.T([_.g(),_.N("design:type",Object)],Z4.prototype,"isLoading",void 0);
_.T([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],Z4.prototype,"radioButtonLength",null);_.T([_.A2("ytd-handles-claiming-select-dialog-content"),_.N("design:type",Object)],Z4.prototype,"content",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z4.prototype,"onDataChanged",null);
_.T([_.Yh("selectedRadioIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z4.prototype,"onSelectedHandleIndexChanged",null);_.T([_.Yh("selectedHandle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z4.prototype,"onSelectedHandleChanged",null);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Z4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.sq({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Z4);
_.O(Z4,"ytd-handles-claiming-select-dialog-renderer",function(){if(kKR!==void 0)return kKR;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return kKR=X},{mode:1});var xWa;var DW2;var i8=function(){return _.a.apply(this,arguments)||this};
_.S(i8,_.a);i8.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],i8.prototype,"data",void 0);_.T([_.sq({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],i8);
_.O(i8,"ytd-hotkey-dialog-section-option-renderer",function(){if(DW2!==void 0)return DW2;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return DW2=X},{mode:1});var tlr;var vV=function(){return _.a.apply(this,arguments)||this};
_.S(vV,_.a);vV.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],vV.prototype,"data",void 0);_.T([_.sq({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],vV);
_.O(vV,"ytd-hotkey-dialog-section-renderer",function(){if(tlr!==void 0)return tlr;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return tlr=X},{mode:1});var ON=function(){return _.a.apply(this,arguments)||this};
_.S(ON,_.a);ON.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ON.prototype,"data",void 0);_.T([_.sq({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],ON);
_.O(ON,"ytd-hotkey-dialog-content",function(){if(xWa!==void 0)return xWa;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return xWa=X},{mode:1});var Wmz;var m8=function(){return _.a.apply(this,arguments)||this};
_.S(m8,_.a);m8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var X=document.querySelector("ytd-hotkey-dialog-content #scrollable");X&&(X.dialogElement=this.hostElement.parentElement)};
m8.prototype.onCloseTap=function(){_.TP(this.hostElement,"yt-close-popup-action")};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],m8.prototype,"data",void 0);_.T([_.sq({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],m8);
_.O(m8,"ytd-hotkey-dialog-renderer",function(){if(Wmz!==void 0)return Wmz;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Wmz=X},{mode:1});var ENR;var QI=function(){return _.a.apply(this,arguments)||this};
_.S(QI,_.a);QI.prototype.onYtServiceRequestError=function(){if(this.blocked){var X;var H=(X=this.data)==null?void 0:X.defaultServiceEndpoint}else{var l;H=(l=this.data)==null?void 0:l.toggledServiceEndpoint}var b;(H=(b=_.f(H,_.R6F))==null?void 0:b.onFailureAction)&&this.ytComponentBehavior.resolveCommand(H);this.updateBlockState(!this.blocked)};
QI.prototype.onYtToggleButton=function(X){this.updateBlockState(X.detail.toggled)};
QI.prototype.updateBlockState=function(X){if(X!==this.blocked){var H=this.blockedEntityKey;H&&this.ytdReduxBehavior.dispatch(_.Us("blockStateEntity",H,{key:H,blocked:X}));this.set("data.isToggled",X)}};
_.ja.Object.defineProperties(QI.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)}}});
QI.prototype.onYtToggleButton=QI.prototype.onYtToggleButton;QI.prototype.onYtServiceRequestError=QI.prototype.onYtServiceRequestError;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],QI.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],QI.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],QI.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],QI.prototype,"blockedEntityKey",void 0);
_.T([_.g({selectorArgs:["blockedEntityKey"],selector:function(X,H){return _.JY(X.entities,"blockStateEntity",H)}}),
_.N("design:type",Object)],QI.prototype,"blockStateEntity",void 0);_.T([_.x("data","blockStateEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QI.prototype,"blocked",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QI.prototype,"onYtServiceRequestError",null);
_.T([_.Le("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QI.prototype,"onYtToggleButton",null);_.T([_.sq({is:"ytd-block-button",disableElementRegistration:!0})],QI);
_.O(QI,"ytd-block-button",function(){if(ENR!==void 0)return ENR;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return ENR=X},
{mode:1});var gNo;var GKX;var Tf=function(){return _.a.apply(this,arguments)||this};
_.S(Tf,_.a);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Tf.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Tf.prototype,"data",void 0);_.T([_.sq({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Tf);
_.O(Tf,"ytd-kids-blocklist-picker-item-renderer",function(){if(GKX!==void 0)return GKX;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return GKX=X},{mode:1});var NT=function(){return _.a.apply(this,arguments)||this};
_.S(NT,_.a);NT.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],NT.prototype,"data",void 0);_.T([_.sq({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],NT);
_.O(NT,"ytd-kids-blocklist-picker-content",function(){if(gNo!==void 0)return gNo;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return gNo=
X},{mode:2});var aLz;var cV=function(){var X=_.a.apply(this,arguments)||this;X.hasAnyRequestSucceeded=!1;X.hasAnyRequestFailed=!1;X.numPendingRequests=0;return X};
_.S(cV,_.a);_.R=cV.prototype;_.R.attached=function(){this.hostElement.setAttribute("dialog","")};
_.R.onDoneButtonTap=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.R.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.R.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.R.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.R.onPopupClosed=function(X){var H,l;if(((H=X.detail)==null?void 0:(l=H.popup)==null?void 0:l.is)==="tp-yt-paper-dialog"){var b;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((b=this.data)==null?0:b.successfulToastActionMessage)&&(X=_.gR(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(X));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
cV.prototype.onPopupClosed=cV.prototype.onPopupClosed;cV.prototype.onYtServiceRequestError=cV.prototype.onYtServiceRequestError;cV.prototype.onYtServiceRequestCompleted=cV.prototype.onYtServiceRequestCompleted;cV.prototype.onYtServiceRequestSent=cV.prototype.onYtServiceRequestSent;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],cV.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],cV.prototype,"data",void 0);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cV.prototype,"onYtServiceRequestSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cV.prototype,"onYtServiceRequestCompleted",null);
_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cV.prototype,"onYtServiceRequestError",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],cV.prototype,"onPopupClosed",null);_.T([_.sq({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],cV);
_.O(cV,"ytd-kids-blocklist-picker-renderer",function(){if(aLz!==void 0)return aLz;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return aLz=X},{mode:1});var Zyz;var iya;var jT=function(){return _.a.apply(this,arguments)||this};
_.S(jT,_.a);jT.prototype.setTip=function(X){var H=this;this.data&&(this.tip=Ih$(Lga.getInstance(),X,this.data),_.N0(this,function(){_.QX(H.hostElement,"yt-refit")}))};
jT.prototype.clearTip=function(){this.tip=void 0};
jT.prototype.computeHidden=function(X){return!X};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],jT.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.N("design:type",Boolean)],jT.prototype,"hidden",void 0);_.T([_.g(),_.N("design:type",Object)],jT.prototype,"tip",void 0);_.T([_.sq({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],jT);
_.O(jT,"ytd-menu-popup-tip-renderer",function(){if(iya!==void 0)return iya;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);
return iya=X},{mode:1});var vNX;var ra=function(){var X=_.a.apply(this,arguments)||this;X.useIcons=!1;X.role="menuitem";X.systemIcons=_.P("kevlar_system_icons");return X};
_.S(ra,_.a);_.R=ra.prototype;_.R.onFocus=function(){var X;(X=_.mh(this.hostElement).querySelector("tp-yt-paper-item"))==null||X.focus()};
_.R.onTap=function(){var X=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(X&&_.f(X,_.J$))this.componentBehavior.resolveCommand(X),this.updateToggledStateInEntity();else if(X){this.componentBehavior.resolveCommand(X)||_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}});var H;((H=_.f(X,_.Yu))==null?void 0:H.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.R.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.R.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.R.updateToggledStateInEntity=function(){var X=this.data.toggleMenuServiceItemEntityKey,H=!this.data.isToggled;X&&this.ytdReduxBehavior.dispatch(_.Us("toggleMenuServiceItemEntity",X,{key:X,isToggled:H}))};
_.R.computeIcon=function(X,H,l){return(X=X?l:H)&&X.iconType?_.jL(X.iconType):""};
_.R.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.R.isIconActive=function(X){return!_.P("toggle_menu_active_icon_killswitch")&&X};
_.ja.Object.defineProperties(ra.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((X=this.data)==null?0:X.isToggled)?(H=this.data)==null?void 0:H.toggledText:(l=this.data)==null?void 0:l.defaultText}}});
ra.prototype.toggledStateEntityChanged=ra.prototype.toggledStateEntityChanged;ra.prototype.onYtServiceRequestCompleted=ra.prototype.onYtServiceRequestCompleted;ra.prototype.onTap=ra.prototype.onTap;ra.prototype.onFocus=ra.prototype.onFocus;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ra.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],ra.prototype,"componentBehavior",void 0);
_.T([_.k(_.sv),_.N("design:type",Object)],ra.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ra.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ra.prototype,"useIcons",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ra.prototype,"role",void 0);_.T([_.g({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.N("design:type",String)],ra.prototype,"icon",void 0);
_.T([_.g({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.$S.toggleMenuServiceItemEntitySelector}),_.N("design:type",Object)],ra.prototype,"toggleMenuServiceItemEntity",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],ra.prototype,"systemIcons",void 0);_.T([_.Le("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ra.prototype,"onFocus",null);
_.T([_.x("data.isToggled"),_.N("design:type",Object),_.N("design:paramtypes",[])],ra.prototype,"toggleButtonText",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ra.prototype,"onTap",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ra.prototype,"onYtServiceRequestCompleted",null);
_.T([_.Yh("toggleMenuServiceItemEntity.isToggled","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ra.prototype,"toggledStateEntityChanged",null);_.T([_.sq({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],ra);
_.O(ra,"ytd-toggle-menu-service-item-renderer",function(){if(vNX!==void 0)return vNX;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return vNX=X},{mode:1});var Oyu;var JM=function(){return _.a.apply(this,arguments)||this};
_.S(JM,_.a);JM.prototype.onFocus=function(){var X;(X=_.mh(this.hostElement).querySelector("tp-yt-paper-item"))==null||X.focus()};
_.ja.Object.defineProperties(JM.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Yn(this.data.iconUrl)}}});
JM.prototype.onFocus=JM.prototype.onFocus;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],JM.prototype,"rendererBehavior",void 0);_.T([_.k(_.jj.YtEndpointBehavior),_.N("design:type",Object)],JM.prototype,"ytEndpointBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],JM.prototype,"data",void 0);_.T([_.Le("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JM.prototype,"onFocus",null);
_.T([_.x("data.iconUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],JM.prototype,"imageSource",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],JM);
_.O(JM,"ytd-menu-custom-icon-item-renderer",function(){if(Oyu!==void 0)return Oyu;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Oyu=X},{mode:2});_.gC(_.xK,"yt-list-item-view-model",{props:{data:_.zh,isMenuItem:_.zh,isCompact:_.zh,onTap:_.ta,trailingAccessory:_.ta,hideSelectionTextChevron:_.zh,disabled:_.zh,inPopup:_.zh,disableHorizontalPadding:_.zh,isOverlay:_.zh,isToggled:_.zh,ariaLabel:_.zh,ariaPressed:_.zh,shouldNotFillIcon:_.zh}});var L1=function(){var X=_.a.apply(this,arguments)||this;X.disableBackdropFilter=_.P("web_disable_backdrop_filter");return X};
_.S(L1,_.a);_.R=L1.prototype;
_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.R.computeAriaLabel=function(X){return X};
_.R.onPopupOpened=function(){this.items.selected=0;for(var X=_.C(_.mh(this.items).children),H=X.next();!H.done;H=X.next())H.value.popupPositionTarget=this.positionTarget;if(X=this.popupTip||void 0)X.setTip(this.source||""),this.source=void 0;this.veData&&(X=_.Bi())&&_.nA(X,[this.veData])};
_.R.onPopupClosed=function(){var X=this.popupTip||void 0;X&&X.clearTip()};
_.R.onIronActivate=function(X){this.shouldPersist(X)||_.TP(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(X=_.Bi())&&_.xB(X,this.veData)};
_.R.shouldPersist=function(X){var H,l;if(((H=X.detail)==null?void 0:H.selected)===void 0||(l=this.data)==null||!l.items)return!1;var b,U;return!((U=(b=this.data.items[X.detail.selected])==null?void 0:b.toggleMenuServiceItemRenderer)==null||!U.persistentOnMenuPopup)};
_.R.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(X){return X.menuNavigationItemRenderer?!!X.menuNavigationItemRenderer.icon:X.menuServiceItemRenderer?!!X.menuServiceItemRenderer.icon:X.menuConditionalServiceItemRenderer?!!X.menuConditionalServiceItemRenderer.icon:X.menuConditionalNavigationItemRenderer?!!X.menuConditionalNavigationItemRenderer.icon:X.toggleMenuServiceItemRenderer?!!X.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
L1.prototype.onPopupClosed=L1.prototype.onPopupClosed;L1.prototype.onPopupOpened=L1.prototype.onPopupOpened;_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],L1.prototype,"ytEventForwardingBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],L1.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],L1.prototype,"veData",void 0);_.T([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.N("design:type",String)],L1.prototype,"ariaLabel",void 0);_.T([_.g({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],L1.prototype,"useIcons",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],L1.prototype,"disableBackdropFilter",void 0);_.T([_.A2("#items"),_.N("design:type",Object)],L1.prototype,"items",void 0);_.T([_.A2("ytd-menu-popup-tip-renderer"),_.N("design:type",Object)],L1.prototype,"popupTip",void 0);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],L1.prototype,"onPopupOpened",null);
_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],L1.prototype,"onPopupClosed",null);_.T([_.sq({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],L1);
_.O(L1,"ytd-menu-popup-renderer",function(){if(Zyz!==void 0)return Zyz;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Zyz=X},{mode:1});var mW2;var Qk2=_.Z(function(X){X=_.gT(X,{icon:void 0});var H=X.data;X=X.icon;var l=function(){return H().iconBadgeText},b={},U=_.Qr("yt-spec-icon-badge-shape",function(){a:switch(H().iconBadgeType){case "notification":var K="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":K="yt-spec-icon-badge-shape--type-cart";break a;default:K=""}return K},function(){a:switch(H().iconBadgeStyle){case "overlay":var K="yt-spec-icon-badge-shape--style-overlay";
break a;default:K=""}return K},(b["yt-spec-icon-badge-shape--text-size-small"]=function(){var K=l();
return!!((K==null?0:K.length)&&K.length>2)},b));
return _.F("yt-icon-badge-shape",null,_.F(_.M,{cond:X,then:function(K){return _.F("div",{class:U},_.F("div",{class:"yt-spec-icon-badge-shape__icon"},_.F(_.Ja,{icon:K})),_.F(_.M,{cond:l,then:function(w){return _.F("div",{class:"yt-spec-icon-badge-shape__badge"},w)}}))}}))},"gl");
Qk2.idomCompat=!0;_.gC(Qk2,"yt-icon-badge-shape",{props:{data:_.zh,icon:_.zh}});var Yd=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};X.unseenCount=0;X.isOverlay=!1;return X};
_.S(Yd,_.a);_.R=Yd.prototype;_.R.attached=function(){var X=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(H){X.onServiceWorkerMessage(H)})};
_.R.onDataChanged=function(){this.isAttached&&!this.JSC$22644_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$22644_lastData=this.data};
_.R.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.R.computeIcon=function(){var X,H;return(X=this.data)==null?void 0:(H=X.icon)==null?void 0:H.iconType};
_.R.onServiceWorkerMessage=function(X){X.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.R.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.f(this.data.updateUnseenCountEndpoint,_.Yu)&&_.f(this.data.updateUnseenCountEndpoint,_.Yu).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.R.handleUpdateNotificationsUnseenCountAction=function(X){var H=this;X=_.f(X,dCC);X!=null&&X.unseenCount&&X.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(X.unseenCount),_.Ss.addLowPriorityJob(function(){H.data.updateUnseenCountEndpoint&&H.ytComponentBehavior.resolveCommand(H.data.updateUnseenCountEndpoint)},X.timeoutMs))};
_.R.onClick=function(){_.QX(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var X=_.NG(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),H=this.data.menuRequest;X&&X.length===1&&X[0]?_.TP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):H&&this.ytComponentBehavior.resolveCommand(H)};
_.R.handleTopbarMenuClosedAction=function(X){X==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.R.toggleIconState=function(X){this.iconButton&&(this.iconButton.pressed=X)};
_.R.sendUnseenCountRequest=function(X){var H=this;_.eh(_.Ss,function(){H.ytComponentBehavior.resolveCommand(X)})};
_.R.updateCountUI=function(X){this.set("unseenCount",X<9?X:"9+")};
_.ja.Object.defineProperties(Yd.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Yd.prototype.handleUpdateNotificationsUnseenCountAction=Yd.prototype.handleUpdateNotificationsUnseenCountAction;Yd.prototype.onDataChanged=Yd.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Yd.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.gI),_.N("design:type",Object)],Yd.prototype,"ytdOpenPopupBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Yd.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Yd.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Yd.prototype,"unseenCount",void 0);_.T([_.g(),_.N("design:type",Object)],Yd.prototype,"isOverlay",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],Yd.prototype,"showTooltips",void 0);_.T([_.A2("yt-icon-button"),_.N("design:type",Object)],Yd.prototype,"iconButton",void 0);
_.T([_.x("unseenCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],Yd.prototype,"showNotificationCount",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yd.prototype,"onDataChanged",null);_.T([_.Le("yt-update-notifications-unseen-count-action"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],Yd.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.T([_.sq({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Yd);
_.O(Yd,"ytd-notification-topbar-button-renderer",function(){if(mW2!==void 0)return mW2;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return mW2=X},{mode:2});var T89;var IN=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return X};
_.S(IN,_.a);IN.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}}}}}};
IN.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
IN.prototype.onDarkModeToggled=function(X){this.dark=X};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],IN.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],IN.prototype,"data",void 0);_.T([_.g({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],IN.prototype,"dark",void 0);
_.T([_.sq({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],IN);
_.O(IN,"yt-pdg-buy-flow-header-renderer",function(){if(T89!==void 0)return T89;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return T89=X},{mode:1});var N8u;var cyu;var AM=function(){var X=_.a.apply(this,arguments)||this;X.immediateValue=0;X.isDarkTheme=!1;X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(AM,_.a);_.R=AM.prototype;_.R.created=function(){_.uc.requestAvailability()};
_.R.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.R.dataChanged=function(){var X=_.mh(this.hostElement).querySelector("#color-slider");X.immediateValue&&this.updateSliderKnobAndGradientStyles(X.immediateValue);this.data.notches[0].knobColorArgb&&_.j4(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.qw(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.gx("HTML_DIR")==="rtl"&&_.mh(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.R.onSliderImmediateChange=function(){var X=_.mh(this.hostElement).querySelector("#color-slider");X.dragging&&(X.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(X.immediateValue),this.updateSliderKnobAndGradientStyles(X.immediateValue)),this.updateSliderAria())};
_.R.onSliderChange=function(){var X=_.mh(this.hostElement).querySelector("#color-slider");X.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(X.immediateValue),this.updateSliderKnobAndGradientStyles(X.immediateValue));this.updateSliderAria()};
_.R.updateSliderAria=function(){var X=_.mh(this.hostElement).querySelector("#color-slider"),H=_.mh(this.hostElement).querySelector("#color-slider");H=_.D8(this.data.notches[H.immediateValue].tierValue);_.ezy()&&_.QX(this.hostElement,"iron-announce",{text:H});X.setAttribute("aria-valuetext",H)};
_.R.updateSuperThanksSelectedTierEntity=function(X){if(X!==this.immediateValue){var H,l,b=this==null?void 0:(H=this.data)==null?void 0:(l=H.superThanksSelectedTierEntity)==null?void 0:l.key;b&&b.length>0&&this.ytdReduxBehavior.dispatch(_.Us("superThanksSelectedTierEntity",b,{key:b,index:X}))}};
_.R.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.R.updateSliderKnobAndGradientStyles=function(X){this.immediateValue=X;X=this.data.notches[X];if(X==null?0:X.knobColorArgb)var H={"--ytd-pdg-color-slider-knob-color":_.qw(X.knobColorArgb)};(X==null?0:X.linearGradientCssStyle)&&H!==null&&(H=Object.assign({},H,{"--ytd-pdg-color-slider-active-color":X==null?void 0:X.linearGradientCssStyle}));H!==null&&_.j4(this.hostElement,H)};
AM.prototype.onSliderChange=AM.prototype.onSliderChange;AM.prototype.onSliderImmediateChange=AM.prototype.onSliderImmediateChange;AM.prototype.dataChanged=AM.prototype.dataChanged;_.T([_.g(),_.N("design:type",Object)],AM.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],AM.prototype,"immediateValue",void 0);_.T([_.g(),_.N("design:type",Number)],AM.prototype,"maxMarkers",void 0);
_.T([_.g({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:q9A}),_.N("design:type",Object)],AM.prototype,"superThanksSelectedTierEntity",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],AM.prototype,"isDarkTheme",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],AM.prototype,"ytdReduxBehavior",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AM.prototype,"dataChanged",null);
_.T([_.Le("immediate-value-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AM.prototype,"onSliderImmediateChange",null);_.T([_.Le("change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AM.prototype,"onSliderChange",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],AM);
_.O(AM,"ytd-pdg-color-slider-renderer",function(){if(cyu!==void 0)return cyu;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return cyu=X},{mode:1});var jk9;var ry$;var Xy=null;
_.wT({is:"ytd-comment-input",_template:function(){if(ry$!==void 0)return ry$;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ry$=X},
behaviors:[_.TGO.YtHostElementBehavior,_.Yw,_.uJ.YtComponentBehavior,_.Gh.YtRendererstamperBehavior,_.OK_.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 _.pL}},
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",_.J2(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;_.rb();this.focus()},
detached:function(){document.removeEventListener("tap",_.J2(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(X){X=X.detail;X=X.isCustomEmoji?X.shortcuts[0]:X.emojiId;var H=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(H,X);this.maybeUpdateTextDirection_();_.QX(this.hostElement,"input")},
getInputRange_:function(){var X=_.lg();if(X){X=X.getBrowserRangeObject();for(var H=X.commonAncestorContainer;H;){if(H===this.getEditableTextArea_())return X;H=H.parentNode}}X=this.getEditableTextArea_();X=_.Ue(X,X.childNodes.length);X.select();return X.getBrowserRangeObject()},
insertTextWithEmojis_:function(X,H,l){(H=this.emojiManager.createDocumentFragment(H,!0,!1,l===void 0?!0:l))&&H.childNodes.length!==0&&(X.collapsed||X.deleteContents(),l=H.lastChild,X.insertNode(H),_.YlG(l).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var X=_.lg();if(X){var H=X.JSC$11664_getStartNode(),l=X.JSC$11664_getEndNode();if(NJN(H)&&NJN(l)){var b=X.JSC$11664_getStartOffset(),U;if(_.Yi&&H.nodeType===Node.ELEMENT_NODE&&(U=_.mzY(H)))_.Ue(U,0).select();else{U=$x(H)?H:_.yo(H,$x);var K=$x(l)?l:_.yo(l,$x);if(U||K)if(X.isCollapsed()){if(H.nodeType===Node.TEXT_NODE){X=!0;b===H.length&&(X=!1);if(Xy==="end"||Xy==="right")X=!1;H=H.parentNode;X=[].concat(_.LJ(H.parentNode.childNodes)).indexOf(H)+(X?0:1);_.Ue(H.parentNode,
X).select()}}else U?U.previousSibling&&U.previousSibling.length>0?_.$E(l,X.JSC$11664_getEndOffset(),U.previousSibling,U.previousSibling.length-1).select():(H=document.createTextNode("\u200b"),U.parentNode.insertBefore(H,U),_.$E(l,X.JSC$11664_getEndOffset(),H,0).select()):K&&(K.nextSibling&&K.nextSibling.length>0?_.$E(H,X.JSC$11664_getStartOffset(),K.nextSibling,1).select():(l=document.createTextNode("\u200b"),K.parentNode.insertBefore(l,K.nextSibling),_.$E(H,X.JSC$11664_getStartOffset(),l,l.length).select()));
Xy=null}}else Xy=null}else Xy=null},
leftKeyPressed_:function(){Xy="left"},
rightKeyPressed_:function(){Xy="right"},
endKeyPressed_:function(){Xy="end"},
maybeDeleteChip_:function(){var X=IUa(!0);if(X){var H=_.lg(),l=H.JSC$11664_getStartNode();H=H.JSC$11664_getStartOffset();_.bg(l,H,X,X.childNodes.length).select()}},
maybeBackspaceChip_:function(){var X=IUa(!1);if(X){var H=_.lg(),l=H.JSC$11664_getStartNode();H=H.JSC$11664_getStartOffset();_.bg(l,H,X,0).select()}},
maybeBackspaceChipWordMode_:function(X){var H=_.lg();if(H.isCollapsed()){var l=H.JSC$11664_getStartNode();H=H.JSC$11664_getStartOffset();var b=ACy(l,H,!0);b&&(_.bg(l,H,b,0).select(),document.execCommand("delete"),X.preventDefault(),X.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(X){var H=_.lg();if(H.isCollapsed()){var l=H.JSC$11664_getStartNode();H=H.JSC$11664_getStartOffset();var b=ACy(l,H,!1);b&&(_.bg(l,H,b,b.childNodes.length).select(),document.execCommand("delete"),X.preventDefault(),X.stopImmediatePropagation())}},
onContentClick:function(X){X.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(X){X.defaultPrevented||X.currentTarget.tagName==="YTD-COMMENT-INPUT"&&$x(X.target)&&X.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.mh(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.mh(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(X,H){X=jVA(X,this.emojiManager,H).cloneNode(!0);for(H=X.firstChild;H;)if(H.nodeType!==1)H=H.nextSibling;else switch(H.tagName){case "BR":var l=_.VT();_.LZY(l,H);H=l.nextSibling;break;case "DIV":(l=H.lastChild)&&H.nextSibling&&_.SH(_.VT(),l);H.previousSibling&&(H.previousSibling.nodeType===1||H.previousSibling.nodeType===3&&!H.previousSibling.textContent.endsWith("\n"))&&_.px(_.VT(),H);l&&l.nodeName==="BR"&&_.HE(l);l=H;H.hasChildNodes()?(H=H.firstChild,
_.Y_t(l)):(H=H.nextSibling,_.HE(l));break;default:H=H.nextSibling}return X0d(X)},
setTextAreaValue:function(X){X||(X="");var H=this.getEditableFormattedString_();H.text="";this.getEditableTextArea_().innerText="";typeof X==="string"&&(X={runs:[{text:X}]});H.text=X},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Xy=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var X=this.getEditableTextArea_();X&&(_.Ue(X,X.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.gx("HTML_DIR")==="rtl"){var X=this.getEditableTextArea_(),H=this.getTextAreaValue()!==""?"auto":"rtl";X.setAttribute("dir",H)}},
handleInputEvent_:function(){var X=null;if(this.isEmojiButtonDisplayed){var H=this.getInputRange_();H&&(X=this.emojiInput.retrieveTextBeforeRange(H))}this.insertText_(X,!0);this.updateCharCount_();X=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=X.scrollHeight>X.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var X=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:X})},
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(X){this.isEmojiButtonDisplayed&&(X.preventDefault(),X.stopImmediatePropagation(),X=X.clipboardData.getData("text/plain"),this.insertText_(X,!1,!1),_.QX(this.hostElement,"input"))},
insertText_:function(X,H,l){H=H===void 0?!1:H;l=l===void 0?!0:l;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&X){var b=this.getInputRange_().cloneRange();this.emojiManager&&b&&(H&&this.emojiInput.offsetStartOfRangeBy(b,X.length),this.insertTextWithEmojis_(b,X,l),cC$(this.getEditableTextArea_().lastChild)||(b=this.getInputRange_().cloneRange()),b&&(this.emojiInput.updateSuggestions(b,X),this.updateSuggestionOffset_(b)))}},
getSimpleString:_.D8,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(X){return X?"focused":"not-focused"},
computePlaceholderText_:function(X){return this.getSimpleString(X)},
computeEditableText_:function(X){return this.getSimpleString(X)},
onPrefilledContentDismissed_:function(X){X.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(X,H){X?this.fire("yt-autonav-pause-focus"):H!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(X){var H=this.getEditableTextArea_();[].concat(_.LJ(X.dataTransfer.items)).forEach(function(l){l.kind==="string"&&l.type.match("^text/plain")&&l.getAsString(function(b){H.appendChild(document.createTextNode(b))})});
X.preventDefault()},
preventDefault_:function(X){X.preventDefault()},
onSuggestionInsert_:function(X){this.insertTextWithEmojis_(X.detail.range,X.detail.text)},
onEmojiSuggestionClick_:function(X){this.emojiInput.insertSuggestion(X.detail)},
updateSuggestionOffset_:function(X){if(this.emojiInput&&_.mh(this.emojiInput).querySelector("#dropdown")){var H=this.getEditableTextArea_().getBoundingClientRect().bottom,l=X.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(H-l)+5;H=this.getEditableTextArea_().getBoundingClientRect().left;X=X.getBoundingClientRect().left-H;_.mh(this.emojiInput).querySelector("#dropdown").style.marginLeft=X+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.DS("yt-post"));return this.localStorage}});var HY=function(){var X=_.a.apply(this,arguments)||this;X.currentCommentOptionIndex=0;X.isEmojiPickerDisplayed=!1;X.emojiManager=_.pL;X.isUgcEmpty=!1;X.userGeneratedCommentChangedHandler=function(){_.QX(X.hostElement,"ytd-pdg-user-generated-comment-changed");X.isEmojiYtdCommentInputEnabled&&(X.isUgcEmpty=!X.ytdCommentInputEl.getTextAreaValue())};
X.pasteHandler=function(H){H.preventDefault();H.stopImmediatePropagation();var l;if(H=(l=H.clipboardData)==null?void 0:l.getData("text/plain"))l=document.getSelection().getRangeAt(0),l.collapsed||l.deleteContents(),H=document.createTextNode(H),l.insertNode(H),l.selectNodeContents(H),l.collapse(!1),H=window.getSelection(),H.removeAllRanges(),H.addRange(l)};
X.onDocumentClick=function(H){if(X.isEmojiPickerDisplayed){var l,b,U;!(H.target instanceof Node)||(l=H.composedPath())!=null&&l.includes(X.editableTextEl)||(b=H.composedPath())!=null&&b.includes(X.emojiButtonEl)||(U=H.composedPath())!=null&&U.includes(X.emojiPickerEl)||(X.isEmojiPickerDisplayed=!1)}};
return X};
_.S(HY,_.a);_.R=HY.prototype;_.R.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.R.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.R.detached=function(){var X;(X=this.contentEl)==null||X.removeEventListener("input",this.userGeneratedCommentChangedHandler);var H;(H=this.contentEl)==null||H.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.R.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.R.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var X;this.contentEl.textContent=this.rendererBehavior.getSimpleString((X=this.data)==null?void 0:X.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.R.reloadEmojis=function(){this.emojiPickerEl&&_.f(this.emojiPicker,_.QcY)&&this.emojiPickerEl.updateEmojiCategories()};
_.R.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.j4(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.R.handleBackgroundColorStyling=function(){var X;if((X=this.currentCommentOption)==null?0:X.commentBackgroundColorArgb){var H;_.j4(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.qw((H=this.currentCommentOption)==null?void 0:H.commentBackgroundColorArgb)})}else _.j4(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.R.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var X;(X=this.contentEl)==null||X.focus()}};
_.R.onEditButtonClick=function(X){var H=document.getSelection();H&&this.contentEl&&(X.stopPropagation(),X.preventDefault(),H.selectAllChildren(this.contentEl),H.collapseToEnd())};
_.R.onContentDrop=function(X){var H=this;if(X.dataTransfer){X=_.C(X.dataTransfer.items);for(var l=X.next();!l.done;l=X.next())l=l.value,l.kind==="string"&&l.type.match("^text/plain")&&l.getAsString(function(b){var U;(U=H.contentEl)==null||U.appendChild(document.createTextNode(b))})}};
_.R.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.R.getUserGeneratedCommentText=function(){var X,H=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(X=this.contentEl)==null?void 0:X.textContent;return H?H.trim():""};
_.R.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.R.onEmojiSelect=function(X){this.ytdCommentInputEl.onEmojiSelect(X)};
_.ja.Object.defineProperties(HY.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.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 X;return!((X=this.currentCommentOption)==null||!X.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var X;if(_.f((X=this.currentCommentOption)==null?void 0:X.chipRenderer,_.FGF)){var H;return _.f((H=this.currentCommentOption)==null?void 0:H.chipRenderer,_.FGF)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var X,H;return((X=this.data)==null?0:X.commentOptionRenderers)?_.f((H=this.data)==null?void 0:H.commentOptionRenderers[this.superThanksSelectedTierEntity.index],UHl):void 0}var l,b;return((l=this.data)==null?0:l.commentOptionRenderers)?_.f((b=this.data)==null?void 0:b.commentOptionRenderers[this.currentCommentOptionIndex],UHl):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var X;return this.rendererBehavior.getSimpleString((X=this.data)==null?void 0:X.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var X;return this.rendererBehavior.getSimpleString((X=this.data)==null?void 0:X.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var X,H;return(H=_.f((X=this.data)==null?void 0:X.commentDialog,_.U6_))==null?void 0:H.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var X,H;return(H=_.f((X=this.data)==null?void 0:X.commentDialog,_.U6_))==null?void 0:H.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var X,H;return(H=_.f((X=this.data)==null?void 0:X.commentDialog,_.U6_))==null?void 0:H.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(H=_.f((X=this.data)==null?void 0:X.commentDialog,_.U6_))==null?void 0:H.emojiPicker;if(!_.f(l,_.QcY)||!_.f(l,_.QcY).categories)return!1;X=function(K){return K.emojiPickerCategoryRenderer?K.emojiPickerCategoryRenderer.emojiIds&&K.emojiPickerCategoryRenderer.emojiIds.length>0:K.emojiPickerUpsellCategoryRenderer?K.emojiPickerUpsellCategoryRenderer.emojis&&K.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var b,U;return((b=_.f(l,_.QcY))==null?0:(U=b.categories)==null?0:U.find(X))?!0:!1}}});
HY.prototype.onEmojiSelect=HY.prototype.onEmojiSelect;HY.prototype.dataChanged=HY.prototype.dataChanged;HY.prototype.currentCommentOptionChanged=HY.prototype.currentCommentOptionChanged;_.T([_.k(_.sv),_.N("design:type",Object)],HY.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],HY.prototype,"rendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.A2("#content-dom-if"),_.N("design:type",_.hF)],HY.prototype,"contentDomIfEl",void 0);_.T([_.A2("#content-no-emojis"),_.N("design:type",HTMLElement)],HY.prototype,"contentEl",void 0);_.T([_.A2("#container"),_.N("design:type",HTMLElement)],HY.prototype,"containerEl",void 0);_.T([_.A2("#comment-chip-container"),_.N("design:type",HTMLElement)],HY.prototype,"paidCommentChipContainerEl",void 0);_.T([_.A2("#text-input"),_.N("design:type",HTMLElement)],HY.prototype,"editableTextEl",void 0);
_.T([_.A2("#emoji-button"),_.N("design:type",HTMLElement)],HY.prototype,"emojiButtonEl",void 0);_.T([_.A2("#emoji-picker > yt-emoji-picker-renderer"),_.N("design:type",Object)],HY.prototype,"emojiPickerEl",void 0);_.T([_.A2("#text-input > ytd-comment-input"),_.N("design:type",Object)],HY.prototype,"ytdCommentInputEl",void 0);_.T([_.g(),_.N("design:type",Object)],HY.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],HY.prototype,"currentCommentOptionIndex",void 0);
_.T([_.g({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:q9A}),_.N("design:type",Object)],HY.prototype,"superThanksSelectedTierEntity",void 0);_.T([_.g(),_.N("design:type",Object)],HY.prototype,"isEmojiPickerDisplayed",void 0);_.T([_.g(),_.N("design:type",Object)],HY.prototype,"emojiManager",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],HY.prototype,"isUgcEmpty",void 0);
_.T([_.Yh("currentCommentOption"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HY.prototype,"currentCommentOptionChanged",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HY.prototype,"dataChanged",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HY.prototype,"isEmojiYtdCommentInputEnabled",null);
_.T([_.x("data.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],HY.prototype,"title",null);_.T([_.x("data.authorText"),_.N("design:type",Object),_.N("design:paramtypes",[])],HY.prototype,"channelName",null);_.T([_.x("data.commentOptionRenderers","currentCommentOption"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HY.prototype,"shouldShowPaidCommentChipRenderer",null);
_.T([_.x("data.commentOptionRenderers","currentCommentOption"),_.N("design:type",Object),_.N("design:paramtypes",[])],HY.prototype,"paidCommentChipRenderer",null);_.T([_.x("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],HY.prototype,"currentCommentOption",null);
_.T([_.x("data.defaultCommentText","superThanksSelectedTierEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],HY.prototype,"commentText",null);_.T([_.x("data.placeholderText"),_.N("design:type",Object),_.N("design:paramtypes",[])],HY.prototype,"placeholderText",null);_.T([_.x("data.commentDialog.commentDialogRenderer.editableText"),_.N("design:type",Object),_.N("design:paramtypes",[])],HY.prototype,"editableText",null);
_.T([_.x("data.commentDialog.commentDialogRenderer.emojiButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],HY.prototype,"emojiButton",null);_.T([_.x("data.commentDialog.commentDialogRenderer.emojiPicker"),_.N("design:type",Object),_.N("design:paramtypes",[])],HY.prototype,"emojiPicker",null);
_.T([_.x("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HY.prototype,"isEmojiButtonDisplayed",null);_.T([_.Le("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],HY.prototype,"onEmojiSelect",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],HY);
_.O(HY,"ytd-pdg-comment-preview-renderer",function(){if(jk9!==void 0)return jk9;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return jk9=X},{mode:2});var Jya;var lG=function(){var X=_.a.apply(this,arguments)||this;X.selected=!1;return X};
_.S(lG,_.a);_.R=lG.prototype;_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.R.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.R.dataChanged=function(){this.data&&(_.Q_(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.j4(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.qw(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.qw(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.R.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.R.onClick=function(){this.logClick()};
_.R.onKeyboardSelect=function(){_.QX(this.hostElement,"tap");this.onClick()};
_.R.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
lG.prototype.onClick=lG.prototype.onClick;lG.prototype.selectedChanged=lG.prototype.selectedChanged;lG.prototype.dataChanged=lG.prototype.dataChanged;_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],lG.prototype,"componentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],lG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Yw),_.N("design:type",Object)],lG.prototype,"ironA11yKeysBehavior",void 0);
_.T([_.k(_.kD),_.N("design:type",Object)],lG.prototype,"ironSelectableBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],lG.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],lG.prototype,"shownThumbnail",void 0);_.T([_.g(),_.N("design:type",Object)],lG.prototype,"basePriceText",void 0);_.T([_.g(),_.N("design:type",Object)],lG.prototype,"purchaseCommand",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],lG.prototype,"selected",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lG.prototype,"dataChanged",null);_.T([_.Yh("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lG.prototype,"selectedChanged",null);_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lG.prototype,"onClick",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],lG);
_.O(lG,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Jya!==void 0)return Jya;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Jya=X},{mode:1});var o9=function(){var X=_.a.apply(this,arguments)||this;X.selectedItemIndex=0;X.buyButtonDisabled=!1;return X};
_.S(o9,_.a);_.R=o9.prototype;
_.R.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]]"}}}}}};
_.R.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var X;var H=(X=_.f(this.data.colorSlider,b3l))==null?void 0:X.notches[this.selectedItemIndex].purchaseCommand}else{var l;H=(l=_.f(this.data.selectableItemButtons[this.selectedItemIndex],KdU))==null?void 0:l.purchaseCommand}if(H){X=_.f(H,_.Imv);X.productData||(X.productData={});var b;X.productData={pdgData:{commentMessageText:(b=this.commentPreviewRenderer)==null?void 0:b.getUserGeneratedCommentText()}};
_.QX(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(H)}}};
_.R.dataChanged=function(){if(this.data){_.pL.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.MoC(_.pL,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.pL.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var X;this.buyButtonDisabled=!((X=_.f(this.data.commentPreview,$Hd))==null||!X.placeholderText);this.updatePriceSelectorStatus();var H;if((H=this.data)==null?0:H.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;X=[];this.data.preloadImages&&(X=this.data.preloadImages);
X=X.map(function(l){return _.G0(l.thumbnails,1920)});
X=_.C(X);for(H=X.next();!H.done;H=X.next())(H=H.value)&&_.lQO(H).thenCatch(function(){_.x2(Error("km"))})}};
_.R.superThanksSelectedTierEntityChanged=function(){var X;(this==null?void 0:(X=this.superThanksSelectedTierEntity)==null?void 0:X.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.R.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.R.updatePriceSelectorStatus=function(){this.isColorSlider?(_.mh(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.mh(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.mh(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.mh(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.R.closeBuyFlow=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.R.onUserGeneratedContentChanged=function(){var X;this.buyButtonDisabled=!((X=this.commentPreviewRenderer)==null?0:X.getUserGeneratedCommentText())};
_.R.updateSelectedItemIndexFromBinding=function(X){this.selectedItemIndex=X.detail.value};
_.ja.Object.defineProperties(o9.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var X;return!((X=this.data)==null||!X.disclaimerText)}}});
o9.prototype.onUserGeneratedContentChanged=o9.prototype.onUserGeneratedContentChanged;o9.prototype.closeBuyFlow=o9.prototype.closeBuyFlow;o9.prototype.selectedItemIndexChanged=o9.prototype.selectedItemIndexChanged;o9.prototype.superThanksSelectedTierEntityChanged=o9.prototype.superThanksSelectedTierEntityChanged;o9.prototype.dataChanged=o9.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],o9.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],o9.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],o9.prototype,"selectedItemIndex",void 0);_.T([_.g(),_.N("design:type",Boolean)],o9.prototype,"isColorSlider",void 0);
_.T([_.g(),_.N("design:type",Object)],o9.prototype,"buyButtonDisabled",void 0);_.T([_.g({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:q9A}),_.N("design:type",Object)],o9.prototype,"superThanksSelectedTierEntity",void 0);_.T([_.A2("ytd-pdg-comment-preview-renderer"),_.N("design:type",Object)],o9.prototype,"commentPreviewRenderer",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],o9.prototype,"ytdReduxBehavior",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],o9.prototype,"dataChanged",null);_.T([_.Yh("superThanksSelectedTierEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],o9.prototype,"superThanksSelectedTierEntityChanged",null);_.T([_.Yh("selectedItemIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],o9.prototype,"selectedItemIndexChanged",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],o9.prototype,"closeBuyFlow",null);_.T([_.Le("ytd-pdg-user-generated-comment-changed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],o9.prototype,"onUserGeneratedContentChanged",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],o9.prototype,"isDisclaimerTextShown",null);
_.T([_.sq({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],o9);
_.O(o9,"yt-super-vod-buy-flow-content-renderer",function(){if(N8u!==void 0)return N8u;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return N8u=X},{mode:1});var Lmu;var bG=function(){var X=_.a.apply(this,arguments)||this;X.lottieAnimationRef={};return X};
_.S(bG,_.a);_.R=bG.prototype;_.R.created=function(){_.uc.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.J2(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.R.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.QX(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.R.detached=function(){this.autoCloseJobId&&_.Ss.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.J2(this,this.onPopupIronOverlayOpened))};
_.R.dataChanged=function(){var X=this;this.data&&this.data.autoCloseDelay&&(_.TP(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.v5(_.Ss,function(){X.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.j4(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.R.onDOMLoadedLottie=function(){var X=this,H,l,b=Number((H=this.data)==null?void 0:(l=H.autoCloseDelay)==null?void 0:l.seconds)||0;this.fadeOutJobId=_.v5(_.Ss,function(){X.lottiePlayerEl.classList.add("fadeout")},(b-.25)*1E3);
this.autoCloseJobId=_.v5(_.Ss,function(){X.closePopup()},b*1E3)};
_.R.openPopup=function(){this.ironOverlayBehavior.open()};
_.R.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.TP(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.j7(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.jJ().resolve(_.Vr).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Ss.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Ss.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.R.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var X,H;(X=this.lottieAnimationRef)==null||(H=X.lottieEl)==null||H.destroy();X=this.data.lottie;var l,b;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:X.url+"_"+Math.random(),path:X.url,autoplay:!0,loop:(b=(l=X.settings)==null?void 0:l.loop)!=null?b:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.ja.Object.defineProperties(bG.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var X,H;return!!((X=this.data)==null?0:(H=X.lottie)==null?0:H.url)}}});
bG.prototype.maybeInitializeLottie=bG.prototype.maybeInitializeLottie;bG.prototype.dataChanged=bG.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bG.prototype,"rendererBehavior",void 0);_.T([_.k(_.f7),_.N("design:type",Object)],bG.prototype,"ironOverlayBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],bG.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],bG.prototype,"lottiePlayerProps",void 0);
_.T([_.g(),_.N("design:type",Object)],bG.prototype,"lottieAnimationRef",void 0);_.T([_.A2("ytd-lottie-player"),_.N("design:type",HTMLElement)],bG.prototype,"lottiePlayerEl",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bG.prototype,"dataChanged",null);_.T([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bG.prototype,"hasLottieAnimation",null);
_.T([_.Yh("data.lottie.url"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bG.prototype,"maybeInitializeLottie",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],bG);
_.O(bG,"ytd-desktop-image-overlay-renderer",function(){if(Lmu!==void 0)return Lmu;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Lmu=X},{mode:1});var Yya;var Up=function(){return _.a.apply(this,arguments)||this};
_.S(Up,_.a);_.R=Up.prototype;_.R.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"}}}}};
_.R.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",_.J2(this,this.closePopup))};
_.R.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.J2(this,this.closePopup))};
_.R.dataChanged=function(){_.NG(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.f(this.data.header,oKZ)&&(this.hasBackgroundBanner=!!_.f(this.data.header,oKZ).backgroundBanner)};
_.R.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.J2(this,this.closePopup))};
_.R.closePopup=function(){this.data&&this.data.onCloseCommand&&_.ci(this.hostElement,[this.data.onCloseCommand])};
Up.prototype.handleBuyflowSelectionSubmitted=Up.prototype.handleBuyflowSelectionSubmitted;Up.prototype.dataChanged=Up.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Up.prototype,"data",void 0);
_.T([_.g({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],Up.prototype,"hasBackgroundBanner",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Up.prototype,"dataChanged",null);_.T([_.Le("yt-pdg-buy-flow-selection-submitted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Up.prototype,"handleBuyflowSelectionSubmitted",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Up);
_.O(Up,"ytd-pdg-buy-flow-renderer",function(){if(Yya!==void 0)return Yya;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Yya=X},{mode:1});var ILa;var $A=function(){var X=_.a.apply(this,arguments)||this;X.isOpen=!1;X.isPlaylistCreated=!1;return X};
_.S($A,_.a);_.R=$A.prototype;_.R.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.R.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.QX(this.hostElement,"yt-refit")};
_.R.onCreateTap=function(){var X=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.ci(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(H,l){if(!_.P("killswitch_ep_in_create_playlist_response")&&(l==null?0:l.actions))for(H=_.C(l.actions),l=H.next();!l.done;l=H.next())l=l.value,_.f(l,_.up)&&X.ytComponentBehavior.resolveCommand(l)}}]),this.isPlaylistCreated=!0)};
_.R.onKeydown=function(X){if(X.keyCode===13)this.onCreateTap()};
_.R.onServiceRequestCompleted=function(X){X.stopPropagation();_.TP(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.R.computePrivacyBadge=function(X){return X?[{metadataBadgeRenderer:X}]:[]};
$A.prototype.onServiceRequestCompleted=$A.prototype.onServiceRequestCompleted;$A.prototype.onKeydown=$A.prototype.onKeydown;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],$A.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$A.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],$A.prototype,"isOpen",void 0);
_.T([_.g(),_.N("design:type",Object)],$A.prototype,"isPlaylistCreated",void 0);_.T([_.g({value:{REQUIRED_LABEL:_.XS("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.XS("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.N("design:type",Object)],$A.prototype,"addToStrings",void 0);_.T([_.g({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.N("design:type",Array)],$A.prototype,"privacyBadge",void 0);
_.T([_.A2("#privacy-input"),_.N("design:type",Object)],$A.prototype,"privacyInput",void 0);_.T([_.A2("#name-input"),_.N("design:type",Object)],$A.prototype,"nameInput",void 0);_.T([_.Le("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],$A.prototype,"onKeydown",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$A.prototype,"onServiceRequestCompleted",null);
_.T([_.sq({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],$A);
_.O($A,"ytd-add-to-playlist-create-renderer",function(){if(ILa!==void 0)return ILa;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return ILa=X},{mode:1});var Ayu;var Xz9;var Ko=function(){var X=_.a.apply(this,arguments)||this;X.transferState="TRANSFER_STATE_UNKNOWN";return X};
_.S(Ko,_.a);Ko.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Ko.prototype.onCheckboxChange=function(X){var H=this;this.data&&_.pc(this,"yt-playlist-checkbox-changed",function(){var l=_.WM(X).checked?H.data.addToPlaylistServiceEndpoint:H.data.removeFromPlaylistServiceEndpoint;l&&_.jJ().resolve(_.Vr).resolveCommand(l,{form:{element:H.hostElement}});_.P("dl_playlist_killswitch")||H.transferState!=="TRANSFER_STATE_UNKNOWN"&&H.transferState!=="TRANSFER_STATE_FAILED"&&H.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:H.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Ko.prototype.computeIconType=function(X){return X?"yt-icons:"+X.toLowerCase():null};
Ko.prototype.dataChanged=Ko.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ko.prototype,"data",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Ko.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Ko.prototype,"ytComponentBehavior",void 0);_.T([_.A2("#checkbox"),_.N("design:type",HTMLInputElement)],Ko.prototype,"checkbox",void 0);
_.T([_.g({selector:_.yR,selectorArgs:["data.playlistId"]}),_.N("design:type",String)],Ko.prototype,"transferState",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ko.prototype,"dataChanged",null);_.T([_.sq({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Ko);
_.O(Ko,"ytd-playlist-add-to-option-renderer",function(){if(Xz9!==void 0)return Xz9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Xz9=X},{mode:1});var H_A=_.Z(function(X){var H=X.data;return _.F("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.F("div",null,_.F(_.Sj,{text:function(){return H().title}})),_.F(_.M,{cond:function(){return H().subtitle},
then:function(l){return _.F("div",{class:"ytdMenuTitleRendererSubtitle"},_.F(_.Sj,{text:l}))}}))},"hl");
H_A.idomCompat=!0;_.gC(H_A,"ytd-menu-title-renderer",{props:{data:_.zh}});var R9=function(){var X=_.a.apply(this,arguments)||this;X.addToStrings={ADD_TO_DROPDOWN_LABEL:_.XS("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};X.closeButtonAriaLabel=_.XS("SBOX_INAPPROPRIATE_CANCEL");X.dialog=_.P("desktop_add_to_playlist_renderer_dialog_popup");return X};
_.S(R9,_.a);_.R=R9.prototype;_.R.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"}}}};
_.R.onPopupOpened=function(){_.TW(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.R.onPopupClosed=function(){_.TW(this.playlists,"scrollable",!1)};
_.R.computeAriaLabel=function(){var X;if(this==null?0:(X=this.data)==null?0:X.actions){X=_.C(this.data.actions);for(var H=X.next();!H.done;H=X.next())if(H=H.value,H.menuTitleRenderer)return _.D8(H.menuTitleRenderer.title)}};
_.R.onTapClose=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.ja.Object.defineProperties(R9.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var X;if(this==null?0:(X=this.data)==null?0:X.actions){X=_.C(this.data.actions);for(var H=X.next();!H.done;H=X.next())if(H=H.value,H.menuTitleRenderer)return H.menuTitleRenderer}return!1}}});
R9.prototype.onPopupClosed=R9.prototype.onPopupClosed;R9.prototype.onPopupOpened=R9.prototype.onPopupOpened;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],R9.prototype,"ytEventForwardingBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],R9.prototype,"ytRendererStamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],R9.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],R9.prototype,"addToStrings",void 0);_.T([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.N("design:type",String)],R9.prototype,"ariaLabel",void 0);_.T([_.g(),_.N("design:type",String)],R9.prototype,"closeButtonAriaLabel",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],R9.prototype,"dialog",void 0);
_.T([_.A2("#playlists"),_.N("design:type",HTMLElement)],R9.prototype,"playlists",void 0);_.T([_.A2("ytd-add-to-playlist-create-renderer"),_.N("design:type",Object)],R9.prototype,"createRenderer",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],R9.prototype,"menuTitleRenderer",null);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],R9.prototype,"onPopupOpened",null);
_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],R9.prototype,"onPopupClosed",null);_.T([_.sq({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],R9);
_.O(R9,"ytd-add-to-playlist-renderer",function(){if(Ayu!==void 0)return Ayu;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Ayu=X},{mode:1});var l6$;var Co=function(){var X=_.a.apply(this,arguments)||this;X.isPlaylistEditComplete=!1;X.isCollabEngagementDisabled=!1;X.closeButtonAriaLabel=_.XS("SBOX_INAPPROPRIATE_CANCEL");X.saveButton={title:_.XS("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"};X.onValueChanged=function(){X.updateSaveButtonState();X.computeCollabEngagementDisabled()};
return X};
_.S(Co,_.a);_.R=Co.prototype;_.R.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())};
_.R.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.R.onPopupClosed=function(){this.reset()};
_.R.close=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.R.onClickSave=function(){var X=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var H=[];this.nameInput.value!==null&&H.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&H.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var l=Number(this.privacyInput.value);isNaN(l)||H.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:l})}this.votingInput.value!==null&&(l=this.votingInput.value)&&H.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:l});if(H.length>0){var b;_.f((b=this.data)==null?void 0:b.updateSettingsEndpoint,_.MI).actions=H;var U;if((U=this.data)==null?0:U.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){X.close()}}}),this.isPlaylistEditComplete=!0}}};
_.R.computePrivacyBadge=function(X){return X?[{metadataBadgeRenderer:X}]:[]};
_.R.computeEditorData=function(X){var H,l;return X==null?void 0:(H=X.sections)==null?void 0:(l=H[0])==null?void 0:l.playlistSettingsEditorCasualSectionRenderer};
_.R.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.R.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}}}}}};
_.R.computeAriaLabel=function(){var X,H,l,b=(X=this.data)==null?void 0:(H=X.sections)==null?void 0:(l=H[0])==null?void 0:l.playlistSettingsEditorCasualSectionRenderer;return _.D8(b==null?void 0:b.title)};
_.R.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"}))};
_.R.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.R.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.R.isNameChanged=function(){var X,H,l;return(((X=this.editorData)==null?void 0:(H=X.name)==null?void 0:(l=H.textInputFormFieldRenderer)==null?void 0:l.value)||"")!==(this.nameInput.value||"")};
_.R.isDescriptionChanged=function(){var X,H,l;return(((X=this.editorData)==null?void 0:(H=X.description)==null?void 0:(l=H.textInputFormFieldRenderer)==null?void 0:l.value)||"")!==(this.descriptionInput.value||"")};
_.R.isPrivacyChanged=function(){var X,H,l,b,U,K,w,d;return((w=(X=this.editorData)==null?void 0:(H=X.privacy)==null?void 0:(l=H.dropdownFormFieldRenderer)==null?void 0:(b=l.dropdown)==null?void 0:(U=b.dropdownRenderer)==null?void 0:(K=U.entries)==null?void 0:K.find(function(B){var q;return B==null?void 0:(q=B.privacyDropdownItemRenderer)==null?void 0:q.isSelected}))==null?void 0:(d=w.privacyDropdownItemRenderer)==null?void 0:d.int32Value)!==this.privacyInput.value};
_.R.isVotingChanged=function(){var X,H,l,b,U,K,w,d;return((w=(X=this.editorData)==null?void 0:(H=X.voting)==null?void 0:(l=H.dropdownFormFieldRenderer)==null?void 0:(b=l.dropdown)==null?void 0:(U=b.dropdownRenderer)==null?void 0:(K=U.entries)==null?void 0:K.find(function(B){var q;return B==null?void 0:(q=B.privacyDropdownItemRenderer)==null?void 0:q.isSelected}))==null?void 0:(d=w.privacyDropdownItemRenderer)==null?void 0:d.int32Value)!==this.votingInput.value};
Co.prototype.onPopupClosed=Co.prototype.onPopupClosed;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Co.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],Co.prototype,"ytEventForwardingBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Co.prototype,"ytRendererStamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],Co.prototype,"data",void 0);_.T([_.g({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.N("design:type",Array)],Co.prototype,"privacyBadge",void 0);_.T([_.g({computed:"computeEditorData(data)"}),_.N("design:type",Object)],Co.prototype,"editorData",void 0);_.T([_.g(),_.N("design:type",Object)],Co.prototype,"isPlaylistEditComplete",void 0);_.T([_.g(),_.N("design:type",Object)],Co.prototype,"isCollabEngagementDisabled",void 0);
_.T([_.g({value:{REQUIRED_LABEL:_.XS("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.XS("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.N("design:type",Object)],Co.prototype,"addToStrings",void 0);_.T([_.g({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.N("design:type",String)],Co.prototype,"ariaLabel",void 0);_.T([_.g(),_.N("design:type",String)],Co.prototype,"closeButtonAriaLabel",void 0);
_.T([_.g(),_.N("design:type",Object)],Co.prototype,"saveButton",void 0);_.T([_.A2("#name-input"),_.N("design:type",Object)],Co.prototype,"nameInput",void 0);_.T([_.A2("#description-input"),_.N("design:type",Object)],Co.prototype,"descriptionInput",void 0);_.T([_.A2("#privacy-input"),_.N("design:type",Object)],Co.prototype,"privacyInput",void 0);_.T([_.A2("#voting-input"),_.N("design:type",Object)],Co.prototype,"votingInput",void 0);
_.T([_.A2("#scroller"),_.N("design:type",Object)],Co.prototype,"JSC$22698_scroller",void 0);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Co.prototype,"onPopupClosed",null);_.T([_.g(),_.N("design:type",Object)],Co.prototype,"onValueChanged",void 0);_.T([_.sq({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],Co);
_.O(Co,"ytd-playlist-settings-editor-renderer",function(){if(l6$===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);l6$=X}X=l6$;return X},{mode:1});var oQn;_.wd("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var wi=function(){return _.a.apply(this,arguments)||this};
_.S(wi,_.a);_.R=wi.prototype;_.R.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}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.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 X=this.get("data.nextButton.buttonRenderer.navigationEndpoint");X&&(this.nextNavigationEndpoint=X,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.R.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 X={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",X)}}};
_.R.onPopupOpened=function(X){X.detail!==this&&X.detail!==this.hostElement||!_.P("enable_premium_voluntary_pause")||_.TP(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.R.onNextButtonTap=function(){var X=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);X&&this.ytdOpenPopupBehavior.openPopup(X)};
_.R.updateSelectedResponseIndexFromBinding=function(X){this.selectedResponseIndex=X.detail.value};
wi.prototype.onPopupOpened=wi.prototype.onPopupOpened;wi.prototype.onSelectedResponseIndexChange=wi.prototype.onSelectedResponseIndexChange;wi.prototype.dataChanged=wi.prototype.dataChanged;_.T([_.k(_.gI),_.N("design:type",Object)],wi.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],wi.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Number)],wi.prototype,"selectedResponseIndex",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wi.prototype,"dataChanged",null);_.T([_.Yh("selectedResponseIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wi.prototype,"onSelectedResponseIndexChange",null);
_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],wi.prototype,"onPopupOpened",null);_.T([_.sq({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],wi);
_.O(wi,"ytd-red-cancel-survey-renderer",function(){if(oQn!==void 0)return oQn;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return oQn=X},{mode:1});var b_$;var di=function(){var X=_.a.apply(this,arguments)||this;X.closeButtonAriaLabel=_.XS("SBOX_INAPPROPRIATE_CANCEL");return X};
_.S(di,_.a);di.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
di.prototype.onClickClose=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],di.prototype,"rendererStamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],di.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],di.prototype,"closeButtonAriaLabel",void 0);_.T([_.sq({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],di);
_.O(di,"ytd-search-filter-options-dialog-renderer",function(){if(b_$!==void 0)return b_$;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return b_$=X},{mode:1});var Uvn;var oox=function(){return function(X){X=X.availabilityType;return X===void 0||X==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||X==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var hm=function(){var X=_.a.apply(this,arguments)||this;X.qualityOptions=[];X.upsellOptions=[];X.showUpsellSection=!1;X.rememberSettingsChecked=!1;return X};
_.S(hm,_.a);_.R=hm.prototype;_.R.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}}}}};
_.R.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.R.updateQualityOptions=function(){if(this.formats===void 0)_.TP(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var X=[],H=[];this.showUpsellSection=!1;for(var l=_.C(this.formats),b=l.next();!b.done;b=l.next())(b=b.value)&&(b.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?H.push(b):X.push(b));X.length&&(this.qualityOptions=lOl(X));H.length&&(this.showUpsellSection=!0,this.upsellOptions=lOl(H))}};
_.R.updateRememberString=function(){if(this.downloadQualityPickerEntity)var X=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var H;X=(H=this.data)==null?void 0:H.premiumRememberSettingString}else{var l;X=(l=this.data)==null?void 0:l.rememberSettingString}X=X===void 0?_.XS("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):X;this.rememberSettingsCheckboxRenderer={title:_.Zi(X),disabled:!1}};
_.R.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.ja.Object.defineProperties(hm.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var X;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(X=this.data)==null?void 0:X.qualityFormats}}});
hm.prototype.updateRememberString=hm.prototype.updateRememberString;hm.prototype.updateQualityOptions=hm.prototype.updateQualityOptions;hm.prototype.dataChanged=hm.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],hm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],hm.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],hm.prototype,"data",void 0);
_.T([_.k(_.sv),_.N("design:type",Object)],hm.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Boolean)],hm.prototype,"selectedUpsellQuality",void 0);_.T([_.g({computed:"computeIcon_(data.premiumIcon)",value:""}),_.N("design:type",String)],hm.prototype,"premiumIcon",void 0);_.T([_.g({selector:pip,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.N("design:type",Object)],hm.prototype,"downloadQualityPickerEntity",void 0);
_.T([_.g(),_.N("design:type",Array)],hm.prototype,"qualityOptions",void 0);_.T([_.g(),_.N("design:type",Array)],hm.prototype,"upsellOptions",void 0);_.T([_.g(),_.N("design:type",Object)],hm.prototype,"showUpsellSection",void 0);_.T([_.g(),_.N("design:type",Object)],hm.prototype,"rememberSettingsCheckboxRenderer",void 0);_.T([_.A2("#remember-settings"),_.N("design:type",HTMLInputElement)],hm.prototype,"rememberSettingsCheckbox",void 0);
_.T([_.g(),_.N("design:type",Object)],hm.prototype,"rememberSettingsChecked",void 0);_.T([_.g(),_.N("design:type",Function)],hm.prototype,"onRememberSettingsCheckedChanged",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hm.prototype,"dataChanged",null);_.T([_.Yh("downloadQualityPickerEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hm.prototype,"updateQualityOptions",null);
_.T([_.Yh("selectedUpsellQuality"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hm.prototype,"updateRememberString",null);_.T([_.sq({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],hm);
_.O(hm,"ytd-download-quality-selector-content",function(){if(Uvn!==void 0)return Uvn;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Uvn=X},{mode:1});var $vr;var Fy=function(){var X=_.a.apply(this,arguments)||this;X.selectedUpsellQuality=!1;X.qualityOptions=[];X.useUpsellDismissAlternate=_.P("use_not_now_dl_upsell_dismiss_cta");X.shouldShowAlternateUpsellDimiss=!1;X.rememberSettings=!1;X.rememberSettingsChecked=!1;X.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};X.rememberSettingsCheckedChanged=function(H){X.rememberSettingsChecked=H};
return X};
_.S(Fy,_.a);_.R=Fy.prototype;
_.R.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Zi(_.XS("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Zi(_.XS("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Zi(_.XS("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Zi(_.XS("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.R.updateQualityOptions=function(){this.formats===void 0?_.TP(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=lOl(this.formats)};
_.R.onQualityOptionsSelect=function(X){if(this.qualityOptions&&X){X!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var H=_.C(this.qualityOptions.entries()),l=H.next();!l.done;l=
H.next()){l=_.C(l.value);var b=l.next().value;l=l.next().value;var U=void 0,K=void 0;if(((U=l)==null?void 0:(K=U.settingsRadioOptionRenderer)==null?void 0:K.id)===X){this.selectedQualityIndex=b;X=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((X=this.formats[b])==null?void 0:X.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.R.onClickSubmit=function(){var X;if((X=this.downloadButtonRenderer)==null||!X.isDisabled){var H,l;X=(l=(H=this.data)==null?void 0:H.onSubmitEndpoint)!=null?l:{};var b,U;if(this.formats&&(((b=_.f(X,_.Yj))==null?0:b.videoId)||((U=_.f(X,_.Iq))==null?0:U.playlistId))){var K,w,d,B,q,u;H={formatType:(B=(K=this.formats)==null?void 0:(w=K[(d=this.selectedQualityIndex)!=null?d:0])==null?void 0:w.format)!=null?B:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(q=this.getOfflineEndpoint(X))==null?void 0:(u=q.actionParams)==null?void 0:u.settingsAction)};this.getOfflineEndpoint(X).actionParams=H;this.ytComponentBehavior.resolveCommand(X)}_.TP(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.R.onClickUpsell=function(){var X;if((X=this.upsellButtonRenderer)==null||!X.isDisabled){var H,l;X=(l=(H=this.data)==null?void 0:H.upsellEndpoint)!=null?l:{};this.ytComponentBehavior.resolveCommand(X);_.TP(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);H="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var b,U,K,w;H=(w=(b=this.formats)==null?void 0:(U=b[(K=this.selectedQualityIndex)!=null?K:0])==null?void 0:U.format)!=null?w:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:H}})}};
_.R.onClickClose=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.R.getOfflineSettingsAction=function(X,H){return X?H===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":H:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.R.getOfflineEndpoint=function(X){return _.f(X,_.Yj)?_.f(X,_.Yj):_.f(X,_.Iq)};
_.ja.Object.defineProperties(Fy.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Zi(_.XS("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var X;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(X=this.data)==null?void 0:X.qualityFormats}}});
Fy.prototype.updateQualityOptions=Fy.prototype.updateQualityOptions;Fy.prototype.dataChanged=Fy.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Fy.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Fy.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Fy.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Number)],Fy.prototype,"selectedQualityIndex",void 0);_.T([_.g(),_.N("design:type",Object)],Fy.prototype,"selectedUpsellQuality",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Fy.prototype,"ytdReduxBehavior",void 0);
_.T([_.g({selector:pip,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.N("design:type",Object)],Fy.prototype,"downloadQualityPickerEntity",void 0);_.T([_.g(),_.N("design:type",Array)],Fy.prototype,"qualityOptions",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Fy.prototype,"useUpsellDismissAlternate",void 0);_.T([_.g(),_.N("design:type",Object)],Fy.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.T([_.g(),_.N("design:type",Object)],Fy.prototype,"downloadButtonRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],Fy.prototype,"upsellButtonRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],Fy.prototype,"cancelButtonRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],Fy.prototype,"upsellCancelButtonRenderer",void 0);_.T([_.g(),_.N("design:type",Object)],Fy.prototype,"rememberSettings",void 0);_.T([_.g(),_.N("design:type",Object)],Fy.prototype,"rememberSettingsChecked",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fy.prototype,"dataChanged",null);_.T([_.Yh("downloadQualityPickerEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fy.prototype,"updateQualityOptions",null);_.T([_.sq({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Fy);
_.O(Fy,"ytd-download-quality-selector-renderer",function(){if($vr!==void 0)return $vr;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return $vr=X},{mode:1});var KDr;var BY=function(){return _.a.apply(this,arguments)||this};
_.S(BY,_.a);BY.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
BY.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],BY.prototype,"data",void 0);_.T([_.g({computed:"computeIcon_(data.infoIcon)"}),_.N("design:type",Object)],BY.prototype,"infoIcon",void 0);
_.T([_.g({computed:"computeIcon_(data.warningIcon)"}),_.N("design:type",Object)],BY.prototype,"warningIcon",void 0);_.T([_.sq({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],BY);
_.O(BY,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(KDr!==void 0)return KDr;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return KDr=X},{mode:1});var RCA;var q1=function(){return _.a.apply(this,arguments)||this};
_.S(q1,_.a);q1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
q1.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],q1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],q1.prototype,"data",void 0);_.T([_.sq({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],q1);
_.O(q1,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(RCA!==void 0)return RCA;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return RCA=X},{mode:1});var CFu;var sp=function(){return _.a.apply(this,arguments)||this};
_.S(sp,_.a);sp.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sp.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"}}}}};
sp.prototype.onServiceRequestSentOrCompleted=function(X,H){H&&H.actions&&H.actions.length>0&&_.TP(this.hostElement,"yt-close-popup-action",[this.is])};
sp.prototype.onServiceRequestSentOrCompleted=sp.prototype.onServiceRequestSentOrCompleted;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],sp.prototype,"data",void 0);
_.T([_.Le("yt-service-request-completed"),_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],sp.prototype,"onServiceRequestSentOrCompleted",null);_.T([_.sq({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],sp);
_.O(sp,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(CFu!==void 0)return CFu;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return CFu=X},{mode:1});var wzo;var M1=function(){var X=_.a.apply(this,arguments)||this;X.submitButtonDisabled=!0;return X};
_.S(M1,_.a);_.R=M1.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.R.onDataChanged=function(){var X,H,l;if(((X=this.data)==null?void 0:(H=X.confirmButton)==null?void 0:(l=H.buttonRenderer)==null?void 0:l.isDisabled)!==void 0){var b,U,K;this.submitButtonDisabled=(b=this.data)==null?void 0:(U=b.confirmButton)==null?void 0:(K=U.buttonRenderer)==null?void 0:K.isDisabled}};
_.R.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.R.updateSubmitButtonDisabledFromBinding=function(X){this.submitButtonDisabled=X.detail.value};
_.R.updateSubmitButtonDisabledFromConfirmCheckbox=function(X){this.submitButtonDisabled=!X.detail.value};
M1.prototype.onDataChanged=M1.prototype.onDataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],M1.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],M1.prototype,"submitButtonDisabled",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M1.prototype,"onDataChanged",null);_.T([_.sq({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],M1);
_.O(M1,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(wzo!==void 0)return wzo;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return wzo=X},{mode:1});var dva;var uG=function(){return _.a.apply(this,arguments)||this};
_.S(uG,_.a);_.ja.Object.defineProperties(uG.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var X,H,l;return((X=this.data)==null?void 0:X.title)+" "+((H=this.data)==null?void 0:H.metadataPrimary)+" "+((l=this.data)==null?void 0:l.metadataSecondary)}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],uG.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],uG.prototype,"data",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],uG.prototype,"ariaLabel",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],uG);
_.O(uG,"ytd-compact-product-list-item-renderer",function(){if(dva!==void 0)return dva;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return dva=X},{mode:1});var hCR;var eW=function(){return _.a.apply(this,arguments)||this};
_.S(eW,_.a);eW.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]]"}}}}}};
_.ja.Object.defineProperties(eW.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],eW.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],eW.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],eW);
_.O(eW,"ytd-compact-product-list-renderer",function(){if(hCR!==void 0)return hCR;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return hCR=X},{mode:1});var FD2;var y6=function(){return _.a.apply(this,arguments)||this};
_.S(y6,_.a);_.R=y6.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.R.getBackgroundUrl=function(){var X=this.get("data.headerImage.thumbnails");return X?"url("+_.G0(X,this.hostElement.clientWidth)+")":""};
_.R.onDataChanged=function(){var X=this.getBackgroundUrl();X&&(this.header.style.backgroundImage=X);X=_.Bi();var H=_.F6(),l=this.get("data.trackingParams");l&&H&&X&&_.pA(X,H,_.$l(l));X=_.C(this.hostElement.querySelectorAll("yt-img-shadow"));for(H=X.next();!H.done;H=X.next())H.value.onShow()};
_.R.onPopupClosed=function(X){_.WM(X).localName==="ytd-membership-post-cancel-renderer"&&_.TP(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
y6.prototype.onPopupClosed=y6.prototype.onPopupClosed;y6.prototype.onDataChanged=y6.prototype.onDataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],y6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],y6.prototype,"data",void 0);_.T([_.A2("#header"),_.N("design:type",HTMLDivElement)],y6.prototype,"header",void 0);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y6.prototype,"onDataChanged",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],y6.prototype,"onPopupClosed",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],y6);
_.O(y6,"ytd-membership-post-cancel-renderer",function(){if(FD2!==void 0)return FD2;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return FD2=X},{mode:1});var Bta;var V6=function(){return _.a.apply(this,arguments)||this};
_.S(V6,_.a);V6.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
V6.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],V6.prototype,"data",void 0);_.T([_.A2("ytd-feedback-survey-renderer"),_.N("design:type",Object)],V6.prototype,"feedbackSurveyRenderer",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],V6);
_.O(V6,"ytd-sponsorship-confirm-cancel-content",function(){if(Bta!==void 0)return Bta;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Bta=X},{mode:1});var qGA;var PY=function(){var X=_.a.apply(this,arguments)||this;X.maybeSubmitFeedback=function(){X.content&&X.content.maybeSubmitFeedback()};
return X};
_.S(PY,_.a);_.R=PY.prototype;_.R.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.R.onYtPopupOpened=function(X,H){H===this&&this.data&&this.data.onOpenCommands&&_.j7(this.hostElement,this.data.onOpenCommands,this.hostElement);_.TP(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.R.onYtPopupClosed=function(X,H){(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.j7(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.R.onYtServiceRequestCompleted=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.R.onYtServiceRequestError=function(X){_.x$(this.hostElement,X.detail.error.message)};
_.R.onDataChanged=function(){if(this.isAttached){var X=this.backgroundUrl;X&&(_.mh(this.hostElement).querySelector("#header").style.backgroundImage=X)}};
_.ja.Object.defineProperties(PY.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var X=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return X?"url("+_.G0(X,this.hostElement.clientWidth)+")":""}}});
PY.prototype.onDataChanged=PY.prototype.onDataChanged;PY.prototype.onYtServiceRequestError=PY.prototype.onYtServiceRequestError;PY.prototype.onYtServiceRequestCompleted=PY.prototype.onYtServiceRequestCompleted;PY.prototype.onYtPopupClosed=PY.prototype.onYtPopupClosed;PY.prototype.onYtPopupOpened=PY.prototype.onYtPopupOpened;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],PY.prototype,"data",void 0);_.T([_.g({value:function(){return _.XS("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],PY.prototype,"closeButtonAriaLabel",void 0);_.T([_.A2("#scrollable"),_.N("design:type",Object)],PY.prototype,"scrollable",void 0);_.T([_.A2("ytd-sponsorship-confirm-cancel-content"),_.N("design:type",Object)],PY.prototype,"content",void 0);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],PY.prototype,"onYtPopupOpened",null);
_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],PY.prototype,"onYtPopupClosed",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],PY.prototype,"onYtServiceRequestCompleted",null);
_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],PY.prototype,"onYtServiceRequestError",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PY.prototype,"onDataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],PY);
_.O(PY,"ytd-sponsorship-confirm-cancel-renderer",function(){if(qGA!==void 0)return qGA;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return qGA=X},{mode:2});var s_n;var fo=function(){return _.a.apply(this,arguments)||this};
_.S(fo,_.a);fo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],fo.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],fo);
_.O(fo,"ytd-sponsorships-celebration-content",function(){if(s_n!==void 0)return s_n;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return s_n=
X},{mode:1});var Mqu;var uHu=_.W8(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),po=function(){var X=_.a.apply(this,arguments)||this;X.scriptsAppended=!1;X.useFullWidthPrimaryButton=!1;X.buttonOverrides={type:"tonal",style:"overlay-dark"};return X};
_.S(po,_.a);_.R=po.prototype;_.R.dataChanged=function(){var X;this.useFullWidthPrimaryButton=!((X=this.data)==null||!X.useFullWidthPrimaryButton)};
_.R.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:_.P("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.onDataChanged=function(){var X;(X=this.header)==null||X.style.setProperty("background-color",this.backgroundColor);if(X=this.headerImageUrl){var H;(H=this.header)==null||H.style.setProperty("background-image",X)}H=_.Bi(4);X=_.F6(4);var l=this.get("data.trackingParams");if(l&&X&&H){var b=_.$l(l);_.pA(H,X,b);_.P("combine_ve_grafts")?_.lv().graftServerVe(l,X,4):_.pA(H,X,b)}H=_.C(this.hostElement.querySelectorAll("yt-img-shadow"));for(X=H.next();!X.done;X=H.next())X.value.onShow();if(H=this.get("data.gtmId"))_.UK(H,
_.gx("GL","")),this.setupConversionTracking()};
_.R.setupConversionTracking=function(){if(!this.scriptsAppended){var X=document.createElement("script");_.ql(X,_.F3(uHu.join("")));document.head.appendChild(X);X=document.createElement("noscript");X.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(X);this.scriptsAppended=!0}};
_.R.onPopupClosed=function(X){if(_.WM(X).localName==="ytd-sponsorships-celebration-renderer"){_.TP(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var H;this.data&&((H=this.data)==null?0:H.dismissCommand)&&_.JF.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.ja.Object.defineProperties(po.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var X=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.qw(X)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var X=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return X?"url("+_.G0(X,this.hostElement.getBoundingClientRect().width)+")":""}}});
po.prototype.onPopupClosed=po.prototype.onPopupClosed;po.prototype.onDataChanged=po.prototype.onDataChanged;po.prototype.dataChanged=po.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],po.prototype,"data",void 0);
_.T([_.A2("#header"),_.N("design:type",HTMLElement)],po.prototype,"header",void 0);_.T([_.g(),_.N("design:type",Object)],po.prototype,"scriptsAppended",void 0);_.T([_.g({type:Boolean,reflectToAttribute:!0}),_.N("design:type",Object)],po.prototype,"useFullWidthPrimaryButton",void 0);_.T([_.g(),_.N("design:type",Object)],po.prototype,"buttonOverrides",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],po.prototype,"dataChanged",null);
_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],po.prototype,"onDataChanged",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],po.prototype,"onPopupClosed",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],po);
_.O(po,"ytd-sponsorships-celebration-renderer",function(){if(Mqu!==void 0)return Mqu;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Mqu=X},{mode:1});var eCA;var SW=function(){return _.a.apply(this,arguments)||this};
_.S(SW,_.a);_.R=SW.prototype;_.R.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"}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.detached=function(){this.playerElement.stop()};
_.R.onYtServiceRequestCompleted=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.R.onYtServiceRequestError=function(X){_.x$(this.hostElement,X.detail.error.message)};
_.R.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.R.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.R.getTier=function(X,H){return!X||!X.tiers||H<0?null:_.f(X.tiers[H],p3l)};
_.R.moreThanOne=function(X){return!!(X&&X.length>1)};
_.R.tierOverviewTap=function(X){var H=this;this.selectedTier=X.model.index;_.N0(this,function(){_.QX(H.hostElement,"yt-refit")})};
_.R.computeSelectedClass=function(X,H){return this.isSelected(X,H)?"selected":""};
_.R.computeButtonAriaPressed=function(X,H){return this.isSelected(X,H)?"true":"false"};
_.R.isSelected=function(X,H){return X===H};
_.R.onDataChanged=function(){_.mh(this.hostElement).querySelector("#header-overlay").style.visibility="";_.mh(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 X=_.C(this.hostElement.querySelectorAll("yt-img-shadow")),
H=X.next();!H.done;H=X.next())H.value.onShow();var l;this.set("selectedTier",(l=this.get("data.targetTierIndex"))!=null?l:0);var b;(X=(b=this.data)==null?void 0:b.onVisible)&&this.ytComponentBehavior.resolveCommand(X)};
_.R.initializeVe=function(X){var H=_.Bi(),l=_.F6(),b=this.get("data.trackingParams");l&&H&&(this.screenLayer=4,H=_.ZR(_.CJy)(void 0,69877,{clientScreenNonce:H,visualElement:l},void 0,void 0,void 0),_.sc(H,69877,4),l=_.F6(4),b&&l&&(b=_.$l(b),_.pA(H,l,b),X&&(this.offerVideoVe=_.cS(74659),_.pA(H,b,this.offerVideoVe))))};
_.R.setHeaderBackground=function(){var X=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.mh(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.qw(X);if(X=this.getHeaderImage())X=_.G0(X,screen.width),_.mh(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+X+")"};
_.R.getHeaderImage=function(){var X=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&X?X:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.R.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.R.setupVideoPlayer=function(X){var H=this,l,b,U,K;return _.h(function(w){if(w.nextAddress==1)return l=H.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),b=H.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.P("kevlar_player_update_killswitch")?H.playerElement.update({args:{autoplay:l,video_id:X,player_params:b}}):H.playerElement.loadVideoWithPlayerVars({autoplay:l,video_id:X,player_params:b}),
w.yield(H.playerElement.getPlayerPromise(),2);U=w.yieldResult;U.addEventListener("onStateChange",function(d){H.onPlayerStateChange(d)});
U.setScreenLayer(H.screenLayer);(K=_.Bi(4))&&H.offerVideoVe&&_.zu(K,H.offerVideoVe);l&&(H.pauseOtherPlayers(),H.playerElement.focusOnPlayer(),H.playerElement.getPlayer().hideControls(),_.eh(_.Ss,function(){H.fadeOutHeaderOverlay()},4E3));
_.m5(w)})};
_.R.onPlayerStateChange=function(X){X===1?this.backgroundPlayerElement&&(X=this.backgroundPlayerElement.player_.getPlayerState(),X!==1&&X!==3||this.backgroundPlayerElement.pause()):X===0&&(_.mh(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.mh(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.R.fadeOutHeaderOverlay=function(){_.mh(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.R.onHeaderTap=function(){if(this.offerVideo){_.mh(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var X;((X=this.playerElement.player_)==null?void 0:X.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(X=_.Bi(4))&&this.offerVideoVe&&_.xB(X,this.offerVideoVe)}};
_.R.getBackgroundImageLayerClass=function(X){return X?"background-image-layer-with-video":""};
_.R.getHeaderClass=function(X){return X?"header-with-video":""};
_.R.getHeaderOverlayClass=function(X){return X?"header-overlay-with-video":""};
_.R.getTitleContainerClass=function(X,H){return X?"title-container-with-video":H?"title-container-without-video-flexible":"title-container-without-video"};
_.R.tierTitleDisplayStatus=function(X){return this.moreThanOne(X)?"hide":"show"};
_.R.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.jJ().resolve(_.f9).getPlayerElement():this.backgroundPlayerElement=_.aq();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var X=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=X===1||X===3;this.backgroundPlayerElement.pause()}};
_.R.isMiniplayerActive=function(){return _.jJ().resolve(_.f9).isMiniplayerActive()};
_.R.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("selected-tier-changed",this.selectedTier))};
SW.prototype.selectedTierChangedForBinding=SW.prototype.selectedTierChangedForBinding;SW.prototype.onDataChanged=SW.prototype.onDataChanged;SW.prototype.onYtPopupClosed=SW.prototype.onYtPopupClosed;SW.prototype.onYtPopupOpened=SW.prototype.onYtPopupOpened;SW.prototype.onYtServiceRequestError=SW.prototype.onYtServiceRequestError;SW.prototype.onYtServiceRequestCompleted=SW.prototype.onYtServiceRequestCompleted;
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],SW.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],SW.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],SW.prototype,"data",void 0);_.T([_.g({value:0}),_.N("design:type",Number)],SW.prototype,"selectedTier",void 0);
_.T([_.g({value:""}),_.N("design:type",String)],SW.prototype,"offerVideo",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],SW.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.T([_.g({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Ly(this)}}),
_.N("design:type",String)],SW.prototype,"playerId",void 0);_.T([_.A2("tp-yt-paper-dialog-scrollable"),_.N("design:type",Object)],SW.prototype,"scrollable",void 0);_.T([_.A2("ytd-sponsorships-tier-renderer"),_.N("design:type",Object)],SW.prototype,"tierRenderer",void 0);_.T([_.A2("#player"),_.N("design:type",Object)],SW.prototype,"playerElement",void 0);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],SW.prototype,"onYtServiceRequestCompleted",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],SW.prototype,"onYtServiceRequestError",null);
_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SW.prototype,"onYtPopupOpened",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SW.prototype,"onYtPopupClosed",null);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SW.prototype,"onDataChanged",null);
_.T([_.Yh("selectedTier"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SW.prototype,"selectedTierChangedForBinding",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],SW);
_.O(SW,"ytd-sponsorships-offer-renderer",function(){if(eCA!==void 0)return eCA;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return eCA=X},{mode:2});var yQr;var zm=function(){var X=_.a.apply(this,arguments)||this;X.buttonOverrides={type:"filled",style:"mono"};return X};
_.S(zm,_.a);zm.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}}}}}};
zm.prototype.backgroundColorChanged=function(){var X,H,l,b=(H=_.f((X=this.data)==null?void 0:X.content,SYa))==null?void 0:(l=H.backgroundColor)==null?void 0:l.backgroundColor;b&&(X=_.BM(b),_.mh(this.hostElement).querySelector("#banner").style.backgroundColor=X,_.mh(this.hostElement).querySelector("#abstract-art").style.backgroundColor=X)};
zm.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")};
zm.prototype.backgroundColorChanged=zm.prototype.backgroundColorChanged;_.T([_.g(),_.N("design:type",Object)],zm.prototype,"data",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],zm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.A2("#scroller"),_.N("design:type",Object)],zm.prototype,"JSC$22776_scroller",void 0);_.T([_.g(),_.N("design:type",Object)],zm.prototype,"buttonOverrides",void 0);
_.T([_.Yh("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zm.prototype,"backgroundColorChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],zm);
_.O(zm,"ytd-sponsorships-promotion-celebration-renderer",function(){if(yQr!==void 0)return yQr;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return yQr=X},{mode:2});var Vqu;var PF9;var no=function(){return _.a.apply(this,arguments)||this};
_.S(no,_.a);no.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
no.prototype.computeIsInitiallyChecked=function(X){return X===1};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],no.prototype,"data",void 0);_.T([_.A2("#checkbox"),_.N("design:type",Object)],no.prototype,"checkbox",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],no);
_.O(no,"ytd-subscription-toggle-option-renderer",function(){if(PF9!==void 0)return PF9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return PF9=X},{mode:1});var kA=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return X};
_.S(kA,_.a);kA.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"}}}};
kA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kA.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var X=_.mh(this.hostElement).querySelector("#options").selected;X=this.data.options[X].subscriptionRadioOptionRenderer.serviceEndpoint;var H=_.mh(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");H&&X&&X.modifyChannelNotificationPreferenceEndpoint&&(H=H.getValue())&&(X.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[H]);_.jJ().resolve(_.Vr).resolveCommand(X,{form:{element:this.hostElement}});
_.TP(this.hostElement,"yt-close-popup-action")};
_.ja.Object.defineProperties(kA.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var X=this.data.options,H=0;H<X.length;H++){var l=X[H].subscriptionRadioOptionRenderer;if(l&&l.selected)return H}return null}}});
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],kA.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],kA.prototype,"eventForwardingBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],kA.prototype,"data",void 0);_.T([_.x("data.options"),_.N("design:type",Object),_.N("design:paramtypes",[])],kA.prototype,"initialIndex",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],kA);
_.O(kA,"ytd-subscription-notification-options-renderer",function(){if(Vqu!==void 0)return Vqu;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Vqu=X},{mode:1});var f69;var pz9=function(){return _.a.apply(this,arguments)||this};
_.S(pz9,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pz9.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pz9.prototype,"data",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],pz9);
_.O(pz9,"ytd-tvfilm-offer-groups-renderer",function(){if(f69!==void 0)return f69;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return f69=X},{mode:1});var SGr;var xA=function(){return _.a.apply(this,arguments)||this};
_.S(xA,_.a);_.R=xA.prototype;_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.R.computeThumbnailClass=function(X){return X.thumbnailOverlays?X.isShow?"thumbnail-show":"thumbnail-movie":X.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.R.computeCommerceSectionClass=function(X){return X.offers&&X.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.R.computeTitleClass=function(X){return X.offers&&X.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.R.onDataChanged=function(){[].concat(_.LJ(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(X){X.onShow()})};
xA.prototype.onDataChanged=xA.prototype.onDataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],xA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],xA.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xA.prototype,"onDataChanged",null);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],xA);
_.O(xA,"ytd-ypc-offers-overlay-renderer",function(){if(SGr!==void 0)return SGr;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return SGr=X},{mode:2});var zCU;var nQU=function(){this.usedMethods=new Set};
nQU.prototype.add=function(X){this.usedMethods.add(X)};
nQU.prototype.reset=function(){this.usedMethods.clear()};var kY2,xvA;
_.Dvb=function(X,H){this.query=X;this.previousSearchQuery=H;this.id=kY2++;if(!xvA){H=_.gx("SBOX_SETTINGS");X="https://"+((H==null?void 0:H.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var l=H==null?void 0:H.REQUEST_LANGUAGE;l&&(X+="&hl="+l);(l=H==null?void 0:H.REQUEST_DOMAIN)&&(X+="&gl="+l);X+="&client=youtube&gs_ri=youtube";(l=H==null?void 0:H.SUGG_EXP_ID)&&(X+="&sugexp="+encodeURIComponent(l));(l=H==null?void 0:H.PSUGGEST_TOKEN)&&(X+="&tok="+l);(H=H==
null?void 0:H.SESSION_INDEX)&&(X+="&authuser="+H);_.P("desktop_enable_visual_suggest")&&(X+="&h=180&w=320&ytvs=1");xvA=X}};
_.tqX=function(X){var H="q="+encodeURIComponent(X.query);X.previousSearchQuery&&(H+="&pq="+encodeURIComponent(X.previousSearchQuery));return H};
_.WD$=function(){var X=_.gx("SBOX_SETTINGS"),H={};if(X==null?0:X.SEND_VISITOR_DATA)H["X-Goog-Visitor-Id"]=X==null?void 0:X.VISITOR_DATA;return H};
_.EQu=function(X){var H=xvA;H+="&gs_id="+X.id.toString(36);H+="&q="+encodeURIComponent(X.query);H+="&cp="+X.query.length;X.previousSearchQuery&&(H+="&pq="+encodeURIComponent(X.previousSearchQuery));(X=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(H+="&video_id="+X);return H};
kY2=0;xvA="";var gQU,GYr,a6U,Z_$,i_2;gQU=Py.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST;GYr=Py.SEARCH_ENTITY_SUGGESTION_MOVIE;a6U=Py.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST;Z_$=Py.SEARCH_ENTITY_SUGGESTION_TV_SHOW;i_2=function(X,H){this.text=X;this.bold=H};
_.vQ$=function(X,H,l){this.input=H;this.index=l;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=X[0];this.type=X[1];this.subtypes=X[2];var b;this.displayText=UON((b=X[3])==null?void 0:b.b);var U;this.ignoredPrefix=UON((U=X[3])==null?void 0:U.a);var K,w;this.hasNewVideo=((K=X[3])==null?void 0:(w=K.zam)==null?void 0:w.toString())==="true"?!0:!1;var d;this.visualSuggestUrl=(d=X[3])==null?void 0:d.zai;var B;this.entityType=UON((B=X[3])==null?void 0:B.zap);var q;this.entityName=UON((q=
X[3])==null?void 0:q.zao);var u;H=UON((u=X[3])==null?void 0:u.zaf);var e;this.entityMid=(e=X[3])==null?void 0:e.zae;u=$Op(this.subtypes,this.entityMid);if(H&&u){if(H){e="";switch(u){case "YOUTUBE_ENTITY_TYPE_SONG":e=a6U;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":e=gQU;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":e=Z_$;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":e=GYr}u=u==="YOUTUBE_ENTITY_TYPE_SONG"||u==="YOUTUBE_ENTITY_TYPE_ALBUM"?e+" \u2022  \u2022 "+H:H}else u="";this.entitySubtitle=u}var y;this.externalChannelId=
(y=X[3])==null?void 0:y.zav;var V;this.entityThumbnailAttributionUrl=(V=X[3])==null?void 0:V.zaq};
_.mv2=function(X,H){var l=[],b,U=(b=X.displayText)!=null?b:X.text;(H==null?0:H.useEntityName)&&_.O_o(X)&&X.entityName&&(U=X.entityName);if(X.type===33)return l.push(new i_2(U,!1)),l;if(U.length>=X.input.length&&U.substring(0,X.input.length)===X.input)l.push(new i_2(X.input,!1)),l.push(new i_2(U.substring(X.input.length),!0));else{var K=new Set(X.input.split(/\s/)),w=U.split(/\s/);l=w.map(function(d,B){return new i_2(d.trim()+(B===w.length-1?"":" "),!K.has(d))})}return l};
_.O_o=function(X){var H=!!$Op(X.subtypes);X=!!X.entityMid;return H||X};_.Q_r=function(X){this.rawResponse=["",[],{}];this.suggestions=[];try{var H=JSON.parse(KLp(X));if(typeof H==="object"&&H!==null)this.rawResponse=H;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(b){console.log("Suggest: Failed to parse SuggestResponse!");return}var l=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(b,U){return new _.vQ$(b,l,U)})};var Ttb=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new nQU;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},Ntu,cQ9=function(){Ntu||(Ntu=new Ttb);
return Ntu};
Ttb.prototype.updateSuggestions=function(X){var H=this;this.availableSuggestions.forEach(function(l){H.previousSuggestions[l]=!0});
this.availableSuggestions=X.map(function(l){var b=l.type.toString();l.subtypes.length>0&&(b+="i"+l.subtypes.join("i"),b+="k"+l.suggestionSources.COMPLETE_SERVER.toString());return b})};
var j_A=function(X,H){var l=Date.now();X.firstEditTime<0&&(X.firstEditTime=l);H&&(X.lastQueryBuildTime=l);X.lastEditTime=l};
Ttb.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 rQA=function(X){var H="";X.availableSuggestions.forEach(function(U){delete X.previousSuggestions[U]});
for(var l=_.C(Object.keys(X.previousSuggestions)),b=l.next();!b.done;b=l.next())b=b.value,X.previousSuggestions[b]&&(H+=(H?"j":"")+b);return H},JQr=function(X,H){var l=[];
H&&(l[1]=H.toString());l[0]="youtube";l[7]=Date.now()-X.startTime;l[6]=X.sessionNumber;X.zeroPrefixSuggestionCount>=0&&(l[33]=X.zeroPrefixSuggestionCount);l[13]=X.outOfSyncResponseCount;if(X.availableSuggestions.length>0){for(var b=H="",U=0,K=_.C(X.availableSuggestions),w=K.next();!w.done;w=K.next())w=w.value,w!==b&&(U>1&&(H+="l"+U),H+=(b?"j":"")+w,U=0,b=w),U+=1;U>1&&(H+="l"+U);l[3]=H}l[35]=rQA(X);X.selectedSuggestionIndex>=0&&(l[2]=X.selectedSuggestionIndex);var d;if(H=(d=_.gx("SBOX_SETTINGS"))==
null?void 0:d.SUGG_EXP_ID)l[19]=X.normalize(H),d=0,X.experimentTriggeredBeforeFinal&&(d|=1),X.experimentTriggeredFinal&&(d|=2),l[20]=d;l[26]=Array.from(X.inputMethodsTracker.usedMethods).join("j");if(X.JSC$22813_totalRoundTripTime>0){l[15]=X.JSC$22813_totalRoundTripTime;l[14]=X.maxRoundTripTime;d=[];for(U=H=0;U<10;U++)b=X.roundTripTimeHistogram[U],b===0?H++:(H>1?d.push(U+"-"+b):H===1?d.push("0j"+b):d.push(b.toString()),H=0);d=d.join("j");l[16]=d}X.zeroPrefixRoundTripTime>0&&(l[36]=X.zeroPrefixRoundTripTime);
X.lastQueryBuildTime>0&&(l[18]=X.lastQueryBuildTime-X.startTime);X.firstEditTime>0&&(l[4]=X.firstEditTime-X.startTime);X.lastEditTime>0&&(l[5]=X.lastEditTime-X.startTime);return l.join(".")};
Ttb.prototype.normalize=function(X){return X.replaceAll(".","-")};
var LDu=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Dj=function(){var X=_.a.apply(this,arguments)||this;X.microphoneSpinnerActive=!1;X.noAnimations=!1;X.boundExitClick=function(){X.onExitButtonClick()};
X.speechOverlayClassName="";X.isLevelAnimating=!1;X.playCloseDialogAudioFeedback=!0;X.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return X};
_.S(Dj,_.a);_.R=Dj.prototype;_.R.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.R.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=rAZ()};
_.R.dataChanged=function(){this.logDialog()};
_.R.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var X;(X=this.manager.audioPlayer)!=null&&(X.JSC$21668_audioEnabled=!1)}this.manager.stop();(X=this.manager.audioPlayer)!=null&&(X.JSC$21668_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.R.handleSpeechQueryCompleteAction=function(X){var H=X.navigationAction;H&&(X.trackingParams&&_.lv().graftServerVe(X.trackingParams,this.dialogVe,5),_.QX(this.hostElement,"yt-navigate",{endpoint:H,tempData:this.getNavigationParams(H),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.R.onExitButtonClick=function(){this.closeDialog()};
_.R.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var X;if((X=this.manager)!=null){var H;(H=X.audioPlayer)==null||Q5(H,"failure");X.setState("microphone-off");X.stop()}}else(X=this.manager)==null||X.start()};
_.R.transcriptionChanged=function(){var X,H;(((X=this.transcription)==null?0:X.low)||((H=this.transcription)==null?0:H.high))&&this.setState("transcribing",this.transcription)};
_.R.stateChanged=function(){this.setState(this.state,this.transcription)};
_.R.logDialog=function(){var X;(X=this.data)!=null&&X.trackingParams&&(X=_.lv(),_.jR(X,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=X.graftServerVe(this.data.trackingParams,void 0,5))};
_.R.getNavigationParams=function(X){var H={};if(_.P("web_yt_searchbox")){var l=cQ9();l.inputMethodsTracker.add(6);l=JQr(l,15);H.gs_l=l;var b;H.oq=((b=_.f(X,_.IH))==null?void 0:b.query)||""}else if(X=window.ytvoicesearchloggingparams){if(X=X())H.oq=X.oq,H.gs_l=X.gs_l}else _.v$(Error("lm"));return H};
_.R.closeDialog=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.R.setState=function(X,H){if(this.data){var l=this.data,b={};switch(X){case "listening":b={headerText:l.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:l.microphoneButtonAriaLabel};break;case "timeout":b={headerText:l.promptHeader,microphoneState:"try-again",microphoneLabel:l.promptMicrophoneLabel,microphoneAriaLabel:l.promptMicrophoneLabel};break;case "microphone-off":b={headerText:l.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:l.promptMicrophoneLabel,
microphoneAriaLabel:l.promptMicrophoneLabel};break;case "transcribing":(H==null?0:H.low)||(H==null?0:H.high)?b={transcriptionLow:H==null?void 0:H.low,transcriptionHigh:H==null?void 0:H.high,microphoneState:"speaking",microphoneAriaLabel:l.microphoneButtonAriaLabel}:b={headerText:l.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:l.microphoneButtonAriaLabel};break;case "processing":b={headerText:l.loadingHeader,microphoneState:"processing",microphoneAriaLabel:l.microphoneButtonAriaLabel};
break;case "offline":b={headerText:l.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:l.connectionErrorMicrophoneLabel,microphoneAriaLabel:l.connectionErrorMicrophoneLabel};break;case "permission":b={headerText:l.permissionsHeader,bodyLine1:l.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:l.permissionsSubtext};break;case "permission-denied":b={headerText:l.disabledHeader,bodyLine1:l.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:l.disabledSubtext}}b.className=
X;this.speechOverlayState=b;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.R.setMicrophoneState=function(X){var H=this.isLevelAnimating;this.isLevelAnimating=X==="speaking";!H&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=X==="processing"&&!this.noAnimations};
_.R.setClass=function(X){this.speechOverlayClassName&&_.TW(this.hostElement,this.speechOverlayClassName,!1);X&&(this.speechOverlayClassName=X,_.TW(this.hostElement,X,!0))};
_.R.runLevelAnimation=function(){var X=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var H=1+Math.random()*.75,l=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+l/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+H+")");_.Ss.addJob(function(){X.runLevelAnimation()},3,l)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Dj.prototype.stateChanged=Dj.prototype.stateChanged;Dj.prototype.transcriptionChanged=Dj.prototype.transcriptionChanged;Dj.prototype.onPopupClosed=Dj.prototype.onPopupClosed;Dj.prototype.dataChanged=Dj.prototype.dataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Dj.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Dj.prototype,"rendererStamperBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Dj.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],Dj.prototype,"eventForwardingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Dj.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Dj.prototype,"speechOverlayState",void 0);
_.T([_.g(),_.N("design:type",Object)],Dj.prototype,"microphoneSpinnerActive",void 0);_.T([_.g({type:_.P("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.N("design:type",Object)],Dj.prototype,"noAnimations",void 0);_.T([_.g({selector:function(X){var H;return(H=X.voiceSearch)==null?void 0:H.transcription}}),
_.N("design:type",Object)],Dj.prototype,"transcription",void 0);_.T([_.g({selector:function(X){var H;return(H=X.voiceSearch)==null?void 0:H.overlay}}),
_.N("design:type",String)],Dj.prototype,"state",void 0);_.T([_.g(),_.N("design:type",Object)],Dj.prototype,"boundExitClick",void 0);_.T([_.A2("#microphone-levels"),_.N("design:type",HTMLElement)],Dj.prototype,"level",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dj.prototype,"dataChanged",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dj.prototype,"onPopupClosed",null);
_.T([_.oi("transcription"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dj.prototype,"transcriptionChanged",null);_.T([_.oi("state"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dj.prototype,"stateChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Dj);
_.O(Dj,"ytd-voice-search-dialog-renderer",function(){if(zCU!==void 0)return zCU;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return zCU=X},{mode:1});var YGn;var tm=function(){var X=_.a.apply(this,arguments)||this;X.isOverlay=!1;X.hidden=!1;return X};
_.S(tm,_.a);_.R=tm.prototype;_.R.onPopupClosed=function(){this.toggleIconState(!1)};
_.R.computeIcon=function(){var X,H,l;return(H=_.f((X=this.data)==null?void 0:X.icon,Ile))==null?void 0:(l=H.icon)==null?void 0:l.iconType};
_.R.computeIconBadgeShape=function(){var X;return{iconBadgeType:"cart",iconBadgeText:(X=this.iconBadgeEntity)==null?void 0:X.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.R.onClick=function(){var X;(X=this.data)!=null&&X.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.R.computeHidden=function(X){return!X};
_.R.toggleIconState=function(X){this.iconButton&&(this.iconButton.pressed=X)};
tm.prototype.onPopupClosed=tm.prototype.onPopupClosed;_.T([_.k(_.sv),_.N("design:type",Object)],tm.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],tm.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],tm.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],tm.prototype,"isOverlay",void 0);
_.T([_.g({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.N("design:type",Object)],tm.prototype,"hidden",void 0);_.T([_.g({selectorArgs:["data.iconBadgeEntityKey"],selector:function(X,H){return _.JY(X.entities,"iconBadgeEntity",H)}}),
_.N("design:type",Object)],tm.prototype,"iconBadgeEntity",void 0);_.T([_.A2("yt-icon-button"),_.N("design:type",HTMLButtonElement)],tm.prototype,"iconButton",void 0);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tm.prototype,"onPopupClosed",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],tm);
_.O(tm,"ytd-icon-badge-topbar-button-renderer",function(){if(YGn!==void 0)return YGn;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return YGn=X},{mode:1});var I6u;var WY=function(){var X=_.a.apply(this,arguments)||this;X.premiumOptions=[];return X};
_.S(WY,_.a);WY.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.ja.Object.defineProperties(WY.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],WY.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Array)],WY.prototype,"premiumOptions",void 0);_.T([_.x("premiumOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],WY.prototype,"hasPremiumOptions",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],WY);
_.O(WY,"ytd-offline-promo-content",function(){if(I6u!==void 0)return I6u;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return I6u=X},{mode:1});var AQb;var Ep=function(){var X=_.a.apply(this,arguments)||this;X.premiumOptions=[];return X};
_.S(Ep,_.a);Ep.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var X;this.premiumOptions=bx$((X=this.data)==null?void 0:X.formats)};
Ep.prototype.onClickSubmit=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var X;(X=_.aq())==null||X.pause()};
Ep.prototype.attached=function(){this.JSC$22833_scroller&&(this.JSC$22833_scroller.dialogElement=this.hostElement.parentNode)};
_.ja.Object.defineProperties(Ep.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Ep.prototype.dataChanged=Ep.prototype.dataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Ep.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Ep.prototype,"data",void 0);
_.T([_.g({computed:"computeIcon_(data.headersIcon)",value:""}),_.N("design:type",String)],Ep.prototype,"headersIcon",void 0);_.T([_.g(),_.N("design:type",Array)],Ep.prototype,"premiumOptions",void 0);_.T([_.A2("#scroller"),_.N("design:type",Object)],Ep.prototype,"JSC$22833_scroller",void 0);_.T([_.x("headersIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ep.prototype,"showIcon",null);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ep.prototype,"dataChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Ep);
_.O(Ep,"ytd-offline-promo-renderer",function(){if(AQb!==void 0)return AQb;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return AQb=X},{mode:1});var Xp9;var gi=function(){var X=_.a.apply(this,arguments)||this;X.playbackPauseInterval=NaN;X.isLoading=!1;X.hasError=!1;X.dialogClass="";X.youtubeLabel=_.XS("LOGO_ALT_LABEL",{},"YouTube Home");X.logoName="yt-logos-ext:yt-logo-updated";X.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return X};
_.S(gi,_.a);_.R=gi.prototype;_.R.onDataChange=function(){var X;if(this.showEOMV1Text=!((X=this.data)==null||!X.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.R.attached=function(){this.pausePlayer()};
_.R.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.R.handleLangSelect=function(X){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[X.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.R.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.R.handleSaveConsent=function(X){var H=this;this.showLoadingSpinner();this.showLoadingSpinner();YeN(_.f(X,ZnZ)).catch(function(l){_.x2(new _.qd("Something went wrong when save consent "+(l.message?l.message:l)+"."));H.hideLoadingSpinner();H.showErrorMessage()})};
_.R.handleDisablePersonalization=function(X){var H=this;this.showLoadingSpinner();I9U(_.f(X,aZx)).then(function(){H.dialog.close();H.resumePlayer()}).catch(function(l){_.x2(new _.qd("Something went wrong when disable personalization "+(l.message?l.message:l)+"."));
H.hideLoadingSpinner();H.showErrorMessage()})};
_.R.showLoadingSpinner=function(){var X=this;this.showSpinnerJobId=_.Ss.addLowPriorityJob(function(){X.isLoading=!0},500)};
_.R.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Ss.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.R.showErrorMessage=function(){var X=this;this.hasError=!0;_.Ss.addLowPriorityJob(function(){X.hasError=!1},2E3)};
_.R.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.UZ(function(){try{var X=_.aq();X&&X.pause()}catch(H){}},100))};
_.R.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var X=_.aq();X&&X.play()}catch(H){}};
_.ja.Object.defineProperties(gi.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.eomV1Text)return[];X=[];for(var H=["SHIELD","WARNING","BAR_CHART"],l=this.data.eomV1Text.essentialCookieMsg.items,b=0;b<H.length&&b<l.length;b++)X.push({icon:H[b],text:l[b]});return X}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var X;if((X=this.data)==null||!X.eomV1Text)return[];X=[];for(var H=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],l=this.data.eomV1Text.nonEssentialCookieMsg.items,b=0;b<H.length&&b<l.length;b++)X.push({icon:H[b],text:l[b]});return X}}});
gi.prototype.onDataChange=gi.prototype.onDataChange;_.T([_.g(),_.N("design:type",Object)],gi.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],gi.prototype,"showEOMV1Text",void 0);_.T([_.g(),_.N("design:type",Object)],gi.prototype,"isLoading",void 0);_.T([_.g(),_.N("design:type",Object)],gi.prototype,"hasError",void 0);_.T([_.g(),_.N("design:type",Number)],gi.prototype,"showSpinnerJobId",void 0);_.T([_.g(),_.N("design:type",Object)],gi.prototype,"dialogClass",void 0);
_.T([_.A2("#dialog"),_.N("design:type",Object)],gi.prototype,"dialog",void 0);_.T([_.A2("#cb-header"),_.N("design:type",HTMLElement)],gi.prototype,"header",void 0);_.T([_.A2("#lang-select"),_.N("design:type",HTMLElement)],gi.prototype,"langSelect",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],gi.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],gi.prototype,"ytComponentBehavior",void 0);
_.T([_.g(),_.N("design:type",String)],gi.prototype,"youtubeLabel",void 0);_.T([_.g(),_.N("design:type",Object)],gi.prototype,"logoName",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gi.prototype,"onDataChange",null);_.T([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],gi.prototype,"eomEssentialCookieMsgItems",null);
_.T([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],gi.prototype,"eomNonEssentialCookieMsgItems",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],gi);
_.O(gi,"ytd-consent-bump-v2-lightbox",function(){if(Xp9!==void 0)return Xp9;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return Xp9=X},{mode:1});var HdR;var Gm=function(){return _.a.apply(this,arguments)||this};
_.S(Gm,_.a);Gm.prototype.ready=function(){if(!_.hl()||agU)var X=!0;else agU=!0,X=!1;X||(X=document.querySelector("ytd-app"),X||(X=document.body),this.internalLightBox=_.mh(X).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.T([_.g(),_.N("design:type",Object)],Gm.prototype,"data",void 0);_.T([_.A2("#lightbox"),_.N("design:type",Object)],Gm.prototype,"lightBox",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Gm);
_.O(Gm,"ytd-consent-bump-v2-renderer",function(){if(HdR!==void 0)return HdR;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return HdR=X},{mode:1});var lAX;var oU2;var bd2;var a9=function(){return _.a.apply(this,arguments)||this};
_.S(a9,_.a);_.R=a9.prototype;_.R.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&TbZ(this.toastManager,this.toastType)};
_.R.open=function(X){this.toast&&(this.ephemeralAction&&_.jJ().resolve(_.uq).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=X!=null?X:0,this.toastManager.enqueue(this.toast,X)):this.toast.open())};
_.R.close=function(X){var H;(H=this.toast)==null||H.close();this.toastManager&&X===1&&TbZ(this.toastManager,X)};
_.R.refit=function(){var X;(X=this.toast)==null||X.refit()};
_.R.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var X;(X=this.toast)==null||X.close()}};
_.R.setVerticalOffset=function(X){this.toast&&(this.toast.verticalOffset=X,this.toast.fit())};
_.R.computeButtonClass_=function(X){return X?"toast-button":""};
_.R.computeText_=function(X){return _.D8(X)};
_.R.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.kS("toast-opened-changed",this.toastOpened))};
_.R.updateToastOpenedFromBinding=function(X){this.toastOpened=X.detail.value};
_.ja.Object.defineProperties(a9.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var X,H,l=(X=this.data)==null?void 0:(H=X.actionButton)==null?void 0:H.buttonRenderer;return(l==null?void 0:l.command)||(l==null?void 0:l.serviceEndpoint)||(l==null?void 0:l.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 X=[],H;((H=this.data)==null?0:H.responseText)&&X.push(_.D8(this.data.responseText));var l;((l=this.data)==null?0:l.subText)&&X.push(_.D8(this.data.subText));var b,U;if((b=this.data)==null?0:(U=b.actionButton)==null?0:U.buttonRenderer){var K,w;X.push(((K=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(w=K.accessibilityData)==null?void 0:w.label)||_.D8(this.data.actionButton.buttonRenderer.text))}return X.filter(function(d){return d}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var X,H;return(H=(X=this.toast)==null?void 0:X.opened)!=null?H:!1}}});
a9.prototype.toastOpenedChangedForBinding=a9.prototype.toastOpenedChangedForBinding;a9.prototype.toastOpenedChanged=a9.prototype.toastOpenedChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],a9.prototype,"ytEventForwardingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],a9.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],a9.prototype,"duration",void 0);
_.T([_.g(),_.N("design:type",Number)],a9.prototype,"toastType",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],a9.prototype,"useCloseButton",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],a9.prototype,"closeToastOnActionButtonClick",void 0);_.T([_.g({value:function(){return _.XS("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],a9.prototype,"closeButtonAriaLabel",void 0);_.T([_.g(),_.N("design:type",Boolean)],a9.prototype,"toastOpened",void 0);_.T([_.g(),_.N("design:type",Boolean)],a9.prototype,"hasOpened",void 0);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],a9.prototype,"command",null);_.T([_.x("labelText","command","duration"),_.N("design:type",Object),_.N("design:paramtypes",[])],a9.prototype,"ephemeralAction",null);
_.T([_.x("ephemeralAction"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],a9.prototype,"hasEphemeralAction",null);_.T([_.A2("#toast"),_.N("design:type",Object)],a9.prototype,"toast",void 0);_.T([_.g({value:function(){return{style:"call-to-action-inverse"}}}),
_.N("design:type",Object)],a9.prototype,"buttonOverrides",void 0);_.T([_.g({value:{style:"mono-inverse"}}),_.N("design:type",Object)],a9.prototype,"closeButtonOverrides",void 0);_.T([_.g({value:function(){return _.jJ().resolve(_.c$(_.sg))}}),
_.N("design:type",Object)],a9.prototype,"toastManager",void 0);_.T([_.x("data.responseText","data.subText","data.actionButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],a9.prototype,"labelText",null);_.T([_.Yh("toastOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a9.prototype,"toastOpenedChanged",null);
_.T([_.Yh("toastOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a9.prototype,"toastOpenedChangedForBinding",null);_.T([_.qR({is:"yt-notification-action-renderer",disableElementRegistration:!0})],a9);
_.O(a9,"yt-notification-action-renderer",function(){if(bd2===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;oU2===void 0&&(oU2=document.createElement("template"));var b=oU2;l.call(H,b.content.cloneNode(!0),X.content.firstChild);bd2=X}X=bd2;return X},{mode:2});var Zj=function(){var X=_.a.apply(this,arguments)||this;X.duration=4E3;X.downloadingCount=0;X.downloadedCount=0;X.downloadingOnlySmartDownloads=!1;X.sessionTotalDownloads=0;X.sessionDownloaded=0;X.previousSessionsDownloaded=0;X.totalDownloadPercentage=0;X.currentDownloadProgress=0;X.currentDownloadPercentage=0;X.isLeaderTab=!0;X.isFullScreen=!1;X.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};X.boundBeforeUnload=function(H){X.isLeaderTab&&X.downloadingCount>0&&(H.preventDefault(),
H.returnValue=!0)};
return X};
_.S(Zj,_.a);_.R=Zj.prototype;
_.R.open=function(){this.updateDownloadState();if(this.data){var X=this.sessionDownloaded+1,H=this.sessionTotalDownloads>1?_.XS("VIDEOS_DOWNLOADING_RATIO",{downloaded:X.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+X+"/"+this.sessionTotalDownloads):_.XS("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(H=this.sessionTotalDownloads>1?_.XS("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:X.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
X+"/"+this.sessionTotalDownloads):_.XS("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));X=this.isLeaderTab?_.XS("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.D8(this.data.responseText)!==H||_.D8(this.data.subText)!==X)this.set("data.responseText",_.xM(H)),this.set("data.subText",_.xM(X)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.R.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.R.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.R.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.R.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var X=this.downloadedCount-this.previousSessionsDownloaded;X<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-X);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.R.handleFullscreenChange=function(X){(this.isFullScreen=X)||this.updatePopup()};
Zj.prototype.updateCurrentDownloadProgress=Zj.prototype.updateCurrentDownloadProgress;Zj.prototype.updatePopup=Zj.prototype.updatePopup;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Zj.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],Zj.prototype,"ytEventForwardingBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Zj.prototype,"actionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Zj.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Zj.prototype,"duration",void 0);_.T([_.g({selector:function(X){return _.gSy(X.entities).length}}),
_.N("design:type",Object)],Zj.prototype,"downloadingCount",void 0);_.T([_.g({selector:fvN}),_.N("design:type",Object)],Zj.prototype,"downloadedCount",void 0);_.T([_.g({selector:function(X){var H=_.gSy(X.entities);return e0C(X.entities,H)}}),
_.N("design:type",Object)],Zj.prototype,"downloadingOnlySmartDownloads",void 0);_.T([_.g(),_.N("design:type",Object)],Zj.prototype,"sessionTotalDownloads",void 0);_.T([_.g(),_.N("design:type",Object)],Zj.prototype,"sessionDownloaded",void 0);_.T([_.g(),_.N("design:type",Object)],Zj.prototype,"previousSessionsDownloaded",void 0);_.T([_.g(),_.N("design:type",Object)],Zj.prototype,"totalDownloadPercentage",void 0);
_.T([_.g({selector:function(X){var H;X=(H=_.gSy(X.entities))!=null?H:[];return X.length>0?_.foy(X.slice(-1)):0}}),
_.N("design:type",Object)],Zj.prototype,"currentDownloadProgress",void 0);_.T([_.g(),_.N("design:type",Object)],Zj.prototype,"currentDownloadPercentage",void 0);_.T([_.g({selector:_.vWL}),_.N("design:type",Object)],Zj.prototype,"isLeaderTab",void 0);_.T([_.A2("yt-notification-action-renderer"),_.N("design:type",Object)],Zj.prototype,"notificationActionRenderer",void 0);
_.T([_.oi("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zj.prototype,"updatePopup",null);_.T([_.oi("currentDownloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Zj.prototype,"updateCurrentDownloadProgress",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Zj);
_.O(Zj,"ytd-video-download-toast-renderer",function(){if(lAX!==void 0)return lAX;var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return lAX=X},{mode:1});var UZ$;var $Zu;var iG=function(){return _.a.apply(this,arguments)||this};
_.S(iG,_.a);iG.prototype.computeIsRedLogo=function(X,H){!X&&H&&(X=H);return X==="YOUTUBE_RED_LOGO"||X==="YOUTUBE_PREMIUM_LOGO"};
iG.prototype.computeLogoName=function(X){X=this.componentBehavior.computeIcon_(X);return X===""?"yt-logos-ext:yt-logo-updated":X};
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],iG.prototype,"componentBehavior",void 0);_.T([_.g({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.N("design:type",Boolean)],iG.prototype,"isRedLogo",void 0);_.T([_.g({computed:"computeLogoName(data)"}),_.N("design:type",String)],iG.prototype,"logoName",void 0);_.T([_.g({value:{}}),_.N("design:type",Object)],iG.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],iG.prototype,"logoType",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-logo"})],iG);
_.O(iG,"ytd-logo",function(){if($Zu!==void 0)return $Zu;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return $Zu=X},{mode:2});var vY=function(){var X=_.a.apply(this,arguments)||this;X.animationRef={};return X};
_.S(vY,_.a);_.R=vY.prototype;_.R.attached=function(){document.addEventListener("yt-navigate-finish",_.J2(this,this.logYoodle))};
_.R.detached=function(){document.removeEventListener("yt-navigate-finish",_.J2(this,this.logYoodle))};
_.R.logYoodle=function(){var X,H;if((X=this.data)==null?0:(H=X.loggingDirectives)==null?0:H.trackingParams)this.ytRendererBehavior.markDirty(),_.lv().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.R.computeHideImg=function(X,H){return!!X||!!H};
_.R.computeHideYtdLogo=function(X,H){return!X||!!H};
_.R.computeHideLottie=function(X){return!X};
_.R.computeIsRedLogo=function(X){return X==="YOUTUBE_RED_LOGO"||X==="YOUTUBE_PREMIUM_LOGO"};
_.R.renderLogoEntity=function(){var X=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),H=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),l=this.getLogoTitleText(this.data),b=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==X&&(this.url=X);this.animatedUrl!==H&&(this.animatedUrl=H);this.logoTitleText!==l&&(this.logoTitleText=l);this.lottieUrl!==b&&(this.lottieUrl=b,this.lottiePlayerProps=this.computeLottiePlayerProps(b))};
_.R.getSanitizedThumbnail=function(X){return X&&X.thumbnails?_.d5y(X.thumbnails,122)||"":""};
_.R.getThumbnailUrl=function(X,H){if(!H)return"";var l,b;X=X?(l=H.darkThemeLogo)==null?void 0:l.thumbnail:(b=H.lightThemeLogo)==null?void 0:b.thumbnail;return this.getSanitizedThumbnail(X)};
_.R.getAnimatedThumbnailUrl=function(X,H){return H?this.getSanitizedThumbnail(X?H.darkThemeAnimatedLogo:H.lightThemeAnimatedLogo):""};
_.R.getLogoTitleText=function(X){if(X)return _.D8(X.tooltipText)};
_.R.computeLogoIcon=function(X,H){if(H){var l,b;return X?(l=H.darkThemeLogo)==null?void 0:l.icon:(b=H.lightThemeLogo)==null?void 0:b.icon}};
_.R.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.R.getLottieUrl=function(X,H){var l,b,U,K;return X?H==null?void 0:(l=H.darkThemeLogo)==null?void 0:(b=l.lottieAnimation)==null?void 0:b.url:H==null?void 0:(U=H.lightThemeLogo)==null?void 0:(K=U.lottieAnimation)==null?void 0:K.url};
_.R.computeLottiePlayerProps=function(X){if(X){var H;if((H=this.animationRef)==null?0:H.lottieEl){var l;(l=this.animationRef)==null||l.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:X,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.R.onLottieError=function(){this.data&&this.lottieUrl&&_.QX(this.hostElement,"yoodle-error")};
_.R.onImgError=function(){this.data&&!this.lottieUrl&&_.QX(this.hostElement,"yoodle-error")};
vY.prototype.playAnimation=vY.prototype.playAnimation;vY.prototype.renderLogoEntity=vY.prototype.renderLogoEntity;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],vY.prototype,"data",void 0);_.T([_.g({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.N("design:type",Boolean)],vY.prototype,"hideImg",void 0);
_.T([_.g({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.N("design:type",Boolean)],vY.prototype,"hideYtdLogo",void 0);_.T([_.g({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.N("design:type",Boolean)],vY.prototype,"hideLottie",void 0);_.T([_.g({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.N("design:type",Boolean)],vY.prototype,"isRedLogo",void 0);
_.T([_.g(),_.N("design:type",Boolean)],vY.prototype,"useDarkThemeYoodle",void 0);_.T([_.g(),_.N("design:type",String)],vY.prototype,"url",void 0);_.T([_.g(),_.N("design:type",String)],vY.prototype,"animatedUrl",void 0);_.T([_.g(),_.N("design:type",String)],vY.prototype,"logoTitleText",void 0);_.T([_.g({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.N("design:type",Object)],vY.prototype,"logoIcon",void 0);_.T([_.g(),_.N("design:type",Object)],vY.prototype,"logoType",void 0);
_.T([_.g(),_.N("design:type",String)],vY.prototype,"lottieUrl",void 0);_.T([_.g(),_.N("design:type",Object)],vY.prototype,"lottiePlayerProps",void 0);_.T([_.g(),_.N("design:type",Object)],vY.prototype,"animationRef",void 0);_.T([_.Yh("data"),_.Yh("useDarkThemeYoodle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vY.prototype,"renderLogoEntity",null);
_.T([_.Le("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],vY.prototype,"playAnimation",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],vY);
_.O(vY,"ytd-yoodle-renderer",function(){if(UZ$!==void 0)return UZ$;var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return UZ$=X},{mode:2});var K$2;var Rlb;var Cxu=_.ze.currentPageTypeSelector,wpr=_.ze.currentPageSubTypeSelector,Op=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return X};
_.S(Op,_.a);_.R=Op.prototype;_.R.onYoodleError=function(){_.P("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.R.computeLogoName=function(X){X=this.componentBehavior.computeIcon_(X);return X===""?"yt-logos-ext:yt-logo-updated":X};
_.R.computeTitle=function(X,H,l){return l&&(H==null?0:H.tooltipText)?_.D8(H.tooltipText):_.D8(X)};
_.R.computeAriaLabel=function(X,H,l){return l&&(H==null?0:H.tooltipText)?_.D8(X):""};
_.R.computeShowYoodle=function(X,H,l){return!X||!H&&!!l&&!_.Bb.isEmpty(l)};
_.R.onNavigateHomeAction=function(){if(_.P("kevlar_miniplayer_navigate_home_from_app_killswitch")){var X;(X=_.mh(this.hostElement).querySelector(".yt-simple-endpoint"))==null||X.click()}};
_.R.computeLogoHref=function(X,H,l){var b;(l==null?0:l.onTapCommand)?b=this.componentBehavior.computeHref_(l.onTapCommand):X&&(b=this.componentBehavior.computeHref_(X));return b?b:H};
_.R.computeCommand=function(X,H){return(H==null?void 0:H.onTapCommand)||X};
_.R.getEndpointForm=function(){if(_.P("kevlar_topbar_disable_cache_only_home")){var X=_.jJ().resolve(_.qU),H=Cxu(X.getState())||"";X=wpr(X.getState())||"";return{disableCache:H==="ytd-browse"&&X==="home"}}return{disableCache:!0}};
Op.prototype.onYoodleError=Op.prototype.onYoodleError;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Op.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Op.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Op.prototype,"componentBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],Op.prototype,"ytdReduxBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],Op.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],Op.prototype,"countryCode",void 0);_.T([_.g({selectorArgs:["data.overrideEntityKey"],selector:function(X,H){return _.JY(X.entities,"logoEntity",H)}}),
_.N("design:type",Object)],Op.prototype,"logoEntity",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.N("design:type",Boolean)],Op.prototype,"showYoodle",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Op.prototype,"yoodleError",void 0);_.T([_.g({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.N("design:type",String)],Op.prototype,"titleText",void 0);
_.T([_.g({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.N("design:type",String)],Op.prototype,"ariaLabelText",void 0);_.T([_.g({value:"/"}),_.N("design:type",String)],Op.prototype,"defaultEndpointUrl",void 0);_.T([_.g({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.N("design:type",String)],Op.prototype,"endpointUrl",void 0);
_.T([_.g({computed:"computeCommand(data.endpoint, logoEntity)"}),_.N("design:type",String)],Op.prototype,"command",void 0);_.T([_.g(),_.N("design:type",Object)],Op.prototype,"logoType",void 0);_.T([_.g({}),_.N("design:type",Boolean)],Op.prototype,"useDarkThemeYoodle",void 0);_.T([_.Le("yoodle-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Op.prototype,"onYoodleError",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Op);
_.O(Op,"ytd-topbar-logo-renderer",function(){if(Rlb!==void 0)return Rlb;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Rlb=X},{mode:2});var dZr=0;var hlb=Py.SEARCH_APPEND_LABEL,F$R=Py.SUGGESTION_NEW_VIDEOS_TEXT,BYa=Py.SUGGESTION_THUMBNAIL_LABEL,qaA=Py.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,sC9=_.Z(function(X){function H(cz){var OG,Sy;return _.h(function($m){if($m.nextAddress==1)return OG=new Request(cz),_.Ew($m,2),$m.yield(fetch(OG,{credentials:"include"}),4);if($m.nextAddress!=2)return MW(!0),_.Zt($m,0);Sy=_.Ow($m);_.x2(Sy);_.m5($m)})}
var l=X.isHighlighted;var b=X.suggestion;var U=X.onClickCallback;var K=X.onHoverUpdateCallback;var w=X.labels;var d=X.queryBuilderFunction;var B=X.onRemoveCallback;var q=X.suggestionIndex;var u=X.generateUniqueId;var e=X.highlightedId;var y=X.useScrollMargin;var V=X.isKeyboardMode;var p=null,z=null,t=null,W=_.SJ("div"),G=_.SJ("span");X=_.C(_.FU(!1,void 0,"LafNkf"));var r=X.next().value,Q=X.next().value,v=_.z7("a",function(cz){cz&&_.Fc(237477,cz,z,function(OG){z=OG})}),J=_.z7("button",function(cz){cz&&
_.Fc(237477,cz,z,function(OG){z=OG})}),Y=_.z7("div",function(cz){cz&&_.Fc(281939,cz,t,function(OG){t=OG})}),Uy=_.Nq(function(cz){if((cz==null?void 0:cz.button)===2)return cz.preventDefault(),!1;
var OG=_.Bi();OG&&p&&_.Di(OG,p,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Sy;U(cz,b().text,b().index,b().entityMid,cz==null?void 0:(Sy=cz.detail)==null?void 0:Sy.wasSelectedByKeyboard);return!1}),Cy=function(){return b().type===35},sy=function(){return _.P("desktop_enable_single_suggestion_highlight")},FO=function(){return _.Yy("desktop_suggestions_panel_row_height")||0},ub=function(){var cz;
return _.P("desktop_enable_new_video_metadata")&&((cz=b())==null?void 0:cz.hasNewVideo)===!0},g8=function(){return _.P("desktop_enable_visual_suggest")},mm=function(){return _.P("desktop_enable_entity_suggest")&&_.O_o(b())},QZ=function(){return b().entitySubtitle},Bz=function(){return sy()?(l==null?void 0:l())||rt()&&!(V==null?0:V()):(l==null?void 0:l())||rt()},dt=function(){var cz=_.gx("SBOX_SETTINGS");
return Cy()&&!(cz==null?0:cz.HIDE_REMOVE_LINK)},TK=function(){return _.mv2(b(),{useEntityName:mm()})},sG,f_=!((sG=_.jJ().resolve(_.c$(_.b4)))==null||!sG()),Mv=function(){return Cy()?_.P("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},nd=function(){return w==null?void 0:w().SUGGESTION_DISMISS_LABEL},$U=function(){return w==null?void 0:w().SUGGESTION_DISMISSED_LABEL};
X=_.C(_.FU(!1,void 0,"JyfUlf"));sG=X.next().value;var MW=X.next().value;X=_.C(_.FU(!1,void 0,"QKfAGe"));var ZL=X.next().value,uF=X.next().value,rt=ZL,xQ=_.Nq(function(){d(G.value.innerText);return!1}),AQ=_.Nq(function(cz){cz.preventDefault();
return!1}),D3=_.Nq(function(cz){H(_.w0Z(b().text));
cz.preventDefault();(cz=_.Bi())&&z&&_.Di(cz,z,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");B(q==null?void 0:q());return!1}),YQ=_.Nq(function(){if(sy()&&(V==null?0:V()))return!1;
uF(!0);K(!0);return!1}),F5=_.Nq(function(){uF(!1);
K(!1);return!1}),TY=_.Nq(function(){Q(!0);
return!1}),NZ=_.Nq(function(){Q(!1);
return!1}),C_=_.Nq(function(cz){cz.preventDefault();
if(b().entityThumbnailAttributionUrl){t&&_.Lk(_.lv(),t);var OG=b().entityThumbnailAttributionUrl;cz=b().entityName;var Sy={dismissDialogEndpoint:{}};OG={commandExecutorCommand:{commands:[Sy,{urlEndpoint:{url:OG,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:OG}}}]}};Sy={buttonViewModel:{title:_.XS("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:Sy}}};OG={buttonViewModel:{title:_.XS("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:OG}}};cz={dialogHeaderViewModel:{headline:{content:cz!=null?cz:_.XS("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var $m={basicContentViewModel:{paragraphs:[{text:{content:_.XS("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};cz={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:cz,footer:{panelFooterViewModel:{primaryButton:OG,
secondaryButton:Sy,shouldHideDivider:!0}},content:$m}}}}};_.jJ().resolve(_.Vr).resolveCommand(cz)}return!1});
X=_.C(_.FU("",void 0,"MvIBn"));var qZ=X.next().value,qv=X.next().value;_.xy(function(){dt()&&qv(u==null?void 0:u(q==null?void 0:q()));W.value&&_.Fc(12453,W.value,p,function(cz){p=cz})});
return _.F(_.M,{cond:sG,then:function(){var cz={};return _.F("div",{class:_.Qr("ytSuggestionComponentRemovedText",(cz.ytSuggestionComponentLargerRemovedText=function(){return g8()},cz)),
style:function(){return FO()>0?"height: "+FO()+"px;":""},
role:"button"},$U)},
else:function(){var cz={},OG={};return _.F("div",{class:_.Qr("ytSuggestionComponentSuggestion",(cz.ytSuggestionComponentSuggestionHover=function(){return!sy()},cz.ytSuggestionComponentHighlighted=Bz,cz.ytSuggestionComponentPersonalizedSuggestion=Cy,cz.ytSuggestionComponentMweb=!1,cz.ytSuggestionComponentLargerSuggestion=function(){return ub()||g8()},cz.ytSuggestionComponentThumbnailSuggestion=function(){return g8()},cz.ytSuggestionComponentRoundedSuggestion=function(){return _.P("desktop_enable_scrollable_suggestions_panel")&&
_.P("desktop_enable_suggestions_panel_padding")},cz.ytSuggestionComponentThumbnailPadding=function(){return g8()&&!Cy()},cz)),
style:function(){return FO()>0?"height: "+FO()+"px;":""},
role:"presentation","on:mousedown":Uy,"on:mouseover":YQ,"on:mouseout":F5,el:W},_.F("div",{class:_.Qr("ytSuggestionComponentText",(OG.ytSuggestionComponentScrollMargin=y,OG)),"aria-label":function(){return ub()?b().text+" "+F$R:b().text},
id:function(){return u==null?void 0:u(q==null?void 0:q())},
"on:mousedown":Uy,role:"option"},_.F(_.M,{cond:function(){return b().type!==33},
then:function(){return _.F(_.Ja,{icon:Mv,className:"ytSuggestionComponentIcon"})}}),_.F("div",{class:"ytSuggestionComponentLeftContainer"},_.F("span",{el:G,
role:"button",tabindex:0},_.F(_.P$,{each:TK},function(Sy){return Sy.bold?_.F("span",{class:"ytSuggestionComponentBold"},Sy.text):_.F("span",null,Sy.text)})),_.F(_.M,{cond:function(){return mm()&&!!b().entitySubtitle||ub()},
then:function(){return _.F("div",{class:"ytSuggestionComponentMetadataContainer"},_.F(_.M,{cond:function(){return mm()&&!!b().entitySubtitle},
then:function(){return _.F("div",{class:"ytSuggestionComponentEntitySubtitle"},QZ)}}),_.F(_.M,{cond:function(){return ub()},
then:function(){return _.F("div",{class:"ytSuggestionComponentNewVideoContainer"},_.F("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.F("div",{class:"ytSuggestionComponentNewVideoText"},F$R))}}))}}))),_.F("div",{class:"ytSuggestionComponentRightContainer"},_.F(_.M,{cond:function(){return g8()&&b().visualSuggestUrl!==void 0},
then:function(){var Sy={};return _.F("div",{class:"ytSuggestionComponentThumbnailContainer"},_.F("img",{"aria-label":BYa,class:_.Qr("ytSuggestionComponentVisualSuggestThumbnail",(Sy.ytSuggestionComponentCircularFrame=function(){return mm()&&b().subtypes.includes(790)},Sy.ytSuggestionComponentEntitySuggestThumbnail=function(){return mm()},Sy)),
src:function(){return b().visualSuggestUrl}}),_.F(_.M,{cond:function(){return mm()&&!!b().entityThumbnailAttributionUrl},
then:function(){var $m={};return _.F("span",{title:qaA,role:"tooltip"},_.F("div",{el:Y,"on:mouseover":TY,"on:mouseout":NZ,"on:mousedown":C_,class:_.Qr("ytSuggestionComponentThumbnailOverlay",($m.ytSuggestionComponentThumbnailOverlayHidden=function(){return!r()},$m))},_.F(_.Ja,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.F(_.ff,null,_.F(_.yO,{when:function(){return g8()&&dt()}},function(){var Sy={};
return _.F("button",{class:_.Qr("ytSuggestionComponentRemoveLinkClearButton",(Sy.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return qZ()&&qZ()===(e==null?void 0:e())},Sy.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Bz()},Sy)),
el:J,"on:mousedown":D3,"aria-label":nd,id:function(){return qZ()}},_.F(_.Ja,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.F(_.yO,{when:function(){return!(g8()&&b().visualSuggestUrl!==void 0)&&dt()}},function(){var Sy={};
return _.F("a",{class:_.Qr("ytSuggestionComponentRemoveLink",(Sy.ytSuggestionComponentRemoveLinkDark=f_,Sy.ytSuggestionComponentRemoveLinkSelected=function(){return qZ()&&qZ()===(e==null?void 0:e())},Sy)),
el:v,"on:mousedown":D3,"aria-label":nd,tabindex:0,role:"button",id:function(){return qZ()}},nd)}),_.F(_.yO,{when:function(){return!1}},function(){return _.F("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":xQ,"on:mousedown":AQ,role:"button","aria-label":hlb},_.F(_.Ja,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jl");var MyR=_.W8(["//www.google.com/textinputassistant/","/","_tia.js"]),u5X=_.Z(function(){return _.F("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.F("button",{class:"ytdTextInputAssistantButton","on:click":_.Nq(function(){cQ9().inputMethodsTracker.add(3);var X,H=(X=_.gx("SBOX_SETTINGS"))==null?void 0:X.REQUEST_LANGUAGE;if(H)return _.VX(_.z8(MyR,14,H)),!1})},_.F("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 yNA;_.el2=function(){this.cache=new Map};
yNA=function(X){for(var H=_.C(X.cache.entries()),l=H.next();!l.done;l=H.next()){var b=_.C(l.value);l=b.next().value;b=b.next().value;b.suggestions.some(function(U){return U.type===35})&&X.cache.delete(l)}};var VyA=Py.SEARCH,Pxz=Py.SEARCH_CLEAR_LABEL,fAX=new _.gz("FAKE_SUGGEST_RESPONSE"),ppz=_.Z(function(X){function H(){YQ||(YQ=setTimeout(function(){TY()},1E3))}
function l(zY,Sq,Oa){if(zY.trim()){D3=zY;_.Et("REFINEMENTS_TUPLE",void 0);xQ=!0;var UU;Sq=JQr($U,Sq);var eq=(UU=X.searchEndpoint)==null?void 0:UU.call(X);_.CKy(zY,Sq,eq,sG.value.value,Oa);TY();sG.value.value=zY;sG.value.blur();$U.reset()}}
function b(zY){return _.h(function(Sq){return Sq.return(new Promise(function(Oa){var UU=new XMLHttpRequest;UU.open("GET",_.EQu(zY),!0);UU.withCredentials=!0;var eq=_.gx("SBOX_SETTINGS");(eq==null?0:eq.SEND_VISITOR_DATA)&&UU.setRequestHeader("X-Goog-Visitor-Id",eq==null?void 0:eq.VISITOR_DATA);UU.onload=function(){Oa(UU.responseText)};
UU.onerror=function(){_.x2(Error("nm"));Oa(null)};
setTimeout(function(){UU.abort()},1E4);
UU.send(null)}))})}
function U(zY){var Sq,Oa,UU,eq;return _.h(function(EH){switch(EH.nextAddress){case 1:return Sq={credentials:"include",headers:_.WD$()},window.AbortController&&(Oa=new AbortController,setTimeout(function(){Oa.abort("ytsbox-suggest-timeout")},1E4),Sq.signal=Oa.signal),_.Ew(EH,2),EH.yield(fetch(_.EQu(zY),Sq),4);
case 4:UU=EH.yieldResult.text();_.Zt(EH,3);break;case 2:return eq=_.Ow(EH),eq!=="ytsbox-abort-last"&&eq!=="ytsbox-suggest-timeout"&&_.x2(eq),EH.return(null);case 3:return EH.return(UU)}})}
function K(zY){var Sq,Oa,UU;return _.h(function(eq){switch(eq.nextAddress){case 1:if(Sq=_.jJ().resolve(_.c$(fAX)))return eq.return(Sq);Oa=Date.now();H();return _.P("yt_searchbox_xhr")?eq.yield(b(zY),5):eq.yield(U(zY),4);case 4:UU=eq.yieldResult;eq.jumpTo(3);break;case 5:UU=eq.yieldResult;case 3:if(UU){YQ&&(clearTimeout(YQ),YQ=null);var EH=$U,RZ=Oa,Q2=zY.query.length===0;RZ=Date.now()-RZ;Q2?EH.zeroPrefixRoundTripTime=RZ:(EH.JSC$22813_totalRoundTripTime+=RZ,EH.maxRoundTripTime=Math.max(EH.maxRoundTripTime,
RZ),Q2=Math.floor(RZ/100),Q2>=LDu.length?++EH.roundTripTimeHistogram[9]:++EH.roundTripTimeHistogram[LDu[Q2]])}return eq.return(UU)}})}
function w(zY){var Sq,Oa,UU;return _.h(function(eq){if(eq.nextAddress==1)return(Sq=nd.cache.get(_.tqX(zY)))?eq.return(Sq):eq.yield(K(zY),2);Oa=eq.yieldResult;if(Oa===null)return eq.return(null);UU=new _.Q_r(Oa);zY.query.length===0&&UU.suggestions.length===0||nd.cache.set(_.tqX(zY),UU);return eq.return(UU)})}
function d(zY){var Sq,Oa;return _.h(function(UU){if(UU.nextAddress==1){AQ=!1;var eq=D3;eq=_.Es()==="search"?(_.Hb(location.href,"search_query")||_.Hb(location.href,"q"))===eq:!1;Sq=new _.Dvb(zY,eq?D3:null);return UU.yield(w(Sq),2)}Oa=UU.yieldResult;if(Oa===null)return UU.return();Sq.query.length===0&&($U.zeroPrefixSuggestionCount=Oa.suggestions.length);if(Sq.id<=F5)return $U.outOfSyncResponseCount++,UU.return();if(document.activeElement!==sG.value)return UU.return();F5=Sq.id;var EH=$U,RZ=Oa.rawResponse[2]||
{};EH.experimentTriggeredBeforeFinal||(EH.experimentTriggeredBeforeFinal=EH.experimentTriggeredFinal);EH.experimentTriggeredFinal=!!RZ.e;$U.updateSuggestions(Oa.suggestions);t(-1);QZ([]);Oa.suggestions!==V()&&k3(Oa.suggestions.length);p(Oa.suggestions);Uy(Oa.suggestions.length>0&&Oa.suggestions[0].type===33);Mv&&(Mv.hidden=Oa.suggestions.length===0,Y()?(Mv.style.minWidth="",EH=Mv.style,RZ=(eq=V()[0])==null?void 0:eq.ignoredPrefix,EH.marginLeft=(RZ?Math.min(RZ.length*6,f_.value.offsetWidth):0).toString()+
"px"):(Mv.style.minWidth=f_.value.offsetWidth+"px",Mv.style.marginLeft="0"),KJ());_.m5(UU)})}
function B(){if(!xQ)return!1;var zY=_.gx("REFINEMENTS_TUPLE"),Sq;return zY&&((Sq=zY[1])==null?0:Sq.length)?(zY=zY[1].map(function(Oa,UU){return new _.vQ$([Oa,0,[71]],sG.value.value,UU)}),V()!==zY&&k3(zY.length),QZ([]),p(zY),$U.updateSuggestions(zY),xQ=!1,Mv.hidden=zY.length===0,AQ=zY.length>0,!0):!1}
function q(){var zY=sG.value.value;(typeof zY==="string"||zY instanceof String)&&zY!==""?Q(!0):Q(!1)}
function u(){if(_.Es()==="search"){var zY=window.location.href;try{var Sq=_.Hb(zY,"search_query")||_.Hb(zY,"q")||""}catch(Oa){Sq=""}Sq&&(sG.value.value=Sq,Q(!0))}}
var e=_.C(_.FU([],void 0,"OC8EPc")),y=e.next().value;e=e.next().value;var V=y,p=e;y=_.C(_.FU(-1,void 0,"t2tVQb"));var z=y.next().value,t=y.next().value;y=_.C(_.FU(-1,void 0,"v0RZCe"));var W=y.next().value,G=y.next().value;y=_.C(_.FU(!1,void 0,"rjAnI"));var r=y.next().value,Q=y.next().value;y=_.C(_.FU(!1,void 0,"SyGLvb"));var v=y.next().value,J=y.next().value;e=_.C(_.FU(!1,void 0,"tL09Cb"));y=e.next().value;e=e.next().value;var Y=y,Uy=e;e=_.C(_.FU(!1,void 0,"FlH7mc"));y=e.next().value;var Cy=e.next().value;
e=_.C(_.FU(!1,void 0,"ea3fwe"));var sy=e.next().value,FO=e.next().value;e=_.C(_.FU(1,void 0,"vSK1xe"));var ub=e.next().value,g8=e.next().value;e=_.C(_.FU([],void 0,"ijlw4b"));var mm=e.next().value,QZ=e.next().value;e=_.C(_.FU(!1,void 0,"HcRey"));var Bz=e.next().value,dt=e.next().value;e=_.P("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var TK=_.SJ("yt-searchbox"),sG=_.SJ("input"),f_=_.SJ("div"),Mv,nd=
new _.el2,$U=cQ9(),MW=_.jJ().resolve(_.c$(_.b4)),ZL=function(){var zY;return((zY=X.forceDarkMode)==null?void 0:zY.call(X))||!(MW==null||!MW())},uF=function(){return _.P("desktop_enable_scrollable_suggestions_panel")},rt="i"+dZr++,xQ=!1,AQ=!1,D3="",YQ=null,F5=-1,TY=function(){QZ([]);
p([]);Uy(!1);Mv&&(Mv.hidden=!0);YQ&&(clearTimeout(YQ),YQ=null);t(-1)},NZ=function(zY,Sq){zY.preventDefault();
dt(!0);Mv&&(Mv.hidden=!1);var Oa=z();zY=V();var UU=mm();Sq=dOe(Sq);Oa+=Sq;for(Oa>=zY.length?Oa=-1:Oa<-1&&(Oa=zY.length-1);Oa!==-1&&(UU.includes(Oa)||Oa>=zY.length||Oa<0);)Oa+=Sq,Oa>=zY.length&&(Oa=-1);t(Oa);z()>=0&&(sG.value.value=V()[z()].text,G(0),q(),zY=z(),UU=W(),(UU=document.getElementById(wX[zY][UU]))&&uF()&&(zY===V().length-1?Mv.scrollTop=Mv.scrollHeight:UU.scrollIntoView({block:"nearest",inline:"start"})))},C_=_.Nq(function(zY){if(!(zY.relatedTarget instanceof Element&&zY.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){J(!0);
var Sq;(Sq=X.focusCallback)==null||Sq.call(X,!0);B()||(AQ?Mv.hidden=!1:(_.QX(TK.value,"yt-autonav-pause-focus",{}),d(zY.target.value)))}}),qZ=_.Nq(function(zY){if(!(zY.relatedTarget instanceof Element&&zY.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){J(!1);
var Sq;(Sq=X.focusCallback)==null||Sq.call(X,!1);Mv.scrollTop=0;Mv.hidden=!0;_.QX(TK.value,"yt-autonav-pause-blur",{})}}),qv=function(zY){zY=dOe(zY);
var Sq;((Sq=wX[z()])==null?0:Sq[W()+zY])&&G(W()+zY)},cz=_.Nq(function(zY){var Sq=zY.keyCode,Oa=zY.target;
dt(!0);switch(Sq){case 13:zY.preventDefault();var UU;if((UU=wX[z()])==null?0:UU[W()]){var eq;(eq=document.getElementById(wX[z()][W()]))==null||eq.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}zY=zY.shiftKey?4:3;Sq=$U;UU=z();Sq.selectedSuggestionIndex=UU;l(Oa.value,zY);break;case 27:Mv&&(Mv.hidden=!0);break;case 40:NZ(zY,40);break;case 38:NZ(zY,38);break;case 39:qv(39);break;case 37:qv(37);break;case 229:$U.inputMethodsTracker.add(4);break;default:$U.inputMethodsTracker.add(1),
j_A($U)}return!1}),OG=_.Nq(function(zY){d(zY.target.value);
q();uF()&&Mv&&(Mv.scrollTop=0);return!1}),Sy=_.Nq(function(){$U.inputMethodsTracker.add(2);
j_A($U);return!1});
_.xy(function(){if(Mv){$U.reset();if(window.ResizeObserver){var zY=new ResizeObserver(function(){Y()||(Mv.style.minWidth=f_.value.offsetWidth+"px")});
zY.observe(f_.value);(new ResizeObserver(function(){KJ()})).observe(Mv);
_.E2(function(){zY.disconnect()})}u();
window.addEventListener("yt-navigate-finish",u);window.addEventListener("yt-focus-searchbox",function(){sG.value.focus()});
var Sq;Cy((Sq=_.gx("SBOX_SETTINGS"))==null?void 0:Sq.HAS_ON_SCREEN_KEYBOARD)}else _.n2(new _.qd("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var $m=_.Nq(function(zY){zY.preventDefault();l(sG.value.value,12);return!1}),mD=_.Nq(function(zY){zY.preventDefault();
var Sq,Oa;(Sq=sG)==null||(Oa=Sq.value)==null||Oa.focus();var UU,eq;((UU=sG)==null?void 0:(eq=UU.value)==null?void 0:eq.value)!==""&&(sG.value.value="",sG.value.dispatchEvent(new Event("input")));return!1}),RC=_.Nq(function(){var zY=gMx(sG.value.value,V().filter(function(Sq){return Sq.type!==35}).map(function(Sq){return{label:Sq.text}}));
_.TP(TK.value,"yt-open-popup-action",[{openPopupAction:zY},document.body]);return!1}),IC=_.Nq(function(){sG.value.focus();
return!1}),R$=function(zY,Sq,Oa,UU,eq){$U.selectedSuggestionIndex=Oa;
l(Sq,eq?3:1,UU)},nW=function(zY){sG.value.value=zY;
sG.value.dispatchEvent(new Event("input"));$U.inputMethodsTracker.add(5);j_A($U,!0)},wX=[[]],AR=function(zY){var Sq="searchbox-suggestion"+_.uZ(_.P3);
wX[zY].push(Sq);return Sq},k3=function(zY){if(V()){wX=[[]];
for(var Sq=0;Sq<zY;Sq++)wX.push([])}},KJ=function(){if(uF()){var zY=Mv,Sq=zY.scrollTop;
zY=zY.scrollHeight-zY.clientHeight;FO(Sq>=zY);Sq=Math.abs(zY-Sq);Sq<=40?g8(1-(40-Sq)/40):g8(1)}},Yr=function(){return"opacity: "+ub()*100+"%"},kN=_.Nq(function(){KJ();
return!1}),ib=_.Nq(function(){dt(!1);
return!1}),Jy,p_={},Pp={},kn={},kU={};
return _.F("yt-searchbox",{class:_.Qr("ytSearchboxComponentHost",(p_.ytSearchboxComponentMweb=!1,p_.ytSearchboxComponentDesktop=!0,p_["yt-searchbox-filled-query"]=function(){return r()},p_["ytd-masthead"]=function(){return!v()},p_.ytSearchboxComponentHostDark=ZL,p_)),
role:"search",el:TK,"client-ve-type":10349},_.F("div",{el:f_,"on:click":IC,class:_.Qr("ytSearchboxComponentInputBox",(Pp.ytSearchboxComponentInputBoxDark=ZL,Pp.ytSearchboxComponentInputBoxHasFocus=v,Pp))},_.F("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":$m},_.F(_.M,{cond:v,then:function(){return _.F("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.F(_.Ja,{icon:"SEARCH"}))}}),_.F("input",{el:sG,
class:_.Qr("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":rt,"aria-expanded":!((Jy=Mv)==null?0:Jy.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":qZ,"on:focus":C_,"on:input":OG,"on:keydown":cz,"on:paste":Sy,placeholder:X.placeholderText,"aria-activedescendant":function(){var zY;return(zY=wX[z()])==null?void 0:zY[W()]},
"aria-autocomplete":"list",role:"combobox"})),_.F(_.M,{cond:y,then:function(){return _.F("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.F(u5X,null))}}),_.F(_.M,{cond:r,
then:function(){return _.F("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.F("button",{class:"ytSearchboxComponentClearButton","on:click":mD,"aria-label":X.clearButtonAriaLabel||Pxz},_.F(_.Ja,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.F(_.iJ,{model:{}})))}})),_.F("button",{class:_.Qr("ytSearchboxComponentSearchButton",(kn.ytSearchboxComponentSearchButtonDark=ZL,kn)),
"on:click":$m,"aria-label":VyA,title:X.placeholderText},_.F(_.Ja,{icon:"SEARCH"})),_.F(_.M,{cond:function(){if(d7x()&&_.P("mweb_voice_search")&&X.voiceSearchButton)return X.voiceSearchButton()},
then:function(zY){var Sq={};return _.F("div",{class:_.Qr("ytSearchboxComponentVoiceSearchWrapper",(Sq.ytSearchboxComponentHideVoiceSearchButton=function(){return r()},Sq))},_.F(_.l4,{data:zY},{buttonRenderer:function(Oa){return _.F(_.gF,{data:Oa.data,
onButtonClickCallback:function(){}})}}))}}),_.F("div",{el:_.xl(function(zY){return void(Mv=zY)}),
id:rt,class:_.Qr("ytSearchboxComponentSuggestionsContainer",(kU.ytSearchboxComponentSuggestionsContainerDark=ZL,kU["yt-searchbox-suggestions-container"]=!1,kU.ytSearchboxComponentSuggestionsContainerScrollable=uF(),kU.ytSearchboxComponentSuggestionsContainerAnimated=e,kU)),"on:scroll":kN,"on:mousemove":ib,role:"listbox",hidden:!0},_.F(_.P$,{each:V},function(zY,Sq){return _.F(sC9,{suggestion:zY,isHighlighted:function(){return Sq()===z()},
onClickCallback:R$,onHoverUpdateCallback:function(Oa){if(_.P("desktop_enable_single_suggestion_highlight")){var UU=Sq();Oa&&(G(0),t(UU))}},
onRemoveCallback:function(Oa){yNA(nd);Oa===void 0||Oa<0||mm().includes(Oa)||QZ([].concat(_.LJ(mm()),[Oa]))},
labels:X.labels,queryBuilderFunction:nW,suggestionIndex:Sq,generateUniqueId:AR,highlightedId:function(){var Oa;return(Oa=wX[z()])==null?void 0:Oa[W()]},
useScrollMargin:uF(),isKeyboardMode:Bz})}),_.F(_.M,{cond:function(){return!Y()&&V().find(function(zY){return zY.type!==35})&&_.P("searchbox_reporting")},
then:function(){return _.F("button",{class:"ytSearchboxComponentReportButton","on:mousedown":RC},_.XS("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.F(_.M,{cond:function(){return!sy()&&uF()},
then:function(){return _.F("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.F("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Yr}))}})))},"ml");
ppz.idomCompat={callbacks:{focusCallback:!0}};_.gC(ppz,"yt-searchbox",{props:{searchEndpoint:_.zh,placeholderText:_.zh,labels:_.zh,voiceSearchButton:_.zh,focusCallback:_.ta,clearButtonAriaLabel:_.zh,forceDarkMode:_.zh}});var mH=function(){var X=_.a.apply(this,arguments)||this;X.menuButtonTargetId="topbar-guide-menu";X.narrow=!1;X.menuStrings={BACK_ALT_LABEL:_.XS("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.XS("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.XS("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.XS("SBOX_PLACEHOLDER",void 0,"Search")};X.pageDarkTheme=document.documentElement.hasAttribute("dark");X.watchPageScrollTop=0;X.theater=!1;X.fullscreen=!1;X.disableFrostedGlassDuringViewTransition=
!1;X.desktopUnifiedSearchPanelMode=_.P("desktop_enable_unified_search_panel");X.aiCompanionEnabled=_.P("enable_ai_companion");X.ytSearchboxFocused=!1;X.searchboxLabels=_.gx("SBOX_LABELS");X.topbarIsAboveChipbar=!1;X.isDarkThemeForced=!1;X.areGhostCardsHidden=!1;X.guideKeyboardToggle=!1;X.voiceSearchManager=rAZ();X.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};X.setYtSearchboxFocused=function(H){X.ytSearchboxFocused=H};
X.toggleFrostedGlassDuringViewTransition=function(H){X.disableFrostedGlassDuringViewTransition=H};
return X};
_.S(mH,_.a);_.R=mH.prototype;_.R.computeSimpleText=function(X){return _.D8(X)};
_.R.onDarkChanged=function(){for(var X=_.C(this.buttons||[]),H=X.next();!H.done;H=X.next())H.value.isOverlay=!!this.dark;X=_.C(this.buttonRenderers||[]);for(H=X.next();!H.done;H=X.next())H.value.overrides=this.computeButtonOverride()};
_.R.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.R.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"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var X=_.kp(_.ng(),"aa");_.TW(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||X||(this.isDarkThemeForced=this.dark=!0);this.logoType?(X=this.hostElement.querySelector("#masthead-logo"))&&(_.P("polymer_on_demand_shady_dom")?X.setAttribute("slot","masthead-logo-old"):_.HE(X)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.J2(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.J2(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.R.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.J2(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.J2(this,this.onSetTheaterModeEnabled))};
_.R.dataChanged=function(){var X=this.data;X&&(this.voiceEnabled=X.voiceSearchButton?rAZ().isSupported():!1,_.Iy(_.AO(),this.menuButtonTargetId,this.guideButton),X.onReceivedActions&&X.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.j7(this.hostElement,X.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&X&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.TW(this.hostElement,"dark",!1),_.TW(this.hostElement,"theater",!1),(X=
this.hostElement.querySelector("#masthead-logo"))&&(_.P("polymer_on_demand_shady_dom")?X.setAttribute("slot","masthead-logo-old"):_.HE(X))))};
_.R.computeCenterHidden=function(){var X;return this.data&&!((X=this.data.searchbox)==null?0:X.fusionSearchboxRenderer)};
_.R.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.TW(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.R.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.R.onWatchScroll=function(X){this.watchPageScrollTop=X.detail||0;this.updateMastheadBackgroundOpacity()};
_.R.onFullscreenChangeAction=function(X){X||(this.watchPageScrollTop=0);this.fullscreen=X;this.updateMastheadBackgroundOpacity()};
_.R.onSetTheaterModeEnabled=function(X){this.theater=X.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.R.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.R.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.R.setBackgroundOpacity=function(X){X=this.calculateBackgroundOpacity(X);this.background.style.opacity=""+X};
_.R.calculateBackgroundOpacity=function(X){var H=this.theater?.6:0,l=this.hostElement.clientHeight/2;return Math.min(Math.max(X,0),l)/l*(1-H)+H};
_.R.shouldShowCinematicMastHead=function(){var X=_.P("kevlar_watch_grid")&&!_.P("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(X||this.pageDarkTheme)};
_.R.focusGuide=function(){this.guideButton.focus()};
_.R.onGuideToggleTap=function(){_.QX(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.R.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.R.onGuideToggleHover=function(){_.QX(this.hostElement,"yt-guide-hover")};
_.R.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.R.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.R.closeOnOutsideClickCondition=function(X){for(X=_.t2(X);X[0];){var H=X.shift();if(H instanceof Element&&H.id==="kbd")return!1}return!0};
_.R.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.R.pausePlayer=function(){var X;(X=_.aq())==null||X.pause();this.pauseMiniplayer()};
_.R.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var X;(X=_.jJ().resolve(_.f9).getPlayerElement())==null||X.pause()}};
_.R.isMiniplayerActive=function(){return _.jJ().resolve(_.f9).isMiniplayerActive()};
_.R.updateNarrowFromBinding=function(X){this.narrow=X.detail.value};
_.R.onYtSendFeedbackAction=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.R.registerWithViewTransitionManager=function(){bRa(_.jJ().resolve(_.Cz),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.ja.Object.defineProperties(mH.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.P("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 X;return!!(this.aiCompanionEnabled&&((X=this.data)==null?0:X.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var X;return(X=this.data)==null?void 0:X.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
mH.prototype.narrowChanged=mH.prototype.narrowChanged;mH.prototype.onWatchPageChange=mH.prototype.onWatchPageChange;mH.prototype.onRendererStamperFinished=mH.prototype.onRendererStamperFinished;mH.prototype.dataChanged=mH.prototype.dataChanged;mH.prototype.onDarkChanged=mH.prototype.onDarkChanged;_.T([_.k(_.$s),_.N("design:type",Object)],mH.prototype,"ironResizableBehavior",void 0);_.T([_.k(Cte),_.N("design:type",Object)],mH.prototype,"ytdExpandableInputBehavior",void 0);
_.T([_.k(_.PO.YtdGuideStateAwareBehavior),_.N("design:type",Object)],mH.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],mH.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],mH.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.sv),_.N("design:type",Object)],mH.prototype,"ytdReduxBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],mH.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],mH.prototype,"narrow",void 0);_.T([_.g(),_.N("design:type",Object)],mH.prototype,"logoType",void 0);_.T([_.g(),_.N("design:type",Boolean)],mH.prototype,"voiceEnabled",void 0);
_.T([_.g(),_.N("design:type",Object)],mH.prototype,"menuStrings",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],mH.prototype,"dark",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],mH.prototype,"pageDarkTheme",void 0);_.T([_.g(),_.N("design:type",Object)],mH.prototype,"watchPageScrollTop",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.nWN}),_.N("design:type",Boolean)],mH.prototype,"isWatchPage",void 0);
_.T([_.g({reflectToAttribute:!0,selector:_.kCb}),_.N("design:type",Boolean)],mH.prototype,"isShortsPage",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],mH.prototype,"theater",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],mH.prototype,"fullscreen",void 0);_.T([_.g({reflectToAttribute:!0,selector:_.Wjh}),_.N("design:type",String)],mH.prototype,"frostedGlassMode",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],mH.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],mH.prototype,"aiCompanionEnabled",void 0);_.T([_.g(),_.N("design:type",Object)],mH.prototype,"ytSearchboxFocused",void 0);_.T([_.Xh("#buttons > *"),_.N("design:type",Array)],mH.prototype,"buttons",void 0);_.T([_.Xh("ytd-button-renderer"),_.N("design:type",Array)],mH.prototype,"buttonRenderers",void 0);
_.T([_.A2("#background"),_.N("design:type",HTMLDivElement)],mH.prototype,"background",void 0);_.T([_.A2("#guide-button"),_.N("design:type",Object)],mH.prototype,"guideButton",void 0);_.T([_.A2("#logo"),_.N("design:type",Object)],mH.prototype,"logo",void 0);_.T([_.g({computed:"computeButtonOverride(dark)"}),_.N("design:type",Object)],mH.prototype,"buttonOverrides",void 0);
_.T([_.oi("dark"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mH.prototype,"onDarkChanged",null);_.T([_.g({value:function(){return this.onVoiceTap.bind(this)}}),
_.N("design:type",Function)],mH.prototype,"boundOnTapVoiceButton",void 0);_.T([_.g(),_.N("design:type",Object)],mH.prototype,"topbarIsAboveChipbar",void 0);_.T([_.g(),_.N("design:type",String),_.N("design:paramtypes",[])],mH.prototype,"guideIcon",null);_.T([_.x("voiceEnabled"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mH.prototype,"shouldShowVoiceSearchButton",null);
_.T([_.x("data.aiCompanionButton","aiCompanionEnabled"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mH.prototype,"shouldShowAiCompanionButton",null);_.T([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],mH.prototype,"voiceSearchButton",null);_.T([_.x("aiCompanionEnabled"),_.N("design:type",String),_.N("design:paramtypes",[])],mH.prototype,"narrowQuery",null);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mH.prototype,"dataChanged",null);_.T([_.Le("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mH.prototype,"onRendererStamperFinished",null);_.T([_.oi("isWatchPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mH.prototype,"onWatchPageChange",null);
_.T([_.oi("narrow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mH.prototype,"narrowChanged",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-masthead"})],mH);
_.O(mH,"ytd-masthead",function(){if(K$2!==void 0)return K$2;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return K$2=X},{mode:2});var Sau;var zlo={},nUU={},kZ2={},xZ2={},DZ$=(xZ2.OFFLINE=(zlo["publicytnetworkstatus-online"]="BACK_ONLINE",zlo),xZ2.ONLINE=(nUU["publicytnetworkstatus-offline"]="OFFLINE",nUU),xZ2.BACK_ONLINE=(kZ2["publicytnetworkstatus-offline"]="OFFLINE",kZ2.TIMER_TRIGGER="ONLINE",kZ2),xZ2),Q6=function(){var X=_.a.apply(this,arguments)||this;X.currentState="ONLINE";X.scheduledJobId=0;X.bannerString="";X.bannerVe=null;X.networkStatusManagerInstance=new _.iM;return X};
_.S(Q6,_.a);_.R=Q6.prototype;_.R.attached=function(){var X=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){X.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){X.stateChangeHandler("publicytnetworkstatus-offline")})};
_.R.detached=function(){var X=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){X.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){X.stateChangeHandler("publicytnetworkstatus-offline")})};
_.R.enterState=function(X){var H=this;this.scheduledJobId&&_.Ss.cancelJob(this.scheduledJobId);X==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):X==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.XS("NO_INTERNET_CONNECTION",void 0,"No internet connection")):X==="BACK_ONLINE"&&(this.bannerString=_.XS("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.eh(_.Ss,function(){H.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=X};
_.R.stateChangeHandler=function(X){(X=DZ$[this.currentState][X])&&this.enterState(X)};
_.R.logVisibility=function(X){var H=_.Bi();this.createBannerVe(X);H&&this.bannerVe&&(X?_.nA(H,[this.bannerVe]):_.kB(H,[this.bannerVe]))};
_.R.createBannerVe=function(X){!this.bannerVe&&X&&(this.bannerVe=_.cS(37929),_.Ji(_.lv(),this.bannerVe))};
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",String)],Q6.prototype,"currentState",void 0);_.T([_.g(),_.N("design:type",Object)],Q6.prototype,"scheduledJobId",void 0);_.T([_.g(),_.N("design:type",Object)],Q6.prototype,"bannerString",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Q6);
_.O(Q6,"ytd-network-status-banner",function(){if(Sau!==void 0)return Sau;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return Sau=
X},{mode:1});var tyn;var Tm=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};X.hidden=!0;X.frostedGlass=_.P("web_frosted_glass");return X};
_.S(Tm,_.a);Tm.prototype.computeHidden=function(X){return X&&X.status?!1:!0};
Tm.prototype.handleUpdatePermissionRoleCommand=function(X){if(X=_.f(X,_.qRt))if(X=_.f(X.renderer,_.BI9))this.data=X};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Tm.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Tm.prototype,"componentBehavior",void 0);_.T([_.g({value:!0,computed:"computeHidden(data)"}),_.N("design:type",Object)],Tm.prototype,"hidden",void 0);_.T([_.g(),_.N("design:type",Object)],Tm.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Tm.prototype,"frostedGlass",void 0);
_.T([_.sq({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Tm);
_.O(Tm,"ytd-permission-role-bottom-bar-renderer",function(){if(tyn!==void 0)return tyn;var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);return tyn=X},{mode:1});var W$2;var EUz;var hIx={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var N1=function(){return _.a.apply(this,arguments)||this};
_.S(N1,_.a);_.R=N1.prototype;_.R.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")};
_.R.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(l){l.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var X=_.mh(this.hostElement);X.querySelector("tp-yt-paper-radio-group").selected="";var H=X.querySelector("#reason-text");H&&(H.value="");X.querySelector("#description-text").value=""}};
_.R.canSubmit=function(X,H){_.QX(this.hostElement,"yt-invalidate-popup-tabbables");return!(X&&H)};
_.R.onCancel=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.R.onSubmit=function(){var X=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(K){return K.active}).map(function(K){return K.innerText.trim()}),H=this.hostElement.querySelector("tp-yt-paper-radio-group"),l=H.selectedItem,b=l.name;
l=l.innerText.trim();var U=H.querySelector("#reason-text");H=void 0;U&&(H=U.value);(U=this.descriptionText.value)&&(U=U.trim());FLy(this.data.searchQuery,X,b,l,U,H);_.TP(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.R.sendFormSubmitToast=function(){var X=_.Gc(_.XS("SBOX_INAPPROPRIATE_TOAST"));_.TP(this.hostElement,"yt-open-popup-action",[X,this])};
_.R.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(X){return X.active})};
_.R.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
N1.prototype.onIronSelect=N1.prototype.onIronSelect;N1.prototype.onIronChange=N1.prototype.onIronChange;N1.prototype.dataChanged=N1.prototype.dataChanged;_.T([_.g(),_.N("design:type",Object)],N1.prototype,"data",void 0);_.T([_.g({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.N("design:type",Boolean)],N1.prototype,"submitDisabled",void 0);_.T([_.g(),_.N("design:type",Boolean)],N1.prototype,"suggestionSelected",void 0);
_.T([_.g(),_.N("design:type",Boolean)],N1.prototype,"catagorySelected",void 0);_.T([_.A2("#scroller"),_.N("design:type",Object)],N1.prototype,"JSC$22917_scroller",void 0);_.T([_.A2("#description-text"),_.N("design:type",Object)],N1.prototype,"descriptionText",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N1.prototype,"dataChanged",null);
_.T([_.Le("iron-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N1.prototype,"onIronChange",null);_.T([_.Le("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N1.prototype,"onIronSelect",null);_.T([_.sq({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],N1);
_.O(N1,"ytd-search-suggestion-report-dialog",function(){if(EUz!==void 0)return EUz;var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return EUz=X},{mode:1});var cY=function(X){var H=X.openPopupAction;var l=X.target;var b=X.container;var U=X.popupContainerConfig;var K=X.getElement;X=X.removeWhenClosed===void 0?!1:X.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=H;this.target=l;this.container=b;this.popupContainerConfig=U;this.getElement=K;this.JSC$22923_popupConfig=this.popupContainerConfig.JSC$21603_popupConfig[this.openPopupAction.popupType];this.rendererName=(H=this.getName())?_.g$m(H,SPl(this.popupContainerConfig,
H)):"";_.P("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=X);this.createPopup()};
cY.prototype.updatePopup=function(X){this.openPopupAction=X;this.JSC$22923_popupConfig=this.popupContainerConfig.JSC$21603_popupConfig[this.openPopupAction.popupType];gUo(this);_.P("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
cY.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Zdo=function(X,H,l){(H=H&&X.JSC$22923_popupConfig.narrowProperties?X.JSC$22923_popupConfig.narrowProperties:X.JSC$22923_popupConfig.properties)&&l!==void 0&&(H.isAriaModal=l);GZR(X,H);X.isRtl()&&GZR(X,X.JSC$22923_popupConfig.rtlProperties);aAU(X)};
cY.prototype.createPopup=function(){var X=this.JSC$22923_popupConfig.component;if(this.popupContent=idX(this,this.rendererName)){if(X){this.popup=idX(this,X);var H=this.popupContent;_.P("web_enable_wrapper_for_cow_component_in_popup")&&(H=document.createElement("div"),H.appendChild(this.popupContent));_.P("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$22923_popupConfig.slotName&&H.setAttribute("slot",this.JSC$22923_popupConfig.slotName);X=this.popup;var l=this.container.tagName.toLowerCase(),
b=_.gu(H);_.cub(_.a6(X),_.i$(H,l,b));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.P("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.mh(this.container).appendChild(this.popup)}};
var gUo=function(X){var H,l,b=(H=X.openPopupAction.accessibilityData)==null?void 0:(l=H.accessibilityData)==null?void 0:l.label;b&&(X.popup.ariaLabel=b);var U;((U=X.popupContent.polymerController)!=null?U:X.popupContent).data=(0,_.Bb.unsafeClone)(X.openPopupAction.popup[X.getName()]);X.popupContent.duration=vUr(X);X.popupContent.positionType=X.openPopupAction.position;var K=X.openPopupAction.properties;K&&Object.keys(K).forEach(function(w){X.popupContent[w]=K[w]})},GZR=function(X,H){if(H)for(var l=
_.C(Object.keys(H)),b=l.next();!b.done;b=l.next())b=b.value,X.popup[b]=H[b]},aAU=function(X){if(X.openPopupAction.position){var H=X.JSC$22923_popupConfig.positionalProperties&&X.JSC$22923_popupConfig.positionalProperties[X.openPopupAction.position],l=X.JSC$22923_popupConfig.rtlPositionalProperties&&X.JSC$22923_popupConfig.rtlPositionalProperties[X.openPopupAction.position];
H=X.isRtl()&&l?l:H;H.shiftedHorizontalOffset&&(l=X.popup.style.display,X.popup.style.display="block",X.popupContent&&X.popup.positionTarget&&X.popupContent.clientWidth>X.popup.positionTarget.clientWidth&&(H.horizontalOffset=X.popup.positionTarget.clientWidth/2-H.shiftedHorizontalOffset),X.popup.style.display=l);GZR(X,H)}},Odr=function(X,H,l){if(H){for(var b=_.C(Object.keys(H)),U=b.next();!U.done;U=b.next())U=U.value,X.popup.style[U]=H[U];
if(l)for(H=_.C(Object.keys(l)),b=H.next();!b.done;b=H.next())b=b.value,X.popup.style[b]=l[b]}};
cY.prototype.getName=function(){return _.tR(this.openPopupAction.popup,"renderer")||_.tR(this.openPopupAction.popup,"dialog")||_.tR(this.openPopupAction.popup,"model")||void 0};
var vUr=function(X){X=X.openPopupAction.durationHintMs;return X===0?X:Math.max(4E3,X||4E3)};
cY.prototype.isRtl=function(){return _.gx("HTML_DIR")==="rtl"};
var idX=function(X,H){X=X.getElement(H,X.target);X==null&&_.x2(new _.qd("popup getElement returned null",H));return X};var mZ2={};
mZ2.YtPopupContainerBehavior=[_.uJ.YtComponentBehavior,_.rh.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_);_.ap(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Zv(this.hostElement)},
closePopup:function(X){var H=this.createCacheKey(void 0,X);this.popups_[H]&&this.handleClosePopupAction_(void 0,X)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Ss.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Ss.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(X){X.opened&&X.keepBelowPlayer&&this.ensurePopupBelowPlayer(X)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var X in this.popups_){var H=this.popups_[X];if(H.popup.scrollAction==="refit"){var l=H.popup.positionTarget.getBoundingClientRect(),b=H.popup;l=l.top;var U=H;if(!U.naturalHeight){U.popup.hidden=!1;U.popup.style.position="fixed";U.popup.style.top="0px";U.popup.style.left="0px";var K=U.popup.getBoundingClientRect();U.naturalHeight=K.bottom-K.top;U.popup.refit()}b.hidden=!(l>=U.naturalHeight+60);H.popupContent.clientHeight===0&&H.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(X){this.popupContainerConfig=X},
handleOpenPopupAction:function(X,H,l){var b=X.openPopupAction,U=_.jJ().resolve(_.c$(_.sg))&&b.popupType==="TOAST";U&&!b.uniqueId&&(b.uniqueId=Og());if(!_.P("popup_container_parent_target_killswitch")){var K;H=(K=this.getParentTarget(H))!=null?K:H}var w=this.ensurePopup_(b,H);return new _.UA(function(d){w.then(function(B){if(!B)return d();this.maybeCreateNarrowMediaQuery_();var q=this.createCacheKey(B.rendererName,B.openPopupAction.uniqueId);if(b.showOncePerUniqueId){if(this.shownPopupKeys_.has(q))return d();
this.shownPopupKeys_.add(q)}q=this.popups_[q];var u=!(!q||!q.openPopupAction.beReused);u=!!b.reusePopup||u;if(B.popup.opened&&!u){U&&!B.openPopupAction.replacePopup||this.handleClosePopupAction_(B.rendererName,B.openPopupAction.uniqueId);u=b.popupType==="DIALOG"&&!_.P("popup_container_dialog_reopen_killswitch");if(!U&&!u&&q&&q.target==H&&(_.P("popup_container_event_target_check_killswitch")||q.target==l)&&!B.openPopupAction.replacePopup)return d();_.N0(B.popup,function(){this.completeOpenPopupAction_(b,
H,B);d()}.bind(this))}else B.popup.opened?B.updatePopup(b):this.completeOpenPopupAction_(b,H,B),d()}.bind(this))}.bind(this))},
getParentTarget:function(X){if(X&&X instanceof HTMLElement)for(var H=_.C(Object.entries(this.popups_)),l=H.next();!l.done;l=H.next())if(l=_.C(l.value),l.next(),l=l.next().value,this.popupClosesOnClick(l)&&l.popup.contains(X))return l.target},
popupClosesOnClick:function(X){return X.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(X.rendererName.toUpperCase())},
completeOpenPopupAction_:function(X,H,l){l.updatePopup(X);var b=this.narrowMediaQuery_.queryMatches,U=this.isAriaModal;X=this.expandToFullWidth;l.target=H;var K;H=((K=l.target.polymerController)!=null?K:l.target).popupPositionTarget||l.target;l.JSC$22923_popupConfig.targetContainer&&(H=l.container);l.popup.positionTarget=H;l.popupContent.positionTarget=H;aAU(l);l.JSC$22923_popupConfig.forceFocus&&(l.popupContent.style.outline="none");l.popupContent.tabIndex=-1;l.JSC$22923_popupConfig.narrowProperties&&
(l.popup.style.position="static");l.JSC$22923_popupConfig.preventAutonav&&l.popup.setAttribute("prevent-autonav",!0);l.JSC$22923_popupConfig.forceCloseOnOutsideClick&&l.popup.setAttribute("force-close-on-outside-click",!0);Zdo(l,b,U);K={};K.width=X?"100%":"";Odr(l,l.JSC$22923_popupConfig.styles,K);l.isRtl()&&Odr(l,l.JSC$22923_popupConfig.rtlStyles,K);if(!l.openPopupAction.shouldStopParentSignal){var w;X=(w=l.target.polymerController)!=null?w:l.target;(l.popupContent.startForwardingEvents||l.popupContainerConfig.forwardingEnabledPopups.has(l.rendererName))&&
X.parentComponent!==l.popupContent&&l.popupContent!==l.target&&l.target!==document.body&&(l.popupContent.startForwardingEvents?l.popupContent.startForwardingEvents(l.popupContainerConfig.forwardedEvents,l.target):(l.JSC$22923_eventForwarder||(l.JSC$22923_eventForwarder=new _.Yq(l.popupContent)),l.JSC$22923_eventForwarder.start(l.popupContainerConfig.forwardedEvents,l.target)))}l=l.popup;l.addEventListener("iron-overlay-opened",_.J2(this,this.onPopupIronOverlayOpened_));l.addEventListener("iron-overlay-closed",
_.J2(this,this.onPopupIronOverlayClosed_));l.addEventListener("iron-overlay-canceled",_.J2(this,this.onPopupIronOverlayCanceled_));l.addEventListener("yt-refit",_.J2(this,this.refitPopup_));l.addEventListener("yt-invalidate-popup-tabbables",_.J2(this,this.handleInvalidatePopupTabbables_));l.open()},
getPopupDurationMs_:function(X){return X.durationHintMs===0?X.durationHintMs:Math.max(4E3,X.durationHintMs||4E3)},
handleClosePopupAction_:function(X,H){var l=_.P("web_popup_cache_key_killswitch")||!!H;if(X||l){var b=this.createCacheKey(X,H);X=(X=this.popups_[b])&&X.popup}else X=_.B1Q(_.V0);if(X&&X.close){if(H=_.jJ().resolve(_.c$(_.aE)))X.restoreFocusOnClose=H.isKeyBoardInUse();if(X&&X.positionTarget&&!_.P("ytpopup_close_sibling_popups_killswitch")){H=_.C(Object.entries(this.popups_));for(l=H.next();!l.done;l=H.next()){var U=_.C(l.value);l=U.next().value;U=U.next().value;var K=void 0,w=void 0,d=void 0,B=void 0,
q=void 0,u=void 0;X.positionTarget==((K=U)==null?void 0:(w=K.popupContent)==null?void 0:w.positionTarget)&&U.popup&&(!((d=U.popup)==null?0:(B=d.style)==null?0:B.display)||((q=U.popup)==null?void 0:(u=q.style)==null?void 0:u.display)!=="none")&&(K=void 0,(K=U.popup)==null?0:K.close)&&(U.popup.close(),this.removePopup_(U.popup,l))}X&&this.popups_[b]&&(X.close(),this.removePopup_(X,b))}else X.close(),this.removePopup_(X,b)}},
handleClosePopupCommand_:function(X){X.closePopupCommand&&X.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,X.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(X){var H={},l;for(l in this.popups_)if(H={key$jscomp$1247:H.key$jscomp$1247},H.key$jscomp$1247=l,!X||!X.some(function(K){return function(w){return w==K.key$jscomp$1247}}(H))){var b=this.popups_[H.key$jscomp$1247],U=b.popup;
_.jJ().resolve(_.c$(_.sg))&&b.openPopupAction.popupType==="TOAST"||(U&&U.close&&U.close(),this.removePopup_(U,H.key$jscomp$1247))}},
handleClosePopupsAction_:function(X){X.forEach(function(H){var l=this.popups_[H];l&&((l=l.popup)&&l.close&&l.close(),this.removePopup_(l,H))}.bind(this))},
handleGetPopupOpenedAction_:function(X,H){return(H=this.createCacheKey(X,H))&&this.popups_[H]?this.popups_[X].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var X=[],H;for(H in this.popups_){var l=this.popups_[H];l.popup.opened&&X.push(l)}return X},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(X,H){_.P("ytpopup_disable_default_html_caching")&&X&&X.removeWhenClosed&&(_.mh(this.hostElement).removeChild(X),H&&this.popups_[H]&&delete this.popups_[H])},
shouldReusePopup_:function(X){return!(!X||!X.reusePopup)||!(!X||!X.beReused)},
ensurePopup_:function(X,H){this.maybeCreateNarrowMediaQuery_();var l=_.tR(X.popup,"renderer")||_.tR(X.popup,"dialog")||_.tR(X.popup,"model");if(!l)return _.rZ();l=_.g$m(l,SPl(this.popupContainerConfig,l));return _.rZ(this.getAndMaybeCreatePopup_(X,l,H))},
getAndMaybeCreatePopup_:function(X,H,l){var b=this.createCacheKey(H,X.uniqueId);if(this.popups_[b])return this.popups_[b];X=new cY({openPopupAction:X,target:l,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(H)});return this.popups_[b]=X},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(X){return _.P("ytpopup_disable_default_html_caching")?_.P("ytpopup_disable_cache_allowlist")?X&&this.doNotCacheList_.includes(X):X&&X.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",_.J2(this,this.openPopupQueryMatchesChanged_)),_.mh(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(X){X=X.detail.value;for(var H in this.popups_)Zdo(this.popups_[H],X)},
onPopupIronOverlayClosed_:function(X){var H=X.currentTarget,l=_.hFZ(H);l=l.length>0?l[0]:H;if(l.is!=="ytd-reel-watch-while-dialog-renderer"||X.target.is!=="tp-yt-iron-dropdown"){X.detail.popup=H;X.detail.popupRenderer=l;var b,U={context:{openingElement:((b=this.popups_[(l==null?void 0:l.is)||""])==null?void 0:b.target)||void 0}};Object.assign(U,X.detail);var K;_.QX((K=l.hostElement)!=null?K:l,"yt-popup-closed",U);H.removeEventListener("yt-refit",_.J2(this,this.refitPopup_));H.removeEventListener("yt-invalidate-popup-tabbables",
_.J2(this,this.handleInvalidatePopupTabbables_));H.removeEventListener("iron-overlay-canceled",_.J2(this,this.onPopupIronOverlayCanceled_));H.removeEventListener("iron-overlay-closed",_.J2(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(H)}},
onPopupIronOverlayCanceled_:function(X,H){var l=X.currentTarget,b=_.hFZ(l);b=b.length>0?b[0]:l;if(b.is!=="ytd-reel-watch-while-dialog-renderer"||X.target.is!=="tp-yt-iron-dropdown"){var U;_.QX((U=b.hostElement)!=null?U:b,"yt-popup-canceled",X.detail);U=H?_.t2(H):null;(!H||["click","tap"].includes(H.type))&&!l.hasAttribute("force-close-on-outside-click")&&l.positionTarget&&U&&U.includes(l.positionTarget)&&X.preventDefault();l.restoreFocusOnClose=_.Yw.keyboardEventMatchesKeys(H,"esc")}},
onPopupIronOverlayOpened_:function(X){X=X.currentTarget;var H=_.hFZ(X);H=H.length>0?H[0]:X;var l,b;_.QX((l=H.hostElement)!=null?l:H,"yt-popup-opened",(b=H.hostElement)!=null?b:H);X.keepBelowPlayer&&(this.ensurePopupBelowPlayer(X,!0),this.dynamicallyPositionedElements_.add(X));l=_.jJ().resolve(_.c$(_.aE));b=!!H.querySelector("#toast");l&&l.isKeyBoardInUse()&&!b&&(typeof H.focusFirstItem==="function"?H.focusFirstItem():(H=_.dO9(X),H.length&&H[0].focus()));X.removeEventListener("iron-overlay-opened",
_.J2(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(X){X=X.currentTarget;X.refit&&X.refit()},
refitPopups_:function(){for(var X in this.popups_)this.popups_[X].refit()},
handleInvalidatePopupTabbables_:function(X){X=X.currentTarget;X.invalidateTabbables&&X.invalidateTabbables()},
createCacheKey:function(X,H){return _.P("web_popup_cache_key_killswitch")?H?X+"#"+H:X:H?"#"+H:X},
openSheet:function(X,H,l){var b=X==null?void 0:X.openPopupActionCommand;if(!b&&(X==null?0:X.viewModel)){if(X.sheetPosition)a:switch(X.sheetPosition){case "SHEET_POSITION_RIGHT":b="OPEN_POPUP_POSITION_RIGHT";break a;default:b="OPEN_POPUP_POSITION_UNKNOWN"}else b=void 0;b={openPopupAction:{popup:{sheetViewModel:X.viewModel},popupType:"CONTEXTUAL_SHEET",position:b}}}if(b){var U;this.expandToFullWidth=(U=X==null?void 0:X.expandToFullWidth)!=null?U:!1;this.handleOpenPopupAction(b,H,l===void 0?H:l)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var X=this;return _.h(function(H){return H.return(X.handleGetOpenedPopupsAction_().filter(function(l){var b;return((b=l.openPopupAction)==null?void 0:b.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(X,H,l){if(_.P("web_dialog_utils_killswitch")){var b=X==null?void 0:X.openPopupActionCommand,U=(l==null?0:l.ariaLabel)?{accessibilityData:{accessibilityData:{label:l.ariaLabel}}}:void 0;!b&&(X==null?0:X.viewModel)&&(b={openPopupAction:Object.assign({},{popup:{dialogViewModel:X.viewModel},popupType:(l==null?0:l.isModal)?"MODAL":"DIALOG"},U&&U)});b&&this.handleOpenPopupAction(b,H)}else{if(U=X==null?void 0:X.viewModel){var K=l=l===void 0?{}:l;l=K.ariaLabel;U={popup:{dialogViewModel:U},
popupType:K.isModal?"MODAL":"DIALOG"};K={accessibilityData:{label:l}};l&&(U.accessibilityData=K);U={openPopupAction:U}}else U=void 0;if(U=(b=U)!=null?b:X==null?void 0:X.openPopupActionCommand)this.isAriaModal=_.P("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(U,H)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var X=this;return _.h(function(H){return H.return(X.handleGetOpenedPopupsAction_().filter(function(l){var b;return((b=l.openPopupAction)==null?void 0:b.popupType)==="DIALOG"}).length>0)})}}];var QCa;var TYb;var NYn=_.W8(["about:blank"]),jW=function(){var X=_.a.apply(this,arguments)||this;X.isMuted=!1;X.pageLoadTimeoutId=void 0;X.enableA11yFocusFix=_.P("enable_a11y_focus_fix_for_mac_panel_on_desktop");X.moveFocusToContent=function(){X.iframe.focus()};
return X};
_.S(jW,_.a);_.R=jW.prototype;_.R.dataChanged=function(){var X=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var H=this.data.url,l=_.zd(H);_.P("enable_yt_ata_iframe_authuser")?(l=_.zd(H),_.RD(this.iframe,B1U(l))):_.RD(this.iframe,l);this.pageLoadTimeoutId=_.eh(_.qV(),function(){return void X.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.JC({destination:window,iframe:this.iframe,origin:_.LZK(l.toString()),channelName:"ataiframe",onMessage:_.NrH(Ond,function(b){mXZ(b.data)?(b=_.Hu(b.data,1,_.wY,_.vb()),b.length!==1?_.x2(Error("om")):(b=b[0],b===3?(X.isMuted=!0,X.logStateChanged({adMuteRequested:!0})):b===1&&X.close())):_.x2(Error("pm"))}),
onEstablished:function(){X.cancelPageLoadTimeout();X.logStateChanged({pageLoadSucceeded:!0})}})}};
_.R.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.qV().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.R.logStateChanged=function(X){var H;if((H=this.data)==null?0:H.trackingParams)X={adsClientData:{aboutThisAdData:X}},_.lv().stateChanged(this.data.trackingParams,X)};
_.R.close=function(){_.TP(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.handlesPopupClosed=function(X,H){var l=this,b,U;return _.h(function(K){if(K.nextAddress==1)return _.gx("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.TP(l.hostElement,"on-about-this-ad-popup-closed",[l.isMuted,H]),K.jumpTo(0)):X&&qQe(X)?K.yield(s4d(X),4):(l.isMuted&&_.TP(l.hostElement,"yt-mute-ad-action",[l.is,l]),K.jumpTo(0));if(b=K.yieldResult){var w=U=new _.qC(b),d=l.isMuted;w.getOptions().includes("onAboutThisAdPopupClosed")?_.UNH(w,"onAboutThisAdPopupClosed",{isMuted:d,layoutId:H}):_.k$("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.m5(K)})};
_.R.onPopupClosed=function(X){var H=this,l,b;return _.h(function(U){l=_.z8(NYn);_.RD(H.iframe,l);H.cancelPageLoadTimeout();if(!H.data)return U.jumpTo(0);H.ytRendererBehavior.markDirty();b=X.detail.context.openingElement;return U.yield(H.handlesPopupClosed(b,H.data.layoutId),0)})};
_.R.detached=function(){this.cancelPageLoadTimeout()};
_.R.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jW.prototype.onPopupClosed=jW.prototype.onPopupClosed;jW.prototype.dataChanged=jW.prototype.dataChanged;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.T([_.A2("#iframe"),_.N("design:type",HTMLIFrameElement)],jW.prototype,"iframe",void 0);_.T([_.g(),_.N("design:type",Object)],jW.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jW.prototype,"dataChanged",null);
_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype",Promise)],jW.prototype,"onPopupClosed",null);_.T([_.qR({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],jW);
_.O(jW,"yt-about-this-ad-renderer",function(){if(TYb===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;QCa===void 0&&(QCa=document.createElement("template"));var b=QCa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);TYb=X}X=TYb;return X},{mode:2});var cN2;var jC9;var rNR=function(X){var H=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=H.message;"stack"in H&&(this.stack=H.stack);this.maxFileSizeMB=X;Object.setPrototypeOf(this,rNR.prototype)};
_.S(rNR,Error);var JNR=function(X,H){var l=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=l.message;"stack"in l&&(this.stack=l.stack);this.minWidth=X;this.minHeight=H;Object.setPrototypeOf(this,JNR.prototype)};
_.S(JNR,Error);var L$n=function(X){this.requirements=X;this.JSC$22951_maxFileSize=X.maxFileSizeMB*1024*1024},YaA=function(X,H){if(H.size>X.JSC$22951_maxFileSize)throw new rNR(X.requirements.maxFileSizeMB);
};var IA9=function(X,H){this.canvas=X;this.imageEditorBuilder=H};
IA9.prototype.addEventListeners=function(X){var H=function(U){AN$(X,U)};
this.JSC$22957_mouseDownEvent=H;var l=function(U){Xu2(X,U)};
this.JSC$22957_mouseMoveEvent=l;var b=function(){HXn(X)};
this.JSC$22957_mouseUpEvent=b;this.canvas.addEventListener("mousedown",H);this.canvas.addEventListener("mousemove",l);document.addEventListener("mouseup",b)};
IA9.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 lrn=function(X,H){X.removeEventListeners();return new Promise(function(l){var b=new Image;b.crossOrigin="anonymous";b.onload=function(){var U=X.imageEditorBuilder(X.canvas,b);X.addEventListeners(U);l(U)};
b.src=H})},ri=function(X,H,l,b,U,K,w,d){this.canvas=X;
this.image=H;this.requiredRatio=l;this.minImageCropDimension=b;this.minOutputImageResolution=U;this.component=K;this.styleFocusedCorner=d===void 0?!0:d;this.action=2;this.focusedCorner=this.resizeCorner=0;X=this.canvas.getContext("2d");if(!X)throw Error("qm");this.ctx=X;this.canvasMargin=w!=null?w:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;w=this.image;X=this.canvasInnerWidth/w.width;w.height*X>912&&(X=w.width/w.height*912/w.width);w=X;this.scaledImageWidth=this.canvas.width%2?
uKN(this.image.width*w):MHp(this.image.width*w);this.scaledImageHeight=Math.round(this.image.height*w);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;
X=this.image.width/this.image.height;X>this.requiredRatio?(this.JSC$22960_overlayWidth=this.canvas.width%2?uKN(this.scaledImageHeight*this.requiredRatio):MHp(this.scaledImageHeight*this.requiredRatio),this.JSC$22960_overlayMarginRight=this.JSC$22960_overlayMarginLeft=(this.canvas.width-this.JSC$22960_overlayWidth)/2):X<this.requiredRatio&&(this.JSC$22960_overlayHeight=this.canvas.height%2?uKN(this.scaledImageWidth/this.requiredRatio):MHp(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]*w,this.scaledImageWidth);ono(this)};
ri.prototype.getContext=function(){return this.ctx};
var AN$=function(X,H){H={x:Math.round(H.pageX-X.canvas.getBoundingClientRect().left),y:Math.round(H.pageY-X.canvas.getBoundingClientRect().top)};X.dragStart=H;bXX(X,H)!==0?(X.action=1,Ua9(X,H),X.resizeCorner=bXX(X,H)):H.x>X.JSC$22960_overlayMarginLeft&&H.x<X.JSC$22960_overlayMarginLeft+X.JSC$22960_overlayWidth&&H.y>X.JSC$22960_overlayMarginTop&&H.y<X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight&&(X.action=0)},$ao=function(X,H){switch(H){case 1:return{x:X.JSC$22960_overlayMarginLeft,
y:X.JSC$22960_overlayMarginTop};case 2:return{x:X.JSC$22960_overlayMarginLeft,y:X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight};case 3:return{x:X.JSC$22960_overlayMarginLeft+X.JSC$22960_overlayWidth,y:X.JSC$22960_overlayMarginTop};case 4:return{x:X.JSC$22960_overlayMarginLeft+X.JSC$22960_overlayWidth,y:X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight};default:throw Error("rm");}},RuX=function(X,H){if(X.focusedCorner!==0){X.dragStart=$ao(X,X.focusedCorner);
X.action=1;X.resizeCorner=X.focusedCorner;var l=X.dragStart.x,b=X.dragStart.y;switch(H){case 0:X.focusedCorner===1||X.focusedCorner===4?(l-=10,b-=10):(l-=10,b+=10);break;case 1:X.focusedCorner===1||X.focusedCorner===4?(l+=10,b+=10):(l+=10,b-=10);break;case 2:l=X.focusedCorner===1||X.focusedCorner===4?l-10:l+10;b-=10;break;case 3:l=X.focusedCorner===1||X.focusedCorner===4?l+10:l-10;b+=10;break;default:throw Error("sm");}Kz$(X,{x:l,y:b});ono(X);X.action=2;X.dragStart=void 0}},Xu2=function(X,H){H={x:Math.round(H.pageX-
X.canvas.getBoundingClientRect().left),
y:Math.round(H.pageY-X.canvas.getBoundingClientRect().top)};Ua9(X,H);switch(X.action){case 1:Kz$(X,H);break;case 0:X.dragStart&&(X.JSC$22960_overlayMarginLeft=Math.max(X.horizontalMargin,Math.min(X.JSC$22960_overlayMarginLeft-(X.dragStart.x-H.x),X.horizontalMargin+X.scaledImageWidth-X.JSC$22960_overlayWidth)),X.JSC$22960_overlayMarginRight=X.canvas.width-X.JSC$22960_overlayMarginLeft-X.JSC$22960_overlayWidth,X.JSC$22960_overlayMarginTop=Math.max(X.canvasMargin,Math.min(X.JSC$22960_overlayMarginTop-
(X.dragStart.y-H.y),X.scaledImageHeight-X.JSC$22960_overlayHeight+X.canvasMargin)),X.JSC$22960_overlayMarginBottom=X.canvas.height-(X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight));break;default:return}ono(X);X.dragStart=H},HXn=function(X){X.action=2;
X.dragStart=void 0;document.body.style.cursor="auto"},Ua9=function(X,H){switch(bXX(X,H)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:X.action!==1&&(document.body.style.cursor="auto")}},bXX=function(X,H){var l=X.JSC$22960_overlayMarginLeft-5,b=X.JSC$22960_overlayMarginTop-5,U=X.JSC$22960_overlayMarginLeft+X.JSC$22960_overlayWidth-5;
X=X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight-5;return CRb(H,{x:l,y:b})?1:CRb(H,{x:U,y:b})?3:CRb(H,{x:l,y:X})?2:CRb(H,{x:U,y:X})?4:0},CRb=function(X,H){return X.x>=H.x&&X.x<=H.x+10&&X.y>=H.y&&X.y<=H.y+10},Kz$=function(X,H){if(X.dragStart)switch(X.resizeCorner){case 2:Math.abs((X.JSC$22960_overlayMarginLeft+X.JSC$22960_overlayWidth-H.x)/(H.y-X.JSC$22960_overlayMarginTop))>=X.requiredRatio?wuR(X,H.x):daX(X,H.y);
break;case 1:Math.abs((X.JSC$22960_overlayMarginLeft+X.JSC$22960_overlayWidth-H.x)/(X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight-H.y))>=X.requiredRatio?huU(X,H.x):daX(X,H.y);break;case 4:Math.abs((H.x-X.JSC$22960_overlayMarginLeft)/(H.y-X.JSC$22960_overlayMarginTop))>=X.requiredRatio?wuR(X,H.x):Fzo(X,H.y);break;case 3:Math.abs((H.x-X.JSC$22960_overlayMarginLeft)/(X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight-H.y))>=X.requiredRatio?huU(X,H.x):Fzo(X,H.y);break;default:throw Error("tm");
}},wuR=function(X,H){var l=X.JSC$22960_overlayMarginTop;
X.JSC$22960_overlayMarginBottom=BoX(X,H);X.JSC$22960_overlayHeight=X.canvas.height-X.JSC$22960_overlayMarginBottom-l;X.JSC$22960_overlayWidth=Math.round(X.JSC$22960_overlayHeight*X.requiredRatio);qUR(X)},huU=function(X,H){var l=X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight;
X.JSC$22960_overlayMarginTop=BoX(X,H);X.JSC$22960_overlayHeight=l-X.JSC$22960_overlayMarginTop;X.JSC$22960_overlayWidth=Math.round(X.JSC$22960_overlayHeight*X.requiredRatio);qUR(X)},qUR=function(X){switch(X.resizeCorner){case 2:case 1:X.JSC$22960_overlayMarginLeft=X.canvas.width-X.JSC$22960_overlayMarginRight-X.JSC$22960_overlayWidth;
break;case 4:case 3:X.JSC$22960_overlayMarginRight=X.canvas.width-X.JSC$22960_overlayMarginLeft-X.JSC$22960_overlayWidth;break;default:throw Error("tm");}},daX=function(X,H){var l=X.JSC$22960_overlayMarginLeft+X.JSC$22960_overlayWidth;
X.JSC$22960_overlayMarginLeft=s$n(X,H);X.JSC$22960_overlayWidth=l-X.JSC$22960_overlayMarginLeft;X.JSC$22960_overlayHeight=Math.round(X.JSC$22960_overlayWidth/X.requiredRatio);MAu(X)},Fzo=function(X,H){var l=X.JSC$22960_overlayMarginLeft;
X.JSC$22960_overlayMarginRight=s$n(X,H);X.JSC$22960_overlayWidth=X.canvas.width-X.JSC$22960_overlayMarginRight-l;X.JSC$22960_overlayHeight=Math.round(X.JSC$22960_overlayWidth/X.requiredRatio);MAu(X)},MAu=function(X){switch(X.resizeCorner){case 2:case 4:X.JSC$22960_overlayMarginBottom=X.canvas.height-X.JSC$22960_overlayMarginTop-X.JSC$22960_overlayHeight;
break;case 1:case 3:X.JSC$22960_overlayMarginTop=X.canvas.height-X.JSC$22960_overlayMarginBottom-X.JSC$22960_overlayHeight;break;default:throw Error("tm");}},BoX=function(X,H){switch(X.resizeCorner){case 2:H=X.canvas.height-(X.JSC$22960_overlayMarginTop+u9A(X,H));
break;case 4:H=X.canvas.height-(X.JSC$22960_overlayMarginTop+eun(X,H));break;case 1:H=X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight-u9A(X,H);break;case 3:H=X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight-eun(X,H);break;default:throw Error("tm");}return Math.max(H,X.canvasMargin)},u9A=function(X,H){H=X.JSC$22960_overlayMarginLeft+X.JSC$22960_overlayWidth-Math.max(H,X.horizontalMargin);
H=H<0?X.JSC$22960_overlayWidth:Math.max(H,X.minOverlayWidth);return Math.round(H/X.requiredRatio)},eun=function(X,H){H=X.canvas.width-Math.max(X.canvas.width-H,X.horizontalMargin)-X.JSC$22960_overlayMarginLeft;
H=H<0?X.JSC$22960_overlayWidth:Math.max(H,X.minOverlayWidth);return Math.round(H/X.requiredRatio)},s$n=function(X,H){switch(X.resizeCorner){case 2:H=X.canvas.width-X.JSC$22960_overlayMarginRight-ybU(X,H);
break;case 4:H=X.canvas.width-X.JSC$22960_overlayMarginLeft-ybU(X,H);break;case 1:H=X.canvas.width-X.JSC$22960_overlayMarginRight-VAz(X,H);break;case 3:H=X.canvas.width-X.JSC$22960_overlayMarginLeft-VAz(X,H);break;default:throw Error("tm");}return Math.max(H,X.horizontalMargin)},ybU=function(X,H){H=X.canvas.height-Math.max(X.canvas.height-H,X.canvasMargin)-X.JSC$22960_overlayMarginTop;
return H<0?X.JSC$22960_overlayWidth:Math.max(Math.round(H*X.requiredRatio),X.minOverlayWidth)},VAz=function(X,H){H=X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight-Math.max(H,X.canvasMargin);
return H<0?X.JSC$22960_overlayWidth:Math.max(Math.round(H*X.requiredRatio),X.minOverlayWidth)},ono=function(X){X.ctx.clearRect(0,0,X.canvas.width,X.canvas.height);
X.ctx.drawImage(X.image,0,0,X.image.width,X.image.height,X.horizontalMargin,X.canvasMargin,X.canvas.width-2*X.horizontalMargin,X.scaledImageHeight);X.ctx.fillStyle="rgba(0, 0, 0, 0.7)";X.ctx.fillRect(X.horizontalMargin,X.JSC$22960_overlayMarginTop,X.JSC$22960_overlayMarginLeft-X.horizontalMargin,X.JSC$22960_overlayHeight);X.ctx.fillRect(X.JSC$22960_overlayMarginLeft+X.JSC$22960_overlayWidth,X.JSC$22960_overlayMarginTop,X.JSC$22960_overlayMarginRight-X.horizontalMargin,X.JSC$22960_overlayHeight);X.ctx.fillRect(X.horizontalMargin,
X.canvasMargin,X.scaledImageWidth,X.JSC$22960_overlayMarginTop-X.canvasMargin);X.ctx.fillRect(X.horizontalMargin,X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight,X.scaledImageWidth,X.JSC$22960_overlayMarginBottom-X.canvasMargin);X.drawOverlay();X.component&&_.QX(X.component,"image-updated")};
ri.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);PR2(this)};
var PR2=function(X){var H=X.JSC$22960_overlayMarginLeft-5,l=X.JSC$22960_overlayMarginTop-5,b=X.JSC$22960_overlayMarginLeft+X.JSC$22960_overlayWidth-5,U=X.JSC$22960_overlayMarginTop+X.JSC$22960_overlayHeight-5;X.ctx.fillStyle="#FFF";X.ctx.fillRect(H,l,10,10);X.ctx.strokeRect(H,l,10,10);X.ctx.fillRect(b,l,10,10);X.ctx.strokeRect(b,l,10,10);X.ctx.fillRect(H,U,10,10);X.ctx.strokeRect(H,U,10,10);X.ctx.fillRect(b,U,10,10);X.ctx.strokeRect(b,U,10,10);if(X.focusedCorner!==0&&X.styleFocusedCorner){X.ctx.lineWidth=
4;X.ctx.strokeStyle="#3EA6FF";switch(X.focusedCorner){case 1:--H;--l;break;case 2:--H;l=U-1;break;case 3:H=b-1;--l;break;case 4:H=b-1;l=U-1;break;default:return}X.ctx.strokeRect(H,l,12,12)}};
ri.prototype.crop=function(X,H){H=H===void 0?!0:H;var l=this.image.width/this.scaledImageWidth,b=document.createElement("canvas"),U=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],K=this.JSC$22960_overlayWidth*l,w=this.JSC$22960_overlayHeight*l;b.width=Math.max(K,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);b.height=Math.max(w,U);X&&(b.width=Math.min(b.width,b.height),b.height=Math.min(b.width,b.height));
X=b.getContext("2d");if(!X)throw Error("hm");U=(this.JSC$22960_overlayMarginLeft-this.horizontalMargin)*l;l*=this.JSC$22960_overlayMarginTop-this.canvasMargin;H||(X.fillStyle="white",X.fillRect(0,0,b.width,b.height));X.drawImage(this.image,U,l,K,w,0,0,b.width,b.height);return b};var fr$=function(X,H,l,b,U){ri.call(this,X,H,l,b,void 0,U,8,!1)};
_.S(fr$,ri);fr$.prototype.drawOverlay=function(){var X=this.getContext(),H=this.JSC$22960_overlayWidth,l=this.JSC$22960_overlayHeight,b=this.JSC$22960_overlayMarginTop,U=this.JSC$22960_overlayMarginLeft;X.lineWidth=2;X.strokeStyle="#3EA6FF";X.beginPath();X.arc(U+H/2,b+l/2,H/2,0,2*Math.PI);X.stroke();X.strokeRect(U,b,H,l);PR2(this)};
var pu2={maxFileSizeMB:15,minWidth:98,minHeight:98},SU$=["image/png","image/jpeg","image/gif"],Jm=function(){var X=_.a.apply(this,arguments)||this;X.fileSelectorFocusListener=null;X.errorMessage=null;X.isLoading=!0;X.hideContainer=!0;X.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return X};
_.S(Jm,_.a);_.R=Jm.prototype;_.R.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.R.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.R.computePlaylistThumbnail=function(X){return X==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.R.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.TP(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.R.setErrorState=function(X){this.resetErrorState();X&&(this.errorMessage=X)};
_.R.showPopup=function(){var X=this;this.hideContainer=!1;_.eh(_.Ss,function(){_.QX(X.hostElement,"yt-refit")});
this.isLoading=!1};
_.R.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.R.closePopup=function(){this.resetFileSelector();_.TP(this.hostElement,"yt-close-popup-action",[this.is])};
_.R.onCancelTap=function(){this.isPlaylistThumbnail||_.TP(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.R.openFileSelector=function(){var X=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.eh(_.Ss,function(){setTimeout(function(){if(!X.fileSelector.files||X.fileSelector.files.length===0)X.onCancelTap();X.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(H){H instanceof Error?_.n2(H):_.k2(new _.qd(JSON.stringify(H)))}};
_.R.handleFileSelection=function(){var X=this,H,l,b,U,K,w;return _.h(function(d){switch(d.nextAddress){case 1:_.Ew(d,2);if(!X.fileSelector.files||!X.imageEditorCanvas)return X.onCancelTap(),d.return();H=X.fileSelector.files[0];YaA(X.imageChecker,H);_.Ew(d,4);return d.yield(GbN(H),6);case 6:X.mimeType=d.yieldResult;_.Zt(d,5,2);break;case 4:_.Ow(d,2),_.TP(X.hostElement,"yt-image-selection-error-action",[(l=X.data)==null?void 0:l.genericImageLoadErrorMessage]),X.onCancelTap();case 5:b=new FileReader;
b.addEventListener("load",function(){var B,q;return _.h(function(u){if(u.nextAddress==1){if(!b.result)return _.x2(Error("jm")),u.return();B=b.result;q=new Image;q.src=B;q.onload=function(){try{var e=X.imageChecker;if(q.width<e.requirements.minWidth||q.height<e.requirements.minHeight)throw new JNR(e.requirements.minWidth,e.requirements.minHeight);}catch(V){if(V instanceof JNR){var y;_.TP(X.hostElement,"yt-image-selection-error-action",[(y=X.data)==null?void 0:y.imageDimensionErrorMessage]);X.logImageDimensionErrorVe()}else V instanceof
Error?_.n2(V):(e=new _.qd(JSON.stringify(V)),_.n2(e));X.onCancelTap()}X.showPopup()};
q.onerror=function(){var e;_.TP(X.hostElement,"yt-image-selection-error-action",[(e=X.data)==null?void 0:e.genericImageLoadErrorMessage]);X.onCancelTap()};
return u.yield(lrn(X.imageEditorCanvas,B),2)}X.imageEditor=u.yieldResult;X.updatePositionOfAllCorners();X.addEventListeners(X.imageEditor);_.m5(u)})},!1);
b.readAsDataURL(H);_.Zt(d,0);break;case 2:U=_.Ow(d),U instanceof rNR?_.TP(X.hostElement,"yt-image-selection-error-action",[(K=X.data)==null?void 0:K.imageSizeErrorMessage]):(U instanceof Error?_.n2(U):_.k2(new _.qd(JSON.stringify(U))),_.TP(X.hostElement,"yt-image-selection-error-action",[(w=X.data)==null?void 0:w.genericImageLoadErrorMessage])),X.onCancelTap(),_.m5(d)}})};
_.R.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var X=_.H5(_.lv(),{veType:232707,visualElement:_.cS(232707)});X&&(X={visualElement:X},_.AF().reportShown(X))}};
_.R.handleImageSelectionErrorAction=function(X){this.isPlaylistThumbnail&&_.g_O(this.hostElement,X)};
_.R.convertToImageFormatBundle=function(X){var H=this,l,b,U;return _.h(function(K){switch(K.nextAddress){case 1:return l=X.toDataURL(H.outputMimeType,1),K.yield(aUl(l),2);case 2:b=K.yieldResult;_.Ew(K,3);YaA(H.imageChecker,b);_.Zt(K,4);break;case 3:U=_.Ow(K);if(!(U instanceof rNR))throw U;_.x2(new _.qd("Output size is bigger than input size for image",H.mimeType,H.outputMimeType,b.size));l=X.toDataURL("image/jpeg",.95);return K.yield(aUl(l),6);case 6:b=K.yieldResult;case 4:return K.return({dataUrl:l,
imageFile:b})}})};
_.R.handleUploadImageToScottyCommand=function(X){var H=this,l,b,U,K,w,d,B,q,u,e;return _.h(function(y){switch(y.nextAddress){case 1:if(!H.imageEditor||!_.f(X,eay))return y.return();l=_.f(X,eay).scottyUploadUrl;if(!l){var V=new _.qd("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.n2(V);return y.return()}_.Ew(y,2);H.setLoadingState();b=H.imageEditor.crop(!1,!1);return y.yield(H.convertToImageFormatBundle(b),4);case 4:return U=y.yieldResult,y.yield(EgZ(U.imageFile,l),5);
case 5:K=y.yieldResult;((w=H.data)==null?0:w.onUploadEndpoint)?(d=H.buildUploadServiceEndpoint(K),H.ytComponentBehavior.resolveCommand(d),B=_.f(d,_.MI),((q=B)==null?0:q.params)?H.closePopup():H.resetFileSelector()):(_.TP(H.hostElement,"yt-image-updated-action",[U.dataUrl,K]),H.closePopup());_.Zt(y,0);break;case 2:u=_.Ow(y),H.setErrorState((e=H.data)==null?void 0:e.uploadErrorMessage),u instanceof Error?_.n2(u):(V=new _.qd(JSON.stringify(u)),_.n2(V)),_.m5(y)}})};
_.R.buildUploadServiceEndpoint=function(X){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",X),this.data.onUploadEndpoint):null};
_.R.dataChanged=function(){var X=this,H;return _.h(function(l){if(l.nextAddress==1){if(!X.data||!X.canvasElement)return l.return();X.data.imageRatio&&X.data.minImageCropWidth||_.k2(new _.qd("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));H=function(b,U){return X.data.imageType==="IMAGE_TYPE_AVATAR"?new fr$(b,U,X.data.imageRatio,[X.data.minImageCropWidth,X.data.minImageCropWidth/X.data.imageRatio],X.hostElement):new ri(b,U,X.data.imageRatio,[X.data.minImageCropWidth,
X.data.minImageCropWidth/X.data.imageRatio],void 0,X.hostElement,8,!1)};
X.imageEditorCanvas=new IA9(X.canvasElement,H);return X.data.url?l.yield(lrn(X.imageEditorCanvas,X.data.url),3):(X.hideContainer=!0,X.openFileSelector(),l.jumpTo(0))}X.imageEditor=l.yieldResult;X.showPopup();X.addEventListeners(X.imageEditor);_.m5(l)})};
_.R.addEventListeners=function(X){this.removeEventListeners();var H=function(U){AN$(X,U)};
this.JSC$22968_mouseDownEvent=H;var l=function(U){Xu2(X,U)};
this.JSC$22968_mouseMoveEvent=l;var b=function(){HXn(X)};
this.JSC$22968_mouseUpEvent=b;this.topLeftCorner.addEventListener("mousedown",H);this.topLeftCorner.addEventListener("mousemove",l);this.topLeftCorner.addEventListener("mouseup",b);this.topRightCorner.addEventListener("mousedown",H);this.topRightCorner.addEventListener("mousemove",l);this.topRightCorner.addEventListener("mouseup",b);this.bottomLeftCorner.addEventListener("mousedown",H);this.bottomLeftCorner.addEventListener("mousemove",l);this.bottomLeftCorner.addEventListener("mouseup",b);this.bottomRightCorner.addEventListener("mousedown",
H);this.bottomRightCorner.addEventListener("mousemove",l);this.bottomRightCorner.addEventListener("mouseup",b)};
_.R.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))};
_.R.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var X=document.activeElement;X&&X.shadowRoot&&X.shadowRoot.activeElement;)X=X.shadowRoot.activeElement;switch(X){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};
_.R.updatePositionOfCorner=function(X,H){var l=X.y-H.offsetHeight/2+4;H.style.left=X.x-H.offsetWidth/2+16+"px";H.style.top=l+"px"};
_.R.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var X=_.C([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),H=X.next();!H.done;H=X.next()){H=H.value;var l=$ao(this.imageEditor,H.corner);this.updatePositionOfCorner(l,H.div)}};
_.R.onLeft=function(X){this.imageEditor&&this.setFocusInImageEditor()&&(RuX(this.imageEditor,0),this.updatePositionOfAllCorners(),X.preventDefault())};
_.R.onRight=function(X){this.imageEditor&&this.setFocusInImageEditor()&&(RuX(this.imageEditor,1),this.updatePositionOfAllCorners(),X.preventDefault())};
_.R.onUp=function(X){this.imageEditor&&this.setFocusInImageEditor()&&(RuX(this.imageEditor,2),this.updatePositionOfAllCorners(),X.preventDefault())};
_.R.onDown=function(X){this.imageEditor&&this.setFocusInImageEditor()&&(RuX(this.imageEditor,3),this.updatePositionOfAllCorners(),X.preventDefault())};
_.R.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.ja.Object.defineProperties(Jm.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&SU$.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var X,H,l;((H=this.data)==null?0:H.imageRatio)&&((l=this.data)==null?0:l.minImageCropWidth)?X={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:X=pu2;return new L$n(X)}}});
Jm.prototype.updatePositionOfAllCorners=Jm.prototype.updatePositionOfAllCorners;Jm.prototype.dataChanged=Jm.prototype.dataChanged;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Jm.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Jm.prototype,"ytComponentBehavior",void 0);_.T([_.k(_.Yw),_.N("design:type",Object)],Jm.prototype,"ironA11yKeysBehavior",void 0);
_.T([_.A2("#canvas"),_.N("design:type",HTMLCanvasElement)],Jm.prototype,"canvasElement",void 0);_.T([_.A2("#file-selector"),_.N("design:type",HTMLInputElement)],Jm.prototype,"fileSelector",void 0);_.T([_.A2("#top-left-corner"),_.N("design:type",HTMLDivElement)],Jm.prototype,"topLeftCorner",void 0);_.T([_.A2("#top-right-corner"),_.N("design:type",HTMLDivElement)],Jm.prototype,"topRightCorner",void 0);
_.T([_.A2("#bottom-left-corner"),_.N("design:type",HTMLDivElement)],Jm.prototype,"bottomLeftCorner",void 0);_.T([_.A2("#bottom-right-corner"),_.N("design:type",HTMLDivElement)],Jm.prototype,"bottomRightCorner",void 0);_.T([_.g(),_.N("design:type",Object)],Jm.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Jm.prototype,"errorMessage",void 0);_.T([_.g(),_.N("design:type",Object)],Jm.prototype,"isLoading",void 0);_.T([_.g(),_.N("design:type",Object)],Jm.prototype,"hideContainer",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.N("design:type",Boolean)],Jm.prototype,"isPlaylistThumbnail",void 0);_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],Jm.prototype,"dataChanged",null);_.T([_.Le("image-updated"),_.Le("yt-refit"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jm.prototype,"updatePositionOfAllCorners",null);
_.T([_.qR({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Jm);
_.O(Jm,"yt-image-editor-renderer",function(){if(jC9===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;cN2===void 0&&(cN2=document.createElement("template"));var b=cN2;l.call(H,b.content.cloneNode(!0),X.content.firstChild);jC9=X}X=jC9;return X},{mode:2});var zuR;var nnr;var Lo=function(){return _.a.apply(this,arguments)||this};
_.S(Lo,_.a);Lo.prototype.updateMinutesFromBinding=function(X){this.handleMinutesChanged&&this.handleMinutesChanged(X)};
Lo.prototype.updateSecondsFromBinding=function(X){this.handleSecondsChanged&&this.handleSecondsChanged(X)};
Lo.prototype.updateDescriptionFromBinding=function(X){this.handleDescriptionChanged&&this.handleDescriptionChanged(X)};
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],Lo.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Lo.prototype,"data",void 0);_.T([_.g(),_.N("design:type",String)],Lo.prototype,"minutes",void 0);_.T([_.g(),_.N("design:type",String)],Lo.prototype,"seconds",void 0);_.T([_.g(),_.N("design:type",String)],Lo.prototype,"description",void 0);_.T([_.g(),_.N("design:type",Function)],Lo.prototype,"handleMinutesChanged",void 0);
_.T([_.g(),_.N("design:type",Function)],Lo.prototype,"handleSecondsChanged",void 0);_.T([_.g(),_.N("design:type",Function)],Lo.prototype,"handleDescriptionChanged",void 0);_.T([_.g(),_.N("design:type",Number)],Lo.prototype,"characterLimit",void 0);_.T([_.g(),_.N("design:type",Number)],Lo.prototype,"textNumRows",void 0);_.T([_.qR({is:"yt-report-details-form-content",disableElementRegistration:!0})],Lo);
_.O(Lo,"yt-report-details-form-content",function(){if(nnr===void 0){var X=document.createElement("template");_.n(X,'\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>');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;zuR===void 0&&(zuR=document.createElement("template"));var b=zuR;l.call(H,b.content.cloneNode(!0),X.content.firstChild);nnr=X}X=nnr;return X},{mode:2});var k2U;var xab;var YA=function(){var X=_.a.apply(this,arguments)||this;X.updateMinutesFromBinding=function(H){X.minutes=H.detail.value};
X.updateSecondsFromBinding=function(H){X.seconds=H.detail.value};
X.updateDescriptionFromBinding=function(H){X.description=H.detail.value};
return X};
_.S(YA,_.a);_.R=YA.prototype;_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.R.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"}}}};
_.R.ready=function(){_.mh(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.R.onSubmitYtAction=function(X){var H=X.detail;H.actionName==="yt-service-request"&&(H=H.args[1],H.flagEndpoint&&(X.stopPropagation(),this.refireAction(H)))};
_.R.refireAction=function(X){var H={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(H.vss_id=this.vssId);_.ci(this.hostElement,[X,H]);this.submitDisabled=!0};
_.R.dataChanged=function(){var X=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var H=_.aq();H&&H.getPlayerPromise().then(function(l){var b=l.getOption("cc","track")||l.getOption("captions","track");b&&(X.vssId=b.vss_id);l=l.getCurrentTime();X.minutes=Math.floor(l/60).toString();X.seconds=(Math.floor(l)%60).toString()})};
_.R.updateSubmitButtonState=function(){var X;((X=this.data)==null?0:X.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==="")};
_.R.onYtServiceRequestCompleted=function(){_.TP(this.hostElement,"yt-close-popup-action")};
_.R.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.ja.Object.defineProperties(YA.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var X;return((X=this.data)==null?void 0:X.textNumRows)||4}}});
YA.prototype.onYtServiceRequestError=YA.prototype.onYtServiceRequestError;YA.prototype.onYtServiceRequestCompleted=YA.prototype.onYtServiceRequestCompleted;YA.prototype.updateSubmitButtonState=YA.prototype.updateSubmitButtonState;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);
_.T([_.g({observer:"dataChanged"}),_.N("design:type",Object)],YA.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Boolean)],YA.prototype,"submitDisabled",void 0);_.T([_.g(),_.N("design:type",String)],YA.prototype,"minutes",void 0);_.T([_.g(),_.N("design:type",String)],YA.prototype,"seconds",void 0);_.T([_.g(),_.N("design:type",String)],YA.prototype,"description",void 0);_.T([_.g(),_.N("design:type",String)],YA.prototype,"vssId",void 0);
_.T([_.g({value:_.gx("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.N("design:type",Boolean)],YA.prototype,"isMusic",void 0);_.T([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],YA.prototype,"characterLimit",null);_.T([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],YA.prototype,"textNumRows",null);
_.T([_.oi("minutes","seconds","description","submitDisabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YA.prototype,"updateSubmitButtonState",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YA.prototype,"onYtServiceRequestCompleted",null);
_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YA.prototype,"onYtServiceRequestError",null);_.T([_.qR({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],YA);
_.O(YA,"yt-report-details-form-renderer",function(){if(xab===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;k2U===void 0&&(k2U=document.createElement("template"));var b=k2U;l.call(H,b.content.cloneNode(!0),X.content.firstChild);xab=X}X=xab;return X});var Dao;var tA$;var Wz2;var Enn;var I9=function(){return _.a.apply(this,arguments)||this};
_.S(I9,_.a);
I9.prototype.onCheckedChanged_=function(){if(this.data){var X=_.mh(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.TP(this.hostElement,"yt-additional-detail-checkbox-update",[X]):this.data.identifier==="yt-hide-user-checkbox"?_.TP(this.hostElement,"yt-hide-user-checkbox-update",[X]):X&&this.data.enableCommand?_.TP(this.hostElement,"yt-modify-report-form-command",[_.f(this.data.enableCommand,mCZ)]):!X&&this.data.disableCommand&&_.TP(this.hostElement,
"yt-modify-report-form-command",[_.f(this.data.enableCommand,mCZ)])}};
I9.prototype.onLabelTap_=function(X){X.target.tagName!="A"&&(_.mh(this.hostElement).querySelector("#checkbox").checked=!_.mh(this.hostElement).querySelector("#checkbox").checked)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],I9.prototype,"data",void 0);_.T([_.qR({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],I9);
_.O(I9,"yt-boolean-form-field-v2-renderer",function(){if(Enn===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Wz2===void 0&&(Wz2=document.createElement("template"));var b=Wz2;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Enn=X}X=Enn;return X});var Am=function(){var X=_.a.apply(this,arguments)||this;X.canShowAdditionalDetailCheckbox=!1;X.canShowCheckbox=!1;X.keepDropdownFocusedAfterSelection=!0;return X};
_.S(Am,_.a);Am.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([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Am.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],Am.prototype,"canShowAdditionalDetailCheckbox",void 0);_.T([_.g(),_.N("design:type",Object)],Am.prototype,"canShowCheckbox",void 0);_.T([_.g(),_.N("design:type",Object)],Am.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.T([_.qR({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Am);
_.O(Am,"yt-report-form-modal-content",function(){if(tA$===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Dao===void 0&&(Dao=document.createElement("template"));var b=Dao;l.call(H,b.content.cloneNode(!0),X.content.firstChild);tA$=X}X=tA$;return X},{mode:2});var gnu;var G2r;var Xq=function(){var X=_.a.apply(this,arguments)||this;X.submitting=!1;X.submitButtonDisabled=!0;X.command=null;X.canShowCheckbox=!1;X.canShowAdditionalDetailCheckbox=!1;X.canShowNextButton=!1;X.additionalDetailCheckboxChecked=!1;X.refitJob=0;X.keepDropdownFocusedAfterSelection=!0;X.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 X};
_.S(Xq,_.a);_.R=Xq.prototype;_.R.created=function(){this.refitJob=0};
_.R.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")};
_.R.dataChanged=function(X){X&&(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,X.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),X.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.R.onYtPopupOpened=function(){var X=_.aq();X&&X.getPlayerPromise().then(function(H){H.pauseVideo()})};
_.R.onYtNavigate=function(X){_.f(X.detail.endpoint,_.WYH)&&(X.stopPropagation(),this.hideReportForm=!0)};
_.R.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.R.onYtServiceRequestCompleted=function(X,H){var l=H.actions;if(l){if(l.length===1&&_.f(l[0],_.J$)){var b;l=((b=_.f(l[0],_.J$))==null?void 0:b.commands)||[]}b=0;for(var U=l.length;b<U;b++)_.f(l[b],_.by)&&(X.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(l[b]))}if(H.data&&(X=this.get("feedbackResponses",H.data)))for(H=0;H<X.length;H++)if(X[H].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.R.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.R._onDescendantIronResize=function(X){X.stopPropagation();return!1};
_.R.handleReportFormEndpointUpdateAction=function(X){if(X.submitEndpoint){var H=this.command=X.submitEndpoint;H=_.f(H,_.tcQ);if(H==null?0:H.additionalDetailCheckboxChecked)H.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else X.submitNavigationEndpoint?(this.command=X.submitNavigationEndpoint,this.toggleSubmitButton(!1)):X.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:X.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;X.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",X));this.refit()};
_.R.handleConfirmDialogCloseAction=function(X){X.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.R.submitButtonDisabledChanged=function(){var X=this.hostElement.parentElement;X&&X.invalidateTabbables&&X.invalidateTabbables()};
_.R.handleModifyReportFormCommand=function(X){X=this.get("action",X);X==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:X==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:X==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:X==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:X==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:X==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.R.updateDialogStyling=function(){var X,H,l,b,U,K=((U=(X=this.data)==null?void 0:(H=X.optionsSupportedRenderers)==null?void 0:(l=H.optionsRenderer)==null?void 0:(b=l.items)==null?void 0:b.length)!=null?U:0)<=2?0:240;_.j4(this.hostElement,{"--yt-report-form-modal-renderer-min-width":K+"px"})};
_.R.toggleSubmitButton=function(X){this.submitButtonDisabled=!X;this.submitButtonDisabled=X};
_.R.computeSubmitButtonData=function(X,H){var l={};_.f(H,_.WYH)?l.navigationEndpoint=H:l.command=H||void 0;X&&X.buttonRenderer&&_.Bb.extend(l,X.buttonRenderer);return l};
_.R.computeNextButtonData=function(X,H){var l={};if(!X||!X.buttonRenderer)return l;_.Bb.extend(l,X.buttonRenderer);if(!H)return l;if(_.f(H,_.WYH))l.navigationEndpoint=q8C(H);else if(l.command=q8C(H),X=_.f(l.command,_.tcQ))X.legalCheckboxChecked=!0;return l};
_.R.computeShowNextButton=function(X,H,l){return!!X&&H&&l};
_.R.refit=function(){var X=this;this.refitJob||(this.refitJob=_.Ss.addLowPriorityJob(function(){_.QX(X.hostElement,"yt-refit");X.refitJob=0}))};
_.R.handleAdditionalDetailCheckboxUpdateAction=function(X){this.additionalDetailCheckboxChecked=X;_.f(this.command,_.tcQ).additionalDetailCheckboxChecked=X};
_.ja.Object.defineProperties(Xq,{template:{configurable:!0,enumerable:!0,get:function(){if(G2r===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;gnu===void 0&&(gnu=document.createElement("template"));var b=gnu;l.call(H,b.content.cloneNode(!0),X.content.firstChild);G2r=X}X=G2r;return X}}});
Xq.prototype.onYtServiceRequestError=Xq.prototype.onYtServiceRequestError;Xq.prototype.onYtServiceRequestCompleted=Xq.prototype.onYtServiceRequestCompleted;Xq.prototype.onYtServiceRequestSent=Xq.prototype.onYtServiceRequestSent;Xq.prototype.onYtNavigate=Xq.prototype.onYtNavigate;Xq.prototype.onYtPopupOpened=Xq.prototype.onYtPopupOpened;_.T([_.k(_.cr.YtOpenPopupBehavior),_.N("design:type",Object)],Xq.prototype,"openPopupBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Xq.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],Xq.prototype,"eventForwardingBehavior",void 0);_.T([_.k(_.$s),_.N("design:type",Object)],Xq.prototype,"ironResizableBehavior",void 0);_.T([_.g({observer:"dataChanged"}),_.N("design:type",Object)],Xq.prototype,"data",void 0);
_.T([_.g(),_.N("design:type",Object)],Xq.prototype,"submitting",void 0);_.T([_.g({observer:"submitButtonDisabledChanged"}),_.N("design:type",Object)],Xq.prototype,"submitButtonDisabled",void 0);_.T([_.g(),_.N("design:type",Object)],Xq.prototype,"command",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xq.prototype,"hideReportForm",void 0);_.T([_.g(),_.N("design:type",Object)],Xq.prototype,"canShowCheckbox",void 0);
_.T([_.g(),_.N("design:type",Object)],Xq.prototype,"canShowAdditionalDetailCheckbox",void 0);_.T([_.g(),_.N("design:type",Object)],Xq.prototype,"canShowNextButton",void 0);_.T([_.g(),_.N("design:type",Object)],Xq.prototype,"additionalDetailCheckboxChecked",void 0);_.T([_.g(),_.N("design:type",Object)],Xq.prototype,"refitJob",void 0);_.T([_.g(),_.N("design:type",Object)],Xq.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.T([_.A2("#scroller"),_.N("design:type",Object)],Xq.prototype,"JSC$22991_scroller",void 0);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xq.prototype,"onYtPopupOpened",null);_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Xq.prototype,"onYtNavigate",null);
_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],Xq.prototype,"onYtServiceRequestSent",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],Xq.prototype,"onYtServiceRequestCompleted",null);
_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Xq.prototype,"onYtServiceRequestError",null);_.T([_.qR({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],Xq);var arR;var ZX9;var He=function(){return _.a.apply(this,arguments)||this};
_.S(He,_.a);_.R=He.prototype;_.R.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.R.onVisible=function(){var X,H;(H=_.jJ().resolve(_.c$(_.uq)))==null||H.enqueue({label:_.D8((X=this.data)==null?void 0:X.messageTitle),elementToFocus:this.hostElement})};
_.R.onThumbnailLoaded=function(){_.QX(this.hostElement,"yt-refit")};
_.R.onDismissTap=function(){_.TP(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.R.computeAlternateIcon=function(X){return X?X==="BACKSTAGE_ARTWORK"?"backstage:artwork":X:null};
_.R.computeFontFamily=function(X){return X==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.R.computeBackgroundStyle=function(X,H){if(X=this.computeBackgroundImage(X,H))if(X=_.a1(X.thumbnails))return'background-image: url("'+X+'");'};
_.R.computeHasFullHeightImage=function(X){return!(!(X&&X.thumbnails&&X.thumbnails.length>0)||this.modern)};
_.R.isModernStyle=function(X){return X.style==="STYLE_MODERN"};
_.R.computeIcon=function(X,H){if(X&&X.icon)return H?X.iconDark:X.icon};
_.R.computeBackgroundImage=function(X,H){if(X&&X.backgroundImage)return H?X.backgroundImageDark:X.backgroundImage};
_.R.computeLogo=function(X,H){if(X&&X.logo)return H?X.logoDark:X.logo};
_.R.computeShouldShowModernIcon=function(X,H){return X&&!!H};
_.R.getLogoContainerClassName=function(X){return this.logoWithPadding(X)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.R.getLogoImageId=function(X){return this.logoWithPadding(X)?"mealbar-logo-with-padding":"mealbar-logo"};
_.R.logoWithPadding=function(X){var H,l,b;return(X=(H=this.computeLogo(X,this.isDarkTheme))==null?void 0:(l=H.thumbnails)==null?void 0:(b=l[0])==null?void 0:b.height)&&X%31===0?!0:!1};
He.prototype.onThumbnailLoaded=He.prototype.onThumbnailLoaded;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.T([_.g({}),_.N("design:type",Object)],He.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.N("design:type",Boolean)],He.prototype,"modern",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],He.prototype,"isDarkTheme",void 0);
_.T([_.g({computed:"computeIcon(data, isDarkTheme)"}),_.N("design:type",Object)],He.prototype,"icon",void 0);_.T([_.g({computed:"computeLogo(data, isDarkTheme)"}),_.N("design:type",Object)],He.prototype,"logo",void 0);_.T([_.g({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.N("design:type",Object)],He.prototype,"backgroundStyle",void 0);_.T([_.g({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.N("design:type",Object)],He.prototype,"alternateIcon",void 0);
_.T([_.g({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.N("design:type",Boolean)],He.prototype,"hasFullHeightImage",void 0);_.T([_.g({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.N("design:type",Boolean)],He.prototype,"useYoutubeSans",void 0);_.T([_.g({computed:"computeShouldShowModernIcon(modern, icon)"}),_.N("design:type",Boolean)],He.prototype,"shouldShowModernIcon",void 0);
_.T([_.Le("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],He.prototype,"onThumbnailLoaded",null);_.T([_.qR({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],He);
_.O(He,"yt-mealbar-promo-renderer",function(){if(ZX9===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;arR===void 0&&(arR=document.createElement("template"));var b=arR;l.call(H,b.content.cloneNode(!0),X.content.firstChild);ZX9=X}X=ZX9;return X},{mode:2});var iXz;var vnu;var lo=function(){return _.a.apply(this,arguments)||this};
_.S(lo,_.a);_.R=lo.prototype;_.R.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]]"}}}}}};
_.R.computeHasButtons_=function(X){return!(!X.dismissButton&&!X.acceptButton)};
_.R.computeStyle_=function(X){return X||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.R.observeImpressionEndpoints_=function(){var X=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(H){H.clickTrackingParams&&delete H.clickTrackingParams;_.ci(X.hostElement,[H])})};
_.R.onTap_=function(){_.TP(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
lo.prototype.observeImpressionEndpoints_=lo.prototype.observeImpressionEndpoints_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],lo.prototype,"ytEventForwardingBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],lo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],lo.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],lo.prototype,"positionType",void 0);_.T([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.N("design:type",Boolean)],lo.prototype,"hasButtons_",void 0);_.T([_.g({value:function(){return this.onTap_.bind(this)}}),
_.N("design:type",Function)],lo.prototype,"boundOnTap_",void 0);_.T([_.g({value:{style:"mono-inverse"}}),_.N("design:type",Object)],lo.prototype,"buttonOverride",void 0);_.T([_.Yh("data.promoConfig.impressionEndpoints"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lo.prototype,"observeImpressionEndpoints_",null);_.T([_.qR({is:"yt-tooltip-renderer",disableElementRegistration:!0})],lo);
_.O(lo,"yt-tooltip-renderer",function(){if(vnu===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;iXz===void 0&&(iXz=document.createElement("template"));var b=iXz;l.call(H,b.content.cloneNode(!0),X.content.firstChild);vnu=X}X=vnu;return X},{mode:2});var OXn;var maA;var Q$n;var Tob;var oP=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-open-popup-action":"onOpen"};return X};
_.S(oP,_.a);_.R=oP.prototype;_.R.attached=function(){this.onOpen()};
_.R.updateTimeSecs=function(X){this.currentTimeSecs=X};
_.R.computeTimeString=function(X){X=X.toString();var H=Math.floor(Number(X)/3600),l=Math.floor(Number(X)%3600%60);return(H>0?H+":":"")+_.IV(Math.floor(Number(X)%3600/60),H>0?2:1)+":"+_.IV(l,2)};
_.R.computeTimeStringA11y=function(X){return _.k4N({seconds:X})};
_.R.getTimeParam=function(){return eId(this.timeString)};
_.R.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var X={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},H;_.Y8(_.lv(),(H=this.data)==null?void 0:H.trackingParams,X,7)};
_.R.onChangeStartAtTimestamp=function(){for(var X=this.startAtTimestamp.value.split(":"),H=0,l=1,b=X.length-1;b>=0;b--)H+=Number(X[b])*l,l*=60;this.updateTimeSecs(H);this.setTimestamp()};
_.R.onOpen=function(){var X=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var H=_.aq();H?H.getPlayerPromise().then(function(l){l=l.getCurrentTime();X.updateTimeSecs(l)}):C5Y()&&this.updateTimeSecs(C5Y())};
_.R.setTimestamp=function(){var X=Math.floor(this.currentTimeSecs);_.TP(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!X,timestamp:X||""}])};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],oP.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],oP.prototype,"data",void 0);_.T([_.g({value:!1,notify:!0}),_.N("design:type",Boolean)],oP.prototype,"isStartAtChecked",void 0);_.T([_.g(),_.N("design:type",Number)],oP.prototype,"currentTimeSecs",void 0);
_.T([_.g({computed:"computeTimeString(currentTimeSecs)"}),_.N("design:type",String)],oP.prototype,"timeString",void 0);_.T([_.g({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.N("design:type",String)],oP.prototype,"timeStringA11y",void 0);_.T([_.A2("#start-at-timestamp"),_.N("design:type",Object)],oP.prototype,"startAtTimestamp",void 0);_.T([_.qR({is:"yt-start-at-renderer",disableElementRegistration:!0})],oP);
_.O(oP,"yt-start-at-renderer",function(){if(Tob===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;Q$n===void 0&&(Q$n=document.createElement("template"));var b=Q$n;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Tob=X}X=Tob;return X},{mode:2});var No$={},cbu=(No$.WEB_REMIX="music.youtube.com",No$),bo=function(){var X=_.a.apply(this,arguments)||this;X.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return X};
_.S(bo,_.a);_.R=bo.prototype;_.R.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.created=function(){this.embedHost_=cbu[_.gx("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.R.ready=function(){_.mh(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.R.computeEmbedCode_=function(X,H,l,b,U){if(!X)return"";var K=X.videoId,w=X.fullListId,d=[];X.attributionId&&d.push("si="+X.attributionId);b||d.push("controls=0");l&&Number(H)>0&&d.push("start="+H);w&&(K="videoseries",d.push("list="+w));l="https://"+(U?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+K;X.clipId&&(d.push("clip="+X.clipId),d.push("clipt="+X.clipTiming));H=d.length>0?l+"?"+d.join("&amp;"):l;X.encryptedEmbedConfig&&d.push("embed_config="+JSON.stringify({enc:X.encryptedEmbedConfig}));
d=d.length>0?l+"?"+d.join("&amp;"):l;_.P("web_sharing_embed_preview_killswitch")?_.mh(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(d,X.previewWidth||854,X.previewHeight||480):(_.fx(this.videoPreviewContainer),_.mh(this.videoPreviewContainer).appendChild(this.buildIframeElement(d)));return this.getEmbedCode_(H,X.width||560,X.height||315)};
_.R.buildIframeElement=function(X){var H=document.createElement("iframe"),l,b;H.width=""+((b=(l=this.data)==null?void 0:l.previewWidth)!=null?b:854);var U,K;H.height=""+((K=(U=this.data)==null?void 0:U.previewHeight)!=null?K:480);_.CJ(H,2,X);H.title="YouTube video player";H.frameBorder="0";H.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";H.referrerPolicy="strict-origin-when-cross-origin";H.allowFullscreen=!0;return H};
_.R.computeIsSquareAspectRatio_=function(X){return X.previewHeight&&X.previewWidth?X.previewHeight==X.previewWidth:!1};
_.R.computeShowEmbedOptions_=function(X){return!!X.enablePrivacyModeOptionLabel||!!X.showPlayerControlsOptionLabel};
_.R.getEmbedCode_=function(X,H,l){return'<iframe width="'+H+'" height="'+l+'" src="'+X+'" 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>'};
_.R.handleSignalActionCopyShareEmbedUrl_=function(){_.mh(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.R.handleSetTimestamp_=function(X){this.startAtTimeStamp_=(this.startAtChecked_=X.isSet)?X.timestamp:0};
_.R.closePanel_=function(){_.TP(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.R.onEmbedCode_=function(){_.mh(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.R.onYtPopupClosed_=function(){_.fx(_.mh(this.hostElement).querySelector("#video-preview"))};
_.R.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.f(this.data.actionButtons[0],_.yB)&&this.ytRendererBehavior.logExplicitClick(_.f(this.data.actionButtons[0],_.yB))};
bo.prototype.onYtPopupClosed_=bo.prototype.onYtPopupClosed_;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],bo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],bo.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],bo.prototype,"data",void 0);
_.T([_.g({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.N("design:type",String)],bo.prototype,"embedCode_",void 0);_.T([_.g({value:!0}),_.N("design:type",Boolean)],bo.prototype,"isPlayerControlsOptionChecked_",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],bo.prototype,"isPrivacyModeOptionChecked_",void 0);_.T([_.g({value:!1,notify:!0}),_.N("design:type",Boolean)],bo.prototype,"startAtChecked_",void 0);
_.T([_.g({value:0}),_.N("design:type",Number)],bo.prototype,"startAtTimeStamp_",void 0);_.T([_.g({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],bo.prototype,"isSquareAspectRatio_",void 0);_.T([_.A2("#video-preview"),_.N("design:type",HTMLElement)],bo.prototype,"videoPreviewContainer",void 0);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bo.prototype,"onYtPopupClosed_",null);
_.T([_.qR({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],bo);
_.O(bo,"yt-sharing-embed-renderer",function(){if(maA===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;OXn===void 0&&(OXn=document.createElement("template"));var b=OXn;l.call(H,b.content.cloneNode(!0),X.content.firstChild);maA=X}X=maA;return X},{mode:2});var j$R;var rba=function(){return _.a.apply(this,arguments)||this};
_.S(rba,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],rba.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],rba.prototype,"data",void 0);_.T([_.qR({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],rba);
_.O(rba,"yt-sender-id-section-renderer",function(){if(j$R===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);j$R=X}X=
j$R;return X},{mode:1});var JbR;var Lza;var UW=function(){return _.a.apply(this,arguments)||this};
_.S(UW,_.a);UW.prototype.closePopup=function(){_.TP(this.hostElement,"yt-close-popup-action")};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],UW.prototype,"data",void 0);_.T([_.qR({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],UW);
_.O(UW,"yt-community-post-section-renderer",function(){if(Lza===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;JbR===void 0&&(JbR=document.createElement("template"));var b=JbR;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Lza=X}X=Lza;return X},{mode:2});var YU2;var Ir2;var Abz;var XJb;var HJu;var l3n;var omu=function(){return _.a.apply(this,arguments)||this};
_.S(omu,_.a);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],omu.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],omu.prototype,"data",void 0);_.T([_.qR({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],omu);
_.O(omu,"yt-share-start-time-with-context-renderer",function(){if(l3n===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;HJu===void 0&&(HJu=document.createElement("template"));var b=HJu;l.call(H,b.content.cloneNode(!0),X.content.firstChild);l3n=X}X=l3n;return X},{mode:2});var $9=function(){return _.a.apply(this,arguments)||this};
_.S($9,_.a);$9.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],$9.prototype,"data",void 0);_.T([_.qR({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],$9);
_.O($9,"yt-share-panel-title-v15-renderer",function(){if(XJb===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Abz===void 0&&(Abz=document.createElement("template"));var b=Abz;l.call(H,b.content.cloneNode(!0),X.content.firstChild);XJb=X}X=XJb;return X},{mode:2});var KC=function(){return _.a.apply(this,arguments)||this};
_.S(KC,_.a);KC.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],KC.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],KC.prototype,"data",void 0);_.T([_.qR({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],KC);
_.O(KC,"yt-share-panel-header-renderer",function(){if(Ir2===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;YU2===void 0&&(YU2=document.createElement("template"));var b=YU2;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Ir2=X}X=Ir2;return X},{mode:2});var bJ2;var Ul$;var $l2={};$l2.YtBindingExpressionsBehavior={identity:_.GK,msg:function(X,H){H=H===void 0?{}:H;return _.XS(X,H,X)},
msgPlural:function(X,H){return _.HK(X,H)},
getMusicIconFromType:function(X){return _.jL(X)}};var K5A;var Rnb;var CQ$;var wJR=document.head,dlu=wJR.appendChild,hnA;
if(CQ$===void 0){var F5b=document.createElement("template");_.n(F5b,'\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>');CQ$=F5b}hnA=CQ$;
dlu.call(wJR,hnA.content);var RP=function(){var X=_.a.apply(this,arguments)||this;X.screenLayer=7;return X};
_.S(RP,_.a);RP.prototype.getScreenLayer=function(){return this.screenLayer};
RP.prototype.onTap=function(X){X&&X.detail&&(X.detail.x||X.detail.y)&&_.mh(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.ci(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(X=this.getScreenLayer(),_.QX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:X}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.ja.Object.defineProperties(RP.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()}}});
RP.prototype.onTap=RP.prototype.onTap;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],RP.prototype,"ytComponentBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],RP.prototype,"data",void 0);_.T([_.x("data.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],RP.prototype,"title",null);
_.T([_.x("data.serviceName"),_.N("design:type",String),_.N("design:paramtypes",[])],RP.prototype,"icon",null);_.T([_.Le("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],RP.prototype,"onTap",null);_.T([_.qR({is:"yt-share-target-renderer",disableElementRegistration:!0})],RP);
_.O(RP,"yt-share-target-renderer",function(){if(Rnb===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;K5A===void 0&&(K5A=document.createElement("template"));var b=K5A;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Rnb=X}X=Rnb;return X},{mode:2});var Br9;var qwX;var CC=function(){var X=_.a.apply(this,arguments)||this;X.SHARE_TARGET_WIDTH=70;X.SHARE_TARGET_MARGIN_RIGHT=8;X.PAGE_SCROLL_SPEED=9;X.actionMap={"yt-share-panel-reset-action":"onReset_"};return X};
_.S(CC,_.a);_.R=CC.prototype;_.R.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.R.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.mh(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.mh(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.R.onReset_=function(){if(_.mh(this.hostElement).querySelector("#list")){var X=_.mh(this.hostElement).querySelector("#list");var H=_.mh(this.hostElement).querySelector("#list");var l=H.offsetLeft,b=H.offsetParent;b||_.FK_(H)!="fixed"||(b=_.uB(H).documentElement);if(b){if(_.Hf&&!_.L9(58)){var U=_.VOt(b);l+=U.left}else Number(_.vU6)>=8&&!(Number(_.vU6)>=9)&&(U=_.VOt(b),l-=U.left);H=_.eB_(b)?b.clientWidth-(l+H.offsetWidth):l}else H=l;zex(X,H);this.updateScrollButtons_()}};
_.R.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.R.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.R.onScrollWheel_=function(X){X.stopPropagation();X.preventDefault();var H=SeA(_.mh(this.hostElement).querySelector("#list"));X=Math.abs(X.deltaX)>Math.abs(X.deltaY)?X.deltaX:X.deltaY;zex(_.mh(this.hostElement).querySelector("#list"),H+X);this.updateScrollButtons_()};
_.R.smoothScrollByOnePage_=function(X){var H=_.mh(this.hostElement).querySelector("#list"),l=(Math.floor(H.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,b=SeA(H),U=l*(X?1:-1),K=this.PAGE_SCROLL_SPEED,w=this.updateScrollButtons_.bind(this),d=0,B;(function u(){d+=K;B=d/l*2;zex(H,b+U*(B<1?B*B:-B*B+4*B-2));d<l?window.requestAnimationFrame(u):w()})()};
_.R.updateScrollButtons_=function(){var X=SeA(_.mh(this.hostElement).querySelector("#list")),H=_.mh(this.hostElement).querySelector("#list").scrollWidth-_.mh(this.hostElement).querySelector("#list").clientWidth;_.mh(this.hostElement).querySelector("#scroll-button-back").hidden=X<=0;_.mh(this.hostElement).querySelector("#scroll-button-forward").hidden=X>=H};
CC.prototype.onScrollWheel_=CC.prototype.onScrollWheel_;CC.prototype.onDataChanged_=CC.prototype.onDataChanged_;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],CC.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k($l2.YtBindingExpressionsBehavior),_.N("design:type",Object)],CC.prototype,"ytBindingExpressionsBehavior",void 0);
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],CC.prototype,"data",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CC.prototype,"onDataChanged_",null);_.T([_.Le("wheel"),_.N("design:type",Function),_.N("design:paramtypes",[WheelEvent]),_.N("design:returntype")],CC.prototype,"onScrollWheel_",null);
_.T([_.qR({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],CC);
_.O(CC,"yt-third-party-share-target-section-renderer",function(){if(qwX===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Br9===void 0&&(Br9=document.createElement("template"));var b=Br9;l.call(H,b.content.cloneNode(!0),X.content.firstChild);qwX=X}X=qwX;return X},{mode:2});var wS=function(){return _.a.apply(this,arguments)||this};
_.S(wS,_.a);wS.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],wS.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],wS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],wS.prototype,"data",void 0);_.T([_.qR({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],wS);
_.O(wS,"yt-third-party-network-section-renderer",function(){if(Ul$===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;bJ2===void 0&&(bJ2=document.createElement("template"));var b=bJ2;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Ul$=X}X=Ul$;return X},{mode:2});var sDb;_.gC(_.Z(function(X){return _.F("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.F("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.F(_.l4,{data:function(){return X.data().firstPartyItems}},{listItemViewModel:_.xK})))},"nl"),"first-party-network-section-view-model",{props:{data:_.zh}});var Mia=_.W8(["data:image/svg+xml;charset=UTF-8;base64,",""]),dS=function(){var X=_.a.apply(this,arguments)||this;X.screenLayer=7;X.qrCodeEnabled=_.P("web_enable_sharing_qr_code");X.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return X};
_.S(dS,_.a);_.R=dS.prototype;_.R.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"}}}};
_.R.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"))};
_.R.onDataChanged=function(){var X=this,H;(H=this.data)!=null&&H.contents&&(this.hostElement.setAttribute("links-only","true"),_.Nw(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.N0(this,function(){_.QX(X.hostElement,"yt-refit");X.focusSharePanelHeader()}))};
_.R.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.R.handleSetTimestamp=function(X){var H=this.shortUrl();X.isSet&&(H=_.Xv(H,"t",X.timestamp));this.maybeRenderQrCode(H)};
_.R.shortUrl=function(){var X,H=(X=this.data)==null?void 0:X.contents;if(H)for(X=0;X<H.length;X++){var l=void 0,b=void 0;if((l=H[X])==null?0:(b=l.thirdPartyNetworkSection)==null?0:b.copyLinkContainer){var U=b=l=void 0;return(U=_.f((l=H[X])==null?void 0:(b=l.thirdPartyNetworkSection)==null?void 0:b.copyLinkContainer,YV$))==null?void 0:U.shortUrl}}};
_.R.maybeRenderQrCode=function(X){var H=this,l,b,U,K,w,d,B,q,u;return _.h(function(e){if(e.nextAddress==1){l=_.mh(H.hostElement).querySelector("#qr-code");if(!H.qrCodeEnabled||!X)return l&&(l.style.display="none"),e.return();b=_.$By(_.jJ().resolve(_.rT),{iconName:"youtube",iconStyle:"youtube_fill"});U=document.createElement("div");return typeof b==="function"?(b(U),e.jumpTo(2)):e.yield(b,3)}e.nextAddress!=2&&(K=e.yieldResult,K(U));B=(w=U)==null?void 0:(d=w.firstChild)==null?void 0:d.firstChild;q=
document.createElement("img");u=_.pJK(Mia,btoa(B.outerHTML));q.onload=function(){var y={canvas:l,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:q},V=new dRe;MLZ(V,X);uh5(V,!1,e_a(V));var p=V.modules,z=Object.assign({},ALC,y);p=structuredClone(p);y=p.length;var t,W=(t=z.canvas)!=null?t:document.createElement("canvas");t=z.cellSize;V=z.logo;var G,r=(G=z.logoSize)!=null?G:Math.floor(y/4);y%2!==r%2&&r++;var Q=z.logoPadding,v=z.backgroundColor;G=y*t;var J=z.width,
Y=0;J&&(Y=z.padding,Y=Math.ceil(Y*G/(J-Y*2)),W.style.width=J+"px",W.style.height=J+"px");W.width!==G+Y*2&&(W.width=G+Y*2);W.height!==G+Y*2&&(W.height=G+Y*2);G=W.getContext("2d");z.autoClear&&G.clearRect(0,0,W.width,W.height);G.fillStyle=v;G.beginPath();G.roundRect(0,0,W.width,W.height,z.borderRadius);G.fill();G.save();G.translate(Y,Y);if(V)for(W=Math.floor(y-r)/2-Q,Q=Math.floor(y+r)/2+Q,v=W;v<Q;v++)for(J=W;J<Q;J++)p[v][J]=!1;for(W=0;W<y;W++)for(Q=0;Q<y;Q++)(W<7&&Q<7||W<7&&Q>=y-7||W>=y-7&&Q<7)&&(p[W][Q]=
!1);var Uy;W=(Uy=z.markerColor)!=null?Uy:z.color;VLl(G,0,0,t,W);VLl(G,t*(y-7),0,t,W);VLl(G,0,t*(y-7),t,W);switch(z.cellStyle){case 0:Uy=p;p=Uy.length;W=z.cellSize;G.beginPath();for(Q=0;Q<p;Q++)for(v=0;v<p;v++)Uy[Q][v]&&G.rect(Q*W,v*W,W,W);G.fillStyle=z.color;G.fill();break;case 1:Uy=p;p=Uy.length;W=z.cellSize;Q=W*z.relativeCircleSize;G.fillStyle=z.color;G.beginPath();for(z=0;z<p;z++)for(v=0;v<p;v++)Uy[z][v]&&(G.beginPath(),G.ellipse((z+.5)*W,(v+.5)*W,Q/2,Q/2,0,0,2*Math.PI),G.fill());G.fill();break;
case 2:Uy=p;p=Uy.length;W=z.cellSize;G.fillStyle=z.color;z=[[1,1],[-1,1],[-1,-1],[1,-1]];G.beginPath();for(Q=0;Q<p;Q++)for(v=0;v<p;v++)if(Uy[Q][v])G.roundRect(Q*W,v*W,W,W,W/2),Q+1<p&&Uy[Q+1][v]&&G.rect(Q*W+W/2,v*W,W,W),v+1<p&&Uy[Q][v+1]&&G.rect(Q*W,v*W+W/2,W,W);else{J=Q*W+W/2;Y=v*W+W/2;for(var Cy=0;Cy<4;Cy++){var sy=_.C(z[Cy]),FO=sy.next().value;sy=sy.next().value;Q+FO>=0&&Q+FO<p&&v+sy>=0&&v+sy<p&&Uy[Q+FO][v]&&Uy[Q][v+sy]&&Uy[Q+FO][v+sy]&&(FO=Cy*Math.PI/2,sy=W/2,G.moveTo(J+sy*Math.cos(FO),Y+sy*Math.sin(FO)),
G.arc(J,Y,W/2,FO,FO+Math.PI/2,!1),G.lineTo(J+sy*(Math.cos(FO)-Math.sin(FO)),Y+sy*(Math.cos(FO)+Math.sin(FO))),G.lineTo(J+sy*Math.cos(FO),Y+sy*Math.sin(FO)))}}G.fill()}V&&G.drawImage(V,(y-r)*t/2,(y-r)*t/2,r*t,r*t);G.restore();l.style.removeProperty("display")};
q.src=_.jA(u);_.m5(e)})};
_.R.hasCommunityPostRenderer=function(){var X,H,l,b;return!!((X=this.data)==null?0:(H=X.header)==null?0:(l=H.sharePanelHeaderRenderer)==null?0:(b=l.communityPost)==null?0:b.communityPostSectionRenderer)};
_.R.onTapClose=function(){_.TP(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.R.getScreenLayer=function(){return this.screenLayer};
dS.prototype.onDataChanged=dS.prototype.onDataChanged;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],dS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],dS.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],dS.prototype,"data",void 0);
_.T([_.g({value:_.XS("SBOX_INAPPROPRIATE_CANCEL")}),_.N("design:type",String)],dS.prototype,"closeButtonAriaLabel",void 0);_.T([_.A2("yt-share-panel-header-renderer"),_.N("design:type",HTMLElement)],dS.prototype,"header",void 0);_.T([_.g(),_.N("design:type",Object)],dS.prototype,"qrCodeEnabled",void 0);_.T([_.A2("#scroller"),_.N("design:type",Object)],dS.prototype,"JSC$23042_scroller",void 0);
_.T([_.oi("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dS.prototype,"onDataChanged",null);_.T([_.qR({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],dS);
_.O(dS,"yt-unified-share-panel-renderer",function(){if(sDb===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);sDb=X}X=sDb;return X},{mode:1});var u3R={};
u3R.YtUnlimitedFamilyInterstitialBehavior=[_.cr.YtOpenPopupBehavior,_.rh.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(X){X=_.wEC(_.WM(X),"yt-button-renderer");return X?X.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(X){this.dialogHistory_.push(X)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var X=this.popFromHistory();if(X){var H={openPopupAction:{popupType:"DIALOG",popup:{}}};H.openPopupAction.popup[X.renderer]=X.data;this.showingPreviousDialog_=!0;this.openPopup(H)}},
handleOpenPopupAction_:function(X){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var H=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(b){return!!X.openPopupAction.popup[b]}),l=this.getElementName_();
H&&this.data&&(this.pushToHistory({renderer:l,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(X){if(X=_.f(X,Ldx))this.loading=!0,_.TP(this.hostElement,"yt-open-create-family-dialog",[X,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var X=this.hostElement.nodeName.split("-").slice(1).map(function(H){return""+H[0].toUpperCase()+H.slice(1).toLowerCase()}).join("");
return X[0].toLowerCase()+X.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var enb;var yr9;var h3=function(){return _.a.apply(this,arguments)||this};
_.S(h3,_.a);_.R=h3.prototype;_.R.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}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.TP(this.hostElement,"yt-register-create-family-dialog");_.mh(this.hostElement).querySelector("#thumbnail").onShow()};
_.R.fireOnCloseCommand_=function(){var X;((X=this.data)==null?0:X.onCloseCommand)&&_.j7(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.R.onYtServiceRequestSent_=function(X,H){H&&H.endpoint&&_.f(H.endpoint,_.Yu)||(this.loading=!0)};
_.R.onYtServiceRequestCompleted_=function(){var X=this.hostElement.parentElement;X.close&&X.close();this.loading=!1};
_.R.openPopupHandler_=function(X){if(X.detail==this){var H;((H=this.data)==null?0:H.onOpenCommands)&&_.j7(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.R.closePopupHandler_=function(X,H){this.fireOnCloseCommand_();if(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1){var l;((l=this.data)==null?0:l.onDismissCommands)&&_.j7(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.R.dataChanged_=function(){this.loading=!1};
h3.prototype.dataChanged_=h3.prototype.dataChanged_;h3.prototype.closePopupHandler_=h3.prototype.closePopupHandler_;h3.prototype.openPopupHandler_=h3.prototype.openPopupHandler_;h3.prototype.onYtServiceRequestCompleted_=h3.prototype.onYtServiceRequestCompleted_;h3.prototype.onYtServiceRequestSent_=h3.prototype.onYtServiceRequestSent_;_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],h3.prototype,"ytEventForwardingBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(u3R.YtUnlimitedFamilyInterstitialBehavior),_.N("design:type",Object)],h3.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],h3.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],h3.prototype,"loading",void 0);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],h3.prototype,"onYtServiceRequestSent_",null);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],h3.prototype,"onYtServiceRequestCompleted_",null);
_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],h3.prototype,"openPopupHandler_",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],h3.prototype,"closePopupHandler_",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h3.prototype,"dataChanged_",null);
_.T([_.qR({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],h3);
_.O(h3,"yt-unlimited-family-message-interstitial-renderer",function(){if(yr9===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;enb===void 0&&(enb=document.createElement("template"));var b=enb;l.call(H,b.content.cloneNode(!0),X.content.firstChild);yr9=X}X=yr9;return X},{mode:2});var Vi2;var PQo;var Fq=function(){return _.a.apply(this,arguments)||this};
_.S(Fq,_.a);Fq.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"}}}};
Fq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.mh(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(X){X.onShow()});
_.mh(this.hostElement).querySelector("#main-thumbnail").onShow()};
Fq.prototype.onButtonTap_=function(X){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(X)};
Fq.prototype.computeMainThumbnailWidth_=function(X){return X&&X.length!==0?72:96};
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Fq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.T([_.k(u3R.YtUnlimitedFamilyInterstitialBehavior),_.N("design:type",Object)],Fq.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Fq.prototype,"data",void 0);
_.T([_.g({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.N("design:type",Number)],Fq.prototype,"mainThumbnailWidth_",void 0);_.T([_.g({value:function(){return this.onButtonTap_.bind(this)}}),
_.N("design:type",Function)],Fq.prototype,"boundButtonTap_",void 0);_.T([_.qR({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Fq);
_.O(Fq,"yt-unlimited-family-profile-interstitial-renderer",function(){if(PQo===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Vi2===void 0&&(Vi2=document.createElement("template"));var b=Vi2;l.call(H,b.content.cloneNode(!0),X.content.firstChild);PQo=X}X=PQo;return X},{mode:2});var f3U;var pJ2;var Be=function(){var X=_.a.apply(this,arguments)||this;X.sliderAriaValueText_=null;X.selectedIndex_=0;X.messages={PAUSE_SLIDER:_.XS("PAUSE_SLIDER",void 0,"Pause Duration")};return X};
_.S(Be,_.a);_.R=Be.prototype;_.R.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_]]"}}}}}};
_.R.onPopupOpened_=function(X){X.detail==this&&_.P("enable_premium_voluntary_pause")&&(_.TP(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.R.setDialogData=function(X){this.data=X;this.resetSlider_()};
_.R.dataChanged_=function(){this.data&&this.resetSlider_()};
_.R.onSubmitTap_=function(){if(this.data.confirmCommand){var X=this.data.confirmCommand;_.f(X,_.amt)&&_.ci(this.hostElement,[X,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.R.onExitButtonTap_=function(){_.TP(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.R.closePopupHandler_=function(X,H){(H&&H.canceled===!0||H.canceled===!1&&H.confirmed===!1)&&this.handleOnDismissCommands_()};
_.R.onSliderChange_=function(){this.selectedIndex_=_.mh(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.R.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.R.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.R.resetSlider_=function(){if(this.data){var X=this.data.defaultEndOptionIndex||0,H=_.mh(this.hostElement).querySelector("#id-pause-slider");if(H.immediateValue<X)for(;H.immediateValue!=X;)H.increment();else if(X<H.immediateValue)for(;H.immediateValue!=X;)H.decrement();this.selectedIndex_=X;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.R.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.j7(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.R.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.j7(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.R.onYtServiceRequestSent=function(){this.loading=!0};
_.R.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Be.prototype.onYtServiceRequestCompleted=Be.prototype.onYtServiceRequestCompleted;Be.prototype.onYtServiceRequestSent=Be.prototype.onYtServiceRequestSent;Be.prototype.closePopupHandler_=Be.prototype.closePopupHandler_;Be.prototype.dataChanged_=Be.prototype.dataChanged_;Be.prototype.onPopupOpened_=Be.prototype.onPopupOpened_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Be.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Be.prototype,"loading",void 0);_.T([_.g(),_.N("design:type",Number)],Be.prototype,"selectIndexMax_",void 0);_.T([_.g(),_.N("design:type",Object)],Be.prototype,"selectedData_",void 0);
_.T([_.g(),_.N("design:type",Object)],Be.prototype,"sliderAriaValueText_",void 0);_.T([_.g({value:function(){return this.onSubmitTap_.bind(this)}}),
_.N("design:type",Function)],Be.prototype,"onButtonTap_",void 0);_.T([_.g({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.N("design:type",Function)],Be.prototype,"onSecondaryTap_",void 0);_.T([_.g(),_.N("design:type",Object)],Be.prototype,"messages",void 0);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Be.prototype,"onPopupOpened_",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Be.prototype,"dataChanged_",null);
_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Be.prototype,"closePopupHandler_",null);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],Be.prototype,"onYtServiceRequestSent",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],Be.prototype,"onYtServiceRequestCompleted",null);_.T([_.qR({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Be);
_.O(Be,"yt-unplugged-pause-membership-dialog-renderer",function(){if(pJ2===void 0){var X=document.createElement("template");_.n(X,'\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>');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;f3U===void 0&&(f3U=document.createElement("template"));var b=f3U;l.call(H,b.content.cloneNode(!0),X.content.firstChild);pJ2=X}X=pJ2;return X},{mode:2});var Sw9;var znX;var qL=function(){return _.a.apply(this,arguments)||this};
_.S(qL,_.a);qL.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.dd("vcBalanceRenderer")}}};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],qL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],qL.prototype,"data",void 0);_.T([_.qR({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],qL);
_.O(qL,"yt-vc-offer-layout-header-renderer",function(){if(znX===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;Sw9===void 0&&(Sw9=document.createElement("template"));var b=Sw9;l.call(H,b.content.cloneNode(!0),X.content.firstChild);znX=X}X=znX;return X},{mode:2});var nm9;var kS2;var xlu;var DlA;var sW=function(){return _.a.apply(this,arguments)||this};
_.S(sW,_.a);sW.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ja.Object.defineProperties(sW.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.F$x.YtTappableItemBehavior),_.N("design:type",Object)],sW.prototype,"ytTappableItemBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],sW.prototype,"data",void 0);
_.T([_.g({reflectToAttribute:!0}),_.x("data.accessibilityText"),_.N("design:type",String),_.N("design:paramtypes",[])],sW.prototype,"ariaLabel",null);_.T([_.g({reflectToAttribute:!0}),_.x("data.style"),_.N("design:type",String),_.N("design:paramtypes",[])],sW.prototype,"vcOfferStyle",null);_.T([_.x("data.style","data.titleText"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],sW.prototype,"showTitleText",null);_.T([_.qR({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],sW);
_.O(sW,"yt-vc-offer-renderer",function(){if(DlA===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;xlu===void 0&&(xlu=document.createElement("template"));var b=xlu;l.call(H,b.content.cloneNode(!0),X.content.firstChild);DlA=X}X=DlA;return X},{mode:2});var ML=function(){return _.a.apply(this,arguments)||this};
_.S(ML,_.a);ML.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],ML.prototype,"data",void 0);_.T([_.qR({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],ML);
_.O(ML,"yt-vc-offer-layout-renderer",function(){if(kS2===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;nm9===void 0&&(nm9=document.createElement("template"));var b=nm9;l.call(H,b.content.cloneNode(!0),X.content.firstChild);kS2=X}X=kS2;return X},{mode:2});var tiz;var W5r;var EmR;var gmn;var uo=function(){return _.a.apply(this,arguments)||this};
_.S(uo,_.a);uo.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([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],uo.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],uo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],uo.prototype,"data",void 0);_.T([_.qR({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],uo);
_.O(uo,"yt-ypc-offers-modal-top-bar-renderer",function(){if(gmn===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;EmR===void 0&&(EmR=document.createElement("template"));var b=EmR;l.call(H,b.content.cloneNode(!0),X.content.firstChild);gmn=X}X=gmn;return X},{mode:2});var e8=function(){return _.a.apply(this,arguments)||this};
_.S(e8,_.a);e8.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"}}}}};
e8.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
e8.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var X=this.scrollable;X.attached&&typeof X.attached==="function"&&X.attached()};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.A2("#scrollable"),_.N("design:type",Object)],e8.prototype,"scrollable",void 0);_.T([_.g(),_.N("design:type",Object)],e8.prototype,"data",void 0);_.T([_.qR({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],e8);
_.O(e8,"yt-ypc-offers-modal-renderer",function(){if(W5r===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;tiz===void 0&&(tiz=document.createElement("template"));var b=tiz;l.call(H,b.content.cloneNode(!0),X.content.firstChild);W5r=X}X=W5r;return X},{mode:2});var GSU;var a3U;var yn=function(){return _.a.apply(this,arguments)||this};
_.S(yn,_.a);_.R=yn.prototype;_.R.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}}}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.mh(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.R.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.TP(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.R.onYtPopupOpened_=function(X,H){(H==null?void 0:H.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.j7(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.R.onYtPopupClosed_=function(X,H){this.continueButtonTapped||H&&(H.canceled===!0||H.canceled===!1&&H.confirmed===!1)&&this.data.onDismissCommands&&_.j7(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.R.onYtServiceRequestError_=function(X){this.set("showSpinner",!1);_.x$(this.hostElement,X.detail.error.message)};
_.R.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.P("enable_ypc_spinners")?_.TP(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
yn.prototype.onYtServiceRequestError_=yn.prototype.onYtServiceRequestError_;yn.prototype.onYtPopupClosed_=yn.prototype.onYtPopupClosed_;yn.prototype.onYtPopupOpened_=yn.prototype.onYtPopupOpened_;yn.prototype.onYtServiceRequestCompleted_=yn.prototype.onYtServiceRequestCompleted_;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],yn.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],yn.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.g(),_.N("design:type",Object)],yn.prototype,"data",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],yn.prototype,"showSpinner",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],yn.prototype,"continueButtonTapped",void 0);_.T([_.g({value:function(){return this.onContinueTapped_.bind(this)}}),
_.N("design:type",Function)],yn.prototype,"bindOnContinueTapped_",void 0);_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yn.prototype,"onYtServiceRequestCompleted_",null);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],yn.prototype,"onYtPopupOpened_",null);
_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],yn.prototype,"onYtPopupClosed_",null);_.T([_.Le("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],yn.prototype,"onYtServiceRequestError_",null);_.T([_.qR({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],yn);
_.O(yn,"yt-ypc-upgrade-dialog-renderer",function(){if(a3U===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;GSU===void 0&&(GSU=document.createElement("template"));var b=GSU;l.call(H,b.content.cloneNode(!0),X.content.firstChild);a3U=X}X=a3U;return X},{mode:2});var ZJa;var iJ$;var Vn=function(){return _.a.apply(this,arguments)||this};
_.S(Vn,_.a);Vn.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Vn.prototype.computeHasButtons_=function(X){return!(!X.dismissButton&&!X.confirmButton)};
Vn.prototype.computeStyle_=function(X){return X||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],Vn.prototype,"ytEventForwardingBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Vn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Vn.prototype,"data",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],Vn.prototype,"positionType",void 0);
_.T([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.N("design:type",Boolean)],Vn.prototype,"hasButtons_",void 0);_.T([_.g({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Vn.prototype,"style_",void 0);_.T([_.qR({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Vn);
_.O(Vn,"yt-bubble-hint-renderer",function(){if(iJ$===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;ZJa===void 0&&(ZJa=document.createElement("template"));var b=ZJa;l.call(H,b.content.cloneNode(!0),X.content.firstChild);iJ$=X}X=iJ$;return X},{mode:2});var vmb;var OJn;var Pe=function(){var X=_.rw.apply(this,arguments)||this;X.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return X};
_.S(Pe,_.rw);_.R=Pe.prototype;_.R.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.R.attached=function(){var X=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){X.$.thumbnail.onShow();X.$["header-image"].onShow()})};
_.R.handleCheckBoxUpdateAction_=function(X){this.canShowCheckboxEnabledConfirmButton=X};
_.R.computeUseOverlayForSpinner_=function(X,H){return!!X&&H};
_.R.computeShowSpinner_=function(X,H){return X||!!H};
_.R.fireOnCloseActions_=function(){var X,H=_.C(((X=this.data)==null?void 0:X.onClosedActions)||[]);for(X=H.next();!X.done;X=H.next())this.ytRendererBehavior.resolveCommand(X.value)};
_.R.fireOnOpenCommands_=function(X){var H,l=(H=this.data)==null?void 0:H.onOpenCommands;if(l)for(X.stopImmediatePropagation(),X=_.C(l),H=X.next();!H.done;H=X.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.R.fireOnDismissCommands_=function(X){var H,l=(H=this.data)==null?void 0:H.onDismissCommands;if(l)for(X.stopImmediatePropagation(),X=_.C(l),H=X.next();!H.done;H=X.next())this.ytRendererBehavior.resolveCommand(H.value)};
_.R.openPopupHandler_=function(X){X.detail==this&&this.fireOnOpenCommands_(X)};
_.R.closePopupHandler_=function(X,H){_.NG(this,"yt-confirm-dialog-close-action",[H]);this.fireOnCloseActions_();(H&&H.canceled===!0||H&&H.canceled===!1&&H.confirmed===!1)&&this.fireOnDismissCommands_(X)};
_.R.onHeaderImageChanged_=function(){var X;((X=this.data)==null?0:X.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.R.computeHasHeaderImageWidth_=function(X){return X!=void 0};
_.R.computeHasLoadingMessage=function(X){return!!X};
_.R.onHeaderImageWidthChanged_=function(){var X,H=(X=this.data)==null?void 0:X.headerImageWidth;if(H){if(X=1.25*H*2+H,this.$.main.style.width=X+"px",H=this.$.scroller.firstElementChild)H.style.minWidth=X+"px"}else this.$.main.style.width="100%"};
_.R.onThumbnailChanged_=function(){var X;((X=this.data)==null?0:X.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")};
_.R.onYtNavigate_=function(X){X=_.WM(X);X instanceof Node&&_.Q_(this.$["confirm-button"]).contains(X)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.R.computePrimaryIsCancel_=function(X){return X};
_.R.computeIsCancelButtonHidden_=function(X){return X.skipCancelButton||!X.cancelButton};
_.R.computeIsCheckboxHidden_=function(X){return!X.checkbox};
_.R.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.R.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.R.onYtServiceRequestCompleted_=function(){var X;((X=this.data)==null?0:X.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.ja.Object.defineProperties(Pe,{template:{configurable:!0,enumerable:!0,get:function(){if(OJn===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;vmb===void 0&&(vmb=document.createElement("template"));var b=vmb;l.call(H,b.content.cloneNode(!0),X.content.firstChild);OJn=X}X=OJn;return X}}});
Pe.prototype.onYtServiceRequestCompleted_=Pe.prototype.onYtServiceRequestCompleted_;Pe.prototype.onYtServiceRequestSent_=Pe.prototype.onYtServiceRequestSent_;Pe.prototype.onThumbnailLoaded_=Pe.prototype.onThumbnailLoaded_;Pe.prototype.onYtNavigate_=Pe.prototype.onYtNavigate_;Pe.prototype.onThumbnailChanged_=Pe.prototype.onThumbnailChanged_;Pe.prototype.onHeaderImageWidthChanged_=Pe.prototype.onHeaderImageWidthChanged_;Pe.prototype.onHeaderImageChanged_=Pe.prototype.onHeaderImageChanged_;
Pe.prototype.closePopupHandler_=Pe.prototype.closePopupHandler_;Pe.prototype.openPopupHandler_=Pe.prototype.openPopupHandler_;_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],Pe.prototype,"ytActionHandlerBehavior",void 0);_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);
_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],Pe.prototype,"ytEventForwardingBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],Pe.prototype,"data",void 0);_.T([_.g({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.N("design:type",Boolean)],Pe.prototype,"primaryIsCancel",void 0);_.T([_.g({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.N("design:type",Boolean)],Pe.prototype,"isCancelButtonHidden",void 0);
_.T([_.g({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.N("design:type",Boolean)],Pe.prototype,"isCheckboxHidden",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Pe.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.T([_.g({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Pe.prototype,"useOverlayForSpinner_",void 0);
_.T([_.g({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.N("design:type",Boolean)],Pe.prototype,"showSpinner_",void 0);_.T([_.g({value:!1}),_.N("design:type",Boolean)],Pe.prototype,"isActionInProgress_",void 0);_.T([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.N("design:type",Boolean)],Pe.prototype,"hasHeaderImageWidth_",void 0);
_.T([_.g({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.N("design:type",Boolean)],Pe.prototype,"hasLoadingMessage",void 0);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Pe.prototype,"openPopupHandler_",null);_.T([_.Le("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Pe.prototype,"closePopupHandler_",null);
_.T([_.Yh("data.headerImage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pe.prototype,"onHeaderImageChanged_",null);_.T([_.Yh("data.headerImageWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pe.prototype,"onHeaderImageWidthChanged_",null);_.T([_.Yh("data.thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pe.prototype,"onThumbnailChanged_",null);
_.T([_.Le("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Pe.prototype,"onYtNavigate_",null);_.T([_.Le("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pe.prototype,"onThumbnailLoaded_",null);_.T([_.Le("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.PS]),_.N("design:returntype")],Pe.prototype,"onYtServiceRequestSent_",null);
_.T([_.Le("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.DH]),_.N("design:returntype")],Pe.prototype,"onYtServiceRequestCompleted_",null);_.T([_.qR({is:"yt-confirm-dialog-renderer",noInjection:!0})],Pe);var mla;var QDz;var fC=function(){return _.a.apply(this,arguments)||this};
_.S(fC,_.a);fC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.mh(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
fC.prototype.computeConfirmButton_=function(X){var H={text:X.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};X.confirmNavigationEndpoint?H.navigationEndpoint=X.confirmNavigationEndpoint:X.confirmServiceEndpoint&&(H.serviceEndpoint=X.confirmServiceEndpoint);return H};
fC.prototype.computeShowTitle_=function(X){return!(X==null||!X.title)};
_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],fC.prototype,"data",void 0);_.T([_.g({computed:"computeShowTitle_(data)"}),_.N("design:type",Boolean)],fC.prototype,"showTitle",void 0);_.T([_.qR({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],fC);
_.O(fC,"yt-fancy-dismissible-dialog-renderer",function(){if(QDz===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;mla===void 0&&(mla=document.createElement("template"));var b=mla;l.call(H,b.content.cloneNode(!0),X.content.firstChild);QDz=X}X=QDz;return X});var TrU;var Nr9;var pC=function(){var X=_.a.apply(this,arguments)||this;X.spinnerActive=!1;return X};
_.S(pC,_.a);pC.prototype.created=function(){MzN(2201)};
pC.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
pC.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
pC.prototype.onIronOverlayClosed=pC.prototype.onIronOverlayClosed;pC.prototype.onIronOverlayOpened=pC.prototype.onIronOverlayOpened;_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.f7),_.N("design:type",Object)],pC.prototype,"tpYtIronOverlayBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],pC.prototype,"data",void 0);_.T([_.g(),_.N("design:type",Object)],pC.prototype,"spinnerActive",void 0);
_.T([_.Le("iron-overlay-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pC.prototype,"onIronOverlayOpened",null);_.T([_.Le("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pC.prototype,"onIronOverlayClosed",null);_.T([_.qR({is:"yt-loading-renderer",disableElementRegistration:!0})],pC);
_.O(pC,"yt-loading-renderer",function(){if(Nr9===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;TrU===void 0&&(TrU=document.createElement("template"));var b=TrU;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Nr9=X}X=Nr9;return X},{mode:2});var cr9;var jDn;var S8=function(){var X=_.a.apply(this,arguments)||this;X.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);X.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);X.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";X.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return X};
_.S(S8,_.a);_.R=S8.prototype;_.R.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.R.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.R.onDarkModeToggledAction=function(X){this.isDarkTheme=X};
_.R.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.R.openPopupHandler_=function(X){X.detail===this.hostElement&&this.hostElement.hidden&&_.TP(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.R.onDismissButtonTap_=function(){var X;this.closeOnDismissButton_.has(((X=this.data)==null?void 0:X.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.TP(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.R.onAcceptButtonTap_=function(){var X;this.closeOnAcceptButton_.has(((X=this.data)==null?void 0:X.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.TP(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.R.computeHasHeader_=function(X){return!!X.headerBackgroundImage};
_.R.computeLayoutStyle_=function(X){return X};
_.R.computePopupSize_=function(X){return X};
_.R.computeIconType_=function(X){return X.dialogIcon&&X.dialogIcon.iconType?X.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":X.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":X.dialogIcon.iconType:""};
_.R.computeIsLogo_=function(X){return!!X.dialogIcon&&!!X.dialogIcon.iconType&&(X.dialogIcon.iconType==="YOUTUBE_LOGO"||X.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||X.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.R.computeHasCustomLogo=function(X){return!(X==null||!X.headerForegroundImage)};
_.R.computeCustomLogo=function(X,H){if(X!=null&&X.headerForegroundImage)return X.headerForegroundImageDark?H?X.headerForegroundImageDark:X.headerForegroundImage:X.headerForegroundImage};
_.R.computeHeaderBackgroundImage=function(X,H){if(X!=null&&X.headerBackgroundImage)return H&&(X==null?0:X.headerBackgroundImageDark)?X.headerBackgroundImageDark:X.headerBackgroundImage};
_.R.shouldShowIconContainer=function(X,H){return X&&!H};
_.R.shouldShowNonYouTubeIcon=function(X,H){return!X&&!H};
_.R.getLogoImageId=function(X){var H,l,b;return(X=(H=this.computeCustomLogo(X,this.isDarkTheme))==null?void 0:(l=H.thumbnails)==null?void 0:(b=l[0])==null?void 0:b.height)&&X%31===0?"custom-logo-with-padding":"custom-logo"};
S8.prototype.openPopupHandler_=S8.prototype.openPopupHandler_;S8.prototype.dataChanged_=S8.prototype.dataChanged_;_.T([_.k(_.Gh.YtRendererstamperBehavior),_.N("design:type",Object)],S8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],S8.prototype,"ytRendererBehavior",void 0);_.T([_.g(),_.N("design:type",Boolean)],S8.prototype,"isDarkTheme",void 0);
_.T([_.g({computed:"computeCustomLogo(data, isDarkTheme)"}),_.N("design:type",Object)],S8.prototype,"customLogo",void 0);_.T([_.g({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.N("design:type",Object)],S8.prototype,"headerBackgroundImage",void 0);_.T([_.g(),_.N("design:type",Object)],S8.prototype,"data",void 0);_.T([_.g({computed:"computeHasHeader_(data)"}),_.N("design:type",Boolean)],S8.prototype,"hasHeader",void 0);
_.T([_.g({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.N("design:type",Object)],S8.prototype,"layoutStyle",void 0);_.T([_.g({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.N("design:type",Object)],S8.prototype,"popupSize",void 0);_.T([_.g({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],S8.prototype,"hasLogo",void 0);
_.T([_.g({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],S8.prototype,"hasCustomLogo",void 0);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S8.prototype,"dataChanged_",null);_.T([_.Le("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],S8.prototype,"openPopupHandler_",null);
_.T([_.qR({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],S8);
_.O(S8,"yt-upsell-dialog-renderer",function(){if(jDn===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;cr9===void 0&&(cr9=document.createElement("template"));var b=cr9;l.call(H,b.content.cloneNode(!0),X.content.firstChild);jDn=X}X=jDn;return X},{mode:2});var rru=_.Z(function(X){return _.F("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.F(_.M,{cond:X.title,then:function(H){return _.F("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},H)}}))},"ol"),JrU=_.Z(function(X){return _.F("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.F(_.l4,{data:X.closeButton},{buttonViewModel:function(H){return _.F("div",null,_.F(_.Qk,{data:H.data}))}}))},"pl"),L5z=_.Z(function(X){var H=X.data;
return _.F(_.Xi,null,_.F("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.F("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.F(_.M,{cond:function(){return!!H().image&&!!H().title},
then:function(){return _.F(_.Dp,{data:function(){return H().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.F("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.F(_.M,{cond:function(){return H().title},
then:function(l){return _.F("h3",{class:"miniAppGameInfoDialogViewModelTitle"},l)}}),_.F(_.M,{cond:function(){return H().primaryGenre},
then:function(l){return _.F("span",{class:"miniAppGameInfoDialogViewModelGenre"},l)}}))),_.F(_.M,{cond:function(){var l=H().description;
return l&&l.length<=150},
then:function(){return _.F("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.F("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return H().description}))}}))},"ql"),Ywa=_.Z(function(X){var H=X.ageRating;
return _.F("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.F(_.Dp,{data:function(){return{sources:[{url:H().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.F("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.F(_.Sj,{text:function(){return H().attributedLabel},
noPreWrap:!0})))},"rl"),I3o=_.Z(function(X){X=X.infoRows;
var H=_.jJ().resolve(_.i7),l=_.P("enable_displaying_ppn");return _.F("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.F(_.P$,{each:X},function(b){return _.F("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.F(_.M,{cond:function(){return b.label},
then:function(U){return _.F("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},U)}}),_.F(_.M,{cond:function(){return b.attributedLabel},
then:function(U){return _.F("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.F(_.Sj,{text:U,noPreWrap:!0}))}}),_.F(_.M,{cond:function(){return b.value},
then:function(U){return _.F("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},U)}}),_.F(_.M,{cond:function(){return b.attributedValue},
then:function(U){return _.F("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.F(_.Sj,{text:U,noPreWrap:!0}))}}),_.F(_.M,{cond:function(){return b.ageRating},
then:function(U){return _.F(Ywa,{ageRating:U})}}))}),_.F(_.M,{cond:function(){return l&&H.clientData.has("post_play_nonce")},
then:function(){return _.F("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.F("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.F("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},H.getData("post_play_nonce")))}}))},"sl"),Ar2=_.Z(function(X){var H=X.data;
return _.F("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.F(rru,{title:function(){return H().dialogTitle}}),_.F(L5z,{data:H}),_.F(_.M,{cond:function(){return H().infoRow},
then:function(l){return _.F(I3o,{infoRows:l})}}),_.F(JrU,{closeButton:function(){return H().closeButton}}))},"tl");
Ar2.idomCompat=!0;_.gC(Ar2,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;return _.F("yt-gulp-triggering-dialog-view-model",{class:_.Qr("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.F(_.Dp,{data:function(){return H().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.F("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.F("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.F("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.F(_.Sj,{text:function(){return H().title}})),_.F(_.M,{cond:function(){return H().bodyText},
then:function(l){return _.F(_.P$,{each:l},function(b){return _.F("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.F(_.Sj,{text:b}))})}})),_.F("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.F(_.l4,{data:function(){return H().dismissButton}},{buttonViewModel:function(l){return _.F("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.F(_.Qk,{data:l.data}))}}),_.F(_.l4,{data:function(){return H().actionButton}},{buttonViewModel:function(l){return _.F("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.F(_.Qk,{data:l.data}))}}))))},"ul"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.zh}});var X1a=_.Z(function(X){var H=X.data;X=_.Eq(function(){return H().agreements},[]);
return _.F("installment-agreements-view-model",{class:_.Qr("ytInstallmentAgreementsViewModelHost")},_.F(_.P$,{each:X},function(l){return _.F("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.F("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.F(_.Sj,{text:l.label})),_.F("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.F(_.l4,{data:function(){return l.openButton}},{buttonViewModel:_.Qk})))}))},"vl");
X1a.idomCompat=!0;var H$9=_.Z(function(X){var H=_.C(_.Gx(function(){var J,Y;return((J=X.data().createPlaylistDialogFormSchema)==null?0:(Y=J.initialValues)==null?0:Y.title)?X.data().createPlaylistDialogFormSchema.initialValues.title:""})),l=H.next().value,b=H.next().value;
H=_.C(_.Gx(function(){X.data();return!1}));
var U=H.next().value,K=H.next().value;H=_.C(_.Gx(function(){X.data();return!1}));
var w=H.next().value,d=H.next().value;H=_.C(_.Gx(function(){var J,Y;return(J=X.data().createPlaylistDialogFormSchema)==null?void 0:(Y=J.initialValues)==null?void 0:Y.visibility}));
var B=H.next().value,q=H.next().value;H=_.C(_.Gx(function(){X.data();return!1}));
var u=H.next().value,e=H.next().value;H=_.C(_.Gx(function(){var J,Y;return(J=X.data().createPlaylistDialogFormSchema)==null?void 0:(Y=J.initialValues)==null?void 0:Y.isCollaborative}));
var y=H.next().value,V=H.next().value,p=_.SJ("div");_.Wg(function(){var J=p.value.querySelector("textarea");J&&(J.value=l())},"axFRaf");
_.DR(function(){var J;BRZ((J=X.data().createPlaylistDialogFormSchema)==null?void 0:J.id,{onSubmit:function(){var Y=l();var Uy=B(),Cy=y(),sy=X.data();Y={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:Y,privacyStatus:Uy,videoIds:sy.videoIds,sourcePlaylistId:sy.sourcePlaylistId,params:Cy?sy.createPlaylistParamsCollaborationEnabled:sy.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.jJ().resolve(_.Vr).resolveCommand(Y)},
isValid:function(){return U()&&!w()&&!u()}})});
var z=function(J){if(J!==void 0&&(b(J),!U()&&J.length>0&&K(!0),U())){var Y=yfd(X.data());if(Y){var Uy=Y.minLength;Y=Y.maxLength;Uy&&J.length<Uy?d(!0):Y&&J.length>Y?d(!0):d(!1)}}},t=function(){var J=!(!y()||B()!=="PRIVATE");
e(J)},W=function(J){J!==void 0&&(q(J),t())},G=function(){if(u())return PKU(X.data())},r=function(){V(!y());
t()},Q=function(){return{validate:function(J){if(U()){var Y=yfd(X.data());
if(Y){var Uy=Y.minLength;Y=Y.translations;if(Uy&&J.length<Uy)return Y==null?void 0:Y.minLengthErrorMessage}}}}},v=function(){var J=yfd(X.data()),Y=J==null?void 0:J.maxLength,Uy;
J=J==null?void 0:(Uy=J.translations)==null?void 0:Uy.maxLengthErrorMessage;if(Y&&J)return{maxChars:Y,errorMessage:J}};
return _.F("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.F("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:p},_.F(_.l4,{data:function(){return X.data().playlistTitle}},{textFormFieldViewModel:function(J){return _.F(OKd,{data:J.data,
text:l,onInput:z,validation:Q,characterLimit:v})},
textFieldViewModel:function(J){return _.F(vxx,{data:J.data,text:l,controlledMode:!0,onInput:z,validation:Q,characterLimit:v})}})),_.F("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.F(_.l4,{data:function(){return X.data().playlistVisibility}},{dropdownViewModel:function(J){return _.F(Yk$,{data:J.data,
onSelected:W,error:G})}})),_.F(_.M,{cond:function(){return!!X.data().playlistCollaborate},
then:function(){return _.F("div",null,_.F(_.l4,{data:function(){return X.data().playlistCollaborate}},{switchListItemViewModel:function(J){return _.F(_.KmA,{data:J.data,
onTap:r})}}))}}))},"xl");var lY9=_.Z(function(X){var H=X.data;return _.F("upsell-offer-table-cell-content-view-model",null,_.F("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.F(_.ff,null,_.F(_.yO,{when:function(){var l;return(l=H().icon)==null?void 0:l.iconType}},function(){return _.F("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.F(_.Ja,{icon:function(){var l;
return(l=H().icon)==null?void 0:l.iconType.toString()}}))}),_.F(_.yO,{when:function(){return H().title}},function(){return _.F(_.Sj,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return H().title}})}),_.F(_.yO,{when:function(){return H().subtitle}},function(){return _.F(_.Sj,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return H().subtitle}})}),_.F(_.yO,{when:function(){return H().infoText}},function(){return _.F(_.Sj,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return H().infoText}})}),_.F(_.yO,{when:function(){return H().featureDescription}},function(){return _.F(_.Sj,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return H().featureDescription}})}),_.F(_.yO,{when:function(){return H().note}},function(){return _.F(_.Sj,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return H().note}})})),_.F(_.M,{cond:function(){var l;
return(l=H().icon)==null?void 0:l.iconAccessibilityText},
then:function(){return _.F("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var l;return(l=H().icon)==null?void 0:l.iconAccessibilityText})}})))},"yl");
lY9.idomCompat=!0;var oYu=_.Z(function(X){var H=X.data;var l=X.cellIndex;var b=X.rowIndex;return _.F("upsell-offer-table-cell-view-model",null,_.F("div",{class:_.Qr("ytUpsellOfferTableCellViewModelCellWrapper",function(){return H().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":H().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var U,K;return"cell-"+((U=b==null?void 0:b())!=null?U:0)+"-"+((K=l==null?void 0:l())!=null?K:0)},
role:function(){return H().isFirstRow?"columnHeader":H().isFirstColumn?"rowheader":"gridcell"}},_.F(_.l4,{data:function(){return H().contents}},{upsellOfferTableCellContentViewModel:lY9})))},"zl");
oYu.idomCompat=!0;var b$$=_.Z(function(X){var H=X.data;var l=X.upsellTableIsFirstRow;var b=X.rowIndex;var U=function(){return(l==null?0:l())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},K=function(){return(l==null?0:l())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.F("ytm-upsell-offer-table-row-view-model",null,_.F("div",{class:function(){return(l==null?0:l())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(b==null?void 0:b())+"-1 cell-"+(b==null?void 0:b())+"-2"}},_.F(_.l4,{data:function(){return H().rowHeaderCell}},{upsellOfferTableCellViewModel:function(w){return _.F("div",{class:U},_.F(oYu,{data:w.data,
cellIndex:0,rowIndex:b}))}}),_.F("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.F(_.l4,{data:function(){return H().contentCells}},{upsellOfferTableCellViewModel:function(w,d){return _.F("div",{class:K},_.F(oYu,{data:w.data,
cellIndex:function(){return d()+1},
rowIndex:b}))}}))))},"Al");
b$$.idomCompat=!0;var Ubz=_.Z(function(X){var H=X.data;return _.F("ytm-upsell-offer-table-view-model",null,_.F("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.F("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.F(_.l4,{data:function(){return H().rows}},{upsellOfferTableRowViewModel:function(l,b){return _.F(b$$,{data:l.data,
upsellTableIsFirstRow:function(){return b()===0},
rowIndex:b})}}))))},"Bl");
Ubz.idomCompat=!0;var $bu=_.Z(function(X){var H=function(){return X.data()},l=_.Eq(X.noPadding,!1),b=function(){var K,w;
return(w=(K=H().logo.accessibilityData)==null?void 0:K.label)!=null?w:""},U={};
return _.F("upsell-view-model",{class:_.Qr("ytUpsellViewModelHost",(U.ytUpsellViewModelHostNoPadding=function(){return l()},U.ytUpsellViewModelHostWide=function(){return H().offerTable!==void 0},U))},_.F("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.F(_.M,{cond:function(){return _.Su(H().logo)},
then:function(K){return _.F(_.Dp,{data:K,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:b})}})),_.F("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.F(_.Sj,{text:function(){return H().title}})),_.F("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.F(_.P$,{each:function(){var K;
return(K=H().subtitles)!=null?K:[]},
keyBy:"INDEX"},function(K){var w={};return _.F("div",{class:_.Qr("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(w.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return H().offerTable!==void 0},w))},_.F(_.Sj,{text:K}))})),_.F("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.F(_.P$,{each:function(){var K;
return(K=H().benefitInfos)!=null?K:[]},
keyBy:"INDEX"},function(K){return _.F(_.M,{cond:function(){return K().info},
then:function(w){return _.F("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.F(_.Ja,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.F(_.Sj,{text:w}))}})})),_.F(_.M,{cond:function(){return H().offerTable!==void 0},
then:function(){return _.F("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.F(_.l4,{data:function(){return H().offerTable}},{upsellOfferTableViewModel:function(K){return _.F(Ubz,{data:K.data})}}))}}),_.F("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.F(_.P$,{each:function(){var K;
return(K=H().legalInfos)!=null?K:[]},
keyBy:"INDEX"},function(K){var w={};return _.F("div",{class:_.Qr("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(w.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return H().offerTable!==void 0},w))},_.F(_.Sj,{text:K}))})))},"Cl");var K4b=_.Z(function(X){var H=X.data;X={};X=(X.ytMiniAppScoreChallengeViewModelScoreRadial=!0,X.ytMiniAppScoreChallengeViewModelDarkScoreRadial=fOU(),X);return _.F("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.F("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return H().title}),_.F("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return H().subtitle}),_.F("div",{class:_.dj(X)},_.F("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return H().score})),_.F("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return H().prompt}))},"Dl");var Rrb=function(){this.store=_.tF();this.formId=""};
Rrb.prototype.onInit=function(X){X.formId&&(this.formId=X.formId,this.store.dispatch(_.Of({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
Rrb.prototype.cleanup=function(){this.store.dispatch(_.Of({type:"RESET_COMMAND_MAP"}))};var C1u=_.Z(function(X){function H(d){if(d&&(d=_.f(d,_.KS)))return Object.assign({},d,{isSelected:K()})}
var l=_.C(_.Gx(function(){var d,B;return(B=(d=_.f(X.data().option,_.KS))==null?void 0:d.isSelected)!=null?B:!1})),b=l.next().value,U=l.next().value,K=b;
_.DR(function(){var d;BRZ((d=X.data().formSchema)==null?void 0:d.id,{onSubmit:function(){var B=_.jJ().resolve(_.Vr),q=!!X.data().selectedCommand,u=!!X.data().unselectedCommand;if(K()){if(q)var e=X.data().selectedCommand}else u&&(e=X.data().unselectedCommand);e=_.sl(e);H(X.data().option)&&!e?(B="",!q&&u?B="selected ":q&&!u&&(B="unselected "),q=new _.qd("No "+B+"command found for SelectionListItemFormViewModel"),_.n2(q)):e&&B.resolveCommand(e)},
isValid:function(){return!0}})});
var w=function(){U(!K())};
_.E2(function(){var d,B,q=(d=X.data())==null?void 0:(B=d.formSchema)==null?void 0:B.id;q&&_.XA()().delete(q)});
return _.F("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.F("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.F(_.Sj,{text:function(){return X.data().paragraph}})),_.F(_.M,{cond:function(){return H(X.data().option)},
then:function(d){return _.F(_.xK,{data:d,isCompact:!0,hideSelectionTextChevron:!0,onTap:w,disableHorizontalPadding:!0})}}))},"El");var w1z=_.Z(function(X){var H=X.data;var l=X.disablePadding;var b=X.className;var U=_.SJ("yt-dialog-header-view-model"),K=function(){var B=H().imageBanner;a:switch(H().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var q="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:q="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:B,style:q,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},w=function(){return H().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
d=function(){return H().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.DR(function(){var B=function(){_.TP(U.value,"yt-refit-popups-action")},q;
(q=U.value)==null||q.addEventListener("image-loaded",B);_.E2(function(){var u;(u=U.value)==null||u.removeEventListener("image-loaded",B)})});
X={};return _.F("yt-dialog-header-view-model",{el:U,class:_.Qr(b,(X.ytDialogHeaderViewModelHost=!0,X.ytDialogHeaderViewModelHostDisablePadding=l,X.ytDialogHeaderViewModelHostCentered=d,X))},_.F(_.M,{cond:function(){return H().imageBanner},
then:function(){var B={};return _.F("div",{class:_.Qr(b,(B.ytDialogHeaderViewModelBanner=!0,B.ytDialogHeaderViewModelBannerFullBleed=w,B)),style:_.rC({"max-height":function(){return H().assetContainerMaxHeight!==void 0?H().assetContainerMaxHeight+"px":void 0}})},_.F(_.cU,{data:K,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.F(_.M,{cond:function(){return H().headerBlock},
then:function(){var B={};return _.F("div",{class:_.Qr("ytDialogHeaderViewModelHeaderBlock",(B.ytDialogHeaderViewModelHeaderBlockCentered=d,B))},_.F(_.l4,{data:function(){return H().headerBlock}},{contentPreviewImageViewModel:function(q){return _.F(_.cU,{data:q.data,
notifyOnLoaded:!0})}}))}}),_.F(_.M,{cond:function(){return H().customBanner},
then:function(B){var q={};return _.F("div",{class:_.Qr("ytDialogHeaderViewModelCustomAssetContainer",(q.ytDialogHeaderViewModelCustomAssetContainerCentered=d,q))},_.F(_.l4,{data:B},{avatarStackViewModel:_.eD}))}}),_.F(_.M,{cond:function(){return H().headline},
then:function(B){return _.F("h2",null,_.F(_.Sj,{text:B,className:"ytDialogHeaderViewModelText"}))}}))},"Fl");
w1z.idomCompat=!0;var dbz=_.Z(function(X){var H=_.tVz(function(){return X.data().formId}),l=H.submitForm,b=H.isValid;
return _.F("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.F(_.l4,{data:function(){return X.data().panelFooter}},{panelFooterViewModel:function(U){return _.F(sD,{data:U.data,
disablePadding:!0,disablePrimaryButton:function(){return!b()},
onClickPrimaryButton:function(){l()}})}}))},"Gl");var hrn=_.Z(function(X){var H=function(){var l,b;return(b=(l=_.f(X.data().rendererContext,_.RB))==null?void 0:l.label)!=null?b:""};
return _.F("yt-dialog-image-content-view-model",{class:_.Qr("ytDialogImageContentViewModelHost",X.className)},_.F(_.M,{cond:function(){return _.Su(X.data().image)},
then:function(l){var b={};return _.F("div",{style:_.rC((b.width=(0,_.f3)(function(){var U;return(U=X.data().imageMaxWidth)!=null?U:""}),b)),
class:"ytDialogImageContentViewModelImage"},_.F(_.Dp,{data:l,alt:H,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.F(_.Sj,{text:function(){return X.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Hl");var qHr=_.Z(function(X){var H=_.gT(X,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),l=H.elRefCallback;X=H.Icon;var b=H.Asset,U=H.assetType,K=H.Title,w=H.LeadingActionHeader,d=H.TrailingActionHeader,B=H.headerPosition,q=H.Content,u=H.buttonLayout,e=H.buttonStyle,y=H.primaryButtonWiz,V=H.secondaryButtonWiz,p=H.contentAlignment,z=H.isFullscreen,t=H.width,W=H.maxHeight,G=H.isHeaderWizDefined,r=H.Header,Q=H.isFooterWizDefined,
v=H.Footer;H=_.SJ("dialog-layout",function(g8){l==null||l(g8)});
var J=y?function(){var g8={};return y({buttonOverrides:function(){return{style:(e==null?void 0:e())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Qr((g8["yt-spec-dialog-layout__dialog-layout-button"]=!0,g8["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(u==null?void 0:u())===0||(u==null?void 0:u())===2},g8))})}:void 0,Y=V?function(){var g8={};
return V({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Qr((g8["yt-spec-dialog-layout__dialog-layout-button"]=!0,g8["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(u==null?void 0:u())===0||(u==null?void 0:u())===2},g8))})}:void 0,Uy=function(){return(!!K||!!w||!!d)&&B()===0},Cy={},sy={},FO={},ub={};
return _.F("dialog-layout",{el:H,class:_.Qr((Cy["yt-spec-dialog-layout"]=!0,Cy["yt-spec-dialog-layout--dialog-layout-fullscreen"]=z,Cy["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!z()},Cy["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return W()===1},Cy["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(U==null?void 0:U())===1},Cy)),
style:function(){return(t==null?void 0:t())!==void 0?"width: "+t()+"px;":""}},X?_.F("div",{class:_.Qr((sy["yt-spec-dialog-layout__dialog-layout-icon"]=!0,sy["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!b&&B()===1},sy["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return p()===1},sy))},_.F(X,null)):null,_.F(_.M,{cond:G,
then:function(){return r?_.F("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.F(r,null)):null},
else:function(){return _.F(_.Xi,null,_.F(_.M,{cond:Uy,then:function(){return _.F(F42,{contentAlignment:p,LeadingActionHeader:w,TrailingActionHeader:d,Title:K,isAboveAsset:!!b})}}),b?_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.F(b,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.F("div",{class:_.Qr((FO["yt-spec-dialog-layout__dialog-layout-container"]=!0,FO["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(p==null?void 0:p())===1},
FO["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!K&&!(r&&G())||!!b&&(B==null?void 0:B())===0},FO))},_.F(_.M,{cond:function(){return K&&!r&&(B==null?void 0:B())===1},
then:function(){return _.F(F42,{contentAlignment:p,LeadingActionHeader:w,TrailingActionHeader:d,Title:K,isAboveAsset:!1})}}),q?_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.F(q,null))):null,_.F(_.M,{cond:Q,
then:function(){return v?_.F("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.F(v,null)):null}}),J||Y?_.F(BXX,{footerClasses:_.Qr((ub["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,ub["yt-spec-dialog-layout__dialog-layout-footer"]=!0,ub["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(u==null?void 0:u())===2},ub["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(u==null?void 0:u())===1},ub)),
PrimaryButton:J,SecondaryButton:Y}):null))},"Il"),F42=_.Z(function(X){var H=_.gT(X,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),l=H.contentAlignment,b=H.LeadingActionHeader;X=H.Title;var U=H.TrailingActionHeader,K=H.isAboveAsset,w=H.enableLeadingActionHeader;H={};return _.F("div",{class:_.Qr((H["yt-spec-dialog-layout__dialog-header-container"]=!0,H["yt-spec-dialog-layout__dialog-header"]=!0,H["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=K,H["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(l==null?void 0:l())===1&&w()},H))},_.F(_.M,{cond:function(){return w()},
then:function(){return b?_.F("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.F(b,null)):null}}),X?_.F("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.F(X,null)):null,U?_.F("div",null,_.F(U,null)):null)},"Jl"),BXX=_.Z(function(X){var H=X.footerClasses;
var l=X.PrimaryButton;X=X.SecondaryButton;return _.F("div",{class:H},X?_.F(X,null):null,l?_.F(l,null):null)},"Kl");var so2=new _.gz("TIME_PICKER_VIEW_MODEL_TOKEN");var MNa=_.Z(function(X){var H=X.data;return _.F("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.F("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.F(_.l4,{data:function(){return H().avatar}},{avatarViewModel:_.MX})),_.F("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.F(_.Sj,{text:function(){return H().title}})),_.F(_.Sj,{text:function(){return H().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Ll");var uPo=_.Z(function(X){return _.F("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.F(_.Sj,{text:function(){return X.data().inviteMessage}})),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.F(_.Sj,{text:function(){return X.data().attributedAccountSectionHeaderText}})),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.F(_.l4,{data:function(){return X.data().accountAvatar}},{avatarViewModel:_.MX}),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.F(_.Sj,{text:function(){return X.data().accountName}}),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.F(_.Sj,{text:function(){return X.data().handle}}))),_.F(_.l4,{data:function(){return X.data().trailingButton}},{buttonViewModel:_.Qk})),_.F("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.F(_.Sj,{text:function(){return X.data().termsOfService}})))},"Ml");var err=_.Z(function(X){var H=X.data;return _.F("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.F("div",{class:"ytAccessConfirmationViewModelContent"},_.F(_.l4,{data:function(){var l;return(l=H().avatar)!=null?l:H().dualAvatar}},{dualAvatarViewModel:function(l){return _.F(_.XJN,{data:l.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(l){return _.F(_.uu,{data:l.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.F("h2",{class:"ytAccessConfirmationViewModelTitle"},_.F(_.Sj,{text:function(){return H().title}})),_.F(_.Sj,{text:function(){return H().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Nl");var yno=_.Z(function(X){var H=function(){var d,B;return(d=X.data().formSchema)==null?void 0:(B=d.initialValues)==null?void 0:B.selectedLanguages},l=_.C(_.Gx(function(){return H()})),b=l.next().value,U=l.next().value,K={};
_.Wg(function(){var d=X.data().formSchema,B=d==null?void 0:d.submitConfig;X.data()!==K&&(K=X.data(),d&&B&&F1a(d.id,{isValid:function(){var q,u=(q=b())!=null?q:[],e;q=(e=H())!=null?e:[];if(u.length!==q.length)return!0;e=new Set(q);u=_.C(u);for(q=u.next();!q.done;q=u.next())if(!e.has(q.value))return!0;return!1},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:b()||[]}}},
submitConfig:B}))},"iCaJcc");
var w=function(d){var B=d.key;if(B){var q;if(B&&((q=b())==null?0:q.includes(B))){var u;U((u=b())==null?void 0:u.filter(function(e){return e!==B}))}else U([].concat(_.LJ(b()||[]),[B]))}};
return _.F("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.F(_.l4,{data:function(){return X.data().checkboxGroup}},{checkboxGroupViewModel:function(d){return _.F(GQZ,{data:d.data,
onItemTap:w,selectedKeys:b,controlledMode:!0,disableHorizontalPadding:X.disableHorizontalPadding})}}))},"Pl");var VNu=_.Z(function(X){var H=X.data;var l=void 0;X=_.C(_.Gx(function(){var u;return((u=_.f(H().content,kFa))==null?void 0:u.defaultSelectedKey)||""}));
var b=X.next().value,U=X.next().value,K,w=function(){U("");var u;(u=l)==null||u.cleanup()};
_.DR(function(){l=new Rrb;window.addEventListener("yt-popup-closed",w)});
_.Wg(function(){if(l&&K!==H().formId&&(l.onInit(H()),(K=H().formId)&&b())){var u=l,e={key:b()};e.command&&u.store.dispatch(ZRx(K,e.command))}},"bo7oA");
_.E2(function(){window.removeEventListener("yt-popup-closed",w)});
var d=function(u,e,y){e.key&&y&&e.key!==b()&&(U(e.key),l&&e.command&&l.store.dispatch(ZRx(y,e.command)))},B=function(){if(_.f(H().content,kFa))return!(b==null?0:b())},q=_.jJ().resolve(_.c$(so2));
return _.F("yt-dialog-view-model",{class:_.Qr("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.F(qHr,{Header:function(){return _.F(_.l4,{data:function(){return H().header}},{dialogHeaderViewModel:function(u){return _.F(w1z,{data:u.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!H().header},
Content:function(){return _.F(_.l4,{data:function(){return H().customContent?H().customContent:H().content}},Object.assign({},{basicContentViewModel:_.n3,
createPlaylistDialogFormViewModel:H$9,collaborativePlaylistInviteMessageViewModel:uPo,preferredLanguageSettingsPanelViewModel:function(u){return _.F(yno,{data:u.data,disableHorizontalPadding:!0})},
miniAppScoreChallengeViewModel:K4b,radioButtonGroupViewModel:function(u){var e=u.data;return _.F(ExN,{data:e,selectedKey:b,onSelected:d,groupName:function(){return e().formId}})},
selectionListItemFormViewModel:C1u,upsellViewModel:function(u){return _.F($bu,{data:u.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:MNa,installmentAgreementsViewModel:X1a,accessConfirmationViewModel:err,listViewModel:function(u){return _.F(_.qye,{data:u.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:hrn},q&&{timePickerViewModel:q}))},
Footer:function(){return _.F(_.l4,{data:function(){return H().footer}},{panelFooterViewModel:function(u){return _.F(sD,{data:u.data,
disablePadding:!0,disablePrimaryButton:B})},
formPanelFooterViewModel:dbz,formFooterViewModel:function(u){return _.F(nxZ,{data:u.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!H().footer}}))},"Rl");
VNu.idomCompat=!0;_.gC(VNu,"yt-dialog-view-model",{props:{data:_.zh},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var P1R=_.Z(function(X){var H=X.data;return _.F("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.F(_.M,{cond:function(){return H().title},
then:function(l){return _.F("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.F(_.Sj,{text:l,className:"ytPanelHeaderViewModelTitle"}))}}),_.F(_.M,{cond:function(){return H().subtitle},
then:function(l){return _.F(_.Sj,{text:l,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Sl"),fY9=_.Z(function(X){var H=X.data;
var l=_.hTm(function(){return H().rendererContext});
X={};return _.F("yt-panel-header-view-model",{class:_.Qr("ytPanelHeaderViewModelHost",(X.ytPanelHeaderViewModelHostHideDivider=function(){return!!H().shouldHideDivider},X.ytPanelHeaderViewModelHostCompact=function(){return!!H().subtitle},X)),
"aria-label":function(){var b;return(b=l())==null?void 0:b.label}},_.F(_.M,{cond:function(){return _.ss(H().rendererContext)},
then:function(){return _.F(_.Ib_,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.qh(H().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.F(P1R,{data:H}))},
else:function(){return _.F(P1R,{data:H})}}),_.F("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.F(_.l4,{data:function(){return H().trailingButtons}},{buttonViewModel:function(b){return _.F(_.Qk,{data:b.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Tl");
fY9.idomCompat=!0;var p1a=_.Z(function(X){var H=_.Nq(function(K){var w;if((w=X.skipContentClick)==null?0:w.call(X))return!1;X.onContentWrapperClick(K);return!0}),l,b,U;
return _.F("div",{class:_.Qr("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return X.isAnimating()?"transform: translateY("+X.currentY()+"px);transition: 0.2s":""}},(l=X.header)==null?void 0:l.call(X),_.F("div",{id:X.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.rC({"max-height":(0,_.f3)(X.maxHeightForContentWrapper)}),"on:scroll":_.Nq(function(K){return X.onScroll(K),!1}),
"on:touchmove":_.Nq(function(K){return K.stopPropagation(),!1})},_.F("div",{el:_.xl(X.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":H},(b=X.body)==null?void 0:b.call(X))),(U=X.footer)==null?void 0:U.call(X))},"Ul");
p1a.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var SHa=_.Z(function(X){var H=_.Eq(X.leadingLabel),l=_.Eq(X.trailingLabel),b=_.Eq(X.footerButtonType),U=function(){return H()||l()||X.hasPrimaryButton()||X.hasSecondaryButton()},K={},w=_.Qr("yt-spec-bottom-sheet-layout__primary-button",(K["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return b()===0&&X.hasPrimaryButton()},K["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return b()===1&&X.hasPrimaryButton()},K["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return b()===2&&X.hasPrimaryButton()},K["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return b()===3&&X.hasPrimaryButton()},K));
K={};var d=_.Qr("yt-spec-bottom-sheet-layout__secondary-button",(K["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return b()===1&&X.hasSecondaryButton()},K["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return b()===2&&X.hasSecondaryButton()},K["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return b()===3&&X.hasPrimaryButton()},K));
return _.F(_.M,{cond:X.hasFooterOverride,then:function(){var B;return _.F(_.Xi,null,(B=X.footerOverride)==null?void 0:B.call(X))},
else:function(){return _.F(_.M,{cond:U,then:function(){return _.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.F(_.M,{cond:function(){return H()||l()},
then:function(){var B={};return _.F("div",{class:_.Qr("yt-spec-bottom-sheet-layout__footer-label-wrapper",(B["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!X.hasPrimaryButton()},B))},_.F(_.M,{cond:H,
then:function(){return _.F("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},H)}}),_.F(_.M,{cond:l,
then:function(){return _.F("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},l)}}))}}),_.F(_.M,{cond:function(){return X.hasPrimaryButton()||X.hasSecondaryButton()},
then:function(){var B={};return _.F("div",{class:_.Qr("yt-spec-bottom-sheet-layout__footer-button-wrapper",(B["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Qf6,B))},_.F(_.M,{cond:function(){return X.hasSecondaryButton()&&b()!==0},
then:function(){var q;return _.F("div",{class:d},(q=X.secondaryButton)==null?void 0:q.call(X))}}),_.F(_.M,{cond:X.hasPrimaryButton,
then:function(){var q;return _.F("div",{class:w},(q=X.primaryButton)==null?void 0:q.call(X))}}))}}))}})}})},"Vl");
SHa.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var zr9=_.Z(function(X){var H=_.Eq(X.title),l=_.Eq(X.subtitle);return _.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:X.headerId,"on:touchstart":_.Nq(function(b){var U;(U=X.touchstart)==null||U.call(X,b);return!1}),
"on:touchmove":_.Nq(function(b){var U;(U=X.touchmove)==null||U.call(X,b);return!1}),
"on:touchend":_.Nq(function(b){var U;(U=X.touchend)==null||U.call(X,b);return!1})},_.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.F(_.M,{cond:X.hasHeaderOverride,
then:function(){var b;return _.F(_.Xi,null,(b=X.headerOverride)==null?void 0:b.call(X))},
else:function(){var b={};return _.F("div",{class:_.Qr((b["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,b["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=H,b))},_.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.F(_.M,{cond:H,then:function(){return _.F(_.Xi,null,_.F("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},H),_.F(_.M,{cond:l,then:function(){return _.F("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
l)}}))}})),_.F(_.M,{cond:function(){return H()&&X.hasActionHeader()},
then:function(){var U;return _.F("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(U=X.actionHeader)==null?void 0:U.call(X))}}))}}))},"Wl");
zr9.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Z(function(X){function H(Uy){if(!r&&typeof MutationObserver!=="undefined"){var Cy={childList:!0};"MutationObserver"in window&&(r=new MutationObserver(l.bind(void 0,Uy)),r.observe(Uy,Cy))}}
function l(Uy){typeof r!=="undefined"&&(Q["content-wrapper"]===void 0&&(Q["content-wrapper"]=Uy.children[0].clientHeight),z(Q["content-wrapper"]),p()>t()||W(p()))}
function b(){V(window.innerHeight);p()>t()||W(p());v.isFullScreen[0]()&&p()>t()?J().dispatch("Snap To Full Screen",{maxHeight:G()}):J().dispatch("Snap To Neutral Position",{maxHeight:t()})}
function U(Uy){document.body.style.overscrollBehavior="none";Uy.preventDefault();J().dispatch("Touch Start",{event:Uy})}
function K(Uy){Uy.preventDefault();J().dispatch("Touch Move",{event:Uy,contentScrollable:p()>t(),fullContentWrapperHeight:G(),contentWrapperHeight:t(),heightMap:Q,contentWrapperId:"content-wrapper",header:kaN(X),footer:kaN(X),headerDivHeight:Q["bottom-sheet-header"],footerDivHeight:Q["bottom-sheet-footer"]})}
function w(){document.body.style.overscrollBehavior="";v.isFullScreen[0]()?v.currentY[0]()>=60?J().dispatch("Snap To Neutral Position",{maxHeight:t()}):J().dispatch("Snap To Full Screen",{maxHeight:G()}):v.currentY[0]()>=60?d():v.currentY[0]()<=-60&&p()>t()?J().dispatch("Snap To Full Screen",{maxHeight:G()}):J().dispatch("Snap To Neutral Position",{maxHeight:t()})}
function d(){J().dispatch("Close Sheet",{clientHeight:y(),maxHeight:0});setTimeout(function(){noY()},250)}
var B=_.SJ("div"),q=_.SJ("div"),u=_.C(_.FU(window.innerHeight,void 0,"CmOsU")),e=u.next().value;u=u.next().value;var y=e,V=u;u=_.C(_.FU(0,void 0,"p0Flhb"));e=u.next().value;u=u.next().value;var p=e,z=u;u=_.C(_.Gx(function(){var Uy=kaN(X);return.6*y()-p0Z(Uy)-SQl(Uy)}));
e=u.next().value;u=u.next().value;var t=e,W=u,G=function(){var Uy=kaN(X),Cy=y(),sy=Q["bottom-sheet-header"],FO=Q["bottom-sheet-footer"];return Cy-(Uy.hasHeaderFn&&sy!==void 0?sy:p0Z(Uy))-(Uy.hasFooterFn&&FO!==void 0?FO:SQl(Uy))-24-24},r=null,Q={},v={initialY:_.FU(0,void 0,"sxdESd"),
currentY:_.FU(0,void 0,"GZzqeb"),isAnimating:_.FU(!1,void 0,"vJBupc"),isFullScreen:_.FU(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.Gx(t)},J=function(){var Uy=null;return function(){if(!Uy){var Cy={initialY:v.initialY[0](),currentY:v.currentY[0](),isAnimating:v.isAnimating[0](),isFullScreen:v.isFullScreen[0](),maxHeightForContentWrapper:v.maxHeightForContentWrapper[0]()};Uy=zIZ(Cy)}return Uy}}();
_.DR(function(){window.addEventListener("resize",b);J().subscribe(function(Uy){v.initialY[1](Uy.initialY);v.currentY[1](Uy.currentY);v.isAnimating[1](Uy.isAnimating);v.isFullScreen[1](Uy.isFullScreen);v.maxHeightForContentWrapper[1](Uy.maxHeightForContentWrapper)});
requestAnimationFrame(function(){B.value&&(Q["bottom-sheet-header"]=B.value.clientHeight);q.value&&(Q["bottom-sheet-footer"]=q.value.clientHeight)})});
_.E2(function(){window.removeEventListener("resize",b);r&&(r.disconnect(),r=null)});
var Y=_.Qr({"bottom-sheet-content-without-icon":function(){var Uy;return!((Uy=X.shouldShowIcons)==null?0:Uy.call(X))}});
return _.F("bottom-sheet-layout",null,_.F(p1a,{contentWrapperId:"content-wrapper",isAnimating:function(){return v.isAnimating[0]()},
currentY:function(){return v.currentY[0]()},
maxHeightForContentWrapper:function(){return v.maxHeightForContentWrapper[0]()},
shouldShowIcons:X.shouldShowIcons,skipContentClick:X.skipContentClick,onScroll:function(){var Uy=document.getElementById("bottom-sheet-header"),Cy=document.getElementById("content-wrapper");if(Uy&&Cy){var sy={};sy=(sy["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,sy["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,sy);Uy.className=Cy.scrollTop>1?_.dj(sy):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:noY,contentWrapperEl:function(Uy){H(Uy);requestAnimationFrame(function(){l(Uy)})},
header:function(){return _.F("div",{el:B},_.F(zr9,{touchstart:U,touchmove:K,touchend:w,title:X.headerTitle,subtitle:X.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:X.headerFn,hasHeaderOverride:X.hasHeaderFn,actionHeader:X.headerActionHeader,hasActionHeader:X.hasHeaderActionHeader}))},
footer:function(){return _.F("div",{el:q},_.F(SHa,{footerButtonType:X.footerButtonType,leadingLabel:X.footerLeadingLabel,trailingLabel:X.footerTrailingLabel,primaryButton:X.footerPrimaryButton,hasPrimaryButton:X.hasFooterPrimaryButton,secondaryButton:X.footerSecondaryButton,hasSecondaryButton:X.hasFooterSecondaryButton,footerOverride:X.footerFn,hasFooterOverride:X.hasFooterFn}))},
body:function(){return _.F(_.M,{cond:X.hasContentFn,then:function(){var Uy;return _.F("div",{class:Y},(Uy=X.contentFn)==null?void 0:Uy.call(X))}})}}))},"Xl").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var nY$=_.Z(function(X){var H=_.jJ().resolve(_.hT);return _.F("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Nq(function(){return void H.closeSheet()})},_.F(_.M,{cond:function(){return!!X.header},
then:function(){return _.F("div",{class:"ytContextualSheetLayoutHeaderContainer"},X.header())}}),_.F(_.M,{cond:function(){return!!X.content},
then:function(){return _.F("div",{class:"ytContextualSheetLayoutContentContainer"},X.content())}}),_.F(_.M,{cond:function(){return!!X.footer},
then:function(){return _.F("div",{class:"ytContextualSheetLayoutFooterContainer"},X.footer())}}))},"Yl");
nY$.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var k8a=_.Z(function(X){var H=X.data;var l=_.jJ().resolve(_.Vr),b=_.SJ("yt-sheet-view-model",function(U){if(_.P("web_focus_first_element_sheet")||!_.P("sheet_focus_first_killswitch"))return U.addEventListener("focus",function(){d9d(U)}),function(){U.removeEventListener("focus",function(){d9d(U)})}});
X={};return _.F("yt-sheet-view-model",{"on:mousedown":_.Nq(function(U){_.P("sheet_focus_first_killswitch")||U.currentTarget!==U.target&&U.preventDefault()}),
"on:focus":_.Nq(function(){_.P("sheet_focus_first_killswitch")||d9d(b.value)}),
"on:mouseleave":_.Nq(function(){var U,K=H==null?void 0:(U=H())==null?void 0:U.rendererContext,w;(U=(w=_.f(K,_.u4))==null?void 0:w.onHoverEnd)&&l.resolveCommand(U)}),
class:_.Qr("ytSheetViewModelHost",(X.ytSheetViewModelContextual=!0,X.ytSheetViewModelDisableBackdropFilter=_.P("web_disable_backdrop_filter"),X)),el:b,tabindex:-1},_.F(_.M,{cond:H,then:function(U){return _.F(nY$,{header:function(){return _.F(_.l4,{data:function(){return U().header}},{panelHeaderViewModel:fY9})},
content:function(){return _.F(_.l4,{data:function(){return U().content}},{listViewModel:function(K){return _.F(_.qye,{data:K.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:$bu,miniAppScoreChallengeViewModel:K4b})},
footer:function(){return _.F(_.l4,{data:function(){return U().footer}},{panelFooterViewModel:sD})}})}}))},"Zl");
k8a.idomCompat=!0;_.gC(k8a,"yt-sheet-view-model",{props:{data:_.zh}});var Db2=_.Z(function(X){var H=function(){var l;return(l=X.data().enableDebuggingFeatures)!=null?l:!1};
return _.F("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.F(_.P$,{each:function(){var l;return(l=X.data().stickers)!=null?l:[]}},function(l){return _.F(xb2,{data:function(){return l},
debugMode:H})}))},"$l"),xb2=_.Z(function(X){var H=_.gT(X,{debugMode:!1}).debugMode,l=_.Eq(function(){var B;
return(B=X.data().region)==null?void 0:B.w},0),b=_.Eq(function(){var B;
return(B=X.data().region)==null?void 0:B.h},0),U=_.Eq(function(){var B;
return(B=X.data().region)==null?void 0:B.x},0),K=_.Eq(function(){var B;
return(B=X.data().region)==null?void 0:B.y},0),w=_.Nq(function(){var B=X.data().onTap;
B&&_.yr(B)}),d={};
return _.F("div",{class:_.Qr("ytStoriesStickerLayerViewModelSticker",(d.ytStoriesStickerLayerViewModelDebugMode=H,d)),style:_.rC({width:function(){return 100*l()+"%"},
height:function(){return 100*b()+"%"},
left:function(){return 100*U()+"%"},
top:function(){return 100*K()+"%"},
"flex-direction":function(){return xON(X.data().flexDirection)},
"justify-content":function(){return DOZ(X.data().justifyContent)},
"align-items":function(){return tH5(X.data().alignItems)}}),
"on:click":w},_.F(_.l4,{data:function(){return X.data().button||X.data().toggleButton}},{buttonViewModel:function(B){return _.F(_.Qk,{data:B.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(B){return _.F(_.KL,{data:B.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"am");var W4A=_.Z(function(X){var H=function(){return X.data()},l={},b=_.C(_.FU(!1,void 0,"LkwKDb")),U=b.next().value,K=b.next().value,w=_.Eq(function(){return H().backgroundColor},0);
b=_.Eq(function(){return H().actionButtons},[]);
var d=_.Eq(function(){return H().stickerLayer},{}),B=_.hTm(function(){return H().rendererContext}),q=function(){var e,y;
return{animationRef:l,animationConfig:{autoplay:!1,loop:!1,path:(y=(e=H().foregroundAnimation)==null?void 0:e.url)!=null?y:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){K(!0)},
complete:function(){X.navigateToNextItemOnLottieComplete()}}}},u=function(){var e,y,V,p,z,t,W,G;
return{animationConfig:{autoplay:(t=(e=H().backgroundAnimation)==null?void 0:(y=e.settings)==null?void 0:y.autoplay)!=null?t:!1,loop:(W=(V=H().backgroundAnimation)==null?void 0:(p=V.settings)==null?void 0:p.loop)!=null?W:!1,path:(G=(z=H().backgroundAnimation)==null?void 0:z.url)!=null?G:"",name:"stories_item_background_animation"}}};
_.Wg(function(){if(X.isVisible()&&U()){var e;(e=l.lottieEl)==null||e.play();X.animationRef()&&(X.animationRef().lottieEl=l.lottieEl)}else{var y;(y=l.lottieEl)==null||y.stop()}},"dlAj1b");
return _.F("yt-stories-item-view-model",{"aria-label":function(){var e;return(e=B())==null?void 0:e.label},
class:"ytStoriesItemViewModelHost",style:_.rC({"background-color":function(){return _.qw(w())+";"}})},_.F("div",{class:"ytStoriesItemViewModelAssetContent"},_.F(_.M,{cond:function(){return!!H().backgroundAnimation},
then:function(){return _.F(_.Jx,{data:u,animationName:function(){return u().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.F(_.M,{cond:function(){return!!H().backgroundImage},
then:function(){return _.F(_.Dp,{data:function(){return H().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.F(_.M,{cond:function(){return!!H().foregroundAnimation},
then:function(){return _.F(_.Jx,{data:q,animationName:function(){return q().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.F(_.M,{cond:function(){return!!H().foregroundImage},
then:function(){return _.F(_.Dp,{data:function(){return H().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.F("div",{class:"ytStoriesItemViewModelTopShadow"}),_.F(_.l4,{data:function(){return d()}},{storiesStickerLayerViewModel:Db2})),_.F("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.rC({"background-color":function(){return _.qw(w())}})},_.F("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.F(_.P$,{each:b},function(e){return _.F(tN2,{storiesButtonData:function(){return e},
pauseAutoNavigation:X.pauseAutoNavigation})}))))},"cm"),EYr={style:"overlay",
type:"outline"},tN2=_.Z(function(X){var H={};return _.F("div",{class:_.Qr("ytStoriesItemViewModelActionButton",(H.ytStoriesItemViewModelStretchedActionButton=function(){return X.storiesButtonData().size==="STORIES_BUTTON_SIZE_STRETCH"},H)),
"on:click":_.Nq(X.pauseAutoNavigation)},_.F(_.l4,{data:function(){return X.storiesButtonData().button}},{buttonViewModel:function(l){return _.F(_.Qk,{data:l.data,
buttonOverrides:EYr})}}))},"dm");var gYu={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.gC(_.Z(function(X){var H=function(){var FO;return(FO=X.data().startIndex)!=null?FO:0},l=_.C(_.Gx(H)),b=l.next().value,U=l.next().value;
l=_.C(_.FU(!1,void 0,"sjy7s"));var K=l.next().value,w=l.next().value,d=function(){var FO;return(FO=X.data().storyItems)!=null?FO:[]},B={},q=_.SJ("yt-stories-viewer-view-model"),u=function(){return X.data().dismissButton},e=function(){var FO;
return _.sl((FO=_.f(u(),_.fk))==null?void 0:FO.onTap)},y=_.SJ("div"),V,p,z=!1,t=function(){var FO;
(FO=V)==null||FO.cancel();V=W(b()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});V.onfinish=function(){var ub=_.f(d()[b()],Qla),g8,mm;ub!=null&&ub.foregroundAnimation&&((ub==null?0:(g8=ub.foregroundAnimation)==null?0:g8.url)||(ub==null?0:(mm=ub.foregroundAnimation)==null?0:mm.payload))||(b()!==d().length-1?(U(b()+1),t()):e()&&_.Mq(e()))}},W=function(FO){return y.value.children[FO].children[0]},G=function(){for(var FO=0;FO<b();FO++)W(FO).style.transform=
"scaleX(1)"},r=function(){z||(K()?w(!1):(b()===d().length-1&&e()&&_.Mq(e()),W(b()).style.transform="scaleX(1)",b()!==d().length-1&&(U(b()+1),t())))},Q=function(){z||(K()?w(!1):(W(b()).style.transform="scaleX(0)",b()!==0&&U(b()-1),t()))},v=function(){w(!0)},J=function(){W(b()).style.transform="scaleX(1)";
b()!==d().length-1?(U(b()+1),t()):e()&&_.Mq(e())};
l=function(){z=!1;p=setTimeout(function(){w(!0);z=!0},300)};
var Y=function(){clearTimeout(p);z&&K()&&w(!1)};
_.Wg(function(){if(K()){var FO;(FO=V)==null||FO.pause();var ub;(ub=B.lottieEl)==null||ub.pause()}else{var g8;(g8=V)==null||g8.play();var mm;(mm=B.lottieEl)==null||mm.play()}},"vAvZob");
_.Wg(function(){G();var FO;(FO=q.value)==null||FO.focus();b()===H()&&t()},"uSlfE");
var Uy=function(FO){FO.key==="ArrowLeft"?Q():FO.key==="ArrowRight"&&r()},Cy=function(FO){if(FO.target===q.value){(FO=e())&&_.Mq(FO);
clearTimeout(p);var ub;(ub=V)==null||ub.cancel();var g8;(g8=B.lottieEl)==null||g8.stop();window.removeEventListener("keydown",Uy);window.removeEventListener("yt-popup-closed",Cy)}},sy=function(FO){if(FO.target===q.value){var ub;
(ub=q.value)==null||ub.focus();var g8;(g8=B.lottieEl)==null||g8.play();window.addEventListener("keydown",Uy);window.addEventListener("yt-popup-closed",Cy)}};
_.DR(function(){G();t();window.addEventListener("yt-popup-opened",sy)});
return _.F("yt-stories-viewer-view-model",{el:q,class:_.Qr("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.F("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.F("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.Nq(Q),"on:mousedown":_.Nq(l),"on:mouseup":_.Nq(Y),"on:mouseleave":_.Nq(Y)}),_.F("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.Nq(r),"on:mousedown":_.Nq(l),"on:mouseup":_.Nq(Y),"on:mouseleave":_.Nq(Y)})),
_.F("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.F(_.l4,{data:d},{storiesItemViewModel:function(FO,ub){var g8=FO.data;return _.F(_.M,{cond:function(){return Math.abs(ub()-b())<=1},
then:function(){var mm={};return _.F("div",{class:_.Qr("ytStoriesViewerViewModelStoryItem",(mm.ytStoriesViewerViewModelActiveStoryItem=function(){return ub()===b()},mm))},_.F(W4A,{data:g8,
pauseAutoNavigation:v,navigateToNextItemOnLottieComplete:J,isVisible:function(){return ub()===b()},
animationRef:B}))}})}})),_.F("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:y},_.F(_.P$,{each:d},function(){return _.F("div",{class:"ytStoriesViewerViewModelProgressBar"},_.F("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.F("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.F(_.Dp,{data:gYu,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.F("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.F(_.l4,{data:function(){return X.data().menuButton}},{buttonViewModel:function(FO){return _.F(_.Qk,{data:FO.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.F(_.l4,{data:function(){return X.data().muteButton}},{toggleButtonViewModel:function(FO){return _.F(_.KL,{data:FO.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.F(_.l4,{data:u},{buttonViewModel:function(FO){return _.F(_.Qk,{data:FO.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"gm"),"yt-stories-viewer-view-model",{props:{data:_.zh}});_.gC(_.Z(function(X){var H=X.data;var l=_.SJ("yt-gen-ai-feedback-form-view-model"),b=[];return _.F("yt-gen-ai-feedback-form-view-model",{el:l,class:"ytGenAiFeedbackFormViewModelHost"},_.F(_.Sj,{text:function(){return H().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.F("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.F(_.l4,{data:function(){return H().feedbackChips}},{toggleButtonViewModel:function(U){var K=U.data;
return _.F(_.KL,{data:K,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(w){var d=K();d=_.f(d,_.SR);d=_.f(d==null?void 0:d.defaultButtonViewModel,_.fk).trackingParams;w?b.push(d):(w=b.indexOf(d),w>-1&&b.splice(w,1))}})}})),_.F(_.Sj,{text:function(){return H().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.F("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.F(_.l4,{data:function(){return H().submitButton}},{buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){WLY(l.value,b,H().uniqueId)}})}}),_.F(_.l4,{data:function(){return H().moreFeedbackButton}},{buttonViewModel:function(U){return _.F(_.Qk,{data:U.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"hm"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.zh},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var z9=function(){return _.a.apply(this,arguments)||this};
_.S(z9,_.a);z9.prototype.created=function(){MzN(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(nce);var X=_.jJ().resolve(_.iW$);X&&(X.container=this.ytPopupContainerBehavior);if(X=_.jJ().resolve(_.hT))X.container=this.ytPopupContainerBehavior;if(X=_.jJ().resolve(_.Fr)){var H=this.ytPopupContainerBehavior;X.containerWasInjected?_.x2(Error("uj")):X.container=H}};
z9.prototype.ensurePopupBelowPlayer=function(X,H){var l=_.jJ().resolve(_.c$(_.gd));if(!l||!l.isOnWatch()||!_.aq())return!1;l=l.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Xs().height>l+this.getPopupHeight(X,H)?(X.style.top="auto",X.style.bottom="0px"):(X.style.top=l+"px",X.style.bottom="auto");return!0};
z9.prototype.getPopupHeight=function(X,H){H&&(X.cachedPopupHeight=0);if(!X.cachedPopupHeight){H=0;var l=X.clientHeight,b=window.getComputedStyle(X);H+=parseInt(b.marginTop,10);H+=parseInt(b.marginBottom,10);X.cachedPopupHeight=l+H}return X.cachedPopupHeight};
z9.prototype.getElement=function(X){return document.createElement(X)};
_.T([_.k(mZ2.YtPopupContainerBehavior),_.N("design:type",Object)],z9.prototype,"ytPopupContainerBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.T([_.sq({disableElementRegistration:!0,is:"ytd-popup-container"})],z9);
_.O(z9,"ytd-popup-container",function(){if(W$2!==void 0)return W$2;var X=document.createElement("template");_.n(X,"\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");X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);return W$2=X},{mode:1});var G89;var aYR={};aYR.YtLogYpcFlowCommandsBehavior=[_.rh.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(X){_.f(X,jnY)&&(X=_.f(X,jnY))&&(X.serializedTransactionFlowLoggingParams?_.CVh(X.serializedTransactionFlowLoggingParams):X.serializedYpcCancelFlowLoggingParams?(X=X.serializedYpcCancelFlowLoggingParams)&&rK("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",X):X.serializedYpcResumeFlowLoggingParams?(X=X.serializedYpcResumeFlowLoggingParams)&&rK("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",X):X.serializedYpcPauseFlowLoggingParams?(X=X.serializedYpcPauseFlowLoggingParams)&&
rK("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",X):X.serializedYpcRefundFlowLoggingParams?(X=X.serializedYpcRefundFlowLoggingParams)&&TcN("YPC_EVENT_TYPE_START",X):X.serializedYpcDeactivateFlowLoggingParams?(X=X.serializedYpcDeactivateFlowLoggingParams)&&rK("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",X):X.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(X=X.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&rK("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",X))},
handleLogYpcFlowDismiss_:function(X){_.f(X,c_p)&&(X=_.f(X,c_p),X.serializedTransactionFlowLoggingParams?_.wnN(X.serializedTransactionFlowLoggingParams):X.serializedYpcCancelFlowLoggingParams?(X=X.serializedYpcCancelFlowLoggingParams)&&rK("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",X):X.serializedYpcResumeFlowLoggingParams?(X=X.serializedYpcResumeFlowLoggingParams)&&rK("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",X):X.serializedYpcPauseFlowLoggingParams?(X=X.serializedYpcPauseFlowLoggingParams)&&
rK("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",X):X.serializedYpcRefundFlowLoggingParams&&(X=X.serializedYpcRefundFlowLoggingParams)&&TcN("YPC_EVENT_TYPE_CANCEL",X))}}];var Z$b={};Z$b.YtCancelRecurrenceBehavior=[_.uJ.YtComponentBehavior,_.iE_,{attached:function(){var X=this;lKY(this,function(H,l){return X.ypcCancelRecurrenceHandler(H,l)})},
ypcCancelRecurrenceHandler:function(X,H){var l=this;if(!H||!H.ypcCancelRecurrenceEndpoint)return!1;if(!H.ypcCancelRecurrenceEndpoint.params)return _.a0(Error("um")),!0;_.kq(this.hostElement);var b=_.S2.instance,U=_.jJ().resolve(_.c$(_.o6));b&&_.zE(b,H)?_.nl(b,H).then(function(K){l.ypcCancelRecurrenceSuccess_(X,H,{data:K})},function(K){l.ypcCancelRecurrenceFailure_(X,H,K)}).thenCatch(function(){_.a0(Error("vm"))}):U?U.requestDataForServiceEndpoint(H).then(function(K){l.ypcCancelRecurrenceSuccess_(X,
H,K)},function(K){l.ypcCancelRecurrenceFailure_(X,H,K)}).thenCatch(function(){_.a0(Error("vm"))}):_.a0(Error("wm"));
return!0},
ypcCancelRecurrenceSuccess_:function(X,H,l){_.xq(this.hostElement);l.data||(l={data:l});l.data&&l.data.actions&&_.j7(this.hostElement,l.data.actions,this.hostElement);l.data.messageRenderer?rYY(H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(H=H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&rK("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",H);_.QX(X,"yt-service-request-completed",l)},
ypcCancelRecurrenceFailure_:function(X,H,l){_.xq(this.hostElement);rYY(H.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.QX(X,"yt-service-request-error",{error:l,params:[X,H]})}}];var i$z=function(X,H){_.XO.call(this,H)};
_.S(i$z,KVe);var vY2={};vY2.YtCompleteTransactionBehavior=[_.uJ.YtComponentBehavior,_.iE_,{attached:function(){var X=this;lKY(this,function(H,l){return X.ypcCompleteTransactionHandler(H,l)})},
completeTransaction:function(X,H){var l=this;H={payments_payload:window.btoa(H.integratorData),buybucket_params:X.data.buybucketParams,offer_params:X.data.offerParams};var b=_.jJ().resolve(_.o6),U=X.data.completeTransactionEndpoint,K=this.get("ypcCompleteTransactionEndpoint.actions",U);K&&_.j7(this.hostElement,K,this.hostElement);return(K=_.S2.instance)&&_.zE(K,U)?_.nl(K,U,H).then(function(w){return!w||(w==null?0:w.error)?(w=l.get("data.serializedTransactionFlowLoggingParams",X),_.Cq(new KK("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
w))):{data:w}}).then(function(w){return l.handleCompleteTransactionSuccess_(w,X)},function(){return l.handleCompleteTransactionFailure_(X)}):b.requestDataForServiceEndpoint(U,H).then(function(w){return l.handleCompleteTransactionSuccess_(w,X)},function(){return l.handleCompleteTransactionFailure_(X)})},
handleCompleteTransactionSuccess_:function(X,H){X.data||(X={data:X});if(X.data.messageRenderer)return _.Cq(new i$z(X.data.messageRenderer));if(X.data.trackingParams){var l=_.Bi(),b=_.F6();l&&b&&_.pA(l,b,_.$l(X.data.trackingParams))}H=this.get("data.serializedTransactionFlowLoggingParams",H);Ncl(H);return _.rZ(X)},
handleCompleteTransactionFailure_:function(X){X=this.get("data.serializedTransactionFlowLoggingParams",X);_.xh("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",X);return _.Cq(new KK("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",X))},
ypcCompleteTransactionHandler:function(X,H){var l=this;if(!H.ypcCompleteTransactionEndpoint)return!1;if(!H.ypcCompleteTransactionEndpoint.transactionParams)return _.a0(Error("xm")),!0;H.ypcCompleteTransactionEndpoint&&H.ypcCompleteTransactionEndpoint.gtmData&&_.$v(H.ypcCompleteTransactionEndpoint.gtmData);var b=_.jJ().resolve(_.c$(_.o6));if(b){_.kq(this.hostElement);var U=_.S2.instance;U&&_.zE(U,H)?_.nl(U,H).then(function(K){return!K||(K==null?0:K.error)?(K=l.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
H),_.Cq(new KK("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",K))):{data:K}}).then(function(K){_.QX(X,"yt-service-request-completed");
l.ypcCompleteTransactionSuccess_(H,K)},function(){return l.ypcCompleteTransactionFailure_(H)}):b.requestDataForServiceEndpoint(H).then(function(K){_.QX(X,"yt-service-request-completed");
l.ypcCompleteTransactionSuccess_(H,K)},function(){return l.ypcCompleteTransactionFailure_(H)})}return!0},
ypcCompleteTransactionSuccess_:function(X,H){_.xq(this.hostElement);H.data||(H={data:H});_.TP(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);H.data.messageRenderer||H.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(X):(_.$v('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",X));H.data.actions&&(X=X6l(H.data.actions),H=HSC(H.data.actions),X.length&&_.ci(this.hostElement,
X),H.length&&_.j7(this.hostElement,H,this.hostElement))},
ypcCompleteTransactionFailure_:function(X){_.xq(this.hostElement);_.TP(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",X,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(X,H,l){if(H=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",H))H={serializedTransactionFlowLoggingParams:H},l&&(H.errorType=l),_.Sh(X,H),_.z3()}}];var O$a={};O$a.YtEndpointHandlerWithYpcBehavior=[_.iE_,_.rh.YtActionHandlerBehavior,[{openWalletDialog:function(X,H,l,b,U,K,w){var d=this,B=_.kj();H=H.replace(/-/g,"+").replace(/_/g,"/");var q=_.oO().get("hl");_.FHy(_.QU(_.Dc),H,B.resolve,U,function(u){K&&K();B.reject(u)},q,function(u){return d.onServerBackendAnalyticEvent_(X,l,u)},this.onDialogClose_.bind(this),b,w);
return B.promise},
openFixFlowDialog:function(X,H,l,b){X=X.replace(/-/g,"+").replace(/_/g,"/");_.QU(_.Dc).openFixFlowDialog(X,H,l,b)},
onDialogClose_:function(){_.TP(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(X,H,l){_.QX(X,"yt-commerce-action-init-done");H&&_.ci(this.hostElement,[H,{backend_analytics:l}])}}],
_.cr.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(X,H){X=this.get("data.nativeFlowEndpoint",H);H=this.get("data.fallbackEndpoint",H);X?_.ci(this.hostElement,[X]):H&&_.QX(this.hostElement,"yt-navigate",{endpoint:H})}}],
Z$b.YtCancelRecurrenceBehavior,vY2.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 X=this;lKY(this,function(H,l,b){return X.handleYPCEndpoint(H,l,b)});
this.ypcRegisterActionMapJobId_=_.eh(_.Ss,function(){X.registerActionMap(X.buyFlowActionMap_)})},
detached:function(){var X=this;_.Ss.cancelJob(this.ypcRegisterActionMapJobId_);_.eh(_.Ss,function(){X.unregisterActionMap(X.buyFlowActionMap_)})},
handleYPCEndpoint:function(X,H,l){var b=H.ypcGetCartEndpoint;if(b){_.qJ("commerce_transaction");var U=b.gtmId;U&&_.UK(U);(b=b.gtmData)&&_.$v(b)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",H)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(X,H),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",H)!=null?(this.handleYPCFixInstrumentEndpoint_(X,H),!0):H.ypcPauseSubscriptionCommand?(mOd(this.hostElement,X,H,l),
!0):H.ypcResumeSubscriptionCommand?(N1Z(this.hostElement,X,H),!0):H.getPaymentInstrumentsParamsCommand?(ixY(this.hostElement,X,H),!0):H.ypcHandleTransactionEndpoint?(aOA(this.hostElement,X,H,l),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(X,H){var l=this;_.sf("ttcr",void 0,"commerce_transaction");H=H.ypcGetCartEndpoint;var b=H.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,U=b.encryptedPurchaseParams,K=b.serializedTransactionFlowLoggingParams,w=b.serializedPaymentsClientParams,d=this.createGetCartResponseFromParams_(b,H.offerParams,K);this.changeButtonState(X,!0);_.MQ(this.openWalletDialog(X,U,b.ypcLogWalletAnalyticDataEndpoint,K,function(){l.changeButtonState(X,!1)},function(){l.changeButtonState(X,
!1)},w).then(function(B){return l.handleBuyFlowCompleteCallback_(X,d,B)},function(){return l.handleOnLoadError(d)}).then(function(B){return void l.handlePostPurchaseSuccess_(X,d,B)},function(B){return void l.handlePostPurchaseError_(B)}),function(){l.changeButtonState(X,!1);
X instanceof Element&&_.QX(X,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(X,H,l){var b=X.completeTransactionEndpoint,U=X.handleTransactionEndpoint;H={data:{offerParams:window.btoa(H),serializedTransactionFlowLoggingParams:l}};U?H.data.handleTransactionEndpoint=U:H.data.completeTransactionEndpoint=b;X.onCartDismissCommand&&(H.data.onCartDismissCommand=X.onCartDismissCommand);return H},
onGetCartServiceRequestCompleted_:function(X,H){var l=this,b=X.target;if(H&&H.data&&H.data.messageRenderer)_.xq(this.hostElement),this.handleMessageRenderer_(H.data.messageRenderer),this.changeButtonState(b,!1);else{var U=this.get("data.encryptedPurchaseParams",H),K=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",H),w=this.get("data.ypcLogWalletAnalyticDataEndpoint",H),d=this.get("data.serializedPaymentsClientParams",H),B=this.getLoggingParams_(H);if(B||U||K)X.stopPropagation(),_.sf("ttcr",
void 0,"commerce_transaction"),U||_.xq(this.hostElement),this.changeButtonState(b,!1),K?_.TP(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.gx("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:K}}},this]):U&&(this.changeButtonState(b,!0),X=null,X=this.openWalletDialog(b,U,w,B,function(){_.xq(l.hostElement);l.changeButtonState(b,!1)},function(){_.xq(l.hostElement);
l.changeButtonState(b,!1)},d),_.MQ(X.then(function(q){return l.handleBuyFlowCompleteCallback_(b,H,q)},function(){return l.handleOnLoadError(H)}).then(function(q){return l.handlePostPurchaseSuccess_(b,H,q)},function(q){return l.handlePostPurchaseError_(q)}),function(){l.changeButtonState(b,!1);
_.QX(b,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(X,H){H&&H.endpoint&&H.endpoint.ypcGetCartEndpoint&&!H.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",H.endpoint.ypcGetCartEndpoint)&&_.j7(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",H.endpoint.ypcGetCartEndpoint)],X.target),_.kq(this.hostElement),this.changeButtonState(X.target,!0))},
onServiceRequestError_:function(X,H){if(H&&H.params&&H.params.length){H=_.C(H.params);for(var l=H.next();!l.done;l=H.next())if((l=l.value)&&l.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",l.ypcGetCartEndpoint)&&_.j7(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",l.ypcGetCartEndpoint)],X.target);_.xq(this.hostElement);this.changeButtonState(X.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(X,H,l){var b=l.integratorData;return b==null||b===""||l.error!=null?(b=this.getLoggingParams_(H),String(l.error)==="-1"?(H.data.onCartDismissCommand&&_.j7(this.hostElement,[H.data.onCartDismissCommand],X),_.Cq(new KK("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",b,!0))):_.Cq(new KK("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",b))):H.data.handleTransactionEndpoint?Zxe(this.hostElement,H.data.handleTransactionEndpoint,{payments_payload:b,funds_guarantee_callback_client_data:l.integratorClientCallbackData}):
this.completeTransaction(H,l)},
handlePostPurchaseSuccess_:function(X,H,l){H=l.data;var b=!1,U,K;if(H&&((U=H.command)==null?0:(K=U.commandExecutorCommand)==null?0:K.commands)){var w,d;U=(w=H.command)==null?void 0:(d=w.commandExecutorCommand)==null?void 0:d.commands;for(w=0;w<U.length;w++)if(_.f(U[w],_.gXq)){b=!0;break}}b||(H&&H.gtmDatas&&H.gtmDatas.length?_.$v(H.gtmDatas[0]):_.$v('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));l.data&&l.data.actions&&(H=X6l(l.data.actions),l=HSC(l.data.actions),H.length&&
_.ci(this.hostElement,H),l.length&&_.j7(this.hostElement,l,X))},
handlePostPurchaseError_:function(X){X&&X.payload&&X.payload.isUserDismiss||_.n2(Error("zm"))},
handleOnLoadError:function(X){X=this.getLoggingParams_(X);return _.Cq(new KK("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",X))},
getLoggingParams_:function(X){return this.get("data.serializedTransactionFlowLoggingParams",X)},
handleMessageRenderer_:function(X){var H=_.tR(X,"renderer"),l=_.gx("openPopupConfig");H==="confirmDialogRenderer"&&l&&_.TP(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:l.popupTypeMap[H],popup:X}},this])},
handleYPCFixInstrumentEndpoint_:function(X,H){var l=this,b=H.ypcFixInstrumentEndpoint;H=b.encryptedFixInstrumentParameters;this.logFixFopEvent_(b,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(X,!0);this.openFixFlowDialog(H,function(U,K){l.onFixFlowCompleteCallback_(b,U,K)},function(){return l.changeButtonState(X,!1)},function(){l.changeButtonState(X,!1);
l.logFixFopEvent_(b,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(X,H,l){var b=_.ij("payments.business.integration.scenario.FixInstrument");if(H==b.IntegratorCallbackType.ON_COMPLETE){H="FIX_FOP_EVENT_TYPE_CANCEL";var U=null;l.error!=null?l.error!=b.OnCompleteCallbackError.USER_CANCELLED&&(_.j7(this.hostElement,[X.errorAction],this.hostElement),H="FIX_FOP_EVENT_TYPE_FAILURE",U="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.j7(this.hostElement,[X.successAction],this.hostElement),H="FIX_FOP_EVENT_TYPE_SUCCESS");_.j7(this.hostElement,[X.onFinishAction],
this.hostElement);this.logFixFopEvent_(X,H,U)}},
logFixFopEvent_:function(X,H,l){(X=X.serializedFixFopLoggingParams)?(H={eventType:H,serializedFixFopLoggingParams:X},l!=null&&(H.errorType=l),_.Sh("fixFopFlow",H),_.z3()):_.n2(Error("Am"))},
changeButtonState:function(X,H){_.P("enable_ypc_spinners")&&X&&(X.is==="yt-button-renderer"||X.is==="ytd-button-renderer")&&(X.disabled=H)}}];var mbu=function(X){this.JSC$33965_clientRoot=X;this.feedbackCollectorActionMap={"yt-help-dialog-requested":j4p,"yt-feedback-dialog-requested":cfC,"yt-signal-action-help":rfx,"yt-signal-action-send-feedback":JfZ,"yt-send-feedback-action":YQe,"yt-user-feedback-endpoint":IOa};_.ik(_.Zq.getInstance(),this.feedbackCollectorActionMap,this.JSC$33965_clientRoot)},Qou;var TXu=function(X){this.JSC$33970_clientRoot=X;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Af$.bind(null,this.JSC$33970_clientRoot),"yt-signal-action-delete-all-downloads":HuZ,"yt-signal-action-delete-download":lNx,"yt-signal-action-delete-playlist-download":bue,"yt-signal-action-install-pwa":wRl,"yt-signal-action-refresh-downloads":RRY,"yt-offline-video-endpoint":hRe,"yt-offline-playlist-endpoint":BBd,"yt-update-local-app-setting-command":suC,"yt-offline-orchestration-action-command":uEa,
"yt-signal-action-undo-delete-download":$Qx,"yt-local-watch-history-command":V1y,"yt-signal-action-mark-download-to-mobile-edu-shown":fNU};_.ik(_.Zq.getInstance(),this.downloadManagerActionMap,this.JSC$33970_clientRoot);_.pe.instance=new _.pe},NX9;var nC=function(){var X=_.a.apply(this,arguments)||this;X.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_"};X.remoteApi_=null;return X};
_.S(nC,_.a);_.R=nC.prototype;
_.R.ready=function(){_.P("polymer_enable_mdx")&&(sqy({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.P("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.P("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.P("enable_cast_short_lived_lounge_token")}),_.AV("yt-remote-connection-change",this.handleConnectionChange_,this),_.AV("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=pS$())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.R.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.R.handleConnectionChange_=function(X){(this.mdxConnected=X)?(X=eid(),!X&&AaU()&&XS5()&&(X={key:"cast-selector-receiver",name:XS5()}),X=X.name):X=null;this.receiverName=X;_.Gp(this.remoteApi_);(this.remoteApi_=pS$())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.R.handleReceiverAvailabilityChange_=function(){var X=u8Z();AaU()&&_.Ce("yt-remote-cast-available")&&X.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=X.length>0};
_.R.handleRemoteQueueChange_=function(){var X=this.currentVideoId_,H=this.currentListId_,l=ns(this.remoteApi_);this.currentVideoId_=l.videoId;this.currentListId_=l.listId;this.currentVideoId_&&_.TP(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.P("polymer_enable_mdx_queue")?this.currentListId_:null,X,H])};
_.R.handleAddToQueueAction_=function(X){X=_.f(X,cdx);this.remoteApi_&&(X.videoId?this.remoteApi_.addVideo(X.videoId):X.playlistId&&this.remoteApi_.addPlaylist(X.playlistId))};
_.R.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.R.handleInsertInQueueAction_=function(X){X=_.f(X,jld);this.remoteApi_&&X.videoId&&this.remoteApi_.JSC$20150_insertVideo(X.videoId)};
_.R.handleRemoveFromQueueAction_=function(X){X=_.f(X,rdY);this.remoteApi_&&X.videoId&&this.remoteApi_.JSC$20150_removeVideo(X.videoId)};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],nC.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g(),_.N("design:type",Object)],nC.prototype,"appId",void 0);_.T([_.g(),_.N("design:type",Boolean)],nC.prototype,"mdxConnected",void 0);_.T([_.g(),_.N("design:type",Boolean)],nC.prototype,"receiverAvailable",void 0);_.T([_.g(),_.N("design:type",Object)],nC.prototype,"receiverName",void 0);_.T([_.g(),_.N("design:type",Object)],nC.prototype,"currentVideoId_",void 0);
_.T([_.g(),_.N("design:type",Object)],nC.prototype,"currentListId_",void 0);_.T([_.qR({is:"yt-mdx-manager",disableElementRegistration:!0})],nC);_.O(nC,"yt-mdx-manager",void 0,{mode:2});var cnn;var job;var k9=function(){var X=_.a.apply(this,arguments)||this;X.APP_IDS={ytr:3,ytm:5};X.JSC$23233_timeoutId_=0;X.actionMap={"yt-open-create-family-dialog":"open"};return X};
_.S(k9,_.a);_.R=k9.prototype;_.R.created=function(){MzN(2200)};
_.R.detached=function(){this.observer_&&this.observer_.disconnect()};
_.R.open=function(X,H){var l=this,b=X.serializedYpcFamilyCreateLoggingParams;this.JSC$23233_timeoutId_=setTimeout(this.abort_.bind(this,X.postFlowErrorEndpoint,b),3E4);H&&(this.onReadyCallback_=H);var U=_.mh(this.hostElement).querySelector("#unicorn-iframe");b&&b&&QOx("ypcFamilyCreateFlowStarted",b);_.hdL("family_creation",function(){var K=_.ij("gapi.family_creation.render");_.ij("gapi.config.update")("iframes/family_creation/url",l.getFamilyCreationUrlWithUnicornParams_());var w=3;X.appId&&X.appId in
l.APP_IDS&&(w=l.APP_IDS[X.appId]);w={authUser:_.gx("SESSION_INDEX")||0,clientId:w,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.gx("HL"),initialflow:[4,5,6,7],m:l.isMobile?1:0,onFlowComplete:l.onUnicornFlowComplete_.bind(l,X.postFlowSuccessEndpoint,b),onError:l.onUnicornFlowError_.bind(l,X.postFlowErrorEndpoint,b),onReady:l.onUnicornFlowReady_.bind(l,X.referencePcidParams)};K(U,w)})};
_.R.close=function(){_.mh(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.R.onUnicornFlowComplete_=function(X,H){this.close();H&&H&&QOx("ypcFamilyCreateFlowSucceeded",H);_.QX(this.hostElement,"yt-navigate",{endpoint:X})};
_.R.onUnicornFlowError_=function(X,H){this.close();H&&QOx("ypcFamilyCreateFlowCancelled",H);_.QX(this.hostElement,"yt-navigate",{endpoint:X})};
_.R.onUnicornFlowReady_=function(X){var H=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();X&&_.ij("gapi.family_creation.setConfig")(0,X);this.observer_=new MutationObserver(function(){_.mh(H.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.mh(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.mh(this.hostElement).querySelector("#dialog").open()};
_.R.getFamilyCreationUrlWithUnicornParams_=function(){return _.gx("YTR_FAMILY_CREATION_URL")};
_.R.getCurrentUrl_=function(){return document.location.href};
_.R.abort_=function(X,H){this.clearTimeout_();this.onUnicornFlowError_(X,H)};
_.R.clearTimeout_=function(){clearTimeout(this.JSC$23233_timeoutId_)};
_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],k9.prototype,"ytActionHandlerBehavior",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],k9.prototype,"isMobile",void 0);_.T([_.g(),_.N("design:type",Object)],k9.prototype,"onReadyCallback_",void 0);_.T([_.g(),_.N("design:type",Object)],k9.prototype,"observer_",void 0);_.T([_.qR({is:"yt-create-family-dialog",disableElementRegistration:!0})],k9);
_.O(k9,"yt-create-family-dialog",function(){if(job===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);var H=X.content,l=H.insertBefore;cnn===void 0&&(cnn=document.createElement("template"));var b=cnn;l.call(H,b.content.cloneNode(!0),X.content.firstChild);job=X}X=job;return X},{mode:2});var rnU;var Jnz;var x9=function(){var X=_.a.apply(this,arguments)||this;X.STEP=1;X.BLOCK_ON=80;X.MIN_PROGESS=0;X.MAX_PROGESS=100;return X};
_.S(x9,_.a);_.R=x9.prototype;_.R.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.R.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));_.jJ().addProvider({provide:J4Y,useValue:this})};
_.R.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.R.finish=function(){var X=this;this.progress=this.MAX_PROGESS;pRd(function(){X.progress==X.MAX_PROGESS&&(X.hostElement.hidden=!0)})};
_.R.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.ja.Object.defineProperties(x9.prototype,{progress:{configurable:!0,enumerable:!0,set:function(X){this.progress_=X;var H="scaleX("+X/this.MAX_PROGESS+")",l=_.mh(this.hostElement).querySelector("#progress").style;l.transform=H;l.webkitTransform=H;this.hostElement.setAttribute("aria-valuenow",String(X))},
get:function(){return this.progress_}}});
_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],x9.prototype,"ytComponentBehavior",void 0);_.T([_.qR({is:"yt-page-navigation-progress",disableElementRegistration:!0})],x9);
_.O(x9,"yt-page-navigation-progress",function(){if(Jnz===void 0){var X=document.createElement("template");_.n(X,'\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');X.content.insertBefore(_.c().content.cloneNode(!0),
X.content.firstChild);var H=X.content,l=H.insertBefore;rnU===void 0&&(rnU=document.createElement("template"));var b=rnU;l.call(H,b.content.cloneNode(!0),X.content.firstChild);Jnz=X}X=Jnz;return X},{mode:2});var L4u={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"},YHa={"font-size":"12px","font-style":"italic"},IYb={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.kjl=function(){return _.h(function(X){_.m5(X)})};var An2=_.Z(function(X){var H=function(){return X.data().subtext},l={};
return _.F("snackbar-view-model",{class:_.Qr("snackbarViewModelHost",X.className)},_.F("div",{class:_.Qr("snackbarViewModelEngagementBarWrapper",X.className)},_.F(_.M,{cond:function(){return X.data().image},
then:function(b){return _.F(_.Dp,{data:b,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.F(_.M,{cond:function(){return X.data().imageContent},
then:function(){return _.F("div",{class:"snackbarViewModelAvatarContainer"},_.F(_.l4,{data:function(){return X.data().imageContent}},{decoratedAvatarViewModel:_.uu}))}}),_.F("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.F("div",{class:_.Qr((l.snackbarViewModelTitle=!0,l.snackbarViewModelTitleWithSubtext=H,l))},_.F(_.Sj,{text:function(){return X.data().text}})),_.F(_.M,{cond:H,
then:function(){return _.F("div",{class:"snackbarViewModelSubtext"},_.F(_.Sj,{text:function(){return H()}}))}})),_.F(_.M,{cond:function(){return X.data().buttons},
then:function(){return _.F("div",{class:"snackbarViewModelButtonClassWrapper"},_.F(_.l4,{data:function(){return X.data().buttons}},{buttonViewModel:function(b){return _.F(_.Qk,{data:b.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:X.target})}}))}})))},"im");_.gC(_.Z(function(){function X(G,r,Q){p(G);t(Q);y("in");u(!0);H(G,r);w=setTimeout(function(){l()},r)}
function H(G,r){var Q,v=(Q=G.text)==null?void 0:Q.content;G=_.qh(G.rendererContext);v&&(r={label:v,command:G,durationMs:r},_.jJ().resolve(_.uq).enqueue(r))}
function l(G){y("out");G&&clearTimeout(w)}
function b(){l(!0)}
function U(G){if(G){var r=G.snackbarViewModel,Q=G.durationMs,v=G.target;Q||(Q=3E3);r&&(G=_.jJ().resolve(_.c$(_.sg)))&&G.enqueue({isOpened:q,open:function(){X(r,Q,v)},
close:l},0)}}
var K=_.z7("snackbar-container"),w=void 0,d=_.C(_.FU(!1,void 0,"mDc5N")),B=d.next().value;d=d.next().value;var q=B,u=d;B=_.C(_.FU("out",void 0,"FpOs5e"));var e=B.next().value,y=B.next().value;B=_.C(_.FU(void 0,void 0,"jIDRob"));var V=B.next().value,p=B.next().value;B=_.C(_.FU(void 0,void 0,"kOA3Mb"));var z=B.next().value,t=B.next().value,W=_.Nq(function(){if(e()==="out"){u(!1);p(void 0);t(void 0);var G=_.jJ().resolve(_.c$(_.sg));G&&TbZ(G,0)}});
_.DR(function(){var G=_.jJ().resolve(_.c$(_.FZA));G&&(G.showSnackbarFn=U,G.closeSnackbarFn=b)});
return _.F("snackbar-container",{class:"ytSnackbarContainerHost",el:K},_.F(_.M,{cond:function(){return q()&&!!V()},
then:function(){var G={};return _.F("div",{class:_.Qr("ytSnackbarContainerSnackbarContainer",(G.ytSnackbarContainerMobile=!1,G.ytSnackbarContainerPivotBar=function(){var r;return!((r=_.jJ().resolve(_.c$(_.B9Z)))==null||!r())},G.ytSnackbarContainerOpened=function(){return q()&&e()==="in"},G.ytSnackbarContainerClosed=function(){return q()&&e()==="out"},G)),
"on:animationend":W},_.F(An2,{data:function(){return V()},
target:function(){return z()}}))}}))},"jm"),"snackbar-container");_.gC(_.gkC,"yt-tooltip");var Xb9=_.q2C.ephemeralActionSelector;_.gC(_.Z(function(){var X=_.Aa(Xb9);return _.F("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var H;return(H=X())==null?void 0:H.announcement})},"km"),"yt-ephemeral-actions");var J8e=new Map;var tBY=function(X,H){var l=this;this.handleError=X;this.logEventInternal=H;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){l.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
tBY.prototype.logError=function(X){this.handleError(X)};
tBY.prototype.logEvent=function(X,H){switch(X){case "IDB_DATA_CORRUPTED":_.P("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",H);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",H);break;case "IS_SUPPORTED_COMPLETED":_.P("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",H);break;case "QUOTA_EXCEEDED":HYR(this,H);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",H);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":X=Object.assign({},H,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",X)}};
var HYR=function(X,H){_.yj.getInstance().estimate().then(function(l){l=Object.assign({},H,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:Y$C(l==null?void 0:l.usage),deviceStorageQuotaMbytes:Y$C(l==null?void 0:l.quota)});X.logEventInternal("idbQuotaExceeded",l)})};var lez=_.Z(function(X){var H=_.SJ("yt-draggable"),l=X.onDrag,b=X.onDragStart,U=X.onDragEnd,K=_.gT(X,{allowClicks:!1,dragThreshold:5}),w=K.dragThreshold,d=K.allowClicks;X=K.children;K=K.className;var B=void 0,q=void 0,u=new _.DY(0,0),e=!1;_.DR(function(){B=new _.y$(H.value);q=new _.Li(V);y(B,q);if(d()){_.irq(B,w());var z;(z=H.value)==null||z.addEventListener("click",p,{capture:!0})}_.E2(function(){var t;(t=B)==null||t.dispose();if(d()){var W;(W=H.value)==null||W.removeEventListener("click",p,{capture:!0})}})});
var y=function(z,t){_.n8(z,"earlycancel",function(){d()&&(e=!1)});
_.n8(z,"start",function(W){b==null||b(W);W.defaultPrevented||d()&&(e=!0)});
_.n8(z,"beforedrag",function(W){B&&q&&(W.preventDefault(),u=new _.DY(W.clientX-B.startX,W.clientY-B.startY),q.start())});
_.n8(z,"end",function(){t.stop();U==null||U();u=new _.DY(0,0)})},V=function(){u&&l(u)},p=function(z){e&&(e=!1,z.stopPropagation(),z.preventDefault())};
return _.F("yt-draggable",{el:H,class:_.Qr("ytDraggableComponentHost",K)},X)},"lm");var oOR=_.Z(function(X){var H=_.C(_.FU(0,void 0,"Qf0tbc")),l=H.next().value,b=H.next().value;H=function(U){var K={},w={};return _.F(lez,{className:_.Qr("ytdMiniplayerComponentResizer",(K.ytdMiniplayerComponentResizerDisabled=function(){return U===X.horizontalAlignment()||U===X.verticalAlignment()},K.ytdMiniplayerComponentResizerNorth=U==="north",K.ytdMiniplayerComponentResizerEast=U==="east",K.ytdMiniplayerComponentResizerSouth=U==="south",K.ytdMiniplayerComponentResizerWest=U==="west",K)),
onDragStart:function(){b(X.currentMiniplayerSize());if(X.onResizeStart)X.onResizeStart()},
onDrag:function(d){U!=="north"&&U!=="west"||d.scale(-1);var B;d=(B=U==="north"||U==="south")?d.y:d.x;var q=X.currentAspectRatio();B&&q>=1?d*=q:!B&&q<1&&(d/=q);B=d;X.onResize(l()+B)}},_.F("div",{class:_.Qr("ytdMiniplayerComponentResizerCorner",(w.ytdMiniplayerComponentResizerNorthCorner=U==="north",w.ytdMiniplayerComponentResizerEastCorner=U==="east",w.ytdMiniplayerComponentResizerSouthCorner=U==="south",w.ytdMiniplayerComponentResizerWestCorner=U==="west",w))}))};
return _.F("div",{class:"ytdMiniplayerComponentResizers"},H("north"),H("east"),H("south"),H("west"))},"mm");var bYo=16/9;_.gC(_.Z(function(){var X=_.SJ("ytd-miniplayer"),H=_.C(_.FU(new _.tn(NaN,NaN),void 0,"i8Divd")),l=H.next().value,b=H.next().value;H=_.C(_.FU(!1,void 0,"M0mb9d"));var U=H.next().value,K=H.next().value;H=_.C(_.FU(!1,void 0,"U2besf"));var w=H.next().value,d=H.next().value;H=_.C(_.FU(!1,void 0,"oMkCO"));var B=H.next().value,q=H.next().value;H=_.C(_.FU(!1,void 0,"LLG3Bf"));var u=H.next().value,e=H.next().value;H=_.C(_.FU(!1,void 0,"m7HPQe"));var y=H.next().value,V=H.next().value;H=_.C(_.FU(!1,void 0,"jUGfuc"));
var p=H.next().value,z=H.next().value;H=_.C(_.FU(bYo,void 0,"LkUsDe"));var t=H.next().value,W=H.next().value,G=_.C(_.FU(!1,void 0,"xKE3oe"));H=G.next().value;var r=G.next().value;G=_.C(_.FU(!1,void 0,"QQ32Je"));var Q=G.next().value,v=G.next().value;G=_.C(_.FU(void 0,void 0,"LRAn3"));var J=G.next().value,Y=G.next().value;G=_.C(_.FU(dH()?"west":"east",void 0,"ZPTxkd"));var Uy=G.next().value,Cy=G.next().value;G=_.C(_.FU("south",void 0,"XYTr4"));var sy=G.next().value,FO=G.next().value;G=_.C(_.FU(400,
void 0,"hJycJe"));var ub=G.next().value,g8=G.next().value;G=_.jJ().resolve(_.f9).miniplayerPropSignalMap[0];var mm=G.data,QZ=G.externalPlaylistData,Bz=G.playabilityStatus,dt=G.isReadyToResume,TK=G.isDisabled,sG=G.watchWhile,f_=G.playerVe,Mv=G.expandVe,nd=G.closeVe,$U=G.readyToResumeVe,MW=G.readyToResumeCloseVe,ZL=G.repositionVe,uF=G.resizeVe;G=_.C(_.Gx(dt));var rt=G.next().value,xQ=G.next().value,AQ=_.Aa(_.ze.persistentPanelVisibleSelector),D3=!1,YQ=!1,F5;_.DR(function(){b(_.Xs());X.value.addEventListener("animationend",
function(mD){mD.target===X.value&&(V(!1),z(!1))});
oPe(X.value)});
_.OA("yt-window-resized",function(mD){mD&&b(mD)});
var TY=function(){F5&&W(F5.getVideoAspectRatio())},NZ=function(){if(F5){var mD=F5.getPlayerState()===1;
rt()&&mD&&xQ(!1)}},C_=function(){var mD=Mv();
if(mD){var RC=_.Bi(3);RC&&_.xB(RC,mD)}},qZ=function(){var mD=nd(),RC=MW();
mD&&_.xB(_.Bi(3),mD);dt()&&RC&&_.xB(_.Bi(3),RC)};
_.OA("yt-activate-miniplayer",function(mD){var RC;return _.h(function(IC){if(IC.nextAddress==1)return U()?IC.return():IC.yield((RC=_.jJ().resolve(_.f9).getPlayerElement())==null?void 0:RC.getPlayerPromise(),2);F5=IC.yieldResult;if(!F5)return IC.return();!Q()&&_.P("kevlar_watch_while_v2")&&(FO(mD&&!_.P("kevlar_watch_while_bottom_align")?"north":"south"),Cy(dH()?"west":"east"));var R$=F5;R$.addEventListener("onVideoDataChange",TY);R$.addEventListener("onStateChange",NZ);R$.addEventListener("onExpandMiniplayer",
C_);R$.addEventListener("onCloseMiniplayer",qZ);W(F5.getVideoAspectRatio());K(!0);ldZ()||V(!0);_.m5(IC)})});
_.OA("yt-deactivate-miniplayer",function(mD,RC){return _.h(function(IC){if(!U())return IC.return();K(!1);xQ(!1);z(mD);e(!1);d(!1);if(F5){var R$=F5;R$.removeEventListener("onVideoDataChange",TY);R$.removeEventListener("onStateChange",NZ);R$.removeEventListener("onExpandMiniplayer",C_);R$.removeEventListener("onCloseMiniplayer",qZ)}ldZ()||RC?RC&&V(!1):V(!0);_.m5(IC)})});
var qv=function(){return!(sG()&&_.P("kevlar_watch_while_modern"))},cz=function(){var mD;
return!((mD=QZ())==null||!mD.contents)},OG=function(){var mD=ub();
var RC=l();RC=Math.min(Math.min(RC.width,RC.height)-32,720);var IC=t(),R$=qv(),nW=cz()&&w(),wX=Math.min(mD,RC);mD=new _.tn(192,R$?116:192);IC=new _.tn(nW?bYo:IC,1);wX=new _.tn(wX,R$?wX-76:wX);wX=IC.aspectRatio()>wX.aspectRatio()?wX.width/IC.width:wX.height/IC.height;IC=IC.scale(wX);mD.width<=IC.width&&mD.height<=IC.height||(mD=IC.aspectRatio()<=mD.aspectRatio()?mD.width/IC.width:mD.height/IC.height,IC.scale(mD),IC.width=Math.min(IC.width,RC),IC.height=Math.min(IC.height,RC));return new _.tn(IC.width,
_.kY(192,IC.height+KTZ(R$,nW),720))},Sy=function(){var mD=OG(),RC=qv(),IC=cz()&&w();
return new _.tn(mD.width,mD.height-KTZ(RC,IC))},$m=function(){var mD=function(RC){RC.target===X.value&&u()&&(e(!1),X.value.removeEventListener("transitionend",mD))};
ldZ()||(X.value.addEventListener("transitionend",mD),e(!0));d(!w())};
_.Wg(function(){var mD=f_(),RC=_.Bi(3),IC=_.F6(3);if(RC&&IC&&mD){_.pA(RC,IC,mD);IC=ZL();var R$=uF(),nW=Mv(),wX=nd(),AR=MW();nW&&wX&&AR&&(_.SF(RC,mD,[nW,wX,AR]),_.nA(RC,[nW,wX]));IC&&R$&&_.SF(RC,mD,[IC,R$])}},"UatZXe");
_.Wg(function(){var mD=$U();if(mD){var RC=_.Bi(0),IC=_.F6(0);RC&&IC&&(_.pA(RC,IC,mD),_.nA(RC,[mD]))}},"kTR4R");
G={};return _.F("ytd-miniplayer",{el:X,class:_.Qr("ytdMiniplayerComponentHost",(G.ytdMiniplayerComponentVisible=function(){return(U()||y())&&!(sG()&&_.P("kevlar_watch_while_counterfactual"))},G.ytdMiniplayerComponentAnimatingSnap=B,G.ytdMiniplayerComponentAnimatingPlaylistExpand=u,G.ytdMiniplayerComponentAnimatingFade=y,G),function(){if(y()){var mD=sy();
var RC=U(),IC=p();mD=RC?mD==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":IC?mD==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":mD==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else mD="";return mD}),
style:_.rC({top:function(){return sy()==="north"?"16px":""},
right:function(){var mD=Uy(),RC=AQ();RC=(RC===void 0?0:RC)&&!dH()?400:0;return mD==="east"?16+RC+"px":""},
bottom:function(){return sy()==="south"?"16px":""},
left:function(){var mD=Uy(),RC=AQ();RC=(RC===void 0?0:RC)&&dH()?400:0;return mD==="west"?16+RC+"px":""},
width:function(){return OG().width+"px"},
height:function(){return OG().height+"px"},
transform:function(){var mD=J();return mD?"translate("+mD.x+"px, "+mD.y+"px)":""}})},_.F("div",{class:"ytdMiniplayerComponentContent"},_.F(lez,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(mD){var RC=$SC(Uy(),sy(),l(),OG(),J()),IC=Sy();Math.abs(mD.clientY-(RC.y+IC.height))>15?(r(!0),mD=_.Bi(3),RC=ZL(),D3||(D3=!0,mD&&RC&&_.nA(mD,[RC])),mD&&RC&&_.xB(mD,RC)):mD.preventDefault()},
onDrag:function(mD){Y(mD)},
onDragEnd:function(){var mD=b5d($SC(Uy(),sy(),l(),OG(),J()),l(),OG()),RC=US5(Uy(),sy(),l(),OG(),AQ()),IC=US5(mD.horizontalAlignment,mD.verticalAlignment,l(),OG(),AQ());IC=new _.DY(IC.x-RC.x,IC.y-RC.y);var R$;RC=RC.y+(((R$=J())==null?void 0:R$.y)||0)+OG().height/2;var nW=function(){Uy()===mD.horizontalAlignment&&sy()===mD.verticalAlignment||v(!0);Cy(mD.horizontalAlignment);FO(mD.verticalAlignment);Y(void 0)},wX=function(AR){AR.target===X.value&&B()&&(q(!1),nW(),X.value.removeEventListener("transitionend",
wX))};
r(!1);sy()==="south"&&RC>l().height?(nW(),_.jJ().resolve(_.f9).close()):(X.value.addEventListener("transitionend",wX),q(!0),Y(IC))}},_.F(_.M,{cond:U,
then:function(){return _.F(_.tsl,{isDisabled:TK,playabilityStatus:Bz,size:Sy})}}),_.F(_.M,{cond:qv,
then:function(){return _.F(_.xKA,{isReadyToResume:rt,data:mm,expanded:w,onExpandClick:$m,playlistData:QZ})}}),_.F(_.M,{cond:H,
then:function(){return _.F("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.F(_.M,{cond:function(){return cz()&&w()||u()},
then:function(){return _.F(_.F5N,{className:"ytdMiniplayerComponentPlaylistPanel",data:QZ,hideHeaderText:!0,withinMiniplayer:!0})}})),_.F(oOR,{onResize:function(mD){g8(_.kY(192,mD,720))},
onResizeStart:function(){var mD=_.Bi(3),RC=uF();YQ||(YQ=!0,mD&&RC&&_.nA(mD,[RC]));mD&&RC&&_.xB(mD,RC)},
currentAspectRatio:t,currentMiniplayerSize:ub,horizontalAlignment:Uy,verticalAlignment:sy}))},"pm"),"ytd-miniplayer",{});var UzR=_.ze.persistentPanelVisibleSelector,DW=function(){var X=_.a.apply(this,arguments)||this;X.tabGesturesIsActive=!1;X.persistentPanelEnabled=_.P("enable_ai_companion");X.hasDelegation=!1;X.isFrostedGlassInitialized=!1;X.frostedGlassExp=_.P("web_frosted_glass");X.hasPendingWatchNavigation=!1;X.mastheadHiddenFocusWithinKillswitch=_.P("web_masthead_hidden_focus_within_killswitch");X.clientOnlyWizTooltipsEnabled=_.P("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
X.scrollAtTopInternal=!0;X.guideScrollTop=0;X.isTheaterModeSession=_.G7("START_IN_THEATER_MODE");X.iMaxTheaterMode=_.P("web_watch_imax_theater_mode");X.isFullWindowSession=_.G7("START_IN_FULL_WINDOW_MODE");X.hasCreateFamilyDialog=!1;X.mastheadHeight=56;X.networkStatusManager=new _.iM;X.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"};X.dynamicActionMap={"yt-run-attestation-command":function(H){var l=_.ArZ.instance,b=_.f(H,_.cPY);return b?_.P("use_rta_manager_for_async")&&
(_.P("attmusi")&&_.P("attmusi_ue")?window.attmp:U9$())?q1y(l,b,H.clickTrackingParams):Bb5(l,b,H.clickTrackingParams):_.Cq(Error("si"))}};
X.isFrostedGlassDisabled=!1;X.isChannelOrPlaylistPage=!1;return X};
_.S(DW,_.a);_.R=DW.prototype;_.R.created=function(){var X=_.jJ();_.P("kevlar_clear_duplicate_pref_cookie")&&_.eh(_.Ss,function(){var H=_.wL.get("PREF");H&&!/f\d=/.test(H)&&(H=_.I0("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=H?"PREF=null;domain="+H+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.P("gzip_gel_with_worker")&&_.WrO();_.P("jspb_serialize_with_worker")&&m9x();_.P("web_worker_availability_check")&&LxZ();_.P("nwl_init_killswitch")||vE5().then(function(){_.Ss.addLowPriorityJob(xne)});
this.pageManagerAttachedPromise=_.kj();this.ytdAppBehavior.loadDepsPromise=_.s$([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.jw(this.onThrottledScroll,200,this);_.P("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);WIl();U8p=!!_.ij("ytappsettings.initialized");PHe=_.ij("ytappsettings.previousValue");fix=_.ij("ytappsettings.previousSnapshotTime");U8p||(U8p=!0,pKY());YmC();IHN();_.Et("DEFERRED_DETACH",
_.P("kevlar_tuner_should_defer_detach"));_.Et("REUSE_COMPONENTS",!0);_.Et("STAMPER_STABLE_LIST",!0);_.Et("SCHEDULED_LAZY_LIST",!0);_.Et("openPopupConfig",zTe);_.Et("useClickHandler",!0);_.P("kevlar_shell_cleanup")&&_.Ss.addLowPriorityJob($JN.bind(this,_.ok.caches));_.G7("IS_SHELL_LOAD")&&_.FS({shellStartupDurationMs:Math.round((0,_.Jl)()-m2())});Wx5(this.networkStatusManager);_.P("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",S$5(L4u)),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!",
S$5(YHa)),console.log("%cVisit http://go/join-youtube-web to apply today.",S$5(IYb)));XAl(X.resolve(_.Zfa),1E3)};
_.R.ready=function(){var X=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var H=R0Z();H&&!_.P("external_fullscreen_killswitch")&&document.addEventListener(H,this.setFullscreen.bind(this));(H=window.matchMedia("(prefers-color-scheme: dark)"))&&H.addEventListener&&H.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(H=_.jJ().resolve(_.c$(_.IPQ)))H.subscribe("navigation-start",
function(l){l.destinationPageSubtype==="watch"&&(X.hasPendingWatchNavigation=!0)}),H.subscribe("navigation-end",function(l){l.destinationPageSubtype==="watch"&&(X.hasPendingWatchNavigation=!1)})};
_.R.attached=function(){var X=this;_.ng().processSignal("ci");_.P("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.iJ_?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.H8(_.fzk(),"SUCCESS");this.updateIconSet();_.ap(this.guideInnerContent,!1);_.AO().initVisibilityObserver();this.guideService.guideElement=this.guide;var H=document.createElement("ytd-miniplayer"),l=_.mh(this.hostElement).querySelector("#content");
_.mh(this.hostElement).insertBefore(H,l);_.ng().processSignal("ma");_.jJ().resolve(_.f9).init(H);this.persistentPanelEnabled&&v7y(this.persistentPanelContainer,"APP");_.G7("IS_SHELL_LOAD")&&(l=document.createElement("ytd-network-status-banner"),_.mh(this.hostElement).insertBefore(l,H));_.P("kevlar_right_click_on_lockups")&&_.V0._onCaptureClick&&document.addEventListener("contextmenu",_.V0._onCaptureClick.bind(_.V0),!0);var b=function(){var U=_.Wr("yt-page-navigation-progress");_.mh(X.hostElement).appendChild(U)};
setTimeout(function(){_.ng().parkOrScheduleJob(b,0,"eocs",16)},0);
_.P("service_worker_push_enabled")&&_.eh(_.Ss,mJZ);_.ik(_.Zq.getInstance(),this.dynamicActionMap,this.hostElement);_.QX(this.hostElement,"ytd-app-attached");_.ng().processSignal("aa");jpN(this.hostElement);_.cQ("gapi.load",_.hdL);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.eh(_.Ss,
function(){var U=document.createElement("ytd-video-preview");_.mh(_.mh(X.hostElement).querySelector("#video-preview")).appendChild(U)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.eh(_.Ss,function(){xQa();X.registerWithViewTransitionManager()});
if(_.fe()&&this.isAppDarkTheme()!==_.V_())this.onDarkModeToggledAction();else H=_.PM()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==H&&(_.P("enable_dark_theme_only_on_shorts")?_.y_(_.P("enable_dark_theme_only_on_shorts_control")?window.location.href:_.T7(window.location.href,{theme:"dark"})):_.x2(new _.qd("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(D_a=new x_C(this.hostElement)),NX9=new TXu(this.hostElement),Qou=new mbu(this.hostElement),Lvl=new JAa(this.hostElement)};
_.R.getThemeSettingsToLog=function(){var X=_.PM()==="USER_INTERFACE_THEME_DARK";X=_.fe()?_.V_()?"os-dark":"os-light":X?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:X,cookiesEnabled:_.hl()}};
_.R.detached=function(){_.Zv(this.guideInnerContent);_.Ss.cancelJob(ZNy);ZNy=0;_.Ss.cancelJob(mGp);mGp=0;_.NCy(c$d);c$d.length=0;Qpy=_.HHK=null;_.AO().dispose();_.P("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.vD(_.Zq.getInstance(),D_a.playlistHandlerActionMap,D_a.JSC$33524_clientRoot);_.vD(_.Zq.getInstance(),NX9.downloadManagerActionMap,NX9.JSC$33970_clientRoot);_.vD(_.Zq.getInstance(),Qou.feedbackCollectorActionMap,Qou.JSC$33965_clientRoot);
for(var X=_.C(Lvl.eventListeners),H=X.next();!H.done;H=X.next()){var l=_.C(H.value);H=l.next().value;l=l.next().value;l=_.C(l);for(var b=l.next();!b.done;b=l.next()){var U=_.C(b.value);b=U.next().value;U=U.next().value;H.removeEventListener(b,U)}}_.vD(_.Zq.getInstance(),Lvl.autonavPauseActionMap,Lvl.JSC$21690_clientRoot)};
_.R.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.oO().getFlag(186)};
_.R.computeIsInlinePreviewEnabled=function(X,H,l){return!l&&b9U({miniplayerIsActive:X,miniplayerPlaybackState:H})};
_.R.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Of({type:"SET_FROSTED_GLASS_MODE",payload:!_.P("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"}))};
_.R.computeIsFrostedGlassDisabled=function(X,H,l,b){return X||H||l||b&&_.P("web_frosted_glass_disable_watch")};
_.R.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.P("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.R.computeIsHomePage=function(X,H){if(!X||H==null||!H.endpoint)return!1;var l;return((l=_.f(H.endpoint,_.YM))==null?void 0:l.browseId)==="FEwhat_to_watch"};
_.R.updateIsChannelOrPlaylistPage=function(){if(_.P("web_frosted_glass")){var X,H,l=(H=(X=_.jJ().resolve(_.c$(_.gd)))==null?void 0:X.getCurrentPage())==null?void 0:H.pageSubtype;this.isChannelOrPlaylistPage=l?["channel","channels","playlist"].includes(l):!1}};
_.R.scheduleFrostedGlassInitialization=function(){var X=this;_.P("web_frosted_glass")&&_.ng().parkOrScheduleJob(function(){X.isFrostedGlassInitialized=!0},0,hz(["eocs",
"cr"]),300)};
_.R.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.izD(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Of({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Of({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.R.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(NsZ(!0))};
_.R.onYtSignalActionRequestPersistentStorage=function(){if(!_.P("request_persistent_storage_killswitch")){var X=_.jJ().resolve(_.Kue);X.cachedPersistStatePromise||(X.cachedPersistStatePromise=owe())}};
_.R.handleYtChannelCreationFormEndpoints=function(X){X&&this.ytComponentBehavior.resolveCommand(X)};
_.R.handleShowEngagementPanelEndpoint=function(X){X&&this.ytComponentBehavior.resolveCommand(X)};
_.R.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(NsZ(!1))};
_.R.initIconDefs=function(X,H){var l=document.createElement("iron-iconset-svg");l.name=X;X=document.createElementNS("http://www.w3.org/2000/svg","svg");l.appendChild(X);X.appendChild(H);document.body.appendChild(l);return l};
_.R.onWindowResized=function(){_.TP(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var X=_.TN.getInstance();X.documentWidth_=document.body.clientWidth;WT5(X)};
_.R.onWindowScrolled=function(){var X=_.jJ().resolve(_.gd).getCurrentPage();if(X!=null&&X.getScrollTop){var H=this.ytdReduxBehavior,l=H.dispatch;X=X.getScrollTop()<=0;l.call(H,_.Of({type:"SET_SCROLL_AT_TOP",payload:X}))}};
_.R.guideIsVisibleButNotPersistentSelectorChanged=function(){var X=_.jJ().resolve(_.gd).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=X.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"),
X.setScrollTop(this.guideScrollTop));_.NG(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.R.getCurrentPageScrollableElementType=function(){var X=_.jJ().resolve(_.gd).getCurrentPage();if(X&&X.getPageScrollingElement())return X.getPageScrollingElement().nodeName};
_.R.observeGuideVisibility=function(){var X=_.TN.getInstance(),H=this.miniGuideVisible;X.guidePersistentAndVisible_=this.guidePersistentAndVisible;X.miniGuideVisible_=H;WT5(X)};
_.R.observePersistentPanelVisibility=function(){var X=_.TN.getInstance();X.persistentPanelVisible_=this.persistentPanelVisible;WT5(X)};
_.R.handleEduDismissAction=function(X){X&&X.eduDismissAction&&(_.TP(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.mH6.getInstance(),_.mW.set(X.eduDismissAction.key+"-dismissed",!0))};
_.R.handleEduImpressionAction=function(X){if(X&&X.eduImpressionAction){var H=_.mH6.getInstance();X=X.eduImpressionAction.key;H.JSC$13502_eduDisplayedThisLoad_[_.O3C[X].setKey||X]=!0;_.mW.set(X+"-impression",parseInt(_.mW.get(X+"-impression")||0,10)+1)}};
_.R.onYtSignalActionConfirmMentionsEdu=function(){_.TP(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.cW.getInstance();_.Ng.set("edu-dismissed",!0)};
_.R.onYtSignalActionRecordMentionsEduImpression=function(){_.cW.getInstance();var X=_.Ng.set,H=parseInt(_.Ng.get("edu-impressions"),10);X.call(_.Ng,"edu-impressions",(isFinite(H)?H:0)+1)};
_.R.onYtPageManagerAttached=function(X){var H;((H=_.WM(X))==null?void 0:H.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.R.onInvokeInstrumentManagerAction=function(X,H){H5x(H,X)};
_.R.updateIconSet=function(){var X=this.hostElement.querySelector("#masthead");if(X){var H=_.Q_(X),l=H.querySelector("g#yt-logo-updated");l&&(X=document.createElementNS("http://www.w3.org/2000/svg","defs"),X.appendChild(l.cloneNode(!0)),(H=H.querySelector("g#yt-logo-red-updated"))&&X.appendChild(H.cloneNode(!0)),this.initIconDefs("yt-logos-ext",X))}};
_.R.updateMastheadData=function(){var X=this,H,l,b,U,K;return _.h(function(w){if(w.nextAddress==1){H=X.data;l=X.hostElement.querySelector("#masthead");if(!l)return w.return();_.N0(X,function(){l.data=X.topbarData});
if(!X.get("response.topbar",H)||X.get("response.topbar.responseContext.maxAgeSeconds",H)===0)return w.jumpTo(0);if(b=_.jJ().resolve(_.$C))return w.yield(b(),6);U=_.jJ().resolve(_.r2);return w.yield(U.put("service:topbar:fallback",new _.JW({innertubeResponse:X.get("response.topbar",H)})),0)}return(K=w.yieldResult)?w.yield(K.put("service:topbar:fallback",new _.JW({innertubeResponse:X.get("response.topbar",H)})),0):w.jumpTo(0)})};
_.R.computeTopbarData=function(X){if(!X)return null;var H;return this.isShortsPage&&this.topbarData&&!_.f((H=X.response)==null?void 0:H.topbar,SOU)?this.topbarData:X.response&&"topbar"in X.response?_.f(X.response.topbar,SOU)||null:null};
_.R.onSetTheaterModeEnabled=function(X,H){this.isTheaterModeSession=H.enabled;this.setTheaterModeStyles(H.enabled)};
_.R.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.R.onDarkModeToggledAction=function(){var X=_.c1(window.location.href);if(!_.Xnk(X)){(X=!!_.QO(window.location.href).themeRefresh)&&_.x2(new _.qd("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!X){pKY();X={themeRefresh:1};var H=_.jJ().resolve(_.gd);if(H.isOnWatch()){var l,b;H=((l=H.getPlayerFromWatch())==null?void 0:(b=l.getPlayer())==null?void 0:b.getCurrentTime())||0;H>=1&&(X.time_continue=Math.floor(H))}_.hl()||_.PM()!=="USER_INTERFACE_THEME_DARK"||(X.theme="dark");_.y_(_.T7(window.location.href,
X))}_.P("web_appshell_refresh_trigger")&&_.ok.caches&&this.refreshAppShellResponse();l=_.jN(window.location.href);_.II(_.jJ().resolve(_.AW),_.lB(l,"theme"))}};
_.R.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.R.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.R.onPlayerFullscreen=function(X){_.gZ();this.playerFullscreen=X};
_.R.setRestrictedMode=function(X){var H=_.oO();_.bH(0,58,X);H.save();_.jJ().resolve(_.Lg).reload()};
_.R.onPageChanged=function(X){X.detail.newPageType==="ytd-watch-flexy"||X.detail.newPageType==="ytd-watch-fixie"||X.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.sJ("WEB_PAGE_TYPE_WATCH")):X.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.sJ("WEB_PAGE_TYPE_SHORTS")):X.detail.newPageType==="ytd-browse"&&X.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.sJ("WEB_PAGE_TYPE_MINI_APP")):_.P("web_frosted_glass")&&X.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.sJ("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.sJ("WEB_PAGE_TYPE_UNKNOWN"));X.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.R.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.R.onGuideToggleTap=function(){_.QX(this.hostElement,"yt-guide-toggle")};
_.R.onGuideToggleHover=function(){_.QX(this.hostElement,"yt-guide-hover")};
_.R.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.R.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.R.setMastheadTheme=function(){var X=_.Q_(this.hostElement).querySelector("#masthead");X&&(X.dark=X.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),X.isDarkThemeForced=!1)};
_.R.onRequestPanelModeChange=function(X,H){this.hideHeaderShadow=H.mode!=="seamed"};
_.R.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.R.onDrawerIronSelect=function(X){_.WM(X).id==="guide"&&this.processDrawerIronSelect()};
_.R.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var X="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(X="opened"));_.QX(this.hostElement,"yt-autonav-pause-guide-"+X)};
_.R.onAddElementToApp=function(X){_.mh(this.hostElement).appendChild(X.detail)};
_.R.onThrottledScroll=function(){var X=_.jJ().resolve(_.gd).getCurrentPage();X&&(this.scrollAtTopInternal=X.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.R.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.R.setFullscreen=function(){if(_.P("external_fullscreen")||!this.isWatchPage){var X=_.P("kevlar_fullerscreen_root_only_killswitch")?!!_.gZ():!!_.gZ()&&_.gZ()===document.documentElement;X=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(X||this.isFullWindowSession);this.fullscreen!==X&&((this.fullscreen=X)&&_.NG(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.WF().dispatch(_.zFQ(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.TP(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.R.setFullscreenLoggingForShorts=function(X){var H,l,b;return _.h(function(U){if(U.nextAddress==1)return U.yield((H=_.aq())==null?void 0:H.getPlayerPromise(),2);l=U.yieldResult;(b=l)==null||b.setAppFullscreen(X);_.m5(U)})};
_.R.updateMastheadCssHeight=function(){var X=this.mastheadHeight;this.fullscreen&&(X=0);_.j4(this.hostElement,{"--ytd-masthead-height":X+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.R.updateNetworkStatusBannerDisplayStatus=function(){var X="unset";this.fullscreen&&(X="none");_.j4(this.hostElement,{"--ytd-network-status-banner-display":X})};
_.R.updateNetworkStatusBannerCssHeight=function(){var X="unset";this.fullscreen&&(X="0px");_.j4(this.hostElement,{"--ytd-network-status-banner-max-height":X})};
_.R.updateScrollAndMasthead=function(X,H,l,b){this.iMaxTheaterMode||(b=!1);var U=_.jJ().resolve(_.gd).getCurrentPage();X||H||b?(document.body.classList.add("no-scroll"),U.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.J2(this,this.onScroll)),U.setScrollTop(0),_.j4(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":Ts()+"px"})):l?_.QX(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.QX(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
U.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.J2(this,this.onScroll)));this.mastheadHidden=X||H||l;this.updateMastheadCssHeight();_.P("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.R.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.R.onYtNavigateAction=function(X){X=this.get("navigateAction.endpoint",X);_.QX(this.hostElement,"yt-navigate",{endpoint:X})};
_.R.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var X=document.createElement("yt-create-family-dialog");_.mh(this.hostElement).appendChild(X);this.hasCreateFamilyDialog=!0}};
_.R.onSetPushNotificationsEnabledCommand=function(X){var H=this,l=_.f(X,fwe);l&&typeof l.enabled==="boolean"&&(Notification.permission!=="granted"?ail().then(function(){Notification.permission==="granted"?(BcA(!l.enabled).then(uSd),l.successAction&&_.ci(H.hostElement,[l.successAction])):l.failureAction&&_.ci(H.hostElement,[l.failureAction])}):(BcA(!l.enabled).then(uSd),l.successAction&&_.ci(this.hostElement,[l.successAction])))};
_.R.onYtSignalActionEnableChromeNotifications=function(){ZA5(!0)};
_.R.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.f(this.topbarData.hotkeyDialog,DC5)}}})};
_.R.onYtSignalActionShowKeyboardShortcutDialog=function(){_.TP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.R.onYtEndpointChangeHandler=function(X,H){var l=_.QU(_.JO);l.pendingPrefetchJob_&&(H=!(!H||H.autonav!="1"),l.pendingPrefetchJob_.resolve(X&&_.lyN(X)?_.oty(X,H):""),l.pendingPrefetchJob_=null);_.TP(this.hostElement,"yt-pause-active-page-context");_.TP(this.hostElement,"ytd-log-youthere-nav");_.TP(this.hostElement,"yt-prepare-page-dispose")};
_.R.handleCommandWithCommandHandler=function(X,H){_.JF.instance.resolveCommand(X,{form:{element:H}})};
_.R.onYtTimedCommand=function(X){var H=this;X=_.f(X,Xa$);var l=X.command;l&&_.oJ(_.Ss,function(){var b=_.f(l,_.XOY);b?(_.JF.instance.resolveCommand(l),H.maybeLogGetAnswerRequestTick(b)):_.j7(H.hostElement,[l],H.hostElement)},X.timeoutMs||0)};
_.R.maybeLogGetAnswerRequestTick=function(X){X&&X.isFirstRequest&&(_.qJ("search_overview_answer"),_.sf("so_rq",void 0,"search_overview_answer"))};
_.R.onYtSignalActionSkipNavigation=function(){var X=_.jJ().resolve(_.gd).getCurrentPage();_.Qi(X)};
_.R.onYtSignalActionCopyDebugData=function(){hPe()};
_.R.handleEntityUpdateCommand=function(X){_.Xe(_.f(X,_.Mc_).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.R.logFlowLoggingEventCommand=function(X){if(X=_.f(X,_.Dib))if(X.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var H=X.flowEventNamespace,l=X.flowEventType,b=X.flowType;b&&H&&l&&_.rK8(_.j0(H,l,X.flowEventMetadata),b)}else{H=_.rR();l=X.flowEventNamespace;b=X.flowEventType;var U=X.flowType;U&&l&&b&&H.logFlowEvent(_.j0(l,b,X.flowEventMetadata),U,X.flowNonce)}};
_.R.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.R.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.R.onTouchStart=function(){var X=_.XV();_.Bi()&&_.pl(X.JSC$13624_screenManager,{visualElement:X.ve})};
_.R.handleSelectLanguageCommand=function(X){if(X=_.f(X,Be$).hl){var H=_.oO();H.set("hl",X);H.save();_.jJ().resolve(_.Lg).reload()}};
_.R.handleConfirmDialogEndpoint=function(X){(X=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(X))&&this.ytOpenPopupBehavior.openPopup(X)};
_.R.handleOpenPopupNavigationEndpoints=function(X,H){(X=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(X))&&this.ytOpenPopupBehavior.openPopup(X,H)};
_.R.handleSaveCommandToSessionStorage=function(X){if(X=_.f(X,_.IdQ)){var H=X.key;H&&X.command&&window.sessionStorage.setItem(H,JSON.stringify(X.command))}};
_.R.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(X){X&&X.active&&X.active.postMessage({type:"refresh_shell"})}).catch(function(X){X.name!=="SecurityError"&&_.n2(X)})};
_.R.onDeviceThemeChanged=function(){var X=_.V_();_.bH(_.oO(),185,X);_.oO().save()};
_.R.handleYtRegisterPromoCommand=function(X){if(_.f(X,P_N)){var H=_.jJ().resolve(_.gd).getCurrentPage()||this.hostElement;qnN().registerPromoCommand(_.f(X,P_N),H)}};
_.R.onYtNavigateHomeAction=function(){if(!_.P("kevlar_miniplayer_navigate_home_from_app_killswitch")){var X,H,l,b,U=(b=(X=this.topbarData)==null?void 0:(H=X.logo)==null?void 0:(l=H.topbarLogoRenderer)==null?void 0:l.endpoint)!=null?b:_.oy;this.ytComponentBehavior.resolveCommand(U)}};
_.R.onYtLocationCollectionCommand=function(X){n1p(_.f(X,vIZ))};
_.R.onYtGetLocationCommand=function(X){lUY(_.f(X,iz$),this)};
_.R.updateRenderGuideFromBinding=function(X){this.renderGuide=X.detail.value};
_.R.updateGuidePersistentAndVisibleFromBinding=function(X){this.guidePersistentAndVisible=X.detail.value};
_.R.updateMiniGuideVisibleFromBinding=function(X){this.miniGuideVisible=X.detail.value};
_.R.onThemeSelected=function(X,H){var l=_.oO(),b=X||H?X:_.V_(),U=(b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Xnk(_.c1(window.location.href));_.bH(0,165,X);_.bH(0,174,H);l.save();U&&_.TP(this.hostElement,"yt-dark-mode-toggled-action",[b]);_.TP(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.R.getCurrentTheme=function(){return _.fe()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.PM()};
_.R.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.R.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.R.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.R.handleShowConsentPrimitive=function(X){var H=this,l,b;return _.h(function(U){if(U.nextAddress==1){try{l=(b=_.aq())==null?void 0:b.getPlayerPromise()}catch(K){}return U.yield(r8d(X,l),2)}_.TP(H.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.m5(U)})};
_.R.handleSelectActiveIdentityEndpointInternal=function(X){_.u$();X=_.f(X,_.sIC);if(X!=null&&X.supportedTokens){X=_.C(X.supportedTokens);for(var H=X.next();!H.done;H=X.next())H=H.value,H.accountSigninToken&&_.y_(H.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.R.handleUpdatePermissionRoleCommand=function(X){if(X=_.f(X,_.qRt)){var H;this.hasDelegation=!((H=_.f(X.renderer,_.BI9))==null||!H.status)}};
_.R.registerWithViewTransitionManager=function(){var X=_.jJ().resolve(_.c$(_.Cz));if(X){var H,l=(H=this.guide)==null?void 0:H.querySelector("#scrim"),b;H=(b=this.guide)==null?void 0:b.querySelector("#contentContainer");l&&H&&X.isAnyTransitionEnabled&&(b={},X.viewTransitionCoordinator.registerElement(l,(b.slide="app-drawer-scrim-page-transition",b["lockup-to-watch"]="app-drawer-scrim-page-transition",b["learning-journey"]="app-drawer-scrim-page-transition",b)),l={},X.viewTransitionCoordinator.registerElement(H,
(l.slide="app-drawer-container-page-transition",l["lockup-to-watch"]="app-drawer-container-page-transition",l["learning-journey"]="app-drawer-container-page-transition",l)))}};
_.ja.Object.defineProperties(DW.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.P("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.P("kevlar_show_chips_on_scroll"))}}});
_.ja.Object.defineProperties(DW,{template:{configurable:!0,enumerable:!0,get:function(){if(G89===void 0){var X=document.createElement("template");_.n(X,'\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');
X.content.insertBefore(_.c().content.cloneNode(!0),X.content.firstChild);G89=X}X=G89;return X}}});
DW.prototype.onOpenHotkeyDialog=DW.prototype.onOpenHotkeyDialog;DW.prototype.setFullscreen=DW.prototype.setFullscreen;DW.prototype.onAddElementToApp=DW.prototype.onAddElementToApp;DW.prototype.onDrawerIronSelect=DW.prototype.onDrawerIronSelect;DW.prototype.onGuideOpenButtonHover=DW.prototype.onGuideOpenButtonHover;DW.prototype.onRequestPanelModeChange=DW.prototype.onRequestPanelModeChange;DW.prototype.onPageDataUpdated=DW.prototype.onPageDataUpdated;DW.prototype.onPageChanged=DW.prototype.onPageChanged;
DW.prototype.onSetTheaterModeEnabled=DW.prototype.onSetTheaterModeEnabled;DW.prototype.updateMastheadData=DW.prototype.updateMastheadData;DW.prototype.onYtPageManagerAttached=DW.prototype.onYtPageManagerAttached;DW.prototype.observePersistentPanelVisibility=DW.prototype.observePersistentPanelVisibility;DW.prototype.observeGuideVisibility=DW.prototype.observeGuideVisibility;DW.prototype.guideIsVisibleButNotPersistentSelectorChanged=DW.prototype.guideIsVisibleButNotPersistentSelectorChanged;
DW.prototype.isInlinePreviewEnabledChanged=DW.prototype.isInlinePreviewEnabledChanged;DW.prototype.isWatchPageChanged=DW.prototype.isWatchPageChanged;DW.prototype.dispatchFrostedGlassMode=DW.prototype.dispatchFrostedGlassMode;_.T([_.k(_.sv),_.N("design:type",Object)],DW.prototype,"ytdReduxBehavior",void 0);_.T([_.k(_.RX.YtEventForwardingBehavior),_.N("design:type",Object)],DW.prototype,"ytEventForwardingBehavior",void 0);
_.T([_.k(_.cr.YtOpenPopupBehavior),_.N("design:type",Object)],DW.prototype,"ytOpenPopupBehavior",void 0);_.T([_.k(_.rh.YtActionHandlerBehavior),_.N("design:type",Object)],DW.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.k({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Zq.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.P("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var X;((X=this.actionRouterNode.hostElement)!=null?X:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var X;((X=this.actionRouterNode.hostElement)!=null?X:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(X){this.actionRouter_.handleAction(X.detail)}}),
_.N("design:type",Object)],DW.prototype,"ytActionRouterBehavior",void 0);_.T([_.k(LlU.YtdAppBehavior),_.N("design:type",Object)],DW.prototype,"ytdAppBehavior",void 0);_.T([_.k(_.jj.YtEndpointBehavior),_.N("design:type",Object)],DW.prototype,"ytEndpointBehavior",void 0);_.T([_.k(O$a.YtEndpointHandlerWithYpcBehavior),_.N("design:type",Object)],DW.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.T([_.k(aYR.YtLogYpcFlowCommandsBehavior),_.N("design:type",Object)],DW.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.T([_.k(_.L.YtRendererBehavior),_.N("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.T([_.k(_.uJ.YtComponentBehavior),_.N("design:type",Object)],DW.prototype,"ytComponentBehavior",void 0);_.T([_.g({selector:PTx}),_.N("design:type",Object)],DW.prototype,"tabGesturesIsActive",void 0);_.T([_.g(),_.N("design:type",Boolean)],DW.prototype,"renderGuide",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"guidePersistentAndVisible",void 0);_.T([_.g({selector:y$e}),_.N("design:type",Boolean)],DW.prototype,"guideIsVisibleButNotPersistent",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"standalone",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"miniGuideVisible",void 0);
_.T([_.g(),_.N("design:type",Object)],DW.prototype,"persistentPanelEnabled",void 0);_.T([_.g({selector:UzR,reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"persistentPanelVisible",void 0);_.T([_.g({selector:_.tn8}),_.N("design:type",Number)],DW.prototype,"miniplayerPlaybackState",void 0);_.T([_.g({selector:_.s9,reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"miniplayerIsActive",void 0);
_.T([_.g({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.N("design:type",Boolean)],DW.prototype,"isInlinePreviewEnabled",void 0);_.T([_.g(),_.N("design:type",Boolean)],DW.prototype,"isInlinePreviewDisabled",void 0);_.T([_.g({reflectToAttribute:!0,value:function(){return _.G7("START_IN_FULL_WINDOW_MODE")}}),
_.N("design:type",Boolean)],DW.prototype,"mastheadHidden",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"playerFullscreen",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"fullscreen",void 0);_.T([_.g({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"hideHeaderShadow",void 0);
_.T([_.g({value:{GUIDE_ALT_LABEL:_.XS("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.N("design:type",Object)],DW.prototype,"menuStrings",void 0);_.T([_.g({computed:"computeTopbarData(data)"}),_.N("design:type",Object)],DW.prototype,"topbarData",void 0);_.T([_.g({selector:_.nWN,reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"isWatchPage",void 0);_.T([_.g({selector:_.kCb,reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"isShortsPage",void 0);
_.T([_.g({selector:function(X){return _.Mo(X)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.N("design:type",Boolean)],DW.prototype,"isMiniAppPage",void 0);_.T([_.g({selector:function(X){return _.Mo(X)==="WEB_PAGE_TYPE_BROWSE"}}),
_.N("design:type",Boolean)],DW.prototype,"isBrowsePage",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Boolean)],DW.prototype,"scrolling",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],DW.prototype,"hasDelegation",void 0);_.T([_.g({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],DW.prototype,"guideScrolledByTouch",void 0);_.T([_.g(),_.N("design:type",Object)],DW.prototype,"isFrostedGlassInitialized",void 0);
_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],DW.prototype,"frostedGlassExp",void 0);_.T([_.g({selector:function(X){return X.ui.chipBarIsSticky}}),
_.N("design:type",Boolean)],DW.prototype,"chipBarIsSticky",void 0);_.T([_.g({selector:V7$}),_.N("design:type",Boolean)],DW.prototype,"scrollAtTop",void 0);_.T([_.g({computed:"computeIsHomePage(isBrowsePage, data)"}),_.N("design:type",Boolean)],DW.prototype,"isHomePage",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],DW.prototype,"hasPendingWatchNavigation",void 0);_.T([_.g({reflectToAttribute:!0}),_.N("design:type",Object)],DW.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.T([_.g(),_.N("design:type",Object)],DW.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.T([JD("guide"),_.N("design:type",Object)],DW.prototype,"guide",void 0);_.T([JD("guide-service"),_.N("design:type",HwZ)],DW.prototype,"guideService",void 0);_.T([JD("guide-inner-content"),_.N("design:type",HTMLDivElement)],DW.prototype,"guideInnerContent",void 0);_.T([_.A2("#persistent-panel-container"),_.N("design:type",HTMLElement)],DW.prototype,"persistentPanelContainer",void 0);
_.T([_.g({selector:_.Wjh}),_.N("design:type",String)],DW.prototype,"frostedGlassMode",void 0);_.T([_.Yh("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"dispatchFrostedGlassMode",null);_.T([_.g({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.N("design:type",Object)],DW.prototype,"isFrostedGlassDisabled",void 0);
_.T([_.Yh("isWatchPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"isWatchPageChanged",null);_.T([_.x("isHomePage","chipBarIsSticky","scrollAtTop"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],DW.prototype,"applyFrostedGlassToChipBar",null);_.T([_.g(),_.N("design:type",Object)],DW.prototype,"isChannelOrPlaylistPage",void 0);
_.T([_.oi("isInlinePreviewEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"isInlinePreviewEnabledChanged",null);_.T([_.Yh("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.T([_.Yh("guidePersistentAndVisible","miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"observeGuideVisibility",null);_.T([_.Yh("persistentPanelVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"observePersistentPanelVisibility",null);
_.T([_.Le("attached"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],DW.prototype,"onYtPageManagerAttached",null);_.T([_.Yh("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],DW.prototype,"updateMastheadData",null);_.T([_.Le("yt-set-theater-mode-enabled"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],DW.prototype,"onSetTheaterModeEnabled",null);
_.T([_.Le("yt-page-type-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DW.prototype,"onPageChanged",null);_.T([_.Le("yt-page-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"onPageDataUpdated",null);_.T([_.Le("yt-request-panel-mode-change"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],DW.prototype,"onRequestPanelModeChange",null);
_.T([_.Le("yt-guide-hover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"onGuideOpenButtonHover",null);_.T([_.Le("app-drawer-transitioned"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],DW.prototype,"onDrawerIronSelect",null);_.T([_.Le("yt-add-element-to-app"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DW.prototype,"onAddElementToApp",null);
_.T([_.Le("yt-set-fullerscreen-styles"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"setFullscreen",null);_.T([_.Le("yt-open-hotkey-dialog"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DW.prototype,"onOpenHotkeyDialog",null);_.T([_.sq({is:"ytd-app"})],DW);_.ng().processSignal("eor");

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